@churchillliving/se-ui-toolkit 6.53.396 → 6.53.398
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/churchillliving-se-ui-toolkit.umd.js +130 -66
- package/bundles/churchillliving-se-ui-toolkit.umd.js.map +1 -1
- package/churchillliving-se-ui-toolkit.metadata.json +1 -1
- package/esm2015/lib/components/base/sidebar/sidebar.component.js +24 -5
- package/esm2015/lib/models/sidebar.model.js +6 -1
- package/esm2015/lib/services/grid.service.js +13 -7
- package/esm2015/lib/services/sidebar.service.js +41 -5
- package/fesm2015/churchillliving-se-ui-toolkit.js +127 -62
- package/fesm2015/churchillliving-se-ui-toolkit.js.map +1 -1
- package/lib/components/base/sidebar/sidebar.component.d.ts +4 -1
- package/lib/models/sidebar.model.d.ts +5 -0
- package/lib/services/sidebar.service.d.ts +9 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('primeng/api'), require('@angular/core'), require('primeng/dynamicdialog'), require('file-saver'), require('jspdf'), require('@angular/common'), require('ngx-toastr'), require('@angular/common/http'), require('rxjs'), require('@angular/platform-browser'), require('@angular/router'), require('primeng/table'), require('primeng/multiselect'), require('@angular/forms'), require('@angular/platform-browser/animations'), require('primeng/tabview'), require('primeng/dropdown'), require('primeng/calendar'), require('primeng/button'), require('primeng/ripple'), require('primeng/checkbox'), require('primeng/inputtext'), require('primeng/tristatecheckbox'), require('primeng/inputtextarea'), require('primeng/tooltip'), require('primeng/panelmenu'), require('ngx-cookie-service'), require('primeng/menu'), require('primeng/galleria'), require('primeng/autocomplete'), require('primeng/accordion'), require('primeng/confirmdialog'), require('primeng/messages'), require('primeng/progressspinner'), require('primeng/inputnumber'), require('primeng/avatar'), require('primeng/card'), require('@angular/cdk/drag-drop'), require('primeng/inputswitch')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@churchillliving/se-ui-toolkit', ['exports', 'primeng/api', '@angular/core', 'primeng/dynamicdialog', 'file-saver', 'jspdf', '@angular/common', 'ngx-toastr', '@angular/common/http', 'rxjs', '@angular/platform-browser', '@angular/router', 'primeng/table', 'primeng/multiselect', '@angular/forms', '@angular/platform-browser/animations', 'primeng/tabview', 'primeng/dropdown', 'primeng/calendar', 'primeng/button', 'primeng/ripple', 'primeng/checkbox', 'primeng/inputtext', 'primeng/tristatecheckbox', 'primeng/inputtextarea', 'primeng/tooltip', 'primeng/panelmenu', 'ngx-cookie-service', 'primeng/menu', 'primeng/galleria', 'primeng/autocomplete', 'primeng/accordion', 'primeng/confirmdialog', 'primeng/messages', 'primeng/progressspinner', 'primeng/inputnumber', 'primeng/avatar', 'primeng/card', '@angular/cdk/drag-drop', 'primeng/inputswitch'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.churchillliving = global.churchillliving || {}, global.churchillliving["se-ui-toolkit"] = {}), global.api, global.ng.core, global.dynamicdialog, global.fileSaver, global.jsPDF, global.ng.common, global.ngxToastr, global.ng.common.http, global.rxjs, global.ng.platformBrowser, global.ng.router, global.table, global.multiselect, global.ng.forms, global.ng.platformBrowser.animations, global.tabview, global.dropdown, global.calendar, global.button, global.ripple, global.checkbox, global.inputtext, global.tristatecheckbox, global.inputtextarea, global.tooltip, global.panelmenu, global.ngxCookieService, global.menu, global.galleria, global.autocomplete, global.accordion, global.confirmdialog, global.messages, global.progressspinner, global.inputnumber, global.avatar, global.card, global.ng.cdk.dragDrop, global.inputswitch));
|
|
5
|
-
})(this, (function (exports, api, i0, dynamicdialog, fileSaver, jsPDF, i1$1, ngxToastr, i1, rxjs, platformBrowser, router, table, multiselect, forms, animations, tabview, dropdown, calendar, button, ripple, checkbox, inputtext, tristatecheckbox, inputtextarea, tooltip, panelmenu, ngxCookieService, menu, galleria, autocomplete, accordion, confirmdialog, messages, progressspinner, inputnumber, avatar, card, dragDrop, inputswitch) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('primeng/api'), require('@angular/core'), require('primeng/dynamicdialog'), require('file-saver'), require('jspdf'), require('@angular/common'), require('ngx-toastr'), require('@angular/common/http'), require('rxjs'), require('@angular/platform-browser'), require('@angular/router'), require('primeng/table'), require('primeng/multiselect'), require('@angular/forms'), require('@angular/platform-browser/animations'), require('primeng/tabview'), require('primeng/dropdown'), require('primeng/calendar'), require('primeng/button'), require('primeng/ripple'), require('primeng/checkbox'), require('primeng/inputtext'), require('primeng/tristatecheckbox'), require('primeng/inputtextarea'), require('primeng/tooltip'), require('primeng/panelmenu'), require('ngx-cookie-service'), require('@angular/cdk/portal'), require('primeng/menu'), require('primeng/galleria'), require('primeng/autocomplete'), require('primeng/accordion'), require('primeng/confirmdialog'), require('primeng/messages'), require('primeng/progressspinner'), require('primeng/inputnumber'), require('primeng/avatar'), require('primeng/card'), require('@angular/cdk/drag-drop'), require('primeng/inputswitch')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@churchillliving/se-ui-toolkit', ['exports', 'primeng/api', '@angular/core', 'primeng/dynamicdialog', 'file-saver', 'jspdf', '@angular/common', 'ngx-toastr', '@angular/common/http', 'rxjs', '@angular/platform-browser', '@angular/router', 'primeng/table', 'primeng/multiselect', '@angular/forms', '@angular/platform-browser/animations', 'primeng/tabview', 'primeng/dropdown', 'primeng/calendar', 'primeng/button', 'primeng/ripple', 'primeng/checkbox', 'primeng/inputtext', 'primeng/tristatecheckbox', 'primeng/inputtextarea', 'primeng/tooltip', 'primeng/panelmenu', 'ngx-cookie-service', '@angular/cdk/portal', 'primeng/menu', 'primeng/galleria', 'primeng/autocomplete', 'primeng/accordion', 'primeng/confirmdialog', 'primeng/messages', 'primeng/progressspinner', 'primeng/inputnumber', 'primeng/avatar', 'primeng/card', '@angular/cdk/drag-drop', 'primeng/inputswitch'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.churchillliving = global.churchillliving || {}, global.churchillliving["se-ui-toolkit"] = {}), global.api, global.ng.core, global.dynamicdialog, global.fileSaver, global.jsPDF, global.ng.common, global.ngxToastr, global.ng.common.http, global.rxjs, global.ng.platformBrowser, global.ng.router, global.table, global.multiselect, global.ng.forms, global.ng.platformBrowser.animations, global.tabview, global.dropdown, global.calendar, global.button, global.ripple, global.checkbox, global.inputtext, global.tristatecheckbox, global.inputtextarea, global.tooltip, global.panelmenu, global.ngxCookieService, global.ng.cdk.portal, global.menu, global.galleria, global.autocomplete, global.accordion, global.confirmdialog, global.messages, global.progressspinner, global.inputnumber, global.avatar, global.card, global.ng.cdk.dragDrop, global.inputswitch));
|
|
5
|
+
})(this, (function (exports, api, i0, dynamicdialog, fileSaver, jsPDF, i1$1, ngxToastr, i1, rxjs, platformBrowser, router, table, multiselect, forms, animations, tabview, dropdown, calendar, button, ripple, checkbox, inputtext, tristatecheckbox, inputtextarea, tooltip, panelmenu, ngxCookieService, portal, menu, galleria, autocomplete, accordion, confirmdialog, messages, progressspinner, inputnumber, avatar, card, dragDrop, inputswitch) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -2628,18 +2628,24 @@
|
|
|
2628
2628
|
GridService.prototype.setRowValue = function (rowData) {
|
|
2629
2629
|
var _a;
|
|
2630
2630
|
(_a = Object.keys(rowData)) === null || _a === void 0 ? void 0 : _a.forEach(function (row) {
|
|
2631
|
-
var _a, _b, _c, _d;
|
|
2631
|
+
var _a, _b, _c, _d, _e;
|
|
2632
2632
|
if (row === exports.EGridRowAction.DELETEBTN || row === exports.EGridRowAction.EDITBTN) {
|
|
2633
2633
|
delete rowData[row];
|
|
2634
2634
|
}
|
|
2635
2635
|
else if (rowData[row] &&
|
|
2636
|
-
typeof (rowData[row]) === 'object'
|
|
2637
|
-
((_b = (_a = rowData[row]) === null || _a === void 0 ? void 0 : _a.action) === null || _b === void 0 ? void 0 : _b.field)
|
|
2638
|
-
|
|
2639
|
-
|
|
2636
|
+
typeof (rowData[row]) === 'object') {
|
|
2637
|
+
if ((_b = (_a = rowData[row]) === null || _a === void 0 ? void 0 : _a.action) === null || _b === void 0 ? void 0 : _b.field) {
|
|
2638
|
+
if ((_c = rowData[row]) === null || _c === void 0 ? void 0 : _c.extraField) {
|
|
2639
|
+
delete rowData[row];
|
|
2640
|
+
}
|
|
2641
|
+
else {
|
|
2642
|
+
rowData[row] = (_d = rowData[row]) === null || _d === void 0 ? void 0 : _d.text;
|
|
2643
|
+
}
|
|
2640
2644
|
}
|
|
2641
2645
|
else {
|
|
2642
|
-
rowData[row]
|
|
2646
|
+
if (rowData[row].hasOwnProperty('text') && rowData[row].hasOwnProperty('value')) {
|
|
2647
|
+
rowData[row] = (_e = rowData[row]) === null || _e === void 0 ? void 0 : _e.value;
|
|
2648
|
+
}
|
|
2643
2649
|
}
|
|
2644
2650
|
}
|
|
2645
2651
|
});
|
|
@@ -8294,6 +8300,11 @@
|
|
|
8294
8300
|
LEFT: 'left-sidebar',
|
|
8295
8301
|
RIGHT: 'right-sidebar',
|
|
8296
8302
|
};
|
|
8303
|
+
exports.ESidebarTarget = void 0;
|
|
8304
|
+
(function (ESidebarTarget) {
|
|
8305
|
+
ESidebarTarget["BLANK"] = "_blank";
|
|
8306
|
+
ESidebarTarget["SELF"] = "_self";
|
|
8307
|
+
})(exports.ESidebarTarget || (exports.ESidebarTarget = {}));
|
|
8297
8308
|
exports.ESidebarAction = void 0;
|
|
8298
8309
|
(function (ESidebarAction) {
|
|
8299
8310
|
ESidebarAction["NAVIGATION"] = "navigation";
|
|
@@ -8301,14 +8312,102 @@
|
|
|
8301
8312
|
ESidebarAction["IFRAME"] = "_iframe";
|
|
8302
8313
|
})(exports.ESidebarAction || (exports.ESidebarAction = {}));
|
|
8303
8314
|
|
|
8315
|
+
var SideBarService = /** @class */ (function () {
|
|
8316
|
+
function SideBarService(injector, componentFactoryResolver, applicationRef) {
|
|
8317
|
+
this.injector = injector;
|
|
8318
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
8319
|
+
this.applicationRef = applicationRef;
|
|
8320
|
+
}
|
|
8321
|
+
/**
|
|
8322
|
+
* Checks parent menu and expands it if current route exists in its child menus.
|
|
8323
|
+
* @param menuLabel
|
|
8324
|
+
* @returns {boolean}
|
|
8325
|
+
*/
|
|
8326
|
+
SideBarService.prototype.isMenuExpanded = function (currentRoute, items, menuLabel) {
|
|
8327
|
+
var _a, _b;
|
|
8328
|
+
if (items && items.length) {
|
|
8329
|
+
// check currentRoute contains loadDataForEdit or not
|
|
8330
|
+
currentRoute = currentRoute.includes('?') ? currentRoute.split('?')[0] : currentRoute;
|
|
8331
|
+
var detailPage_1 = '';
|
|
8332
|
+
if ((_a = currentRoute === null || currentRoute === void 0 ? void 0 : currentRoute.toString()) === null || _a === void 0 ? void 0 : _a.includes("list")) {
|
|
8333
|
+
detailPage_1 = currentRoute.replace('list', 'detail');
|
|
8334
|
+
}
|
|
8335
|
+
var currentIndex = items.findIndex(function (menu) { var _a; return ((_a = menu.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (menuLabel === null || menuLabel === void 0 ? void 0 : menuLabel.toLowerCase()); });
|
|
8336
|
+
var matchedItems = [];
|
|
8337
|
+
if (currentIndex > -1) {
|
|
8338
|
+
matchedItems = (_b = items[currentIndex]) === null || _b === void 0 ? void 0 : _b.items;
|
|
8339
|
+
}
|
|
8340
|
+
return matchedItems.length > 0 ? matchedItems.some(function (item) { return item.routerLink && (currentRoute === item.routerLink[0] || currentRoute === detailPage_1); }) : false;
|
|
8341
|
+
}
|
|
8342
|
+
return false;
|
|
8343
|
+
};
|
|
8344
|
+
SideBarService.prototype.setSidebarPropValues = function (sidebar, section, props) {
|
|
8345
|
+
sidebar.map(function (sidebarItem) {
|
|
8346
|
+
var _a;
|
|
8347
|
+
if (((_a = sidebarItem.section) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === section.toLowerCase()) {
|
|
8348
|
+
props.map(function (prop) {
|
|
8349
|
+
var _a, _b;
|
|
8350
|
+
if (((_a = prop.name) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'data' && ((_b = sidebarItem.data) === null || _b === void 0 ? void 0 : _b.data)) {
|
|
8351
|
+
sidebarItem.data.data = prop.value;
|
|
8352
|
+
}
|
|
8353
|
+
else {
|
|
8354
|
+
return setPropValue(sidebarItem, prop);
|
|
8355
|
+
}
|
|
8356
|
+
});
|
|
8357
|
+
}
|
|
8358
|
+
});
|
|
8359
|
+
};
|
|
8360
|
+
SideBarService.prototype.createWindowInstance = function (menu, windowInstance) {
|
|
8361
|
+
if (windowInstance) {
|
|
8362
|
+
// Create a PortalOutlet with the body of the new window document
|
|
8363
|
+
var outlet = new portal.DomPortalOutlet(windowInstance.document.body, this.componentFactoryResolver, this.applicationRef, this.injector);
|
|
8364
|
+
// Copy stylesheet link from parent window
|
|
8365
|
+
this.styleSheetElement = this.getStyleSheetElement();
|
|
8366
|
+
windowInstance.document.head.appendChild(this.styleSheetElement);
|
|
8367
|
+
windowInstance.document.body.innerText = '';
|
|
8368
|
+
this.attachComponentContainer(outlet, menu);
|
|
8369
|
+
}
|
|
8370
|
+
};
|
|
8371
|
+
SideBarService.prototype.attachComponentContainer = function (outlet, menu) {
|
|
8372
|
+
var containerPortal = new portal.ComponentPortal(menu.component, null);
|
|
8373
|
+
var containerRef = outlet.attach(containerPortal);
|
|
8374
|
+
return containerRef.instance;
|
|
8375
|
+
};
|
|
8376
|
+
SideBarService.prototype.getStyleSheetElement = function () {
|
|
8377
|
+
var styleSheetElement = document.createElement('link');
|
|
8378
|
+
document.querySelectorAll('link').forEach(function (htmlElement) {
|
|
8379
|
+
if (htmlElement.rel === 'stylesheet') {
|
|
8380
|
+
var absoluteUrl = new URL(htmlElement.href).href;
|
|
8381
|
+
styleSheetElement.rel = 'stylesheet';
|
|
8382
|
+
styleSheetElement.href = absoluteUrl;
|
|
8383
|
+
}
|
|
8384
|
+
});
|
|
8385
|
+
return styleSheetElement;
|
|
8386
|
+
};
|
|
8387
|
+
return SideBarService;
|
|
8388
|
+
}());
|
|
8389
|
+
/** @nocollapse */ SideBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SideBarService_Factory() { return new SideBarService(i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(i0__namespace.ApplicationRef)); }, token: SideBarService, providedIn: "root" });
|
|
8390
|
+
SideBarService.decorators = [
|
|
8391
|
+
{ type: i0.Injectable, args: [{
|
|
8392
|
+
providedIn: 'root',
|
|
8393
|
+
},] }
|
|
8394
|
+
];
|
|
8395
|
+
/** @nocollapse */
|
|
8396
|
+
SideBarService.ctorParameters = function () { return [
|
|
8397
|
+
{ type: i0.Injector },
|
|
8398
|
+
{ type: i0.ComponentFactoryResolver },
|
|
8399
|
+
{ type: i0.ApplicationRef }
|
|
8400
|
+
]; };
|
|
8401
|
+
|
|
8304
8402
|
var SidebarComponent = /** @class */ (function () {
|
|
8305
|
-
function SidebarComponent(instance, authService, dialogService, router, pageLoggerService, hyperlinkService) {
|
|
8403
|
+
function SidebarComponent(instance, authService, dialogService, router, pageLoggerService, hyperlinkService, sidebarService) {
|
|
8306
8404
|
this.instance = instance;
|
|
8307
8405
|
this.authService = authService;
|
|
8308
8406
|
this.dialogService = dialogService;
|
|
8309
8407
|
this.router = router;
|
|
8310
8408
|
this.pageLoggerService = pageLoggerService;
|
|
8311
8409
|
this.hyperlinkService = hyperlinkService;
|
|
8410
|
+
this.sidebarService = sidebarService;
|
|
8312
8411
|
this.toggleMenu = false;
|
|
8313
8412
|
this.openDialogs = [];
|
|
8314
8413
|
this.navHidden = false;
|
|
@@ -8349,7 +8448,12 @@
|
|
|
8349
8448
|
_this.navigateToSection(x, item);
|
|
8350
8449
|
}
|
|
8351
8450
|
else if (x.action && x.action === exports.ESidebarAction.OPENDIALOG) {
|
|
8352
|
-
|
|
8451
|
+
if (x.target && x.target === exports.ESidebarTarget.BLANK) {
|
|
8452
|
+
_this.navigateComponentToNewTab(x);
|
|
8453
|
+
}
|
|
8454
|
+
else {
|
|
8455
|
+
_this.openDialog(x, item);
|
|
8456
|
+
}
|
|
8353
8457
|
}
|
|
8354
8458
|
else if (x.action && x.action === exports.ESidebarAction.IFRAME) {
|
|
8355
8459
|
_this.loadIFrame(x, item);
|
|
@@ -8367,6 +8471,18 @@
|
|
|
8367
8471
|
disabled: x.disabled,
|
|
8368
8472
|
}); });
|
|
8369
8473
|
};
|
|
8474
|
+
//ref link: https://medium.com/@saranya.thangaraj/open-angular-component-in-a-new-tab-without-bootstrapping-the-whole-app-again-e329af460e92
|
|
8475
|
+
SidebarComponent.prototype.navigateComponentToNewTab = function (menu) {
|
|
8476
|
+
var _this = this;
|
|
8477
|
+
var winRef = window.open();
|
|
8478
|
+
if (winRef.location.href === 'about:blank') {
|
|
8479
|
+
winRef.location.href = this.router.url;
|
|
8480
|
+
}
|
|
8481
|
+
// Wait for window instance to be created
|
|
8482
|
+
setTimeout(function () {
|
|
8483
|
+
_this.sidebarService.createWindowInstance(menu, winRef);
|
|
8484
|
+
}, 750);
|
|
8485
|
+
};
|
|
8370
8486
|
SidebarComponent.prototype.setMenuTitle = function (x) {
|
|
8371
8487
|
return x.tooltip ? x.tooltip : !x.label ? x.section : '';
|
|
8372
8488
|
};
|
|
@@ -8576,7 +8692,8 @@
|
|
|
8576
8692
|
{ type: dynamicdialog.DialogService },
|
|
8577
8693
|
{ type: router.Router },
|
|
8578
8694
|
{ type: PageLoggerService },
|
|
8579
|
-
{ type: HyperlinkService }
|
|
8695
|
+
{ type: HyperlinkService },
|
|
8696
|
+
{ type: SideBarService }
|
|
8580
8697
|
]; };
|
|
8581
8698
|
SidebarComponent.propDecorators = {
|
|
8582
8699
|
navHidden: [{ type: i0.Input }],
|
|
@@ -10171,59 +10288,6 @@
|
|
|
10171
10288
|
EHeaderFormatType["DECIMAL"] = "decimal";
|
|
10172
10289
|
})(exports.EHeaderFormatType || (exports.EHeaderFormatType = {}));
|
|
10173
10290
|
|
|
10174
|
-
var SideBarService = /** @class */ (function () {
|
|
10175
|
-
function SideBarService() {
|
|
10176
|
-
}
|
|
10177
|
-
/**
|
|
10178
|
-
* Checks parent menu and expands it if current route exists in its child menus.
|
|
10179
|
-
* @param menuLabel
|
|
10180
|
-
* @returns {boolean}
|
|
10181
|
-
*/
|
|
10182
|
-
SideBarService.prototype.isMenuExpanded = function (currentRoute, items, menuLabel) {
|
|
10183
|
-
var _a, _b;
|
|
10184
|
-
if (items && items.length) {
|
|
10185
|
-
// check currentRoute contains loadDataForEdit or not
|
|
10186
|
-
currentRoute = currentRoute.includes('?') ? currentRoute.split('?')[0] : currentRoute;
|
|
10187
|
-
var detailPage_1 = '';
|
|
10188
|
-
if ((_a = currentRoute === null || currentRoute === void 0 ? void 0 : currentRoute.toString()) === null || _a === void 0 ? void 0 : _a.includes("list")) {
|
|
10189
|
-
detailPage_1 = currentRoute.replace('list', 'detail');
|
|
10190
|
-
}
|
|
10191
|
-
var currentIndex = items.findIndex(function (menu) { var _a; return ((_a = menu.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === (menuLabel === null || menuLabel === void 0 ? void 0 : menuLabel.toLowerCase()); });
|
|
10192
|
-
var matchedItems = [];
|
|
10193
|
-
if (currentIndex > -1) {
|
|
10194
|
-
matchedItems = (_b = items[currentIndex]) === null || _b === void 0 ? void 0 : _b.items;
|
|
10195
|
-
}
|
|
10196
|
-
return matchedItems.length > 0 ? matchedItems.some(function (item) { return item.routerLink && (currentRoute === item.routerLink[0] || currentRoute === detailPage_1); }) : false;
|
|
10197
|
-
}
|
|
10198
|
-
return false;
|
|
10199
|
-
};
|
|
10200
|
-
SideBarService.prototype.setSidebarPropValues = function (sidebar, section, props) {
|
|
10201
|
-
sidebar.map(function (sidebarItem) {
|
|
10202
|
-
var _a;
|
|
10203
|
-
if (((_a = sidebarItem.section) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === section.toLowerCase()) {
|
|
10204
|
-
props.map(function (prop) {
|
|
10205
|
-
var _a, _b;
|
|
10206
|
-
if (((_a = prop.name) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'data' && ((_b = sidebarItem.data) === null || _b === void 0 ? void 0 : _b.data)) {
|
|
10207
|
-
sidebarItem.data.data = prop.value;
|
|
10208
|
-
}
|
|
10209
|
-
else {
|
|
10210
|
-
return setPropValue(sidebarItem, prop);
|
|
10211
|
-
}
|
|
10212
|
-
});
|
|
10213
|
-
}
|
|
10214
|
-
});
|
|
10215
|
-
};
|
|
10216
|
-
return SideBarService;
|
|
10217
|
-
}());
|
|
10218
|
-
/** @nocollapse */ SideBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SideBarService_Factory() { return new SideBarService(); }, token: SideBarService, providedIn: "root" });
|
|
10219
|
-
SideBarService.decorators = [
|
|
10220
|
-
{ type: i0.Injectable, args: [{
|
|
10221
|
-
providedIn: 'root',
|
|
10222
|
-
},] }
|
|
10223
|
-
];
|
|
10224
|
-
/** @nocollapse */
|
|
10225
|
-
SideBarService.ctorParameters = function () { return []; };
|
|
10226
|
-
|
|
10227
10291
|
var HeaderService = /** @class */ (function () {
|
|
10228
10292
|
function HeaderService() {
|
|
10229
10293
|
}
|