@smartsoft001/angular 1.2.59 → 1.2.61
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 +1 -1
- package/esm2020/lib/components/date-edit/date-edit.component.mjs +1 -1
- package/esm2020/lib/components/detail/flag/flag.component.mjs +1 -1
- package/esm2020/lib/components/input/address/address.component.mjs +1 -1
- package/esm2020/lib/components/input/check/check.component.mjs +1 -1
- package/esm2020/lib/components/input/currency/currency.component.mjs +1 -1
- package/esm2020/lib/components/input/date/date.component.mjs +1 -1
- package/esm2020/lib/components/input/email/email.component.mjs +1 -1
- package/esm2020/lib/components/input/enum/enum.component.mjs +1 -1
- package/esm2020/lib/components/input/flag/flag.component.mjs +1 -1
- package/esm2020/lib/components/input/float/float.component.mjs +1 -1
- package/esm2020/lib/components/input/int/int.component.mjs +1 -1
- package/esm2020/lib/components/input/ints/ints.component.mjs +1 -1
- package/esm2020/lib/components/input/nip/nip.component.mjs +1 -1
- package/esm2020/lib/components/input/password/password.component.mjs +1 -1
- package/esm2020/lib/components/input/pesel/pesel.component.mjs +1 -1
- package/esm2020/lib/components/input/phone-number/phone-number.component.mjs +1 -1
- package/esm2020/lib/components/input/phone-number-pl/phone-number-pl.component.mjs +1 -1
- package/esm2020/lib/components/input/radio/radio.component.mjs +1 -1
- package/esm2020/lib/components/input/strings/strings.component.mjs +1 -1
- package/esm2020/lib/components/input/text/text.component.mjs +1 -1
- package/esm2020/lib/components/list/desktop/desktop.component.mjs +1 -1
- package/fesm2015/smartsoft001-angular.mjs +22 -22
- package/fesm2015/smartsoft001-angular.mjs.map +1 -1
- package/fesm2020/smartsoft001-angular.mjs +22 -22
- package/fesm2020/smartsoft001-angular.mjs.map +1 -1
- package/package.json +8 -8
|
@@ -111,7 +111,7 @@ export class ListDesktopComponent extends ListBaseComponent {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
/** @nocollapse */ ListDesktopComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ListDesktopComponent, deps: [{ token: i1.AuthService }, { token: i2.Router }, { token: i3.AlertService }, { token: i0.ChangeDetectorRef }, { token: i4.TranslateService }, { token: i5.ScrollDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
114
|
-
/** @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<ion-content>\n <div style=\"width: 100%; overflow-y: auto\">\n <table\n cdk-table\n matSort\n [dataSource]=\"list$ | async\"\n recycleRows\n [trackBy]=\"myTrackById\"\n style=\"overflow-y: auto\"\n >\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n class=\"col-sm\"\n style=\"text-align: left\"\n >\n <div [ngSwitch]=\"key\">\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef></th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-checkbox\n style=\"margin-right: 15px\"\n *ngIf=\"list$ | async; let list\"\n (ionChange)=\"\n onChangeMultiselect($event.detail.checked, element, list)\n \"\n ></ion-checkbox>\n </td>\n </ng-container>\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\n (click)=\"removeHandler(element)\"\n *ngIf=\"!checkRemoveHandler || checkRemoveHandler(element)\"\n >\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\n slot=\"icon-only\"\n name=\"ellipsis-vertical-outline\"\n ></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\n slot=\"icon-only\"\n name=\"arrow-forward-outline\"\n ></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\n cdk-cell\n [attr.smart-item-key]=\"key\"\n *ngIf=\"\n element | smartListCell: key:cellPipe:type;\n else blankCellTpl;\n let cell\n \"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"\n cell.type === FieldType.image ? 'center' : null\n \"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img\n *ngSwitchCase=\"FieldType.image\"\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n />\n <div\n *ngSwitchDefault\n class=\"cell-html\"\n [innerHTML]=\"cell.value\"\n ></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 *ngIf=\"\n loadNextPage &&\n (list$ | async)?.length &&\n options.pagination?.mode !== PaginationMode.singlePage\n \"\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-content>\n\n<smart-paging\n *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: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i6.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i7.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: i7.IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "mode", "name", "value"] }, { kind: "component", type: i7.IonChip, selector: "ion-chip", inputs: ["color", "disabled", "mode", "outline"] }, { kind: "component", type: i7.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i7.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i7.IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: i7.IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }, { kind: "directive", type: i7.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { kind: "directive", type: i8.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: i11.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: i13.PagingComponent, selector: "smart-paging", inputs: ["page", "totalPages"], outputs: ["nextPage", "prevPage"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: i14.ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: i15.FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: i16.ListHeaderPipe, name: "smartListHeader" }] });
|
|
114
|
+
/** @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<ion-content>\n <div style=\"width: 100%; overflow-y: auto\">\n <table\n cdk-table\n matSort\n [dataSource]=\"list$ | async\"\n recycleRows\n [trackBy]=\"myTrackById\"\n style=\"overflow-y: auto\"\n >\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n class=\"col-sm\"\n style=\"text-align: left\"\n >\n <div [ngSwitch]=\"key\">\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef></th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-checkbox\n style=\"margin-right: 15px\"\n *ngIf=\"list$ | async; let list\"\n (ionChange)=\"\n onChangeMultiselect($event.detail.checked, element, list)\n \"\n ></ion-checkbox>\n </td>\n </ng-container>\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\n (click)=\"removeHandler(element)\"\n *ngIf=\"!checkRemoveHandler || checkRemoveHandler(element)\"\n >\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\n slot=\"icon-only\"\n name=\"ellipsis-vertical-outline\"\n ></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\n slot=\"icon-only\"\n name=\"arrow-forward-outline\"\n ></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\n cdk-cell\n [attr.smart-item-key]=\"key\"\n *ngIf=\"\n element | smartListCell: key:cellPipe:type;\n else blankCellTpl;\n let cell\n \"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"\n cell.type === FieldType.image ? 'center' : null\n \"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img\n *ngSwitchCase=\"FieldType.image\"\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n />\n <div\n *ngSwitchDefault\n class=\"cell-html\"\n [innerHTML]=\"cell.value\"\n ></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 *ngIf=\"\n loadNextPage &&\n (list$ | async)?.length &&\n options.pagination?.mode !== PaginationMode.singlePage\n \"\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-content>\n\n<smart-paging\n *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: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i6.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i6.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i6.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i7.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: i7.IonCheckbox, selector: "ion-checkbox", inputs: ["checked", "color", "disabled", "indeterminate", "justify", "labelPlacement", "legacy", "mode", "name", "value"] }, { kind: "component", type: i7.IonChip, selector: "ion-chip", inputs: ["color", "disabled", "mode", "outline"] }, { kind: "component", type: i7.IonContent, selector: "ion-content", inputs: ["color", "forceOverscroll", "fullscreen", "scrollEvents", "scrollX", "scrollY"] }, { kind: "component", type: i7.IonIcon, selector: "ion-icon", inputs: ["color", "flipRtl", "icon", "ios", "lazy", "md", "mode", "name", "sanitize", "size", "src"] }, { kind: "component", type: i7.IonInfiniteScroll, selector: "ion-infinite-scroll", inputs: ["disabled", "position", "threshold"] }, { kind: "component", type: i7.IonInfiniteScrollContent, selector: "ion-infinite-scroll-content", inputs: ["loadingSpinner", "loadingText"] }, { kind: "directive", type: i7.BooleanValueAccessor, selector: "ion-checkbox,ion-toggle" }, { kind: "directive", type: i8.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: i11.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: i13.PagingComponent, selector: "smart-paging", inputs: ["page", "totalPages"], outputs: ["nextPage", "prevPage"] }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.TranslatePipe, name: "translate" }, { kind: "pipe", type: i14.ListCellPipe, name: "smartListCell" }, { kind: "pipe", type: i15.FileUrlPipe, name: "smartFileUrl" }, { kind: "pipe", type: i16.ListHeaderPipe, name: "smartListHeader" }] });
|
|
115
115
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ListDesktopComponent, decorators: [{
|
|
116
116
|
type: Component,
|
|
117
117
|
args: [{ selector: "smart-list-desktop", template: "<div #topTpl></div>\n\n<ion-content>\n <div style=\"width: 100%; overflow-y: auto\">\n <table\n cdk-table\n matSort\n [dataSource]=\"list$ | async\"\n recycleRows\n [trackBy]=\"myTrackById\"\n style=\"overflow-y: auto\"\n >\n <ng-container\n *ngFor=\"let key of desktopKeys; let last = last\"\n matColumnDef=\"{{ key }}\"\n class=\"col-sm\"\n style=\"text-align: left\"\n >\n <div [ngSwitch]=\"key\">\n <ng-container *ngSwitchCase=\"'selectMulti'\">\n <th cdk-header-cell class=\"cell-details\" *matHeaderCellDef></th>\n <td cdk-cell *matCellDef=\"let element\">\n <ion-checkbox\n style=\"margin-right: 15px\"\n *ngIf=\"list$ | async; let list\"\n (ionChange)=\"\n onChangeMultiselect($event.detail.checked, element, list)\n \"\n ></ion-checkbox>\n </td>\n </ng-container>\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\n (click)=\"removeHandler(element)\"\n *ngIf=\"!checkRemoveHandler || checkRemoveHandler(element)\"\n >\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\n slot=\"icon-only\"\n name=\"ellipsis-vertical-outline\"\n ></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\n slot=\"icon-only\"\n name=\"arrow-forward-outline\"\n ></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\n cdk-cell\n [attr.smart-item-key]=\"key\"\n *ngIf=\"\n element | smartListCell: key:cellPipe:type;\n else blankCellTpl;\n let cell\n \"\n [style.width.px]=\"cell.type === FieldType.image ? 60 : null\"\n [style.textAlign]=\"\n cell.type === FieldType.image ? 'center' : null\n \"\n >\n <ng-container [ngSwitch]=\"cell.type\">\n <img\n *ngSwitchCase=\"FieldType.image\"\n height=\"50\"\n [lazyLoad]=\"cell.value | smartFileUrl\"\n />\n <div\n *ngSwitchDefault\n class=\"cell-html\"\n [innerHTML]=\"cell.value\"\n ></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 *ngIf=\"\n loadNextPage &&\n (list$ | async)?.length &&\n options.pagination?.mode !== PaginationMode.singlePage\n \"\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-content>\n\n<smart-paging\n *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"] }]
|