@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.
@@ -10146,7 +10146,7 @@
10146
10146
  if (rf & 1) {
10147
10147
  i0__namespace.ɵɵlistener("keydown.control.q", function MenuComponent_keydown_control_q_HostBindingHandler() { return ctx.keyOpenEvent(); }, false, i0__namespace.ɵɵresolveDocument)("keydown.control.m", function MenuComponent_keydown_control_m_HostBindingHandler() { return ctx.keyCloseEvent(); }, false, i0__namespace.ɵɵresolveDocument)("keydown.control.b", function MenuComponent_keydown_control_b_HostBindingHandler() { return ctx.remoteSearchByText(); }, false, i0__namespace.ɵɵresolveDocument)("keydown.control.y", function MenuComponent_keydown_control_y_HostBindingHandler() { return ctx.remoteSearchById(); }, false, i0__namespace.ɵɵresolveDocument);
10148
10148
  }
10149
- }, inputs: { reloadAll: ["reload", "reloadAll"] }, outputs: { isOpened: "isOpened", openNewDashboard: "openNewDashboard" }, features: [i0__namespace.ɵɵ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) {
10149
+ }, inputs: { reloadAll: ["reload", "reloadAll"] }, outputs: { isOpened: "isOpened", openNewDashboard: "openNewDashboard" }, features: [i0__namespace.ɵɵ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) {
10150
10150
  if (rf & 1) {
10151
10151
  i0__namespace.ɵɵelementStart(0, "button", 0);
10152
10152
  i0__namespace.ɵɵelementStart(1, "mat-icon", 1);
@@ -12735,7 +12735,7 @@
12735
12735
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.openAnnoucementDialogComponent = _t.first);
12736
12736
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.fileUploadDropzonePopup = _t);
12737
12737
  }
12738
- }, inputs: { notificPanel: "notificPanel" }, outputs: { opened: "opened" }, features: [i0__namespace.ɵɵ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) {
12738
+ }, inputs: { notificPanel: "notificPanel" }, outputs: { opened: "opened" }, features: [i0__namespace.ɵɵ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) {
12739
12739
  if (rf & 1) {
12740
12740
  var _r38_1 = i0__namespace.ɵɵgetCurrentView();
12741
12741
  i0__namespace.ɵɵelementStart(0, "mat-toolbar", 0);
@@ -12914,7 +12914,7 @@
12914
12914
  var item_r1 = i0__namespace.ɵɵnextContext().$implicit;
12915
12915
  var ctx_r3 = i0__namespace.ɵɵnextContext();
12916
12916
  i0__namespace.ɵɵadvance(2);
12917
- i0__namespace.ɵɵtextInterpolate(item_r1.icon);
12917
+ i0__namespace.ɵɵtextInterpolate1(" ", item_r1.icon, " ");
12918
12918
  i0__namespace.ɵɵadvance(2);
12919
12919
  i0__namespace.ɵɵtextInterpolate1(" ", item_r1.menu ? i0__namespace.ɵɵpipeBind2(5, 2, item_r1.menu, ctx_r3.softLabels) : i0__namespace.ɵɵpipeBind1(6, 5, item_r1.name), " ");
12920
12920
  }
@@ -12922,7 +12922,7 @@
12922
12922
  function SideBarComponent_div_9_ng_container_4_Template(rf, ctx) {
12923
12923
  if (rf & 1) {
12924
12924
  i0__namespace.ɵɵelementContainerStart(0);
12925
- i0__namespace.ɵɵelementStart(1, "a", 12);
12925
+ i0__namespace.ɵɵelementStart(1, "a", 10);
12926
12926
  i0__namespace.ɵɵelementStart(2, "mat-icon", 5);
12927
12927
  i0__namespace.ɵɵtext(3);
12928
12928
  i0__namespace.ɵɵelementEnd();
@@ -12940,58 +12940,29 @@
12940
12940
  i0__namespace.ɵɵadvance(1);
12941
12941
  i0__namespace.ɵɵproperty("href", item_r1.state, i0__namespace.ɵɵsanitizeUrl);
12942
12942
  i0__namespace.ɵɵadvance(2);
12943
- i0__namespace.ɵɵtextInterpolate(item_r1.icon);
12943
+ i0__namespace.ɵɵtextInterpolate1(" ", item_r1.icon, " ");
12944
12944
  i0__namespace.ɵɵadvance(2);
12945
12945
  i0__namespace.ɵɵtextInterpolate1(" ", item_r1.menu ? i0__namespace.ɵɵpipeBind2(6, 3, item_r1.menu, ctx_r4.softLabels) : i0__namespace.ɵɵpipeBind1(7, 6, item_r1.name), " ");
12946
12946
  }
12947
12947
  }
12948
- function SideBarComponent_div_9_div_5_Template(rf, ctx) {
12949
- if (rf & 1) {
12950
- var _r12_1 = i0__namespace.ɵɵgetCurrentView();
12951
- i0__namespace.ɵɵelementStart(0, "div", 13);
12952
- i0__namespace.ɵɵlistener("click", function SideBarComponent_div_9_div_5_Template_div_click_0_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var item_r1 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.toggleDropdown(item_r1); });
12953
- i0__namespace.ɵɵelementStart(1, "mat-icon", 5);
12954
- i0__namespace.ɵɵtext(2);
12955
- i0__namespace.ɵɵelementEnd();
12956
- i0__namespace.ɵɵelementStart(3, "h6", 6);
12957
- i0__namespace.ɵɵtext(4);
12958
- i0__namespace.ɵɵpipe(5, "softLabelsPipe");
12959
- i0__namespace.ɵɵpipe(6, "translate");
12960
- i0__namespace.ɵɵelementEnd();
12961
- i0__namespace.ɵɵelementStart(7, "mat-icon", 14);
12962
- i0__namespace.ɵɵtext(8);
12963
- i0__namespace.ɵɵelementEnd();
12964
- i0__namespace.ɵɵelementEnd();
12965
- }
12966
- if (rf & 2) {
12967
- var item_r1 = i0__namespace.ɵɵnextContext().$implicit;
12968
- var ctx_r5 = i0__namespace.ɵɵnextContext();
12969
- i0__namespace.ɵɵadvance(2);
12970
- i0__namespace.ɵɵtextInterpolate(item_r1.icon);
12971
- i0__namespace.ɵɵadvance(2);
12972
- i0__namespace.ɵɵtextInterpolate1(" ", item_r1.menu ? i0__namespace.ɵɵpipeBind2(5, 3, item_r1.menu, ctx_r5.softLabels) : i0__namespace.ɵɵpipeBind1(6, 6, item_r1.name), " ");
12973
- i0__namespace.ɵɵadvance(4);
12974
- i0__namespace.ɵɵtextInterpolate1(" ", item_r1.open ? "expand_less" : "expand_more", " ");
12975
- }
12976
- }
12977
12948
  var _c0$6 = function (a0) { return { background: a0 }; };
