@mis-wis/common 0.1.0 → 0.1.2-test
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/esm2020/lib/components/loader/loader.component.mjs +15 -0
- package/esm2020/lib/components/sidenav/sidenav.component.mjs +13 -0
- package/{esm2015/lib/functions/cookie.function.js → esm2020/lib/functions/cookie.function.mjs} +2 -1
- package/esm2020/lib/interceptors/auth.interceptor.mjs +44 -0
- package/{esm2015/lib/models/configurations.model.js → esm2020/lib/models/configurations.model.mjs} +1 -1
- package/esm2020/lib/modules/auth/auth.module.mjs +28 -0
- package/esm2020/lib/modules/auth/auth.service.mjs +17 -0
- package/{esm2015/lib/modules/logger/logger.functions.js → esm2020/lib/modules/logger/logger.functions.mjs} +2 -2
- package/esm2020/lib/modules/logger/logger.module.mjs +41 -0
- package/esm2020/lib/modules/logger/logger.service.mjs +52 -0
- package/esm2020/lib/services/configuration.service.mjs +14 -0
- package/esm2020/lib/services/http.service.mjs +27 -0
- package/esm2020/lib/services/loader.service.mjs +61 -0
- package/esm2020/lib/services/mfe-communication.service.mjs +14 -0
- package/esm2020/lib/wis-common.module.mjs +32 -0
- package/esm2020/mis-wis-common.mjs +5 -0
- package/esm2020/public-api.mjs +19 -0
- package/fesm2015/mis-wis-common.mjs +400 -0
- package/fesm2015/mis-wis-common.mjs.map +1 -0
- package/fesm2020/mis-wis-common.mjs +400 -0
- package/fesm2020/mis-wis-common.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/loader/loader.component.d.ts +3 -0
- package/lib/components/sidenav/sidenav.component.d.ts +3 -0
- package/lib/interceptors/auth.interceptor.d.ts +3 -0
- package/lib/models/configurations.model.d.ts +5 -0
- package/lib/modules/auth/auth.module.d.ts +5 -0
- package/lib/modules/auth/auth.service.d.ts +3 -0
- package/lib/modules/logger/logger.module.d.ts +5 -0
- package/lib/modules/logger/logger.service.d.ts +3 -0
- package/lib/services/configuration.service.d.ts +3 -0
- package/lib/services/http.service.d.ts +3 -0
- package/lib/services/loader.service.d.ts +3 -0
- package/lib/services/mfe-communication.service.d.ts +6 -0
- package/lib/wis-common.module.d.ts +9 -0
- package/package.json +21 -8
- package/public-api.d.ts +3 -0
- package/bundles/mis-wis-common.umd.js +0 -747
- package/bundles/mis-wis-common.umd.js.map +0 -1
- package/bundles/mis-wis-common.umd.min.js +0 -2
- package/bundles/mis-wis-common.umd.min.js.map +0 -1
- package/esm2015/lib/components/loader/loader.component.js +0 -14
- package/esm2015/lib/components/sidenav/sidenav.component.js +0 -14
- package/esm2015/lib/interceptors/auth.interceptor.js +0 -39
- package/esm2015/lib/modules/auth/auth.module.js +0 -23
- package/esm2015/lib/modules/auth/auth.service.js +0 -16
- package/esm2015/lib/modules/logger/logger.module.js +0 -36
- package/esm2015/lib/modules/logger/logger.service.js +0 -50
- package/esm2015/lib/services/configuration.service.js +0 -13
- package/esm2015/lib/services/http.service.js +0 -26
- package/esm2015/lib/services/loader.service.js +0 -64
- package/esm2015/lib/wis-common.module.js +0 -28
- package/esm2015/mis-wis-common.js +0 -10
- package/esm2015/public-api.js +0 -16
- package/fesm2015/mis-wis-common.js +0 -369
- package/fesm2015/mis-wis-common.js.map +0 -1
- package/mis-wis-common.d.ts +0 -11
- package/mis-wis-common.metadata.json +0 -1
- /package/{esm2015/lib/constants/emp-web-exp.constants.js → esm2020/lib/constants/emp-web-exp.constants.mjs} +0 -0
- /package/{esm2015/lib/functions/nav-filter.function.js → esm2020/lib/functions/nav-filter.function.mjs} +0 -0
- /package/{esm2015/lib/functions/url.functions.js → esm2020/lib/functions/url.functions.mjs} +0 -0
- /package/{esm2015/lib/models/env.model.js → esm2020/lib/models/env.model.mjs} +0 -0
- /package/{esm2015/lib/modules/auth/auth.model.js → esm2020/lib/modules/auth/auth.model.mjs} +0 -0
- /package/{esm2015/lib/modules/logger/logger.constant.js → esm2020/lib/modules/logger/logger.constant.mjs} +0 -0
- /package/{esm2015/lib/modules/logger/logger.model.js → esm2020/lib/modules/logger/logger.model.mjs} +0 -0
|
@@ -1,747 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('mis-crystal-design-system/toast'), require('@angular/router'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('mis-crystal-design-system/loader')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@mis-wis/common', ['exports', '@angular/core', '@angular/common', '@angular/common/http', 'rxjs/operators', 'mis-crystal-design-system/toast', '@angular/router', '@angular/cdk/overlay', '@angular/cdk/portal', 'mis-crystal-design-system/loader'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['mis-wis'] = global['mis-wis'] || {}, global['mis-wis'].common = {}), global.ng.core, global.ng.common, global.ng.common.http, global.rxjs.operators, global.toast, global.ng.router, global.ng.cdk.overlay, global.ng.cdk.portal, global.loader));
|
|
5
|
-
}(this, (function (exports, i0, common, i1, operators, toast, router, i1$1, portal, loader) { 'use strict';
|
|
6
|
-
|
|
7
|
-
var AuthService = /** @class */ (function () {
|
|
8
|
-
function AuthService() {
|
|
9
|
-
}
|
|
10
|
-
AuthService.prototype.init = function (user) {
|
|
11
|
-
this.userDetails = user;
|
|
12
|
-
};
|
|
13
|
-
return AuthService;
|
|
14
|
-
}());
|
|
15
|
-
AuthService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthService_Factory() { return new AuthService(); }, token: AuthService, providedIn: "root" });
|
|
16
|
-
AuthService.decorators = [
|
|
17
|
-
{ type: i0.Injectable, args: [{
|
|
18
|
-
providedIn: "root"
|
|
19
|
-
},] }
|
|
20
|
-
];
|
|
21
|
-
AuthService.ctorParameters = function () { return []; };
|
|
22
|
-
|
|
23
|
-
var AuthModule = /** @class */ (function () {
|
|
24
|
-
function AuthModule() {
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @returns ModuleWithProviders<AuthModule>
|
|
29
|
-
*/
|
|
30
|
-
AuthModule.forRoot = function () {
|
|
31
|
-
return {
|
|
32
|
-
ngModule: AuthModule,
|
|
33
|
-
providers: [AuthService]
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
return AuthModule;
|
|
37
|
-
}());
|
|
38
|
-
AuthModule.decorators = [
|
|
39
|
-
{ type: i0.NgModule, args: [{
|
|
40
|
-
declarations: [],
|
|
41
|
-
imports: [common.CommonModule],
|
|
42
|
-
providers: []
|
|
43
|
-
},] }
|
|
44
|
-
];
|
|
45
|
-
|
|
46
|
-
var ConfigurationService = /** @class */ (function () {
|
|
47
|
-
function ConfigurationService() {
|
|
48
|
-
}
|
|
49
|
-
return ConfigurationService;
|
|
50
|
-
}());
|
|
51
|
-
ConfigurationService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(); }, token: ConfigurationService, providedIn: "root" });
|
|
52
|
-
ConfigurationService.decorators = [
|
|
53
|
-
{ type: i0.Injectable, args: [{
|
|
54
|
-
providedIn: "root"
|
|
55
|
-
},] }
|
|
56
|
-
];
|
|
57
|
-
ConfigurationService.ctorParameters = function () { return []; };
|
|
58
|
-
|
|
59
|
-
var filterNavList = function (navList, features) {
|
|
60
|
-
return navList.filter(function (nav) {
|
|
61
|
-
var mustHave = nav.mustHaveBasedProperty && nav.mustHaveBasedProperty.every(function (basedProperty) { return features[basedProperty]; });
|
|
62
|
-
var canHave = nav.canHaveBasedProperty && nav.canHaveBasedProperty.some(function (basedProperty) { return features[basedProperty]; });
|
|
63
|
-
if ((mustHave || canHave) && nav.children) {
|
|
64
|
-
nav.children = filterNavList(nav.children, features);
|
|
65
|
-
}
|
|
66
|
-
return mustHave || canHave;
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/******************************************************************************
|
|
71
|
-
Copyright (c) Microsoft Corporation.
|
|
72
|
-
|
|
73
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
74
|
-
purpose with or without fee is hereby granted.
|
|
75
|
-
|
|
76
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
77
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
78
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
79
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
80
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
81
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
82
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
83
|
-
***************************************************************************** */
|
|
84
|
-
/* global Reflect, Promise */
|
|
85
|
-
var extendStatics = function (d, b) {
|
|
86
|
-
extendStatics = Object.setPrototypeOf ||
|
|
87
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
88
|
-
function (d, b) { for (var p in b)
|
|
89
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
90
|
-
d[p] = b[p]; };
|
|
91
|
-
return extendStatics(d, b);
|
|
92
|
-
};
|
|
93
|
-
function __extends(d, b) {
|
|
94
|
-
if (typeof b !== "function" && b !== null)
|
|
95
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
96
|
-
extendStatics(d, b);
|
|
97
|
-
function __() { this.constructor = d; }
|
|
98
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
99
|
-
}
|
|
100
|
-
var __assign = function () {
|
|
101
|
-
__assign = Object.assign || function __assign(t) {
|
|
102
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
103
|
-
s = arguments[i];
|
|
104
|
-
for (var p in s)
|
|
105
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
106
|
-
t[p] = s[p];
|
|
107
|
-
}
|
|
108
|
-
return t;
|
|
109
|
-
};
|
|
110
|
-
return __assign.apply(this, arguments);
|
|
111
|
-
};
|
|
112
|
-
function __rest(s, e) {
|
|
113
|
-
var t = {};
|
|
114
|
-
for (var p in s)
|
|
115
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
116
|
-
t[p] = s[p];
|
|
117
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
118
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
119
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
120
|
-
t[p[i]] = s[p[i]];
|
|
121
|
-
}
|
|
122
|
-
return t;
|
|
123
|
-
}
|
|
124
|
-
function __decorate(decorators, target, key, desc) {
|
|
125
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
126
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
127
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
128
|
-
else
|
|
129
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
130
|
-
if (d = decorators[i])
|
|
131
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
132
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
133
|
-
}
|
|
134
|
-
function __param(paramIndex, decorator) {
|
|
135
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
136
|
-
}
|
|
137
|
-
function __metadata(metadataKey, metadataValue) {
|
|
138
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
139
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
140
|
-
}
|
|
141
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
142
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
143
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
144
|
-
function fulfilled(value) { try {
|
|
145
|
-
step(generator.next(value));
|
|
146
|
-
}
|
|
147
|
-
catch (e) {
|
|
148
|
-
reject(e);
|
|
149
|
-
} }
|
|
150
|
-
function rejected(value) { try {
|
|
151
|
-
step(generator["throw"](value));
|
|
152
|
-
}
|
|
153
|
-
catch (e) {
|
|
154
|
-
reject(e);
|
|
155
|
-
} }
|
|
156
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
157
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
function __generator(thisArg, body) {
|
|
161
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
162
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
163
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
164
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
165
|
-
function step(op) {
|
|
166
|
-
if (f)
|
|
167
|
-
throw new TypeError("Generator is already executing.");
|
|
168
|
-
while (_)
|
|
169
|
-
try {
|
|
170
|
-
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)
|
|
171
|
-
return t;
|
|
172
|
-
if (y = 0, t)
|
|
173
|
-
op = [op[0] & 2, t.value];
|
|
174
|
-
switch (op[0]) {
|
|
175
|
-
case 0:
|
|
176
|
-
case 1:
|
|
177
|
-
t = op;
|
|
178
|
-
break;
|
|
179
|
-
case 4:
|
|
180
|
-
_.label++;
|
|
181
|
-
return { value: op[1], done: false };
|
|
182
|
-
case 5:
|
|
183
|
-
_.label++;
|
|
184
|
-
y = op[1];
|
|
185
|
-
op = [0];
|
|
186
|
-
continue;
|
|
187
|
-
case 7:
|
|
188
|
-
op = _.ops.pop();
|
|
189
|
-
_.trys.pop();
|
|
190
|
-
continue;
|
|
191
|
-
default:
|
|
192
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
193
|
-
_ = 0;
|
|
194
|
-
continue;
|
|
195
|
-
}
|
|
196
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
197
|
-
_.label = op[1];
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
201
|
-
_.label = t[1];
|
|
202
|
-
t = op;
|
|
203
|
-
break;
|
|
204
|
-
}
|
|
205
|
-
if (t && _.label < t[2]) {
|
|
206
|
-
_.label = t[2];
|
|
207
|
-
_.ops.push(op);
|
|
208
|
-
break;
|
|
209
|
-
}
|
|
210
|
-
if (t[2])
|
|
211
|
-
_.ops.pop();
|
|
212
|
-
_.trys.pop();
|
|
213
|
-
continue;
|
|
214
|
-
}
|
|
215
|
-
op = body.call(thisArg, _);
|
|
216
|
-
}
|
|
217
|
-
catch (e) {
|
|
218
|
-
op = [6, e];
|
|
219
|
-
y = 0;
|
|
220
|
-
}
|
|
221
|
-
finally {
|
|
222
|
-
f = t = 0;
|
|
223
|
-
}
|
|
224
|
-
if (op[0] & 5)
|
|
225
|
-
throw op[1];
|
|
226
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
230
|
-
if (k2 === undefined)
|
|
231
|
-
k2 = k;
|
|
232
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
233
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
234
|
-
desc = { enumerable: true, get: function () { return m[k]; } };
|
|
235
|
-
}
|
|
236
|
-
Object.defineProperty(o, k2, desc);
|
|
237
|
-
}) : (function (o, m, k, k2) {
|
|
238
|
-
if (k2 === undefined)
|
|
239
|
-
k2 = k;
|
|
240
|
-
o[k2] = m[k];
|
|
241
|
-
});
|
|
242
|
-
function __exportStar(m, o) {
|
|
243
|
-
for (var p in m)
|
|
244
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
245
|
-
__createBinding(o, m, p);
|
|
246
|
-
}
|
|
247
|
-
function __values(o) {
|
|
248
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
249
|
-
if (m)
|
|
250
|
-
return m.call(o);
|
|
251
|
-
if (o && typeof o.length === "number")
|
|
252
|
-
return {
|
|
253
|
-
next: function () {
|
|
254
|
-
if (o && i >= o.length)
|
|
255
|
-
o = void 0;
|
|
256
|
-
return { value: o && o[i++], done: !o };
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
260
|
-
}
|
|
261
|
-
function __read(o, n) {
|
|
262
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
263
|
-
if (!m)
|
|
264
|
-
return o;
|
|
265
|
-
var i = m.call(o), r, ar = [], e;
|
|
266
|
-
try {
|
|
267
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
268
|
-
ar.push(r.value);
|
|
269
|
-
}
|
|
270
|
-
catch (error) {
|
|
271
|
-
e = { error: error };
|
|
272
|
-
}
|
|
273
|
-
finally {
|
|
274
|
-
try {
|
|
275
|
-
if (r && !r.done && (m = i["return"]))
|
|
276
|
-
m.call(i);
|
|
277
|
-
}
|
|
278
|
-
finally {
|
|
279
|
-
if (e)
|
|
280
|
-
throw e.error;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
return ar;
|
|
284
|
-
}
|
|
285
|
-
/** @deprecated */
|
|
286
|
-
function __spread() {
|
|
287
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
288
|
-
ar = ar.concat(__read(arguments[i]));
|
|
289
|
-
return ar;
|
|
290
|
-
}
|
|
291
|
-
/** @deprecated */
|
|
292
|
-
function __spreadArrays() {
|
|
293
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
294
|
-
s += arguments[i].length;
|
|
295
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
296
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
297
|
-
r[k] = a[j];
|
|
298
|
-
return r;
|
|
299
|
-
}
|
|
300
|
-
function __spreadArray(to, from, pack) {
|
|
301
|
-
if (pack || arguments.length === 2)
|
|
302
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
303
|
-
if (ar || !(i in from)) {
|
|
304
|
-
if (!ar)
|
|
305
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
306
|
-
ar[i] = from[i];
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
310
|
-
}
|
|
311
|
-
function __await(v) {
|
|
312
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
313
|
-
}
|
|
314
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
315
|
-
if (!Symbol.asyncIterator)
|
|
316
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
317
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
318
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
319
|
-
function verb(n) { if (g[n])
|
|
320
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
321
|
-
function resume(n, v) { try {
|
|
322
|
-
step(g[n](v));
|
|
323
|
-
}
|
|
324
|
-
catch (e) {
|
|
325
|
-
settle(q[0][3], e);
|
|
326
|
-
} }
|
|
327
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
328
|
-
function fulfill(value) { resume("next", value); }
|
|
329
|
-
function reject(value) { resume("throw", value); }
|
|
330
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
331
|
-
resume(q[0][0], q[0][1]); }
|
|
332
|
-
}
|
|
333
|
-
function __asyncDelegator(o) {
|
|
334
|
-
var i, p;
|
|
335
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
336
|
-
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; }
|
|
337
|
-
}
|
|
338
|
-
function __asyncValues(o) {
|
|
339
|
-
if (!Symbol.asyncIterator)
|
|
340
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
341
|
-
var m = o[Symbol.asyncIterator], i;
|
|
342
|
-
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);
|
|
343
|
-
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); }); }; }
|
|
344
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
345
|
-
}
|
|
346
|
-
function __makeTemplateObject(cooked, raw) {
|
|
347
|
-
if (Object.defineProperty) {
|
|
348
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
cooked.raw = raw;
|
|
352
|
-
}
|
|
353
|
-
return cooked;
|
|
354
|
-
}
|
|
355
|
-
;
|
|
356
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
357
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
358
|
-
}) : function (o, v) {
|
|
359
|
-
o["default"] = v;
|
|
360
|
-
};
|
|
361
|
-
function __importStar(mod) {
|
|
362
|
-
if (mod && mod.__esModule)
|
|
363
|
-
return mod;
|
|
364
|
-
var result = {};
|
|
365
|
-
if (mod != null)
|
|
366
|
-
for (var k in mod)
|
|
367
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
368
|
-
__createBinding(result, mod, k);
|
|
369
|
-
__setModuleDefault(result, mod);
|
|
370
|
-
return result;
|
|
371
|
-
}
|
|
372
|
-
function __importDefault(mod) {
|
|
373
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
374
|
-
}
|
|
375
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
376
|
-
if (kind === "a" && !f)
|
|
377
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
378
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
379
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
380
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
381
|
-
}
|
|
382
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
383
|
-
if (kind === "m")
|
|
384
|
-
throw new TypeError("Private method is not writable");
|
|
385
|
-
if (kind === "a" && !f)
|
|
386
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
387
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
388
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
389
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
390
|
-
}
|
|
391
|
-
function __classPrivateFieldIn(state, receiver) {
|
|
392
|
-
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
|
|
393
|
-
throw new TypeError("Cannot use 'in' operator on non-object");
|
|
394
|
-
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
function getCookie(name) {
|
|
398
|
-
var cookies = {};
|
|
399
|
-
var cookieString = document.cookie;
|
|
400
|
-
cookieString.split("; ").forEach(function (cookie) {
|
|
401
|
-
var _a = __read(cookie.split("="), 2), key = _a[0], value = _a[1];
|
|
402
|
-
cookies[key] = value;
|
|
403
|
-
});
|
|
404
|
-
return cookies[name] || undefined;
|
|
405
|
-
}
|
|
406
|
-
function setCookie(name, value, options) {
|
|
407
|
-
var e_1, _a;
|
|
408
|
-
var cookieStr = name + "=" + value + ";";
|
|
409
|
-
if (options) {
|
|
410
|
-
var optsSelected = Object.keys(options);
|
|
411
|
-
try {
|
|
412
|
-
for (var optsSelected_1 = __values(optsSelected), optsSelected_1_1 = optsSelected_1.next(); !optsSelected_1_1.done; optsSelected_1_1 = optsSelected_1.next()) {
|
|
413
|
-
var opt = optsSelected_1_1.value;
|
|
414
|
-
cookieStr += " " + opt + ((typeof options[opt] === "string" && "=" + options[opt]) || "") + ";";
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
418
|
-
finally {
|
|
419
|
-
try {
|
|
420
|
-
if (optsSelected_1_1 && !optsSelected_1_1.done && (_a = optsSelected_1.return)) _a.call(optsSelected_1);
|
|
421
|
-
}
|
|
422
|
-
finally { if (e_1) throw e_1.error; }
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
document.cookie = cookieStr;
|
|
426
|
-
}
|
|
427
|
-
function removeCookie(name, domain) {
|
|
428
|
-
setCookie(name, "", { expires: new Date(0).toUTCString(), domain: domain });
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
function getQueryParam(queryString) {
|
|
432
|
-
var results = new RegExp("[?&]" + queryString + "=([^&#]*)").exec(window.location.href);
|
|
433
|
-
if (results === null) {
|
|
434
|
-
return null;
|
|
435
|
-
}
|
|
436
|
-
else {
|
|
437
|
-
return decodeURIComponent(results[1]) || null;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
var TOKEN_NAME = "x-wis-token";
|
|
442
|
-
var AuthInterceptor = /** @class */ (function () {
|
|
443
|
-
function AuthInterceptor(route, toast) {
|
|
444
|
-
this.route = route;
|
|
445
|
-
this.toast = toast;
|
|
446
|
-
}
|
|
447
|
-
AuthInterceptor.prototype.intercept = function (request, next) {
|
|
448
|
-
var _a, _b, _c;
|
|
449
|
-
var _this = this;
|
|
450
|
-
var paramsMap = this.route.snapshot.queryParamMap;
|
|
451
|
-
var buid = getQueryParam("buid") || getQueryParam("buId") || "";
|
|
452
|
-
var empGuid = getQueryParam("empGuid") || getQueryParam("empGuId") || getQueryParam("userId") || "";
|
|
453
|
-
// const source = getQueryParam("source");
|
|
454
|
-
var authToken = getQueryParam("auth-token");
|
|
455
|
-
var token = getCookie("sso-wis-token-" + buid);
|
|
456
|
-
var mobile_app_token = getCookie(TOKEN_NAME);
|
|
457
|
-
var cloneReq = request.clone({
|
|
458
|
-
setHeaders: Object.assign(Object.assign(Object.assign({ "x-tenant-id": buid, "x-user-id": empGuid }, (!!token && (_a = {}, _a[TOKEN_NAME] = token, _a))), (!!authToken && (_b = {}, _b[TOKEN_NAME] = authToken, _b))), (!!mobile_app_token && (_c = {}, _c[TOKEN_NAME] = mobile_app_token, _c)))
|
|
459
|
-
});
|
|
460
|
-
return next.handle(cloneReq).pipe(operators.tap(function () { }, function (err) {
|
|
461
|
-
if (err instanceof i1.HttpErrorResponse && err.status === 401) {
|
|
462
|
-
_this.toast.displayMsg("Your session has expired. Please login again.");
|
|
463
|
-
}
|
|
464
|
-
}));
|
|
465
|
-
};
|
|
466
|
-
return AuthInterceptor;
|
|
467
|
-
}());
|
|
468
|
-
AuthInterceptor.decorators = [
|
|
469
|
-
{ type: i0.Injectable }
|
|
470
|
-
];
|
|
471
|
-
AuthInterceptor.ctorParameters = function () { return [
|
|
472
|
-
{ type: router.ActivatedRoute },
|
|
473
|
-
{ type: toast.ToastService }
|
|
474
|
-
]; };
|
|
475
|
-
|
|
476
|
-
var LoaderComponent = /** @class */ (function () {
|
|
477
|
-
function LoaderComponent() {
|
|
478
|
-
}
|
|
479
|
-
LoaderComponent.prototype.ngOnInit = function () { };
|
|
480
|
-
return LoaderComponent;
|
|
481
|
-
}());
|
|
482
|
-
LoaderComponent.decorators = [
|
|
483
|
-
{ type: i0.Component, args: [{
|
|
484
|
-
selector: "mis-common-loader",
|
|
485
|
-
template: "<div class=\"message-wrapper\" *ngIf=\"message; else noMessageLoader\">\n <span><mis-loader type=\"block\"></mis-loader></span>\n <p>{{ message }}</p>\n</div>\n<ng-template #noMessageLoader>\n <mis-loader></mis-loader>\n</ng-template>\n",
|
|
486
|
-
styles: [".message-wrapper{max-width:343px;background-color:#fff;display:flex;flex-wrap:nowrap;align-items:center;padding:20px 16px;border-radius:6px}.message-wrapper span{position:relative;background-color:#fff;display:inline-block;width:40px;height:40px;margin-right:16px}.message-wrapper p{margin:0}"]
|
|
487
|
-
},] }
|
|
488
|
-
];
|
|
489
|
-
LoaderComponent.ctorParameters = function () { return []; };
|
|
490
|
-
|
|
491
|
-
/** @format */
|
|
492
|
-
var LoaderService = /** @class */ (function () {
|
|
493
|
-
function LoaderService(overlay) {
|
|
494
|
-
this.overlay = overlay;
|
|
495
|
-
this.loading = false;
|
|
496
|
-
}
|
|
497
|
-
LoaderService.prototype.show = function (message) {
|
|
498
|
-
var _a;
|
|
499
|
-
this.loading = true;
|
|
500
|
-
if ((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) {
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
var _c = this.calcLoaderProperties(!!message), positionStrategy = _c.positionStrategy, width = _c.width, backdropClass = _c.backdropClass, hasMessage = _c.hasMessage;
|
|
504
|
-
var config = new i1$1.OverlayConfig({
|
|
505
|
-
hasBackdrop: true,
|
|
506
|
-
positionStrategy: positionStrategy,
|
|
507
|
-
scrollStrategy: this.overlay.scrollStrategies.noop(),
|
|
508
|
-
width: width,
|
|
509
|
-
backdropClass: backdropClass
|
|
510
|
-
});
|
|
511
|
-
this.overlayRef = this.overlay.create(config);
|
|
512
|
-
var portal$1 = new portal.ComponentPortal(LoaderComponent, null);
|
|
513
|
-
var componentRef = this.overlayRef.attach(portal$1);
|
|
514
|
-
if (hasMessage) {
|
|
515
|
-
componentRef.instance.message = message;
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
LoaderService.prototype.hide = function () {
|
|
519
|
-
var _a, _b;
|
|
520
|
-
this.loading = false;
|
|
521
|
-
(_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
|
|
522
|
-
(_b = this.overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
523
|
-
};
|
|
524
|
-
LoaderService.prototype.calcLoaderProperties = function (hasMessage) {
|
|
525
|
-
var positionStrategy = this.overlay.position().global();
|
|
526
|
-
var width = "100vh";
|
|
527
|
-
var backdropClass = "cdk-overlay-transparent-backdrop";
|
|
528
|
-
if (hasMessage) {
|
|
529
|
-
width = "initial";
|
|
530
|
-
backdropClass = "wis-common-loader-bg";
|
|
531
|
-
positionStrategy.centerHorizontally().centerVertically();
|
|
532
|
-
}
|
|
533
|
-
else {
|
|
534
|
-
positionStrategy.top("0px").right("0px");
|
|
535
|
-
}
|
|
536
|
-
return { positionStrategy: positionStrategy, width: width, backdropClass: backdropClass, hasMessage: hasMessage };
|
|
537
|
-
};
|
|
538
|
-
return LoaderService;
|
|
539
|
-
}());
|
|
540
|
-
LoaderService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoaderService_Factory() { return new LoaderService(i0.ɵɵinject(i1$1.Overlay)); }, token: LoaderService, providedIn: "root" });
|
|
541
|
-
LoaderService.decorators = [
|
|
542
|
-
{ type: i0.Injectable, args: [{
|
|
543
|
-
providedIn: "root"
|
|
544
|
-
},] }
|
|
545
|
-
];
|
|
546
|
-
LoaderService.ctorParameters = function () { return [
|
|
547
|
-
{ type: i1$1.Overlay }
|
|
548
|
-
]; };
|
|
549
|
-
|
|
550
|
-
/** @format */
|
|
551
|
-
var CONSTANTS_LOGGER = {
|
|
552
|
-
APP_NAME: "wisLoggerApp",
|
|
553
|
-
ENV_VAR: "wisLoggerEnv"
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
var envMap = {
|
|
557
|
-
dev: "https://wisbff-dev.moveinsync.com",
|
|
558
|
-
qa: "https://wisbff-stag.moveinsync.com",
|
|
559
|
-
prod: "https://wisempweb.moveinsync.com",
|
|
560
|
-
uat: "https://wisbff-uat.moveinsync.com",
|
|
561
|
-
"prod-green": "https://wisempweb-green.moveinsync.com",
|
|
562
|
-
"prod-beta": "https://wisempweb-beta.workinsync.io",
|
|
563
|
-
"prod-eu": "https://wisempweb.eu.moveinsync.com",
|
|
564
|
-
"prod-eu-green": "https://wisempweb-green.eu.moveinsync.com"
|
|
565
|
-
};
|
|
566
|
-
function environmentHandler(env) {
|
|
567
|
-
if (!env) {
|
|
568
|
-
return "/bff";
|
|
569
|
-
}
|
|
570
|
-
return envMap[env];
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
var LoggerService = /** @class */ (function () {
|
|
574
|
-
function LoggerService(http, appName, appEnv) {
|
|
575
|
-
this.http = http;
|
|
576
|
-
this.appName = appName;
|
|
577
|
-
this.appEnv = appEnv;
|
|
578
|
-
this.cookies = false;
|
|
579
|
-
}
|
|
580
|
-
LoggerService.prototype.useCookies = function (useCookies) {
|
|
581
|
-
this.cookies = useCookies;
|
|
582
|
-
};
|
|
583
|
-
LoggerService.prototype.logRequest = function (data, logLevel) {
|
|
584
|
-
var request = {
|
|
585
|
-
data: data,
|
|
586
|
-
cookies: this.cookies ? document.cookie : undefined,
|
|
587
|
-
logLevel: logLevel
|
|
588
|
-
};
|
|
589
|
-
this.postLog(request);
|
|
590
|
-
};
|
|
591
|
-
LoggerService.prototype.postLog = function (request) {
|
|
592
|
-
var url = environmentHandler(this.appEnv) + "/report-log/" + this.appName;
|
|
593
|
-
this.http.post("" + url, request).subscribe();
|
|
594
|
-
};
|
|
595
|
-
LoggerService.prototype.info = function (data) {
|
|
596
|
-
this.logRequest(data, "info");
|
|
597
|
-
};
|
|
598
|
-
LoggerService.prototype.warn = function (data) {
|
|
599
|
-
this.logRequest(data, "warn");
|
|
600
|
-
};
|
|
601
|
-
LoggerService.prototype.error = function (data, componentName, serviceUrl) {
|
|
602
|
-
this.logRequest(Object.assign(Object.assign({}, data), { componentName: componentName, serviceUrl: serviceUrl }), "error");
|
|
603
|
-
};
|
|
604
|
-
return LoggerService;
|
|
605
|
-
}());
|
|
606
|
-
LoggerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoggerService_Factory() { return new LoggerService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject("wisLoggerApp"), i0.ɵɵinject("wisLoggerEnv")); }, token: LoggerService, providedIn: "root" });
|
|
607
|
-
LoggerService.decorators = [
|
|
608
|
-
{ type: i0.Injectable, args: [{
|
|
609
|
-
providedIn: "root"
|
|
610
|
-
},] }
|
|
611
|
-
];
|
|
612
|
-
LoggerService.ctorParameters = function () { return [
|
|
613
|
-
{ type: i1.HttpClient },
|
|
614
|
-
{ type: String, decorators: [{ type: i0.Inject, args: [CONSTANTS_LOGGER.APP_NAME,] }] },
|
|
615
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [CONSTANTS_LOGGER.ENV_VAR,] }] }
|
|
616
|
-
]; };
|
|
617
|
-
|
|
618
|
-
var LoggerModule = /** @class */ (function () {
|
|
619
|
-
function LoggerModule() {
|
|
620
|
-
}
|
|
621
|
-
/**
|
|
622
|
-
*
|
|
623
|
-
* @param appName any app name eg. FAQ, Floor Plan, In App Popup, etc.
|
|
624
|
-
* @param env "dev" | "qa" | "uat" | "prod" | "prod-beta" | "prod-green" | "prod-eu" | "prod-eu-green" | undefined
|
|
625
|
-
* @returns ModuleWithProviders<LoggerModule>
|
|
626
|
-
*/
|
|
627
|
-
LoggerModule.forChild = function (appName, env) {
|
|
628
|
-
return {
|
|
629
|
-
ngModule: LoggerModule,
|
|
630
|
-
providers: [
|
|
631
|
-
{
|
|
632
|
-
provide: CONSTANTS_LOGGER.APP_NAME,
|
|
633
|
-
useValue: appName
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
provide: CONSTANTS_LOGGER.ENV_VAR,
|
|
637
|
-
useValue: env
|
|
638
|
-
},
|
|
639
|
-
LoggerService
|
|
640
|
-
]
|
|
641
|
-
};
|
|
642
|
-
};
|
|
643
|
-
return LoggerModule;
|
|
644
|
-
}());
|
|
645
|
-
LoggerModule.decorators = [
|
|
646
|
-
{ type: i0.NgModule, args: [{
|
|
647
|
-
declarations: [],
|
|
648
|
-
imports: [common.CommonModule],
|
|
649
|
-
providers: []
|
|
650
|
-
},] }
|
|
651
|
-
];
|
|
652
|
-
|
|
653
|
-
/** @format */
|
|
654
|
-
var CONSTANTS_WIS_COMMON = {
|
|
655
|
-
ENV_VAR: "wisCommonEnvironment"
|
|
656
|
-
};
|
|
657
|
-
|
|
658
|
-
var API_URLS = {
|
|
659
|
-
CONFIGURATIONS: "configurations"
|
|
660
|
-
};
|
|
661
|
-
var HttpService = /** @class */ (function () {
|
|
662
|
-
function HttpService(env, auth, http) {
|
|
663
|
-
this.env = env;
|
|
664
|
-
this.auth = auth;
|
|
665
|
-
this.http = http;
|
|
666
|
-
}
|
|
667
|
-
HttpService.prototype.getConfigurations = function () {
|
|
668
|
-
return this.http.get(this.env.empExp + "/" + this.auth.userDetails.buid + "/" + API_URLS.CONFIGURATIONS);
|
|
669
|
-
};
|
|
670
|
-
return HttpService;
|
|
671
|
-
}());
|
|
672
|
-
HttpService.decorators = [
|
|
673
|
-
{ type: i0.Injectable }
|
|
674
|
-
];
|
|
675
|
-
HttpService.ctorParameters = function () { return [
|
|
676
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [CONSTANTS_WIS_COMMON,] }] },
|
|
677
|
-
{ type: AuthService },
|
|
678
|
-
{ type: i1.HttpClient }
|
|
679
|
-
]; };
|
|
680
|
-
|
|
681
|
-
var SidenavComponent = /** @class */ (function () {
|
|
682
|
-
function SidenavComponent() {
|
|
683
|
-
}
|
|
684
|
-
SidenavComponent.prototype.ngOnInit = function () { };
|
|
685
|
-
return SidenavComponent;
|
|
686
|
-
}());
|
|
687
|
-
SidenavComponent.decorators = [
|
|
688
|
-
{ type: i0.Component, args: [{
|
|
689
|
-
selector: "wis-common-sidenav",
|
|
690
|
-
template: "<div class=\"wis-sidenav-wrapper\">\n <div class=\"wis-sidenav-header\">\n <div class=\"wis-sidenav-header-logo\">\n <img src=\"assets/sidenav/assets/Wis-icon.svg\" alt=\"\" />\n </div>\n <div class=\"wis-sidenav-header-title\">\n <h1>WIS</h1>\n </div>\n </div>\n <div class=\"wis-sidenav-body\">\n <div class=\"wis-sidenav-body-item\">\n <div class=\"wis-sidenav-body-item-icon\">\n <i class=\"fas fa-home\"></i>\n </div>\n <div class=\"wis-sidenav-body-item-text\">\n <h3>Home</h3>\n </div>\n </div>\n <div class=\"wis-sidenav-body-item\">\n <div class=\"wis-sidenav-body-item-icon\">\n <i class=\"fas fa-user\"></i>\n </div>\n <div class=\"wis-sidenav-body-item-text\">\n <h3>Profile</h3>\n </div>\n </div>\n <div class=\"wis-sidenav-body-item\">\n <div class=\"wis-sidenav-body-item-icon\">\n <i class=\"fas fa-users\"></i>\n </div>\n <div class=\"wis-sidenav-body-item-text\">\n <h3>Users</h3>\n </div>\n </div>\n <div class=\"wis-sidenav-body-item\">\n <div class=\"wis-sidenav-body-item-icon\">\n <i class=\"fas fa-cog\"></i>\n </div>\n <div class=\"wis-sidenav-body-item-text\">\n <h3>Settings</h3>\n </div>\n </div>\n </div>\n</div>\n",
|
|
691
|
-
styles: [".wis-sidenav-wrapper{width:72px;border-right:1px solid #e0e0e0}"]
|
|
692
|
-
},] }
|
|
693
|
-
];
|
|
694
|
-
SidenavComponent.ctorParameters = function () { return []; };
|
|
695
|
-
|
|
696
|
-
var WisCommonModule = /** @class */ (function () {
|
|
697
|
-
function WisCommonModule() {
|
|
698
|
-
}
|
|
699
|
-
WisCommonModule.forRoot = function (env) {
|
|
700
|
-
return {
|
|
701
|
-
ngModule: WisCommonModule,
|
|
702
|
-
providers: [{ provide: CONSTANTS_WIS_COMMON, useValue: env }, ConfigurationService, LoaderService]
|
|
703
|
-
};
|
|
704
|
-
};
|
|
705
|
-
return WisCommonModule;
|
|
706
|
-
}());
|
|
707
|
-
WisCommonModule.decorators = [
|
|
708
|
-
{ type: i0.NgModule, args: [{
|
|
709
|
-
declarations: [LoaderComponent, SidenavComponent],
|
|
710
|
-
imports: [common.CommonModule, i1$1.OverlayModule, loader.LoaderModule],
|
|
711
|
-
providers: [HttpService],
|
|
712
|
-
entryComponents: [LoaderComponent],
|
|
713
|
-
exports: [SidenavComponent]
|
|
714
|
-
},] }
|
|
715
|
-
];
|
|
716
|
-
|
|
717
|
-
/*
|
|
718
|
-
* Public API Surface of wis-common
|
|
719
|
-
*/
|
|
720
|
-
|
|
721
|
-
/**
|
|
722
|
-
* Generated bundle index. Do not edit.
|
|
723
|
-
*/
|
|
724
|
-
|
|
725
|
-
exports.AuthInterceptor = AuthInterceptor;
|
|
726
|
-
exports.AuthModule = AuthModule;
|
|
727
|
-
exports.AuthService = AuthService;
|
|
728
|
-
exports.ConfigurationService = ConfigurationService;
|
|
729
|
-
exports.LoaderService = LoaderService;
|
|
730
|
-
exports.LoggerModule = LoggerModule;
|
|
731
|
-
exports.LoggerService = LoggerService;
|
|
732
|
-
exports.WisCommonModule = WisCommonModule;
|
|
733
|
-
exports.filterNavList = filterNavList;
|
|
734
|
-
exports.getCookie = getCookie;
|
|
735
|
-
exports.getQueryParam = getQueryParam;
|
|
736
|
-
exports.removeCookie = removeCookie;
|
|
737
|
-
exports.setCookie = setCookie;
|
|
738
|
-
exports.ɵa = CONSTANTS_LOGGER;
|
|
739
|
-
exports.ɵc = LoaderComponent;
|
|
740
|
-
exports.ɵd = SidenavComponent;
|
|
741
|
-
exports.ɵe = HttpService;
|
|
742
|
-
exports.ɵf = CONSTANTS_WIS_COMMON;
|
|
743
|
-
|
|
744
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
745
|
-
|
|
746
|
-
})));
|
|
747
|
-
//# sourceMappingURL=mis-wis-common.umd.js.map
|