@smartsoft001/angular 1.2.62 → 1.2.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/app/split-panel/split-panel.component.mjs +3 -3
- package/esm2020/lib/components/list/base/base.component.mjs +14 -10
- package/fesm2015/smartsoft001-angular.mjs +17 -13
- package/fesm2015/smartsoft001-angular.mjs.map +1 -1
- package/fesm2020/smartsoft001-angular.mjs +16 -12
- package/fesm2020/smartsoft001-angular.mjs.map +1 -1
- package/lib/components/list/base/base.component.d.ts +2 -2
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@ import decode from 'jwt-decode';
|
|
|
11
11
|
import * as i1 from 'ngx-cookie';
|
|
12
12
|
import { CookieModule } from 'ngx-cookie';
|
|
13
13
|
import * as i2 from '@ionic/angular';
|
|
14
|
-
import { IonicModule, IonSearchbar,
|
|
14
|
+
import { IonicModule, IonSearchbar, IonSegment } from '@ionic/angular';
|
|
15
15
|
import * as i1$4 from '@angular/common';
|
|
16
16
|
import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
|
|
17
17
|
import { Storage } from '@ionic/storage';
|
|
@@ -28,7 +28,7 @@ import { of, Subject, BehaviorSubject, Subscription, combineLatest, isObservable
|
|
|
28
28
|
import { TableVirtualScrollDataSource } from 'ng-table-virtual-scroll';
|
|
29
29
|
import * as i1$2 from '@angular/platform-browser';
|
|
30
30
|
import * as i1$3 from '@angular/router';
|
|
31
|
-
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError, RouterModule } from '@angular/router';
|
|
31
|
+
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError, Router, RouterModule } from '@angular/router';
|
|
32
32
|
import * as i2$2 from 'ng-dynamic-component';
|
|
33
33
|
import { DynamicModule } from 'ng-dynamic-component';
|
|
34
34
|
import * as i1$5 from 'ng2-charts';
|
|
@@ -2788,10 +2788,10 @@ class AppSplitPanelComponent extends AppBaseComponent {
|
|
|
2788
2788
|
ngOnInit() { }
|
|
2789
2789
|
}
|
|
2790
2790
|
/** @nocollapse */ AppSplitPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", 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 });
|
|
2791
|
-
/** @nocollapse */ AppSplitPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", 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\" [hidden]=\"!(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 <ion-router-outlet id=\"menu-content\"></ion-router-outlet>\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.IonRouterOutlet, selector: "ion-router-outlet", inputs: ["animated", "animation", "mode", "swipeGesture"], outputs: ["stackEvents", "activate", "deactivate"], exportAs: ["outlet"] }, { kind: "directive", type: i2.RouterLinkDelegate, selector: ":not(a):not(area)[routerLink]", inputs: ["routerDirection", "routerAnimation"] }, { 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 });
|
|
2791
|
+
/** @nocollapse */ AppSplitPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", 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\" [hidden]=\"!(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 class=\"ion-page\" id=\"menu-content\">\n <ion-router-outlet></ion-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.IonRouterOutlet, selector: "ion-router-outlet", inputs: ["animated", "animation", "mode", "swipeGesture"], outputs: ["stackEvents", "activate", "deactivate"], exportAs: ["outlet"] }, { kind: "directive", type: i2.RouterLinkDelegate, selector: ":not(a):not(area)[routerLink]", inputs: ["routerDirection", "routerAnimation"] }, { 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 });
|
|
2792
2792
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: AppSplitPanelComponent, decorators: [{
|
|
2793
2793
|
type: Component,
|
|
2794
|
-
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\" [hidden]=\"!(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 <ion-
|
|
2794
|
+
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\" [hidden]=\"!(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 class=\"ion-page\" id=\"menu-content\">\n <ion-router-outlet></ion-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"] }]
|
|
2795
2795
|
}], ctorParameters: function () { return [{ type: i1$3.Router }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: StyleService }, { type: MenuService }, { type: AuthService }, { type: AppService }, { type: undefined, decorators: [{
|
|
2796
2796
|
type: Inject,
|
|
2797
2797
|
args: [PLATFORM_ID]
|
|
@@ -5295,7 +5295,7 @@ var ListMode;
|
|
|
5295
5295
|
class ListBaseComponent {
|
|
5296
5296
|
constructor() {
|
|
5297
5297
|
this.authService = inject(AuthService);
|
|
5298
|
-
this.
|
|
5298
|
+
this.router = inject(Router);
|
|
5299
5299
|
this.alertService = inject(AlertService);
|
|
5300
5300
|
this.cd = inject(ChangeDetectorRef);
|
|
5301
5301
|
this.translateService = inject(TranslateService);
|
|
@@ -5344,13 +5344,17 @@ class ListBaseComponent {
|
|
|
5344
5344
|
if (val.item) {
|
|
5345
5345
|
if (!val.item['options'])
|
|
5346
5346
|
throw Error('Must set edit options');
|
|
5347
|
-
this.itemHandler =
|
|
5348
|
-
if (val.item['options'].routingPrefix)
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5347
|
+
this.itemHandler = (id) => {
|
|
5348
|
+
if (val.item['options'].routingPrefix) {
|
|
5349
|
+
setTimeout(async () => {
|
|
5350
|
+
await this.router.navigate([
|
|
5351
|
+
val.item['options'].routingPrefix.replace('//', '/'),
|
|
5352
|
+
id,
|
|
5353
|
+
]);
|
|
5354
|
+
this.cd.detectChanges();
|
|
5355
|
+
});
|
|
5356
|
+
}
|
|
5357
|
+
else if (val.item['options'].select)
|
|
5354
5358
|
val.item['options'].select(id);
|
|
5355
5359
|
};
|
|
5356
5360
|
}
|