@delon/theme 16.2.0 → 16.3.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 +73 -1
- package/compact.min.css +1 -1
- package/dark.css +73 -1
- package/dark.min.css +1 -1
- package/default.css +73 -1
- package/default.min.css +1 -1
- package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +3 -3
- package/esm2022/layout-default/layout-header-item.component.mjs +6 -6
- package/esm2022/layout-default/layout-header.component.mjs +17 -21
- package/esm2022/layout-default/layout-nav.component.mjs +15 -15
- package/esm2022/layout-default/layout-top-menu-item.mjs +5 -5
- package/esm2022/layout-default/layout.component.mjs +21 -26
- package/esm2022/layout-default/layout.module.mjs +4 -4
- package/esm2022/layout-default/layout.service.mjs +3 -3
- package/esm2022/setting-drawer/setting-drawer-item.component.mjs +5 -5
- package/esm2022/setting-drawer/setting-drawer.component.mjs +9 -12
- package/esm2022/setting-drawer/setting-drawer.module.mjs +4 -4
- package/esm2022/src/locale/locale.module.mjs +4 -4
- package/esm2022/src/locale/locale.service.mjs +3 -3
- package/esm2022/src/pipes/date/date.pipe.mjs +6 -11
- package/esm2022/src/pipes/keys/keys.pipe.mjs +3 -3
- package/esm2022/src/pipes/safe/html.pipe.mjs +3 -3
- package/esm2022/src/pipes/safe/url.pipe.mjs +3 -3
- package/esm2022/src/pipes/yn/yn.pipe.mjs +25 -20
- package/esm2022/src/services/drawer/drawer.helper.mjs +32 -9
- package/esm2022/src/services/http/http.client.mjs +3 -3
- package/esm2022/src/services/http/http.decorator.mjs +4 -4
- package/esm2022/src/services/i18n/i18n-url.guard.mjs +3 -3
- package/esm2022/src/services/i18n/i18n.mjs +6 -6
- package/esm2022/src/services/i18n/i18n.pipe.mjs +3 -3
- package/esm2022/src/services/menu/menu.service.mjs +3 -3
- package/esm2022/src/services/modal/modal.helper.mjs +12 -9
- package/esm2022/src/services/responsive/responsive.mjs +3 -3
- package/esm2022/src/services/rtl/rtl.service.mjs +3 -3
- package/esm2022/src/services/settings/settings.service.mjs +3 -3
- package/esm2022/src/services/title/title.service.mjs +11 -12
- package/esm2022/src/theme.module.mjs +4 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/theme-btn/theme-btn.component.mjs +12 -12
- package/esm2022/theme-btn/theme-btn.module.mjs +4 -4
- package/fesm2022/layout-default.mjs +65 -75
- 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 +132 -107
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-default/layout-header.component.d.ts +2 -3
- package/layout-default/layout.component.d.ts +2 -4
- package/package.json +3 -3
- package/setting-drawer/setting-drawer.component.d.ts +3 -4
- package/src/pipes/yn/yn.pipe.d.ts +6 -0
- package/src/services/drawer/drawer.helper.d.ts +7 -2
- package/src/services/http/http.decorator.d.ts +2 -1
- package/src/services/modal/modal.helper.d.ts +2 -2
- 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';
|
|
@@ -17,8 +18,7 @@ import * as i2 from '@angular/cdk/drag-drop';
|
|
|
17
18
|
import * as i1$6 from 'ng-zorro-antd/drawer';
|
|
18
19
|
import * as i1$7 from '@angular/common/http';
|
|
19
20
|
import { HttpParams, HttpContextToken } from '@angular/common/http';
|
|
20
|
-
import {
|
|
21
|
-
import { toDate } from '@delon/util/date-time';
|
|
21
|
+
import { formatDate } from '@delon/util/date-time';
|
|
22
22
|
import * as i1$8 from 'ng-zorro-antd/i18n';
|
|
23
23
|
import { NzI18nModule } from 'ng-zorro-antd/i18n';
|
|
24
24
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
@@ -114,10 +114,10 @@ class AlainI18nBaseService {
|
|
|
114
114
|
}
|
|
115
115
|
return content;
|
|
116
116
|
}
|
|
117
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
118
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
117
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainI18nBaseService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
118
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainI18nBaseService }); }
|
|
119
119
|
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainI18nBaseService, decorators: [{
|
|
121
121
|
type: Injectable
|
|
122
122
|
}], ctorParameters: function () { return [{ type: i1.AlainConfigService }]; } });
|
|
123
123
|
class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
@@ -129,10 +129,10 @@ class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
|
129
129
|
getLangs() {
|
|
130
130
|
return [];
|
|
131
131
|
}
|
|
132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
133
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainI18NServiceFake, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
133
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainI18NServiceFake, providedIn: 'root' }); }
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainI18NServiceFake, decorators: [{
|
|
136
136
|
type: Injectable,
|
|
137
137
|
args: [{ providedIn: 'root' }]
|
|
138
138
|
}] });
|
|
@@ -418,10 +418,10 @@ class MenuService {
|
|
|
418
418
|
this._change$.unsubscribe();
|
|
419
419
|
this.i18n$.unsubscribe();
|
|
420
420
|
}
|
|
421
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
422
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
421
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: MenuService, deps: [{ token: ALAIN_I18N_TOKEN, optional: true }, { token: i1$1.ACLService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
422
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: MenuService, providedIn: 'root' }); }
|
|
423
423
|
}
|
|
424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: MenuService, decorators: [{
|
|
425
425
|
type: Injectable,
|
|
426
426
|
args: [{ providedIn: 'root' }]
|
|
427
427
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -518,10 +518,10 @@ class SettingsService {
|
|
|
518
518
|
getUser() {
|
|
519
519
|
return this._user;
|
|
520
520
|
}
|
|
521
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
522
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
521
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: SettingsService, deps: [{ token: i1$2.Platform }, { token: ALAIN_SETTING_KEYS }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
522
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: SettingsService, providedIn: 'root' }); }
|
|
523
523
|
}
|
|
524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: SettingsService, decorators: [{
|
|
525
525
|
type: Injectable,
|
|
526
526
|
args: [{ providedIn: 'root' }]
|
|
527
527
|
}], ctorParameters: function () { return [{ type: i1$2.Platform }, { type: undefined, decorators: [{
|
|
@@ -571,10 +571,10 @@ class ResponsiveService {
|
|
|
571
571
|
clsMap.push(`${antColClass}-xxl-${paddingSpan(rule.xxl)}`);
|
|
572
572
|
return clsMap;
|
|
573
573
|
}
|
|
574
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
575
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
574
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ResponsiveService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
575
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ResponsiveService, providedIn: 'root' }); }
|
|
576
576
|
}
|
|
577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ResponsiveService, decorators: [{
|
|
578
578
|
type: Injectable,
|
|
579
579
|
args: [{ providedIn: 'root' }]
|
|
580
580
|
}], ctorParameters: function () { return [{ type: i1.AlainConfigService }]; } });
|
|
@@ -660,10 +660,10 @@ class RTLService {
|
|
|
660
660
|
this.delon.set(name, { direction: this.dir });
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
664
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
663
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", 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 }); }
|
|
664
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: RTLService, providedIn: 'root' }); }
|
|
665
665
|
}
|
|
666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: RTLService, decorators: [{
|
|
667
667
|
type: Injectable,
|
|
668
668
|
args: [{ providedIn: 'root' }]
|
|
669
669
|
}], ctorParameters: function () { return [{ type: i1$3.Directionality }, { type: SettingsService }, { type: i3.NzConfigService }, { type: i1.AlainConfigService }, { type: i1$2.Platform }, { type: undefined, decorators: [{
|
|
@@ -678,11 +678,11 @@ class TitleService {
|
|
|
678
678
|
this.menuSrv = menuSrv;
|
|
679
679
|
this.i18nSrv = i18nSrv;
|
|
680
680
|
this.doc = doc;
|
|
681
|
+
this.destroy$ = inject(DestroyRef);
|
|
681
682
|
this._prefix = '';
|
|
682
683
|
this._suffix = '';
|
|
683
684
|
this._separator = ' - ';
|
|
684
685
|
this._reverse = false;
|
|
685
|
-
this.destroy$ = new Subject();
|
|
686
686
|
this.DELAY_TIME = 25;
|
|
687
687
|
/**
|
|
688
688
|
* Set default title name
|
|
@@ -690,7 +690,7 @@ class TitleService {
|
|
|
690
690
|
* 设置默认标题名
|
|
691
691
|
*/
|
|
692
692
|
this.default = `Not Page Name`;
|
|
693
|
-
|
|
693
|
+
i18nSrv.change.pipe(takeUntilDestroyed()).subscribe(() => this.setTitle());
|
|
694
694
|
}
|
|
695
695
|
/**
|
|
696
696
|
* Set separator
|
|
@@ -766,13 +766,13 @@ class TitleService {
|
|
|
766
766
|
setTitle(title) {
|
|
767
767
|
this.tit$?.unsubscribe();
|
|
768
768
|
this.tit$ = of(title)
|
|
769
|
-
.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)),
|
|
769
|
+
.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$))
|
|
770
770
|
.subscribe(titles => {
|
|
771
771
|
let newTitles = [];
|
|
772
772
|
if (this._prefix) {
|
|
773
773
|
newTitles.push(this._prefix);
|
|
774
774
|
}
|
|
775
|
-
newTitles.push(...titles);
|
|
775
|
+
newTitles.push(...titles.filter(title => !!title));
|
|
776
776
|
if (this._suffix) {
|
|
777
777
|
newTitles.push(this._suffix);
|
|
778
778
|
}
|
|
@@ -790,13 +790,11 @@ class TitleService {
|
|
|
790
790
|
}
|
|
791
791
|
ngOnDestroy() {
|
|
792
792
|
this.tit$?.unsubscribe();
|
|
793
|
-
this.destroy$.next();
|
|
794
|
-
this.destroy$.complete();
|
|
795
793
|
}
|
|
796
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
797
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
794
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", 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 }); }
|
|
795
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: TitleService, providedIn: 'root' }); }
|
|
798
796
|
}
|
|
799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: TitleService, decorators: [{
|
|
800
798
|
type: Injectable,
|
|
801
799
|
args: [{ providedIn: 'root' }]
|
|
802
800
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i1$4.Title }, { type: MenuService }, { type: undefined, decorators: [{
|
|
@@ -816,10 +814,10 @@ class I18nPipe {
|
|
|
816
814
|
transform(key, params) {
|
|
817
815
|
return this.i18n.fanyi(key, params);
|
|
818
816
|
}
|
|
819
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
820
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
|
817
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: I18nPipe, deps: [{ token: ALAIN_I18N_TOKEN }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
818
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: I18nPipe, name: "i18n" }); }
|
|
821
819
|
}
|
|
822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: I18nPipe, decorators: [{
|
|
823
821
|
type: Pipe,
|
|
824
822
|
args: [{ name: 'i18n' }]
|
|
825
823
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -839,10 +837,10 @@ class AlainI18NGuardService {
|
|
|
839
837
|
}
|
|
840
838
|
return of(true);
|
|
841
839
|
}
|
|
842
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
843
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
840
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainI18NGuardService, deps: [{ token: ALAIN_I18N_TOKEN, optional: true }, { token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
841
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainI18NGuardService, providedIn: 'root' }); }
|
|
844
842
|
}
|
|
845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainI18NGuardService, decorators: [{
|
|
846
844
|
type: Injectable,
|
|
847
845
|
args: [{ providedIn: 'root' }]
|
|
848
846
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -981,10 +979,10 @@ class DelonLocaleService {
|
|
|
981
979
|
getData(path) {
|
|
982
980
|
return (this._locale[path] || {});
|
|
983
981
|
}
|
|
984
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
985
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
982
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DelonLocaleService, deps: [{ token: DELON_LOCALE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
983
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DelonLocaleService }); }
|
|
986
984
|
}
|
|
987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DelonLocaleService, decorators: [{
|
|
988
986
|
type: Injectable
|
|
989
987
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
990
988
|
type: Inject,
|
|
@@ -1000,11 +998,11 @@ const DELON_LOCALE_SERVICE_PROVIDER = {
|
|
|
1000
998
|
};
|
|
1001
999
|
|
|
1002
1000
|
class DelonLocaleModule {
|
|
1003
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1004
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
1005
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
1001
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DelonLocaleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1002
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: DelonLocaleModule }); }
|
|
1003
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DelonLocaleModule, providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER] }); }
|
|
1006
1004
|
}
|
|
1007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DelonLocaleModule, decorators: [{
|
|
1008
1006
|
type: NgModule,
|
|
1009
1007
|
args: [{
|
|
1010
1008
|
providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER]
|
|
@@ -2023,9 +2021,12 @@ class ModalHelper {
|
|
|
2023
2021
|
if (typeof size === 'number') {
|
|
2024
2022
|
width = `${size}px`;
|
|
2025
2023
|
}
|
|
2026
|
-
else {
|
|
2024
|
+
else if (['sm', 'md', 'lg', 'xl'].includes(size)) {
|
|
2027
2025
|
cls = `modal-${size}`;
|
|
2028
2026
|
}
|
|
2027
|
+
else {
|
|
2028
|
+
width = size;
|
|
2029
|
+
}
|
|
2029
2030
|
}
|
|
2030
2031
|
if (includeTabs) {
|
|
2031
2032
|
cls += ' modal-include-tabs';
|
|
@@ -2044,14 +2045,14 @@ class ModalHelper {
|
|
|
2044
2045
|
};
|
|
2045
2046
|
cls += ` ${this.dragClsPrefix} ${dragWrapCls}`;
|
|
2046
2047
|
}
|
|
2047
|
-
const
|
|
2048
|
+
const subject = this.srv.create({
|
|
2048
2049
|
nzWrapClassName: cls,
|
|
2049
2050
|
nzContent: comp,
|
|
2050
2051
|
nzWidth: width ? width : undefined,
|
|
2051
2052
|
nzFooter: null,
|
|
2052
|
-
nzData: params
|
|
2053
|
-
|
|
2054
|
-
|
|
2053
|
+
nzData: params,
|
|
2054
|
+
...modalOptions
|
|
2055
|
+
});
|
|
2055
2056
|
// 保留 nzComponentParams 原有风格,但依然可以通过 @Inject(NZ_MODAL_DATA) 获取
|
|
2056
2057
|
if (useNzData !== true) {
|
|
2057
2058
|
Object.assign(subject.componentInstance, params);
|
|
@@ -2098,10 +2099,10 @@ class ModalHelper {
|
|
|
2098
2099
|
};
|
|
2099
2100
|
return this.create(comp, params, { ...options, modalOptions });
|
|
2100
2101
|
}
|
|
2101
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2102
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
2102
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ModalHelper, deps: [{ token: i1$5.NzModalService }, { token: i2.DragDrop }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2103
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ModalHelper, providedIn: 'root' }); }
|
|
2103
2104
|
}
|
|
2104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ModalHelper, decorators: [{
|
|
2105
2106
|
type: Injectable,
|
|
2106
2107
|
args: [{ providedIn: 'root' }]
|
|
2107
2108
|
}], ctorParameters: function () { return [{ type: i1$5.NzModalService }, { type: i2.DragDrop }, { type: undefined, decorators: [{
|
|
@@ -2125,8 +2126,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImpor
|
|
|
2125
2126
|
* this.NzDrawerRef.close(false);
|
|
2126
2127
|
*/
|
|
2127
2128
|
class DrawerHelper {
|
|
2128
|
-
|
|
2129
|
+
get openDrawers() {
|
|
2130
|
+
return this.parentDrawer ? this.parentDrawer.openDrawers : this.openDrawersAtThisLevel;
|
|
2131
|
+
}
|
|
2132
|
+
constructor(srv, parentDrawer) {
|
|
2129
2133
|
this.srv = srv;
|
|
2134
|
+
this.parentDrawer = parentDrawer;
|
|
2135
|
+
this.openDrawersAtThisLevel = [];
|
|
2130
2136
|
}
|
|
2131
2137
|
/**
|
|
2132
2138
|
* 构建一个抽屉
|
|
@@ -2162,8 +2168,9 @@ class DrawerHelper {
|
|
|
2162
2168
|
'padding-bottom.px': footerHeight + 24
|
|
2163
2169
|
};
|
|
2164
2170
|
}
|
|
2165
|
-
const
|
|
2166
|
-
|
|
2171
|
+
const ref = this.srv.create({ ...defaultOptions, ...drawerOptions });
|
|
2172
|
+
this.openDrawers.push(ref);
|
|
2173
|
+
const afterClose$ = ref.afterClose.subscribe((res) => {
|
|
2167
2174
|
if (options.exact === true) {
|
|
2168
2175
|
if (res != null) {
|
|
2169
2176
|
observer.next(res);
|
|
@@ -2174,9 +2181,22 @@ class DrawerHelper {
|
|
|
2174
2181
|
}
|
|
2175
2182
|
observer.complete();
|
|
2176
2183
|
afterClose$.unsubscribe();
|
|
2184
|
+
this.close(ref);
|
|
2177
2185
|
});
|
|
2178
2186
|
});
|
|
2179
2187
|
}
|
|
2188
|
+
close(ref) {
|
|
2189
|
+
const idx = this.openDrawers.indexOf(ref);
|
|
2190
|
+
if (idx === -1)
|
|
2191
|
+
return;
|
|
2192
|
+
this.openDrawers.splice(idx, 1);
|
|
2193
|
+
}
|
|
2194
|
+
closeAll() {
|
|
2195
|
+
let i = this.openDrawers.length;
|
|
2196
|
+
while (i--) {
|
|
2197
|
+
this.openDrawers[i].close();
|
|
2198
|
+
}
|
|
2199
|
+
}
|
|
2180
2200
|
/**
|
|
2181
2201
|
* 构建一个抽屉,点击蒙层不允许关闭
|
|
2182
2202
|
*/
|
|
@@ -2187,13 +2207,17 @@ class DrawerHelper {
|
|
|
2187
2207
|
};
|
|
2188
2208
|
return this.create(title, comp, params, { ...options, drawerOptions });
|
|
2189
2209
|
}
|
|
2190
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2191
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
2210
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DrawerHelper, deps: [{ token: i1$6.NzDrawerService }, { token: DrawerHelper, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2211
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DrawerHelper, providedIn: 'root' }); }
|
|
2192
2212
|
}
|
|
2193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DrawerHelper, decorators: [{
|
|
2194
2214
|
type: Injectable,
|
|
2195
2215
|
args: [{ providedIn: 'root' }]
|
|
2196
|
-
}], ctorParameters: function () { return [{ type: i1$6.NzDrawerService }
|
|
2216
|
+
}], ctorParameters: function () { return [{ type: i1$6.NzDrawerService }, { type: DrawerHelper, decorators: [{
|
|
2217
|
+
type: Optional
|
|
2218
|
+
}, {
|
|
2219
|
+
type: SkipSelf
|
|
2220
|
+
}] }]; } });
|
|
2197
2221
|
|
|
2198
2222
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2199
2223
|
/**
|
|
@@ -2334,10 +2358,10 @@ class _HttpClient {
|
|
|
2334
2358
|
// Make sure to always be asynchronous, see issues: https://github.com/ng-alain/ng-alain/issues/1954
|
|
2335
2359
|
delay(0), tap(() => this.push()), switchMap(() => this.http.request(method, url, options)), finalize(() => this.pop()));
|
|
2336
2360
|
}
|
|
2337
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2338
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
2361
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: _HttpClient, deps: [{ token: i1$7.HttpClient }, { token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2362
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: _HttpClient, providedIn: 'root' }); }
|
|
2339
2363
|
}
|
|
2340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: _HttpClient, decorators: [{
|
|
2341
2365
|
type: Injectable,
|
|
2342
2366
|
args: [{ providedIn: 'root' }]
|
|
2343
2367
|
}], ctorParameters: function () { return [{ type: i1$7.HttpClient }, { type: i1.AlainConfigService }]; } });
|
|
@@ -2353,10 +2377,10 @@ class BaseApi {
|
|
|
2353
2377
|
constructor(injector) {
|
|
2354
2378
|
this.injector = injector;
|
|
2355
2379
|
}
|
|
2356
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2357
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
2380
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: BaseApi, deps: [{ token: Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2381
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: BaseApi }); }
|
|
2358
2382
|
}
|
|
2359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: BaseApi, decorators: [{
|
|
2360
2384
|
type: Injectable
|
|
2361
2385
|
}], ctorParameters: function () { return [{ type: i0.Injector, decorators: [{
|
|
2362
2386
|
type: Inject,
|
|
@@ -2594,16 +2618,12 @@ class DatePipe {
|
|
|
2594
2618
|
this.nzI18n = nzI18n;
|
|
2595
2619
|
}
|
|
2596
2620
|
transform(value, formatString = 'yyyy-MM-dd HH:mm') {
|
|
2597
|
-
value
|
|
2598
|
-
if (isNaN(value))
|
|
2599
|
-
return '';
|
|
2600
|
-
const langOpt = { locale: this.nzI18n.getDateLocale() };
|
|
2601
|
-
return formatString === 'fn' ? formatDistanceToNow(value, langOpt) : format(value, formatString, langOpt);
|
|
2621
|
+
return formatDate(value, formatString, this.nzI18n.getDateLocale());
|
|
2602
2622
|
}
|
|
2603
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2604
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
|
2623
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DatePipe, deps: [{ token: i1$8.NzI18nService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2624
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: DatePipe, name: "_date" }); }
|
|
2605
2625
|
}
|
|
2606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: DatePipe, decorators: [{
|
|
2607
2627
|
type: Pipe,
|
|
2608
2628
|
args: [{ name: '_date' }]
|
|
2609
2629
|
}], ctorParameters: function () { return [{ type: i1$8.NzI18nService }]; } });
|
|
@@ -2619,10 +2639,10 @@ class KeysPipe {
|
|
|
2619
2639
|
});
|
|
2620
2640
|
return ret;
|
|
2621
2641
|
}
|
|
2622
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2623
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
|
2642
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2643
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: KeysPipe, name: "keys" }); }
|
|
2624
2644
|
}
|
|
2625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: KeysPipe, decorators: [{
|
|
2626
2646
|
type: Pipe,
|
|
2627
2647
|
args: [{ name: 'keys' }]
|
|
2628
2648
|
}] });
|
|
@@ -2631,33 +2651,38 @@ const ICON_YES = `<svg viewBox="64 64 896 896" fill="currentColor" width="1em" h
|
|
|
2631
2651
|
const ICON_NO = `<svg viewBox="64 64 896 896" fill="currentColor" width="1em" height="1em" aria-hidden="true"><path d="M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"></path></svg>`;
|
|
2632
2652
|
const CLS_YES = `class="yn__yes"`;
|
|
2633
2653
|
const CLS_NO = `class="yn__no"`;
|
|
2654
|
+
function yn(value, opt) {
|
|
2655
|
+
let html = '';
|
|
2656
|
+
let { yes, no, mode } = { ...opt };
|
|
2657
|
+
yes = yes || '是';
|
|
2658
|
+
no = no || '否';
|
|
2659
|
+
switch (mode) {
|
|
2660
|
+
case 'full':
|
|
2661
|
+
html = value
|
|
2662
|
+
? `<i ${CLS_YES}>${ICON_YES}<span>${yes}</span></i>`
|
|
2663
|
+
: `<i ${CLS_NO}>${ICON_NO}<span>${no}</span></i>`;
|
|
2664
|
+
break;
|
|
2665
|
+
case 'text':
|
|
2666
|
+
html = value ? `<i ${CLS_YES}>${yes}</i>` : `<i ${CLS_NO}>${no}</i>`;
|
|
2667
|
+
break;
|
|
2668
|
+
default:
|
|
2669
|
+
html = value ? `<i ${CLS_YES} title="${yes}">${ICON_YES}</i>` : `<i ${CLS_NO} title="${no}">${ICON_NO}</i>`;
|
|
2670
|
+
break;
|
|
2671
|
+
}
|
|
2672
|
+
return html;
|
|
2673
|
+
}
|
|
2634
2674
|
class YNPipe {
|
|
2635
2675
|
constructor(dom) {
|
|
2636
2676
|
this.dom = dom;
|
|
2637
2677
|
}
|
|
2638
2678
|
transform(value, yes, no, mode, isSafeHtml = true) {
|
|
2639
|
-
|
|
2640
|
-
yes = yes || '是';
|
|
2641
|
-
no = no || '否';
|
|
2642
|
-
switch (mode) {
|
|
2643
|
-
case 'full':
|
|
2644
|
-
html = value
|
|
2645
|
-
? `<i ${CLS_YES}>${ICON_YES}<span>${yes}</span></i>`
|
|
2646
|
-
: `<i ${CLS_NO}>${ICON_NO}<span>${no}</span></i>`;
|
|
2647
|
-
break;
|
|
2648
|
-
case 'text':
|
|
2649
|
-
html = value ? `<i ${CLS_YES}>${yes}</i>` : `<i ${CLS_NO}>${no}</i>`;
|
|
2650
|
-
break;
|
|
2651
|
-
default:
|
|
2652
|
-
html = value ? `<i ${CLS_YES} title="${yes}">${ICON_YES}</i>` : `<i ${CLS_NO} title="${no}">${ICON_NO}</i>`;
|
|
2653
|
-
break;
|
|
2654
|
-
}
|
|
2679
|
+
const html = yn(value, { yes, no, mode });
|
|
2655
2680
|
return isSafeHtml ? this.dom.bypassSecurityTrustHtml(html) : html;
|
|
2656
2681
|
}
|
|
2657
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2658
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
|
2682
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: YNPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2683
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: YNPipe, name: "yn" }); }
|
|
2659
2684
|
}
|
|
2660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2685
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: YNPipe, decorators: [{
|
|
2661
2686
|
type: Pipe,
|
|
2662
2687
|
args: [{ name: 'yn' }]
|
|
2663
2688
|
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
@@ -2669,10 +2694,10 @@ class HTMLPipe {
|
|
|
2669
2694
|
transform(html) {
|
|
2670
2695
|
return html ? this.dom.bypassSecurityTrustHtml(html) : '';
|
|
2671
2696
|
}
|
|
2672
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2673
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
|
2697
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: HTMLPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2698
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: HTMLPipe, name: "html" }); }
|
|
2674
2699
|
}
|
|
2675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2700
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: HTMLPipe, decorators: [{
|
|
2676
2701
|
type: Pipe,
|
|
2677
2702
|
args: [{ name: 'html' }]
|
|
2678
2703
|
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
@@ -2684,10 +2709,10 @@ class URLPipe {
|
|
|
2684
2709
|
transform(url) {
|
|
2685
2710
|
return url ? this.dom.bypassSecurityTrustUrl(url) : '';
|
|
2686
2711
|
}
|
|
2687
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2688
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.
|
|
2712
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: URLPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2713
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: URLPipe, name: "url" }); }
|
|
2689
2714
|
}
|
|
2690
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2715
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: URLPipe, decorators: [{
|
|
2691
2716
|
type: Pipe,
|
|
2692
2717
|
args: [{ name: 'url' }]
|
|
2693
2718
|
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
@@ -2714,9 +2739,9 @@ class AlainThemeModule {
|
|
|
2714
2739
|
providers: HELPERS
|
|
2715
2740
|
};
|
|
2716
2741
|
}
|
|
2717
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
2718
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
2719
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
2742
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainThemeModule, deps: [{ token: i1$9.NzIconService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2743
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: AlainThemeModule, declarations: [DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe], imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule], exports: [DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe, DelonLocaleModule] }); }
|
|
2744
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainThemeModule, providers: [
|
|
2720
2745
|
{
|
|
2721
2746
|
provide: ALAIN_SETTING_KEYS,
|
|
2722
2747
|
useValue: {
|
|
@@ -2727,7 +2752,7 @@ class AlainThemeModule {
|
|
|
2727
2752
|
}
|
|
2728
2753
|
], imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule, DelonLocaleModule] }); }
|
|
2729
2754
|
}
|
|
2730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
2755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: AlainThemeModule, decorators: [{
|
|
2731
2756
|
type: NgModule,
|
|
2732
2757
|
args: [{
|
|
2733
2758
|
imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule],
|
|
@@ -2766,11 +2791,11 @@ class PreloadOptionalModules {
|
|
|
2766
2791
|
}
|
|
2767
2792
|
}
|
|
2768
2793
|
|
|
2769
|
-
const VERSION = new Version('16.
|
|
2794
|
+
const VERSION = new Version('16.3.0');
|
|
2770
2795
|
|
|
2771
2796
|
/**
|
|
2772
2797
|
* Generated bundle index. Do not edit.
|
|
2773
2798
|
*/
|
|
2774
2799
|
|
|
2775
|
-
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 };
|
|
2800
|
+
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, yn, zhCN as zh_CN, zhTW as zh_TW };
|
|
2776
2801
|
//# sourceMappingURL=theme.mjs.map
|