12978
- function SideBarComponent_div_9_div_6_span_1_Template(rf, ctx) {
12949
+ function SideBarComponent_div_9_div_5_span_1_Template(rf, ctx) {
12979
12950
  if (rf & 1) {
12980
- i0__namespace.ɵɵelementStart(0, "span", 17);
12951
+ i0__namespace.ɵɵelementStart(0, "span", 13);
12981
12952
  i0__namespace.ɵɵtext(1);
12982
12953
  i0__namespace.ɵɵelementEnd();
12983
12954
  }
12984
12955
  if (rf & 2) {
12985
- var badge_r15 = ctx.$implicit;
12986
- i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction1(2, _c0$6, badge_r15.color));
12956
+ var badge_r9 = ctx.$implicit;
12957
+ i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction1(2, _c0$6, badge_r9.color));
12987
12958
  i0__namespace.ɵɵadvance(1);
12988
- i0__namespace.ɵɵtextInterpolate1(" ", badge_r15.value, " ");
12959
+ i0__namespace.ɵɵtextInterpolate1(" ", badge_r9.value, " ");
12989
12960
  }
12990
12961
  }
12991
- function SideBarComponent_div_9_div_6_Template(rf, ctx) {
12962
+ function SideBarComponent_div_9_div_5_Template(rf, ctx) {
12992
12963
  if (rf & 1) {
12993
- i0__namespace.ɵɵelementStart(0, "div", 15);
12994
- i0__namespace.ɵɵtemplate(1, SideBarComponent_div_9_div_6_span_1_Template, 2, 4, "span", 16);
12964
+ i0__namespace.ɵɵelementStart(0, "div", 11);
12965
+ i0__namespace.ɵɵtemplate(1, SideBarComponent_div_9_div_5_span_1_Template, 2, 4, "span", 12);
12995
12966
  i0__namespace.ɵɵelementEnd();
12996
12967
  }
12997
12968
  if (rf & 2) {
@@ -13000,61 +12971,19 @@
13000
12971
  i0__namespace.ɵɵproperty("ngForOf", item_r1.badges);
13001
12972
  }
13002
12973
  }
13003
- function SideBarComponent_div_9_div_7_div_1_Template(rf, ctx) {
13004
- if (rf & 1) {
13005
- var _r21_1 = i0__namespace.ɵɵgetCurrentView();
13006
- i0__namespace.ɵɵelementStart(0, "div", 2);
13007
- i0__namespace.ɵɵelementStart(1, "div", 19);
13008
- i0__namespace.ɵɵlistener("click", function SideBarComponent_div_9_div_7_div_1_Template_div_click_1_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r21_1); var itemLvL2_r18 = restoredCtx.$implicit; var ctx_r20 = i0__namespace.ɵɵnextContext(2); var i_r2 = ctx_r20.index; var item_r1 = ctx_r20.$implicit; var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.selectMenu(i_r2, "/" + item_r1.state + "/" + itemLvL2_r18.state); });
13009
- i0__namespace.ɵɵelementStart(2, "div", 4);
13010
- i0__namespace.ɵɵelementStart(3, "mat-icon", 5);
13011
- i0__namespace.ɵɵtext(4);
13012
- i0__namespace.ɵɵelementEnd();
13013
- i0__namespace.ɵɵelementStart(5, "h6", 6);
13014
- i0__namespace.ɵɵtext(6);
13015
- i0__namespace.ɵɵpipe(7, "softLabelsPipe");
13016
- i0__namespace.ɵɵpipe(8, "translate");
13017
- i0__namespace.ɵɵelementEnd();
13018
- i0__namespace.ɵɵelementEnd();
13019
- i0__namespace.ɵɵelementEnd();
13020
- i0__namespace.ɵɵelementEnd();
13021
- }
13022
- if (rf & 2) {
13023
- var itemLvL2_r18 = ctx.$implicit;
13024
- var ctx_r17 = i0__namespace.ɵɵnextContext(3);
13025
- i0__namespace.ɵɵadvance(4);
13026
- i0__namespace.ɵɵtextInterpolate(itemLvL2_r18.icon);
13027
- i0__namespace.ɵɵadvance(2);
13028
- i0__namespace.ɵɵtextInterpolate1(" ", itemLvL2_r18.menu ? i0__namespace.ɵɵpipeBind2(7, 2, itemLvL2_r18.menu, ctx_r17.softLabels) : i0__namespace.ɵɵpipeBind1(8, 5, itemLvL2_r18.name), " ");
13029
- }
13030
- }
13031
- function SideBarComponent_div_9_div_7_Template(rf, ctx) {
13032
- if (rf & 1) {
13033
- i0__namespace.ɵɵelementStart(0, "div", 18);
13034
- i0__namespace.ɵɵtemplate(1, SideBarComponent_div_9_div_7_div_1_Template, 9, 7, "div", 7);
13035
- i0__namespace.ɵɵelementEnd();
13036
- }
13037
- if (rf & 2) {
13038
- var item_r1 = i0__namespace.ɵɵnextContext().$implicit;
13039
- i0__namespace.ɵɵadvance(1);
13040
- i0__namespace.ɵɵproperty("ngForOf", item_r1.sub);
13041
- }
13042
- }
13043
- var _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)" }; };
12974
+ var _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)" }; };
13044
12975
  function SideBarComponent_div_9_Template(rf, ctx) {
13045
12976
  if (rf & 1) {
13046
- var _r24_1 = i0__namespace.ɵɵgetCurrentView();
12977
+ var _r12_1 = i0__namespace.ɵɵgetCurrentView();
13047
12978
  i0__namespace.ɵɵelementStart(0, "div", 2);
13048
12979
  i0__namespace.ɵɵelementStart(1, "div", 3);
13049
- i0__namespace.ɵɵlistener("mouseenter", function SideBarComponent_div_9_Template_div_mouseenter_1_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r24_1); var i_r2 = restoredCtx.index; var ctx_r23 = i0__namespace.ɵɵnextContext(); return ctx_r23.enter(i_r2); })("mouseleave", function SideBarComponent_div_9_Template_div_mouseleave_1_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r24_1); var i_r2 = restoredCtx.index; var ctx_r25 = i0__namespace.ɵɵnextContext(); return ctx_r25.leave(i_r2); })("click", function SideBarComponent_div_9_Template_div_click_1_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r24_1); var i_r2 = restoredCtx.index; var item_r1 = restoredCtx.$implicit; var ctx_r26 = i0__namespace.ɵɵnextContext(); return ctx_r26.selectMenu(i_r2, item_r1.state); });
12980
+ i0__namespace.ɵɵlistener("mouseenter", function SideBarComponent_div_9_Template_div_mouseenter_1_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r12_1); var i_r2 = restoredCtx.index; var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.enter(i_r2); })("mouseleave", function SideBarComponent_div_9_Template_div_mouseleave_1_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r12_1); var i_r2 = restoredCtx.index; var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.leave(i_r2); })("click", function SideBarComponent_div_9_Template_div_click_1_listener() { var restoredCtx = i0__namespace.ɵɵrestoreView(_r12_1); var i_r2 = restoredCtx.index; var item_r1 = restoredCtx.$implicit; var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.selectMenu(i_r2, item_r1.state); });
13050
12981
  i0__namespace.ɵɵelementStart(2, "div", 4);
