@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
package/fesm2022/theme.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, Injectable, Optional, Inject, Pipe, SkipSelf, NgModule, Injector, Version } from '@angular/core';
|
|
3
|
-
import { filter, BehaviorSubject, share, Subject, map,
|
|
2
|
+
import { InjectionToken, inject, Injectable, Optional, Inject, DestroyRef, Pipe, SkipSelf, NgModule, Injector, Version } from '@angular/core';
|
|
3
|
+
import { filter, BehaviorSubject, share, Subject, map, of, delay, isObservable, switchMap, Observable, take, tap, finalize, throwError, catchError } from 'rxjs';
|
|
4
4
|
import * as i1 from '@delon/util/config';
|
|
5
5
|
import { AlainConfigService } from '@delon/util/config';
|
|
6
6
|
import * as i1$1 from '@delon/acl';
|
|
@@ -9,6 +9,7 @@ import * as i1$2 from '@angular/cdk/platform';
|
|
|
9
9
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
10
10
|
import * as i1$3 from '@angular/cdk/bidi';
|
|
11
11
|
import * as i3 from 'ng-zorro-antd/core/config';
|
|
12
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
12
13
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
13
14
|
import * as i1$4 from '@angular/platform-browser';
|
|
14
15
|
import { deepMerge } from '@delon/util/other';
|
|
@@ -114,10 +115,10 @@ class AlainI18nBaseService {
|
|
|
114
115
|
}
|
|
115
116
|
return content;
|
|
116
117
|
}
|
|
117
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
118
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
118
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainI18nBaseService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
119
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainI18nBaseService }); }
|
|
119
120
|
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainI18nBaseService, decorators: [{
|
|
121
122
|
type: Injectable
|
|
122
123
|
}], ctorParameters: function () { return [{ type: i1.AlainConfigService }]; } });
|
|
123
124
|
class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
@@ -129,10 +130,10 @@ class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
|
129
130
|
getLangs() {
|
|
130
131
|
return [];
|
|
131
132
|
}
|
|
132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
133
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainI18NServiceFake, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
134
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainI18NServiceFake, providedIn: 'root' }); }
|
|
134
135
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainI18NServiceFake, decorators: [{
|
|
136
137
|
type: Injectable,
|
|
137
138
|
args: [{ providedIn: 'root' }]
|
|
138
139
|
}] });
|
|
@@ -418,10 +419,10 @@ class MenuService {
|
|
|
418
419
|
this._change$.unsubscribe();
|
|
419
420
|
this.i18n$.unsubscribe();
|
|
420
421
|
}
|
|
421
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
422
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MenuService, deps: [{ token: ALAIN_I18N_TOKEN, optional: true }, { token: i1$1.ACLService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
423
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MenuService, providedIn: 'root' }); }
|
|
423
424
|
}
|
|
424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: MenuService, decorators: [{
|
|
425
426
|
type: Injectable,
|
|
426
427
|
args: [{ providedIn: 'root' }]
|
|
427
428
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -518,10 +519,10 @@ class SettingsService {
|
|
|
518
519
|
getUser() {
|
|
519
520
|
return this._user;
|
|
520
521
|
}
|
|
521
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
522
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
522
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: SettingsService, deps: [{ token: i1$2.Platform }, { token: ALAIN_SETTING_KEYS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
523
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: SettingsService, providedIn: 'root' }); }
|
|
523
524
|
}
|
|
524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: SettingsService, decorators: [{
|
|
525
526
|
type: Injectable,
|
|
526
527
|
args: [{ providedIn: 'root' }]
|
|
527
528
|
}], ctorParameters: function () { return [{ type: i1$2.Platform }, { type: undefined, decorators: [{
|
|
@@ -530,6 +531,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
|
530
531
|
}] }]; } });
|
|
531
532
|
|
|
532
533
|
const REP_MAX = 6;
|
|
534
|
+
const SPAN_MAX = 24;
|
|
533
535
|
class ResponsiveService {
|
|
534
536
|
constructor(cogSrv) {
|
|
535
537
|
this.cog = cogSrv.merge('themeResponsive', {
|
|
@@ -548,26 +550,32 @@ class ResponsiveService {
|
|
|
548
550
|
throw new Error(`[theme] the responseive rule index value range must be 1-${REP_MAX}`);
|
|
549
551
|
}
|
|
550
552
|
}
|
|
551
|
-
genCls(count) {
|
|
552
|
-
const rule = this.cog.rules[count > REP_MAX ? REP_MAX : Math.max(count, 1)];
|
|
553
|
+
genCls(count, defaultCol = 1) {
|
|
554
|
+
const rule = { ...this.cog.rules[count > REP_MAX ? REP_MAX : Math.max(count, 1)] };
|
|
553
555
|
const antColClass = 'ant-col';
|
|
554
|
-
const
|
|
556
|
+
const itemMaxSpan = SPAN_MAX / defaultCol;
|
|
557
|
+
const paddingSpan = (value) => {
|
|
558
|
+
if (value == null || defaultCol <= 1 || count >= defaultCol)
|
|
559
|
+
return value;
|
|
560
|
+
return Math.max(value, count * itemMaxSpan);
|
|
561
|
+
};
|
|
562
|
+
const clsMap = [`${antColClass}-xs-${paddingSpan(rule.xs)}`];
|
|
555
563
|
if (rule.sm)
|
|
556
|
-
clsMap.push(`${antColClass}-sm-${rule.sm}`);
|
|
564
|
+
clsMap.push(`${antColClass}-sm-${paddingSpan(rule.sm)}`);
|
|
557
565
|
if (rule.md)
|
|
558
|
-
clsMap.push(`${antColClass}-md-${rule.md}`);
|
|
566
|
+
clsMap.push(`${antColClass}-md-${paddingSpan(rule.md)}`);
|
|
559
567
|
if (rule.lg)
|
|
560
|
-
clsMap.push(`${antColClass}-lg-${rule.lg}`);
|
|
568
|
+
clsMap.push(`${antColClass}-lg-${paddingSpan(rule.lg)}`);
|
|
561
569
|
if (rule.xl)
|
|
562
|
-
clsMap.push(`${antColClass}-xl-${rule.xl}`);
|
|
570
|
+
clsMap.push(`${antColClass}-xl-${paddingSpan(rule.xl)}`);
|
|
563
571
|
if (rule.xxl)
|
|
564
|
-
clsMap.push(`${antColClass}-xxl-${rule.xxl}`);
|
|
572
|
+
clsMap.push(`${antColClass}-xxl-${paddingSpan(rule.xxl)}`);
|
|
565
573
|
return clsMap;
|
|
566
574
|
}
|
|
567
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
568
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
575
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: ResponsiveService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
576
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: ResponsiveService, providedIn: 'root' }); }
|
|
569
577
|
}
|
|
570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: ResponsiveService, decorators: [{
|
|
571
579
|
type: Injectable,
|
|
572
580
|
args: [{ providedIn: 'root' }]
|
|
573
581
|
}], ctorParameters: function () { return [{ type: i1.AlainConfigService }]; } });
|
|
@@ -653,10 +661,10 @@ class RTLService {
|
|
|
653
661
|
this.delon.set(name, { direction: this.dir });
|
|
654
662
|
});
|
|
655
663
|
}
|
|
656
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
657
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: RTLService, deps: [{ token: i1$3.Directionality }, { token: SettingsService }, { token: i3.NzConfigService }, { token: i1.AlainConfigService }, { token: i1$2.Platform }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
665
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: RTLService, providedIn: 'root' }); }
|
|
658
666
|
}
|
|
659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: RTLService, decorators: [{
|
|
660
668
|
type: Injectable,
|
|
661
669
|
args: [{ providedIn: 'root' }]
|
|
662
670
|
}], ctorParameters: function () { return [{ type: i1$3.Directionality }, { type: SettingsService }, { type: i3.NzConfigService }, { type: i1.AlainConfigService }, { type: i1$2.Platform }, { type: undefined, decorators: [{
|
|
@@ -671,11 +679,11 @@ class TitleService {
|
|
|
671
679
|
this.menuSrv = menuSrv;
|
|
672
680
|
this.i18nSrv = i18nSrv;
|
|
673
681
|
this.doc = doc;
|
|
682
|
+
this.destroy$ = inject(DestroyRef);
|
|
674
683
|
this._prefix = '';
|
|
675
684
|
this._suffix = '';
|
|
676
685
|
this._separator = ' - ';
|
|
677
686
|
this._reverse = false;
|
|
678
|
-
this.destroy$ = new Subject();
|
|
679
687
|
this.DELAY_TIME = 25;
|
|
680
688
|
/**
|
|
681
689
|
* Set default title name
|
|
@@ -683,7 +691,7 @@ class TitleService {
|
|
|
683
691
|
* 设置默认标题名
|
|
684
692
|
*/
|
|
685
693
|
this.default = `Not Page Name`;
|
|
686
|
-
|
|
694
|
+
i18nSrv.change.pipe(takeUntilDestroyed()).subscribe(() => this.setTitle());
|
|
687
695
|
}
|
|
688
696
|
/**
|
|
689
697
|
* Set separator
|
|
@@ -759,13 +767,13 @@ class TitleService {
|
|
|
759
767
|
setTitle(title) {
|
|
760
768
|
this.tit$?.unsubscribe();
|
|
761
769
|
this.tit$ = of(title)
|
|
762
|
-
.pipe(switchMap(tit => (tit ? of(tit) : this.getByRoute())), switchMap(tit => (tit ? of(tit) : this.getByMenu())), switchMap(tit => (tit ? of(tit) : this.getByElement())), map(tit => tit || this.default), map(title => (!Array.isArray(title) ? [title] : title)),
|
|
770
|
+
.pipe(switchMap(tit => (tit ? of(tit) : this.getByRoute())), switchMap(tit => (tit ? of(tit) : this.getByMenu())), switchMap(tit => (tit ? of(tit) : this.getByElement())), map(tit => tit || this.default), map(title => (!Array.isArray(title) ? [title] : title)), takeUntilDestroyed(this.destroy$))
|
|
763
771
|
.subscribe(titles => {
|
|
764
772
|
let newTitles = [];
|
|
765
773
|
if (this._prefix) {
|
|
766
774
|
newTitles.push(this._prefix);
|
|
767
775
|
}
|
|
768
|
-
newTitles.push(...titles);
|
|
776
|
+
newTitles.push(...titles.filter(title => !!title));
|
|
769
777
|
if (this._suffix) {
|
|
770
778
|
newTitles.push(this._suffix);
|
|
771
779
|
}
|
|
@@ -783,13 +791,11 @@ class TitleService {
|
|
|
783
791
|
}
|
|
784
792
|
ngOnDestroy() {
|
|
785
793
|
this.tit$?.unsubscribe();
|
|
786
|
-
this.destroy$.next();
|
|
787
|
-
this.destroy$.complete();
|
|
788
794
|
}
|
|
789
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
790
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
795
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: TitleService, deps: [{ token: i0.Injector }, { token: i1$4.Title }, { token: MenuService }, { token: ALAIN_I18N_TOKEN, optional: true }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
796
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: TitleService, providedIn: 'root' }); }
|
|
791
797
|
}
|
|
792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: TitleService, decorators: [{
|
|
793
799
|
type: Injectable,
|
|
794
800
|
args: [{ providedIn: 'root' }]
|
|
795
801
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$4.Title }, { type: MenuService }, { type: undefined, decorators: [{
|
|
@@ -809,10 +815,10 @@ class I18nPipe {
|
|
|
809
815
|
transform(key, params) {
|
|
810
816
|
return this.i18n.fanyi(key, params);
|
|
811
817
|
}
|
|
812
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
813
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
818
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: I18nPipe, deps: [{ token: ALAIN_I18N_TOKEN }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
819
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: I18nPipe, name: "i18n" }); }
|
|
814
820
|
}
|
|
815
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: I18nPipe, decorators: [{
|
|
816
822
|
type: Pipe,
|
|
817
823
|
args: [{ name: 'i18n' }]
|
|
818
824
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -820,28 +826,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
|
820
826
|
args: [ALAIN_I18N_TOKEN]
|
|
821
827
|
}] }]; } });
|
|
822
828
|
|
|
823
|
-
class
|
|
829
|
+
class AlainI18NGuardService {
|
|
824
830
|
constructor(i18nSrv, cogSrv) {
|
|
825
831
|
this.i18nSrv = i18nSrv;
|
|
826
832
|
this.cogSrv = cogSrv;
|
|
827
833
|
}
|
|
828
|
-
|
|
834
|
+
process(route) {
|
|
829
835
|
const lang = route.params && route.params[this.cogSrv.get('themeI18n')?.paramNameOfUrlGuard ?? 'i18n'];
|
|
830
836
|
if (lang != null) {
|
|
831
837
|
this.i18nSrv.use(lang);
|
|
832
838
|
}
|
|
833
839
|
return of(true);
|
|
834
840
|
}
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
}
|
|
838
|
-
canActivate(route, _) {
|
|
839
|
-
return this.resolve(route);
|
|
840
|
-
}
|
|
841
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AlainI18NGuard, deps: [{ token: ALAIN_I18N_TOKEN, optional: true }, { token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
842
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: AlainI18NGuard, providedIn: 'root' }); }
|
|
841
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainI18NGuardService, deps: [{ token: ALAIN_I18N_TOKEN, optional: true }, { token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
842
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainI18NGuardService, providedIn: 'root' }); }
|
|
843
843
|
}
|
|
844
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainI18NGuardService, decorators: [{
|
|
845
845
|
type: Injectable,
|
|
846
846
|
args: [{ providedIn: 'root' }]
|
|
847
847
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -850,6 +850,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
|
|
|
850
850
|
type: Inject,
|
|
851
851
|
args: [ALAIN_I18N_TOKEN]
|
|
852
852
|
}] }, { type: i1.AlainConfigService }]; } });
|
|
853
|
+
/**
|
|
854
|
+
* Simple 路由守卫, [ACL Document](https://ng-alain.com/auth/guard).
|
|
855
|
+
*
|
|
856
|
+
* ```ts
|
|
857
|
+
* data: {
|
|
858
|
+
* path: 'home',
|
|
859
|
+
* canActivate: [ alainI18nCanActivate ]
|
|
860
|
+
* }
|
|
861
|
+
* ```
|
|
862
|
+
*/
|
|
863
|
+
const alainI18nCanActivate = childRoute => inject(AlainI18NGuardService).process(childRoute);
|
|
864
|
+
/**
|
|
865
|
+
* Simple 路由守卫, [ACL Document](https://ng-alain.com/auth/guard).
|
|
866
|
+
*
|
|
867
|
+
* ```ts
|
|
868
|
+
* data: {
|
|
869
|
+
* path: 'home',
|
|
870
|
+
* canActivateChild: [ alainI18nCanActivateChild ]
|
|
871
|
+
* }
|
|
872
|
+
* ```
|
|
873
|
+
*/
|
|
874
|
+
const alainI18nCanActivateChild = route => inject(AlainI18NGuardService).process(route);
|
|
853
875
|
|
|
854
876
|
const DELON_LOCALE = new InjectionToken('delon-locale');
|
|
855
877
|
|
|
@@ -958,10 +980,10 @@ class DelonLocaleService {
|
|
|
958
980
|
getData(path) {
|
|
959
981
|
return (this._locale[path] || {});
|
|
960
982
|
}
|
|
961
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
962
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
983
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DelonLocaleService, deps: [{ token: DELON_LOCALE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
984
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DelonLocaleService }); }
|
|
963
985
|
}
|
|
964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DelonLocaleService, decorators: [{
|
|
965
987
|
type: Injectable
|
|
966
988
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
967
989
|
type: Inject,
|
|
@@ -977,11 +999,11 @@ const DELON_LOCALE_SERVICE_PROVIDER = {
|
|
|
977
999
|
};
|
|
978
1000
|
|
|
979
1001
|
class DelonLocaleModule {
|
|
980
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
981
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
982
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
1002
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DelonLocaleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1003
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: DelonLocaleModule }); }
|
|
1004
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DelonLocaleModule, providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER] }); }
|
|
983
1005
|
}
|
|
984
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
1006
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DelonLocaleModule, decorators: [{
|
|
985
1007
|
type: NgModule,
|
|
986
1008
|
args: [{
|
|
987
1009
|
providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER]
|
|
@@ -1993,7 +2015,7 @@ class ModalHelper {
|
|
|
1993
2015
|
includeTabs: false
|
|
1994
2016
|
}, options);
|
|
1995
2017
|
return new Observable((observer) => {
|
|
1996
|
-
const { size, includeTabs, modalOptions, drag } = options;
|
|
2018
|
+
const { size, includeTabs, modalOptions, drag, useNzData } = options;
|
|
1997
2019
|
let cls = '';
|
|
1998
2020
|
let width = '';
|
|
1999
2021
|
if (size) {
|
|
@@ -2026,9 +2048,13 @@ class ModalHelper {
|
|
|
2026
2048
|
nzContent: comp,
|
|
2027
2049
|
nzWidth: width ? width : undefined,
|
|
2028
2050
|
nzFooter: null,
|
|
2029
|
-
|
|
2051
|
+
nzData: params
|
|
2030
2052
|
};
|
|
2031
2053
|
const subject = this.srv.create({ ...defaultOptions, ...modalOptions });
|
|
2054
|
+
// 保留 nzComponentParams 原有风格,但依然可以通过 @Inject(NZ_MODAL_DATA) 获取
|
|
2055
|
+
if (useNzData !== true) {
|
|
2056
|
+
Object.assign(subject.componentInstance, params);
|
|
2057
|
+
}
|
|
2032
2058
|
subject.afterOpen
|
|
2033
2059
|
.pipe(take(1), filter(() => dragOptions != null))
|
|
2034
2060
|
.subscribe(() => {
|
|
@@ -2071,10 +2097,10 @@ class ModalHelper {
|
|
|
2071
2097
|
};
|
|
2072
2098
|
return this.create(comp, params, { ...options, modalOptions });
|
|
2073
2099
|
}
|
|
2074
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2075
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2100
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: ModalHelper, deps: [{ token: i1$5.NzModalService }, { token: i2.DragDrop }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2101
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: ModalHelper, providedIn: 'root' }); }
|
|
2076
2102
|
}
|
|
2077
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: ModalHelper, decorators: [{
|
|
2078
2104
|
type: Injectable,
|
|
2079
2105
|
args: [{ providedIn: 'root' }]
|
|
2080
2106
|
}], ctorParameters: function () { return [{ type: i1$5.NzModalService }, { type: i2.DragDrop }, { type: undefined, decorators: [{
|
|
@@ -2160,10 +2186,10 @@ class DrawerHelper {
|
|
|
2160
2186
|
};
|
|
2161
2187
|
return this.create(title, comp, params, { ...options, drawerOptions });
|
|
2162
2188
|
}
|
|
2163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2164
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2189
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DrawerHelper, deps: [{ token: i1$6.NzDrawerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2190
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DrawerHelper, providedIn: 'root' }); }
|
|
2165
2191
|
}
|
|
2166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DrawerHelper, decorators: [{
|
|
2167
2193
|
type: Injectable,
|
|
2168
2194
|
args: [{ providedIn: 'root' }]
|
|
2169
2195
|
}], ctorParameters: function () { return [{ type: i1$6.NzDrawerService }]; } });
|
|
@@ -2307,10 +2333,10 @@ class _HttpClient {
|
|
|
2307
2333
|
// Make sure to always be asynchronous, see issues: https://github.com/ng-alain/ng-alain/issues/1954
|
|
2308
2334
|
delay(0), tap(() => this.push()), switchMap(() => this.http.request(method, url, options)), finalize(() => this.pop()));
|
|
2309
2335
|
}
|
|
2310
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2311
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2336
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: _HttpClient, deps: [{ token: i1$7.HttpClient }, { token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2337
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: _HttpClient, providedIn: 'root' }); }
|
|
2312
2338
|
}
|
|
2313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: _HttpClient, decorators: [{
|
|
2314
2340
|
type: Injectable,
|
|
2315
2341
|
args: [{ providedIn: 'root' }]
|
|
2316
2342
|
}], ctorParameters: function () { return [{ type: i1$7.HttpClient }, { type: i1.AlainConfigService }]; } });
|
|
@@ -2326,10 +2352,10 @@ class BaseApi {
|
|
|
2326
2352
|
constructor(injector) {
|
|
2327
2353
|
this.injector = injector;
|
|
2328
2354
|
}
|
|
2329
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2330
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
|
2355
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: BaseApi, deps: [{ token: Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2356
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: BaseApi }); }
|
|
2331
2357
|
}
|
|
2332
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: BaseApi, decorators: [{
|
|
2333
2359
|
type: Injectable
|
|
2334
2360
|
}], ctorParameters: function () { return [{ type: i0.Injector, decorators: [{
|
|
2335
2361
|
type: Inject,
|
|
@@ -2573,10 +2599,10 @@ class DatePipe {
|
|
|
2573
2599
|
const langOpt = { locale: this.nzI18n.getDateLocale() };
|
|
2574
2600
|
return formatString === 'fn' ? formatDistanceToNow(value, langOpt) : format(value, formatString, langOpt);
|
|
2575
2601
|
}
|
|
2576
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2577
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
2602
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DatePipe, deps: [{ token: i1$8.NzI18nService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2603
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: DatePipe, name: "_date" }); }
|
|
2578
2604
|
}
|
|
2579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2605
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: DatePipe, decorators: [{
|
|
2580
2606
|
type: Pipe,
|
|
2581
2607
|
args: [{ name: '_date' }]
|
|
2582
2608
|
}], ctorParameters: function () { return [{ type: i1$8.NzI18nService }]; } });
|
|
@@ -2592,10 +2618,10 @@ class KeysPipe {
|
|
|
2592
2618
|
});
|
|
2593
2619
|
return ret;
|
|
2594
2620
|
}
|
|
2595
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2596
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
2621
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2622
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: KeysPipe, name: "keys" }); }
|
|
2597
2623
|
}
|
|
2598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: KeysPipe, decorators: [{
|
|
2599
2625
|
type: Pipe,
|
|
2600
2626
|
args: [{ name: 'keys' }]
|
|
2601
2627
|
}] });
|
|
@@ -2627,10 +2653,10 @@ class YNPipe {
|
|
|
2627
2653
|
}
|
|
2628
2654
|
return isSafeHtml ? this.dom.bypassSecurityTrustHtml(html) : html;
|
|
2629
2655
|
}
|
|
2630
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2631
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
2656
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: YNPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2657
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: YNPipe, name: "yn" }); }
|
|
2632
2658
|
}
|
|
2633
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: YNPipe, decorators: [{
|
|
2634
2660
|
type: Pipe,
|
|
2635
2661
|
args: [{ name: 'yn' }]
|
|
2636
2662
|
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
@@ -2642,10 +2668,10 @@ class HTMLPipe {
|
|
|
2642
2668
|
transform(html) {
|
|
2643
2669
|
return html ? this.dom.bypassSecurityTrustHtml(html) : '';
|
|
2644
2670
|
}
|
|
2645
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2646
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
2671
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: HTMLPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2672
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: HTMLPipe, name: "html" }); }
|
|
2647
2673
|
}
|
|
2648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: HTMLPipe, decorators: [{
|
|
2649
2675
|
type: Pipe,
|
|
2650
2676
|
args: [{ name: 'html' }]
|
|
2651
2677
|
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
@@ -2657,10 +2683,10 @@ class URLPipe {
|
|
|
2657
2683
|
transform(url) {
|
|
2658
2684
|
return url ? this.dom.bypassSecurityTrustUrl(url) : '';
|
|
2659
2685
|
}
|
|
2660
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2661
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.
|
|
2686
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: URLPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2687
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: URLPipe, name: "url" }); }
|
|
2662
2688
|
}
|
|
2663
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: URLPipe, decorators: [{
|
|
2664
2690
|
type: Pipe,
|
|
2665
2691
|
args: [{ name: 'url' }]
|
|
2666
2692
|
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
@@ -2687,9 +2713,9 @@ class AlainThemeModule {
|
|
|
2687
2713
|
providers: HELPERS
|
|
2688
2714
|
};
|
|
2689
2715
|
}
|
|
2690
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
|
2691
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
|
2692
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
|
2716
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainThemeModule, deps: [{ token: i1$9.NzIconService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2717
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: AlainThemeModule, declarations: [DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe], imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule], exports: [DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe, DelonLocaleModule] }); }
|
|
2718
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainThemeModule, providers: [
|
|
2693
2719
|
{
|
|
2694
2720
|
provide: ALAIN_SETTING_KEYS,
|
|
2695
2721
|
useValue: {
|
|
@@ -2700,7 +2726,7 @@ class AlainThemeModule {
|
|
|
2700
2726
|
}
|
|
2701
2727
|
], imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule, DelonLocaleModule] }); }
|
|
2702
2728
|
}
|
|
2703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
|
2729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AlainThemeModule, decorators: [{
|
|
2704
2730
|
type: NgModule,
|
|
2705
2731
|
args: [{
|
|
2706
2732
|
imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule],
|
|
@@ -2739,11 +2765,11 @@ class PreloadOptionalModules {
|
|
|
2739
2765
|
}
|
|
2740
2766
|
}
|
|
2741
2767
|
|
|
2742
|
-
const VERSION = new Version('16.
|
|
2768
|
+
const VERSION = new Version('16.2.1');
|
|
2743
2769
|
|
|
2744
2770
|
/**
|
|
2745
2771
|
* Generated bundle index. Do not edit.
|
|
2746
2772
|
*/
|
|
2747
2773
|
|
|
2748
|
-
export { ALAIN_I18N_TOKEN, ALAIN_SETTING_KEYS,
|
|
2774
|
+
export { ALAIN_I18N_TOKEN, ALAIN_SETTING_KEYS, AlainI18NGuardService, AlainI18NServiceFake, AlainI18nBaseService, AlainThemeModule, BaseApi, BaseHeaders, BaseUrl, Body, CUSTOM_ERROR, DELETE, DELON_LOCALE, DELON_LOCALE_SERVICE_PROVIDER, DELON_LOCALE_SERVICE_PROVIDER_FACTORY, DatePipe, DelonLocaleModule, DelonLocaleService, DrawerHelper, FORM, GET, HEAD, HTMLPipe, HTML_DIR, Headers, I18nPipe, IGNORE_BASE_URL, JSONP, KeysPipe, LTR, MenuService, ModalHelper, OPTIONS, PATCH, POST, PUT, Path, Payload, PreloadOptionalModules, Query, RAW_BODY, REP_MAX, RTL, RTLService, RTL_DELON_COMPONENTS, RTL_DIRECTION, RTL_NZ_COMPONENTS, ResponsiveService, SPAN_MAX, SettingsService, TitleService, URLPipe, VERSION, YNPipe, _HttpClient, alainI18nCanActivate, alainI18nCanActivateChild, elGR as el_GR, enUS as en_US, esES as es_ES, frFR as fr_FR, hrHR as hr_HR, itIT as it_IT, jaJP as ja_JP, koKR as ko_KR, plPL as pl_PL, preloaderFinished, slSI as sl_SI, trTR as tr_TR, zhCN as zh_CN, zhTW as zh_TW };
|
|
2749
2775
|
//# sourceMappingURL=theme.mjs.map
|