@thetradeengineorg1/snova-shell-module 1.0.2 → 1.0.4

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.
@@ -9192,7 +9192,7 @@ MenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MenuComponent
9192
9192
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.openMenuPopOver = _t);
9193
9193
  } }, hostBindings: function MenuComponent_HostBindings(rf, ctx) { if (rf & 1) {
9194
9194
  i0.ɵɵlistener("keydown.control.q", function MenuComponent_keydown_control_q_HostBindingHandler() { return ctx.keyOpenEvent(); }, false, i0.ɵɵresolveDocument)("keydown.control.m", function MenuComponent_keydown_control_m_HostBindingHandler() { return ctx.keyCloseEvent(); }, false, i0.ɵɵresolveDocument)("keydown.control.b", function MenuComponent_keydown_control_b_HostBindingHandler() { return ctx.remoteSearchByText(); }, false, i0.ɵɵresolveDocument)("keydown.control.y", function MenuComponent_keydown_control_y_HostBindingHandler() { return ctx.remoteSearchById(); }, false, i0.ɵɵresolveDocument);
9195
- } }, inputs: { reloadAll: ["reload", "reloadAll"] }, outputs: { isOpened: "isOpened", openNewDashboard: "openNewDashboard" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 7, consts: [["type", "submit", "mat-icon-button", "", "fxHide.gt-xs", "", "fxShow", "", 1, "visibles", 3, "matMenuTriggerFor"], [1, "newMenu"], ["yPosition", "below", 1, "filter-panel", 2, "height", "auto", 3, "click"], ["menus", "matMenu"], [4, "ngFor", "ngForOf"], [1, "home-icon", "mat-icon-button", 2, "position", "relative", "left", "88%"], ["mat-icon-button", "", "matTooltipClass", "tooltipClass-mat", 1, "mat-color-accent", "cursor-pointer", "theme-navbar-icon-color", 2, "width", "40px", "height", "40px", "display", "flex", "align-items", "center", "justify-content", "center", 3, "matTooltip", "routerLink"], [2, "font-size", "28px", "line-height", "1", "background", "linear-gradient(90deg,#5de0e6,#004aad)", "-webkit-background-clip", "text", "-webkit-text-fill-color", "transparent", "background-clip", "text", "text-fill-color", "transparent"], ["style", "position: relative; left:90%", "class", "store-icom mat-icon-button", 3, "ngClass", 4, "ngIf"], [4, "ngIf"], ["mat-menu-item", "", "routerLinkActive", "item-active", 3, "routerLink", "click"], [1, "store-icom", "mat-icon-button", 2, "position", "relative", "left", "90%", 3, "ngClass"], ["mat-icon-button", "", "matTooltipClass", "tooltipClass-mat", 1, "mat-color-accent", "cursor-pointer", "theme-navbar-icon-color", 2, "width", "40px", "height", "40px", "display", "flex", "align-items", "center", "justify-content", "center", 3, "matTooltip", "click"]], template: function MenuComponent_Template(rf, ctx) { if (rf & 1) {
9195
+ } }, inputs: { reloadAll: ["reload", "reloadAll"] }, outputs: { isOpened: "isOpened", openNewDashboard: "openNewDashboard" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 12, vars: 7, consts: [["type", "submit", "mat-icon-button", "", "fxHide.gt-xs", "", "fxShow", "", 1, "visibles", 3, "matMenuTriggerFor"], [1, "newMenu"], ["yPosition", "below", 1, "filter-panel", 2, "height", "auto", 3, "click"], ["menus", "matMenu"], [4, "ngFor", "ngForOf"], [1, "home-icon", "mat-icon-button", 2, "position", "relative", "left", "88%"], ["mat-icon-button", "", "matTooltipClass", "tooltipClass-mat", 1, "mat-color-accent", "cursor-pointer", "theme-navbar-icon-color", 2, "width", "40px", "height", "40px", "display", "flex", "align-items", "center", "justify-content", "center", 3, "matTooltip", "routerLink"], [2, "font-size", "28px", "line-height", "1", "background", "linear-gradient(90deg,#f79a6b,#f1580c)", "-webkit-background-clip", "text", "-webkit-text-fill-color", "transparent", "background-clip", "text", "text-fill-color", "transparent"], ["style", "position: relative; left:90%", "class", "store-icom mat-icon-button", 3, "ngClass", 4, "ngIf"], [4, "ngIf"], ["mat-menu-item", "", "routerLinkActive", "item-active", 3, "routerLink", "click"], [1, "store-icom", "mat-icon-button", 2, "position", "relative", "left", "90%", 3, "ngClass"], ["mat-icon-button", "", "matTooltipClass", "tooltipClass-mat", 1, "mat-color-accent", "cursor-pointer", "theme-navbar-icon-color", 2, "width", "40px", "height", "40px", "display", "flex", "align-items", "center", "justify-content", "center", 3, "matTooltip", "click"]], template: function MenuComponent_Template(rf, ctx) { if (rf & 1) {
9196
9196
  i0.ɵɵelementStart(0, "button", 0);
9197
9197
  i0.ɵɵelementStart(1, "mat-icon", 1);
9198
9198
  i0.ɵɵtext(2, "menu");
@@ -11642,7 +11642,7 @@ HeaderSideComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HeaderS
11642
11642
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.documentPopover = _t.first);
11643
11643
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.openAnnoucementDialogComponent = _t.first);
11644
11644
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileUploadDropzonePopup = _t);
11645
- } }, inputs: { notificPanel: "notificPanel" }, outputs: { opened: "opened" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 45, vars: 26, consts: [[1, "topbar", "remove-padding", 2, "background", "#ffffff !important", "border-bottom", "1px solid #e5e7eb", "height", "65px", "padding", "0 20px", "z-index", "1200", "position", "relative"], ["fxFlex", ""], [3, "reload", "isOpened", "openNewDashboard"], ["fxFlex", "", "fxLayout", "row", "fxHide.xs", "", "fxLayoutAlign", "center"], ["fxFlex", "", "fxLayout", "row", "fxLayoutAlign", "end center", 2, "gap", "10px"], ["class", "filter-data custom-box language-section", "style", "width:180px; position:relative;", 3, "click", 4, "ngIf"], [4, "ngIf"], ["mat-icon-button", "", "id", "feedTimeSheetComponent", 2, "background", "rgba(255,255,255,0.6)", "border-radius", "10px", 3, "matTooltip", "satPopoverAnchorFor", "click"], [2, "background", "linear-gradient(90deg,#5de0e6,#004aad)", "-webkit-background-clip", "text", "-webkit-text-fill-color", "transparent"], ["mat-icon-button", "", "style", "position:relative; background:rgba(255,255,255,0.6); border-radius:10px;", 3, "matTooltip", "matMenuTriggerFor", "click", 4, "ngIf"], ["notification", "matMenu"], ["mat-icon-button", "", "style", "width:32px; height:32px; background:rgba(255,255,255,0.6);\n border-radius:50%; border:1px solid #e5e7eb;\n display:flex; align-items:center; justify-content:center; overflow:hidden;", 3, "matMenuTriggerFor", 4, "ngIf"], ["hasBackdrop", "", "scrollStrategy", "reposition", "verticalAlign", "below", "horizontalAlign", "before", 3, "autoFocus", "restoreFocus", "interactiveClose"], ["feedTimeSheet", ""], [3, "isFeedTimeSheet", "closeFeedTimeSheetPopup"], ["accountMenu", "matMenu"], ["mat-menu-item", "", 3, "click"], ["mat-menu-item", "", 3, "click", 4, "ngIf"], [1, "feedback-icon", 3, "satPopoverAnchorFor"], ["verticalAlign", "below", "hasBackdrop", "", "backdropClass", "backdrop-color", "horizontalAlign", "end", 3, "interactiveClose"], ["feedBackPopOver", ""], [3, "closeDialog", 4, "ngIf"], [1, "filter-data", "custom-box", "language-section", 2, "width", "180px", "position", "relative", 3, "click"], ["placeholder", "", "name", "selectedCompany", "panelClass", "company-select-panel", 3, "ngModel", "ngModelChange", "selectionChange"], ["style", "display:flex; align-items:center; gap:10px;", 4, "ngIf"], ["fxFlex", "", "fxLayoutAlign", "start center", 1, "search_goalinput", "ml-1", 2, "position", "sticky", "top", "0", "z-index", "1", "background-color", "#fff", "padding", "6px 8px"], [1, "full-width", 2, "width", "100%", "margin", "0"], ["matInput", "", "autocomplete", "off", 1, "search_goal", 3, "placeholder", "ngModel", "ngModelChange"], ["style", "cursor:pointer", 3, "click", 4, "ngIf"], ["matTooltipClass", "tooltipClass-mat", "matTooltipShowDelay", "400", 3, "value", "matTooltip", 4, "ngFor", "ngForOf"], [2, "display", "flex", "align-items", "center", "gap", "10px"], ["fxLayoutAlign", "start center", "size", "20", 3, "name", "src", "isRound"], [1, "language-display", 2, "font-weight", "600", "overflow", "hidden", "text-overflow", "ellipsis", "white-space", "nowrap", "background", "linear-gradient(90deg,#5de0e6,#004aad)", "-webkit-background-clip", "text", "-webkit-text-fill-color", "transparent", "background-clip", "text"], [2, "cursor", "pointer", 3, "click"], ["matTooltipClass", "tooltipClass-mat", "matTooltipShowDelay", "400", 3, "value", "matTooltip"], [1, "cursor-pointer", 2, "display", "flex", "align-items", "center"], ["size", "20", 3, "name", "src", "isRound"], [2, "margin-left", "8px"], ["mat-icon-button", "", 2, "background", "rgba(255,255,255,0.6)", "border-radius", "10px", 3, "matTooltip", "ngClass", "click"], ["mat-icon-button", "", 2, "background", "rgba(255,255,255,0.6)", "border-radius", "10px", 3, "matTooltip", "click"], ["mat-icon-button", "", 2, "position", "relative", "background", "rgba(255,255,255,0.6)", "border-radius", "10px", 3, "matTooltip", "matMenuTriggerFor", "click"], ["class", "notification-number mat-bg-warn", "style", "position:absolute; top:-2px; right:-2px;", 4, "ngIf"], [1, "notification-number", "mat-bg-warn", 2, "position", "absolute", "top", "-2px", "right", "-2px"], ["mat-icon-button", "", 2, "width", "32px", "height", "32px", "background", "rgba(255,255,255,0.6)", "border-radius", "50%", "border", "1px solid #e5e7eb", "display", "flex", "align-items", "center", "justify-content", "center", "overflow", "hidden", 3, "matMenuTriggerFor"], ["alt", "profile image", "style", "width:28px; height:28px; border-radius:50%;", 3, "src", 4, "ngIf"], ["alt", "profile image", 2, "width", "28px", "height", "28px", "border-radius", "50%", 3, "src"], ["size", "26", 3, "name", "isRound"], [3, "closeDialog"]], template: function HeaderSideComponent_Template(rf, ctx) { if (rf & 1) {
11645
+ } }, inputs: { notificPanel: "notificPanel" }, outputs: { opened: "opened" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 45, vars: 26, consts: [[1, "topbar", "remove-padding", 2, "background", "#ffffff !important", "border-bottom", "1px solid #e5e7eb", "height", "65px", "padding", "0 20px", "z-index", "1200", "position", "relative"], ["fxFlex", ""], [3, "reload", "isOpened", "openNewDashboard"], ["fxFlex", "", "fxLayout", "row", "fxHide.xs", "", "fxLayoutAlign", "center"], ["fxFlex", "", "fxLayout", "row", "fxLayoutAlign", "end center", 2, "gap", "10px"], ["class", "filter-data custom-box language-section", "style", "width:180px; position:relative;", 3, "click", 4, "ngIf"], [4, "ngIf"], ["mat-icon-button", "", "id", "feedTimeSheetComponent", 2, "background", "rgba(255,255,255,0.6)", "border-radius", "10px", 3, "matTooltip", "satPopoverAnchorFor", "click"], [2, "background", "linear-gradient(90deg,#f79a6b,#f1580c)", "-webkit-background-clip", "text", "-webkit-text-fill-color", "transparent"], ["mat-icon-button", "", "style", "position:relative; background:rgba(255,255,255,0.6); border-radius:10px;", 3, "matTooltip", "matMenuTriggerFor", "click", 4, "ngIf"], ["notification", "matMenu"], ["mat-icon-button", "", "style", "width:32px; height:32px; background:rgba(255,255,255,0.6);\n border-radius:50%; border:1px solid #e5e7eb;\n display:flex; align-items:center; justify-content:center; overflow:hidden;", 3, "matMenuTriggerFor", 4, "ngIf"], ["hasBackdrop", "", "scrollStrategy", "reposition", "verticalAlign", "below", "horizontalAlign", "before", 3, "autoFocus", "restoreFocus", "interactiveClose"], ["feedTimeSheet", ""], [3, "isFeedTimeSheet", "closeFeedTimeSheetPopup"], ["accountMenu", "matMenu"], ["mat-menu-item", "", 3, "click"], ["mat-menu-item", "", 3, "click", 4, "ngIf"], [1, "feedback-icon", 3, "satPopoverAnchorFor"], ["verticalAlign", "below", "hasBackdrop", "", "backdropClass", "backdrop-color", "horizontalAlign", "end", 3, "interactiveClose"], ["feedBackPopOver", ""], [3, "closeDialog", 4, "ngIf"], [1, "filter-data", "custom-box", "language-section", 2, "width", "180px", "position", "relative", 3, "click"], ["placeholder", "", "name", "selectedCompany", "panelClass", "company-select-panel", 3, "ngModel", "ngModelChange", "selectionChange"], ["style", "display:flex; align-items:center; gap:10px;", 4, "ngIf"], ["fxFlex", "", "fxLayoutAlign", "start center", 1, "search_goalinput", "ml-1", 2, "position", "sticky", "top", "0", "z-index", "1", "background-color", "#fff", "padding", "6px 8px"], [1, "full-width", 2, "width", "100%", "margin", "0"], ["matInput", "", "autocomplete", "off", 1, "search_goal", 3, "placeholder", "ngModel", "ngModelChange"], ["style", "cursor:pointer", 3, "click", 4, "ngIf"], ["matTooltipClass", "tooltipClass-mat", "matTooltipShowDelay", "400", 3, "value", "matTooltip", 4, "ngFor", "ngForOf"], [2, "display", "flex", "align-items", "center", "gap", "10px"], ["fxLayoutAlign", "start center", "size", "20", 3, "name", "src", "isRound"], [1, "language-display", 2, "font-weight", "600", "overflow", "hidden", "text-overflow", "ellipsis", "white-space", "nowrap", "background", "linear-gradient(90deg,#f79a6b,#f1580c)", "-webkit-background-clip", "text", "-webkit-text-fill-color", "transparent", "background-clip", "text"], [2, "cursor", "pointer", 3, "click"], ["matTooltipClass", "tooltipClass-mat", "matTooltipShowDelay", "400", 3, "value", "matTooltip"], [1, "cursor-pointer", 2, "display", "flex", "align-items", "center"], ["size", "20", 3, "name", "src", "isRound"], [2, "margin-left", "8px"], ["mat-icon-button", "", 2, "background", "rgba(255,255,255,0.6)", "border-radius", "10px", 3, "matTooltip", "ngClass", "click"], ["mat-icon-button", "", 2, "background", "rgba(255,255,255,0.6)", "border-radius", "10px", 3, "matTooltip", "click"], ["mat-icon-button", "", 2, "position", "relative", "background", "rgba(255,255,255,0.6)", "border-radius", "10px", 3, "matTooltip", "matMenuTriggerFor", "click"], ["class", "notification-number mat-bg-warn", "style", "position:absolute; top:-2px; right:-2px;", 4, "ngIf"], [1, "notification-number", "mat-bg-warn", 2, "position", "absolute", "top", "-2px", "right", "-2px"], ["mat-icon-button", "", 2, "width", "32px", "height", "32px", "background", "rgba(255,255,255,0.6)", "border-radius", "50%", "border", "1px solid #e5e7eb", "display", "flex", "align-items", "center", "justify-content", "center", "overflow", "hidden", 3, "matMenuTriggerFor"], ["alt", "profile image", "style", "width:28px; height:28px; border-radius:50%;", 3, "src", 4, "ngIf"], ["alt", "profile image", 2, "width", "28px", "height", "28px", "border-radius", "50%", 3, "src"], ["size", "26", 3, "name", "isRound"], [3, "closeDialog"]], template: function HeaderSideComponent_Template(rf, ctx) { if (rf & 1) {
11646
11646
  const _r38 = i0.ɵɵgetCurrentView();
11647
11647
  i0.ɵɵelementStart(0, "mat-toolbar", 0);
11648
11648
  i0.ɵɵelementStart(1, "div", 1);
@@ -11812,13 +11812,13 @@ function SideBarComponent_div_9_ng_container_3_Template(rf, ctx) { if (rf & 1) {
11812
11812
  const item_r1 = i0.ɵɵnextContext().$implicit;
11813
11813
  const ctx_r3 = i0.ɵɵnextContext();
11814
11814
  i0.ɵɵadvance(2);
11815
- i0.ɵɵtextInterpolate(item_r1.icon);
11815
+ i0.ɵɵtextInterpolate1(" ", item_r1.icon, " ");
11816
11816
  i0.ɵɵadvance(2);
11817
11817
  i0.ɵɵtextInterpolate1(" ", item_r1.menu ? i0.ɵɵpipeBind2(5, 2, item_r1.menu, ctx_r3.softLabels) : i0.ɵɵpipeBind1(6, 5, item_r1.name), " ");
11818
11818
  } }
11819
11819
  function SideBarComponent_div_9_ng_container_4_Template(rf, ctx) { if (rf & 1) {
11820
11820
  i0.ɵɵelementContainerStart(0);
11821
- i0.ɵɵelementStart(1, "a", 12);
11821
+ i0.ɵɵelementStart(1, "a", 10);
11822
11822
  i0.ɵɵelementStart(2, "mat-icon", 5);
11823
11823
  i0.ɵɵtext(3);
11824
11824
  i0.ɵɵelementEnd();
@@ -11835,121 +11835,55 @@ function SideBarComponent_div_9_ng_container_4_Template(rf, ctx) { if (rf & 1) {
11835
11835
  i0.ɵɵadvance(1);
11836
11836
  i0.ɵɵproperty("href", item_r1.state, i0.ɵɵsanitizeUrl);
11837
11837
  i0.ɵɵadvance(2);
11838
- i0.ɵɵtextInterpolate(item_r1.icon);
11838
+ i0.ɵɵtextInterpolate1(" ", item_r1.icon, " ");
11839
11839
  i0.ɵɵadvance(2);
11840
11840
  i0.ɵɵtextInterpolate1(" ", item_r1.menu ? i0.ɵɵpipeBind2(6, 3, item_r1.menu, ctx_r4.softLabels) : i0.ɵɵpipeBind1(7, 6, item_r1.name), " ");
11841
11841
  } }
11842
- function SideBarComponent_div_9_div_5_Template(rf, ctx) { if (rf & 1) {
11843
- const _r12 = i0.ɵɵgetCurrentView();
11844
- i0.ɵɵelementStart(0, "div", 13);
11845
- i0.ɵɵlistener("click", function SideBarComponent_div_9_div_5_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r12); const item_r1 = i0.ɵɵnextContext().$implicit; const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.toggleDropdown(item_r1); });
11846
- i0.ɵɵelementStart(1, "mat-icon", 5);
11847
- i0.ɵɵtext(2);
11848
- i0.ɵɵelementEnd();
11849
- i0.ɵɵelementStart(3, "h6", 6);
11850
- i0.ɵɵtext(4);
11851
- i0.ɵɵpipe(5, "softLabelsPipe");
11852
- i0.ɵɵpipe(6, "translate");
11853
- i0.ɵɵelementEnd();
11854
- i0.ɵɵelementStart(7, "mat-icon", 14);
11855
- i0.ɵɵtext(8);
11856
- i0.ɵɵelementEnd();
11857
- i0.ɵɵelementEnd();
11858
- } if (rf & 2) {
11859
- const item_r1 = i0.ɵɵnextContext().$implicit;
11860
- const ctx_r5 = i0.ɵɵnextContext();
11861
- i0.ɵɵadvance(2);
11862
- i0.ɵɵtextInterpolate(item_r1.icon);
11863
- i0.ɵɵadvance(2);
11864
- i0.ɵɵtextInterpolate1(" ", item_r1.menu ? i0.ɵɵpipeBind2(5, 3, item_r1.menu, ctx_r5.softLabels) : i0.ɵɵpipeBind1(6, 6, item_r1.name), " ");
11865
- i0.ɵɵadvance(4);
11866
- i0.ɵɵtextInterpolate1(" ", item_r1.open ? "expand_less" : "expand_more", " ");
11867
- } }
11868
11842
  const _c0$6 = function (a0) { return { background: a0 }; };
11869
- function SideBarComponent_div_9_div_6_span_1_Template(rf, ctx) { if (rf & 1) {
11870
- i0.ɵɵelementStart(0, "span", 17);
11843
+ function SideBarComponent_div_9_div_5_span_1_Template(rf, ctx) { if (rf & 1) {
11844
+ i0.ɵɵelementStart(0, "span", 13);
11871
11845
  i0.ɵɵtext(1);
11872
11846
  i0.ɵɵelementEnd();
11873
11847
  } if (rf & 2) {
11874
- const badge_r15 = ctx.$implicit;
11875
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c0$6, badge_r15.color));
11848
+ const badge_r9 = ctx.$implicit;
11849
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c0$6, badge_r9.color));
11876
11850
  i0.ɵɵadvance(1);
11877
- i0.ɵɵtextInterpolate1(" ", badge_r15.value, " ");
11851
+ i0.ɵɵtextInterpolate1(" ", badge_r9.value, " ");
11878
11852
  } }
11879
- function SideBarComponent_div_9_div_6_Template(rf, ctx) { if (rf & 1) {
11880
- i0.ɵɵelementStart(0, "div", 15);
11881
- i0.ɵɵtemplate(1, SideBarComponent_div_9_div_6_span_1_Template, 2, 4, "span", 16);
11853
+ function SideBarComponent_div_9_div_5_Template(rf, ctx) { if (rf & 1) {
11854
+ i0.ɵɵelementStart(0, "div", 11);
11855
+ i0.ɵɵtemplate(1, SideBarComponent_div_9_div_5_span_1_Template, 2, 4, "span", 12);
11882
11856
  i0.ɵɵelementEnd();
11883
11857
  } if (rf & 2) {
11884
11858
  const item_r1 = i0.ɵɵnextContext().$implicit;
11885
11859
  i0.ɵɵadvance(1);
11886
11860
  i0.ɵɵproperty("ngForOf", item_r1.badges);
11887
11861
  } }
11888
- function SideBarComponent_div_9_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
11889
- const _r21 = i0.ɵɵgetCurrentView();
11890
- i0.ɵɵelementStart(0, "div", 2);
11891
- i0.ɵɵelementStart(1, "div", 19);
11892
- i0.ɵɵlistener("click", function SideBarComponent_div_9_div_7_div_1_Template_div_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r21); const itemLvL2_r18 = restoredCtx.$implicit; const ctx_r20 = i0.ɵɵnextContext(2); const i_r2 = ctx_r20.index; const item_r1 = ctx_r20.$implicit; const ctx_r19 = i0.ɵɵnextContext(); return ctx_r19.selectMenu(i_r2, "/" + item_r1.state + "/" + itemLvL2_r18.state); });
11893
- i0.ɵɵelementStart(2, "div", 4);
11894
- i0.ɵɵelementStart(3, "mat-icon", 5);
11895
- i0.ɵɵtext(4);
11896
- i0.ɵɵelementEnd();
11897
- i0.ɵɵelementStart(5, "h6", 6);
11898
- i0.ɵɵtext(6);
11899
- i0.ɵɵpipe(7, "softLabelsPipe");
11900
- i0.ɵɵpipe(8, "translate");
11901
- i0.ɵɵelementEnd();
11902
- i0.ɵɵelementEnd();
11903
- i0.ɵɵelementEnd();
11904
- i0.ɵɵelementEnd();
11905
- } if (rf & 2) {
11906
- const itemLvL2_r18 = ctx.$implicit;
11907
- const ctx_r17 = i0.ɵɵnextContext(3);
11908
- i0.ɵɵadvance(4);
11909
- i0.ɵɵtextInterpolate(itemLvL2_r18.icon);
11910
- i0.ɵɵadvance(2);
11911
- i0.ɵɵtextInterpolate1(" ", itemLvL2_r18.menu ? i0.ɵɵpipeBind2(7, 2, itemLvL2_r18.menu, ctx_r17.softLabels) : i0.ɵɵpipeBind1(8, 5, itemLvL2_r18.name), " ");
11912
- } }
11913
- function SideBarComponent_div_9_div_7_Template(rf, ctx) { if (rf & 1) {
11914
- i0.ɵɵelementStart(0, "div", 18);
11915
- i0.ɵɵtemplate(1, SideBarComponent_div_9_div_7_div_1_Template, 9, 7, "div", 7);
11916
- i0.ɵɵelementEnd();
11917
- } if (rf & 2) {
11918
- const item_r1 = i0.ɵɵnextContext().$implicit;
11919
- i0.ɵɵadvance(1);
11920
- i0.ɵɵproperty("ngForOf", item_r1.sub);
11921
- } }
11922
- const _c1$1 = function () { return { "background-color": "#DBEAFE", "border-image": "linear-gradient(135deg,#5de0e6,#004aad) 1", "box-shadow": "0 4px 15px rgba(0,0,0,0.15)" }; };
11862
+ const _c1$1 = function () { return { "background-color": "#DBEAFE", "border-image": "linear-gradient(135deg,#f79a6b,#f1580c) 1", "box-shadow": "0 4px 15px rgba(0,0,0,0.15)" }; };
11923
11863
  function SideBarComponent_div_9_Template(rf, ctx) { if (rf & 1) {
11924
- const _r24 = i0.ɵɵgetCurrentView();
11864
+ const _r12 = i0.ɵɵgetCurrentView();
11925
11865
  i0.ɵɵelementStart(0, "div", 2);
11926
11866
  i0.ɵɵelementStart(1, "div", 3);
11927
- i0.ɵɵlistener("mouseenter", function SideBarComponent_div_9_Template_div_mouseenter_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r24); const i_r2 = restoredCtx.index; const ctx_r23 = i0.ɵɵnextContext(); return ctx_r23.enter(i_r2); })("mouseleave", function SideBarComponent_div_9_Template_div_mouseleave_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r24); const i_r2 = restoredCtx.index; const ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.leave(i_r2); })("click", function SideBarComponent_div_9_Template_div_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r24); const i_r2 = restoredCtx.index; const item_r1 = restoredCtx.$implicit; const ctx_r26 = i0.ɵɵnextContext(); return ctx_r26.selectMenu(i_r2, item_r1.state); });
11867
+ i0.ɵɵlistener("mouseenter", function SideBarComponent_div_9_Template_div_mouseenter_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r12); const i_r2 = restoredCtx.index; const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.enter(i_r2); })("mouseleave", function SideBarComponent_div_9_Template_div_mouseleave_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r12); const i_r2 = restoredCtx.index; const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.leave(i_r2); })("click", function SideBarComponent_div_9_Template_div_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r12); const i_r2 = restoredCtx.index; const item_r1 = restoredCtx.$implicit; const ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.selectMenu(i_r2, item_r1.state); });
11928
11868
  i0.ɵɵelementStart(2, "div", 4);
