ngx-smz-ui 16.2.0 → 16.2.2
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/esm2020/lib/builders/smz-multi-tables/tab-builder.mjs +9 -1
- package/esm2020/lib/builders/smz-ui/authentication-login-builder.mjs +5 -1
- package/esm2020/lib/modules/smz-layouts/core/services/menu-helper-service.mjs +15 -8
- package/esm2020/lib/modules/smz-layouts/layouts/hephaestus/components/sidebar/sidebar.component.mjs +3 -3
- package/esm2020/lib/modules/smz-layouts/layouts/hephaestus/layout.component.mjs +1 -1
- package/esm2020/lib/modules/smz-layouts/layouts/hephaestus/layout.config.mjs +1 -1
- package/fesm2015/ngx-smz-ui.mjs +28 -8
- package/fesm2015/ngx-smz-ui.mjs.map +1 -1
- package/fesm2020/ngx-smz-ui.mjs +27 -8
- package/fesm2020/ngx-smz-ui.mjs.map +1 -1
- package/lib/builders/smz-multi-tables/tab-builder.d.ts +2 -0
- package/lib/builders/smz-ui/authentication-login-builder.d.ts +2 -0
- package/lib/modules/smz-layouts/layouts/hephaestus/layout.component.d.ts +2 -1
- package/package.json +1 -1
package/fesm2015/ngx-smz-ui.mjs
CHANGED
|
@@ -29802,9 +29802,10 @@ class MenuHelperService {
|
|
|
29802
29802
|
this.notifications = [];
|
|
29803
29803
|
}
|
|
29804
29804
|
setupMenu() {
|
|
29805
|
+
var _a, _b;
|
|
29805
29806
|
if (this.menuCreationData == null)
|
|
29806
29807
|
return;
|
|
29807
|
-
const creationData =
|
|
29808
|
+
const creationData = this.menuCreationData;
|
|
29808
29809
|
this.menu = [];
|
|
29809
29810
|
const extras = [];
|
|
29810
29811
|
if (GlobalInjector.config.rbkUtils.authorization.navigationMenu != null) {
|
|
@@ -29816,7 +29817,7 @@ class MenuHelperService {
|
|
|
29816
29817
|
withSameLabel.items = [];
|
|
29817
29818
|
}
|
|
29818
29819
|
// Merge dos itens desse menu
|
|
29819
|
-
withSameLabel.items =
|
|
29820
|
+
withSameLabel.items = sortArrayOfObjects([...withSameLabel.items, ...navigationMenu.items], 'label', 1);
|
|
29820
29821
|
}
|
|
29821
29822
|
else {
|
|
29822
29823
|
// Não existe nenhum menu com esse mesmo label no projeto
|
|
@@ -29824,9 +29825,15 @@ class MenuHelperService {
|
|
|
29824
29825
|
extras.push(navigationMenu);
|
|
29825
29826
|
}
|
|
29826
29827
|
}
|
|
29827
|
-
for (const creation of
|
|
29828
|
+
for (const creation of creationData) {
|
|
29828
29829
|
const item = this.addMenuItemRecursive(creation, this.accessMenuBehavior);
|
|
29829
|
-
if (item != null) {
|
|
29830
|
+
if (((_a = item === null || item === void 0 ? void 0 : item.items) === null || _a === void 0 ? void 0 : _a.length) > 0 || ((item === null || item === void 0 ? void 0 : item.command) != null || (item === null || item === void 0 ? void 0 : item.routerLink) != null)) {
|
|
29831
|
+
this.menu.push(item);
|
|
29832
|
+
}
|
|
29833
|
+
}
|
|
29834
|
+
for (const creation of extras) {
|
|
29835
|
+
const item = this.addMenuItemRecursive(creation, this.accessMenuBehavior);
|
|
29836
|
+
if (((_b = item === null || item === void 0 ? void 0 : item.items) === null || _b === void 0 ? void 0 : _b.length) > 0 || ((item === null || item === void 0 ? void 0 : item.command) != null || (item === null || item === void 0 ? void 0 : item.routerLink) != null)) {
|
|
29830
29837
|
this.menu.push(item);
|
|
29831
29838
|
}
|
|
29832
29839
|
}
|
|
@@ -29844,8 +29851,9 @@ class MenuHelperService {
|
|
|
29844
29851
|
}
|
|
29845
29852
|
addMenuItemRecursive(creation, accessBehavior) {
|
|
29846
29853
|
var _a, _b, _c, _d;
|
|
29847
|
-
if (creation.visible === false)
|
|
29854
|
+
if (creation.visible === false) {
|
|
29848
29855
|
return null;
|
|
29856
|
+
}
|
|
29849
29857
|
const result = {
|
|
29850
29858
|
label: creation.label,
|
|
29851
29859
|
icon: creation.icon,
|
|
@@ -29877,7 +29885,7 @@ class MenuHelperService {
|
|
|
29877
29885
|
}
|
|
29878
29886
|
const validationSelectors = GlobalInjector.config.rbkUtils.authorization.validationSelectors;
|
|
29879
29887
|
// CHECAR ACESSO DO USUÁRIO
|
|
29880
|
-
const hasAccess = creation.claims == null ? true : this.store.selectSnapshot(validationSelectors.hasAnyOfClaimAccess(creation.claims));
|
|
29888
|
+
const hasAccess = creation.claims == null || creation.claims.length == 0 ? true : this.store.selectSnapshot(validationSelectors.hasAnyOfClaimAccess(creation.claims));
|
|
29881
29889
|
if (!hasAccess) {
|
|
29882
29890
|
return accessBehavior === 'hide' ? null : Object.assign(Object.assign({}, result), { disabled: true });
|
|
29883
29891
|
}
|
|
@@ -33920,7 +33928,7 @@ let HephaestusSidebarComponent = class HephaestusSidebarComponent {
|
|
|
33920
33928
|
}
|
|
33921
33929
|
};
|
|
33922
33930
|
HephaestusSidebarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HephaestusSidebarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33923
|
-
HephaestusSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: HephaestusSidebarComponent, selector: "smz-ui-hephaestus-sidebar", inputs: { menu: "menu" }, host: { classAttribute: "z-30" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"layout$ | async as layout\">\r\n<ng-container *ngIf=\"appName$ | async as appName\">\r\n<ng-container *ngIf=\"(currentRoute$ | async) as route\">\r\n\r\n <div class=\"layout-sidebar\" (mouseleave)=\"collapseAll(menu)\">\r\n\r\n <ng-container *ngIf=\"(appLayoutLogo$ | async) as appLayoutLogo\">\r\n\r\n <!-- LOGO EM FORMATO DE ICONE -->\r\n <ng-container *ngIf=\"layout.menu === menuType.SLIM; else elseHeaderTemplate\">\r\n <a class=\"logo\" [routerLink]=\"uiConfig.rbkUtils.authentication.authenticatedRoot\">\r\n <img id=\"app-logo\" [src]=\"appLayoutLogo.icon\" class=\"m-2 slim-mobile-logo\">\r\n <span class=\"app-name\">{{ appName }}</span>\r\n </a>\r\n </ng-container>\r\n\r\n <!-- LOGO COMPLETA -->\r\n <ng-template #elseHeaderTemplate>\r\n <a class=\"logo\" [routerLink]=\"uiConfig.rbkUtils.authentication.authenticatedRoot\">\r\n <img id=\"app-logo\" [src]=\"appLayoutLogo.horizontal\" class=\"pl-4 pr-4\" width=\"100%\">\r\n </a>\r\n </ng-template>\r\n\r\n </ng-container>\r\n\r\n <!-- INICIO DO MENU -->\r\n <div class=\"layout-menu-container\">\r\n <ul class=\"layout-menu\">\r\n\r\n <!-- N\u00CDVEL 1 -->\r\n <ng-container *ngFor=\"let item of menu | isVisible; let last = last; let itemIndex = index;\">\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\r\n\r\n <!-- CABE\u00C7ALHO DO N\u00CDVEL 1 -->\r\n <div *ngIf=\"!$any(item).showAsCaption\" class=\"layout-menuitem-root-text\">{{ item.label }}</div>\r\n <div *ngIf=\"$any(item).showAsCaption\" class=\"layout-menuitem-root-text cursor-default bg-black bg-opacity-20\">{{ item.label }}</div>\r\n\r\n <!-- ITENS PARA O MENU COLAPSADO -->\r\n <a *ngIf=\"item.command == null && item.routerLink == null && !$any(item).showAsCaption\" class=\"p-ripple\" [tabindex]=\"itemIndex\" (click)=\"toogleOnly(item, menu)\" (mouseover)=\"toogleOnly(item, menu)\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <a *ngIf=\"$any(item).showAsCaption\" class=\"cursor-default bg-black bg-opacity-20\" [tabindex]=\"itemIndex\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <a *ngIf=\"item.command != null || item.routerLink != null && !$any(item).showAsCaption\" class=\"p-ripple\" [tabindex]=\"itemIndex\" menuItemAction [item]=\"item\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : item.routerLink }\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <ng-container *ngIf=\"item.expanded\">\r\n <ul smz-ui-hephaestus-menu-slim-node [item]=\"item\" [parent]=\"null\" [currentUrl]=\"route.url\" role=\"menu\" style=\"z-index: 100;\"></ul>\r\n </ng-container>\r\n\r\n <smz-ui-hephaestus-menu-node [item]=\"item\" [currentUrl]=\"route.url\"></smz-ui-hephaestus-menu-node>\r\n\r\n </li>\r\n\r\n <li *ngIf=\"!last && !($any(item).hideSeparator)\" class=\"menu-separator\"></li>\r\n </ng-container>\r\n\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n</ng-container>\r\n</ng-container>\r\n</ng-container>", styles: [".active-first-route{background-color:#ffffff1a}.slim-mobile-logo{max-width:2.5rem;max-height:2.5rem;margin-left:auto!important;margin-right:auto!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: MenuItemActionsDirective, selector: "[menuItemAction]", inputs: ["item", "parent", "breadcrumbs"], outputs: ["collapse"] }, { kind: "component", type: HephaestusMenuNodeComponent, selector: "smz-ui-hephaestus-menu-node", inputs: ["item", "index", "currentUrl"] }, { kind: "component", type: HephaestusMenuSlimNodeComponent, selector: "[smz-ui-hephaestus-menu-slim-node]", inputs: ["item", "parent", "index", "currentUrl"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: IsVisiblePipe, name: "isVisible" }, { kind: "pipe", type: UrlCheckerPipe, name: "urlChecker" }] });
|
|
33931
|
+
HephaestusSidebarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: HephaestusSidebarComponent, selector: "smz-ui-hephaestus-sidebar", inputs: { menu: "menu" }, host: { classAttribute: "z-30" }, queries: [{ propertyName: "templates", predicate: PrimeTemplate }], ngImport: i0, template: "<ng-container *ngIf=\"layout$ | async as layout\">\r\n<ng-container *ngIf=\"appName$ | async as appName\">\r\n<ng-container *ngIf=\"(currentRoute$ | async) as route\">\r\n\r\n <div class=\"layout-sidebar\" (mouseleave)=\"collapseAll(menu)\">\r\n\r\n <ng-container *ngIf=\"(appLayoutLogo$ | async) as appLayoutLogo\">\r\n\r\n <!-- LOGO EM FORMATO DE ICONE -->\r\n <ng-container *ngIf=\"layout.menu === menuType.SLIM; else elseHeaderTemplate\">\r\n <a class=\"logo\" [routerLink]=\"uiConfig.rbkUtils.authentication.authenticatedRoot\">\r\n <img id=\"app-logo\" [src]=\"appLayoutLogo.icon\" class=\"m-2 slim-mobile-logo\">\r\n <span class=\"app-name\">{{ appName }}</span>\r\n </a>\r\n </ng-container>\r\n\r\n <!-- LOGO COMPLETA -->\r\n <ng-template #elseHeaderTemplate>\r\n <a class=\"logo\" [routerLink]=\"uiConfig.rbkUtils.authentication.authenticatedRoot\">\r\n <img id=\"app-logo\" [src]=\"appLayoutLogo.horizontal\" class=\"pl-4 pr-4\" width=\"100%\">\r\n </a>\r\n </ng-template>\r\n\r\n </ng-container>\r\n\r\n <!-- INICIO DO MENU -->\r\n <div class=\"layout-menu-container\">\r\n\r\n <!-- N\u00CDVEL 1 -->\r\n <ng-container *ngFor=\"let item of menu | isVisible; let last = last; let itemIndex = index;\">\r\n\r\n <ul *ngIf=\"layout.menu === menuType.SLIM\" class=\"layout-menu bg-black bg-opacity-20 rounded-md mb-5\">\r\n\r\n <ng-container *ngIf=\"item.items == null || item.items.length == 0\">\r\n <!-- ACTION -->\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\r\n\r\n <div class=\"layout-menuitem-root-text pl-4 pt-4\">{{ item.label }}</div>\r\n\r\n <a class=\"hover:shadow-none\" [tabindex]=\"itemIndex\" menuItemAction [item]=\"item\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : item.routerLink }\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n </li>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"item.items?.length > 0\">\r\n <!-- CAPTION -->\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\r\n <div class=\"layout-menuitem-root-text pl-4 pt-4\">{{ item.label }}</div>\r\n\r\n <a [tabindex]=\"itemIndex\" class=\"select-none hover:bg-inherit hover:shadow-none cursor-default\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text break-words uppercase font-bold\">{{ item.label }}</span>\r\n </a>\r\n </li>\r\n\r\n <li class=\"menu-separator m-0\"></li>\r\n </ng-container>\r\n\r\n <ng-container *ngFor=\"let subItem of item.items | isVisible; let lastSubItem = last; let subItemIndex = index;\">\r\n <!-- ACTION GROUP -->\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : subItem.expanded }\">\r\n <div class=\"layout-menuitem-root-text normal-case\">{{ subItem.label }}</div>\r\n\r\n <a class=\"hover:shadow-none\" [tabindex]=\"subItemIndex\" menuItemAction [item]=\"subItem\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : subItem.routerLink }\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"subItem.icon\"></i>\r\n <span class=\"layout-menuitem-text break-words\">{{ subItem.label }}</span>\r\n </a>\r\n </li>\r\n\r\n </ng-container>\r\n\r\n </ul>\r\n\r\n </ng-container>\r\n\r\n <ul *ngIf=\"layout.menu !== menuType.SLIM\" class=\"layout-menu\">\r\n\r\n <!-- N\u00CDVEL 1 -->\r\n <ng-container *ngFor=\"let item of menu | isVisible; let last = last; let itemIndex = index;\">\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\r\n\r\n <!-- CABE\u00C7ALHO DO N\u00CDVEL 1 -->\r\n <div *ngIf=\"!$any(item).showAsCaption\" class=\"layout-menuitem-root-text\">{{ item.label }}</div>\r\n <div *ngIf=\"$any(item).showAsCaption\" class=\"layout-menuitem-root-text cursor-default bg-black bg-opacity-20\">{{ item.label }}</div>\r\n\r\n <!-- ITENS PARA O MENU COLAPSADO -->\r\n <a *ngIf=\"item.command == null && item.routerLink == null && !$any(item).showAsCaption\" class=\"p-ripple\" [tabindex]=\"itemIndex\" (click)=\"toogleOnly(item, menu)\" (mouseover)=\"toogleOnly(item, menu)\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <a *ngIf=\"$any(item).showAsCaption\" class=\"cursor-default bg-black bg-opacity-20\" [tabindex]=\"itemIndex\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <a *ngIf=\"item.command != null || item.routerLink != null && !$any(item).showAsCaption\" class=\"p-ripple\" [tabindex]=\"itemIndex\" menuItemAction [item]=\"item\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : item.routerLink }\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <ng-container *ngIf=\"item.expanded\">\r\n <ul smz-ui-hephaestus-menu-slim-node [item]=\"item\" [parent]=\"null\" [currentUrl]=\"route.url\" role=\"menu\" style=\"z-index: 100;\"></ul>\r\n </ng-container>\r\n\r\n <smz-ui-hephaestus-menu-node [item]=\"item\" [currentUrl]=\"route.url\"></smz-ui-hephaestus-menu-node>\r\n\r\n </li>\r\n\r\n <li *ngIf=\"!last && !($any(item).hideSeparator)\" class=\"menu-separator\"></li>\r\n </ng-container>\r\n\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n</ng-container>\r\n</ng-container>\r\n</ng-container>", styles: [".active-first-route{background-color:#ffffff1a}.slim-mobile-logo{max-width:2.5rem;max-height:2.5rem;margin-left:auto!important;margin-right:auto!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$6.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: MenuItemActionsDirective, selector: "[menuItemAction]", inputs: ["item", "parent", "breadcrumbs"], outputs: ["collapse"] }, { kind: "component", type: HephaestusMenuNodeComponent, selector: "smz-ui-hephaestus-menu-node", inputs: ["item", "index", "currentUrl"] }, { kind: "component", type: HephaestusMenuSlimNodeComponent, selector: "[smz-ui-hephaestus-menu-slim-node]", inputs: ["item", "parent", "index", "currentUrl"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: IsVisiblePipe, name: "isVisible" }, { kind: "pipe", type: UrlCheckerPipe, name: "urlChecker" }] });
|
|
33924
33932
|
__decorate([
|
|
33925
33933
|
Select(UiHephaestusSelectors.layout)
|
|
33926
33934
|
], HephaestusSidebarComponent.prototype, "layout$", void 0);
|
|
@@ -33938,7 +33946,7 @@ HephaestusSidebarComponent = __decorate([
|
|
|
33938
33946
|
], HephaestusSidebarComponent);
|
|
33939
33947
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: HephaestusSidebarComponent, decorators: [{
|
|
33940
33948
|
type: Component,
|
|
33941
|
-
args: [{ selector: 'smz-ui-hephaestus-sidebar', host: { 'class': 'z-30' }, template: "<ng-container *ngIf=\"layout$ | async as layout\">\r\n<ng-container *ngIf=\"appName$ | async as appName\">\r\n<ng-container *ngIf=\"(currentRoute$ | async) as route\">\r\n\r\n <div class=\"layout-sidebar\" (mouseleave)=\"collapseAll(menu)\">\r\n\r\n <ng-container *ngIf=\"(appLayoutLogo$ | async) as appLayoutLogo\">\r\n\r\n <!-- LOGO EM FORMATO DE ICONE -->\r\n <ng-container *ngIf=\"layout.menu === menuType.SLIM; else elseHeaderTemplate\">\r\n <a class=\"logo\" [routerLink]=\"uiConfig.rbkUtils.authentication.authenticatedRoot\">\r\n <img id=\"app-logo\" [src]=\"appLayoutLogo.icon\" class=\"m-2 slim-mobile-logo\">\r\n <span class=\"app-name\">{{ appName }}</span>\r\n </a>\r\n </ng-container>\r\n\r\n <!-- LOGO COMPLETA -->\r\n <ng-template #elseHeaderTemplate>\r\n <a class=\"logo\" [routerLink]=\"uiConfig.rbkUtils.authentication.authenticatedRoot\">\r\n <img id=\"app-logo\" [src]=\"appLayoutLogo.horizontal\" class=\"pl-4 pr-4\" width=\"100%\">\r\n </a>\r\n </ng-template>\r\n\r\n </ng-container>\r\n\r\n <!-- INICIO DO MENU -->\r\n <div class=\"layout-menu-container\">\r\n <ul class=\"layout-menu\">\r\n\r\n <!-- N\u00CDVEL 1 -->\r\n <ng-container *ngFor=\"let item of menu | isVisible; let last = last; let itemIndex = index;\">\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\r\n\r\n <!-- CABE\u00C7ALHO DO N\u00CDVEL 1 -->\r\n <div *ngIf=\"!$any(item).showAsCaption\" class=\"layout-menuitem-root-text\">{{ item.label }}</div>\r\n <div *ngIf=\"$any(item).showAsCaption\" class=\"layout-menuitem-root-text cursor-default bg-black bg-opacity-20\">{{ item.label }}</div>\r\n\r\n <!-- ITENS PARA O MENU COLAPSADO -->\r\n <a *ngIf=\"item.command == null && item.routerLink == null && !$any(item).showAsCaption\" class=\"p-ripple\" [tabindex]=\"itemIndex\" (click)=\"toogleOnly(item, menu)\" (mouseover)=\"toogleOnly(item, menu)\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <a *ngIf=\"$any(item).showAsCaption\" class=\"cursor-default bg-black bg-opacity-20\" [tabindex]=\"itemIndex\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <a *ngIf=\"item.command != null || item.routerLink != null && !$any(item).showAsCaption\" class=\"p-ripple\" [tabindex]=\"itemIndex\" menuItemAction [item]=\"item\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : item.routerLink }\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <ng-container *ngIf=\"item.expanded\">\r\n <ul smz-ui-hephaestus-menu-slim-node [item]=\"item\" [parent]=\"null\" [currentUrl]=\"route.url\" role=\"menu\" style=\"z-index: 100;\"></ul>\r\n </ng-container>\r\n\r\n <smz-ui-hephaestus-menu-node [item]=\"item\" [currentUrl]=\"route.url\"></smz-ui-hephaestus-menu-node>\r\n\r\n </li>\r\n\r\n <li *ngIf=\"!last && !($any(item).hideSeparator)\" class=\"menu-separator\"></li>\r\n </ng-container>\r\n\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n</ng-container>\r\n</ng-container>\r\n</ng-container>", styles: [".active-first-route{background-color:#ffffff1a}.slim-mobile-logo{max-width:2.5rem;max-height:2.5rem;margin-left:auto!important;margin-right:auto!important}\n"] }]
|
|
33949
|
+
args: [{ selector: 'smz-ui-hephaestus-sidebar', host: { 'class': 'z-30' }, template: "<ng-container *ngIf=\"layout$ | async as layout\">\r\n<ng-container *ngIf=\"appName$ | async as appName\">\r\n<ng-container *ngIf=\"(currentRoute$ | async) as route\">\r\n\r\n <div class=\"layout-sidebar\" (mouseleave)=\"collapseAll(menu)\">\r\n\r\n <ng-container *ngIf=\"(appLayoutLogo$ | async) as appLayoutLogo\">\r\n\r\n <!-- LOGO EM FORMATO DE ICONE -->\r\n <ng-container *ngIf=\"layout.menu === menuType.SLIM; else elseHeaderTemplate\">\r\n <a class=\"logo\" [routerLink]=\"uiConfig.rbkUtils.authentication.authenticatedRoot\">\r\n <img id=\"app-logo\" [src]=\"appLayoutLogo.icon\" class=\"m-2 slim-mobile-logo\">\r\n <span class=\"app-name\">{{ appName }}</span>\r\n </a>\r\n </ng-container>\r\n\r\n <!-- LOGO COMPLETA -->\r\n <ng-template #elseHeaderTemplate>\r\n <a class=\"logo\" [routerLink]=\"uiConfig.rbkUtils.authentication.authenticatedRoot\">\r\n <img id=\"app-logo\" [src]=\"appLayoutLogo.horizontal\" class=\"pl-4 pr-4\" width=\"100%\">\r\n </a>\r\n </ng-template>\r\n\r\n </ng-container>\r\n\r\n <!-- INICIO DO MENU -->\r\n <div class=\"layout-menu-container\">\r\n\r\n <!-- N\u00CDVEL 1 -->\r\n <ng-container *ngFor=\"let item of menu | isVisible; let last = last; let itemIndex = index;\">\r\n\r\n <ul *ngIf=\"layout.menu === menuType.SLIM\" class=\"layout-menu bg-black bg-opacity-20 rounded-md mb-5\">\r\n\r\n <ng-container *ngIf=\"item.items == null || item.items.length == 0\">\r\n <!-- ACTION -->\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\r\n\r\n <div class=\"layout-menuitem-root-text pl-4 pt-4\">{{ item.label }}</div>\r\n\r\n <a class=\"hover:shadow-none\" [tabindex]=\"itemIndex\" menuItemAction [item]=\"item\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : item.routerLink }\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n </li>\r\n </ng-container>\r\n\r\n <ng-container *ngIf=\"item.items?.length > 0\">\r\n <!-- CAPTION -->\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\r\n <div class=\"layout-menuitem-root-text pl-4 pt-4\">{{ item.label }}</div>\r\n\r\n <a [tabindex]=\"itemIndex\" class=\"select-none hover:bg-inherit hover:shadow-none cursor-default\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text break-words uppercase font-bold\">{{ item.label }}</span>\r\n </a>\r\n </li>\r\n\r\n <li class=\"menu-separator m-0\"></li>\r\n </ng-container>\r\n\r\n <ng-container *ngFor=\"let subItem of item.items | isVisible; let lastSubItem = last; let subItemIndex = index;\">\r\n <!-- ACTION GROUP -->\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : subItem.expanded }\">\r\n <div class=\"layout-menuitem-root-text normal-case\">{{ subItem.label }}</div>\r\n\r\n <a class=\"hover:shadow-none\" [tabindex]=\"subItemIndex\" menuItemAction [item]=\"subItem\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : subItem.routerLink }\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"subItem.icon\"></i>\r\n <span class=\"layout-menuitem-text break-words\">{{ subItem.label }}</span>\r\n </a>\r\n </li>\r\n\r\n </ng-container>\r\n\r\n </ul>\r\n\r\n </ng-container>\r\n\r\n <ul *ngIf=\"layout.menu !== menuType.SLIM\" class=\"layout-menu\">\r\n\r\n <!-- N\u00CDVEL 1 -->\r\n <ng-container *ngFor=\"let item of menu | isVisible; let last = last; let itemIndex = index;\">\r\n <li class=\"layout-root-menuitem\" [ngClass]=\"{ 'active-menuitem' : item.expanded }\">\r\n\r\n <!-- CABE\u00C7ALHO DO N\u00CDVEL 1 -->\r\n <div *ngIf=\"!$any(item).showAsCaption\" class=\"layout-menuitem-root-text\">{{ item.label }}</div>\r\n <div *ngIf=\"$any(item).showAsCaption\" class=\"layout-menuitem-root-text cursor-default bg-black bg-opacity-20\">{{ item.label }}</div>\r\n\r\n <!-- ITENS PARA O MENU COLAPSADO -->\r\n <a *ngIf=\"item.command == null && item.routerLink == null && !$any(item).showAsCaption\" class=\"p-ripple\" [tabindex]=\"itemIndex\" (click)=\"toogleOnly(item, menu)\" (mouseover)=\"toogleOnly(item, menu)\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <a *ngIf=\"$any(item).showAsCaption\" class=\"cursor-default bg-black bg-opacity-20\" [tabindex]=\"itemIndex\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <a *ngIf=\"item.command != null || item.routerLink != null && !$any(item).showAsCaption\" class=\"p-ripple\" [tabindex]=\"itemIndex\" menuItemAction [item]=\"item\" [parent]=\"null\" [breadcrumbs]=\"true\" [ngClass]=\"{ 'active-first-route': route.url | urlChecker : item.routerLink }\">\r\n <i class=\"layout-menuitem-icon\" [ngClass]=\"item.icon\"></i>\r\n <span class=\"layout-menuitem-text\">{{ item.label }}</span>\r\n <i class=\"pi pi-fw pi-chevron-down layout-submenu-toggler\"></i>\r\n <span class=\"p-ink\"></span>\r\n </a>\r\n\r\n <ng-container *ngIf=\"item.expanded\">\r\n <ul smz-ui-hephaestus-menu-slim-node [item]=\"item\" [parent]=\"null\" [currentUrl]=\"route.url\" role=\"menu\" style=\"z-index: 100;\"></ul>\r\n </ng-container>\r\n\r\n <smz-ui-hephaestus-menu-node [item]=\"item\" [currentUrl]=\"route.url\"></smz-ui-hephaestus-menu-node>\r\n\r\n </li>\r\n\r\n <li *ngIf=\"!last && !($any(item).hideSeparator)\" class=\"menu-separator\"></li>\r\n </ng-container>\r\n\r\n </ul>\r\n </div>\r\n </div>\r\n\r\n</ng-container>\r\n</ng-container>\r\n</ng-container>", styles: [".active-first-route{background-color:#ffffff1a}.slim-mobile-logo{max-width:2.5rem;max-height:2.5rem;margin-left:auto!important;margin-right:auto!important}\n"] }]
|
|
33942
33950
|
}], ctorParameters: function () { return []; }, propDecorators: { templates: [{
|
|
33943
33951
|
type: ContentChildren,
|
|
33944
33952
|
args: [PrimeTemplate]
|
|
@@ -42815,6 +42823,10 @@ class SmzUiAuthenticationLoginBuilder extends SmzBuilderUtilities {
|
|
|
42815
42823
|
this._state.rbkUtils.authentication.login.page.overrideState.styleClass.card = styleClass;
|
|
42816
42824
|
return this.that;
|
|
42817
42825
|
}
|
|
42826
|
+
setRedirectCallback(callback) {
|
|
42827
|
+
this._state.rbkUtils.authentication.login.redirectCallback = callback;
|
|
42828
|
+
return this.that;
|
|
42829
|
+
}
|
|
42818
42830
|
get authorization() {
|
|
42819
42831
|
return this._builder;
|
|
42820
42832
|
}
|
|
@@ -49318,6 +49330,7 @@ class SmzMultiTablesTabBuilder extends SmzBuilderUtilities {
|
|
|
49318
49330
|
this._builder = _builder;
|
|
49319
49331
|
this._tab = _tab;
|
|
49320
49332
|
this.label = label;
|
|
49333
|
+
this._allowDuplication = false;
|
|
49321
49334
|
this.that = this;
|
|
49322
49335
|
this._tab.header.label.name = label;
|
|
49323
49336
|
}
|
|
@@ -49333,6 +49346,10 @@ class SmzMultiTablesTabBuilder extends SmzBuilderUtilities {
|
|
|
49333
49346
|
this._tab.selected = true;
|
|
49334
49347
|
return this.that;
|
|
49335
49348
|
}
|
|
49349
|
+
allowDuplication() {
|
|
49350
|
+
this._allowDuplication = true;
|
|
49351
|
+
return this.that;
|
|
49352
|
+
}
|
|
49336
49353
|
header() {
|
|
49337
49354
|
return new SmzMultiTablesTabHeaderBuilder(this, this._tab);
|
|
49338
49355
|
}
|
|
@@ -49342,6 +49359,9 @@ class SmzMultiTablesTabBuilder extends SmzBuilderUtilities {
|
|
|
49342
49359
|
return this.that;
|
|
49343
49360
|
}
|
|
49344
49361
|
get tab() {
|
|
49362
|
+
if (this._allowDuplication) {
|
|
49363
|
+
// this._tab.table.state.
|
|
49364
|
+
}
|
|
49345
49365
|
return this._builder;
|
|
49346
49366
|
}
|
|
49347
49367
|
}
|