@delon/theme 19.1.0 → 20.0.0-beta.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 (110) hide show
  1. package/compact.css +994 -245
  2. package/compact.min.css +1 -1
  3. package/dark.css +991 -242
  4. package/dark.min.css +1 -1
  5. package/default.css +994 -245
  6. package/default.min.css +1 -1
  7. package/fesm2022/layout-default.mjs +52 -66
  8. package/fesm2022/layout-default.mjs.map +1 -1
  9. package/fesm2022/setting-drawer.mjs +14 -22
  10. package/fesm2022/setting-drawer.mjs.map +1 -1
  11. package/fesm2022/theme-btn.mjs +10 -19
  12. package/fesm2022/theme-btn.mjs.map +1 -1
  13. package/fesm2022/theme.mjs +112 -94
  14. package/fesm2022/theme.mjs.map +1 -1
  15. package/index.d.ts +1689 -3
  16. package/layout-blank/index.d.ts +2 -5
  17. package/layout-default/index.d.ts +245 -5
  18. package/layout-default/style/_header.less +3 -3
  19. package/layout-default/style/_layout.less +1 -1
  20. package/layout-default/style/fix/_sidebar-nav.less +21 -6
  21. package/layout-default/style/theme-dark.less +1 -0
  22. package/layout-default/style/theme-default.less +1 -0
  23. package/layout-default/style/widgets/_app-icons.less +2 -2
  24. package/package.json +6 -6
  25. package/setting-drawer/index.d.ts +65 -5
  26. package/setting-drawer/style/index.less +2 -2
  27. package/system/antd/_drawer.less +2 -2
  28. package/system/antd/_modal.less +3 -3
  29. package/system/antd/_table.less +2 -2
  30. package/system/antd/_tag.less +1 -1
  31. package/system/ng/_preserve-white-spaces.less +8 -8
  32. package/system/utils/_code.less +2 -2
  33. package/system/utils/_scrollbar.less +1 -1
  34. package/system/widgets/_header-dropdown.less +1 -1
  35. package/theme-btn/index.d.ts +42 -5
  36. package/variable.css +994 -245
  37. package/variable.min.css +1 -1
  38. package/layout-blank/public_api.d.ts +0 -2
  39. package/layout-default/layout-header-item-trigger.directive.d.ts +0 -5
  40. package/layout-default/layout-header-item.component.d.ts +0 -10
  41. package/layout-default/layout-header.component.d.ts +0 -31
  42. package/layout-default/layout-nav.component.d.ts +0 -61
  43. package/layout-default/layout-top-menu-item.d.ts +0 -9
  44. package/layout-default/layout.component.d.ts +0 -39
  45. package/layout-default/layout.module.d.ts +0 -19
  46. package/layout-default/layout.service.d.ts +0 -29
  47. package/layout-default/public_api.d.ts +0 -9
  48. package/layout-default/types.d.ts +0 -60
  49. package/public_api.d.ts +0 -8
  50. package/setting-drawer/public_api.d.ts +0 -3
  51. package/setting-drawer/setting-drawer-item.component.d.ts +0 -11
  52. package/setting-drawer/setting-drawer.component.d.ts +0 -48
  53. package/setting-drawer/setting-drawer.module.d.ts +0 -8
  54. package/setting-drawer/setting-drawer.types.d.ts +0 -7
  55. package/src/config.d.ts +0 -63
  56. package/src/locale/index.d.ts +0 -1
  57. package/src/locale/languages/ar-SA.d.ts +0 -3
  58. package/src/locale/languages/el-GR.d.ts +0 -3
  59. package/src/locale/languages/en-US.d.ts +0 -3
  60. package/src/locale/languages/es-ES.d.ts +0 -3
  61. package/src/locale/languages/fr-FR.d.ts +0 -3
  62. package/src/locale/languages/hr-HR.d.ts +0 -3
  63. package/src/locale/languages/it-IT.d.ts +0 -3
  64. package/src/locale/languages/ja-JP.d.ts +0 -3
  65. package/src/locale/languages/ko-KR.d.ts +0 -3
  66. package/src/locale/languages/pl-PL.d.ts +0 -3
  67. package/src/locale/languages/sl-SI.d.ts +0 -3
  68. package/src/locale/languages/tr-TR.d.ts +0 -3
  69. package/src/locale/languages/vi-VI.d.ts +0 -3
  70. package/src/locale/languages/zh-CN.d.ts +0 -3
  71. package/src/locale/languages/zh-TW.d.ts +0 -3
  72. package/src/locale/locale.module.d.ts +0 -6
  73. package/src/locale/locale.service.d.ts +0 -17
  74. package/src/locale/locale.tokens.d.ts +0 -3
  75. package/src/locale/locale.types.d.ts +0 -93
  76. package/src/locale/public_api.d.ts +0 -19
  77. package/src/pipes/date/date.pipe.d.ts +0 -9
  78. package/src/pipes/index.d.ts +0 -5
  79. package/src/pipes/keys/keys.pipe.d.ts +0 -11
  80. package/src/pipes/safe/html.pipe.d.ts +0 -9
  81. package/src/pipes/safe/url.pipe.d.ts +0 -9
  82. package/src/pipes/yn/yn.pipe.d.ts +0 -16
  83. package/src/provide.d.ts +0 -23
  84. package/src/router/optional-preloader.d.ts +0 -20
  85. package/src/services/drawer/drawer.helper.d.ts +0 -71
  86. package/src/services/http/http.client.d.ts +0 -570
  87. package/src/services/http/http.decorator.d.ts +0 -108
  88. package/src/services/http/http.token.d.ts +0 -37
  89. package/src/services/http/index.d.ts +0 -3
  90. package/src/services/i18n/i18n-url.guard.d.ts +0 -36
  91. package/src/services/i18n/i18n.d.ts +0 -90
  92. package/src/services/i18n/i18n.pipe.d.ts +0 -8
  93. package/src/services/i18n/index.d.ts +0 -3
  94. package/src/services/index.d.ts +0 -10
  95. package/src/services/menu/index.d.ts +0 -2
  96. package/src/services/menu/interface.d.ts +0 -79
  97. package/src/services/menu/menu.service.d.ts +0 -114
  98. package/src/services/modal/modal.helper.d.ts +0 -78
  99. package/src/services/preloader/preloader.d.ts +0 -1
  100. package/src/services/responsive/responsive.d.ts +0 -12
  101. package/src/services/rtl/rtl.service.d.ts +0 -48
  102. package/src/services/settings/index.d.ts +0 -2
  103. package/src/services/settings/settings.service.d.ts +0 -40
  104. package/src/services/settings/types.d.ts +0 -35
  105. package/src/services/title/title.service.d.ts +0 -72
  106. package/src/theme.module.d.ts +0 -22
  107. package/src/version.d.ts +0 -2
  108. package/theme-btn/public_api.d.ts +0 -2
  109. package/theme-btn/theme-btn.component.d.ts +0 -32
  110. package/theme-btn/theme-btn.module.d.ts +0 -10
