@delon/theme 12.4.2 → 13.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/compact.css +1278 -750
  2. package/compact.min.css +1 -1
  3. package/dark.css +1325 -797
  4. package/dark.min.css +1 -1
  5. package/default.css +1286 -758
  6. package/default.min.css +1 -1
  7. package/{esm2015/layout-blank/layout-blank.js → esm2020/layout-blank/layout-blank.mjs} +0 -0
  8. package/{esm2015/layout-blank/public_api.js → esm2020/layout-blank/public_api.mjs} +0 -0
  9. package/{esm2015/layout-default/layout-default.js → esm2020/layout-default/layout-default.mjs} +0 -0
  10. package/esm2020/layout-default/layout-header-item-trigger.directive.mjs +16 -0
  11. package/esm2020/layout-default/layout-header-item.component.mjs +33 -0
  12. package/esm2020/layout-default/layout-header.component.mjs +123 -0
  13. package/esm2020/layout-default/layout-nav.component.mjs +307 -0
  14. package/esm2020/layout-default/layout.component.mjs +132 -0
  15. package/esm2020/layout-default/layout.module.mjs +69 -0
  16. package/{esm2015/layout-default/public_api.js → esm2020/layout-default/public_api.mjs} +0 -0
  17. package/{esm2015/layout-default/types.js → esm2020/layout-default/types.mjs} +0 -0
  18. package/esm2020/public_api.mjs +25 -0
  19. package/{esm2015/setting-drawer/public_api.js → esm2020/setting-drawer/public_api.mjs} +0 -0
  20. package/esm2020/setting-drawer/setting-drawer-item.component.mjs +35 -0
  21. package/esm2020/setting-drawer/setting-drawer.component.mjs +192 -0
  22. package/{esm2015/setting-drawer/setting-drawer.js → esm2020/setting-drawer/setting-drawer.mjs} +0 -0
  23. package/esm2020/setting-drawer/setting-drawer.module.mjs +68 -0
  24. package/{esm2015/setting-drawer/setting-drawer.types.js → esm2020/setting-drawer/setting-drawer.types.mjs} +0 -0
  25. package/{esm2015/src/config.js → esm2020/src/config.mjs} +0 -0
  26. package/{esm2015/src/locale/index.js → esm2020/src/locale/index.mjs} +0 -0
  27. package/{esm2015/src/locale/languages/el-GR.js → esm2020/src/locale/languages/el-GR.mjs} +0 -0
  28. package/{esm2015/src/locale/languages/en-US.js → esm2020/src/locale/languages/en-US.mjs} +0 -0
  29. package/{esm2015/src/locale/languages/es-ES.js → esm2020/src/locale/languages/es-ES.mjs} +0 -0
  30. package/{esm2015/src/locale/languages/fr-FR.js → esm2020/src/locale/languages/fr-FR.mjs} +0 -0
  31. package/{esm2015/src/locale/languages/hr-HR.js → esm2020/src/locale/languages/hr-HR.mjs} +0 -0
  32. package/{esm2015/src/locale/languages/it-IT.js → esm2020/src/locale/languages/it-IT.mjs} +0 -0
  33. package/{esm2015/src/locale/languages/ja-JP.js → esm2020/src/locale/languages/ja-JP.mjs} +0 -0
  34. package/{esm2015/src/locale/languages/ko-KR.js → esm2020/src/locale/languages/ko-KR.mjs} +0 -0
  35. package/{esm2015/src/locale/languages/pl-PL.js → esm2020/src/locale/languages/pl-PL.mjs} +0 -0
  36. package/{esm2015/src/locale/languages/sl-SI.js → esm2020/src/locale/languages/sl-SI.mjs} +0 -0
  37. package/{esm2015/src/locale/languages/tr-TR.js → esm2020/src/locale/languages/tr-TR.mjs} +0 -0
  38. package/{esm2015/src/locale/languages/zh-CN.js → esm2020/src/locale/languages/zh-CN.mjs} +0 -0
  39. package/{esm2015/src/locale/languages/zh-TW.js → esm2020/src/locale/languages/zh-TW.mjs} +0 -0
  40. package/esm2020/src/locale/locale.module.mjs +17 -0
  41. package/esm2020/src/locale/locale.service.mjs +45 -0
  42. package/{esm2015/src/locale/locale.tokens.js → esm2020/src/locale/locale.tokens.mjs} +0 -0
  43. package/{esm2015/src/locale/locale.types.js → esm2020/src/locale/locale.types.mjs} +0 -0
  44. package/{esm2015/src/locale/public_api.js → esm2020/src/locale/public_api.mjs} +0 -0
  45. package/esm2020/src/pipes/date/date.pipe.mjs +24 -0
  46. package/esm2020/src/pipes/keys/keys.pipe.mjs +21 -0
  47. package/esm2020/src/pipes/safe/html.pipe.mjs +18 -0
  48. package/esm2020/src/pipes/safe/url.pipe.mjs +18 -0
  49. package/esm2020/src/pipes/yn/yn.pipe.mjs +38 -0
  50. package/esm2020/src/router/optional-preloader.mjs +22 -0
  51. package/esm2020/src/services/drawer/drawer.helper.mjs +91 -0
  52. package/esm2020/src/services/http/http.client.mjs +154 -0
  53. package/esm2020/src/services/http/http.decorator.mjs +215 -0
  54. package/esm2020/src/services/i18n/i18n.mjs +97 -0
  55. package/esm2020/src/services/i18n/i18n.pipe.mjs +21 -0
  56. package/{esm2015/src/services/menu/interface.js → esm2020/src/services/menu/interface.mjs} +0 -0
  57. package/esm2020/src/services/menu/menu.service.mjs +252 -0
  58. package/esm2020/src/services/modal/modal.helper.mjs +106 -0
  59. package/{esm2015/src/services/preloader/preloader.js → esm2020/src/services/preloader/preloader.mjs} +0 -0
  60. package/esm2020/src/services/responsive/responsive.mjs +46 -0
  61. package/esm2020/src/services/rtl/rtl.service.mjs +101 -0
  62. package/esm2020/src/services/settings/settings.service.mjs +100 -0
  63. package/{esm2015/src/services/settings/types.js → esm2020/src/services/settings/types.mjs} +0 -0
  64. package/esm2020/src/services/title/title.service.mjs +124 -0
  65. package/esm2020/src/theme.module.mjs +76 -0
  66. package/{esm2015/src/version.js → esm2020/src/version.mjs} +1 -1
  67. package/{esm2015/theme-btn/public_api.js → esm2020/theme-btn/public_api.mjs} +0 -0
  68. package/esm2020/theme-btn/theme-btn.component.mjs +106 -0
  69. package/esm2020/theme-btn/theme-btn.mjs +5 -0
  70. package/esm2020/theme-btn/theme-btn.module.mjs +32 -0
  71. package/esm2020/theme.mjs +5 -0
  72. package/fesm2015/{layout-blank.js → layout-blank.mjs} +1 -1
  73. package/fesm2015/layout-blank.mjs.map +1 -0
  74. package/fesm2015/layout-default.mjs +654 -0
  75. package/fesm2015/layout-default.mjs.map +1 -0
  76. package/fesm2015/setting-drawer.mjs +487 -0
  77. package/fesm2015/setting-drawer.mjs.map +1 -0
  78. package/fesm2015/theme-btn.mjs +144 -0
  79. package/fesm2015/theme-btn.mjs.map +1 -0
  80. package/fesm2015/{theme.js → theme.mjs} +226 -188
  81. package/fesm2015/theme.mjs.map +1 -0
  82. package/fesm2020/layout-blank.mjs +7 -0
  83. package/fesm2020/layout-blank.mjs.map +1 -0
  84. package/fesm2020/layout-default.mjs +654 -0
  85. package/fesm2020/layout-default.mjs.map +1 -0
  86. package/fesm2020/setting-drawer.mjs +482 -0
  87. package/fesm2020/setting-drawer.mjs.map +1 -0
  88. package/fesm2020/theme-btn.mjs +141 -0
  89. package/fesm2020/theme-btn.mjs.map +1 -0
  90. package/fesm2020/theme.mjs +2575 -0
  91. package/fesm2020/theme.mjs.map +1 -0
  92. package/layout-blank/layout-blank.d.ts +1 -0
  93. package/layout-blank/package.json +5 -6
  94. package/layout-default/layout-default.d.ts +1 -0
  95. package/layout-default/layout-header-item-trigger.directive.d.ts +3 -0
  96. package/layout-default/layout-header-item.component.d.ts +3 -0
  97. package/layout-default/layout-header.component.d.ts +8 -5
  98. package/layout-default/layout-nav.component.d.ts +4 -1
  99. package/layout-default/layout.component.d.ts +6 -3
  100. package/layout-default/layout.module.d.ts +17 -0
  101. package/layout-default/package.json +5 -6
  102. package/layout-default/style/_aside.less +7 -10
  103. package/layout-default/style/_fixed.less +2 -0
  104. package/layout-default/style/_header.less +21 -0
  105. package/layout-default/style/_layout.less +7 -0
  106. package/layout-default/style/_progress-bar.less +6 -0
  107. package/layout-default/style/fix/_full-content.less +4 -0
  108. package/layout-default/style/widgets/_app-icons.less +3 -0
  109. package/layout-default/style/widgets/_user.less +5 -0
  110. package/package.json +55 -11
  111. package/public_api.d.ts +1 -0
  112. package/setting-drawer/package.json +5 -6
  113. package/setting-drawer/setting-drawer-item.component.d.ts +3 -0
  114. package/setting-drawer/setting-drawer.component.d.ts +3 -0
  115. package/setting-drawer/setting-drawer.d.ts +1 -0
  116. package/setting-drawer/setting-drawer.module.d.ts +18 -0
  117. package/setting-drawer/style/index.less +9 -0
  118. package/setting-drawer/style/rtl.less +1 -0
  119. package/src/locale/locale.module.d.ts +4 -0
  120. package/src/locale/locale.service.d.ts +3 -0
  121. package/src/pipes/date/date.pipe.d.ts +3 -0
  122. package/src/pipes/keys/keys.pipe.d.ts +3 -0
  123. package/src/pipes/safe/html.pipe.d.ts +3 -0
  124. package/src/pipes/safe/url.pipe.d.ts +3 -0
  125. package/src/pipes/yn/style/index.less +3 -0
  126. package/src/pipes/yn/yn.pipe.d.ts +3 -0
  127. package/src/services/drawer/drawer.helper.d.ts +3 -0
  128. package/src/services/http/http.client.d.ts +3 -0
  129. package/src/services/http/http.decorator.d.ts +3 -0
  130. package/src/services/i18n/i18n.d.ts +5 -0
  131. package/src/services/i18n/i18n.pipe.d.ts +3 -0
  132. package/src/services/menu/menu.service.d.ts +5 -0
  133. package/src/services/modal/modal.helper.d.ts +3 -0
  134. package/src/services/responsive/responsive.d.ts +3 -0
  135. package/src/services/rtl/rtl.service.d.ts +3 -0
  136. package/src/services/settings/settings.service.d.ts +9 -0
  137. package/src/services/title/title.service.d.ts +3 -0
  138. package/src/theme.module.d.ts +15 -0
  139. package/system/_preloader.less +10 -0
  140. package/system/_type.less +5 -0
  141. package/system/antd/_modal.less +5 -0
  142. package/system/antd/_table.less +7 -0
  143. package/system/index.less +3 -3
  144. package/system/mixins/_freak.less +2 -2
  145. package/system/mixins/_text-truncate.less +2 -0
  146. package/system/ng/_form.less +1 -0
  147. package/system/theme-default.less +3 -1
  148. package/system/utils/_display.less +9 -0
  149. package/system/utils/_other.less +2 -0
  150. package/system/utils/_scrollbar.less +3 -0
  151. package/system/widgets/_abs.less +3 -0
  152. package/system/widgets/_half-float.less +2 -0
  153. package/system/widgets/_masonry-grid.less +2 -0
  154. package/theme-btn/package.json +6 -7
  155. package/theme-btn/style/index.less +1 -0
  156. package/theme-btn/theme-btn.component.d.ts +3 -0
  157. package/theme-btn/{layout-theme-btn.d.ts → theme-btn.d.ts} +1 -0
  158. package/theme-btn/theme-btn.module.d.ts +8 -0
  159. package/theme-compact.less +1 -1
  160. package/theme-dark.less +1 -1
  161. package/theme-default.less +1 -1
  162. package/theme.d.ts +1 -1
  163. package/bundles/layout-blank.umd.js +0 -19
  164. package/bundles/layout-blank.umd.js.map +0 -1
  165. package/bundles/layout-default.umd.js +0 -876
  166. package/bundles/layout-default.umd.js.map +0 -1
  167. package/bundles/layout-theme-btn.umd.js +0 -141
  168. package/bundles/layout-theme-btn.umd.js.map +0 -1
  169. package/bundles/setting-drawer.umd.js +0 -789
  170. package/bundles/setting-drawer.umd.js.map +0 -1
  171. package/bundles/theme.umd.js +0 -3075
  172. package/bundles/theme.umd.js.map +0 -1
  173. package/esm2015/layout-default/layout-header-item-trigger.directive.js +0 -12
  174. package/esm2015/layout-default/layout-header-item.component.js +0 -23
  175. package/esm2015/layout-default/layout-header.component.js +0 -94
  176. package/esm2015/layout-default/layout-nav.component.js +0 -306
  177. package/esm2015/layout-default/layout.component.js +0 -102
  178. package/esm2015/layout-default/layout.module.js +0 -40
  179. package/esm2015/public_api.js +0 -24
  180. package/esm2015/setting-drawer/setting-drawer-item.component.js +0 -30
  181. package/esm2015/setting-drawer/setting-drawer.component.js +0 -185
  182. package/esm2015/setting-drawer/setting-drawer.module.js +0 -39
  183. package/esm2015/src/locale/locale.module.js +0 -14
  184. package/esm2015/src/locale/locale.service.js +0 -42
  185. package/esm2015/src/pipes/date/date.pipe.js +0 -23
  186. package/esm2015/src/pipes/keys/keys.pipe.js +0 -17
  187. package/esm2015/src/pipes/safe/html.pipe.js +0 -17
  188. package/esm2015/src/pipes/safe/url.pipe.js +0 -17
  189. package/esm2015/src/pipes/yn/yn.pipe.js +0 -37
  190. package/esm2015/src/router/optional-preloader.js +0 -23
  191. package/esm2015/src/services/drawer/drawer.helper.js +0 -90
  192. package/esm2015/src/services/http/http.client.js +0 -138
  193. package/esm2015/src/services/http/http.decorator.js +0 -207
  194. package/esm2015/src/services/i18n/i18n.js +0 -96
  195. package/esm2015/src/services/i18n/i18n.pipe.js +0 -17
  196. package/esm2015/src/services/menu/menu.service.js +0 -252
  197. package/esm2015/src/services/modal/modal.helper.js +0 -105
  198. package/esm2015/src/services/responsive/responsive.js +0 -48
  199. package/esm2015/src/services/rtl/rtl.service.js +0 -110
  200. package/esm2015/src/services/settings/settings.service.js +0 -82
  201. package/esm2015/src/services/title/title.service.js +0 -125
  202. package/esm2015/src/theme.module.js +0 -67
  203. package/esm2015/theme-btn/layout-theme-btn.js +0 -5
  204. package/esm2015/theme-btn/theme-btn.component.js +0 -103
  205. package/esm2015/theme-btn/theme-btn.module.js +0 -22
  206. package/esm2015/theme.js +0 -6
  207. package/fesm2015/layout-blank.js.map +0 -1
  208. package/fesm2015/layout-default.js +0 -561
  209. package/fesm2015/layout-default.js.map +0 -1
  210. package/fesm2015/layout-theme-btn.js +0 -129
  211. package/fesm2015/layout-theme-btn.js.map +0 -1
  212. package/fesm2015/setting-drawer.js +0 -448
  213. package/fesm2015/setting-drawer.js.map +0 -1
  214. package/fesm2015/theme.js.map +0 -1
  215. package/layout-blank/layout-blank.metadata.json +0 -1
  216. package/layout-default/layout-default.metadata.json +0 -1
  217. package/setting-drawer/setting-drawer.metadata.json +0 -1
  218. package/theme-btn/layout-theme-btn.metadata.json +0 -1
  219. package/theme.metadata.json +0 -1
