@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.
@@ -12032,37 +12032,46 @@ SideBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SideBarCom
12032
12032
  }]
12033
12033
  }], function () { return [{ type: i3.Store }, { type: i2.Router }]; }, null); })();
12034
12034
 
12035
- function AdminLayoutComponent_div_8_Template(rf, ctx) { if (rf & 1) {
12036
- i0.ɵɵelementStart(0, "div", 9);
12037
- i0.ɵɵelementStart(1, "div", 10);
12038
- i0.ɵɵelement(2, "div", 11);
12039
- i0.ɵɵelement(3, "div", 12);
12035
+ function AdminLayoutComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
12036
+ i0.ɵɵelementContainerStart(0);
12037
+ i0.ɵɵelement(1, "app-sidebar", 10);
12038
+ i0.ɵɵelementContainerEnd();
12039
+ } }
12040
+ function AdminLayoutComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
12041
+ i0.ɵɵelement(0, "router-outlet");
12042
+ } }
12043
+ function AdminLayoutComponent_div_9_Template(rf, ctx) { if (rf & 1) {
12044
+ i0.ɵɵelementStart(0, "div", 11);
12045
+ i0.ɵɵelementStart(1, "div", 12);
12046
+ i0.ɵɵelement(2, "div", 13);
12047
+ i0.ɵɵelement(3, "div", 14);
12040
12048
  i0.ɵɵelementEnd();
12041
12049
  i0.ɵɵelementEnd();
12042
12050
  } }
