@smartsoft001/angular 1.2.78 → 1.2.81
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/esm2022/lib/components/app/split-panel/split-panel.component.mjs +3 -3
- package/esm2022/lib/components/searchbar/searchbar.component.mjs +17 -13
- package/fesm2022/smartsoft001-angular.mjs +14 -10
- package/fesm2022/smartsoft001-angular.mjs.map +1 -1
- package/lib/components/searchbar/searchbar.component.d.ts +3 -4
- package/package.json +2 -2
|
@@ -27,11 +27,11 @@ export class AppSplitPanelComponent extends AppBaseComponent {
|
|
|
27
27
|
}
|
|
28
28
|
ngOnInit() { }
|
|
29
29
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AppSplitPanelComponent, deps: [{ token: i1.Router }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i2.StyleService }, { token: i3.MenuService }, { token: i4.AuthService }, { token: i5.AppService }, { token: PLATFORM_ID }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
30
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: AppSplitPanelComponent, selector: "smart-app-split-panel", viewQueries: [{ propertyName: "listRef", first: true, predicate: ["listRef"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<!-- <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar> -->\n<!-- <ion-split-pane contentId=\"menu-content\" [ngStyle]=\"{'margin-top': loadingPage ? '4px' : '0'}\"> -->\n<ion-split-pane contentId=\"menu-content\">\n <!-- our side menu -->\n <ion-menu menuId=\"start\" contentId=\"menu-content\" [disabled]=\"!(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async))\">\n <ion-header>\n <ion-toolbar>\n <ion-title>\n <ion-col size=\"auto\" *ngIf=\"logo\" class=\"smart-logo-container\">\n ({{ !(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async)) }})\n <ion-img *ngIf=\"logo\" [src]=\"logo\" class=\"smart-logo\"></ion-img>\n </ion-col>\n <ng-container *ngIf=\"!logo\">MENU</ng-container>\n </ion-title>\n </ion-toolbar>\n </ion-header>\n\n <ion-content>\n <ion-list #listRef>\n <ng-container *ngFor=\"let item of menuItems$ | async\">\n <ion-menu-toggle auto-hide=\"false\" *ngIf=\"item.mode !== 'divider'\">\n <ion-item *ngIf=\"!item.component\"\n [routerDirection]=\"'root'\"\n [routerLink]=\"[item.route ? item.route : '']\"\n (click)=\"item.click && item.click(item)\"\n [class.active-item]=\"selectedPath == item.route\"\n >\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n <ng-container *ngIf=\"item.caption\">{{ item.caption | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"item.infos\">\n <ion-chip slot=\"end\" *ngFor=\"let info of item.infos\">{{ info.text }}</ion-chip>\n </ng-container>\n </ion-item>\n <ion-item *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ion-item>\n </ion-menu-toggle>\n\n <ion-item-divider *ngIf=\"item.mode === 'divider'\">\n <ion-label *ngIf=\"item.caption\">\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n {{ item.caption | translate }}\n </ion-label>\n\n <ng-container *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ng-container>\n </ion-item-divider>\n </ng-container>\n </ion-list>\n </ion-content>\n\n <ion-footer>\n <ion-list *ngIf=\"logged$ | async\">\n <ion-item-divider title=\"{{username$ | async}}\">\n <ion-icon name=\"person\" slot=\"start\"></ion-icon>\n <ion-label class=\"label\">\n {{ \"APP.logged\" | translate }}{{': '}}\n <strong>{{username$ | async}}</strong>\n </ion-label>\n </ion-item-divider>\n <ion-item button (click)=\"logout()\">\n <ion-icon name=\"log-out\" slot=\"start\"></ion-icon>\n {{ \"APP.logout\" | translate }}\n </ion-item>\n </ion-list>\n </ion-footer>\n </ion-menu>\n\n <!-- the main content -->\n <div class=\"ion-page\" id=\"menu-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar>\n\n <ion-menu side=\"end\" disabled=\"true\" menuId=\"end\" type=\"overlay\" contentId=\"menu-content\" swipeGesture=\"false\">\n <ng-template #endMenuContainer></ng-template>\n </ion-menu>\n</ion-split-pane>\n", styles: [".active-item{--border-width: .5px;--border-color: var(--ion-text-color) }smart-app-split-panel,ion-progress-bar{width:100%!important}ion-progress-bar{position:absolute;top:0}ion-backdrop{opacity:.5!important}ion-menu{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important}ion-menu ion-toolbar{--ion-background-color: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar.ios{--background: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar .smart-logo{text-align:left;max-width:100%;height:6rem;width:auto}ion-menu ion-toolbar .smart-logo img{height:100%!important;width:auto!important}ion-menu ion-list{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important;padding:0}ion-menu ion-item{--background: linear-gradient(90deg, #FFF, #ededed) !important;--background-hover: linear-gradient(90deg, transparent, var(--smart-color-primary))}ion-menu ion-item ion-icon{margin-left:1.6rem;margin-right:1.6rem}ion-menu ion-item.active-item{--border-width: 0;--border-color: var(--ion-color-light-shade);--ion-background-color: linear-gradient(90deg, transparent, var(--ion-background-color));--color: var(--ion-color-primary);--background: var(--ion-background-color, #fff) !important;font-weight:500}ion-menu ion-item.active-item ion-icon{--ion-text-color: var(--ion-color-primary)}ion-menu ion-item.active-item .item-native{--ion-background-color: linear-gradient(90deg, #FFF, #ededed)}ion-menu ion-item-divider{font-weight:300;font-size:1.2rem}ion-menu ion-item-divider ion-icon{margin-left:1.6rem;margin-right:1.6rem;font-size:1.6rem;--ion-text-color: var(--ion-color-primary)}ion-menu ion-item-divider span{width:100%;word-break:normal}ion-menu ion-item-divider ion-label.label{max-height:2.8rem;white-space:normal;overflow:hidden;text-align:left;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-left:.6rem}ion-menu ion-item-divider ion-label{margin-left:1.6rem;--padding: var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}\n"], dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.IonChip, selector: "ion-chip", inputs: ["color", "disabled", "mode", "outline"] }, { kind: "component", type: i7.IonCol, selector: "ion-col", inputs: ["offset", "offsetLg", "offsetMd", "offsetSm", "offsetXl", "offsetXs", "pull", "pullLg", "pullMd", "pullSm", "pullXl", "pullXs", "push", "pushLg", "pushMd", "pushSm", "pushXl", "pushXs", "size", "sizeLg", "sizeMd", "sizeSm", "sizeXl", "sizeXs"] }, { kind: "component", type: i7.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i7.IonFooter, selector: "ion-footer", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i7.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i7.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i7.IonImg, selector: "ion-img", inputs: ["alt", "src"] }, { kind: "component", type: i7.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "counterFormatter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { kind: "component", type: i7.IonItemDivider, selector: "ion-item-divider", inputs: ["color", "mode", "sticky"] }, { kind: "component", type: i7.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i7.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: i7.IonMenu, selector: "ion-menu", inputs: ["contentId", "disabled", "maxEdgeStart", "menuId", "side", "swipeGesture", "type"] }, { kind: "component", type: i7.IonMenuToggle, selector: "ion-menu-toggle", inputs: ["autoHide", "menu"] }, { kind: "component", type: i7.IonProgressBar, selector: "ion-progress-bar", inputs: ["buffer", "color", "mode", "reversed", "type", "value"] }, { kind: "component", type: i7.IonSplitPane, selector: "ion-split-pane", inputs: ["contentId", "disabled", "when"] }, { kind: "component", type: i7.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: i7.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "directive", type: i7.RouterLinkDelegate, selector: ":not(a):not(area)[routerLink]", inputs: ["routerDirection", "routerAnimation"] }, { kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i8.DynamicComponent, selector: "smart-dynamic", inputs: ["component"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i9.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
30
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: AppSplitPanelComponent, selector: "smart-app-split-panel", viewQueries: [{ propertyName: "listRef", first: true, predicate: ["listRef"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<!-- <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar> -->\n<!-- <ion-split-pane contentId=\"menu-content\" [ngStyle]=\"{'margin-top': loadingPage ? '4px' : '0'}\"> -->\n<ion-split-pane contentId=\"menu-content\">\n <!-- our side menu -->\n <ion-menu menuId=\"start\" contentId=\"menu-content\" [disabled]=\"!(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async))\">\n <ion-header>\n <ion-toolbar>\n <ion-title>\n <ion-col size=\"auto\" *ngIf=\"logo\" class=\"smart-logo-container\">\n <ion-img *ngIf=\"logo\" [src]=\"logo\" class=\"smart-logo\"></ion-img>\n </ion-col>\n <ng-container *ngIf=\"!logo\">MENU</ng-container>\n </ion-title>\n </ion-toolbar>\n </ion-header>\n\n <ion-content>\n <ion-list #listRef>\n <ng-container *ngFor=\"let item of menuItems$ | async\">\n <ion-menu-toggle auto-hide=\"false\" *ngIf=\"item.mode !== 'divider'\">\n <ion-item *ngIf=\"!item.component\"\n [routerDirection]=\"'root'\"\n [routerLink]=\"[item.route ? item.route : '']\"\n (click)=\"item.click && item.click(item)\"\n [class.active-item]=\"selectedPath == item.route\"\n >\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n <ng-container *ngIf=\"item.caption\">{{ item.caption | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"item.infos\">\n <ion-chip slot=\"end\" *ngFor=\"let info of item.infos\">{{ info.text }}</ion-chip>\n </ng-container>\n </ion-item>\n <ion-item *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ion-item>\n </ion-menu-toggle>\n\n <ion-item-divider *ngIf=\"item.mode === 'divider'\">\n <ion-label *ngIf=\"item.caption\">\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n {{ item.caption | translate }}\n </ion-label>\n\n <ng-container *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ng-container>\n </ion-item-divider>\n </ng-container>\n </ion-list>\n </ion-content>\n\n <ion-footer>\n <ion-list *ngIf=\"logged$ | async\">\n <ion-item-divider title=\"{{username$ | async}}\">\n <ion-icon name=\"person\" slot=\"start\"></ion-icon>\n <ion-label class=\"label\">\n {{ \"APP.logged\" | translate }}{{': '}}\n <strong>{{username$ | async}}</strong>\n </ion-label>\n </ion-item-divider>\n <ion-item button (click)=\"logout()\">\n <ion-icon name=\"log-out\" slot=\"start\"></ion-icon>\n {{ \"APP.logout\" | translate }}\n </ion-item>\n </ion-list>\n </ion-footer>\n </ion-menu>\n\n <!-- the main content -->\n <div id=\"menu-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar>\n\n <ion-menu side=\"end\" disabled=\"true\" menuId=\"end\" type=\"overlay\" contentId=\"menu-content\" swipeGesture=\"false\">\n <ng-template #endMenuContainer></ng-template>\n </ion-menu>\n</ion-split-pane>\n", styles: [".active-item{--border-width: .5px;--border-color: var(--ion-text-color) }smart-app-split-panel,ion-progress-bar{width:100%!important}ion-progress-bar{position:absolute;top:0}ion-backdrop{opacity:.5!important}ion-menu{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important}ion-menu ion-toolbar{--ion-background-color: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar.ios{--background: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar .smart-logo{text-align:left;max-width:100%;height:6rem;width:auto}ion-menu ion-toolbar .smart-logo img{height:100%!important;width:auto!important}ion-menu ion-list{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important;padding:0}ion-menu ion-item{--background: linear-gradient(90deg, #FFF, #ededed) !important;--background-hover: linear-gradient(90deg, transparent, var(--smart-color-primary))}ion-menu ion-item ion-icon{margin-left:1.6rem;margin-right:1.6rem}ion-menu ion-item.active-item{--border-width: 0;--border-color: var(--ion-color-light-shade);--ion-background-color: linear-gradient(90deg, transparent, var(--ion-background-color));--color: var(--ion-color-primary);--background: var(--ion-background-color, #fff) !important;font-weight:500}ion-menu ion-item.active-item ion-icon{--ion-text-color: var(--ion-color-primary)}ion-menu ion-item.active-item .item-native{--ion-background-color: linear-gradient(90deg, #FFF, #ededed)}ion-menu ion-item-divider{font-weight:300;font-size:1.2rem}ion-menu ion-item-divider ion-icon{margin-left:1.6rem;margin-right:1.6rem;font-size:1.6rem;--ion-text-color: var(--ion-color-primary)}ion-menu ion-item-divider span{width:100%;word-break:normal}ion-menu ion-item-divider ion-label.label{max-height:2.8rem;white-space:normal;overflow:hidden;text-align:left;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-left:.6rem}ion-menu ion-item-divider ion-label{margin-left:1.6rem;--padding: var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}\n"], dependencies: [{ kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i7.IonChip, selector: "ion-chip", inputs: ["color", "disabled", "mode", "outline"] }, { kind: "component", type: i7.IonCol, selector: "ion-col", inputs: ["offset", "offsetLg", "offsetMd", "offsetSm", "offsetXl", "offsetXs", "pull", "pullLg", "pullMd", "pullSm", "pullXl", "pullXs", "push", "pushLg", "pushMd", "pushSm", "pushXl", "pushXs", "size", "sizeLg", "sizeMd", "sizeSm", "sizeXl", "sizeXs"] }, { kind: "component", type: i7.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i7.IonFooter, selector: "ion-footer", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i7.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i7.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i7.IonImg, selector: "ion-img", inputs: ["alt", "src"] }, { kind: "component", type: i7.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "counterFormatter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { kind: "component", type: i7.IonItemDivider, selector: "ion-item-divider", inputs: ["color", "mode", "sticky"] }, { kind: "component", type: i7.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i7.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: i7.IonMenu, selector: "ion-menu", inputs: ["contentId", "disabled", "maxEdgeStart", "menuId", "side", "swipeGesture", "type"] }, { kind: "component", type: i7.IonMenuToggle, selector: "ion-menu-toggle", inputs: ["autoHide", "menu"] }, { kind: "component", type: i7.IonProgressBar, selector: "ion-progress-bar", inputs: ["buffer", "color", "mode", "reversed", "type", "value"] }, { kind: "component", type: i7.IonSplitPane, selector: "ion-split-pane", inputs: ["contentId", "disabled", "when"] }, { kind: "component", type: i7.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: i7.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "directive", type: i7.RouterLinkDelegate, selector: ":not(a):not(area)[routerLink]", inputs: ["routerDirection", "routerAnimation"] }, { kind: "directive", type: i1.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i8.DynamicComponent, selector: "smart-dynamic", inputs: ["component"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i9.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
31
|
}
|
|
32
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AppSplitPanelComponent, decorators: [{
|
|
33
33
|
type: Component,
|
|
34
|
-
args: [{ selector: "smart-app-split-panel", changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar> -->\n<!-- <ion-split-pane contentId=\"menu-content\" [ngStyle]=\"{'margin-top': loadingPage ? '4px' : '0'}\"> -->\n<ion-split-pane contentId=\"menu-content\">\n <!-- our side menu -->\n <ion-menu menuId=\"start\" contentId=\"menu-content\" [disabled]=\"!(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async))\">\n <ion-header>\n <ion-toolbar>\n <ion-title>\n <ion-col size=\"auto\" *ngIf=\"logo\" class=\"smart-logo-container\">\n
|
|
34
|
+
args: [{ selector: "smart-app-split-panel", changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar> -->\n<!-- <ion-split-pane contentId=\"menu-content\" [ngStyle]=\"{'margin-top': loadingPage ? '4px' : '0'}\"> -->\n<ion-split-pane contentId=\"menu-content\">\n <!-- our side menu -->\n <ion-menu menuId=\"start\" contentId=\"menu-content\" [disabled]=\"!(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async))\">\n <ion-header>\n <ion-toolbar>\n <ion-title>\n <ion-col size=\"auto\" *ngIf=\"logo\" class=\"smart-logo-container\">\n <ion-img *ngIf=\"logo\" [src]=\"logo\" class=\"smart-logo\"></ion-img>\n </ion-col>\n <ng-container *ngIf=\"!logo\">MENU</ng-container>\n </ion-title>\n </ion-toolbar>\n </ion-header>\n\n <ion-content>\n <ion-list #listRef>\n <ng-container *ngFor=\"let item of menuItems$ | async\">\n <ion-menu-toggle auto-hide=\"false\" *ngIf=\"item.mode !== 'divider'\">\n <ion-item *ngIf=\"!item.component\"\n [routerDirection]=\"'root'\"\n [routerLink]=\"[item.route ? item.route : '']\"\n (click)=\"item.click && item.click(item)\"\n [class.active-item]=\"selectedPath == item.route\"\n >\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n <ng-container *ngIf=\"item.caption\">{{ item.caption | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"item.infos\">\n <ion-chip slot=\"end\" *ngFor=\"let info of item.infos\">{{ info.text }}</ion-chip>\n </ng-container>\n </ion-item>\n <ion-item *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ion-item>\n </ion-menu-toggle>\n\n <ion-item-divider *ngIf=\"item.mode === 'divider'\">\n <ion-label *ngIf=\"item.caption\">\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n {{ item.caption | translate }}\n </ion-label>\n\n <ng-container *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ng-container>\n </ion-item-divider>\n </ng-container>\n </ion-list>\n </ion-content>\n\n <ion-footer>\n <ion-list *ngIf=\"logged$ | async\">\n <ion-item-divider title=\"{{username$ | async}}\">\n <ion-icon name=\"person\" slot=\"start\"></ion-icon>\n <ion-label class=\"label\">\n {{ \"APP.logged\" | translate }}{{': '}}\n <strong>{{username$ | async}}</strong>\n </ion-label>\n </ion-item-divider>\n <ion-item button (click)=\"logout()\">\n <ion-icon name=\"log-out\" slot=\"start\"></ion-icon>\n {{ \"APP.logout\" | translate }}\n </ion-item>\n </ion-list>\n </ion-footer>\n </ion-menu>\n\n <!-- the main content -->\n <div id=\"menu-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar>\n\n <ion-menu side=\"end\" disabled=\"true\" menuId=\"end\" type=\"overlay\" contentId=\"menu-content\" swipeGesture=\"false\">\n <ng-template #endMenuContainer></ng-template>\n </ion-menu>\n</ion-split-pane>\n", styles: [".active-item{--border-width: .5px;--border-color: var(--ion-text-color) }smart-app-split-panel,ion-progress-bar{width:100%!important}ion-progress-bar{position:absolute;top:0}ion-backdrop{opacity:.5!important}ion-menu{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important}ion-menu ion-toolbar{--ion-background-color: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar.ios{--background: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar .smart-logo{text-align:left;max-width:100%;height:6rem;width:auto}ion-menu ion-toolbar .smart-logo img{height:100%!important;width:auto!important}ion-menu ion-list{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important;padding:0}ion-menu ion-item{--background: linear-gradient(90deg, #FFF, #ededed) !important;--background-hover: linear-gradient(90deg, transparent, var(--smart-color-primary))}ion-menu ion-item ion-icon{margin-left:1.6rem;margin-right:1.6rem}ion-menu ion-item.active-item{--border-width: 0;--border-color: var(--ion-color-light-shade);--ion-background-color: linear-gradient(90deg, transparent, var(--ion-background-color));--color: var(--ion-color-primary);--background: var(--ion-background-color, #fff) !important;font-weight:500}ion-menu ion-item.active-item ion-icon{--ion-text-color: var(--ion-color-primary)}ion-menu ion-item.active-item .item-native{--ion-background-color: linear-gradient(90deg, #FFF, #ededed)}ion-menu ion-item-divider{font-weight:300;font-size:1.2rem}ion-menu ion-item-divider ion-icon{margin-left:1.6rem;margin-right:1.6rem;font-size:1.6rem;--ion-text-color: var(--ion-color-primary)}ion-menu ion-item-divider span{width:100%;word-break:normal}ion-menu ion-item-divider ion-label.label{max-height:2.8rem;white-space:normal;overflow:hidden;text-align:left;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-left:.6rem}ion-menu ion-item-divider ion-label{margin-left:1.6rem;--padding: var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}\n"] }]
|
|
35
35
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i2.StyleService }, { type: i3.MenuService }, { type: i4.AuthService }, { type: i5.AppService }, { type: undefined, decorators: [{
|
|
36
36
|
type: Inject,
|
|
37
37
|
args: [PLATFORM_ID]
|
|
@@ -42,4 +42,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
|
|
|
42
42
|
type: ViewChild,
|
|
43
43
|
args: ['listRef', { read: ElementRef }]
|
|
44
44
|
}] } });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BsaXQtcGFuZWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9zaGFyZWQvYW5ndWxhci9zcmMvbGliL2NvbXBvbmVudHMvYXBwL3NwbGl0LXBhbmVsL3NwbGl0LXBhbmVsLmNvbXBv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gPCEtLSAgb3VyIHNpZGUgbWVudSAgLS0+XG4gICAgPGlvbi1tZW51IG1lbnVJZD1cInN0YXJ0XCIgY29udGVudElkPVwibWVudS1jb250ZW50XCIgW2Rpc2FibGVkXT1cIiEoc2hvd01lbnUkIHwgYXN5bmMpIHx8ICghKG1lbnVJdGVtcyQgfCBhc3luYyk/Lmxlbmd0aCAmJiAhKGxvZ2dlZCQgfCBhc3luYykpXCI+XG4gICAgICAgIDxpb24taGVhZGVyPlxuICAgICAgICAgICAgPGlvbi10b29sYmFyPlxuICAgICAgICAgICAgICAgIDxpb24tdGl0bGU+XG4gICAgICAgICAgICAgICAgICAgIDxpb24tY29sIHNpemU9XCJhdXRvXCIgKm5nSWY9XCJsb2dvXCIgY2xhc3M9XCJzbWFydC1sb2dvLWNvbnRhaW5lclwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgPGlvbi1pbWcgKm5nSWY9XCJsb2dvXCIgW3NyY109XCJsb2dvXCIgY2xhc3M9XCJzbWFydC1sb2dvXCI+PC9pb24taW1nPlxuICAgICAgICAgICAgICAgICAgICA8L2lvbi1jb2w+XG4gICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCIhbG9nb1wiPk1FTlU8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICA8L2lvbi10aXRsZT5cbiAgICAgICAgICAgIDwvaW9uLXRvb2xiYXI+XG4gICAgICAgIDwvaW9uLWhlYWRlcj5cblxuICAgICAgICA8aW9uLWNvbnRlbnQ+XG4gICAgICAgICAgICA8aW9uLWxpc3QgI2xpc3RSZWY+XG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdGb3I9XCJsZXQgaXRlbSBvZiBtZW51SXRlbXMkIHwgYXN5bmNcIj5cbiAgICAgICAgICAgICAgICAgICAgPGlvbi1tZW51LXRvZ2dsZSBhdXRvLWhpZGU9XCJmYWxzZVwiICpuZ0lmPVwiaXRlbS5tb2RlICE9PSAnZGl2aWRlcidcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxpb24taXRlbSAqbmdJZj1cIiFpdGVtLmNvbXBvbmVudFwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3JvdXRlckRpcmVjdGlvbl09XCIncm9vdCdcIlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtyb3V0ZXJMaW5rXT1cIltpdGVtLnJvdXRlID8gaXRlbS5yb3V0ZSA6ICcnXVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cIml0ZW0uY2xpY2sgJiYgaXRlbS5jbGljayhpdGVtKVwiXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW2NsYXNzLmFjdGl2ZS1pdGVtXT1cInNlbGVjdGVkUGF0aCA9PSBpdGVtLnJvdXRlXCJcbiAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8aW9uLWljb24gKm5nSWY9XCJpdGVtLmljb25cIiBbY29sb3JdPVwic2VsZWN0ZWRQYXRoID09IGl0ZW0ucm91dGUgPyAncHJpbWFyeScgOiAnJ1wiIFtuYW1lXT1cIml0ZW0uaWNvblwiIHNsb3Q9XCJzdGFydFwiPjwvaW9uLWljb24+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIml0ZW0uY2FwdGlvblwiPnt7IGl0ZW0uY2FwdGlvbiB8IHRyYW5zbGF0ZSB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cIml0ZW0uaW5mb3NcIj5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlvbi1jaGlwIHNsb3Q9XCJlbmRcIiAqbmdGb3I9XCJsZXQgaW5mbyBvZiBpdGVtLmluZm9zXCI+e3sgaW5mby50ZXh0IH19PC9pb24tY2hpcD5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgICAgIDwvaW9uLWl0ZW0+XG4gICAgICAgICAgICAgICAgICAgICAgICA8aW9uLWl0ZW0gKm5nSWY9XCJpdGVtLmNvbXBvbmVudFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzbWFydC1keW5hbWljIFtjb21wb25lbnRdPVwiaXRlbS5jb21wb25lbnRcIj48L3NtYXJ0LWR5bmFtaWM+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L2lvbi1pdGVtPlxuICAgICAgICAgICAgICAgICAgICA8L2lvbi1tZW51LXRvZ2dsZT5cblxuICAgICAgICAgICAgICAgICAgICA8aW9uLWl0ZW0tZGl2aWRlciAqbmdJZj1cIml0ZW0ubW9kZSA9PT0gJ2RpdmlkZXInXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICA8aW9uLWxhYmVsICpuZ0lmPVwiaXRlbS5jYXB0aW9uXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPGlvbi1pY29uICpuZ0lmPVwiaXRlbS5pY29uXCIgW2NvbG9yXT1cInNlbGVjdGVkUGF0aCA9PSBpdGVtLnJvdXRlID8gJ3ByaW1hcnknIDogJydcIiBbbmFtZV09XCJpdGVtLmljb25cIiBzbG90PVwic3RhcnRcIj48L2lvbi1pY29uPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHt7IGl0ZW0uY2FwdGlvbiB8IHRyYW5zbGF0ZSB9fVxuICAgICAgICAgICAgICAgICAgICAgICAgPC9pb24tbGFiZWw+XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIDxuZy1jb250YWluZXIgKm5nSWY9XCJpdGVtLmNvbXBvbmVudFwiPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzbWFydC1keW5hbWljIFtjb21wb25lbnRdPVwiaXRlbS5jb21wb25lbnRcIj48L3NtYXJ0LWR5bmFtaWM+XG4gICAgICAgICAgICAgICAgICAgICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgICAgICAgICAgPC9pb24taXRlbS1kaXZpZGVyPlxuICAgICAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPC9pb24tbGlzdD5cbiAgICAgICAgPC9pb24tY29udGVudD5cblxuICAgICAgICA8aW9uLWZvb3Rlcj5cbiAgICAgICAgICAgIDxpb24tbGlzdCAqbmdJZj1cImxvZ2dlZCQgfCBhc3luY1wiPlxuICAgICAgICAgICAgICAgIDxpb24taXRlbS1kaXZpZGVyIHRpdGxlPVwie3t1c2VybmFtZSQgfCBhc3luY319XCI+XG4gICAgICAgICAgICAgICAgICAgIDxpb24taWNvbiBuYW1lPVwicGVyc29uXCIgc2xvdD1cInN0YXJ0XCI+PC9pb24taWNvbj5cbiAgICAgICAgICAgICAgICAgICAgPGlvbi1sYWJlbCBjbGFzcz1cImxhYmVsXCI+XG4gICAgICAgICAgICAgICAgICAgICAgICB7eyBcIkFQUC5sb2dnZWRcIiB8IHRyYW5zbGF0ZSB9fXt7JzogJ319XG4gICAgICAgICAgICAgICAgICAgICAgICA8c3Ryb25nPnt7dXNlcm5hbWUkIHwgYXN5bmN9fTwvc3Ryb25nPlxuICAgICAgICAgICAgICAgICAgICA8L2lvbi1sYWJlbD5cbiAgICAgICAgICAgICAgICA8L2lvbi1pdGVtLWRpdmlkZXI+XG4gICAgICAgICAgICAgICAgPGlvbi1pdGVtIGJ1dHRvbiAoY2xpY2spPVwibG9nb3V0KClcIj5cbiAgICAgICAgICAgICAgICAgICAgPGlvbi1pY29uIG5hbWU9XCJsb2ctb3V0XCIgc2xvdD1cInN0YXJ0XCI+PC9pb24taWNvbj5cbiAgICAgICAgICAgICAgICAgICAge3sgXCJBUFAubG9nb3V0XCIgfCB0cmFuc2xhdGUgfX1cbiAgICAgICAgICAgICAgICA8L2lvbi1pdGVtPlxuICAgICAgICAgICAgPC9pb24tbGlzdD5cbiAgICAgICAgPC9pb24tZm9vdGVyPlxuICAgIDwvaW9uLW1lbnU+XG5cbiAgICA8IS0tIHRoZSBtYWluIGNvbnRlbnQgLS0+XG4gICAgPGRpdiBpZD1cIm1lbnUtY29udGVudFwiPlxuICAgICAgICA8cm91dGVyLW91dGxldD48L3JvdXRlci1vdXRsZXQ+XG4gICAgPC9kaXY+XG5cbiAgICA8aW9uLXByb2dyZXNzLWJhciAqbmdJZj1cImxvYWRpbmdQYWdlXCIgY29sb3I9XCJwcmltYXJ5XCIgdHlwZT1cImluZGV0ZXJtaW5hdGVcIj48L2lvbi1wcm9ncmVzcy1iYXI+XG5cbiAgICA8aW9uLW1lbnUgc2lkZT1cImVuZFwiIGRpc2FibGVkPVwidHJ1ZVwiIG1lbnVJZD1cImVuZFwiIHR5cGU9XCJvdmVybGF5XCIgY29udGVudElkPVwibWVudS1jb250ZW50XCIgc3dpcGVHZXN0dXJlPVwiZmFsc2VcIj5cbiAgICAgICAgPG5nLXRlbXBsYXRlICNlbmRNZW51Q29udGFpbmVyPjwvbmctdGVtcGxhdGU+XG4gICAgPC9pb24tbWVudT5cbjwvaW9uLXNwbGl0LXBhbmU+XG4iXX0=
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output,
|
|
2
|
-
import { UntypedFormControl } from
|
|
3
|
-
import { Subscription } from
|
|
4
|
-
import { IonSearchbar } from
|
|
5
|
-
import { debounceTime } from
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, QueryList, ViewChildren, ViewEncapsulation, } from '@angular/core';
|
|
2
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { IonSearchbar } from '@ionic/angular';
|
|
5
|
+
import { debounceTime } from 'rxjs/operators';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
import * as i1 from "@angular/common";
|
|
8
8
|
import * as i2 from "@ionic/angular";
|
|
@@ -15,20 +15,24 @@ export class SearchbarComponent {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
this._subscriptions = new Subscription();
|
|
17
17
|
this.textChange = new EventEmitter();
|
|
18
|
+
this.searchComponents = new QueryList();
|
|
18
19
|
this.control = new UntypedFormControl();
|
|
19
20
|
}
|
|
20
21
|
async setShow() {
|
|
21
22
|
this.show = true;
|
|
22
|
-
await this.searchEl.setFocus();
|
|
23
23
|
}
|
|
24
24
|
tryHide() {
|
|
25
25
|
if (!this.control.value)
|
|
26
26
|
this.show = false;
|
|
27
27
|
}
|
|
28
28
|
ngAfterViewInit() {
|
|
29
|
-
this._subscriptions.add(this.control.valueChanges.pipe(debounceTime(1000)).subscribe(val => {
|
|
29
|
+
this._subscriptions.add(this.control.valueChanges.pipe(debounceTime(1000)).subscribe((val) => {
|
|
30
30
|
this.textChange.emit(val);
|
|
31
31
|
}));
|
|
32
|
+
this._subscriptions.add(this.searchComponents.changes.subscribe((searchComponents) => {
|
|
33
|
+
if (searchComponents.length)
|
|
34
|
+
searchComponents.first.setFocus().then();
|
|
35
|
+
}));
|
|
32
36
|
}
|
|
33
37
|
ngOnDestroy() {
|
|
34
38
|
if (this._subscriptions) {
|
|
@@ -36,19 +40,19 @@ export class SearchbarComponent {
|
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: SearchbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: SearchbarComponent, selector: "smart-searchbar", inputs: { show: "show", text: "text" }, outputs: { textChange: "textChange" }, viewQueries: [{ propertyName: "
|
|
43
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: SearchbarComponent, selector: "smart-searchbar", inputs: { show: "show", text: "text" }, outputs: { textChange: "textChange" }, viewQueries: [{ propertyName: "searchComponents", predicate: IonSearchbar, descendants: true, read: IonSearchbar }], ngImport: i0, template: "<ion-searchbar\n #searchbar\n *ngIf=\"!(!control || !show)\"\n animated\n (ionBlur)=\"tryHide()\"\n [formControl]=\"control\"\n [placeholder]=\"('search' | translate) + '...'\"\n></ion-searchbar>\n<ion-button (click)=\"setShow()\" *ngIf=\"!show\">\n <ion-icon style=\"font-weight: bold\" slot=\"icon-only\" name=\"search\"></ion-icon>\n</ion-button>\n", styles: [".searchbar-input{border-radius:2.1rem;--border-radius: 2.1rem;--background: var(--ion-color-light)}ion-searchbar.ios{display:inline}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonSearchbar, selector: "ion-searchbar", inputs: ["animated", "autocomplete", "autocorrect", "cancelButtonIcon", "cancelButtonText", "clearIcon", "color", "debounce", "disabled", "enterkeyhint", "inputmode", "mode", "placeholder", "searchIcon", "showCancelButton", "showClearButton", "spellcheck", "type", "value"] }, { kind: "directive", type: i2.TextValueAccessor, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
40
44
|
}
|
|
41
45
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: SearchbarComponent, decorators: [{
|
|
42
46
|
type: Component,
|
|
43
|
-
args: [{ selector:
|
|
47
|
+
args: [{ selector: 'smart-searchbar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-searchbar\n #searchbar\n *ngIf=\"!(!control || !show)\"\n animated\n (ionBlur)=\"tryHide()\"\n [formControl]=\"control\"\n [placeholder]=\"('search' | translate) + '...'\"\n></ion-searchbar>\n<ion-button (click)=\"setShow()\" *ngIf=\"!show\">\n <ion-icon style=\"font-weight: bold\" slot=\"icon-only\" name=\"search\"></ion-icon>\n</ion-button>\n", styles: [".searchbar-input{border-radius:2.1rem;--border-radius: 2.1rem;--background: var(--ion-color-light)}ion-searchbar.ios{display:inline}\n"] }]
|
|
44
48
|
}], ctorParameters: function () { return []; }, propDecorators: { show: [{
|
|
45
49
|
type: Input
|
|
46
50
|
}], text: [{
|
|
47
51
|
type: Input
|
|
48
52
|
}], textChange: [{
|
|
49
53
|
type: Output
|
|
50
|
-
}],
|
|
51
|
-
type:
|
|
52
|
-
args: [
|
|
54
|
+
}], searchComponents: [{
|
|
55
|
+
type: ViewChildren,
|
|
56
|
+
args: [IonSearchbar, { read: IonSearchbar }]
|
|
53
57
|
}] } });
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoYmFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc2hhcmVkL2FuZ3VsYXIvc3JjL2xpYi9jb21wb25lbnRzL3NlYXJjaGJhci9zZWFyY2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gfSlcbiAgICApO1xuXG4gICAgdGhpcy5fc3Vic2NyaXB0aW9ucy5hZGQoXG4gICAgICB0aGlzLnNlYXJjaENvbXBvbmVudHMuY2hhbmdlcy5zdWJzY3JpYmUoXG4gICAgICAgIChzZWFyY2hDb21wb25lbnRzOiBRdWVyeUxpc3Q8SW9uU2VhcmNoYmFyPikgPT4ge1xuICAgICAgICAgIGlmIChzZWFyY2hDb21wb25lbnRzLmxlbmd0aCkgc2VhcmNoQ29tcG9uZW50cy5maXJzdC5zZXRGb2N1cygpLnRoZW4oKTtcbiAgICAgICAgfVxuICAgICAgKVxuICAgICk7XG4gIH1cblxuICBuZ09uRGVzdHJveSgpIHtcbiAgICBpZiAodGhpcy5fc3Vic2NyaXB0aW9ucykge1xuICAgICAgdGhpcy5fc3Vic2NyaXB0aW9ucy51bnN1YnNjcmliZSgpO1xuICAgIH1cbiAgfVxufVxuIiwiPGlvbi1zZWFyY2hiYXJcbiAgI3NlYXJjaGJhclxuICAqbmdJZj1cIiEoIWNvbnRyb2wgfHwgIXNob3cpXCJcbiAgYW5pbWF0ZWRcbiAgKGlvbkJsdXIpPVwidHJ5SGlkZSgpXCJcbiAgW2Zvcm1Db250cm9sXT1cImNvbnRyb2xcIlxuICBbcGxhY2Vob2xkZXJdPVwiKCdzZWFyY2gnIHwgdHJhbnNsYXRlKSArICcuLi4nXCJcbj48L2lvbi1zZWFyY2hiYXI+XG48aW9uLWJ1dHRvbiAoY2xpY2spPVwic2V0U2hvdygpXCIgKm5nSWY9XCIhc2hvd1wiPlxuICA8aW9uLWljb24gc3R5bGU9XCJmb250LXdlaWdodDogYm9sZFwiIHNsb3Q9XCJpY29uLW9ubHlcIiBuYW1lPVwic2VhcmNoXCI+PC9pb24taWNvbj5cbjwvaW9uLWJ1dHRvbj5cbiJdfQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { PLATFORM_ID, Injectable, Inject, InjectionToken, Optional, NgModule, Pipe, Type, Directive, ApplicationRef, NgModuleRef, ViewContainerRef, Input, ViewChild, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Output,
|
|
3
|
+
import { PLATFORM_ID, Injectable, Inject, InjectionToken, Optional, NgModule, Pipe, Type, Directive, ApplicationRef, NgModuleRef, ViewContainerRef, Input, ViewChild, EventEmitter, QueryList, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, ViewChildren, TemplateRef, ComponentFactoryResolver, ElementRef, forwardRef, ChangeDetectorRef, HostBinding, inject, HostListener, ContentChildren } from '@angular/core';
|
|
4
4
|
import * as i3 from '@angular/forms';
|
|
5
5
|
import { UntypedFormGroup, Validators, ReactiveFormsModule, UntypedFormControl, NG_VALUE_ACCESSOR, UntypedFormArray, NG_VALIDATORS, FormsModule } from '@angular/forms';
|
|
6
6
|
import * as _ from 'lodash';
|
|
@@ -1679,20 +1679,24 @@ class SearchbarComponent {
|
|
|
1679
1679
|
constructor() {
|
|
1680
1680
|
this._subscriptions = new Subscription();
|
|
1681
1681
|
this.textChange = new EventEmitter();
|
|
1682
|
+
this.searchComponents = new QueryList();
|
|
1682
1683
|
this.control = new UntypedFormControl();
|
|
1683
1684
|
}
|
|
1684
1685
|
async setShow() {
|
|
1685
1686
|
this.show = true;
|
|
1686
|
-
await this.searchEl.setFocus();
|
|
1687
1687
|
}
|
|
1688
1688
|
tryHide() {
|
|
1689
1689
|
if (!this.control.value)
|
|
1690
1690
|
this.show = false;
|
|
1691
1691
|
}
|
|
1692
1692
|
ngAfterViewInit() {
|
|
1693
|
-
this._subscriptions.add(this.control.valueChanges.pipe(debounceTime(1000)).subscribe(val => {
|
|
1693
|
+
this._subscriptions.add(this.control.valueChanges.pipe(debounceTime(1000)).subscribe((val) => {
|
|
1694
1694
|
this.textChange.emit(val);
|
|
1695
1695
|
}));
|
|
1696
|
+
this._subscriptions.add(this.searchComponents.changes.subscribe((searchComponents) => {
|
|
1697
|
+
if (searchComponents.length)
|
|
1698
|
+
searchComponents.first.setFocus().then();
|
|
1699
|
+
}));
|
|
1696
1700
|
}
|
|
1697
1701
|
ngOnDestroy() {
|
|
1698
1702
|
if (this._subscriptions) {
|
|
@@ -1700,20 +1704,20 @@ class SearchbarComponent {
|
|
|
1700
1704
|
}
|
|
1701
1705
|
}
|
|
1702
1706
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: SearchbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1703
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: SearchbarComponent, selector: "smart-searchbar", inputs: { show: "show", text: "text" }, outputs: { textChange: "textChange" }, viewQueries: [{ propertyName: "
|
|
1707
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: SearchbarComponent, selector: "smart-searchbar", inputs: { show: "show", text: "text" }, outputs: { textChange: "textChange" }, viewQueries: [{ propertyName: "searchComponents", predicate: IonSearchbar, descendants: true, read: IonSearchbar }], ngImport: i0, template: "<ion-searchbar\n #searchbar\n *ngIf=\"!(!control || !show)\"\n animated\n (ionBlur)=\"tryHide()\"\n [formControl]=\"control\"\n [placeholder]=\"('search' | translate) + '...'\"\n></ion-searchbar>\n<ion-button (click)=\"setShow()\" *ngIf=\"!show\">\n <ion-icon style=\"font-weight: bold\" slot=\"icon-only\" name=\"search\"></ion-icon>\n</ion-button>\n", styles: [".searchbar-input{border-radius:2.1rem;--border-radius: 2.1rem;--background: var(--ion-color-light)}ion-searchbar.ios{display:inline}\n"], dependencies: [{ kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonButton, selector: "ion-button", inputs: ["buttonType", "color", "disabled", "download", "expand", "fill", "form", "href", "mode", "rel", "routerAnimation", "routerDirection", "shape", "size", "strong", "target", "type"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonSearchbar, selector: "ion-searchbar", inputs: ["animated", "autocomplete", "autocorrect", "cancelButtonIcon", "cancelButtonText", "clearIcon", "color", "debounce", "disabled", "enterkeyhint", "inputmode", "mode", "placeholder", "searchIcon", "showCancelButton", "showClearButton", "spellcheck", "type", "value"] }, { kind: "directive", type: i2.TextValueAccessor, selector: "ion-input:not([type=number]),ion-textarea,ion-searchbar" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1704
1708
|
}
|
|
1705
1709
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: SearchbarComponent, decorators: [{
|
|
1706
1710
|
type: Component,
|
|
1707
|
-
args: [{ selector:
|
|
1711
|
+
args: [{ selector: 'smart-searchbar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ion-searchbar\n #searchbar\n *ngIf=\"!(!control || !show)\"\n animated\n (ionBlur)=\"tryHide()\"\n [formControl]=\"control\"\n [placeholder]=\"('search' | translate) + '...'\"\n></ion-searchbar>\n<ion-button (click)=\"setShow()\" *ngIf=\"!show\">\n <ion-icon style=\"font-weight: bold\" slot=\"icon-only\" name=\"search\"></ion-icon>\n</ion-button>\n", styles: [".searchbar-input{border-radius:2.1rem;--border-radius: 2.1rem;--background: var(--ion-color-light)}ion-searchbar.ios{display:inline}\n"] }]
|
|
1708
1712
|
}], ctorParameters: function () { return []; }, propDecorators: { show: [{
|
|
1709
1713
|
type: Input
|
|
1710
1714
|
}], text: [{
|
|
1711
1715
|
type: Input
|
|
1712
1716
|
}], textChange: [{
|
|
1713
1717
|
type: Output
|
|
1714
|
-
}],
|
|
1715
|
-
type:
|
|
1716
|
-
args: [
|
|
1718
|
+
}], searchComponents: [{
|
|
1719
|
+
type: ViewChildren,
|
|
1720
|
+
args: [IonSearchbar, { read: IonSearchbar }]
|
|
1717
1721
|
}] } });
|
|
1718
1722
|
|
|
1719
1723
|
class PageStandardComponent extends PageBaseComponent {
|
|
@@ -2716,11 +2720,11 @@ class AppSplitPanelComponent extends AppBaseComponent {
|
|
|
2716
2720
|
}
|
|
2717
2721
|
ngOnInit() { }
|
|
2718
2722
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AppSplitPanelComponent, deps: [{ token: i1$3.Router }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: StyleService }, { token: MenuService }, { token: AuthService }, { token: AppService }, { token: PLATFORM_ID }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2719
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: AppSplitPanelComponent, selector: "smart-app-split-panel", viewQueries: [{ propertyName: "listRef", first: true, predicate: ["listRef"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<!-- <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar> -->\n<!-- <ion-split-pane contentId=\"menu-content\" [ngStyle]=\"{'margin-top': loadingPage ? '4px' : '0'}\"> -->\n<ion-split-pane contentId=\"menu-content\">\n <!-- our side menu -->\n <ion-menu menuId=\"start\" contentId=\"menu-content\" [disabled]=\"!(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async))\">\n <ion-header>\n <ion-toolbar>\n <ion-title>\n <ion-col size=\"auto\" *ngIf=\"logo\" class=\"smart-logo-container\">\n ({{ !(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async)) }})\n <ion-img *ngIf=\"logo\" [src]=\"logo\" class=\"smart-logo\"></ion-img>\n </ion-col>\n <ng-container *ngIf=\"!logo\">MENU</ng-container>\n </ion-title>\n </ion-toolbar>\n </ion-header>\n\n <ion-content>\n <ion-list #listRef>\n <ng-container *ngFor=\"let item of menuItems$ | async\">\n <ion-menu-toggle auto-hide=\"false\" *ngIf=\"item.mode !== 'divider'\">\n <ion-item *ngIf=\"!item.component\"\n [routerDirection]=\"'root'\"\n [routerLink]=\"[item.route ? item.route : '']\"\n (click)=\"item.click && item.click(item)\"\n [class.active-item]=\"selectedPath == item.route\"\n >\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n <ng-container *ngIf=\"item.caption\">{{ item.caption | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"item.infos\">\n <ion-chip slot=\"end\" *ngFor=\"let info of item.infos\">{{ info.text }}</ion-chip>\n </ng-container>\n </ion-item>\n <ion-item *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ion-item>\n </ion-menu-toggle>\n\n <ion-item-divider *ngIf=\"item.mode === 'divider'\">\n <ion-label *ngIf=\"item.caption\">\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n {{ item.caption | translate }}\n </ion-label>\n\n <ng-container *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ng-container>\n </ion-item-divider>\n </ng-container>\n </ion-list>\n </ion-content>\n\n <ion-footer>\n <ion-list *ngIf=\"logged$ | async\">\n <ion-item-divider title=\"{{username$ | async}}\">\n <ion-icon name=\"person\" slot=\"start\"></ion-icon>\n <ion-label class=\"label\">\n {{ \"APP.logged\" | translate }}{{': '}}\n <strong>{{username$ | async}}</strong>\n </ion-label>\n </ion-item-divider>\n <ion-item button (click)=\"logout()\">\n <ion-icon name=\"log-out\" slot=\"start\"></ion-icon>\n {{ \"APP.logout\" | translate }}\n </ion-item>\n </ion-list>\n </ion-footer>\n </ion-menu>\n\n <!-- the main content -->\n <div class=\"ion-page\" id=\"menu-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar>\n\n <ion-menu side=\"end\" disabled=\"true\" menuId=\"end\" type=\"overlay\" contentId=\"menu-content\" swipeGesture=\"false\">\n <ng-template #endMenuContainer></ng-template>\n </ion-menu>\n</ion-split-pane>\n", styles: [".active-item{--border-width: .5px;--border-color: var(--ion-text-color) }smart-app-split-panel,ion-progress-bar{width:100%!important}ion-progress-bar{position:absolute;top:0}ion-backdrop{opacity:.5!important}ion-menu{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important}ion-menu ion-toolbar{--ion-background-color: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar.ios{--background: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar .smart-logo{text-align:left;max-width:100%;height:6rem;width:auto}ion-menu ion-toolbar .smart-logo img{height:100%!important;width:auto!important}ion-menu ion-list{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important;padding:0}ion-menu ion-item{--background: linear-gradient(90deg, #FFF, #ededed) !important;--background-hover: linear-gradient(90deg, transparent, var(--smart-color-primary))}ion-menu ion-item ion-icon{margin-left:1.6rem;margin-right:1.6rem}ion-menu ion-item.active-item{--border-width: 0;--border-color: var(--ion-color-light-shade);--ion-background-color: linear-gradient(90deg, transparent, var(--ion-background-color));--color: var(--ion-color-primary);--background: var(--ion-background-color, #fff) !important;font-weight:500}ion-menu ion-item.active-item ion-icon{--ion-text-color: var(--ion-color-primary)}ion-menu ion-item.active-item .item-native{--ion-background-color: linear-gradient(90deg, #FFF, #ededed)}ion-menu ion-item-divider{font-weight:300;font-size:1.2rem}ion-menu ion-item-divider ion-icon{margin-left:1.6rem;margin-right:1.6rem;font-size:1.6rem;--ion-text-color: var(--ion-color-primary)}ion-menu ion-item-divider span{width:100%;word-break:normal}ion-menu ion-item-divider ion-label.label{max-height:2.8rem;white-space:normal;overflow:hidden;text-align:left;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-left:.6rem}ion-menu ion-item-divider ion-label{margin-left:1.6rem;--padding: var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}\n"], dependencies: [{ kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonChip, selector: "ion-chip", inputs: ["color", "disabled", "mode", "outline"] }, { kind: "component", type: i2.IonCol, selector: "ion-col", inputs: ["offset", "offsetLg", "offsetMd", "offsetSm", "offsetXl", "offsetXs", "pull", "pullLg", "pullMd", "pullSm", "pullXl", "pullXs", "push", "pushLg", "pushMd", "pushSm", "pushXl", "pushXs", "size", "sizeLg", "sizeMd", "sizeSm", "sizeXl", "sizeXs"] }, { kind: "component", type: i2.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i2.IonFooter, selector: "ion-footer", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i2.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonImg, selector: "ion-img", inputs: ["alt", "src"] }, { kind: "component", type: i2.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "counterFormatter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { kind: "component", type: i2.IonItemDivider, selector: "ion-item-divider", inputs: ["color", "mode", "sticky"] }, { kind: "component", type: i2.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i2.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: i2.IonMenu, selector: "ion-menu", inputs: ["contentId", "disabled", "maxEdgeStart", "menuId", "side", "swipeGesture", "type"] }, { kind: "component", type: i2.IonMenuToggle, selector: "ion-menu-toggle", inputs: ["autoHide", "menu"] }, { kind: "component", type: i2.IonProgressBar, selector: "ion-progress-bar", inputs: ["buffer", "color", "mode", "reversed", "type", "value"] }, { kind: "component", type: i2.IonSplitPane, selector: "ion-split-pane", inputs: ["contentId", "disabled", "when"] }, { kind: "component", type: i2.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: i2.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "directive", type: i2.RouterLinkDelegate, selector: ":not(a):not(area)[routerLink]", inputs: ["routerDirection", "routerAnimation"] }, { kind: "directive", type: i1$3.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1$3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: DynamicComponent, selector: "smart-dynamic", inputs: ["component"] }, { kind: "pipe", type: i1$4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2723
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.3", type: AppSplitPanelComponent, selector: "smart-app-split-panel", viewQueries: [{ propertyName: "listRef", first: true, predicate: ["listRef"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<!-- <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar> -->\n<!-- <ion-split-pane contentId=\"menu-content\" [ngStyle]=\"{'margin-top': loadingPage ? '4px' : '0'}\"> -->\n<ion-split-pane contentId=\"menu-content\">\n <!-- our side menu -->\n <ion-menu menuId=\"start\" contentId=\"menu-content\" [disabled]=\"!(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async))\">\n <ion-header>\n <ion-toolbar>\n <ion-title>\n <ion-col size=\"auto\" *ngIf=\"logo\" class=\"smart-logo-container\">\n <ion-img *ngIf=\"logo\" [src]=\"logo\" class=\"smart-logo\"></ion-img>\n </ion-col>\n <ng-container *ngIf=\"!logo\">MENU</ng-container>\n </ion-title>\n </ion-toolbar>\n </ion-header>\n\n <ion-content>\n <ion-list #listRef>\n <ng-container *ngFor=\"let item of menuItems$ | async\">\n <ion-menu-toggle auto-hide=\"false\" *ngIf=\"item.mode !== 'divider'\">\n <ion-item *ngIf=\"!item.component\"\n [routerDirection]=\"'root'\"\n [routerLink]=\"[item.route ? item.route : '']\"\n (click)=\"item.click && item.click(item)\"\n [class.active-item]=\"selectedPath == item.route\"\n >\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n <ng-container *ngIf=\"item.caption\">{{ item.caption | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"item.infos\">\n <ion-chip slot=\"end\" *ngFor=\"let info of item.infos\">{{ info.text }}</ion-chip>\n </ng-container>\n </ion-item>\n <ion-item *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ion-item>\n </ion-menu-toggle>\n\n <ion-item-divider *ngIf=\"item.mode === 'divider'\">\n <ion-label *ngIf=\"item.caption\">\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n {{ item.caption | translate }}\n </ion-label>\n\n <ng-container *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ng-container>\n </ion-item-divider>\n </ng-container>\n </ion-list>\n </ion-content>\n\n <ion-footer>\n <ion-list *ngIf=\"logged$ | async\">\n <ion-item-divider title=\"{{username$ | async}}\">\n <ion-icon name=\"person\" slot=\"start\"></ion-icon>\n <ion-label class=\"label\">\n {{ \"APP.logged\" | translate }}{{': '}}\n <strong>{{username$ | async}}</strong>\n </ion-label>\n </ion-item-divider>\n <ion-item button (click)=\"logout()\">\n <ion-icon name=\"log-out\" slot=\"start\"></ion-icon>\n {{ \"APP.logout\" | translate }}\n </ion-item>\n </ion-list>\n </ion-footer>\n </ion-menu>\n\n <!-- the main content -->\n <div id=\"menu-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar>\n\n <ion-menu side=\"end\" disabled=\"true\" menuId=\"end\" type=\"overlay\" contentId=\"menu-content\" swipeGesture=\"false\">\n <ng-template #endMenuContainer></ng-template>\n </ion-menu>\n</ion-split-pane>\n", styles: [".active-item{--border-width: .5px;--border-color: var(--ion-text-color) }smart-app-split-panel,ion-progress-bar{width:100%!important}ion-progress-bar{position:absolute;top:0}ion-backdrop{opacity:.5!important}ion-menu{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important}ion-menu ion-toolbar{--ion-background-color: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar.ios{--background: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar .smart-logo{text-align:left;max-width:100%;height:6rem;width:auto}ion-menu ion-toolbar .smart-logo img{height:100%!important;width:auto!important}ion-menu ion-list{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important;padding:0}ion-menu ion-item{--background: linear-gradient(90deg, #FFF, #ededed) !important;--background-hover: linear-gradient(90deg, transparent, var(--smart-color-primary))}ion-menu ion-item ion-icon{margin-left:1.6rem;margin-right:1.6rem}ion-menu ion-item.active-item{--border-width: 0;--border-color: var(--ion-color-light-shade);--ion-background-color: linear-gradient(90deg, transparent, var(--ion-background-color));--color: var(--ion-color-primary);--background: var(--ion-background-color, #fff) !important;font-weight:500}ion-menu ion-item.active-item ion-icon{--ion-text-color: var(--ion-color-primary)}ion-menu ion-item.active-item .item-native{--ion-background-color: linear-gradient(90deg, #FFF, #ededed)}ion-menu ion-item-divider{font-weight:300;font-size:1.2rem}ion-menu ion-item-divider ion-icon{margin-left:1.6rem;margin-right:1.6rem;font-size:1.6rem;--ion-text-color: var(--ion-color-primary)}ion-menu ion-item-divider span{width:100%;word-break:normal}ion-menu ion-item-divider ion-label.label{max-height:2.8rem;white-space:normal;overflow:hidden;text-align:left;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-left:.6rem}ion-menu ion-item-divider ion-label{margin-left:1.6rem;--padding: var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}\n"], dependencies: [{ kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IonChip, selector: "ion-chip", inputs: ["color", "disabled", "mode", "outline"] }, { kind: "component", type: i2.IonCol, selector: "ion-col", inputs: ["offset", "offsetLg", "offsetMd", "offsetSm", "offsetXl", "offsetXs", "pull", "pullLg", "pullMd", "pullSm", "pullXl", "pullXs", "push", "pushLg", "pushMd", "pushSm", "pushXl", "pushXs", "size", "sizeLg", "sizeMd", "sizeSm", "sizeXl", "sizeXs"] }, { kind: "component", type: i2.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i2.IonFooter, selector: "ion-footer", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i2.IonHeader, selector: "ion-header", inputs: ["collapse", "mode", "translucent"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonImg, selector: "ion-img", inputs: ["alt", "src"] }, { kind: "component", type: i2.IonItem, selector: "ion-item", inputs: ["button", "color", "counter", "counterFormatter", "detail", "detailIcon", "disabled", "download", "fill", "href", "lines", "mode", "rel", "routerAnimation", "routerDirection", "shape", "target", "type"] }, { kind: "component", type: i2.IonItemDivider, selector: "ion-item-divider", inputs: ["color", "mode", "sticky"] }, { kind: "component", type: i2.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i2.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "component", type: i2.IonMenu, selector: "ion-menu", inputs: ["contentId", "disabled", "maxEdgeStart", "menuId", "side", "swipeGesture", "type"] }, { kind: "component", type: i2.IonMenuToggle, selector: "ion-menu-toggle", inputs: ["autoHide", "menu"] }, { kind: "component", type: i2.IonProgressBar, selector: "ion-progress-bar", inputs: ["buffer", "color", "mode", "reversed", "type", "value"] }, { kind: "component", type: i2.IonSplitPane, selector: "ion-split-pane", inputs: ["contentId", "disabled", "when"] }, { kind: "component", type: i2.IonTitle, selector: "ion-title", inputs: ["color", "size"] }, { kind: "component", type: i2.IonToolbar, selector: "ion-toolbar", inputs: ["color", "mode"] }, { kind: "directive", type: i2.RouterLinkDelegate, selector: ":not(a):not(area)[routerLink]", inputs: ["routerDirection", "routerAnimation"] }, { kind: "directive", type: i1$3.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "directive", type: i1$3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: DynamicComponent, selector: "smart-dynamic", inputs: ["component"] }, { kind: "pipe", type: i1$4.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2720
2724
|
}
|
|
2721
2725
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AppSplitPanelComponent, decorators: [{
|
|
2722
2726
|
type: Component,
|
|
2723
|
-
args: [{ selector: "smart-app-split-panel", changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar> -->\n<!-- <ion-split-pane contentId=\"menu-content\" [ngStyle]=\"{'margin-top': loadingPage ? '4px' : '0'}\"> -->\n<ion-split-pane contentId=\"menu-content\">\n <!-- our side menu -->\n <ion-menu menuId=\"start\" contentId=\"menu-content\" [disabled]=\"!(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async))\">\n <ion-header>\n <ion-toolbar>\n <ion-title>\n <ion-col size=\"auto\" *ngIf=\"logo\" class=\"smart-logo-container\">\n
|
|
2727
|
+
args: [{ selector: "smart-app-split-panel", changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar> -->\n<!-- <ion-split-pane contentId=\"menu-content\" [ngStyle]=\"{'margin-top': loadingPage ? '4px' : '0'}\"> -->\n<ion-split-pane contentId=\"menu-content\">\n <!-- our side menu -->\n <ion-menu menuId=\"start\" contentId=\"menu-content\" [disabled]=\"!(showMenu$ | async) || (!(menuItems$ | async)?.length && !(logged$ | async))\">\n <ion-header>\n <ion-toolbar>\n <ion-title>\n <ion-col size=\"auto\" *ngIf=\"logo\" class=\"smart-logo-container\">\n <ion-img *ngIf=\"logo\" [src]=\"logo\" class=\"smart-logo\"></ion-img>\n </ion-col>\n <ng-container *ngIf=\"!logo\">MENU</ng-container>\n </ion-title>\n </ion-toolbar>\n </ion-header>\n\n <ion-content>\n <ion-list #listRef>\n <ng-container *ngFor=\"let item of menuItems$ | async\">\n <ion-menu-toggle auto-hide=\"false\" *ngIf=\"item.mode !== 'divider'\">\n <ion-item *ngIf=\"!item.component\"\n [routerDirection]=\"'root'\"\n [routerLink]=\"[item.route ? item.route : '']\"\n (click)=\"item.click && item.click(item)\"\n [class.active-item]=\"selectedPath == item.route\"\n >\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n <ng-container *ngIf=\"item.caption\">{{ item.caption | translate }}\n </ng-container>\n\n <ng-container *ngIf=\"item.infos\">\n <ion-chip slot=\"end\" *ngFor=\"let info of item.infos\">{{ info.text }}</ion-chip>\n </ng-container>\n </ion-item>\n <ion-item *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ion-item>\n </ion-menu-toggle>\n\n <ion-item-divider *ngIf=\"item.mode === 'divider'\">\n <ion-label *ngIf=\"item.caption\">\n <ion-icon *ngIf=\"item.icon\" [color]=\"selectedPath == item.route ? 'primary' : ''\" [name]=\"item.icon\" slot=\"start\"></ion-icon>\n {{ item.caption | translate }}\n </ion-label>\n\n <ng-container *ngIf=\"item.component\">\n <smart-dynamic [component]=\"item.component\"></smart-dynamic>\n </ng-container>\n </ion-item-divider>\n </ng-container>\n </ion-list>\n </ion-content>\n\n <ion-footer>\n <ion-list *ngIf=\"logged$ | async\">\n <ion-item-divider title=\"{{username$ | async}}\">\n <ion-icon name=\"person\" slot=\"start\"></ion-icon>\n <ion-label class=\"label\">\n {{ \"APP.logged\" | translate }}{{': '}}\n <strong>{{username$ | async}}</strong>\n </ion-label>\n </ion-item-divider>\n <ion-item button (click)=\"logout()\">\n <ion-icon name=\"log-out\" slot=\"start\"></ion-icon>\n {{ \"APP.logout\" | translate }}\n </ion-item>\n </ion-list>\n </ion-footer>\n </ion-menu>\n\n <!-- the main content -->\n <div id=\"menu-content\">\n <router-outlet></router-outlet>\n </div>\n\n <ion-progress-bar *ngIf=\"loadingPage\" color=\"primary\" type=\"indeterminate\"></ion-progress-bar>\n\n <ion-menu side=\"end\" disabled=\"true\" menuId=\"end\" type=\"overlay\" contentId=\"menu-content\" swipeGesture=\"false\">\n <ng-template #endMenuContainer></ng-template>\n </ion-menu>\n</ion-split-pane>\n", styles: [".active-item{--border-width: .5px;--border-color: var(--ion-text-color) }smart-app-split-panel,ion-progress-bar{width:100%!important}ion-progress-bar{position:absolute;top:0}ion-backdrop{opacity:.5!important}ion-menu{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important}ion-menu ion-toolbar{--ion-background-color: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar.ios{--background: linear-gradient(33deg, var(--ion-color-primary), var(--ion-color-tertiary));--color: var(--ion-color-light)}ion-menu ion-toolbar .smart-logo{text-align:left;max-width:100%;height:6rem;width:auto}ion-menu ion-toolbar .smart-logo img{height:100%!important;width:auto!important}ion-menu ion-list{--ion-background-color: linear-gradient(90deg, #FFF, #ededed) !important;padding:0}ion-menu ion-item{--background: linear-gradient(90deg, #FFF, #ededed) !important;--background-hover: linear-gradient(90deg, transparent, var(--smart-color-primary))}ion-menu ion-item ion-icon{margin-left:1.6rem;margin-right:1.6rem}ion-menu ion-item.active-item{--border-width: 0;--border-color: var(--ion-color-light-shade);--ion-background-color: linear-gradient(90deg, transparent, var(--ion-background-color));--color: var(--ion-color-primary);--background: var(--ion-background-color, #fff) !important;font-weight:500}ion-menu ion-item.active-item ion-icon{--ion-text-color: var(--ion-color-primary)}ion-menu ion-item.active-item .item-native{--ion-background-color: linear-gradient(90deg, #FFF, #ededed)}ion-menu ion-item-divider{font-weight:300;font-size:1.2rem}ion-menu ion-item-divider ion-icon{margin-left:1.6rem;margin-right:1.6rem;font-size:1.6rem;--ion-text-color: var(--ion-color-primary)}ion-menu ion-item-divider span{width:100%;word-break:normal}ion-menu ion-item-divider ion-label.label{max-height:2.8rem;white-space:normal;overflow:hidden;text-align:left;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-left:.6rem}ion-menu ion-item-divider ion-label{margin-left:1.6rem;--padding: var(--smart-button-padding-left)/2 var(--smart-button-padding-top)/2 var(--smart-button-padding-right)/2 var(--smart-button-padding-bottom)/2}\n"] }]
|
|
2724
2728
|
}], ctorParameters: function () { return [{ type: i1$3.Router }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: StyleService }, { type: MenuService }, { type: AuthService }, { type: AppService }, { type: undefined, decorators: [{
|
|
2725
2729
|
type: Inject,
|
|
2726
2730
|
args: [PLATFORM_ID]
|