@thetradeengineorg1/snova-shell-module 1.0.4 → 1.0.6
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 +23 -26
- package/bundles/thetradeengineorg1-snova-shell-module.umd.js.map +1 -1
- package/esm2015/lib/shell-components/components/admin-layout/admin-layout.component.js +2 -2
- package/esm2015/lib/shell-components/components/sidenav/side-bar.component.js +18 -22
- package/esm2015/lib/shell-components/shell.routing.js +3 -1
- package/fesm2015/thetradeengineorg1-snova-shell-module.js +23 -26
- package/fesm2015/thetradeengineorg1-snova-shell-module.js.map +1 -1
- package/lib/shell-components/components/sidenav/side-bar.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7665,7 +7665,7 @@
|
|
|
7665
7665
|
|
|
7666
7666
|
var _c0$9 = ["menuTrigger"];
|
|
7667
7667
|
var _c1$3 = ["element"];
|
|
7668
|
-
var _c2$
|
|
7668
|
+
var _c2$2 = ["workspaceElement"];
|
|
7669
7669
|
var _c3$1 = ["menuElement"];
|
|
7670
7670
|
var _c4$1 = ["addWorkspace"];
|
|
7671
7671
|
var _c5 = ["allSelected"];
|
|
@@ -10120,7 +10120,7 @@
|
|
|
10120
10120
|
if (rf & 1) {
|
|
10121
10121
|
i0__namespace.ɵɵviewQuery(_c0$9, 5);
|
|
10122
10122
|
i0__namespace.ɵɵviewQuery(_c1$3, 5);
|
|
10123
|
-
i0__namespace.ɵɵviewQuery(_c2$
|
|
10123
|
+
i0__namespace.ɵɵviewQuery(_c2$2, 5);
|
|
10124
10124
|
i0__namespace.ɵɵviewQuery(_c3$1, 5);
|
|
10125
10125
|
i0__namespace.ɵɵviewQuery(_c4$1, 5);
|
|
10126
10126
|
i0__namespace.ɵɵviewQuery(_c5, 5);
|
|
@@ -10937,7 +10937,7 @@
|
|
|
10937
10937
|
|
|
10938
10938
|
var _c0$7 = ["feedTimeSheet"];
|
|
10939
10939
|
var _c1$2 = ["feedBackPopover"];
|
|
10940
|
-
var _c2 = ["documentPopover"];
|
|
10940
|
+
var _c2$1 = ["documentPopover"];
|
|
10941
10941
|
var _c3 = ["openAnnoucementDialogComponent"];
|
|
10942
10942
|
var _c4 = ["fileUploadDropzonePopup"];
|
|
10943
10943
|
function HeaderSideComponent_div_5_div_3_Template(rf, ctx) {
|
|
@@ -12723,7 +12723,7 @@
|
|
|
12723
12723
|
if (rf & 1) {
|
|
12724
12724
|
i0__namespace.ɵɵviewQuery(_c0$7, 5);
|
|
12725
12725
|
i0__namespace.ɵɵviewQuery(_c1$2, 5);
|
|
12726
|
-
i0__namespace.ɵɵviewQuery(_c2, 5);
|
|
12726
|
+
i0__namespace.ɵɵviewQuery(_c2$1, 5);
|
|
12727
12727
|
i0__namespace.ɵɵviewQuery(_c3, 5);
|
|
12728
12728
|
i0__namespace.ɵɵviewQuery(_c4, 5);
|
|
12729
12729
|
}
|
|
@@ -12971,7 +12971,8 @@
|
|
|
12971
12971
|
i0__namespace.ɵɵproperty("ngForOf", item_r1.badges);
|
|
12972
12972
|
}
|
|
12973
12973
|
}
|
|
12974
|
-
var _c1$1 =
|
|
12974
|
+
var _c1$1 = "0 6px 20px rgba(241, 88, 12, 0.35), 0 0 10px rgba(241, 88, 12, 0.25)";
|
|
12975
|
+
var _c2 = function () { return { "background-color": "#fff", "border": "2px solid #f1580c", "box-shadow": _c1$1 }; };
|
|
12975
12976
|
function SideBarComponent_div_9_Template(rf, ctx) {
|
|
12976
12977
|
if (rf & 1) {
|
|
12977
12978
|
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -12991,7 +12992,7 @@
|
|
|
12991
12992
|
var i_r2 = ctx.index;
|
|
12992
12993
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
12993
12994
|
i0__namespace.ɵɵadvance(1);
|
|
12994
|
-
i0__namespace.ɵɵproperty("ngStyle", (ctx_r0.selectedRowIndex == i_r2 || ctx_r0.showBackGroundColor == i_r2) && i0__namespace.ɵɵpureFunction0(4,
|
|
12995
|
+
i0__namespace.ɵɵproperty("ngStyle", (ctx_r0.selectedRowIndex == i_r2 || ctx_r0.showBackGroundColor == i_r2) && i0__namespace.ɵɵpureFunction0(4, _c2));
|
|
12995
12996
|
i0__namespace.ɵɵadvance(2);
|
|
12996
12997
|
i0__namespace.ɵɵproperty("ngIf", item_r1.type === "link" || item_r1.type === "applicationlink");
|
|
12997
12998
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -13008,33 +13009,22 @@
|
|
|
13008
13009
|
}
|
|
13009
13010
|
SideBarComponent.prototype.ngOnInit = function () {
|
|
13010
13011
|
var _this = this;
|
|
13011
|
-
// load soft labels
|
|
13012
13012
|
this.softLabels = JSON.parse(localStorage.getItem("SoftLabels"));
|
|
13013
|
-
// get menu items and filter out HR, HR management & Activity Tracker
|
|
13014
13013
|
this.menuItems$ = this.store.pipe(i3.select(getCurrentActiveMenuCategoryMenuItems), operators.map(function (menuList) { return menuList.filter(function (item) {
|
|
13015
13014
|
var _a, _b;
|
|
13016
13015
|
var menuLabel = ((_a = item.menu) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || "";
|
|
13017
13016
|
var state = ((_b = item.state) === null || _b === void 0 ? void 0 : _b.toLowerCase()) || "";
|
|
13018
|
-
|
|
13019
|
-
if (menuLabel === "hr" || state.startsWith("hrmanagment/employeelist")) {
|
|
13017
|
+
if (menuLabel === "hr" || state.startsWith("hrmanagment/employeelist"))
|
|
13020
13018
|
return false;
|
|
13021
|
-
|
|
13022
|
-
// ❌ remove HR management dropdown & submenus
|
|
13023
|
-
if (menuLabel.includes("hr managment") || menuLabel.includes("hr management")) {
|
|
13019
|
+
if (menuLabel.includes("hr managment") || menuLabel.includes("hr management"))
|
|
13024
13020
|
return false;
|
|
13025
|
-
|
|
13026
|
-
if (state.startsWith("hrmanagment") || state.startsWith("hrmdetails")) {
|
|
13021
|
+
if (state.startsWith("hrmanagment") || state.startsWith("hrmdetails"))
|
|
13027
13022
|
return false;
|
|
13028
|
-
|
|
13029
|
-
// ❌ remove Activity Tracker
|
|
13030
|
-
if (menuLabel.includes("activity tracker") || state.startsWith("activitytracker")) {
|
|
13023
|
+
if (menuLabel.includes("activity tracker") || state.startsWith("activitytracker"))
|
|
13031
13024
|
return false;
|
|
13032
|
-
}
|
|
13033
13025
|
return true;
|
|
13034
13026
|
}); }), operators.tap(function (menuList) { return _this.routerActive(menuList); }));
|
|
13035
|
-
// trigger menu load
|
|
13036
13027
|
this.store.dispatch(new GetAllMenuItemsTriggered(MenuCategories.Main));
|
|
13037
|
-
// listen to route changes
|
|
13038
13028
|
this.router.events.subscribe(function (event) {
|
|
13039
13029
|
if (event instanceof i2.NavigationEnd) {
|
|
13040
13030
|
_this.menuItems$.subscribe(function (list) { return _this.routerActive(list); });
|
|
@@ -13046,7 +13036,8 @@
|
|
|
13046
13036
|
if (menuList && menuList.length > 0) {
|
|
13047
13037
|
var index = menuList.findIndex(function (i) { return _this.router.url == "/" + i.state; });
|
|
13048
13038
|
this.selectedRowIndex = index;
|
|
13049
|
-
|
|
13039
|
+
// 👉 Highlight Report card when inside dashboard-management/dashboard
|
|
13040
|
+
if (this.router.url.includes("/dashboard-management/dashboard")) {
|
|
13050
13041
|
this.selectedRowIndex = 99;
|
|
13051
13042
|
}
|
|
13052
13043
|
}
|
|
@@ -13063,16 +13054,21 @@
|
|
|
13063
13054
|
this.router.navigate([link]);
|
|
13064
13055
|
}
|
|
13065
13056
|
};
|
|
13057
|
+
// 👉 Report goes to /dashboard-management/dashboard
|
|
13058
|
+
SideBarComponent.prototype.goToReport = function () {
|
|
13059
|
+
this.selectedRowIndex = 99;
|
|
13060
|
+
this.router.navigate(["/dashboard-management/dashboard"]);
|
|
13061
|
+
};
|
|
13066
13062
|
return SideBarComponent;
|
|
13067
13063
|
}());
|
|
13068
13064
|
SideBarComponent.ɵfac = function SideBarComponent_Factory(t) { return new (t || SideBarComponent)(i0__namespace.ɵɵdirectiveInject(i3__namespace.Store), i0__namespace.ɵɵdirectiveInject(i2__namespace.Router)); };
|
|
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
|
|
13065
|
+
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 rgba(241, 88, 12, 0.25)", 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) {
|
|
13070
13066
|
if (rf & 1) {
|
|
13071
13067
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
13072
13068
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
13073
13069
|
i0__namespace.ɵɵelementStart(2, "div", 2);
|
|
13074
13070
|
i0__namespace.ɵɵelementStart(3, "div", 3);
|
|
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.
|
|
13071
|
+
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.goToReport(); });
|
|
13076
13072
|
i0__namespace.ɵɵelementStart(4, "div", 4);
|
|
13077
13073
|
i0__namespace.ɵɵelementStart(5, "mat-icon", 5);
|
|
13078
13074
|
i0__namespace.ɵɵtext(6, " assessment ");
|
|
@@ -13090,7 +13086,7 @@
|
|
|
13090
13086
|
}
|
|
13091
13087
|
if (rf & 2) {
|
|
13092
13088
|
i0__namespace.ɵɵadvance(3);
|
|
13093
|
-
i0__namespace.ɵɵproperty("ngStyle", (ctx.selectedRowIndex == 99 || ctx.showBackGroundColor == 99) && i0__namespace.ɵɵpureFunction0(4,
|
|
13089
|
+
i0__namespace.ɵɵproperty("ngStyle", (ctx.selectedRowIndex == 99 || ctx.showBackGroundColor == 99) && i0__namespace.ɵɵpureFunction0(4, _c2));
|
|
13094
13090
|
i0__namespace.ɵɵadvance(6);
|
|
13095
13091
|
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind1(10, 2, ctx.menuItems$));
|
|
13096
13092
|
}
|
|
@@ -13237,7 +13233,7 @@
|
|
|
13237
13233
|
});
|
|
13238
13234
|
router.events.subscribe(function (val) {
|
|
13239
13235
|
if (location.path() != "") {
|
|
13240
|
-
if (location.path().includes("/dashboard-management
|
|
13236
|
+
if (location.path().includes("/dashboard-management")) {
|
|
13241
13237
|
_this.dashboardPage = true;
|
|
13242
13238
|
_this.bgcolor = "none";
|
|
13243
13239
|
}
|
|
@@ -17300,6 +17296,7 @@
|
|
|
17300
17296
|
component: AdminLayoutComponent,
|
|
17301
17297
|
children: [
|
|
17302
17298
|
// no default child here on purpose – layout shows grid when there’s no child
|
|
17299
|
+
// { path: 'settings', component: settingsComponent },
|
|
17303
17300
|
{ path: 'accounts', component: AccountAndBillingComponent },
|
|
17304
17301
|
{ path: 'payments-plans', component: CompanyPlansComponent },
|
|
17305
17302
|
{ path: 'welcome', component: LiveWelcomePageComponent }
|