Skip to content

Files

Latest commit

 

History

History
3757 lines (2424 loc) · 407 KB

CHANGELOG.md

File metadata and controls

3757 lines (2424 loc) · 407 KB

19.1.0 (2025-02-21)

Features

  • check-list: add check-list component (#8969) (4cd298b)
  • message,notification: display nzData when content is a template (#9001) (5157470)
  • popover,popconfirm,tooltip: overlayClassName supports space delimited classes string (#8972) (3fcec91)
  • popover: add nzPopoverOverlayClickable to disable click on mask (#8878) (5898da7)

Bug Fixes

  • input-number,checkbox: accept the disabled change from ng control (#8979) (2d8968d)
  • input-number: use input event instead of change event (#8989) (6d8d915)
  • tree-select: fix error when judging multiple instances condition (#9008) (5006ea6)

Code Refactoring

Now feel free to use isolatedModules compiler option in your project.

19.0.2 (2025-01-10)

Bug Fixes

  • auto-complete: should open the popover when the focused input is clicked (#8900) (79cc2f8)
  • progress: fix NG0956 error (#8962) (c4d2f81)
  • transfer: correctly set the transfer-list-body class (#8960) (a3546a9)

19.0.1 (2025-01-03)

Bug Fixes

  • date-picker: cell title should reflect nzFormat (#8744) (1b7ab5a)
  • i18n: add missing translations to zh_TW (#8950) (9607e11)
  • input-number: fix NG0600 error (#8955) (8d6135e)
  • table: should col be wrapped within colgroup in ssr mode (#8948) (0a73deb)

19.0.0 (2024-12-06)

Bug Fixes

  • autocomplete: remove inline style (CSP compliant) (#8875) (30c25f0)
  • avatar: calculate size at the right time (#8754) (3a5ba37)
  • card: remove nzBorderless input (#8741) (22ce17c)
  • carousel: carousel not working correctly in rtl mode (#8770) (0202a19)
  • cascader: correct menu display level (#8866) (5fec53e)
  • drawer: should clear previously focused element (#8893) (4498af0)
  • i18n: add missing translations to vi_VN (#8894) (f08ad1c)
  • tree-view: nzTreeNodePadding not works in virtual scroll (#8920) (82b660a)

Code Refactoring

  • cancel support for HTML string rendering (#8831) (5fae01a)
  • remove ngClass and ngStyle (#8895) (c3ab3ba)
  • image: remove deprecated FADE_CLASS_NAME_MAP and IMAGE_PREVIEW_MASK_CLASS_NAME (#8912) (65223d9)
  • transfer,tree,tree-select rename CheckBox to Checkbox (#8934) (c76433d5)

Features

  • cascader: support multiple selection (#8903) (e5dfb49)
  • cascader: support nzPlacement (#8935) (6fbd22c)
  • checkbox: redesign the nz-checkbox-group component (#8932) (489e0de)
  • divider: add nzVariant option (#8827) (2c63c87)
  • float-button: add float-button component (#7884) (dab4d66)
  • icon: support nz-icon tag selector (#8778) (1406241)
  • image: close image preview when escape key pressed (#8809) (d587615)
  • input: support one time password (OTP) (#8715) (cdbaf4d)
  • menu: add nzTriggerSubMenuAction to support click trigger for submenu (#8461) (860df87)
  • qrcode: add nzStatusRender to support customize state rendering (#8714) (6f36d75)
  • segmented: redesign the segmented component (#8753) (4dc866c)
  • space: add space compact component (#8755) (b9c511d)
  • table: add nzSortDirections to global config (#6613) (#8721) (eb1fdc5)
  • transfer: add nzOneWay to support one way style (#8717) (99fd4de)
  • input-number: redesign the input-number (#8901) (df55d88)
  • schematics: add v19 ng update migration (#8911) (1a20de2)

BREAKING CHANGES

  • All

    • nzClass / nzStyle input properties no longer support the following features:
      • Set(): use arrays instead
      • Keys which multiple styles/classes separated with keys: split a key with spaces into multiple keys
    • Cancel support for HTML string rendering
    • Migrate @WithConfig to standard decorator. If you're using @WithConfig in your library, please turn experimentalDecorators off in tsconfig.json
    • Migrate [nz-icon] to nz-icon tag. If you're using [nz-icon] selector in stylesheet to select icon inside zorro component, please use nz-icon instead
  • input-number: Redesign the input-number so that it will be much simpler and more flexible.

    Now you can use affixes or addons as follows, no need for ng-template and nz-input-number-group:

    <!-- Custom handler icons -->
    <nz-input-number>
      <nz-icon nzInputNumberUpIcon />
      <nz-icon nzInputNumberDownIcon />
    </nz-input-number>
    
    <!-- With affixes -->
    <nz-input-number>
      <span nzInputPrefix>Prefix</span>
      <span nzInputSuffix>Suffix</span>
    </nz-input-number>
    
    <!-- With addons -->
    <nz-input-number>
      <span nzInputAddonBefore>Before</span>
      <span nzInputAddonAfter>After</span>
    </nz-input-number>

    The old input-number component is marked as deprecated, and its entrypoint had changed to ng-zorro-antd/input-number-legacy. NzInputNumberComponent is now NzInputNumberLegacyComponent, and NzInputNumberModule is now NzInputNumberLegacyModule.

    Don't worry, ng update ng-zorro-antd will automatically do the migration.

  • cascader: Cancel support for writing value with NzCascaderOption[] type.

    In the past, the cascader component kept a trick that if you wrote value with NzCascaderOption[] type, it extracted value by mapping each item to its value property, for example:

    @Component({
      template: `<nz-cascader [nzOptions]="options" [ngModel]="value"></nz-cascader>`
    })
    export class ExampleComponent {
      value = [{ label: 'NG ZORRO', value: 'ng-zorro-antd' }]
    }

    then the value of cascader would be 'ng-zorro-antd'. It's strange that the input and output values don't match when we haven't changed the values, and it's hard to maintain. We expect that the value passed in should be the value in the list of options.

    In v19, this trick is removed and if you're already using this trick in your code, please consider the add a map function to pass the actual value.

  • checkbox Redesign the checkbox group component.

    • Remove NzCheckBoxOptionInterface['checked] field. By the way, NzCheckBoxOptionInterface is marked as deprecated, use NzCheckboxOption instead
    • nz-checkbox-group: Type of ngModel is changed from NzCheckBoxOptionInterface[] to NzCheckboxOption['value'][]
  • card: Remove redundant nzBorderless input property. Use nzBordered instead.

  • image: Remove deprecated FADE_CLASS_NAME_MAP and IMAGE_PREVIEW_MASK_CLASS_NAME

  • pipes: Remove deprecated NzSafeNullPipe

  • segmented: Redesign the segmented component.

    • Value of ngModel is changed from index to option's value
    • Change emission type of nzValueChange from number to option's value type (string | number)
    • Remove nzLabelTemplate, use nz-segmented-item directive instead
  • space: Rename exportAs of NzSpaceComponent from NzSpace to standard nzSpace

  • transfer: Rename nzTreeCheckBoxChange to nzTreeCheckboxChange

  • tree,tree-select: Rename nzCheckBoxChange to nzCheckboxChange

Deprecations

The following APIs are marked as deprecated in v19 and will be removed in the next major version. Please refer to related documentation for better alternatives.

Module API
ng-zorro-antd/button NzButtonGroupComponent
ng-zorro-antd/core/form NzFormPatchModule
ng-zorro-antd/checkbox NzCheckboxWrapperComponent
ng-zorro-antd/input NzInputGroupComponent#nzCompact
ng-zorro-antd/input-number-legacy *
ng-zorro-antd/message NzMessageModule
ng-zorro-antd/notification NzNotificationModule
NzNotificationServiceModule

18.2.1 (2024-11-15)

Bug Fixes

  • anchor: fix a tag problem with null or undefined value if TemplateRef provided (#8864) (41f6609)
  • color-picker: remove inline style (CSP compliant) (#8874) (0264da9)
  • image: remove inline style (CSP compliant) (#8876) (63c8953)
  • qrcode: remove event listeners once settled (#8861) (40d466d)
  • select: remove inline style (CSP compliant) (#8873) (9431d0d)
  • transfer: cancel selecting all should emit nzSelectChange event (#8872) (5ff9821)
  • watermark: cleanup event listeners once settled (#8862) (decd477)

18.2.0 (2024-11-07)

Bug Fixes

  • i18n: add missing translations to nb_NO (#8712) (8c9bcd1)
  • i18n: add missing translations to hu_HU (#8769) (9e21ae8)
  • badge: NG0955 warning in nz-badge-sup component (#8858) (cc52555)
  • select: multiple select cause switch size flash when init (#8851) (d28876c)
  • carousel: correctly switch slides in rtl mode (#8705) (85f23a1)
  • drawer: emit nzVisibleChange when close on navigation (#8850) (29827df)
  • modal,drawer: secondary overlays not scrolling inside (#8804) (ed7951d)
  • modal: remove dark backdrop when nzMask is false (#8798) (f2f04fe)
  • transfer: correctly set transfer button disable state (#8824) (195ad26)

Features

  • datepicker: send event emitter when panel mode change (#8685) (6462a47)
  • tabs: support destroyInactiveTabPane (#8845) (0de6d62)

18.1.1 (2024-08-20)

Bug Fixes

18.1.0 (2024-07-25)

Bug Fixes

  • cascader: hide placeholder when trigger compositionstart event (#8641) (17b0ea3)
  • i18n: add missing translations to pt_BR (#7790) (6fc1c78)
  • i18n: add scanned field to QRCode for fr_BE, fr_CA, fr_FR and lv_LV (#8614) (9b69410)
  • schematics: import missing RouterLink in template (#8621) (032a0c2)
  • transfer: disabling selection does not affect selecting all (#8633) (75d8c7b)

Features

18.0.1 (2024-06-27)

Bug Fixes

18.0.0 (2024-06-06)

⚠ BREAKING CHANGES

  • collapse: change nzExpandIconPosition type from left | right to start | end (#8561) (3ad5674)
  • no longer use inline JavaScript in Less (#8552) (7e873c8)

No need to wrap Less functions provided by antd (including colorEasing, colorPalette, tinycolor) with ~`` anymore.

- color(~`colorPalette('@{primary-color}', 5)`)
+ color(colorPalette('@{primary-color}', 5))

Bug Fixes

  • cascader,select,time-picker,tooltip,tree-select: take in account shadow dom when getting the target of an event (#7853) (843b703)
  • tooltip: fix arrow color when custom color (#8555) (92c586b)
  • upload: prevent drop event for firefox only (#8551) (c6e7bd7)
  • rate: half value when allow half is false (#8536) (7742fe3)

Features

17.4.1 (2024-05-24)

Bug Fixes

  • card: use skeleton instead to card-loading-content (#8528) (a36ebd3)
  • color-picker: avoid emitted twice nzOnChange event (#8530) (5dea059)
  • list: static query list-item-action template (#8527) (85301e0)
  • popconfirm: fix message icon style (#8511) (4f1f9bb)
  • tooltip,popover,popconfirm: fix hydration error (#8512) (5009ec0)

Features

  • popconfirm: popconfirm support for nzOkDisabled (#8542) (8c247db)

Performance Improvements

  • back-top: remove the redundant changeDetectorRef (c1e39e7)
  • qr-code: improved background drawing efficiency (#8543) (db09bf7)

17.4.0 (2024-04-19)

Bug Fixes

  • autocomplete: remove NgZone dependency (#8462) (24bb1bc)
  • button: add ant-btn-default class (#8501) (1588199)
  • calendar: year dropdown update issue when date is changed programmatically (#8286) (ee68a2c)
  • date-picker: remove unsafe style (#8458) (e6b83eb)
  • drawer: remove inline style to resolve CSP issue (#8065) (5e89441)
  • graph: bring back the disappered arrows of edge (#8493) (342841c)
  • graph: remove NgZone dependency (#8460) (a4ec21a)
  • image: missing swip icon (#8433) (f1a4050)
  • image: wrong next/prev btn in rtl mode (#8468) (886138d)
  • list: remove NgZone dependency (#8439) (1ec0e76)
  • notification: nzMaxStack initial value error (#8451) (2c09162)
  • pagination: add accessible name for nz-pagination-item (#8476) (47ee143)
  • slider: fix the style of markers in vertical mode (#8494) (9bcce6c)
  • tag: borderless style is invalid in default state (#8495) (b35e6d6), closes #8492
  • typography: remove NgZone dependency (#8440) (af7fb5d)
  • upload: remove inline style to resolve CSP issue (#8064) (1ac84a8)

Features

  • modal: supports masked layer response for each click (#8429) (31b90fa)
  • notification: popup order adjustment (#8450) (742f14a)
  • select: support nzOptionHeightPx in global config (#8504) (4efc5ab), closes #8503
  • skeleton: support for square shape of skeleton button (#8481) (af1483a)

17.3.0 (2024-03-11)

Bug Fixes

  • doc: replaced link for monaco editor options (#8393) (fdfc816)
  • docs: fix progress, code-editor docs error (#8383) (407e76a)
  • select: issue with nzScrollToBottom while display scaling (#8355) (bb0468e)
  • avatar: avatar not re-scaling properly (#8365) (e7b1fa0)
  • carousel: not adapting to new size when resizing (#8374) (6e1decb)
  • cdk: zIndex is not used properly when creating overlay (#8373) (b932d65)
  • i18n: add missing pt texts (#8426) (d575c53)
  • i18n: added missing translations to ja_JP (#8290) (662b730)
  • i18n: added missing translations to vi_VN (#8295) (987a799)
  • tabs: slide indicator missing in small screens (#8372) (a0b08be)
  • tabs: wrong cursor (#8386) (3dc1579)

Features

17.2.0 (2024-01-29)

Bug Fixes

  • table: add missing import to nz-table-inner-scroll (#8328) (936317e)
  • tree-select: fix search box exception when Chinese search (#8324) (aacd62b)
  • pipeline job failed (#8367) (6024bcc)

Features

17.1.0 (2023-12-17)

Bug Fixes

Features

17.0.1 (2023-11-20)

Bug Fixes

  • schematics: cannot generate files and add default builders (#8176) (de8a6b7)

17.0.0 (2023-11-18)

Bug Fixes

  • autocomplete: fix the wrong value of internal nz-auto-option (#7907) (0a312e3)
  • cron-expression: exception error & cancel format prompt copy (#8114) (ea69790)
  • form: wrong element to focus when clicking label (#8135) (b3d135f)
  • i18n: added missing translations to pl_PL (#7950) (7819426)
  • i18n: update fa_IR translations (#8143) (4f63198)
  • i18n: Update fr/be/ca translations (#8137) (211db31)
  • mention: page not loading entirely (#8146) (9505c7c)
  • resizable: fix pointer capture bug (#8169) (a0b8a0b)
  • select: do not run tick when scrolling to activated value (#8159) (7ce50b3)
  • slider: step can not click the problem (#7820) (1e1c753)
  • table: custom column styles collapse when using nzScroll (#8044) (fde48f9)
  • tree-select: 修复回显顺序问题 (#8108) (eb4077d)
  • tree: nzCheckBoxChange never emitting (#8038) (a9dc205)

Features

  • affix: support standalone component (#8037) (583883c)
  • hash-code: add HashCode component (#8111) (0254ee2)
  • image: add scale step (#8163) (5aa4db9)
  • notification: support for more custom templates (#8046) (9689c42)
  • schematics: support ng-add in standalone app (#8095) (c1b61f7)
  • slider: add the ability to use a template (#7505) (7c79ab3)
  • table: add nzLabel to include aria-label in checkboxes (#7903) (5834e46)
  • table: nzExpand supports custom icon (#7886) (1507ed0)
  • tooltip,popover,popconfirm: make cdkConnectedOverlayPush open for tooltip (#8166) (a821c62)

16.2.2 (2023-10-23)

Bug Fixes

16.2.1 (2023-10-19)

Bug Fixes

  • inline external css (#8122) (42da190)
  • color-picker: optimize demo copywriting and style (#8088) (6d03099)
  • menu: ellipsis menu title content if overflow (#8055) (0674f78)
  • tree-select: 修复节点为禁用状态时,back快捷键能删除bug (#8105) (07a1f5e)

Features

  • select: support to customize attr.title of nz-option-item (#8097) (2ee261a)

16.2.0 (2023-09-18)

Bug Fixes

Features

  • add provide function (#7952) (150c6ca)
  • cascader: support for load options with observable (#8048) (1436f21)
  • color-picker: add color-picker component (#8013) (8439704)
  • cron-expression: add Unit Testing (#7993) (605e969)
  • cron-expression: support nzDisabled && nzBorderless (#7992) (6d31bde)
  • dropdown: close context menu on escape (#7915) (6d0032e)
  • dropdown: improve NzContextMenuService#create() (#7768) (9b3e6cb)
  • form: support form label wrap (#7892) (37391de)
  • input: hide stepper for type number (#8003) (0f3aed5)
  • modal: Remove nzComponentParams in v16 (#7930) (baab16c)
  • qrcode: padding & background color for qrcode (#8001) (718ba29)
  • resizable: add direction parameter in NzResizeEvent (#7987) (4143473)
  • resizable: support for multiple cursor types (#8042) (e564714)
  • table: support display and sorting of custom table columns (#7966) (d26870f)

Performance Improvements

16.1.0 (2023-07-16)

Bug Fixes

  • list: fix the bug that synchrone action item are not displayed in the item (#7958) (3b6bdec)
  • tree: fix nz-tree-node keep dragging class with nzBeforeDrop (#8015) (2d0b3f7)
  • cascader: customize the option title to undefined (#8011) (10003db), closes #8006
  • date-picker: fix code comment (#7991) (8b6b653)
  • i18n: update zh_TW.ts (#7901) (9bfce45)
  • notification: don't create new messageId for update (#8000) (e240264)
  • time-picker: modelChange trigger twice (#7902) (74c13a4)
  • watermark: removing the watermark fails to redraw (#8012) (030318e)

Features

  • cron-expression: add Unit Testing (#7993) (605e969)
  • cron-expression: support nzDisabled && nzBorderless (#7992) (6d31bde)
  • dropdown: close context menu on escape (#7915) (6d0032e)
  • dropdown: improve NzContextMenuService#create() (#7768) (9b3e6cb)
  • form: support form label wrap (#7892) (37391de)
  • modal: Remove nzComponentParams in v16 (#7930) (baab16c)
  • qrcode: padding & background color for qrcode (#8001) (718ba29)
  • resizable: add direction parameter in NzResizeEvent (#7987) (4143473)
  • table: support display and sorting of custom table columns (#7966) (d26870f)

Performance Improvements

16.0.0 (2023-05-31)

Bug Fixes

15.1.0 (2023-04-02)

Bug Fixes

Features

Performance Improvements

  • avatar: do not run change detection on timer and update styles directly (#7862) (1c48745)
  • date-picker: do not trigger change detection on mousedown (#7860) (1171460)

15.0.3 (2023-01-17)

Bug Fixes

15.0.2 (2023-01-15)

Bug Fixes

  • checkbox: checkbox group can't be disable initially (#7806) (eb2cb04)

15.0.1 (2023-01-09)

Bug Fixes

  • components: some forms component can't be disable (#7786) (bc673e7)

15.0.0 (2022-12-21)

Bug Fixes

Performance Improvements

14.3.0 (2022-12-11)

Bug Fixes

  • tree: nz-tree-drop-indicator for custom tree node templates (#7579) (5996019)
  • input: textarea-count combined with nzHasFeedback location (#7709) (ddd44d2), closes #7574
  • list: specify template ref context to match instantiation (#7756) (4eb32fd)
  • select: disabled option can be selected by Enter (#7686) (5bdf244)
  • tree: tree select search slow in virtual mode (#7385) (21208f0)

Features

  • cron-expression: Optimize cron result display & support custom rendering cron time (#7750) (1820da5)
  • date-picker: add ElementRef type to nzSeparator (#7721) (3771512)
  • select: select on Tab support (#7728) (d9f9092)
  • tree-select: support to set placement (#7551) (325971e)

14.2.1 (2022-11-27)

Bug Fixes

  • animation: fix animation.disabled triggering condition (#7739) (2df4860)
  • i18n: add missing hu texts (#7733) (de71300)
  • select: activated value resetting during load on scroll (#7725) (9e08be9)

14.2.0 (2022-11-20)

Bug Fixes

  • cron-expression: clear ul & li default style (#7715) (726ded3)
  • date-picker: arrow in wrong position for RTL direction (#7690) (41b56e4)
  • date-picker: fix datePicker show multi panel (#7680) (ee4872e), closes #7450
  • descriptions: nzStringTemplateOutlet title style error (#7704) (bec3b42), closes #7698
  • icon: re-enter Angular zone after icons have been loaded (#7719) (754ded6)
  • image: preview the local upload image error (#7615) (616f59f)

Features

  • alert: support custom icon (#7691) (cc014a1)
  • carousel: nzLoop to prevent the carousel to go in a loop (#7693) (e3103f0)
  • cron-expression: add cron-expression component (#7677) (3a638af)
  • popconfirm: make nzOkDanger coerce to boolean (#7720) (f6a8044)

14.1.1 (2022-10-15)

Bug Fixes

  • code-editor: fix declaration of Window as monaco-editor (#7676) (bdf6507)
  • date-picker: fix datePicker can't clear (#7671) (ba90876), closes #7534

14.1.0 (2022-10-09)

Bug Fixes

  • cascader: fix wrong format of docs (#7604) (8b92c63)
  • i18n: update it_IT.ts (#7646) (aecb788)
  • pagination: add ul tag (#7500) (becdd68)
  • segmented: fix index.less not imported in entry.less (#7624) (1d6a646)
  • select: fix broken cdk virtual scroll integration (#7642) (1f10a9c)
  • select: input field length restricted to 82px (#7626) (82159e3)
  • statistic: remove top-level redundant div element (#7659) (07df410)
  • steps: remove top-level redundant div element (#7582) (60beabc)
  • typography: focus the element and set the value even if the zone is already stable (#7320) (2d2fe33)

Features

14.0.0 (2022-08-25)

Bug Fixes

Features

BREAKING CHANGES

13.4.0 (2022-07-25)

Bug Fixes

  • datepicker: focus input when opened programmatically (#7512) (b3a27d8)
  • transfer: uncheck "Select all" checkbox when filtered items are moved (#7419) (1e9c11e)

Features

Performance Improvements

  • transfer: add trackBy to the list and track by the hide property (#7424) (0587236)

13.3.2 (2022-06-25)

Bug Fixes

  • input-number: fix errors before initialization (#7531) (800e6f4)

13.3.1 (2022-06-20)

Bug Fixes

  • input, input-number, steps: fix styles in components (#7522) (222b225)

13.3.0 (2022-06-15)

Bug Fixes

Features

13.2.2 (2022-05-12)

Bug Fixes

  • tree-view: trigger markforcheck after nodes changed (#7426) (a702674)

13.2.1 (2022-04-27)

Bug Fixes

  • code-editor: remove monaco-editor dependency in config.ts (#7392) (929084d)

13.2.0 (2022-04-26)

Bug Fixes

  • carousel: fix nzAfterChange callback value not correctly (#7326) (b517bd4), closes #7323
  • cascader: fix the problem of disappearing drop-down menu (#7381) (3d41ce0)
  • cascader: update position when click menu item (#7306) (4c669a5)
  • i18n: update fr translations (#7364) (64e1c7c)
  • list: re-enter the Angular zone when the NgZone.onStable emits (#7314) (425f8df)
  • modal: no longer trigger any action when closing (#7336) (d169452)
  • popconfirm: reverting missing nzPopconfirmVisibleChange (#7338) (561041c)
  • upload: fix upload drag drop will open new tab in firefox 91 and 92 (#7190) (9b51874)

Features

  • code-editor: add global configuration to support monaco require config (#7121) (21ec517)
  • code-editor: support MonacoEnvironment config in NZ_CONFIG (#7359) (4dfd9cd), closes #6502
  • image: nz-image add press left or right to switch image (#7321) (b5f82b5)
  • input-number: add nzReadOnly property (#7372) (0da7496), closes #7369

Performance Improvements

  • anchor: mark scroll listener as passive (#7330) (aab060f)
  • back-top: mark scroll listener as passive (#7329) (7f3c4e1)
  • cascader: do not run change detection on change event (#7312) (cb803f9)
  • image: do not run change detection when the image preview is clicked (#7309) (752a5b6)
  • input-number: do not run change detection when mouseup and mouseleave events are dispatched on handlers (#7313) (54386ef)
  • modal: call focus() on the next rendering frame to prevent frame drop (#7293) (106d346)
  • resizable: mark mousedown and touchstart listeners as passive (#7331) (518997b)
  • tree-view: do not run change detection when the nz-tree-node-checkbox is clicked (#7307) (1e0872b)

13.1.1 (2022-03-03)

Bug Fixes

  • collapse: markForCheck after collapse title clicked (#7284) (b7433a9)
  • icon: do not try to load SVG on the Node.js side since it will throw an error (#7290) (fe0484f), closes #7240
  • select: exact match while searching should be active (#6816) (48d2a25), closes #6812
  • upload: fix the problem that the transformed file is lost (#7206) (b82d2f3)

13.1.0 (2022-02-25)

Bug Fixes

  • button: prevent default event fire (#7267) (2306e0d)
  • date-picker: fix z-index to auto in inline mode (#7172) (26006f6)
  • date-picker: fix disable time when date changes (#7236) (ae67952)
  • i18n: update fa-IR.ts translations (#7249) (a7a0b41)
  • i18n: update pt_BR.ts translations (#7218) (95c7816)
  • input: do not set box-sizing when measuring (#7214) (035dc94), closes #7203
  • input: incorrect background color in disabled state (#7250) (7acb8db)
  • radio: emit false to the ngModel whenever the radio button is deselected (#7270) (2704237)
  • select: fix keyboard event error when option data is empty (#7222) (4bd86ca), closes #7242
  • slider: fix keydown not trigger nzOnAfterChange (#7252) (f419c07), closes #7251

Features

Performance Improvements

  • auto-complete: do not run change detection when the promise resolves (#7138) (e95d941)
  • back-top: do not run change detection if there are no nzClick listeners (#7179) (7d091bb)
  • carousel: do not run change detection when the timer fires (#7136) (fc991d1)
  • collapse: do not run change detection if the panel is disabled (#7181) (3c3eac9)
  • dropdown: do not run change detection if the dropdown has been clicked inside (#7135) (4679592)
  • image: do not run change detection if there are no containerClick listeners (#7147) (f0f52a4)
  • mention: do not run change detection when the dropdown cannot be closed (#7146) (b72bd27)
  • mention: do not trigger change detections if there are no event listeners (#7130) (73af728)
  • resizable: do not run change detection on mousedown and touchstart events (#7170) (9a8d794)
  • select: do not run change detection on events if the nz-option-item is disabled (#7133) (a1bbdab)
  • select: do not run change detection unnecessarily on click events (#7175) (fd63d22)
  • table: do not run change detection if the sorting is not shown (#7174) (e541761)
  • table: do not unnecessarily re-enter the Angular zone (#7142) (5a5df13)
  • table: spawn timers and add listener outside of the zone (#7140) (ec248c9)
  • tabs: do not run change detection when the promise resolves (#7144) (148f84d)
  • time-picker: do not run change detection when the timer fires (#7143) (72da774)
  • tree-view: do not run change detection on click events if the nz-tree-node-option is disabled or there are no nzClick listeners (#7178) (0054f59)
  • typography: do not run change detection on input and keydown events (#7185) (ad547fb)

13.0.1 (2022-01-18)

Bug Fixes

Performance Improvements

  • auto-complete: memory leak (#7112) (3806250)
  • cdk: resolve leak (#7139) (2a93d05)
  • checkbox: reduce change detection cycles (#7127) (15abe33)
  • code-editor: always initialize outside of the Angular zone (#7151) (f73be80)
  • core: remove resize listener when the app is destroyed (#7125) (8437111)
  • image: unsubscribe old src (#7102) (87a3e27)
  • input-number: reduce change detection cycles (#7129) (9971faa)
  • modal: do not run change detection on mouse events (#7169) (c20bb80)
  • modal: resolve memory leaks (#7123) (3664efe)
  • graph: do not run change detection on animation frame (#7132) (1ceaf70)
  • rate: do not run change detection on focus and blur events if there are no output listeners (#7182) (3e9e035)
  • steps: do not run change detection if there are no nzIndexChange listeners (#7183) (cbfc558)
  • transfer: do not trigger change detection when the checkbox is clicked (#7124) (b12f43a)

13.0.0 (2021-12-29)

BREAKING CHANGES

dropdown

  • [nzHasBackdrop] input value are no longer supported, please use [nzBackdrop] instead.

12.1.1 (2021-12-18)

Bug Fixes

Performance Improvements

  • carousel: do not run change detection on non-handled keydown events (#7097) (ca3299e)
  • cascader: do not run change detections on non-handled keydown events (#7060) (9a37718)
  • date-picker: do not run change detection when the date-range-popup is clicked (#7096) (8f8c71b)
  • icon: do not run change detection when changing icon (#7071) (e998e4a)
  • mention: do not run change detections on mousedown events (#7094) (0d4ad23)
  • switch: reduce change detection cycles (#7105) (6d9b1ff)
  • table: do not run change detections on click events for the nz-filter-trigger (#7095) (346c50d)
  • time-picker: do not run change detection when scrolling (#7063) (baf7f0a)
  • time-picker: do not run change detection when the time picker panel is clicked (#7126) (76da3ff)
  • tree: do not run change detection when the tree node is clicked (#7128) (55f1e04)

12.1.0 (2021-11-29)

Bug Fixes

Features

Performance Improvements

  • auto-complete: do not run change detection on mousedown and mouseenter for nz-auto-option (#7048) (d6ca43e)
  • core: do not run change detection when scrolling (#7062) (a972d7b)
  • graph: reduce change detections on click events (#7056) (1e2960a)
  • graph: resolve minimap memory leaks (#7052) (f93960c)
  • modal: do not run change detection when focusing element (#7070) (ffcb709)
  • radio: reduce change detection cycles (#7068) (b8cc94f)
  • resizable: reduce change detection cycles (#7036) (5cad154)
  • select: reduce change detections for nz-select-top-control (#7038) (d45f0ab)
  • upload: do not trigger change detection for nz-upload-btn (#7037) (7e587d1)
  • upload: previewing images should be cancellable when the component gets destroyed (#7067) (8f21ef1)

12.0.2 (2021-11-04)

Bug Fixes

  • core: correct hidden behavior (#6919) (987b1ca), closes #6918
  • pagination: pre-ellipsis show in the wrong position (#6793) (9700e89)
  • affix: fix update position when target resize (#6896) (d18a8ae), closes #6764
  • date-picker: added missing type attributes for buttons (#7013) (d69d374), closes #7012
  • datepicker: fixed opacity 0 on inline datepicker reopen (#6910) (d392b2e)
  • i18n: update en_GB.ts translations (#6982) (f89cb38), closes #6979
  • modal: footer onClick re-throw error in promise catch (#6928) (3277d22)
  • popconfirm: add nzOkDanger option for nz-popconfirm (#6866) (d889e98)
  • table: show empty state regardless of loading value (#6934) (013beda)
  • timepicker: fix ok button + selection of default open value (#6941) (daf9f57)
  • timepicker: fixed auto positioning picker (#6939) (65fdbc8)
  • tooltip: fix tooltip for deeply wrapped focusable elements (#6965) (78c16a2), closes #6955

Performance Improvements

  • autocomplete: resolve memory leak (#6851) (e61e350)
  • breadcrumb: do not re-enter the Angular zone when calling navigate (#6850) (830a1f2)
  • button: do not trigger change detections on click events (#6849) (85c79f6)
  • core: resolve memory leak (#6852) (25eb0fe)
  • code-editor: load Monaco only once (#7033) (e1eafec)
  • image: resolve memory leak (#6856) (6744eb1)
  • select: do not run change detection if the triggerWidth has not been changed (#6858) (055f4a1)
  • table: resolve leak within the nz-table-fixed-row (#7034) (cfa1ecd)
  • upload: do not trigger change detection for nz-upload-btn (#7032) (47f91c7)

12.0.1 (2021-07-12)

Bug Fixes

  • code-editor: dispose the event listener when the component is destroyed (#6847) (503c6f9)
  • code-editor: resolve memory leak (#6846) (6d43b6c)
  • code-editor: re-enter the Angular zone only if the value has been changed (##6845) (5c09948)
  • drawer: trigger change detection only if there are nzOnViewInit listeners (#6841) (c5b5741)
  • icon: resolve memory leak (#6839) (bdc2a55)
  • remove the default resize observer polyfill (#6843) (29d44af), closes #6696

If you want to support older browsers, you can provide polyfill in the following way.

import { NzResizeObserverFactory } from 'ng-zorro-antd/cdk/resize-observer';
import ResizeObserver from 'resize-observer-polyfill';

@NgModule({
  providers: [
    { provide: NzResizeObserverFactory, useValue: {
        create(callback: ResizeObserverCallback): ResizeObserver | null {
          return typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(callback);
        }
      }
    }
  ]
})
export class AppModule {}

12.0.0 (2021-07-11)

Bug Fixes

  • pagination: mark for check when the total number of pages changes (#6780) (2f1f8dc)
  • pagination: pagination in form will trigger submit (#6744) (f77ab28)
  • cascader: add nzClear functionality to cascader (#6761) (3dd9534), closes #6751
  • select: focus input when selector is clicked (#6786) (1c9331a)
  • time-picker: close time-picker after tabbing out (#6602) (0e53053)
  • tree: stop change url in firefox (#6771) (be20114)
  • typography: single line ellipsis style (#6776) (e192a70)

Features

BREAKING CHANGES

button

  • [nz-button][nzType="danger"] input value are no longer supported, please use [nz-button][nzDanger] instead.

modal

  • usage of ng-content has been removed, please use <ng-template nzModalContent></ng-template> instead.

drawer

  • usage of ng-content has been removed, please use <ng-template nzDrawerContent></ng-template> instead.

tree-view

  • [nzNodeWidth] has been removed, please use [nzItemSize] instead.

nz-space-item

  • nz-space-item, [nz-space-item] has been removed, please use <ng-template nzSpaceItem></ng-template> instead.

11.4.2 (2021-06-08)

Bug Fixes

11.4.1 (2021-04-22)

Bug Fixes

  • *: create image using document method to avoid ReferenceError in SSR (#6569) (d7b9291)
  • date-picker: click outside not change value (#6596) (62e4bb6), closes #6595
  • date-picker: not switch month panel when range is same month (#6616) (bf4ae4d)
  • date-picker: time picker panel not scroll at first time (#6604) (b97dfbe)
  • graph: fix edge default style and wrong toggling group nodes (#6615) (c434ea9)
  • i18n: added property missing in ka_GE (#6589) (825925c)
  • slider: fix range slider not working for arrow keys (#6612) (51f33e6), closes #6586
  • typography: add type="button" attribute to button element in nz-text-copy component (#6606) (48a9714), closes #6605

11.4.0 (2021-04-08)

Bug Fixes

Features

11.3.0 (2021-03-23)

Bug Fixes

Features

Deprecated

  • space: nz-space-item in nz-space will be removed in 12.0.0, please use *nzSpaceItem instead.

11.2.0 (2021-02-26)

Bug Fixes

Features

  • date-picker: add nzInline property (#6436) (4d80873)
  • time-picker: support updating OK and Now button text (#6410) (ef3af58)
  • time-picker,select,tree-select: support nzId (#6379) (85d423d)

Performance Improvements

11.1.0 (2021-01-22)

Bug Fixes

Features

11.0.2 (2021-01-18)

Bug Fixes

11.0.1 (2020-12-31)

Bug Fixes

11.0.0 (2020-12-21)

Highlights

RTL Support

Set the dir attribute on the document body or html tag.

<html dir="rtl"></html>

Or use Angular CDK bidi module for bi-directional.

import { BidiModule } from '@angular/cdk/bidi';

Super thanks to @saeedrahimi @hdm91 @HDaghash @hmdnikoo for contributing this!

New Image component

Used to handle progressive loading of images; failure fallback, and preview of image(s).

Super thanks to @stygian-desolator for contributing this!

New Graph experimental component

Support customized multi-level graph rendering.

New Tree View component

The previous Tree already contains many common features, and to handle more customizable scenarios we developed a more basic Tree View component with higher ability of customization and better control over performance.

New built-in Aliyun theme

@import "~ng-zorro-antd/ng-zorro-antd.aliyun.less";

Bug Fixes

Features

BREAKING CHANGES

date-picker

  • [nzMode] does not support NzDateMode[] type any more, please adjust it manually.

modal

  • [nzGetContainer] has been removed, please remove it manually.
  • open method in NzModalRef has been removed, please remove it manually.

tabs

  • [nzShowPagination] input has been removed, please remove it manually.
  • (nzOnPrevClick) output has been removed, please remove it manually.
  • (nzOnNextClick) output has been removed, please remove it manually.
  • a[nz-tab-link] selector has been removed, please use ng-template[nzTabLink] > a[nz-tab-link] instead.

10.2.1 (2020-12-11)

Bug Fixes

10.2.0 (2020-12-01)

Bug Fixes

Features

Deprecated

  • modal
    • Usage <ng-content></ng-content> is deprecated, which will be removed in 12.0.0. Please instead use <ng-template nzModalContent></ng-template> to declare the content of the modal.
  • drawer
    • Usage <ng-content></ng-content> is deprecated, which will be removed in 12.0.0. Please instead use <ng-template nzDrawerContent></ng-template> to declare the content of the drawer.

10.1.2 (2020-11-16)

Bug Fixes

10.1.1 (2020-11-09)

Bug Fixes

10.1.0 (2020-10-30)

Bug Fixes

Features

10.0.2 (2020-10-16)

Bug Fixes

10.0.1 (2020-10-09)

Bug Fixes

10.0.0 (2020-09-28)

Bug Fixes

Code Refactoring

  • anchor: remove deprecated APIs for v10 (#5776) (e50d530)
  • cascader: remove deprecated APIs for v10 (#5778) (7e64e4c)
  • code-editor: remove deprecated APIs for v10 (#5798) (353e657)
  • date-picker: remove deprecated APIs for v10 (#5793) (5159900)
  • form,grid: remove deprecated APIs for v10 (#5788) (b215efa)
  • notification: remove deprecated APIs for v10 (#5779) (e5ed4d2)
  • table: remove deprecated APIs for v10 (#5792) (132e425)
  • tooltip, popover, popconfirm: change deprecated APIs for v10 (#5817) (dc3088c)
  • tree: remove deprecated APIs for v10 (#5789) (b378cb7)
  • upload: remove deprecated APIs for v10 (#5774) (9f5baae)

Features

BREAKING CHANGES

tooltip, popover, popconfirm:

  • nz-tooltip
    • [nzOverlayStyle] has been removed, use [nzTooltipOverlayStyle] instead.
    • [nzOverlayClassName] has been removed, use [nzTooltipOverlayClassName] instead.
    • [nzMouseLeaveDelay] has been removed, use [nzTooltipMouseLeaveDelay] instead.
    • [nzMouseEnterDelay] has been removed, use [nzTooltipMouseEnterDelay] instead.
    • (nzVisibleChange) has been removed, use (nzTooltipVisibleChange) instead.
  • nz-popover
    • [nzOverlayStyle] has been removed, use [nzPopoverOverlayStyle] instead.
    • [nzOverlayClassName] has been removed, use [nzPopoverOverlayClassName] instead.
    • [nzMouseLeaveDelay] has been removed, use [nzPopoverMouseLeaveDelay] instead.
    • [nzMouseEnterDelay] has been removed, use [nzPopoverMouseEnterDelay] instead.
    • (nzVisibleChange) has been removed, use (nzPopoverVisibleChange) instead.
  • nz-popconfirm
    • [nzOverlayStyle] has been removed, use [nzPopconfirmOverlayStyle] instead.
    • [nzOverlayClassName] has been removed, use [nzPopconfirmOverlayClassName] instead.
    • [nzMouseLeaveDelay] has been removed, use [nzPopconfirmMouseLeaveDelay] instead.
    • [nzMouseEnterDelay] has been removed, use [nzPopconfirmMouseEnterDelay] instead.
    • (nzVisibleChange) has been removed, use (nzPopconfirmVisibleChange) instead.

code-editor:

  • NzCodeEditorService.updateDefaultOption has been removed, use NzConfigService.set instead.
  • Inject token NZ_CODE_EDITOR_CONFIG has been removed, use NZ_CONFIG instead.

date-picker:

  • NZ_DATE_FNS_COMPATIBLE has been removed. Please migrate to date-fns v2 manually.
  • nz-date-picker,nz-week-picker,nz-month-picker,nz-year-picker,nz-range-picker
    • [nzClassName] has been removed, use ngClass instead.
    • [nzStyle] has been removed, use ngStyle instead.

table:

  • th[nzSort] has been removed, use th[nzSortOrder] instead.
  • th(nzSortChange) has been removed, use th(nzSortOrderChange) instead.
  • th(nzSortChangeWithKey) has been removed. Please manually remove it.
  • thead(nzSortChange) has been removed, use thead(nzSortOrderChange) instead.
  • thead[nzSingleSort] and th[nzSortKey] has been removed. Please manually change to th[nzSortFn].

form,grid:

  • nz-form-item[nzFlex] has been removed. Please manually remove this input.
  • nz-form-item[nzType] has been removed. Please manually remove this input.
  • nz-row[nzType] has been removed. Please manually remove this input.

tree:

  • NzTreeNode.isAllChecked has been removed, use NzTreeNode.isChecked instead.
  • NzTreeNode.setSelected(boolean) has been removed, use NzTreeNode.isSelected = boolean instead.

notification:

  • NzNotificationDataFilled has been removed, use NzNotificationRef instead.
  • NzNotificationDataOptions.nzPosition has been removed, use NzNotificationDataOptions.nzPlacement instead.

anchor:

  • nzTarget has been removed, use nzContainer instead.

cascader:

  • CascaderOption has been removed, use NzCascaderOption instead.
  • CascaderSearchOption has been removed, use NzCascaderSearchOption instead.

upload:

  • UploadType has been removed, use NzUploadType instead.
  • UploadListType has been removed, use NzUploadListType instead.
  • UploadFile has been removed, use NzUploadFile instead.
  • UploadChangeParam has been removed, use NzUploadChangeParam instead.
  • ShowUploadListInterface has been removed, use NzShowUploadList instead.
  • UploadTransformFileType has been removed, use NzUploadTransformFileType instead.
  • UploadXHRArgs has been removed, use NzUploadXHRArgs instead.

9.3.0 (2020-07-09)

Bug Fixes

Features

9.2.2 (2020-06-23)

Bug Fixes

9.2.1 (2020-06-17)

Bug Fixes

9.2.0 (2020-06-16)

Bug Fixes

Features

9.1.2 (2020-05-13)

Bug Fixes

9.1.1 (2020-05-11)

Bug Fixes

  • auto-complete, drawer: cannot reopen when reuse route snapshots(#5165) (7101782), closes #5142
  • alert: nzNoAnimation not work with the alert component (#5211) (de9ef6b)
  • breadcrumb: fix breadcrumb when Routes path='' (#4966) (5ffa45c)
  • button: disabled not work with anchor (#5233) (36ab993), closes #5226
  • dropdown: fix dropdown break SSR (#5244) (016cca1), closes #5186
  • modal: global config cannot work with service mode (#5228) (95aab9a), closes #5223
  • modal: modal cannot close after the host view destroyed (#5161) (5cb618e), closes #5128
  • modal: rollback to component types can be the content of confirm-mode (#5177) (5fa4c1e), closes #5172
  • schematics: invalid version will be added when the package already exists (#5210) (f406803), closes #5209
  • table: fix table expand in multiple thead tr (#5246) (cbaeb38), closes #5207
  • timeline: fix timeline check error (#5245) (ee2859f), closes #5230
  • typography: ellipsis line measurement error (#5175) (93676c9)
  • upload: fix invalid preview image in picture card (#5205) (cbe8225), closes #5201

9.1.0 (2020-04-26)

Bug Fixes

Features

9.0.2 (2020-04-20)

Bug Fixes

9.0.0 (2020-04-15)

Intro

Welcome to the 9.0.0 version of ng-zorro-antd,some APIs were deprecated in version 8.x, and warning message was given under dev mode. All deprecated APIs is removed in 9.0.0, if you have fixed all warnings in the 8.x version, you can follow these steps to upgrade your version.

Environmental Requirement

  1. Make sure Node.js >= 10.13
  2. Create a new branch, or use other methods to back up the current project
  3. delete the package-lock.json file

Upgrade dependencies

  • Upgrade Angular to 9.x version, ref https://update.angular.io/
  • Run ng update @angular/cdk, if you have used @angular/cdk.
  • if you have used date-fns in your project, upgrade it to 2.x version, ref https://github.com/date-fns/date-fns-upgrade.
  • if you have used monaco-editor please upgrade it to 0.2.x, don't forget to upgrade monaco-editor-webpack-plugin to 1.9.x if you have used it.

Upgrade NG-ZORRO

  • Run ng update ng-zorro-antd
  • If a warning message appears in the console, follow the prompts to modify the corresponding code

date-fns update

We have upgraded date-fns to v2. When you switch to date-fns, some date formats will have a breaking change. Such as:

<!-- datefns v1 -->
<nz-date-picker nzFormat="YYYY-MM-DD"></nz-date-picker>

<!-- datefns v2 -->
<nz-date-picker nzFormat="yyyy-MM-dd"></nz-date-picker>

We recommend using date-fns v2 date format. If you don't want to use the new date format, you can use NZ_DATE_FNS_COMPATIBLE. When set to true, ng-zorro-antd will convert the format of v1 to v2. See the comparison of the old and new formats here.

providers: [
  { provide: NZ_DATE_FNS_COMPATIBLE, useValue: true }
]

** NZ_DATE_FNS_COMPATIBLE won't be kept for too long, we will remove the support for date-fns v1 format until ng-zorro-antd v10**, we hope you can update the date-fns date format in time. For date-fns upgrade guide, see here.

Angular Ivy Supported

We have upgraded the @angular/* and @angular/cdk versions to v9, and now you can use the Ivy rendering engine to run your project, and enable the strictTemplates option to use more strict template type checking.

More help go to Angular Ivy and Template type checking.

Ant Design 4 Spec

We have synced the Ant Design 4 design specification and support the Dark and Compact themes.

Enhanced Performance and Usability

  • In previous versions, the Table component has integrated virtual scrolling, also now supported for Select and Tree components.
  • Form and Table simplify usage and now allow for writing fewer templates and configurations.
  • Allow adding icons in sub-modules to reduce the first screen load time.
  • Now, the pop-up menu is automatically closed when the route is changed, and corresponding options have been added for components such as Modal.

9.0.0-beta.4 (2020-04-14)

Bug Fixes

Features

BREAKING CHANGES

  • notification:
  • NzMessageDataFilled is replaced by NzMessageRef
  • NzNotificationDataFilled is replaced by NzNotificationRef

9.0.0-beta.3 (2020-03-24)

Bug Fixes

Features

9.0.0-beta.2 (2020-03-19)

Bug Fixes

9.0.0-beta.1 (2020-03-15)

Bug Fixes

Chores

Code Refactoring

Features

Performance Improvements

  • checkbox: use css empty selector instead of observeContent (#4761) (da8821a)
  • input: improve input-group perf (7af643b), closes #3950
  • radio: refactor radio group data flow (#4770) (423a382)

BREAKING CHANGES

  • icon: - NZ_ICON_DEFAULT_TWOTONE_COLOR is removed. Use NzGlobalConfigService instead.

chore: remove strange file

test: fix test

feat: add forRoot

docs: change doc

docs: fix icon English doc

  • form: - nz-form-extra is removed. Please use nzExtra is nz-form-control instead.
  • nz-form-explain is removed. Please use nzSuccessTip | nzWarningTip | nzErrorTip | nzValidatingTip is nz-form-control instead.
  • refactor(module:form): refactor and sync antd v4.0

  • refactor(module:form): refactor test

  • refactor(module:form): fix test

  • refactor(module:form): refactor form control and remove useless styles

  • form: - nz-form-extra is removed. Please use nzExtra is nz-form-control instead.

  • nz-form-explain is removed. Please use nzSuccessTip | nzWarningTip | nzErrorTip | nzValidatingTip is nz-form-control instead.
  • chore: merge code

  • refactor(module:form): sync antd and fix test

  • input-number: ngModelChange trigger at once when user typing

  • pagination: prev_5 and next_5 is needed when use nzItemRender 'pre' typo was corrected to 'prev'

  • tree, tree-select: * tree

  • Removed [nzDefaultExpandAll] use [nzExpandAll] instead.
  • Removed [nzDefaultExpandedKeys] use [nzExpandedKeys] instead.
  • Removed [nzDefaultSelectedKeys] use [nzSelectedKeys] instead.
  • Removed [nzDefaultCheckedKeys] use [nzCheckedKeys] instead.
  • Removed (nzOnSearchNode) use (nzSearchValueChange) instead.
  • tree-select
  • Removed [nzDefaultExpandedKeys] use [nzExpandedKeys] instead.
  • message,notification: - NZ_MESSAGE_CONFIG is removed. Please use NzGlobalConfigService instead.
  • NZ_NOTIFICATION_CONFIG is removed. Please use NzGlobalConfigService instead.
  • config method of NzMessageService and NzNotificationService is removed. Please use set method of NzGlobalConfigService instead.
  • empty: - NZ_DEFAULT_EMPTY_CONTENT is removed. Please use NzConfigService instead.
  • carousel: Carousel
  • nzVertical is removed. Please use 'nzDotPosition' instead.
  • Removed deprecated API NgZorroAntdModule.forRoot()

  • docs: update README.md and getting-started.md

  • chore: fix tslint hook

  • style: fix lint

  • build: fix generate-iframe script

  • style: fix lint

  • icon: - i[nz-icon]: twoToneColor theme spin iconfont type inputs has been removed, use nzTwoToneColor nzTheme nzSpin nzIconfont nzType instead.

  • i.anticon selector has been removed, use i[nz-icon] instead.
  • calendar: <nz-calendar> nzCard input has been removed, use nzFullscreen instead.
  • tooltip,popover,popconfirm: <nz-tooltip> <nz-popover> <nz-popconfirm> components has been removed, use its directives instead.

8.5.1 (2019-11-18)

Bug Fixes

8.5.0 (2019-11-08)

Bug Fixes

Features

8.4.1 (2019-10-23)

Bug Fixes

8.4.0 (2019-10-15)

Bug Fixes

Features

Performance Improvements

  • tree: change the collapsed of the treeNode to ngIf (#3947) (cbfc5ed)
  • typography, tabs: make the destroy$ complete when destroy (#4271) (51f4713)

8.3.1 (2019-09-24)

Bug Fixes

8.3.0 (2019-09-09)

Bug Fixes

Features

Performance Improvements

  • resizable: listen document events when resizing start (#4021) (66afcf0)

8.2.1 (2019-08-26)

Bug Fixes

  • cascader: fix column is not dropped in hover mode (#3916) (906849b)
  • code-editor: fix destroying error when editor is not initialized (#4002) (a35fb09)
  • code-editor: remove overflow styles (#4016) (ab832d9)
  • descriptions: fix colspan calcuation in horizontal bordered (#4014) (345712f)
  • table: fix border-right of small size and bordered table (#4027) (a3bd531)
  • tabs: fix tabs still shows when no route is matched (#4034) (7ca0a52)

8.2.0 (2019-08-13)

Bug Fixes

Features

8.1.2 (2019-07-29)

Bug Fixes

8.1.1 (2019-07-29)

Bug Fixes

  • *: import PlatformModule when use platform in component (#3823) (6ec85a4)
  • dropdown: hide backdrop when disabled and restore escape (#3831) (b758572), closes #3835
  • form: fix form feedback error when init with tips (#3868) (7c0aa51), closes #3865
  • select: fix select with tokenization bug (#3869) (fa462c7), closes #3825
  • table: fix table small sticky style (#3849) (c4de8ff)
  • tabs: fix the pagnation padding-right when scrolling (#3539) (#3709) (9a4df38)
  • tooltip: fix position change not set back (#3857) (3dbb6dc)
  • schematics: fix parse module name error (#3848) (d4e7210), closes #3844
  • schematics: update copy-resources script to support Windows path (#3856) (915b67d)

8.1.0 (2019-07-19)

Bug Fixes

Features

8.0.3 (2019-07-14)

Bug Fixes

8.0.2 (2019-07-03)

Fix the dependencies version ranges.

8.0.1 (2019-07-01)

Bug Fixes

  • tree: fix warning bug (#3692) (637c334)
  • breadcrumb: fix warning startWith operators (fe28a0d)
  • schematics: missing routing module in sidemenu template (#3695) (fdcef82)

8.0.0 (2019-06-29)

Bug Fixes

  • button: fix order of DOM nodes in button (#3578) (c3df8b5), closes #3079
  • card: fix card tab ng-template (#3654) (7585ba4)
  • descriptions: fix warning without logger (#3663) (5826fc1)
  • dropdown: dropdown should close when set disabled (0bd1ae3), closes #3420
  • dropdown: fix dropdown change after checked bug (16d5c2d)
  • dropdown: fix dropdown SSR bug (#3628) (ade1abd)
  • form: fix form control validate with formControl (bc54e90), closes #3551
  • form: fix form overlap (#3633) (0fc7d05), closes #3607
  • form: fix nzValidateStatus & nzHasFeedback overlap (fb4965b), closes #3607
  • grid: Make all properties in EmbeddedProperty optional (#3473) (107e731)
  • input: fix ng-content nzAddOnBeforeIcon transclusion (#3597) (a37ec0a), closes #3596
  • mention: fix cannot to switch trigger (#3632) (c8b5b09), closes #3629
  • menu: fix menu title ExpressionChangedAfterItHasBeenCheckedError (52975ff), closes #3023
  • menu: fix submenu not active when collapsed (67f6fa2), closes #3345
  • pagination: fix pagination nzTotal 0 bug (#3651) (d28fc49), closes #3648
  • select: fix nzOpen state when nzOnSearch trigger (3ca816d), closes #3626
  • select: fix select enter open when disabled (36db36c), closes #3408
  • select: fix the bug of duplication when keyboard input chinese char (#3440) (3c82f26), closes #3439
  • table: compatible with @angular/material/table (79b02ca)
  • table: fix sortChange with dynamic columns (#3603) (#3605) (c85743d)
  • typography: fix the actions button order (#3677) (c2c28a4)
  • typography: not render when the edit text has no changes (51b9ce0)

Features

  • avatar: add nzSrcSet & nzAlt properites (#3583) (d0ad5e8), closes #3543
  • breadcrumb: support dropdown (#3636) (9dfab45)
  • carousel: support dot position (#3575) (0566331)
  • core: add universal logger funcs and deprecation warnings (#3538) (b893520)
  • form: refactor form to support better template driven (10d0e28)
  • input-number: support nzId (a6500c8)
  • menu: support auto active menu-item via routerLink (c9e84c7)
  • menu: support nzTitle & nzIcon in nz-submenu (0cde4d7)
  • pagination: support pagination nzDisabled (141bef8)
  • select: support custom template in select component (#3071) (aad02a5), closes #2946
  • table: support nzVirtualForTrackBy (cb14096)
  • transfer: add nzShowSelectAll & nzRenderList properties (#3588) (1619f30), closes #3567 #2870
  • typography: add typography component (#3119) (4d739ef)
  • schematics: add template option in ng-add (#3674) (69072de)

7.5.0 (2019-06-05)

Bug Fixes

Features

7.4.1 (2019-05-21)

Bug Fixes

  • build: unable to build in production when importing secondary module (#3266)

7.4.0 (2019-05-19)

Bug Fixes

  • breadcrumb: fix input boolean and router event not caught error (#3185) (fd43ec5), closes #3186
  • carousel: fix carousel in entry components (#3367) (9d495fc)
  • cascader,checkbox,switch,tooltip: fix memory leak problem (#3416) (c63849f)
  • drawer: fix z-index level (#3405) (663f6c1), closes #3402
  • menu: submenu should not remain highlighted (#3455) (fd47605)
  • modal: cannot to close in order of overlay opens when using esc (#3339) (0533c32), closes #3338
  • modal: content not work in confirm mode when the type is component (#3415) (6458c57), closes #3407
  • modal: should not close when mousedown in the body (#3400) (82e488a), closes #3394
  • progress: fix stroke color is not updated (#3445) (80c6ed4), closes #3441
  • tree,tree-select: fix the styles of connecting line (#3385) (f7e9a7c), closes #3382

Features

7.3.3 (2019-04-25)

Bug Fixes

7.3.2 (2019-04-22)

Bug Fixes

  • build: fix bundling error of components.less (#3331) (fb19921)

7.3.1 (2019-04-22)

Bug Fixes

7.3.0 (2019-04-21)

Features

Bug Fixes

7.2.0 (2019-03-27)

Bug Fixes

Features

7.1.0 (2019-03-21)

Bug Fixes

Features

7.0.3 (2019-03-14)

Bug Fixes

  • select: fix select init touched state error when disabled (#3084) (ba9d454), closes #3059

Build

  • build: add strictNullCheck config (#2126)
  • build: upgrade icon to 2.0.2 (#3085) (fc72d7d)

7.0.2 (2019-03-11)

Bug Fixes

7.0.1 (2019-03-04)

Bug Fixes

7.0.0 (2019-02-28)

Update Guidance

  1. Update Angular and other packages to newest versions.

  2. Update ng-zorro-antd to 7.0.

Notice

Pay attention to these changes to ensure that your code works as expected:

  1. All components now work with OnPush strategy. Components with this strategy would not respond to mutations on object properties or array child items, even decorated with @Input(). So you should make all your @Input properties immutable objects. Not only this would ensure your code works correctly but also improve performance if you use immutable objects right. Please checkout our example below.
  2. We correct the meaning of nzDropdownMatchSelectWidth of Select component. Now it means exactly opposite of the old one.
  3. If you want to add a button to an input-group in search mode, you should use nzAddOnAfter instead of nzSuffix.

Bug Fixes

Features

7.0.0-rc.3 (2018-12-26)

Bug Fixes

7.0.0-rc.2 (2018-12-24) [deprecated]

Bug Fixes

Features

7.0.0-rc.1 (2018-12-12)

Bug Fixes

Features

7.0.0-rc.0 (2018-11-30)

Bug Fixes

Features

1.8.1 (2018-11-24)

Bug Fixes

Features

1.8.0 (2018-10-26)

Bug Fixes

Features

Performance Improvements

1.7.1 (2018-10-23)

Bug Fixes

1.7.0 (2018-10-18)

Bug Fixes

  • tabs: hide next and prev buttons when nzTabPosition is left or right (#2239) (3bb8be5)
  • breadcrumb: navigate within angular (#2283) (0c41306), closes #2254
  • button: fix button loading bug (#2251) (cb71e9b), closes #2191
  • cascader: fix error when nzOptions change and in search mode (#2241) (c3c2d26), closes #2105
  • cascader: fix support to nzLabelProperty (#2231) (37523c8), closes #2103
  • date-picker: fix the calendar not shown up when click on the icon (#2235) (8ffcfac), closes #2221
  • date-picker: use fixed width when "nzShowTime" settled for picker (#2236) (463a14c)
  • icon: fix broken icons (#2248) (e0d9987)
  • icon: fix icon classname writeback (#2259) (c6337c2)
  • list: fix does not trigger change detection correctly when from empty array to data array (#2199) (92c1a85)
  • select: fix space closing select panel (#2240) (3d7fe39), closes #2201
  • select,tree-select: prevent pop the dropdown when click remove (#2290) (4fa9367), closes #2276
  • spin: fix cdk change detection (#2255) (25671b6), closes #1819
  • table: fix filter table header in ant design 3.10 (#2260) (ebf151a)
  • upload: fix only allow type is picture or picture-card generate thumbnail (#2219) (8306111), closes #2216

Features

1.6.0 (2018-09-22)

Bug Fixes

Features

Build

  • build: use ng-packagr to generate library (#2126)

Performance Improvements

1.5.0 (2018-09-09)

Bug Fixes

  • drawer: provide custom scroll strategy (#2095) (b993068), closes #2070
  • modal: fix generic type of the "nzComponentParams" for user to gain more type intellisense (#1812) (6ef1185)

Features

1.4.1 (2018-09-02)

Bug Fixes

1.4.0 (2018-08-19)

Bug Fixes

Features

1.3.0 (2018-08-03)

Bug Fixes

  • auto-complete: reposition when open the first time (#1863) (c80bc8d), closes #1840
  • date-picker: restrict the date when it overflows at the month panel (#1903) (3c654a5), closes #1899

Features

1.2.0 (2018-07-22)

Bug Fixes

Features

1.1.1 (2018-07-02)

Bug Fixes

Features

1.1.0 (2018-06-25)

Bug Fixes

Features

1.0.0 (2018-06-11)

Bug Fixes

Features

0.7.1 (2018-05-24)

Bug Fixes

Features

  • input-number: support input-number placeholder (#1512) (7e3d4e4)
  • autocomplete: support bind any types to the nzModule of trigger element (#1397) (b44296e), closes #1298
  • switch: support fully control by user (#1514) (70ca8bd)

0.7.0 (2018-05-15)

Bug Fixes

0.7.0-beta.5 (2018-05-01)

Bug Fixes

  • input-number: fix display value after formatter changed (#1371) (179c1e2)
  • upload: fix ngModel was changed to nzPercent in nz-progress (#1320) (9b7336e), closes #1209

Features

  • time-picker: support null value in time-picker-panel (#1388) (1ca1490)

0.7.0-beta.4 (2018-04-12)

Bug Fixes

Features

  • mention: add mention component (#1182) (e28c1b5)
  • mention: add prefix property to nzOnSearchChange payload (#1296) (1af5b42)

0.7.0-beta.3 (2018-03-26)

Bug Fixes

Features

  • modal: add afterOpen/afterClose/afterAllClose/closeAll/openModals, adjust the boolean props and changeBodyOverflow and complete testing. (#1165) (10227b8), closes #1155 #1162
  • modal: support triggerOk/triggerCancel to trigger nzOnOk/nzOnCancel manually (#1201) (8cc016e)

0.7.0-beta.1 (2018-03-15)

Bug Fixes

Features

0.6.10 (2018-01-06)

Bug Fixes

Features

0.6.9 (2018-01-02)

Bug Fixes

  • calendar: fix month/year view switched (#768) (383a0f4)
  • transfer: 1.fix the "checkAll" status not updated 2.change "ArrayObservable.of" to "of" (#834) (9c023fa)

Features

  • radio: use nz-radio components alone (#825) (15c968c)
  • transfer: add canMove property & make component using OnPush (#824) (d31c596)

0.6.8 (2017-12-21)

Bug Fixes

  • modal: fix modal type error (#784) (cb0ab64)
  • overlay: update overlay width when the host component's width change (#780) (62fc733), closes #779
  • popconfirm: fix backdrop of popconfirm (#786) (60cf7a9), closes #785
  • table: fix the missing of init table sort class (#781) (b828025), closes #771

0.6.7 (2017-12-15)

Bug Fixes

  • datepicker: disable datepicker when user input (#738) (84c0f23)
  • select: reset select component this._value (#754) (4a50d0d)
  • slider: fix set value in slider (#743) (d0a6793), closes #739

Features

  • calendar: use months short format (#737) (805538c), closes #736
  • tooltip,popover,popconfirm: support "nzMouseEnterDelay" and "nzMouseLeaveDelay" (#758) (3a894f0), closes #757

0.6.6 (2017-12-11)

Bug Fixes

Features

  • input-number: use boundary value instead of previous value (#731) (48e40f4)

0.6.5 (2017-12-10)

0.6.4 (2017-12-10)

Bug Fixes

  • input-number: check value when press tab key (#706) (9923a86), closes #651

Features

  • form: support default nzValidateStatus & support more error status (#696) (3d4213f), closes #693 #692
  • grid: support zero input in grid (#704) (e50b72f), closes #702
  • select: support placeholder for basic select (#703) (a842cdd), closes #413
  • tooltip,popover,popconfirm: do not show tooltip when it's content is empty (54ff189), closes #631
  • tooltip,popover,popconfirm: support hover on the content of it's overlay (e712d87), closes #701

0.6.3 (2017-12-06)

Bug Fixes

  • affix: fix position offset when has deferred render componets. (#672) (74b01da), closes #671
  • radio: value can not be dynamically update (#677) (bedcf96), closes #668
  • select: fix choose disabled item via direction key control (#675) (80d637d), closes #674
  • select: usage public property in accessing other components (#679) (8ba3ea8)

Features

BREAKING CHANGES

  • packaging: umd file name simplified from 'ng-zorro-antd.js' to 'antd.js'

0.6.2 (2017-11-29)

Features

  • slider: support dynamic update nzMarks from outside (#636) (aea80c4), closes #624
  • table and pagination: support custom the page size changer select values(#608) (#626) (034bd71)

0.6.1 (2017-11-26)

Bug Fixes

Features

  • datepicker: support string and number type as value (#593) (aee7abe)

0.6.0 (2017-11-18)

Bug Fixes

  • menu: do not remove submenu when click title (#576) (37cef47), closes #454
  • popover,steps: fix popover always show title placeholder & steps nzDescription property support TemplateRef (#556) (4a4e393), closes #555 #523
  • select: fix multiple select width (#575) (7006766), closes #560

Features

0.6.0-rc.3 (2017-11-04)

Bug Fixes

Features

  • datepicker: support [nzDisabledDate] property in month mode (#451) (cdc0716), closes #442

Performance Improvements

  • classMap: improve classMap performance (#528) (e5b5cc9)
  • polyfill: polyfill all request animation (#527) (8c5a41a)

0.6.0-rc.2 (2017-10-29)

0.6.0-rc.1 (2017-10-28)

Bug Fixes

  • table: fix the wrong semantics about param "nzShowExpand" of nz-row-expand-icon (e4f8337)

build

Features

  • i18n: support i18n functionality (zh-CN, en-US currently) (552fa50), closes #427
  • locale: support change locale at the runtime (globally) (af6c926)

BREAKING CHANGES

  • packaging: 1. usage related to cdk is changed 2. @angular version dependence update to ^4.4.3 (due to @angular/cdk)
  • table: the usage of param "nzShowExpand" is changed to the opposite value. The former, "nzShowExpand" represent as "hide the expand icon", now this change correct it to "show the expand icon".

And the default value of "nzShowExpand" has changed to "true".

0.5.5 (2017-10-21)

Bug Fixes

Features

  • calendar: add year number to month template (#465) (0eba3ae), closes #461
  • steps: support [nzProgressDot] property in vertical mode (#446) (98e2579)

0.5.4 (2017-10-14)

Bug Fixes

  • datepicker: data binding not work when mode is month (#421) (dca0895)
  • modal: restore body overflow before destroyed the component (#415) (083dd03), closes #412

Features

  • input-number: add nzBlur & nzFocus property (#406) (a49a382), closes #396

0.5.3 (2017-09-30)

Bug Fixes

Features

0.5.2 (2017-09-23)

Bug Fixes

  • cascader: select and render leaf label & reset in reactive form (#335) (#336) (#356) (c80bb8e)
  • menu: fix submenu ExpressionChangedAfterItHasBeenCheckedError (#368) (10989ae), closes #367
  • select: fix select style in inline form (#362) (ae06649), closes #306
  • table: fix nzWidth with ngIf (#349) (d5d379b), closes #302
  • moment: rollup compile with incorrect sourcemap (#331) (aec9f83)

Features

  • modal: show confirm loading status of modal opened by nzModalService (#340) (90b7e12), closes #365
  • select: support undefined reset select (#363) (1a997c2), closes #284
  • table: add nzIsPageIndexReset option (#348) (#359) (60e3da9)

0.5.1 (2017-09-16)

Bug Fixes

Features

  • menu: selected child item, its parent highlight (#264) (970e968), closes #262

0.5.0 (2017-09-09)

Bug Fixes

  • all: patch all components with setDisabledState (#188) (69b8979), closes #134
  • carousel: carousel slide height depend on inner content (#242) (94bac1b), closes #162 #170
  • cascader: fix nz-cascader don't refresh when nzOptions binding data changed (#219) (#221) (74b2506)
  • checkbox: fix trigger twitce in safari (#256) (cd5b511)
  • core,root: ensure compatibility to v4 (#233) (2b5c083)
  • datepicker: year and month display in opposite way (#243) (4b5ea54), closes #232
  • dropdown: should always debouce before subscribe visibleChange$ (#237) (0180e1c), closes #234
  • input,datepicker,input-number,select,slider: still dirty when "form.reset()" called (#257) (4233db1), closes #114
  • inputnumber: validate inputnumber value & rewrite strategy (#230) (28669ae), closes #42 #203
  • select, datepicker, timepicker: close dropdown when change to disable status (#222) (6e1b144), closes #190 #195
  • select, datepicker, timepicker, radio, checkbox, input-number: fix touched state (#248) (07f48bc), closes #228

Features

0.5.0-rc.4 (2017-08-31)

Bug Fixes

  • pagination: fix nzPageIndexChange event does not emit (#189) (371b98a)

Features

  • modal: provide open & close & setConfirmLoading function (#125) (0f87f6c), closes #118
  • tooltip,popconfirm,popover: support OnPush (#143) (2f2c9ac), closes #136

0.5.0-rc.3 (2017-08-26)

Bug Fixes

Features

  • affix&anchor&back-top&avatar: add components to library (#88) (468e80b)
  • root: make nz-root optional (#36) (9de3de1)
  • showcase: auto scroll to top when router change & sync code icon with antd (#124) (9a1de83), closes #26

0.5.0-rc.2 (2017-08-19)

Bug Fixes

  • pagination: Pagination QuickJumper bug #37 (a122238)
  • carousel: support dynamic change of nz-carousel-content (#60) (44865c2), closes #56
  • menu: fix submenu level bug & fix menu routerLinkActive bug in lazyload module (#77) (b914afd), closes #35 #52 #74
  • pagination: remove active class when reach first and last page index (#93) (2bcddc7), closes #17
  • steps: fix steps width bug in tab component (#94) (ee4428d), closes #83
  • timeline: eliminate ExpressionChangedAfterItHasBeenCheckedError when use ngFor to render (67df061)

Features

Performance Improvements

0.5.0-rc.0 (2017-08-15)