@volosoft/abp.ng.theme.lepton-x 1.0.0-alpha.2 → 1.0.0-beta.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/README.md +1 -1
- package/account/account/account-layout.component.d.ts +3 -1
- package/account/account/account-layout.module.d.ts +15 -3
- package/account/account/components/auth-wrapper/auth-wrapper.component.d.ts +4 -4
- package/account/account/components/index.d.ts +0 -1
- package/account/account/components/tenant-box/tenant-box.component.d.ts +3 -1
- package/account/account/index.d.ts +0 -1
- package/account/index.d.ts +1 -0
- package/account/package.json +5 -6
- package/account/volosoft-abp.ng.theme.lepton-x-account.d.ts +2 -2
- package/assets/css/abp-bundle.css +159 -0
- package/esm2020/account/account/account-layout.component.mjs +19 -0
- package/esm2020/account/account/account-layout.module.mjs +73 -0
- package/esm2020/account/account/components/auth-wrapper/auth-wrapper.component.mjs +20 -0
- package/esm2020/account/account/components/index.mjs +3 -0
- package/esm2020/account/account/components/tenant-box/tenant-box.component.mjs +20 -0
- package/esm2020/account/account/index.mjs +4 -0
- package/esm2020/account/index.mjs +2 -0
- package/esm2020/account/volosoft-abp.ng.theme.lepton-x-account.mjs +5 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/layouts/index.mjs +2 -0
- package/esm2020/layouts/side-menu/index.mjs +2 -0
- package/esm2020/layouts/side-menu/layout/index.mjs +3 -0
- package/esm2020/layouts/side-menu/layout/side-menu-application-layout.component.mjs +21 -0
- package/esm2020/layouts/side-menu/layout/side-menu-layout.module.mjs +50 -0
- package/esm2020/layouts/volosoft-abp.ng.theme.lepton-x-layouts.mjs +5 -0
- package/esm2020/lib/components/abp-validation-error/abp-validation-error.component.mjs +51 -0
- package/esm2020/lib/components/abp-validation-error/abp-validation-error.module.mjs +39 -0
- package/esm2020/lib/components/abp-validation-error/index.mjs +3 -0
- package/esm2020/lib/components/http-error/http-error.component.mjs +44 -0
- package/esm2020/lib/components/http-error/http-error.module.mjs +25 -0
- package/esm2020/lib/components/http-error/index.mjs +3 -0
- package/esm2020/lib/components/index.mjs +4 -0
- package/esm2020/lib/components/page-alert-container/index.mjs +3 -0
- package/esm2020/lib/components/page-alert-container/page-alert-container.component.mjs +18 -0
- package/esm2020/lib/components/page-alert-container/page-alert-container.module.mjs +19 -0
- package/esm2020/lib/enums/components.mjs +2 -0
- package/esm2020/lib/enums/index.mjs +2 -0
- package/esm2020/lib/index.mjs +5 -0
- package/esm2020/lib/lepton-x.module.mjs +56 -0
- package/esm2020/lib/providers/init-service.provider.mjs +19 -0
- package/esm2020/lib/providers/page-render.provider.mjs +7 -0
- package/esm2020/lib/providers/style.provider.mjs +18 -0
- package/esm2020/lib/providers/translate.provider.mjs +7 -0
- package/esm2020/lib/services/abp-auth.service.mjs +23 -0
- package/esm2020/lib/services/abp-settings.service.mjs +136 -0
- package/esm2020/lib/services/abp-toolbar.service.mjs +32 -0
- package/esm2020/lib/services/abp-translate.service.mjs +24 -0
- package/esm2020/lib/services/index.mjs +6 -0
- package/esm2020/lib/services/page-render-strategy.service.mjs +14 -0
- package/esm2020/styles/index.mjs +2 -0
- package/esm2020/styles/lib/handler/index.mjs +2 -0
- package/esm2020/styles/lib/handler/style-load.handler.mjs +17 -0
- package/esm2020/styles/lib/index.mjs +2 -0
- package/esm2020/styles/volosoft-abp.ng.theme.lepton-x-styles.mjs +5 -0
- package/esm2020/volosoft-abp.ng.theme.lepton-x.mjs +5 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.mjs +123 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.mjs.map +1 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.mjs +75 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.mjs.map +1 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-styles.mjs +23 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-styles.mjs.map +1 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x.mjs +469 -0
- package/fesm2015/volosoft-abp.ng.theme.lepton-x.mjs.map +1 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-account.mjs +123 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-account.mjs.map +1 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-layouts.mjs +75 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-layouts.mjs.map +1 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-styles.mjs +23 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x-styles.mjs.map +1 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x.mjs +476 -0
- package/fesm2020/volosoft-abp.ng.theme.lepton-x.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/layouts/index.d.ts +1 -0
- package/layouts/package.json +5 -6
- package/layouts/side-menu/index.d.ts +0 -1
- package/layouts/side-menu/layout/index.d.ts +0 -1
- package/layouts/side-menu/layout/side-menu-application-layout.component.d.ts +9 -10
- package/layouts/side-menu/layout/side-menu-layout.module.d.ts +10 -3
- package/layouts/volosoft-abp.ng.theme.lepton-x-layouts.d.ts +2 -2
- package/lib/components/abp-validation-error/abp-validation-error.component.d.ts +3 -1
- package/lib/components/abp-validation-error/abp-validation-error.module.d.ts +8 -1
- package/lib/components/abp-validation-error/index.d.ts +0 -1
- package/lib/components/http-error/http-error.component.d.ts +10 -0
- package/lib/components/http-error/http-error.module.d.ts +13 -0
- package/lib/components/http-error/index.d.ts +2 -0
- package/lib/components/index.d.ts +1 -1
- package/lib/components/page-alert-container/index.d.ts +0 -1
- package/lib/components/page-alert-container/page-alert-container.component.d.ts +3 -1
- package/lib/components/page-alert-container/page-alert-container.module.d.ts +7 -1
- package/lib/enums/components.d.ts +1 -2
- package/lib/enums/index.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/lepton-x.module.d.ts +9 -10
- package/lib/providers/init-service.provider.d.ts +6 -0
- package/lib/providers/page-render.provider.d.ts +2 -0
- package/lib/providers/style.provider.d.ts +3 -0
- package/lib/providers/translate.provider.d.ts +2 -0
- package/lib/services/abp-auth.service.d.ts +12 -0
- package/lib/services/abp-settings.service.d.ts +9 -3
- package/lib/services/abp-toolbar.service.d.ts +3 -1
- package/lib/services/abp-translate.service.d.ts +12 -0
- package/lib/services/index.d.ts +2 -2
- package/lib/services/page-render-strategy.service.d.ts +3 -2
- package/package.json +68 -16
- package/styles/index.d.ts +1 -0
- package/styles/lib/handler/index.d.ts +1 -0
- package/styles/lib/handler/style-load.handler.d.ts +3 -0
- package/styles/lib/index.d.ts +1 -0
- package/styles/package.json +10 -0
- package/styles/volosoft-abp.ng.theme.lepton-x-styles.d.ts +5 -0
- package/volosoft-abp.ng.theme.lepton-x.d.ts +2 -2
- package/account/account/account-layout.component.d.ts.map +0 -1
- package/account/account/account-layout.module.d.ts.map +0 -1
- package/account/account/components/auth-wrapper/auth-wrapper.component.d.ts.map +0 -1
- package/account/account/components/index.d.ts.map +0 -1
- package/account/account/components/tenant-box/tenant-box.component.d.ts.map +0 -1
- package/account/account/index.d.ts.map +0 -1
- package/account/public-api.d.ts +0 -2
- package/account/public-api.d.ts.map +0 -1
- package/account/volosoft-abp.ng.theme.lepton-x-account.d.ts.map +0 -1
- package/account/volosoft-abp.ng.theme.lepton-x-account.metadata.json +0 -1
- package/bundles/volosoft-abp.ng.theme.lepton-x-account.umd.js +0 -115
- package/bundles/volosoft-abp.ng.theme.lepton-x-account.umd.js.map +0 -1
- package/bundles/volosoft-abp.ng.theme.lepton-x-layouts.umd.js +0 -74
- package/bundles/volosoft-abp.ng.theme.lepton-x-layouts.umd.js.map +0 -1
- package/bundles/volosoft-abp.ng.theme.lepton-x.umd.js +0 -746
- package/bundles/volosoft-abp.ng.theme.lepton-x.umd.js.map +0 -1
- package/esm2015/account/account/account-layout.component.js +0 -13
- package/esm2015/account/account/account-layout.module.js +0 -50
- package/esm2015/account/account/components/auth-wrapper/auth-wrapper.component.js +0 -23
- package/esm2015/account/account/components/index.js +0 -3
- package/esm2015/account/account/components/tenant-box/tenant-box.component.js +0 -18
- package/esm2015/account/account/index.js +0 -4
- package/esm2015/account/public-api.js +0 -2
- package/esm2015/account/volosoft-abp.ng.theme.lepton-x-account.js +0 -5
- package/esm2015/layouts/public-api.js +0 -2
- package/esm2015/layouts/side-menu/index.js +0 -2
- package/esm2015/layouts/side-menu/layout/index.js +0 -3
- package/esm2015/layouts/side-menu/layout/side-menu-application-layout.component.js +0 -19
- package/esm2015/layouts/side-menu/layout/side-menu-layout.module.js +0 -39
- package/esm2015/layouts/volosoft-abp.ng.theme.lepton-x-layouts.js +0 -5
- package/esm2015/lib/components/abp-validation-error/abp-validation-error.component.js +0 -35
- package/esm2015/lib/components/abp-validation-error/abp-validation-error.module.js +0 -34
- package/esm2015/lib/components/abp-validation-error/index.js +0 -3
- package/esm2015/lib/components/index.js +0 -3
- package/esm2015/lib/components/page-alert-container/index.js +0 -3
- package/esm2015/lib/components/page-alert-container/page-alert-container.component.js +0 -17
- package/esm2015/lib/components/page-alert-container/page-alert-container.module.js +0 -14
- package/esm2015/lib/enums/components.js +0 -2
- package/esm2015/lib/enums/index.js +0 -2
- package/esm2015/lib/index.js +0 -5
- package/esm2015/lib/lepton-x.module.js +0 -104
- package/esm2015/lib/services/abp-navbar.service.js +0 -43
- package/esm2015/lib/services/abp-settings.service.js +0 -101
- package/esm2015/lib/services/abp-toolbar.service.js +0 -35
- package/esm2015/lib/services/index.js +0 -5
- package/esm2015/lib/services/page-render-strategy.service.js +0 -13
- package/esm2015/public-api.js +0 -2
- package/esm2015/volosoft-abp.ng.theme.lepton-x.js +0 -5
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.js +0 -104
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-account.js.map +0 -1
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.js +0 -63
- package/fesm2015/volosoft-abp.ng.theme.lepton-x-layouts.js.map +0 -1
- package/fesm2015/volosoft-abp.ng.theme.lepton-x.js +0 -371
- package/fesm2015/volosoft-abp.ng.theme.lepton-x.js.map +0 -1
- package/layouts/public-api.d.ts +0 -2
- package/layouts/public-api.d.ts.map +0 -1
- package/layouts/side-menu/index.d.ts.map +0 -1
- package/layouts/side-menu/layout/index.d.ts.map +0 -1
- package/layouts/side-menu/layout/side-menu-application-layout.component.d.ts.map +0 -1
- package/layouts/side-menu/layout/side-menu-layout.module.d.ts.map +0 -1
- package/layouts/volosoft-abp.ng.theme.lepton-x-layouts.d.ts.map +0 -1
- package/layouts/volosoft-abp.ng.theme.lepton-x-layouts.metadata.json +0 -1
- package/lib/components/abp-validation-error/abp-validation-error.component.d.ts.map +0 -1
- package/lib/components/abp-validation-error/abp-validation-error.module.d.ts.map +0 -1
- package/lib/components/abp-validation-error/index.d.ts.map +0 -1
- package/lib/components/index.d.ts.map +0 -1
- package/lib/components/page-alert-container/index.d.ts.map +0 -1
- package/lib/components/page-alert-container/page-alert-container.component.d.ts.map +0 -1
- package/lib/components/page-alert-container/page-alert-container.module.d.ts.map +0 -1
- package/lib/enums/components.d.ts.map +0 -1
- package/lib/enums/index.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/lepton-x.module.d.ts.map +0 -1
- package/lib/services/abp-navbar.service.d.ts +0 -12
- package/lib/services/abp-navbar.service.d.ts.map +0 -1
- package/lib/services/abp-settings.service.d.ts.map +0 -1
- package/lib/services/abp-toolbar.service.d.ts.map +0 -1
- package/lib/services/index.d.ts.map +0 -1
- package/lib/services/page-render-strategy.service.d.ts.map +0 -1
- package/public-api.d.ts +0 -2
- package/public-api.d.ts.map +0 -1
- package/styles/ant-tree/_index.scss +0 -16
- package/styles/index.scss +0 -5
- package/styles/legacy-compatible/_index.scss +0 -15
- package/styles/ngx-datatable/_index.scss +0 -41
- package/styles/uppy/_index.scss +0 -23
- package/volosoft-abp.ng.theme.lepton-x.d.ts.map +0 -1
- package/volosoft-abp.ng.theme.lepton-x.metadata.json +0 -1
|
@@ -1,746 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ngx-validate/core'), require('@angular/common'), require('@abp/ng.core'), require('@abp/ng.theme.shared'), require('@volo/ngx-lepton-x.core'), require('rxjs/operators'), require('rxjs'), require('@volo/abp.commercial.ng.ui/config'), require('@volosoft/ngx-lepton-x/layouts'), require('@abp/ng.components/page'), require('@volosoft/ngx-lepton-x')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@volosoft/abp.ng.theme.lepton-x', ['exports', '@angular/core', '@ngx-validate/core', '@angular/common', '@abp/ng.core', '@abp/ng.theme.shared', '@volo/ngx-lepton-x.core', 'rxjs/operators', 'rxjs', '@volo/abp.commercial.ng.ui/config', '@volosoft/ngx-lepton-x/layouts', '@abp/ng.components/page', '@volosoft/ngx-lepton-x'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.volosoft = global.volosoft || {}, global.volosoft.abp = global.volosoft.abp || {}, global.volosoft.abp.ng = global.volosoft.abp.ng || {}, global.volosoft.abp.ng.theme = global.volosoft.abp.ng.theme || {}, global.volosoft.abp.ng.theme['lepton-x'] = {}), global.ng.core, global.core, global.ng.common, global.i1, global.i2, global.i2$1, global.rxjs.operators, global.rxjs, global.i3, global.i1$1, global.page, global.ngxLeptonX));
|
|
5
|
-
}(this, (function (exports, i0, core, common, i1, i2, i2$1, operators, rxjs, i3, i1$1, page, ngxLeptonX) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
29
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
|
|
30
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$1);
|
|
31
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
32
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
33
|
-
|
|
34
|
-
/*! *****************************************************************************
|
|
35
|
-
Copyright (c) Microsoft Corporation.
|
|
36
|
-
|
|
37
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
38
|
-
purpose with or without fee is hereby granted.
|
|
39
|
-
|
|
40
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
41
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
42
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
43
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
44
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
45
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
46
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
47
|
-
***************************************************************************** */
|
|
48
|
-
/* global Reflect, Promise */
|
|
49
|
-
var extendStatics = function (d, b) {
|
|
50
|
-
extendStatics = Object.setPrototypeOf ||
|
|
51
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
52
|
-
function (d, b) { for (var p in b)
|
|
53
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
54
|
-
d[p] = b[p]; };
|
|
55
|
-
return extendStatics(d, b);
|
|
56
|
-
};
|
|
57
|
-
function __extends(d, b) {
|
|
58
|
-
if (typeof b !== "function" && b !== null)
|
|
59
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
60
|
-
extendStatics(d, b);
|
|
61
|
-
function __() { this.constructor = d; }
|
|
62
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
63
|
-
}
|
|
64
|
-
var __assign = function () {
|
|
65
|
-
__assign = Object.assign || function __assign(t) {
|
|
66
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
67
|
-
s = arguments[i];
|
|
68
|
-
for (var p in s)
|
|
69
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
70
|
-
t[p] = s[p];
|
|
71
|
-
}
|
|
72
|
-
return t;
|
|
73
|
-
};
|
|
74
|
-
return __assign.apply(this, arguments);
|
|
75
|
-
};
|
|
76
|
-
function __rest(s, e) {
|
|
77
|
-
var t = {};
|
|
78
|
-
for (var p in s)
|
|
79
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
80
|
-
t[p] = s[p];
|
|
81
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
82
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
83
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
84
|
-
t[p[i]] = s[p[i]];
|
|
85
|
-
}
|
|
86
|
-
return t;
|
|
87
|
-
}
|
|
88
|
-
function __decorate(decorators, target, key, desc) {
|
|
89
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
90
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
91
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
92
|
-
else
|
|
93
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
94
|
-
if (d = decorators[i])
|
|
95
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
96
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
97
|
-
}
|
|
98
|
-
function __param(paramIndex, decorator) {
|
|
99
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
100
|
-
}
|
|
101
|
-
function __metadata(metadataKey, metadataValue) {
|
|
102
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
103
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
104
|
-
}
|
|
105
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
106
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
107
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
108
|
-
function fulfilled(value) { try {
|
|
109
|
-
step(generator.next(value));
|
|
110
|
-
}
|
|
111
|
-
catch (e) {
|
|
112
|
-
reject(e);
|
|
113
|
-
} }
|
|
114
|
-
function rejected(value) { try {
|
|
115
|
-
step(generator["throw"](value));
|
|
116
|
-
}
|
|
117
|
-
catch (e) {
|
|
118
|
-
reject(e);
|
|
119
|
-
} }
|
|
120
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
121
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
function __generator(thisArg, body) {
|
|
125
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
126
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
127
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
128
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
129
|
-
function step(op) {
|
|
130
|
-
if (f)
|
|
131
|
-
throw new TypeError("Generator is already executing.");
|
|
132
|
-
while (_)
|
|
133
|
-
try {
|
|
134
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
135
|
-
return t;
|
|
136
|
-
if (y = 0, t)
|
|
137
|
-
op = [op[0] & 2, t.value];
|
|
138
|
-
switch (op[0]) {
|
|
139
|
-
case 0:
|
|
140
|
-
case 1:
|
|
141
|
-
t = op;
|
|
142
|
-
break;
|
|
143
|
-
case 4:
|
|
144
|
-
_.label++;
|
|
145
|
-
return { value: op[1], done: false };
|
|
146
|
-
case 5:
|
|
147
|
-
_.label++;
|
|
148
|
-
y = op[1];
|
|
149
|
-
op = [0];
|
|
150
|
-
continue;
|
|
151
|
-
case 7:
|
|
152
|
-
op = _.ops.pop();
|
|
153
|
-
_.trys.pop();
|
|
154
|
-
continue;
|
|
155
|
-
default:
|
|
156
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
157
|
-
_ = 0;
|
|
158
|
-
continue;
|
|
159
|
-
}
|
|
160
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
161
|
-
_.label = op[1];
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
165
|
-
_.label = t[1];
|
|
166
|
-
t = op;
|
|
167
|
-
break;
|
|
168
|
-
}
|
|
169
|
-
if (t && _.label < t[2]) {
|
|
170
|
-
_.label = t[2];
|
|
171
|
-
_.ops.push(op);
|
|
172
|
-
break;
|
|
173
|
-
}
|
|
174
|
-
if (t[2])
|
|
175
|
-
_.ops.pop();
|
|
176
|
-
_.trys.pop();
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
179
|
-
op = body.call(thisArg, _);
|
|
180
|
-
}
|
|
181
|
-
catch (e) {
|
|
182
|
-
op = [6, e];
|
|
183
|
-
y = 0;
|
|
184
|
-
}
|
|
185
|
-
finally {
|
|
186
|
-
f = t = 0;
|
|
187
|
-
}
|
|
188
|
-
if (op[0] & 5)
|
|
189
|
-
throw op[1];
|
|
190
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
194
|
-
if (k2 === undefined)
|
|
195
|
-
k2 = k;
|
|
196
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
197
|
-
}) : (function (o, m, k, k2) {
|
|
198
|
-
if (k2 === undefined)
|
|
199
|
-
k2 = k;
|
|
200
|
-
o[k2] = m[k];
|
|
201
|
-
});
|
|
202
|
-
function __exportStar(m, o) {
|
|
203
|
-
for (var p in m)
|
|
204
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
205
|
-
__createBinding(o, m, p);
|
|
206
|
-
}
|
|
207
|
-
function __values(o) {
|
|
208
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
209
|
-
if (m)
|
|
210
|
-
return m.call(o);
|
|
211
|
-
if (o && typeof o.length === "number")
|
|
212
|
-
return {
|
|
213
|
-
next: function () {
|
|
214
|
-
if (o && i >= o.length)
|
|
215
|
-
o = void 0;
|
|
216
|
-
return { value: o && o[i++], done: !o };
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
220
|
-
}
|
|
221
|
-
function __read(o, n) {
|
|
222
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
223
|
-
if (!m)
|
|
224
|
-
return o;
|
|
225
|
-
var i = m.call(o), r, ar = [], e;
|
|
226
|
-
try {
|
|
227
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
228
|
-
ar.push(r.value);
|
|
229
|
-
}
|
|
230
|
-
catch (error) {
|
|
231
|
-
e = { error: error };
|
|
232
|
-
}
|
|
233
|
-
finally {
|
|
234
|
-
try {
|
|
235
|
-
if (r && !r.done && (m = i["return"]))
|
|
236
|
-
m.call(i);
|
|
237
|
-
}
|
|
238
|
-
finally {
|
|
239
|
-
if (e)
|
|
240
|
-
throw e.error;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
return ar;
|
|
244
|
-
}
|
|
245
|
-
/** @deprecated */
|
|
246
|
-
function __spread() {
|
|
247
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
248
|
-
ar = ar.concat(__read(arguments[i]));
|
|
249
|
-
return ar;
|
|
250
|
-
}
|
|
251
|
-
/** @deprecated */
|
|
252
|
-
function __spreadArrays() {
|
|
253
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
254
|
-
s += arguments[i].length;
|
|
255
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
256
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
257
|
-
r[k] = a[j];
|
|
258
|
-
return r;
|
|
259
|
-
}
|
|
260
|
-
function __spreadArray(to, from, pack) {
|
|
261
|
-
if (pack || arguments.length === 2)
|
|
262
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
263
|
-
if (ar || !(i in from)) {
|
|
264
|
-
if (!ar)
|
|
265
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
266
|
-
ar[i] = from[i];
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
return to.concat(ar || from);
|
|
270
|
-
}
|
|
271
|
-
function __await(v) {
|
|
272
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
273
|
-
}
|
|
274
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
275
|
-
if (!Symbol.asyncIterator)
|
|
276
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
277
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
278
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
279
|
-
function verb(n) { if (g[n])
|
|
280
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
281
|
-
function resume(n, v) { try {
|
|
282
|
-
step(g[n](v));
|
|
283
|
-
}
|
|
284
|
-
catch (e) {
|
|
285
|
-
settle(q[0][3], e);
|
|
286
|
-
} }
|
|
287
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
288
|
-
function fulfill(value) { resume("next", value); }
|
|
289
|
-
function reject(value) { resume("throw", value); }
|
|
290
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
291
|
-
resume(q[0][0], q[0][1]); }
|
|
292
|
-
}
|
|
293
|
-
function __asyncDelegator(o) {
|
|
294
|
-
var i, p;
|
|
295
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
296
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
297
|
-
}
|
|
298
|
-
function __asyncValues(o) {
|
|
299
|
-
if (!Symbol.asyncIterator)
|
|
300
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
301
|
-
var m = o[Symbol.asyncIterator], i;
|
|
302
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
303
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
304
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
305
|
-
}
|
|
306
|
-
function __makeTemplateObject(cooked, raw) {
|
|
307
|
-
if (Object.defineProperty) {
|
|
308
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
cooked.raw = raw;
|
|
312
|
-
}
|
|
313
|
-
return cooked;
|
|
314
|
-
}
|
|
315
|
-
;
|
|
316
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
317
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
318
|
-
}) : function (o, v) {
|
|
319
|
-
o["default"] = v;
|
|
320
|
-
};
|
|
321
|
-
function __importStar(mod) {
|
|
322
|
-
if (mod && mod.__esModule)
|
|
323
|
-
return mod;
|
|
324
|
-
var result = {};
|
|
325
|
-
if (mod != null)
|
|
326
|
-
for (var k in mod)
|
|
327
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
328
|
-
__createBinding(result, mod, k);
|
|
329
|
-
__setModuleDefault(result, mod);
|
|
330
|
-
return result;
|
|
331
|
-
}
|
|
332
|
-
function __importDefault(mod) {
|
|
333
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
334
|
-
}
|
|
335
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
336
|
-
if (kind === "a" && !f)
|
|
337
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
338
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
339
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
340
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
341
|
-
}
|
|
342
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
343
|
-
if (kind === "m")
|
|
344
|
-
throw new TypeError("Private method is not writable");
|
|
345
|
-
if (kind === "a" && !f)
|
|
346
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
347
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
348
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
349
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
var AbpValidationErrorComponent = /** @class */ (function (_super) {
|
|
353
|
-
__extends(AbpValidationErrorComponent, _super);
|
|
354
|
-
function AbpValidationErrorComponent() {
|
|
355
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
356
|
-
}
|
|
357
|
-
Object.defineProperty(AbpValidationErrorComponent.prototype, "abpErrors", {
|
|
358
|
-
get: function () {
|
|
359
|
-
if (!this.errors || !this.errors.length) {
|
|
360
|
-
return [];
|
|
361
|
-
}
|
|
362
|
-
return this.errors.map(function (error) {
|
|
363
|
-
if (!error.message) {
|
|
364
|
-
return error;
|
|
365
|
-
}
|
|
366
|
-
var index = error.message.indexOf('[');
|
|
367
|
-
if (index > -1) {
|
|
368
|
-
return Object.assign(Object.assign({}, error), { message: error.message.slice(0, index), interpoliteParams: error.message.slice(index + 1, error.message.length - 1).split(',') });
|
|
369
|
-
}
|
|
370
|
-
return error;
|
|
371
|
-
});
|
|
372
|
-
},
|
|
373
|
-
enumerable: false,
|
|
374
|
-
configurable: true
|
|
375
|
-
});
|
|
376
|
-
return AbpValidationErrorComponent;
|
|
377
|
-
}(core.ValidationErrorComponent));
|
|
378
|
-
AbpValidationErrorComponent.decorators = [
|
|
379
|
-
{ type: i0.Component, args: [{
|
|
380
|
-
selector: 'abp-validation-error',
|
|
381
|
-
// TODO: add validation error class to span
|
|
382
|
-
template: "\n <span class=\"text-danger\" data-valmsg-for=\"Role.Name\" data-valmsg-replace=\"true\"\n ><span *ngFor=\"let error of abpErrors; trackBy: trackByFn\">\n {{ error.message | abpLocalization: error.interpoliteParams }}</span\n ></span\n >\n ",
|
|
383
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
384
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
385
|
-
},] }
|
|
386
|
-
];
|
|
387
|
-
|
|
388
|
-
var AbpValidationErrorModule = /** @class */ (function () {
|
|
389
|
-
function AbpValidationErrorModule() {
|
|
390
|
-
}
|
|
391
|
-
AbpValidationErrorModule.forRoot = function () {
|
|
392
|
-
return {
|
|
393
|
-
ngModule: AbpValidationErrorModule,
|
|
394
|
-
providers: [
|
|
395
|
-
{
|
|
396
|
-
provide: core.VALIDATION_ERROR_TEMPLATE,
|
|
397
|
-
useValue: AbpValidationErrorComponent,
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
provide: core.VALIDATION_INVALID_CLASSES,
|
|
401
|
-
useValue: 'input-validation-error',
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
provide: core.VALIDATION_TARGET_SELECTOR,
|
|
405
|
-
useValue: '.form-control',
|
|
406
|
-
},
|
|
407
|
-
],
|
|
408
|
-
};
|
|
409
|
-
};
|
|
410
|
-
return AbpValidationErrorModule;
|
|
411
|
-
}());
|
|
412
|
-
AbpValidationErrorModule.decorators = [
|
|
413
|
-
{ type: i0.NgModule, args: [{
|
|
414
|
-
declarations: [AbpValidationErrorComponent],
|
|
415
|
-
imports: [common.CommonModule, i1.CoreModule, core.NgxValidateCoreModule],
|
|
416
|
-
exports: [AbpValidationErrorComponent, core.NgxValidateCoreModule],
|
|
417
|
-
},] }
|
|
418
|
-
];
|
|
419
|
-
|
|
420
|
-
var PageAlertContainerComponent = /** @class */ (function () {
|
|
421
|
-
function PageAlertContainerComponent(service) {
|
|
422
|
-
this.service = service;
|
|
423
|
-
}
|
|
424
|
-
return PageAlertContainerComponent;
|
|
425
|
-
}());
|
|
426
|
-
PageAlertContainerComponent.decorators = [
|
|
427
|
-
{ type: i0.Component, args: [{
|
|
428
|
-
selector: 'abp-page-alert-container',
|
|
429
|
-
template: "<ng-container *ngFor=\"let alert of service.alerts$ | async; let i = index\">\n <div\n class=\"alert alert-{{ alert.type }} fade show\"\n [ngClass]=\"{ 'alert-dismissible fade show': alert.dismissible }\"\n role=\"alert\"\n >\n <h4 class=\"alert-heading\" *ngIf=\"alert.title\">\n {{ alert.title | abpLocalization: alert.titleLocalizationParams }}\n </h4>\n {{ alert.message | abpLocalization: alert.messageLocalizationParams }}\n <button\n *ngIf=\"alert.dismissible\"\n type=\"button\"\n class=\"close\"\n data-dismiss=\"alert\"\n aria-label=\"Close\"\n (click)=\"service.remove(i)\"\n >\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n</ng-container>\n"
|
|
430
|
-
},] }
|
|
431
|
-
];
|
|
432
|
-
PageAlertContainerComponent.ctorParameters = function () { return [
|
|
433
|
-
{ type: i2.PageAlertService }
|
|
434
|
-
]; };
|
|
435
|
-
|
|
436
|
-
var PageAlertContainerModule = /** @class */ (function () {
|
|
437
|
-
function PageAlertContainerModule() {
|
|
438
|
-
}
|
|
439
|
-
return PageAlertContainerModule;
|
|
440
|
-
}());
|
|
441
|
-
PageAlertContainerModule.decorators = [
|
|
442
|
-
{ type: i0.NgModule, args: [{
|
|
443
|
-
declarations: [PageAlertContainerComponent],
|
|
444
|
-
imports: [i2.ThemeSharedModule, i1.CoreModule],
|
|
445
|
-
exports: [PageAlertContainerComponent],
|
|
446
|
-
},] }
|
|
447
|
-
];
|
|
448
|
-
|
|
449
|
-
var AbpNavbarService = /** @class */ (function () {
|
|
450
|
-
function AbpNavbarService(routes, navbarService, localizationService) {
|
|
451
|
-
var _this = this;
|
|
452
|
-
this.routes = routes;
|
|
453
|
-
this.navbarService = navbarService;
|
|
454
|
-
this.localizationService = localizationService;
|
|
455
|
-
this.mapRouteToNavItem = function (route, index) {
|
|
456
|
-
return {
|
|
457
|
-
text: _this.localizationService.instant(route.name),
|
|
458
|
-
link: route.children && route.children.length ? undefined : route.path,
|
|
459
|
-
icon: route.iconClass,
|
|
460
|
-
children: _this.getRouteChildrenAsNavItems(route.children || []),
|
|
461
|
-
// TODO: expose an API for following config
|
|
462
|
-
showOnMobileNavbar: index === 0 || index === 1,
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
AbpNavbarService.prototype.initRoutes = function () {
|
|
467
|
-
var _this = this;
|
|
468
|
-
this.routes.visible$.subscribe(function (routes) {
|
|
469
|
-
var _a;
|
|
470
|
-
(_a = _this.navbarService).setNavbarItems.apply(_a, __spreadArray([], __read(routes.map(_this.mapRouteToNavItem))));
|
|
471
|
-
});
|
|
472
|
-
};
|
|
473
|
-
AbpNavbarService.prototype.getRouteChildrenAsNavItems = function (children) {
|
|
474
|
-
return children.map(this.mapRouteToNavItem);
|
|
475
|
-
};
|
|
476
|
-
return AbpNavbarService;
|
|
477
|
-
}());
|
|
478
|
-
AbpNavbarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AbpNavbarService_Factory() { return new AbpNavbarService(i0__namespace.ɵɵinject(i1__namespace.RoutesService), i0__namespace.ɵɵinject(i2__namespace.NavbarService), i0__namespace.ɵɵinject(i1__namespace.LocalizationService)); }, token: AbpNavbarService, providedIn: "root" });
|
|
479
|
-
AbpNavbarService.decorators = [
|
|
480
|
-
{ type: i0.Injectable, args: [{
|
|
481
|
-
providedIn: 'root',
|
|
482
|
-
},] }
|
|
483
|
-
];
|
|
484
|
-
AbpNavbarService.ctorParameters = function () { return [
|
|
485
|
-
{ type: i1.RoutesService },
|
|
486
|
-
{ type: i2$1.NavbarService },
|
|
487
|
-
{ type: i1.LocalizationService }
|
|
488
|
-
]; };
|
|
489
|
-
|
|
490
|
-
var AbpSettingsService = /** @class */ (function () {
|
|
491
|
-
function AbpSettingsService(sessionService, configStateService, languageService, authService, userProfileService, profilePicture$, navigateToManageProfile, navigateToMySecurityLogs) {
|
|
492
|
-
this.sessionService = sessionService;
|
|
493
|
-
this.configStateService = configStateService;
|
|
494
|
-
this.languageService = languageService;
|
|
495
|
-
this.authService = authService;
|
|
496
|
-
this.userProfileService = userProfileService;
|
|
497
|
-
this.profilePicture$ = profilePicture$;
|
|
498
|
-
this.navigateToManageProfile = navigateToManageProfile;
|
|
499
|
-
this.navigateToMySecurityLogs = navigateToMySecurityLogs;
|
|
500
|
-
}
|
|
501
|
-
AbpSettingsService.prototype.setUpListeners = function () {
|
|
502
|
-
this.listenToLangChange();
|
|
503
|
-
this.setLanguageOptions();
|
|
504
|
-
this.setUserProfile();
|
|
505
|
-
};
|
|
506
|
-
AbpSettingsService.prototype.setUserProfile = function () {
|
|
507
|
-
var _this = this;
|
|
508
|
-
var emptyStringOnNull = function (value) { return value || ''; };
|
|
509
|
-
this.configStateService
|
|
510
|
-
.getOne$('currentUser')
|
|
511
|
-
.pipe(operators.filter(Boolean))
|
|
512
|
-
.subscribe(function (currentUser) { return _this.userProfileService.patchUser({
|
|
513
|
-
userName: currentUser.userName,
|
|
514
|
-
fullName: emptyStringOnNull(currentUser.name) + ' ' + emptyStringOnNull(currentUser.surName),
|
|
515
|
-
email: currentUser.email,
|
|
516
|
-
}); });
|
|
517
|
-
this.profilePicture$.pipe(operators.filter(Boolean)).subscribe(function (avatar) { return _this.userProfileService.patchUser({
|
|
518
|
-
avatar: {
|
|
519
|
-
type: avatar.type,
|
|
520
|
-
source: avatar.source || '',
|
|
521
|
-
},
|
|
522
|
-
}); });
|
|
523
|
-
this.userProfileService.patchUser({
|
|
524
|
-
userActionGroups: [
|
|
525
|
-
[
|
|
526
|
-
{
|
|
527
|
-
icon: 'bi bi-sliders',
|
|
528
|
-
text: 'Manage Your Profile',
|
|
529
|
-
action: function () { return _this.navigateToManageProfile(); },
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
icon: 'bi bi-list-ul',
|
|
533
|
-
text: 'My Security Logs',
|
|
534
|
-
action: function () { return _this.navigateToMySecurityLogs(); },
|
|
535
|
-
},
|
|
536
|
-
],
|
|
537
|
-
[
|
|
538
|
-
{
|
|
539
|
-
icon: 'bi bi-box-arrow-right',
|
|
540
|
-
text: 'Sign Out',
|
|
541
|
-
action: function () { return _this.authService.logout(); },
|
|
542
|
-
},
|
|
543
|
-
],
|
|
544
|
-
],
|
|
545
|
-
});
|
|
546
|
-
};
|
|
547
|
-
AbpSettingsService.prototype.setLanguageOptions = function () {
|
|
548
|
-
var _this = this;
|
|
549
|
-
this.sessionService
|
|
550
|
-
.getLanguage$()
|
|
551
|
-
.pipe(operators.switchMap(function (currentLang) { return _this.configStateService.getDeep$('localization.languages').pipe(operators.filter(Boolean), operators.map(function (languages) { return languages.map(function (_a) {
|
|
552
|
-
var cultureName = _a.cultureName, displayName = _a.displayName;
|
|
553
|
-
return ({
|
|
554
|
-
cultureName: cultureName,
|
|
555
|
-
displayName: displayName,
|
|
556
|
-
selected: cultureName === currentLang,
|
|
557
|
-
});
|
|
558
|
-
}); })); }))
|
|
559
|
-
.subscribe(function (settings) {
|
|
560
|
-
_this.languageService.setLanguages(settings);
|
|
561
|
-
});
|
|
562
|
-
};
|
|
563
|
-
AbpSettingsService.prototype.listenToLangChange = function () {
|
|
564
|
-
var _this = this;
|
|
565
|
-
this.languageService.selectedLanguage$
|
|
566
|
-
.pipe(operators.filter(Boolean))
|
|
567
|
-
.subscribe(function (lang) {
|
|
568
|
-
_this.sessionService.setLanguage((lang === null || lang === void 0 ? void 0 : lang.cultureName) || '');
|
|
569
|
-
});
|
|
570
|
-
};
|
|
571
|
-
return AbpSettingsService;
|
|
572
|
-
}());
|
|
573
|
-
AbpSettingsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AbpSettingsService_Factory() { return new AbpSettingsService(i0__namespace.ɵɵinject(i1__namespace.SessionStateService), i0__namespace.ɵɵinject(i1__namespace.ConfigStateService), i0__namespace.ɵɵinject(i2__namespace.LanguageService), i0__namespace.ɵɵinject(i1__namespace.AuthService), i0__namespace.ɵɵinject(i2__namespace.UserProfileService), i0__namespace.ɵɵinject(i3__namespace.PROFILE_PICTURE), i0__namespace.ɵɵinject(i1__namespace.NAVIGATE_TO_MANAGE_PROFILE), i0__namespace.ɵɵinject(i3__namespace.NAVIGATE_TO_MY_SECURITY_LOGS)); }, token: AbpSettingsService, providedIn: "root" });
|
|
574
|
-
AbpSettingsService.decorators = [
|
|
575
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
576
|
-
];
|
|
577
|
-
AbpSettingsService.ctorParameters = function () { return [
|
|
578
|
-
{ type: i1.SessionStateService },
|
|
579
|
-
{ type: i1.ConfigStateService },
|
|
580
|
-
{ type: i2$1.LanguageService },
|
|
581
|
-
{ type: i1.AuthService },
|
|
582
|
-
{ type: i2$1.UserProfileService },
|
|
583
|
-
{ type: rxjs.BehaviorSubject, decorators: [{ type: i0.Inject, args: [i3.PROFILE_PICTURE,] }] },
|
|
584
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [i1.NAVIGATE_TO_MANAGE_PROFILE,] }] },
|
|
585
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [i3.NAVIGATE_TO_MY_SECURITY_LOGS,] }] }
|
|
586
|
-
]; };
|
|
587
|
-
|
|
588
|
-
var AbpToolbarService = /** @class */ (function () {
|
|
589
|
-
function AbpToolbarService(toolbar, navItems, permissionService) {
|
|
590
|
-
this.toolbar = toolbar;
|
|
591
|
-
this.navItems = navItems;
|
|
592
|
-
this.permissionService = permissionService;
|
|
593
|
-
}
|
|
594
|
-
AbpToolbarService.prototype.listenNavItems = function () {
|
|
595
|
-
var _this = this;
|
|
596
|
-
this.navItems.items$
|
|
597
|
-
.pipe(operators.switchMap(function (items) { return _this.permissionService.filterItemsByPolicy$(items); }))
|
|
598
|
-
.subscribe(function (items) {
|
|
599
|
-
_this.toolbar.setItems(items);
|
|
600
|
-
});
|
|
601
|
-
};
|
|
602
|
-
return AbpToolbarService;
|
|
603
|
-
}());
|
|
604
|
-
AbpToolbarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AbpToolbarService_Factory() { return new AbpToolbarService(i0__namespace.ɵɵinject(i1__namespace$1.ToolbarService), i0__namespace.ɵɵinject(i2__namespace$1.NavItemsService), i0__namespace.ɵɵinject(i1__namespace.PermissionService)); }, token: AbpToolbarService, providedIn: "root" });
|
|
605
|
-
AbpToolbarService.decorators = [
|
|
606
|
-
{ type: i0.Injectable, args: [{
|
|
607
|
-
providedIn: 'root',
|
|
608
|
-
},] }
|
|
609
|
-
];
|
|
610
|
-
AbpToolbarService.ctorParameters = function () { return [
|
|
611
|
-
{ type: i1$1.ToolbarService },
|
|
612
|
-
{ type: i2.NavItemsService },
|
|
613
|
-
{ type: i1.PermissionService }
|
|
614
|
-
]; };
|
|
615
|
-
|
|
616
|
-
var LeptonXPageRenderService = /** @class */ (function () {
|
|
617
|
-
function LeptonXPageRenderService() {
|
|
618
|
-
}
|
|
619
|
-
LeptonXPageRenderService.prototype.shouldRender = function (type) {
|
|
620
|
-
return type !== page.PageParts.breadcrumb;
|
|
621
|
-
};
|
|
622
|
-
return LeptonXPageRenderService;
|
|
623
|
-
}());
|
|
624
|
-
LeptonXPageRenderService.decorators = [
|
|
625
|
-
{ type: i0.Injectable }
|
|
626
|
-
];
|
|
627
|
-
LeptonXPageRenderService.ctorParameters = function () { return []; };
|
|
628
|
-
|
|
629
|
-
var ThemeLeptonXModule = /** @class */ (function () {
|
|
630
|
-
function ThemeLeptonXModule() {
|
|
631
|
-
}
|
|
632
|
-
ThemeLeptonXModule.forRoot = function () {
|
|
633
|
-
return {
|
|
634
|
-
ngModule: ThemeLeptonXModule,
|
|
635
|
-
providers: [
|
|
636
|
-
{
|
|
637
|
-
provide: i0.APP_INITIALIZER,
|
|
638
|
-
useFactory: initStyles,
|
|
639
|
-
multi: true,
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
provide: i0.APP_INITIALIZER,
|
|
643
|
-
useFactory: initServices,
|
|
644
|
-
deps: [AbpNavbarService, AbpToolbarService, AbpSettingsService],
|
|
645
|
-
multi: true,
|
|
646
|
-
},
|
|
647
|
-
i3.PROFILE_PICTURE_PROVIDERS,
|
|
648
|
-
{
|
|
649
|
-
provide: page.PAGE_RENDER_STRATEGY,
|
|
650
|
-
useClass: LeptonXPageRenderService,
|
|
651
|
-
},
|
|
652
|
-
AbpValidationErrorModule.forRoot().providers,
|
|
653
|
-
// TODO: muhammed: Create an injection token for theme settings
|
|
654
|
-
ngxLeptonX.LeptonXModule.forRoot({
|
|
655
|
-
themeSettings: {
|
|
656
|
-
localStorageKey: 'LEPTON-X-THEME',
|
|
657
|
-
styles: [
|
|
658
|
-
{
|
|
659
|
-
bundleName: 'lepton-x.dim',
|
|
660
|
-
styleName: 'dim',
|
|
661
|
-
icon: 'bi bi-brightness-alt-high-fill ',
|
|
662
|
-
label: 'Semi-Dark',
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
bundleName: 'lepton-x.dark',
|
|
666
|
-
styleName: 'dark',
|
|
667
|
-
defaultTheme: true,
|
|
668
|
-
icon: 'bi bi-moon-fill',
|
|
669
|
-
label: 'Dark',
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
bundleName: 'lepton-x.light',
|
|
673
|
-
styleName: 'light',
|
|
674
|
-
icon: 'bi bi-sun-fill',
|
|
675
|
-
label: 'Light',
|
|
676
|
-
},
|
|
677
|
-
],
|
|
678
|
-
loadHandler: loadHandler,
|
|
679
|
-
},
|
|
680
|
-
}).providers,
|
|
681
|
-
],
|
|
682
|
-
};
|
|
683
|
-
};
|
|
684
|
-
return ThemeLeptonXModule;
|
|
685
|
-
}());
|
|
686
|
-
ThemeLeptonXModule.decorators = [
|
|
687
|
-
{ type: i0.NgModule, args: [{},] }
|
|
688
|
-
];
|
|
689
|
-
function initServices(navbar, abpToolbar, setting) {
|
|
690
|
-
function init() {
|
|
691
|
-
abpToolbar.listenNavItems();
|
|
692
|
-
setting.setUpListeners();
|
|
693
|
-
navbar.initRoutes();
|
|
694
|
-
}
|
|
695
|
-
return init;
|
|
696
|
-
}
|
|
697
|
-
function initStyles() {
|
|
698
|
-
function init() {
|
|
699
|
-
var loader = document.querySelector('#lp-page-loader');
|
|
700
|
-
if (loader) {
|
|
701
|
-
loader.style.background = 'var(--background)';
|
|
702
|
-
setTimeout(function () { var _a; return (_a = loader.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(loader); }, 500);
|
|
703
|
-
}
|
|
704
|
-
return Promise.resolve();
|
|
705
|
-
}
|
|
706
|
-
return init;
|
|
707
|
-
}
|
|
708
|
-
function loadHandler(injector) {
|
|
709
|
-
var previousThemePath = '';
|
|
710
|
-
var lazyLoadService = injector.get(i1.LazyLoadService);
|
|
711
|
-
function changeStyle(style) {
|
|
712
|
-
var strategy = i1.LOADING_STRATEGY.PrependAnonymousStyleToHead("lepton-x." + style.styleName + ".css");
|
|
713
|
-
if (previousThemePath === strategy.path) {
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
716
|
-
lazyLoadService.load(strategy).subscribe(function (_) {
|
|
717
|
-
if (previousThemePath) {
|
|
718
|
-
lazyLoadService.remove(previousThemePath);
|
|
719
|
-
}
|
|
720
|
-
previousThemePath = strategy.path;
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
return changeStyle;
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* Generated bundle index. Do not edit.
|
|
728
|
-
*/
|
|
729
|
-
|
|
730
|
-
exports.AbpNavbarService = AbpNavbarService;
|
|
731
|
-
exports.AbpSettingsService = AbpSettingsService;
|
|
732
|
-
exports.AbpToolbarService = AbpToolbarService;
|
|
733
|
-
exports.AbpValidationErrorComponent = AbpValidationErrorComponent;
|
|
734
|
-
exports.AbpValidationErrorModule = AbpValidationErrorModule;
|
|
735
|
-
exports.LeptonXPageRenderService = LeptonXPageRenderService;
|
|
736
|
-
exports.PageAlertContainerComponent = PageAlertContainerComponent;
|
|
737
|
-
exports.PageAlertContainerModule = PageAlertContainerModule;
|
|
738
|
-
exports.ThemeLeptonXModule = ThemeLeptonXModule;
|
|
739
|
-
exports.initServices = initServices;
|
|
740
|
-
exports.initStyles = initStyles;
|
|
741
|
-
exports.loadHandler = loadHandler;
|
|
742
|
-
|
|
743
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
744
|
-
|
|
745
|
-
})));
|
|
746
|
-
//# sourceMappingURL=volosoft-abp.ng.theme.lepton-x.umd.js.map
|