From 7fddfd63b95955d56d8717f40f7e0d5502e8166c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Mon, 9 Jan 2023 16:00:55 +0800 Subject: [PATCH] release(15.0.0): release 15.0.0 (#1573) --- CHANGELOG.md | 14 +++ docs/changelog.en-US.md | 89 ++---------------- docs/changelog.zh-CN.md | 91 ++----------------- docs/upgrade-v14.en-US.md | 32 ------- docs/upgrade-v14.zh-CN.md | 33 ------- docs/upgrade-v15.en-US.md | 35 +++++++ docs/upgrade-v15.zh-CN.md | 37 ++++++++ package.json | 2 +- packages/theme/layout-default/index.en-US.md | 2 +- packages/theme/layout-default/index.zh-CN.md | 2 +- schematics/ng-add/index.ts | 2 +- .../core/code/files/sandbox.config.json.ts | 2 +- 12 files changed, 107 insertions(+), 234 deletions(-) delete mode 100644 docs/upgrade-v14.en-US.md delete mode 100644 docs/upgrade-v14.zh-CN.md create mode 100644 docs/upgrade-v15.en-US.md create mode 100644 docs/upgrade-v15.zh-CN.md diff --git a/CHANGELOG.md b/CHANGELOG.md index e69de29bb..185982354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -0,0 +1,14 @@ +# [15.0.0](https://github.com/ng-alain/delon/compare/14.3.0...15.0.0) (2023-01-09) + +### Bug Fixes + +* **abc:st:** fix `className` not applied to title ([#1569](https://github.com/ng-alain/delon/issues/1569)) ([d641164](https://github.com/ng-alain/delon/commit/d6411640f54bb41ebff254b2b221dc200a635a21)) +* **abc:theme-default:** remove unused parameter ([#1563](https://github.com/ng-alain/delon/issues/1563)) ([656bd89](https://github.com/ng-alain/delon/commit/656bd8993d9957697992842b2f25ad66e91e1a7f)) +* **cli:** fix `name` points to an invalid index ([#1568](https://github.com/ng-alain/delon/issues/1568)) ([d4ad502](https://github.com/ng-alain/delon/commit/d4ad50259e398cbbf680b1bc2f7aca1d7eb14e1e)) + + +### Features + +* **theme:layout-default:** add `layout-default-top-menu-item` ([#1570](https://github.com/ng-alain/delon/issues/1570)) ([f08dc46](https://github.com/ng-alain/delon/commit/f08dc46af7ad9ca5cf3e4fa5b0daef2cfbc0b4a5)) +* **util:format:** support scientific notation of `isNum` ([#1567](https://github.com/ng-alain/delon/issues/1567)) ([f8c0589](https://github.com/ng-alain/delon/commit/f8c05894e0a10fb6037275103b921698ca072494)) + diff --git a/docs/changelog.en-US.md b/docs/changelog.en-US.md index 3ea72bab1..57c5fd619 100644 --- a/docs/changelog.en-US.md +++ b/docs/changelog.en-US.md @@ -14,96 +14,23 @@ NG-ALAIN strictly follows [Semantic Versioning 2.0.0](http://semver.org/lang/zh- --- -# [14.3.0](https://github.com/ng-alain/delon/compare/14.2.0...14.3.0) (2022-12-04) +# [15.0.0](https://github.com/ng-alain/delon/compare/14.3.0...15.0.0) (2023-01-09) ### Bug Fixes -* **abc:st:** fix misalignment when sort and filter can be set ([#1556](https://github.com/ng-alain/delon/issues/1556)) ([5a77920](https://github.com/ng-alain/delon/commit/5a77920cae0e5db1d3400d68b13d712514de7a77)) -* **abc:st:** fix miss built-in style in head ([#1560](https://github.com/ng-alain/delon/issues/1560)) ([41fbae0](https://github.com/ng-alain/delon/commit/41fbae0483ec076f5265053736c0286d5f49c0cd)) -* **abc:st:** fix shadow spacing in truncate mode ([#1558](https://github.com/ng-alain/delon/issues/1558)) ([4b00b21](https://github.com/ng-alain/delon/commit/4b00b213fbf69da060f71618e2e9df8749f71363)) -* **from:** fix can't detect change when call `setValue` ([#1554](https://github.com/ng-alain/delon/issues/1554)) ([bc609b3](https://github.com/ng-alain/delon/commit/bc609b3172ebcf04511e0cc6437f8d8b2bc1d7b2)) +* **abc:st:** fix `className` not applied to title ([#1569](https://github.com/ng-alain/delon/issues/1569)) ([d641164](https://github.com/ng-alain/delon/commit/d6411640f54bb41ebff254b2b221dc200a635a21)) +* **abc:theme-default:** remove unused parameter ([#1563](https://github.com/ng-alain/delon/issues/1563)) ([656bd89](https://github.com/ng-alain/delon/commit/656bd8993d9957697992842b2f25ad66e91e1a7f)) +* **cli:** fix `name` points to an invalid index ([#1568](https://github.com/ng-alain/delon/issues/1568)) ([d4ad502](https://github.com/ng-alain/delon/commit/d4ad50259e398cbbf680b1bc2f7aca1d7eb14e1e)) ### Features -* **abc:st:** `columns` support `null`, `undefined` ([#1559](https://github.com/ng-alain/delon/issues/1559)) ([c74c992](https://github.com/ng-alain/delon/commit/c74c992c18167bef7b5f3bc2c3fa4da00414bf53)) -* **abc:sv:** add `hideLabel` property ([#1553](https://github.com/ng-alain/delon/issues/1553)) ([f71351b](https://github.com/ng-alain/delon/commit/f71351bbd6a5841cae4ef077cae62b72255bdc81)) -* **theme:default:** add `LayoutDefaultService` service of control theme, add hide top options ([#1561](https://github.com/ng-alain/delon/issues/1561)) ([bf90034](https://github.com/ng-alain/delon/commit/bf9003488508f4221f38174ce25ead2a1da39c7a)) - - -# [14.2.0](https://github.com/ng-alain/delon/compare/14.1.1...14.2.0) (2022-11-11) - -### Scaffold - -* Add press F1 to focus in top search ([#2314](https://github.com/ng-alain/ng-alain/pull/2314)) - -### Bug Fixes - -* **abc:st:** fix miss center title when set sort ([#1547](https://github.com/ng-alain/delon/issues/1547)) ([86c8ca1](https://github.com/ng-alain/delon/commit/86c8ca188f4398c30b69877b8c8874ad5b71d096)) -* **abc:st:** fix use pure recoard data for modal params ([#1541](https://github.com/ng-alain/delon/issues/1541)) ([04e97f1](https://github.com/ng-alain/delon/commit/04e97f1aa1fbc4e883bea8c8abdde462f068df95)) -* **cli:** upgrade `ng-alain-plugin-theme` ([#1545](https://github.com/ng-alain/delon/issues/1545)) ([591b604](https://github.com/ng-alain/delon/commit/591b60493d777e10bfd1b820d02b3f3151ff29fd)) - -### Features - -* **theme:setting-drawer:** add `lessJs` property ([#1544](https://github.com/ng-alain/delon/issues/1544)) ([9c5a1da](https://github.com/ng-alain/delon/commit/9c5a1da6b84e786ee7ba0051bebd6effb10ef083)) -* **abc:exception:** add `typeDict` of global config ([#1551](https://github.com/ng-alain/delon/issues/1551)) ([a408cbb](https://github.com/ng-alain/delon/commit/a408cbb0b5724221d9f9540c28226986ba43502d)) -* **abc:hotkey:** add `hotkey` component ([#1538](https://github.com/ng-alain/delon/issues/1538)) ([6913f01](https://github.com/ng-alain/delon/commit/6913f01f00f06c778cf454a8662fb48231c04377)) -* **abc:notice-icon:** add `centered` property ([#1546](https://github.com/ng-alain/delon/issues/1546)) ([df01dcc](https://github.com/ng-alain/delon/commit/df01dcc6c51e8bf6a13cfa1bf1a51f691ae87a7d)) -* **cli:sta:** add `tagsMapping` property ([#1549](https://github.com/ng-alain/delon/issues/1549)) ([4ed1aa4](https://github.com/ng-alain/delon/commit/4ed1aa4c677ebc572c6df1337a75e29c76d869ae)) -* **util:other:lazy:** add `attriburte` property ([#1548](https://github.com/ng-alain/delon/issues/1548)) ([a197bb1](https://github.com/ng-alain/delon/commit/a197bb1453b72b5645878dedd55f17d3436f93ae)) - - -## [14.1.1](https://github.com/ng-alain/delon/compare/14.1.0...14.1.1) (2022-10-14) - -### Bug Fixes - -* **form:** fix form multiple bind visibility ([#1531](https://github.com/ng-alain/delon/issues/1531)) ([a4e62ef](https://github.com/ng-alain/delon/commit/a4e62ef49b31f42beb850eb02aa53de536165df8)) -* **form:** fix missing error style ([#1537](https://github.com/ng-alain/delon/issues/1537)) ([14a7388](https://github.com/ng-alain/delon/commit/14a7388443805ed1f06e2ed81008ab51547e4c75)) - - -## [14.1.0](https://github.com/ng-alain/delon/compare/14.0.0...14.0.1) (2022-10-09) - -### Bug Fixes - -* **abc:reuse-tab:** fix can't refresh current tab ([#1529](https://github.com/ng-alain/delon/issues/1529)) ([2fb2d2b](https://github.com/ng-alain/delon/commit/2fb2d2b3af7c10255c0f0b4c82a823cee6c2c1d9)) -* **abc:st:** fix built-in style into to `className` ([#1525](https://github.com/ng-alain/delon/issues/1525)) ([b9e433d](https://github.com/ng-alain/delon/commit/b9e433da4a5d9fc0e88e5707753be4a8a3821a61)) -* **abc:st:** fix can't close panel when `showOPArea` is `true` ([#1527](https://github.com/ng-alain/delon/issues/1527)) ([7d8fbf5](https://github.com/ng-alain/delon/commit/7d8fbf56e369cb58ef189f5df41f8020369ca8b9)) -* **abc:st:** fix click trigger on blank area of sub-menus ([#1534](https://github.com/ng-alain/delon/issues/1534)) ([a807429](https://github.com/ng-alain/delon/commit/a80742910dfd1e4ce1e9c184469e49422ffb1a63)) -* **cli:** fix correctly returns undefined ([#1533](https://github.com/ng-alain/delon/issues/1533)) ([8b0be4c](https://github.com/ng-alain/delon/commit/8b0be4ca90b28a311262e000a27d5180015ce533)) -* **cli:** fix merge `allowedCommonJsDependencies` ([#1526](https://github.com/ng-alain/delon/issues/1526)) ([c43afb8](https://github.com/ng-alain/delon/commit/c43afb837e2619d1d92067c3fce78234ad5c814e)) - -### Features - -* **cli:** add dynamic start page ([#1524](https://github.com/ng-alain/delon/issues/1524)) ([1e1c165](https://github.com/ng-alain/delon/commit/1e1c165c97a3ebef427a8558f474366bac75651f)) - - -# [14.0.0](https://github.com/ng-alain/delon/compare/13.5.2...14.0.0) (2022-08-27) - -### Bug Fixes - -* **abc:se:** fix missing error style ([#1517](https://github.com/ng-alain/delon/issues/1517)) ([c01e3de](https://github.com/ng-alain/delon/commit/c01e3de016a3beaf241c2d94b2e034b71b7b60d9)) -* **form:** fix width style ([#1504](https://github.com/ng-alain/delon/issues/1504)) ([8ab8956](https://github.com/ng-alain/delon/commit/8ab89562255b561f2582f85ef9aa81b69e754e88)) -* **forum:array:** fix invalid `minItems` ([#1511](https://github.com/ng-alain/delon/issues/1511)) ([923d4f4](https://github.com/ng-alain/delon/commit/923d4f40c4ee43a17e159f95e355478aaeb6cf6b)) -* **theme:model** fix missing `xl` style in vertical ([#1506](https://github.com/ng-alain/delon/issues/1506)) ([5e1edee](https://github.com/ng-alain/delon/commit/5e1edeef6c8123b6a730006db337501b086cb874)) -* **theme:MenuService** fix hide when all children has hidden ([#1507](https://github.com/ng-alain/delon/issues/1507)) ([50f35a9](https://github.com/ng-alain/delon/commit/50f35a96120c7fca746bf4b4795d93e4ee78535e)) - -### Features - -* **abc:observers:** add `[observeSize]` directive ([#1501](https://github.com/ng-alain/delon/issues/1501)) ([8bebd30](https://github.com/ng-alain/delon/commit/8bebd30e7d32a8a2c5068a787b993a28330fd3f1)) -* **abc:pdf:** add `eventBus` property ([#1492](https://github.com/ng-alain/delon/issues/1492)) ([57f340f](https://github.com/ng-alain/delon/commit/57f340f497451e3548893fe6cf2726a349a46735)) -* **abc:reuse-tab:** add `canClose` property ([#1497](https://github.com/ng-alain/delon/issues/1497)) ([347745a](https://github.com/ng-alain/delon/commit/347745ae2f7faa0c6a3780b62a422021fa424b7c)) -* **abc:reuse-tab:** support status of the last browser closed ([#1493](https://github.com/ng-alain/delon/issues/1493)) ([94f2986](https://github.com/ng-alain/delon/commit/94f2986413a01ab658c861866d77cc529a4c5e0d)) -* **abc:st:** add function of `reName` ([#1500](https://github.com/ng-alain/delon/issues/1500)) ([9a0c96e](https://github.com/ng-alain/delon/commit/9a0c96eed22436a566221943fe01dfa520bbbccf)) -* **abc:st:** add whether to ignore `null` or `undefined` value ([#1515](https://github.com/ng-alain/delon/issues/1515)) ([4747bcd](https://github.com/ng-alain/delon/commit/4747bcdc476ee819bc229b52823fed1f5349be67)) -* **form:select:** add `hide` property ([#1516](https://github.com/ng-alain/delon/issues/1516)) ([6df7c38](https://github.com/ng-alain/delon/commit/6df7c389b505a71667f71b96d05e818676172537)) -* **form:** add `visibleIfLogical` logical type ([#1496](https://github.com/ng-alain/delon/issues/1496)) ([7af1397](https://github.com/ng-alain/delon/commit/7af13975d93a856fcbb5195bd9da3d2cf0fddf68)) -* **theme:title:** add `selector` property ([#1487](https://github.com/ng-alain/delon/issues/1487)) ([b15f35f](https://github.com/ng-alain/delon/commit/b15f35f6603402595c59ec1b8b38703c4c4da2aa)) -* **theme:** add `ALLOW_ANONYMOUS`, `CUSTOM_ERROR`, `IGNORE_BASE_URL`, `RAW_BODY` ([#1486](https://github.com/ng-alain/delon/issues/1486)) ([4a6755e](https://github.com/ng-alain/delon/commit/4a6755ef078275ee3ae4cd996570cd9259ab5aec)) -* **util:** add `omit` ([#1519](https://github.com/ng-alain/delon/issues/1519)) ([15bb062](https://github.com/ng-alain/delon/commit/15bb062240d282e7635bea90cdff31d732618d40)) -* **theme:MenuService** allow control open via service ([#1507](https://github.com/ng-alain/delon/issues/1507)) ([50f35a9](https://github.com/ng-alain/delon/commit/50f35a96120c7fca746bf4b4795d93e4ee78535e)) +* **theme:layout-default:** add `layout-default-top-menu-item`, please refer to [layout.component.ts](https://github.com/ng-alain/delon/blob/master/src/dev/layout.component.ts#L65-L72)([Preview](https://ng-alain.com/dev/home)). ([#1570](https://github.com/ng-alain/delon/issues/1570)) ([f08dc46](https://github.com/ng-alain/delon/commit/f08dc46af7ad9ca5cf3e4fa5b0daef2cfbc0b4a5)) +* **util:format:** support scientific notation of `isNum` ([#1567](https://github.com/ng-alain/delon/issues/1567)) ([f8c0589](https://github.com/ng-alain/delon/commit/f8c05894e0a10fb6037275103b921698ca072494)) ### BREAKING CHANGE -* **theme:MenuService** `collapsed` instead of `open` ([#1507](https://github.com/ng-alain/delon/issues/1507)) ([50f35a9](https://github.com/ng-alain/delon/commit/50f35a96120c7fca746bf4b4795d93e4ee78535e)) +- **auth:** removed `_allow_anonymous`, use [ALLOW_ANONYMOUS](https://github.com/ng-alain/delon/blob/master/packages/auth/src/token.ts) `HttpContext` instead +- **theme:** removed `getHit`, `openedByUrl` in `MenuService`, use `find` and `setItem` instead ## Old Versions diff --git a/docs/changelog.zh-CN.md b/docs/changelog.zh-CN.md index d16064e70..a3bd69d6b 100644 --- a/docs/changelog.zh-CN.md +++ b/docs/changelog.zh-CN.md @@ -14,98 +14,23 @@ NG-ALAIN 严格遵循 [Semantic Versioning 2.0.0](http://semver.org/lang/zh-CN/) --- - -# [14.3.0](https://github.com/ng-alain/delon/compare/14.2.0...14.3.0) (2022-12-04) +# [15.0.0](https://github.com/ng-alain/delon/compare/14.3.0...15.0.0) (2023-01-09) ### Bug Fixes -* **abc:st:** 修复排序与过滤共享时不对齐 ([#1556](https://github.com/ng-alain/delon/issues/1556)) ([5a77920](https://github.com/ng-alain/delon/commit/5a77920cae0e5db1d3400d68b13d712514de7a77)) -* **abc:st:** 修复内置样式无法适应到标题 ([#1560](https://github.com/ng-alain/delon/issues/1560)) ([41fbae0](https://github.com/ng-alain/delon/commit/41fbae0483ec076f5265053736c0286d5f49c0cd)) -* **abc:st:** 修复宽带模式为截取时阴影间距问题 ([#1558](https://github.com/ng-alain/delon/issues/1558)) ([4b00b21](https://github.com/ng-alain/delon/commit/4b00b213fbf69da060f71618e2e9df8749f71363)) -* **from:** 修复调用 `setValue` 无法触发变更检测 ([#1554](https://github.com/ng-alain/delon/issues/1554)) ([bc609b3](https://github.com/ng-alain/delon/commit/bc609b3172ebcf04511e0cc6437f8d8b2bc1d7b2)) +* **abc:st:** 修复 `className` 没有应用到标题 ([#1569](https://github.com/ng-alain/delon/issues/1569)) ([d641164](https://github.com/ng-alain/delon/commit/d6411640f54bb41ebff254b2b221dc200a635a21)) +* **abc:theme-default:** 移除一些未用到有参数 ([#1563](https://github.com/ng-alain/delon/issues/1563)) ([656bd89](https://github.com/ng-alain/delon/commit/656bd8993d9957697992842b2f25ad66e91e1a7f)) +* **cli:** 修复 `name` 参数指定无效索引位 ([#1568](https://github.com/ng-alain/delon/issues/1568)) ([d4ad502](https://github.com/ng-alain/delon/commit/d4ad50259e398cbbf680b1bc2f7aca1d7eb14e1e)) ### Features -* **abc:st:** `columns` 允许 `null`, `undefined` 值 ([#1559](https://github.com/ng-alain/delon/issues/1559)) ([c74c992](https://github.com/ng-alain/delon/commit/c74c992c18167bef7b5f3bc2c3fa4da00414bf53)) -* **abc:sv:** 新增 `hideLabel` 隐藏标签属性 ([#1553](https://github.com/ng-alain/delon/issues/1553)) ([f71351b](https://github.com/ng-alain/delon/commit/f71351bbd6a5841cae4ef077cae62b72255bdc81)) -* **theme:default:** 新增 `LayoutDefaultService` 服务用于控件整体布局,新增隐藏顶部、侧边折叠菜单按钮配置 ([#1561](https://github.com/ng-alain/delon/issues/1561)) ([bf90034](https://github.com/ng-alain/delon/commit/bf9003488508f4221f38174ce25ead2a1da39c7a)) - - -# [14.2.0](https://github.com/ng-alain/delon/compare/14.1.1...14.2.0) (2022-11-11) - -### Scaffold - -* 添加按 `F1` 顶部搜索框获得焦点 ([#2314](https://github.com/ng-alain/ng-alain/pull/2314)) - -### Bug Fixes - -* **abc:st:** 修复设置排序时居中失效 ([#1547](https://github.com/ng-alain/delon/issues/1547)) ([86c8ca1](https://github.com/ng-alain/delon/commit/86c8ca188f4398c30b69877b8c8874ad5b71d096)) -* **abc:st:** 修复 modal 参数支持返回纯净数据(过滤 `_values` 等) ([#1541](https://github.com/ng-alain/delon/issues/1541)) ([04e97f1](https://github.com/ng-alain/delon/commit/04e97f1aa1fbc4e883bea8c8abdde462f068df95)) -* **cli:** 更新 `ng-alain-plugin-theme` ([#1545](https://github.com/ng-alain/delon/issues/1545)) ([591b604](https://github.com/ng-alain/delon/commit/591b60493d777e10bfd1b820d02b3f3151ff29fd)) - -### Features - -* **theme:setting-drawer:** 新增 `lessJs` 属性 ([#1544](https://github.com/ng-alain/delon/issues/1544)) ([9c5a1da](https://github.com/ng-alain/delon/commit/9c5a1da6b84e786ee7ba0051bebd6effb10ef083)) -* **abc:exception:** 新增全局配置项 `typeDict` ([#1551](https://github.com/ng-alain/delon/issues/1551)) ([a408cbb](https://github.com/ng-alain/delon/commit/a408cbb0b5724221d9f9540c28226986ba43502d)) -* **abc:hotkey:** 新增 `hotkey` 热键组件 ([#1538](https://github.com/ng-alain/delon/issues/1538)) ([6913f01](https://github.com/ng-alain/delon/commit/6913f01f00f06c778cf454a8662fb48231c04377)) -* **abc:notice-icon:** 新增 `centered` 属性 ([#1546](https://github.com/ng-alain/delon/issues/1546)) ([df01dcc](https://github.com/ng-alain/delon/commit/df01dcc6c51e8bf6a13cfa1bf1a51f691ae87a7d)) -* **cli:sta:** 新增 `tagsMapping` 属性,支持只 Tags 映射转换 ([#1549](https://github.com/ng-alain/delon/issues/1549)) ([4ed1aa4](https://github.com/ng-alain/delon/commit/4ed1aa4c677ebc572c6df1337a75e29c76d869ae)) -* **util:other:lazy:** 新增 `attriburte` 属性,支持自定义 `script` 或 `link` 属性 ([#1548](https://github.com/ng-alain/delon/issues/1548)) ([a197bb1](https://github.com/ng-alain/delon/commit/a197bb1453b72b5645878dedd55f17d3436f93ae)) - - -## [14.1.1](https://github.com/ng-alain/delon/compare/14.1.0...14.1.1) (2022-10-14) - -### Bug Fixes - -* **form:** 修复可显会引发多次绑定 ([#1531](https://github.com/ng-alain/delon/issues/1531)) ([a4e62ef](https://github.com/ng-alain/delon/commit/a4e62ef49b31f42beb850eb02aa53de536165df8)) -* **form:** 修复丢失错误样式 ([#1537](https://github.com/ng-alain/delon/issues/1537)) ([14a7388](https://github.com/ng-alain/delon/commit/14a7388443805ed1f06e2ed81008ab51547e4c75)) - - -## [14.1.0](https://github.com/ng-alain/delon/compare/14.0.0...14.0.1) (2022-10-09) - -### Bug Fixes - -* **abc:reuse-tab:** 修复无法刷新当前页 ([#1529](https://github.com/ng-alain/delon/issues/1529)) ([2fb2d2b](https://github.com/ng-alain/delon/commit/2fb2d2b3af7c10255c0f0b4c82a823cee6c2c1d9)) -* **abc:st:** 修复当指定 `className` 时导致内置样式失效 ([#1525](https://github.com/ng-alain/delon/issues/1525)) ([b9e433d](https://github.com/ng-alain/delon/commit/b9e433da4a5d9fc0e88e5707753be4a8a3821a61)) -* **abc:st:** 修复 `showOPArea` 为 `true` 时无法关闭面板 ([#1527](https://github.com/ng-alain/delon/issues/1527)) ([7d8fbf5](https://github.com/ng-alain/delon/commit/7d8fbf56e369cb58ef189f5df41f8020369ca8b9)) -* **abc:st:** 修复子菜单下点击空白区域无法触发事件 ([#1534](https://github.com/ng-alain/delon/issues/1534)) ([a807429](https://github.com/ng-alain/delon/commit/a80742910dfd1e4ce1e9c184469e49422ffb1a63)) -* **cli:** 修复初始化NG-ALAIN时 `startup.service.ts` 不正确返回 `undefined` ([#1533](https://github.com/ng-alain/delon/issues/1533)) ([8b0be4c](https://github.com/ng-alain/delon/commit/8b0be4ca90b28a311262e000a27d5180015ce533)) -* **cli:** 修复多余 `allowedCommonJsDependencies` 项 ([#1526](https://github.com/ng-alain/delon/issues/1526)) ([c43afb8](https://github.com/ng-alain/delon/commit/c43afb837e2619d1d92067c3fce78234ad5c814e)) - -### Features - -* **cli:** 新增动态启动页 ([#1524](https://github.com/ng-alain/delon/issues/1524)) ([1e1c165](https://github.com/ng-alain/delon/commit/1e1c165c97a3ebef427a8558f474366bac75651f)) - - -# [14.0.0](https://github.com/ng-alain/delon/compare/13.5.2...14.0.0) (2022-08-27) - -### Bug Fixes - -* **abc:se:** 修复缺失错误红色边框样式 ([#1517](https://github.com/ng-alain/delon/issues/1517)) ([c01e3de](https://github.com/ng-alain/delon/commit/c01e3de016a3beaf241c2d94b2e034b71b7b60d9)) -* **form:** 修复缺失宽度样式 ([#1504](https://github.com/ng-alain/delon/issues/1504)) ([8ab8956](https://github.com/ng-alain/delon/commit/8ab89562255b561f2582f85ef9aa81b69e754e88)) -* **forum:array:** 修复 `minItems` 不生效 ([#1511](https://github.com/ng-alain/delon/issues/1511)) ([923d4f4](https://github.com/ng-alain/delon/commit/923d4f40c4ee43a17e159f95e355478aaeb6cf6b)) -* **theme:model** 修复垂直模式缺失 `xl` 样式 ([#1506](https://github.com/ng-alain/delon/issues/1506)) ([5e1edee](https://github.com/ng-alain/delon/commit/5e1edeef6c8123b6a730006db337501b086cb874)) -* **theme:MenuService** 修复子项都隐藏时应隐藏项 ([#1507](https://github.com/ng-alain/delon/issues/1507)) ([50f35a9](https://github.com/ng-alain/delon/commit/50f35a96120c7fca746bf4b4795d93e4ee78535e)) - -### Features - -* **abc:observers:** 新增 `[observeSize]` 指令,用于观察DOM大小变化 ([#1501](https://github.com/ng-alain/delon/issues/1501)) ([8bebd30](https://github.com/ng-alain/delon/commit/8bebd30e7d32a8a2c5068a787b993a28330fd3f1)) -* **abc:pdf:** 新增 `eventBus` 属性 ([#1492](https://github.com/ng-alain/delon/issues/1492)) ([57f340f](https://github.com/ng-alain/delon/commit/57f340f497451e3548893fe6cf2726a349a46735)) -* **abc:reuse-tab:** 新增 `canClose` 属性 ([#1497](https://github.com/ng-alain/delon/issues/1497)) ([347745a](https://github.com/ng-alain/delon/commit/347745ae2f7faa0c6a3780b62a422021fa424b7c)) -* **abc:reuse-tab:** 新增保留最后一次打开状态 ([#1493](https://github.com/ng-alain/delon/issues/1493)) ([94f2986](https://github.com/ng-alain/delon/commit/94f2986413a01ab658c861866d77cc529a4c5e0d)) -* **abc:st:** 新增 `reName` 支持自定义函数 ([#1500](https://github.com/ng-alain/delon/issues/1500)) ([9a0c96e](https://github.com/ng-alain/delon/commit/9a0c96eed22436a566221943fe01dfa520bbbccf)) -* **abc:st:** 新增请求远程数据时是否忽略 `null` 或 `undefined` 值的数据 ([#1515](https://github.com/ng-alain/delon/issues/1515)) ([4747bcd](https://github.com/ng-alain/delon/commit/4747bcdc476ee819bc229b52823fed1f5349be67)) -* **form:select:** 新增 `hide` 隐藏 ([#1516](https://github.com/ng-alain/delon/issues/1516)) ([6df7c38](https://github.com/ng-alain/delon/commit/6df7c389b505a71667f71b96d05e818676172537)) -* **form:** 新增 `visibleIfLogical` 逻辑类型,支持 `or`、`and` 类型 ([#1496](https://github.com/ng-alain/delon/issues/1496)) ([7af1397](https://github.com/ng-alain/delon/commit/7af13975d93a856fcbb5195bd9da3d2cf0fddf68)) -* **theme:title:** 新增 `selector` 属性 ([#1487](https://github.com/ng-alain/delon/issues/1487)) ([b15f35f](https://github.com/ng-alain/delon/commit/b15f35f6603402595c59ec1b8b38703c4c4da2aa)) -* **theme:** 新增 `ALLOW_ANONYMOUS`, `CUSTOM_ERROR`, `IGNORE_BASE_URL`, `RAW_BODY` Token ([#1486](https://github.com/ng-alain/delon/issues/1486)) ([4a6755e](https://github.com/ng-alain/delon/commit/4a6755ef078275ee3ae4cd996570cd9259ab5aec)) -* **util:** 新增 `omit` 忽略 obj 指定属性 ([#1519](https://github.com/ng-alain/delon/issues/1519)) ([15bb062](https://github.com/ng-alain/delon/commit/15bb062240d282e7635bea90cdff31d732618d40)) -* **theme:MenuService** 新增允许控制打开状态 ([#1507](https://github.com/ng-alain/delon/issues/1507)) ([50f35a9](https://github.com/ng-alain/delon/commit/50f35a96120c7fca746bf4b4795d93e4ee78535e)) +* **theme:layout-default:** 新增 `layout-default-top-menu-item`,用于实现顶部菜单,使用方式请参考 [layout.component.ts](https://github.com/ng-alain/delon/blob/master/src/dev/layout.component.ts#L65-L72)([预览](https://ng-alain.com/dev/home))。 ([#1570](https://github.com/ng-alain/delon/issues/1570)) ([f08dc46](https://github.com/ng-alain/delon/commit/f08dc46af7ad9ca5cf3e4fa5b0daef2cfbc0b4a5)) +* **util:format:** 新增 `isNum` 支持科学记数法 ([#1567](https://github.com/ng-alain/delon/issues/1567)) ([f8c0589](https://github.com/ng-alain/delon/commit/f8c05894e0a10fb6037275103b921698ca072494)) ### BREAKING CHANGE -* **theme:MenuService** 使用 `collapsed` 替换 `open` ([#1507](https://github.com/ng-alain/delon/issues/1507)) ([50f35a9](https://github.com/ng-alain/delon/commit/50f35a96120c7fca746bf4b4795d93e4ee78535e)) - +- **auth:** 移除 `_allow_anonymous` 使用 [ALLOW_ANONYMOUS](https://github.com/ng-alain/delon/blob/master/packages/auth/src/token.ts) `HttpContext` 替换 +- **theme:** 移除 `MenuService` 下 `getHit`, `openedByUrl` 方法,使用 `find` 和 `setItem` 替代 ## 历史版本 diff --git a/docs/upgrade-v14.en-US.md b/docs/upgrade-v14.en-US.md deleted file mode 100644 index fd11db7c9..000000000 --- a/docs/upgrade-v14.en-US.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -order: 1000 -type: Basic -title: Upgrade to version 14.0 -hot: true ---- - -> This guide applies to the current version ng-alain >= `13`; -> If you encounter problems during the upgrade process, feel free to comment here. -> If you find any errors in this guide, please point out -> Or you have encountered a new problem and solved it, welcome to comment here. - - -## Before upgrade - -1. Make sure `Node.js` >= `14.15` <= `16.10.0`. -2. Create a new branch, or use other methods to back up the current project. -3. Delete the `package-lock.json` or `yarn.lock` file. - -### 1.Upgrade dependencies - -- Upgrade Angular to 14.x version, Run `ng update @angular/core@14 @angular/cli@14 @angular-eslint/schematics@14`. -- Run `ng update @angular/cdk@14`, if you have used `@angular/cdk`. - -### 2.Upgrade NG-ZORRO - -- Run `ng update ng-zorro-antd@14`. -- If any warning messages appear in the console, follow the prompts to modify the corresponding code. - -### 3.Upgrade NG-ALAIN - -- Run `ng update ng-alain@14` diff --git a/docs/upgrade-v14.zh-CN.md b/docs/upgrade-v14.zh-CN.md deleted file mode 100644 index 29ddf317c..000000000 --- a/docs/upgrade-v14.zh-CN.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -order: 1000 -type: Basic -title: 升级到 14.0 版本 -hot: true ---- - -> 本指南适用于当前版本 ng-alain >= `13` ; -> 如果在升级过程中遇到问题,欢迎提出。提问前请阅读 [如何向开源社区提问题](https://github.com/seajs/seajs/issues/545) -> 如果发现本指南存在遗漏/错误,请指出! -> 或者你遇到了新的问题并解决了,欢迎补充! - -## 开始之前 - -1. 首先确保你 `Node.js` >= `14.15` <= `16.10.0` -2. 创建新的分支,或者使用其他方式备份当前项目 -3. 删除项目下 `package-lock.json` 或 `yarn.lock` 文件 - -## 升级步骤 - -### 1. 升级相关依赖 - -- 将项目升级到 Angular 14 运行 `ng update @angular/core@14 @angular/cli@14 @angular-eslint/schematics@14`。 -- 如果你有单独使用 `@angular/cdk` 请执行 `ng update @angular/cdk@14` - -### 2.升级 NG-ZORRO - -- 运行 `ng update ng-zorro-antd@14` -- 如果控制台出现警告消息请按提示修改对应代码 - -### 3.升级 NG-ALAIN - -- 运行 `ng update ng-alain@14` diff --git a/docs/upgrade-v15.en-US.md b/docs/upgrade-v15.en-US.md new file mode 100644 index 000000000..daaee6192 --- /dev/null +++ b/docs/upgrade-v15.en-US.md @@ -0,0 +1,35 @@ +--- +order: 1000 +type: Basic +title: Upgrade to version 15.0 +hot: true +--- + +> This guide applies to the current version ng-alain >= `14`; +> If you encounter problems during the upgrade process, feel free to comment here. +> If you find any errors in this guide, please point out +> Or you have encountered a new problem and solved it, welcome to comment here. + +## Before upgrade + +1. Make sure `Node.js` >= `16.10.0`. +2. Create a new branch, or use other methods to back up the current project. +3. Delete the `package-lock.json` or `yarn.lock` file. + +### 1.Upgrade dependencies + +- Upgrade Angular to 14.x version, Run `ng update @angular/core@15 @angular/cli@15 @angular-eslint/schematics@15 ng-zorro-antd@15 ng-alain@15`. +- _Run `ng update @angular/cdk@15`, if you have used `@angular/cdk`._ +- **If any warning messages appear in the console, follow the prompts to modify the corresponding code.** + +### QA + +The following are optional upgrades: + +**Remove `.browserslistrc`** + +If you need to maintain the support of the old Chrome version, such as 360 browser, you need to restore it manually. For details, refer to [#2310](https://github.com/ng-alain/ng-alain/issues/2310#issuecomment-1299460266). + +**Remove `polyfills.ts`, `test.ts`** + +Angular15 on a mission to simplify the output of `ng new`, transfer more configuration items to `angular.json`, the advantage is that it can be better configured for different environments, you can refer to [#2351](https://github.com/ng-alain/ng-alain/pull/2351). diff --git a/docs/upgrade-v15.zh-CN.md b/docs/upgrade-v15.zh-CN.md new file mode 100644 index 000000000..5f9575d3b --- /dev/null +++ b/docs/upgrade-v15.zh-CN.md @@ -0,0 +1,37 @@ +--- +order: 1000 +type: Basic +title: 升级到 15.0 版本 +hot: true +--- + +> 本指南适用于当前版本 ng-alain >= `14` ; +> 如果在升级过程中遇到问题,欢迎提出。提问前请阅读 [如何向开源社区提问题](https://github.com/seajs/seajs/issues/545) +> 如果发现本指南存在遗漏/错误,请指出! +> 或者你遇到了新的问题并解决了,欢迎补充! + +## 开始之前 + +1. 首先确保你 `Node.js` >= `16.10.0` +2. 创建新的分支,或者使用其他方式备份当前项目 +3. 删除项目下 `package-lock.json` 或 `yarn.lock` 文件 + +## 升级步骤 + +### 升级相关依赖 + +- 将项目升级到 Angular 14 运行 `ng update @angular/core@15 @angular/cli@15 @angular-eslint/schematics@15 ng-zorro-antd@15 ng-alain@15`。 +- _如果你有单独使用 `@angular/cdk` 请执行 `ng update @angular/cdk@15`_ +- **如果控制台出现警告消息请按提示修改对应代码** + +### QA + +以下为可选升级: + +**移除 `.browserslistrc`** + +若需要保持对一些旧 Chrome 版本的支持,例如 360 浏览器,则需要手动恢复,细节参考 [#2310](https://github.com/ng-alain/ng-alain/issues/2310#issuecomment-1299460266)。 + +**移除 `polyfills.ts`, `test.ts`** + +Angular15 简化了 `ng new` 的输出,将更多的配置项转移至 `angular.json` 中,好处是可以更好的针对不同环境进行配置,细节请参考 [#2351](https://github.com/ng-alain/ng-alain/pull/2351)。 diff --git a/package.json b/package.json index 6f9e07047..edbab0e50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "delon", - "version": "15.0.0-beta.1", + "version": "15.0.0", "description": "Delon is a set of essential modules for NG-ALAIN.", "keywords": [ "delon", diff --git a/packages/theme/layout-default/index.en-US.md b/packages/theme/layout-default/index.en-US.md index ec0fa1532..eae0484f6 100644 --- a/packages/theme/layout-default/index.en-US.md +++ b/packages/theme/layout-default/index.en-US.md @@ -143,7 +143,7 @@ The trigger style of the head item. ### layout-default-top-menu-item -Header business menu item. +Header business menu item, please refer to [layout.component.ts](https://github.com/ng-alain/delon/blob/master/src/dev/layout.component.ts#L65-L72)([Preview](https://ng-alain.com/dev/home)). ## Layout description diff --git a/packages/theme/layout-default/index.zh-CN.md b/packages/theme/layout-default/index.zh-CN.md index b56a1de67..89ddd35fa 100644 --- a/packages/theme/layout-default/index.zh-CN.md +++ b/packages/theme/layout-default/index.zh-CN.md @@ -143,7 +143,7 @@ export class LayoutBasicComponent { ### layout-default-top-menu-item -头部业务菜单项。 +头部业务菜单项,使用方式请参考 [layout.component.ts](https://github.com/ng-alain/delon/blob/master/src/dev/layout.component.ts#L65-L72)([预览](https://ng-alain.com/dev/home))。 ## 布局说明 diff --git a/schematics/ng-add/index.ts b/schematics/ng-add/index.ts index 363628b19..cc9df3d7b 100644 --- a/schematics/ng-add/index.ts +++ b/schematics/ng-add/index.ts @@ -79,7 +79,7 @@ export default function (options: NgAddOptions): Rule { } const nodeVersion = getNodeMajorVersion(); - const allowNodeVersions = [12, 14, 16]; + const allowNodeVersions = [14, 16, 18]; if (!allowNodeVersions.some(v => nodeVersion === v)) { const versions = allowNodeVersions.join(', '); throw new SchematicsException( diff --git a/src/app/core/code/files/sandbox.config.json.ts b/src/app/core/code/files/sandbox.config.json.ts index 7dc42c993..e0d8cca9f 100644 --- a/src/app/core/code/files/sandbox.config.json.ts +++ b/src/app/core/code/files/sandbox.config.json.ts @@ -4,7 +4,7 @@ export default { view: 'browser', template: 'node', container: { - node: '14', + node: '16', port: 4200 } };