@smartsoft001/angular 1.2.55 → 1.2.57

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.
@@ -5634,10 +5634,10 @@ class ListDesktopComponent extends ListBaseComponent {
5634
5634
  }
5635
5635
  }
5636
5636
  /** @nocollapse */ ListDesktopComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ListDesktopComponent, deps: [{ token: AuthService }, { token: i2$2.Router }, { token: AlertService }, { token: i0.ChangeDetectorRef }, { token: i3$1.TranslateService }, { token: i5$1.ScrollDispatcher }], target: i0.ɵɵFactoryTarget.Component });
5637
- /** @nocollapse */ ListDesktopComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: ListDesktopComponent, selector: "smart-list-desktop", viewQueries: [{ propertyName: "sortObj", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<div style=\"width: 100%; overflow-y: auto\">\n <table cdk-table matSort [dataSource]=\"(list$ | async)\" recycleRows [trackBy]=\"myTrackById\" style=\"overflow-y: auto\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n class=\"col-sm\" style=\"text-align: left\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\" *ngIf=\"!checkRemoveHandler || checkRemoveHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th cdk-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td cdk-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault class=\"cell-html\" [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td cdk-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n <div style=\"float: right\">\n <ion-chip>\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ion-chip>\n </div>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr cdk-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr cdk-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n </table>\n</div>\n\n<ion-infinite-scroll\n threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>\n", styles: [".cell-details{width:20px}table{width:100%}table .mat-row,table .mat-header-row{background:white;min-width:1200px}.wrapper{height:100%}.mat-row,.mat-header-row{min-width:1200px}.cell-html{min-height:30px;padding-top:6px}\n", ""], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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.IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "mode", "name", "value"] }, { kind: "component", type: i2.IonChip, selector: "ion-chip", inputs: ["color", "disabled", "mode", "outline"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: i2.IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }, { kind: "directive", type: i2.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { kind: "directive", type: DetailsDirective, selector: "[smartDetails]", inputs: ["smartDetails"], outputs: ["smartDetailsShowed", "smartDetailsDismissed"] }, { kind: "directive", type: i9.MatLegacyHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i9.MatLegacyHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i9.MatLegacyColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i9.MatLegacyCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i9.MatLegacyRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i10.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i10.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "directive", type: i7$1.LazyLoadImageDirective, selector: "[lazyLoad]", inputs: ["lazyLoad", "defaultImage", "errorImage", "scrollTarget", "customObservable", "offset", "useSrcset", "decode", "debug"], outputs: ["onStateChange"] }, { kind: "component", type: i12.CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { kind: "directive", type: i12.CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { kind: "component", type: i12.CdkRow, selector: "cdk-row, tr[cdk-row]" }, { kind: "directive", type: i12.CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { kind: "component", type: i12.CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { kind: "directive", type: i12.CdkRecycleRows, selector: "cdk-table[recycleRows], table[cdk-table][recycleRows]" }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["page", "totalPages"], outputs: ["nextPage", "prevPage"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: ListHeaderPipe, name: "smartListHeader" }] });
5637
+ /** @nocollapse */ ListDesktopComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: ListDesktopComponent, selector: "smart-list-desktop", viewQueries: [{ propertyName: "sortObj", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "topTpl", first: true, predicate: ["topTpl"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div #topTpl></div>\n\n<div style=\"width: 100%; overflow-y: auto\">\n <table cdk-table matSort [dataSource]=\"(list$ | async)\" recycleRows [trackBy]=\"myTrackById\" style=\"overflow-y: auto\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n class=\"col-sm\" style=\"text-align: left\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\" *ngIf=\"!checkRemoveHandler || checkRemoveHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th cdk-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td cdk-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault class=\"cell-html\" [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td cdk-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n <div style=\"float: right\">\n <ion-chip>\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ion-chip>\n </div>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr cdk-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr cdk-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n </table>\n</div>\n\n<ion-list *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\">\n <ion-item lines=\"none\">\n <ion-infinite-scroll\n threshold=\"100px\"\n (ionInfinite)=\"loadNextPage($event)\"\n >\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n </ion-infinite-scroll>\n </ion-item>\n</ion-list>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>\n", styles: [".cell-details{width:20px}table{width:100%}table .mat-row,table .mat-header-row{background:white;min-width:1200px}.wrapper{height:100%}.mat-row,.mat-header-row{min-width:1200px}.cell-html{min-height:30px;padding-top:6px}\n", ""], dependencies: [{ kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { 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.IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "mode", "name", "value"] }, { kind: "component", type: i2.IonChip, selector: "ion-chip", inputs: ["color", "disabled", "mode", "outline"] }, { kind: "component", type: i2.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i2.IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: i2.IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }, { 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.IonList, selector: "ion-list", inputs: ["inset", "lines", "mode"] }, { kind: "directive", type: i2.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { kind: "directive", type: DetailsDirective, selector: "[smartDetails]", inputs: ["smartDetails"], outputs: ["smartDetailsShowed", "smartDetailsDismissed"] }, { kind: "directive", type: i9.MatLegacyHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i9.MatLegacyHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i9.MatLegacyColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i9.MatLegacyCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i9.MatLegacyRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i10.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i10.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "directive", type: i7$1.LazyLoadImageDirective, selector: "[lazyLoad]", inputs: ["lazyLoad", "defaultImage", "errorImage", "scrollTarget", "customObservable", "offset", "useSrcset", "decode", "debug"], outputs: ["onStateChange"] }, { kind: "component", type: i12.CdkTable, selector: "cdk-table, table[cdk-table]", inputs: ["trackBy", "dataSource", "multiTemplateDataRows", "fixedLayout"], outputs: ["contentChanged"], exportAs: ["cdkTable"] }, { kind: "directive", type: i12.CdkCell, selector: "cdk-cell, td[cdk-cell]" }, { kind: "component", type: i12.CdkRow, selector: "cdk-row, tr[cdk-row]" }, { kind: "directive", type: i12.CdkHeaderCell, selector: "cdk-header-cell, th[cdk-header-cell]" }, { kind: "component", type: i12.CdkHeaderRow, selector: "cdk-header-row, tr[cdk-header-row]" }, { kind: "directive", type: i12.CdkRecycleRows, selector: "cdk-table[recycleRows], table[cdk-table][recycleRows]" }, { kind: "component", type: PagingComponent, selector: "smart-paging", inputs: ["page", "totalPages"], outputs: ["nextPage", "prevPage"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: ListHeaderPipe, name: "smartListHeader" }] });
5638
5638
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ListDesktopComponent, decorators: [{
5639
5639
  type: Component,
5640
- args: [{ selector: "smart-list-desktop", template: "<div #topTpl></div>\n\n<div style=\"width: 100%; overflow-y: auto\">\n <table cdk-table matSort [dataSource]=\"(list$ | async)\" recycleRows [trackBy]=\"myTrackById\" style=\"overflow-y: auto\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n class=\"col-sm\" style=\"text-align: left\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\" *ngIf=\"!checkRemoveHandler || checkRemoveHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th cdk-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td cdk-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault class=\"cell-html\" [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td cdk-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n <div style=\"float: right\">\n <ion-chip>\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ion-chip>\n </div>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr cdk-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr cdk-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n </table>\n</div>\n\n<ion-infinite-scroll\n threshold=\"100px\"\n *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\"\n (ionInfinite)=\"loadNextPage($event)\"\n>\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n</ion-infinite-scroll>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>\n", styles: [".cell-details{width:20px}table{width:100%}table .mat-row,table .mat-header-row{background:white;min-width:1200px}.wrapper{height:100%}.mat-row,.mat-header-row{min-width:1200px}.cell-html{min-height:30px;padding-top:6px}\n"] }]
5640
+ args: [{ selector: "smart-list-desktop", template: "<div #topTpl></div>\n\n<div style=\"width: 100%; overflow-y: auto\">\n <table cdk-table matSort [dataSource]=\"(list$ | async)\" recycleRows [trackBy]=\"myTrackById\" style=\"overflow-y: auto\">\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n class=\"col-sm\" style=\"text-align: left\"\n >\n <div [ngSwitch]=\"key\">\n\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-checkbox style=\"margin-right: 15px\" *ngIf=\"list$ | async; let list\" (ionChange)=\"onChangeMultiselect($event.detail.checked, element, list)\"></ion-checkbox>\n </td>\n </ng-container>\n\n\n <ng-container *ngSwitchCase=\"'removeAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"removeHandler(element)\" *ngIf=\"!checkRemoveHandler || checkRemoveHandler(element)\">\n <ion-icon slot=\"icon-only\" name=\"trash\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'detailsAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button\n (click)=\"detailsButtonOptions.click()\"\n [smartDetails]=\"{\n component: detailsComponent,\n params: detailsComponentProps,\n mode: 'bottom'\n }\"\n (smartDetailsShowed)=\"select && select(element.id)\"\n >\n <ion-icon slot=\"icon-only\" name=\"ellipsis-vertical-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'itemAction'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef>\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-button (click)=\"itemHandler(element.id)\">\n <ion-icon slot=\"icon-only\" name=\"arrow-forward-outline\"></ion-icon>\n </ion-button>\n </td>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <th cdk-header-cell *matHeaderCellDef mat-sort-header=\"{{ key }}\">\n {{ (list$ | async) | smartListHeader : key : type | async }}\n <ng-container *ngTemplateOutlet=\"pagination\"></ng-container>\n </th>\n <ng-container *matCellDef=\"let element\">\n <td cdk-cell [attr.smart-item-key]=\"key\"\n *ngIf=\"element | smartListCell : key : cellPipe : type; else blankCellTpl; let cell\"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"cell.type === FieldType.image ? 'center' : null\"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img *ngSwitchCase=\"FieldType.image\" height=\"50\" [lazyLoad]=\"cell.value | smartFileUrl\">\n <div *ngSwitchDefault class=\"cell-html\" [innerHTML]=\"cell.value\"></div>\n </ng-container>\n </td>\n <ng-template #blankCellTpl><td cdk-cell></td></ng-template>\n </ng-container>\n </ng-container>\n </div>\n\n <ng-template #pagination>\n <ng-container *ngIf=\"last && loadNextPage && (totalPages$ | async)\">\n <div style=\"float: right\">\n <ion-chip>\n {{ \"page\" | translate }}:\n <b>{{ page$ | async }}/{{ totalPages$ | async }}</b>\n </ion-chip>\n </div>\n </ng-container>\n </ng-template>\n </ng-container>\n\n <tr cdk-header-row *matHeaderRowDef=\"desktopKeys; sticky: true\"></tr>\n <tr cdk-row *matRowDef=\"let row; columns: desktopKeys\"></tr>\n </table>\n</div>\n\n<ion-list *ngIf=\"loadNextPage && (list$ | async)?.length && options.pagination?.mode !== PaginationMode.singlePage\">\n <ion-item lines=\"none\">\n <ion-infinite-scroll\n threshold=\"100px\"\n (ionInfinite)=\"loadNextPage($event)\"\n >\n <ion-infinite-scroll-content loadingSpinner=\"circles\">\n </ion-infinite-scroll-content>\n </ion-infinite-scroll>\n </ion-item>\n</ion-list>\n\n<smart-paging *ngIf=\"options?.pagination?.mode === PaginationMode.singlePage\"\n [page]=\"page$ | async\"\n [totalPages]=\"totalPages$ | async\"\n (prevPage)=\"loadPrevPage()\"\n (nextPage)=\"loadNextPage()\"\n></smart-paging>\n", styles: [".cell-details{width:20px}table{width:100%}table .mat-row,table .mat-header-row{background:white;min-width:1200px}.wrapper{height:100%}.mat-row,.mat-header-row{min-width:1200px}.cell-html{min-height:30px;padding-top:6px}\n"] }]
5641
5641
  }], ctorParameters: function () { return [{ type: AuthService }, { type: i2$2.Router }, { type: AlertService }, { type: i0.ChangeDetectorRef }, { type: i3$1.TranslateService }, { type: i5$1.ScrollDispatcher }]; }, propDecorators: { sortObj: [{
5642
5642
  type: ViewChild,
5643
5643
  args: [MatSort, { static: true }]