12043
- function AdminLayoutComponent_div_9_div_5_Template(rf, ctx) { if (rf & 1) {
12044
- i0.ɵɵelement(0, "div", 16);
12051
+ function AdminLayoutComponent_div_10_div_5_Template(rf, ctx) { if (rf & 1) {
12052
+ i0.ɵɵelement(0, "div", 18);
12045
12053
  } }
12046
- function AdminLayoutComponent_div_9_Template(rf, ctx) { if (rf & 1) {
12047
- i0.ɵɵelementStart(0, "div", 13);
12048
- i0.ɵɵelementStart(1, "span", 14);
12054
+ function AdminLayoutComponent_div_10_Template(rf, ctx) { if (rf & 1) {
12055
+ i0.ɵɵelementStart(0, "div", 15);
12056
+ i0.ɵɵelementStart(1, "span", 16);
12049
12057
  i0.ɵɵtext(2);
12050
12058
  i0.ɵɵpipe(3, "translate");
12051
12059
  i0.ɵɵpipe(4, "translate");
12052
12060
  i0.ɵɵelementEnd();
12053
- i0.ɵɵtemplate(5, AdminLayoutComponent_div_9_div_5_Template, 1, 0, "div", 15);
12061
+ i0.ɵɵtemplate(5, AdminLayoutComponent_div_10_div_5_Template, 1, 0, "div", 17);
12054
12062
  i0.ɵɵelementEnd();
12055
12063
  } if (rf & 2) {
12056
- const ctx_r1 = i0.ɵɵnextContext();
12064
+ const ctx_r4 = i0.ɵɵnextContext();
12057
12065
  i0.ɵɵadvance(2);
12058
- i0.ɵɵtextInterpolate3(" ", i0.ɵɵpipeBind1(3, 4, "LOADINGPLEASEWAIT"), " (", ctx_r1.totalLoadingTime, " ", i0.ɵɵpipeBind1(4, 6, "SECONDS"), ") ");
12066
+ i0.ɵɵtextInterpolate3(" ", i0.ɵɵpipeBind1(3, 4, "LOADINGPLEASEWAIT"), " (", ctx_r4.totalLoadingTime, " ", i0.ɵɵpipeBind1(4, 6, "SECONDS"), ") ");
12059
12067
  i0.ɵɵadvance(3);
12060
- i0.ɵɵproperty("ngIf", ctx_r1.loading);
12068
+ i0.ɵɵproperty("ngIf", ctx_r4.loading);
12061
12069
  } }
12062
12070
  const _c0$5 = function (a0, a1) { return { "blur-on-opened": a0, "show-in-dashboard": a1 }; };
12063
12071
  class AdminLayoutComponent {
12064
- constructor(router, translate, layout, store, cookieService, actionUpdates$, location, commonService, pubnub, signalr) {
12072
+ constructor(router, activatedRoute, translate, layout, store, cookieService, actionUpdates$, location, commonService, pubnub, signalr) {
12065
12073
  this.router = router;
12074
+ this.activatedRoute = activatedRoute;
12066
12075
  this.translate = translate;
12067
12076
  this.layout = layout;
12068
12077
  this.store = store;
@@ -12073,33 +12082,29 @@ class AdminLayoutComponent {
12073
12082
  this.pubnub = pubnub;
12074
12083
  this.signalr = signalr;
12075
12084
  this.isModuleLoading = false;
12076
- // private sidebarPS: PerfectScrollbar;
12077
- // private bodyPS: PerfectScrollbar;
12078
- // private headerFixedBodyPS: PerfectScrollbar;
12079
12085
  this.scrollConfig = {};
12080
12086
  this.layoutConf = {};
12081
12087
  this.ngDestroyed$ = new Subject();
12082
- this.userstory = 'userstory';
12088
+ this.userstory = "userstory";
12083
12089
  this.loading = false;
12084
12090
  this.totalLoadingTime = 0;
12085
12091
  this.spinnerType = SPINNER.circle;
12086
- // let conId = sessionStorage.getItem('conectionId');
12087
- // if(!conId) {
12092
+ // 👉 NEW FLAG
12093
+ this.isHomeScreen = true;
12088
12094
  this.signalr.initializeSignalRConnection();
12089
- // }
12090
12095
  let environment = JSON.parse(localStorage.getItem(LocalStorageProperties.Environment));
12091
12096
  let companySettings = localStorage.getItem(LocalStorageProperties.CompanySettings);
12092
- if (!companySettings || companySettings == 'null' || companySettings == "undefined") {
12097
+ if (!companySettings || companySettings == "null" || companySettings == "undefined") {
12093
12098
  pubnub.init({
12094
12099
  publishKey: environment.publishKey,
12095
12100
  subscribeKey: environment.subscribeKey
12096
12101
  });
12097
12102
  }
12098
12103
  else {
12099
- const comSet = JSON.parse(localStorage.getItem(LocalStorageProperties.CompanySettings));
12100
- var publishKey = comSet.find(i => i.key == "PubnubPublishKey");
12101
- var subscribeKey = comSet.find(i => i.key == "PubnubSubscribeKey");
12102
- if ((publishKey && publishKey.value) && (subscribeKey && subscribeKey.value)) {
12104
+ const comSet = JSON.parse(companySettings);
12105
+ var publishKey = comSet.find((i) => i.key == "PubnubPublishKey");
12106
+ var subscribeKey = comSet.find((i) => i.key == "PubnubSubscribeKey");
12107
+ if ((publishKey === null || publishKey === void 0 ? void 0 : publishKey.value) && (subscribeKey === null || subscribeKey === void 0 ? void 0 : subscribeKey.value)) {
12103
12108
  pubnub.init({
12104
12109
  publishKey: publishKey.value,
12105
12110
  subscribeKey: subscribeKey.value
@@ -12114,14 +12119,15 @@ class AdminLayoutComponent {
12114
12119
  }
12115
12120
  // Close sidenav after route change in mobile
12116
12121
  this.routerEventSub = router.events
12117
- .pipe(filter(event => event instanceof NavigationEnd))
12122
+ .pipe(filter((event) => event instanceof NavigationEnd))
12118
12123
  .subscribe((routeChange) => {
12119
12124
  this.layout.adjustLayout({ route: routeChange.url });
12125
+ this.updateHomeToggle(); // 👉 update on every navigation
12120
12126
  });
12121
12127
  // Translator init
12122
12128
  let currentCulture = this.cookieService.get(LocalStorageProperties.CurrentCulture);
12123
- if (currentCulture === 'null' || currentCulture === 'undefined') {
12124
- currentCulture = 'en';
12129
+ if (currentCulture === "null" || currentCulture === "undefined") {
12130
+ currentCulture = "en";
12125
12131
  }
12126
12132
  translate.use(currentCulture);
12127
12133
  this.router.events.subscribe((event) => {
@@ -12142,30 +12148,23 @@ class AdminLayoutComponent {
12142
12148
  this.loading = false;
12143
12149
  break;
12144
12150
  }
12145
- default: {
12146
- break;
12147
- }
12148
12151
  }
12149
12152
  });
12150
- router.events.subscribe(val => {
12153
+ router.events.subscribe((val) => {
12151
12154
  if (location.path() != "") {
12152
- if (location.path().includes('/dashboard-management/dashboard/')) {
12155
+ if (location.path().includes("/dashboard-management/dashboard/")) {
12153
12156
  this.dashboardPage = true;
12154
- this.bgcolor = 'none';
12157
+ this.bgcolor = "none";
12155
12158
  }
12156
12159
  else {
12157
12160
  this.dashboardPage = false;
12158
- this.bgcolor = 'beige';
12161
+ this.bgcolor = "beige";
12159
12162
  }
12160
12163
  }
12161
12164
  });
12162
- // if (this.cookieService.check(LocalStorageProperties.UserModel)) {
12163
- // let data = JSON.parse(this.cookieService.get(LocalStorageProperties.UserModel));
12164
- // if (data && data != 'null' && data != 'undefined')
12165
- // this.store.dispatch(new UserDetailsFetchedAfterLogin(data));
12166
- // }
12167
- if ((localStorage.getItem(LocalStorageProperties.UserModel) != null && localStorage.getItem(LocalStorageProperties.UserModel) != undefined)
12168
- && !localStorage.hasOwnProperty(LocalStorageProperties.UserRoleFeatures)) {
12165
+ if (localStorage.getItem(LocalStorageProperties.UserModel) != null &&
12166
+ localStorage.getItem(LocalStorageProperties.UserModel) != undefined &&
12167
+ !localStorage.hasOwnProperty(LocalStorageProperties.UserRoleFeatures)) {
12169
12168
  let data = JSON.parse(localStorage.getItem(LocalStorageProperties.UserModel));
12170
12169
  this.store.dispatch(new UserDetailsFetchedAfterLogin(data));
12171
12170
  }
@@ -12174,22 +12173,31 @@ class AdminLayoutComponent {
12174
12173
  if (result && result.companyId) {
12175
12174
  this.getSoftLabels();
12176
12175
  }
12177
- })).subscribe();
12176
+ }))
12177
+ .subscribe();
12178
12178
  }
12179
12179
  ngOnInit() {
12180
12180
  this.getSoftLabelConfigurations();
12181
12181
  this.layoutConf = this.layout.layoutConf;
12182
- // this.layout.adjustLayout();
12183
- // FOR MODULE LOADER FLAG
12184
- this.moduleLoaderSub = this.router.events.subscribe(event => {
12185
- if (event instanceof RouteConfigLoadStart ||
12186
- event instanceof ResolveStart) {
12187
- this.isModuleLoading = false;
12182
+ this.moduleLoaderSub = this.router.events.subscribe((event) => {
12183
+ if (event instanceof RouteConfigLoadStart || event instanceof ResolveStart) {
12184
+ this.isModuleLoading = true;
12188
12185
  }
12189
12186
  if (event instanceof RouteConfigLoadEnd || event instanceof ResolveEnd) {
12190
12187
  this.isModuleLoading = false;
12191
12188
  }
12192
12189
  });
12190
+ this.updateHomeToggle(); // initial check
12191
+ }
12192
+ updateHomeToggle() {
12193
+ var _a, _b;
12194
+ // 👉 logic: if route has no child OR path is '', we are home
12195
+ let child = this.activatedRoute.firstChild;
12196
+ while (child === null || child === void 0 ? void 0 : child.firstChild) {
12197
+ child = child.firstChild;
12198
+ }
12199
+ const 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 : "";
12200
+ this.isHomeScreen = !child || childPath === "";
12193
12201
  }
12194
12202
  onResize(event) {
12195
12203
  this.layout.adjustLayout(event);
@@ -12198,7 +12206,7 @@ class AdminLayoutComponent {
12198
12206
  this.display = event;
12199
12207
  }
12200
12208
  getSoftLabelConfigurations() {
12201
- this.softLabels = JSON.parse(localStorage.getItem('SoftLabels'));
12209
+ this.softLabels = JSON.parse(localStorage.getItem("SoftLabels"));
12202
12210
  }
12203
12211
  getSoftLabels() {
12204
12212
  let model = new SoftLabelConfigurationModel();
@@ -12207,33 +12215,12 @@ class AdminLayoutComponent {
12207
12215
  if (response.success) {
12208
12216
  let data = response.data;
12209
12217
  if (data) {
12210
- localStorage.setItem('SoftLabels', JSON.stringify(data));
12218
+ localStorage.setItem("SoftLabels", JSON.stringify(data));
12211
12219
  }
12212
12220
  }
12213
12221
  });
12214
12222
  }
12215
- ngAfterViewInit() {
12216
- // this.layoutConfSub = this.layout.layoutConf$.subscribe(change => {
12217
- // // this.initBodyPS(change)
12218
- // })
12219
- }
12220
- // initBodyPS(layoutConf:any = {}) {
12221
- // if(layoutConf.navigationPos === 'side' && layoutConf.topbarFixed) {
12222
- // if (this.bodyPS) this.bodyPS.destroy();
12223
- // if (this.headerFixedBodyPS) this.headerFixedBodyPS.destroy();
12224
- // this.headerFixedBodyPS = new PerfectScrollbar('.rightside-content-hold', {
12225
- // suppressScrollX: true
12226
- // });
12227
- // this.scrollToTop('.rightside-content-hold');
12228
- // } else {
12229
- // if (this.bodyPS) this.bodyPS.destroy();
12230
- // if (this.headerFixedBodyPS) this.headerFixedBodyPS.destroy();
12231
- // this.bodyPS = new PerfectScrollbar('.main-content-wrap', {
12232
- // suppressScrollX: true
12233
- // });
12234
- // this.scrollToTop('.main-content-wrap');
12235
- // }
12236
- // }
12223
+ ngAfterViewInit() { }
12237
12224
  scrollToTop(selector) {
12238
12225
  if (document) {
12239
12226
  let element = document.querySelector(selector);
@@ -12241,18 +12228,11 @@ class AdminLayoutComponent {
12241
12228
  }
12242
12229
  }
12243
12230
  ngOnDestroy() {
12244
- if (this.moduleLoaderSub) {
12245
- this.moduleLoaderSub.unsubscribe();
12246
- }
12247
- if (this.layoutConfSub) {
12248
- this.layoutConfSub.unsubscribe();
12249
- }
12250
- if (this.routerEventSub) {
12251
- this.routerEventSub.unsubscribe();
12252
- }
12253
- if (this.sub) {
12254
- this.sub.unsubscribe();
12255
- }
12231
+ var _a, _b, _c, _d;
12232
+ (_a = this.moduleLoaderSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
12233
+ (_b = this.layoutConfSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
12234
+ (_c = this.routerEventSub) === null || _c === void 0 ? void 0 : _c.unsubscribe();
12235
+ (_d = this.sub) === null || _d === void 0 ? void 0 : _d.unsubscribe();
12256
12236
  }
12257
12237
  closeSidebar() {
12258
12238
  this.layout.publishLayoutChange({
@@ -12265,10 +12245,10 @@ class AdminLayoutComponent {
12265
12245
  }, 1000);
12266
12246
  }
12267
12247
  }
12268
- AdminLayoutComponent.ɵfac = function AdminLayoutComponent_Factory(t) { return new (t || AdminLayoutComponent)(i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i5$1.TranslateService), i0.ɵɵdirectiveInject(LayoutService), i0.ɵɵdirectiveInject(i3.Store), i0.ɵɵdirectiveInject(i5.CookieService), i0.ɵɵdirectiveInject(i1$2.Actions), i0.ɵɵdirectiveInject(i10.Location), i0.ɵɵdirectiveInject(CommonService), i0.ɵɵdirectiveInject(i2$2.PubNubAngular), i0.ɵɵdirectiveInject(SignalrService)); };
12248
+ AdminLayoutComponent.ɵfac = function AdminLayoutComponent_Factory(t) { return new (t || AdminLayoutComponent)(i0.ɵɵdirectiveInject(i2.Router), i0.ɵɵdirectiveInject(i2.ActivatedRoute), i0.ɵɵdirectiveInject(i5$1.TranslateService), i0.ɵɵdirectiveInject(LayoutService), i0.ɵɵdirectiveInject(i3.Store), i0.ɵɵdirectiveInject(i5.CookieService), i0.ɵɵdirectiveInject(i1$2.Actions), i0.ɵɵdirectiveInject(i10.Location), i0.ɵɵdirectiveInject(CommonService), i0.ɵɵdirectiveInject(i2$2.PubNubAngular), i0.ɵɵdirectiveInject(SignalrService)); };
12269
12249
  AdminLayoutComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdminLayoutComponent, selectors: [["app-admin-layout"]], hostBindings: function AdminLayoutComponent_HostBindings(rf, ctx) { if (rf & 1) {
12270
12250
  i0.ɵɵlistener("resize", function AdminLayoutComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0.ɵɵresolveWindow);
12271
- } }, decls: 10, vars: 8, 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"], [1, "flex-grow-1", "d-flex", "justify-content-center", "align-items-start", "p-3"], ["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, "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) { if (rf & 1) {
12251
+ } }, 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) { if (rf & 1) {
12272
12252
  i0.ɵɵelement(0, "ngx-ui-loader", 0);
12273
12253
  i0.ɵɵelementStart(1, "div", 1);
12274
12254
  i0.ɵɵelementStart(2, "div", 2);
@@ -12278,34 +12258,36 @@ AdminLayoutComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdminL
12278
12258
  i0.ɵɵelementEnd();
12279
12259
  i0.ɵɵelementStart(4, "div", 4);
12280
12260
  i0.ɵɵelementStart(5, "div", 5);
12281
- i0.ɵɵelementStart(6, "app-sidebar", 6);
12282
- i0.ɵɵelement(7, "router-outlet");
12283
- i0.ɵɵelementEnd();
12284
- i0.ɵɵtemplate(8, AdminLayoutComponent_div_8_Template, 4, 0, "div", 7);
12285
- i0.ɵɵtemplate(9, AdminLayoutComponent_div_9_Template, 6, 8, "div", 8);
12261
+ i0.ɵɵtemplate(6, AdminLayoutComponent_ng_container_6_Template, 2, 0, "ng-container", 6);
12262
+ i0.ɵɵtemplate(7, AdminLayoutComponent_ng_template_7_Template, 1, 0, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
12263
+ i0.ɵɵtemplate(9, AdminLayoutComponent_div_9_Template, 4, 0, "div", 8);
12264
+ i0.ɵɵtemplate(10, AdminLayoutComponent_div_10_Template, 6, 8, "div", 9);
12286
12265
  i0.ɵɵelementEnd();
12287
12266
  i0.ɵɵelementEnd();
12288
12267
  i0.ɵɵelementEnd();
12289
12268
  } if (rf & 2) {
12269
+ const _r1 = i0.ɵɵreference(8);
12290
12270
  i0.ɵɵproperty("fgsType", ctx.spinnerType);
12291
12271
  i0.ɵɵadvance(1);
12292
12272
  i0.ɵɵproperty("dir", ctx.layoutConf.dir);
12293
12273
  i0.ɵɵadvance(4);
12294
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(5, _c0$5, ctx.display, ctx.dashboardPage));
12274
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c0$5, ctx.display, ctx.dashboardPage));
12275
+ i0.ɵɵadvance(1);
12276
+ i0.ɵɵproperty("ngIf", ctx.isHomeScreen)("ngIfElse", _r1);
12295
12277
  i0.ɵɵadvance(3);
12296
12278
  i0.ɵɵproperty("ngIf", ctx.isModuleLoading);
12297
12279
  i0.ɵɵadvance(1);
12298
12280
  i0.ɵɵproperty("ngIf", ctx.loading);
12299
- } }, directives: [i3$1.ɵb, i12$1.Dir, HeaderSideComponent, i10.NgClass, i4$1.DefaultClassDirective, SideBarComponent, i2.RouterOutlet, i10.NgIf], pipes: [i5$1.TranslatePipe], encapsulation: 2 });
12281
+ } }, directives: [i3$1.ɵb, i12$1.Dir, HeaderSideComponent, i10.NgClass, i4$1.DefaultClassDirective, i10.NgIf, SideBarComponent, i2.RouterOutlet], pipes: [i5$1.TranslatePipe], encapsulation: 2 });
12300
12282
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdminLayoutComponent, [{
12301
12283
  type: Component,
12302
12284
  args: [{
12303
12285
  selector: "app-admin-layout",
12304
12286
  templateUrl: "./admin-layout.template.html"
12305
12287
  }]
12306
- }], function () { return [{ type: i2.Router }, { type: i5$1.TranslateService }, { type: LayoutService }, { type: i3.Store }, { type: i5.CookieService }, { type: i1$2.Actions }, { type: i10.Location }, { type: CommonService }, { type: i2$2.PubNubAngular }, { type: SignalrService }]; }, { onResize: [{
12288
+ }], function () { return [{ type: i2.Router }, { type: i2.ActivatedRoute }, { type: i5$1.TranslateService }, { type: LayoutService }, { type: i3.Store }, { type: i5.CookieService }, { type: i1$2.Actions }, { type: i10.Location }, { type: CommonService }, { type: i2$2.PubNubAngular }, { type: SignalrService }]; }, { onResize: [{
12307
12289
  type: HostListener,
12308
- args: ["window:resize", ['$event']]
12290
+ args: ["window:resize", ["$event"]]
12309
12291
  }] }); })();
12310
12292
 
12311
12293
  function HeaderTopComponent_li_7_a_1_Template(rf, ctx) { if (rf & 1) {
@@ -15837,12 +15819,13 @@ ShellModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
15837
15819
 
15838
15820
  const ShellRouts = [
15839
15821
  {
15840
- path: "",
15822
+ path: '',
15823
+ component: AdminLayoutComponent,
15841
15824
  children: [
15842
- // { path: 'settings', component: settingsComponent, data: { title: 'settings', breadcrumb: 'settings' } },
15843
- { path: 'Accounts', component: AccountAndBillingComponent, data: { title: 'Account & Billing', breadcrumb: 'Account & Billing' } },
15844
- { path: 'payments-plans', component: CompanyPlansComponent, data: { title: 'Payments', breadcrumb: 'Payments' } },
15845
- { path: 'welcome', component: LiveWelcomePageComponent, data: { title: 'welcome', breadcrumb: 'welcome' } }
15825
+ // no default child here on purpose layout shows grid when there’s no child
15826
+ { path: 'accounts', component: AccountAndBillingComponent },
15827
+ { path: 'payments-plans', component: CompanyPlansComponent },
15828
+ { path: 'welcome', component: LiveWelcomePageComponent }
15846
15829
  ]
15847
15830
  }
15848
15831
  ];