uni-app-fe 0.2.0 → 0.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/fesm2022/uni-app-fe-component.mjs +13 -10
- package/fesm2022/uni-app-fe-component.mjs.map +1 -1
- package/fesm2022/uni-app-fe-manager.mjs +2 -2
- package/fesm2022/uni-app-fe-manager.mjs.map +1 -1
- package/fesm2022/uni-app-fe-module.mjs +73 -3
- package/fesm2022/uni-app-fe-module.mjs.map +1 -1
- package/fesm2022/uni-app-fe-pipe.mjs +8 -5
- package/fesm2022/uni-app-fe-pipe.mjs.map +1 -1
- package/fesm2022/uni-app-fe-service.mjs +23 -17
- package/fesm2022/uni-app-fe-service.mjs.map +1 -1
- package/package.json +2 -2
- package/types/uni-app-fe-component.d.ts +7 -6
- package/types/uni-app-fe-manager.d.ts +1 -1
- package/types/uni-app-fe-module.d.ts +17 -1
|
@@ -389,11 +389,11 @@ class UniHeader {
|
|
|
389
389
|
this.evtToggleMenu = output();
|
|
390
390
|
}
|
|
391
391
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniHeader, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
392
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniHeader, isStandalone: true, selector: "uni-header", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subTitle: { classPropertyName: "subTitle", publicName: "subTitle", isSignal: true, isRequired: false, transformFunction: null }, pathBrandLogo: { classPropertyName: "pathBrandLogo", publicName: "pathBrandLogo", isSignal: true, isRequired: true, transformFunction: null }, pathAppLogo: { classPropertyName: "pathAppLogo", publicName: "pathAppLogo", isSignal: true, isRequired: false, transformFunction: null }, hasSideMenu: { classPropertyName: "hasSideMenu", publicName: "hasSideMenu", isSignal: true, isRequired: false, transformFunction: null }, centralDescription: { classPropertyName: "centralDescription", publicName: "centralDescription", isSignal: true, isRequired: false, transformFunction: null }, lineDescription: { classPropertyName: "lineDescription", publicName: "lineDescription", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { evtToggleMenu: "evtToggleMenu" }, ngImport: i0, template: "<header\r\n class=\"dark:bg-theme-dark-800 dark:border-theme-dark-700/50 squircle flex h-16 items-center gap-4 overflow-hidden rounded-full border-2 border-blue-
|
|
392
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniHeader, isStandalone: true, selector: "uni-header", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, subTitle: { classPropertyName: "subTitle", publicName: "subTitle", isSignal: true, isRequired: false, transformFunction: null }, pathBrandLogo: { classPropertyName: "pathBrandLogo", publicName: "pathBrandLogo", isSignal: true, isRequired: true, transformFunction: null }, pathAppLogo: { classPropertyName: "pathAppLogo", publicName: "pathAppLogo", isSignal: true, isRequired: false, transformFunction: null }, hasSideMenu: { classPropertyName: "hasSideMenu", publicName: "hasSideMenu", isSignal: true, isRequired: false, transformFunction: null }, centralDescription: { classPropertyName: "centralDescription", publicName: "centralDescription", isSignal: true, isRequired: false, transformFunction: null }, lineDescription: { classPropertyName: "lineDescription", publicName: "lineDescription", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { evtToggleMenu: "evtToggleMenu" }, ngImport: i0, template: "<header\r\n class=\"dark:bg-theme-dark-800 dark:border-theme-dark-700/50 squircle flex h-16 items-center gap-4 overflow-hidden rounded-full border-2 border-blue-300/15 bg-blue-500/15 px-4 py-1.25 antialiased\">\r\n <!-- App logo -->\r\n @if (pathAppLogo(); as pathAppLogo) {\r\n <img\r\n [ngSrc]=\"pathAppLogo\"\r\n width=\"40\"\r\n height=\"40\"\r\n priority\r\n class=\"aspect-square! h-10 w-auto\"\r\n alt=\"App logo\" />\r\n }\r\n\r\n <!-- Info -->\r\n <div\r\n class=\"flex h-full flex-auto flex-col justify-between overflow-hidden leading-tight tracking-wider\">\r\n <h1 class=\"my-auto truncate text-xl! font-semibold! uppercase\">{{ title() }}</h1>\r\n @if(subTitle(); as subTitle) {\r\n <h2 class=\"text-sm! font-normal! opacity-75\">{{ subTitle }}</h2>\r\n }\r\n </div>\r\n\r\n @if(centralDescription(); as centralDescription) {\r\n <div class=\"hidden flex-100 items-center justify-center lg:flex\">\r\n <span class=\"truncate text-center text-xl tracking-wider\"> {{ centralDescription }} </span>\r\n </div>\r\n }\r\n\r\n <div class=\"xs:flex hidden h-full gap-4 *:min-w-28 *:bg-white/25 *:dark:bg-white/3\">\r\n <!-- Linea -->\r\n @if(lineDescription(); as lineDescription) {\r\n <div class=\"squircle flex h-full flex-col justify-between rounded-full px-4 py-1.25\">\r\n <span class=\"text-[8px] uppercase opacity-75\">{{ 'Line' | translate }}</span>\r\n <span class=\"text-base font-semibold\">{{ lineDescription }}</span>\r\n </div>\r\n }\r\n\r\n <!-- Brand logo -->\r\n <div class=\"squircle h-full rounded-full p-2\">\r\n <div class=\"relative h-full\">\r\n <img\r\n class=\"object-contain invert-75 dark:invert-0\"\r\n [ngSrc]=\"pathBrandLogo()\"\r\n fill\r\n priority\r\n alt=\"Brand logo\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Button menu -->\r\n @if (hasSideMenu()) {\r\n <dx-button class=\"shadow-none!\" [icon]=\"'menu'\" (onClick)=\"evtToggleMenu.emit(true)\" />\r\n }\r\n</header>\r\n", styles: [":host{display:block}:host ::ng-deep .dx-button{height:24px;min-width:24px;background-color:transparent}:host ::ng-deep .dx-button .dx-icon{font-size:24px}\n"], dependencies: [{ kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i2.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
393
393
|
}
|
|
394
394
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniHeader, decorators: [{
|
|
395
395
|
type: Component,
|
|
396
|
-
args: [{ selector: 'uni-header', standalone: true, imports: [DxButtonModule, UniTranslatePipe, NgOptimizedImage], changeDetection: ChangeDetectionStrategy.OnPush, template: "<header\r\n class=\"dark:bg-theme-dark-800 dark:border-theme-dark-700/50 squircle flex h-16 items-center gap-4 overflow-hidden rounded-full border-2 border-blue-
|
|
396
|
+
args: [{ selector: 'uni-header', standalone: true, imports: [DxButtonModule, UniTranslatePipe, NgOptimizedImage], changeDetection: ChangeDetectionStrategy.OnPush, template: "<header\r\n class=\"dark:bg-theme-dark-800 dark:border-theme-dark-700/50 squircle flex h-16 items-center gap-4 overflow-hidden rounded-full border-2 border-blue-300/15 bg-blue-500/15 px-4 py-1.25 antialiased\">\r\n <!-- App logo -->\r\n @if (pathAppLogo(); as pathAppLogo) {\r\n <img\r\n [ngSrc]=\"pathAppLogo\"\r\n width=\"40\"\r\n height=\"40\"\r\n priority\r\n class=\"aspect-square! h-10 w-auto\"\r\n alt=\"App logo\" />\r\n }\r\n\r\n <!-- Info -->\r\n <div\r\n class=\"flex h-full flex-auto flex-col justify-between overflow-hidden leading-tight tracking-wider\">\r\n <h1 class=\"my-auto truncate text-xl! font-semibold! uppercase\">{{ title() }}</h1>\r\n @if(subTitle(); as subTitle) {\r\n <h2 class=\"text-sm! font-normal! opacity-75\">{{ subTitle }}</h2>\r\n }\r\n </div>\r\n\r\n @if(centralDescription(); as centralDescription) {\r\n <div class=\"hidden flex-100 items-center justify-center lg:flex\">\r\n <span class=\"truncate text-center text-xl tracking-wider\"> {{ centralDescription }} </span>\r\n </div>\r\n }\r\n\r\n <div class=\"xs:flex hidden h-full gap-4 *:min-w-28 *:bg-white/25 *:dark:bg-white/3\">\r\n <!-- Linea -->\r\n @if(lineDescription(); as lineDescription) {\r\n <div class=\"squircle flex h-full flex-col justify-between rounded-full px-4 py-1.25\">\r\n <span class=\"text-[8px] uppercase opacity-75\">{{ 'Line' | translate }}</span>\r\n <span class=\"text-base font-semibold\">{{ lineDescription }}</span>\r\n </div>\r\n }\r\n\r\n <!-- Brand logo -->\r\n <div class=\"squircle h-full rounded-full p-2\">\r\n <div class=\"relative h-full\">\r\n <img\r\n class=\"object-contain invert-75 dark:invert-0\"\r\n [ngSrc]=\"pathBrandLogo()\"\r\n fill\r\n priority\r\n alt=\"Brand logo\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Button menu -->\r\n @if (hasSideMenu()) {\r\n <dx-button class=\"shadow-none!\" [icon]=\"'menu'\" (onClick)=\"evtToggleMenu.emit(true)\" />\r\n }\r\n</header>\r\n", styles: [":host{display:block}:host ::ng-deep .dx-button{height:24px;min-width:24px;background-color:transparent}:host ::ng-deep .dx-button .dx-icon{font-size:24px}\n"] }]
|
|
397
397
|
}], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], subTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "subTitle", required: false }] }], pathBrandLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "pathBrandLogo", required: true }] }], pathAppLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "pathAppLogo", required: false }] }], hasSideMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasSideMenu", required: false }] }], centralDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "centralDescription", required: false }] }], lineDescription: [{ type: i0.Input, args: [{ isSignal: true, alias: "lineDescription", required: false }] }], evtToggleMenu: [{ type: i0.Output, args: ["evtToggleMenu"] }] } });
|
|
398
398
|
|
|
399
399
|
class UniItemFieldWithHightContrast {
|
|
@@ -505,8 +505,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
505
505
|
|
|
506
506
|
class UniSideMenu {
|
|
507
507
|
constructor() {
|
|
508
|
-
/*
|
|
509
|
-
this.elementRef = inject(ElementRef);
|
|
508
|
+
/* Services */
|
|
509
|
+
this.elementRef = inject((ElementRef));
|
|
510
510
|
this.uniLoader = inject(UniLoaderService);
|
|
511
511
|
/* Input */
|
|
512
512
|
this.versionFe = input.required(...(ngDevMode ? [{ debugName: "versionFe" }] : /* istanbul ignore next */ []));
|
|
@@ -514,6 +514,7 @@ class UniSideMenu {
|
|
|
514
514
|
this.pathUnitecLogo = input.required(...(ngDevMode ? [{ debugName: "pathUnitecLogo" }] : /* istanbul ignore next */ []));
|
|
515
515
|
this.menuItems = input([], ...(ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []));
|
|
516
516
|
this.menuInteractions = input(...(ngDevMode ? [undefined, { debugName: "menuInteractions" }] : /* istanbul ignore next */ []));
|
|
517
|
+
this.username = input(...(ngDevMode ? [undefined, { debugName: "username" }] : /* istanbul ignore next */ []));
|
|
517
518
|
/* Output */
|
|
518
519
|
this.evtToggleMenu = output();
|
|
519
520
|
/* Variables */
|
|
@@ -534,12 +535,14 @@ class UniSideMenu {
|
|
|
534
535
|
};
|
|
535
536
|
}
|
|
536
537
|
/* ---------------------- Host listener ---------------------- */
|
|
537
|
-
|
|
538
|
+
onPointerDown(event) {
|
|
538
539
|
const target = event.target;
|
|
540
|
+
if (!target)
|
|
541
|
+
return;
|
|
539
542
|
// Controlla se il click è avvenuto dentro il menu principale
|
|
540
543
|
const clickedInsideMenu = this.elementRef.nativeElement.contains(target);
|
|
541
544
|
// Controlla se il click è avvenuto dentro un popup/dropdown aperto
|
|
542
|
-
const isClickedInsideOverlay =
|
|
545
|
+
const isClickedInsideOverlay = target.closest('.dx-overlay-wrapper, .dx-dropdowneditor-overlay') !== null;
|
|
543
546
|
// Se il click è fuori da entrambi, allora chiude il menu
|
|
544
547
|
if (!clickedInsideMenu && !isClickedInsideOverlay) {
|
|
545
548
|
this.evtToggleMenu.emit(false);
|
|
@@ -557,7 +560,7 @@ class UniSideMenu {
|
|
|
557
560
|
location.reload();
|
|
558
561
|
}
|
|
559
562
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniSideMenu, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
560
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniSideMenu, isStandalone: true, selector: "uni-side-menu", inputs: { versionFe: { classPropertyName: "versionFe", publicName: "versionFe", isSignal: true, isRequired: true, transformFunction: null }, versionBe: { classPropertyName: "versionBe", publicName: "versionBe", isSignal: true, isRequired: false, transformFunction: null }, pathUnitecLogo: { classPropertyName: "pathUnitecLogo", publicName: "pathUnitecLogo", isSignal: true, isRequired: true, transformFunction: null }, menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: false, transformFunction: null }, menuInteractions: { classPropertyName: "menuInteractions", publicName: "menuInteractions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { evtToggleMenu: "evtToggleMenu" }, host: { listeners: { "document:click": "onClickOutside($event)" } }, ngImport: i0, template: "<aside\r\n class=\"dark:bg-theme-dark-800 dark:border-theme-dark-900 flex h-screen w-[80vw] max-w-96 flex-col gap-6 overflow-hidden rounded-l border-b-2 border-l-2 border-blue-400/15 bg-blue-300 px-6 py-4 shadow-2xl\">\r\n <!-- Header: User/Close -->\r\n <div class=\"flex h-8 w-full shrink-0 items-center\">\r\n <dx-button class=\"ml-auto rounded-full!\" [icon]=\"'close'\" (onClick)=\"evtToggleMenu.emit(false)\">\r\n </dx-button>\r\n </div>\r\n\r\n <div class=\"flex flex-1 flex-col gap-4 overflow-x-hidden overflow-y-auto\">\r\n <!-- Sezione Menu Principale -->\r\n @if (menuItems().length) {\r\n <div class=\"flex flex-col gap-2\">\r\n <h1 class=\"text-xl! font-semibold! text-white!\">{{ 'Pages' | translate }}</h1>\r\n <ul class=\"flex flex-col gap-2\">\r\n @for (item of menuItems(); track item.id) { @if (item.visible !== false) {\r\n <li>\r\n <a\r\n class=\"page squircle group flex h-12 items-center gap-3 rounded-full px-3 text-white! transition-colors dark:text-gray-300!\"\r\n [ngClass]=\"{\r\n 'dark:hover:bg-theme-dark-700 hover:bg-blue-400': !item.badge && !item.disabled,\r\n 'hover:bg-red-500/50': item.badge && !item.disabled,\r\n 'pointer-events-none opacity-30 grayscale': item.disabled,\r\n }\"\r\n [routerLink]=\"item.disabled ? null : item.path\"\r\n [routerLinkActive]=\"item.badge ?\r\n 'bg-red-500/60 *:text-white! *:font-semibold!' :\r\n 'bg-blue-400/75 dark:bg-theme-dark-700 *:text-white! *:font-semibold!'\r\n \"\r\n (click)=\"evtToggleMenu.emit(false)\">\r\n <fa-icon [icon]=\"item.icon\" class=\"w-6 text-center text-lg\"></fa-icon>\r\n <span class=\"flex-1 truncate text-sm font-medium\">{{ item.label }}</span>\r\n @if (item.badge) {\r\n <div\r\n class=\"squircle flex size-6 animate-pulse items-center justify-center rounded-full bg-red-500 shadow-lg\">\r\n <fa-icon class=\"text-xs\" [icon]=\"ICON.NOTIFICATION\"></fa-icon>\r\n </div>\r\n }\r\n </a>\r\n </li>\r\n } }\r\n </ul>\r\n </div>\r\n }\r\n\r\n <!-- Sezione Interazioni Dinamiche -->\r\n @if (menuInteractions()?.length) {\r\n <hr class=\"dark:border-theme-dark-900 border-blue-400/30\" />\r\n <div class=\"flex flex-col gap-2\">\r\n <h1 class=\"text-xl! font-semibold! text-white!\">{{ 'Controls' | translate }}</h1>\r\n <ul class=\"flex flex-col gap-2\">\r\n @for (item of menuInteractions(); track item.id) { @if (item.data.type === 'button') {\r\n <li>\r\n <button\r\n type=\"button\"\r\n class=\"flex h-12 w-full items-center gap-3 rounded-lg px-3 transition-all active:scale-95\"\r\n [class]=\"item.class\"\r\n (click)=\"item.data.onClick()\">\r\n <fa-icon class=\"w-6\" [icon]=\"item.data.icon\"></fa-icon>\r\n <span class=\"flex-1 truncate text-left font-medium\">{{ item.label }}</span>\r\n </button>\r\n </li>\r\n } @else if (item.data.type === 'select') {\r\n <li\r\n class=\"dark:bg-theme-dark-700 flex flex-col rounded-lg bg-blue-400/75 px-4 py-2.5 text-white shadow-sm\">\r\n <span class=\"text-xs font-semibold uppercase opacity-70\">{{ item.label }}</span>\r\n <dx-select-box\r\n class=\"w-full\"\r\n valueExpr=\"id\"\r\n displayExpr=\"description\"\r\n [items]=\"item.data.combos\"\r\n [value]=\"item.data.value\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"item.data.onValueChanged($event)\">\r\n </dx-select-box>\r\n </li>\r\n } }\r\n </ul>\r\n </div>\r\n\r\n }\r\n\r\n <!-- Settings Statici -->\r\n <hr class=\"dark:border-theme-dark-900 border-blue-400/30\" />\r\n <div class=\"flex flex-col gap-2\">\r\n <h1 class=\"text-xl! font-semibold! text-white!\">{{ 'Settings' | translate }}</h1>\r\n <div class=\"flex flex-col gap-3\">\r\n <div\r\n class=\"dark:bg-theme-dark-700 flex h-14 items-center justify-between rounded-lg bg-blue-400/75 px-4 py-2.5 text-white shadow-sm\">\r\n <div class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"darkMode() ? ICON.DARK_MODE : ICON.LIGHT_MODE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'DarkMode' | translate }}</span>\r\n </div>\r\n <dx-switch [value]=\"darkMode()\" (onValueChanged)=\"updateTheme($event)\"></dx-switch>\r\n </div>\r\n\r\n <div\r\n class=\"dark:bg-theme-dark-700 flex h-14 items-center justify-between rounded-lg bg-blue-400/75 px-4 py-2.5 text-white shadow-sm\">\r\n <div class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"ICON.LANGUAGE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'Language' | translate }}</span>\r\n </div>\r\n <dx-select-box\r\n class=\"w-24\"\r\n [items]=\"localesSupported\"\r\n [value]=\"locale\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"updateLocale($event)\">\r\n </dx-select-box>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Footer Logo -->\r\n <div class=\"mt-auto flex items-center gap-4 border-t border-white/20 pt-4\">\r\n <div class=\"flex h-full flex-col justify-between tracking-wide text-white opacity-60\">\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.FE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionFe() }}</span>\r\n </p>\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.BE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionBe() }}</span>\r\n </p>\r\n </div>\r\n <img\r\n class=\"ml-auto\"\r\n [ngSrc]=\"pathUnitecLogo()\"\r\n priority\r\n alt=\"Brand logo\"\r\n height=\"36\"\r\n width=\"100\" />\r\n </div>\r\n</aside>\r\n", styles: [":host{position:fixed;top:0;right:0;z-index:999}:host ::ng-deep .dx-texteditor-input{color:#fff!important}:host ::ng-deep .dx-dropdowneditor-icon{color:#fff}:host ::ng-deep .dx-editor-underlined:after{border-color:#fff!important}@media(max-resolution:1dppx){.page{height:32px!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i2.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "ngmodule", type: DxSelectBoxModule }, { kind: "component", type: i3.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldAddons", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldAddonsChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "ngmodule", type: DxSwitchModule }, { kind: "component", type: i4.DxSwitchComponent, selector: "dx-switch", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "isDirty", "isValid", "name", "readOnly", "rtlEnabled", "switchedOffText", "switchedOnText", "tabIndex", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "isDirtyChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "switchedOffTextChange", "switchedOnTextChange", "tabIndexChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
563
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.12", type: UniSideMenu, isStandalone: true, selector: "uni-side-menu", inputs: { versionFe: { classPropertyName: "versionFe", publicName: "versionFe", isSignal: true, isRequired: true, transformFunction: null }, versionBe: { classPropertyName: "versionBe", publicName: "versionBe", isSignal: true, isRequired: false, transformFunction: null }, pathUnitecLogo: { classPropertyName: "pathUnitecLogo", publicName: "pathUnitecLogo", isSignal: true, isRequired: true, transformFunction: null }, menuItems: { classPropertyName: "menuItems", publicName: "menuItems", isSignal: true, isRequired: false, transformFunction: null }, menuInteractions: { classPropertyName: "menuInteractions", publicName: "menuInteractions", isSignal: true, isRequired: false, transformFunction: null }, username: { classPropertyName: "username", publicName: "username", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { evtToggleMenu: "evtToggleMenu" }, host: { listeners: { "document:pointerdown": "onPointerDown($event)" } }, ngImport: i0, template: "<aside\r\n class=\"dark:bg-theme-dark-800 dark:border-theme-dark-700/50 flex h-screen w-[80vw] max-w-96 flex-col gap-6 overflow-hidden rounded-l border-b-2 border-l-2 border-blue-300/15 bg-[#dbe6ff] px-5 pt-8 pb-4 shadow-2xl\">\r\n <!-- User -->\r\n @if(username(); as username){\r\n <div class=\"flex items-center gap-4\">\r\n <div\r\n class=\"center dark:bg-theme-dark-600 aspect-square h-full rounded-full bg-blue-400/30 shadow\">\r\n <fa-icon class=\"text-lg\" [icon]=\"ICON.USER\"></fa-icon>\r\n </div>\r\n <div class=\"flex flex-col justify-between\">\r\n <span class=\"text-sm opacity-75\">User</span>\r\n <span class=\"text-2xl leading-none font-semibold\">{{ username.split('@', 1)[0] }}</span>\r\n </div>\r\n </div>\r\n <hr class=\"dark:border-theme-dark-600 border-blue-400/30 shadow\" />\r\n }\r\n\r\n <div class=\"flex flex-1 flex-col gap-6 overflow-x-hidden overflow-y-auto\">\r\n <!-- Sezione Menu Principale -->\r\n @if (menuItems().length) {\r\n <div class=\"flex flex-col gap-2\">\r\n <h1 class=\"text-lg! font-semibold! tracking-wide\">{{ 'Pages' | translate }}</h1>\r\n <ul class=\"flex flex-col gap-2 px-1\">\r\n @for (item of menuItems(); track item.id) { @if (item.visible !== false) {\r\n <li>\r\n <a\r\n class=\"page squircle group flex h-8 items-center gap-3 rounded-full px-3 text-inherit! transition-colors!\"\r\n [ngClass]=\"{\r\n 'hover:text-blue-300! dark:hover:text-blue-400!': !item.badge && !item.disabled,\r\n 'hover:bg-red-500/60': item.badge && !item.disabled,\r\n 'pointer-events-none opacity-30 grayscale': item.disabled,\r\n }\"\r\n [routerLink]=\"item.disabled ? null : item.path\"\r\n [routerLinkActive]=\"item.badge ?\r\n 'bg-red-500/60 *:text-white! *:font-semibold!' :\r\n 'text-blue-300! dark:text-blue-400! *:font-semibold!'\r\n \"\r\n (click)=\"evtToggleMenu.emit(false)\">\r\n <fa-icon [icon]=\"item.icon\" class=\"w-6 text-center text-lg\"></fa-icon>\r\n <span class=\"flex-1 truncate text-sm font-medium\">{{ item.label }}</span>\r\n @if (item.badge) {\r\n <div\r\n class=\"squircle flex size-6 animate-pulse items-center justify-center rounded-full bg-red-500 shadow-lg\">\r\n <fa-icon class=\"text-xs\" [icon]=\"ICON.NOTIFICATION\"></fa-icon>\r\n </div>\r\n }\r\n </a>\r\n </li>\r\n } }\r\n </ul>\r\n </div>\r\n }\r\n\r\n <!-- Sezione Interazioni Dinamiche -->\r\n @if (menuInteractions()?.length) {\r\n <hr class=\"dark:border-theme-dark-600 border-blue-400/30 shadow\" />\r\n <div class=\"flex flex-col gap-2 px-1\">\r\n <h1 class=\"text-lg! font-semibold! tracking-wide\">{{ 'Controls' | translate }}</h1>\r\n <ul class=\"flex flex-col gap-2\">\r\n @for (item of menuInteractions(); track item.id) { @if (item.data.type === 'button') {\r\n <li>\r\n <button\r\n type=\"button\"\r\n class=\"flex h-12 w-full items-center gap-3 rounded-lg px-3 transition-all active:scale-95\"\r\n [class]=\"item.class\"\r\n (click)=\"item.data.onClick()\">\r\n <fa-icon class=\"w-6\" [icon]=\"item.data.icon\"></fa-icon>\r\n <span class=\"flex-1 truncate text-left font-medium\">{{ item.label }}</span>\r\n </button>\r\n </li>\r\n } @else if (item.data.type === 'select') {\r\n <li\r\n class=\"dark:bg-theme-dark-700 squircle flex flex-col rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"text-xs font-semibold uppercase\">{{ item.label }}</label>\r\n <dx-select-box\r\n class=\"w-full\"\r\n valueExpr=\"id\"\r\n displayExpr=\"description\"\r\n [items]=\"item.data.combos\"\r\n [value]=\"item.data.value\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"item.data.onValueChanged($event)\">\r\n </dx-select-box>\r\n </li>\r\n } }\r\n </ul>\r\n </div>\r\n }\r\n\r\n <!-- Settings Statici -->\r\n <hr class=\"dark:border-theme-dark-600 border-blue-400/30 shadow\" />\r\n <div class=\"flex flex-col gap-2\">\r\n <h1 class=\"text-lg! font-semibold! tracking-wide\">{{ 'Settings' | translate }}</h1>\r\n <div class=\"flex flex-col gap-2 px-1\">\r\n <div\r\n class=\"dark:bg-theme-dark-700 squircle flex h-14 items-center justify-between rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"darkMode() ? ICON.DARK_MODE : ICON.LIGHT_MODE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'DarkMode' | translate }}</span>\r\n </label>\r\n <dx-switch [value]=\"darkMode()\" (onValueChanged)=\"updateTheme($event)\"></dx-switch>\r\n </div>\r\n\r\n <div\r\n class=\"dark:bg-theme-dark-700 squircle flex h-14 items-center justify-between rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"ICON.LANGUAGE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'Language' | translate }}</span>\r\n </label>\r\n <dx-select-box\r\n class=\"w-24\"\r\n [items]=\"localesSupported\"\r\n [value]=\"locale\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"updateLocale($event)\">\r\n </dx-select-box>\r\n </div>\r\n\r\n @if(username()) {\r\n <div\r\n class=\"dark:bg-theme-dark-700 squircle flex items-center justify-between overflow-hidden rounded-full bg-blue-200 shadow\">\r\n <dx-button\r\n class=\"min-h-14 w-full text-lg! **:uppercase!\"\r\n [text]=\"'Logout'\"\r\n [stylingMode]=\"'text'\"\r\n [type]=\"'default'\"></dx-button>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Footer Logo -->\r\n <hr class=\"dark:border-theme-dark-600 border-blue-400/30 shadow\" />\r\n <div class=\"flex items-center gap-4\">\r\n <div class=\"flex h-full flex-col justify-between tracking-wide opacity-60\">\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.FE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionFe() }}</span>\r\n </p>\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.BE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionBe() }}</span>\r\n </p>\r\n </div>\r\n <img\r\n class=\"ml-auto invert-75 dark:invert-0\"\r\n [ngSrc]=\"pathUnitecLogo()\"\r\n priority\r\n alt=\"Brand logo\"\r\n height=\"36\"\r\n width=\"100\" />\r\n </div>\r\n</aside>\r\n", styles: [":host{position:fixed;right:0;top:0;z-index:999;transition:transform .3s ease}:host(.closed){transform:translate(100%);pointer-events:none}:host(.open){transform:translate(0)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "ngmodule", type: DxButtonModule }, { kind: "component", type: i2.DxButtonComponent, selector: "dx-button", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "icon", "rtlEnabled", "stylingMode", "tabIndex", "template", "text", "type", "useSubmitBehavior", "validationGroup", "visible", "width"], outputs: ["onClick", "onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "iconChange", "rtlEnabledChange", "stylingModeChange", "tabIndexChange", "templateChange", "textChange", "typeChange", "useSubmitBehaviorChange", "validationGroupChange", "visibleChange", "widthChange"] }, { kind: "ngmodule", type: DxSelectBoxModule }, { kind: "component", type: i3.DxSelectBoxComponent, selector: "dx-select-box", inputs: ["acceptCustomValue", "accessKey", "activeStateEnabled", "buttons", "customItemCreateEvent", "dataSource", "deferRendering", "disabled", "displayExpr", "displayValue", "dropDownButtonTemplate", "dropDownOptions", "elementAttr", "fieldAddons", "fieldTemplate", "focusStateEnabled", "grouped", "groupTemplate", "height", "hint", "hoverStateEnabled", "inputAttr", "isDirty", "isValid", "items", "itemTemplate", "label", "labelMode", "maxLength", "minSearchLength", "name", "noDataText", "opened", "openOnFieldClick", "placeholder", "readOnly", "rtlEnabled", "searchEnabled", "searchExpr", "searchMode", "searchTimeout", "selectedItem", "showClearButton", "showDataBeforeSearch", "showDropDownButton", "showSelectionControls", "spellcheck", "stylingMode", "tabIndex", "text", "useItemTextAsTitle", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "valueChangeEvent", "valueExpr", "visible", "width", "wrapItemText"], outputs: ["onChange", "onClosed", "onContentReady", "onCopy", "onCustomItemCreating", "onCut", "onDisposing", "onEnterKey", "onFocusIn", "onFocusOut", "onInitialized", "onInput", "onItemClick", "onKeyDown", "onKeyUp", "onOpened", "onOptionChanged", "onPaste", "onSelectionChanged", "onValueChanged", "acceptCustomValueChange", "accessKeyChange", "activeStateEnabledChange", "buttonsChange", "customItemCreateEventChange", "dataSourceChange", "deferRenderingChange", "disabledChange", "displayExprChange", "displayValueChange", "dropDownButtonTemplateChange", "dropDownOptionsChange", "elementAttrChange", "fieldAddonsChange", "fieldTemplateChange", "focusStateEnabledChange", "groupedChange", "groupTemplateChange", "heightChange", "hintChange", "hoverStateEnabledChange", "inputAttrChange", "isDirtyChange", "isValidChange", "itemsChange", "itemTemplateChange", "labelChange", "labelModeChange", "maxLengthChange", "minSearchLengthChange", "nameChange", "noDataTextChange", "openedChange", "openOnFieldClickChange", "placeholderChange", "readOnlyChange", "rtlEnabledChange", "searchEnabledChange", "searchExprChange", "searchModeChange", "searchTimeoutChange", "selectedItemChange", "showClearButtonChange", "showDataBeforeSearchChange", "showDropDownButtonChange", "showSelectionControlsChange", "spellcheckChange", "stylingModeChange", "tabIndexChange", "textChange", "useItemTextAsTitleChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "valueChangeEventChange", "valueExprChange", "visibleChange", "widthChange", "wrapItemTextChange", "onBlur"] }, { kind: "ngmodule", type: DxSwitchModule }, { kind: "component", type: i4.DxSwitchComponent, selector: "dx-switch", inputs: ["accessKey", "activeStateEnabled", "disabled", "elementAttr", "focusStateEnabled", "height", "hint", "hoverStateEnabled", "isDirty", "isValid", "name", "readOnly", "rtlEnabled", "switchedOffText", "switchedOnText", "tabIndex", "validationError", "validationErrors", "validationMessageMode", "validationMessagePosition", "validationStatus", "value", "visible", "width"], outputs: ["onContentReady", "onDisposing", "onInitialized", "onOptionChanged", "onValueChanged", "accessKeyChange", "activeStateEnabledChange", "disabledChange", "elementAttrChange", "focusStateEnabledChange", "heightChange", "hintChange", "hoverStateEnabledChange", "isDirtyChange", "isValidChange", "nameChange", "readOnlyChange", "rtlEnabledChange", "switchedOffTextChange", "switchedOnTextChange", "tabIndexChange", "validationErrorChange", "validationErrorsChange", "validationMessageModeChange", "validationMessagePositionChange", "validationStatusChange", "valueChange", "visibleChange", "widthChange", "onBlur"] }, { kind: "component", type: FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "animation", "mask", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"], outputs: ["iconChange", "titleChange", "animationChange", "maskChange", "flipChange", "sizeChange", "pullChange", "borderChange", "inverseChange", "symbolChange", "rotateChange", "fixedWidthChange", "transformChange", "a11yRoleChange"] }, { kind: "directive", type: NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "decoding", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "placeholder", "placeholderConfig", "src", "srcset"] }, { kind: "pipe", type: UniTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
561
564
|
}
|
|
562
565
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImport: i0, type: UniSideMenu, decorators: [{
|
|
563
566
|
type: Component,
|
|
@@ -571,10 +574,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.12", ngImpo
|
|
|
571
574
|
UniTranslatePipe,
|
|
572
575
|
FaIconComponent,
|
|
573
576
|
NgOptimizedImage,
|
|
574
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<aside\r\n class=\"dark:bg-theme-dark-800 dark:border-theme-dark-
|
|
575
|
-
}], propDecorators: { versionFe: [{ type: i0.Input, args: [{ isSignal: true, alias: "versionFe", required: true }] }], versionBe: [{ type: i0.Input, args: [{ isSignal: true, alias: "versionBe", required: false }] }], pathUnitecLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "pathUnitecLogo", required: true }] }], menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: false }] }], menuInteractions: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuInteractions", required: false }] }], evtToggleMenu: [{ type: i0.Output, args: ["evtToggleMenu"] }],
|
|
577
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<aside\r\n class=\"dark:bg-theme-dark-800 dark:border-theme-dark-700/50 flex h-screen w-[80vw] max-w-96 flex-col gap-6 overflow-hidden rounded-l border-b-2 border-l-2 border-blue-300/15 bg-[#dbe6ff] px-5 pt-8 pb-4 shadow-2xl\">\r\n <!-- User -->\r\n @if(username(); as username){\r\n <div class=\"flex items-center gap-4\">\r\n <div\r\n class=\"center dark:bg-theme-dark-600 aspect-square h-full rounded-full bg-blue-400/30 shadow\">\r\n <fa-icon class=\"text-lg\" [icon]=\"ICON.USER\"></fa-icon>\r\n </div>\r\n <div class=\"flex flex-col justify-between\">\r\n <span class=\"text-sm opacity-75\">User</span>\r\n <span class=\"text-2xl leading-none font-semibold\">{{ username.split('@', 1)[0] }}</span>\r\n </div>\r\n </div>\r\n <hr class=\"dark:border-theme-dark-600 border-blue-400/30 shadow\" />\r\n }\r\n\r\n <div class=\"flex flex-1 flex-col gap-6 overflow-x-hidden overflow-y-auto\">\r\n <!-- Sezione Menu Principale -->\r\n @if (menuItems().length) {\r\n <div class=\"flex flex-col gap-2\">\r\n <h1 class=\"text-lg! font-semibold! tracking-wide\">{{ 'Pages' | translate }}</h1>\r\n <ul class=\"flex flex-col gap-2 px-1\">\r\n @for (item of menuItems(); track item.id) { @if (item.visible !== false) {\r\n <li>\r\n <a\r\n class=\"page squircle group flex h-8 items-center gap-3 rounded-full px-3 text-inherit! transition-colors!\"\r\n [ngClass]=\"{\r\n 'hover:text-blue-300! dark:hover:text-blue-400!': !item.badge && !item.disabled,\r\n 'hover:bg-red-500/60': item.badge && !item.disabled,\r\n 'pointer-events-none opacity-30 grayscale': item.disabled,\r\n }\"\r\n [routerLink]=\"item.disabled ? null : item.path\"\r\n [routerLinkActive]=\"item.badge ?\r\n 'bg-red-500/60 *:text-white! *:font-semibold!' :\r\n 'text-blue-300! dark:text-blue-400! *:font-semibold!'\r\n \"\r\n (click)=\"evtToggleMenu.emit(false)\">\r\n <fa-icon [icon]=\"item.icon\" class=\"w-6 text-center text-lg\"></fa-icon>\r\n <span class=\"flex-1 truncate text-sm font-medium\">{{ item.label }}</span>\r\n @if (item.badge) {\r\n <div\r\n class=\"squircle flex size-6 animate-pulse items-center justify-center rounded-full bg-red-500 shadow-lg\">\r\n <fa-icon class=\"text-xs\" [icon]=\"ICON.NOTIFICATION\"></fa-icon>\r\n </div>\r\n }\r\n </a>\r\n </li>\r\n } }\r\n </ul>\r\n </div>\r\n }\r\n\r\n <!-- Sezione Interazioni Dinamiche -->\r\n @if (menuInteractions()?.length) {\r\n <hr class=\"dark:border-theme-dark-600 border-blue-400/30 shadow\" />\r\n <div class=\"flex flex-col gap-2 px-1\">\r\n <h1 class=\"text-lg! font-semibold! tracking-wide\">{{ 'Controls' | translate }}</h1>\r\n <ul class=\"flex flex-col gap-2\">\r\n @for (item of menuInteractions(); track item.id) { @if (item.data.type === 'button') {\r\n <li>\r\n <button\r\n type=\"button\"\r\n class=\"flex h-12 w-full items-center gap-3 rounded-lg px-3 transition-all active:scale-95\"\r\n [class]=\"item.class\"\r\n (click)=\"item.data.onClick()\">\r\n <fa-icon class=\"w-6\" [icon]=\"item.data.icon\"></fa-icon>\r\n <span class=\"flex-1 truncate text-left font-medium\">{{ item.label }}</span>\r\n </button>\r\n </li>\r\n } @else if (item.data.type === 'select') {\r\n <li\r\n class=\"dark:bg-theme-dark-700 squircle flex flex-col rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"text-xs font-semibold uppercase\">{{ item.label }}</label>\r\n <dx-select-box\r\n class=\"w-full\"\r\n valueExpr=\"id\"\r\n displayExpr=\"description\"\r\n [items]=\"item.data.combos\"\r\n [value]=\"item.data.value\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"item.data.onValueChanged($event)\">\r\n </dx-select-box>\r\n </li>\r\n } }\r\n </ul>\r\n </div>\r\n }\r\n\r\n <!-- Settings Statici -->\r\n <hr class=\"dark:border-theme-dark-600 border-blue-400/30 shadow\" />\r\n <div class=\"flex flex-col gap-2\">\r\n <h1 class=\"text-lg! font-semibold! tracking-wide\">{{ 'Settings' | translate }}</h1>\r\n <div class=\"flex flex-col gap-2 px-1\">\r\n <div\r\n class=\"dark:bg-theme-dark-700 squircle flex h-14 items-center justify-between rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"darkMode() ? ICON.DARK_MODE : ICON.LIGHT_MODE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'DarkMode' | translate }}</span>\r\n </label>\r\n <dx-switch [value]=\"darkMode()\" (onValueChanged)=\"updateTheme($event)\"></dx-switch>\r\n </div>\r\n\r\n <div\r\n class=\"dark:bg-theme-dark-700 squircle flex h-14 items-center justify-between rounded-full bg-blue-200 px-4 py-2.5 shadow\">\r\n <label class=\"flex items-center gap-3\">\r\n <fa-icon [icon]=\"ICON.LANGUAGE\"></fa-icon>\r\n <span class=\"truncate text-sm\">{{ 'Language' | translate }}</span>\r\n </label>\r\n <dx-select-box\r\n class=\"w-24\"\r\n [items]=\"localesSupported\"\r\n [value]=\"locale\"\r\n stylingMode=\"underlined\"\r\n (onValueChanged)=\"updateLocale($event)\">\r\n </dx-select-box>\r\n </div>\r\n\r\n @if(username()) {\r\n <div\r\n class=\"dark:bg-theme-dark-700 squircle flex items-center justify-between overflow-hidden rounded-full bg-blue-200 shadow\">\r\n <dx-button\r\n class=\"min-h-14 w-full text-lg! **:uppercase!\"\r\n [text]=\"'Logout'\"\r\n [stylingMode]=\"'text'\"\r\n [type]=\"'default'\"></dx-button>\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!-- Footer Logo -->\r\n <hr class=\"dark:border-theme-dark-600 border-blue-400/30 shadow\" />\r\n <div class=\"flex items-center gap-4\">\r\n <div class=\"flex h-full flex-col justify-between tracking-wide opacity-60\">\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.FE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionFe() }}</span>\r\n </p>\r\n <p class=\"flex items-center gap-1 truncate\">\r\n <fa-icon [icon]=\"ICON.BE\"></fa-icon>\r\n <span class=\"truncate\">{{ versionBe() }}</span>\r\n </p>\r\n </div>\r\n <img\r\n class=\"ml-auto invert-75 dark:invert-0\"\r\n [ngSrc]=\"pathUnitecLogo()\"\r\n priority\r\n alt=\"Brand logo\"\r\n height=\"36\"\r\n width=\"100\" />\r\n </div>\r\n</aside>\r\n", styles: [":host{position:fixed;right:0;top:0;z-index:999;transition:transform .3s ease}:host(.closed){transform:translate(100%);pointer-events:none}:host(.open){transform:translate(0)}\n"] }]
|
|
578
|
+
}], propDecorators: { versionFe: [{ type: i0.Input, args: [{ isSignal: true, alias: "versionFe", required: true }] }], versionBe: [{ type: i0.Input, args: [{ isSignal: true, alias: "versionBe", required: false }] }], pathUnitecLogo: [{ type: i0.Input, args: [{ isSignal: true, alias: "pathUnitecLogo", required: true }] }], menuItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuItems", required: false }] }], menuInteractions: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuInteractions", required: false }] }], username: [{ type: i0.Input, args: [{ isSignal: true, alias: "username", required: false }] }], evtToggleMenu: [{ type: i0.Output, args: ["evtToggleMenu"] }], onPointerDown: [{
|
|
576
579
|
type: HostListener,
|
|
577
|
-
args: ['document:
|
|
580
|
+
args: ['document:pointerdown', ['$event']]
|
|
578
581
|
}] } });
|
|
579
582
|
|
|
580
583
|
/**
|