@thetradeengineorg1/snova-shell-module 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/thetradeengineorg1-snova-shell-module.umd.js +85 -98
- package/bundles/thetradeengineorg1-snova-shell-module.umd.js.map +1 -1
- package/esm2015/lib/shell-components/components/admin-layout/admin-layout.component.js +86 -106
- package/esm2015/lib/shell-components/shell.routing.js +9 -8
- package/fesm2015/thetradeengineorg1-snova-shell-module.js +86 -103
- package/fesm2015/thetradeengineorg1-snova-shell-module.js.map +1 -1
- package/lib/shell-components/components/admin-layout/admin-layout.component.d.ts +12 -9
- package/package.json +1 -1
|
@@ -13164,45 +13164,58 @@
|
|
|
13164
13164
|
}], function () { return [{ type: i3__namespace.Store }, { type: i2__namespace.Router }]; }, null);
|
|
13165
13165
|
})();
|
|
13166
13166
|
|
|
13167
|
-
function
|
|
13167
|
+
function AdminLayoutComponent_ng_container_6_Template(rf, ctx) {
|
|
13168
13168
|
if (rf & 1) {
|
|
13169
|
-
i0__namespace.ɵɵ
|
|
13170
|
-
i0__namespace.ɵɵ
|
|
13171
|
-
i0__namespace.ɵɵ
|
|
13172
|
-
|
|
13169
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
13170
|
+
i0__namespace.ɵɵelement(1, "app-sidebar", 10);
|
|
13171
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
13172
|
+
}
|
|
13173
|
+
}
|
|
13174
|
+
function AdminLayoutComponent_ng_template_7_Template(rf, ctx) {
|
|
13175
|
+
if (rf & 1) {
|
|
13176
|
+
i0__namespace.ɵɵelement(0, "router-outlet");
|
|
13177
|
+
}
|
|
13178
|
+
}
|
|
13179
|
+
function AdminLayoutComponent_div_9_Template(rf, ctx) {
|
|
13180
|
+
if (rf & 1) {
|
|
13181
|
+
i0__namespace.ɵɵelementStart(0, "div", 11);
|
|
13182
|
+
i0__namespace.ɵɵelementStart(1, "div", 12);
|
|
13183
|
+
i0__namespace.ɵɵelement(2, "div", 13);
|
|
13184
|
+
i0__namespace.ɵɵelement(3, "div", 14);
|
|
13173
13185
|
i0__namespace.ɵɵelementEnd();
|
|
13174
13186
|
i0__namespace.ɵɵelementEnd();
|
|
13175
13187
|
}
|
|
13176
13188
|
}
|
|
13177
|
-
function
|
|
13189
|
+
function AdminLayoutComponent_div_10_div_5_Template(rf, ctx) {
|
|
13178
13190
|
if (rf & 1) {
|
|
13179
|
-
i0__namespace.ɵɵelement(0, "div",
|
|
13191
|
+
i0__namespace.ɵɵelement(0, "div", 18);
|
|
13180
13192
|
}
|
|
13181
13193
|
}
|
|
13182
|
-
function
|
|
13194
|
+
function AdminLayoutComponent_div_10_Template(rf, ctx) {
|
|
13183
13195
|
if (rf & 1) {
|
|
13184
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13185
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
13196
|
+
i0__namespace.ɵɵelementStart(0, "div", 15);
|
|
13197
|
+
i0__namespace.ɵɵelementStart(1, "span", 16);
|
|
13186
13198
|
i0__namespace.ɵɵtext(2);
|
|
13187
13199
|
i0__namespace.ɵɵpipe(3, "translate");
|
|
13188
13200
|
i0__namespace.ɵɵpipe(4, "translate");
|
|
13189
13201
|
i0__namespace.ɵɵelementEnd();
|
|
13190
|
-
i0__namespace.ɵɵtemplate(5,
|
|
13202
|
+
i0__namespace.ɵɵtemplate(5, AdminLayoutComponent_div_10_div_5_Template, 1, 0, "div", 17);
|
|
13191
13203
|
i0__namespace.ɵɵelementEnd();
|
|
13192
13204
|
}
|
|
13193
13205
|
if (rf & 2) {
|
|
13194
|
-
var
|
|
13206
|
+
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
13195
13207
|
i0__namespace.ɵɵadvance(2);
|
|
13196
|
-
i0__namespace.ɵɵtextInterpolate3(" ", i0__namespace.ɵɵpipeBind1(3, 4, "LOADINGPLEASEWAIT"), " (",
|
|
13208
|
+
i0__namespace.ɵɵtextInterpolate3(" ", i0__namespace.ɵɵpipeBind1(3, 4, "LOADINGPLEASEWAIT"), " (", ctx_r4.totalLoadingTime, " ", i0__namespace.ɵɵpipeBind1(4, 6, "SECONDS"), ") ");
|
|
13197
13209
|
i0__namespace.ɵɵadvance(3);
|
|
13198
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
13210
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r4.loading);
|
|
13199
13211
|
}
|
|
13200
13212
|
}
|
|
13201
13213
|
var _c0$5 = function (a0, a1) { return { "blur-on-opened": a0, "show-in-dashboard": a1 }; };
|
|
13202
13214
|
var AdminLayoutComponent = /** @class */ (function () {
|
|
13203
|
-
function AdminLayoutComponent(router, translate, layout, store, cookieService, actionUpdates$, location, commonService, pubnub, signalr) {
|
|
13215
|
+
function AdminLayoutComponent(router, activatedRoute, translate, layout, store, cookieService, actionUpdates$, location, commonService, pubnub, signalr) {
|
|
13204
13216
|
var _this = this;
|
|
13205
13217
|
this.router = router;
|
|
13218
|
+
this.activatedRoute = activatedRoute;
|
|
13206
13219
|
this.translate = translate;
|
|
13207
13220
|
this.layout = layout;
|
|
13208
13221
|
this.store = store;
|
|
@@ -13213,33 +13226,29 @@
|
|
|
13213
13226
|
this.pubnub = pubnub;
|
|
13214
13227
|
this.signalr = signalr;
|
|
13215
13228
|
this.isModuleLoading = false;
|
|
13216
|
-
// private sidebarPS: PerfectScrollbar;
|
|
13217
|
-
// private bodyPS: PerfectScrollbar;
|
|
13218
|
-
// private headerFixedBodyPS: PerfectScrollbar;
|
|
13219
13229
|
this.scrollConfig = {};
|
|
13220
13230
|
this.layoutConf = {};
|
|
13221
13231
|
this.ngDestroyed$ = new rxjs.Subject();
|
|
13222
|
-
this.userstory =
|
|
13232
|
+
this.userstory = "userstory";
|
|
13223
13233
|
this.loading = false;
|
|
13224
13234
|
this.totalLoadingTime = 0;
|
|
13225
13235
|
this.spinnerType = i3$1.SPINNER.circle;
|
|
13226
|
-
//
|
|
13227
|
-
|
|
13236
|
+
// 👉 NEW FLAG
|
|
13237
|
+
this.isHomeScreen = true;
|
|
13228
13238
|
this.signalr.initializeSignalRConnection();
|
|
13229
|
-
// }
|
|
13230
13239
|
var environment = JSON.parse(localStorage.getItem(LocalStorageProperties.Environment));
|
|
13231
13240
|
var companySettings = localStorage.getItem(LocalStorageProperties.CompanySettings);
|
|
13232
|
-
if (!companySettings || companySettings ==
|
|
13241
|
+
if (!companySettings || companySettings == "null" || companySettings == "undefined") {
|
|
13233
13242
|
pubnub.init({
|
|
13234
13243
|
publishKey: environment.publishKey,
|
|
13235
13244
|
subscribeKey: environment.subscribeKey
|
|
13236
13245
|
});
|
|
13237
13246
|
}
|
|
13238
13247
|
else {
|
|
13239
|
-
var comSet = JSON.parse(
|
|
13248
|
+
var comSet = JSON.parse(companySettings);
|
|
13240
13249
|
var publishKey = comSet.find(function (i) { return i.key == "PubnubPublishKey"; });
|
|
13241
13250
|
var subscribeKey = comSet.find(function (i) { return i.key == "PubnubSubscribeKey"; });
|
|
13242
|
-
if ((publishKey
|
|
13251
|
+
if ((publishKey === null || publishKey === void 0 ? void 0 : publishKey.value) && (subscribeKey === null || subscribeKey === void 0 ? void 0 : subscribeKey.value)) {
|
|
13243
13252
|
pubnub.init({
|
|
13244
13253
|
publishKey: publishKey.value,
|
|
13245
13254
|
subscribeKey: subscribeKey.value
|
|
@@ -13257,11 +13266,12 @@
|
|
|
13257
13266
|
.pipe(operators.filter(function (event) { return event instanceof i2.NavigationEnd; }))
|
|
13258
13267
|
.subscribe(function (routeChange) {
|
|
13259
13268
|
_this.layout.adjustLayout({ route: routeChange.url });
|
|
13269
|
+
_this.updateHomeToggle(); // 👉 update on every navigation
|
|
13260
13270
|
});
|
|
13261
13271
|
// Translator init
|
|
13262
13272
|
var currentCulture = this.cookieService.get(LocalStorageProperties.CurrentCulture);
|
|
13263
|
-
if (currentCulture ===
|
|
13264
|
-
currentCulture =
|
|
13273
|
+
if (currentCulture === "null" || currentCulture === "undefined") {
|
|
13274
|
+
currentCulture = "en";
|
|
13265
13275
|
}
|
|
13266
13276
|
translate.use(currentCulture);
|
|
13267
13277
|
this.router.events.subscribe(function (event) {
|
|
@@ -13282,30 +13292,23 @@
|
|
|
13282
13292
|
_this.loading = false;
|
|
13283
13293
|
break;
|
|
13284
13294
|
}
|
|
13285
|
-
default: {
|
|
13286
|
-
break;
|
|
13287
|
-
}
|
|
13288
13295
|
}
|
|
13289
13296
|
});
|
|
13290
13297
|
router.events.subscribe(function (val) {
|
|
13291
13298
|
if (location.path() != "") {
|
|
13292
|
-
if (location.path().includes(
|
|
13299
|
+
if (location.path().includes("/dashboard-management/dashboard/")) {
|
|
13293
13300
|
_this.dashboardPage = true;
|
|
13294
|
-
_this.bgcolor =
|
|
13301
|
+
_this.bgcolor = "none";
|
|
13295
13302
|
}
|
|
13296
13303
|
else {
|
|
13297
13304
|
_this.dashboardPage = false;
|
|
13298
|
-
_this.bgcolor =
|
|
13305
|
+
_this.bgcolor = "beige";
|
|
13299
13306
|
}
|
|
13300
13307
|
}
|
|
13301
13308
|
});
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
// this.store.dispatch(new UserDetailsFetchedAfterLogin(data));
|
|
13306
|
-
// }
|
|
13307
|
-
if ((localStorage.getItem(LocalStorageProperties.UserModel) != null && localStorage.getItem(LocalStorageProperties.UserModel) != undefined)
|
|
13308
|
-
&& !localStorage.hasOwnProperty(LocalStorageProperties.UserRoleFeatures)) {
|
|
13309
|
+
if (localStorage.getItem(LocalStorageProperties.UserModel) != null &&
|
|
13310
|
+
localStorage.getItem(LocalStorageProperties.UserModel) != undefined &&
|
|
13311
|
+
!localStorage.hasOwnProperty(LocalStorageProperties.UserRoleFeatures)) {
|
|
13309
13312
|
var data = JSON.parse(localStorage.getItem(LocalStorageProperties.UserModel));
|
|
13310
13313
|
this.store.dispatch(new UserDetailsFetchedAfterLogin(data));
|
|
13311
13314
|
}
|
|
@@ -13314,23 +13317,32 @@
|
|
|
13314
13317
|
if (result && result.companyId) {
|
|
13315
13318
|
_this.getSoftLabels();
|
|
13316
13319
|
}
|
|
13317
|
-
}))
|
|
13320
|
+
}))
|
|
13321
|
+
.subscribe();
|
|
13318
13322
|
}
|
|
13319
13323
|
AdminLayoutComponent.prototype.ngOnInit = function () {
|
|
13320
13324
|
var _this = this;
|
|
13321
13325
|
this.getSoftLabelConfigurations();
|
|
13322
13326
|
this.layoutConf = this.layout.layoutConf;
|
|
13323
|
-
// this.layout.adjustLayout();
|
|
13324
|
-
// FOR MODULE LOADER FLAG
|
|
13325
13327
|
this.moduleLoaderSub = this.router.events.subscribe(function (event) {
|
|
13326
|
-
if (event instanceof i2.RouteConfigLoadStart ||
|
|
13327
|
-
|
|
13328
|
-
_this.isModuleLoading = false;
|
|
13328
|
+
if (event instanceof i2.RouteConfigLoadStart || event instanceof i2.ResolveStart) {
|
|
13329
|
+
_this.isModuleLoading = true;
|
|
13329
13330
|
}
|
|
13330
13331
|
if (event instanceof i2.RouteConfigLoadEnd || event instanceof i2.ResolveEnd) {
|
|
13331
13332
|
_this.isModuleLoading = false;
|
|
13332
13333
|
}
|
|
13333
13334
|
});
|
|
13335
|
+
this.updateHomeToggle(); // initial check
|
|
13336
|
+
};
|
|
13337
|
+
AdminLayoutComponent.prototype.updateHomeToggle = function () {
|
|
13338
|
+
var _a, _b;
|
|
13339
|
+
// 👉 logic: if route has no child OR path is '', we are home
|
|
13340
|
+
var child = this.activatedRoute.firstChild;
|
|
13341
|
+
while (child === null || child === void 0 ? void 0 : child.firstChild) {
|
|
13342
|
+
child = child.firstChild;
|
|
13343
|
+
}
|
|
13344
|
+
var childPath = (_b = (_a = child === null || child === void 0 ? void 0 : child.routeConfig) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : "";
|
|
13345
|
+
this.isHomeScreen = !child || childPath === "";
|
|
13334
13346
|
};
|
|
13335
13347
|
AdminLayoutComponent.prototype.onResize = function (event) {
|
|
13336
13348
|
this.layout.adjustLayout(event);
|
|
@@ -13339,7 +13351,7 @@
|
|
|
13339
13351
|
this.display = event;
|
|
13340
13352
|
};
|
|
13341
13353
|
AdminLayoutComponent.prototype.getSoftLabelConfigurations = function () {
|
|
13342
|
-
this.softLabels = JSON.parse(localStorage.getItem(
|
|
13354
|
+
this.softLabels = JSON.parse(localStorage.getItem("SoftLabels"));
|
|
13343
13355
|
};
|
|
13344
13356
|
AdminLayoutComponent.prototype.getSoftLabels = function () {
|
|
13345
13357
|
var model = new SoftLabelConfigurationModel();
|
|
@@ -13348,33 +13360,12 @@
|
|
|
13348
13360
|
if (response.success) {
|
|
13349
13361
|
var data = response.data;
|
|
13350
13362
|
if (data) {
|
|
13351
|
-
localStorage.setItem(
|
|
13363
|
+
localStorage.setItem("SoftLabels", JSON.stringify(data));
|
|
13352
13364
|
}
|
|
13353
13365
|
}
|
|
13354
13366
|
});
|
|
13355
13367
|
};
|
|
13356
|
-
AdminLayoutComponent.prototype.ngAfterViewInit = function () {
|
|
13357
|
-
// this.layoutConfSub = this.layout.layoutConf$.subscribe(change => {
|
|
13358
|
-
// // this.initBodyPS(change)
|
|
13359
|
-
// })
|
|
13360
|
-
};
|
|
13361
|
-
// initBodyPS(layoutConf:any = {}) {
|
|
13362
|
-
// if(layoutConf.navigationPos === 'side' && layoutConf.topbarFixed) {
|
|
13363
|
-
// if (this.bodyPS) this.bodyPS.destroy();
|
|
13364
|
-
// if (this.headerFixedBodyPS) this.headerFixedBodyPS.destroy();
|
|
13365
|
-
// this.headerFixedBodyPS = new PerfectScrollbar('.rightside-content-hold', {
|
|
13366
|
-
// suppressScrollX: true
|
|
13367
|
-
// });
|
|
13368
|
-
// this.scrollToTop('.rightside-content-hold');
|
|
13369
|
-
// } else {
|
|
13370
|
-
// if (this.bodyPS) this.bodyPS.destroy();
|
|
13371
|
-
// if (this.headerFixedBodyPS) this.headerFixedBodyPS.destroy();
|
|
13372
|
-
// this.bodyPS = new PerfectScrollbar('.main-content-wrap', {
|
|
13373
|
-
// suppressScrollX: true
|
|
13374
|
-
// });
|
|
13375
|
-
// this.scrollToTop('.main-content-wrap');
|
|
13376
|
-
// }
|
|
13377
|
-
// }
|
|
13368
|
+
AdminLayoutComponent.prototype.ngAfterViewInit = function () { };
|
|
13378
13369
|
AdminLayoutComponent.prototype.scrollToTop = function (selector) {
|
|
13379
13370
|
if (document) {
|
|
13380
13371
|
var element = document.querySelector(selector);
|
|
@@ -13382,18 +13373,11 @@
|
|
|
13382
13373
|
}
|
|
13383
13374
|
};
|
|
13384
13375
|
AdminLayoutComponent.prototype.ngOnDestroy = function () {
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
}
|
|
13391
|
-
if (this.routerEventSub) {
|
|
13392
|
-
this.routerEventSub.unsubscribe();
|
|
13393
|
-
}
|
|
13394
|
-
if (this.sub) {
|
|
13395
|
-
this.sub.unsubscribe();
|
|
13396
|
-
}
|
|
13376
|
+
var _a, _b, _c, _d;
|
|
13377
|
+
(_a = this.moduleLoaderSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
13378
|
+
(_b = this.layoutConfSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
13379
|
+
(_c = this.routerEventSub) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
|
13380
|
+
(_d = this.sub) === null || _d === void 0 ? void 0 : _d.unsubscribe();
|
|
13397
13381
|
};
|
|
13398
13382
|
AdminLayoutComponent.prototype.closeSidebar = function () {
|
|
13399
13383
|
this.layout.publishLayoutChange({
|
|
@@ -13408,12 +13392,12 @@
|
|
|
13408
13392
|
};
|
|
13409
13393
|
return AdminLayoutComponent;
|
|
13410
13394
|
}());
|
|
13411
|
-
AdminLayoutComponent.ɵfac = function AdminLayoutComponent_Factory(t) { return new (t || AdminLayoutComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.Router), i0__namespace.ɵɵdirectiveInject(i5__namespace$1.TranslateService), i0__namespace.ɵɵdirectiveInject(LayoutService), i0__namespace.ɵɵdirectiveInject(i3__namespace.Store), i0__namespace.ɵɵdirectiveInject(i5__namespace.CookieService), i0__namespace.ɵɵdirectiveInject(i1__namespace$2.Actions), i0__namespace.ɵɵdirectiveInject(i10__namespace.Location), i0__namespace.ɵɵdirectiveInject(CommonService), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.PubNubAngular), i0__namespace.ɵɵdirectiveInject(SignalrService)); };
|
|
13395
|
+
AdminLayoutComponent.ɵfac = function AdminLayoutComponent_Factory(t) { return new (t || AdminLayoutComponent)(i0__namespace.ɵɵdirectiveInject(i2__namespace.Router), i0__namespace.ɵɵdirectiveInject(i2__namespace.ActivatedRoute), i0__namespace.ɵɵdirectiveInject(i5__namespace$1.TranslateService), i0__namespace.ɵɵdirectiveInject(LayoutService), i0__namespace.ɵɵdirectiveInject(i3__namespace.Store), i0__namespace.ɵɵdirectiveInject(i5__namespace.CookieService), i0__namespace.ɵɵdirectiveInject(i1__namespace$2.Actions), i0__namespace.ɵɵdirectiveInject(i10__namespace.Location), i0__namespace.ɵɵdirectiveInject(CommonService), i0__namespace.ɵɵdirectiveInject(i2__namespace$2.PubNubAngular), i0__namespace.ɵɵdirectiveInject(SignalrService)); };
|
|
13412
13396
|
AdminLayoutComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: AdminLayoutComponent, selectors: [["app-admin-layout"]], hostBindings: function AdminLayoutComponent_HostBindings(rf, ctx) {
|
|
13413
13397
|
if (rf & 1) {
|
|
13414
13398
|
i0__namespace.ɵɵlistener("resize", function AdminLayoutComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0__namespace.ɵɵresolveWindow);
|
|
13415
13399
|
}
|
|
13416
|
-
}, decls:
|
|
13400
|
+
}, decls: 11, vars: 10, consts: [["fgsSize", "180", "color", "primary", 3, "fgsType"], [1, "container-fluid", "p-0", 2, "min-height", "100vh", "width", "100%", "display", "flex", "flex-direction", "column", 3, "dir"], [2, "z-index", "1200", "position", "relative"], [3, "opened"], [1, "flex-grow-1", "d-flex", 2, "position", "relative", "overflow", "hidden"], [1, "flex-grow-1", "d-flex", "flex-column", 2, "overflow-y", "auto", "position", "relative", "background-color", "#f5f5f5", 3, "ngClass"], [4, "ngIf", "ngIfElse"], ["routedContent", ""], ["class", "d-flex justify-content-center align-items-center", "style", "position: absolute; top: 0; left:0; right:0; bottom:0; z-index: 1100; background: rgba(255,255,255,0.6);", 4, "ngIf"], ["id", "btrak-preloader", "class", "text-center", 4, "ngIf"], [1, "flex-grow-1", "d-flex", "justify-content-center", "align-items-start", "p-3"], [1, "d-flex", "justify-content-center", "align-items-center", 2, "position", "absolute", "top", "0", "left", "0", "right", "0", "bottom", "0", "z-index", "1100", "background", "rgba(255,255,255,0.6)"], [1, "spinner"], [1, "double-bounce1", "mat-bg-accent"], [1, "double-bounce2", "mat-bg-primary"], ["id", "btrak-preloader", 1, "text-center"], [1, "preloading-text"], ["id", "btrak-loader", 4, "ngIf"], ["id", "btrak-loader"]], template: function AdminLayoutComponent_Template(rf, ctx) {
|
|
13417
13401
|
if (rf & 1) {
|
|
13418
13402
|
i0__namespace.ɵɵelement(0, "ngx-ui-loader", 0);
|
|
13419
13403
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
@@ -13424,27 +13408,29 @@
|
|
|
13424
13408
|
i0__namespace.ɵɵelementEnd();
|
|
13425
13409
|
i0__namespace.ɵɵelementStart(4, "div", 4);
|
|
13426
13410
|
i0__namespace.ɵɵelementStart(5, "div", 5);
|
|
13427
|
-
i0__namespace.ɵɵ
|
|
13428
|
-
i0__namespace.ɵɵ
|
|
13429
|
-
i0__namespace.ɵɵ
|
|
13430
|
-
i0__namespace.ɵɵtemplate(
|
|
13431
|
-
i0__namespace.ɵɵtemplate(9, AdminLayoutComponent_div_9_Template, 6, 8, "div", 8);
|
|
13411
|
+
i0__namespace.ɵɵtemplate(6, AdminLayoutComponent_ng_container_6_Template, 2, 0, "ng-container", 6);
|
|
13412
|
+
i0__namespace.ɵɵtemplate(7, AdminLayoutComponent_ng_template_7_Template, 1, 0, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
|
|
13413
|
+
i0__namespace.ɵɵtemplate(9, AdminLayoutComponent_div_9_Template, 4, 0, "div", 8);
|
|
13414
|
+
i0__namespace.ɵɵtemplate(10, AdminLayoutComponent_div_10_Template, 6, 8, "div", 9);
|
|
13432
13415
|
i0__namespace.ɵɵelementEnd();
|
|
13433
13416
|
i0__namespace.ɵɵelementEnd();
|
|
13434
13417
|
i0__namespace.ɵɵelementEnd();
|
|
13435
13418
|
}
|
|
13436
13419
|
if (rf & 2) {
|
|
13420
|
+
var _r1 = i0__namespace.ɵɵreference(8);
|
|
13437
13421
|
i0__namespace.ɵɵproperty("fgsType", ctx.spinnerType);
|
|
13438
13422
|
i0__namespace.ɵɵadvance(1);
|
|
13439
13423
|
i0__namespace.ɵɵproperty("dir", ctx.layoutConf.dir);
|
|
13440
13424
|
i0__namespace.ɵɵadvance(4);
|
|
13441
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(
|
|
13425
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(7, _c0$5, ctx.display, ctx.dashboardPage));
|
|
13426
|
+
i0__namespace.ɵɵadvance(1);
|
|
13427
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.isHomeScreen)("ngIfElse", _r1);
|
|
13442
13428
|
i0__namespace.ɵɵadvance(3);
|
|
13443
13429
|
i0__namespace.ɵɵproperty("ngIf", ctx.isModuleLoading);
|
|
13444
13430
|
i0__namespace.ɵɵadvance(1);
|
|
13445
13431
|
i0__namespace.ɵɵproperty("ngIf", ctx.loading);
|
|
13446
13432
|
}
|
|
13447
|
-
}, directives: [i3__namespace$1.ɵb, i12__namespace$1.Dir, HeaderSideComponent, i10__namespace.NgClass, i4__namespace$1.DefaultClassDirective, SideBarComponent, i2__namespace.RouterOutlet
|
|
13433
|
+
}, directives: [i3__namespace$1.ɵb, i12__namespace$1.Dir, HeaderSideComponent, i10__namespace.NgClass, i4__namespace$1.DefaultClassDirective, i10__namespace.NgIf, SideBarComponent, i2__namespace.RouterOutlet], pipes: [i5__namespace$1.TranslatePipe], encapsulation: 2 });
|
|
13448
13434
|
(function () {
|
|
13449
13435
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AdminLayoutComponent, [{
|
|
13450
13436
|
type: i0.Component,
|
|
@@ -13452,9 +13438,9 @@
|
|
|
13452
13438
|
selector: "app-admin-layout",
|
|
13453
13439
|
templateUrl: "./admin-layout.template.html"
|
|
13454
13440
|
}]
|
|
13455
|
-
}], function () { return [{ type: i2__namespace.Router }, { type: i5__namespace$1.TranslateService }, { type: LayoutService }, { type: i3__namespace.Store }, { type: i5__namespace.CookieService }, { type: i1__namespace$2.Actions }, { type: i10__namespace.Location }, { type: CommonService }, { type: i2__namespace$2.PubNubAngular }, { type: SignalrService }]; }, { onResize: [{
|
|
13441
|
+
}], function () { return [{ type: i2__namespace.Router }, { type: i2__namespace.ActivatedRoute }, { type: i5__namespace$1.TranslateService }, { type: LayoutService }, { type: i3__namespace.Store }, { type: i5__namespace.CookieService }, { type: i1__namespace$2.Actions }, { type: i10__namespace.Location }, { type: CommonService }, { type: i2__namespace$2.PubNubAngular }, { type: SignalrService }]; }, { onResize: [{
|
|
13456
13442
|
type: i0.HostListener,
|
|
13457
|
-
args: ["window:resize", [
|
|
13443
|
+
args: ["window:resize", ["$event"]]
|
|
13458
13444
|
}] });
|
|
13459
13445
|
})();
|
|
13460
13446
|
|
|
@@ -17369,12 +17355,13 @@
|
|
|
17369
17355
|
|
|
17370
17356
|
var ShellRouts = [
|
|
17371
17357
|
{
|
|
17372
|
-
path:
|
|
17358
|
+
path: '',
|
|
17359
|
+
component: AdminLayoutComponent,
|
|
17373
17360
|
children: [
|
|
17374
|
-
//
|
|
17375
|
-
{ path: '
|
|
17376
|
-
{ path: 'payments-plans', component: CompanyPlansComponent
|
|
17377
|
-
{ path: 'welcome', component: LiveWelcomePageComponent
|
|
17361
|
+
// no default child here on purpose – layout shows grid when there’s no child
|
|
17362
|
+
{ path: 'accounts', component: AccountAndBillingComponent },
|
|
17363
|
+
{ path: 'payments-plans', component: CompanyPlansComponent },
|
|
17364
|
+
{ path: 'welcome', component: LiveWelcomePageComponent }
|
|
17378
17365
|
]
|
|
17379
17366
|
}
|
|
17380
17367
|
];
|