github ng-alain/delon 11.6.0

latest releases: 18.2.0, 18.1.0, 18.0.2...
3 years ago

Happy Chinese New Year 🇨🇳🐂🧧 to all NG-ALAIN users, so we skipped the two minor version numbers and went directly to the 6 version. the 6 is likabled number in china. 🧧🧨🧧🧨🧧🧨

Mainly for refactor of @delon/util, NG-ALAIN divides them into:

  • @delon/util/array Array&Tree, findTree, flat, groupBy, uniq
  • @delon/util/browser Browser: CookieServicew, copy, ScrollService
  • @delon/util/date-time Date Time Conversion
  • @delon/util/decorator Decorator
  • @delon/util/form Reactive Forms
  • @delon/util/format String, Check, Currency, Mask
  • @delon/util/math Math, Rounding
  • @delon/util/token Visit Window, visibilitychange Web apis etc
  • @delon/util/other Deep get, copy, merge, lazy, assert
  • @delon/util/pipes Includes price, mega, cny, filter, mask pipes

Pls refer to @delon/util document.

In addition, Recommendation Use nz-range-picker and extend directive to replace range-picker, will remove range-picker at 12.0.0.

<range-picker [(ngModel)]="i.start" [(ngModelEnd)]="i.end"></range-picker>

Changed to:

<nz-range-picker [(ngModel)]="i.start" extend [(ngModelEnd)]="i.end"></nz-range-picker>

Scaffold

  • fix failure of toggle the search box multiple times in small screen (#1929)
  • used @delon/util second entry (#1927)

Bug Fixes

Features

  • abc:auto-focus: add auto-focus component (#1161) (c02b755)
  • abc:range-picker add extend directive to replace range-picker component (#1167)
  • abc:highlight: add highlight component (#1160) (0d940c3)
  • abc:st: add contextmenu property (#1169) (6461428)
  • abc:st: add showHeader property (#1151) (47f0447)
  • abc:st support strongly data type of STColumn (#1159) (dadba41)
  • util:ArrayService: add findTree method (#1164) (12bf232)
  • util:token: add tokens (#1162) (1a4b9d7)
  • util:pipes: add filter pipe (#1158) (ac8f768)
  • util refactor util (#1154)

祝大家牛年新年快乐 🇨🇳🐂🧧,为了讨喜NG-ALAIN将跳过两个次版本号,直接进入 6 版本,希望来年大家都能六六大顺。🧧🧨🧧🧨🧧🧨

本次主要针对 @delon/util 的重构,在原来的基础进一步分类并新增一些常见的工具类,NG-ALAIN把其分为:

  • @delon/util/array 数组与树相关,数组、树、查找树、扁平、分组、去重
  • @delon/util/browser 浏览器相关,CookieServicewcopyScrollService
  • @delon/util/date-time 日期时间转换
  • @delon/util/decorator 装饰器
  • @delon/util/form 响应式表单校验
  • @delon/util/format 字符,校验,货币,掩码
  • @delon/util/math 范围、四舍五入
  • @delon/util/token 访问 Windowvisibilitychange
  • @delon/util/other 深获取、拷贝、合并、延迟、断言
  • @delon/util/pipes 包含 price, mega, cny, filter, mask 管道

有关更多细节请参考 @delon/util 文档

除此之外,建议使用 nz-range-pickerextend 指令配合来替代 range-picker,NG-ALAIN 将在 12.0.0 时移除 range-picker

<range-picker [(ngModel)]="i.start" [(ngModelEnd)]="i.end"></range-picker>

变更为:

<nz-range-picker [(ngModel)]="i.start" extend [(ngModelEnd)]="i.end"></nz-range-picker>

Scaffold

  • 修复小屏幕下无法多次打开搜索框 (#1929)
  • 优化使用次级导入 @delon/util (#1927)

Bug Fixes

  • abc:st: 修复 toTop 无法工作问题 (#1153) (93e314d)
  • cli:ng-update: 修复 Cannot read property 'configurations' of undefined 错误 (#1156) (26d41e1)
  • theme:_HttpClient: 修复未订阅时不进行计数 (#1157) (a6b375a)
  • theme 修复部分样式不支持 less4 问题 (#1155) (331b009)

Features

  • abc:auto-focus: 新增 auto-focus 组件 (#1161) (c02b755)
  • abc:range-picker 新增 extend 指令来替代 range-picker 组件,尽可能保持 nz-range-picker 的原始性 (#1167)
  • abc:highlight: 新增 highlight 高亮组件 (#1160) (0d940c3)
  • abc:st: 新增 contextmenu 右键菜单 (#1169) (6461428)
  • abc:st: 新增 showHeader 是否显示表头属性 (#1151) (47f0447)
  • abc:st 新增 STColumn 支持强类型数据源 (#1159) (dadba41)
  • util:ArrayService: 新增 findTree 方法 (#1164) (12bf232)
  • util:token: 新增一组常见 Web Apis 的 tokens (#1162) (1a4b9d7)
  • util:pipes: 新增 filter 管道 (#1158) (ac8f768)
  • util 重构 @delon/util,新增数学、格式化、管道、浏览器、数组与树、断言等方法 (#1154)

Don't miss a new delon release

NewReleases is sending notifications on new releases.