@@ -1,789 +0,0 @@
1
- /**
2
- * @license ng-alain(cipchk@qq.com) v12.4.2
3
- * (c) 2020 cipchk https://ng-alain.com/
4
- * License: MIT
5
- */
6
- (function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/bidi'), require('@angular/common'), require('rxjs'), require('rxjs/operators'), require('@delon/theme'), require('@delon/util/browser'), require('@delon/util/decorator'), require('@delon/util/other'), require('ng-zorro-antd/message'), require('@angular/forms'), require('ng-zorro-antd/alert'), require('ng-zorro-antd/button'), require('ng-zorro-antd/divider'), require('ng-zorro-antd/drawer'), require('ng-zorro-antd/icon'), require('ng-zorro-antd/input'), require('ng-zorro-antd/input-number'), require('ng-zorro-antd/switch'), require('ng-zorro-antd/tabs'), require('ng-zorro-antd/tooltip')) :
8
- typeof define === 'function' && define.amd ? define('@delon/theme/setting-drawer', ['exports', '@angular/core', '@angular/cdk/bidi', '@angular/common', 'rxjs', 'rxjs/operators', '@delon/theme', '@delon/util/browser', '@delon/util/decorator', '@delon/util/other', 'ng-zorro-antd/message', '@angular/forms', 'ng-zorro-antd/alert', 'ng-zorro-antd/button', 'ng-zorro-antd/divider', 'ng-zorro-antd/drawer', 'ng-zorro-antd/icon', 'ng-zorro-antd/input', 'ng-zorro-antd/input-number', 'ng-zorro-antd/switch', 'ng-zorro-antd/tabs', 'ng-zorro-antd/tooltip'], factory) :
9
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.theme = global.delon.theme || {}, global.delon.theme["setting-drawer"] = {}), global.ng.core, global.ng.cdk.bidi, global.ng.common, global.rxjs, global.rxjs.operators, global.delon.theme, global.browser, global.decorator, global.other, global.message, global.ng.forms, global.alert, global.button, global.divider, global.drawer, global.icon, global.input, global.inputNumber, global._switch, global.tabs, global.tooltip));
10
- })(this, (function (exports, core, bidi, common, rxjs, operators, theme, browser, decorator, other, message, forms, alert, button, divider, drawer, icon, input, inputNumber, _switch, tabs, tooltip) { 'use strict';
11
-
12
- var SettingDrawerItemComponent = /** @class */ (function () {
13
- function SettingDrawerItemComponent() {
14
- this.i = {};
15
- this.pxVal = 0;
16
- this.format = function (value) { return value + " px"; };
17
- }
18
- Object.defineProperty(SettingDrawerItemComponent.prototype, "data", {
19
- set: function (val) {
20
- this.i = val;
21
- if (val.type === 'px') {
22
- this.pxVal = +val.value.replace('px', '');
23
- }
24
- },
25
- enumerable: false,
26
- configurable: true
27
- });
28
- SettingDrawerItemComponent.prototype.pxChange = function (val) {
29
- this.i.value = val + "px";
30
- };
31
- return SettingDrawerItemComponent;
32
- }());
33
- SettingDrawerItemComponent.decorators = [
34
- { type: core.Component, args: [{
35
- selector: 'setting-drawer-item',
36
- template: "<span>\n {{ i.label }}\n <span class=\"pl-sm text-grey\">{{ i.tip }}</span>\n</span>\n<div [ngSwitch]=\"i.type\">\n <ng-container *ngSwitchCase=\"'color'\">\n <input\n nz-input\n type=\"color\"\n style=\"min-width: 88px\"\n [(ngModel)]=\"i.value\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n </ng-container>\n <ng-container *ngSwitchCase=\"'input'\">\n <input nz-input style=\"min-width: 88px\" [(ngModel)]=\"i.value\" [ngModelOptions]=\"{ standalone: true }\" />\n </ng-container>\n <ng-container *ngSwitchCase=\"'px'\">\n <nz-input-number\n [(ngModel)]=\"pxVal\"\n (ngModelChange)=\"pxChange($event)\"\n [nzMin]=\"i.min\"\n [nzMax]=\"i.max\"\n [nzStep]=\"i.step || 2\"\n [nzFormatter]=\"format\"\n ></nz-input-number>\n </ng-container>\n <ng-container *ngSwitchCase=\"'switch'\">\n <nz-switch nzSize=\"small\" [(ngModel)]=\"i.value\" [ngModelOptions]=\"{ standalone: true }\"></nz-switch>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-template nzDrawerContent></ng-template>\n </ng-container>\n</div>\n",
37
- host: {
38
- '[class.setting-drawer__body-item]': 'true'
39
- }
40
- },] }
41
- ];
42
- SettingDrawerItemComponent.propDecorators = {
43
- data: [{ type: core.Input }]
44
- };
45
-
46
- /*! *****************************************************************************
47
- Copyright (c) Microsoft Corporation.
48
-
49
- Permission to use, copy, modify, and/or distribute this software for any
50
- purpose with or without fee is hereby granted.
51
-
52
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
53
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
54
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
55
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
56
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
57
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
58
- PERFORMANCE OF THIS SOFTWARE.
59
- ***************************************************************************** */
60
- /* global Reflect, Promise */
61
- var extendStatics = function (d, b) {
62
- extendStatics = Object.setPrototypeOf ||
63
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
64
- function (d, b) { for (var p in b)
65
- if (Object.prototype.hasOwnProperty.call(b, p))
66
- d[p] = b[p]; };
67
- return extendStatics(d, b);
68
- };
69
- function __extends(d, b) {
70
- if (typeof b !== "function" && b !== null)
71
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
72
- extendStatics(d, b);
73
- function __() { this.constructor = d; }
74
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
75
- }
76
- var __assign = function () {
77
- __assign = Object.assign || function __assign(t) {
78
- for (var s, i = 1, n = arguments.length; i < n; i++) {
79
- s = arguments[i];
80
- for (var p in s)
81
- if (Object.prototype.hasOwnProperty.call(s, p))
82
- t[p] = s[p];
83
- }
84
- return t;
85
- };
86
- return __assign.apply(this, arguments);
87
- };
88
- function __rest(s, e) {
89
- var t = {};
90
- for (var p in s)
91
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
92
- t[p] = s[p];
93
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
94
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
95
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
96
- t[p[i]] = s[p[i]];
97
- }
98
- return t;
99
- }
100
- function __decorate(decorators, target, key, desc) {
101
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
102
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
103
- r = Reflect.decorate(decorators, target, key, desc);
104
- else
105
- for (var i = decorators.length - 1; i >= 0; i--)
106
- if (d = decorators[i])
107
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
108
- return c > 3 && r && Object.defineProperty(target, key, r), r;
109
- }
110
- function __param(paramIndex, decorator) {
111
- return function (target, key) { decorator(target, key, paramIndex); };
112
- }
113
- function __metadata(metadataKey, metadataValue) {
114
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
115
- return Reflect.metadata(metadataKey, metadataValue);
116
- }
117
- function __awaiter(thisArg, _arguments, P, generator) {
118
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
119
- return new (P || (P = Promise))(function (resolve, reject) {
120
- function fulfilled(value) { try {
121
- step(generator.next(value));
122
- }
123
- catch (e) {
124
- reject(e);
125
- } }
126
- function rejected(value) { try {
127
- step(generator["throw"](value));
128
- }
129
- catch (e) {
130
- reject(e);
131
- } }
132
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
133
- step((generator = generator.apply(thisArg, _arguments || [])).next());
134
- });
135
- }
136
- function __generator(thisArg, body) {
137
- var _ = { label: 0, sent: function () { if (t[0] & 1)
138
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
139
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
140
- function verb(n) { return function (v) { return step([n, v]); }; }
141
- function step(op) {
142
- if (f)
143
- throw new TypeError("Generator is already executing.");
144
- while (_)
145
- try {
146
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
147
- return t;
148
- if (y = 0, t)
149
- op = [op[0] & 2, t.value];
150
- switch (op[0]) {
151
- case 0:
152
- case 1:
153
- t = op;
154
- break;
155
- case 4:
156
- _.label++;
157
- return { value: op[1], done: false };
158
- case 5:
159
- _.label++;
160
- y = op[1];
161
- op = [0];
162
- continue;
163
- case 7:
164
- op = _.ops.pop();
165
- _.trys.pop();
166
- continue;
167
- default:
168
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
169
- _ = 0;
170
- continue;
171
- }
172
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
173
- _.label = op[1];
174
- break;
175
- }
176
- if (op[0] === 6 && _.label < t[1]) {
177
- _.label = t[1];
178
- t = op;
179
- break;
180
- }
181
- if (t && _.label < t[2]) {
182
- _.label = t[2];
183
- _.ops.push(op);
184
- break;
185
- }
186
- if (t[2])
187
- _.ops.pop();
188
- _.trys.pop();
189
- continue;
190
- }
191
- op = body.call(thisArg, _);
192
- }
193
- catch (e) {
194
- op = [6, e];
195
- y = 0;
196
- }
197
- finally {
198
- f = t = 0;
199
- }
200
- if (op[0] & 5)
201
- throw op[1];
202
- return { value: op[0] ? op[1] : void 0, done: true };
203
- }
204
- }
205
- var __createBinding = Object.create ? (function (o, m, k, k2) {
206
- if (k2 === undefined)
207
- k2 = k;
208
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
209
- }) : (function (o, m, k, k2) {
210
- if (k2 === undefined)
211
- k2 = k;
212
- o[k2] = m[k];
213
- });
214
- function __exportStar(m, o) {
215
- for (var p in m)
216
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
217
- __createBinding(o, m, p);
218
- }
219
- function __values(o) {
220
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
221
- if (m)
222
- return m.call(o);
223
- if (o && typeof o.length === "number")
224
- return {
225
- next: function () {
226
- if (o && i >= o.length)
227
- o = void 0;
228
- return { value: o && o[i++], done: !o };
229
- }
230
- };
231
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
232
- }
233
- function __read(o, n) {
234
- var m = typeof Symbol === "function" && o[Symbol.iterator];
235
- if (!m)
236
- return o;
237
- var i = m.call(o), r, ar = [], e;
238
- try {
239
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
240
- ar.push(r.value);
241
- }
242
- catch (error) {
243
- e = { error: error };
244
- }
245
- finally {
246
- try {
247
- if (r && !r.done && (m = i["return"]))
248
- m.call(i);
249
- }
250
- finally {
251
- if (e)
252
- throw e.error;
253
- }
254
- }
255
- return ar;
256
- }
257
- /** @deprecated */
258
- function __spread() {
259
- for (var ar = [], i = 0; i < arguments.length; i++)
260
- ar = ar.concat(__read(arguments[i]));
261
- return ar;
262
- }
263
- /** @deprecated */
264
- function __spreadArrays() {
265
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
266
- s += arguments[i].length;
267
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
268
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
269
- r[k] = a[j];
270
- return r;
271
- }
272
- function __spreadArray(to, from, pack) {
273
- if (pack || arguments.length === 2)
274
- for (var i = 0, l = from.length, ar; i < l; i++) {
275
- if (ar || !(i in from)) {
276
- if (!ar)
277
- ar = Array.prototype.slice.call(from, 0, i);
278
- ar[i] = from[i];
279
- }
280
- }
281
- return to.concat(ar || Array.prototype.slice.call(from));
282
- }
283
- function __await(v) {
284
- return this instanceof __await ? (this.v = v, this) : new __await(v);
285
- }
286
- function __asyncGenerator(thisArg, _arguments, generator) {
287
- if (!Symbol.asyncIterator)
288
- throw new TypeError("Symbol.asyncIterator is not defined.");
289
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
290
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
291
- function verb(n) { if (g[n])
292
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
293
- function resume(n, v) { try {
294
- step(g[n](v));
295
- }
296
- catch (e) {
297
- settle(q[0][3], e);
298
- } }
299
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
300
- function fulfill(value) { resume("next", value); }
301
- function reject(value) { resume("throw", value); }
302
- function settle(f, v) { if (f(v), q.shift(), q.length)
303
- resume(q[0][0], q[0][1]); }
304
- }
305
- function __asyncDelegator(o) {
306
- var i, p;
307
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
308
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
309
- }
310
- function __asyncValues(o) {
311
- if (!Symbol.asyncIterator)
312
- throw new TypeError("Symbol.asyncIterator is not defined.");
313
- var m = o[Symbol.asyncIterator], i;
314
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
315
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
316
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
317
- }
318
- function __makeTemplateObject(cooked, raw) {
319
- if (Object.defineProperty) {
320
- Object.defineProperty(cooked, "raw", { value: raw });
321
- }
322
- else {
323
- cooked.raw = raw;
324
- }
325
- return cooked;
326
- }
327
- ;
328
- var __setModuleDefault = Object.create ? (function (o, v) {
329
- Object.defineProperty(o, "default", { enumerable: true, value: v });
330
- }) : function (o, v) {
331
- o["default"] = v;
332
- };
333
- function __importStar(mod) {
334
- if (mod && mod.__esModule)
335
- return mod;
336
- var result = {};
337
- if (mod != null)
338
- for (var k in mod)
339
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
340
- __createBinding(result, mod, k);
341
- __setModuleDefault(result, mod);
342
- return result;
343
- }
344
- function __importDefault(mod) {
345
- return (mod && mod.__esModule) ? mod : { default: mod };
346
- }
347
- function __classPrivateFieldGet(receiver, state, kind, f) {
348
- if (kind === "a" && !f)
349
- throw new TypeError("Private accessor was defined without a getter");
350
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
351
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
352
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
353
- }
354
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
355
- if (kind === "m")
356
- throw new TypeError("Private method is not writable");
357
- if (kind === "a" && !f)
358
- throw new TypeError("Private accessor was defined without a setter");
359
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
360
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
361
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
362
- }
363
-
364
- var ALAINDEFAULTVAR = 'alain-default-vars';
365
- var DEFAULT_COLORS = [
366
- {
367
- key: 'dust',
368
- color: '#F5222D'
369
- },
370
- {
371
- key: 'volcano',
372
- color: '#FA541C'
373
- },
374
- {
375
- key: 'sunset',
376
- color: '#FAAD14'
377
- },
378
- {
379
- key: 'cyan',
380
- color: '#13C2C2'
381
- },
382
- {
383
- key: 'green',
384
- color: '#52C41A'
385
- },
386
- {
387
- key: 'daybreak',
388
- color: '#1890ff'
389
- },
390
- {
391
- key: 'geekblue',
392
- color: '#2F54EB'
393
- },
394
- {
395
- key: 'purple',
396
- color: '#722ED1'
397
- },
398
- {
399
- key: 'black',
400
- color: '#001529'
401
- }
402
- ];
403
- var DEFAULT_VARS = {
404
- 'primary-color': { label: '主颜色', type: 'color', default: '#1890ff' },
405
- 'alain-default-header-hg': {
406
- label: '高',
407
- type: 'px',
408
- default: '64px',
409
- max: 300,
410
- min: 24
411
- },
412
- 'alain-default-header-bg': {
413
- label: '背景色',
414
- type: 'color',
415
- default: '@primary-color',
416
- tip: '默认同主色系'
417
- },
418
- 'alain-default-header-padding': {
419
- label: '顶部左右内边距',
420
- type: 'px',
421
- default: '16px'
422
- },
423
- // 侧边栏
424
- 'alain-default-aside-wd': { label: '宽度', type: 'px', default: '200px' },
425
- 'alain-default-aside-bg': {
426
- label: '背景',
427
- type: 'color',
428
- default: '#ffffff'
429
- },
430
- 'alain-default-aside-collapsed-wd': {
431
- label: '收缩宽度',
432
- type: 'px',
433
- default: '64px'
434
- },
435
- 'alain-default-aside-nav-padding-top-bottom': {
436
- label: '项上下内边距',
437
- type: 'px',
438
- default: '8px',
439
- step: 8
440
- },
441
- // 主菜单
442
- 'alain-default-aside-nav-fs': {
443
- label: '菜单字号',
444
- type: 'px',
445
- default: '14px',
446
- min: 14,
447
- max: 30
448
- },
449
- 'alain-default-aside-collapsed-nav-fs': {
450
- label: '收缩菜单字号',
451
- type: 'px',
452
- default: '24px',
453
- min: 24,
454
- max: 32
455
- },
456
- 'alain-default-aside-nav-item-height': {
457
- label: '菜单项高度',
458
- type: 'px',
459
- default: '38px',
460
- min: 24,
461
- max: 64
462
- },
463
- 'alain-default-aside-nav-text-color': {
464
- label: '菜单文本颜色',
465
- type: 'color',
466
- default: 'rgba(0, 0, 0, 0.65)',
467
- rgba: true
468
- },
469
- 'alain-default-aside-nav-text-hover-color': {
470
- label: '菜单文本悬停颜色',
471
- type: 'color',
472
- default: '@primary-color',
473
- tip: '默认同主色系'
474
- },
475
- 'alain-default-aside-nav-group-text-color': {
476
- label: '菜单分组文本颜色',
477
- type: 'color',
478
- default: 'rgba(0, 0, 0, 0.43)',
479
- rgba: true
480
- },
481
- 'alain-default-aside-nav-selected-text-color': {
482
- label: '菜单激活时文本颜色',
483
- type: 'color',
484
- default: '@primary-color',
485
- tip: '默认同主色系'
486
- },
487
- 'alain-default-aside-nav-selected-bg': {
488
- label: '菜单激活时背景颜色',
489
- type: 'color',
490
- default: '#fcfcfc'
491
- },
492
- // 内容
493
- 'alain-default-content-bg': {
494
- label: '背景色',
495
- type: 'color',
496
- default: '#f5f7fa'
497
- },
498
- 'alain-default-content-heading-bg': {
499
- label: '标题背景色',
500
- type: 'color',
501
- default: '#fafbfc'
502
- },
503
- 'alain-default-content-heading-border': {
504
- label: '标题底部边框色',
505
- type: 'color',
506
- default: '#efe3e5'
507
- },
508
- 'alain-default-content-padding': {
509
- label: '内边距',
510
- type: 'px',
511
- default: '24px',
512
- min: 0,
513
- max: 128,
514
- step: 8
515
- },
516
- // zorro组件修正
517
- 'form-state-visual-feedback-enabled': {
518
- label: '开启表单元素的视觉反馈',
519
- type: 'switch',
520
- default: true
521
- },
522
- 'preserve-white-spaces-enabled': {
523
- label: '开启 preserveWhitespaces',
524
- type: 'switch',
525
- default: true
526
- },
527
- 'nz-table-img-radius': {
528
- label: '表格中:图片圆角',
529
- type: 'px',
530
- default: '4px',
531
- min: 0,
532
- max: 128
533
- },
534
- 'nz-table-img-margin-right': {
535
- label: '表格中:图片右外边距',
536
- type: 'px',
537
- default: '4px',
538
- min: 0,
539
- max: 128
540
- },
541
- 'nz-table-img-max-width': {
542
- label: '表格中:图片最大宽度',
543
- type: 'px',
544
- default: '32px',
545
- min: 8,
546
- max: 128
547
- },
548
- 'nz-table-img-max-height': {
549
- label: '表格中:图片最大高度',
550
- type: 'px',
551
- default: '32px',
552
- min: 8,
553
- max: 128
554
- }
555
- };
556
-
557
- var SettingDrawerComponent = /** @class */ (function () {
558
- function SettingDrawerComponent(cdr, msg, settingSrv, lazy, ngZone, doc, directionality) {
559
- this.cdr = cdr;
560
- this.msg = msg;
561
- this.settingSrv = settingSrv;
562
- this.lazy = lazy;
563
- this.ngZone = ngZone;
564
- this.doc = doc;
565
- this.directionality = directionality;
566
- this.autoApplyColor = true;
567
- this.compilingText = 'Compiling...';
568
- this.devTips = "When the color can't be switched, you need to run it once: npm run color-less";
569
- this.loadedLess = false;
570
- this.destroy$ = new rxjs.Subject();
571
- this.dir = 'ltr';
572
- this.isDev = core.isDevMode();
573
- this.collapse = false;
574
- this.data = {};
575
- this.colors = DEFAULT_COLORS;
576
- this.color = this.cachedData['@primary-color'] || this.DEFAULT_PRIMARY;
577
- this.resetData(this.cachedData, false);
578
- }
579
- Object.defineProperty(SettingDrawerComponent.prototype, "layout", {
580
- get: function () {
581
- return this.settingSrv.layout;
582
- },
583
- enumerable: false,
584
- configurable: true
585
- });
586
- Object.defineProperty(SettingDrawerComponent.prototype, "cachedData", {
587
- get: function () {
588
- return this.settingSrv.layout[ALAINDEFAULTVAR] || {};
589
- },
590
- enumerable: false,
591
- configurable: true
592
- });
593
- Object.defineProperty(SettingDrawerComponent.prototype, "DEFAULT_PRIMARY", {
594
- get: function () {
595
- return DEFAULT_VARS['primary-color'].default;
596
- },
597
- enumerable: false,
598
- configurable: true
599
- });
600
- SettingDrawerComponent.prototype.ngOnInit = function () {
601
- var _this = this;
602
- var _a;
603
- this.dir = this.directionality.value;
604
- (_a = this.directionality.change) === null || _a === void 0 ? void 0 : _a.pipe(operators.takeUntil(this.destroy$)).subscribe(function (direction) {
605
- _this.dir = direction;
606
- });
607
- if (this.autoApplyColor && this.color !== this.DEFAULT_PRIMARY) {
608
- this.changeColor(this.color);
609
- this.runLess();
610
- }
611
- };
612
- SettingDrawerComponent.prototype.loadLess = function () {
613
- return __awaiter(this, void 0, void 0, function () {
614
- var _this = this;
615
- return __generator(this, function (_b) {
616
- if (this.loadedLess) {
617
- return [2 /*return*/, Promise.resolve()];
618
- }
619
- return [2 /*return*/, this.lazy
620
- .loadStyle('./assets/color.less', 'stylesheet/less')
621
- .then(function () {
622
- var lessConfigNode = _this.doc.createElement('script');
623
- lessConfigNode.innerHTML = "\n window.less = {\n async: true,\n env: 'production',\n javascriptEnabled: true\n };\n ";
624
- _this.doc.body.appendChild(lessConfigNode);
625
- })
626
- .then(function () { return _this.lazy.loadScript('https://gw.alipayobjects.com/os/lib/less.js/3.8.1/less.min.js'); })
627
- .then(function () {
628
- _this.loadedLess = true;
629
- })];
630
- });
631
- });
632
- };
633
- SettingDrawerComponent.prototype.genVars = function () {
634
- var _b;
635
- var _c = this, data = _c.data, color = _c.color, validKeys = _c.validKeys;
636
- var vars = (_b = {},
637
- _b["@primary-color"] = color,
638
- _b);
639
- validKeys.filter(function (key) { return key !== 'primary-color'; }).forEach(function (key) { return (vars["@" + key] = data[key].value); });
640
- this.setLayout(ALAINDEFAULTVAR, vars);
641
- return vars;
642
- };
643
- SettingDrawerComponent.prototype.runLess = function () {
644
- var _this = this;
645
- var _b = this, ngZone = _b.ngZone, msg = _b.msg, cdr = _b.cdr;
646
- var msgId = msg.loading(this.compilingText, { nzDuration: 0 }).messageId;
647
- setTimeout(function () {
648
- _this.loadLess().then(function () {
649
- window.less.modifyVars(_this.genVars()).then(function () {
650
- msg.success('成功');
651
- msg.remove(msgId);
652
- ngZone.run(function () { return cdr.detectChanges(); });
653
- });
654
- });
655
- }, 200);
656
- };
657
- SettingDrawerComponent.prototype.toggle = function () {
658
- this.collapse = !this.collapse;
659
- };
660
- SettingDrawerComponent.prototype.changeColor = function (color) {
661
- var _this = this;
662
- this.color = color;
663
- Object.keys(DEFAULT_VARS)
664
- .filter(function (key) { return DEFAULT_VARS[key].default === '@primary-color'; })
665
- .forEach(function (key) { return delete _this.cachedData["@" + key]; });
666
- this.resetData(this.cachedData, false);
667
- };
668
- SettingDrawerComponent.prototype.setLayout = function (name, value) {
669
- this.settingSrv.setLayout(name, value);
670
- };
671
- SettingDrawerComponent.prototype.resetData = function (nowData, run) {
672
- var _this = this;
673
- if (run === void 0) { run = true; }
674
- nowData = nowData || {};
675
- var data = other.deepCopy(DEFAULT_VARS);
676
- Object.keys(data).forEach(function (key) {
677
- var value = nowData["@" + key] || data[key].default || '';
678
- data[key].value = value === "@primary-color" ? _this.color : value;
679
- });
680
- this.data = data;
681
- if (run) {
682
- this.cdr.detectChanges();
683
- this.runLess();
684
- }
685
- };
686
- Object.defineProperty(SettingDrawerComponent.prototype, "validKeys", {
687
- get: function () {
688
- var _this = this;
689
- return Object.keys(this.data).filter(function (key) { return _this.data[key].value !== _this.data[key].default; });
690
- },
691
- enumerable: false,
692
- configurable: true
693
- });
694
- SettingDrawerComponent.prototype.apply = function () {
695
- this.runLess();
696
- };
697
- SettingDrawerComponent.prototype.reset = function () {
698
- this.color = this.DEFAULT_PRIMARY;
699
- this.settingSrv.setLayout(ALAINDEFAULTVAR, {});
700
- this.resetData({});
701
- };
702
- SettingDrawerComponent.prototype.copyVar = function () {
703
- var vars = this.genVars();
704
- var copyContent = Object.keys(vars)
705
- .map(function (key) { return key + ": " + vars[key] + ";"; })
706
- .join('\n');
707
- browser.copy(copyContent);
708
- this.msg.success('Copy success');
709
- };
710
- SettingDrawerComponent.prototype.ngOnDestroy = function () {
711
- this.destroy$.next();
712
- this.destroy$.complete();
713
- };
714
- return SettingDrawerComponent;
715
- }());
716
- SettingDrawerComponent.decorators = [
717
- { type: core.Component, args: [{
718
- selector: 'setting-drawer',
719
- template: "<nz-drawer\n [nzVisible]=\"collapse\"\n [nzPlacement]=\"dir === 'rtl' ? 'left' : 'right'\"\n [nzWidth]=\"500\"\n (nzOnClose)=\"toggle()\"\n>\n <div *nzDrawerContent class=\"setting-drawer__content\">\n <div class=\"setting-drawer__body setting-drawer__theme\">\n <h3 class=\"setting-drawer__title\">\u4E3B\u9898\u8272</h3>\n <span\n *ngFor=\"let c of colors\"\n [style]=\"{ 'background-color': c.color }\"\n (click)=\"changeColor(c.color)\"\n nz-tooltip\n [nzTooltipTitle]=\"c.key\"\n class=\"setting-drawer__theme-tag\"\n >\n <i *ngIf=\"color === c.color\" nz-icon nzType=\"check\"></i>\n </span>\n </div>\n <nz-divider></nz-divider>\n <div class=\"setting-drawer__body\">\n <h3 class=\"setting-drawer__title\">\u8BBE\u7F6E</h3>\n <nz-tabset>\n <nz-tab nzTitle=\"\u9876\u90E8\">\n <div class=\"setting-drawer__body\">\n <setting-drawer-item [data]=\"data['alain-default-header-hg']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['alain-default-header-bg']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['alain-default-header-padding']\"></setting-drawer-item>\n </div>\n </nz-tab>\n <nz-tab nzTitle=\"\u4FA7\u8FB9\u680F\">\n <setting-drawer-item [data]=\"data['alain-default-aside-wd']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['alain-default-aside-bg']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['alain-default-aside-collapsed-wd']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['alain-default-aside-nav-padding-top-bottom']\"></setting-drawer-item>\n </nz-tab>\n <nz-tab nzTitle=\"\u5185\u5BB9\">\n <setting-drawer-item [data]=\"data['alain-default-content-bg']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['alain-default-content-heading-bg']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['alain-default-content-heading-border']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['alain-default-content-padding']\"></setting-drawer-item>\n </nz-tab>\n <nz-tab nzTitle=\"\u5176\u5B83\">\n <setting-drawer-item [data]=\"data['form-state-visual-feedback-enabled']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['preserve-white-spaces-enabled']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['nz-table-img-radius']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['nz-table-img-margin-right']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['nz-table-img-max-width']\"></setting-drawer-item>\n <setting-drawer-item [data]=\"data['nz-table-img-max-height']\"></setting-drawer-item>\n </nz-tab>\n </nz-tabset>\n </div>\n <nz-divider></nz-divider>\n <div class=\"setting-drawer__body\">\n <div class=\"setting-drawer__body-item\">\n \u56FA\u5B9A\u5934\u548C\u4FA7\u8FB9\u680F\n <nz-switch\n nzSize=\"small\"\n [(ngModel)]=\"layout.fixed\"\n (ngModelChange)=\"setLayout('fixed', layout.fixed)\"\n ></nz-switch>\n </div>\n <div class=\"setting-drawer__body-item\">\n \u8272\u5F31\u6A21\u5F0F\n <nz-switch\n nzSize=\"small\"\n [(ngModel)]=\"layout.colorWeak\"\n (ngModelChange)=\"setLayout('colorWeak', layout.colorWeak)\"\n ></nz-switch>\n </div>\n </div>\n <nz-divider></nz-divider>\n <button (click)=\"apply()\" type=\"button\" nz-button nzType=\"primary\">\u9884\u89C8</button>\n <button (click)=\"reset()\" type=\"button\" nz-button>\u91CD\u7F6E</button>\n <button (click)=\"copyVar()\" type=\"button\" nz-button>\u62F7\u8D1D</button>\n <nz-alert\n class=\"mt-md\"\n nzType=\"warning\"\n nzMessage=\"\u914D\u7F6E\u680F\u53EA\u5728\u5F00\u53D1\u73AF\u5883\u7528\u4E8E\u9884\u89C8\uFF0C\u751F\u4EA7\u73AF\u5883\u4E0D\u4F1A\u5C55\u73B0\uFF0C\u8BF7\u62F7\u8D1D\u540E\u624B\u52A8\u4FEE\u6539\u53C2\u6570\u914D\u7F6E\u6587\u4EF6 src/styles/theme.less\"\n ></nz-alert>\n </div>\n</nz-drawer>\n<div\n class=\"setting-drawer__handle\"\n [ngClass]=\"{ 'setting-drawer__handle-opened': collapse }\"\n (click)=\"toggle()\"\n nz-tooltip\n [nzTooltipTitle]=\"isDev ? devTips : null\"\n>\n <i nz-icon [nzType]=\"!collapse ? 'setting' : 'close'\" class=\"setting-drawer__handle-icon\"></i>\n</div>\n",
720
- host: {
721
- '[class.setting-drawer]': 'true',
722
- '[class.setting-drawer-rtl]': "dir === 'rtl'"
723
- },
724
- changeDetection: core.ChangeDetectionStrategy.OnPush
725
- },] }
726
- ];
727
- SettingDrawerComponent.ctorParameters = function () { return [
728
- { type: core.ChangeDetectorRef },
729
- { type: message.NzMessageService },
730
- { type: theme.SettingsService },
731
- { type: other.LazyService },
732
- { type: core.NgZone },
733
- { type: undefined, decorators: [{ type: core.Inject, args: [common.DOCUMENT,] }] },
734
- { type: bidi.Directionality, decorators: [{ type: core.Optional }] }
735
- ]; };
736
- SettingDrawerComponent.propDecorators = {
737
- autoApplyColor: [{ type: core.Input }],
738
- compilingText: [{ type: core.Input }],
739
- devTips: [{ type: core.Input }]
740
- };
741
- __decorate([
742
- decorator.InputBoolean()
743
- ], SettingDrawerComponent.prototype, "autoApplyColor", void 0);
744
- __decorate([
745
- decorator.ZoneOutside()
746
- ], SettingDrawerComponent.prototype, "loadLess", null);
747
- __decorate([
748
- decorator.ZoneOutside()
749
- ], SettingDrawerComponent.prototype, "runLess", null);
750
-
751
- var COMPONENTS = [SettingDrawerItemComponent, SettingDrawerComponent];
752
- var SettingDrawerModule = /** @class */ (function () {
753
- function SettingDrawerModule() {
754
- }
755
- return SettingDrawerModule;
756
- }());
757
- SettingDrawerModule.decorators = [
758
- { type: core.NgModule, args: [{
759
- imports: [
760
- common.CommonModule,
761
- forms.FormsModule,
762
- drawer.NzDrawerModule,
763
- tooltip.NzToolTipModule,
764
- divider.NzDividerModule,
765
- tabs.NzTabsModule,
766
- _switch.NzSwitchModule,
767
- alert.NzAlertModule,
768
- icon.NzIconModule,
769
- input.NzInputModule,
770
- inputNumber.NzInputNumberModule,
771
- button.NzButtonModule
772
- ],
773
- declarations: COMPONENTS,
774
- exports: COMPONENTS
775
- },] }
776
- ];
777
-
778
- /**
779
- * Generated bundle index. Do not edit.
780
- */
781
-
782
- exports.SettingDrawerComponent = SettingDrawerComponent;
783
- exports.SettingDrawerItemComponent = SettingDrawerItemComponent;
784
- exports.SettingDrawerModule = SettingDrawerModule;
785
-
786
- Object.defineProperty(exports, '__esModule', { value: true });
787
-
788
- }));
789
- //# sourceMappingURL=setting-drawer.umd.js.map