@delon/theme 20.1.1 → 21.0.0-next.1
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.
- package/compact.css +853 -632
- package/compact.min.css +1 -1
- package/dark.css +850 -629
- package/dark.min.css +1 -1
- package/default.css +850 -629
- package/default.min.css +1 -1
- package/fesm2022/layout-default.mjs +499 -400
- package/fesm2022/layout-default.mjs.map +1 -1
- package/fesm2022/setting-drawer.mjs +86 -13
- package/fesm2022/setting-drawer.mjs.map +1 -1
- package/fesm2022/theme-btn.mjs +96 -32
- package/fesm2022/theme-btn.mjs.map +1 -1
- package/fesm2022/theme.mjs +492 -134
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-default/style/_layout.less +2 -1
- package/package.json +12 -12
- package/system/theme-default.less +1 -1
- package/types/layout-default.d.ts +210 -0
- package/types/theme-btn.d.ts +42 -0
- package/{index.d.ts → types/theme.d.ts} +29 -7
- package/variable.css +850 -629
- package/variable.min.css +1 -1
- package/layout-default/index.d.ts +0 -245
- package/theme-btn/index.d.ts +0 -42
- /package/{layout-blank/index.d.ts → types/layout-blank.d.ts} +0 -0
- /package/{setting-drawer/index.d.ts → types/setting-drawer.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0-next.1",
|
|
4
4
|
"author": "cipchk<cipchk@qq.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,37 +21,37 @@
|
|
|
21
21
|
"component"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"ng-zorro-antd": "^
|
|
25
|
-
"@delon/acl": "^
|
|
26
|
-
"@delon/abc": "^
|
|
27
|
-
"@delon/form": "^
|
|
28
|
-
"@delon/util": "^
|
|
24
|
+
"ng-zorro-antd": "^21.0.0-beta.0",
|
|
25
|
+
"@delon/acl": "^21.0.0-next.1",
|
|
26
|
+
"@delon/abc": "^21.0.0-next.1",
|
|
27
|
+
"@delon/form": "^21.0.0-next.1",
|
|
28
|
+
"@delon/util": "^21.0.0-next.1",
|
|
29
29
|
"tslib": "^2.3.0"
|
|
30
30
|
},
|
|
31
31
|
"module": "fesm2022/theme.mjs",
|
|
32
|
-
"typings": "
|
|
32
|
+
"typings": "types/theme.d.ts",
|
|
33
33
|
"exports": {
|
|
34
34
|
"./package.json": {
|
|
35
35
|
"default": "./package.json"
|
|
36
36
|
},
|
|
37
37
|
".": {
|
|
38
|
-
"types": "./
|
|
38
|
+
"types": "./types/theme.d.ts",
|
|
39
39
|
"default": "./fesm2022/theme.mjs"
|
|
40
40
|
},
|
|
41
41
|
"./layout-blank": {
|
|
42
|
-
"types": "./layout-blank
|
|
42
|
+
"types": "./types/layout-blank.d.ts",
|
|
43
43
|
"default": "./fesm2022/layout-blank.mjs"
|
|
44
44
|
},
|
|
45
45
|
"./layout-default": {
|
|
46
|
-
"types": "./layout-default
|
|
46
|
+
"types": "./types/layout-default.d.ts",
|
|
47
47
|
"default": "./fesm2022/layout-default.mjs"
|
|
48
48
|
},
|
|
49
49
|
"./setting-drawer": {
|
|
50
|
-
"types": "./setting-drawer
|
|
50
|
+
"types": "./types/setting-drawer.d.ts",
|
|
51
51
|
"default": "./fesm2022/setting-drawer.mjs"
|
|
52
52
|
},
|
|
53
53
|
"./theme-btn": {
|
|
54
|
-
"types": "./theme-btn
|
|
54
|
+
"types": "./types/theme-btn.d.ts",
|
|
55
55
|
"default": "./fesm2022/theme-btn.mjs"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnDestroy } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/router';
|
|
4
|
+
import { Event } from '@angular/router';
|
|
5
|
+
import { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
|
+
import * as i3 from 'ng-zorro-antd/tooltip';
|
|
8
|
+
import * as i4 from 'ng-zorro-antd/icon';
|
|
9
|
+
import * as i5 from 'ng-zorro-antd/avatar';
|
|
10
|
+
import * as i6 from 'ng-zorro-antd/dropdown';
|
|
11
|
+
import * as i7 from 'ng-zorro-antd/badge';
|
|
12
|
+
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
13
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
14
|
+
import { MenuInner, Menu } from '@delon/theme';
|
|
15
|
+
import * as _delon_theme_layout_default from '@delon/theme/layout-default';
|
|
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
|
+
readonly host: _angular_core.Signal<TemplateRef<void> | undefined>;
|
|
78
|
+
readonly hidden: _angular_core.InputSignal<LayoutDefaultHeaderItemHidden>;
|
|
79
|
+
readonly direction: _angular_core.InputSignal<LayoutDefaultHeaderItemDirection>;
|
|
80
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutDefaultHeaderItemComponent, never>;
|
|
81
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LayoutDefaultHeaderItemComponent, "layout-default-header-item", never, { "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class LayoutDefaultService {
|
|
85
|
+
private readonly settings;
|
|
86
|
+
private readonly bm;
|
|
87
|
+
readonly options: _angular_core.WritableSignal<LayoutDefaultOptions>;
|
|
88
|
+
readonly collapsedIcon: _angular_core.WritableSignal<string>;
|
|
89
|
+
constructor();
|
|
90
|
+
private checkMedia;
|
|
91
|
+
/**
|
|
92
|
+
* Set layout configuration
|
|
93
|
+
*
|
|
94
|
+
* 设置布局配置
|
|
95
|
+
*/
|
|
96
|
+
setOptions(options?: LayoutDefaultOptions | null): void;
|
|
97
|
+
/**
|
|
98
|
+
* Toggle the collapsed state of the sidebar menu bar
|
|
99
|
+
*
|
|
100
|
+
* 切换侧边栏菜单栏折叠状态
|
|
101
|
+
*/
|
|
102
|
+
toggleCollapsed(status?: boolean): void;
|
|
103
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutDefaultService, never>;
|
|
104
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<LayoutDefaultService>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class LayoutDefaultComponent {
|
|
108
|
+
private readonly router;
|
|
109
|
+
private readonly msgSrv;
|
|
110
|
+
private readonly settings;
|
|
111
|
+
private readonly doc;
|
|
112
|
+
protected readonly srv: LayoutDefaultService;
|
|
113
|
+
protected readonly headerItems: _angular_core.Signal<readonly LayoutDefaultHeaderItemComponent[]>;
|
|
114
|
+
protected opt: _angular_core.WritableSignal<LayoutDefaultOptions>;
|
|
115
|
+
protected layout: _angular_core.WritableSignal<any>;
|
|
116
|
+
readonly options: _angular_core.InputSignal<LayoutDefaultOptions | undefined>;
|
|
117
|
+
readonly asideUser: _angular_core.InputSignal<TemplateRef<void> | null | undefined>;
|
|
118
|
+
readonly asideBottom: _angular_core.InputSignal<TemplateRef<any> | null | undefined>;
|
|
119
|
+
readonly nav: _angular_core.InputSignal<TemplateRef<void> | null | undefined>;
|
|
120
|
+
readonly content: _angular_core.InputSignal<TemplateRef<void> | null | undefined>;
|
|
121
|
+
readonly customError: _angular_core.InputSignal<string | null | undefined>;
|
|
122
|
+
readonly fetchingStrictly: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
123
|
+
readonly fetching: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
124
|
+
private isFetching;
|
|
125
|
+
readonly showFetching: _angular_core.Signal<boolean>;
|
|
126
|
+
constructor();
|
|
127
|
+
processEv(ev: Event): void;
|
|
128
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutDefaultComponent, never>;
|
|
129
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LayoutDefaultComponent, "layout-default", ["layoutDefault"], { "options": { "alias": "options"; "required": false; "isSignal": true; }; "asideUser": { "alias": "asideUser"; "required": false; "isSignal": true; }; "asideBottom": { "alias": "asideBottom"; "required": false; "isSignal": true; }; "nav": { "alias": "nav"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "customError": { "alias": "customError"; "required": false; "isSignal": true; }; "fetchingStrictly": { "alias": "fetchingStrictly"; "required": false; "isSignal": true; }; "fetching": { "alias": "fetching"; "required": false; "isSignal": true; }; }, {}, ["headerItems"], ["*"], true, never>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
interface Nav extends MenuInner {
|
|
133
|
+
_needIcon?: boolean;
|
|
134
|
+
_text?: SafeHtml;
|
|
135
|
+
}
|
|
136
|
+
declare class LayoutDefaultNavComponent implements OnDestroy {
|
|
137
|
+
private readonly doc;
|
|
138
|
+
private readonly win;
|
|
139
|
+
private readonly router;
|
|
140
|
+
private readonly render;
|
|
141
|
+
private readonly menuSrv;
|
|
142
|
+
private readonly settings;
|
|
143
|
+
private readonly sanitizer;
|
|
144
|
+
private bodyEl;
|
|
145
|
+
private floatingEl;
|
|
146
|
+
dir: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
147
|
+
list: _angular_core.WritableSignal<Nav[]>;
|
|
148
|
+
readonly disabledAcl: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
149
|
+
readonly autoCloseUnderPad: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
150
|
+
readonly recursivePath: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
151
|
+
readonly hideEmptyChildren: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
152
|
+
readonly openStrictly: _angular_core.InputSignal<boolean | undefined>;
|
|
153
|
+
readonly maxLevelIcon: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
154
|
+
readonly select: _angular_core.OutputEmitterRef<Menu>;
|
|
155
|
+
get collapsed(): boolean;
|
|
156
|
+
constructor();
|
|
157
|
+
private getLinkNode;
|
|
158
|
+
private floatingClickHandle;
|
|
159
|
+
private clearFloating;
|
|
160
|
+
private genFloating;
|
|
161
|
+
private genSubNode;
|
|
162
|
+
private hideAll;
|
|
163
|
+
private calPos;
|
|
164
|
+
protected showSubMenu(e: MouseEvent, item: Nav): void;
|
|
165
|
+
protected to(item: Menu): void;
|
|
166
|
+
protected toggleOpen(item: Nav): void;
|
|
167
|
+
protected _click(): void;
|
|
168
|
+
protected closeSubMenu(): void;
|
|
169
|
+
private openByUrl;
|
|
170
|
+
private fixHide;
|
|
171
|
+
private get isPad();
|
|
172
|
+
private underPad;
|
|
173
|
+
private openAside;
|
|
174
|
+
ngOnDestroy(): void;
|
|
175
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutDefaultNavComponent, never>;
|
|
176
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LayoutDefaultNavComponent, "layout-default-nav", never, { "disabledAcl": { "alias": "disabledAcl"; "required": false; "isSignal": true; }; "autoCloseUnderPad": { "alias": "autoCloseUnderPad"; "required": false; "isSignal": true; }; "recursivePath": { "alias": "recursivePath"; "required": false; "isSignal": true; }; "hideEmptyChildren": { "alias": "hideEmptyChildren"; "required": false; "isSignal": true; }; "openStrictly": { "alias": "openStrictly"; "required": false; "isSignal": true; }; "maxLevelIcon": { "alias": "maxLevelIcon"; "required": false; "isSignal": true; }; }, { "select": "select"; }, never, never, true, never>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare class LayoutDefaultHeaderComponent {
|
|
180
|
+
protected readonly app: any;
|
|
181
|
+
protected readonly srv: LayoutDefaultService;
|
|
182
|
+
readonly items: _angular_core.InputSignal<readonly LayoutDefaultHeaderItemComponent[]>;
|
|
183
|
+
protected left: _angular_core.Signal<LayoutDefaultHeaderItemComponent[]>;
|
|
184
|
+
protected middle: _angular_core.Signal<LayoutDefaultHeaderItemComponent[]>;
|
|
185
|
+
protected right: _angular_core.Signal<LayoutDefaultHeaderItemComponent[]>;
|
|
186
|
+
protected opt: _angular_core.WritableSignal<_delon_theme_layout_default.LayoutDefaultOptions>;
|
|
187
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutDefaultHeaderComponent, never>;
|
|
188
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LayoutDefaultHeaderComponent, "layout-default-header", never, { "items": { "alias": "items"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare class LayoutDefaultHeaderItemTriggerDirective {
|
|
192
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutDefaultHeaderItemTriggerDirective, never>;
|
|
193
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<LayoutDefaultHeaderItemTriggerDirective, "[layout-default-header-item-trigger]", never, {}, {}, never, never, true, never>;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
declare class LayoutDefaultTopMenuItemComponent {
|
|
197
|
+
readonly selected: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
198
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
199
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutDefaultTopMenuItemComponent, never>;
|
|
200
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LayoutDefaultTopMenuItemComponent, "layout-default-top-menu-item", never, { "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
declare class LayoutDefaultModule {
|
|
204
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LayoutDefaultModule, never>;
|
|
205
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<LayoutDefaultModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.NzTooltipModule, typeof i4.NzIconModule, typeof i5.NzAvatarModule, typeof i6.NzDropdownModule, typeof i7.NzBadgeModule, typeof LayoutDefaultComponent, typeof LayoutDefaultNavComponent, typeof LayoutDefaultHeaderComponent, typeof LayoutDefaultHeaderItemComponent, typeof LayoutDefaultHeaderItemTriggerDirective, typeof LayoutDefaultTopMenuItemComponent], [typeof LayoutDefaultComponent, typeof LayoutDefaultNavComponent, typeof LayoutDefaultHeaderComponent, typeof LayoutDefaultHeaderItemComponent, typeof LayoutDefaultHeaderItemTriggerDirective, typeof LayoutDefaultTopMenuItemComponent]>;
|
|
206
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<LayoutDefaultModule>;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export { LayoutDefaultComponent, LayoutDefaultHeaderComponent, LayoutDefaultHeaderItemComponent, LayoutDefaultHeaderItemTriggerDirective, LayoutDefaultModule, LayoutDefaultNavComponent, LayoutDefaultService, LayoutDefaultTopMenuItemComponent };
|
|
210
|
+
export type { LayoutDefaultHeaderItemDirection, LayoutDefaultHeaderItemHidden, LayoutDefaultOptions, Nav };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnDestroy } from '@angular/core';
|
|
3
|
+
import * as _angular_cdk_bidi from '@angular/cdk/bidi';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
5
|
+
import * as i2 from 'ng-zorro-antd/dropdown';
|
|
6
|
+
import * as i3 from 'ng-zorro-antd/tooltip';
|
|
7
|
+
|
|
8
|
+
interface ThemeBtnType {
|
|
9
|
+
key: string;
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ALAIN_THEME_BTN_KEYS: InjectionToken<string>;
|
|
13
|
+
declare class ThemeBtnComponent implements OnDestroy {
|
|
14
|
+
private readonly doc;
|
|
15
|
+
private readonly platform;
|
|
16
|
+
private readonly renderer;
|
|
17
|
+
private readonly configSrv;
|
|
18
|
+
protected dir: _angular_core.WritableSignal<_angular_cdk_bidi.Direction>;
|
|
19
|
+
private key;
|
|
20
|
+
private theme;
|
|
21
|
+
protected isDev: boolean;
|
|
22
|
+
readonly types: _angular_core.InputSignal<ThemeBtnType[]>;
|
|
23
|
+
readonly devTips: _angular_core.InputSignal<string>;
|
|
24
|
+
readonly deployUrl: _angular_core.InputSignal<string>;
|
|
25
|
+
readonly themeChange: _angular_core.OutputEmitterRef<string>;
|
|
26
|
+
constructor();
|
|
27
|
+
private initTheme;
|
|
28
|
+
private updateChartTheme;
|
|
29
|
+
onThemeChange(theme: string): void;
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeBtnComponent, never>;
|
|
32
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ThemeBtnComponent, "theme-btn", never, { "types": { "alias": "types"; "required": false; "isSignal": true; }; "devTips": { "alias": "devTips"; "required": false; "isSignal": true; }; "deployUrl": { "alias": "deployUrl"; "required": false; "isSignal": true; }; }, { "themeChange": "themeChange"; }, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare class ThemeBtnModule {
|
|
36
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ThemeBtnModule, never>;
|
|
37
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ThemeBtnModule, never, [typeof i1.CommonModule, typeof i2.NzDropdownModule, typeof i3.NzTooltipModule, typeof ThemeBtnComponent], [typeof ThemeBtnComponent]>;
|
|
38
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<ThemeBtnModule>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { ALAIN_THEME_BTN_KEYS, ThemeBtnComponent, ThemeBtnModule };
|
|
42
|
+
export type { ThemeBtnType };
|
|
@@ -257,9 +257,9 @@ declare class SettingsService<L extends Layout = Layout, U extends User = User,
|
|
|
257
257
|
private readonly KEYS;
|
|
258
258
|
private readonly platform;
|
|
259
259
|
private notify$;
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
readonly appSignal: i0.WritableSignal<A>;
|
|
261
|
+
readonly userSignal: i0.WritableSignal<U>;
|
|
262
|
+
readonly layoutSignal: i0.WritableSignal<L>;
|
|
263
263
|
getData(key: string): NzSafeAny;
|
|
264
264
|
setData(key: string, value: NzSafeAny): void;
|
|
265
265
|
get layout(): L;
|
|
@@ -431,8 +431,6 @@ interface AlainI18NService {
|
|
|
431
431
|
* Change language
|
|
432
432
|
*
|
|
433
433
|
* 变更语言
|
|
434
|
-
*
|
|
435
|
-
* @param emit 是否触发 `change`,默认:true ; Should be removed, please use `change` event instead.
|
|
436
434
|
*/
|
|
437
435
|
use(lang: string, data?: Record<string, unknown>): void;
|
|
438
436
|
/**
|
|
@@ -445,7 +443,6 @@ interface AlainI18NService {
|
|
|
445
443
|
* Translate 翻译
|
|
446
444
|
*
|
|
447
445
|
* @param params 模板所需要的参数对象
|
|
448
|
-
* @param isSafe 是否返回安全字符,自动调用 `bypassSecurityTrustHtml`; Should be removed, If you need SafeHtml support, please use `| html` pipe instead.
|
|
449
446
|
*/
|
|
450
447
|
fanyi(path: string, params?: unknown | unknown[]): string;
|
|
451
448
|
}
|
|
@@ -462,6 +459,10 @@ declare abstract class AlainI18nBaseService implements AlainI18NService {
|
|
|
462
459
|
get currentLang(): string;
|
|
463
460
|
get data(): Record<string, string>;
|
|
464
461
|
constructor();
|
|
462
|
+
/**
|
|
463
|
+
* Merge the data into the current language data.
|
|
464
|
+
*/
|
|
465
|
+
mergeData(data?: Record<string, unknown>): void;
|
|
465
466
|
/**
|
|
466
467
|
* Flattened data source
|
|
467
468
|
*
|
|
@@ -1392,6 +1393,23 @@ interface ExceptionLocaleData extends LocaleData {
|
|
|
1392
1393
|
500: string;
|
|
1393
1394
|
backToHome: string;
|
|
1394
1395
|
}
|
|
1396
|
+
interface DatePickerLocaleData extends LocaleData {
|
|
1397
|
+
today: string;
|
|
1398
|
+
yesterday: string;
|
|
1399
|
+
last3Days: string;
|
|
1400
|
+
last7Days: string;
|
|
1401
|
+
thisWeek: string;
|
|
1402
|
+
lastWeek: string;
|
|
1403
|
+
thisMonth: string;
|
|
1404
|
+
lastMonth: string;
|
|
1405
|
+
thisYear: string;
|
|
1406
|
+
}
|
|
1407
|
+
interface LoadingLocaleData extends LocaleData {
|
|
1408
|
+
text: string;
|
|
1409
|
+
}
|
|
1410
|
+
interface PageHeaderLocaleData extends LocaleData {
|
|
1411
|
+
home: string;
|
|
1412
|
+
}
|
|
1395
1413
|
interface NoticeIconLocaleData extends LocaleData {
|
|
1396
1414
|
emptyText: string;
|
|
1397
1415
|
clearText: string;
|
|
@@ -1413,6 +1431,7 @@ interface STLocaleData extends LocaleData {
|
|
|
1413
1431
|
total: string;
|
|
1414
1432
|
filterConfirm: string;
|
|
1415
1433
|
filterReset: string;
|
|
1434
|
+
more: string;
|
|
1416
1435
|
}
|
|
1417
1436
|
interface SFLocaleData extends LocaleData {
|
|
1418
1437
|
submit: string;
|
|
@@ -1473,6 +1492,9 @@ interface FullLocaleData {
|
|
|
1473
1492
|
reuseTab: ReuseTabLocaleData;
|
|
1474
1493
|
tagSelect: TagSelectLocaleData;
|
|
1475
1494
|
onboarding: OnboardingLocaleData;
|
|
1495
|
+
datePicker: DatePickerLocaleData;
|
|
1496
|
+
loading: LoadingLocaleData;
|
|
1497
|
+
pageHeader: PageHeaderLocaleData;
|
|
1476
1498
|
miniProgress: MiniProgressLocaleData;
|
|
1477
1499
|
st: STLocaleData;
|
|
1478
1500
|
sf: SFLocaleData;
|
|
@@ -1698,4 +1720,4 @@ declare class PreloadOptionalModules implements PreloadingStrategy {
|
|
|
1698
1720
|
declare const VERSION: Version;
|
|
1699
1721
|
|
|
1700
1722
|
export { ALAIN_I18N_TOKEN, ALAIN_SETTING_DEFAULT, ALAIN_SETTING_KEYS, AlainI18NGuardService, AlainI18NServiceFake, AlainI18nBaseService, AlainThemeModule, BaseApi, BaseHeaders, BaseUrl, Body, CUSTOM_ERROR, DELETE, DELON_LOCALE, DELON_LOCALE_SERVICE_PROVIDER, DELON_LOCALE_SERVICE_PROVIDER_FACTORY, DatePipe, DelonLocaleModule, DelonLocaleService, DrawerHelper, FORM, GET, HEAD, HTMLPipe, HTML_DIR, Headers, I18nPipe, IGNORE_BASE_URL, JSONP, KeysPipe, LTR, MenuService, ModalHelper, OPTIONS, PATCH, POST, PUT, Path, Payload, PreloadOptionalModules, Query, RAW_BODY, REP_MAX, RTL, RTLService, RTL_DELON_COMPONENTS, RTL_DIRECTION, RTL_NZ_COMPONENTS, ResponsiveService, SPAN_MAX, SettingsService, TitleService, URLPipe, VERSION, YNPipe, _HttpClient, alainI18nCanActivate, alainI18nCanActivateChild, _default$4 as ar_SA, _default$d as el_GR, _default$j as en_US, _default$7 as es_ES, _default$8 as fr_FR, _default$b as hr_HR, _default$3 as id_ID, _default$6 as it_IT, _default$a as ja_JP, _default$2 as km_KH, _default$c as ko_KR, _default$1 as ms_MY, _default$e as pl_PL, provideAlain, _default$9 as sl_SI, stepPreloader, _default as th_TH, _default$f as tr_TR, _default$5 as vi_VN, yn, _default$i as zh_CN, _default$h as zh_HK, _default$g as zh_TW };
|
|
1701
|
-
export type { AlainI18NService, AlainProvideLang, AlainProvideOptions, ApiConfig, App, DrawerHelperOptions, Environment, ExceptionLocaleData, FullLocaleData, HttpObserve, HttpOptions, Layout, LocaleData, METHOD_TYPE, Menu, MenuIcon, MenuInner, MiniProgressLocaleData, ModalHelperDragOptions, ModalHelperOptions, NoticeIconLocaleData, OnboardingLocaleData, REP_TYPE, ReuseTabLocaleData, RouteTitle, SFErrorLocaleData, SFLocaleData, STLocaleData, SettingsKeys, SettingsNotify, TagSelectLocaleData, User, YNMode, YNOptions, _HttpHeaders };
|
|
1723
|
+
export type { AlainI18NService, AlainProvideLang, AlainProvideOptions, ApiConfig, App, DatePickerLocaleData, DrawerHelperOptions, Environment, ExceptionLocaleData, FullLocaleData, HttpObserve, HttpOptions, Layout, LoadingLocaleData, LocaleData, METHOD_TYPE, Menu, MenuIcon, MenuInner, MiniProgressLocaleData, ModalHelperDragOptions, ModalHelperOptions, NoticeIconLocaleData, OnboardingLocaleData, PageHeaderLocaleData, REP_TYPE, ReuseTabLocaleData, RouteTitle, SFErrorLocaleData, SFLocaleData, STLocaleData, SettingsKeys, SettingsNotify, TagSelectLocaleData, User, YNMode, YNOptions, _HttpHeaders };
|