11929
11869
  i0.ɵɵtemplate(3, SideBarComponent_div_9_ng_container_3_Template, 7, 7, "ng-container", 8);
11930
11870
  i0.ɵɵtemplate(4, SideBarComponent_div_9_ng_container_4_Template, 8, 8, "ng-container", 8);
11931
- i0.ɵɵtemplate(5, SideBarComponent_div_9_div_5_Template, 9, 8, "div", 9);
11932
- i0.ɵɵtemplate(6, SideBarComponent_div_9_div_6_Template, 2, 1, "div", 10);
11871
+ i0.ɵɵtemplate(5, SideBarComponent_div_9_div_5_Template, 2, 1, "div", 9);
11933
11872
  i0.ɵɵelementEnd();
11934
11873
  i0.ɵɵelementEnd();
11935
- i0.ɵɵtemplate(7, SideBarComponent_div_9_div_7_Template, 2, 1, "div", 11);
11936
11874
  i0.ɵɵelementEnd();
11937
11875
  } if (rf & 2) {
11938
11876
  const item_r1 = ctx.$implicit;
11939
11877
  const i_r2 = ctx.index;
11940
11878
  const ctx_r0 = i0.ɵɵnextContext();
11941
11879
  i0.ɵɵadvance(1);
11942
- i0.ɵɵproperty("ngStyle", (ctx_r0.selectedRowIndex == i_r2 || ctx_r0.showBackGroundColor == i_r2) && i0.ɵɵpureFunction0(6, _c1$1));
11880
+ i0.ɵɵproperty("ngStyle", (ctx_r0.selectedRowIndex == i_r2 || ctx_r0.showBackGroundColor == i_r2) && i0.ɵɵpureFunction0(4, _c1$1));
11943
11881
  i0.ɵɵadvance(2);
11944
11882
  i0.ɵɵproperty("ngIf", item_r1.type === "link" || item_r1.type === "applicationlink");
11945
11883
  i0.ɵɵadvance(1);
11946
11884
  i0.ɵɵproperty("ngIf", item_r1.type === "extLink");
11947
11885
  i0.ɵɵadvance(1);
11948
- i0.ɵɵproperty("ngIf", item_r1.type === "dropDown");
11949
- i0.ɵɵadvance(1);
11950
11886
  i0.ɵɵproperty("ngIf", item_r1.badges == null ? null : item_r1.badges.length);
11951
- i0.ɵɵadvance(1);
11952
- i0.ɵɵproperty("ngIf", item_r1.open && item_r1.type === "dropDown");
11953
11887
  } }
