@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.
Files changed (65) hide show
  1. package/esm2020/lib/components/loader/loader.component.mjs +15 -0
  2. package/esm2020/lib/components/sidenav/sidenav.component.mjs +13 -0
  3. package/{esm2015/lib/functions/cookie.function.js → esm2020/lib/functions/cookie.function.mjs} +2 -1
  4. package/esm2020/lib/interceptors/auth.interceptor.mjs +44 -0
  5. package/{esm2015/lib/models/configurations.model.js → esm2020/lib/models/configurations.model.mjs} +1 -1
  6. package/esm2020/lib/modules/auth/auth.module.mjs +28 -0
  7. package/esm2020/lib/modules/auth/auth.service.mjs +17 -0
  8. package/{esm2015/lib/modules/logger/logger.functions.js → esm2020/lib/modules/logger/logger.functions.mjs} +2 -2
  9. package/esm2020/lib/modules/logger/logger.module.mjs +41 -0
  10. package/esm2020/lib/modules/logger/logger.service.mjs +52 -0
  11. package/esm2020/lib/services/configuration.service.mjs +14 -0
  12. package/esm2020/lib/services/http.service.mjs +27 -0
  13. package/esm2020/lib/services/loader.service.mjs +61 -0
  14. package/esm2020/lib/services/mfe-communication.service.mjs +14 -0
  15. package/esm2020/lib/wis-common.module.mjs +32 -0
  16. package/esm2020/mis-wis-common.mjs +5 -0
  17. package/esm2020/public-api.mjs +19 -0
  18. package/fesm2015/mis-wis-common.mjs +400 -0
  19. package/fesm2015/mis-wis-common.mjs.map +1 -0
  20. package/fesm2020/mis-wis-common.mjs +400 -0
  21. package/fesm2020/mis-wis-common.mjs.map +1 -0
  22. package/index.d.ts +5 -0
  23. package/lib/components/loader/loader.component.d.ts +3 -0
  24. package/lib/components/sidenav/sidenav.component.d.ts +3 -0
  25. package/lib/interceptors/auth.interceptor.d.ts +3 -0
  26. package/lib/models/configurations.model.d.ts +5 -0
  27. package/lib/modules/auth/auth.module.d.ts +5 -0
  28. package/lib/modules/auth/auth.service.d.ts +3 -0
  29. package/lib/modules/logger/logger.module.d.ts +5 -0
  30. package/lib/modules/logger/logger.service.d.ts +3 -0
  31. package/lib/services/configuration.service.d.ts +3 -0
  32. package/lib/services/http.service.d.ts +3 -0
  33. package/lib/services/loader.service.d.ts +3 -0
  34. package/lib/services/mfe-communication.service.d.ts +6 -0
  35. package/lib/wis-common.module.d.ts +9 -0
  36. package/package.json +21 -8
  37. package/public-api.d.ts +3 -0
  38. package/bundles/mis-wis-common.umd.js +0 -747
  39. package/bundles/mis-wis-common.umd.js.map +0 -1
  40. package/bundles/mis-wis-common.umd.min.js +0 -2
  41. package/bundles/mis-wis-common.umd.min.js.map +0 -1
  42. package/esm2015/lib/components/loader/loader.component.js +0 -14
  43. package/esm2015/lib/components/sidenav/sidenav.component.js +0 -14
  44. package/esm2015/lib/interceptors/auth.interceptor.js +0 -39
  45. package/esm2015/lib/modules/auth/auth.module.js +0 -23
  46. package/esm2015/lib/modules/auth/auth.service.js +0 -16
  47. package/esm2015/lib/modules/logger/logger.module.js +0 -36
  48. package/esm2015/lib/modules/logger/logger.service.js +0 -50
  49. package/esm2015/lib/services/configuration.service.js +0 -13
  50. package/esm2015/lib/services/http.service.js +0 -26
  51. package/esm2015/lib/services/loader.service.js +0 -64
  52. package/esm2015/lib/wis-common.module.js +0 -28
  53. package/esm2015/mis-wis-common.js +0 -10
  54. package/esm2015/public-api.js +0 -16
  55. package/fesm2015/mis-wis-common.js +0 -369
  56. package/fesm2015/mis-wis-common.js.map +0 -1
  57. package/mis-wis-common.d.ts +0 -11
  58. package/mis-wis-common.metadata.json +0 -1
  59. /package/{esm2015/lib/constants/emp-web-exp.constants.js → esm2020/lib/constants/emp-web-exp.constants.mjs} +0 -0
  60. /package/{esm2015/lib/functions/nav-filter.function.js → esm2020/lib/functions/nav-filter.function.mjs} +0 -0
  61. /package/{esm2015/lib/functions/url.functions.js → esm2020/lib/functions/url.functions.mjs} +0 -0
  62. /package/{esm2015/lib/models/env.model.js → esm2020/lib/models/env.model.mjs} +0 -0
  63. /package/{esm2015/lib/modules/auth/auth.model.js → esm2020/lib/modules/auth/auth.model.mjs} +0 -0
  64. /package/{esm2015/lib/modules/logger/logger.constant.js → esm2020/lib/modules/logger/logger.constant.mjs} +0 -0
  65. /package/{esm2015/lib/modules/logger/logger.model.js → esm2020/lib/modules/logger/logger.model.mjs} +0 -0