13051
12982
  i0__namespace.ɵɵtemplate(3, SideBarComponent_div_9_ng_container_3_Template, 7, 7, "ng-container", 8);
13052
12983
  i0__namespace.ɵɵtemplate(4, SideBarComponent_div_9_ng_container_4_Template, 8, 8, "ng-container", 8);
13053
- i0__namespace.ɵɵtemplate(5, SideBarComponent_div_9_div_5_Template, 9, 8, "div", 9);
13054
- i0__namespace.ɵɵtemplate(6, SideBarComponent_div_9_div_6_Template, 2, 1, "div", 10);
12984
+ i0__namespace.ɵɵtemplate(5, SideBarComponent_div_9_div_5_Template, 2, 1, "div", 9);
13055
12985
  i0__namespace.ɵɵelementEnd();
13056
12986
  i0__namespace.ɵɵelementEnd();
13057
- i0__namespace.ɵɵtemplate(7, SideBarComponent_div_9_div_7_Template, 2, 1, "div", 11);
13058
12987
  i0__namespace.ɵɵelementEnd();
13059
12988
  }
13060
12989
  if (rf & 2) {
@@ -13062,17 +12991,13 @@
13062
12991
  var i_r2 = ctx.index;
13063
12992
  var ctx_r0 = i0__namespace.ɵɵnextContext();
13064
12993
  i0__namespace.ɵɵadvance(1);
13065
- i0__namespace.ɵɵproperty("ngStyle", (ctx_r0.selectedRowIndex == i_r2 || ctx_r0.showBackGroundColor == i_r2) && i0__namespace.ɵɵpureFunction0(6, _c1$1));
12994
+ i0__namespace.ɵɵproperty("ngStyle", (ctx_r0.selectedRowIndex == i_r2 || ctx_r0.showBackGroundColor == i_r2) && i0__namespace.ɵɵpureFunction0(4, _c1$1));
13066
12995
  i0__namespace.ɵɵadvance(2);
13067
12996
  i0__namespace.ɵɵproperty("ngIf", item_r1.type === "link" || item_r1.type === "applicationlink");
13068
12997
  i0__namespace.ɵɵadvance(1);
13069
12998
  i0__namespace.ɵɵproperty("ngIf", item_r1.type === "extLink");
13070
12999
  i0__namespace.ɵɵadvance(1);
13071
- i0__namespace.ɵɵproperty("ngIf", item_r1.type === "dropDown");
13072
- i0__namespace.ɵɵadvance(1);
13073
13000
  i0__namespace.ɵɵproperty("ngIf", item_r1.badges == null ? null : item_r1.badges.length);
13074
- i0__namespace.ɵɵadvance(1);
13075
- i0__namespace.ɵɵproperty("ngIf", item_r1.open && item_r1.type === "dropDown");
13076
13001
  }
