@delon/theme 13.5.2 → 14.0.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.
- package/compact.css +59 -2
- package/compact.min.css +1 -1
- package/dark.css +59 -2
- package/dark.min.css +1 -1
- package/default.css +59 -2
- package/default.min.css +1 -1
- package/esm2020/layout-default/layout-header-item-trigger.directive.mjs +4 -4
- package/esm2020/layout-default/layout-header-item.component.mjs +4 -4
- package/esm2020/layout-default/layout-header.component.mjs +5 -5
- package/esm2020/layout-default/layout-nav.component.mjs +34 -47
- package/esm2020/layout-default/layout.component.mjs +7 -7
- package/esm2020/layout-default/layout.module.mjs +12 -14
- package/esm2020/public_api.mjs +2 -3
- package/esm2020/setting-drawer/setting-drawer-item.component.mjs +10 -10
- package/esm2020/setting-drawer/setting-drawer.component.mjs +16 -16
- package/esm2020/setting-drawer/setting-drawer.module.mjs +16 -18
- package/esm2020/src/locale/languages/zh-TW.mjs +3 -3
- package/esm2020/src/locale/locale.module.mjs +5 -5
- package/esm2020/src/locale/locale.service.mjs +4 -4
- package/esm2020/src/pipes/date/date.pipe.mjs +4 -4
- package/esm2020/src/pipes/keys/keys.pipe.mjs +4 -4
- package/esm2020/src/pipes/safe/html.pipe.mjs +4 -4
- package/esm2020/src/pipes/safe/url.pipe.mjs +4 -4
- package/esm2020/src/pipes/yn/yn.pipe.mjs +4 -4
- package/esm2020/src/services/drawer/drawer.helper.mjs +4 -4
- package/esm2020/src/services/http/http.client.mjs +4 -4
- package/esm2020/src/services/http/http.decorator.mjs +4 -4
- package/esm2020/src/services/http/http.token.mjs +38 -0
- package/esm2020/src/services/http/index.mjs +4 -0
- package/esm2020/src/services/i18n/i18n-url.guard.mjs +4 -4
- package/esm2020/src/services/i18n/i18n.mjs +7 -7
- package/esm2020/src/services/i18n/i18n.pipe.mjs +4 -4
- package/esm2020/src/services/menu/interface.mjs +1 -1
- package/esm2020/src/services/menu/menu.service.mjs +127 -36
- package/esm2020/src/services/modal/modal.helper.mjs +4 -4
- package/esm2020/src/services/responsive/responsive.mjs +4 -4
- package/esm2020/src/services/rtl/rtl.service.mjs +4 -4
- package/esm2020/src/services/settings/settings.service.mjs +4 -4
- package/esm2020/src/services/title/title.service.mjs +71 -49
- package/esm2020/src/theme.module.mjs +6 -6
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/theme-btn/theme-btn.component.mjs +8 -8
- package/esm2020/theme-btn/theme-btn.module.mjs +6 -6
- package/fesm2015/layout-default.mjs +179 -194
- package/fesm2015/layout-default.mjs.map +1 -1
- package/fesm2015/setting-drawer.mjs +41 -43
- package/fesm2015/setting-drawer.mjs.map +1 -1
- package/fesm2015/theme-btn.mjs +12 -12
- package/fesm2015/theme-btn.mjs.map +1 -1
- package/fesm2015/theme.mjs +301 -148
- package/fesm2015/theme.mjs.map +1 -1
- package/fesm2020/layout-default.mjs +179 -194
- package/fesm2020/layout-default.mjs.map +1 -1
- package/fesm2020/setting-drawer.mjs +41 -43
- package/fesm2020/setting-drawer.mjs.map +1 -1
- package/fesm2020/theme-btn.mjs +12 -12
- package/fesm2020/theme-btn.mjs.map +1 -1
- package/fesm2020/theme.mjs +298 -148
- package/fesm2020/theme.mjs.map +1 -1
- package/{theme.d.ts → index.d.ts} +0 -0
- package/layout-blank/{layout-blank.d.ts → index.d.ts} +0 -0
- package/layout-default/{layout-default.d.ts → index.d.ts} +0 -0
- package/layout-default/layout-header-item-trigger.directive.d.ts +1 -1
- package/layout-default/layout-header-item.component.d.ts +1 -1
- package/layout-default/layout-header.component.d.ts +1 -1
- package/layout-default/layout-nav.component.d.ts +4 -3
- package/layout-default/layout.component.d.ts +1 -1
- package/package.json +10 -10
- package/public_api.d.ts +1 -2
- package/setting-drawer/{setting-drawer.d.ts → index.d.ts} +0 -0
- package/setting-drawer/setting-drawer-item.component.d.ts +1 -1
- package/setting-drawer/setting-drawer.component.d.ts +1 -1
- package/src/pipes/date/date.pipe.d.ts +1 -1
- package/src/pipes/keys/keys.pipe.d.ts +1 -1
- package/src/pipes/safe/html.pipe.d.ts +1 -1
- package/src/pipes/safe/url.pipe.d.ts +1 -1
- package/src/pipes/yn/yn.pipe.d.ts +1 -1
- package/src/services/http/http.decorator.d.ts +12 -12
- package/src/services/http/http.token.d.ts +37 -0
- package/src/services/http/index.d.ts +3 -0
- package/src/services/i18n/i18n.pipe.d.ts +1 -1
- package/src/services/menu/interface.d.ts +5 -22
- package/src/services/menu/menu.service.d.ts +46 -7
- package/src/services/title/title.service.d.ts +39 -8
- package/system/antd/_drawer.less +55 -4
- package/system/theme-default.less +4 -0
- package/theme-btn/{theme-btn.d.ts → index.d.ts} +0 -0
- package/theme-btn/theme-btn.component.d.ts +1 -1
- package/layout-blank/package.json +0 -10
- package/layout-default/package.json +0 -10
- package/setting-drawer/package.json +0 -10
- package/theme-btn/package.json +0 -10
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class LayoutDefaultHeaderItemTriggerDirective {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultHeaderItemTriggerDirective, never>;
|
|
4
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LayoutDefaultHeaderItemTriggerDirective, "[layout-default-header-item-trigger]", never, {}, {}, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LayoutDefaultHeaderItemTriggerDirective, "[layout-default-header-item-trigger]", never, {}, {}, never, never, false>;
|
|
5
5
|
}
|
|
@@ -6,5 +6,5 @@ export declare class LayoutDefaultHeaderItemComponent {
|
|
|
6
6
|
hidden: LayoutDefaultHeaderItemHidden;
|
|
7
7
|
direction: LayoutDefaultHeaderItemDirection;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultHeaderItemComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultHeaderItemComponent, "layout-default-header-item", never, { "hidden": "hidden"; "direction": "direction"; }, {}, never, ["*"]>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultHeaderItemComponent, "layout-default-header-item", never, { "hidden": "hidden"; "direction": "direction"; }, {}, never, ["*"], false>;
|
|
10
10
|
}
|
|
@@ -27,6 +27,6 @@ export declare class LayoutDefaultHeaderComponent implements AfterViewInit, OnDe
|
|
|
27
27
|
toggleCollapsed(): void;
|
|
28
28
|
ngOnDestroy(): void;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultHeaderComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultHeaderComponent, "layout-default-header", never, { "items": "items"; "options": "options"; }, {}, never, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultHeaderComponent, "layout-default-header", never, { "items": "items"; "options": "options"; }, {}, never, never, false>;
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
@@ -34,7 +34,7 @@ export declare class LayoutDefaultNavComponent implements OnInit, OnDestroy {
|
|
|
34
34
|
disabledAcl: boolean;
|
|
35
35
|
autoCloseUnderPad: boolean;
|
|
36
36
|
recursivePath: boolean;
|
|
37
|
-
openStrictly: boolean;
|
|
37
|
+
set openStrictly(value: boolean);
|
|
38
38
|
maxLevelIcon: number;
|
|
39
39
|
readonly select: EventEmitter<Menu>;
|
|
40
40
|
get collapsed(): boolean;
|
|
@@ -51,12 +51,13 @@ export declare class LayoutDefaultNavComponent implements OnInit, OnDestroy {
|
|
|
51
51
|
toggleOpen(item: Nav): void;
|
|
52
52
|
_click(): void;
|
|
53
53
|
closeSubMenu(): void;
|
|
54
|
-
private
|
|
54
|
+
private openByUrl;
|
|
55
55
|
ngOnInit(): void;
|
|
56
|
+
private fixHide;
|
|
56
57
|
ngOnDestroy(): void;
|
|
57
58
|
private get isPad();
|
|
58
59
|
private underPad;
|
|
59
60
|
private openAside;
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultNavComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultNavComponent, "layout-default-nav", never, { "disabledAcl": "disabledAcl"; "autoCloseUnderPad": "autoCloseUnderPad"; "recursivePath": "recursivePath"; "openStrictly": "openStrictly"; "maxLevelIcon": "maxLevelIcon"; }, { "select": "select"; }, never, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultNavComponent, "layout-default-nav", never, { "disabledAcl": "disabledAcl"; "autoCloseUnderPad": "autoCloseUnderPad"; "recursivePath": "recursivePath"; "openStrictly": "openStrictly"; "maxLevelIcon": "maxLevelIcon"; }, { "select": "select"; }, never, never, false>;
|
|
62
63
|
}
|
|
@@ -26,5 +26,5 @@ export declare class LayoutDefaultComponent implements OnInit, OnDestroy {
|
|
|
26
26
|
ngOnInit(): void;
|
|
27
27
|
ngOnDestroy(): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultComponent, "layout-default", ["layoutDefault"], { "options": "options"; "asideUser": "asideUser"; "nav": "nav"; "content": "content"; "customError": "customError"; }, {}, ["headerItems"], ["*"]>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultComponent, "layout-default", ["layoutDefault"], { "options": "options"; "asideUser": "asideUser"; "nav": "nav"; "content": "content"; "customError": "customError"; }, {}, ["headerItems"], ["*"], false>;
|
|
30
30
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"author": "cipchk<cipchk@qq.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"component"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"ng-zorro-antd": "^
|
|
25
|
-
"@delon/acl": "^
|
|
26
|
-
"@delon/util": "^
|
|
24
|
+
"ng-zorro-antd": "^14.0.0",
|
|
25
|
+
"@delon/acl": "^14.0.0",
|
|
26
|
+
"@delon/util": "^14.0.0",
|
|
27
27
|
"tslib": "^2.3.0"
|
|
28
28
|
},
|
|
29
29
|
"module": "fesm2015/theme.mjs",
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"esm2020": "esm2020/theme.mjs",
|
|
32
32
|
"fesm2020": "fesm2020/theme.mjs",
|
|
33
33
|
"fesm2015": "fesm2015/theme.mjs",
|
|
34
|
-
"typings": "
|
|
34
|
+
"typings": "index.d.ts",
|
|
35
35
|
"exports": {
|
|
36
36
|
"./package.json": {
|
|
37
37
|
"default": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
".": {
|
|
40
|
-
"types": "./
|
|
40
|
+
"types": "./index.d.ts",
|
|
41
41
|
"esm2020": "./esm2020/theme.mjs",
|
|
42
42
|
"es2020": "./fesm2020/theme.mjs",
|
|
43
43
|
"es2015": "./fesm2015/theme.mjs",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"default": "./fesm2020/theme.mjs"
|
|
46
46
|
},
|
|
47
47
|
"./layout-blank": {
|
|
48
|
-
"types": "./layout-blank/
|
|
48
|
+
"types": "./layout-blank/index.d.ts",
|
|
49
49
|
"esm2020": "./esm2020/layout-blank/layout-blank.mjs",
|
|
50
50
|
"es2020": "./fesm2020/layout-blank.mjs",
|
|
51
51
|
"es2015": "./fesm2015/layout-blank.mjs",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"default": "./fesm2020/layout-blank.mjs"
|
|
54
54
|
},
|
|
55
55
|
"./layout-default": {
|
|
56
|
-
"types": "./layout-default/
|
|
56
|
+
"types": "./layout-default/index.d.ts",
|
|
57
57
|
"esm2020": "./esm2020/layout-default/layout-default.mjs",
|
|
58
58
|
"es2020": "./fesm2020/layout-default.mjs",
|
|
59
59
|
"es2015": "./fesm2015/layout-default.mjs",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"default": "./fesm2020/layout-default.mjs"
|
|
62
62
|
},
|
|
63
63
|
"./setting-drawer": {
|
|
64
|
-
"types": "./setting-drawer/
|
|
64
|
+
"types": "./setting-drawer/index.d.ts",
|
|
65
65
|
"esm2020": "./esm2020/setting-drawer/setting-drawer.mjs",
|
|
66
66
|
"es2020": "./fesm2020/setting-drawer.mjs",
|
|
67
67
|
"es2015": "./fesm2015/setting-drawer.mjs",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"default": "./fesm2020/setting-drawer.mjs"
|
|
70
70
|
},
|
|
71
71
|
"./theme-btn": {
|
|
72
|
-
"types": "./theme-btn/
|
|
72
|
+
"types": "./theme-btn/index.d.ts",
|
|
73
73
|
"esm2020": "./esm2020/theme-btn/theme-btn.mjs",
|
|
74
74
|
"es2020": "./fesm2020/theme-btn.mjs",
|
|
75
75
|
"es2015": "./fesm2015/theme-btn.mjs",
|
package/public_api.d.ts
CHANGED
|
@@ -10,8 +10,7 @@ export * from './src/services/i18n/index';
|
|
|
10
10
|
export * from './src/locale/index';
|
|
11
11
|
export * from './src/services/modal/modal.helper';
|
|
12
12
|
export * from './src/services/drawer/drawer.helper';
|
|
13
|
-
export * from './src/services/http/
|
|
14
|
-
export * from './src/services/http/http.decorator';
|
|
13
|
+
export * from './src/services/http/index';
|
|
15
14
|
export * from './src/pipes/date/date.pipe';
|
|
16
15
|
export * from './src/pipes/keys/keys.pipe';
|
|
17
16
|
export * from './src/pipes/yn/yn.pipe';
|
|
File without changes
|
|
@@ -7,5 +7,5 @@ export declare class SettingDrawerItemComponent {
|
|
|
7
7
|
pxChange(val: number): void;
|
|
8
8
|
format: (value: number) => string;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerItemComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingDrawerItemComponent, "setting-drawer-item", never, { "data": "data"; }, {}, never, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingDrawerItemComponent, "setting-drawer-item", never, { "data": "data"; }, {}, never, never, false>;
|
|
11
11
|
}
|
|
@@ -45,5 +45,5 @@ export declare class SettingDrawerComponent implements OnInit, OnDestroy {
|
|
|
45
45
|
copyVar(): void;
|
|
46
46
|
ngOnDestroy(): void;
|
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingDrawerComponent, "setting-drawer", never, { "autoApplyColor": "autoApplyColor"; "compilingText": "compilingText"; "devTips": "devTips"; }, {}, never, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingDrawerComponent, "setting-drawer", never, { "autoApplyColor": "autoApplyColor"; "compilingText": "compilingText"; "devTips": "devTips"; }, {}, never, never, false>;
|
|
49
49
|
}
|
|
@@ -6,5 +6,5 @@ export declare class DatePipe implements PipeTransform {
|
|
|
6
6
|
constructor(nzI18n: NzI18nService);
|
|
7
7
|
transform(value: Date | string | number, formatString?: string): string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "_date">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "_date", false>;
|
|
10
10
|
}
|
|
@@ -7,5 +7,5 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class KeysPipe implements PipeTransform {
|
|
8
8
|
transform(value: NzSafeAny, keyIsNumber?: boolean): NzSafeAny[];
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<KeysPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<KeysPipe, "keys">;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<KeysPipe, "keys", false>;
|
|
11
11
|
}
|
|
@@ -6,5 +6,5 @@ export declare class HTMLPipe implements PipeTransform {
|
|
|
6
6
|
constructor(dom: DomSanitizer);
|
|
7
7
|
transform(html: string): string | SafeHtml;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<HTMLPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<HTMLPipe, "html">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HTMLPipe, "html", false>;
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ export declare class URLPipe implements PipeTransform {
|
|
|
6
6
|
constructor(dom: DomSanitizer);
|
|
7
7
|
transform(url: string): string | SafeUrl;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<URLPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<URLPipe, "url">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<URLPipe, "url", false>;
|
|
10
10
|
}
|
|
@@ -7,5 +7,5 @@ export declare class YNPipe implements PipeTransform {
|
|
|
7
7
|
constructor(dom: DomSanitizer);
|
|
8
8
|
transform(value: boolean, yes?: string, no?: string, mode?: YNMode, isSafeHtml?: boolean): SafeHtml;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<YNPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<YNPipe, "yn">;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<YNPipe, "yn", false>;
|
|
11
11
|
}
|
|
@@ -39,12 +39,12 @@ export declare function BaseHeaders(headers: HttpHeaders | {
|
|
|
39
39
|
* URL路由参数
|
|
40
40
|
* - 有效范围:方法参数
|
|
41
41
|
*/
|
|
42
|
-
export declare const Path: (key?: string
|
|
42
|
+
export declare const Path: (key?: string) => (target: BaseApi, propertyKey: string, index: number) => void;
|
|
43
43
|
/**
|
|
44
44
|
* URL 参数 `QueryString`
|
|
45
45
|
* - 有效范围:方法参数
|
|
46
46
|
*/
|
|
47
|
-
export declare const Query: (key?: string
|
|
47
|
+
export declare const Query: (key?: string) => (target: BaseApi, propertyKey: string, index: number) => void;
|
|
48
48
|
/**
|
|
49
49
|
* 参数 `Body`
|
|
50
50
|
* - 有效范围:方法参数
|
|
@@ -55,7 +55,7 @@ export declare const Body: (target: BaseApi, propertyKey: string, index: number)
|
|
|
55
55
|
* - 有效范围:方法参数
|
|
56
56
|
* - 合并 `BaseHeaders`
|
|
57
57
|
*/
|
|
58
|
-
export declare const Headers: (key?: string
|
|
58
|
+
export declare const Headers: (key?: string) => (target: BaseApi, propertyKey: string, index: number) => void;
|
|
59
59
|
/**
|
|
60
60
|
* Request Payload
|
|
61
61
|
* - Supported body (like`POST`, `PUT`) as a body data, equivalent to `@Body`
|
|
@@ -67,44 +67,44 @@ export declare type METHOD_TYPE = 'OPTIONS' | 'GET' | 'POST' | 'DELETE' | 'PUT'
|
|
|
67
67
|
* `OPTIONS` 请求
|
|
68
68
|
* - 有效范围:方法
|
|
69
69
|
*/
|
|
70
|
-
export declare const OPTIONS: (url?: string, options?: HttpOptions
|
|
70
|
+
export declare const OPTIONS: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
|
|
71
71
|
/**
|
|
72
72
|
* `GET` 请求
|
|
73
73
|
* - 有效范围:方法
|
|
74
74
|
*/
|
|
75
|
-
export declare const GET: (url?: string, options?: HttpOptions
|
|
75
|
+
export declare const GET: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* `POST` 请求
|
|
78
78
|
* - 有效范围:方法
|
|
79
79
|
*/
|
|
80
|
-
export declare const POST: (url?: string, options?: HttpOptions
|
|
80
|
+
export declare const POST: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
|
|
81
81
|
/**
|
|
82
82
|
* `DELETE` 请求
|
|
83
83
|
* - 有效范围:方法
|
|
84
84
|
*/
|
|
85
|
-
export declare const DELETE: (url?: string, options?: HttpOptions
|
|
85
|
+
export declare const DELETE: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
|
|
86
86
|
/**
|
|
87
87
|
* `PUT` 请求
|
|
88
88
|
* - 有效范围:方法
|
|
89
89
|
*/
|
|
90
|
-
export declare const PUT: (url?: string, options?: HttpOptions
|
|
90
|
+
export declare const PUT: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
|
|
91
91
|
/**
|
|
92
92
|
* `HEAD` 请求
|
|
93
93
|
* - 有效范围:方法
|
|
94
94
|
*/
|
|
95
|
-
export declare const HEAD: (url?: string, options?: HttpOptions
|
|
95
|
+
export declare const HEAD: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
|
|
96
96
|
/**
|
|
97
97
|
* `PATCH` 请求
|
|
98
98
|
* - 有效范围:方法
|
|
99
99
|
*/
|
|
100
|
-
export declare const PATCH: (url?: string, options?: HttpOptions
|
|
100
|
+
export declare const PATCH: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
|
|
101
101
|
/**
|
|
102
102
|
* `JSONP` 请求
|
|
103
103
|
* - 有效范围:方法
|
|
104
104
|
*/
|
|
105
|
-
export declare const JSONP: (url?: string, options?: HttpOptions
|
|
105
|
+
export declare const JSONP: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
|
|
106
106
|
/**
|
|
107
107
|
* `FORM` 请求
|
|
108
108
|
* - 有效范围:方法
|
|
109
109
|
*/
|
|
110
|
-
export declare const FORM: (url?: string, options?: HttpOptions
|
|
110
|
+
export declare const FORM: (url?: string, options?: HttpOptions) => (_target: BaseApi, targetKey?: string, descriptor?: PropertyDescriptor) => PropertyDescriptor | undefined;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { HttpContextToken } from '@angular/common/http';
|
|
2
|
+
/**
|
|
3
|
+
* Whether to customize the handling of exception messages
|
|
4
|
+
*
|
|
5
|
+
* 是否自定义处理异常消息
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* this.http.post(`login`, {
|
|
9
|
+
* name: 'cipchk', pwd: '123456'
|
|
10
|
+
* }, {
|
|
11
|
+
* context: new HttpContext()
|
|
12
|
+
* .set(ALLOW_ANONYMOUS, true)
|
|
13
|
+
* .set(CUSTOM_ERROR, true)
|
|
14
|
+
* }).subscribe({
|
|
15
|
+
* next: console.log,
|
|
16
|
+
* error: console.log
|
|
17
|
+
* });
|
|
18
|
+
*/
|
|
19
|
+
export declare const CUSTOM_ERROR: HttpContextToken<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to ignore API prefixes
|
|
22
|
+
*
|
|
23
|
+
* 是否忽略API前缀
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* // When environment.api.baseUrl set '/api'
|
|
27
|
+
*
|
|
28
|
+
* this.http.get(`/path`) // Request Url: /api/path
|
|
29
|
+
* this.http.get(`/path`, { context: new HttpContext().set(IGNORE_BASE_URL, true) }) // Request Url: /path
|
|
30
|
+
*/
|
|
31
|
+
export declare const IGNORE_BASE_URL: HttpContextToken<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Whether to return raw response body
|
|
34
|
+
*
|
|
35
|
+
* 是否原样返回请求Body
|
|
36
|
+
*/
|
|
37
|
+
export declare const RAW_BODY: HttpContextToken<boolean>;
|
|
@@ -6,5 +6,5 @@ export declare class I18nPipe implements PipeTransform {
|
|
|
6
6
|
constructor(i18n: AlainI18NService);
|
|
7
7
|
transform(key: string, params?: Record<string, unknown>): string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<I18nPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<I18nPipe, "i18n">;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<I18nPipe, "i18n", false>;
|
|
10
10
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SafeHtml } from '@angular/platform-browser';
|
|
2
|
+
import type { ACLCanType } from '@delon/acl';
|
|
2
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
3
4
|
export interface MenuIcon {
|
|
4
5
|
/**
|
|
@@ -49,33 +50,16 @@ export interface Menu {
|
|
|
49
50
|
/** Whether hide in breadcrumbs, which are valid when the `page-header` component automatically generates breadcrumbs */
|
|
50
51
|
hideInBreadcrumb?: boolean;
|
|
51
52
|
/** ACL configuration, it's equivalent to `ACLService.can(roleOrAbility: ACLCanType)` parameter value */
|
|
52
|
-
acl?:
|
|
53
|
-
/**
|
|
54
|
-
* 角色
|
|
55
|
-
*/
|
|
56
|
-
role?: string[];
|
|
57
|
-
/**
|
|
58
|
-
* 权限点
|
|
59
|
-
*/
|
|
60
|
-
ability?: number[] | string[];
|
|
61
|
-
/**
|
|
62
|
-
* Validated against, default: `oneOf`
|
|
63
|
-
* - `allOf` the value validates against all the roles or abilities
|
|
64
|
-
* - `oneOf` the value validates against exactly one of the roles or abilities
|
|
65
|
-
*/
|
|
66
|
-
mode?: 'allOf' | 'oneOf';
|
|
67
|
-
/**
|
|
68
|
-
* 是否取反,即结果为 `true` 时表示未授权
|
|
69
|
-
*/
|
|
70
|
-
except?: boolean;
|
|
71
|
-
};
|
|
53
|
+
acl?: ACLCanType;
|
|
72
54
|
/** Whether shortcut menu item */
|
|
73
55
|
shortcut?: boolean;
|
|
74
56
|
/** Wheter shortcut menu root node */
|
|
75
57
|
shortcutRoot?: boolean;
|
|
76
58
|
/** Whether to allow reuse, need to cooperate with the `reuse-tab` component */
|
|
77
59
|
reuse?: boolean;
|
|
78
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Whether to expand, when `checkStrictly` is valid in `sidebar-nav` component
|
|
62
|
+
*/
|
|
79
63
|
open?: boolean;
|
|
80
64
|
/** Unique identifier of the menu item, can be used in `getItem`,` setItem` to update a menu */
|
|
81
65
|
key?: string;
|
|
@@ -89,6 +73,5 @@ export interface MenuInner extends Menu {
|
|
|
89
73
|
_depth?: number;
|
|
90
74
|
_hidden?: boolean;
|
|
91
75
|
_selected?: boolean;
|
|
92
|
-
_open?: boolean;
|
|
93
76
|
_aclResult?: boolean;
|
|
94
77
|
}
|
|
@@ -13,8 +13,13 @@ export declare class MenuService implements OnDestroy {
|
|
|
13
13
|
private _change$;
|
|
14
14
|
private i18n$;
|
|
15
15
|
private data;
|
|
16
|
+
/**
|
|
17
|
+
* 是否完全受控菜单打开状态,默认:`false`
|
|
18
|
+
*/
|
|
19
|
+
openStrictly: boolean;
|
|
16
20
|
constructor(i18nSrv: AlainI18NService, aclService: ACLService);
|
|
17
21
|
get change(): Observable<Menu[]>;
|
|
22
|
+
get menus(): Menu[];
|
|
18
23
|
visit<T extends Menu = Menu>(data: T[], callback: (item: T, parentMenum: T | null, depth?: number) => void): void;
|
|
19
24
|
visit(data: Menu[], callback: (item: Menu, parentMenum: Menu | null, depth?: number) => void): void;
|
|
20
25
|
add(items: Menu[]): void;
|
|
@@ -32,18 +37,27 @@ export declare class MenuService implements OnDestroy {
|
|
|
32
37
|
* 3、否则放在0节点位置
|
|
33
38
|
*/
|
|
34
39
|
private loadShortcut;
|
|
35
|
-
get menus(): Menu[];
|
|
36
40
|
/**
|
|
37
41
|
* 清空菜单
|
|
38
42
|
*/
|
|
39
43
|
clear(): void;
|
|
40
|
-
getHit(data: Menu[], url: string, recursive?: boolean, cb?: ((i: Menu) => void) | null): Menu | null;
|
|
41
44
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
+
* Use `url` or `key` to find menus
|
|
46
|
+
*
|
|
47
|
+
* 利用 `url` 或 `key` 查找菜单
|
|
45
48
|
*/
|
|
46
|
-
|
|
49
|
+
find(options: {
|
|
50
|
+
key?: string | null;
|
|
51
|
+
url?: string | null;
|
|
52
|
+
recursive?: boolean | null;
|
|
53
|
+
cb?: ((i: Menu) => void) | null;
|
|
54
|
+
/**
|
|
55
|
+
* Use the current menu data by default
|
|
56
|
+
*
|
|
57
|
+
* 默认使用当前菜单数据
|
|
58
|
+
*/
|
|
59
|
+
data?: Menu[] | null;
|
|
60
|
+
}): Menu | null;
|
|
47
61
|
/**
|
|
48
62
|
* 根据url获取菜单列表
|
|
49
63
|
* - 若 `recursive: true` 则会自动向上递归查找
|
|
@@ -57,8 +71,33 @@ export declare class MenuService implements OnDestroy {
|
|
|
57
71
|
/**
|
|
58
72
|
* Set menu based on `key`
|
|
59
73
|
*/
|
|
60
|
-
setItem(key: string, value: Menu
|
|
74
|
+
setItem(key: string | Menu, value: Menu, options?: {
|
|
75
|
+
emit?: boolean;
|
|
76
|
+
}): void;
|
|
77
|
+
/**
|
|
78
|
+
* Open menu based on `key` or menu object
|
|
79
|
+
*/
|
|
80
|
+
open(keyOrItem: string | Menu | null, options?: {
|
|
81
|
+
emit?: boolean;
|
|
82
|
+
}): void;
|
|
83
|
+
openAll(status?: boolean): void;
|
|
84
|
+
toggleOpen(keyOrItem: string | Menu | null, options?: {
|
|
85
|
+
allStatus?: boolean;
|
|
86
|
+
emit?: boolean;
|
|
87
|
+
}): void;
|
|
61
88
|
ngOnDestroy(): void;
|
|
89
|
+
/**
|
|
90
|
+
* @deprecated Will be removed in 15.0.0, Pls used `find` instead
|
|
91
|
+
*/
|
|
92
|
+
getHit(data: Menu[], url: string, recursive?: boolean, cb?: ((i: Menu) => void) | null): Menu | null;
|
|
93
|
+
/**
|
|
94
|
+
* @deprecated Will be removed in 15.0.0, Pls used `find` and `setItem` instead
|
|
95
|
+
*
|
|
96
|
+
* 根据URL设置菜单 `_open` 属性
|
|
97
|
+
* - 若 `recursive: true` 则会自动向上递归查找
|
|
98
|
+
* - 菜单数据源包含 `/ware`,则 `/ware/1` 也视为 `/ware` 项
|
|
99
|
+
*/
|
|
100
|
+
openedByUrl(url: string | null, recursive?: boolean): void;
|
|
62
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, [{ optional: true; }, { optional: true; }]>;
|
|
63
102
|
static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
|
|
64
103
|
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { Injector, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Title } from '@angular/platform-browser';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
3
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
5
|
import { AlainI18NService } from '../i18n/i18n';
|
|
5
6
|
import { MenuService } from '../menu/menu.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
export interface RouteTitle {
|
|
9
|
+
title?: string | Observable<string>;
|
|
10
|
+
titleI18n?: string;
|
|
11
|
+
}
|
|
7
12
|
export declare class TitleService implements OnDestroy {
|
|
8
13
|
private injector;
|
|
9
14
|
private title;
|
|
@@ -14,25 +19,51 @@ export declare class TitleService implements OnDestroy {
|
|
|
14
19
|
private _suffix;
|
|
15
20
|
private _separator;
|
|
16
21
|
private _reverse;
|
|
17
|
-
private
|
|
22
|
+
private destroy$;
|
|
23
|
+
private tit$?;
|
|
18
24
|
readonly DELAY_TIME = 25;
|
|
19
25
|
constructor(injector: Injector, title: Title, menuSrv: MenuService, i18nSrv: AlainI18NService, doc: NzSafeAny);
|
|
20
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Set separator
|
|
28
|
+
*
|
|
29
|
+
* 设置分隔符
|
|
30
|
+
*/
|
|
21
31
|
set separator(value: string);
|
|
22
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Set prefix
|
|
34
|
+
*
|
|
35
|
+
* 设置前缀
|
|
36
|
+
*/
|
|
23
37
|
set prefix(value: string);
|
|
24
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* Set suffix
|
|
40
|
+
*
|
|
41
|
+
* 设置后缀
|
|
42
|
+
*/
|
|
25
43
|
set suffix(value: string);
|
|
26
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Set whether to reverse
|
|
46
|
+
*
|
|
47
|
+
* 设置是否反转
|
|
48
|
+
*/
|
|
27
49
|
set reverse(value: boolean);
|
|
28
|
-
/**
|
|
50
|
+
/**
|
|
51
|
+
* Set the default CSS selector string
|
|
52
|
+
*
|
|
53
|
+
* 设置默认CSS选择器字符串
|
|
54
|
+
*/
|
|
55
|
+
selector?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Set default title name
|
|
58
|
+
*
|
|
59
|
+
* 设置默认标题名
|
|
60
|
+
*/
|
|
29
61
|
default: string;
|
|
30
62
|
private getByElement;
|
|
31
63
|
private getByRoute;
|
|
32
64
|
private getByMenu;
|
|
33
|
-
private _setTitle;
|
|
34
65
|
/**
|
|
35
|
-
* Set the document title
|
|
66
|
+
* Set the document title
|
|
36
67
|
*/
|
|
37
68
|
setTitle(title?: string | string[]): void;
|
|
38
69
|
/**
|
package/system/antd/_drawer.less
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
max-width: @drawer-sm;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
@media (max-width: @drawer-sm - 1) {
|
|
10
|
+
@media (max-width: (@drawer-sm - 1)) {
|
|
11
11
|
.drawer-sm {
|
|
12
12
|
width: 100% !important;
|
|
13
13
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
max-width: @drawer-md;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
@media (max-width: @drawer-md - 1) {
|
|
22
|
+
@media (max-width: (@drawer-md - 1)) {
|
|
23
23
|
.drawer-md {
|
|
24
24
|
width: 100% !important;
|
|
25
25
|
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
max-width: @drawer-lg;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
@media (max-width: @drawer-lg - 1) {
|
|
34
|
+
@media (max-width: (@drawer-lg - 1)) {
|
|
35
35
|
.drawer-lg {
|
|
36
36
|
width: 100% !important;
|
|
37
37
|
}
|
|
@@ -43,12 +43,63 @@
|
|
|
43
43
|
max-width: @drawer-xl;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
@media (max-width: @drawer-xl - 1) {
|
|
46
|
+
@media (max-width: (@drawer-xl - 1)) {
|
|
47
47
|
.drawer-xl {
|
|
48
48
|
width: 100% !important;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
+
|
|
53
|
+
&-top,
|
|
54
|
+
&-bottom {
|
|
55
|
+
@media (min-height: @drawer-sm-height) {
|
|
56
|
+
.drawer-sm {
|
|
57
|
+
height: auto !important;
|
|
58
|
+
max-height: @drawer-sm-height;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
@media (max-height: (@drawer-sm-height - 1)) {
|
|
62
|
+
.drawer-sm {
|
|
63
|
+
height: 100% !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (min-height: @drawer-md-height) {
|
|
68
|
+
.drawer-md {
|
|
69
|
+
height: auto !important;
|
|
70
|
+
max-height: @drawer-md-height;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@media (max-height: (@drawer-md-height - 1)) {
|
|
74
|
+
.drawer-md {
|
|
75
|
+
height: 100% !important;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (min-height: @drawer-lg-height) {
|
|
80
|
+
.drawer-lg {
|
|
81
|
+
height: auto !important;
|
|
82
|
+
max-height: @drawer-lg-height;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
@media (max-height: (@drawer-lg-height - 1)) {
|
|
86
|
+
.drawer-lg {
|
|
87
|
+
height: 100% !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@media (min-height: @drawer-xl-height) {
|
|
92
|
+
.drawer-xl {
|
|
93
|
+
height: auto !important;
|
|
94
|
+
max-height: @drawer-xl-height;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@media (max-height: (@drawer-xl-height - 1)) {
|
|
98
|
+
.drawer-xl {
|
|
99
|
+
height: 100% !important;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
52
103
|
}
|
|
53
104
|
|
|
54
105
|
.drawer {
|
|
File without changes
|