@delon/theme 12.3.0 → 13.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compact.css +1206 -666
- package/compact.min.css +1 -1
- package/dark.css +1339 -799
- package/dark.min.css +1 -1
- package/default.css +1273 -733
- package/default.min.css +1 -1
- package/{esm2015/layout-blank/layout-blank.js → esm2020/layout-blank/layout-blank.mjs} +0 -0
- package/{esm2015/layout-blank/public_api.js → esm2020/layout-blank/public_api.mjs} +0 -0
- package/esm2020/layout-default/layout-blank.mjs +5 -0
- package/esm2020/layout-default/layout-header-item-trigger.directive.mjs +16 -0
- package/esm2020/layout-default/layout-header-item.component.mjs +33 -0
- package/esm2020/layout-default/layout-header.component.mjs +123 -0
- package/esm2020/layout-default/layout-nav.component.mjs +307 -0
- package/esm2020/layout-default/layout.component.mjs +132 -0
- package/esm2020/layout-default/layout.module.mjs +69 -0
- package/{esm2015/layout-default/public_api.js → esm2020/layout-default/public_api.mjs} +0 -0
- package/{esm2015/layout-default/types.js → esm2020/layout-default/types.mjs} +0 -0
- package/esm2020/public_api.mjs +25 -0
- package/esm2020/setting-drawer/layout-blank.mjs +5 -0
- package/{esm2015/setting-drawer/public_api.js → esm2020/setting-drawer/public_api.mjs} +0 -0
- package/esm2020/setting-drawer/setting-drawer-item.component.mjs +35 -0
- package/esm2020/setting-drawer/setting-drawer.component.mjs +192 -0
- package/esm2020/setting-drawer/setting-drawer.module.mjs +68 -0
- package/{esm2015/setting-drawer/setting-drawer.types.js → esm2020/setting-drawer/setting-drawer.types.mjs} +0 -0
- package/{esm2015/src/config.js → esm2020/src/config.mjs} +0 -0
- package/{esm2015/src/locale/index.js → esm2020/src/locale/index.mjs} +0 -0
- package/{esm2015/src/locale/languages/el-GR.js → esm2020/src/locale/languages/el-GR.mjs} +0 -0
- package/{esm2015/src/locale/languages/en-US.js → esm2020/src/locale/languages/en-US.mjs} +0 -0
- package/{esm2015/src/locale/languages/es-ES.js → esm2020/src/locale/languages/es-ES.mjs} +0 -0
- package/{esm2015/src/locale/languages/fr-FR.js → esm2020/src/locale/languages/fr-FR.mjs} +0 -0
- package/{esm2015/src/locale/languages/hr-HR.js → esm2020/src/locale/languages/hr-HR.mjs} +0 -0
- package/{esm2015/src/locale/languages/it-IT.js → esm2020/src/locale/languages/it-IT.mjs} +0 -0
- package/{esm2015/src/locale/languages/ja-JP.js → esm2020/src/locale/languages/ja-JP.mjs} +0 -0
- package/{esm2015/src/locale/languages/ko-KR.js → esm2020/src/locale/languages/ko-KR.mjs} +0 -0
- package/{esm2015/src/locale/languages/pl-PL.js → esm2020/src/locale/languages/pl-PL.mjs} +0 -0
- package/{esm2015/src/locale/languages/sl-SI.js → esm2020/src/locale/languages/sl-SI.mjs} +0 -0
- package/{esm2015/src/locale/languages/tr-TR.js → esm2020/src/locale/languages/tr-TR.mjs} +0 -0
- package/{esm2015/src/locale/languages/zh-CN.js → esm2020/src/locale/languages/zh-CN.mjs} +0 -0
- package/{esm2015/src/locale/languages/zh-TW.js → esm2020/src/locale/languages/zh-TW.mjs} +0 -0
- package/esm2020/src/locale/locale.module.mjs +17 -0
- package/esm2020/src/locale/locale.service.mjs +45 -0
- package/{esm2015/src/locale/locale.tokens.js → esm2020/src/locale/locale.tokens.mjs} +0 -0
- package/{esm2015/src/locale/locale.types.js → esm2020/src/locale/locale.types.mjs} +0 -0
- package/{esm2015/src/locale/public_api.js → esm2020/src/locale/public_api.mjs} +0 -0
- package/esm2020/src/pipes/date/date.pipe.mjs +24 -0
- package/esm2020/src/pipes/keys/keys.pipe.mjs +21 -0
- package/esm2020/src/pipes/safe/html.pipe.mjs +18 -0
- package/esm2020/src/pipes/safe/url.pipe.mjs +18 -0
- package/esm2020/src/pipes/yn/yn.pipe.mjs +38 -0
- package/esm2020/src/router/optional-preloader.mjs +22 -0
- package/esm2020/src/services/drawer/drawer.helper.mjs +91 -0
- package/esm2020/src/services/http/http.client.mjs +154 -0
- package/esm2020/src/services/http/http.decorator.mjs +215 -0
- package/esm2020/src/services/i18n/i18n.mjs +97 -0
- package/esm2020/src/services/i18n/i18n.pipe.mjs +21 -0
- package/{esm2015/src/services/menu/interface.js → esm2020/src/services/menu/interface.mjs} +1 -1
- package/esm2020/src/services/menu/menu.service.mjs +255 -0
- package/esm2020/src/services/modal/modal.helper.mjs +106 -0
- package/{esm2015/src/services/preloader/preloader.js → esm2020/src/services/preloader/preloader.mjs} +0 -0
- package/esm2020/src/services/responsive/responsive.mjs +46 -0
- package/esm2020/src/services/rtl/rtl.service.mjs +101 -0
- package/esm2020/src/services/settings/settings.service.mjs +91 -0
- package/{esm2015/src/services/settings/types.js → esm2020/src/services/settings/types.mjs} +0 -0
- package/esm2020/src/services/title/title.service.mjs +124 -0
- package/esm2020/src/theme.module.mjs +76 -0
- package/{esm2015/src/version.js → esm2020/src/version.mjs} +1 -1
- package/esm2020/theme-btn/layout-blank.mjs +5 -0
- package/{esm2015/theme-btn/public_api.js → esm2020/theme-btn/public_api.mjs} +0 -0
- package/esm2020/theme-btn/theme-btn.component.mjs +106 -0
- package/esm2020/theme-btn/theme-btn.module.mjs +32 -0
- package/esm2020/theme.mjs +5 -0
- package/fesm2015/layout-blank.mjs +144 -0
- package/fesm2015/layout-blank.mjs.map +1 -0
- package/fesm2015/{theme.js → theme.mjs} +250 -186
- package/fesm2015/theme.mjs.map +1 -0
- package/fesm2020/layout-blank.mjs +141 -0
- package/fesm2020/layout-blank.mjs.map +1 -0
- package/fesm2020/theme.mjs +2569 -0
- package/fesm2020/theme.mjs.map +1 -0
- package/layout-blank/layout-blank.d.ts +1 -0
- package/layout-blank/package.json +5 -6
- package/{setting-drawer/setting-drawer.d.ts → layout-default/layout-blank.d.ts} +1 -0
- package/layout-default/layout-header-item-trigger.directive.d.ts +3 -0
- package/layout-default/layout-header-item.component.d.ts +3 -0
- package/layout-default/layout-header.component.d.ts +8 -5
- package/layout-default/layout-nav.component.d.ts +4 -1
- package/layout-default/layout.component.d.ts +10 -4
- package/layout-default/layout.module.d.ts +17 -0
- package/layout-default/package.json +6 -7
- package/layout-default/style/_aside.less +7 -3
- package/layout-default/style/_fixed.less +2 -0
- package/layout-default/style/_header.less +21 -0
- package/layout-default/style/_layout.less +7 -0
- package/layout-default/style/_progress-bar.less +6 -0
- package/layout-default/style/fix/_full-content.less +4 -0
- package/layout-default/style/fix/_sidebar-nav.less +7 -13
- package/layout-default/style/widgets/_app-icons.less +3 -0
- package/layout-default/style/widgets/_user.less +5 -0
- package/package.json +55 -11
- package/public_api.d.ts +1 -0
- package/{theme-btn/layout-theme-btn.d.ts → setting-drawer/layout-blank.d.ts} +1 -0
- package/setting-drawer/package.json +6 -7
- package/setting-drawer/setting-drawer-item.component.d.ts +3 -0
- package/setting-drawer/setting-drawer.component.d.ts +3 -0
- package/setting-drawer/setting-drawer.module.d.ts +18 -0
- package/setting-drawer/style/index.less +9 -0
- package/setting-drawer/style/rtl.less +1 -0
- package/src/locale/locale.module.d.ts +4 -0
- package/src/locale/locale.service.d.ts +3 -0
- package/src/pipes/date/date.pipe.d.ts +3 -0
- package/src/pipes/keys/keys.pipe.d.ts +3 -0
- package/src/pipes/safe/html.pipe.d.ts +3 -0
- package/src/pipes/safe/url.pipe.d.ts +3 -0
- package/src/pipes/yn/style/index.less +3 -0
- package/src/pipes/yn/yn.pipe.d.ts +3 -0
- package/src/services/drawer/drawer.helper.d.ts +3 -0
- package/src/services/http/http.client.d.ts +3 -0
- package/src/services/http/http.decorator.d.ts +3 -0
- package/src/services/i18n/i18n.d.ts +27 -3
- package/src/services/i18n/i18n.pipe.d.ts +3 -0
- package/src/services/menu/interface.d.ts +1 -1
- package/src/services/menu/menu.service.d.ts +3 -0
- package/src/services/modal/modal.helper.d.ts +3 -0
- package/src/services/responsive/responsive.d.ts +3 -0
- package/src/services/rtl/rtl.service.d.ts +3 -0
- package/src/services/settings/settings.service.d.ts +3 -0
- package/src/services/title/title.service.d.ts +3 -0
- package/src/theme.module.d.ts +15 -0
- package/system/_preloader.less +10 -0
- package/system/_type.less +5 -0
- package/system/antd/_modal.less +5 -0
- package/system/antd/_table.less +11 -1
- package/system/index.less +3 -3
- package/system/mixins/_freak.less +2 -2
- package/system/mixins/_text-truncate.less +2 -0
- package/system/ng/_form.less +1 -0
- package/system/theme-default.less +3 -1
- package/system/utils/_display.less +9 -0
- package/system/utils/_other.less +2 -0
- package/system/utils/_scrollbar.less +3 -0
- package/system/widgets/_abs.less +3 -0
- package/system/widgets/_half-float.less +2 -0
- package/system/widgets/_masonry-grid.less +2 -0
- package/{layout-default/layout-default.d.ts → theme-btn/layout-blank.d.ts} +1 -0
- package/theme-btn/package.json +6 -7
- package/theme-btn/style/index.less +1 -0
- package/theme-btn/theme-btn.component.d.ts +3 -0
- package/theme-btn/theme-btn.module.d.ts +8 -0
- package/theme-compact.less +1 -1
- package/theme-dark.less +1 -1
- package/theme-default.less +1 -1
- package/theme.d.ts +1 -1
- package/bundles/layout-blank.umd.js +0 -19
- package/bundles/layout-blank.umd.js.map +0 -1
- package/bundles/layout-default.umd.js +0 -869
- package/bundles/layout-default.umd.js.map +0 -1
- package/bundles/layout-theme-btn.umd.js +0 -141
- package/bundles/layout-theme-btn.umd.js.map +0 -1
- package/bundles/setting-drawer.umd.js +0 -789
- package/bundles/setting-drawer.umd.js.map +0 -1
- package/bundles/theme.umd.js +0 -3028
- package/bundles/theme.umd.js.map +0 -1
- package/esm2015/layout-default/layout-default.js +0 -5
- package/esm2015/layout-default/layout-header-item-trigger.directive.js +0 -12
- package/esm2015/layout-default/layout-header-item.component.js +0 -23
- package/esm2015/layout-default/layout-header.component.js +0 -94
- package/esm2015/layout-default/layout-nav.component.js +0 -306
- package/esm2015/layout-default/layout.component.js +0 -97
- package/esm2015/layout-default/layout.module.js +0 -38
- package/esm2015/public_api.js +0 -24
- package/esm2015/setting-drawer/setting-drawer-item.component.js +0 -30
- package/esm2015/setting-drawer/setting-drawer.component.js +0 -185
- package/esm2015/setting-drawer/setting-drawer.js +0 -5
- package/esm2015/setting-drawer/setting-drawer.module.js +0 -39
- package/esm2015/src/locale/locale.module.js +0 -14
- package/esm2015/src/locale/locale.service.js +0 -42
- package/esm2015/src/pipes/date/date.pipe.js +0 -23
- package/esm2015/src/pipes/keys/keys.pipe.js +0 -17
- package/esm2015/src/pipes/safe/html.pipe.js +0 -17
- package/esm2015/src/pipes/safe/url.pipe.js +0 -17
- package/esm2015/src/pipes/yn/yn.pipe.js +0 -37
- package/esm2015/src/router/optional-preloader.js +0 -23
- package/esm2015/src/services/drawer/drawer.helper.js +0 -90
- package/esm2015/src/services/http/http.client.js +0 -138
- package/esm2015/src/services/http/http.decorator.js +0 -207
- package/esm2015/src/services/i18n/i18n.js +0 -64
- package/esm2015/src/services/i18n/i18n.pipe.js +0 -17
- package/esm2015/src/services/menu/menu.service.js +0 -252
- package/esm2015/src/services/modal/modal.helper.js +0 -105
- package/esm2015/src/services/responsive/responsive.js +0 -48
- package/esm2015/src/services/rtl/rtl.service.js +0 -110
- package/esm2015/src/services/settings/settings.service.js +0 -82
- package/esm2015/src/services/title/title.service.js +0 -125
- package/esm2015/src/theme.module.js +0 -67
- package/esm2015/theme-btn/layout-theme-btn.js +0 -5
- package/esm2015/theme-btn/theme-btn.component.js +0 -103
- package/esm2015/theme-btn/theme-btn.module.js +0 -22
- package/esm2015/theme.js +0 -6
- package/fesm2015/layout-blank.js +0 -7
- package/fesm2015/layout-blank.js.map +0 -1
- package/fesm2015/layout-default.js +0 -554
- package/fesm2015/layout-default.js.map +0 -1
- package/fesm2015/layout-theme-btn.js +0 -129
- package/fesm2015/layout-theme-btn.js.map +0 -1
- package/fesm2015/setting-drawer.js +0 -448
- package/fesm2015/setting-drawer.js.map +0 -1
- package/fesm2015/theme.js.map +0 -1
- package/layout-blank/layout-blank.metadata.json +0 -1
- package/layout-default/layout-default.metadata.json +0 -1
- package/setting-drawer/setting-drawer.metadata.json +0 -1
- package/theme-btn/layout-theme-btn.metadata.json +0 -1
- package/theme.metadata.json +0 -1
|
@@ -1,35 +1,29 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, Injectable, Optional, Inject,
|
|
2
|
+
import { InjectionToken, inject, Injectable, Optional, Inject, Pipe, SkipSelf, NgModule, Injector, Version } from '@angular/core';
|
|
3
3
|
import { BehaviorSubject, Subject, Observable, of, throwError } from 'rxjs';
|
|
4
4
|
import { filter, share, map, delay, tap, switchMap, finalize, catchError } from 'rxjs/operators';
|
|
5
|
-
import * as i2 from '@delon/acl';
|
|
6
|
-
import { ACLService } from '@delon/acl';
|
|
7
5
|
import * as i1 from '@delon/util/config';
|
|
8
6
|
import { AlainConfigService } from '@delon/util/config';
|
|
9
|
-
import * as i1$1 from '@
|
|
10
|
-
import {
|
|
11
|
-
import * as i1$2 from '@angular/cdk/
|
|
12
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
13
|
-
import * as i6 from '@angular/common';
|
|
7
|
+
import * as i1$1 from '@delon/acl';
|
|
8
|
+
import { ACLService } from '@delon/acl';
|
|
9
|
+
import * as i1$2 from '@angular/cdk/platform';
|
|
14
10
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
11
|
+
import * as i1$3 from '@angular/cdk/bidi';
|
|
15
12
|
import * as i3 from 'ng-zorro-antd/core/config';
|
|
16
|
-
import { NzConfigService } from 'ng-zorro-antd/core/config';
|
|
17
|
-
import * as i1$3 from '@angular/platform-browser';
|
|
18
|
-
import { Title, DomSanitizer } from '@angular/platform-browser';
|
|
19
13
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
14
|
+
import * as i1$4 from '@angular/platform-browser';
|
|
20
15
|
import { deepMerge } from '@delon/util/other';
|
|
21
|
-
import * as i1$
|
|
22
|
-
import
|
|
23
|
-
import * as i1$
|
|
24
|
-
import {
|
|
25
|
-
import * as i1$6 from '@angular/common/http';
|
|
26
|
-
import { HttpParams, HttpClient } from '@angular/common/http';
|
|
16
|
+
import * as i1$5 from 'ng-zorro-antd/modal';
|
|
17
|
+
import * as i1$6 from 'ng-zorro-antd/drawer';
|
|
18
|
+
import * as i1$7 from '@angular/common/http';
|
|
19
|
+
import { HttpParams } from '@angular/common/http';
|
|
27
20
|
import { formatDistanceToNow, format } from 'date-fns';
|
|
28
21
|
import { toDate } from '@delon/util/date-time';
|
|
29
|
-
import
|
|
22
|
+
import * as i1$8 from 'ng-zorro-antd/i18n';
|
|
23
|
+
import { NzI18nModule } from 'ng-zorro-antd/i18n';
|
|
30
24
|
import { OverlayModule } from '@angular/cdk/overlay';
|
|
31
25
|
import { BellOutline, DeleteOutline, PlusOutline, InboxOutline } from '@ant-design/icons-angular/icons';
|
|
32
|
-
import
|
|
26
|
+
import * as i1$9 from 'ng-zorro-antd/icon';
|
|
33
27
|
|
|
34
28
|
function preloaderFinished() {
|
|
35
29
|
const body = document.querySelector('body');
|
|
@@ -78,6 +72,38 @@ class AlainI18nBaseService {
|
|
|
78
72
|
get data() {
|
|
79
73
|
return this._data;
|
|
80
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Flattened data source
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* {
|
|
80
|
+
* "name": "Name",
|
|
81
|
+
* "sys": {
|
|
82
|
+
* "": "System",
|
|
83
|
+
* "title": "Title"
|
|
84
|
+
* }
|
|
85
|
+
* }
|
|
86
|
+
* =>
|
|
87
|
+
* {
|
|
88
|
+
* "name": "Name",
|
|
89
|
+
* "sys": "System",
|
|
90
|
+
* "sys.title": "Title"
|
|
91
|
+
* }
|
|
92
|
+
*/
|
|
93
|
+
flatData(data, parentKey) {
|
|
94
|
+
const res = {};
|
|
95
|
+
for (const key of Object.keys(data)) {
|
|
96
|
+
const value = data[key];
|
|
97
|
+
if (typeof value === 'object') {
|
|
98
|
+
const child = this.flatData(value, parentKey.concat(key));
|
|
99
|
+
Object.keys(child).forEach(childKey => (res[childKey] = child[childKey]));
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
res[(key ? parentKey.concat(key) : parentKey).join('.')] = `${value}`;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return res;
|
|
106
|
+
}
|
|
81
107
|
fanyi(path, params) {
|
|
82
108
|
let content = this._data[path] || '';
|
|
83
109
|
if (!content)
|
|
@@ -89,15 +115,14 @@ class AlainI18nBaseService {
|
|
|
89
115
|
return content;
|
|
90
116
|
}
|
|
91
117
|
}
|
|
92
|
-
AlainI18nBaseService
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
];
|
|
118
|
+
AlainI18nBaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainI18nBaseService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
119
|
+
AlainI18nBaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainI18nBaseService });
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainI18nBaseService, decorators: [{
|
|
121
|
+
type: Injectable
|
|
122
|
+
}], ctorParameters: function () { return [{ type: i1.AlainConfigService }]; } });
|
|
98
123
|
class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
99
124
|
use(lang, data) {
|
|
100
|
-
this._data = data;
|
|
125
|
+
this._data = this.flatData(data, []);
|
|
101
126
|
this._currentLang = lang;
|
|
102
127
|
this._change$.next(lang);
|
|
103
128
|
}
|
|
@@ -105,10 +130,12 @@ class AlainI18NServiceFake extends AlainI18nBaseService {
|
|
|
105
130
|
return [];
|
|
106
131
|
}
|
|
107
132
|
}
|
|
108
|
-
AlainI18NServiceFake.ɵ
|
|
109
|
-
AlainI18NServiceFake
|
|
110
|
-
|
|
111
|
-
|
|
133
|
+
AlainI18NServiceFake.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainI18NServiceFake, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
134
|
+
AlainI18NServiceFake.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainI18NServiceFake, providedIn: 'root' });
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainI18NServiceFake, decorators: [{
|
|
136
|
+
type: Injectable,
|
|
137
|
+
args: [{ providedIn: 'root' }]
|
|
138
|
+
}] });
|
|
112
139
|
|
|
113
140
|
/**
|
|
114
141
|
* 菜单服务,[在线文档](https://ng-alain.com/theme/menu)
|
|
@@ -345,14 +372,21 @@ class MenuService {
|
|
|
345
372
|
this.i18n$.unsubscribe();
|
|
346
373
|
}
|
|
347
374
|
}
|
|
348
|
-
MenuService.ɵ
|
|
349
|
-
MenuService
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
375
|
+
MenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MenuService, deps: [{ token: ALAIN_I18N_TOKEN, optional: true }, { token: i1$1.ACLService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
376
|
+
MenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MenuService, providedIn: 'root' });
|
|
377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MenuService, decorators: [{
|
|
378
|
+
type: Injectable,
|
|
379
|
+
args: [{ providedIn: 'root' }]
|
|
380
|
+
}], ctorParameters: function () {
|
|
381
|
+
return [{ type: undefined, decorators: [{
|
|
382
|
+
type: Optional
|
|
383
|
+
}, {
|
|
384
|
+
type: Inject,
|
|
385
|
+
args: [ALAIN_I18N_TOKEN]
|
|
386
|
+
}] }, { type: i1$1.ACLService, decorators: [{
|
|
387
|
+
type: Optional
|
|
388
|
+
}] }];
|
|
389
|
+
} });
|
|
356
390
|
|
|
357
391
|
const ALAIN_SETTING_KEYS = new InjectionToken('ALAIN_SETTING_KEYS');
|
|
358
392
|
class SettingsService {
|
|
@@ -422,14 +456,17 @@ class SettingsService {
|
|
|
422
456
|
this.notify$.next({ type: 'user', value });
|
|
423
457
|
}
|
|
424
458
|
}
|
|
425
|
-
SettingsService.ɵ
|
|
426
|
-
SettingsService
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
459
|
+
SettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SettingsService, deps: [{ token: i1$2.Platform }, { token: ALAIN_SETTING_KEYS }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
460
|
+
SettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SettingsService, providedIn: 'root' });
|
|
461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: SettingsService, decorators: [{
|
|
462
|
+
type: Injectable,
|
|
463
|
+
args: [{ providedIn: 'root' }]
|
|
464
|
+
}], ctorParameters: function () {
|
|
465
|
+
return [{ type: i1$2.Platform }, { type: undefined, decorators: [{
|
|
466
|
+
type: Inject,
|
|
467
|
+
args: [ALAIN_SETTING_KEYS]
|
|
468
|
+
}] }];
|
|
469
|
+
} });
|
|
433
470
|
|
|
434
471
|
const REP_MAX = 6;
|
|
435
472
|
class ResponsiveService {
|
|
@@ -467,13 +504,12 @@ class ResponsiveService {
|
|
|
467
504
|
return clsMap;
|
|
468
505
|
}
|
|
469
506
|
}
|
|
470
|
-
ResponsiveService.ɵ
|
|
471
|
-
ResponsiveService
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
];
|
|
507
|
+
ResponsiveService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ResponsiveService, deps: [{ token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
508
|
+
ResponsiveService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ResponsiveService, providedIn: 'root' });
|
|
509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ResponsiveService, decorators: [{
|
|
510
|
+
type: Injectable,
|
|
511
|
+
args: [{ providedIn: 'root' }]
|
|
512
|
+
}], ctorParameters: function () { return [{ type: i1.AlainConfigService }]; } });
|
|
477
513
|
|
|
478
514
|
const HTML_DIR = 'dir';
|
|
479
515
|
const RTL_DIRECTION = 'direction';
|
|
@@ -557,18 +593,17 @@ class RTLService {
|
|
|
557
593
|
});
|
|
558
594
|
}
|
|
559
595
|
}
|
|
560
|
-
RTLService.ɵ
|
|
561
|
-
RTLService
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
];
|
|
596
|
+
RTLService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", 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 });
|
|
597
|
+
RTLService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RTLService, providedIn: 'root' });
|
|
598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RTLService, decorators: [{
|
|
599
|
+
type: Injectable,
|
|
600
|
+
args: [{ providedIn: 'root' }]
|
|
601
|
+
}], ctorParameters: function () {
|
|
602
|
+
return [{ type: i1$3.Directionality }, { type: SettingsService }, { type: i3.NzConfigService }, { type: i1.AlainConfigService }, { type: i1$2.Platform }, { type: undefined, decorators: [{
|
|
603
|
+
type: Inject,
|
|
604
|
+
args: [DOCUMENT]
|
|
605
|
+
}] }];
|
|
606
|
+
} });
|
|
572
607
|
|
|
573
608
|
class TitleService {
|
|
574
609
|
constructor(injector, title, menuSrv, i18nSrv, doc) {
|
|
@@ -671,17 +706,42 @@ class TitleService {
|
|
|
671
706
|
this.i18n$.unsubscribe();
|
|
672
707
|
}
|
|
673
708
|
}
|
|
674
|
-
TitleService.ɵ
|
|
675
|
-
TitleService
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
]
|
|
709
|
+
TitleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", 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 });
|
|
710
|
+
TitleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TitleService, providedIn: 'root' });
|
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TitleService, decorators: [{
|
|
712
|
+
type: Injectable,
|
|
713
|
+
args: [{ providedIn: 'root' }]
|
|
714
|
+
}], ctorParameters: function () {
|
|
715
|
+
return [{ type: i0.Injector }, { type: i1$4.Title }, { type: MenuService }, { type: undefined, decorators: [{
|
|
716
|
+
type: Optional
|
|
717
|
+
}, {
|
|
718
|
+
type: Inject,
|
|
719
|
+
args: [ALAIN_I18N_TOKEN]
|
|
720
|
+
}] }, { type: undefined, decorators: [{
|
|
721
|
+
type: Inject,
|
|
722
|
+
args: [DOCUMENT]
|
|
723
|
+
}] }];
|
|
724
|
+
} });
|
|
725
|
+
|
|
726
|
+
class I18nPipe {
|
|
727
|
+
constructor(i18n) {
|
|
728
|
+
this.i18n = i18n;
|
|
729
|
+
}
|
|
730
|
+
transform(key, params) {
|
|
731
|
+
return this.i18n.fanyi(key, params);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
I18nPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: I18nPipe, deps: [{ token: ALAIN_I18N_TOKEN }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
735
|
+
I18nPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: I18nPipe, name: "i18n" });
|
|
736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: I18nPipe, decorators: [{
|
|
737
|
+
type: Pipe,
|
|
738
|
+
args: [{ name: 'i18n' }]
|
|
739
|
+
}], ctorParameters: function () {
|
|
740
|
+
return [{ type: undefined, decorators: [{
|
|
741
|
+
type: Inject,
|
|
742
|
+
args: [ALAIN_I18N_TOKEN]
|
|
743
|
+
}] }];
|
|
744
|
+
} });
|
|
685
745
|
|
|
686
746
|
const DELON_LOCALE = new InjectionToken('delon-locale');
|
|
687
747
|
|
|
@@ -791,12 +851,16 @@ class DelonLocaleService {
|
|
|
791
851
|
return (this._locale[path] || {});
|
|
792
852
|
}
|
|
793
853
|
}
|
|
794
|
-
DelonLocaleService
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
854
|
+
DelonLocaleService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DelonLocaleService, deps: [{ token: DELON_LOCALE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
855
|
+
DelonLocaleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DelonLocaleService });
|
|
856
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DelonLocaleService, decorators: [{
|
|
857
|
+
type: Injectable
|
|
858
|
+
}], ctorParameters: function () {
|
|
859
|
+
return [{ type: undefined, decorators: [{
|
|
860
|
+
type: Inject,
|
|
861
|
+
args: [DELON_LOCALE]
|
|
862
|
+
}] }];
|
|
863
|
+
} });
|
|
800
864
|
function DELON_LOCALE_SERVICE_PROVIDER_FACTORY(exist, locale) {
|
|
801
865
|
return exist || new DelonLocaleService(locale);
|
|
802
866
|
}
|
|
@@ -806,14 +870,17 @@ const DELON_LOCALE_SERVICE_PROVIDER = {
|
|
|
806
870
|
deps: [[new Optional(), new SkipSelf(), DelonLocaleService], DELON_LOCALE]
|
|
807
871
|
};
|
|
808
872
|
|
|
809
|
-
const ɵ0$1 = zhCN;
|
|
810
873
|
class DelonLocaleModule {
|
|
811
874
|
}
|
|
812
|
-
DelonLocaleModule
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
875
|
+
DelonLocaleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DelonLocaleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
876
|
+
DelonLocaleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DelonLocaleModule });
|
|
877
|
+
DelonLocaleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DelonLocaleModule, providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER] });
|
|
878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DelonLocaleModule, decorators: [{
|
|
879
|
+
type: NgModule,
|
|
880
|
+
args: [{
|
|
881
|
+
providers: [{ provide: DELON_LOCALE, useValue: zhCN }, DELON_LOCALE_SERVICE_PROVIDER]
|
|
882
|
+
}]
|
|
883
|
+
}] });
|
|
817
884
|
|
|
818
885
|
var enUS = {
|
|
819
886
|
abbr: 'en-US',
|
|
@@ -1865,13 +1932,12 @@ class ModalHelper {
|
|
|
1865
1932
|
return this.create(comp, params, Object.assign(Object.assign({}, options), { modalOptions }));
|
|
1866
1933
|
}
|
|
1867
1934
|
}
|
|
1868
|
-
ModalHelper.ɵ
|
|
1869
|
-
ModalHelper
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
];
|
|
1935
|
+
ModalHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ModalHelper, deps: [{ token: i1$5.NzModalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1936
|
+
ModalHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ModalHelper, providedIn: 'root' });
|
|
1937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ModalHelper, decorators: [{
|
|
1938
|
+
type: Injectable,
|
|
1939
|
+
args: [{ providedIn: 'root' }]
|
|
1940
|
+
}], ctorParameters: function () { return [{ type: i1$5.NzModalService }]; } });
|
|
1875
1941
|
|
|
1876
1942
|
/**
|
|
1877
1943
|
* 抽屉辅助类
|
|
@@ -1949,13 +2015,12 @@ class DrawerHelper {
|
|
|
1949
2015
|
return this.create(title, comp, params, Object.assign(Object.assign({}, options), { drawerOptions }));
|
|
1950
2016
|
}
|
|
1951
2017
|
}
|
|
1952
|
-
DrawerHelper.ɵ
|
|
1953
|
-
DrawerHelper
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
];
|
|
2018
|
+
DrawerHelper.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DrawerHelper, deps: [{ token: i1$6.NzDrawerService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2019
|
+
DrawerHelper.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DrawerHelper, providedIn: 'root' });
|
|
2020
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DrawerHelper, decorators: [{
|
|
2021
|
+
type: Injectable,
|
|
2022
|
+
args: [{ providedIn: 'root' }]
|
|
2023
|
+
}], ctorParameters: function () { return [{ type: i1$6.NzDrawerService }]; } });
|
|
1959
2024
|
|
|
1960
2025
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1961
2026
|
/**
|
|
@@ -2078,14 +2143,12 @@ class _HttpClient {
|
|
|
2078
2143
|
delay(0), tap(() => this.push()), switchMap(() => this.http.request(method, url, options)), finalize(() => this.pop()));
|
|
2079
2144
|
}
|
|
2080
2145
|
}
|
|
2081
|
-
_HttpClient.ɵ
|
|
2082
|
-
_HttpClient
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
{ type: AlainConfigService }
|
|
2088
|
-
];
|
|
2146
|
+
_HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: _HttpClient, deps: [{ token: i1$7.HttpClient }, { token: i1.AlainConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2147
|
+
_HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: _HttpClient, providedIn: 'root' });
|
|
2148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: _HttpClient, decorators: [{
|
|
2149
|
+
type: Injectable,
|
|
2150
|
+
args: [{ providedIn: 'root' }]
|
|
2151
|
+
}], ctorParameters: function () { return [{ type: i1$7.HttpClient }, { type: i1.AlainConfigService }]; } });
|
|
2089
2152
|
|
|
2090
2153
|
/**
|
|
2091
2154
|
* Every http decorator must be based on `BaseAPI`, Like this:
|
|
@@ -2099,12 +2162,16 @@ class BaseApi {
|
|
|
2099
2162
|
this.injector = injector;
|
|
2100
2163
|
}
|
|
2101
2164
|
}
|
|
2102
|
-
BaseApi
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2165
|
+
BaseApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseApi, deps: [{ token: Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2166
|
+
BaseApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseApi });
|
|
2167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseApi, decorators: [{
|
|
2168
|
+
type: Injectable
|
|
2169
|
+
}], ctorParameters: function () {
|
|
2170
|
+
return [{ type: i0.Injector, decorators: [{
|
|
2171
|
+
type: Inject,
|
|
2172
|
+
args: [Injector]
|
|
2173
|
+
}] }];
|
|
2174
|
+
} });
|
|
2108
2175
|
const paramKey = `__api_params`;
|
|
2109
2176
|
function setParam(target, key = paramKey) {
|
|
2110
2177
|
let params = target[key];
|
|
@@ -2202,19 +2269,19 @@ function makeMethod(method) {
|
|
|
2202
2269
|
const baseData = setParam(this);
|
|
2203
2270
|
const data = setParam(baseData, targetKey);
|
|
2204
2271
|
let requestUrl = url || '';
|
|
2205
|
-
requestUrl = [baseData.baseUrl || '', requestUrl.startsWith('/') ? requestUrl.
|
|
2272
|
+
requestUrl = [baseData.baseUrl || '', requestUrl.startsWith('/') ? requestUrl.substring(1) : requestUrl].join('/');
|
|
2206
2273
|
// fix last split
|
|
2207
2274
|
if (requestUrl.length > 1 && requestUrl.endsWith('/')) {
|
|
2208
|
-
requestUrl = requestUrl.
|
|
2275
|
+
requestUrl = requestUrl.substring(0, requestUrl.length - 1);
|
|
2209
2276
|
}
|
|
2210
2277
|
if (options.acl) {
|
|
2211
2278
|
const aclSrv = injector.get(ACLService, null);
|
|
2212
2279
|
if (aclSrv && !aclSrv.can(options.acl)) {
|
|
2213
|
-
return throwError({
|
|
2280
|
+
return throwError(() => ({
|
|
2214
2281
|
url: requestUrl,
|
|
2215
2282
|
status: 401,
|
|
2216
2283
|
statusText: `From Http Decorator`
|
|
2217
|
-
});
|
|
2284
|
+
}));
|
|
2218
2285
|
}
|
|
2219
2286
|
delete options.acl;
|
|
2220
2287
|
}
|
|
@@ -2302,12 +2369,12 @@ class DatePipe {
|
|
|
2302
2369
|
return formatString === 'fn' ? formatDistanceToNow(value, langOpt) : format(value, formatString, langOpt);
|
|
2303
2370
|
}
|
|
2304
2371
|
}
|
|
2305
|
-
DatePipe
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
];
|
|
2372
|
+
DatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DatePipe, deps: [{ token: i1$8.NzI18nService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2373
|
+
DatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DatePipe, name: "_date" });
|
|
2374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DatePipe, decorators: [{
|
|
2375
|
+
type: Pipe,
|
|
2376
|
+
args: [{ name: '_date' }]
|
|
2377
|
+
}], ctorParameters: function () { return [{ type: i1$8.NzI18nService }]; } });
|
|
2311
2378
|
|
|
2312
2379
|
/**
|
|
2313
2380
|
* [Document](https://ng-alain.com/theme/keys)
|
|
@@ -2321,9 +2388,12 @@ class KeysPipe {
|
|
|
2321
2388
|
return ret;
|
|
2322
2389
|
}
|
|
2323
2390
|
}
|
|
2324
|
-
KeysPipe
|
|
2325
|
-
|
|
2326
|
-
|
|
2391
|
+
KeysPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2392
|
+
KeysPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: KeysPipe, name: "keys" });
|
|
2393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: KeysPipe, decorators: [{
|
|
2394
|
+
type: Pipe,
|
|
2395
|
+
args: [{ name: 'keys' }]
|
|
2396
|
+
}] });
|
|
2327
2397
|
|
|
2328
2398
|
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>`;
|
|
2329
2399
|
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>`;
|
|
@@ -2353,12 +2423,12 @@ class YNPipe {
|
|
|
2353
2423
|
return isSafeHtml ? this.dom.bypassSecurityTrustHtml(html) : html;
|
|
2354
2424
|
}
|
|
2355
2425
|
}
|
|
2356
|
-
YNPipe
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
];
|
|
2426
|
+
YNPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: YNPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2427
|
+
YNPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: YNPipe, name: "yn" });
|
|
2428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: YNPipe, decorators: [{
|
|
2429
|
+
type: Pipe,
|
|
2430
|
+
args: [{ name: 'yn' }]
|
|
2431
|
+
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
2362
2432
|
|
|
2363
2433
|
class HTMLPipe {
|
|
2364
2434
|
constructor(dom) {
|
|
@@ -2368,12 +2438,12 @@ class HTMLPipe {
|
|
|
2368
2438
|
return html ? this.dom.bypassSecurityTrustHtml(html) : '';
|
|
2369
2439
|
}
|
|
2370
2440
|
}
|
|
2371
|
-
HTMLPipe
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
];
|
|
2441
|
+
HTMLPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HTMLPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2442
|
+
HTMLPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HTMLPipe, name: "html" });
|
|
2443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HTMLPipe, decorators: [{
|
|
2444
|
+
type: Pipe,
|
|
2445
|
+
args: [{ name: 'html' }]
|
|
2446
|
+
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
2377
2447
|
|
|
2378
2448
|
class URLPipe {
|
|
2379
2449
|
constructor(dom) {
|
|
@@ -2383,38 +2453,18 @@ class URLPipe {
|
|
|
2383
2453
|
return url ? this.dom.bypassSecurityTrustUrl(url) : '';
|
|
2384
2454
|
}
|
|
2385
2455
|
}
|
|
2386
|
-
URLPipe
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
];
|
|
2392
|
-
|
|
2393
|
-
class I18nPipe {
|
|
2394
|
-
constructor(i18n) {
|
|
2395
|
-
this.i18n = i18n;
|
|
2396
|
-
}
|
|
2397
|
-
transform(key, params) {
|
|
2398
|
-
return this.i18n.fanyi(key, params);
|
|
2399
|
-
}
|
|
2400
|
-
}
|
|
2401
|
-
I18nPipe.decorators = [
|
|
2402
|
-
{ type: Pipe, args: [{ name: 'i18n' },] }
|
|
2403
|
-
];
|
|
2404
|
-
I18nPipe.ctorParameters = () => [
|
|
2405
|
-
{ type: undefined, decorators: [{ type: Inject, args: [ALAIN_I18N_TOKEN,] }] }
|
|
2406
|
-
];
|
|
2456
|
+
URLPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: URLPipe, deps: [{ token: i1$4.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2457
|
+
URLPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: URLPipe, name: "url" });
|
|
2458
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: URLPipe, decorators: [{
|
|
2459
|
+
type: Pipe,
|
|
2460
|
+
args: [{ name: 'url' }]
|
|
2461
|
+
}], ctorParameters: function () { return [{ type: i1$4.DomSanitizer }]; } });
|
|
2407
2462
|
|
|
2408
2463
|
/* eslint-disable import/order */
|
|
2409
2464
|
// #region import
|
|
2410
2465
|
const HELPERS = [ModalHelper, DrawerHelper];
|
|
2411
2466
|
const PIPES = [DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe];
|
|
2412
2467
|
const ICONS = [BellOutline, DeleteOutline, PlusOutline, InboxOutline];
|
|
2413
|
-
const ɵ0 = {
|
|
2414
|
-
layout: 'layout',
|
|
2415
|
-
user: 'user',
|
|
2416
|
-
app: 'app'
|
|
2417
|
-
};
|
|
2418
2468
|
// #endregion
|
|
2419
2469
|
class AlainThemeModule {
|
|
2420
2470
|
constructor(iconSrv) {
|
|
@@ -2433,22 +2483,36 @@ class AlainThemeModule {
|
|
|
2433
2483
|
};
|
|
2434
2484
|
}
|
|
2435
2485
|
}
|
|
2436
|
-
AlainThemeModule
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
]
|
|
2486
|
+
AlainThemeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainThemeModule, deps: [{ token: i1$9.NzIconService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2487
|
+
AlainThemeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainThemeModule, declarations: [DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe], imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule], exports: [DatePipe, KeysPipe, YNPipe, I18nPipe, HTMLPipe, URLPipe, DelonLocaleModule] });
|
|
2488
|
+
AlainThemeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainThemeModule, providers: [
|
|
2489
|
+
{
|
|
2490
|
+
provide: ALAIN_SETTING_KEYS,
|
|
2491
|
+
useValue: {
|
|
2492
|
+
layout: 'layout',
|
|
2493
|
+
user: 'user',
|
|
2494
|
+
app: 'app'
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2497
|
+
], imports: [[CommonModule, RouterModule, OverlayModule, NzI18nModule], DelonLocaleModule] });
|
|
2498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AlainThemeModule, decorators: [{
|
|
2499
|
+
type: NgModule,
|
|
2500
|
+
args: [{
|
|
2501
|
+
imports: [CommonModule, RouterModule, OverlayModule, NzI18nModule],
|
|
2502
|
+
declarations: [...PIPES],
|
|
2503
|
+
providers: [
|
|
2504
|
+
{
|
|
2505
|
+
provide: ALAIN_SETTING_KEYS,
|
|
2506
|
+
useValue: {
|
|
2507
|
+
layout: 'layout',
|
|
2508
|
+
user: 'user',
|
|
2509
|
+
app: 'app'
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
],
|
|
2513
|
+
exports: [...PIPES, DelonLocaleModule]
|
|
2514
|
+
}]
|
|
2515
|
+
}], ctorParameters: function () { return [{ type: i1$9.NzIconService }]; } });
|
|
2452
2516
|
|
|
2453
2517
|
/**
|
|
2454
2518
|
* Optional pre-loading module, when it's necessary to load the resource at the first page load for some lazy routes, [example](https://github.com/ng-alain/ng-alain/blob/master/src/app/routes/routes-routing.module.ts).
|
|
@@ -2471,11 +2535,11 @@ class PreloadOptionalModules {
|
|
|
2471
2535
|
}
|
|
2472
2536
|
}
|
|
2473
2537
|
|
|
2474
|
-
const VERSION = new Version('
|
|
2538
|
+
const VERSION = new Version('13.0.0-beta.1');
|
|
2475
2539
|
|
|
2476
2540
|
/**
|
|
2477
2541
|
* Generated bundle index. Do not edit.
|
|
2478
2542
|
*/
|
|
2479
2543
|
|
|
2480
|
-
export { ALAIN_I18N_TOKEN, ALAIN_SETTING_KEYS, AlainI18NServiceFake, AlainI18nBaseService, AlainThemeModule, BaseApi, BaseHeaders, BaseUrl, Body, DELETE, DELON_LOCALE, DELON_LOCALE_SERVICE_PROVIDER, DELON_LOCALE_SERVICE_PROVIDER_FACTORY, DatePipe, DelonLocaleModule, DelonLocaleService, DrawerHelper, FORM, GET, HEAD, HTMLPipe, HTML_DIR, Headers, JSONP, KeysPipe, LTR, MenuService, ModalHelper, OPTIONS, PATCH, POST, PUT, Path, Payload, PreloadOptionalModules, Query, REP_MAX, RTL, RTLService, RTL_DELON_COMPONENTS, RTL_DIRECTION, RTL_NZ_COMPONENTS, ResponsiveService, SettingsService, TitleService, URLPipe, VERSION, YNPipe, _HttpClient, 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
|
|
2481
|
-
//# sourceMappingURL=theme.
|
|
2544
|
+
export { ALAIN_I18N_TOKEN, ALAIN_SETTING_KEYS, AlainI18NServiceFake, AlainI18nBaseService, AlainThemeModule, BaseApi, BaseHeaders, BaseUrl, Body, DELETE, DELON_LOCALE, DELON_LOCALE_SERVICE_PROVIDER, DELON_LOCALE_SERVICE_PROVIDER_FACTORY, DatePipe, DelonLocaleModule, DelonLocaleService, DrawerHelper, FORM, GET, HEAD, HTMLPipe, HTML_DIR, Headers, I18nPipe, JSONP, KeysPipe, LTR, MenuService, ModalHelper, OPTIONS, PATCH, POST, PUT, Path, Payload, PreloadOptionalModules, Query, REP_MAX, RTL, RTLService, RTL_DELON_COMPONENTS, RTL_DIRECTION, RTL_NZ_COMPONENTS, ResponsiveService, SettingsService, TitleService, URLPipe, VERSION, YNPipe, _HttpClient, 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 };
|
|
2545
|
+
//# sourceMappingURL=theme.mjs.map
|