13077
13002
  }
13078
13003
  var SideBarComponent = /** @class */ (function () {
@@ -13085,8 +13010,28 @@
13085
13010
  var _this = this;
13086
13011
  // load soft labels
13087
13012
  this.softLabels = JSON.parse(localStorage.getItem("SoftLabels"));
13088
- // get menu items from store
13089
- this.menuItems$ = this.store.pipe(i3.select(getCurrentActiveMenuCategoryMenuItems), operators.tap(function (menuList) { return _this.routerActive(menuList); }));
13013
+ // get menu items and filter out HR, HR management & Activity Tracker
13014
+ this.menuItems$ = this.store.pipe(i3.select(getCurrentActiveMenuCategoryMenuItems), operators.map(function (menuList) { return menuList.filter(function (item) {
13015
+ var _a, _b;
13016
+ var menuLabel = ((_a = item.menu) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || "";
13017
+ var state = ((_b = item.state) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || "";
13018
+ // ❌ remove HR (direct link)
13019
+ if (menuLabel === "hr" || state.startsWith("hrmanagment/employeelist")) {
13020
+ return false;
13021
+ }
13022
+ // ❌ remove HR management dropdown & submenus
13023
+ if (menuLabel.includes("hr managment") || menuLabel.includes("hr management")) {
13024
+ return false;
13025
+ }
13026
+ if (state.startsWith("hrmanagment") || state.startsWith("hrmdetails")) {
13027
+ return false;
13028
+ }
13029
+ // ❌ remove Activity Tracker
13030
+ if (menuLabel.includes("activity tracker") || state.startsWith("activitytracker")) {
13031
+ return false;
13032
+ }
13033
+ return true;
13034
+ }); }), operators.tap(function (menuList) { return _this.routerActive(menuList); }));
13090
13035
  // trigger menu load
13091
13036
  this.store.dispatch(new GetAllMenuItemsTriggered(MenuCategories.Main));
13092
13037
  // listen to route changes
@@ -13112,10 +13057,6 @@
13112
13057
  SideBarComponent.prototype.leave = function (i) {
13113
13058
  this.showBackGroundColor = null;
13114
13059
  };
13115
- SideBarComponent.prototype.toggleDropdown = function (item) {
13116
- item.open = !item.open;
13117
- };
13118
- // ✅ NEW: unified method
13119
13060
  SideBarComponent.prototype.selectMenu = function (index, link) {
13120
13061
  this.selectedRowIndex = index;
13121
13062
  if (link) {
@@ -13125,7 +13066,7 @@
13125
13066
  return SideBarComponent;
13126
13067
  }());
13127
13068
  SideBarComponent.ɵfac = function SideBarComponent_Factory(t) { return new (t || SideBarComponent)(i0__namespace.ɵɵdirectiveInject(i3__namespace.Store), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router)); };
13128
- SideBarComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵ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) {
13069
+ SideBarComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵ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) {
13129
13070
  if (rf & 1) {
13130
13071
  i0__namespace.ɵɵelementStart(0, "div", 0);
13131
13072
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -13134,15 +13075,15 @@
13134
13075
  i0__namespace.ɵɵ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"); });
13135
13076
  i0__namespace.ɵɵelementStart(4, "div", 4);
13136
13077
  i0__namespace.ɵɵelementStart(5, "mat-icon", 5);
13137
- i0__namespace.ɵɵtext(6, "home");
13078
+ i0__namespace.ɵɵtext(6, " assessment ");
13138
13079
  i0__namespace.ɵɵelementEnd();
13139
13080
  i0__namespace.ɵɵelementStart(7, "h6", 6);
13140
- i0__namespace.ɵɵtext(8, "Home");
13081
+ i0__namespace.ɵɵtext(8, "Report");
13141
13082
  i0__namespace.ɵɵelementEnd();
13142
13083
  i0__namespace.ɵɵelementEnd();
13143
13084
  i0__namespace.ɵɵelementEnd();
13144
13085
  i0__namespace.ɵɵelementEnd();
13145
- i0__namespace.ɵɵtemplate(9, SideBarComponent_div_9_Template, 8, 7, "div", 7);
13086
+ i0__namespace.ɵɵtemplate(9, SideBarComponent_div_9_Template, 6, 5, "div", 7);
13146
13087
  i0__namespace.ɵɵpipe(10, "async");
13147
13088
  i0__namespace.ɵɵelementEnd();
13148
13089
  i0__namespace.ɵɵelementEnd();
@@ -13164,45 +13105,58 @@
13164
13105
  }], function () { return [{ type: i3__namespace.Store }, { type: i2__namespace.Router }]; }, null);
13165
13106
  })();