11954
11888
  class SideBarComponent {
11955
11889
  constructor(store, router) {
@@ -11960,8 +11894,28 @@ class SideBarComponent {
11960
11894
  ngOnInit() {
11961
11895
  // load soft labels
11962
11896
  this.softLabels = JSON.parse(localStorage.getItem("SoftLabels"));
11963
- // get menu items from store
11964
- this.menuItems$ = this.store.pipe(select(getCurrentActiveMenuCategoryMenuItems), tap(menuList => this.routerActive(menuList)));
11897
+ // get menu items and filter out HR, HR management & Activity Tracker
11898
+ this.menuItems$ = this.store.pipe(select(getCurrentActiveMenuCategoryMenuItems), map(menuList => menuList.filter(item => {
11899
+ var _a, _b;
11900
+ const menuLabel = ((_a = item.menu) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || "";
11901
+ const state = ((_b = item.state) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || "";
11902
+ // ❌ remove HR (direct link)
11903
+ if (menuLabel === "hr" || state.startsWith("hrmanagment/employeelist")) {
11904
+ return false;
11905
+ }
11906
+ // ❌ remove HR management dropdown & submenus
11907
+ if (menuLabel.includes("hr managment") || menuLabel.includes("hr management")) {
11908
+ return false;
11909
+ }
11910
+ if (state.startsWith("hrmanagment") || state.startsWith("hrmdetails")) {
11911
+ return false;
11912
+ }
11913
+ // ❌ remove Activity Tracker
11914
+ if (menuLabel.includes("activity tracker") || state.startsWith("activitytracker")) {
11915
+ return false;
11916
+ }
11917
+ return true;
11918
+ })), tap(menuList => this.routerActive(menuList)));
11965
11919
  // trigger menu load
11966
11920
  this.store.dispatch(new GetAllMenuItemsTriggered(MenuCategories.Main));
11967
11921
  // listen to route changes
@@ -11986,10 +11940,6 @@ class SideBarComponent {
11986
11940
  leave(i) {
11987
11941
  this.showBackGroundColor = null;
11988
11942
  }
11989
- toggleDropdown(item) {
11990
- item.open = !item.open;
11991
- }
11992
- // ✅ NEW: unified method
11993
11943
  selectMenu(index, link) {
11994
11944
  this.selectedRowIndex = index;
11995
11945
  if (link) {
@@ -11998,7 +11948,7 @@ class SideBarComponent {
11998
11948
  }
11999
11949
  }
12000
11950
  SideBarComponent.ɵfac = function SideBarComponent_Factory(t) { return new (t || SideBarComponent)(i0.ɵɵdirectiveInject(i3.Store), i0.ɵɵdirectiveInject(i2.Router)); };
12001
- SideBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SideBarComponent, selectors: [["app-sidebar"]], decls: 11, vars: 5, consts: [[1, "d-flex", "flex-column", "justify-content-center", "align-items-center", 2, "width", "100vw", "height", "calc(100vh - 60px)", "background-color", "#F9FAFB", "padding", "30px", "overflow", "auto"], [1, "row", "justify-content-center", "align-items-center", 2, "height", "auto"], [1, "col-6", "col-md-3", "mb-4"], [1, "card", "cursor-pointer", 2, "height", "150px", "border-radius", "12px", "transition", "all 0.3s ease", "background", "#fff", "box-shadow", "0 2px 6px rgba(0,0,0,0.08)", "border", "2px solid transparent", 3, "ngStyle", "mouseenter", "mouseleave", "click"], [1, "card-body", "d-flex", "flex-column", "align-items-center", "justify-content-center"], [2, "font-size", "40px", "margin-bottom", "10px", "width", "48px", "height", "48px", "display", "flex", "align-items", "center", "justify-content", "center", "background", "linear-gradient(135deg,#5de0e6,#004aad)", "-webkit-background-clip", "text", "-webkit-text-fill-color", "transparent", "background-clip", "text", "text-fill-color", "transparent"], [2, "font-size", "14px", "margin", "0", "color", "#111827", "text-align", "center"], ["class", "col-6 col-md-3 mb-4", 4, "ngFor", "ngForOf"], [4, "ngIf"], ["class", "w-100 d-flex flex-column align-items-center cursor-pointer", 3, "click", 4, "ngIf"], ["class", "mt-2", 4, "ngIf"], ["class", "row w-100 mt-2", 4, "ngIf"], ["target", "_blank", 1, "w-100", "d-flex", "flex-column", "align-items-center", 3, "href"], [1, "w-100", "d-flex", "flex-column", "align-items-center", "cursor-pointer", 3, "click"], [2, "font-size", "24px", "margin-top", "5px", "width", "32px", "height", "32px", "background", "linear-gradient(135deg,#5de0e6,#004aad)", "-webkit-background-clip", "text", "-webkit-text-fill-color", "transparent", "background-clip", "text", "text-fill-color", "transparent"], [1, "mt-2"], ["class", "badge rounded-pill", 3, "ngStyle", 4, "ngFor", "ngForOf"], [1, "badge", "rounded-pill", 3, "ngStyle"], [1, "row", "w-100", "mt-2"], [1, "card", "cursor-pointer", 2, "height", "150px", "border-radius", "12px", "transition", "all 0.3s ease", "background", "#fff", "box-shadow", "0 2px 6px rgba(0,0,0,0.08)", "border", "2px solid transparent", 3, "click"]], template: function SideBarComponent_Template(rf, ctx) { if (rf & 1) {
11951
+ SideBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SideBarComponent, selectors: [["app-sidebar"]], decls: 11, vars: 5, consts: [[1, "d-flex", "flex-column", "justify-content-center", "align-items-center", 2, "width", "100vw", "height", "calc(100vh - 60px)", "padding", "30px", "overflow", "auto", "background", "linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7))"], [1, "row", "justify-content-center", "align-items-center", 2, "height", "auto"], [1, "col-6", "col-md-3", "mb-4"], [1, "card", "cursor-pointer", 2, "height", "150px", "border-radius", "12px", "transition", "all 0.3s ease", "background", "#fff", "box-shadow", "0 2px 6px rgba(0,0,0,0.08)", "border", "2px solid transparent", 3, "ngStyle", "mouseenter", "mouseleave", "click"], [1, "card-body", "d-flex", "flex-column", "align-items-center", "justify-content-center"], [2, "font-size", "40px", "margin-bottom", "10px", "width", "48px", "height", "48px", "display", "flex", "align-items", "center", "justify-content", "center", "background", "linear-gradient(135deg,#f79a6b,#f1580c)", "-webkit-background-clip", "text", "-webkit-text-fill-color", "transparent", "background-clip", "text", "text-fill-color", "transparent"], [2, "font-size", "14px", "margin", "0", "color", "#111827", "text-align", "center"], ["class", "col-6 col-md-3 mb-4", 4, "ngFor", "ngForOf"], [4, "ngIf"], ["class", "mt-2", 4, "ngIf"], ["target", "_blank", 1, "w-100", "d-flex", "flex-column", "align-items-center", 3, "href"], [1, "mt-2"], ["class", "badge rounded-pill", 3, "ngStyle", 4, "ngFor", "ngForOf"], [1, "badge", "rounded-pill", 3, "ngStyle"]], template: function SideBarComponent_Template(rf, ctx) { if (rf & 1) {
12002
11952
  i0.ɵɵelementStart(0, "div", 0);
12003
11953
  i0.ɵɵelementStart(1, "div", 1);
12004
11954
  i0.ɵɵelementStart(2, "div", 2);
@@ -12006,15 +11956,15 @@ SideBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SideBarCom
12006
11956
  i0.ɵɵlistener("mouseenter", function SideBarComponent_Template_div_mouseenter_3_listener() { return ctx.enter(99); })("mouseleave", function SideBarComponent_Template_div_mouseleave_3_listener() { return ctx.leave(99); })("click", function SideBarComponent_Template_div_click_3_listener() { return ctx.selectMenu(99, "/dashboard-management"); });
12007
11957
  i0.ɵɵelementStart(4, "div", 4);
12008
11958
  i0.ɵɵelementStart(5, "mat-icon", 5);
12009
- i0.ɵɵtext(6, "home");
11959
+ i0.ɵɵtext(6, " assessment ");
12010
11960
  i0.ɵɵelementEnd();
12011
11961
  i0.ɵɵelementStart(7, "h6", 6);
12012
- i0.ɵɵtext(8, "Home");
11962
+ i0.ɵɵtext(8, "Report");
12013
11963
  i0.ɵɵelementEnd();
12014
11964
  i0.ɵɵelementEnd();
12015
11965
  i0.ɵɵelementEnd();
12016
11966
  i0.ɵɵelementEnd();
12017
- i0.ɵɵtemplate(9, SideBarComponent_div_9_Template, 8, 7, "div", 7);
11967
+ i0.ɵɵtemplate(9, SideBarComponent_div_9_Template, 6, 5, "div", 7);
12018
11968
  i0.ɵɵpipe(10, "async");
12019
11969
  i0.ɵɵelementEnd();
12020
11970
  i0.ɵɵelementEnd();
@@ -12032,37 +11982,46 @@ SideBarComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SideBarCom
12032
11982
  }]
12033
11983
  }], function () { return [{ type: i3.Store }, { type: i2.Router }]; }, null); })();
12034
11984
 
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);
11985
+ function AdminLayoutComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
11986
+ i0.ɵɵelementContainerStart(0);
11987
+ i0.ɵɵelement(1, "app-sidebar", 10);
11988
+ i0.ɵɵelementContainerEnd();
11989
+ } }
11990
+ function AdminLayoutComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
11991
+ i0.ɵɵelement(0, "router-outlet");
11992
+ } }
11993
+ function AdminLayoutComponent_div_9_Template(rf, ctx) { if (rf & 1) {
11994
+ i0.ɵɵelementStart(0, "div", 11);
11995
+ i0.ɵɵelementStart(1, "div", 12);
11996
+ i0.ɵɵelement(2, "div", 13);
11997
+ i0.ɵɵelement(3, "div", 14);
12040
11998
  i0.ɵɵelementEnd();
12041
11999
  i0.ɵɵelementEnd();
12042
12000
  } }