@@ -1,5 +1,2 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@delon/theme/layout-blank" />
5
- export * from './public_api';
1
+
2
+ export { };
@@ -1,5 +1,245 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@delon/theme/layout-default" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef, QueryList, OnInit, OnDestroy, EventEmitter, AfterViewInit } from '@angular/core';
3
+ import * as i8 from '@angular/router';
4
+ import { Event } from '@angular/router';
5
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
6
+ import * as _angular_cdk_bidi_module_d_IN1Vp56w from '@angular/cdk/bidi-module.d-IN1Vp56w';
7
+ import { SafeHtml } from '@angular/platform-browser';
8
+ import { MenuInner, Menu, App } from '@delon/theme';
9
+ import * as i7 from '@angular/common';
10
+ import * as i9 from 'ng-zorro-antd/tooltip';
11
+ import * as i10 from 'ng-zorro-antd/icon';
12
+ import * as i11 from 'ng-zorro-antd/avatar';
13
+ import * as i12 from 'ng-zorro-antd/dropdown';
14
+ import * as i13 from 'ng-zorro-antd/badge';
15
+ import { Observable } from 'rxjs';
16
+
17
+ type LayoutDefaultHeaderItemHidden = 'pc' | 'mobile' | 'none';
18
+ type LayoutDefaultHeaderItemDirection = 'left' | 'middle' | 'right';
19
+ interface LayoutDefaultOptions {
20
+ /**
21
+ * Custom Logo Area
22
+ *
23
+ * 自定义 Logo 区域
24
+ */
25
+ logo?: TemplateRef<NzSafeAny> | null;
26
+ /**
27
+ * Logo url of expanded status, default: `./assets/logo-full.svg`
28
+ *
29
+ * 展开时 Logo 地址,默认:`./assets/logo-full.svg`
30
+ */
31
+ logoExpanded?: string;
32
+ /**
33
+ * Logo url of collapsed status, default: `./assets/logo.svg`
34
+ *
35
+ * 收缩时 Logo 地址,默认:`./assets/logo.svg`
36
+ */
37
+ logoCollapsed?: string;
38
+ /**
39
+ * Specify the logo routing address, default: `/`
40
+ *
41
+ * 指定 Logo 路由地址,默认:`/`
42
+ */
43
+ logoLink?: string;
44
+ /**
45
+ * Specify a fixed logo width
46
+ *
47
+ * 指定固定 Logo 宽度
48
+ */
49
+ logoFixWidth?: number;
50
+ /**
51
+ * Hide the sidebar without showing the collapsed icon button, default: `false`
52
+ *
53
+ * 隐藏侧边栏,同时不显收缩图标按钮,默认:`false`
54
+ */
55
+ hideAside?: boolean;
56
+ /**
57
+ * Hide top bar, default: `false`
58
+ *
59
+ * 隐藏顶栏,默认:`false`
60
+ */
61
+ hideHeader?: boolean;
62
+ /**
63
+ * Whether to display the menu collapse button on the top bar, default: `true`
64
+ *
65
+ * 是否在顶栏显示菜单折叠按钮,默认:`true`
66
+ */
67
+ showHeaderCollapse?: boolean;
68
+ /**
69
+ * Whether to show the menu collapse button at the bottom of the sidebar, default: `false`
70
+ *
71
+ * 是否在侧边栏底部显示菜单折叠按钮,默认:`false`
72
+ */
73
+ showSiderCollapse?: boolean;
74
+ }
75
+
76
+ declare class LayoutDefaultHeaderItemComponent {
77
+ host: TemplateRef<void>;
78
+ hidden: LayoutDefaultHeaderItemHidden;
79
+ direction: LayoutDefaultHeaderItemDirection;
80
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultHeaderItemComponent, never>;
81
+ static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultHeaderItemComponent, "layout-default-header-item", never, { "hidden": { "alias": "hidden"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, {}, never, ["*"], false, never>;
82
+ }
83
+
84
+ declare class LayoutDefaultComponent {
85
+ headerItems: QueryList<LayoutDefaultHeaderItemComponent>;
86
+ get opt(): LayoutDefaultOptions;
87
+ set options(value: LayoutDefaultOptions | null | undefined);
88
+ asideUser: TemplateRef<void> | null;
89
+ asideBottom: TemplateRef<NzSafeAny> | null;
90
+ nav: TemplateRef<void> | null;
91
+ content: TemplateRef<void> | null;
92
+ customError?: string | null;
93
+ fetchingStrictly: boolean;
94
+ fetching: boolean;
95
+ private isFetching;
96
+ get showFetching(): boolean;
97
+ get collapsed(): boolean;
98
+ get collapsedIcon(): string;
99
+ toggleCollapsed(): void;
100
+ private readonly router;
101
+ private readonly msgSrv;
102
+ private readonly settings;
103
+ private readonly el;
104
+ private readonly renderer;
105
+ private readonly doc;
106
+ private readonly srv;
107
+ constructor();
108
+ processEv(ev: Event): void;
109
+ private setClass;
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultComponent, never>;
111
+ static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultComponent, "layout-default", ["layoutDefault"], { "options": { "alias": "options"; "required": false; }; "asideUser": { "alias": "asideUser"; "required": false; }; "asideBottom": { "alias": "asideBottom"; "required": false; }; "nav": { "alias": "nav"; "required": false; }; "content": { "alias": "content"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; "fetchingStrictly": { "alias": "fetchingStrictly"; "required": false; }; "fetching": { "alias": "fetching"; "required": false; }; }, {}, ["headerItems"], ["*"], false, never>;
112
+ static ngAcceptInputType_fetchingStrictly: unknown;
113
+ static ngAcceptInputType_fetching: unknown;
114
+ }
115
+
116
+ interface Nav extends MenuInner {
117
+ _needIcon?: boolean;
118
+ _text?: SafeHtml;
119
+ }
120
+ declare class LayoutDefaultNavComponent implements OnInit, OnDestroy {
121
+ private readonly doc;
122
+ private readonly win;
123
+ private readonly router;
124
+ private readonly render;
125
+ private readonly menuSrv;
126
+ private readonly settings;
127
+ private readonly cdr;
128
+ private readonly ngZone;
129
+ private readonly sanitizer;
130
+ private bodyEl;
131
+ private destroy$;
132
+ private floatingEl;
133
+ dir: i0.WritableSignal<_angular_cdk_bidi_module_d_IN1Vp56w.a>;
134
+ list: Nav[];
135
+ disabledAcl: boolean;
136
+ autoCloseUnderPad: boolean;
137
+ recursivePath: boolean;
138
+ hideEmptyChildren: boolean;
139
+ set openStrictly(value: boolean);
140
+ maxLevelIcon: number;
141
+ readonly select: EventEmitter<Menu>;
142
+ get collapsed(): boolean;
143
+ private getLinkNode;
144
+ private floatingClickHandle;
145
+ private clearFloating;
146
+ private genFloating;
147
+ private genSubNode;
148
+ private hideAll;
149
+ private calPos;
150
+ showSubMenu(e: MouseEvent, item: Nav): void;
151
+ to(item: Menu): void;
152
+ toggleOpen(item: Nav): void;
153
+ _click(): void;
154
+ closeSubMenu(): void;
155
+ private openByUrl;
156
+ ngOnInit(): void;
157
+ private fixHide;
158
+ ngOnDestroy(): void;
159
+ private get isPad();
160
+ private underPad;
161
+ private openAside;
162
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultNavComponent, never>;
163
+ static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultNavComponent, "layout-default-nav", never, { "disabledAcl": { "alias": "disabledAcl"; "required": false; }; "autoCloseUnderPad": { "alias": "autoCloseUnderPad"; "required": false; }; "recursivePath": { "alias": "recursivePath"; "required": false; }; "hideEmptyChildren": { "alias": "hideEmptyChildren"; "required": false; }; "openStrictly": { "alias": "openStrictly"; "required": false; }; "maxLevelIcon": { "alias": "maxLevelIcon"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
164
+ static ngAcceptInputType_disabledAcl: unknown;
165
+ static ngAcceptInputType_autoCloseUnderPad: unknown;
166
+ static ngAcceptInputType_recursivePath: unknown;
167
+ static ngAcceptInputType_hideEmptyChildren: unknown;
168
+ static ngAcceptInputType_openStrictly: unknown;
169
+ static ngAcceptInputType_maxLevelIcon: unknown;
170
+ }
171
+
172
+ interface LayoutDefaultHeaderItem {
173
+ host: TemplateRef<NzSafeAny>;
174
+ hidden?: LayoutDefaultHeaderItemHidden;
175
+ direction?: LayoutDefaultHeaderItemDirection;
176
+ }
177
+ declare class LayoutDefaultHeaderComponent implements AfterViewInit {
178
+ private readonly settings;
179
+ private readonly srv;
180
+ private readonly cdr;
181
+ private readonly destroy$;
182
+ items: QueryList<LayoutDefaultHeaderItemComponent>;
183
+ left: LayoutDefaultHeaderItem[];
184
+ middle: LayoutDefaultHeaderItem[];
185
+ right: LayoutDefaultHeaderItem[];
186
+ get opt(): LayoutDefaultOptions;
187
+ get app(): App;
188
+ get collapsed(): boolean;
189
+ get collapsedIcon(): string;
190
+ private refresh;
191
+ ngAfterViewInit(): void;
192
+ toggleCollapsed(): void;
193
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultHeaderComponent, never>;
194
+ static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultHeaderComponent, "layout-default-header", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, false, never>;
195
+ }
196
+
197
+ declare class LayoutDefaultHeaderItemTriggerDirective {
198
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultHeaderItemTriggerDirective, never>;
199
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LayoutDefaultHeaderItemTriggerDirective, "[layout-default-header-item-trigger]", never, {}, {}, never, never, false, never>;
200
+ }
201
+
202
+ declare class LayoutDefaultTopMenuItemComponent {
203
+ selected: boolean;
204
+ disabled: boolean;
205
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultTopMenuItemComponent, never>;
206
+ static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultTopMenuItemComponent, "layout-default-top-menu-item", never, { "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
207
+ static ngAcceptInputType_selected: unknown;
208
+ static ngAcceptInputType_disabled: unknown;
209
+ }
210
+
211
+ declare class LayoutDefaultModule {
212
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultModule, never>;
213
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutDefaultModule, [typeof LayoutDefaultComponent, typeof LayoutDefaultNavComponent, typeof LayoutDefaultHeaderComponent, typeof LayoutDefaultHeaderItemComponent, typeof LayoutDefaultHeaderItemTriggerDirective, typeof LayoutDefaultTopMenuItemComponent], [typeof i7.CommonModule, typeof i8.RouterModule, typeof i9.NzToolTipModule, typeof i10.NzIconModule, typeof i11.NzAvatarModule, typeof i12.NzDropDownModule, typeof i13.NzBadgeModule], [typeof LayoutDefaultComponent, typeof LayoutDefaultNavComponent, typeof LayoutDefaultHeaderComponent, typeof LayoutDefaultHeaderItemComponent, typeof LayoutDefaultHeaderItemTriggerDirective, typeof LayoutDefaultTopMenuItemComponent]>;
214
+ static ɵinj: i0.ɵɵInjectorDeclaration<LayoutDefaultModule>;
215
+ }
216
+
217
+ declare class LayoutDefaultService {
218
+ private readonly settings;
219
+ private readonly bm;
220
+ private _options$;
221
+ private _options;
222
+ get options(): LayoutDefaultOptions;
223
+ get options$(): Observable<LayoutDefaultOptions>;
224
+ get collapsedIcon(): string;
225
+ constructor();
226
+ private checkMedia;
227
+ private notify;
228
+ /**
229
+ * Set layout configuration
230
+ *
231
+ * 设置布局配置
232
+ */
233
+ setOptions(options?: LayoutDefaultOptions | null): void;
234
+ /**
235
+ * Toggle the collapsed state of the sidebar menu bar
236
+ *
237
+ * 切换侧边栏菜单栏折叠状态
238
+ */
239
+ toggleCollapsed(status?: boolean): void;
240
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultService, never>;
241
+ static ɵprov: i0.ɵɵInjectableDeclaration<LayoutDefaultService>;
242
+ }
243
+
244
+ export { LayoutDefaultComponent, LayoutDefaultHeaderComponent, LayoutDefaultHeaderItemComponent, LayoutDefaultHeaderItemTriggerDirective, LayoutDefaultModule, LayoutDefaultNavComponent, LayoutDefaultService, LayoutDefaultTopMenuItemComponent };
245
+ export type { LayoutDefaultHeaderItemDirection, LayoutDefaultHeaderItemHidden, LayoutDefaultOptions, Nav };
@@ -72,9 +72,9 @@
72
72
  display: block;
73
73
  min-width: 50px;
74
74
  padding: 8px 2px;
75
+ border-radius: 2px;
75
76
  line-height: 100%;
76
77
  text-align: center;
77
- border-radius: 2px;
78
78
  outline: none;
79
79
  transition: background-color 300ms;
80
80
 
@@ -129,9 +129,9 @@
129
129
  .@{ant-prefix}-input,
130
130
  .@{ant-prefix}-input-group-addon,
131
131
  .@{ant-prefix}-input-affix-wrapper {
132
- color: #fff;
133
- background-color: rgba(255, 255, 255, 0.2);
134
132
  border: none;
133
+ color: #fff;
134
+ background-color: rgb(255, 255, 255, 0.2);
135
135
 
136
136
  &::placeholder {
137
137
  color: #fff;
@@ -48,9 +48,9 @@ body {
48
48
  padding: @alain-default-content-padding;
49
49
  padding-top: @alain-default-content-padding - 12;
50
50
  padding-bottom: @alain-default-content-padding - 12;
51
+ border-bottom: 1px solid @alain-default-content-heading-border;
51
52
  color: #929292;
52
53
  background-color: @alain-default-content-heading-bg;
53
- border-bottom: 1px solid @alain-default-content-heading-border;
54
54
 
55
55
  >h1 {
56
56
  margin-bottom: 0;
@@ -35,7 +35,9 @@
35
35
  display: inline-block;
36
36
  min-width: @alain-default-aside-nav-icon-width;
37
37
  margin-right: @layout-gutter;
38
- transition: font-size 0.15s @ease-out, margin 0.3s @ease-in-out;
38
+ transition:
39
+ font-size 0.15s @ease-out,
40
+ margin 0.3s @ease-in-out;
39
41
  }
40
42
 
41
43
  &-img,
@@ -46,7 +48,9 @@
46
48
 
47
49
  &-text {
48
50
  opacity: 1;
49
- transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out;
51
+ transition:
52
+ opacity 0.3s @ease-in-out,
53
+ width 0.3s @ease-in-out;
50
54
  }
51
55
 
52
56
  &-disabled {
@@ -59,10 +63,18 @@
59
63
  }
60
64
  }
61
65
 
66
+ &__divider {
67
+ overflow: hidden;
68
+ height: 1px;
69
+ margin: 4px 0;
70
+ line-height: 0;
71
+ background-color: @alain-default-aside-nav-divider-bg;
72
+ }
73
+
62
74
  // Selected
63
75
  &__selected {
64
- background-color: @alain-default-aside-nav-selected-bg;
65
76
  border-left-color: @alain-default-aside-nav-selected-text-color;
77
+ background-color: @alain-default-aside-nav-selected-bg;
66
78
 
67
79
  > @{sidebar-nav-prefix}__item-link {
68
80
  color: @alain-default-aside-nav-selected-text-color;
@@ -117,10 +129,13 @@
117
129
  position: absolute;
118
130
  width: 6px;
119
131
  height: 1.5px;
132
+ border-radius: 2px;
120
133
  background: #fff;
121
134
  background-image: linear-gradient(to right, @menu-item-color, @menu-item-color);
122
- border-radius: 2px;
123
- transition: background-color 0.3s @ease-in-out, transform 0.3s @ease-in-out, top 0.3s @ease-in-out;
135
+ transition:
136
+ background-color 0.3s @ease-in-out,
137
+ transform 0.3s @ease-in-out,
138
+ top 0.3s @ease-in-out;
124
139
  }
125
140
 
126
141
  &::before {
@@ -182,9 +197,9 @@
182
197
  z-index: @zindex + 7;
183
198
  display: none;
184
199
  min-width: 160px;
185
- background-color: @alain-default-aside-bg;
186
200
  border: 1px solid @alain-default-content-heading-border;
187
201
  border-radius: 4px;
202
+ background-color: @alain-default-aside-bg;
188
203
 
189
204
  @{sidebar-nav-prefix}__item {
190
205
  &-link {
@@ -6,5 +6,6 @@
6
6
  @alain-default-aside-bg: @component-background;
7
7
  @alain-default-aside-nav-selected-bg: @component-background;
8
8
  @alain-default-content-heading-bg: @component-background;
9
+ @alain-default-aside-nav-divider-bg: @border-color-split;
9
10
  @alain-default-content-heading-border: @border-color-split;
10
11
  @alain-default-content-bg: ~'var(--@{alain-default-name}-content-bg, @{body-background})';
@@ -35,6 +35,7 @@
35
35
  @alain-default-aside-nav-depth3-padding-left: @layout-gutter * 5;
36
36
  @alain-default-aside-nav-depth4-padding-left: @layout-gutter * 6;
37
37
  @alain-default-aside-nav-depth5-padding-left: @layout-gutter * 7;
38
+ @alain-default-aside-nav-divider-bg: ~'var(--@{alain-default-name}-aside-nav-divider, #efe3e5)';
38
39
 
39
40
  @alain-default-aside-collapsed-wd: @layout-gutter * 8;
40
41
  @alain-default-aside-collapsed-nav-fs: 24px;
@@ -4,8 +4,8 @@
4
4
  .@{ant-prefix}-col-6 {
5
5
  cursor: pointer;
6
6
  padding: (@layout-gutter * 2) 0;
7
- text-align: center;
8
7
  border-radius: 4px;
8
+ text-align: center;
9
9
  transition: background-color 300ms;
10
10
 
11
11
  &:hover {
@@ -15,8 +15,8 @@
15
15
 
16
16
  i {
17
17
  padding: 15px;
18
- font-size: 22px;
19
18
  border-radius: 50%;
19
+ font-size: 22px;
20
20
  }
21
21
 
22
22
  small {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delon/theme",
3
- "version": "19.1.0",
3
+ "version": "20.0.0-beta.0",
4
4
  "author": "cipchk<cipchk@qq.com>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,11 +21,11 @@
21
21
  "component"
22
22
  ],
23
23
  "dependencies": {
24
- "ng-zorro-antd": "^19.0.2",
25
- "@delon/acl": "^19.1.0",
26
- "@delon/abc": "^19.1.0",
27
- "@delon/form": "^19.1.0",
28
- "@delon/util": "^19.1.0",
24
+ "ng-zorro-antd": "^20.0.0",
25
+ "@delon/acl": "^20.0.0-beta.0",
26
+ "@delon/abc": "^20.0.0-beta.0",
27
+ "@delon/form": "^20.0.0-beta.0",
28
+ "@delon/util": "^20.0.0-beta.0",
29
29
  "tslib": "^2.3.0"
30
30
  },
31
31
  "module": "fesm2022/theme.mjs",
@@ -1,5 +1,65 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@delon/theme/setting-drawer" />
5
- export * from './public_api';
1
+ import { NzSafeAny } from 'ng-zorro-antd/core/types';
2
+ import * as i0 from '@angular/core';
3
+ import { OnInit } from '@angular/core';
4
+ import * as _angular_cdk_bidi_module_d_IN1Vp56w from '@angular/cdk/bidi-module.d-IN1Vp56w';
5
+ import { Layout } from '@delon/theme';
6
+
7
+ declare class SettingDrawerItemComponent {
8
+ i: NzSafeAny;
9
+ set data(val: NzSafeAny);
10
+ pxVal: number;
11
+ pxChange(val: number): void;
12
+ format: (value: number) => string;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerItemComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<SettingDrawerItemComponent, "setting-drawer-item", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
16
+
17
+ declare class SettingDrawerComponent implements OnInit {
18
+ private readonly cdr;
19
+ private readonly msg;
20
+ private readonly settingSrv;
21
+ private readonly lazy;
22
+ private readonly ngZone;
23
+ private readonly doc;
24
+ autoApplyColor: boolean;
25
+ compilingText: string;
26
+ devTips: string;
27
+ lessJs: string;
28
+ private loadedLess;
29
+ dir: i0.WritableSignal<_angular_cdk_bidi_module_d_IN1Vp56w.a>;
30
+ isDev: boolean;
31
+ collapse: boolean;
32
+ get layout(): Layout;
33
+ data: NzSafeAny;
34
+ color: string;
35
+ colors: {
36
+ key: string;
37
+ color: string;
38
+ }[];
39
+ constructor();
40
+ private get cachedData();
41
+ private get DEFAULT_PRIMARY();
42
+ ngOnInit(): void;
43
+ private loadLess;
44
+ private genVars;
45
+ private runLess;
46
+ toggle(): void;
47
+ changeColor(color: string): void;
48
+ setLayout(name: string, value: NzSafeAny): void;
49
+ private resetData;
50
+ private get validKeys();
51
+ apply(): void;
52
+ reset(): void;
53
+ copyVar(): void;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerComponent, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<SettingDrawerComponent, "setting-drawer", never, { "autoApplyColor": { "alias": "autoApplyColor"; "required": false; }; "compilingText": { "alias": "compilingText"; "required": false; }; "devTips": { "alias": "devTips"; "required": false; }; "lessJs": { "alias": "lessJs"; "required": false; }; }, {}, never, never, true, never>;
56
+ static ngAcceptInputType_autoApplyColor: unknown;
57
+ }
58
+
59
+ declare class SettingDrawerModule {
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerModule, never>;
61
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SettingDrawerModule, never, [typeof SettingDrawerItemComponent, typeof SettingDrawerComponent], [typeof SettingDrawerItemComponent, typeof SettingDrawerComponent]>;
62
+ static ɵinj: i0.ɵɵInjectorDeclaration<SettingDrawerModule>;
63
+ }
64
+
65
+ export { SettingDrawerComponent, SettingDrawerItemComponent, SettingDrawerModule };
@@ -43,10 +43,10 @@
43
43
  width: 20px;
44
44
  height: 20px;
45
45
  margin-right: 8px;
46
+ border-radius: 2px;
46
47
  font-weight: bold;
47
48
  color: #fff;
48
49
  text-align: center;
49
- border-radius: 2px;
50
50
  }
51
51
  }
52
52
 
@@ -62,10 +62,10 @@
62
62
  justify-content: center;
63
63
  width: 48px;
64
64
  height: 48px;
65
+ border-radius: 4px 0 0 4px;
65
66
  font-size: 16px;
66
67
  text-align: center;
67
68
  background: @primary-color;
68
- border-radius: 4px 0 0 4px;
69
69
  transition: right @animation-duration-slow @ease-base-in;
70
70
 
71
71
  &-icon {
@@ -128,9 +128,9 @@
128
128
  left: 0;
129
129
  width: 100%;
130
130
  padding: @drawer-footer-padding-vertical @drawer-body-padding;
131
- text-align: right;
132
- background: @popover-background;
133
131
  border-top: @border-width-base @border-style-base @border-color-split;
134
132
  border-radius: 0 0 @border-radius-base @border-radius-base;
133
+ text-align: right;
134
+ background: @popover-background;
135
135
  }
136
136
  }
@@ -51,9 +51,9 @@
51
51
  justify-content: space-between;
52
52
  margin: -@margin-lg -@margin-lg @margin-lg -@margin-lg;
53
53
  padding: @modal-header-padding;
54
- background: @component-background;
55
54
  border-bottom: @border-width-base @border-style-base @border-color-split;
56
55
  border-radius: @border-radius-base @border-radius-base 0 0;
56
+ background: @component-background;
57
57
  }
58
58
 
59
59
  &-title {
@@ -96,9 +96,9 @@
96
96
  */
97
97
  margin: @margin-lg -@margin-lg -@margin-lg -@margin-lg;
98
98
  padding: @modal-footer-padding-vertical @modal-footer-padding-horizontal;
99
- text-align: right;
100
99
  border-top: @border-width-base @border-style-base @border-color-split;
101
100
  border-radius: 0 0 @border-radius-base @border-radius-base;
101
+ text-align: right;
102
102
  }
103
103
 
104
104
  &-include-tabs {
@@ -107,7 +107,7 @@
107
107
  *
108
108
  * 模态框内容是否包裹 `nz-tabs`,清除带来的多余边距
109
109
  */
110
- nz-tabset {
110
+ nz-tabset, nz-tabs {
111
111
  margin-top: -16px;
112
112
  }
113
113
  }
@@ -11,8 +11,8 @@
11
11
  .img {
12
12
  max-width: @nz-table-img-max-width;
13
13
  max-height: @nz-table-img-max-height;
14
- vertical-align: middle;
15
14
  border-radius: @nz-table-img-radius;
15
+ vertical-align: middle;
16
16
 
17
17
  &:not(:last-child) {
18
18
  margin-right: @nz-table-img-margin-right;
@@ -98,9 +98,9 @@
98
98
  align-items: center;
99
99
  width: 100%;
100
100
  padding: @nz-table-rep-padding-vertical @nz-table-rep-padding-horizontal;
101
+ border-bottom: none;
101
102
  text-align: left !important;
102
103
  white-space: inherit;
103
- border-bottom: none;
104
104
 
105
105
  .@{ant-prefix}-table-rep__title + *:not(.@{ant-prefix}-avatar) {
106
106
  flex: 1;
@@ -6,8 +6,8 @@
6
6
  * 标签:【+】的样式
7
7
  */
8
8
  .@{ant-prefix}-tag {
9
- background: #fff;
10
9
  border-style: dashed;
10
+ background: #fff;
11
11
  }
12
12
  }
13
13
  }
@@ -8,12 +8,12 @@
8
8
  .@{ant-prefix}-btn:not(.ant-btn-link) + nz-popconfirm,
9
9
  nz-popconfirm + .@{ant-prefix}-btn,
10
10
  nz-popconfirm + nz-popconfirm,
11
- .@{ant-prefix}-btn:not(.ant-btn-link) + nz-button-group,
12
- nz-button-group + .@{ant-prefix}-btn,
11
+ .@{ant-prefix}-btn:not(.ant-btn-link) + nz-space-compact,
12
+ nz-space-compact + .@{ant-prefix}-btn,
13
13
  .@{ant-prefix}-btn:not(.ant-btn-link) + nz-dropdown,
14
14
  nz-dropdown + .@{ant-prefix}-btn,
15
- nz-popconfirm + nz-button-group,
16
- nz-button-group + nz-popconfirm {
15
+ nz-popconfirm + nz-space-compact,
16
+ nz-space-compact + nz-popconfirm {
17
17
  margin-left: @preserve-buttons-spaces;
18
18
  }
19
19
  .@{ant-prefix}-btn-group {
@@ -36,12 +36,12 @@
36
36
  .@{ant-prefix}-btn + nz-popconfirm,
37
37
  nz-popconfirm + .@{ant-prefix}-btn,
38
38
  nz-popconfirm + nz-popconfirm,
39
- .@{ant-prefix}-btn + nz-button-group,
40
- nz-button-group + .@{ant-prefix}-btn,
39
+ .@{ant-prefix}-btn + nz-space-compact,
40
+ nz-space-compact + .@{ant-prefix}-btn,
41
41
  .@{ant-prefix}-btn + nz-dropdown,
42
42
  nz-dropdown + .@{ant-prefix}-btn,
43
- nz-popconfirm + nz-button-group,
44
- nz-button-group + nz-popconfirm {
43
+ nz-popconfirm + nz-space-compact,
44
+ nz-space-compact + nz-popconfirm {
45
45
  margin-right: @preserve-buttons-spaces;
46
46
  margin-left: inherit;
47
47
  }
@@ -2,8 +2,8 @@
2
2
  code {
3
3
  margin: 0 4px;
4
4
  padding: 2px 4px;
5
- font-size: 90%;
6
- background-color: @code-bg;
7
5
  border: 1px solid @code-border-color;
8
6
  border-radius: @border-radius-base;
7
+ font-size: 90%;
8
+ background-color: @code-bg;
9
9
  }
@@ -58,8 +58,8 @@
58
58
  * 隐藏滚动条
59
59
  */
60
60
  .hide-scrollbar {
61
- scrollbar-width: none;
62
61
  scrollbar-color: transparent transparent;
62
+ scrollbar-width: none;
63
63
 
64
64
  &::-webkit-scrollbar {
65
65
  width: 1px;
@@ -1,6 +1,6 @@
1
1
  .header-dropdown {
2
- background-color: @popover-background;
3
2
  border-radius: 4px;
3
+ background-color: @popover-background;
4
4
  box-shadow: @shadow-1-down;
5
5
  }
6
6