13166
13107
 
13167
- function AdminLayoutComponent_div_8_Template(rf, ctx) {
13108
+ function AdminLayoutComponent_ng_container_6_Template(rf, ctx) {
13168
13109
  if (rf & 1) {
13169
- i0__namespace.ɵɵelementStart(0, "div", 9);
13170
- i0__namespace.ɵɵelementStart(1, "div", 10);
13171
- i0__namespace.ɵɵelement(2, "div", 11);
13172
- i0__namespace.ɵɵelement(3, "div", 12);
13110
+ i0__namespace.ɵɵelementContainerStart(0);
13111
+ i0__namespace.ɵɵelement(1, "app-sidebar", 10);
13112
+ i0__namespace.ɵɵelementContainerEnd();
13113
+ }
13114
+ }
13115
+ function AdminLayoutComponent_ng_template_7_Template(rf, ctx) {
13116
+ if (rf & 1) {
13117
+ i0__namespace.ɵɵelement(0, "router-outlet");
13118
+ }
13119
+ }
13120
+ function AdminLayoutComponent_div_9_Template(rf, ctx) {
13121
+ if (rf & 1) {
13122
+ i0__namespace.ɵɵelementStart(0, "div", 11);
13123
+ i0__namespace.ɵɵelementStart(1, "div", 12);
13124
+ i0__namespace.ɵɵelement(2, "div", 13);
13125
+ i0__namespace.ɵɵelement(3, "div", 14);
13173
13126
  i0__namespace.ɵɵelementEnd();
13174
13127
  i0__namespace.ɵɵelementEnd();
13175
13128
  }
13176
13129
  }
13177
- function AdminLayoutComponent_div_9_div_5_Template(rf, ctx) {
13130
+ function AdminLayoutComponent_div_10_div_5_Template(rf, ctx) {
13178
13131
  if (rf & 1) {
13179
- i0__namespace.ɵɵelement(0, "div", 16);
13132
+ i0__namespace.ɵɵelement(0, "div", 18);
13180
13133
  }
13181
13134
  }
13182
- function AdminLayoutComponent_div_9_Template(rf, ctx) {
13135
+ function AdminLayoutComponent_div_10_Template(rf, ctx) {
13183
13136
  if (rf & 1) {
13184
- i0__namespace.ɵɵelementStart(0, "div", 13);
13185
- i0__namespace.ɵɵelementStart(1, "span", 14);
13137
+ i0__namespace.ɵɵelementStart(0, "div", 15);
13138
+ i0__namespace.ɵɵelementStart(1, "span", 16);
13186
13139
  i0__namespace.ɵɵtext(2);
13187
13140
  i0__namespace.ɵɵpipe(3, "translate");
13188
13141
  i0__namespace.ɵɵpipe(4, "translate");
13189
13142
  i0__namespace.ɵɵelementEnd();
13190
- i0__namespace.ɵɵtemplate(5, AdminLayoutComponent_div_9_div_5_Template, 1, 0, "div", 15);
13143
+ i0__namespace.ɵɵtemplate(5, AdminLayoutComponent_div_10_div_5_Template, 1, 0, "div", 17);
13191
13144
  i0__namespace.ɵɵelementEnd();
13192
13145
  }
13193
13146
  if (rf & 2) {
13194
- var ctx_r1 = i0__namespace.ɵɵnextContext();
13147
+ var ctx_r4 = i0__namespace.ɵɵnextContext();
13195
13148
  i0__namespace.ɵɵadvance(2);
13196
- i0__namespace.ɵɵtextInterpolate3(" ", i0__namespace.ɵɵpipeBind1(3, 4, "LOADINGPLEASEWAIT"), " (", ctx_r1.totalLoadingTime, " ", i0__namespace.ɵɵpipeBind1(4, 6, "SECONDS"), ") ");
13149
+ i0__namespace.ɵɵtextInterpolate3(" ", i0__namespace.ɵɵpipeBind1(3, 4, "LOADINGPLEASEWAIT"), " (", ctx_r4.totalLoadingTime, " ", i0__namespace.ɵɵpipeBind1(4, 6, "SECONDS"), ") ");
13197
13150
  i0__namespace.ɵɵadvance(3);
13198
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.loading);
13151
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.loading);
13199
13152
  }
13200
13153
  }
13201
13154
  var _c0$5 = function (a0, a1) { return { "blur-on-opened": a0, "show-in-dashboard": a1 }; };
13202
13155
  var AdminLayoutComponent = /** @class */ (function () {
13203
- function AdminLayoutComponent(router, translate, layout, store, cookieService, actionUpdates$, location, commonService, pubnub, signalr) {
13156
+ function AdminLayoutComponent(router, activatedRoute, translate, layout, store, cookieService, actionUpdates$, location, commonService, pubnub, signalr) {
13204
13157
  var _this = this;
13205
13158
  this.router = router;
13159
+ this.activatedRoute = activatedRoute;
13206
13160
  this.translate = translate;
13207
13161
  this.layout = layout;
13208
13162
  this.store = store;
@@ -13213,33 +13167,29 @@
13213
13167
  this.pubnub = pubnub;
13214
13168
  this.signalr = signalr;
13215
13169
  this.isModuleLoading = false;
13216
- // private sidebarPS: PerfectScrollbar;
13217
- // private bodyPS: PerfectScrollbar;
13218
- // private headerFixedBodyPS: PerfectScrollbar;
13219
13170
  this.scrollConfig = {};
13220
13171
  this.layoutConf = {};
13221
13172
  this.ngDestroyed$ = new rxjs.Subject();
13222
- this.userstory = 'userstory';
13173
+ this.userstory = "userstory";
13223
13174
  this.loading = false;
13224
13175
  this.totalLoadingTime = 0;
13225
13176
  this.spinnerType = i3$1.SPINNER.circle;
13226
- // let conId = sessionStorage.getItem('conectionId');
13227
- // if(!conId) {
13177
+ // 👉 NEW FLAG
13178
+ this.isHomeScreen = true;
13228
13179
  this.signalr.initializeSignalRConnection();
13229
- // }
13230
13180
  var environment = JSON.parse(localStorage.getItem(LocalStorageProperties.Environment));
13231
13181
  var companySettings = localStorage.getItem(LocalStorageProperties.CompanySettings);
13232
- if (!companySettings || companySettings == 'null' || companySettings == "undefined") {
13182
+ if (!companySettings || companySettings == "null" || companySettings == "undefined") {
13233
13183
  pubnub.init({
13234
13184
  publishKey: environment.publishKey,
13235
13185
  subscribeKey: environment.subscribeKey
13236
13186
  });
13237
13187
  }
13238
13188
  else {
13239
- var comSet = JSON.parse(localStorage.getItem(LocalStorageProperties.CompanySettings));
13189
+ var comSet = JSON.parse(companySettings);
13240
13190
  var publishKey = comSet.find(function (i) { return i.key == "PubnubPublishKey"; });
13241
13191
  var subscribeKey = comSet.find(function (i) { return i.key == "PubnubSubscribeKey"; });
13242
- if ((publishKey && publishKey.value) && (subscribeKey && subscribeKey.value)) {
13192
+ if ((publishKey === null || publishKey === void 0 ? void 0 : publishKey.value) && (subscribeKey === null || subscribeKey === void 0 ? void 0 : subscribeKey.value)) {
13243
13193
  pubnub.init({
13244
13194
  publishKey: publishKey.value,
13245
13195
  subscribeKey: subscribeKey.value
@@ -13257,11 +13207,12 @@
13257
13207
  .pipe(operators.filter(function (event) { return event instanceof i2.NavigationEnd; }))
13258
13208
  .subscribe(function (routeChange) {
13259
13209
  _this.layout.adjustLayout({ route: routeChange.url });
13210
+ _this.updateHomeToggle(); // 👉 update on every navigation
13260
13211
  });
13261
13212
  // Translator init
13262
13213
  var currentCulture = this.cookieService.get(LocalStorageProperties.CurrentCulture);
13263
- if (currentCulture === 'null' || currentCulture === 'undefined') {
13264
- currentCulture = 'en';
13214
+ if (currentCulture === "null" || currentCulture === "undefined") {
13215
+ currentCulture = "en";
13265
13216
  }
13266
13217
  translate.use(currentCulture);
13267
13218
  this.router.events.subscribe(function (event) {
@@ -13282,30 +13233,23 @@
13282
13233
  _this.loading = false;
13283
13234
  break;
13284
13235
  }
13285
- default: {
13286
- break;
13287
- }
13288
13236
  }
13289
13237
  });
13290
13238
  router.events.subscribe(function (val) {
13291
13239
  if (location.path() != "") {
13292
- if (location.path().includes('/dashboard-management/dashboard/')) {
13240
+ if (location.path().includes("/dashboard-management/dashboard/")) {
13293
13241
  _this.dashboardPage = true;
13294
- _this.bgcolor = 'none';
13242
+ _this.bgcolor = "none";
13295
13243
  }
13296
13244
  else {
13297
13245
  _this.dashboardPage = false;
13298
- _this.bgcolor = 'beige';
13246
+ _this.bgcolor = "beige";
13299
13247
  }
13300
13248
  }
13301
13249
  });
13302
- // if (this.cookieService.check(LocalStorageProperties.UserModel)) {
13303
- // let data = JSON.parse(this.cookieService.get(LocalStorageProperties.UserModel));
13304
- // if (data && data != 'null' && data != 'undefined')
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)) {
13250
+ if (localStorage.getItem(LocalStorageProperties.UserModel) != null &&
13251
+ localStorage.getItem(LocalStorageProperties.UserModel) != undefined &&
13252
+ !localStorage.hasOwnProperty(LocalStorageProperties.UserRoleFeatures)) {
13309
13253
  var data = JSON.parse(localStorage.getItem(LocalStorageProperties.UserModel));
13310
13254
  this.store.dispatch(new UserDetailsFetchedAfterLogin(data));
13311
13255
  }
@@ -13314,23 +13258,32 @@
13314
13258
  if (result && result.companyId) {
13315
13259
  _this.getSoftLabels();
13316
13260
  }
13317
- })).subscribe();
13261
+ }))
13262
+ .subscribe();
13318
13263
  }
13319
13264
  AdminLayoutComponent.prototype.ngOnInit = function () {
13320
13265
  var _this = this;
13321
13266
  this.getSoftLabelConfigurations();
13322
13267
  this.layoutConf = this.layout.layoutConf;
13323
- // this.layout.adjustLayout();
13324
- // FOR MODULE LOADER FLAG
13325
13268
  this.moduleLoaderSub = this.router.events.subscribe(function (event) {
13326
- if (event instanceof i2.RouteConfigLoadStart ||
13327
- event instanceof i2.ResolveStart) {
13328
- _this.isModuleLoading = false;
13269
+ if (event instanceof i2.RouteConfigLoadStart || event instanceof i2.ResolveStart) {
13270
+ _this.isModuleLoading = true;
13329
13271
  }
13330
13272
  if (event instanceof i2.RouteConfigLoadEnd || event instanceof i2.ResolveEnd) {
13331
13273
  _this.isModuleLoading = false;
13332
13274
  }
13333
13275
  });
13276
+ this.updateHomeToggle(); // initial check
13277
+ };
13278
+ AdminLayoutComponent.prototype.updateHomeToggle = function () {
13279
+ var _a, _b;
13280
+ // 👉 logic: if route has no child OR path is '', we are home
13281
+ var child = this.activatedRoute.firstChild;
13282
+ while (child === null || child === void 0 ? void 0 : child.firstChild) {
13283
+ child = child.firstChild;
13284
+ }
13285
+ 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 : "";
13286
+ this.isHomeScreen = !child || childPath === "";
13334
13287
  };
13335
13288
  AdminLayoutComponent.prototype.onResize = function (event) {
13336
13289
  this.layout.adjustLayout(event);
@@ -13339,7 +13292,7 @@
13339
13292
  this.display = event;
13340
13293
  };
13341
13294
  AdminLayoutComponent.prototype.getSoftLabelConfigurations = function () {
13342
- this.softLabels = JSON.parse(localStorage.getItem('SoftLabels'));
13295
+ this.softLabels = JSON.parse(localStorage.getItem("SoftLabels"));
13343
13296
  };
13344
13297
  AdminLayoutComponent.prototype.getSoftLabels = function () {
13345
13298
  var model = new SoftLabelConfigurationModel();
@@ -13348,33 +13301,12 @@
13348
13301
  if (response.success) {
13349
13302
  var data = response.data;
13350
13303
  if (data) {
13351
- localStorage.setItem('SoftLabels', JSON.stringify(data));
13304
+ localStorage.setItem("SoftLabels", JSON.stringify(data));
13352
13305
  }
13353
13306
  }
13354
13307
  });
13355
13308
  };
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
- // }
13309
+ AdminLayoutComponent.prototype.ngAfterViewInit = function () { };
13378
13310
  AdminLayoutComponent.prototype.scrollToTop = function (selector) {
13379
13311
  if (document) {
13380
13312
  var element = document.querySelector(selector);
@@ -13382,18 +13314,11 @@
13382
13314
  }
13383
13315
  };
13384
13316
  AdminLayoutComponent.prototype.ngOnDestroy = function () {
13385
- if (this.moduleLoaderSub) {
13386
- this.moduleLoaderSub.unsubscribe();
13387
- }
13388
- if (this.layoutConfSub) {
13389
- this.layoutConfSub.unsubscribe();
13390
- }
13391
- if (this.routerEventSub) {
13392
- this.routerEventSub.unsubscribe();
13393
- }
13394
- if (this.sub) {
13395
- this.sub.unsubscribe();
13396
- }
13317
+ var _a, _b, _c, _d;
13318
+ (_a = this.moduleLoaderSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
13319
+ (_b = this.layoutConfSub) === null || _b === void 0 ? void 0 : _b.unsubscribe();
13320
+ (_c = this.routerEventSub) === null || _c === void 0 ? void 0 : _c.unsubscribe();
13321
+ (_d = this.sub) === null || _d === void 0 ? void 0 : _d.unsubscribe();
13397
13322
  };
13398
13323
  AdminLayoutComponent.prototype.closeSidebar = function () {
13399
13324
  this.layout.publishLayoutChange({
@@ -13408,12 +13333,12 @@
13408
13333
  };
13409
13334
  return AdminLayoutComponent;
13410
13335
  }());
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)); };
13336
+ 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
13337
  AdminLayoutComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: AdminLayoutComponent, selectors: [["app-admin-layout"]], hostBindings: function AdminLayoutComponent_HostBindings(rf, ctx) {
13413
13338
  if (rf & 1) {
13414
13339
  i0__namespace.ɵɵlistener("resize", function AdminLayoutComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, i0__namespace.ɵɵresolveWindow);
13415
13340
  }
13416
- }, 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) {
13341
+ }, 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
13342
  if (rf & 1) {
13418
13343
  i0__namespace.ɵɵelement(0, "ngx-ui-loader", 0);
13419
13344
  i0__namespace.ɵɵelementStart(1, "div", 1);
@@ -13424,27 +13349,29 @@
13424
13349
  i0__namespace.ɵɵelementEnd();
13425
13350
  i0__namespace.ɵɵelementStart(4, "div", 4);
13426
13351
  i0__namespace.ɵɵelementStart(5, "div", 5);
13427
- i0__namespace.ɵɵelementStart(6, "app-sidebar", 6);
13428
- i0__namespace.ɵɵelement(7, "router-outlet");
13429
- i0__namespace.ɵɵelementEnd();
13430
- i0__namespace.ɵɵtemplate(8, AdminLayoutComponent_div_8_Template, 4, 0, "div", 7);
13431
- i0__namespace.ɵɵtemplate(9, AdminLayoutComponent_div_9_Template, 6, 8, "div", 8);
13352
+ i0__namespace.ɵɵtemplate(6, AdminLayoutComponent_ng_container_6_Template, 2, 0, "ng-container", 6);
13353
+ i0__namespace.ɵɵtemplate(7, AdminLayoutComponent_ng_template_7_Template, 1, 0, "ng-template", null, 7, i0__namespace.ɵɵtemplateRefExtractor);
13354
+ i0__namespace.ɵɵtemplate(9, AdminLayoutComponent_div_9_Template, 4, 0, "div", 8);
13355
+ i0__namespace.ɵɵtemplate(10, AdminLayoutComponent_div_10_Template, 6, 8, "div", 9);
13432
13356
  i0__namespace.ɵɵelementEnd();
13433
13357
  i0__namespace.ɵɵelementEnd();
13434
13358
  i0__namespace.ɵɵelementEnd();
13435
13359
  }
