@delon/theme 19.2.0 → 20.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 +529 -181
- package/compact.min.css +1 -1
- package/dark.css +529 -181
- package/dark.min.css +1 -1
- package/default.css +529 -181
- package/default.min.css +1 -1
- package/fesm2022/layout-default.mjs +52 -66
- package/fesm2022/layout-default.mjs.map +1 -1
- package/fesm2022/setting-drawer.mjs +14 -22
- package/fesm2022/setting-drawer.mjs.map +1 -1
- package/fesm2022/theme-btn.mjs +10 -19
- package/fesm2022/theme-btn.mjs.map +1 -1
- package/fesm2022/theme.mjs +112 -94
- package/fesm2022/theme.mjs.map +1 -1
- package/index.d.ts +1689 -3
- package/layout-blank/index.d.ts +2 -5
- package/layout-default/index.d.ts +245 -5
- package/layout-default/style/fix/_sidebar-nav.less +18 -3
- package/layout-default/style/theme-dark.less +1 -0
- package/layout-default/style/theme-default.less +1 -0
- package/package.json +6 -6
- package/setting-drawer/index.d.ts +65 -5
- package/system/antd/_modal.less +1 -1
- package/system/ng/_preserve-white-spaces.less +8 -8
- package/theme-btn/index.d.ts +42 -5
- package/variable.css +529 -181
- package/variable.min.css +1 -1
- package/layout-blank/public_api.d.ts +0 -2
- package/layout-default/layout-header-item-trigger.directive.d.ts +0 -5
- package/layout-default/layout-header-item.component.d.ts +0 -10
- package/layout-default/layout-header.component.d.ts +0 -31
- package/layout-default/layout-nav.component.d.ts +0 -61
- package/layout-default/layout-top-menu-item.d.ts +0 -9
- package/layout-default/layout.component.d.ts +0 -39
- package/layout-default/layout.module.d.ts +0 -19
- package/layout-default/layout.service.d.ts +0 -29
- package/layout-default/public_api.d.ts +0 -9
- package/layout-default/types.d.ts +0 -60
- package/public_api.d.ts +0 -8
- package/setting-drawer/public_api.d.ts +0 -3
- package/setting-drawer/setting-drawer-item.component.d.ts +0 -11
- package/setting-drawer/setting-drawer.component.d.ts +0 -48
- package/setting-drawer/setting-drawer.module.d.ts +0 -8
- package/setting-drawer/setting-drawer.types.d.ts +0 -7
- package/src/config.d.ts +0 -63
- package/src/locale/index.d.ts +0 -1
- package/src/locale/languages/ar-SA.d.ts +0 -3
- package/src/locale/languages/el-GR.d.ts +0 -3
- package/src/locale/languages/en-US.d.ts +0 -3
- package/src/locale/languages/es-ES.d.ts +0 -3
- package/src/locale/languages/fr-FR.d.ts +0 -3
- package/src/locale/languages/hr-HR.d.ts +0 -3
- package/src/locale/languages/it-IT.d.ts +0 -3
- package/src/locale/languages/ja-JP.d.ts +0 -3
- package/src/locale/languages/ko-KR.d.ts +0 -3
- package/src/locale/languages/pl-PL.d.ts +0 -3
- package/src/locale/languages/sl-SI.d.ts +0 -3
- package/src/locale/languages/tr-TR.d.ts +0 -3
- package/src/locale/languages/vi-VI.d.ts +0 -3
- package/src/locale/languages/zh-CN.d.ts +0 -3
- package/src/locale/languages/zh-TW.d.ts +0 -3
- package/src/locale/locale.module.d.ts +0 -6
- package/src/locale/locale.service.d.ts +0 -17
- package/src/locale/locale.tokens.d.ts +0 -3
- package/src/locale/locale.types.d.ts +0 -93
- package/src/locale/public_api.d.ts +0 -19
- package/src/pipes/date/date.pipe.d.ts +0 -9
- package/src/pipes/index.d.ts +0 -5
- package/src/pipes/keys/keys.pipe.d.ts +0 -11
- package/src/pipes/safe/html.pipe.d.ts +0 -9
- package/src/pipes/safe/url.pipe.d.ts +0 -9
- package/src/pipes/yn/yn.pipe.d.ts +0 -16
- package/src/provide.d.ts +0 -23
- package/src/router/optional-preloader.d.ts +0 -20
- package/src/services/drawer/drawer.helper.d.ts +0 -71
- package/src/services/http/http.client.d.ts +0 -570
- package/src/services/http/http.decorator.d.ts +0 -108
- package/src/services/http/http.token.d.ts +0 -37
- package/src/services/http/index.d.ts +0 -3
- package/src/services/i18n/i18n-url.guard.d.ts +0 -36
- package/src/services/i18n/i18n.d.ts +0 -90
- package/src/services/i18n/i18n.pipe.d.ts +0 -8
- package/src/services/i18n/index.d.ts +0 -3
- package/src/services/index.d.ts +0 -10
- package/src/services/menu/index.d.ts +0 -2
- package/src/services/menu/interface.d.ts +0 -79
- package/src/services/menu/menu.service.d.ts +0 -114
- package/src/services/modal/modal.helper.d.ts +0 -78
- package/src/services/preloader/preloader.d.ts +0 -1
- package/src/services/responsive/responsive.d.ts +0 -12
- package/src/services/rtl/rtl.service.d.ts +0 -48
- package/src/services/settings/index.d.ts +0 -2
- package/src/services/settings/settings.service.d.ts +0 -40
- package/src/services/settings/types.d.ts +0 -35
- package/src/services/title/title.service.d.ts +0 -72
- package/src/theme.module.d.ts +0 -22
- package/src/version.d.ts +0 -2
- package/theme-btn/public_api.d.ts +0 -2
- package/theme-btn/theme-btn.component.d.ts +0 -32
- package/theme-btn/theme-btn.module.d.ts +0 -10
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
2
|
-
export type LocaleData = Record<string, NzSafeAny>;
|
|
3
|
-
export interface ExceptionLocaleData extends LocaleData {
|
|
4
|
-
403: string;
|
|
5
|
-
404: string;
|
|
6
|
-
500: string;
|
|
7
|
-
backToHome: string;
|
|
8
|
-
}
|
|
9
|
-
export interface NoticeIconLocaleData extends LocaleData {
|
|
10
|
-
emptyText: string;
|
|
11
|
-
clearText: string;
|
|
12
|
-
}
|
|
13
|
-
export interface ReuseTabLocaleData extends LocaleData {
|
|
14
|
-
close: string;
|
|
15
|
-
closeOther: string;
|
|
16
|
-
closeRight: string;
|
|
17
|
-
refresh: string;
|
|
18
|
-
}
|
|
19
|
-
export interface TagSelectLocaleData extends LocaleData {
|
|
20
|
-
expand: string;
|
|
21
|
-
collapse: string;
|
|
22
|
-
}
|
|
23
|
-
export interface MiniProgressLocaleData extends LocaleData {
|
|
24
|
-
target: string;
|
|
25
|
-
}
|
|
26
|
-
export interface STLocaleData extends LocaleData {
|
|
27
|
-
total: string;
|
|
28
|
-
filterConfirm: string;
|
|
29
|
-
filterReset: string;
|
|
30
|
-
}
|
|
31
|
-
export interface SFLocaleData extends LocaleData {
|
|
32
|
-
submit: string;
|
|
33
|
-
reset: string;
|
|
34
|
-
search: string;
|
|
35
|
-
edit: string;
|
|
36
|
-
addText: string;
|
|
37
|
-
removeText: string;
|
|
38
|
-
checkAllText: string;
|
|
39
|
-
error: SFErrorLocaleData;
|
|
40
|
-
}
|
|
41
|
-
export interface SFErrorLocaleData extends LocaleData {
|
|
42
|
-
'false schema': string;
|
|
43
|
-
$ref: string;
|
|
44
|
-
additionalItems: string;
|
|
45
|
-
additionalProperties: string;
|
|
46
|
-
anyOf: string;
|
|
47
|
-
dependencies: string;
|
|
48
|
-
enum: string;
|
|
49
|
-
format: string;
|
|
50
|
-
type: string;
|
|
51
|
-
required: string;
|
|
52
|
-
maxLength: string;
|
|
53
|
-
minLength: string;
|
|
54
|
-
minimum: string;
|
|
55
|
-
formatMinimum: string;
|
|
56
|
-
maximum: string;
|
|
57
|
-
formatMaximum: string;
|
|
58
|
-
maxItems: string;
|
|
59
|
-
minItems: string;
|
|
60
|
-
maxProperties: string;
|
|
61
|
-
minProperties: string;
|
|
62
|
-
multipleOf: string;
|
|
63
|
-
not: string;
|
|
64
|
-
oneOf: string;
|
|
65
|
-
pattern: string;
|
|
66
|
-
uniqueItems: string;
|
|
67
|
-
custom: string;
|
|
68
|
-
propertyNames: string;
|
|
69
|
-
patternRequired: string;
|
|
70
|
-
switch: string;
|
|
71
|
-
const: string;
|
|
72
|
-
contains: string;
|
|
73
|
-
formatExclusiveMaximum: string;
|
|
74
|
-
formatExclusiveMinimum: string;
|
|
75
|
-
if: string;
|
|
76
|
-
}
|
|
77
|
-
export interface OnboardingLocaleData extends LocaleData {
|
|
78
|
-
skip: string;
|
|
79
|
-
prev: string;
|
|
80
|
-
next: string;
|
|
81
|
-
done: string;
|
|
82
|
-
}
|
|
83
|
-
export interface FullLocaleData {
|
|
84
|
-
abbr: string;
|
|
85
|
-
exception: ExceptionLocaleData;
|
|
86
|
-
noticeIcon: NoticeIconLocaleData;
|
|
87
|
-
reuseTab: ReuseTabLocaleData;
|
|
88
|
-
tagSelect: TagSelectLocaleData;
|
|
89
|
-
onboarding: OnboardingLocaleData;
|
|
90
|
-
miniProgress: MiniProgressLocaleData;
|
|
91
|
-
st: STLocaleData;
|
|
92
|
-
sf: SFLocaleData;
|
|
93
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export * from './locale.tokens';
|
|
2
|
-
export * from './locale.types';
|
|
3
|
-
export * from './locale.service';
|
|
4
|
-
export * from './locale.module';
|
|
5
|
-
export { default as en_US } from './languages/en-US';
|
|
6
|
-
export { default as zh_CN } from './languages/zh-CN';
|
|
7
|
-
export { default as zh_TW } from './languages/zh-TW';
|
|
8
|
-
export { default as tr_TR } from './languages/tr-TR';
|
|
9
|
-
export { default as pl_PL } from './languages/pl-PL';
|
|
10
|
-
export { default as el_GR } from './languages/el-GR';
|
|
11
|
-
export { default as ko_KR } from './languages/ko-KR';
|
|
12
|
-
export { default as hr_HR } from './languages/hr-HR';
|
|
13
|
-
export { default as ja_JP } from './languages/ja-JP';
|
|
14
|
-
export { default as sl_SI } from './languages/sl-SI';
|
|
15
|
-
export { default as fr_FR } from './languages/fr-FR';
|
|
16
|
-
export { default as es_ES } from './languages/es-ES';
|
|
17
|
-
export { default as it_IT } from './languages/it-IT';
|
|
18
|
-
export { default as vi_VI } from './languages/vi-VI';
|
|
19
|
-
export { default as ar_SA } from './languages/ar-SA';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DatePipe implements PipeTransform {
|
|
4
|
-
private nzI18n;
|
|
5
|
-
private cog;
|
|
6
|
-
transform(value: Date | string | number, formatString?: string | null): string;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "_date", true>;
|
|
9
|
-
}
|
package/src/pipes/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* [Document](https://ng-alain.com/theme/keys)
|
|
6
|
-
*/
|
|
7
|
-
export declare class KeysPipe implements PipeTransform {
|
|
8
|
-
transform(value: NzSafeAny, keyIsNumber?: boolean): NzSafeAny[];
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KeysPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<KeysPipe, "keys", true>;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class HTMLPipe implements PipeTransform {
|
|
5
|
-
private readonly dom;
|
|
6
|
-
transform(html: string): string | SafeHtml;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HTMLPipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<HTMLPipe, "html", true>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { SafeUrl } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class URLPipe implements PipeTransform {
|
|
5
|
-
private readonly dom;
|
|
6
|
-
transform(url: string): string | SafeUrl;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<URLPipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<URLPipe, "url", true>;
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export type YNMode = 'full' | 'icon' | 'text';
|
|
5
|
-
export interface YNOptions {
|
|
6
|
-
yes?: string;
|
|
7
|
-
no?: string;
|
|
8
|
-
mode?: YNMode;
|
|
9
|
-
}
|
|
10
|
-
export declare function yn(value: boolean, opt?: YNOptions): string;
|
|
11
|
-
export declare class YNPipe implements PipeTransform {
|
|
12
|
-
private readonly dom;
|
|
13
|
-
transform(value: boolean, yes?: string, no?: string, mode?: YNMode, isSafeHtml?: boolean): SafeHtml;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<YNPipe, never>;
|
|
15
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<YNPipe, "yn", true>;
|
|
16
|
-
}
|
package/src/provide.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { EnvironmentProviders, Type } from '@angular/core';
|
|
2
|
-
import type { IconDefinition } from '@ant-design/icons-angular';
|
|
3
|
-
import { AlainConfig } from '@delon/util/config';
|
|
4
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
|
-
export interface AlainProvideOptions {
|
|
6
|
-
config?: AlainConfig;
|
|
7
|
-
/**
|
|
8
|
-
* Initialize default language
|
|
9
|
-
*
|
|
10
|
-
* 初始化默认语言
|
|
11
|
-
*/
|
|
12
|
-
defaultLang?: AlainProvideLang;
|
|
13
|
-
i18nClass?: Type<NzSafeAny>;
|
|
14
|
-
icons?: IconDefinition[];
|
|
15
|
-
}
|
|
16
|
-
export interface AlainProvideLang {
|
|
17
|
-
abbr: string;
|
|
18
|
-
ng: NzSafeAny;
|
|
19
|
-
zorro: NzSafeAny;
|
|
20
|
-
date: NzSafeAny;
|
|
21
|
-
delon: NzSafeAny;
|
|
22
|
-
}
|
|
23
|
-
export declare function provideAlain(options: AlainProvideOptions): EnvironmentProviders;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { PreloadingStrategy, Route } from '@angular/router';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
|
-
/**
|
|
5
|
-
* Optional pre-loading module, when it's necessary to load the resource at the first page load for some lazy routes, [example](https://github.com/ng-alain/ng-alain/blob/master/src/app/routes/routes-routing.module.ts).
|
|
6
|
-
*
|
|
7
|
-
* 可选预加载模块,当需要对某些懒路由在第一次页面加载时也一并加载该资源时,[示例](https://github.com/ng-alain/ng-alain/blob/master/src/app/routes/routes-routing.module.ts)。
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* {AT}NgModule({
|
|
11
|
-
* providers: [PreloadOptionalModules],
|
|
12
|
-
* imports: [
|
|
13
|
-
* RouterModule.forRoot([
|
|
14
|
-
* { path: '', loadChildren: null, data: { preload: true } }
|
|
15
|
-
* ], { preloadingStrategy: PreloadOptionalModules})]
|
|
16
|
-
* })
|
|
17
|
-
*/
|
|
18
|
-
export declare class PreloadOptionalModules implements PreloadingStrategy {
|
|
19
|
-
preload(route: Route, fn: () => Observable<NzSafeAny>): Observable<NzSafeAny>;
|
|
20
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { TemplateRef, Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
|
-
import { NzDrawerOptions, NzDrawerRef } from 'ng-zorro-antd/drawer';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export interface DrawerHelperOptions {
|
|
7
|
-
/**
|
|
8
|
-
* 大小,若值为数值类型,则根据 `nzPlacement` 自动转化为 `nzHeight` 或 `nzWidth`;例如:lg、600,默认:`md`
|
|
9
|
-
*
|
|
10
|
-
* | 类型 | 默认大小 |
|
|
11
|
-
* | --- | ------ |
|
|
12
|
-
* | `sm` | `300` |
|
|
13
|
-
* | `md` | `600` |
|
|
14
|
-
* | `lg` | `900` |
|
|
15
|
-
* | `xl` | `1200` |
|
|
16
|
-
*
|
|
17
|
-
* > 以上值,可通过覆盖相应的LESS参数自行调整
|
|
18
|
-
*/
|
|
19
|
-
size?: 'sm' | 'md' | 'lg' | 'xl' | number;
|
|
20
|
-
/**
|
|
21
|
-
* 是否包含底部工具条,默认:`true`
|
|
22
|
-
*/
|
|
23
|
-
footer?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* 底部工具条高度,默认:`55`
|
|
26
|
-
*/
|
|
27
|
-
footerHeight?: number;
|
|
28
|
-
/** 是否精准(默认:`true`),若返回值非空值(`null`或`undefined`)视为成功,否则视为错误 */
|
|
29
|
-
exact?: boolean;
|
|
30
|
-
/** 抽屉 [NzDrawerOptions](https://ng.ant.design/components/drawer/zh#nzdraweroptions) 参数 */
|
|
31
|
-
drawerOptions?: NzDrawerOptions;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* 抽屉辅助类
|
|
35
|
-
*
|
|
36
|
-
* **注意:** 构建结果都可被订阅,但永远都不会触发 `observer.error`
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* this.drawerHelper.create('Edit', FormEditComponent, { i }).subscribe(res => this.load());
|
|
40
|
-
* // 对于组件的成功&关闭的处理说明
|
|
41
|
-
* // 成功
|
|
42
|
-
* this.NzDrawerRef.close(data);
|
|
43
|
-
* this.NzDrawerRef.close(true);
|
|
44
|
-
* // 关闭
|
|
45
|
-
* this.NzDrawerRef.close();
|
|
46
|
-
* this.NzDrawerRef.close(false);
|
|
47
|
-
*/
|
|
48
|
-
export declare class DrawerHelper {
|
|
49
|
-
private readonly srv;
|
|
50
|
-
private readonly parentDrawer;
|
|
51
|
-
private openDrawersAtThisLevel;
|
|
52
|
-
get openDrawers(): NzDrawerRef[];
|
|
53
|
-
/**
|
|
54
|
-
* 构建一个抽屉
|
|
55
|
-
*/
|
|
56
|
-
create(title: string | TemplateRef<NzSafeAny> | undefined | null, comp: TemplateRef<{
|
|
57
|
-
$implicit: NzSafeAny;
|
|
58
|
-
drawerRef: NzDrawerRef;
|
|
59
|
-
}> | Type<NzSafeAny>, params?: NzSafeAny, options?: DrawerHelperOptions): Observable<NzSafeAny>;
|
|
60
|
-
private close;
|
|
61
|
-
closeAll(): void;
|
|
62
|
-
/**
|
|
63
|
-
* 构建一个抽屉,点击蒙层不允许关闭
|
|
64
|
-
*/
|
|
65
|
-
static(title: string | TemplateRef<NzSafeAny> | undefined | null, comp: TemplateRef<{
|
|
66
|
-
$implicit: NzSafeAny;
|
|
67
|
-
drawerRef: NzDrawerRef;
|
|
68
|
-
}> | Type<NzSafeAny>, params?: NzSafeAny, options?: DrawerHelperOptions): Observable<NzSafeAny>;
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DrawerHelper, never>;
|
|
70
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DrawerHelper>;
|
|
71
|
-
}
|