@delon/theme 17.0.4 → 17.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.
- package/compact.css +86 -4
- package/compact.min.css +1 -1
- package/dark.css +86 -4
- package/dark.min.css +1 -1
- package/default.css +86 -4
- package/default.min.css +1 -1
- package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +3 -3
- package/esm2022/layout-default/layout-header-item.component.mjs +3 -3
- package/esm2022/layout-default/layout-header.component.mjs +21 -21
- package/esm2022/layout-default/layout-nav.component.mjs +50 -64
- package/esm2022/layout-default/layout-top-menu-item.mjs +9 -15
- package/esm2022/layout-default/layout.component.mjs +10 -16
- package/esm2022/layout-default/layout.module.mjs +4 -4
- package/esm2022/layout-default/layout.service.mjs +12 -12
- package/esm2022/setting-drawer/setting-drawer-item.component.mjs +5 -5
- package/esm2022/setting-drawer/setting-drawer.component.mjs +37 -45
- package/esm2022/setting-drawer/setting-drawer.module.mjs +4 -4
- package/esm2022/src/locale/languages/vi-VI.mjs +83 -0
- package/esm2022/src/locale/locale.module.mjs +4 -4
- package/esm2022/src/locale/locale.service.mjs +4 -4
- package/esm2022/src/locale/locale.tokens.mjs +1 -1
- package/esm2022/src/locale/public_api.mjs +2 -1
- package/esm2022/src/pipes/date/date.pipe.mjs +3 -3
- package/esm2022/src/pipes/keys/keys.pipe.mjs +3 -3
- package/esm2022/src/pipes/safe/html.pipe.mjs +9 -9
- package/esm2022/src/pipes/safe/url.pipe.mjs +9 -9
- package/esm2022/src/pipes/yn/yn.pipe.mjs +9 -9
- package/esm2022/src/provide.mjs +1 -1
- package/esm2022/src/services/drawer/drawer.helper.mjs +12 -16
- package/esm2022/src/services/http/http.client.mjs +10 -11
- package/esm2022/src/services/http/http.decorator.mjs +8 -11
- package/esm2022/src/services/i18n/i18n-url.guard.mjs +11 -16
- package/esm2022/src/services/i18n/i18n.mjs +7 -7
- package/esm2022/src/services/i18n/i18n.pipe.mjs +3 -3
- package/esm2022/src/services/menu/menu.service.mjs +12 -19
- package/esm2022/src/services/modal/modal.helper.mjs +13 -16
- package/esm2022/src/services/preloader/preloader.mjs +1 -1
- package/esm2022/src/services/responsive/responsive.mjs +4 -4
- package/esm2022/src/services/rtl/rtl.service.mjs +19 -22
- package/esm2022/src/services/settings/settings.service.mjs +10 -13
- package/esm2022/src/services/title/title.service.mjs +16 -24
- package/esm2022/src/theme.module.mjs +4 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/theme-btn/theme-btn.component.mjs +24 -37
- package/esm2022/theme-btn/theme-btn.module.mjs +4 -4
- package/fesm2022/layout-default.mjs +101 -121
- package/fesm2022/layout-default.mjs.map +1 -1
- package/fesm2022/setting-drawer.mjs +42 -50
- package/fesm2022/setting-drawer.mjs.map +1 -1
- package/fesm2022/theme-btn.mjs +27 -40
- package/fesm2022/theme-btn.mjs.map +1 -1
- package/fesm2022/theme.mjs +222 -179
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-default/layout-header.component.d.ts +6 -8
- package/layout-default/layout-nav.component.d.ts +24 -26
- package/layout-default/layout-top-menu-item.d.ts +2 -3
- package/layout-default/layout.component.d.ts +2 -3
- package/layout-default/layout.service.d.ts +1 -3
- package/package.json +4 -4
- package/setting-drawer/setting-drawer.component.d.ts +15 -16
- package/src/locale/languages/vi-VI.d.ts +3 -0
- package/src/locale/locale.tokens.d.ts +2 -1
- package/src/locale/public_api.d.ts +1 -0
- package/src/pipes/safe/html.pipe.d.ts +2 -3
- package/src/pipes/safe/url.pipe.d.ts +2 -3
- package/src/pipes/yn/yn.pipe.d.ts +2 -3
- package/src/services/drawer/drawer.helper.d.ts +4 -5
- package/src/services/http/http.client.d.ts +3 -3
- package/src/services/http/http.decorator.d.ts +1 -2
- package/src/services/i18n/i18n-url.guard.d.ts +3 -6
- package/src/services/menu/menu.service.d.ts +5 -7
- package/src/services/modal/modal.helper.d.ts +4 -6
- package/src/services/rtl/rtl.service.d.ts +8 -13
- package/src/services/settings/settings.service.d.ts +2 -4
- package/src/services/title/title.service.d.ts +8 -12
- package/theme-btn/theme-btn.component.d.ts +11 -15
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import { App
|
|
1
|
+
import { AfterViewInit, QueryList, TemplateRef } from '@angular/core';
|
|
2
|
+
import { App } from '@delon/theme';
|
|
3
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
4
|
import { LayoutDefaultHeaderItemComponent } from './layout-header-item.component';
|
|
5
|
-
import { LayoutDefaultService } from './layout.service';
|
|
6
5
|
import { LayoutDefaultHeaderItemDirection, LayoutDefaultHeaderItemHidden, LayoutDefaultOptions } from './types';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
interface LayoutDefaultHeaderItem {
|
|
@@ -11,10 +10,10 @@ interface LayoutDefaultHeaderItem {
|
|
|
11
10
|
direction?: LayoutDefaultHeaderItemDirection;
|
|
12
11
|
}
|
|
13
12
|
export declare class LayoutDefaultHeaderComponent implements AfterViewInit {
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private cdr;
|
|
17
|
-
private destroy$;
|
|
13
|
+
private readonly settings;
|
|
14
|
+
private readonly srv;
|
|
15
|
+
private readonly cdr;
|
|
16
|
+
private readonly destroy$;
|
|
18
17
|
items: QueryList<LayoutDefaultHeaderItemComponent>;
|
|
19
18
|
left: LayoutDefaultHeaderItem[];
|
|
20
19
|
middle: LayoutDefaultHeaderItem[];
|
|
@@ -23,7 +22,6 @@ export declare class LayoutDefaultHeaderComponent implements AfterViewInit {
|
|
|
23
22
|
get app(): App;
|
|
24
23
|
get collapsed(): boolean;
|
|
25
24
|
get collapsedIcon(): string;
|
|
26
|
-
constructor(srv: LayoutDefaultService, settings: SettingsService, cdr: ChangeDetectorRef);
|
|
27
25
|
private refresh;
|
|
28
26
|
ngAfterViewInit(): void;
|
|
29
27
|
toggleCollapsed(): void;
|
|
@@ -1,44 +1,36 @@
|
|
|
1
|
-
import { Direction
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Menu, MenuInner, MenuService, SettingsService } from '@delon/theme';
|
|
6
|
-
import { BooleanInput, NumberInput } from '@delon/util/decorator';
|
|
7
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
1
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
2
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
4
|
+
import { Menu, MenuInner } from '@delon/theme';
|
|
8
5
|
import * as i0 from "@angular/core";
|
|
9
6
|
export interface Nav extends MenuInner {
|
|
10
7
|
_needIcon?: boolean;
|
|
11
8
|
_text?: SafeHtml;
|
|
12
9
|
}
|
|
13
10
|
export declare class LayoutDefaultNavComponent implements OnInit, OnDestroy {
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private router;
|
|
17
|
-
private render;
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private directionality;
|
|
24
|
-
static ngAcceptInputType_disabledAcl: BooleanInput;
|
|
25
|
-
static ngAcceptInputType_autoCloseUnderPad: BooleanInput;
|
|
26
|
-
static ngAcceptInputType_recursivePath: BooleanInput;
|
|
27
|
-
static ngAcceptInputType_openStrictly: BooleanInput;
|
|
28
|
-
static ngAcceptInputType_maxLevelIcon: NumberInput;
|
|
11
|
+
private readonly doc;
|
|
12
|
+
private readonly win;
|
|
13
|
+
private readonly router;
|
|
14
|
+
private readonly render;
|
|
15
|
+
private readonly menuSrv;
|
|
16
|
+
private readonly settings;
|
|
17
|
+
private readonly cdr;
|
|
18
|
+
private readonly ngZone;
|
|
19
|
+
private readonly sanitizer;
|
|
20
|
+
private readonly directionality;
|
|
29
21
|
private bodyEl;
|
|
30
22
|
private destroy$;
|
|
31
23
|
private floatingEl;
|
|
32
|
-
dir
|
|
24
|
+
dir?: Direction;
|
|
33
25
|
list: Nav[];
|
|
34
26
|
disabledAcl: boolean;
|
|
35
27
|
autoCloseUnderPad: boolean;
|
|
36
28
|
recursivePath: boolean;
|
|
29
|
+
hideEmptyChildren: boolean;
|
|
37
30
|
set openStrictly(value: boolean);
|
|
38
31
|
maxLevelIcon: number;
|
|
39
32
|
readonly select: EventEmitter<Menu>;
|
|
40
33
|
get collapsed(): boolean;
|
|
41
|
-
constructor(menuSrv: MenuService, settings: SettingsService, router: Router, render: Renderer2, cdr: ChangeDetectorRef, ngZone: NgZone, sanitizer: DomSanitizer, doc: NzSafeAny, win: NzSafeAny, directionality: Directionality);
|
|
42
34
|
private getLinkNode;
|
|
43
35
|
private floatingClickHandle;
|
|
44
36
|
private clearFloating;
|
|
@@ -58,6 +50,12 @@ export declare class LayoutDefaultNavComponent implements OnInit, OnDestroy {
|
|
|
58
50
|
private get isPad();
|
|
59
51
|
private underPad;
|
|
60
52
|
private openAside;
|
|
61
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultNavComponent,
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultNavComponent, "layout-default-nav", never, { "disabledAcl": { "alias": "disabledAcl"; "required": false; }; "autoCloseUnderPad": { "alias": "autoCloseUnderPad"; "required": false; }; "recursivePath": { "alias": "recursivePath"; "required": false; }; "openStrictly": { "alias": "openStrictly"; "required": false; }; "maxLevelIcon": { "alias": "maxLevelIcon"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultNavComponent, never>;
|
|
54
|
+
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>;
|
|
55
|
+
static ngAcceptInputType_disabledAcl: unknown;
|
|
56
|
+
static ngAcceptInputType_autoCloseUnderPad: unknown;
|
|
57
|
+
static ngAcceptInputType_recursivePath: unknown;
|
|
58
|
+
static ngAcceptInputType_hideEmptyChildren: unknown;
|
|
59
|
+
static ngAcceptInputType_openStrictly: unknown;
|
|
60
|
+
static ngAcceptInputType_maxLevelIcon: unknown;
|
|
63
61
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { BooleanInput } from '@delon/util/decorator';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class LayoutDefaultTopMenuItemComponent {
|
|
4
|
-
static ngAcceptInputType_selected: BooleanInput;
|
|
5
|
-
static ngAcceptInputType_disabled: BooleanInput;
|
|
6
3
|
selected: boolean;
|
|
7
4
|
disabled: boolean;
|
|
8
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultTopMenuItemComponent, never>;
|
|
9
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultTopMenuItemComponent, "layout-default-top-menu-item", never, { "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
7
|
+
static ngAcceptInputType_selected: unknown;
|
|
8
|
+
static ngAcceptInputType_disabled: unknown;
|
|
10
9
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ElementRef, QueryList, Renderer2, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Router, Event } from '@angular/router';
|
|
3
3
|
import { SettingsService } from '@delon/theme';
|
|
4
|
-
import { BooleanInput } from '@delon/util/decorator';
|
|
5
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
5
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
7
6
|
import { LayoutDefaultHeaderItemComponent } from './layout-header-item.component';
|
|
@@ -15,8 +14,6 @@ export declare class LayoutDefaultComponent {
|
|
|
15
14
|
private renderer;
|
|
16
15
|
private doc;
|
|
17
16
|
private srv;
|
|
18
|
-
static ngAcceptInputType_fetchingStrictly: BooleanInput;
|
|
19
|
-
static ngAcceptInputType_fetching: BooleanInput;
|
|
20
17
|
headerItems: QueryList<LayoutDefaultHeaderItemComponent>;
|
|
21
18
|
get opt(): LayoutDefaultOptions;
|
|
22
19
|
set options(value: LayoutDefaultOptions | null | undefined);
|
|
@@ -37,4 +34,6 @@ export declare class LayoutDefaultComponent {
|
|
|
37
34
|
private setClass;
|
|
38
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultComponent, never>;
|
|
39
36
|
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>;
|
|
37
|
+
static ngAcceptInputType_fetchingStrictly: unknown;
|
|
38
|
+
static ngAcceptInputType_fetching: unknown;
|
|
40
39
|
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { SettingsService } from '@delon/theme';
|
|
3
2
|
import { LayoutDefaultOptions } from './types';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class LayoutDefaultService {
|
|
6
|
-
private settings;
|
|
5
|
+
private readonly settings;
|
|
7
6
|
private _options$;
|
|
8
7
|
private _options;
|
|
9
8
|
get options(): LayoutDefaultOptions;
|
|
10
9
|
get options$(): Observable<LayoutDefaultOptions>;
|
|
11
10
|
get collapsedIcon(): string;
|
|
12
|
-
constructor(settings: SettingsService);
|
|
13
11
|
private notify;
|
|
14
12
|
/**
|
|
15
13
|
* Set layout configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/theme",
|
|
3
|
-
"version": "17.0
|
|
3
|
+
"version": "17.1.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": "^17.0
|
|
25
|
-
"@delon/acl": "^17.0
|
|
26
|
-
"@delon/util": "^17.0
|
|
24
|
+
"ng-zorro-antd": "^17.1.0",
|
|
25
|
+
"@delon/acl": "^17.1.0",
|
|
26
|
+
"@delon/util": "^17.1.0",
|
|
27
27
|
"tslib": "^2.3.0"
|
|
28
28
|
},
|
|
29
29
|
"module": "fesm2022/theme.mjs",
|
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import { Direction
|
|
2
|
-
import {
|
|
3
|
-
import { Layout
|
|
4
|
-
import { LazyService } from '@delon/util/other';
|
|
1
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { Layout } from '@delon/theme';
|
|
5
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
|
-
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
7
5
|
import * as i0 from "@angular/core";
|
|
8
6
|
export declare class SettingDrawerComponent implements OnInit {
|
|
9
|
-
private cdr;
|
|
10
|
-
private msg;
|
|
11
|
-
private settingSrv;
|
|
12
|
-
private lazy;
|
|
13
|
-
private ngZone;
|
|
14
|
-
private doc;
|
|
15
|
-
private directionality;
|
|
7
|
+
private readonly cdr;
|
|
8
|
+
private readonly msg;
|
|
9
|
+
private readonly settingSrv;
|
|
10
|
+
private readonly lazy;
|
|
11
|
+
private readonly ngZone;
|
|
12
|
+
private readonly doc;
|
|
13
|
+
private readonly directionality;
|
|
14
|
+
private readonly destroy$;
|
|
16
15
|
autoApplyColor: boolean;
|
|
17
16
|
compilingText: string;
|
|
18
17
|
devTips: string;
|
|
19
18
|
lessJs: string;
|
|
20
19
|
private loadedLess;
|
|
21
|
-
|
|
22
|
-
dir: Direction;
|
|
20
|
+
dir?: Direction;
|
|
23
21
|
isDev: boolean;
|
|
24
22
|
collapse: boolean;
|
|
25
23
|
get layout(): Layout;
|
|
@@ -29,7 +27,7 @@ export declare class SettingDrawerComponent implements OnInit {
|
|
|
29
27
|
key: string;
|
|
30
28
|
color: string;
|
|
31
29
|
}[];
|
|
32
|
-
constructor(
|
|
30
|
+
constructor();
|
|
33
31
|
private get cachedData();
|
|
34
32
|
private get DEFAULT_PRIMARY();
|
|
35
33
|
ngOnInit(): void;
|
|
@@ -44,6 +42,7 @@ export declare class SettingDrawerComponent implements OnInit {
|
|
|
44
42
|
apply(): void;
|
|
45
43
|
reset(): void;
|
|
46
44
|
copyVar(): void;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerComponent,
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerComponent, never>;
|
|
48
46
|
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, false, never>;
|
|
47
|
+
static ngAcceptInputType_autoApplyColor: unknown;
|
|
49
48
|
}
|
|
@@ -15,3 +15,4 @@ export { default as sl_SI } from './languages/sl-SI';
|
|
|
15
15
|
export { default as fr_FR } from './languages/fr-FR';
|
|
16
16
|
export { default as es_ES } from './languages/es-ES';
|
|
17
17
|
export { default as it_IT } from './languages/it-IT';
|
|
18
|
+
export { default as vi_VI } from './languages/vi-VI';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class HTMLPipe implements PipeTransform {
|
|
5
|
-
private dom;
|
|
6
|
-
constructor(dom: DomSanitizer);
|
|
5
|
+
private readonly dom;
|
|
7
6
|
transform(html: string): string | SafeHtml;
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<HTMLPipe, never>;
|
|
9
8
|
static ɵpipe: i0.ɵɵPipeDeclaration<HTMLPipe, "html", true>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { SafeUrl } from '@angular/platform-browser';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class URLPipe implements PipeTransform {
|
|
5
|
-
private dom;
|
|
6
|
-
constructor(dom: DomSanitizer);
|
|
5
|
+
private readonly dom;
|
|
7
6
|
transform(url: string): string | SafeUrl;
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<URLPipe, never>;
|
|
9
8
|
static ɵpipe: i0.ɵɵPipeDeclaration<URLPipe, "url", true>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export type YNMode = 'full' | 'icon' | 'text';
|
|
5
5
|
export interface YNOptions {
|
|
@@ -9,8 +9,7 @@ export interface YNOptions {
|
|
|
9
9
|
}
|
|
10
10
|
export declare function yn(value: boolean, opt?: YNOptions): string;
|
|
11
11
|
export declare class YNPipe implements PipeTransform {
|
|
12
|
-
private dom;
|
|
13
|
-
constructor(dom: DomSanitizer);
|
|
12
|
+
private readonly dom;
|
|
14
13
|
transform(value: boolean, yes?: string, no?: string, mode?: YNMode, isSafeHtml?: boolean): SafeHtml;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<YNPipe, never>;
|
|
16
15
|
static ɵpipe: i0.ɵɵPipeDeclaration<YNPipe, "yn", true>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TemplateRef, Type } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
|
-
import { NzDrawerOptions, NzDrawerRef
|
|
4
|
+
import { NzDrawerOptions, NzDrawerRef } from 'ng-zorro-antd/drawer';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export interface DrawerHelperOptions {
|
|
7
7
|
/**
|
|
@@ -46,11 +46,10 @@ export interface DrawerHelperOptions {
|
|
|
46
46
|
* this.NzDrawerRef.close(false);
|
|
47
47
|
*/
|
|
48
48
|
export declare class DrawerHelper {
|
|
49
|
-
private srv;
|
|
50
|
-
private parentDrawer;
|
|
49
|
+
private readonly srv;
|
|
50
|
+
private readonly parentDrawer;
|
|
51
51
|
private openDrawersAtThisLevel;
|
|
52
52
|
get openDrawers(): NzDrawerRef[];
|
|
53
|
-
constructor(srv: NzDrawerService, parentDrawer: DrawerHelper);
|
|
54
53
|
/**
|
|
55
54
|
* 构建一个抽屉
|
|
56
55
|
*/
|
|
@@ -67,6 +66,6 @@ export declare class DrawerHelper {
|
|
|
67
66
|
$implicit: NzSafeAny;
|
|
68
67
|
drawerRef: NzDrawerRef;
|
|
69
68
|
}> | Type<NzSafeAny>, params?: NzSafeAny, options?: DrawerHelperOptions): Observable<NzSafeAny>;
|
|
70
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerHelper,
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerHelper, never>;
|
|
71
70
|
static ɵprov: i0.ɵɵInjectableDeclaration<DrawerHelper>;
|
|
72
71
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HttpContext, HttpEvent, HttpHeaders, HttpParams, HttpResponse } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { AlainConfigService } from '@delon/util/config';
|
|
4
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
@@ -14,9 +14,9 @@ export type HttpObserve = 'body' | 'events' | 'response';
|
|
|
14
14
|
* + 统一处理时间格式问题
|
|
15
15
|
*/
|
|
16
16
|
export declare class _HttpClient {
|
|
17
|
-
private http;
|
|
17
|
+
private readonly http;
|
|
18
18
|
private cog;
|
|
19
|
-
constructor(
|
|
19
|
+
constructor(cogSrv: AlainConfigService);
|
|
20
20
|
private lc;
|
|
21
21
|
/**
|
|
22
22
|
* Get whether it's loading
|
|
@@ -10,8 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
* ```
|
|
11
11
|
*/
|
|
12
12
|
export declare abstract class BaseApi {
|
|
13
|
-
protected injector: Injector;
|
|
14
|
-
constructor(injector: Injector);
|
|
13
|
+
protected readonly injector: Injector;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseApi, never>;
|
|
16
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<BaseApi>;
|
|
17
16
|
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { ActivatedRouteSnapshot, CanActivateChildFn, CanActivateFn } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { AlainConfigService } from '@delon/util/config';
|
|
4
|
-
import { AlainI18NService } from './i18n';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
export declare class AlainI18NGuardService {
|
|
7
|
-
private i18nSrv;
|
|
8
|
-
private cogSrv;
|
|
9
|
-
constructor(i18nSrv: AlainI18NService, cogSrv: AlainConfigService);
|
|
5
|
+
private readonly i18nSrv;
|
|
6
|
+
private readonly cogSrv;
|
|
10
7
|
process(route: ActivatedRouteSnapshot): Observable<boolean>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlainI18NGuardService,
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlainI18NGuardService, never>;
|
|
12
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<AlainI18NGuardService>;
|
|
13
10
|
}
|
|
14
11
|
/**
|
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { ACLService } from '@delon/acl';
|
|
4
3
|
import { Menu } from './interface';
|
|
5
|
-
import { AlainI18NService } from '../i18n/i18n';
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
/**
|
|
8
6
|
* 菜单服务,[在线文档](https://ng-alain.com/theme/menu)
|
|
9
7
|
*/
|
|
10
8
|
export declare class MenuService implements OnDestroy {
|
|
11
|
-
private i18nSrv;
|
|
12
|
-
private aclService;
|
|
9
|
+
private readonly i18nSrv;
|
|
10
|
+
private readonly aclService;
|
|
13
11
|
private _change$;
|
|
14
|
-
private i18n
|
|
12
|
+
private i18n$?;
|
|
15
13
|
private data;
|
|
16
14
|
/**
|
|
17
15
|
* 是否完全受控菜单打开状态,默认:`false`
|
|
18
16
|
*/
|
|
19
17
|
openStrictly: boolean;
|
|
20
|
-
constructor(
|
|
18
|
+
constructor();
|
|
21
19
|
get change(): Observable<Menu[]>;
|
|
22
20
|
get menus(): Menu[];
|
|
23
21
|
visit<T extends Menu = Menu>(data: T[], callback: (item: T, parentMenum: T | null, depth?: number) => void): void;
|
|
@@ -97,6 +95,6 @@ export declare class MenuService implements OnDestroy {
|
|
|
97
95
|
emit?: boolean;
|
|
98
96
|
}): void;
|
|
99
97
|
ngOnDestroy(): void;
|
|
100
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuService,
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, never>;
|
|
101
99
|
static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
|
|
102
100
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { DragDrop } from '@angular/cdk/drag-drop';
|
|
2
1
|
import { TemplateRef, Type } from '@angular/core';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
|
-
import { ModalOptions
|
|
4
|
+
import { ModalOptions } from 'ng-zorro-antd/modal';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export interface ModalHelperOptions {
|
|
8
7
|
/** 大小;例如:lg、600、80%,默认:`lg` */
|
|
@@ -32,10 +31,9 @@ export interface ModalHelperDragOptions {
|
|
|
32
31
|
* 对话框辅助类
|
|
33
32
|
*/
|
|
34
33
|
export declare class ModalHelper {
|
|
35
|
-
private srv;
|
|
36
|
-
private drag;
|
|
37
|
-
private
|
|
38
|
-
constructor(srv: NzModalService, drag: DragDrop, doc: NzSafeAny);
|
|
34
|
+
private readonly srv;
|
|
35
|
+
private readonly drag;
|
|
36
|
+
private readonly doc;
|
|
39
37
|
private createDragRef;
|
|
40
38
|
/**
|
|
41
39
|
* 构建一个对话框
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { Direction
|
|
2
|
-
import { Platform } from '@angular/cdk/platform';
|
|
1
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { AlainConfigService } from '@delon/util/config';
|
|
5
|
-
import { NzConfigService } from 'ng-zorro-antd/core/config';
|
|
6
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
7
|
-
import { SettingsService } from '../settings/settings.service';
|
|
8
3
|
import * as i0 from "@angular/core";
|
|
9
4
|
export declare const HTML_DIR = "dir";
|
|
10
5
|
export declare const RTL_DIRECTION = "direction";
|
|
@@ -13,12 +8,12 @@ export declare const RTL_DELON_COMPONENTS: string[];
|
|
|
13
8
|
export declare const LTR = "ltr";
|
|
14
9
|
export declare const RTL = "rtl";
|
|
15
10
|
export declare class RTLService {
|
|
16
|
-
private d;
|
|
17
|
-
private
|
|
18
|
-
private
|
|
19
|
-
private
|
|
20
|
-
private
|
|
21
|
-
private
|
|
11
|
+
private readonly d;
|
|
12
|
+
private readonly nz;
|
|
13
|
+
private readonly delon;
|
|
14
|
+
private readonly platform;
|
|
15
|
+
private readonly doc;
|
|
16
|
+
private readonly srv;
|
|
22
17
|
private _dir;
|
|
23
18
|
/**
|
|
24
19
|
* Get or Set the current text direction
|
|
@@ -39,7 +34,7 @@ export declare class RTLService {
|
|
|
39
34
|
* 订阅变更通知
|
|
40
35
|
*/
|
|
41
36
|
get change(): Observable<Direction>;
|
|
42
|
-
constructor(
|
|
37
|
+
constructor();
|
|
43
38
|
/**
|
|
44
39
|
* Toggle text direction
|
|
45
40
|
*
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Platform } from '@angular/cdk/platform';
|
|
2
1
|
import { InjectionToken, Provider } from '@angular/core';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
@@ -15,13 +14,12 @@ export interface SettingsKeys {
|
|
|
15
14
|
export declare const ALAIN_SETTING_KEYS: InjectionToken<SettingsKeys>;
|
|
16
15
|
export declare const ALAIN_SETTING_DEFAULT: Provider;
|
|
17
16
|
export declare class SettingsService<L extends Layout = Layout, U extends User = User, A extends App = App> {
|
|
18
|
-
private
|
|
19
|
-
private
|
|
17
|
+
private readonly KEYS;
|
|
18
|
+
private readonly platform;
|
|
20
19
|
private notify$;
|
|
21
20
|
private _app;
|
|
22
21
|
private _user;
|
|
23
22
|
private _layout;
|
|
24
|
-
constructor(platform: Platform, KEYS: SettingsKeys);
|
|
25
23
|
getData(key: string): NzSafeAny;
|
|
26
24
|
setData(key: string, value: NzSafeAny): void;
|
|
27
25
|
get layout(): L;
|
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Title } from '@angular/platform-browser';
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
|
-
import { AlainI18NService } from '../i18n/i18n';
|
|
6
|
-
import { MenuService } from '../menu/menu.service';
|
|
7
3
|
import * as i0 from "@angular/core";
|
|
8
4
|
export interface RouteTitle {
|
|
9
5
|
title?: string | Observable<string>;
|
|
10
6
|
titleI18n?: string;
|
|
11
7
|
}
|
|
12
8
|
export declare class TitleService implements OnDestroy {
|
|
13
|
-
private injector;
|
|
14
|
-
private title;
|
|
15
|
-
private menuSrv;
|
|
16
|
-
private i18nSrv;
|
|
17
|
-
private doc;
|
|
18
9
|
private destroy$;
|
|
19
10
|
private _prefix;
|
|
20
11
|
private _suffix;
|
|
@@ -22,7 +13,12 @@ export declare class TitleService implements OnDestroy {
|
|
|
22
13
|
private _reverse;
|
|
23
14
|
private tit$?;
|
|
24
15
|
readonly DELAY_TIME = 25;
|
|
25
|
-
|
|
16
|
+
private readonly doc;
|
|
17
|
+
private readonly injector;
|
|
18
|
+
private readonly title;
|
|
19
|
+
private readonly menuSrv;
|
|
20
|
+
private readonly i18nSrv;
|
|
21
|
+
constructor();
|
|
26
22
|
/**
|
|
27
23
|
* Set separator
|
|
28
24
|
*
|
|
@@ -71,6 +67,6 @@ export declare class TitleService implements OnDestroy {
|
|
|
71
67
|
*/
|
|
72
68
|
setTitleByI18n(key: string, params?: unknown): void;
|
|
73
69
|
ngOnDestroy(): void;
|
|
74
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TitleService,
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TitleService, never>;
|
|
75
71
|
static ɵprov: i0.ɵɵInjectableDeclaration<TitleService>;
|
|
76
72
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { Direction
|
|
2
|
-
import {
|
|
3
|
-
import { ChangeDetectorRef, EventEmitter, InjectionToken, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
4
|
-
import { AlainConfigService } from '@delon/util/config';
|
|
5
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
1
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
2
|
+
import { EventEmitter, InjectionToken, OnDestroy, OnInit } from '@angular/core';
|
|
6
3
|
import * as i0 from "@angular/core";
|
|
7
4
|
export interface ThemeBtnType {
|
|
8
5
|
key: string;
|
|
@@ -10,27 +7,26 @@ export interface ThemeBtnType {
|
|
|
10
7
|
}
|
|
11
8
|
export declare const ALAIN_THEME_BTN_KEYS: InjectionToken<string>;
|
|
12
9
|
export declare class ThemeBtnComponent implements OnInit, OnDestroy {
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
private directionality;
|
|
18
|
-
private cdr;
|
|
10
|
+
private readonly doc;
|
|
11
|
+
private readonly platform;
|
|
12
|
+
private readonly renderer;
|
|
13
|
+
private readonly configSrv;
|
|
14
|
+
private readonly directionality;
|
|
15
|
+
private readonly cdr;
|
|
16
|
+
private readonly destroy$;
|
|
19
17
|
private theme;
|
|
20
18
|
isDev: boolean;
|
|
21
19
|
types: ThemeBtnType[];
|
|
22
20
|
devTips: string;
|
|
23
21
|
deployUrl: string;
|
|
24
22
|
readonly themeChange: EventEmitter<string>;
|
|
25
|
-
|
|
26
|
-
dir: Direction;
|
|
23
|
+
dir?: Direction;
|
|
27
24
|
private key;
|
|
28
|
-
constructor(renderer: Renderer2, configSrv: AlainConfigService, platform: Platform, doc: NzSafeAny, directionality: Directionality, KEYS: string, cdr: ChangeDetectorRef);
|
|
29
25
|
ngOnInit(): void;
|
|
30
26
|
private initTheme;
|
|
31
27
|
private updateChartTheme;
|
|
32
28
|
onThemeChange(theme: string): void;
|
|
33
29
|
ngOnDestroy(): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeBtnComponent,
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeBtnComponent, never>;
|
|
35
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<ThemeBtnComponent, "theme-btn", never, { "types": { "alias": "types"; "required": false; }; "devTips": { "alias": "devTips"; "required": false; }; "deployUrl": { "alias": "deployUrl"; "required": false; }; }, { "themeChange": "themeChange"; }, never, never, true, never>;
|
|
36
32
|
}
|