@delon/theme 12.1.1 → 12.2.3
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/bundles/layout-blank.umd.js +3 -3
- package/bundles/layout-default.umd.js +4 -4
- package/bundles/layout-theme-btn.umd.js +4 -4
- package/bundles/setting-drawer.umd.js +4 -4
- package/bundles/theme.umd.js +55 -25
- package/bundles/theme.umd.js.map +1 -1
- package/compact.css +16 -7
- package/compact.min.css +1 -1
- package/dark.css +16 -7
- package/dark.min.css +1 -1
- package/default.css +16 -7
- package/default.min.css +1 -1
- package/esm2015/public_api.js +2 -1
- package/esm2015/src/router/optional-preloader.js +23 -0
- package/esm2015/src/services/i18n/i18n.js +15 -6
- package/esm2015/src/version.js +1 -1
- package/fesm2015/theme.js +43 -15
- package/fesm2015/theme.js.map +1 -1
- package/package.json +3 -3
- package/public_api.d.ts +1 -0
- package/src/router/optional-preloader.d.ts +20 -0
- package/src/services/i18n/i18n.d.ts +3 -0
- package/system/antd/_table.less +26 -15
- package/system/theme-default.less +1 -0
- package/theme.metadata.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license ng-alain(cipchk@qq.com) v12.
|
|
2
|
+
* @license ng-alain(cipchk@qq.com) v12.2.3
|
|
3
3
|
* (c) 2020 cipchk https://ng-alain.com/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
(function (factory) {
|
|
7
7
|
typeof define === 'function' && define.amd ? define('@delon/theme/layout-blank', factory) :
|
|
8
8
|
factory();
|
|
9
|
-
}((function () { 'use strict';
|
|
9
|
+
})((function () { 'use strict';
|
|
10
10
|
|
|
11
11
|
// https://github.com/ng-packagr/ng-packagr/issues/1655
|
|
12
12
|
var public_api = void 0;
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
* Generated bundle index. Do not edit.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
}))
|
|
18
|
+
}));
|
|
19
19
|
//# sourceMappingURL=layout-blank.umd.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license ng-alain(cipchk@qq.com) v12.
|
|
2
|
+
* @license ng-alain(cipchk@qq.com) v12.2.3
|
|
3
3
|
* (c) 2020 cipchk https://ng-alain.com/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/router'), require('rxjs'), require('rxjs/operators'), require('@delon/theme'), require('@delon/util/browser'), require('ng-zorro-antd/message'), require('ng-zorro-antd/avatar'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/icon'), require('ng-zorro-antd/tooltip'), require('@angular/cdk/bidi'), require('@angular/platform-browser'), require('@delon/util/decorator'), require('@delon/util/token')) :
|
|
8
8
|
typeof define === 'function' && define.amd ? define('@delon/theme/layout-default', ['exports', '@angular/common', '@angular/core', '@angular/router', 'rxjs', 'rxjs/operators', '@delon/theme', '@delon/util/browser', 'ng-zorro-antd/message', 'ng-zorro-antd/avatar', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/icon', 'ng-zorro-antd/tooltip', '@angular/cdk/bidi', '@angular/platform-browser', '@delon/util/decorator', '@delon/util/token'], factory) :
|
|
9
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.theme = global.delon.theme || {}, global.delon.theme[
|
|
10
|
-
}(this, (function (exports, common, core, router, rxjs, operators, theme, browser, message, avatar, dropdown, icon, tooltip, bidi, platformBrowser, decorator, token) { 'use strict';
|
|
9
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.theme = global.delon.theme || {}, global.delon.theme["layout-default"] = {}), global.ng.common, global.ng.core, global.ng.router, global.rxjs, global.rxjs.operators, global.delon.theme, global.browser, global.message, global.avatar, global.dropdown, global.icon, global.tooltip, global.ng.cdk.bidi, global.ng.platformBrowser, global.decorator, global.token));
|
|
10
|
+
})(this, (function (exports, common, core, router, rxjs, operators, theme, browser, message, avatar, dropdown, icon, tooltip, bidi, platformBrowser, decorator, token) { 'use strict';
|
|
11
11
|
|
|
12
12
|
var LayoutDefaultHeaderItemComponent = /** @class */ (function () {
|
|
13
13
|
function LayoutDefaultHeaderItemComponent() {
|
|
@@ -861,5 +861,5 @@
|
|
|
861
861
|
|
|
862
862
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
863
863
|
|
|
864
|
-
}))
|
|
864
|
+
}));
|
|
865
865
|
//# sourceMappingURL=layout-default.umd.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license ng-alain(cipchk@qq.com) v12.
|
|
2
|
+
* @license ng-alain(cipchk@qq.com) v12.2.3
|
|
3
3
|
* (c) 2020 cipchk https://ng-alain.com/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/bidi'), require('@angular/cdk/platform'), require('@angular/common'), require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@delon/util/config'), require('ng-zorro-antd/dropdown'), require('ng-zorro-antd/tooltip')) :
|
|
8
8
|
typeof define === 'function' && define.amd ? define('@delon/theme/theme-btn', ['exports', '@angular/cdk/bidi', '@angular/cdk/platform', '@angular/common', '@angular/core', 'rxjs', 'rxjs/operators', '@delon/util/config', 'ng-zorro-antd/dropdown', 'ng-zorro-antd/tooltip'], factory) :
|
|
9
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.theme = global.delon.theme || {}, global.delon.theme[
|
|
10
|
-
}(this, (function (exports, bidi, platform, common, core, rxjs, operators, config, dropdown, tooltip) { 'use strict';
|
|
9
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.theme = global.delon.theme || {}, global.delon.theme["theme-btn"] = {}), global.ng.cdk.bidi, global.ng.cdk.platform, global.ng.common, global.ng.core, global.rxjs, global.rxjs.operators, global.config, global.dropdown, global.tooltip));
|
|
10
|
+
})(this, (function (exports, bidi, platform, common, core, rxjs, operators, config, dropdown, tooltip) { 'use strict';
|
|
11
11
|
|
|
12
12
|
var ALAIN_THEME_BTN_KEYS = new core.InjectionToken('ALAIN_THEME_BTN_KEYS');
|
|
13
13
|
var ThemeBtnComponent = /** @class */ (function () {
|
|
@@ -137,5 +137,5 @@
|
|
|
137
137
|
|
|
138
138
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
139
139
|
|
|
140
|
-
}))
|
|
140
|
+
}));
|
|
141
141
|
//# sourceMappingURL=layout-theme-btn.umd.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license ng-alain(cipchk@qq.com) v12.
|
|
2
|
+
* @license ng-alain(cipchk@qq.com) v12.2.3
|
|
3
3
|
* (c) 2020 cipchk https://ng-alain.com/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/cdk/bidi'), require('@angular/common'), require('rxjs'), require('rxjs/operators'), require('@delon/theme'), require('@delon/util/browser'), require('@delon/util/decorator'), require('@delon/util/other'), require('ng-zorro-antd/message'), require('@angular/forms'), require('ng-zorro-antd/alert'), require('ng-zorro-antd/button'), require('ng-zorro-antd/divider'), require('ng-zorro-antd/drawer'), require('ng-zorro-antd/icon'), require('ng-zorro-antd/input'), require('ng-zorro-antd/input-number'), require('ng-zorro-antd/switch'), require('ng-zorro-antd/tabs'), require('ng-zorro-antd/tooltip')) :
|
|
8
8
|
typeof define === 'function' && define.amd ? define('@delon/theme/setting-drawer', ['exports', '@angular/core', '@angular/cdk/bidi', '@angular/common', 'rxjs', 'rxjs/operators', '@delon/theme', '@delon/util/browser', '@delon/util/decorator', '@delon/util/other', 'ng-zorro-antd/message', '@angular/forms', 'ng-zorro-antd/alert', 'ng-zorro-antd/button', 'ng-zorro-antd/divider', 'ng-zorro-antd/drawer', 'ng-zorro-antd/icon', 'ng-zorro-antd/input', 'ng-zorro-antd/input-number', 'ng-zorro-antd/switch', 'ng-zorro-antd/tabs', 'ng-zorro-antd/tooltip'], factory) :
|
|
9
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.theme = global.delon.theme || {}, global.delon.theme[
|
|
10
|
-
}(this, (function (exports, core, bidi, common, rxjs, operators, theme, browser, decorator, other, message, forms, alert, button, divider, drawer, icon, input, inputNumber, _switch, tabs, tooltip) { 'use strict';
|
|
9
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.theme = global.delon.theme || {}, global.delon.theme["setting-drawer"] = {}), global.ng.core, global.ng.cdk.bidi, global.ng.common, global.rxjs, global.rxjs.operators, global.delon.theme, global.browser, global.decorator, global.other, global.message, global.ng.forms, global.alert, global.button, global.divider, global.drawer, global.icon, global.input, global.inputNumber, global._switch, global.tabs, global.tooltip));
|
|
10
|
+
})(this, (function (exports, core, bidi, common, rxjs, operators, theme, browser, decorator, other, message, forms, alert, button, divider, drawer, icon, input, inputNumber, _switch, tabs, tooltip) { 'use strict';
|
|
11
11
|
|
|
12
12
|
var SettingDrawerItemComponent = /** @class */ (function () {
|
|
13
13
|
function SettingDrawerItemComponent() {
|
|
@@ -785,5 +785,5 @@
|
|
|
785
785
|
|
|
786
786
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
787
787
|
|
|
788
|
-
}))
|
|
788
|
+
}));
|
|
789
789
|
//# sourceMappingURL=setting-drawer.umd.js.map
|
package/bundles/theme.umd.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license ng-alain(cipchk@qq.com) v12.
|
|
2
|
+
* @license ng-alain(cipchk@qq.com) v12.2.3
|
|
3
3
|
* (c) 2020 cipchk https://ng-alain.com/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
|
7
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@delon/acl'), require('@
|
|
8
|
-
typeof define === 'function' && define.amd ? define('@delon/theme', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@delon/acl', '@
|
|
9
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.theme = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.delon.acl, global.
|
|
10
|
-
}(this, (function (exports, i0, rxjs, operators, i2, i1, i1$1, i1$2, i6, i3, i1$3, router, other, i1$4, i1$5, i1$6, dateFns, dateTime, i18n, overlay, icons, icon) { 'use strict';
|
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@delon/acl'), require('@delon/util/config'), require('@angular/cdk/platform'), require('@angular/cdk/bidi'), require('@angular/common'), require('ng-zorro-antd/core/config'), require('@angular/platform-browser'), require('@angular/router'), require('@delon/util/other'), require('ng-zorro-antd/modal'), require('ng-zorro-antd/drawer'), require('@angular/common/http'), require('date-fns'), require('@delon/util/date-time'), require('ng-zorro-antd/i18n'), require('@angular/cdk/overlay'), require('@ant-design/icons-angular/icons'), require('ng-zorro-antd/icon')) :
|
|
8
|
+
typeof define === 'function' && define.amd ? define('@delon/theme', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@delon/acl', '@delon/util/config', '@angular/cdk/platform', '@angular/cdk/bidi', '@angular/common', 'ng-zorro-antd/core/config', '@angular/platform-browser', '@angular/router', '@delon/util/other', 'ng-zorro-antd/modal', 'ng-zorro-antd/drawer', '@angular/common/http', 'date-fns', '@delon/util/date-time', 'ng-zorro-antd/i18n', '@angular/cdk/overlay', '@ant-design/icons-angular/icons', 'ng-zorro-antd/icon'], factory) :
|
|
9
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.delon = global.delon || {}, global.delon.theme = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.delon.acl, global.delon.util.config, global.ng.cdk.platform, global.ng.cdk.bidi, global.ng.common, global.i3, global.ng.platformBrowser, global.ng.router, global.delon.util.other, global["ng-zorro-antd/modal"], global["ng-zorro-antd/drawer"], global.ng.common.http, global.DateFns, global.delon.util["date-time"], global["ng-zorro-antd/i18n"], global.ng.cdk.overlay, global.icons, global["ng-zorro-antd/icon"]));
|
|
10
|
+
})(this, (function (exports, i0, rxjs, operators, i2, i1, i1$1, i1$2, i6, i3, i1$3, router, other, i1$4, i1$5, i1$6, dateFns, dateTime, i18n, overlay, icons, icon) { 'use strict';
|
|
11
11
|
|
|
12
12
|
function _interopNamespace(e) {
|
|
13
13
|
if (e && e.__esModule) return e;
|
|
@@ -18,14 +18,12 @@
|
|
|
18
18
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
19
19
|
Object.defineProperty(n, k, d.get ? d : {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () {
|
|
22
|
-
return e[k];
|
|
23
|
-
}
|
|
21
|
+
get: function () { return e[k]; }
|
|
24
22
|
});
|
|
25
23
|
}
|
|
26
24
|
});
|
|
27
25
|
}
|
|
28
|
-
n[
|
|
26
|
+
n["default"] = e;
|
|
29
27
|
return Object.freeze(n);
|
|
30
28
|
}
|
|
31
29
|
|
|
@@ -382,14 +380,17 @@
|
|
|
382
380
|
|
|
383
381
|
var ALAIN_I18N_TOKEN = new i0.InjectionToken('alainI18nToken', {
|
|
384
382
|
providedIn: 'root',
|
|
385
|
-
factory: function () { return new AlainI18NServiceFake(); }
|
|
383
|
+
factory: function () { return new AlainI18NServiceFake(i0.inject(i1.AlainConfigService)); }
|
|
386
384
|
});
|
|
387
385
|
var AlainI18nBaseService = /** @class */ (function () {
|
|
388
|
-
function AlainI18nBaseService() {
|
|
386
|
+
function AlainI18nBaseService(cogSrv) {
|
|
389
387
|
this._change$ = new rxjs.BehaviorSubject(null);
|
|
390
388
|
this._currentLang = '';
|
|
391
389
|
this._defaultLang = '';
|
|
392
390
|
this._data = {};
|
|
391
|
+
this.cog = cogSrv.merge('themeI18n', {
|
|
392
|
+
interpolation: ['{{', '}}']
|
|
393
|
+
});
|
|
393
394
|
}
|
|
394
395
|
Object.defineProperty(AlainI18nBaseService.prototype, "change", {
|
|
395
396
|
get: function () {
|
|
@@ -424,7 +425,8 @@
|
|
|
424
425
|
if (!content)
|
|
425
426
|
return path;
|
|
426
427
|
if (params) {
|
|
427
|
-
|
|
428
|
+
var interpolation_1 = this.cog.interpolation;
|
|
429
|
+
Object.keys(params).forEach(function (key) { return (content = content.replace(new RegExp(interpolation_1[0] + "s?" + key + "s?" + interpolation_1[1], 'g'), "" + params[key])); });
|
|
428
430
|
}
|
|
429
431
|
return content;
|
|
430
432
|
};
|
|
@@ -433,6 +435,9 @@
|
|
|
433
435
|
AlainI18nBaseService.decorators = [
|
|
434
436
|
{ type: i0.Injectable }
|
|
435
437
|
];
|
|
438
|
+
AlainI18nBaseService.ctorParameters = function () { return [
|
|
439
|
+
{ type: i1.AlainConfigService }
|
|
440
|
+
]; };
|
|
436
441
|
var AlainI18NServiceFake = /** @class */ (function (_super) {
|
|
437
442
|
__extends(AlainI18NServiceFake, _super);
|
|
438
443
|
function AlainI18NServiceFake() {
|
|
@@ -448,7 +453,7 @@
|
|
|
448
453
|
};
|
|
449
454
|
return AlainI18NServiceFake;
|
|
450
455
|
}(AlainI18nBaseService));
|
|
451
|
-
AlainI18NServiceFake.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AlainI18NServiceFake_Factory() { return new AlainI18NServiceFake(); }, token: AlainI18NServiceFake, providedIn: "root" });
|
|
456
|
+
AlainI18NServiceFake.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AlainI18NServiceFake_Factory() { return new AlainI18NServiceFake(i0__namespace.ɵɵinject(i1__namespace.AlainConfigService)); }, token: AlainI18NServiceFake, providedIn: "root" });
|
|
452
457
|
AlainI18NServiceFake.decorators = [
|
|
453
458
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
454
459
|
];
|
|
@@ -808,12 +813,12 @@
|
|
|
808
813
|
};
|
|
809
814
|
return SettingsService;
|
|
810
815
|
}());
|
|
811
|
-
SettingsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SettingsService_Factory() { return new SettingsService(i0__namespace.ɵɵinject(i1__namespace.Platform), i0__namespace.ɵɵinject(ALAIN_SETTING_KEYS)); }, token: SettingsService, providedIn: "root" });
|
|
816
|
+
SettingsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SettingsService_Factory() { return new SettingsService(i0__namespace.ɵɵinject(i1__namespace$1.Platform), i0__namespace.ɵɵinject(ALAIN_SETTING_KEYS)); }, token: SettingsService, providedIn: "root" });
|
|
812
817
|
SettingsService.decorators = [
|
|
813
818
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
814
819
|
];
|
|
815
820
|
SettingsService.ctorParameters = function () { return [
|
|
816
|
-
{ type: i1.Platform },
|
|
821
|
+
{ type: i1$1.Platform },
|
|
817
822
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ALAIN_SETTING_KEYS,] }] }
|
|
818
823
|
]; };
|
|
819
824
|
|
|
@@ -854,12 +859,12 @@
|
|
|
854
859
|
};
|
|
855
860
|
return ResponsiveService;
|
|
856
861
|
}());
|
|
857
|
-
ResponsiveService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ResponsiveService_Factory() { return new ResponsiveService(i0__namespace.ɵɵinject(i1__namespace
|
|
862
|
+
ResponsiveService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ResponsiveService_Factory() { return new ResponsiveService(i0__namespace.ɵɵinject(i1__namespace.AlainConfigService)); }, token: ResponsiveService, providedIn: "root" });
|
|
858
863
|
ResponsiveService.decorators = [
|
|
859
864
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
860
865
|
];
|
|
861
866
|
ResponsiveService.ctorParameters = function () { return [
|
|
862
|
-
{ type: i1
|
|
867
|
+
{ type: i1.AlainConfigService }
|
|
863
868
|
]; };
|
|
864
869
|
|
|
865
870
|
var HTML_DIR = 'dir';
|
|
@@ -959,7 +964,7 @@
|
|
|
959
964
|
};
|
|
960
965
|
return RTLService;
|
|
961
966
|
}());
|
|
962
|
-
RTLService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function RTLService_Factory() { return new RTLService(i0__namespace.ɵɵinject(i1__namespace$2.Directionality), i0__namespace.ɵɵinject(SettingsService), i0__namespace.ɵɵinject(i3__namespace.NzConfigService), i0__namespace.ɵɵinject(i1__namespace
|
|
967
|
+
RTLService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function RTLService_Factory() { return new RTLService(i0__namespace.ɵɵinject(i1__namespace$2.Directionality), i0__namespace.ɵɵinject(SettingsService), i0__namespace.ɵɵinject(i3__namespace.NzConfigService), i0__namespace.ɵɵinject(i1__namespace.AlainConfigService), i0__namespace.ɵɵinject(i1__namespace$1.Platform), i0__namespace.ɵɵinject(i6__namespace.DOCUMENT)); }, token: RTLService, providedIn: "root" });
|
|
963
968
|
RTLService.decorators = [
|
|
964
969
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
965
970
|
];
|
|
@@ -967,8 +972,8 @@
|
|
|
967
972
|
{ type: i1$2.Directionality },
|
|
968
973
|
{ type: SettingsService },
|
|
969
974
|
{ type: i3.NzConfigService },
|
|
970
|
-
{ type: i1
|
|
971
|
-
{ type: i1.Platform },
|
|
975
|
+
{ type: i1.AlainConfigService },
|
|
976
|
+
{ type: i1$1.Platform },
|
|
972
977
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [i6.DOCUMENT,] }] }
|
|
973
978
|
]; };
|
|
974
979
|
|
|
@@ -2449,13 +2454,13 @@
|
|
|
2449
2454
|
};
|
|
2450
2455
|
return _HttpClient;
|
|
2451
2456
|
}());
|
|
2452
|
-
_HttpClient.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function _HttpClient_Factory() { return new _HttpClient(i0__namespace.ɵɵinject(i1__namespace$6.HttpClient), i0__namespace.ɵɵinject(i1__namespace
|
|
2457
|
+
_HttpClient.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function _HttpClient_Factory() { return new _HttpClient(i0__namespace.ɵɵinject(i1__namespace$6.HttpClient), i0__namespace.ɵɵinject(i1__namespace.AlainConfigService)); }, token: _HttpClient, providedIn: "root" });
|
|
2453
2458
|
_HttpClient.decorators = [
|
|
2454
2459
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2455
2460
|
];
|
|
2456
2461
|
_HttpClient.ctorParameters = function () { return [
|
|
2457
2462
|
{ type: i1$6.HttpClient },
|
|
2458
|
-
{ type: i1
|
|
2463
|
+
{ type: i1.AlainConfigService }
|
|
2459
2464
|
]; };
|
|
2460
2465
|
|
|
2461
2466
|
/**
|
|
@@ -2839,7 +2844,31 @@
|
|
|
2839
2844
|
{ type: icon.NzIconService }
|
|
2840
2845
|
]; };
|
|
2841
2846
|
|
|
2842
|
-
|
|
2847
|
+
/**
|
|
2848
|
+
* 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).
|
|
2849
|
+
*
|
|
2850
|
+
* 可选预加载模块,当需要对某些懒路由在第一次页面加载时也一并加载该资源时,[示例](https://github.com/ng-alain/ng-alain/blob/master/src/app/routes/routes-routing.module.ts)。
|
|
2851
|
+
*
|
|
2852
|
+
* @example
|
|
2853
|
+
* {AT}NgModule({
|
|
2854
|
+
* providers: [PreloadOptionalModules],
|
|
2855
|
+
* imports: [
|
|
2856
|
+
* RouterModule.forRoot([
|
|
2857
|
+
* { path: '', loadChildren: null, data: { preload: true } }
|
|
2858
|
+
* ], { preloadingStrategy: PreloadOptionalModules})]
|
|
2859
|
+
* })
|
|
2860
|
+
*/
|
|
2861
|
+
var PreloadOptionalModules = /** @class */ (function () {
|
|
2862
|
+
function PreloadOptionalModules() {
|
|
2863
|
+
}
|
|
2864
|
+
PreloadOptionalModules.prototype.preload = function (route, fn) {
|
|
2865
|
+
var _a;
|
|
2866
|
+
return ((_a = route.data) === null || _a === void 0 ? void 0 : _a.preload) === true ? fn().pipe(operators.catchError(function () { return rxjs.of(null); })) : rxjs.of(null);
|
|
2867
|
+
};
|
|
2868
|
+
return PreloadOptionalModules;
|
|
2869
|
+
}());
|
|
2870
|
+
|
|
2871
|
+
var VERSION = new i0.Version('12.2.3');
|
|
2843
2872
|
|
|
2844
2873
|
/**
|
|
2845
2874
|
* Generated bundle index. Do not edit.
|
|
@@ -2879,6 +2908,7 @@
|
|
|
2879
2908
|
exports.PUT = PUT;
|
|
2880
2909
|
exports.Path = Path;
|
|
2881
2910
|
exports.Payload = Payload;
|
|
2911
|
+
exports.PreloadOptionalModules = PreloadOptionalModules;
|
|
2882
2912
|
exports.Query = Query;
|
|
2883
2913
|
exports.REP_MAX = REP_MAX;
|
|
2884
2914
|
exports.RTL = RTL;
|
|
@@ -2906,9 +2936,9 @@
|
|
|
2906
2936
|
exports.tr_TR = trTR;
|
|
2907
2937
|
exports.zh_CN = zhCN;
|
|
2908
2938
|
exports.zh_TW = zhTW;
|
|
2909
|
-
exports
|
|
2939
|
+
exports["ɵa"] = I18nPipe;
|
|
2910
2940
|
|
|
2911
2941
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2912
2942
|
|
|
2913
|
-
}))
|
|
2943
|
+
}));
|
|
2914
2944
|
//# sourceMappingURL=theme.umd.js.map
|