@thetradeengineorg1/snova-shell-module 1.0.3 → 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.
- package/bundles/thetradeengineorg1-snova-shell-module.umd.js +44 -103
- package/bundles/thetradeengineorg1-snova-shell-module.umd.js.map +1 -1
- package/esm2015/lib/shell-components/components/header-side/header-side.component.js +2 -2
- package/esm2015/lib/shell-components/components/menu/menu.component.js +2 -2
- package/esm2015/lib/shell-components/components/sidenav/side-bar.component.js +44 -94
- package/esm2015/lib/shell-components/shell.routing.js +1 -1
- package/fesm2015/thetradeengineorg1-snova-shell-module.js +44 -94
- package/fesm2015/thetradeengineorg1-snova-shell-module.js.map +1 -1
- package/lib/shell-components/components/sidenav/side-bar.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -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,#
|
|
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,#
|
|
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.ɵɵ
|
|
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",
|
|
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.ɵɵ
|
|
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
|
|
11870
|
-
i0.ɵɵelementStart(0, "span",
|
|
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
|
|
11875
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c0$6,
|
|
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(" ",
|
|
11851
|
+
i0.ɵɵtextInterpolate1(" ", badge_r9.value, " ");
|
|
11878
11852
|
} }
|
|
11879
|
-
function
|
|
11880
|
-
i0.ɵɵelementStart(0, "div",
|
|
11881
|
-
i0.ɵɵtemplate(1,
|
|
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
|
|
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
|
|
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(
|
|
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,
|
|
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(
|
|
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
|
|
11964
|
-
this.menuItems$ = this.store.pipe(select(getCurrentActiveMenuCategoryMenuItems),
|
|
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)", "
|
|
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, "
|
|
11959
|
+
i0.ɵɵtext(6, " assessment ");
|
|
12010
11960
|
i0.ɵɵelementEnd();
|
|
12011
11961
|
i0.ɵɵelementStart(7, "h6", 6);
|
|
12012
|
-
i0.ɵɵtext(8, "
|
|
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,
|
|
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();
|