@delon/theme 18.1.0 → 18.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 +26 -3
- package/compact.min.css +1 -1
- package/dark.css +26 -3
- package/dark.min.css +1 -1
- package/default.css +26 -3
- 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 +3 -3
- package/esm2022/layout-default/layout-header.component.mjs +3 -3
- package/esm2022/layout-default/layout-nav.component.mjs +3 -3
- package/esm2022/layout-default/layout-top-menu-item.mjs +3 -3
- package/esm2022/layout-default/layout.component.mjs +3 -3
- 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 +3 -3
- package/esm2022/setting-drawer/setting-drawer.component.mjs +3 -3
- 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 +3 -3
- 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 +3 -3
- package/esm2022/src/services/drawer/drawer.helper.mjs +3 -3
- package/esm2022/src/services/http/http.client.mjs +3 -3
- package/esm2022/src/services/http/http.decorator.mjs +3 -3
- 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 +9 -6
- package/esm2022/src/services/modal/modal.helper.mjs +33 -12
- 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 +3 -3
- package/esm2022/src/theme.module.mjs +4 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/theme-btn/theme-btn.component.mjs +3 -3
- package/esm2022/theme-btn/theme-btn.module.mjs +4 -4
- package/fesm2022/layout-default.mjs +25 -25
- package/fesm2022/setting-drawer.mjs +10 -10
- package/fesm2022/theme-btn.mjs +7 -7
- package/fesm2022/theme.mjs +99 -75
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-default/style/_header.less +5 -3
- package/package.json +6 -6
- package/src/services/menu/menu.service.d.ts +6 -0
- package/src/services/modal/modal.helper.d.ts +5 -1
- package/system/antd/_modal.less +1 -1
- package/system/utils/_scrollbar.less +22 -0
- package/variable.css +26 -3
- package/variable.min.css +1 -1
package/fesm2022/theme.mjs
CHANGED
|
@@ -120,10 +120,10 @@ class AlainI18nBaseService {
|
|
|
120
120
|
(Array.isArray(params) ? params : [params]).forEach((item, index) => (content = content.replace(new RegExp(`\\{\\s?${index}\\s?\\}`, 'g'), `${item}`)));
|
|
121
121
|
return content;
|
|
122
122
|
}
|
|
123
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
124
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
123
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainI18nBaseService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
124
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainI18nBaseService }); }
|
|
125
125
|
}
|
|
126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainI18nBaseService, decorators: [{
|
|
127
127
|
type: Injectable
|
|
128
128
|
}], ctorParameters: () => [{ type: i1.AlainConfigService }] });
|
|
129
129
|
class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
@@ -135,10 +135,10 @@ class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
|
135
135
|
getLangs() {
|
|
136
136
|
return [];
|
|
137
137
|
}
|
|
138
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
139
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
138
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainI18NServiceFake, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
139
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainI18NServiceFake, providedIn: 'root' }); }
|
|
140
140
|
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainI18NServiceFake, decorators: [{
|
|
142
142
|
type: Injectable,
|
|
143
143
|
args: [{ providedIn: 'root' }]
|
|
144
144
|
}] });
|
|
@@ -298,7 +298,7 @@ class MenuService {
|
|
|
298
298
|
* 利用 `url` 或 `key` 查找菜单
|
|
299
299
|
*/
|
|
300
300
|
find(options) {
|
|
301
|
-
const opt = { recursive: false, ignoreHide: false, ...options };
|
|
301
|
+
const opt = { recursive: false, ignoreHide: false, last: false, ...options };
|
|
302
302
|
if (opt.key != null) {
|
|
303
303
|
return this.getItem(opt.key);
|
|
304
304
|
}
|
|
@@ -306,12 +306,15 @@ class MenuService {
|
|
|
306
306
|
let item = null;
|
|
307
307
|
while (!item && url) {
|
|
308
308
|
this.visit(opt.data ?? this.data, i => {
|
|
309
|
+
if (!opt.last && item != null) {
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
309
312
|
if (opt.ignoreHide && i.hide) {
|
|
310
313
|
return;
|
|
311
314
|
}
|
|
312
315
|
if (opt.cb) {
|
|
313
316
|
const res = opt.cb(i);
|
|
314
|
-
if (
|
|
317
|
+
if (typeof res === 'boolean' && res) {
|
|
315
318
|
item = i;
|
|
316
319
|
}
|
|
317
320
|
}
|
|
@@ -424,10 +427,10 @@ class MenuService {
|
|
|
424
427
|
this._change$.unsubscribe();
|
|
425
428
|
this.i18n$?.unsubscribe();
|
|
426
429
|
}
|
|
427
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
428
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
430
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
431
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MenuService, providedIn: 'root' }); }
|
|
429
432
|
}
|
|
430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: MenuService, decorators: [{
|
|
431
434
|
type: Injectable,
|
|
432
435
|
args: [{ providedIn: 'root' }]
|
|
433
436
|
}], ctorParameters: () => [] });
|
|
@@ -525,10 +528,10 @@ class SettingsService {
|
|
|
525
528
|
getUser() {
|
|
526
529
|
return this._user;
|
|
527
530
|
}
|
|
528
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
529
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
531
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
532
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SettingsService, providedIn: 'root' }); }
|
|
530
533
|
}
|
|
531
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: SettingsService, decorators: [{
|
|
532
535
|
type: Injectable,
|
|
533
536
|
args: [{ providedIn: 'root' }]
|
|
534
537
|
}] });
|
|
@@ -575,10 +578,10 @@ class ResponsiveService {
|
|
|
575
578
|
clsMap.push(`${antColClass}-xxl-${paddingSpan(rule.xxl)}`);
|
|
576
579
|
return clsMap;
|
|
577
580
|
}
|
|
578
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
579
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
581
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ResponsiveService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
582
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ResponsiveService, providedIn: 'root' }); }
|
|
580
583
|
}
|
|
581
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ResponsiveService, decorators: [{
|
|
582
585
|
type: Injectable,
|
|
583
586
|
args: [{ providedIn: 'root' }]
|
|
584
587
|
}], ctorParameters: () => [{ type: i1.AlainConfigService }] });
|
|
@@ -664,10 +667,10 @@ class RTLService {
|
|
|
664
667
|
this.delon.set(name, { direction: this.dir });
|
|
665
668
|
});
|
|
666
669
|
}
|
|
667
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
668
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
670
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RTLService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
671
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RTLService, providedIn: 'root' }); }
|
|
669
672
|
}
|
|
670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: RTLService, decorators: [{
|
|
671
674
|
type: Injectable,
|
|
672
675
|
args: [{ providedIn: 'root' }]
|
|
673
676
|
}], ctorParameters: () => [] });
|
|
@@ -792,10 +795,10 @@ class TitleService {
|
|
|
792
795
|
ngOnDestroy() {
|
|
793
796
|
this.tit$?.unsubscribe();
|
|
794
797
|
}
|
|
795
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
796
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
798
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: TitleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
799
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: TitleService, providedIn: 'root' }); }
|
|
797
800
|
}
|
|
798
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: TitleService, decorators: [{
|
|
799
802
|
type: Injectable,
|
|
800
803
|
args: [{ providedIn: 'root' }]
|
|
801
804
|
}], ctorParameters: () => [] });
|
|
@@ -807,10 +810,10 @@ class I18nPipe {
|
|
|
807
810
|
transform(key, params) {
|
|
808
811
|
return this.i18n.fanyi(key, params);
|
|
809
812
|
}
|
|
810
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
811
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.
|
|
813
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: I18nPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
814
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: I18nPipe, isStandalone: true, name: "i18n" }); }
|
|
812
815
|
}
|
|
813
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: I18nPipe, decorators: [{
|
|
814
817
|
type: Pipe,
|
|
815
818
|
args: [{ name: 'i18n', standalone: true }]
|
|
816
819
|
}] });
|
|
@@ -827,10 +830,10 @@ class AlainI18NGuardService {
|
|
|
827
830
|
}
|
|
828
831
|
return of(true);
|
|
829
832
|
}
|
|
830
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
831
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
833
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainI18NGuardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
834
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainI18NGuardService, providedIn: 'root' }); }
|
|
832
835
|
}
|
|
833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainI18NGuardService, decorators: [{
|
|
834
837
|
type: Injectable,
|
|
835
838
|
args: [{ providedIn: 'root' }]
|
|
836
839
|
}] });
|
|
@@ -901,13 +904,14 @@ class ModalHelper {
|
|
|
901
904
|
* this.nzModalRef.destroy();
|
|
902
905
|
*/
|
|
903
906
|
create(comp, params, options) {
|
|
907
|
+
const isBuildIn = typeof comp === 'string';
|
|
904
908
|
options = deepMerge({
|
|
905
909
|
size: 'lg',
|
|
906
910
|
exact: true,
|
|
907
911
|
includeTabs: false
|
|
908
|
-
}, options);
|
|
912
|
+
}, isBuildIn && arguments.length === 2 ? params : options);
|
|
909
913
|
return new Observable((observer) => {
|
|
910
|
-
const { size, includeTabs, modalOptions, drag, useNzData } = options;
|
|
914
|
+
const { size, includeTabs, modalOptions, drag, useNzData, focus } = options;
|
|
911
915
|
let cls = [];
|
|
912
916
|
let width = '';
|
|
913
917
|
if (size) {
|
|
@@ -938,22 +942,42 @@ class ModalHelper {
|
|
|
938
942
|
};
|
|
939
943
|
cls.push(CLS_DRAG, dragWrapCls);
|
|
940
944
|
}
|
|
941
|
-
const
|
|
945
|
+
const mth = isBuildIn ? this.srv[comp] : this.srv.create;
|
|
946
|
+
const subject = mth.call(this.srv, {
|
|
942
947
|
nzWrapClassName: cls.join(' '),
|
|
943
|
-
nzContent: comp,
|
|
948
|
+
nzContent: isBuildIn ? undefined : comp,
|
|
944
949
|
nzWidth: width ? width : undefined,
|
|
945
950
|
nzFooter: null,
|
|
946
951
|
nzData: params,
|
|
947
952
|
...modalOptions
|
|
948
953
|
});
|
|
949
954
|
// 保留 nzComponentParams 原有风格,但依然可以通过 @Inject(NZ_MODAL_DATA) 获取
|
|
950
|
-
if (useNzData !== true) {
|
|
955
|
+
if (subject.componentInstance != null && useNzData !== true) {
|
|
951
956
|
Object.assign(subject.componentInstance, params);
|
|
952
957
|
}
|
|
953
958
|
subject.afterOpen
|
|
954
|
-
.pipe(take(1),
|
|
959
|
+
.pipe(take(1), tap(() => {
|
|
960
|
+
if (dragOptions != null) {
|
|
961
|
+
dragRef = this.createDragRef(dragOptions, `.${dragWrapCls}`);
|
|
962
|
+
}
|
|
963
|
+
}), filter(() => focus != null), delay(modalOptions?.nzNoAnimation ? 10 : 241))
|
|
955
964
|
.subscribe(() => {
|
|
956
|
-
|
|
965
|
+
const btns = subject
|
|
966
|
+
.getElement()
|
|
967
|
+
.querySelector('.ant-modal-confirm-btns, .modal-footer')
|
|
968
|
+
?.querySelectorAll('.ant-btn');
|
|
969
|
+
const btnSize = btns?.length ?? 0;
|
|
970
|
+
let el = null;
|
|
971
|
+
if (btnSize === 1) {
|
|
972
|
+
el = btns[0];
|
|
973
|
+
}
|
|
974
|
+
else if (btnSize > 1) {
|
|
975
|
+
el = btns[focus === 'ok' ? 1 : 0];
|
|
976
|
+
}
|
|
977
|
+
if (el != null) {
|
|
978
|
+
el.focus();
|
|
979
|
+
el.dataset.focused = focus;
|
|
980
|
+
}
|
|
957
981
|
});
|
|
958
982
|
subject.afterClose.pipe(take(1)).subscribe((res) => {
|
|
959
983
|
if (options.exact === true) {
|
|
@@ -992,10 +1016,10 @@ class ModalHelper {
|
|
|
992
1016
|
};
|
|
993
1017
|
return this.create(comp, params, { ...options, modalOptions });
|
|
994
1018
|
}
|
|
995
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
996
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1019
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ModalHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1020
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ModalHelper, providedIn: 'root' }); }
|
|
997
1021
|
}
|
|
998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: ModalHelper, decorators: [{
|
|
999
1023
|
type: Injectable,
|
|
1000
1024
|
args: [{ providedIn: 'root' }]
|
|
1001
1025
|
}] });
|
|
@@ -1097,10 +1121,10 @@ class DrawerHelper {
|
|
|
1097
1121
|
};
|
|
1098
1122
|
return this.create(title, comp, params, { ...options, drawerOptions });
|
|
1099
1123
|
}
|
|
1100
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1101
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1124
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DrawerHelper, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1125
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DrawerHelper, providedIn: 'root' }); }
|
|
1102
1126
|
}
|
|
1103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DrawerHelper, decorators: [{
|
|
1104
1128
|
type: Injectable,
|
|
1105
1129
|
args: [{ providedIn: 'root' }]
|
|
1106
1130
|
}] });
|
|
@@ -1246,10 +1270,10 @@ class _HttpClient {
|
|
|
1246
1270
|
// Make sure to always be asynchronous, see issues: https://github.com/ng-alain/ng-alain/issues/1954
|
|
1247
1271
|
delay(0), tap(() => this.push()), switchMap(() => this.http.request(method, url, options)), finalize(() => this.pop()));
|
|
1248
1272
|
}
|
|
1249
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1250
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1273
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: _HttpClient, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1274
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: _HttpClient, providedIn: 'root' }); }
|
|
1251
1275
|
}
|
|
1252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: _HttpClient, decorators: [{
|
|
1253
1277
|
type: Injectable,
|
|
1254
1278
|
args: [{ providedIn: 'root' }]
|
|
1255
1279
|
}], ctorParameters: () => [{ type: i1.AlainConfigService }] });
|
|
@@ -1265,10 +1289,10 @@ class BaseApi {
|
|
|
1265
1289
|
constructor() {
|
|
1266
1290
|
this.injector = inject(Injector);
|
|
1267
1291
|
}
|
|
1268
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1269
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
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 }); }
|
|
1270
1294
|
}
|
|
1271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1295
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: BaseApi, decorators: [{
|
|
1272
1296
|
type: Injectable
|
|
1273
1297
|
}] });
|
|
1274
1298
|
const paramKey = `__api_params`;
|
|
@@ -1605,10 +1629,10 @@ class DelonLocaleService {
|
|
|
1605
1629
|
getData(path) {
|
|
1606
1630
|
return (this._locale[path] || {});
|
|
1607
1631
|
}
|
|
1608
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1609
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
1632
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DelonLocaleService, deps: [{ token: DELON_LOCALE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1633
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DelonLocaleService }); }
|
|
1610
1634
|
}
|
|
1611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DelonLocaleService, decorators: [{
|
|
1612
1636
|
type: Injectable
|
|
1613
1637
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1614
1638
|
type: Inject,
|
|
@@ -1624,11 +1648,11 @@ const DELON_LOCALE_SERVICE_PROVIDER = {
|
|
|
1624
1648
|
};
|
|
1625
1649
|
|
|
1626
1650
|
class DelonLocaleModule {
|
|
1627
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
1628
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
|
1629
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
|
1651
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DelonLocaleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1652
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DelonLocaleModule }); }
|
|
1653
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DelonLocaleModule, providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER] }); }
|
|
1630
1654
|
}
|
|
1631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
1655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DelonLocaleModule, decorators: [{
|
|
1632
1656
|
type: NgModule,
|
|
1633
1657
|
args: [{
|
|
1634
1658
|
providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER]
|
|
@@ -2772,10 +2796,10 @@ class DatePipe {
|
|
|
2772
2796
|
customFormat: this.cog?.dateFormatCustom
|
|
2773
2797
|
});
|
|
2774
2798
|
}
|
|
2775
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
2776
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.
|
|
2799
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2800
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: DatePipe, isStandalone: true, name: "_date" }); }
|
|
2777
2801
|
}
|
|
2778
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
2802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: DatePipe, decorators: [{
|
|
2779
2803
|
type: Pipe,
|
|
2780
2804
|
args: [{ name: '_date', standalone: true }]
|
|
2781
2805
|
}] });
|
|
@@ -2791,10 +2815,10 @@ class KeysPipe {
|
|
|
2791
2815
|
});
|
|
2792
2816
|
return ret;
|
|
2793
2817
|
}
|
|
2794
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
2795
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.
|
|
2818
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2819
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: KeysPipe, isStandalone: true, name: "keys" }); }
|
|
2796
2820
|
}
|
|
2797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
2821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: KeysPipe, decorators: [{
|
|
2798
2822
|
type: Pipe,
|
|
2799
2823
|
args: [{ name: 'keys', standalone: true }]
|
|
2800
2824
|
}] });
|
|
@@ -2831,10 +2855,10 @@ class YNPipe {
|
|
|
2831
2855
|
const html = yn(value, { yes, no, mode });
|
|
2832
2856
|
return isSafeHtml ? this.dom.bypassSecurityTrustHtml(html) : html;
|
|
2833
2857
|
}
|
|
2834
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
2835
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.
|
|
2858
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: YNPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2859
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: YNPipe, isStandalone: true, name: "yn" }); }
|
|
2836
2860
|
}
|
|
2837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
2861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: YNPipe, decorators: [{
|
|
2838
2862
|
type: Pipe,
|
|
2839
2863
|
args: [{ name: 'yn', standalone: true }]
|
|
2840
2864
|
}] });
|
|
@@ -2846,10 +2870,10 @@ class HTMLPipe {
|
|
|
2846
2870
|
transform(html) {
|
|
2847
2871
|
return html ? this.dom.bypassSecurityTrustHtml(html) : '';
|
|
2848
2872
|
}
|
|
2849
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
2850
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.
|
|
2873
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: HTMLPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2874
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: HTMLPipe, isStandalone: true, name: "html" }); }
|
|
2851
2875
|
}
|
|
2852
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
2876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: HTMLPipe, decorators: [{
|
|
2853
2877
|
type: Pipe,
|
|
2854
2878
|
args: [{ name: 'html', standalone: true }]
|
|
2855
2879
|
}] });
|
|
@@ -2861,10 +2885,10 @@ class URLPipe {
|
|
|
2861
2885
|
transform(url) {
|
|
2862
2886
|
return url ? this.dom.bypassSecurityTrustUrl(url) : '';
|
|
2863
2887
|
}
|
|
2864
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
2865
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.
|
|
2888
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: URLPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2889
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: URLPipe, isStandalone: true, name: "url" }); }
|
|
2866
2890
|
}
|
|
2867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
2891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: URLPipe, decorators: [{
|
|
2868
2892
|
type: Pipe,
|
|
2869
2893
|
args: [{ name: 'url', standalone: true }]
|
|
2870
2894
|
}] });
|
|
@@ -2891,11 +2915,11 @@ class AlainThemeModule {
|
|
|
2891
2915
|
providers: HELPERS
|
|
2892
2916
|
};
|
|
2893
2917
|
}
|
|
2894
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
2895
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
|
2896
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
|
2918
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainThemeModule, deps: [{ token: i1$1.NzIconService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2919
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.7", ngImport: i0, type: AlainThemeModule, imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule, DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe], exports: [DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe, DelonLocaleModule] }); }
|
|
2920
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainThemeModule, providers: [ALAIN_SETTING_DEFAULT], imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule, DelonLocaleModule] }); }
|
|
2897
2921
|
}
|
|
2898
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
2922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.7", ngImport: i0, type: AlainThemeModule, decorators: [{
|
|
2899
2923
|
type: NgModule,
|
|
2900
2924
|
args: [{
|
|
2901
2925
|
imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule, ...PIPES],
|
|
@@ -2963,7 +2987,7 @@ class PreloadOptionalModules {
|
|
|
2963
2987
|
}
|
|
2964
2988
|
}
|
|
2965
2989
|
|
|
2966
|
-
const VERSION = new Version('18.
|
|
2990
|
+
const VERSION = new Version('18.3.0');
|
|
2967
2991
|
|
|
2968
2992
|
/**
|
|
2969
2993
|
* Generated bundle index. Do not edit.
|