@delon/theme 16.1.1 → 16.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compact.css +37 -7
- package/compact.min.css +1 -1
- package/dark.css +37 -7
- package/dark.min.css +1 -1
- package/default.css +37 -7
- package/default.min.css +1 -1
- package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +5 -6
- package/esm2022/layout-default/layout-header-item.component.mjs +7 -8
- package/esm2022/layout-default/layout-header.component.mjs +18 -23
- package/esm2022/layout-default/layout-nav.component.mjs +16 -17
- package/esm2022/layout-default/layout-top-menu-item.mjs +6 -7
- package/esm2022/layout-default/layout.component.mjs +45 -30
- package/esm2022/layout-default/layout.module.mjs +6 -7
- package/esm2022/layout-default/layout.service.mjs +5 -6
- package/esm2022/setting-drawer/setting-drawer-item.component.mjs +6 -7
- package/esm2022/setting-drawer/setting-drawer.component.mjs +10 -14
- package/esm2022/setting-drawer/setting-drawer.module.mjs +6 -7
- package/esm2022/src/locale/locale.module.mjs +6 -7
- package/esm2022/src/locale/locale.service.mjs +5 -6
- package/esm2022/src/pipes/date/date.pipe.mjs +5 -6
- package/esm2022/src/pipes/keys/keys.pipe.mjs +5 -6
- package/esm2022/src/pipes/safe/html.pipe.mjs +5 -6
- package/esm2022/src/pipes/safe/url.pipe.mjs +5 -6
- package/esm2022/src/pipes/yn/yn.pipe.mjs +5 -6
- package/esm2022/src/services/drawer/drawer.helper.mjs +5 -6
- package/esm2022/src/services/http/http.client.mjs +5 -6
- package/esm2022/src/services/http/http.decorator.mjs +5 -6
- package/esm2022/src/services/i18n/i18n-url.guard.mjs +29 -14
- package/esm2022/src/services/i18n/i18n.mjs +9 -11
- package/esm2022/src/services/i18n/i18n.pipe.mjs +5 -6
- package/esm2022/src/services/menu/menu.service.mjs +5 -6
- package/esm2022/src/services/modal/modal.helper.mjs +11 -8
- package/esm2022/src/services/responsive/responsive.mjs +20 -14
- package/esm2022/src/services/rtl/rtl.service.mjs +5 -6
- package/esm2022/src/services/settings/settings.service.mjs +5 -6
- package/esm2022/src/services/title/title.service.mjs +12 -14
- package/esm2022/src/theme.module.mjs +6 -7
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/theme-btn/theme-btn.component.mjs +13 -14
- package/esm2022/theme-btn/theme-btn.module.mjs +6 -7
- package/fesm2022/layout-default.mjs +88 -79
- package/fesm2022/layout-default.mjs.map +1 -1
- package/fesm2022/setting-drawer.mjs +16 -19
- package/fesm2022/setting-drawer.mjs.map +1 -1
- package/fesm2022/theme-btn.mjs +15 -15
- package/fesm2022/theme-btn.mjs.map +1 -1
- package/fesm2022/theme.mjs +119 -93
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-default/layout-header.component.d.ts +2 -3
- package/layout-default/layout.component.d.ts +10 -6
- package/package.json +4 -4
- package/setting-drawer/setting-drawer.component.d.ts +3 -4
- package/src/services/i18n/i18n-url.guard.d.ts +27 -7
- package/src/services/menu/menu.service.d.ts +1 -1
- package/src/services/modal/modal.helper.d.ts +4 -0
- package/src/services/responsive/responsive.d.ts +2 -1
- package/src/services/title/title.service.d.ts +1 -1
- package/system/antd/_table.less +4 -1
- package/theme-btn/theme-btn.component.d.ts +5 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef,
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { App, SettingsService } from '@delon/theme';
|
|
3
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
4
4
|
import { LayoutDefaultHeaderItemComponent } from './layout-header-item.component';
|
|
@@ -10,7 +10,7 @@ interface LayoutDefaultHeaderItem {
|
|
|
10
10
|
hidden?: LayoutDefaultHeaderItemHidden;
|
|
11
11
|
direction?: LayoutDefaultHeaderItemDirection;
|
|
12
12
|
}
|
|
13
|
-
export declare class LayoutDefaultHeaderComponent implements AfterViewInit
|
|
13
|
+
export declare class LayoutDefaultHeaderComponent implements AfterViewInit {
|
|
14
14
|
private srv;
|
|
15
15
|
private settings;
|
|
16
16
|
private cdr;
|
|
@@ -27,7 +27,6 @@ export declare class LayoutDefaultHeaderComponent implements AfterViewInit, OnDe
|
|
|
27
27
|
private refresh;
|
|
28
28
|
ngAfterViewInit(): void;
|
|
29
29
|
toggleCollapsed(): void;
|
|
30
|
-
ngOnDestroy(): void;
|
|
31
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultHeaderComponent, never>;
|
|
32
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<LayoutDefaultHeaderComponent, "layout-default-header", never, { "items": { "alias": "items"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
32
|
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
import { ElementRef,
|
|
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';
|
|
4
5
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
6
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
6
7
|
import { LayoutDefaultHeaderItemComponent } from './layout-header-item.component';
|
|
7
8
|
import { LayoutDefaultService } from './layout.service';
|
|
8
9
|
import { LayoutDefaultOptions } from './types';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class LayoutDefaultComponent
|
|
11
|
+
export declare class LayoutDefaultComponent {
|
|
11
12
|
private msgSrv;
|
|
12
13
|
private settings;
|
|
13
14
|
private el;
|
|
14
15
|
private renderer;
|
|
15
16
|
private doc;
|
|
16
17
|
private srv;
|
|
18
|
+
static ngAcceptInputType_fetchingStrictly: BooleanInput;
|
|
19
|
+
static ngAcceptInputType_fetching: BooleanInput;
|
|
17
20
|
headerItems: QueryList<LayoutDefaultHeaderItemComponent>;
|
|
18
21
|
get opt(): LayoutDefaultOptions;
|
|
19
22
|
set options(value: LayoutDefaultOptions | null | undefined);
|
|
@@ -22,15 +25,16 @@ export declare class LayoutDefaultComponent implements OnDestroy {
|
|
|
22
25
|
nav: TemplateRef<void> | null;
|
|
23
26
|
content: TemplateRef<void> | null;
|
|
24
27
|
customError?: string | null;
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
fetchingStrictly: boolean;
|
|
29
|
+
fetching: boolean;
|
|
30
|
+
private isFetching;
|
|
31
|
+
get showFetching(): boolean;
|
|
27
32
|
get collapsed(): boolean;
|
|
28
33
|
get collapsedIcon(): string;
|
|
29
34
|
toggleCollapsed(): void;
|
|
30
35
|
constructor(router: Router, msgSrv: NzMessageService, settings: SettingsService, el: ElementRef, renderer: Renderer2, doc: NzSafeAny, srv: LayoutDefaultService);
|
|
31
36
|
processEv(ev: Event): void;
|
|
32
37
|
private setClass;
|
|
33
|
-
ngOnDestroy(): void;
|
|
34
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultComponent, never>;
|
|
35
|
-
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; }; }, {}, ["headerItems"], ["*"], false, never>;
|
|
39
|
+
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>;
|
|
36
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/theme",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.2.1",
|
|
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": "^16.
|
|
25
|
-
"@delon/acl": "^16.
|
|
26
|
-
"@delon/util": "^16.
|
|
24
|
+
"ng-zorro-antd": "^16.1.0",
|
|
25
|
+
"@delon/acl": "^16.2.1",
|
|
26
|
+
"@delon/util": "^16.2.1",
|
|
27
27
|
"tslib": "^2.3.0"
|
|
28
28
|
},
|
|
29
29
|
"module": "fesm2022/theme.mjs",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import { ChangeDetectorRef, NgZone,
|
|
2
|
+
import { ChangeDetectorRef, NgZone, OnInit } from '@angular/core';
|
|
3
3
|
import { Layout, SettingsService } from '@delon/theme';
|
|
4
4
|
import { LazyService } from '@delon/util/other';
|
|
5
5
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
6
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class SettingDrawerComponent implements OnInit
|
|
8
|
+
export declare class SettingDrawerComponent implements OnInit {
|
|
9
9
|
private cdr;
|
|
10
10
|
private msg;
|
|
11
11
|
private settingSrv;
|
|
@@ -18,7 +18,7 @@ export declare class SettingDrawerComponent implements OnInit, OnDestroy {
|
|
|
18
18
|
devTips: string;
|
|
19
19
|
lessJs: string;
|
|
20
20
|
private loadedLess;
|
|
21
|
-
private
|
|
21
|
+
private dir$;
|
|
22
22
|
dir: Direction;
|
|
23
23
|
isDev: boolean;
|
|
24
24
|
collapse: boolean;
|
|
@@ -44,7 +44,6 @@ export declare class SettingDrawerComponent implements OnInit, OnDestroy {
|
|
|
44
44
|
apply(): void;
|
|
45
45
|
reset(): void;
|
|
46
46
|
copyVar(): void;
|
|
47
|
-
ngOnDestroy(): void;
|
|
48
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
|
49
48
|
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>;
|
|
50
49
|
}
|
|
@@ -1,15 +1,35 @@
|
|
|
1
|
-
import { ActivatedRouteSnapshot,
|
|
1
|
+
import { ActivatedRouteSnapshot, CanActivateChildFn, CanActivateFn } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { AlainConfigService } from '@delon/util/config';
|
|
4
4
|
import { AlainI18NService } from './i18n';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class AlainI18NGuardService {
|
|
7
7
|
private i18nSrv;
|
|
8
8
|
private cogSrv;
|
|
9
9
|
constructor(i18nSrv: AlainI18NService, cogSrv: AlainConfigService);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AlainI18NGuard, [{ optional: true; }, null]>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AlainI18NGuard>;
|
|
10
|
+
process(route: ActivatedRouteSnapshot): Observable<boolean>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlainI18NGuardService, [{ optional: true; }, null]>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlainI18NGuardService>;
|
|
15
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Simple 路由守卫, [ACL Document](https://ng-alain.com/auth/guard).
|
|
16
|
+
*
|
|
17
|
+
* ```ts
|
|
18
|
+
* data: {
|
|
19
|
+
* path: 'home',
|
|
20
|
+
* canActivate: [ alainI18nCanActivate ]
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare const alainI18nCanActivate: CanActivateFn;
|
|
25
|
+
/**
|
|
26
|
+
* Simple 路由守卫, [ACL Document](https://ng-alain.com/auth/guard).
|
|
27
|
+
*
|
|
28
|
+
* ```ts
|
|
29
|
+
* data: {
|
|
30
|
+
* path: 'home',
|
|
31
|
+
* canActivateChild: [ alainI18nCanActivateChild ]
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare const alainI18nCanActivateChild: CanActivateChildFn;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ACLService } from '@delon/acl';
|
|
4
|
-
import { AlainI18NService } from '../i18n/i18n';
|
|
5
4
|
import { Menu } from './interface';
|
|
5
|
+
import { AlainI18NService } from '../i18n/i18n';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* 菜单服务,[在线文档](https://ng-alain.com/theme/menu)
|
|
@@ -17,6 +17,10 @@ export interface ModalHelperOptions {
|
|
|
17
17
|
* 是否支持拖动,默认是通过标题来触发
|
|
18
18
|
*/
|
|
19
19
|
drag?: ModalHelperDragOptions | boolean;
|
|
20
|
+
/**
|
|
21
|
+
* 是否强制使用 `nzData` 传递参数,若为 `false` 表示参数会直接映射到组件实例中,其他值只能通过 `NZ_MODAL_DATA` 的方式来获取参数,默认:`false`
|
|
22
|
+
*/
|
|
23
|
+
useNzData?: boolean;
|
|
20
24
|
}
|
|
21
25
|
export interface ModalHelperDragOptions {
|
|
22
26
|
/**
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AlainConfigService } from '@delon/util/config';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare const REP_MAX = 6;
|
|
4
|
+
export declare const SPAN_MAX = 24;
|
|
4
5
|
export type REP_TYPE = 1 | 2 | 3 | 4 | 5 | 6;
|
|
5
6
|
export declare class ResponsiveService {
|
|
6
7
|
private cog;
|
|
7
8
|
constructor(cogSrv: AlainConfigService);
|
|
8
|
-
genCls(count: number): string[];
|
|
9
|
+
genCls(count: number, defaultCol?: number): string[];
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResponsiveService, never>;
|
|
10
11
|
static ɵprov: i0.ɵɵInjectableDeclaration<ResponsiveService>;
|
|
11
12
|
}
|
|
@@ -15,11 +15,11 @@ export declare class TitleService implements OnDestroy {
|
|
|
15
15
|
private menuSrv;
|
|
16
16
|
private i18nSrv;
|
|
17
17
|
private doc;
|
|
18
|
+
private destroy$;
|
|
18
19
|
private _prefix;
|
|
19
20
|
private _suffix;
|
|
20
21
|
private _separator;
|
|
21
22
|
private _reverse;
|
|
22
|
-
private destroy$;
|
|
23
23
|
private tit$?;
|
|
24
24
|
readonly DELAY_TIME = 25;
|
|
25
25
|
constructor(injector: Injector, title: Title, menuSrv: MenuService, i18nSrv: AlainI18NService, doc: NzSafeAny);
|
package/system/antd/_table.less
CHANGED
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
.img {
|
|
12
12
|
max-width: @nz-table-img-max-width;
|
|
13
13
|
max-height: @nz-table-img-max-height;
|
|
14
|
-
margin-right: @nz-table-img-margin-right;
|
|
15
14
|
vertical-align: middle;
|
|
16
15
|
border-radius: @nz-table-img-radius;
|
|
16
|
+
|
|
17
|
+
&:not(:last-child) {
|
|
18
|
+
margin-right: @nz-table-img-margin-right;
|
|
19
|
+
}
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Direction, Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { Platform } from '@angular/cdk/platform';
|
|
3
|
-
import { EventEmitter, InjectionToken, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
3
|
+
import { ChangeDetectorRef, EventEmitter, InjectionToken, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
4
4
|
import { AlainConfigService } from '@delon/util/config';
|
|
5
5
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -16,20 +16,21 @@ export declare class ThemeBtnComponent implements OnInit, OnDestroy {
|
|
|
16
16
|
private doc;
|
|
17
17
|
private directionality;
|
|
18
18
|
private KEYS;
|
|
19
|
+
private cdr;
|
|
19
20
|
private theme;
|
|
20
21
|
isDev: boolean;
|
|
21
22
|
types: ThemeBtnType[];
|
|
22
23
|
devTips: string;
|
|
23
24
|
deployUrl: string;
|
|
24
25
|
readonly themeChange: EventEmitter<string>;
|
|
25
|
-
private
|
|
26
|
+
private dir$;
|
|
26
27
|
dir: Direction;
|
|
27
|
-
constructor(renderer: Renderer2, configSrv: AlainConfigService, platform: Platform, doc: NzSafeAny, directionality: Directionality, KEYS: string);
|
|
28
|
+
constructor(renderer: Renderer2, configSrv: AlainConfigService, platform: Platform, doc: NzSafeAny, directionality: Directionality, KEYS: string, cdr: ChangeDetectorRef);
|
|
28
29
|
ngOnInit(): void;
|
|
29
30
|
private initTheme;
|
|
30
31
|
private updateChartTheme;
|
|
31
32
|
onThemeChange(theme: string): void;
|
|
32
33
|
ngOnDestroy(): void;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeBtnComponent, [null, null, null, null, { optional: true; }, null]>;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeBtnComponent, [null, null, null, null, { optional: true; }, null, null]>;
|
|
34
35
|
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, false, never>;
|
|
35
36
|
}
|