@delon/theme 12.4.2 → 13.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compact.css +1278 -750
- package/compact.min.css +1 -1
- package/dark.css +1325 -797
- package/dark.min.css +1 -1
- package/default.css +1286 -758
- package/default.min.css +1 -1
- package/{esm2015/layout-blank/layout-blank.js → esm2020/layout-blank/layout-blank.mjs} +0 -0
- package/{esm2015/layout-blank/public_api.js → esm2020/layout-blank/public_api.mjs} +0 -0
- package/{esm2015/layout-default/layout-default.js → esm2020/layout-default/layout-default.mjs} +0 -0
- package/esm2020/layout-default/layout-header-item-trigger.directive.mjs +16 -0
- package/esm2020/layout-default/layout-header-item.component.mjs +33 -0
- package/esm2020/layout-default/layout-header.component.mjs +123 -0
- package/esm2020/layout-default/layout-nav.component.mjs +307 -0
- package/esm2020/layout-default/layout.component.mjs +132 -0
- package/esm2020/layout-default/layout.module.mjs +69 -0
- package/{esm2015/layout-default/public_api.js → esm2020/layout-default/public_api.mjs} +0 -0
- package/{esm2015/layout-default/types.js → esm2020/layout-default/types.mjs} +0 -0
- package/esm2020/public_api.mjs +25 -0
- package/{esm2015/setting-drawer/public_api.js → esm2020/setting-drawer/public_api.mjs} +0 -0
- package/esm2020/setting-drawer/setting-drawer-item.component.mjs +35 -0
- package/esm2020/setting-drawer/setting-drawer.component.mjs +192 -0
- package/{esm2015/setting-drawer/setting-drawer.js → esm2020/setting-drawer/setting-drawer.mjs} +0 -0
- package/esm2020/setting-drawer/setting-drawer.module.mjs +68 -0
- package/{esm2015/setting-drawer/setting-drawer.types.js → esm2020/setting-drawer/setting-drawer.types.mjs} +0 -0
- package/{esm2015/src/config.js → esm2020/src/config.mjs} +0 -0
- package/{esm2015/src/locale/index.js → esm2020/src/locale/index.mjs} +0 -0
- package/{esm2015/src/locale/languages/el-GR.js → esm2020/src/locale/languages/el-GR.mjs} +0 -0
- package/{esm2015/src/locale/languages/en-US.js → esm2020/src/locale/languages/en-US.mjs} +0 -0
- package/{esm2015/src/locale/languages/es-ES.js → esm2020/src/locale/languages/es-ES.mjs} +0 -0
- package/{esm2015/src/locale/languages/fr-FR.js → esm2020/src/locale/languages/fr-FR.mjs} +0 -0
- package/{esm2015/src/locale/languages/hr-HR.js → esm2020/src/locale/languages/hr-HR.mjs} +0 -0
- package/{esm2015/src/locale/languages/it-IT.js → esm2020/src/locale/languages/it-IT.mjs} +0 -0
- package/{esm2015/src/locale/languages/ja-JP.js → esm2020/src/locale/languages/ja-JP.mjs} +0 -0
- package/{esm2015/src/locale/languages/ko-KR.js → esm2020/src/locale/languages/ko-KR.mjs} +0 -0
- package/{esm2015/src/locale/languages/pl-PL.js → esm2020/src/locale/languages/pl-PL.mjs} +0 -0
- package/{esm2015/src/locale/languages/sl-SI.js → esm2020/src/locale/languages/sl-SI.mjs} +0 -0
- package/{esm2015/src/locale/languages/tr-TR.js → esm2020/src/locale/languages/tr-TR.mjs} +0 -0
- package/{esm2015/src/locale/languages/zh-CN.js → esm2020/src/locale/languages/zh-CN.mjs} +0 -0
- package/{esm2015/src/locale/languages/zh-TW.js → esm2020/src/locale/languages/zh-TW.mjs} +0 -0
- package/esm2020/src/locale/locale.module.mjs +17 -0
- package/esm2020/src/locale/locale.service.mjs +45 -0
- package/{esm2015/src/locale/locale.tokens.js → esm2020/src/locale/locale.tokens.mjs} +0 -0
- package/{esm2015/src/locale/locale.types.js → esm2020/src/locale/locale.types.mjs} +0 -0
- package/{esm2015/src/locale/public_api.js → esm2020/src/locale/public_api.mjs} +0 -0
- package/esm2020/src/pipes/date/date.pipe.mjs +24 -0
- package/esm2020/src/pipes/keys/keys.pipe.mjs +21 -0
- package/esm2020/src/pipes/safe/html.pipe.mjs +18 -0
- package/esm2020/src/pipes/safe/url.pipe.mjs +18 -0
- package/esm2020/src/pipes/yn/yn.pipe.mjs +38 -0
- package/esm2020/src/router/optional-preloader.mjs +22 -0
- package/esm2020/src/services/drawer/drawer.helper.mjs +91 -0
- package/esm2020/src/services/http/http.client.mjs +154 -0
- package/esm2020/src/services/http/http.decorator.mjs +215 -0
- package/esm2020/src/services/i18n/i18n.mjs +97 -0
- package/esm2020/src/services/i18n/i18n.pipe.mjs +21 -0
- package/{esm2015/src/services/menu/interface.js → esm2020/src/services/menu/interface.mjs} +0 -0
- package/esm2020/src/services/menu/menu.service.mjs +252 -0
- package/esm2020/src/services/modal/modal.helper.mjs +106 -0
- package/{esm2015/src/services/preloader/preloader.js → esm2020/src/services/preloader/preloader.mjs} +0 -0
- package/esm2020/src/services/responsive/responsive.mjs +46 -0
- package/esm2020/src/services/rtl/rtl.service.mjs +101 -0
- package/esm2020/src/services/settings/settings.service.mjs +100 -0
- package/{esm2015/src/services/settings/types.js → esm2020/src/services/settings/types.mjs} +0 -0
- package/esm2020/src/services/title/title.service.mjs +124 -0
- package/esm2020/src/theme.module.mjs +76 -0
- package/{esm2015/src/version.js → esm2020/src/version.mjs} +1 -1
- package/{esm2015/theme-btn/public_api.js → esm2020/theme-btn/public_api.mjs} +0 -0
- package/esm2020/theme-btn/theme-btn.component.mjs +106 -0
- package/esm2020/theme-btn/theme-btn.mjs +5 -0
- package/esm2020/theme-btn/theme-btn.module.mjs +32 -0
- package/esm2020/theme.mjs +5 -0
- package/fesm2015/{layout-blank.js → layout-blank.mjs} +1 -1
- package/fesm2015/layout-blank.mjs.map +1 -0
- package/fesm2015/layout-default.mjs +654 -0
- package/fesm2015/layout-default.mjs.map +1 -0
- package/fesm2015/setting-drawer.mjs +487 -0
- package/fesm2015/setting-drawer.mjs.map +1 -0
- package/fesm2015/theme-btn.mjs +144 -0
- package/fesm2015/theme-btn.mjs.map +1 -0
- package/fesm2015/{theme.js → theme.mjs} +226 -188
- package/fesm2015/theme.mjs.map +1 -0
- package/fesm2020/layout-blank.mjs +7 -0
- package/fesm2020/layout-blank.mjs.map +1 -0
- package/fesm2020/layout-default.mjs +654 -0
- package/fesm2020/layout-default.mjs.map +1 -0
- package/fesm2020/setting-drawer.mjs +482 -0
- package/fesm2020/setting-drawer.mjs.map +1 -0
- package/fesm2020/theme-btn.mjs +141 -0
- package/fesm2020/theme-btn.mjs.map +1 -0
- package/fesm2020/theme.mjs +2575 -0
- package/fesm2020/theme.mjs.map +1 -0
- package/layout-blank/layout-blank.d.ts +1 -0
- package/layout-blank/package.json +5 -6
- package/layout-default/layout-default.d.ts +1 -0
- package/layout-default/layout-header-item-trigger.directive.d.ts +3 -0
- package/layout-default/layout-header-item.component.d.ts +3 -0
- package/layout-default/layout-header.component.d.ts +8 -5
- package/layout-default/layout-nav.component.d.ts +4 -1
- package/layout-default/layout.component.d.ts +6 -3
- package/layout-default/layout.module.d.ts +17 -0
- package/layout-default/package.json +5 -6
- package/layout-default/style/_aside.less +7 -10
- package/layout-default/style/_fixed.less +2 -0
- package/layout-default/style/_header.less +21 -0
- package/layout-default/style/_layout.less +7 -0
- package/layout-default/style/_progress-bar.less +6 -0
- package/layout-default/style/fix/_full-content.less +4 -0
- package/layout-default/style/widgets/_app-icons.less +3 -0
- package/layout-default/style/widgets/_user.less +5 -0
- package/package.json +55 -11
- package/public_api.d.ts +1 -0
- package/setting-drawer/package.json +5 -6
- package/setting-drawer/setting-drawer-item.component.d.ts +3 -0
- package/setting-drawer/setting-drawer.component.d.ts +3 -0
- package/setting-drawer/setting-drawer.d.ts +1 -0
- package/setting-drawer/setting-drawer.module.d.ts +18 -0
- package/setting-drawer/style/index.less +9 -0
- package/setting-drawer/style/rtl.less +1 -0
- package/src/locale/locale.module.d.ts +4 -0
- package/src/locale/locale.service.d.ts +3 -0
- package/src/pipes/date/date.pipe.d.ts +3 -0
- package/src/pipes/keys/keys.pipe.d.ts +3 -0
- package/src/pipes/safe/html.pipe.d.ts +3 -0
- package/src/pipes/safe/url.pipe.d.ts +3 -0
- package/src/pipes/yn/style/index.less +3 -0
- package/src/pipes/yn/yn.pipe.d.ts +3 -0
- package/src/services/drawer/drawer.helper.d.ts +3 -0
- package/src/services/http/http.client.d.ts +3 -0
- package/src/services/http/http.decorator.d.ts +3 -0
- package/src/services/i18n/i18n.d.ts +5 -0
- package/src/services/i18n/i18n.pipe.d.ts +3 -0
- package/src/services/menu/menu.service.d.ts +5 -0
- package/src/services/modal/modal.helper.d.ts +3 -0
- package/src/services/responsive/responsive.d.ts +3 -0
- package/src/services/rtl/rtl.service.d.ts +3 -0
- package/src/services/settings/settings.service.d.ts +9 -0
- package/src/services/title/title.service.d.ts +3 -0
- package/src/theme.module.d.ts +15 -0
- package/system/_preloader.less +10 -0
- package/system/_type.less +5 -0
- package/system/antd/_modal.less +5 -0
- package/system/antd/_table.less +7 -0
- package/system/index.less +3 -3
- package/system/mixins/_freak.less +2 -2
- package/system/mixins/_text-truncate.less +2 -0
- package/system/ng/_form.less +1 -0
- package/system/theme-default.less +3 -1
- package/system/utils/_display.less +9 -0
- package/system/utils/_other.less +2 -0
- package/system/utils/_scrollbar.less +3 -0
- package/system/widgets/_abs.less +3 -0
- package/system/widgets/_half-float.less +2 -0
- package/system/widgets/_masonry-grid.less +2 -0
- package/theme-btn/package.json +6 -7
- package/theme-btn/style/index.less +1 -0
- package/theme-btn/theme-btn.component.d.ts +3 -0
- package/theme-btn/{layout-theme-btn.d.ts → theme-btn.d.ts} +1 -0
- package/theme-btn/theme-btn.module.d.ts +8 -0
- package/theme-compact.less +1 -1
- package/theme-dark.less +1 -1
- package/theme-default.less +1 -1
- package/theme.d.ts +1 -1
- package/bundles/layout-blank.umd.js +0 -19
- package/bundles/layout-blank.umd.js.map +0 -1
- package/bundles/layout-default.umd.js +0 -876
- package/bundles/layout-default.umd.js.map +0 -1
- package/bundles/layout-theme-btn.umd.js +0 -141
- package/bundles/layout-theme-btn.umd.js.map +0 -1
- package/bundles/setting-drawer.umd.js +0 -789
- package/bundles/setting-drawer.umd.js.map +0 -1
- package/bundles/theme.umd.js +0 -3075
- package/bundles/theme.umd.js.map +0 -1
- package/esm2015/layout-default/layout-header-item-trigger.directive.js +0 -12
- package/esm2015/layout-default/layout-header-item.component.js +0 -23
- package/esm2015/layout-default/layout-header.component.js +0 -94
- package/esm2015/layout-default/layout-nav.component.js +0 -306
- package/esm2015/layout-default/layout.component.js +0 -102
- package/esm2015/layout-default/layout.module.js +0 -40
- package/esm2015/public_api.js +0 -24
- package/esm2015/setting-drawer/setting-drawer-item.component.js +0 -30
- package/esm2015/setting-drawer/setting-drawer.component.js +0 -185
- package/esm2015/setting-drawer/setting-drawer.module.js +0 -39
- package/esm2015/src/locale/locale.module.js +0 -14
- package/esm2015/src/locale/locale.service.js +0 -42
- package/esm2015/src/pipes/date/date.pipe.js +0 -23
- package/esm2015/src/pipes/keys/keys.pipe.js +0 -17
- package/esm2015/src/pipes/safe/html.pipe.js +0 -17
- package/esm2015/src/pipes/safe/url.pipe.js +0 -17
- package/esm2015/src/pipes/yn/yn.pipe.js +0 -37
- package/esm2015/src/router/optional-preloader.js +0 -23
- package/esm2015/src/services/drawer/drawer.helper.js +0 -90
- package/esm2015/src/services/http/http.client.js +0 -138
- package/esm2015/src/services/http/http.decorator.js +0 -207
- package/esm2015/src/services/i18n/i18n.js +0 -96
- package/esm2015/src/services/i18n/i18n.pipe.js +0 -17
- package/esm2015/src/services/menu/menu.service.js +0 -252
- package/esm2015/src/services/modal/modal.helper.js +0 -105
- package/esm2015/src/services/responsive/responsive.js +0 -48
- package/esm2015/src/services/rtl/rtl.service.js +0 -110
- package/esm2015/src/services/settings/settings.service.js +0 -82
- package/esm2015/src/services/title/title.service.js +0 -125
- package/esm2015/src/theme.module.js +0 -67
- package/esm2015/theme-btn/layout-theme-btn.js +0 -5
- package/esm2015/theme-btn/theme-btn.component.js +0 -103
- package/esm2015/theme-btn/theme-btn.module.js +0 -22
- package/esm2015/theme.js +0 -6
- package/fesm2015/layout-blank.js.map +0 -1
- package/fesm2015/layout-default.js +0 -561
- package/fesm2015/layout-default.js.map +0 -1
- package/fesm2015/layout-theme-btn.js +0 -129
- package/fesm2015/layout-theme-btn.js.map +0 -1
- package/fesm2015/setting-drawer.js +0 -448
- package/fesm2015/setting-drawer.js.map +0 -1
- package/fesm2015/theme.js.map +0 -1
- package/layout-blank/layout-blank.metadata.json +0 -1
- package/layout-default/layout-default.metadata.json +0 -1
- package/setting-drawer/setting-drawer.metadata.json +0 -1
- package/theme-btn/layout-theme-btn.metadata.json +0 -1
- package/theme.metadata.json +0 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class HTMLPipe implements PipeTransform {
|
|
4
5
|
private dom;
|
|
5
6
|
constructor(dom: DomSanitizer);
|
|
6
7
|
transform(html: string): string | SafeHtml;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HTMLPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HTMLPipe, "html">;
|
|
7
10
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class URLPipe implements PipeTransform {
|
|
4
5
|
private dom;
|
|
5
6
|
constructor(dom: DomSanitizer);
|
|
6
7
|
transform(url: string): string | SafeUrl;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<URLPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<URLPipe, "url">;
|
|
7
10
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare type YNMode = 'full' | 'icon' | 'text';
|
|
4
5
|
export declare class YNPipe implements PipeTransform {
|
|
5
6
|
private dom;
|
|
6
7
|
constructor(dom: DomSanitizer);
|
|
7
8
|
transform(value: boolean, yes?: string, no?: string, mode?: YNMode, isSafeHtml?: boolean): SafeHtml;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YNPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<YNPipe, "yn">;
|
|
8
11
|
}
|
|
@@ -2,6 +2,7 @@ import { TemplateRef, Type } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
4
|
import { NzDrawerOptions, NzDrawerRef, NzDrawerService } from 'ng-zorro-antd/drawer';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export interface DrawerHelperOptions {
|
|
6
7
|
/**
|
|
7
8
|
* 大小,若值为数值类型,则根据 `nzPlacement` 自动转化为 `nzHeight` 或 `nzWidth`;例如:lg、600,默认:`md`
|
|
@@ -61,4 +62,6 @@ export declare class DrawerHelper {
|
|
|
61
62
|
$implicit: NzSafeAny;
|
|
62
63
|
drawerRef: NzDrawerRef;
|
|
63
64
|
}> | Type<NzSafeAny>, params?: NzSafeAny, options?: DrawerHelperOptions): Observable<NzSafeAny>;
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerHelper, never>;
|
|
66
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DrawerHelper>;
|
|
64
67
|
}
|
|
@@ -2,6 +2,7 @@ import { HttpClient, HttpContext, HttpEvent, HttpHeaders, HttpParams, HttpRespon
|
|
|
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';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare type _HttpHeaders = HttpHeaders | {
|
|
6
7
|
[header: string]: string | string[];
|
|
7
8
|
};
|
|
@@ -562,4 +563,6 @@ export declare class _HttpClient {
|
|
|
562
563
|
withCredentials?: boolean;
|
|
563
564
|
context?: HttpContext;
|
|
564
565
|
}): Observable<any>;
|
|
566
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<_HttpClient, never>;
|
|
567
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<_HttpClient>;
|
|
565
568
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpHeaders } from '@angular/common/http';
|
|
2
2
|
import { Injector } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* Every http decorator must be based on `BaseAPI`, Like this:
|
|
5
6
|
* ```ts
|
|
@@ -10,6 +11,8 @@ import { Injector } from '@angular/core';
|
|
|
10
11
|
export declare abstract class BaseApi {
|
|
11
12
|
protected injector: Injector;
|
|
12
13
|
constructor(injector: Injector);
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseApi, never>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseApi>;
|
|
13
16
|
}
|
|
14
17
|
export interface HttpOptions {
|
|
15
18
|
/** ACL配置,若导入 `@delon/acl` 时自动有效,等同于 `ACLService.can(roleOrAbility: ACLCanType)` 参数值 */
|
|
@@ -2,6 +2,7 @@ import { InjectionToken } from '@angular/core';
|
|
|
2
2
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
3
|
import { AlainConfigService } from '@delon/util/config';
|
|
4
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export interface AlainI18NService {
|
|
6
7
|
[key: string]: NzSafeAny;
|
|
7
8
|
/**
|
|
@@ -78,8 +79,12 @@ export declare abstract class AlainI18nBaseService implements AlainI18NService {
|
|
|
78
79
|
abstract use(lang: string, data?: Record<string, unknown>): void;
|
|
79
80
|
abstract getLangs(): NzSafeAny[];
|
|
80
81
|
fanyi(path: string, params?: Record<string, unknown>): string;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlainI18nBaseService, never>;
|
|
83
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlainI18nBaseService>;
|
|
81
84
|
}
|
|
82
85
|
export declare class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
83
86
|
use(lang: string, data: Record<string, unknown>): void;
|
|
84
87
|
getLangs(): NzSafeAny[];
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlainI18NServiceFake, never>;
|
|
89
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlainI18NServiceFake>;
|
|
85
90
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { AlainI18NService } from './i18n';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class I18nPipe implements PipeTransform {
|
|
4
5
|
private i18n;
|
|
5
6
|
constructor(i18n: AlainI18NService);
|
|
6
7
|
transform(key: string, params?: Record<string, unknown>): string;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<I18nPipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<I18nPipe, "i18n">;
|
|
7
10
|
}
|
|
@@ -3,6 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { ACLService } from '@delon/acl';
|
|
4
4
|
import { AlainI18NService } from '../i18n/i18n';
|
|
5
5
|
import { Menu } from './interface';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* 菜单服务,[在线文档](https://ng-alain.com/theme/menu)
|
|
8
9
|
*/
|
|
@@ -14,12 +15,14 @@ export declare class MenuService implements OnDestroy {
|
|
|
14
15
|
private data;
|
|
15
16
|
constructor(i18nSrv: AlainI18NService, aclService: ACLService);
|
|
16
17
|
get change(): Observable<Menu[]>;
|
|
18
|
+
visit<T extends Menu = Menu>(data: T[], callback: (item: T, parentMenum: T | null, depth?: number) => void): void;
|
|
17
19
|
visit(data: Menu[], callback: (item: Menu, parentMenum: Menu | null, depth?: number) => void): void;
|
|
18
20
|
add(items: Menu[]): void;
|
|
19
21
|
private fixItem;
|
|
20
22
|
/**
|
|
21
23
|
* 重置菜单,可能I18N、用户权限变动时需要调用刷新
|
|
22
24
|
*/
|
|
25
|
+
resume<T extends Menu = Menu>(callback?: (item: T, parentMenum: T | null, depth?: number) => void): void;
|
|
23
26
|
resume(callback?: (item: Menu, parentMenum: Menu | null, depth?: number) => void): void;
|
|
24
27
|
/**
|
|
25
28
|
* 加载快捷菜单,加载位置规则如下:
|
|
@@ -56,4 +59,6 @@ export declare class MenuService implements OnDestroy {
|
|
|
56
59
|
*/
|
|
57
60
|
setItem(key: string, value: Menu): void;
|
|
58
61
|
ngOnDestroy(): void;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuService, [{ optional: true; }, { optional: true; }]>;
|
|
63
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MenuService>;
|
|
59
64
|
}
|
|
@@ -2,6 +2,7 @@ import { TemplateRef, Type } from '@angular/core';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
4
|
import { ModalOptions, NzModalService } from 'ng-zorro-antd/modal';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export interface ModalHelperOptions {
|
|
6
7
|
/** 大小;例如:lg、600,默认:`lg` */
|
|
7
8
|
size?: 'sm' | 'md' | 'lg' | 'xl' | '' | number;
|
|
@@ -52,4 +53,6 @@ export declare class ModalHelper {
|
|
|
52
53
|
* this.nzModalRef.destroy();
|
|
53
54
|
*/
|
|
54
55
|
createStatic(comp: TemplateRef<NzSafeAny> | Type<NzSafeAny>, params?: NzSafeAny, options?: ModalHelperOptions): Observable<NzSafeAny>;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalHelper, never>;
|
|
57
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ModalHelper>;
|
|
55
58
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { AlainConfigService } from '@delon/util/config';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare const REP_MAX = 6;
|
|
3
4
|
export declare type REP_TYPE = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4
5
|
export declare class ResponsiveService {
|
|
5
6
|
private cog;
|
|
6
7
|
constructor(cogSrv: AlainConfigService);
|
|
7
8
|
genCls(count: number): string[];
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResponsiveService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ResponsiveService>;
|
|
8
11
|
}
|
|
@@ -5,6 +5,7 @@ import { AlainConfigService } from '@delon/util/config';
|
|
|
5
5
|
import { NzConfigService } from 'ng-zorro-antd/core/config';
|
|
6
6
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
7
7
|
import { SettingsService } from '../settings/settings.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
8
9
|
export declare const HTML_DIR = "dir";
|
|
9
10
|
export declare const RTL_DIRECTION = "direction";
|
|
10
11
|
export declare const RTL_NZ_COMPONENTS: string[];
|
|
@@ -47,4 +48,6 @@ export declare class RTLService {
|
|
|
47
48
|
toggle(): void;
|
|
48
49
|
private updateHtml;
|
|
49
50
|
private updateLibConfig;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RTLService, never>;
|
|
52
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RTLService>;
|
|
50
53
|
}
|
|
@@ -3,6 +3,7 @@ import { InjectionToken } from '@angular/core';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
5
|
import { App, Layout, SettingsNotify, User } from './types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export interface SettingsKeys {
|
|
7
8
|
/** Layout data specifies the stored key, default: `layout` */
|
|
8
9
|
layout: string;
|
|
@@ -26,7 +27,15 @@ export declare class SettingsService<L extends Layout = Layout, U extends User =
|
|
|
26
27
|
get app(): A;
|
|
27
28
|
get user(): U;
|
|
28
29
|
get notify(): Observable<SettingsNotify>;
|
|
30
|
+
setLayout<T extends Layout = Layout>(name: T, value?: NzSafeAny): boolean;
|
|
29
31
|
setLayout(name: string | L, value?: NzSafeAny): boolean;
|
|
32
|
+
getLayout<T>(): T;
|
|
33
|
+
setApp<T extends App = App>(value: T): void;
|
|
30
34
|
setApp(value: A): void;
|
|
35
|
+
getApp<T>(): T;
|
|
36
|
+
setUser<T extends User = User>(value: T): void;
|
|
31
37
|
setUser(value: U): void;
|
|
38
|
+
getUser<T>(): T;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsService<any, any, any>, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SettingsService<any, any, any>>;
|
|
32
41
|
}
|
|
@@ -3,6 +3,7 @@ import { Title } from '@angular/platform-browser';
|
|
|
3
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
4
|
import { AlainI18NService } from '../i18n/i18n';
|
|
5
5
|
import { MenuService } from '../menu/menu.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class TitleService implements OnDestroy {
|
|
7
8
|
private injector;
|
|
8
9
|
private title;
|
|
@@ -39,4 +40,6 @@ export declare class TitleService implements OnDestroy {
|
|
|
39
40
|
*/
|
|
40
41
|
setTitleByI18n(key: string, params?: unknown): void;
|
|
41
42
|
ngOnDestroy(): void;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TitleService, [null, null, null, { optional: true; }, null]>;
|
|
44
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TitleService>;
|
|
42
45
|
}
|
package/src/theme.module.d.ts
CHANGED
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import { NzIconService } from 'ng-zorro-antd/icon';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./pipes/date/date.pipe";
|
|
5
|
+
import * as i2 from "./pipes/keys/keys.pipe";
|
|
6
|
+
import * as i3 from "./pipes/yn/yn.pipe";
|
|
7
|
+
import * as i4 from "./services/i18n/i18n.pipe";
|
|
8
|
+
import * as i5 from "./pipes/safe/html.pipe";
|
|
9
|
+
import * as i6 from "./pipes/safe/url.pipe";
|
|
10
|
+
import * as i7 from "@angular/common";
|
|
11
|
+
import * as i8 from "@angular/router";
|
|
12
|
+
import * as i9 from "@angular/cdk/overlay";
|
|
13
|
+
import * as i10 from "ng-zorro-antd/i18n";
|
|
14
|
+
import * as i11 from "./locale/locale.module";
|
|
3
15
|
export declare class AlainThemeModule {
|
|
4
16
|
constructor(iconSrv: NzIconService);
|
|
5
17
|
static forRoot(): ModuleWithProviders<AlainThemeModule>;
|
|
6
18
|
static forChild(): ModuleWithProviders<AlainThemeModule>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlainThemeModule, never>;
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AlainThemeModule, [typeof i1.DatePipe, typeof i2.KeysPipe, typeof i3.YNPipe, typeof i4.I18nPipe, typeof i5.HTMLPipe, typeof i6.URLPipe], [typeof i7.CommonModule, typeof i8.RouterModule, typeof i9.OverlayModule, typeof i10.NzI18nModule], [typeof i1.DatePipe, typeof i2.KeysPipe, typeof i3.YNPipe, typeof i4.I18nPipe, typeof i5.HTMLPipe, typeof i6.URLPipe, typeof i11.DelonLocaleModule]>;
|
|
21
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AlainThemeModule>;
|
|
7
22
|
}
|
package/system/_preloader.less
CHANGED
|
@@ -42,25 +42,32 @@
|
|
|
42
42
|
color: #fff;
|
|
43
43
|
text-align: center;
|
|
44
44
|
transform: translateY(-50%);
|
|
45
|
+
|
|
45
46
|
label {
|
|
46
47
|
display: inline-block;
|
|
47
48
|
font-size: 20px;
|
|
48
49
|
opacity: 0;
|
|
50
|
+
|
|
49
51
|
&:nth-child(6) {
|
|
50
52
|
animation: lol 3s infinite ease-in-out;
|
|
51
53
|
}
|
|
54
|
+
|
|
52
55
|
&:nth-child(5) {
|
|
53
56
|
animation: lol 3s 100ms infinite ease-in-out;
|
|
54
57
|
}
|
|
58
|
+
|
|
55
59
|
&:nth-child(4) {
|
|
56
60
|
animation: lol 3s 200ms infinite ease-in-out;
|
|
57
61
|
}
|
|
62
|
+
|
|
58
63
|
&:nth-child(3) {
|
|
59
64
|
animation: lol 3s 300ms infinite ease-in-out;
|
|
60
65
|
}
|
|
66
|
+
|
|
61
67
|
&:nth-child(2) {
|
|
62
68
|
animation: lol 3s 400ms infinite ease-in-out;
|
|
63
69
|
}
|
|
70
|
+
|
|
64
71
|
&:nth-child(1) {
|
|
65
72
|
animation: lol 3s 500ms infinite ease-in-out;
|
|
66
73
|
}
|
|
@@ -72,14 +79,17 @@
|
|
|
72
79
|
transform: translateX(-300px);
|
|
73
80
|
opacity: 0;
|
|
74
81
|
}
|
|
82
|
+
|
|
75
83
|
33% {
|
|
76
84
|
transform: translateX(0);
|
|
77
85
|
opacity: 1;
|
|
78
86
|
}
|
|
87
|
+
|
|
79
88
|
66% {
|
|
80
89
|
transform: translateX(0);
|
|
81
90
|
opacity: 1;
|
|
82
91
|
}
|
|
92
|
+
|
|
83
93
|
100% {
|
|
84
94
|
transform: translateX(300px);
|
|
85
95
|
opacity: 0;
|
package/system/_type.less
CHANGED
|
@@ -19,18 +19,23 @@
|
|
|
19
19
|
.h1 {
|
|
20
20
|
font-size: @h1-font-size;
|
|
21
21
|
}
|
|
22
|
+
|
|
22
23
|
.h2 {
|
|
23
24
|
font-size: @h2-font-size;
|
|
24
25
|
}
|
|
26
|
+
|
|
25
27
|
.h3 {
|
|
26
28
|
font-size: @h3-font-size;
|
|
27
29
|
}
|
|
30
|
+
|
|
28
31
|
.h4 {
|
|
29
32
|
font-size: @h4-font-size;
|
|
30
33
|
}
|
|
34
|
+
|
|
31
35
|
.h5 {
|
|
32
36
|
font-size: @h5-font-size;
|
|
33
37
|
}
|
|
38
|
+
|
|
34
39
|
.h6 {
|
|
35
40
|
font-size: @h6-font-size;
|
|
36
41
|
}
|
package/system/antd/_modal.less
CHANGED
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
56
56
|
border-radius: @border-radius-base @border-radius-base 0 0;
|
|
57
57
|
}
|
|
58
|
+
|
|
58
59
|
&-title {
|
|
59
60
|
/**
|
|
60
61
|
* The top area title of the nz-modal, for example:
|
|
@@ -72,12 +73,14 @@
|
|
|
72
73
|
font-size: @font-size-lg;
|
|
73
74
|
line-height: 22px;
|
|
74
75
|
word-wrap: break-word;
|
|
76
|
+
|
|
75
77
|
small {
|
|
76
78
|
margin-left: @layout-gutter;
|
|
77
79
|
color: @muted-color;
|
|
78
80
|
font-size: 12px;
|
|
79
81
|
}
|
|
80
82
|
}
|
|
83
|
+
|
|
81
84
|
&-spin {
|
|
82
85
|
display: block;
|
|
83
86
|
min-height: 150px;
|
|
@@ -97,6 +100,7 @@
|
|
|
97
100
|
border-top: @border-width-base @border-style-base @border-color-split;
|
|
98
101
|
border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
99
102
|
}
|
|
103
|
+
|
|
100
104
|
&-include-tabs {
|
|
101
105
|
/**
|
|
102
106
|
* Whether the content of the modal is wrapped with `nz-tabs`, to clear the extra margin
|
|
@@ -107,6 +111,7 @@
|
|
|
107
111
|
margin-top: -16px;
|
|
108
112
|
}
|
|
109
113
|
}
|
|
114
|
+
|
|
110
115
|
&-body-nopadding {
|
|
111
116
|
/**
|
|
112
117
|
* Clear inner margin of modal content
|
package/system/antd/_table.less
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
&__title {
|
|
23
23
|
display: none;
|
|
24
24
|
}
|
|
25
|
+
|
|
25
26
|
&__hide-header-footer {
|
|
26
27
|
.@{ant-prefix}-table-title,
|
|
27
28
|
.@{ant-prefix}-table-footer {
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
color: @nz-table-rep-column-name-color;
|
|
58
59
|
text-align: @nz-table-rep-column-name-text-align;
|
|
59
60
|
}
|
|
61
|
+
|
|
60
62
|
&__hide-header-footer {
|
|
61
63
|
.@{ant-prefix}-table-title,
|
|
62
64
|
.@{ant-prefix}-table-footer {
|
|
@@ -67,22 +69,27 @@
|
|
|
67
69
|
table {
|
|
68
70
|
table-layout: auto !important;
|
|
69
71
|
}
|
|
72
|
+
|
|
70
73
|
table, col {
|
|
71
74
|
width: 100% !important;
|
|
72
75
|
min-width: auto !important;
|
|
73
76
|
}
|
|
77
|
+
|
|
74
78
|
&-thead {
|
|
75
79
|
display: none;
|
|
76
80
|
}
|
|
81
|
+
|
|
77
82
|
&-title {
|
|
78
83
|
text-align: center;
|
|
79
84
|
background: @nz-table-rep-header-background;
|
|
80
85
|
}
|
|
86
|
+
|
|
81
87
|
&-tbody {
|
|
82
88
|
> tr {
|
|
83
89
|
&:nth-child(4n + 3) {
|
|
84
90
|
background: @nz-table-rep-even-background;
|
|
85
91
|
}
|
|
92
|
+
|
|
86
93
|
> td {
|
|
87
94
|
display: flex;
|
|
88
95
|
align-items: center;
|
package/system/index.less
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// antd: base
|
|
2
|
-
@import '
|
|
2
|
+
@import 'ng-zorro-antd/style/entry.less';
|
|
3
3
|
// antd: all components
|
|
4
|
-
@import '
|
|
5
|
-
// system
|
|
4
|
+
@import 'ng-zorro-antd/components.less';
|
|
5
|
+
// system
|
|
6
6
|
@import './entry.less';
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
this.genCommentColor = function(color, ...comments) {
|
|
34
|
-
var imgColor = '  + '/fff.png&text=+)';
|
|
35
35
|
return '/* AUTOGENERATE: ' + comments.map(c => c + imgColor).join('|SPLIT|').replace(/(\{0\})/g, '"' + color + '"') + '*/';
|
|
36
36
|
}
|
|
37
37
|
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
break;
|
|
50
50
|
}
|
|
51
51
|
if (comments.length === 0) return '';
|
|
52
|
-
var imgColor = '  + '/fff.png&text=+)';
|
|
53
53
|
return '/* AUTOGENERATE: ' + comments.map(c => c + imgColor).join('|SPLIT|').replace(/(\{0\})/g, '"' + color + '"') + '*/';
|
|
54
54
|
}
|
|
55
55
|
})()`;
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
line-height: 1.5em;
|
|
21
21
|
text-align: justify;
|
|
22
|
+
|
|
22
23
|
&::before {
|
|
23
24
|
position: absolute;
|
|
24
25
|
right: 14px;
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
background: @bg;
|
|
28
29
|
content: '...';
|
|
29
30
|
}
|
|
31
|
+
|
|
30
32
|
&::after {
|
|
31
33
|
position: absolute;
|
|
32
34
|
right: 14px;
|
package/system/ng/_form.less
CHANGED
|
@@ -190,18 +190,23 @@
|
|
|
190
190
|
.align-self-auto {
|
|
191
191
|
align-self: auto !important;
|
|
192
192
|
}
|
|
193
|
+
|
|
193
194
|
.align-self-start {
|
|
194
195
|
align-self: flex-start !important;
|
|
195
196
|
}
|
|
197
|
+
|
|
196
198
|
.align-self-end {
|
|
197
199
|
align-self: flex-end !important;
|
|
198
200
|
}
|
|
201
|
+
|
|
199
202
|
.align-self-center {
|
|
200
203
|
align-self: center !important;
|
|
201
204
|
}
|
|
205
|
+
|
|
202
206
|
.align-self-baseline {
|
|
203
207
|
align-self: baseline !important;
|
|
204
208
|
}
|
|
209
|
+
|
|
205
210
|
.align-self-stretch {
|
|
206
211
|
align-self: stretch !important;
|
|
207
212
|
}
|
|
@@ -240,15 +245,19 @@
|
|
|
240
245
|
.flex-nowrap {
|
|
241
246
|
flex-wrap: nowrap !important;
|
|
242
247
|
}
|
|
248
|
+
|
|
243
249
|
.flex-shrink-0 {
|
|
244
250
|
flex-shrink: 0 !important;
|
|
245
251
|
}
|
|
252
|
+
|
|
246
253
|
.flex-shrink-1 {
|
|
247
254
|
flex-shrink: 1 !important;
|
|
248
255
|
}
|
|
256
|
+
|
|
249
257
|
.flex-grow-0 {
|
|
250
258
|
flex-grow: 0 !important;
|
|
251
259
|
}
|
|
260
|
+
|
|
252
261
|
.flex-grow-1 {
|
|
253
262
|
flex-grow: 1 !important;
|
|
254
263
|
}
|
package/system/utils/_other.less
CHANGED
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
width: @scrollbar-height;
|
|
10
10
|
height: @scrollbar-width;
|
|
11
11
|
}
|
|
12
|
+
|
|
12
13
|
&::-webkit-scrollbar-track {
|
|
13
14
|
box-shadow: inset 0 0 @scrollbar-width @scrollbar-track-color;
|
|
14
15
|
}
|
|
16
|
+
|
|
15
17
|
&::-webkit-scrollbar-thumb {
|
|
16
18
|
background-color: @scrollbar-thumb-color;
|
|
17
19
|
outline: 1px solid #333;
|
|
@@ -30,6 +32,7 @@
|
|
|
30
32
|
overflow-x: auto;
|
|
31
33
|
overflow-y: hidden;
|
|
32
34
|
}
|
|
35
|
+
|
|
33
36
|
&-y {
|
|
34
37
|
overflow-x: hidden;
|
|
35
38
|
overflow-y: auto;
|
package/system/widgets/_abs.less
CHANGED
|
@@ -11,15 +11,18 @@
|
|
|
11
11
|
left: 0;
|
|
12
12
|
margin: auto;
|
|
13
13
|
overflow: auto;
|
|
14
|
+
|
|
14
15
|
&.abs-fixed {
|
|
15
16
|
position: fixed;
|
|
16
17
|
z-index: 999;
|
|
17
18
|
}
|
|
19
|
+
|
|
18
20
|
&.abs-right {
|
|
19
21
|
right: 20px;
|
|
20
22
|
left: auto;
|
|
21
23
|
text-align: right;
|
|
22
24
|
}
|
|
25
|
+
|
|
23
26
|
&.abs-left {
|
|
24
27
|
right: auto;
|
|
25
28
|
left: 20px;
|
package/theme-btn/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"fesm2015": "../fesm2015/
|
|
7
|
-
"typings": "
|
|
8
|
-
"metadata": "layout-theme-btn.metadata.json",
|
|
2
|
+
"module": "../fesm2015/theme-btn.mjs",
|
|
3
|
+
"es2020": "../fesm2020/theme-btn.mjs",
|
|
4
|
+
"esm2020": "../esm2020/theme-btn/theme-btn.mjs",
|
|
5
|
+
"fesm2020": "../fesm2020/theme-btn.mjs",
|
|
6
|
+
"fesm2015": "../fesm2015/theme-btn.mjs",
|
|
7
|
+
"typings": "theme-btn.d.ts",
|
|
9
8
|
"sideEffects": false,
|
|
10
9
|
"name": "@delon/theme/theme-btn"
|
|
11
10
|
}
|