@delon/theme 18.3.0 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compact.css +882 -63
- package/compact.min.css +1 -1
- package/dark.css +882 -63
- package/dark.min.css +1 -1
- package/default.css +882 -63
- package/default.min.css +1 -1
- package/fesm2022/layout-default.mjs +118 -119
- package/fesm2022/layout-default.mjs.map +1 -1
- package/fesm2022/setting-drawer.mjs +59 -94
- package/fesm2022/setting-drawer.mjs.map +1 -1
- package/fesm2022/theme-btn.mjs +27 -29
- package/fesm2022/theme-btn.mjs.map +1 -1
- package/fesm2022/theme.mjs +168 -163
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-default/layout.module.d.ts +2 -3
- package/layout-default/layout.service.d.ts +3 -0
- package/package.json +6 -16
- package/setting-drawer/setting-drawer-item.component.d.ts +1 -1
- package/setting-drawer/setting-drawer.component.d.ts +1 -1
- package/setting-drawer/setting-drawer.module.d.ts +1 -13
- package/src/services/menu/menu.service.d.ts +8 -0
- package/system/ng/_drag.less +9 -0
- package/system/ng/index.less +1 -0
- package/variable.css +882 -63
- package/variable.min.css +1 -1
- package/esm2022/layout-blank/layout-blank.mjs +0 -5
- package/esm2022/layout-blank/public_api.mjs +0 -3
- package/esm2022/layout-default/layout-default.mjs +0 -5
- package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +0 -16
- package/esm2022/layout-default/layout-header-item.component.mjs +0 -33
- package/esm2022/layout-default/layout-header.component.mjs +0 -138
- package/esm2022/layout-default/layout-nav.component.mjs +0 -280
- package/esm2022/layout-default/layout-top-menu-item.mjs +0 -33
- package/esm2022/layout-default/layout.component.mjs +0 -196
- package/esm2022/layout-default/layout.module.mjs +0 -71
- package/esm2022/layout-default/layout.service.mjs +0 -65
- package/esm2022/layout-default/public_api.mjs +0 -10
- package/esm2022/layout-default/types.mjs +0 -2
- package/esm2022/public_api.mjs +0 -9
- package/esm2022/setting-drawer/public_api.mjs +0 -4
- package/esm2022/setting-drawer/setting-drawer-item.component.mjs +0 -34
- package/esm2022/setting-drawer/setting-drawer.component.mjs +0 -183
- package/esm2022/setting-drawer/setting-drawer.mjs +0 -5
- package/esm2022/setting-drawer/setting-drawer.module.mjs +0 -66
- package/esm2022/setting-drawer/setting-drawer.types.mjs +0 -193
- package/esm2022/src/config.mjs +0 -2
- package/esm2022/src/locale/index.mjs +0 -2
- package/esm2022/src/locale/languages/ar-SA.mjs +0 -83
- package/esm2022/src/locale/languages/el-GR.mjs +0 -83
- package/esm2022/src/locale/languages/en-US.mjs +0 -83
- package/esm2022/src/locale/languages/es-ES.mjs +0 -83
- package/esm2022/src/locale/languages/fr-FR.mjs +0 -83
- package/esm2022/src/locale/languages/hr-HR.mjs +0 -47
- package/esm2022/src/locale/languages/it-IT.mjs +0 -83
- package/esm2022/src/locale/languages/ja-JP.mjs +0 -83
- package/esm2022/src/locale/languages/ko-KR.mjs +0 -83
- package/esm2022/src/locale/languages/pl-PL.mjs +0 -83
- package/esm2022/src/locale/languages/sl-SI.mjs +0 -82
- package/esm2022/src/locale/languages/tr-TR.mjs +0 -83
- package/esm2022/src/locale/languages/vi-VI.mjs +0 -83
- package/esm2022/src/locale/languages/zh-CN.mjs +0 -83
- package/esm2022/src/locale/languages/zh-TW.mjs +0 -83
- package/esm2022/src/locale/locale.module.mjs +0 -17
- package/esm2022/src/locale/locale.service.mjs +0 -45
- package/esm2022/src/locale/locale.tokens.mjs +0 -3
- package/esm2022/src/locale/locale.types.mjs +0 -2
- package/esm2022/src/locale/public_api.mjs +0 -20
- package/esm2022/src/pipes/date/date.pipe.mjs +0 -25
- package/esm2022/src/pipes/index.mjs +0 -6
- package/esm2022/src/pipes/keys/keys.pipe.mjs +0 -21
- package/esm2022/src/pipes/safe/html.pipe.mjs +0 -18
- package/esm2022/src/pipes/safe/url.pipe.mjs +0 -18
- package/esm2022/src/pipes/yn/yn.pipe.mjs +0 -43
- package/esm2022/src/provide.mjs +0 -51
- package/esm2022/src/router/optional-preloader.mjs +0 -21
- package/esm2022/src/services/drawer/drawer.helper.mjs +0 -110
- package/esm2022/src/services/http/http.client.mjs +0 -154
- package/esm2022/src/services/http/http.decorator.mjs +0 -212
- package/esm2022/src/services/http/http.token.mjs +0 -38
- package/esm2022/src/services/http/index.mjs +0 -4
- package/esm2022/src/services/i18n/i18n-url.guard.mjs +0 -51
- package/esm2022/src/services/i18n/i18n.mjs +0 -100
- package/esm2022/src/services/i18n/i18n.pipe.mjs +0 -18
- package/esm2022/src/services/i18n/index.mjs +0 -4
- package/esm2022/src/services/index.mjs +0 -11
- package/esm2022/src/services/menu/index.mjs +0 -3
- package/esm2022/src/services/menu/interface.mjs +0 -2
- package/esm2022/src/services/menu/menu.service.mjs +0 -297
- package/esm2022/src/services/modal/modal.helper.mjs +0 -167
- package/esm2022/src/services/preloader/preloader.mjs +0 -27
- package/esm2022/src/services/responsive/responsive.mjs +0 -53
- package/esm2022/src/services/rtl/rtl.service.mjs +0 -98
- package/esm2022/src/services/settings/index.mjs +0 -3
- package/esm2022/src/services/settings/settings.service.mjs +0 -105
- package/esm2022/src/services/settings/types.mjs +0 -2
- package/esm2022/src/services/title/title.service.mjs +0 -137
- package/esm2022/src/theme.module.mjs +0 -57
- package/esm2022/src/version.mjs +0 -3
- package/esm2022/theme-btn/public_api.mjs +0 -3
- package/esm2022/theme-btn/theme-btn.component.mjs +0 -100
- package/esm2022/theme-btn/theme-btn.mjs +0 -5
- package/esm2022/theme-btn/theme-btn.module.mjs +0 -20
- package/esm2022/theme.mjs +0 -5
package/fesm2022/theme.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DOCUMENT, isPlatformServer, CommonModule, registerLocaleData } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, PLATFORM_ID, InjectionToken, Injectable, DestroyRef, Injector, Pipe, Inject, Optional, SkipSelf, NgModule, importProvidersFrom, LOCALE_ID,
|
|
4
|
-
import {
|
|
3
|
+
import { inject, PLATFORM_ID, InjectionToken, Injectable, DestroyRef, Injector, Pipe, Inject, Optional, SkipSelf, NgModule, importProvidersFrom, LOCALE_ID, provideEnvironmentInitializer, makeEnvironmentProviders, Version } from '@angular/core';
|
|
4
|
+
import { BehaviorSubject, filter, share, Subject, map, of, delay, isObservable, switchMap, Observable, take, tap, finalize, throwError, catchError } from 'rxjs';
|
|
5
5
|
import { ACLService } from '@delon/acl';
|
|
6
6
|
import * as i1 from '@delon/util/config';
|
|
7
7
|
import { AlainConfigService, ALAIN_CONFIG } from '@delon/util/config';
|
|
@@ -53,6 +53,11 @@ const ALAIN_I18N_TOKEN = new InjectionToken('alainI18nToken', {
|
|
|
53
53
|
factory: () => new AlainI18NServiceFake(inject(AlainConfigService))
|
|
54
54
|
});
|
|
55
55
|
class AlainI18nBaseService {
|
|
56
|
+
cog;
|
|
57
|
+
_change$ = new BehaviorSubject(null);
|
|
58
|
+
_currentLang = '';
|
|
59
|
+
_defaultLang = '';
|
|
60
|
+
_data = {};
|
|
56
61
|
get change() {
|
|
57
62
|
return this._change$.asObservable().pipe(filter(w => w != null));
|
|
58
63
|
}
|
|
@@ -66,10 +71,6 @@ class AlainI18nBaseService {
|
|
|
66
71
|
return this._data;
|
|
67
72
|
}
|
|
68
73
|
constructor(cogSrv) {
|
|
69
|
-
this._change$ = new BehaviorSubject(null);
|
|
70
|
-
this._currentLang = '';
|
|
71
|
-
this._defaultLang = '';
|
|
72
|
-
this._data = {};
|
|
73
74
|
this.cog = cogSrv.merge('themeI18n', {
|
|
74
75
|
interpolation: ['{{', '}}']
|
|
75
76
|
});
|
|
@@ -120,10 +121,10 @@ class AlainI18nBaseService {
|
|
|
120
121
|
(Array.isArray(params) ? params : [params]).forEach((item, index) => (content = content.replace(new RegExp(`\\{\\s?${index}\\s?\\}`, 'g'), `${item}`)));
|
|
121
122
|
return content;
|
|
122
123
|
}
|
|
123
|
-
static
|
|
124
|
-
static
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainI18nBaseService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
125
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainI18nBaseService });
|
|
125
126
|
}
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainI18nBaseService, decorators: [{
|
|
127
128
|
type: Injectable
|
|
128
129
|
}], ctorParameters: () => [{ type: i1.AlainConfigService }] });
|
|
129
130
|
class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
@@ -135,10 +136,10 @@ class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
|
135
136
|
getLangs() {
|
|
136
137
|
return [];
|
|
137
138
|
}
|
|
138
|
-
static
|
|
139
|
-
static
|
|
139
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainI18NServiceFake, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
140
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainI18NServiceFake, providedIn: 'root' });
|
|
140
141
|
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainI18NServiceFake, decorators: [{
|
|
142
143
|
type: Injectable,
|
|
143
144
|
args: [{ providedIn: 'root' }]
|
|
144
145
|
}] });
|
|
@@ -147,15 +148,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
|
|
|
147
148
|
* 菜单服务,[在线文档](https://ng-alain.com/theme/menu)
|
|
148
149
|
*/
|
|
149
150
|
class MenuService {
|
|
151
|
+
i18nSrv = inject(ALAIN_I18N_TOKEN);
|
|
152
|
+
aclService = inject(ACLService);
|
|
153
|
+
_change$ = new BehaviorSubject([]);
|
|
154
|
+
i18n$;
|
|
155
|
+
data = [];
|
|
156
|
+
/**
|
|
157
|
+
* 是否完全受控菜单打开状态,默认:`false`
|
|
158
|
+
*/
|
|
159
|
+
openStrictly = false;
|
|
150
160
|
constructor() {
|
|
151
|
-
this.i18nSrv = inject(ALAIN_I18N_TOKEN);
|
|
152
|
-
this.aclService = inject(ACLService);
|
|
153
|
-
this._change$ = new BehaviorSubject([]);
|
|
154
|
-
this.data = [];
|
|
155
|
-
/**
|
|
156
|
-
* 是否完全受控菜单打开状态,默认:`false`
|
|
157
|
-
*/
|
|
158
|
-
this.openStrictly = false;
|
|
159
161
|
this.i18n$ = this.i18nSrv.change.subscribe(() => this.resume());
|
|
160
162
|
}
|
|
161
163
|
get change() {
|
|
@@ -164,6 +166,23 @@ class MenuService {
|
|
|
164
166
|
get menus() {
|
|
165
167
|
return this.data;
|
|
166
168
|
}
|
|
169
|
+
/**
|
|
170
|
+
* Returns a default menu link
|
|
171
|
+
*
|
|
172
|
+
* 返回一个默认跳转的菜单链接
|
|
173
|
+
*/
|
|
174
|
+
getDefaultRedirect(opt = {}) {
|
|
175
|
+
let ret;
|
|
176
|
+
this.visit(this.menus, (item) => {
|
|
177
|
+
if (typeof item.link !== 'string' || item.link.length <= 0 || !item._aclResult || item._hidden === true) {
|
|
178
|
+
return;
|
|
179
|
+
}
|
|
180
|
+
if (ret == null || ret.length <= 0 || item.link == opt?.redirectUrl) {
|
|
181
|
+
ret = item.link;
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
return ret;
|
|
185
|
+
}
|
|
167
186
|
visit(data, callback) {
|
|
168
187
|
const inFn = (list, parentMenu, depth) => {
|
|
169
188
|
for (const item of list) {
|
|
@@ -427,10 +446,10 @@ class MenuService {
|
|
|
427
446
|
this._change$.unsubscribe();
|
|
428
447
|
this.i18n$?.unsubscribe();
|
|
429
448
|
}
|
|
430
|
-
static
|
|
431
|
-
static
|
|
449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: MenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
450
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: MenuService, providedIn: 'root' });
|
|
432
451
|
}
|
|
433
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: MenuService, decorators: [{
|
|
434
453
|
type: Injectable,
|
|
435
454
|
args: [{ providedIn: 'root' }]
|
|
436
455
|
}], ctorParameters: () => [] });
|
|
@@ -445,14 +464,12 @@ const ALAIN_SETTING_DEFAULT = {
|
|
|
445
464
|
}
|
|
446
465
|
};
|
|
447
466
|
class SettingsService {
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
this._layout = null;
|
|
455
|
-
}
|
|
467
|
+
KEYS = inject(ALAIN_SETTING_KEYS);
|
|
468
|
+
platform = inject(Platform);
|
|
469
|
+
notify$ = new Subject();
|
|
470
|
+
_app = null;
|
|
471
|
+
_user = null;
|
|
472
|
+
_layout = null;
|
|
456
473
|
getData(key) {
|
|
457
474
|
if (!this.platform.isBrowser) {
|
|
458
475
|
return null;
|
|
@@ -528,10 +545,10 @@ class SettingsService {
|
|
|
528
545
|
getUser() {
|
|
529
546
|
return this._user;
|
|
530
547
|
}
|
|
531
|
-
static
|
|
532
|
-
static
|
|
548
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: SettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
549
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: SettingsService, providedIn: 'root' });
|
|
533
550
|
}
|
|
534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: SettingsService, decorators: [{
|
|
535
552
|
type: Injectable,
|
|
536
553
|
args: [{ providedIn: 'root' }]
|
|
537
554
|
}] });
|
|
@@ -539,6 +556,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
|
|
|
539
556
|
const REP_MAX = 6;
|
|
540
557
|
const SPAN_MAX = 24;
|
|
541
558
|
class ResponsiveService {
|
|
559
|
+
cog;
|
|
542
560
|
constructor(cogSrv) {
|
|
543
561
|
this.cog = cogSrv.merge('themeResponsive', {
|
|
544
562
|
rules: {
|
|
@@ -578,10 +596,10 @@ class ResponsiveService {
|
|
|
578
596
|
clsMap.push(`${antColClass}-xxl-${paddingSpan(rule.xxl)}`);
|
|
579
597
|
return clsMap;
|
|
580
598
|
}
|
|
581
|
-
static
|
|
582
|
-
static
|
|
599
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ResponsiveService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
600
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ResponsiveService, providedIn: 'root' });
|
|
583
601
|
}
|
|
584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ResponsiveService, decorators: [{
|
|
585
603
|
type: Injectable,
|
|
586
604
|
args: [{ providedIn: 'root' }]
|
|
587
605
|
}], ctorParameters: () => [{ type: i1.AlainConfigService }] });
|
|
@@ -593,6 +611,13 @@ const RTL_DELON_COMPONENTS = ['loading', 'onboarding'];
|
|
|
593
611
|
const LTR = 'ltr';
|
|
594
612
|
const RTL = 'rtl';
|
|
595
613
|
class RTLService {
|
|
614
|
+
d = inject(Directionality);
|
|
615
|
+
nz = inject(NzConfigService);
|
|
616
|
+
delon = inject(AlainConfigService);
|
|
617
|
+
platform = inject(Platform);
|
|
618
|
+
doc = inject(DOCUMENT);
|
|
619
|
+
srv = inject(SettingsService);
|
|
620
|
+
_dir = LTR;
|
|
596
621
|
/**
|
|
597
622
|
* Get or Set the current text direction
|
|
598
623
|
*
|
|
@@ -629,13 +654,6 @@ class RTLService {
|
|
|
629
654
|
return this.srv.notify.pipe(filter(w => w.name === RTL_DIRECTION), map(v => v.value));
|
|
630
655
|
}
|
|
631
656
|
constructor() {
|
|
632
|
-
this.d = inject(Directionality);
|
|
633
|
-
this.nz = inject(NzConfigService);
|
|
634
|
-
this.delon = inject(AlainConfigService);
|
|
635
|
-
this.platform = inject(Platform);
|
|
636
|
-
this.doc = inject(DOCUMENT);
|
|
637
|
-
this.srv = inject(SettingsService);
|
|
638
|
-
this._dir = LTR;
|
|
639
657
|
this.dir = this.srv.layout.direction === RTL ? RTL : LTR;
|
|
640
658
|
}
|
|
641
659
|
/**
|
|
@@ -667,33 +685,28 @@ class RTLService {
|
|
|
667
685
|
this.delon.set(name, { direction: this.dir });
|
|
668
686
|
});
|
|
669
687
|
}
|
|
670
|
-
static
|
|
671
|
-
static
|
|
688
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: RTLService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
689
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: RTLService, providedIn: 'root' });
|
|
672
690
|
}
|
|
673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: RTLService, decorators: [{
|
|
674
692
|
type: Injectable,
|
|
675
693
|
args: [{ providedIn: 'root' }]
|
|
676
694
|
}], ctorParameters: () => [] });
|
|
677
695
|
|
|
678
696
|
class TitleService {
|
|
697
|
+
destroy$ = inject(DestroyRef);
|
|
698
|
+
_prefix = '';
|
|
699
|
+
_suffix = '';
|
|
700
|
+
_separator = ' - ';
|
|
701
|
+
_reverse = false;
|
|
702
|
+
tit$;
|
|
703
|
+
DELAY_TIME = 25;
|
|
704
|
+
doc = inject(DOCUMENT);
|
|
705
|
+
injector = inject(Injector);
|
|
706
|
+
title = inject(Title);
|
|
707
|
+
menuSrv = inject(MenuService);
|
|
708
|
+
i18nSrv = inject(ALAIN_I18N_TOKEN);
|
|
679
709
|
constructor() {
|
|
680
|
-
this.destroy$ = inject(DestroyRef);
|
|
681
|
-
this._prefix = '';
|
|
682
|
-
this._suffix = '';
|
|
683
|
-
this._separator = ' - ';
|
|
684
|
-
this._reverse = false;
|
|
685
|
-
this.DELAY_TIME = 25;
|
|
686
|
-
this.doc = inject(DOCUMENT);
|
|
687
|
-
this.injector = inject(Injector);
|
|
688
|
-
this.title = inject(Title);
|
|
689
|
-
this.menuSrv = inject(MenuService);
|
|
690
|
-
this.i18nSrv = inject(ALAIN_I18N_TOKEN);
|
|
691
|
-
/**
|
|
692
|
-
* Set default title name
|
|
693
|
-
*
|
|
694
|
-
* 设置默认标题名
|
|
695
|
-
*/
|
|
696
|
-
this.default = `Not Page Name`;
|
|
697
710
|
this.i18nSrv.change.pipe(takeUntilDestroyed()).subscribe(() => this.setTitle());
|
|
698
711
|
}
|
|
699
712
|
/**
|
|
@@ -728,6 +741,18 @@ class TitleService {
|
|
|
728
741
|
set reverse(value) {
|
|
729
742
|
this._reverse = value;
|
|
730
743
|
}
|
|
744
|
+
/**
|
|
745
|
+
* Set the default CSS selector string
|
|
746
|
+
*
|
|
747
|
+
* 设置默认CSS选择器字符串
|
|
748
|
+
*/
|
|
749
|
+
selector;
|
|
750
|
+
/**
|
|
751
|
+
* Set default title name
|
|
752
|
+
*
|
|
753
|
+
* 设置默认标题名
|
|
754
|
+
*/
|
|
755
|
+
default = `Not Page Name`;
|
|
731
756
|
getByElement() {
|
|
732
757
|
return of('').pipe(delay(this.DELAY_TIME), map(() => {
|
|
733
758
|
const el = ((this.selector != null ? this.doc.querySelector(this.selector) : null) ||
|
|
@@ -795,34 +820,30 @@ class TitleService {
|
|
|
795
820
|
ngOnDestroy() {
|
|
796
821
|
this.tit$?.unsubscribe();
|
|
797
822
|
}
|
|
798
|
-
static
|
|
799
|
-
static
|
|
823
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: TitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
824
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: TitleService, providedIn: 'root' });
|
|
800
825
|
}
|
|
801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: TitleService, decorators: [{
|
|
802
827
|
type: Injectable,
|
|
803
828
|
args: [{ providedIn: 'root' }]
|
|
804
829
|
}], ctorParameters: () => [] });
|
|
805
830
|
|
|
806
831
|
class I18nPipe {
|
|
807
|
-
|
|
808
|
-
this.i18n = inject(ALAIN_I18N_TOKEN);
|
|
809
|
-
}
|
|
832
|
+
i18n = inject(ALAIN_I18N_TOKEN);
|
|
810
833
|
transform(key, params) {
|
|
811
834
|
return this.i18n.fanyi(key, params);
|
|
812
835
|
}
|
|
813
|
-
static
|
|
814
|
-
static
|
|
836
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: I18nPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
837
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: I18nPipe, isStandalone: true, name: "i18n" });
|
|
815
838
|
}
|
|
816
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: I18nPipe, decorators: [{
|
|
817
840
|
type: Pipe,
|
|
818
|
-
args: [{ name: 'i18n'
|
|
841
|
+
args: [{ name: 'i18n' }]
|
|
819
842
|
}] });
|
|
820
843
|
|
|
821
844
|
class AlainI18NGuardService {
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
this.cogSrv = inject(AlainConfigService);
|
|
825
|
-
}
|
|
845
|
+
i18nSrv = inject(ALAIN_I18N_TOKEN, { optional: true });
|
|
846
|
+
cogSrv = inject(AlainConfigService);
|
|
826
847
|
process(route) {
|
|
827
848
|
const lang = route.params && route.params[this.cogSrv.get('themeI18n')?.paramNameOfUrlGuard ?? 'i18n'];
|
|
828
849
|
if (lang != null) {
|
|
@@ -830,10 +851,10 @@ class AlainI18NGuardService {
|
|
|
830
851
|
}
|
|
831
852
|
return of(true);
|
|
832
853
|
}
|
|
833
|
-
static
|
|
834
|
-
static
|
|
854
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainI18NGuardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
855
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainI18NGuardService, providedIn: 'root' });
|
|
835
856
|
}
|
|
836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainI18NGuardService, decorators: [{
|
|
837
858
|
type: Injectable,
|
|
838
859
|
args: [{ providedIn: 'root' }]
|
|
839
860
|
}] });
|
|
@@ -869,11 +890,9 @@ const CLS_DRAG = 'MODAL-DRAG';
|
|
|
869
890
|
* 对话框辅助类
|
|
870
891
|
*/
|
|
871
892
|
class ModalHelper {
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
this.doc = inject(DOCUMENT);
|
|
876
|
-
}
|
|
893
|
+
srv = inject(NzModalService);
|
|
894
|
+
drag = inject(DragDrop);
|
|
895
|
+
doc = inject(DOCUMENT);
|
|
877
896
|
createDragRef(options, wrapCls) {
|
|
878
897
|
const wrapEl = this.doc.querySelector(wrapCls);
|
|
879
898
|
const modalEl = wrapEl.firstChild;
|
|
@@ -949,6 +968,7 @@ class ModalHelper {
|
|
|
949
968
|
nzWidth: width ? width : undefined,
|
|
950
969
|
nzFooter: null,
|
|
951
970
|
nzData: params,
|
|
971
|
+
nzDraggable: false,
|
|
952
972
|
...modalOptions
|
|
953
973
|
});
|
|
954
974
|
// 保留 nzComponentParams 原有风格,但依然可以通过 @Inject(NZ_MODAL_DATA) 获取
|
|
@@ -1016,10 +1036,10 @@ class ModalHelper {
|
|
|
1016
1036
|
};
|
|
1017
1037
|
return this.create(comp, params, { ...options, modalOptions });
|
|
1018
1038
|
}
|
|
1019
|
-
static
|
|
1020
|
-
static
|
|
1039
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ModalHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1040
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ModalHelper, providedIn: 'root' });
|
|
1021
1041
|
}
|
|
1022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: ModalHelper, decorators: [{
|
|
1023
1043
|
type: Injectable,
|
|
1024
1044
|
args: [{ providedIn: 'root' }]
|
|
1025
1045
|
}] });
|
|
@@ -1040,11 +1060,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
|
|
|
1040
1060
|
* this.NzDrawerRef.close(false);
|
|
1041
1061
|
*/
|
|
1042
1062
|
class DrawerHelper {
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
this.openDrawersAtThisLevel = [];
|
|
1047
|
-
}
|
|
1063
|
+
srv = inject(NzDrawerService);
|
|
1064
|
+
parentDrawer = inject(DrawerHelper, { optional: true, skipSelf: true });
|
|
1065
|
+
openDrawersAtThisLevel = [];
|
|
1048
1066
|
get openDrawers() {
|
|
1049
1067
|
return this.parentDrawer ? this.parentDrawer.openDrawers : this.openDrawersAtThisLevel;
|
|
1050
1068
|
}
|
|
@@ -1079,7 +1097,7 @@ class DrawerHelper {
|
|
|
1079
1097
|
if (footer) {
|
|
1080
1098
|
// The 24 value is @drawer-body-padding
|
|
1081
1099
|
defaultOptions.nzBodyStyle = {
|
|
1082
|
-
'padding-bottom
|
|
1100
|
+
'padding-bottom': `${footerHeight + 24}px`
|
|
1083
1101
|
};
|
|
1084
1102
|
}
|
|
1085
1103
|
const ref = this.srv.create({ ...defaultOptions, ...drawerOptions });
|
|
@@ -1121,10 +1139,10 @@ class DrawerHelper {
|
|
|
1121
1139
|
};
|
|
1122
1140
|
return this.create(title, comp, params, { ...options, drawerOptions });
|
|
1123
1141
|
}
|
|
1124
|
-
static
|
|
1125
|
-
static
|
|
1142
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DrawerHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1143
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DrawerHelper, providedIn: 'root' });
|
|
1126
1144
|
}
|
|
1127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DrawerHelper, decorators: [{
|
|
1128
1146
|
type: Injectable,
|
|
1129
1147
|
args: [{ providedIn: 'root' }]
|
|
1130
1148
|
}] });
|
|
@@ -1137,14 +1155,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
|
|
|
1137
1155
|
* + 统一处理时间格式问题
|
|
1138
1156
|
*/
|
|
1139
1157
|
class _HttpClient {
|
|
1158
|
+
http = inject(HttpClient);
|
|
1159
|
+
cog;
|
|
1140
1160
|
constructor(cogSrv) {
|
|
1141
|
-
this.http = inject(HttpClient);
|
|
1142
|
-
this.lc = 0;
|
|
1143
1161
|
this.cog = cogSrv.merge('themeHttp', {
|
|
1144
1162
|
nullValueHandling: 'include',
|
|
1145
1163
|
dateValueHandling: 'timestamp'
|
|
1146
1164
|
});
|
|
1147
1165
|
}
|
|
1166
|
+
lc = 0;
|
|
1148
1167
|
/**
|
|
1149
1168
|
* Get whether it's loading
|
|
1150
1169
|
*
|
|
@@ -1270,10 +1289,10 @@ class _HttpClient {
|
|
|
1270
1289
|
// Make sure to always be asynchronous, see issues: https://github.com/ng-alain/ng-alain/issues/1954
|
|
1271
1290
|
delay(0), tap(() => this.push()), switchMap(() => this.http.request(method, url, options)), finalize(() => this.pop()));
|
|
1272
1291
|
}
|
|
1273
|
-
static
|
|
1274
|
-
static
|
|
1292
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: _HttpClient, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1293
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: _HttpClient, providedIn: 'root' });
|
|
1275
1294
|
}
|
|
1276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: _HttpClient, decorators: [{
|
|
1277
1296
|
type: Injectable,
|
|
1278
1297
|
args: [{ providedIn: 'root' }]
|
|
1279
1298
|
}], ctorParameters: () => [{ type: i1.AlainConfigService }] });
|
|
@@ -1286,13 +1305,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImpor
|
|
|
1286
1305
|
* ```
|
|
1287
1306
|
*/
|
|
1288
1307
|
class BaseApi {
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
}
|
|
1292
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseApi, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1293
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseApi }); }
|
|
1308
|
+
injector = inject(Injector);
|
|
1309
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: BaseApi, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1310
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: BaseApi });
|
|
1294
1311
|
}
|
|
1295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: BaseApi, decorators: [{
|
|
1296
1313
|
type: Injectable
|
|
1297
1314
|
}] });
|
|
1298
1315
|
const paramKey = `__api_params`;
|
|
@@ -1608,9 +1625,9 @@ var zhCN = {
|
|
|
1608
1625
|
};
|
|
1609
1626
|
|
|
1610
1627
|
class DelonLocaleService {
|
|
1628
|
+
_locale = zhCN;
|
|
1629
|
+
change$ = new BehaviorSubject(this._locale);
|
|
1611
1630
|
constructor(locale) {
|
|
1612
|
-
this._locale = zhCN;
|
|
1613
|
-
this.change$ = new BehaviorSubject(this._locale);
|
|
1614
1631
|
this.setLocale(locale || zhCN);
|
|
1615
1632
|
}
|
|
1616
1633
|
get change() {
|
|
@@ -1629,10 +1646,10 @@ class DelonLocaleService {
|
|
|
1629
1646
|
getData(path) {
|
|
1630
1647
|
return (this._locale[path] || {});
|
|
1631
1648
|
}
|
|
1632
|
-
static
|
|
1633
|
-
static
|
|
1649
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DelonLocaleService, deps: [{ token: DELON_LOCALE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1650
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DelonLocaleService });
|
|
1634
1651
|
}
|
|
1635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DelonLocaleService, decorators: [{
|
|
1636
1653
|
type: Injectable
|
|
1637
1654
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1638
1655
|
type: Inject,
|
|
@@ -1648,11 +1665,11 @@ const DELON_LOCALE_SERVICE_PROVIDER = {
|
|
|
1648
1665
|
};
|
|
1649
1666
|
|
|
1650
1667
|
class DelonLocaleModule {
|
|
1651
|
-
static
|
|
1652
|
-
static
|
|
1653
|
-
static
|
|
1668
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DelonLocaleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1669
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: DelonLocaleModule });
|
|
1670
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DelonLocaleModule, providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER] });
|
|
1654
1671
|
}
|
|
1655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DelonLocaleModule, decorators: [{
|
|
1656
1673
|
type: NgModule,
|
|
1657
1674
|
args: [{
|
|
1658
1675
|
providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER]
|
|
@@ -2785,10 +2802,8 @@ var arSA = {
|
|
|
2785
2802
|
};
|
|
2786
2803
|
|
|
2787
2804
|
class DatePipe {
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
this.cog = inject(AlainConfigService).get('themePipe');
|
|
2791
|
-
}
|
|
2805
|
+
nzI18n = inject(NzI18nService);
|
|
2806
|
+
cog = inject(AlainConfigService).get('themePipe');
|
|
2792
2807
|
transform(value, formatString) {
|
|
2793
2808
|
const formatStr = formatString ?? this.cog?.dateFormat ?? 'yyyy-MM-dd HH:mm';
|
|
2794
2809
|
return formatDate(value, formatStr, {
|
|
@@ -2796,12 +2811,12 @@ class DatePipe {
|
|
|
2796
2811
|
customFormat: this.cog?.dateFormatCustom
|
|
2797
2812
|
});
|
|
2798
2813
|
}
|
|
2799
|
-
static
|
|
2800
|
-
static
|
|
2814
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2815
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: DatePipe, isStandalone: true, name: "_date" });
|
|
2801
2816
|
}
|
|
2802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: DatePipe, decorators: [{
|
|
2803
2818
|
type: Pipe,
|
|
2804
|
-
args: [{ name: '_date'
|
|
2819
|
+
args: [{ name: '_date' }]
|
|
2805
2820
|
}] });
|
|
2806
2821
|
|
|
2807
2822
|
/**
|
|
@@ -2815,12 +2830,12 @@ class KeysPipe {
|
|
|
2815
2830
|
});
|
|
2816
2831
|
return ret;
|
|
2817
2832
|
}
|
|
2818
|
-
static
|
|
2819
|
-
static
|
|
2833
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2834
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: KeysPipe, isStandalone: true, name: "keys" });
|
|
2820
2835
|
}
|
|
2821
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: KeysPipe, decorators: [{
|
|
2822
2837
|
type: Pipe,
|
|
2823
|
-
args: [{ name: 'keys'
|
|
2838
|
+
args: [{ name: 'keys' }]
|
|
2824
2839
|
}] });
|
|
2825
2840
|
|
|
2826
2841
|
const ICON_YES = `<svg viewBox="64 64 896 896" fill="currentColor" width="1em" height="1em" aria-hidden="true"><path d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"></path></svg>`;
|
|
@@ -2848,49 +2863,43 @@ function yn(value, opt) {
|
|
|
2848
2863
|
return html;
|
|
2849
2864
|
}
|
|
2850
2865
|
class YNPipe {
|
|
2851
|
-
|
|
2852
|
-
this.dom = inject(DomSanitizer);
|
|
2853
|
-
}
|
|
2866
|
+
dom = inject(DomSanitizer);
|
|
2854
2867
|
transform(value, yes, no, mode, isSafeHtml = true) {
|
|
2855
2868
|
const html = yn(value, { yes, no, mode });
|
|
2856
2869
|
return isSafeHtml ? this.dom.bypassSecurityTrustHtml(html) : html;
|
|
2857
2870
|
}
|
|
2858
|
-
static
|
|
2859
|
-
static
|
|
2871
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: YNPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2872
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: YNPipe, isStandalone: true, name: "yn" });
|
|
2860
2873
|
}
|
|
2861
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: YNPipe, decorators: [{
|
|
2862
2875
|
type: Pipe,
|
|
2863
|
-
args: [{ name: 'yn'
|
|
2876
|
+
args: [{ name: 'yn' }]
|
|
2864
2877
|
}] });
|
|
2865
2878
|
|
|
2866
2879
|
class HTMLPipe {
|
|
2867
|
-
|
|
2868
|
-
this.dom = inject(DomSanitizer);
|
|
2869
|
-
}
|
|
2880
|
+
dom = inject(DomSanitizer);
|
|
2870
2881
|
transform(html) {
|
|
2871
2882
|
return html ? this.dom.bypassSecurityTrustHtml(html) : '';
|
|
2872
2883
|
}
|
|
2873
|
-
static
|
|
2874
|
-
static
|
|
2884
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: HTMLPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2885
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: HTMLPipe, isStandalone: true, name: "html" });
|
|
2875
2886
|
}
|
|
2876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: HTMLPipe, decorators: [{
|
|
2877
2888
|
type: Pipe,
|
|
2878
|
-
args: [{ name: 'html'
|
|
2889
|
+
args: [{ name: 'html' }]
|
|
2879
2890
|
}] });
|
|
2880
2891
|
|
|
2881
2892
|
class URLPipe {
|
|
2882
|
-
|
|
2883
|
-
this.dom = inject(DomSanitizer);
|
|
2884
|
-
}
|
|
2893
|
+
dom = inject(DomSanitizer);
|
|
2885
2894
|
transform(url) {
|
|
2886
2895
|
return url ? this.dom.bypassSecurityTrustUrl(url) : '';
|
|
2887
2896
|
}
|
|
2888
|
-
static
|
|
2889
|
-
static
|
|
2897
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: URLPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2898
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: URLPipe, isStandalone: true, name: "url" });
|
|
2890
2899
|
}
|
|
2891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: URLPipe, decorators: [{
|
|
2892
2901
|
type: Pipe,
|
|
2893
|
-
args: [{ name: 'url'
|
|
2902
|
+
args: [{ name: 'url' }]
|
|
2894
2903
|
}] });
|
|
2895
2904
|
|
|
2896
2905
|
/* eslint-disable import/order */
|
|
@@ -2915,11 +2924,11 @@ class AlainThemeModule {
|
|
|
2915
2924
|
providers: HELPERS
|
|
2916
2925
|
};
|
|
2917
2926
|
}
|
|
2918
|
-
static
|
|
2919
|
-
static
|
|
2920
|
-
static
|
|
2927
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainThemeModule, deps: [{ token: i1$1.NzIconService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2928
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.1", ngImport: i0, type: AlainThemeModule, imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule, DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe], exports: [DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe, DelonLocaleModule] });
|
|
2929
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainThemeModule, providers: [ALAIN_SETTING_DEFAULT], imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule, DelonLocaleModule] });
|
|
2921
2930
|
}
|
|
2922
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2931
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: AlainThemeModule, decorators: [{
|
|
2923
2932
|
type: NgModule,
|
|
2924
2933
|
args: [{
|
|
2925
2934
|
imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule, ...PIPES],
|
|
@@ -2957,13 +2966,9 @@ function provideAlain(options) {
|
|
|
2957
2966
|
MenuUnfoldOutline,
|
|
2958
2967
|
...(options.icons ?? [])
|
|
2959
2968
|
];
|
|
2960
|
-
provides.push({
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
useValue: () => {
|
|
2964
|
-
inject(NzIconService, { optional: true })?.addIcon(...icons);
|
|
2965
|
-
}
|
|
2966
|
-
});
|
|
2969
|
+
provides.push(provideEnvironmentInitializer(() => {
|
|
2970
|
+
inject(NzIconService, { optional: true })?.addIcon(...icons);
|
|
2971
|
+
}));
|
|
2967
2972
|
return makeEnvironmentProviders(provides);
|
|
2968
2973
|
}
|
|
2969
2974
|
|
|
@@ -2987,7 +2992,7 @@ class PreloadOptionalModules {
|
|
|
2987
2992
|
}
|
|
2988
2993
|
}
|
|
2989
2994
|
|
|
2990
|
-
const VERSION = new Version('
|
|
2995
|
+
const VERSION = new Version('19.0.0');
|
|
2991
2996
|
|
|
2992
2997
|
/**
|
|
2993
2998
|
* Generated bundle index. Do not edit.
|