@@ -1,28 +0,0 @@
1
- import { NgModule } from "@angular/core";
2
- import { CommonModule } from "@angular/common";
3
- import { ConfigurationService } from "./services/configuration.service";
4
- import { CONSTANTS_WIS_COMMON } from "./constants/emp-web-exp.constants";
5
- import { HttpService } from "./services/http.service";
6
- import { LoaderModule } from "mis-crystal-design-system/loader";
7
- import { LoaderComponent } from "./components/loader/loader.component";
8
- import { LoaderService } from "./services/loader.service";
9
- import { OverlayModule } from "@angular/cdk/overlay";
10
- import { SidenavComponent } from "./components/sidenav/sidenav.component";
11
- export class WisCommonModule {
12
- static forRoot(env) {
13
- return {
14
- ngModule: WisCommonModule,
15
- providers: [{ provide: CONSTANTS_WIS_COMMON, useValue: env }, ConfigurationService, LoaderService]
16
- };
17
- }
18
- }
19
- WisCommonModule.decorators = [
20
- { type: NgModule, args: [{
21
- declarations: [LoaderComponent, SidenavComponent],
22
- imports: [CommonModule, OverlayModule, LoaderModule],
23
- providers: [HttpService],
24
- entryComponents: [LoaderComponent],
25
- exports: [SidenavComponent]
26
- },] }
27
- ];
28
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2lzLWNvbW1vbi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJyYXJpZXMvd2lzLWNvbW1vbi9zcmMvbGliL3dpcy1jb21tb24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBdUIsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzlELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFB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b21wb25lbnRdLFxuICBpbXBvcnRzOiBbQ29tbW9uTW9kdWxlLCBPdmVybGF5TW9kdWxlLCBMb2FkZXJNb2R1bGVdLFxuICBwcm92aWRlcnM6IFtIdHRwU2VydmljZV0sXG4gIGVudHJ5Q29tcG9uZW50czogW0xvYWRlckNvbXBvbmVudF0sXG4gIGV4cG9ydHM6IFtTaWRlbmF2Q29tcG9uZW50XVxufSlcbmV4cG9ydCBjbGFzcyBXaXNDb21tb25Nb2R1bGUge1xuICBzdGF0aWMgZm9yUm9vdChlbnY6IE5zV0lTQ29tbW9uLklFbnYpOiBNb2R1bGVXaXRoUHJvdmlkZXJzPFdpc0NvbW1vbk1vZHVsZT4ge1xuICAgIHJldHVybiB7XG4gICAgICBuZ01vZHVsZTogV2lzQ29tbW9uTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbeyBwcm92aWRlOiBDT05TVEFOVFNfV0lTX0NPTU1PTiwgdXNlVmFsdWU6IGVudiB9LCBDb25maWd1cmF0aW9uU2VydmljZSwgTG9hZGVyU2VydmljZV1cbiAgICB9O1xuICB9XG59XG4iXX0=
@@ -1,10 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- export { LoaderComponent as ɵc } from './lib/components/loader/loader.component';
6
- export { SidenavComponent as ɵd } from './lib/components/sidenav/sidenav.component';
7
- export { CONSTANTS_WIS_COMMON as ɵf } from './lib/constants/emp-web-exp.constants';
8
- export { CONSTANTS_LOGGER as ɵa } from './lib/modules/logger/logger.constant';
9
- export { HttpService as ɵe } from './lib/services/http.service';
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlzLXdpcy1jb21tb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9saWJyYXJpZXMvd2lzLWNvbW1vbi9zcmMvbWlzLXdpcy1jb21tb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFB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7VEVudk5hbWUgYXMgybVifSBmcm9tICcuL2xpYi9tb2R1bGVzL2xvZ2dlci9sb2dnZXIubW9kZWwnO1xuZXhwb3J0IHtIdHRwU2VydmljZSBhcyDJtWV9IGZyb20gJy4vbGliL3NlcnZpY2VzL2h0dHAuc2VydmljZSc7Il19
@@ -1,16 +0,0 @@
1
- /*
2
- * Public API Surface of wis-common
3
- */
4
- export * from "./lib/modules/auth/auth.service";
5
- export * from "./lib/modules/auth/auth.module";
6
- export * from "./lib/services/configuration.service";
7
- export * from "./lib/models/configurations.model";
8
- export * from "./lib/functions/nav-filter.function";
9
- export * from "./lib/functions/cookie.function";
10
- export * from "./lib/functions/url.functions";
11
- export * from "./lib/interceptors/auth.interceptor";
12
- export * from "./lib/services/loader.service";
13
- export * from "./lib/modules/logger/logger.module";
14
- export * from "./lib/modules/logger/logger.service";
15
- export * from "./lib/wis-common.module";
16
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYnJhcmllcy93aXMtY29tbW9uL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsc0NBQXNDLENBQUM7QUFDckQsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLHFDQUFxQyxDQUFDO0FBQ3BELGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLHFDQUFxQyxDQUFDO0FBQ3BELGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLHFDQUFxQyxDQUFDO0FBQ3BELGNBQWMseUJBQXlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHdpcy1jb21tb25cbiAqL1xuXG5leHBvcnQgKiBmcm9tIFwiLi9saWIvbW9kdWxlcy9hdXRoL2F1dGguc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL21vZHVsZXMvYXV0aC9hdXRoLm1vZHVsZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL3NlcnZpY2VzL2NvbmZpZ3VyYXRpb24uc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL21vZGVscy9jb25maWd1cmF0aW9ucy5tb2RlbFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL2Z1bmN0aW9ucy9uYXYtZmlsdGVyLmZ1bmN0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9saWIvZnVuY3Rpb25zL2Nvb2tpZS5mdW5jdGlvblwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL2Z1bmN0aW9ucy91cmwuZnVuY3Rpb25zXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9saWIvaW50ZXJjZXB0b3JzL2F1dGguaW50ZXJjZXB0b3JcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9zZXJ2aWNlcy9sb2FkZXIuc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL21vZHVsZXMvbG9nZ2VyL2xvZ2dlci5tb2R1bGVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2xpYi9tb2R1bGVzL2xvZ2dlci9sb2dnZXIuc2VydmljZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vbGliL3dpcy1jb21tb24ubW9kdWxlXCI7XG4iXX0=
@@ -1,369 +0,0 @@
1
- import { ɵɵdefineInjectable, Injectable, NgModule, Component, ɵɵinject, Inject } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { HttpErrorResponse, HttpClient } from '@angular/common/http';
4
- import { tap } from 'rxjs/operators';
5
- import { ToastService } from 'mis-crystal-design-system/toast';
6
- import { ActivatedRoute } from '@angular/router';
7
- import { OverlayConfig, Overlay, OverlayModule } from '@angular/cdk/overlay';
8
- import { ComponentPortal } from '@angular/cdk/portal';
9
- import { LoaderModule } from 'mis-crystal-design-system/loader';
10
-
11
- class AuthService {
12
- constructor() { }
13
- init(user) {
14
- this.userDetails = user;
15
- }
16
- }
17
- AuthService.ɵprov = ɵɵdefineInjectable({ factory: function AuthService_Factory() { return new AuthService(); }, token: AuthService, providedIn: "root" });
18
- AuthService.decorators = [
19
- { type: Injectable, args: [{
20
- providedIn: "root"
21
- },] }
22
- ];
23
- AuthService.ctorParameters = () => [];
24
-
25
- class AuthModule {
26
- /**
27
- *
28
- * @returns ModuleWithProviders<AuthModule>
29
- */
30
- static forRoot() {
31
- return {
32
- ngModule: AuthModule,
33
- providers: [AuthService]
34
- };
35
- }
36
- }
37
- AuthModule.decorators = [
38
- { type: NgModule, args: [{
39
- declarations: [],
40
- imports: [CommonModule],
41
- providers: []
42
- },] }
43
- ];
44
-
45
- class ConfigurationService {
46
- constructor() { }
47
- }
48
- ConfigurationService.ɵprov = ɵɵdefineInjectable({ factory: function ConfigurationService_Factory() { return new ConfigurationService(); }, token: ConfigurationService, providedIn: "root" });
49
- ConfigurationService.decorators = [
50
- { type: Injectable, args: [{
51
- providedIn: "root"
52
- },] }
53
- ];
54
- ConfigurationService.ctorParameters = () => [];
55
-
56
- const filterNavList = (navList, features) => {
57
- return navList.filter(nav => {
58
- const mustHave = nav.mustHaveBasedProperty && nav.mustHaveBasedProperty.every(basedProperty => features[basedProperty]);
59
- const canHave = nav.canHaveBasedProperty && nav.canHaveBasedProperty.some(basedProperty => features[basedProperty]);
60
- if ((mustHave || canHave) && nav.children) {
61
- nav.children = filterNavList(nav.children, features);
62
- }
63
- return mustHave || canHave;
64
- });
65
- };
66
-
67
- function getCookie(name) {
68
- const cookies = {};
69
- const cookieString = document.cookie;
70
- cookieString.split("; ").forEach(cookie => {
71
- const [key, value] = cookie.split("=");
72
- cookies[key] = value;
73
- });
74
- return cookies[name] || undefined;
75
- }
76
- function setCookie(name, value, options) {
77
- let cookieStr = `${name}=${value};`;
78
- if (options) {
79
- const optsSelected = Object.keys(options);
80
- for (const opt of optsSelected) {
81
- cookieStr += ` ${opt}${(typeof options[opt] === "string" && `=${options[opt]}`) || ""};`;
82
- }
83
- }
84
- document.cookie = cookieStr;
85
- }
86
- function removeCookie(name, domain) {
87
- setCookie(name, "", { expires: new Date(0).toUTCString(), domain });
88
- }
89
-
90
- function getQueryParam(queryString) {
91
- const results = new RegExp("[?&]" + queryString + "=([^&#]*)").exec(window.location.href);
92
- if (results === null) {
93
- return null;
94
- }
95
- else {
96
- return decodeURIComponent(results[1]) || null;
97
- }
98
- }
99
-
100
- const TOKEN_NAME = "x-wis-token";
101
- class AuthInterceptor {
102
- constructor(route, toast) {
103
- this.route = route;
104
- this.toast = toast;
105
- }
106
- intercept(request, next) {
107
- const paramsMap = this.route.snapshot.queryParamMap;
108
- const buid = getQueryParam("buid") || getQueryParam("buId") || "";
109
- const empGuid = getQueryParam("empGuid") || getQueryParam("empGuId") || getQueryParam("userId") || "";
110
- // const source = getQueryParam("source");
111
- const authToken = getQueryParam("auth-token");
112
- const token = getCookie(`sso-wis-token-${buid}`);
113
- const mobile_app_token = getCookie(TOKEN_NAME);
114
- const cloneReq = request.clone({
115
- setHeaders: Object.assign(Object.assign(Object.assign({ "x-tenant-id": buid, "x-user-id": empGuid }, (!!token && { [TOKEN_NAME]: token })), (!!authToken && { [TOKEN_NAME]: authToken })), (!!mobile_app_token && { [TOKEN_NAME]: mobile_app_token }))
116
- });
117
- return next.handle(cloneReq).pipe(tap(() => { }, err => {
118
- if (err instanceof HttpErrorResponse && err.status === 401) {
119
- this.toast.displayMsg("Your session has expired. Please login again.");
120
- }
121
- }));
122
- }
123
- }
124
- AuthInterceptor.decorators = [
125
- { type: Injectable }
126
- ];
127
- AuthInterceptor.ctorParameters = () => [
128
- { type: ActivatedRoute },
129
- { type: ToastService }
130
- ];
131
-
132
- class LoaderComponent {
133
- constructor() { }
134
- ngOnInit() { }
135
- }
136
- LoaderComponent.decorators = [
137
- { type: Component, args: [{
138
- selector: "mis-common-loader",
139
- 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",
140
- 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}"]
141
- },] }
142
- ];
143
- LoaderComponent.ctorParameters = () => [];
144
-
145
- /** @format */
146
- class LoaderService {
147
- constructor(overlay) {
148
- this.overlay = overlay;
149
- this.loading = false;
150
- }
151
- show(message) {
152
- var _a;
153
- this.loading = true;
154
- if ((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) {
155
- return;
156
- }
157
- const { positionStrategy, width, backdropClass, hasMessage } = this.calcLoaderProperties(!!message);
158
- const config = new OverlayConfig({
159
- hasBackdrop: true,
160
- positionStrategy,
161
- scrollStrategy: this.overlay.scrollStrategies.noop(),
162
- width,
163
- backdropClass
164
- });
165
- this.overlayRef = this.overlay.create(config);
166
- const portal = new ComponentPortal(LoaderComponent, null);
167
- const componentRef = this.overlayRef.attach(portal);
168
- if (hasMessage) {
169
- componentRef.instance.message = message;
170
- }
171
- }
172
- hide() {
173
- var _a, _b;
174
- this.loading = false;
175
- (_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
176
- (_b = this.overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
177
- }
178
- calcLoaderProperties(hasMessage) {
179
- const positionStrategy = this.overlay.position().global();
180
- let width = "100vh";
181
- let backdropClass = "cdk-overlay-transparent-backdrop";
182
- if (hasMessage) {
183
- width = "initial";
184
- backdropClass = "wis-common-loader-bg";
185
- positionStrategy.centerHorizontally().centerVertically();
186
- }
187
- else {
188
- positionStrategy.top("0px").right("0px");
189
- }
190
- return { positionStrategy, width, backdropClass, hasMessage };
191
- }
192
- }
193
- LoaderService.ɵprov = ɵɵdefineInjectable({ factory: function LoaderService_Factory() { return new LoaderService(ɵɵinject(Overlay)); }, token: LoaderService, providedIn: "root" });
194
- LoaderService.decorators = [
195
- { type: Injectable, args: [{
196
- providedIn: "root"
197
- },] }
198
- ];
199
- LoaderService.ctorParameters = () => [
200
- { type: Overlay }
201
- ];
202
-
203
- /** @format */
204
- const CONSTANTS_LOGGER = {
205
- APP_NAME: "wisLoggerApp",
206
- ENV_VAR: "wisLoggerEnv"
207
- };
208
-
209
- const envMap = {
210
- dev: "https://wisbff-dev.moveinsync.com",
211
- qa: "https://wisbff-stag.moveinsync.com",
212
- prod: "https://wisempweb.moveinsync.com",
213
- uat: "https://wisbff-uat.moveinsync.com",
214
- "prod-green": "https://wisempweb-green.moveinsync.com",
215
- "prod-beta": "https://wisempweb-beta.workinsync.io",
216
- "prod-eu": "https://wisempweb.eu.moveinsync.com",
217
- "prod-eu-green": "https://wisempweb-green.eu.moveinsync.com"
218
- };
219
- function environmentHandler(env) {
220
- if (!env) {
221
- return "/bff";
222
- }
223
- return envMap[env];
224
- }
225
-
226
- class LoggerService {
227
- constructor(http, appName, appEnv) {
228
- this.http = http;
229
- this.appName = appName;
230
- this.appEnv = appEnv;
231
- this.cookies = false;
232
- }
233
- useCookies(useCookies) {
234
- this.cookies = useCookies;
235
- }
236
- logRequest(data, logLevel) {
237
- const request = {
238
- data,
239
- cookies: this.cookies ? document.cookie : undefined,
240
- logLevel
241
- };
242
- this.postLog(request);
243
- }
244
- postLog(request) {
245
- const url = `${environmentHandler(this.appEnv)}/report-log/${this.appName}`;
246
- this.http.post(`${url}`, request).subscribe();
247
- }
248
- info(data) {
249
- this.logRequest(data, "info");
250
- }
251
- warn(data) {
252
- this.logRequest(data, "warn");
253
- }
254
- error(data, componentName, serviceUrl) {
255
- this.logRequest(Object.assign(Object.assign({}, data), { componentName, serviceUrl }), "error");
256
- }
257
- }
258
- LoggerService.ɵprov = ɵɵdefineInjectable({ factory: function LoggerService_Factory() { return new LoggerService(ɵɵinject(HttpClient), ɵɵinject("wisLoggerApp"), ɵɵinject("wisLoggerEnv")); }, token: LoggerService, providedIn: "root" });
259
- LoggerService.decorators = [
260
- { type: Injectable, args: [{
261
- providedIn: "root"
262
- },] }
263
- ];
264
- LoggerService.ctorParameters = () => [
265
- { type: HttpClient },
266
- { type: String, decorators: [{ type: Inject, args: [CONSTANTS_LOGGER.APP_NAME,] }] },
267
- { type: undefined, decorators: [{ type: Inject, args: [CONSTANTS_LOGGER.ENV_VAR,] }] }
268
- ];
269
-
270
- class LoggerModule {
271
- /**
272
- *
273
- * @param appName any app name eg. FAQ, Floor Plan, In App Popup, etc.
274
- * @param env "dev" | "qa" | "uat" | "prod" | "prod-beta" | "prod-green" | "prod-eu" | "prod-eu-green" | undefined
275
- * @returns ModuleWithProviders<LoggerModule>
276
- */
277
- static forChild(appName, env) {
278
- return {
279
- ngModule: LoggerModule,
280
- providers: [
281
- {
282
- provide: CONSTANTS_LOGGER.APP_NAME,
283
- useValue: appName
284
- },
285
- {
286
- provide: CONSTANTS_LOGGER.ENV_VAR,
287
- useValue: env
288
- },
289
- LoggerService
290
- ]
291
- };
292
- }
293
- }
294
- LoggerModule.decorators = [
295
- { type: NgModule, args: [{
296
- declarations: [],
297
- imports: [CommonModule],
298
- providers: []
299
- },] }
300
- ];
301
-
302
- /** @format */
303
- const CONSTANTS_WIS_COMMON = {
304
- ENV_VAR: "wisCommonEnvironment"
305
- };
306
-
307
- const API_URLS = {
308
- CONFIGURATIONS: "configurations"
309
- };
310
- class HttpService {
311
- constructor(env, auth, http) {
312
- this.env = env;
313
- this.auth = auth;
314
- this.http = http;
315
- }
316
- getConfigurations() {
317
- return this.http.get(`${this.env.empExp}/${this.auth.userDetails.buid}/${API_URLS.CONFIGURATIONS}`);
318
- }
319
- }
320
- HttpService.decorators = [
321
- { type: Injectable }
322
- ];
323
- HttpService.ctorParameters = () => [
324
- { type: undefined, decorators: [{ type: Inject, args: [CONSTANTS_WIS_COMMON,] }] },
325
- { type: AuthService },
326
- { type: HttpClient }
327
- ];
328
-
329
- class SidenavComponent {
330
- constructor() { }
331
- ngOnInit() { }
332
- }
333
- SidenavComponent.decorators = [
334
- { type: Component, args: [{
335
- selector: "wis-common-sidenav",
336
- 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",
337
- styles: [".wis-sidenav-wrapper{width:72px;border-right:1px solid #e0e0e0}"]
338
- },] }
339
- ];
340
- SidenavComponent.ctorParameters = () => [];
341
-
342
- class WisCommonModule {
343
- static forRoot(env) {
344
- return {
345
- ngModule: WisCommonModule,
346
- providers: [{ provide: CONSTANTS_WIS_COMMON, useValue: env }, ConfigurationService, LoaderService]
347
- };
348
- }
349
- }
350
- WisCommonModule.decorators = [
351
- { type: NgModule, args: [{
352
- declarations: [LoaderComponent, SidenavComponent],
353
- imports: [CommonModule, OverlayModule, LoaderModule],
354
- providers: [HttpService],
355
- entryComponents: [LoaderComponent],
356
- exports: [SidenavComponent]
357
- },] }
358
- ];
359
-
360
- /*
361
- * Public API Surface of wis-common
362
- */
363
-
364
- /**
365
- * Generated bundle index. Do not edit.
366
- */
367
-
368
- export { AuthInterceptor, AuthModule, AuthService, ConfigurationService, LoaderService, LoggerModule, LoggerService, WisCommonModule, filterNavList, getCookie, getQueryParam, removeCookie, setCookie, CONSTANTS_LOGGER as ɵa, LoaderComponent as ɵc, SidenavComponent as ɵd, HttpService as ɵe, CONSTANTS_WIS_COMMON as ɵf };
369
- //# sourceMappingURL=mis-wis-common.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mis-wis-common.js","sources":["../../../libraries/wis-common/src/lib/modules/auth/auth.service.ts","../../../libraries/wis-common/src/lib/modules/auth/auth.module.ts","../../../libraries/wis-common/src/lib/services/configuration.service.ts","../../../libraries/wis-common/src/lib/functions/nav-filter.function.ts","../../../libraries/wis-common/src/lib/functions/cookie.function.ts","../../../libraries/wis-common/src/lib/functions/url.functions.ts","../../../libraries/wis-common/src/lib/interceptors/auth.interceptor.ts","../../../libraries/wis-common/src/lib/components/loader/loader.component.ts","../../../libraries/wis-common/src/lib/services/loader.service.ts","../../../libraries/wis-common/src/lib/modules/logger/logger.constant.ts","../../../libraries/wis-common/src/lib/modules/logger/logger.functions.ts","../../../libraries/wis-common/src/lib/modules/logger/logger.service.ts","../../../libraries/wis-common/src/lib/modules/logger/logger.module.ts","../../../libraries/wis-common/src/lib/constants/emp-web-exp.constants.ts","../../../libraries/wis-common/src/lib/services/http.service.ts","../../../libraries/wis-common/src/lib/components/sidenav/sidenav.component.ts","../../../libraries/wis-common/src/lib/wis-common.module.ts","../../../libraries/wis-common/src/public-api.ts","../../../libraries/wis-common/src/mis-wis-common.ts"],"sourcesContent":["import { Inject, Injectable } from \"@angular/core\";\nimport { IUserInfo } from \"./auth.model\";\n\n@Injectable({\n providedIn: \"root\"\n})\nexport class AuthService {\n userDetails: IUserInfo;\n\n constructor() {}\n\n init(user: IUserInfo) {\n this.userDetails = user;\n }\n}\n","import { ErrorHandler, ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { AuthService } from \"./auth.service\";\n\n@NgModule({\n declarations: [],\n imports: [CommonModule],\n providers: []\n})\nexport class AuthModule {\n /**\n *\n * @returns ModuleWithProviders<AuthModule>\n */\n static forRoot(): ModuleWithProviders<AuthModule> {\n return {\n ngModule: AuthModule,\n providers: [AuthService]\n };\n }\n}\n","import { Injectable } from \"@angular/core\";\n\n@Injectable({\n providedIn: \"root\"\n})\nexport class ConfigurationService {\n constructor() {}\n}\n","import { NsWISConfigurations } from \"../models/configurations.model\";\n\nexport const filterNavList = (\n navList: NsWISConfigurations.ISidenavLink[],\n features: NsWISConfigurations.IFeaturesMap\n): NsWISConfigurations.ISidenavLink[] => {\n return navList.filter(nav => {\n const mustHave = nav.mustHaveBasedProperty && nav.mustHaveBasedProperty.every(basedProperty => features[basedProperty]);\n const canHave = nav.canHaveBasedProperty && nav.canHaveBasedProperty.some(basedProperty => features[basedProperty]);\n if ((mustHave || canHave) && nav.children) {\n nav.children = filterNavList(nav.children, features);\n }\n return mustHave || canHave;\n });\n};\n","interface ICookieOptions {\n expires?: string;\n path?: string;\n domain?: string;\n \"Max-Age\"?: string;\n Secure?: boolean;\n HttpOnly?: boolean;\n SameSite?: \"Strict\" | \"Lax\" | \"None\";\n}\n\nexport function getCookie(name: string): string {\n const cookies = {};\n const cookieString = document.cookie;\n cookieString.split(\"; \").forEach(cookie => {\n const [key, value] = cookie.split(\"=\");\n cookies[key] = value;\n });\n return cookies[name] || undefined;\n}\n\nexport function setCookie(name: string, value: string, options?: ICookieOptions): void {\n let cookieStr = `${name}=${value};`;\n if (options) {\n const optsSelected = Object.keys(options);\n for (const opt of optsSelected) {\n cookieStr += ` ${opt}${(typeof options[opt] === \"string\" && `=${options[opt]}`) || \"\"};`;\n }\n }\n document.cookie = cookieStr;\n}\n\nexport function removeCookie(name: string, domain?: string): void {\n setCookie(name, \"\", { expires: new Date(0).toUTCString(), domain });\n}\n","export function getQueryParam(queryString: string): string | null {\n const results = new RegExp(\"[?&]\" + queryString + \"=([^&#]*)\").exec(window.location.href);\n if (results === null) {\n return null;\n } else {\n return decodeURIComponent(results[1]) || null;\n }\n}\n","import { Injectable } from \"@angular/core\";\nimport { HttpErrorResponse, HttpHandler, HttpInterceptor, HttpRequest } from \"@angular/common/http\";\nimport { tap } from \"rxjs/operators\";\nimport { ToastService } from \"mis-crystal-design-system/toast\";\nimport { ActivatedRoute } from \"@angular/router\";\nimport { getCookie } from \"../functions/cookie.function\";\nimport { getQueryParam } from \"../functions/url.functions\";\n\nconst TOKEN_NAME = \"x-wis-token\";\n@Injectable()\nexport class AuthInterceptor implements HttpInterceptor {\n constructor(private route: ActivatedRoute, private toast: ToastService) {}\n\n intercept(request: HttpRequest<any>, next: HttpHandler) {\n const paramsMap = this.route.snapshot.queryParamMap;\n const buid = getQueryParam(\"buid\") || getQueryParam(\"buId\") || \"\";\n const empGuid = getQueryParam(\"empGuid\") || getQueryParam(\"empGuId\") || getQueryParam(\"userId\") || \"\";\n // const source = getQueryParam(\"source\");\n const authToken = getQueryParam(\"auth-token\");\n const token = getCookie(`sso-wis-token-${buid}`);\n const mobile_app_token = getCookie(TOKEN_NAME);\n const cloneReq = request.clone({\n setHeaders: {\n \"x-tenant-id\": buid,\n \"x-user-id\": empGuid,\n ...(!!token && { [TOKEN_NAME]: token }),\n ...(!!authToken && { [TOKEN_NAME]: authToken }),\n ...(!!mobile_app_token && { [TOKEN_NAME]: mobile_app_token })\n }\n });\n return next.handle(cloneReq).pipe(\n tap(\n () => {},\n err => {\n if (err instanceof HttpErrorResponse && err.status === 401) {\n this.toast.displayMsg(\"Your session has expired. Please login again.\");\n }\n }\n )\n );\n }\n}\n","import { Component, OnInit } from \"@angular/core\";\n\n@Component({\n selector: \"mis-common-loader\",\n templateUrl: \"./loader.component.html\",\n styleUrls: [\"./loader.component.scss\"]\n})\nexport class LoaderComponent implements OnInit {\n message: string;\n constructor() {}\n\n ngOnInit(): void {}\n}\n","/** @format */\n\nimport { GlobalPositionStrategy, Overlay, OverlayConfig, OverlayRef } from \"@angular/cdk/overlay\";\nimport { ComponentPortal } from \"@angular/cdk/portal\";\nimport { Injectable } from \"@angular/core\";\nimport { LoaderComponent } from \"../components/loader/loader.component\";\n\n@Injectable({\n providedIn: \"root\"\n})\nexport class LoaderService {\n private overlayRef: OverlayRef;\n public loading = false;\n\n constructor(private overlay: Overlay) {}\n\n show(message?: string): void {\n this.loading = true;\n if (this.overlayRef?.hasAttached()) {\n return;\n }\n const { positionStrategy, width, backdropClass, hasMessage } = this.calcLoaderProperties(!!message);\n const config = new OverlayConfig({\n hasBackdrop: true,\n positionStrategy,\n scrollStrategy: this.overlay.scrollStrategies.noop(),\n width,\n backdropClass\n });\n this.overlayRef = this.overlay.create(config);\n const portal = new ComponentPortal(LoaderComponent, null);\n const componentRef = this.overlayRef.attach(portal);\n if (hasMessage) {\n componentRef.instance.message = message;\n }\n }\n\n hide(): void {\n this.loading = false;\n this.overlayRef?.detach();\n this.overlayRef?.dispose();\n }\n\n private calcLoaderProperties(hasMessage: boolean): {\n positionStrategy: GlobalPositionStrategy;\n width: string;\n backdropClass: string;\n hasMessage: boolean;\n } {\n const positionStrategy = this.overlay.position().global();\n let width = \"100vh\";\n let backdropClass = \"cdk-overlay-transparent-backdrop\";\n if (hasMessage) {\n width = \"initial\";\n backdropClass = \"wis-common-loader-bg\";\n positionStrategy.centerHorizontally().centerVertically();\n } else {\n positionStrategy.top(\"0px\").right(\"0px\");\n }\n return { positionStrategy, width, backdropClass, hasMessage };\n }\n}\n","/** @format */\n\nexport const CONSTANTS_LOGGER = {\n APP_NAME: \"wisLoggerApp\",\n ENV_VAR: \"wisLoggerEnv\"\n};\n","import { TEnvName } from \"./logger.model\";\nconst envMap = {\n dev: \"https://wisbff-dev.moveinsync.com\",\n qa: \"https://wisbff-stag.moveinsync.com\",\n prod: \"https://wisempweb.moveinsync.com\",\n uat: \"https://wisbff-uat.moveinsync.com\",\n \"prod-green\": \"https://wisempweb-green.moveinsync.com\",\n \"prod-beta\": \"https://wisempweb-beta.workinsync.io\",\n \"prod-eu\": \"https://wisempweb.eu.moveinsync.com\",\n \"prod-eu-green\": \"https://wisempweb-green.eu.moveinsync.com\"\n};\nexport function environmentHandler(env: TEnvName) {\n if (!env) {\n return \"/bff\";\n }\n return envMap[env];\n}\n","import { TEnvName } from \"./logger.model\";\nimport { CONSTANTS_LOGGER } from \"./logger.constant\";\nimport { Inject, Injectable } from \"@angular/core\";\nimport { HttpClient } from \"@angular/common/http\";\nimport { environmentHandler } from \"./logger.functions\";\n@Injectable({\n providedIn: \"root\"\n})\nexport class LoggerService {\n private cookies: boolean = false;\n\n constructor(\n private http: HttpClient,\n @Inject(CONSTANTS_LOGGER.APP_NAME) private appName: string,\n @Inject(CONSTANTS_LOGGER.ENV_VAR) private appEnv: TEnvName\n ) {}\n\n useCookies(useCookies: boolean) {\n this.cookies = useCookies;\n }\n\n private logRequest(data: any, logLevel: \"info\" | \"error\" | \"warn\") {\n const request = {\n data,\n cookies: this.cookies ? document.cookie : undefined,\n logLevel\n };\n this.postLog(request);\n }\n\n private postLog(request) {\n const url = `${environmentHandler(this.appEnv)}/report-log/${this.appName}`;\n this.http.post(`${url}`, request).subscribe();\n }\n\n info(data: any) {\n this.logRequest(data, \"info\");\n }\n\n warn(data: any) {\n this.logRequest(data, \"warn\");\n }\n\n error(data: any, componentName: string, serviceUrl?: string) {\n this.logRequest({ ...data, componentName, serviceUrl }, \"error\");\n }\n}\n","import { CONSTANTS_LOGGER } from \"./logger.constant\";\nimport { ErrorHandler, ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { LoggerService } from \"./logger.service\";\nimport { TEnvName } from \"./logger.model\";\n\n@NgModule({\n declarations: [],\n imports: [CommonModule],\n providers: []\n})\nexport class LoggerModule {\n /**\n *\n * @param appName any app name eg. FAQ, Floor Plan, In App Popup, etc.\n * @param env \"dev\" | \"qa\" | \"uat\" | \"prod\" | \"prod-beta\" | \"prod-green\" | \"prod-eu\" | \"prod-eu-green\" | undefined\n * @returns ModuleWithProviders<LoggerModule>\n */\n static forChild(appName: string, env?: TEnvName): ModuleWithProviders<LoggerModule> {\n return {\n ngModule: LoggerModule,\n providers: [\n {\n provide: CONSTANTS_LOGGER.APP_NAME,\n useValue: appName\n },\n {\n provide: CONSTANTS_LOGGER.ENV_VAR,\n useValue: env\n },\n LoggerService\n ]\n };\n }\n}\n","/** @format */\n\nexport const CONSTANTS_WIS_COMMON = {\n ENV_VAR: \"wisCommonEnvironment\"\n};\n","import { HttpClient } from \"@angular/common/http\";\nimport { Inject, Injectable } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\nimport { CONSTANTS_WIS_COMMON } from \"../constants/emp-web-exp.constants\";\nimport { NsWISConfigurations } from \"../models/configurations.model\";\nimport { NsWISCommon } from \"../models/env.model\";\nimport { AuthService } from \"../modules/auth/auth.service\";\n\nconst API_URLS = {\n CONFIGURATIONS: \"configurations\"\n};\n\n@Injectable()\nexport class HttpService {\n constructor(@Inject(CONSTANTS_WIS_COMMON) public env: NsWISCommon.IEnv, private auth: AuthService, private http: HttpClient) {}\n\n getConfigurations(): Observable<NsWISConfigurations.IConfigurations> {\n return this.http.get<NsWISConfigurations.IConfigurations>(`${this.env.empExp}/${this.auth.userDetails.buid}/${API_URLS.CONFIGURATIONS}`);\n }\n}\n","import { Component, OnInit } from \"@angular/core\";\n\n@Component({\n selector: \"wis-common-sidenav\",\n templateUrl: \"./sidenav.component.html\",\n styleUrls: [\"./sidenav.component.scss\"]\n})\nexport class SidenavComponent implements OnInit {\n constructor() {}\n\n ngOnInit(): void {}\n}\n","import { ModuleWithProviders, NgModule } from \"@angular/core\";\nimport { CommonModule } from \"@angular/common\";\nimport { ConfigurationService } from \"./services/configuration.service\";\nimport { NsWISCommon } from \"./models/env.model\";\nimport { CONSTANTS_WIS_COMMON } from \"./constants/emp-web-exp.constants\";\nimport { HttpService } from \"./services/http.service\";\nimport { LoaderModule } from \"mis-crystal-design-system/loader\";\nimport { LoaderComponent } from \"./components/loader/loader.component\";\nimport { LoaderService } from \"./services/loader.service\";\nimport { OverlayModule } from \"@angular/cdk/overlay\";\nimport { SidenavComponent } from \"./components/sidenav/sidenav.component\";\n\n@NgModule({\n declarations: [LoaderComponent, SidenavComponent],\n imports: [CommonModule, OverlayModule, LoaderModule],\n providers: [HttpService],\n entryComponents: [LoaderComponent],\n exports: [SidenavComponent]\n})\nexport class WisCommonModule {\n static forRoot(env: NsWISCommon.IEnv): ModuleWithProviders<WisCommonModule> {\n return {\n ngModule: WisCommonModule,\n providers: [{ provide: CONSTANTS_WIS_COMMON, useValue: env }, ConfigurationService, LoaderService]\n };\n }\n}\n","/*\n * Public API Surface of wis-common\n */\n\nexport * from \"./lib/modules/auth/auth.service\";\nexport * from \"./lib/modules/auth/auth.module\";\nexport * from \"./lib/services/configuration.service\";\nexport * from \"./lib/models/configurations.model\";\nexport * from \"./lib/functions/nav-filter.function\";\nexport * from \"./lib/functions/cookie.function\";\nexport * from \"./lib/functions/url.functions\";\nexport * from \"./lib/interceptors/auth.interceptor\";\nexport * from \"./lib/services/loader.service\";\nexport * from \"./lib/modules/logger/logger.module\";\nexport * from \"./lib/modules/logger/logger.service\";\nexport * from \"./lib/wis-common.module\";\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {LoaderComponent as ɵc} from './lib/components/loader/loader.component';\nexport {SidenavComponent as ɵd} from './lib/components/sidenav/sidenav.component';\nexport {CONSTANTS_WIS_COMMON as ɵf} from './lib/constants/emp-web-exp.constants';\nexport {NsWISCommon as ɵg} from './lib/models/env.model';\nexport {CONSTANTS_LOGGER as ɵa} from './lib/modules/logger/logger.constant';\nexport {TEnvName as ɵb} from './lib/modules/logger/logger.model';\nexport {HttpService as ɵe} from './lib/services/http.service';"],"names":[],"mappings":";;;;;;;;;;MAMa,WAAW;IAGtB,iBAAgB;IAEhB,IAAI,CAAC,IAAe;QAClB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;KACzB;;;;YAVF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;MCIY,UAAU;;;;;IAKrB,OAAO,OAAO;QACZ,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,SAAS,EAAE,CAAC,WAAW,CAAC;SACzB,CAAC;KACH;;;YAfF,QAAQ,SAAC;gBACR,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,SAAS,EAAE,EAAE;aACd;;;MCHY,oBAAoB;IAC/B,iBAAgB;;;;YAJjB,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;MCFY,aAAa,GAAG,CAC3B,OAA2C,EAC3C,QAA0C;IAE1C,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG;QACvB,MAAM,QAAQ,GAAG,GAAG,CAAC,qBAAqB,IAAI,GAAG,CAAC,qBAAqB,CAAC,KAAK,CAAC,aAAa,IAAI,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;QACxH,MAAM,OAAO,GAAG,GAAG,CAAC,oBAAoB,IAAI,GAAG,CAAC,oBAAoB,CAAC,IAAI,CAAC,aAAa,IAAI,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;QACpH,IAAI,CAAC,QAAQ,IAAI,OAAO,KAAK,GAAG,CAAC,QAAQ,EAAE;YACzC,GAAG,CAAC,QAAQ,GAAG,aAAa,CAAC,GAAG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AAE,eAAe;YACzB,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,oBAAoB,EAAE,aAAa,CAAC;SACnG,CAAC;KACH;;;YAbF,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,eAAe,EAAE,gBAAgB,CAAC;gBACjD,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,EAAE,YAAY,CAAC;gBACpD,SAAS,EAAE,CAAC,WAAW,CAAC;gBACxB,eAAe,EAAE,CAAC,eAAe,CAAC;gBAClC,OAAO,EAAE,CAAC,gBAAgB,CAAC;aAC5B;;;AClBD;;;;ACAA;;;;;;"}
@@ -1,11 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- export { LoaderComponent as ɵc } from './lib/components/loader/loader.component';
6
- export { SidenavComponent as ɵd } from './lib/components/sidenav/sidenav.component';
7
- export { CONSTANTS_WIS_COMMON as ɵf } from './lib/constants/emp-web-exp.constants';
8
- export { NsWISCommon as ɵg } from './lib/models/env.model';
9
- export { CONSTANTS_LOGGER as ɵa } from './lib/modules/logger/logger.constant';
10
- export { TEnvName as ɵb } from './lib/modules/logger/logger.model';
11
- export { HttpService as ɵe } from './lib/services/http.service';
@@ -1 +0,0 @@
1
- {"__symbolic":"module","version":4,"exports":[{"from":"./lib/models/configurations.model"}],"metadata":{"AuthService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"init":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"AuthModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":6,"character":12}],"providers":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AuthModule"},"providers":[{"__symbolic":"reference","name":"AuthService"}]}}}},"ConfigurationService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}]},"statics":{"ɵprov":{}}},"filterNavList":{"__symbolic":"error","message":"Lambda not supported","line":2,"character":29,"module":"./lib/functions/nav-filter.function"},"getCookie":{"__symbolic":"function"},"setCookie":{"__symbolic":"function"},"removeCookie":{"__symbolic":"function"},"getQueryParam":{"__symbolic":"function"},"AuthInterceptor":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":11,"character":29},{"__symbolic":"reference","module":"mis-crystal-design-system/toast","name":"ToastService","line":11,"character":60}]}],"intercept":[{"__symbolic":"method"}]}},"LoaderService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":7,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"Overlay","line":14,"character":31}]}],"show":[{"__symbolic":"method"}],"hide":[{"__symbolic":"method"}],"calcLoaderProperties":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"LoggerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":6,"character":1},"arguments":[{"declarations":[],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":8,"character":12}],"providers":[]}]}],"members":{},"statics":{"forChild":{"__symbolic":"function","parameters":["appName","env"],"value":{"ngModule":{"__symbolic":"reference","name":"LoggerModule"},"providers":[{"provide":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"APP_NAME"},"useValue":{"__symbolic":"reference","name":"appName"}},{"provide":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"ENV_VAR"},"useValue":{"__symbolic":"reference","name":"env"}},{"__symbolic":"reference","name":"LoggerService"}]}}}},"LoggerService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":13,"character":5},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"APP_NAME"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":14,"character":5},"arguments":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵa"},"member":"ENV_VAR"}]}]],"parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":12,"character":18},{"__symbolic":"reference","name":"string"},{"__symbolic":"reference","name":"ɵb"}]}],"useCookies":[{"__symbolic":"method"}],"logRequest":[{"__symbolic":"method"}],"postLog":[{"__symbolic":"method"}],"info":[{"__symbolic":"method"}],"warn":[{"__symbolic":"method"}],"error":[{"__symbolic":"method"}]},"statics":{"ɵprov":{}}},"WisCommonModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":14,"character":12},{"__symbolic":"reference","module":"@angular/cdk/overlay","name":"OverlayModule","line":14,"character":26},{"__symbolic":"reference","module":"mis-crystal-design-system/loader","name":"LoaderModule","line":14,"character":41}],"providers":[{"__symbolic":"reference","name":"ɵe"}],"entryComponents":[{"__symbolic":"reference","name":"ɵc"}],"exports":[{"__symbolic":"reference","name":"ɵd"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["env"],"value":{"ngModule":{"__symbolic":"reference","name":"WisCommonModule"},"providers":[{"provide":{"__symbolic":"reference","name":"ɵf"},"useValue":{"__symbolic":"reference","name":"env"}},{"__symbolic":"reference","name":"ConfigurationService"},{"__symbolic":"reference","name":"LoaderService"}]}}}},"ɵa":{"APP_NAME":"wisLoggerApp","ENV_VAR":"wisLoggerEnv"},"ɵb":{"__symbolic":"interface"},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"mis-common-loader","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","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}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":2,"character":1},"arguments":[{"selector":"wis-common-sidenav","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","styles":[".wis-sidenav-wrapper{width:72px;border-right:1px solid #e0e0e0}"]}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":12,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":14,"character":15},"arguments":[{"__symbolic":"reference","name":"ɵf"}]}],null,null],"parameters":[{"__symbolic":"select","expression":{"__symbolic":"reference","name":"ɵg"},"member":"IEnv"},{"__symbolic":"reference","name":"AuthService"},{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":14,"character":115}]}],"getConfigurations":[{"__symbolic":"method"}]}},"ɵf":{"ENV_VAR":"wisCommonEnvironment"}},"origins":{"AuthService":"./lib/modules/auth/auth.service","AuthModule":"./lib/modules/auth/auth.module","ConfigurationService":"./lib/services/configuration.service","filterNavList":"./lib/functions/nav-filter.function","getCookie":"./lib/functions/cookie.function","setCookie":"./lib/functions/cookie.function","removeCookie":"./lib/functions/cookie.function","getQueryParam":"./lib/functions/url.functions","AuthInterceptor":"./lib/interceptors/auth.interceptor","LoaderService":"./lib/services/loader.service","LoggerModule":"./lib/modules/logger/logger.module","LoggerService":"./lib/modules/logger/logger.service","WisCommonModule":"./lib/wis-common.module","ɵa":"./lib/modules/logger/logger.constant","ɵb":"./lib/modules/logger/logger.model","ɵc":"./lib/components/loader/loader.component","ɵd":"./lib/components/sidenav/sidenav.component","ɵe":"./lib/services/http.service","ɵf":"./lib/constants/emp-web-exp.constants","ɵg":"./lib/models/env.model"},"importAs":"@mis-wis/common"}