13436
13360
  if (rf & 2) {
13361
+ var _r1 = i0__namespace.ɵɵreference(8);
13437
13362
  i0__namespace.ɵɵproperty("fgsType", ctx.spinnerType);
13438
13363
  i0__namespace.ɵɵadvance(1);
13439
13364
  i0__namespace.ɵɵproperty("dir", ctx.layoutConf.dir);
13440
13365
  i0__namespace.ɵɵadvance(4);
13441
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(5, _c0$5, ctx.display, ctx.dashboardPage));
13366
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(7, _c0$5, ctx.display, ctx.dashboardPage));
13367
+ i0__namespace.ɵɵadvance(1);
13368
+ i0__namespace.ɵɵproperty("ngIf", ctx.isHomeScreen)("ngIfElse", _r1);
13442
13369
  i0__namespace.ɵɵadvance(3);
13443
13370
  i0__namespace.ɵɵproperty("ngIf", ctx.isModuleLoading);
13444
13371
  i0__namespace.ɵɵadvance(1);
13445
13372
  i0__namespace.ɵɵproperty("ngIf", ctx.loading);
13446
13373
  }
13447
- }, directives: [i3__namespace$1.ɵb, i12__namespace$1.Dir, HeaderSideComponent, i10__namespace.NgClass, i4__namespace$1.DefaultClassDirective, SideBarComponent, i2__namespace.RouterOutlet, i10__namespace.NgIf], pipes: [i5__namespace$1.TranslatePipe], encapsulation: 2 });
13374
+ }, 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
13375
  (function () {
13449
13376
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AdminLayoutComponent, [{
13450
13377
  type: i0.Component,
@@ -13452,9 +13379,9 @@
13452
13379
  selector: "app-admin-layout",
13453
13380
  templateUrl: "./admin-layout.template.html"
13454
13381
  }]
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: [{
13382
+ }], 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
13383
  type: i0.HostListener,
13457
- args: ["window:resize", ['$event']]
13384
+ args: ["window:resize", ["$event"]]
13458
13385
  }] });
13459
13386
  })();
13460
13387
 
@@ -17369,12 +17296,13 @@
17369
17296
 
17370
17297
  var ShellRouts = [
17371
17298
  {
17372
- path: "",
17299
+ path: '',
17300
+ component: AdminLayoutComponent,
17373
17301
  children: [
17374
- // { path: 'settings', component: settingsComponent, data: { title: 'settings', breadcrumb: 'settings' } },
17375
- { path: 'Accounts', component: AccountAndBillingComponent, data: { title: 'Account & Billing', breadcrumb: 'Account & Billing' } },
17376
- { path: 'payments-plans', component: CompanyPlansComponent, data: { title: 'Payments', breadcrumb: 'Payments' } },
17377
- { path: 'welcome', component: LiveWelcomePageComponent, data: { title: 'welcome', breadcrumb: 'welcome' } }
17302
+ // no default child here on purpose layout shows grid when there’s no child
17303
+ { path: 'accounts', component: AccountAndBillingComponent },
17304
+ { path: 'payments-plans', component: CompanyPlansComponent },
17305
+ { path: 'welcome', component: LiveWelcomePageComponent }
17378
17306
  ]
17379
17307
  }
17380
17308
  ];