Skip to content

Commit

Permalink
release(11.6.0): release 11.6.0 (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Feb 7, 2021
1 parent 0fc6cef commit 88c2a1c
Show file tree
Hide file tree
Showing 7 changed files with 185 additions and 55 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# [11.6.0](https://github.com/ng-alain/delon/compare/11.3.1...11.6.0) (2021-02-07)


### Bug Fixes

* **abc:auto-focus:** add `delay` property ([#1165](https://github.com/ng-alain/delon/issues/1165)) ([558fb02](https://github.com/ng-alain/delon/commit/558fb0211a4096b02dd7f9648cb2fc57b9641a32))
* **abc:st:** fix to top can't working ([#1153](https://github.com/ng-alain/delon/issues/1153)) ([93e314d](https://github.com/ng-alain/delon/commit/93e314de1c4d42117d25fc8f620e4176016cda64))
* **cli:ng-update:** Cannot read property 'configurations' of undefined ([#1156](https://github.com/ng-alain/delon/issues/1156)) ([26d41e1](https://github.com/ng-alain/delon/commit/26d41e1efed154e0cdf477db88d2440a2c40b9ae))
* **theme:_HttpClient:** fix count when subscribed ([#1157](https://github.com/ng-alain/delon/issues/1157)) ([a6b375a](https://github.com/ng-alain/delon/commit/a6b375ab89c80f012bca3f5abf26686f0bbee118))
* fix less4 ([#1155](https://github.com/ng-alain/delon/issues/1155)) ([331b009](https://github.com/ng-alain/delon/commit/331b0095bbe725e1a192225cc25178da307e8c6e))


### Features

* **abc:auto-focus:** add `auto-focus` component ([#1161](https://github.com/ng-alain/delon/issues/1161)) ([c02b755](https://github.com/ng-alain/delon/commit/c02b7552220d0bdbb4a56d435eac3640e785d966))
* **abc:highlight:** add `highlight` component ([#1160](https://github.com/ng-alain/delon/issues/1160)) ([0d940c3](https://github.com/ng-alain/delon/commit/0d940c354421ddb110ac2ccbe229bf0332703dda))
* **abc:st:** add `contextmenu` property ([#1169](https://github.com/ng-alain/delon/issues/1169)) ([6461428](https://github.com/ng-alain/delon/commit/6461428e94a6ee7b6954ad54ce27964b6fb3245b))
* **abc:st:** add `showHeader` property ([#1151](https://github.com/ng-alain/delon/issues/1151)) ([47f0447](https://github.com/ng-alain/delon/commit/47f044769932c58ccca5502913f20f39a55b1746))
* **util:ArrayService:** add `findTree` method ([#1164](https://github.com/ng-alain/delon/issues/1164)) ([12bf232](https://github.com/ng-alain/delon/commit/12bf2320f66c8f8c3e36cfbcbc95dd640c780b60))
* **util:token:** add tokens ([#1162](https://github.com/ng-alain/delon/issues/1162)) ([1a4b9d7](https://github.com/ng-alain/delon/commit/1a4b9d78767f3e631dca530548e8989dba8a7c2a))
* support data type of `STColumn` ([#1159](https://github.com/ng-alain/delon/issues/1159)) ([dadba41](https://github.com/ng-alain/delon/commit/dadba4187ee984ee4db63a18312ebe72a8f4c021))
* **util:pipes:** add `filter` pipe ([#1158](https://github.com/ng-alain/delon/issues/1158)) ([ac8f768](https://github.com/ng-alain/delon/commit/ac8f7688a45824945c841805fff2fc19d19429e8))



## [11.3.1](https://github.com/ng-alain/delon/compare/11.3.0...11.3.1) (2021-01-28)


Expand Down
56 changes: 56 additions & 0 deletions docs/changelog.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,62 @@ NG-ALAIN strictly follows [Semantic Versioning 2.0.0](http://semver.org/lang/zh-

---

# [11.6.0](https://github.com/ng-alain/delon/compare/11.3.1...11.6.0) (2021-02-07)

**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](https://ng-alain.com/util/getting-started/en).
In addition, **Recommendation** Use `nz-range-picker` and `extend` directive to replace `range-picker`, will remove `range-picker` at `12.0.0`.

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

Changed to:

```html
<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](https://github.com/ng-alain/ng-alain/pull/1929))
* used @delon/util second entry ([#1927](https://github.com/ng-alain/ng-alain/pull/1927))

### Bug Fixes

* **abc:st:** fix to top can't working ([#1153](https://github.com/ng-alain/delon/issues/1153)) ([93e314d](https://github.com/ng-alain/delon/commit/93e314de1c4d42117d25fc8f620e4176016cda64))
* **cli:ng-update:** Cannot read property 'configurations' of undefined ([#1156](https://github.com/ng-alain/delon/issues/1156)) ([26d41e1](https://github.com/ng-alain/delon/commit/26d41e1efed154e0cdf477db88d2440a2c40b9ae))
* **theme:_HttpClient:** fix count when subscribed ([#1157](https://github.com/ng-alain/delon/issues/1157)) ([a6b375a](https://github.com/ng-alain/delon/commit/a6b375ab89c80f012bca3f5abf26686f0bbee118))
* **theme** fix less4 ([#1155](https://github.com/ng-alain/delon/issues/1155)) ([331b009](https://github.com/ng-alain/delon/commit/331b0095bbe725e1a192225cc25178da307e8c6e))

### Features

* **abc:auto-focus:** add `auto-focus` component ([#1161](https://github.com/ng-alain/delon/issues/1161)) ([c02b755](https://github.com/ng-alain/delon/commit/c02b7552220d0bdbb4a56d435eac3640e785d966))
* **abc:range-picker** add `extend` directive to replace `range-picker` component ([#1167](https://github.com/ng-alain/delon/issues/1167))
* **abc:highlight:** add `highlight` component ([#1160](https://github.com/ng-alain/delon/issues/1160)) ([0d940c3](https://github.com/ng-alain/delon/commit/0d940c354421ddb110ac2ccbe229bf0332703dda))
* **abc:st:** add `contextmenu` property ([#1169](https://github.com/ng-alain/delon/issues/1169)) ([6461428](https://github.com/ng-alain/delon/commit/6461428e94a6ee7b6954ad54ce27964b6fb3245b))
* **abc:st:** add `showHeader` property ([#1151](https://github.com/ng-alain/delon/issues/1151)) ([47f0447](https://github.com/ng-alain/delon/commit/47f044769932c58ccca5502913f20f39a55b1746))
* **abc:st** support strongly data type of `STColumn` ([#1159](https://github.com/ng-alain/delon/issues/1159)) ([dadba41](https://github.com/ng-alain/delon/commit/dadba4187ee984ee4db63a18312ebe72a8f4c021))
* **util:ArrayService:** add `findTree` method ([#1164](https://github.com/ng-alain/delon/issues/1164)) ([12bf232](https://github.com/ng-alain/delon/commit/12bf2320f66c8f8c3e36cfbcbc95dd640c780b60))
* **util:token:** add tokens ([#1162](https://github.com/ng-alain/delon/issues/1162)) ([1a4b9d7](https://github.com/ng-alain/delon/commit/1a4b9d78767f3e631dca530548e8989dba8a7c2a))
* **util:pipes:** add `filter` pipe ([#1158](https://github.com/ng-alain/delon/issues/1158)) ([ac8f768](https://github.com/ng-alain/delon/commit/ac8f7688a45824945c841805fff2fc19d19429e8))
* **util** refactor util ([#1154](https://github.com/ng-alain/delon/issues/1154))


## [11.3.1](https://github.com/ng-alain/delon/compare/11.3.0...11.3.1) (2021-01-28)

### Bug Fixes
Expand Down
56 changes: 56 additions & 0 deletions docs/changelog.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,62 @@ NG-ALAIN 严格遵循 [Semantic Versioning 2.0.0](http://semver.org/lang/zh-CN/)

---

# [11.6.0](https://github.com/ng-alain/delon/compare/11.3.1...11.6.0) (2021-02-07)

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

本次主要针对 `@delon/util` 的重构,在原来的基础进一步分类并新增一些常见的工具类,NG-ALAIN把其分为:
- `@delon/util/array` 数组与树相关,数组、树、查找树、扁平、分组、去重
- `@delon/util/browser` 浏览器相关,`CookieServicew``copy``ScrollService`
- `@delon/util/date-time` 日期时间转换
- `@delon/util/decorator` 装饰器
- `@delon/util/form` 响应式表单校验
- `@delon/util/format` 字符,校验,货币,掩码
- `@delon/util/math` 范围、四舍五入
- `@delon/util/token` 访问 `Window``visibilitychange`
- `@delon/util/other` 深获取、拷贝、合并、延迟、断言
- `@delon/util/pipes` 包含 `price`, `mega`, `cny`, `filter`, `mask` 管道

> 有关更多细节请参考 @delon/util [文档](https://ng-alain.com/util/getting-started/zh)
除此之外,**建议**使用 `nz-range-picker``extend` 指令配合来替代 `range-picker`,NG-ALAIN 将在 `12.0.0` 时移除 `range-picker`

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

变更为:

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

### Scaffold

* 修复小屏幕下无法多次打开搜索框 ([#1929](https://github.com/ng-alain/ng-alain/pull/1929))
* 优化使用次级导入 `@delon/util` ([#1927](https://github.com/ng-alain/ng-alain/pull/1927))

### Bug Fixes

* **abc:st:** 修复 `toTop` 无法工作问题 ([#1153](https://github.com/ng-alain/delon/issues/1153)) ([93e314d](https://github.com/ng-alain/delon/commit/93e314de1c4d42117d25fc8f620e4176016cda64))
* **cli:ng-update:** 修复 `Cannot read property 'configurations' of undefined` 错误 ([#1156](https://github.com/ng-alain/delon/issues/1156)) ([26d41e1](https://github.com/ng-alain/delon/commit/26d41e1efed154e0cdf477db88d2440a2c40b9ae))
* **theme:_HttpClient:** 修复未订阅时不进行计数 ([#1157](https://github.com/ng-alain/delon/issues/1157)) ([a6b375a](https://github.com/ng-alain/delon/commit/a6b375ab89c80f012bca3f5abf26686f0bbee118))
* **theme** 修复部分样式不支持 less4 问题 ([#1155](https://github.com/ng-alain/delon/issues/1155)) ([331b009](https://github.com/ng-alain/delon/commit/331b0095bbe725e1a192225cc25178da307e8c6e))

### Features

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


## [11.3.1](https://github.com/ng-alain/delon/compare/11.3.0...11.3.1) (2021-01-28)

### Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "delon",
"version": "11.3.1",
"version": "11.6.0",
"description": "Delon is a set of essential modules for NG-ALAIN.",
"keywords": [
"delon",
Expand Down
50 changes: 23 additions & 27 deletions packages/abc/date-picker/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,41 +10,37 @@ Based on the `nz-range-picker` further optimization, better service to start and

## API

### range-picker
### [extend]

It needs to be used with [nz-range-picker](https://ng.ant.design/components/date-picker/zh#nz-range-picker), for example:

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

| Property | Description | Type | Default | Global Config |
|----------|-------------|------|---------|---------------|
| `[(ngModel)]` | Start date, start and end values at the same time | `Date` | - | |
| `[(ngModelEnd)]` | End date, start and end values at the same time | `Date` | - | |
| `[shortcut]` | Set shortcuts | `boolean | DateRangePickerShortcut` | `false` ||
| `[nzAllowClear]` | Whether to show clear button | `boolean` | `true` ||
| `[nzAutoFocus]` | get focus when component mounted | `boolean` | `false` ||
| `[nzClassName]` | picker className | `string` | `''` ||
| `[nzDateRender]` | custom rendering function for date cells (Not support by month-picker/year-picker) | `TemplateRef<Date>|string|((d: Date) => TemplateRef<Date>|string)` | - | |
| `[nzDisabled]` | determine whether the nz-date-picker is disabled | `boolean` | `false` | |
| `[nzDisabledDate]` | specify the date that cannot be selected (Not support by year-picker) | `(current: Date) => boolean` | - ||
| `[nzLocale]` | localization configuration | `object` | [default](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json) | |
| `[nzOpen]` | open state of picker | `boolean` | - | |
| `[nzPopupStyle]` | to customize the style of the popup calendar | `object` | `{}` ||
| `[nzDropdownClassName]` | to customize the className of the popup calendar | `string` | - ||
| `[nzSize]` | determine the size of the input box, the height of `large` and `small`, are 40px and 24px respectively, while default size is 32px | `'large'|'small'` | - ||
| `[nzStyle]` | to customize the style of the input box | `object` | `{}` ||
| `[nzDisabledTime]` | to specify the time that cannot be selected | `(current: Date, partial: 'start'|'end') => { nzDisabledHours, nzDisabledMinutes, nzDisabledSeconds }` | - ||
| `[nzFormat]` | to set the date format | `string` | `"yyyy-MM-dd"` ||
| `[nzRanges]` | preseted ranges for quick selection | `{ [ key: string ]: Date[] }` | - ||
| `[nzRenderExtraFooter]` | render extra footer in panel | `TemplateRef|string|(() => TemplateRef|string)` | - | |
| `[nzShowTime]` | to provide an additional time selection | `object|boolean` | [TimePicker Options](/components/time-picker/en#api) ||
| `[nzPlaceHolder]` | placeholder of date input | `string[]` | - | |
| `(nzOnOk)` | click ok callback | `EventEmitter<Date[]>` | - | |
| `(ngModelChange)` | Date change callback | `EventEmitter<Date[]>` | - | |
| `(nzOnOpenChange)` | a callback emitter, can be executed whether the popup calendar is popped up or closed | `EventEmitter<boolean>` | - | |

> Support for all attributes of [nz-range-picker](https://ng.ant.design/components/date-picker/zh#nz-range-picker).
### DateRangePickerShortcut

#### DateRangePickerShortcut

| Property | Description | Type | Default |
|----------|-------------|------|---------|
| `[enabled]` | Whether to enable | `boolean` | `false` |
| `[closed]` | Whether to close the panel after clicking | `boolean` | `true` |
| `[enabled]` | Shortcut list | `DateRangePickerShortcutItem[]` | `今天,昨天,近3天,近7天,本周,本月,全年` |

### range-picker

**Deprecated** Use `nz-range-picker` and `extend` directive to replace `range-picker`, will remove `range-picker` at `12.0.0`.

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

Changed to:

```html
<nz-range-picker [(ngModel)]="i.start" extend [(ngModelEnd)]="i.end"></nz-range-picker>
```
49 changes: 23 additions & 26 deletions packages/abc/date-picker/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,37 @@ module: import { DateRangeModule } from '@delon/abc/date-picker';

## API

### range-picker
### [extend]

需要配合 [nz-range-picker](https://ng.ant.design/components/date-picker/zh#nz-range-picker) 一起使用,例如:

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

| 成员 | 说明 | 类型 | 默认值 | 全局配置 |
|----|----|----|-----|------|
| `[(ngModel)]` | 开始日期,开始与结束同时有值才会生效 | `Date` | - | |
| `[(ngModelEnd)]` | 结束日期,开始与结束同时有值才会生效 | `Date` | - | |
| `[shortcut]` | 设置快捷键 | `boolean, DateRangePickerShortcut` | `false` ||
| `[nzAllowClear]` | 是否显示清除按钮 | `boolean` | `true` ||
| `[nzAutoFocus]` | 自动获取焦点 | `boolean` | `false` ||
| `[nzClassName]` | 选择器 className | `string` | `''` ||
| `[nzDateRender]` | 自定义日期单元格的内容(month-picker/year-picker不支持) | `TemplateRef<Date>\|string|\((d: Date) => TemplateRef<Date>|string)` | - | |
| `[nzDisabled]` | 禁用 | `boolean` | `false` | |
| `[nzDisabledDate]` | 不可选择的日期(year-picker不支持) | `(current: Date) => boolean` | - ||
| `[nzLocale]` | 国际化配置 | `object` | [默认配置](https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json) | |
| `[nzOpen]` | 控制弹层是否展开 | `boolean` | - | |
| `[nzPopupStyle]` | 额外的弹出日历样式 | `object` | `{}` ||
| `[nzDropdownClassName]` | 额外的弹出日历 className | `string` | - ||
| `[nzSize]` | 输入框大小,`large` 高度为 40px,`small` 为 24px,默认是 32px | `'large'|'small'` | - ||
| `[nzStyle]` | 自定义输入框样式 | `object` | `{}` ||
| `[nzDisabledTime]` | 不可选择的时间 | `(current: Date, partial: 'start'|'end') => { nzDisabledHours, nzDisabledMinutes, nzDisabledSeconds }` | - ||
| `[nzFormat]` | 展示的日期格式 | `string` | `"yyyy-MM-dd"` ||
| `[nzRanges]` | 预设时间范围快捷选择 | `{ [ key: string ]: Date[] }` | - ||
| `[nzRenderExtraFooter]` | 在面板中添加额外的页脚 | `TemplateRef|string|(() => TemplateRef|string)` | - | |
| `[nzShowTime]` | 增加时间选择功能 | `object|boolean` | [TimePicker Options](/components/time-picker/zh#api) ||
| `[nzPlaceHolder]` | 输入框提示文字 | `string[]` | - | |
| `(nzOnOk)` | 点击确定按钮的回调 | `EventEmitter<Date[]>` | - | |
| `(nzOnOpenChange)` | 弹出和关闭的回调 | `EventEmitter<boolean>` | - | |

> 支持 [nz-range-picker](https://ng.ant.design/components/date-picker/zh#nz-range-picker) 的所有属性。
### DateRangePickerShortcut

#### DateRangePickerShortcut

| 成员 | 说明 | 类型 | 默认值 |
|----|----|----|-----|
| `[enabled]` | 是否启用 | `boolean` | `false` |
| `[closed]` | 是否点击后立即关闭面板 | `boolean` | `true` |
| `[enabled]` | 快捷列表 | `DateRangePickerShortcutItem[]` | `今天,昨天,近3天,近7天,本周,本月,全年` |

### range-picker

**已过期**使用 `nz-range-picker``extend` 指令配合来替代 `range-picker`,NG-ALAIN 将在 `12.0.0` 时移除 `range-picker`

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

变更为:

```html
<nz-range-picker [(ngModel)]="i.start" extend [(ngModelEnd)]="i.end"></nz-range-picker>
```
2 changes: 1 addition & 1 deletion packages/abc/date-picker/range.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { FunctionProp, NzSafeAny } from 'ng-zorro-antd/core/types';
import { NzRangePickerComponent } from 'ng-zorro-antd/date-picker';

/**
* @deprecated Will be removed in 12.0.0, Pls used `[extend]` instead, for examples:
* @deprecated Will be removed in 12.0.0, Pls used `nz-range-picker` and `[extend]` directive instead, for examples:
* ```html
* <range-picker [(ngModel)]="i.start" [(ngModelEnd)]="i.end"></range-picker>
* ```
Expand Down

0 comments on commit 88c2a1c

Please sign in to comment.