12043
- function AdminLayoutComponent_div_9_div_5_Template(rf, ctx) { if (rf & 1) {
12044
- i0.ɵɵelement(0, "div", 16);
12001
+ function AdminLayoutComponent_div_10_div_5_Template(rf, ctx) { if (rf & 1) {
12002
+ i0.ɵɵelement(0, "div", 18);
12045
12003
  } }
12046
- function AdminLayoutComponent_div_9_Template(rf, ctx) { if (rf & 1) {
12047
- i0.ɵɵelementStart(0, "div", 13);
12048
- i0.ɵɵelementStart(1, "span", 14);
12004
+ function AdminLayoutComponent_div_10_Template(rf, ctx) { if (rf & 1) {
12005
+ i0.ɵɵelementStart(0, "div", 15);
12006
+ i0.ɵɵelementStart(1, "span", 16);
12049
12007
  i0.ɵɵtext(2);
12050
12008
  i0.ɵɵpipe(3, "translate");
12051
12009
  i0.ɵɵpipe(4, "translate");
12052
12010
  i0.ɵɵelementEnd();
12053
- i0.ɵɵtemplate(5, AdminLayoutComponent_div_9_div_5_Template, 1, 0, "div", 15);
12011
+ i0.ɵɵtemplate(5, AdminLayoutComponent_div_10_div_5_Template, 1, 0, "div", 17);
12054
12012
  i0.ɵɵelementEnd();
12055
12013
  } if (rf & 2) {
12056
- const ctx_r1 = i0.ɵɵnextContext();
12014
+ const ctx_r4 = i0.ɵɵnextContext();
12057
12015
  i0.ɵɵadvance(2);
12058
- i0.ɵɵtextInterpolate3(" ", i0.ɵɵpipeBind1(3, 4, "LOADINGPLEASEWAIT"), " (", ctx_r1.totalLoadingTime, " ", i0.ɵɵpipeBind1(4, 6, "SECONDS"), ") ");
12016
+ i0.ɵɵtextInterpolate3(" ", i0.ɵɵpipeBind1(3, 4, "LOADINGPLEASEWAIT"), " (", ctx_r4.totalLoadingTime, " ", i0.ɵɵpipeBind1(4, 6, "SECONDS"), ") ");
12059
12017
  i0.ɵɵadvance(3);
12060
- i0.ɵɵproperty("ngIf", ctx_r1.loading);
12018
+ i0.ɵɵproperty("ngIf", ctx_r4.loading);
12061
12019
  } }
12062
12020
  const _c0$5 = function (a0, a1) { return { "blur-on-opened": a0, "show-in-dashboard": a1 }; };
12063
12021
  class AdminLayoutComponent {
12064
- constructor(router, translate, layout, store, cookieService, actionUpdates$, location, commonService, pubnub, signalr) {
12022
+ constructor(router, activatedRoute, translate, layout, store, cookieService, actionUpdates$, location, commonService, pubnub, signalr) {
12065
12023
  this.router = router;
12024
+ this.activatedRoute = activatedRoute;
12066
12025
  this.translate = translate;
12067
12026
  this.layout = layout;
12068
12027
  this.store = store;
@@ -12073,33 +12032,29 @@ class AdminLayoutComponent {
12073
12032
  this.pubnub = pubnub;
12074
12033
  this.signalr = signalr;
12075
12034
  this.isModuleLoading = false;
12076
- // private sidebarPS: PerfectScrollbar;
12077
- // private bodyPS: PerfectScrollbar;
12078
- // private headerFixedBodyPS: PerfectScrollbar;
12079
12035
  this.scrollConfig = {};
12080
12036
  this.layoutConf = {};
12081
12037
  this.ngDestroyed$ = new Subject();
12082
- this.userstory = 'userstory';
12038
+ this.userstory = "userstory";
12083
12039
  this.loading = false;
12084
12040
  this.totalLoadingTime = 0;
12085
12041
  this.spinnerType = SPINNER.circle;
12086
- // let conId = sessionStorage.getItem('conectionId');
12087
- // if(!conId) {
12042
+ // 👉 NEW FLAG
12043
+ this.isHomeScreen = true;
12088
12044
  this.signalr.initializeSignalRConnection();
12089
- // }
12090
12045
  let environment = JSON.parse(localStorage.getItem(LocalStorageProperties.Environment));
12091
12046
  let companySettings = localStorage.getItem(LocalStorageProperties.CompanySettings);
12092
- if (!companySettings || companySettings == 'null' || companySettings == "undefined") {
12047
+ if (!companySettings || companySettings == "null" || companySettings == "undefined") {
12093
12048
  pubnub.init({
12094
12049
  publishKey: environment.publishKey,
12095
12050
  subscribeKey: environment.subscribeKey
12096
12051
  });
12097
12052
  }
12098
12053
  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)) {
12054
+ const comSet = JSON.parse(companySettings);
12055
+ var publishKey = comSet.find((i) => i.key == "PubnubPublishKey");
12056
+ var subscribeKey = comSet.find((i) => i.key == "PubnubSubscribeKey");
12057
+ if ((publishKey === null || publishKey === void 0 ? void 0 : publishKey.value) && (subscribeKey === null || subscribeKey === void 0 ? void 0 : subscribeKey.value)) {
12103
12058
  pubnub.init({
12104
12059
  publishKey: publishKey.value,
12105
12060
  subscribeKey: subscribeKey.value
@@ -12114,14 +12069,15 @@ class AdminLayoutComponent {
12114
12069
  }
12115
12070
  // Close sidenav after route change in mobile
12116
12071
  this.routerEventSub = router.events
12117
- .pipe(filter(event => event instanceof NavigationEnd))
12072
+ .pipe(filter((event) => event instanceof NavigationEnd))
12118
12073
  .subscribe((routeChange) => {
12119
12074
  this.layout.adjustLayout({ route: routeChange.url });
12075
+ this.updateHomeToggle(); // 👉 update on every navigation
12120
12076
  });
12121
12077
  // Translator init
12122
12078
  let currentCulture = this.cookieService.get(LocalStorageProperties.CurrentCulture);
12123
- if (currentCulture === 'null' || currentCulture === 'undefined') {
12124
- currentCulture = 'en';
12079
+ if (currentCulture === "null" || currentCulture === "undefined") {
12080
+ currentCulture = "en";
12125
12081
  }
12126
12082
  translate.use(currentCulture);
12127
12083
  this.router.events.subscribe((event) => {
@@ -12142,30 +12098,23 @@ class AdminLayoutComponent {
12142
12098
  this.loading = false;
12143
12099
  break;
12144
12100
  }
12145
- default: {
12146
- break;
12147
- }
12148
12101
  }
12149
12102
  });
12150
- router.events.subscribe(val => {
12103
+ router.events.subscribe((val) => {
12151
12104
  if (location.path() != "") {
12152
- if (location.path().includes('/dashboard-management/dashboard/')) {
12105
+ if (location.path().includes("/dashboard-management/dashboard/")) {
12153
12106
  this.dashboardPage = true;
12154
- this.bgcolor = 'none';
12107
+ this.bgcolor = "none";
12155
12108
  }
12156
12109
  else {
12157
12110
  this.dashboardPage = false;
12158
- this.bgcolor = 'beige';
12111
+ this.bgcolor = "beige";
12159
12112
  }
12160
12113
  }
12161
12114
  });
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)) {
12115
+ if (localStorage.getItem(LocalStorageProperties.UserModel) != null &&
12116
+ localStorage.getItem(LocalStorageProperties.UserModel) != undefined &&
12117
+ !localStorage.hasOwnProperty(LocalStorageProperties.UserRoleFeatures)) {
12169
12118
  let data = JSON.parse(localStorage.getItem(LocalStorageProperties.UserModel));
12170
12119
  this.store.dispatch(new UserDetailsFetchedAfterLogin(data));
12171
12120
  }
@@ -12174,22 +12123,31 @@ class AdminLayoutComponent {
12174
12123
  if (result && result.companyId) {
12175
12124
  this.getSoftLabels();
12176
12125
  }
12177
- })).subscribe();
12126
+ }))
12127
+ .subscribe();
12178
12128
  }
12179
12129
  ngOnInit() {
12180
12130
  this.getSoftLabelConfigurations();
12181
12131
  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;
12132
+ this.moduleLoaderSub = this.router.events.subscribe((event) => {
12133
+ if (event instanceof RouteConfigLoadStart || event instanceof ResolveStart) {
12134
+ this.isModuleLoading = true;
12188
12135
  }
12189
12136
  if (event instanceof RouteConfigLoadEnd || event instanceof ResolveEnd) {
12190
12137
  this.isModuleLoading = false;
12191
12138
  }
12192
12139
  });
12140
+ this.updateHomeToggle(); // initial check
12141
+ }
12142
+ updateHomeToggle() {
12143
+ var _a, _b;
12144
+ // 👉 logic: if route has no child OR path is '', we are home
12145
+ let child = this.activatedRoute.firstChild;
12146
+ while (child === null || child === void 0 ? void 0 : child.firstChild) {
12147
+ child = child.firstChild;
12148
+ }
12149
+ 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 : "";
12150
+ this.isHomeScreen = !child || childPath === "";
12193
12151
  }
12194
12152
  onResize(event) {
12195
12153
  this.layout.adjustLayout(event);
@@ -12198,7 +12156,7 @@ class AdminLayoutComponent {
12198
12156
  this.display = event;
12199
12157
  }
12200
12158
  getSoftLabelConfigurations() {
12201
- this.softLabels = JSON.parse(localStorage.getItem('SoftLabels'));
12159
+ this.softLabels = JSON.parse(localStorage.getItem("SoftLabels"));
12202
12160
  }
12203
12161
  getSoftLabels() {
12204
12162
  let model = new SoftLabelConfigurationModel();
@@ -12207,33 +12165,12 @@ class AdminLayoutComponent {
12207
12165
  if (response.success) {
12208
12166
  let data = response.data;
12209
12167
  if (data) {
12210
- localStorage.setItem('SoftLabels', JSON.stringify(data));
12168
+ localStorage.setItem("SoftLabels", JSON.stringify(data));
12211
12169
  }
12212
12170
  }
12213
12171
  });
12214
12172
  }
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
- // }
12173
+ ngAfterViewInit() { }
12237
12174
  scrollToTop(selector) {
12238
12175
  if (document) {
12239
12176
  let element = document.querySelector(selector);
@@ -12241,18 +12178,11 @@ class AdminLayoutComponent {
12241
12178
  }
12242
12179
  }
12243
12180
  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
- }
12181
+ var _a, _b, _c, _d;
12182
+ (_a = this.moduleLoaderSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
12183
+ (_b = this.layoutConfSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
12184
+ (_c = this.routerEventSub) === null || _c === void 0 ? void 0 : _c.unsubscribe();
12185
+ (_d = this.sub) === null || _d === void 0 ? void 0 : _d.unsubscribe();
12256
12186
  }
12257
12187
  closeSidebar() {
12258
12188
  this.layout.publishLayoutChange({
@@ -12265,10 +12195,10 @@ class AdminLayoutComponent {
12265
12195
  }, 1000);
12266
12196
  }
12267
12197
  }
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)); };
12198
+ 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
12199
  AdminLayoutComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdminLayoutComponent, selectors: [["app-admin-layout"]], hostBindings: function AdminLayoutComponent_HostBindings(rf, ctx) { if (rf & 1) {
12270
12200
  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) {
12201
+ } }, 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
12202
  i0.ɵɵelement(0, "ngx-ui-loader", 0);
12273
12203
  i0.ɵɵelementStart(1, "div", 1);
12274
12204
  i0.ɵɵelementStart(2, "div", 2);
@@ -12278,34 +12208,36 @@ AdminLayoutComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AdminL
12278
12208
  i0.ɵɵelementEnd();
12279
12209
  i0.ɵɵelementStart(4, "div", 4);
12280
12210
  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);
12211
+ i0.ɵɵtemplate(6, AdminLayoutComponent_ng_container_6_Template, 2, 0, "ng-container", 6);
12212
+ i0.ɵɵtemplate(7, AdminLayoutComponent_ng_template_7_Template, 1, 0, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
12213
+ i0.ɵɵtemplate(9, AdminLayoutComponent_div_9_Template, 4, 0, "div", 8);
12214
+ i0.ɵɵtemplate(10, AdminLayoutComponent_div_10_Template, 6, 8, "div", 9);
12286
12215
  i0.ɵɵelementEnd();
12287
12216
  i0.ɵɵelementEnd();
12288
12217
  i0.ɵɵelementEnd();
12289
12218
  } if (rf & 2) {
12219
+ const _r1 = i0.ɵɵreference(8);
12290
12220
  i0.ɵɵproperty("fgsType", ctx.spinnerType);
12291
12221
  i0.ɵɵadvance(1);
12292
12222
  i0.ɵɵproperty("dir", ctx.layoutConf.dir);
12293
12223
  i0.ɵɵadvance(4);
12294
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(5, _c0$5, ctx.display, ctx.dashboardPage));
12224
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(7, _c0$5, ctx.display, ctx.dashboardPage));
12225
+ i0.ɵɵadvance(1);
12226
+ i0.ɵɵproperty("ngIf", ctx.isHomeScreen)("ngIfElse", _r1);
12295
12227
  i0.ɵɵadvance(3);
12296
12228
  i0.ɵɵproperty("ngIf", ctx.isModuleLoading);
12297
12229
  i0.ɵɵadvance(1);
12298
12230
  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 });
12231
+ } }, 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
12232
  (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AdminLayoutComponent, [{
12301
12233
  type: Component,
12302
12234
  args: [{
12303
12235
  selector: "app-admin-layout",
12304
12236
  templateUrl: "./admin-layout.template.html"
12305
12237
  }]
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: [{
12238
+ }], 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
12239
  type: HostListener,
12308
- args: ["window:resize", ['$event']]
12240
+ args: ["window:resize", ["$event"]]
12309
12241
  }] }); })();
12310
12242
 
12311
12243
  function HeaderTopComponent_li_7_a_1_Template(rf, ctx) { if (rf & 1) {
@@ -15837,12 +15769,13 @@ ShellModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
15837
15769
 
15838
15770
  const ShellRouts = [
15839
15771
  {
15840
- path: "",
15772
+ path: '',
15773
+ component: AdminLayoutComponent,
15841
15774
  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' } }
15775
+ // no default child here on purpose layout shows grid when there’s no child
15776
+ { path: 'accounts', component: AccountAndBillingComponent },
15777
+ { path: 'payments-plans', component: CompanyPlansComponent },
15778
+ { path: 'welcome', component: LiveWelcomePageComponent }
15846
15779
  ]
15847
15780
  }
15848
15781
  ];