Skip to content

Releases: ng-alain/delon

9.5.0

02 Jul 03:40
683e296
Compare
Choose a tag to compare

NG-ALAIN not supporting SSR in default, you can refer to SSR chapter to achieve.

Scaffold

  • SSR: make i18n.service.ts, theme-btn.component.ts support ssr (#1730)

Bug Fixes

  • All @delon/* support SSR
  • abc:reuest-tab: fix cannot read property 'active' (#973) (2bf13f9)
  • abc:reuse-tab: fix the position of Tab cannot be updated in some cases (#974) (f4abe81)
  • abc:se: fix ingored set id when control invalid controlAccessor (#975) (e205c4d)
  • cli: fix missing dependencie "@antv/data-set" (#971) (95a35ac)
  • cli: only supports angular 9.x (#978) (d9fccf7)
  • form: export utils (#972) (f61947e)
  • form: fix invalid width of inline mode (#977) (5de1015)
  • theme:drawer: fix nzWidth is invalid (#970) (772e3de)
  • theme:SettingsService: optimized to be rewritten more friendly (#976) (680607b)

Features


默认并没有 NG-ALAIN 直接支持 SSR,可以参考SSR章节来实现。

Scaffold

  • SSR: 确保 i18n.service.ts, theme-btn.component.ts 支持 SSR (#1730)

Bug Fixes

  • 所有 @delon/* 支持 SSR
  • abc:reuest-tab: 修复 cannot read property 'active' 错误 (#973) (2bf13f9)
  • abc:reuse-tab: 修复某些情况下 Tab 的位置无法更新 (#974) (f4abe81)
  • abc:se: 修复部分组件无法自动设置 id 问题 (#975) (e205c4d)
  • cli: 修复丢失引用 "@antv/data-set" 类库 (#971) (95a35ac)
  • cli: 修复 ng add ng-alain 只支持 angular 9.x (#978) (d9fccf7)
  • form: 修复缺少 utils 工具集导出 (#972) (f61947e)
  • form: 修复内联模式下无效 width (#977) (5de1015)
  • theme:drawer: 修复无法指定 nzWidth (#970) (772e3de)
  • theme:SettingsService: 优化更友好的覆盖 (#976) (680607b)

Features

  • abc:image: 新增 useHttp 属性,支持自动转化 Base64 (#968) (c3488b6)
  • form: 新增 formValueChange 事件返回当前路径和路径对应的值 (#979) (edadc29)

9.4.1

25 Jun 04:52
bf26403
Compare
Choose a tag to compare

Bug Fixes

  • abc:se: fix invalid auto assigned id under nested se component (#959) (cc081b8)
  • abc:st: fix losing nzWidthConfig (#964) (bf0aa88)
  • chart:pie: fix isPercent scope (#965) (d8815af)
  • cli:plugin:icon: fix skip cannot be resolved (#966) (4512f93)

Bug Fixes

  • abc:se: 修复嵌套 se 时无法有效自动分配 id 值 (#959) (cc081b8)
  • abc:st: 修复缺少 nzWidthConfig 属性 (#964) (bf0aa88)
  • chart:pie: 修复 isPercent 作用域 (#965) (d8815af)
  • cli:plugin:icon: 修复应跳过无法解析文件 (#966) (4512f93)

9.4.0

13 Jun 07:56
1cd6e87
Compare
Choose a tag to compare

Scaffold

  • BREAKING CHANGES theme-btn: update instead of set (#1712)

Bug Fixes

  • abc:reuse-tab: fix refresh tab component when call replace method of service (#953) (44b6a9c)
  • abc:st: fix call resetColumns and emitReload: true method should clean data (#954) (b89f13c)
  • abc:st: fix refresh data when changed columns (#954) (b89f13c)
  • abc:st: fix recalculate no value of removeRows method (#944) (09202dd)
  • form: fix text overflow ellipsis of lable (#949) (34a2c63)
  • form:widget:array: fix clean value of cleanValue (#948) (3881014)
  • form:widget:upload: fix value should not be updated during initialization (#947) (5d3abf0)

Features

  • abc:se: add errors property, used to batch update all error attribute of se component (#932) (7316257)
  • abc:se: add ingoreDirty property, ignoring the verification of the form element diry (#945) (5f5dfcc)
  • chart: add clickItem event (#951) (f9fff60)
  • form: add showRequired property of ui schema (#940) (d10f29d)
  • form:widget:date: add change event (#950) (172ba08)
  • form:widget:object: add expand of type is card (#952) (22833c0)

Scaffold

  • BREAKING CHANGES theme-btn: 使用 set 替代 update (#1712)

Bug Fixes

  • abc:reuse-tab: 修复 replace 方法无法清空旧数据 (#953) (44b6a9c)
  • abc:st: 修复调用 resetColumns 方法若指定 emitReload: true 应先清空数据 (#954) (b89f13c)
  • abc:st: 修复重置 columns 时应重新触发数据生成 (#954) (b89f13c)
  • abc:st: 修复调用 removeRows 应重新计算 no 列值 (#944) (09202dd)
  • form: 修复标签溢出问题 (#949) (34a2c63)
  • form:widget:array: 修复指定 cleanValue 应清除数组的部分 (#948) (3881014)
  • form:widget:upload: 修复首次加载会触发校验 (#947) (5d3abf0)

Features

  • abc:se: 增加 errors 属性,用于批量更新所有 seerror 属性值 (#932) (7316257)
  • abc:se: 增加 ingoreDirty 属性,忽略对表单元素 diry 的校验 (#945) (5f5dfcc)
  • chart: 增加 clickItem 事件 (#951) (f9fff60)
  • form: 增加 showRequired 属性,用于是否强制显示必填项符号 (#940) (d10f29d)
  • form:widget:date: 增加 change 事件 (#950) (172ba08)
  • form:widget:object: 增加卡片类型可扩展行为 (#952) (22833c0)

9.3.2

01 Jun 14:18
1b07b72
Compare
Choose a tag to compare

Scaffold

Bug Fixes


Scaffold

  • 修复若干暗黑主题示例页样式不正确 (#1682, #1685)

Bug Fixes

  • abc:page-header: 修复复用路由下无法注销 event 订阅问题 (#933) (0080efd)
  • cli: 修复 ng-update 若干细节 (#934) (8f26c71)
  • form: 同步 selecttree-select 两个小部件的新属性 (#935) (aa6de23)
  • form: 修复暗黑主题可选颜色 (#941) (50d1617), closes #939

9.3.1

27 May 10:16
d020fd8
Compare
Choose a tag to compare

Bug Fixes

  • abc:reuse-tab: fix dark style of close button (#923) (f35c617)
  • abc:reuse-tab: fix exclude items should be updated after leave (#925) (e6fef31)
  • abc:se: fix only control vision when error is null (#929) (42713d3)
  • abc:sidebar-nav: add title of menu item (#924) (ac1445c)
  • theme: fix flex (#927) (afb8ad1)
  • theme:layout:fullscreen: fix dark theme (#926) (b61b7f6)

Bug Fixes

  • abc:reuse-tab: 修复暗黑主题关闭按钮颜色太浅 (#923) (f35c617)
  • abc:reuse-tab: 修复排除项在离开路由后应不显示 (#925) (e6fef31)
  • abc:se: 修复未指定 error 时依然呈现控件异常视觉 (#929) (42713d3)
  • abc:sidebar-nav: 修复项标题 (#924) (ac1445c)
  • theme: 修复 flex (#927) (afb8ad1)
  • theme:layout:fullscreen: 修复暗黑主题背景色 (#926) (b61b7f6)

9.3.0

24 May 11:50
981307d
Compare
Choose a tag to compare

Scaffold

  • BREAKING CHANGE Add dark and compact themes, You need to manually update two places:

1. src/styles.less File

// #region PLACEHOLDER, IMPORTANT: don't remove
@import '~@delon/theme/styles/index';
@import '~@delon/abc/index';
@import '~@delon/chart/index';
@import '~@delon/theme/styles/layout/default/index';
@import '~@delon/theme/styles/layout/fullscreen/index';
@import './styles/index';
@import './styles/theme';
// #endregion

After:

@import '~@delon/theme/system/index';
@import '~@delon/abc/index';
@import '~@delon/chart/index';
@import '~@delon/theme/layout/default/index';
@import '~@delon/theme/layout/fullscreen/index';

@import './styles/index';
@import './styles/theme';

// You can directly set the default theme
// - `dark` Import the official dark less style file
// - `compact` Import the official compact less style file
// @import '~@delon/theme/theme-dark.less';

2. Theme variable path

Replace all @import '~@delon/theme/styles/default'; with @import '~@delon/theme/index';

If you want to support the switching between these two dynamic themes like the preview website, please refer to
Customize Theme
.

Please refer to (#1668) the complete PR for this update.

Bug Fixes

  • fix entry point warning (#911) (248e8c8)
  • abc:media: fix can't init when Plyr has beed load (#909) (e22fd25)
  • abc:st: fix not specifying key should use index instead in statistical (#908) (1de4383)
  • form: fix button & form misalignment in inline mode (#904) (e869da0)
  • theme:menu.service: fix invald recursive hit when is hash location strategy (#906) (47b8bc7)

Features

  • abc:sidebar-nav: unlimited levels (#910) (81b5422)
  • abc:st: auto generate compose method when sort: true (#907) (8e1657a)
  • chart:water-wave: add animate property (#918) (7ae1f35)
  • form: add compact property (#917) (cc11212)
  • form:widget:array: add callback evetns (#905) (31b031d)

Scaffold

  • 新增暗黑、紧凑两种主题,本次为破坏性变更,需要手动更新两个地方:

1、src/styles.less 文件

// #region PLACEHOLDER, IMPORTANT: don't remove
@import '~@delon/theme/styles/index';
@import '~@delon/abc/index';
@import '~@delon/chart/index';
@import '~@delon/theme/styles/layout/default/index';
@import '~@delon/theme/styles/layout/fullscreen/index';
@import './styles/index';
@import './styles/theme';
// #endregion

更新为:

@import '~@delon/theme/system/index';
@import '~@delon/abc/index';
@import '~@delon/chart/index';
@import '~@delon/theme/layout/default/index';
@import '~@delon/theme/layout/fullscreen/index';

@import './styles/index';
@import './styles/theme';

// You can directly set the default theme
// - `dark` Import the official dark less style file
// - `compact` Import the official compact less style file
// @import '~@delon/theme/theme-dark.less';

2、主题变量路径

将所有 @import '~@delon/theme/styles/default'; 替换成 @import '~@delon/theme/index';

如果你希望跟示例网站一样,支持这两种动态主题的切换,请参考定制主题

本次更新完整 PR 请参考 (#1668)

Bug Fixes

  • 修复次级导入警告 (#911) (248e8c8)
  • abc:media: 修复初始化无法再次实例 Plyr (#909) (e22fd25)
  • abc:st: 修复统计数据时若未指定 key 时应优先使用 index 最后才使用当前下标 (#908) (1de4383)
  • form: 修复内联模式按钮与表单错位 (#904) (e869da0)
  • theme:menu.service: 修复在 Hash 路由模式下无法命中 (#906) (47b8bc7)

Features

  • abc:sidebar-nav: 新增无限层级 (#910) (81b5422)
  • abc:st: 新增 sort: true 自动生成 compose 方法 (#907) (8e1657a)
  • chart:water-wave: 新增 animate 动画属性 (#918) (7ae1f35)
  • form: 新增 compact 紧凑属性 (#917) (cc11212)
  • form:widget:array: 新增 addremove 回调事件 (#905) (31b031d)

9.2.4

15 May 06:10
c9bccbb
Compare
Choose a tag to compare

Scaffold

  • fix invalid parameter in catchError (#1652)

Bug Fixes

  • abc:lodop: fix unable to attach LODOP.NEWPAGE(); this kind of code (#902) (8022a66)
  • abc:st: fix invalid link break in strict mode (#900) (a12cf4f)
  • cli:ng-add: fix invalid parameter in catchError (#901) (a6d6ee3)
  • cli:plugin:ie: fix modifiy invalid file (#898) (b3de732)

Scaffold

  • 修复 catchError 不会处理数组异常 (#1652)

Bug Fixes

  • abc:lodop: 修复无法附加 LODOP.NEWPAGE(); 代码 (#902) (8022a66)
  • abc:st: 修复 strict 宽度模式无法指定列宽 (#900) (a12cf4f)
  • cli:ng-add: 修复 catchError 不会处理数组异常 (#901) (a6d6ee3)
  • cli:plugin:ie: 修复错误修改了 app.module.ts 文件,应修改至 polyfills.ts (#898) (b3de732)

9.2.3

14 May 06:34
fc96879
Compare
Choose a tag to compare

Bug Fixes

  • fix has no exported member 'PanelMode' (#894) (702a485)
  • form: fix misalignment in fixed label (#895) (702a485)

Bug Fixes

  • 修复缺少导出成员 'PanelMode' (#894) (702a485)
  • form: 修复固定标签时 nz-select 组件会错位 (#895) (702a485)

9.2.2

12 May 15:31
3ae6f6b
Compare
Choose a tag to compare

Bug Fixes

  • abc:lodop: fix lodop definition (#887) (aa80730)
  • abc:st: fix invalid fixed column (#892) (b3453c5)
  • abc:st: fix invalid highlight when filter has set (#889) (c9b374d)
  • abc:st: fix click the filter icon to trigger sorting (#889) (c9b374d)
  • abc:se: fix nesting (#886) (2b3f998)
  • abc:se: fix col eqar 1 in inline layout (#886) (2b3f998)
  • sf:widget:date: fix format default value when value is not null (#890) (bedd102)
  • theme:style:utils: fix flex-center-between (#886) (2b3f998)
  • theme:style:utils: fix exclude link button of preserve whilte spaces (#886) (2b3f998)
  • cli:plugin:ie: fix invalid version number of dependencies (#888) (35de0d0)

Bug Fixes

  • abc:lodop: 修复 lodop 无效定义 (#887) (aa80730)
  • abc:st: 修复固定列无法覆盖上层 (#892) (b3453c5)
  • abc:st: 修复有过滤时图标无法高亮 (#889) (c9b374d)
  • abc:st: 修复点击过滤图标会触发排序 (#889) (c9b374d)
  • abc:se: 修复内嵌时错位 (#886) (2b3f998)
  • abc:se: 修复 inline 布局时 col="1" 应为一整行 (#886) (2b3f998)
  • sf:widget:date: 修复默认值为空时会触发格式化动作 (#890) (bedd102)
  • theme:style:utils: 修复 flex-center-between 样式不正确 (#886) (2b3f998)
  • theme:style:utils: 修复两个 nzType="link" 按钮不应该有空白间距 (#886) (2b3f998)
  • cli:plugin:ie: 修复依赖包无效版本号 (#888) (35de0d0)

9.2.1

06 May 16:45
dbc0bb8
Compare
Choose a tag to compare

Bug Fixes


Bug Fixes