@sd-angular/core 1.0.45 → 1.0.48
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/assets/img/file-types/eps/001-file.eps +143 -143
- package/assets/img/file-types/eps/002-file-1.eps +136 -136
- package/assets/img/file-types/eps/003-file-2.eps +130 -130
- package/assets/img/file-types/eps/004-file-3.eps +127 -127
- package/assets/img/file-types/eps/005-file-4.eps +120 -120
- package/assets/img/file-types/eps/006-file-5.eps +133 -133
- package/assets/img/file-types/eps/007-file-6.eps +133 -133
- package/assets/img/file-types/eps/008-file-7.eps +144 -144
- package/assets/img/file-types/eps/009-file-8.eps +150 -150
- package/assets/img/file-types/eps/010-file-9.eps +155 -155
- package/assets/img/file-types/eps/011-file-10.eps +124 -124
- package/assets/img/file-types/eps/012-file-11.eps +147 -147
- package/assets/img/file-types/eps/013-file-12.eps +125 -125
- package/assets/img/file-types/eps/014-file-13.eps +129 -129
- package/assets/img/file-types/eps/015-file-14.eps +143 -143
- package/assets/img/file-types/eps/016-file-15.eps +130 -130
- package/assets/img/file-types/eps/017-file-16.eps +197 -197
- package/assets/img/file-types/eps/018-file-17.eps +146 -146
- package/assets/img/file-types/eps/019-file-18.eps +131 -131
- package/assets/img/file-types/eps/020-file-19.eps +137 -137
- package/assets/img/file-types/eps/021-file-20.eps +134 -134
- package/assets/img/file-types/eps/022-file-21.eps +130 -130
- package/assets/img/file-types/eps/023-file-22.eps +161 -161
- package/assets/img/file-types/eps/024-file-23.eps +144 -144
- package/assets/img/file-types/eps/025-file-24.eps +164 -164
- package/assets/img/file-types/eps/026-file-25.eps +135 -135
- package/assets/img/file-types/eps/027-file-26.eps +124 -124
- package/assets/img/file-types/eps/028-file-27.eps +120 -120
- package/assets/img/file-types/eps/029-file-28.eps +141 -141
- package/assets/img/file-types/eps/030-file-29.eps +130 -130
- package/assets/img/file-types/eps/031-file-30.eps +157 -157
- package/assets/img/file-types/eps/032-file-31.eps +139 -139
- package/assets/img/file-types/eps/033-file-32.eps +139 -139
- package/assets/img/file-types/eps/034-file-33.eps +189 -189
- package/assets/img/file-types/eps/035-file-34.eps +162 -162
- package/assets/img/file-types/eps/036-file-35.eps +142 -142
- package/assets/img/file-types/eps/037-file-36.eps +123 -123
- package/assets/img/file-types/eps/038-file-37.eps +127 -127
- package/assets/img/file-types/eps/039-file-38.eps +146 -146
- package/assets/img/file-types/eps/040-file-39.eps +126 -126
- package/assets/img/file-types/eps/041-file-40.eps +117 -117
- package/assets/img/file-types/eps/042-file-41.eps +156 -156
- package/assets/img/file-types/eps/043-file-42.eps +118 -118
- package/assets/img/file-types/eps/044-file-43.eps +172 -172
- package/assets/img/file-types/eps/045-file-44.eps +201 -201
- package/assets/img/file-types/eps/046-file-45.eps +94 -94
- package/assets/img/file-types/eps/047-file-46.eps +176 -176
- package/assets/img/file-types/eps/048-file-47.eps +238 -238
- package/assets/img/file-types/eps/049-file-48.eps +187 -187
- package/assets/img/file-types/eps/050-file-49.eps +137 -137
- package/bundles/sd-angular-core-grid-material.umd.js +315 -299
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/esm2015/api/index.js +1 -1
- package/esm2015/api/sd-angular-core-api.js +1 -1
- package/esm2015/api/src/lib/api.model.js +1 -1
- package/esm2015/api/src/lib/api.module.js +1 -1
- package/esm2015/api/src/lib/api.service.js +1 -1
- package/esm2015/api/src/lib/http.interceptor.js +1 -1
- package/esm2015/api/src/lib/http.service.js +1 -1
- package/esm2015/api/src/lib/token.service.js +1 -1
- package/esm2015/api/src/public-api.js +1 -1
- package/esm2015/autocomplete/index.js +1 -1
- package/esm2015/autocomplete/sd-angular-core-autocomplete.js +1 -1
- package/esm2015/autocomplete/src/lib/autocomplete-display-def.directive.js +1 -1
- package/esm2015/autocomplete/src/lib/autocomplete.component.js +1 -1
- package/esm2015/autocomplete/src/lib/autocomplete.module.js +1 -1
- package/esm2015/autocomplete/src/public-api.js +1 -1
- package/esm2015/badge/index.js +1 -1
- package/esm2015/badge/sd-angular-core-badge.js +1 -1
- package/esm2015/badge/src/lib/badge.component.js +1 -1
- package/esm2015/badge/src/lib/badge.module.js +1 -1
- package/esm2015/badge/src/public-api.js +1 -1
- package/esm2015/button/index.js +1 -1
- package/esm2015/button/sd-angular-core-button.js +1 -1
- package/esm2015/button/src/lib/button.component.js +1 -1
- package/esm2015/button/src/lib/button.module.js +1 -1
- package/esm2015/button/src/public-api.js +1 -1
- package/esm2015/cache/index.js +1 -1
- package/esm2015/cache/sd-angular-core-cache.js +1 -1
- package/esm2015/cache/src/lib/cache.model.js +1 -1
- package/esm2015/cache/src/lib/cache.service.js +1 -1
- package/esm2015/cache/src/public-api.js +1 -1
- package/esm2015/chart/index.js +1 -1
- package/esm2015/chart/sd-angular-core-chart.js +1 -1
- package/esm2015/chart/src/lib/chart.component.js +1 -1
- package/esm2015/chart/src/lib/chart.model.js +1 -1
- package/esm2015/chart/src/lib/chart.module.js +1 -1
- package/esm2015/chart/src/public-api.js +1 -1
- package/esm2015/checkbox/index.js +1 -1
- package/esm2015/checkbox/sd-angular-core-checkbox.js +1 -1
- package/esm2015/checkbox/src/lib/checkbox.component.js +1 -1
- package/esm2015/checkbox/src/lib/checkbox.module.js +1 -1
- package/esm2015/checkbox/src/public-api.js +1 -1
- package/esm2015/chip/index.js +1 -1
- package/esm2015/chip/sd-angular-core-chip.js +1 -1
- package/esm2015/chip/src/lib/chip.component.js +1 -1
- package/esm2015/chip/src/lib/chip.model.js +1 -1
- package/esm2015/chip/src/lib/chip.module.js +1 -1
- package/esm2015/chip/src/lib/directives/sd-chip-display-def.directive.js +1 -1
- package/esm2015/chip/src/lib/pipes/removable-chip.pipe.js +1 -1
- package/esm2015/chip/src/public-api.js +1 -1
- package/esm2015/comment/index.js +1 -1
- package/esm2015/comment/sd-angular-core-comment.js +1 -1
- package/esm2015/comment/src/lib/comment.component.js +1 -1
- package/esm2015/comment/src/lib/comment.model.js +1 -1
- package/esm2015/comment/src/lib/comment.module.js +1 -1
- package/esm2015/comment/src/public-api.js +1 -1
- package/esm2015/common/index.js +1 -1
- package/esm2015/common/sd-angular-core-common.js +1 -1
- package/esm2015/common/src/lib/common.module.js +1 -1
- package/esm2015/common/src/lib/directives/sd-let.directive.js +1 -1
- package/esm2015/common/src/lib/directives/sd-scroll.directive.js +1 -1
- package/esm2015/common/src/lib/directives/sd-suffix.directive.js +1 -1
- package/esm2015/common/src/lib/directives/view-def.directive.js +1 -1
- package/esm2015/common/src/lib/models/sd-form-control.js +1 -1
- package/esm2015/common/src/lib/services/browser.service.js +1 -1
- package/esm2015/common/src/lib/typings/array.extension.js +1 -1
- package/esm2015/common/src/lib/typings/date.extension.js +1 -1
- package/esm2015/common/src/lib/typings/number.extension.js +1 -1
- package/esm2015/common/src/lib/typings/string.extension.js +1 -1
- package/esm2015/common/src/public-api.js +1 -1
- package/esm2015/date-range/index.js +1 -1
- package/esm2015/date-range/sd-angular-core-date-range.js +1 -1
- package/esm2015/date-range/src/lib/date-range.component.js +1 -1
- package/esm2015/date-range/src/lib/date-range.module.js +1 -1
- package/esm2015/date-range/src/public-api.js +1 -1
- package/esm2015/date-time/index.js +1 -1
- package/esm2015/date-time/sd-angular-core-date-time.js +1 -1
- package/esm2015/date-time/src/lib/date-time.component.js +1 -1
- package/esm2015/date-time/src/lib/date-time.module.js +1 -1
- package/esm2015/date-time/src/public-api.js +1 -1
- package/esm2015/dynamic-report/index.js +1 -1
- package/esm2015/dynamic-report/sd-angular-core-dynamic-report.js +1 -1
- package/esm2015/dynamic-report/src/lib/dynamic-report.component.js +1 -1
- package/esm2015/dynamic-report/src/lib/dynamic-report.module.js +1 -1
- package/esm2015/dynamic-report/src/public-api.js +1 -1
- package/esm2015/editor/index.js +1 -1
- package/esm2015/editor/sd-angular-core-editor.js +1 -1
- package/esm2015/editor/src/lib/constant.js +1 -1
- package/esm2015/editor/src/lib/editor.component.js +1 -1
- package/esm2015/editor/src/lib/editor.module.js +1 -1
- package/esm2015/editor/src/public-api.js +1 -1
- package/esm2015/excel/index.js +1 -1
- package/esm2015/excel/sd-angular-core-excel.js +1 -1
- package/esm2015/excel/src/lib/excel.model.js +1 -1
- package/esm2015/excel/src/lib/excel.service.js +1 -1
- package/esm2015/excel/src/public-api.js +1 -1
- package/esm2015/export/index.js +1 -1
- package/esm2015/export/sd-angular-core-export.js +1 -1
- package/esm2015/export/src/lib/export.model.js +1 -1
- package/esm2015/export/src/lib/export.service.js +1 -1
- package/esm2015/export/src/public-api.js +1 -1
- package/esm2015/filter/index.js +1 -1
- package/esm2015/filter/sd-angular-core-filter.js +1 -1
- package/esm2015/filter/src/lib/directives/sd-filter-def.directive.js +1 -1
- package/esm2015/filter/src/lib/filter.component.js +1 -1
- package/esm2015/filter/src/lib/filter.model.js +1 -1
- package/esm2015/filter/src/lib/filter.module.js +1 -1
- package/esm2015/filter/src/lib/filter.service.js +1 -1
- package/esm2015/filter/src/lib/pipes/values-local.pipe.js +1 -1
- package/esm2015/filter/src/lib/pipes/values-server.pipe.js +1 -1
- package/esm2015/filter/src/public-api.js +1 -1
- package/esm2015/form/index.js +1 -1
- package/esm2015/form/sd-angular-core-form.js +1 -1
- package/esm2015/form/src/lib/form.module.js +1 -1
- package/esm2015/form/src/public-api.js +1 -1
- package/esm2015/grid/index.js +1 -1
- package/esm2015/grid/sd-angular-core-grid.js +1 -1
- package/esm2015/grid/src/lib/components/grid-config/grid-config.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-config/grid-config.model.js +1 -1
- package/esm2015/grid/src/lib/components/grid-desktop-column-children-view/grid-desktop-column-children-view.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-desktop-column-edit/grid-desktop-column-edit.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-desktop-column-view/grid-desktop-column-view.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-desktop-inline-filter/grid-desktop-inline-filter.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-import-excel/grid-import-excel.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-mobile-item-view/grid-mobile-item-view.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-popup-editor/grid-popup-editor.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-popup-export-excel/grid-popup-export-excel.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-popup-export-excel/grid-popup-export-excel.model.js +1 -1
- package/esm2015/grid/src/lib/components/grid-popup-filter/grid-popup-filter.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-popup-filter/grid-popup-filter.model.js +1 -1
- package/esm2015/grid/src/lib/components/grid-popup-quick-filter-detail/grid-popup-quick-filter-detail.component.js +1 -1
- package/esm2015/grid/src/lib/components/grid-sub-information/grid-sub-information.component.js +1 -1
- package/esm2015/grid/src/lib/directives/cell-def.directive.js +1 -1
- package/esm2015/grid/src/lib/directives/cell-editor-def.directive.js +1 -1
- package/esm2015/grid/src/lib/directives/cell-footer-def.directive.js +1 -1
- package/esm2015/grid/src/lib/directives/sub-information-header-def.directive.js +1 -1
- package/esm2015/grid/src/lib/grid.component.js +1 -1
- package/esm2015/grid/src/lib/grid.model.js +1 -1
- package/esm2015/grid/src/lib/grid.module.js +1 -1
- package/esm2015/grid/src/lib/models/filter-info.model.js +1 -1
- package/esm2015/grid/src/lib/models/grid-configuration.model.js +1 -1
- package/esm2015/grid/src/lib/models/handler-dotnet.js +1 -1
- package/esm2015/grid/src/lib/models/handler-local.js +1 -1
- package/esm2015/grid/src/lib/models/handler.js +1 -1
- package/esm2015/grid/src/lib/pipes/cell-desktop-class-name.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/cell-mobile-class-name.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/column-command-filter.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/column-html-template.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/column-title.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/column-values.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/command-disabled.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/command-filter.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/command-hidden.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/command-icon.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/command-title.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/dynamic-items.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/editor-dynamic-item.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/editor-handler.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/editor-popup-visible.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/editor-sub-information-handler.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/editor-validate.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/filter-mobile.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/mobile-command-filter.js +1 -1
- package/esm2015/grid/src/lib/pipes/mobile-view-html-template.pipe.js +1 -1
- package/esm2015/grid/src/lib/pipes/value-transform.pipe.js +1 -1
- package/esm2015/grid/src/public-api.js +1 -1
- package/esm2015/grid-material/index.js +1 -1
- package/esm2015/grid-material/sd-angular-core-grid-material.js +18 -19
- package/esm2015/grid-material/src/lib/components/column-inline-filter/column-inline-filter.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/desktop-cell/desktop-cell.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/desktop-cell-children-view/desktop-cell-children-view.component.js +2 -2
- package/esm2015/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +2 -2
- package/esm2015/grid-material/src/lib/components/desktop-command/desktop-command.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/desktop-editor-validation/desktop-editor-validation.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/dynamic-column/dynamic-column.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/grid-filter/grid-filter.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/popup-export/popup-export.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/popup-filter/popup-filter.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/popup-grid-configuration/popup-grid-configuration.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/quick-action/quick-action.component.js +1 -1
- package/esm2015/grid-material/src/lib/directives/sd-material-cell-def.directive.js +1 -1
- package/esm2015/grid-material/src/lib/directives/sd-material-empty-data-def.directive.js +1 -1
- package/esm2015/grid-material/src/lib/directives/sd-material-filter-def.directive.js +1 -1
- package/esm2015/grid-material/src/lib/directives/sd-material-footer-def.directive.js +1 -1
- package/esm2015/grid-material/src/lib/directives/sd-material-sub-information-def.directive.js +1 -1
- package/esm2015/grid-material/src/lib/grid-material.component.js +17 -21
- package/esm2015/grid-material/src/lib/grid-material.module.js +2 -3
- package/esm2015/grid-material/src/lib/models/grid-action.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-cell.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-command.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-config.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-configuration.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-editor.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-export.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-filter.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-option.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-reload.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-selection.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-style.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-sub-information.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid.model.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/cell-view.pipe.js +12 -9
- package/esm2015/grid-material/src/lib/pipes/column-badge.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/column-children-filter.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/column-html-template.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/column-title.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/column-tooltip.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/column-transform.pipe.js +8 -9
- package/esm2015/grid-material/src/lib/pipes/column-values.pipe.js +35 -12
- package/esm2015/grid-material/src/lib/pipes/command-disable.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/command-filter.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/command-icon.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/command-title.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/editor-handler-column.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/editor-handler-row.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/editor-validate.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/filter-column.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/filter-external.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/grid-configuration-result.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/sd-id.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/selection-action-filter.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/selection-disable.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/selection-visible-select-all.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/selection-visible.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/style-row-css.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/services/generated-column/generated-column.model.js +1 -1
- package/esm2015/grid-material/src/lib/services/generated-column/generated-column.service.js +1 -1
- package/esm2015/grid-material/src/lib/services/grid-configuration.service.js +1 -1
- package/esm2015/grid-material/src/lib/services/grid-filter.service.js +1 -1
- package/esm2015/grid-material/src/public-api.js +1 -1
- package/esm2015/image-preview/index.js +1 -1
- package/esm2015/image-preview/sd-angular-core-image-preview.js +1 -1
- package/esm2015/image-preview/src/lib/directives/image-preview.directive.js +1 -1
- package/esm2015/image-preview/src/lib/image-preview/image-preview.component.js +1 -1
- package/esm2015/image-preview/src/lib/image-preview/image-preview.module.js +1 -1
- package/esm2015/image-preview/src/lib/models/image-preview.model.js +1 -1
- package/esm2015/image-preview/src/public-api.js +1 -1
- package/esm2015/input/index.js +1 -1
- package/esm2015/input/sd-angular-core-input.js +1 -1
- package/esm2015/input/src/lib/directives/input-suffix.directive.js +1 -1
- package/esm2015/input/src/lib/directives/touch.directive.js +1 -1
- package/esm2015/input/src/lib/input-tooltip.pipe.js +1 -1
- package/esm2015/input/src/lib/input.component.js +1 -1
- package/esm2015/input/src/lib/input.module.js +1 -1
- package/esm2015/input/src/public-api.js +1 -1
- package/esm2015/input-currency/index.js +1 -1
- package/esm2015/input-currency/sd-angular-core-input-currency.js +1 -1
- package/esm2015/input-currency/src/lib/input-currency-tooltip.pipe.js +1 -1
- package/esm2015/input-currency/src/lib/input-currency.component.js +1 -1
- package/esm2015/input-currency/src/lib/input-currency.module.js +1 -1
- package/esm2015/input-currency/src/public-api.js +1 -1
- package/esm2015/input-dropdown/index.js +1 -1
- package/esm2015/input-dropdown/sd-angular-core-input-dropdown.js +1 -1
- package/esm2015/input-dropdown/src/lib/input-tooltip.pipe.js +1 -1
- package/esm2015/input-dropdown/src/lib/input.component.js +1 -1
- package/esm2015/input-dropdown/src/lib/input.module.js +1 -1
- package/esm2015/input-dropdown/src/public-api.js +1 -1
- package/esm2015/input-upload-file/index.js +1 -1
- package/esm2015/input-upload-file/sd-angular-core-input-upload-file.js +1 -1
- package/esm2015/input-upload-file/src/lib/input-upload-file.component.js +1 -1
- package/esm2015/input-upload-file/src/lib/input-upload-file.module.js +1 -1
- package/esm2015/input-upload-file/src/public-api.js +1 -1
- package/esm2015/konva/index.js +1 -1
- package/esm2015/konva/sd-angular-core-konva.js +1 -1
- package/esm2015/konva/src/lib/konva.module.js +1 -1
- package/esm2015/konva/src/lib/merge-images/merge-images.component.js +1 -1
- package/esm2015/konva/src/public-api.js +1 -1
- package/esm2015/label/index.js +1 -1
- package/esm2015/label/sd-angular-core-label.js +1 -1
- package/esm2015/label/src/lib/label.component.js +1 -1
- package/esm2015/label/src/lib/label.module.js +1 -1
- package/esm2015/label/src/public-api.js +1 -1
- package/esm2015/lib/core.module.js +1 -1
- package/esm2015/lib/material.module.js +1 -1
- package/esm2015/loading/index.js +1 -1
- package/esm2015/loading/sd-angular-core-loading.js +1 -1
- package/esm2015/loading/src/lib/loading.service.js +1 -1
- package/esm2015/loading/src/public-api.js +1 -1
- package/esm2015/modal/index.js +1 -1
- package/esm2015/modal/sd-angular-core-modal.js +1 -1
- package/esm2015/modal/src/lib/bottom-sheet/bottom-sheet-body/bottom-sheet-body.component.js +1 -1
- package/esm2015/modal/src/lib/bottom-sheet/bottom-sheet-footer/bottom-sheet-footer.component.js +1 -1
- package/esm2015/modal/src/lib/bottom-sheet/bottom-sheet-header/bottom-sheet-header.component.js +1 -1
- package/esm2015/modal/src/lib/bottom-sheet/bottom-sheet.component.js +1 -1
- package/esm2015/modal/src/lib/modal/modal-body/modal-body.component.js +1 -1
- package/esm2015/modal/src/lib/modal/modal-footer/modal-footer.component.js +1 -1
- package/esm2015/modal/src/lib/modal/modal-header/modal-header.component.js +1 -1
- package/esm2015/modal/src/lib/modal/modal.component.js +1 -1
- package/esm2015/modal/src/lib/modal.module.js +1 -1
- package/esm2015/modal/src/public-api.js +1 -1
- package/esm2015/modal-resizable/index.js +1 -1
- package/esm2015/modal-resizable/sd-angular-core-modal-resizable.js +1 -1
- package/esm2015/modal-resizable/src/lib/modal-resizable/modal-resizable.component.js +1 -1
- package/esm2015/modal-resizable/src/lib/modal-resizable.module.js +1 -1
- package/esm2015/modal-resizable/src/public-api.js +1 -1
- package/esm2015/notify/index.js +1 -1
- package/esm2015/notify/sd-angular-core-notify.js +1 -1
- package/esm2015/notify/src/lib/components/dialog-confirm/dialog-confirm.component.js +1 -1
- package/esm2015/notify/src/lib/notify.module.js +1 -1
- package/esm2015/notify/src/lib/notify.service.js +1 -1
- package/esm2015/notify/src/public-api.js +1 -1
- package/esm2015/popover/index.js +1 -1
- package/esm2015/popover/sd-angular-core-popover.js +1 -1
- package/esm2015/popover/src/lib/directives/popover-trigger.directive.js +1 -1
- package/esm2015/popover/src/lib/popover/popover.component.js +1 -1
- package/esm2015/popover/src/lib/popover.model.js +1 -1
- package/esm2015/popover/src/lib/popover.module.js +1 -1
- package/esm2015/popover/src/public-api.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/esm2015/quick-action/index.js +1 -1
- package/esm2015/quick-action/sd-angular-core-quick-action.js +1 -1
- package/esm2015/quick-action/src/lib/quick-action.component.js +1 -1
- package/esm2015/quick-action/src/lib/quick-action.module.js +1 -1
- package/esm2015/quick-action/src/public-api.js +1 -1
- package/esm2015/radio/index.js +1 -1
- package/esm2015/radio/sd-angular-core-radio.js +1 -1
- package/esm2015/radio/src/lib/radio.component.js +1 -1
- package/esm2015/radio/src/lib/radio.module.js +1 -1
- package/esm2015/radio/src/public-api.js +1 -1
- package/esm2015/sd-angular-core.js +1 -1
- package/esm2015/select/index.js +1 -1
- package/esm2015/select/sd-angular-core-select.js +1 -1
- package/esm2015/select/src/lib/select-display-def.directive.js +1 -1
- package/esm2015/select/src/lib/select.component.js +1 -1
- package/esm2015/select/src/lib/select.module.js +1 -1
- package/esm2015/select/src/public-api.js +1 -1
- package/esm2015/select-editor/index.js +1 -1
- package/esm2015/select-editor/sd-angular-core-select-editor.js +1 -1
- package/esm2015/select-editor/src/lib/select-editor.component.js +1 -1
- package/esm2015/select-editor/src/lib/select-editor.module.js +1 -1
- package/esm2015/select-editor/src/public-api.js +1 -1
- package/esm2015/service/index.js +1 -1
- package/esm2015/service/sd-angular-core-service.js +1 -1
- package/esm2015/service/src/lib/service.module.js +1 -1
- package/esm2015/service/src/public-api.js +1 -1
- package/esm2015/setting/index.js +1 -1
- package/esm2015/setting/sd-angular-core-setting.js +1 -1
- package/esm2015/setting/src/lib/setting.model.js +1 -1
- package/esm2015/setting/src/lib/setting.service.js +1 -1
- package/esm2015/setting/src/public-api.js +1 -1
- package/esm2015/side-drawer/index.js +1 -1
- package/esm2015/side-drawer/sd-angular-core-side-drawer.js +1 -1
- package/esm2015/side-drawer/src/lib/side-drawer/side-drawer.component.js +1 -1
- package/esm2015/side-drawer/src/lib/side-drawer.module.js +1 -1
- package/esm2015/side-drawer/src/public-api.js +1 -1
- package/esm2015/switch/index.js +1 -1
- package/esm2015/switch/sd-angular-core-switch.js +1 -1
- package/esm2015/switch/src/lib/switch.component.js +1 -1
- package/esm2015/switch/src/lib/switch.module.js +1 -1
- package/esm2015/switch/src/public-api.js +1 -1
- package/esm2015/tab-router/index.js +1 -1
- package/esm2015/tab-router/sd-angular-core-tab-router.js +1 -1
- package/esm2015/tab-router/src/lib/actions/tab-router.action.js +1 -1
- package/esm2015/tab-router/src/lib/components/tab-router-item/tab-router-item.component.js +1 -1
- package/esm2015/tab-router/src/lib/components/tab-router-nav/tab-router-nav.component.js +1 -1
- package/esm2015/tab-router/src/lib/components/tab-router-outlet/tab-router-outlet.component.js +1 -1
- package/esm2015/tab-router/src/lib/decorators/tab.decorator.js +1 -1
- package/esm2015/tab-router/src/lib/events/tab-router.event.js +1 -1
- package/esm2015/tab-router/src/lib/models/tab-router.model.js +1 -1
- package/esm2015/tab-router/src/lib/pipes/tab-info.pipe.js +1 -1
- package/esm2015/tab-router/src/lib/services/tab-decorator.service.js +1 -1
- package/esm2015/tab-router/src/lib/services/tab-router.service.js +1 -1
- package/esm2015/tab-router/src/lib/tab-router.module.js +1 -1
- package/esm2015/tab-router/src/public-api.js +1 -1
- package/esm2015/textarea/index.js +1 -1
- package/esm2015/textarea/sd-angular-core-textarea.js +1 -1
- package/esm2015/textarea/src/lib/textarea.component.js +1 -1
- package/esm2015/textarea/src/lib/textarea.module.js +1 -1
- package/esm2015/textarea/src/public-api.js +1 -1
- package/esm2015/time/index.js +1 -1
- package/esm2015/time/sd-angular-core-time.js +1 -1
- package/esm2015/time/src/lib/time.component.js +1 -1
- package/esm2015/time/src/lib/time.module.js +1 -1
- package/esm2015/time/src/public-api.js +1 -1
- package/esm2015/translate/index.js +1 -1
- package/esm2015/translate/sd-angular-core-translate.js +1 -1
- package/esm2015/translate/src/lib/translate.model.js +1 -1
- package/esm2015/translate/src/lib/translate.module.js +1 -1
- package/esm2015/translate/src/lib/translate.pipe.js +1 -1
- package/esm2015/translate/src/lib/translate.service.js +1 -1
- package/esm2015/upload-excel/index.js +1 -1
- package/esm2015/upload-excel/sd-angular-core-upload-excel.js +1 -1
- package/esm2015/upload-excel/src/lib/upload-excel.component.js +1 -1
- package/esm2015/upload-excel/src/lib/upload-excel.model.js +1 -1
- package/esm2015/upload-excel/src/lib/upload-excel.module.js +1 -1
- package/esm2015/upload-excel/src/public-api.js +1 -1
- package/esm2015/upload-file/index.js +1 -1
- package/esm2015/upload-file/sd-angular-core-upload-file.js +1 -1
- package/esm2015/upload-file/src/lib/upload-file.component.js +1 -1
- package/esm2015/upload-file/src/lib/upload-file.module.js +1 -1
- package/esm2015/upload-file/src/public-api.js +1 -1
- package/esm2015/utility/index.js +1 -1
- package/esm2015/utility/sd-angular-core-utility.js +1 -1
- package/esm2015/utility/src/lib/directives/desktop.directive.js +1 -1
- package/esm2015/utility/src/lib/directives/mobile-tablet.directive.js +1 -1
- package/esm2015/utility/src/lib/directives/mobile.directive.js +1 -1
- package/esm2015/utility/src/lib/directives/tablet.directive.js +1 -1
- package/esm2015/utility/src/lib/pipes/currency.pipe.js +1 -1
- package/esm2015/utility/src/lib/pipes/safe-html.pipe.js +1 -1
- package/esm2015/utility/src/lib/pipes/time-different.pipe.js +1 -1
- package/esm2015/utility/src/lib/utility.module.js +1 -1
- package/esm2015/utility/src/lib/utility.service.js +1 -1
- package/esm2015/utility/src/public-api.js +1 -1
- package/esm2015/view/index.js +1 -1
- package/esm2015/view/sd-angular-core-view.js +1 -1
- package/esm2015/view/src/lib/view.module.js +1 -1
- package/esm2015/view/src/public-api.js +1 -1
- package/fesm2015/sd-angular-core-grid-material.js +85 -118
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.d.ts +17 -18
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/grid-material.component.d.ts +3 -3
- package/grid-material/src/lib/models/grid-column.model.d.ts +3 -3
- package/grid-material/src/lib/pipes/cell-view.pipe.d.ts +3 -3
- package/grid-material/src/lib/pipes/column-transform.pipe.d.ts +3 -3
- package/grid-material/src/lib/pipes/column-values.pipe.d.ts +2 -4
- package/package.json +1 -1
- package/{sd-angular-core-1.0.45.tgz → sd-angular-core-1.0.48.tgz} +0 -0
- package/esm2015/grid-material/src/lib/services/grid.service.js +0 -59
- package/grid-material/src/lib/services/grid.service.d.ts +0 -19
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@sd-angular/core/common'), require('@angular/core'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/animations'), require('uuid'), require('rxjs'), require('@sd-angular/core/notify'), require('@angular/cdk/drag-drop'), require('rxjs/operators'), require('object-hash'), require('@sd-angular/core/setting'), require('ngx-device-detector'), require('@sd-angular/core/loading'), require('@sd-angular/core/translate'), require('@sd-angular/core/export'), require('@angular/forms'), require('@sd-angular/core/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@sd-angular/core/grid-material', ['exports', '@sd-angular/core/common', '@angular/core', '@angular/material/paginator', '@angular/material/sort', '@angular/animations', 'uuid', 'rxjs', '@sd-angular/core/notify', '@angular/cdk/drag-drop', 'rxjs/operators', 'object-hash', '@sd-angular/core/setting', 'ngx-device-detector', '@sd-angular/core/loading', '@sd-angular/core/translate', '@sd-angular/core/export', '@angular/forms', '@sd-angular/core/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core['grid-material'] = {}), global['sd-angular'].core.common, global.ng.core, global.ng.material.paginator, global.ng.material.sort, global.ng.animations, global.uuid, global.rxjs, global['sd-angular'].core.notify, global.ng.cdk.dragDrop, global.rxjs.operators, global['object-hash'], global['sd-angular'].core.setting, global['ngx-device-detector'], global['sd-angular'].core.loading, global['sd-angular'].core.translate, global['sd-angular'].core.export, global.ng.forms, global['sd-angular'].core
|
|
5
|
-
}(this, (function (exports, common$1, core, paginator, sort, animations, uuid, rxjs, notify, dragDrop, operators, hash, setting, ngxDeviceDetector, loading, translate, _export, forms,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@sd-angular/core/common'), require('@angular/core'), require('@angular/material/paginator'), require('@angular/material/sort'), require('@angular/animations'), require('uuid'), require('rxjs'), require('@sd-angular/core/notify'), require('@angular/cdk/drag-drop'), require('rxjs/operators'), require('object-hash'), require('@sd-angular/core/setting'), require('ngx-device-detector'), require('@sd-angular/core/loading'), require('@sd-angular/core/translate'), require('@sd-angular/core/export'), require('@angular/forms'), require('@sd-angular/core/quick-action'), require('@angular/common'), require('@angular/material/form-field'), require('@angular/material/icon'), require('@angular/material/input'), require('@angular/material/table'), require('@angular/material/progress-spinner'), require('@angular/cdk/table'), require('@angular/cdk/scrolling'), require('@angular/material/menu'), require('@angular/material/slider'), require('@angular/material/button'), require('@sd-angular/core/service'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/material/radio'), require('@angular/material/slide-toggle'), require('@sd-angular/core/form'), require('@angular/material/checkbox'), require('@angular/material/list'), require('@angular/material/divider'), require('@sd-angular/core/side-drawer'), require('@sd-angular/core/utility')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@sd-angular/core/grid-material', ['exports', '@sd-angular/core/common', '@angular/core', '@angular/material/paginator', '@angular/material/sort', '@angular/animations', 'uuid', 'rxjs', '@sd-angular/core/notify', '@angular/cdk/drag-drop', 'rxjs/operators', 'object-hash', '@sd-angular/core/setting', 'ngx-device-detector', '@sd-angular/core/loading', '@sd-angular/core/translate', '@sd-angular/core/export', '@angular/forms', '@sd-angular/core/quick-action', '@angular/common', '@angular/material/form-field', '@angular/material/icon', '@angular/material/input', '@angular/material/table', '@angular/material/progress-spinner', '@angular/cdk/table', '@angular/cdk/scrolling', '@angular/material/menu', '@angular/material/slider', '@angular/material/button', '@sd-angular/core/service', '@angular/material/tooltip', '@angular/material/chips', '@angular/material/radio', '@angular/material/slide-toggle', '@sd-angular/core/form', '@angular/material/checkbox', '@angular/material/list', '@angular/material/divider', '@sd-angular/core/side-drawer', '@sd-angular/core/utility'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core['grid-material'] = {}), global['sd-angular'].core.common, global.ng.core, global.ng.material.paginator, global.ng.material.sort, global.ng.animations, global.uuid, global.rxjs, global['sd-angular'].core.notify, global.ng.cdk.dragDrop, global.rxjs.operators, global['object-hash'], global['sd-angular'].core.setting, global['ngx-device-detector'], global['sd-angular'].core.loading, global['sd-angular'].core.translate, global['sd-angular'].core.export, global.ng.forms, global['sd-angular'].core['quick-action'], global.ng.common, global.ng.material.formField, global.ng.material.icon, global.ng.material.input, global.ng.material.table, global.ng.material.progressSpinner, global.ng.cdk.table, global.ng.cdk.scrolling, global.ng.material.menu, global.ng.material.slider, global.ng.material.button, global['sd-angular'].core.service, global.ng.material.tooltip, global.ng.material.chips, global.ng.material.radio, global.ng.material.slideToggle, global['sd-angular'].core.form, global.ng.material.checkbox, global.ng.material.list, global.ng.material.divider, global['sd-angular'].core['side-drawer'], global['sd-angular'].core.utility));
|
|
5
|
+
}(this, (function (exports, common$1, core, paginator, sort, animations, uuid, rxjs, notify, dragDrop, operators, hash, setting, ngxDeviceDetector, loading, translate, _export, forms, quickAction, common, formField, icon, input, table, progressSpinner, table$1, scrolling, menu, slider, button, service, tooltip, chips, radio, slideToggle, form, checkbox, list, divider, sideDrawer, utility) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
var uuid__namespace = /*#__PURE__*/_interopNamespace(uuid);
|
|
31
31
|
var hash__default = /*#__PURE__*/_interopDefaultLegacy(hash);
|
|
32
|
+
var hash__namespace = /*#__PURE__*/_interopNamespace(hash);
|
|
32
33
|
|
|
33
34
|
var SdMaterialCellDefDirective = /** @class */ (function () {
|
|
34
35
|
function SdMaterialCellDefDirective(templateRef) {
|
|
@@ -1648,73 +1649,58 @@
|
|
|
1648
1649
|
]; };
|
|
1649
1650
|
|
|
1650
1651
|
var _prefix$1, _cache$1;
|
|
1651
|
-
var
|
|
1652
|
-
function
|
|
1652
|
+
var SdColumnValuesPipe = /** @class */ (function () {
|
|
1653
|
+
function SdColumnValuesPipe() {
|
|
1653
1654
|
var _this = this;
|
|
1654
|
-
this.utilityService = utilityService;
|
|
1655
1655
|
_prefix$1.set(this, 'a1e67660-8aa2-4c11-b02d-71a32188719f');
|
|
1656
1656
|
_cache$1.set(this, {});
|
|
1657
|
-
this.
|
|
1658
|
-
var _a, _b, _c, _d,
|
|
1659
|
-
return __generator(this, function (
|
|
1660
|
-
switch (
|
|
1657
|
+
this.transform = function (value, column) { return __awaiter(_this, void 0, void 0, function () {
|
|
1658
|
+
var _a, _b, _c, _d, _e, _f, items, valueField, displayField, key, values;
|
|
1659
|
+
return __generator(this, function (_g) {
|
|
1660
|
+
switch (_g.label) {
|
|
1661
1661
|
case 0:
|
|
1662
1662
|
if (column.type !== 'values' || !((_a = column.option) === null || _a === void 0 ? void 0 : _a.items) || !((_b = column.option) === null || _b === void 0 ? void 0 : _b.valueField) || !((_c = column.option) === null || _c === void 0 ? void 0 : _c.displayField)) {
|
|
1663
|
-
return [2 /*return*/,
|
|
1664
|
-
values: [],
|
|
1665
|
-
obj: {}
|
|
1666
|
-
}];
|
|
1663
|
+
return [2 /*return*/, value];
|
|
1667
1664
|
}
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
if (!!__classPrivateFieldGet(this, _cache$1)[hashKey]) return [3 /*break*/, 4];
|
|
1674
|
-
items = [];
|
|
1675
|
-
if (!(typeof ((_d = column.option) === null || _d === void 0 ? void 0 : _d.items) === 'function')) return [3 /*break*/, 2];
|
|
1676
|
-
return [4 /*yield*/, column.option.items()];
|
|
1665
|
+
_f = column.option, items = _f.items, valueField = _f.valueField, displayField = _f.displayField;
|
|
1666
|
+
if (!(typeof (items) === 'function')) return [3 /*break*/, 3];
|
|
1667
|
+
key = hash__namespace(Object.assign(Object.assign({ prefix: __classPrivateFieldGet(this, _prefix$1) }, column), { value: value }));
|
|
1668
|
+
if (!!__classPrivateFieldGet(this, _cache$1)[key]) return [3 /*break*/, 2];
|
|
1669
|
+
return [4 /*yield*/, items(value, true)];
|
|
1677
1670
|
case 1:
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
_e.label = 3;
|
|
1683
|
-
case 3:
|
|
1684
|
-
__classPrivateFieldGet(this, _cache$1)[hashKey] = {
|
|
1685
|
-
values: items,
|
|
1686
|
-
obj: this.utilityService.arrayToObject(items, column.option.valueField)
|
|
1671
|
+
values = _g.sent();
|
|
1672
|
+
__classPrivateFieldGet(this, _cache$1)[key] = {
|
|
1673
|
+
items: values,
|
|
1674
|
+
obj: Array.toObject(values, valueField)
|
|
1687
1675
|
};
|
|
1688
|
-
|
|
1689
|
-
case
|
|
1676
|
+
_g.label = 2;
|
|
1677
|
+
case 2: return [3 /*break*/, 4];
|
|
1678
|
+
case 3:
|
|
1679
|
+
key = hash__namespace(Object.assign({ prefix: __classPrivateFieldGet(this, _prefix$1) }, column));
|
|
1680
|
+
if (!__classPrivateFieldGet(this, _cache$1)[key]) {
|
|
1681
|
+
__classPrivateFieldGet(this, _cache$1)[key] = {
|
|
1682
|
+
items: items || [],
|
|
1683
|
+
obj: Array.toObject(items, valueField)
|
|
1684
|
+
};
|
|
1685
|
+
}
|
|
1686
|
+
_g.label = 4;
|
|
1687
|
+
case 4: return [2 /*return*/, (_e = (_d = __classPrivateFieldGet(this, _cache$1)[key].obj[value]) === null || _d === void 0 ? void 0 : _d[displayField]) !== null && _e !== void 0 ? _e : value];
|
|
1690
1688
|
}
|
|
1691
1689
|
});
|
|
1692
1690
|
}); };
|
|
1693
|
-
this.getValues = function (column, key) {
|
|
1694
|
-
var hashKey = hash__default['default']({
|
|
1695
|
-
prefix: __classPrivateFieldGet(_this, _prefix$1),
|
|
1696
|
-
field: column.field,
|
|
1697
|
-
key: key,
|
|
1698
|
-
});
|
|
1699
|
-
return __classPrivateFieldGet(_this, _cache$1)[hashKey] || {
|
|
1700
|
-
values: [],
|
|
1701
|
-
obj: {}
|
|
1702
|
-
};
|
|
1703
|
-
};
|
|
1704
1691
|
}
|
|
1705
|
-
return
|
|
1692
|
+
return SdColumnValuesPipe;
|
|
1706
1693
|
}());
|
|
1707
1694
|
_prefix$1 = new WeakMap(), _cache$1 = new WeakMap();
|
|
1708
|
-
|
|
1709
|
-
{ type: core.
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
]; };
|
|
1695
|
+
SdColumnValuesPipe.decorators = [
|
|
1696
|
+
{ type: core.Pipe, args: [{
|
|
1697
|
+
name: 'columnValues'
|
|
1698
|
+
},] }
|
|
1699
|
+
];
|
|
1714
1700
|
|
|
1715
1701
|
var _paginator, _sort, _subscription$1, _optionChanges, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration, _filterLocal, _getFilter, _load$1, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _updateSelectedItems;
|
|
1716
1702
|
var SdGridMaterial = /** @class */ (function () {
|
|
1717
|
-
function SdGridMaterial(ref, configuration, gridConfigurationService, exportService, notifyService, translateService,
|
|
1703
|
+
function SdGridMaterial(ref, configuration, gridConfigurationService, exportService, notifyService, translateService, columnValuesPipe) {
|
|
1718
1704
|
var _this = this;
|
|
1719
1705
|
this.ref = ref;
|
|
1720
1706
|
this.configuration = configuration;
|
|
@@ -1722,7 +1708,7 @@
|
|
|
1722
1708
|
this.exportService = exportService;
|
|
1723
1709
|
this.notifyService = notifyService;
|
|
1724
1710
|
this.translateService = translateService;
|
|
1725
|
-
this.
|
|
1711
|
+
this.columnValuesPipe = columnValuesPipe;
|
|
1726
1712
|
this.key = uuid.v4();
|
|
1727
1713
|
this.localItems = [];
|
|
1728
1714
|
this.items = [];
|
|
@@ -1753,11 +1739,11 @@
|
|
|
1753
1739
|
this.isSelectAll = false;
|
|
1754
1740
|
this.exportTitle = 'Export';
|
|
1755
1741
|
_initCellDef.set(this, function () {
|
|
1756
|
-
var e_1,
|
|
1742
|
+
var e_1, _v;
|
|
1757
1743
|
_this.cellDef = {};
|
|
1758
1744
|
try {
|
|
1759
|
-
for (var
|
|
1760
|
-
var cellDef =
|
|
1745
|
+
for (var _w = __values(_this.sdCellDefs), _x = _w.next(); !_x.done; _x = _w.next()) {
|
|
1746
|
+
var cellDef = _x.value;
|
|
1761
1747
|
if (cellDef.sdMaterialCellDef) {
|
|
1762
1748
|
_this.cellDef[cellDef.sdMaterialCellDef] = cellDef;
|
|
1763
1749
|
}
|
|
@@ -1766,35 +1752,35 @@
|
|
|
1766
1752
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1767
1753
|
finally {
|
|
1768
1754
|
try {
|
|
1769
|
-
if (
|
|
1755
|
+
if (_x && !_x.done && (_v = _w.return)) _v.call(_w);
|
|
1770
1756
|
}
|
|
1771
1757
|
finally { if (e_1) throw e_1.error; }
|
|
1772
1758
|
}
|
|
1773
1759
|
});
|
|
1774
1760
|
_initFilterDef.set(this, function () {
|
|
1775
|
-
var e_2,
|
|
1761
|
+
var e_2, _v;
|
|
1776
1762
|
_this.filterDefs = [];
|
|
1777
1763
|
try {
|
|
1778
|
-
for (var
|
|
1779
|
-
var filterDef =
|
|
1764
|
+
for (var _w = __values(_this.sdFilterDefs), _x = _w.next(); !_x.done; _x = _w.next()) {
|
|
1765
|
+
var filterDef = _x.value;
|
|
1780
1766
|
_this.filterDefs.push(filterDef);
|
|
1781
1767
|
}
|
|
1782
1768
|
}
|
|
1783
1769
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1784
1770
|
finally {
|
|
1785
1771
|
try {
|
|
1786
|
-
if (
|
|
1772
|
+
if (_x && !_x.done && (_v = _w.return)) _v.call(_w);
|
|
1787
1773
|
}
|
|
1788
1774
|
finally { if (e_2) throw e_2.error; }
|
|
1789
1775
|
}
|
|
1790
1776
|
});
|
|
1791
1777
|
_initFooterDef.set(this, function () {
|
|
1792
|
-
var e_3,
|
|
1778
|
+
var e_3, _v;
|
|
1793
1779
|
_this.footerDef = {};
|
|
1794
1780
|
_this.hasFooter = false;
|
|
1795
1781
|
try {
|
|
1796
|
-
for (var
|
|
1797
|
-
var footerDef =
|
|
1782
|
+
for (var _w = __values(_this.sdFooterDefs), _x = _w.next(); !_x.done; _x = _w.next()) {
|
|
1783
|
+
var footerDef = _x.value;
|
|
1798
1784
|
if (footerDef.sdMaterialFooterDef) {
|
|
1799
1785
|
_this.hasFooter = true;
|
|
1800
1786
|
_this.footerDef[footerDef.sdMaterialFooterDef] = footerDef;
|
|
@@ -1804,7 +1790,7 @@
|
|
|
1804
1790
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1805
1791
|
finally {
|
|
1806
1792
|
try {
|
|
1807
|
-
if (
|
|
1793
|
+
if (_x && !_x.done && (_v = _w.return)) _v.call(_w);
|
|
1808
1794
|
}
|
|
1809
1795
|
finally { if (e_3) throw e_3.error; }
|
|
1810
1796
|
}
|
|
@@ -1836,7 +1822,7 @@
|
|
|
1836
1822
|
var columns = _this.gridOption.columns;
|
|
1837
1823
|
var rawColumnFilter = filterInfo.rawColumnFilter, orderBy = filterInfo.orderBy, orderDirection = filterInfo.orderDirection, pageSize = filterInfo.pageSize, pageNumber = filterInfo.pageNumber;
|
|
1838
1824
|
var items = localItems.filter(function (item) {
|
|
1839
|
-
var e_4,
|
|
1825
|
+
var e_4, _v;
|
|
1840
1826
|
var _a, _b, _c, _d;
|
|
1841
1827
|
try {
|
|
1842
1828
|
for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
|
|
@@ -1910,7 +1896,7 @@
|
|
|
1910
1896
|
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
1911
1897
|
finally {
|
|
1912
1898
|
try {
|
|
1913
|
-
if (columns_1_1 && !columns_1_1.done && (
|
|
1899
|
+
if (columns_1_1 && !columns_1_1.done && (_v = columns_1.return)) _v.call(columns_1);
|
|
1914
1900
|
}
|
|
1915
1901
|
finally { if (e_4) throw e_4.error; }
|
|
1916
1902
|
}
|
|
@@ -1968,37 +1954,37 @@
|
|
|
1968
1954
|
_load$1.set(this, function (filterReq, force) {
|
|
1969
1955
|
if (force === void 0) { force = true; }
|
|
1970
1956
|
return __awaiter(_this, void 0, void 0, function () {
|
|
1971
|
-
var result, results,
|
|
1972
|
-
return __generator(this, function (
|
|
1973
|
-
switch (
|
|
1957
|
+
var result, results, _v, error_1;
|
|
1958
|
+
return __generator(this, function (_w) {
|
|
1959
|
+
switch (_w.label) {
|
|
1974
1960
|
case 0:
|
|
1975
1961
|
this.isLoading = true;
|
|
1976
|
-
|
|
1962
|
+
_w.label = 1;
|
|
1977
1963
|
case 1:
|
|
1978
|
-
|
|
1964
|
+
_w.trys.push([1, 8, 9, 10]);
|
|
1979
1965
|
if (!(this.gridOption.type === 'server')) return [3 /*break*/, 3];
|
|
1980
1966
|
result = this.gridOption.items(filterReq);
|
|
1981
1967
|
if (rxjs.isObservable(result)) {
|
|
1982
1968
|
result = result.toPromise();
|
|
1983
1969
|
}
|
|
1984
1970
|
return [4 /*yield*/, result];
|
|
1985
|
-
case 2: return [2 /*return*/,
|
|
1971
|
+
case 2: return [2 /*return*/, _w.sent()];
|
|
1986
1972
|
case 3:
|
|
1987
1973
|
if (!force) return [3 /*break*/, 6];
|
|
1988
1974
|
results = this.gridOption.items();
|
|
1989
1975
|
if (!(results instanceof Promise)) return [3 /*break*/, 5];
|
|
1990
|
-
|
|
1976
|
+
_v = this;
|
|
1991
1977
|
return [4 /*yield*/, results];
|
|
1992
1978
|
case 4:
|
|
1993
|
-
|
|
1979
|
+
_v.localItems = _w.sent();
|
|
1994
1980
|
return [3 /*break*/, 6];
|
|
1995
1981
|
case 5:
|
|
1996
1982
|
this.localItems = results;
|
|
1997
|
-
|
|
1983
|
+
_w.label = 6;
|
|
1998
1984
|
case 6: return [2 /*return*/, __classPrivateFieldGet(this, _filterLocal).call(this, this.localItems, filterReq)];
|
|
1999
1985
|
case 7: return [3 /*break*/, 10];
|
|
2000
1986
|
case 8:
|
|
2001
|
-
error_1 =
|
|
1987
|
+
error_1 = _w.sent();
|
|
2002
1988
|
this.notifyService.handle.error(error_1);
|
|
2003
1989
|
return [3 /*break*/, 10];
|
|
2004
1990
|
case 9:
|
|
@@ -2012,8 +1998,8 @@
|
|
|
2012
1998
|
});
|
|
2013
1999
|
_render.set(this, function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
2014
2000
|
var _a, _b, _c;
|
|
2015
|
-
return __generator(this, function (
|
|
2016
|
-
switch (
|
|
2001
|
+
return __generator(this, function (_v) {
|
|
2002
|
+
switch (_v.label) {
|
|
2017
2003
|
case 0:
|
|
2018
2004
|
this.items = (args === null || args === void 0 ? void 0 : args.items) || [];
|
|
2019
2005
|
this.total = (args === null || args === void 0 ? void 0 : args.total) || 0;
|
|
@@ -2023,7 +2009,7 @@
|
|
|
2023
2009
|
});
|
|
2024
2010
|
return [4 /*yield*/, ((_c = (_b = (_a = this.gridOption) === null || _a === void 0 ? void 0 : _a.reload) === null || _b === void 0 ? void 0 : _b.onReload) === null || _c === void 0 ? void 0 : _c.call(_b, this.items))];
|
|
2025
2011
|
case 1:
|
|
2026
|
-
|
|
2012
|
+
_v.sent();
|
|
2027
2013
|
this.isSelectAll = this.items.every(function (e) { return e.isSelected; });
|
|
2028
2014
|
__classPrivateFieldGet(this, _updateSelectedItems).call(this);
|
|
2029
2015
|
return [2 /*return*/];
|
|
@@ -2034,11 +2020,11 @@
|
|
|
2034
2020
|
if (force === void 0) { force = true; }
|
|
2035
2021
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2036
2022
|
var data;
|
|
2037
|
-
return __generator(this, function (
|
|
2038
|
-
switch (
|
|
2023
|
+
return __generator(this, function (_v) {
|
|
2024
|
+
switch (_v.label) {
|
|
2039
2025
|
case 0: return [4 /*yield*/, __classPrivateFieldGet(this, _load$1).call(this, __classPrivateFieldGet(this, _getFilter).call(this), force)];
|
|
2040
2026
|
case 1:
|
|
2041
|
-
data =
|
|
2027
|
+
data = _v.sent();
|
|
2042
2028
|
__classPrivateFieldGet(this, _render).call(this, data);
|
|
2043
2029
|
return [2 /*return*/];
|
|
2044
2030
|
}
|
|
@@ -2050,8 +2036,8 @@
|
|
|
2050
2036
|
if (pageSize === void 0) { pageSize = 10000; }
|
|
2051
2037
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2052
2038
|
var _d, _e, result, filterInfo, result, exportedItems, results;
|
|
2053
|
-
return __generator(this, function (
|
|
2054
|
-
switch (
|
|
2039
|
+
return __generator(this, function (_v) {
|
|
2040
|
+
switch (_v.label) {
|
|
2055
2041
|
case 0:
|
|
2056
2042
|
if (!((_d = this.gridOption.export) === null || _d === void 0 ? void 0 : _d.items)) return [3 /*break*/, 2];
|
|
2057
2043
|
result = (_e = this.gridOption.export) === null || _e === void 0 ? void 0 : _e.items(__classPrivateFieldGet(this, _filterExportInfo).call(this, pageNumber, pageSize));
|
|
@@ -2065,7 +2051,7 @@
|
|
|
2065
2051
|
result = result.toPromise();
|
|
2066
2052
|
}
|
|
2067
2053
|
return [4 /*yield*/, result];
|
|
2068
|
-
case 1: return [2 /*return*/,
|
|
2054
|
+
case 1: return [2 /*return*/, _v.sent()];
|
|
2069
2055
|
case 2:
|
|
2070
2056
|
filterInfo = __classPrivateFieldGet(this, _filterExportInfo).call(this, pageNumber, pageSize);
|
|
2071
2057
|
if (!(this.gridOption.type === 'server')) return [3 /*break*/, 4];
|
|
@@ -2074,7 +2060,7 @@
|
|
|
2074
2060
|
result = result.toPromise();
|
|
2075
2061
|
}
|
|
2076
2062
|
return [4 /*yield*/, result];
|
|
2077
|
-
case 3: return [2 /*return*/,
|
|
2063
|
+
case 3: return [2 /*return*/, _v.sent()];
|
|
2078
2064
|
case 4:
|
|
2079
2065
|
exportedItems = [];
|
|
2080
2066
|
if (!(typeof (this.gridOption.items) === 'function')) return [3 /*break*/, 8];
|
|
@@ -2082,15 +2068,15 @@
|
|
|
2082
2068
|
if (!(results instanceof Promise)) return [3 /*break*/, 6];
|
|
2083
2069
|
return [4 /*yield*/, results];
|
|
2084
2070
|
case 5:
|
|
2085
|
-
exportedItems =
|
|
2071
|
+
exportedItems = _v.sent();
|
|
2086
2072
|
return [3 /*break*/, 7];
|
|
2087
2073
|
case 6:
|
|
2088
2074
|
exportedItems = results;
|
|
2089
|
-
|
|
2075
|
+
_v.label = 7;
|
|
2090
2076
|
case 7: return [3 /*break*/, 9];
|
|
2091
2077
|
case 8:
|
|
2092
2078
|
exportedItems = this.gridOption.items;
|
|
2093
|
-
|
|
2079
|
+
_v.label = 9;
|
|
2094
2080
|
case 9: return [2 /*return*/, __classPrivateFieldGet(this, _filterLocal).call(this, exportedItems, filterInfo)];
|
|
2095
2081
|
}
|
|
2096
2082
|
});
|
|
@@ -2130,13 +2116,13 @@
|
|
|
2130
2116
|
return ((_b = (_a = _this.gridOption.export) === null || _a === void 0 ? void 0 : _a.columns) === null || _b === void 0 ? void 0 : _b.filter(function (e) { var _a; return !((_a = e.export) === null || _a === void 0 ? void 0 : _a.disabled); })) || [];
|
|
2131
2117
|
});
|
|
2132
2118
|
_onExport.set(this, function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
2133
|
-
var _f, _g, _h, _j, _k, _l, _m, _o, _p, file, columns_2, isCSV, pageSize, total, pageNumber, exportItems, items, _loop_1, this_1, sheets,
|
|
2134
|
-
var e_5,
|
|
2119
|
+
var _f, _g, _h, _j, _k, _l, _m, _o, _p, file, columns_2, isCSV, pageSize, total, pageNumber, exportItems, items, _loop_1, this_1, sheets, _v, _w, sheet, _x, _y, _z, e_5_1;
|
|
2120
|
+
var e_5, _0;
|
|
2135
2121
|
var _this = this;
|
|
2136
|
-
return __generator(this, function (
|
|
2137
|
-
switch (
|
|
2122
|
+
return __generator(this, function (_1) {
|
|
2123
|
+
switch (_1.label) {
|
|
2138
2124
|
case 0:
|
|
2139
|
-
|
|
2125
|
+
_1.trys.push([0, , 18, 19]);
|
|
2140
2126
|
file = args.file, columns_2 = args.columns, isCSV = args.isCSV;
|
|
2141
2127
|
pageSize = ((_g = (_f = this.gridOption) === null || _f === void 0 ? void 0 : _f.export) === null || _g === void 0 ? void 0 : _g.maxItemsPerRequest) || 1000;
|
|
2142
2128
|
total = this.total;
|
|
@@ -2145,13 +2131,13 @@
|
|
|
2145
2131
|
this.isExporting = true;
|
|
2146
2132
|
items = [];
|
|
2147
2133
|
_loop_1 = function () {
|
|
2148
|
-
var res, results, totalPage, percent, allColumns, allExportedColumns, _loop_2, exportItems_1, exportItems_1_1, item;
|
|
2149
|
-
var e_6,
|
|
2150
|
-
return __generator(this, function (
|
|
2151
|
-
switch (
|
|
2134
|
+
var res, results, totalPage, percent, allColumns, allExportedColumns, _loop_2, exportItems_1, exportItems_1_1, item, e_6_1;
|
|
2135
|
+
var e_6, _v;
|
|
2136
|
+
return __generator(this, function (_w) {
|
|
2137
|
+
switch (_w.label) {
|
|
2152
2138
|
case 0: return [4 /*yield*/, __classPrivateFieldGet(this_1, _exportedItems).call(this_1, pageNumber, pageSize)];
|
|
2153
2139
|
case 1:
|
|
2154
|
-
res =
|
|
2140
|
+
res = _w.sent();
|
|
2155
2141
|
if ('items' in res) {
|
|
2156
2142
|
exportItems = res.items;
|
|
2157
2143
|
total = res.total;
|
|
@@ -2165,11 +2151,11 @@
|
|
|
2165
2151
|
if (!(results instanceof Promise)) return [3 /*break*/, 3];
|
|
2166
2152
|
return [4 /*yield*/, results];
|
|
2167
2153
|
case 2:
|
|
2168
|
-
exportItems =
|
|
2154
|
+
exportItems = _w.sent();
|
|
2169
2155
|
return [3 /*break*/, 4];
|
|
2170
2156
|
case 3:
|
|
2171
2157
|
exportItems = results;
|
|
2172
|
-
|
|
2158
|
+
_w.label = 4;
|
|
2173
2159
|
case 4:
|
|
2174
2160
|
totalPage = total / pageSize;
|
|
2175
2161
|
percent = Math.round(pageNumber * 100.0 / totalPage);
|
|
@@ -2177,103 +2163,159 @@
|
|
|
2177
2163
|
allColumns = __classPrivateFieldGet(this_1, _allColumns).call(this_1);
|
|
2178
2164
|
allExportedColumns = __classPrivateFieldGet(this_1, _allExportedColumns).call(this_1);
|
|
2179
2165
|
_loop_2 = function (item) {
|
|
2180
|
-
var obj
|
|
2181
|
-
var
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2166
|
+
var obj, handle, columns_3, columns_3_1, exportColumn, e_7_1;
|
|
2167
|
+
var e_7, _v;
|
|
2168
|
+
return __generator(this, function (_w) {
|
|
2169
|
+
switch (_w.label) {
|
|
2170
|
+
case 0:
|
|
2171
|
+
obj = {};
|
|
2172
|
+
handle = function (exportColumn) { return __awaiter(_this, void 0, void 0, function () {
|
|
2173
|
+
var _q, _r, column, exportedColumn, date, date, date, _v, _w;
|
|
2174
|
+
return __generator(this, function (_x) {
|
|
2175
|
+
switch (_x.label) {
|
|
2176
|
+
case 0:
|
|
2177
|
+
obj[exportColumn.field] = item[exportColumn.field];
|
|
2178
|
+
column = allColumns.find(function (e) { return e.field === exportColumn.field; });
|
|
2179
|
+
exportedColumn = allExportedColumns.find(function (e) { return e.field === exportColumn.field; });
|
|
2180
|
+
if (exportedColumn === null || exportedColumn === void 0 ? void 0 : exportedColumn.transform) {
|
|
2181
|
+
obj[exportedColumn.field] = exportedColumn.transform(item[exportedColumn.field], item);
|
|
2182
|
+
return [2 /*return*/];
|
|
2183
|
+
}
|
|
2184
|
+
if (!column) {
|
|
2185
|
+
return [2 /*return*/];
|
|
2186
|
+
}
|
|
2187
|
+
if (column.type === 'children' || column.type === 'children-col') {
|
|
2188
|
+
column === null || column === void 0 ? void 0 : column.children.forEach(function (childColumn) { return handle(childColumn); });
|
|
2189
|
+
return [2 /*return*/];
|
|
2190
|
+
}
|
|
2191
|
+
if (!columns_2.some(function (e) { return e.field === column.field; })) {
|
|
2192
|
+
return [2 /*return*/];
|
|
2193
|
+
}
|
|
2194
|
+
if (!column.transform) return [3 /*break*/, 1];
|
|
2195
|
+
obj[column.field] = column.transform(item[column.field], item);
|
|
2196
|
+
return [3 /*break*/, 10];
|
|
2197
|
+
case 1:
|
|
2198
|
+
if (!(item[column.field] === undefined || item[column.field] === null || item[column.field] === '')) return [3 /*break*/, 2];
|
|
2199
|
+
obj[column.field] = '';
|
|
2200
|
+
return [3 /*break*/, 10];
|
|
2201
|
+
case 2:
|
|
2202
|
+
if (!(column.type === 'string' || column.type === 'number')) return [3 /*break*/, 3];
|
|
2203
|
+
// Nếu cell là string hoặc number thì gán bằng chính nó
|
|
2204
|
+
obj[column.field] = item[column.field];
|
|
2205
|
+
return [3 /*break*/, 10];
|
|
2206
|
+
case 3:
|
|
2207
|
+
if (!(column.type === 'bool')) return [3 /*break*/, 4];
|
|
2208
|
+
// Nếu là bool thì gán bằng giá trị trueValue và falseValue (nếu có), mặc định là TRUE/FALSE
|
|
2209
|
+
if (item[column.field]) {
|
|
2210
|
+
obj[column.field] = ((_q = column.option) === null || _q === void 0 ? void 0 : _q.displayOnTrue) || 'True';
|
|
2211
|
+
}
|
|
2212
|
+
else {
|
|
2213
|
+
obj[column.field] = ((_r = column.option) === null || _r === void 0 ? void 0 : _r.displayOnFalse) || 'False';
|
|
2214
|
+
}
|
|
2215
|
+
return [3 /*break*/, 10];
|
|
2216
|
+
case 4:
|
|
2217
|
+
if (!(column.type === 'date')) return [3 /*break*/, 5];
|
|
2218
|
+
date = new Date(item[column.field]);
|
|
2219
|
+
obj[column.field] = Date.toFormat(date, 'dd/MM/yyyy');
|
|
2220
|
+
return [3 /*break*/, 10];
|
|
2221
|
+
case 5:
|
|
2222
|
+
if (!(column.type === 'datetime')) return [3 /*break*/, 6];
|
|
2223
|
+
date = new Date(item[column.field]);
|
|
2224
|
+
obj[column.field] = Date.toFormat(date, 'dd/MM/yyyy HH:mm:ss');
|
|
2225
|
+
return [3 /*break*/, 10];
|
|
2226
|
+
case 6:
|
|
2227
|
+
if (!(column.type === 'time')) return [3 /*break*/, 7];
|
|
2228
|
+
date = new Date(item[column.field]);
|
|
2229
|
+
obj[column.field] = Date.toFormat(date, 'HH:mm:ss');
|
|
2230
|
+
return [3 /*break*/, 10];
|
|
2231
|
+
case 7:
|
|
2232
|
+
if (!(column.type === 'values')) return [3 /*break*/, 9];
|
|
2233
|
+
// Nếu là values thì lấy giá trị của value được chọn
|
|
2234
|
+
_v = obj;
|
|
2235
|
+
_w = column.field;
|
|
2236
|
+
return [4 /*yield*/, this.columnValuesPipe.transform(item[column.field], column)];
|
|
2237
|
+
case 8:
|
|
2238
|
+
// Nếu là values thì lấy giá trị của value được chọn
|
|
2239
|
+
_v[_w] = _x.sent();
|
|
2240
|
+
return [3 /*break*/, 10];
|
|
2241
|
+
case 9:
|
|
2242
|
+
obj[column.field] = item[column.field];
|
|
2243
|
+
_x.label = 10;
|
|
2244
|
+
case 10: return [2 /*return*/];
|
|
2245
|
+
}
|
|
2246
|
+
});
|
|
2247
|
+
}); };
|
|
2248
|
+
_w.label = 1;
|
|
2249
|
+
case 1:
|
|
2250
|
+
_w.trys.push([1, 6, 7, 8]);
|
|
2251
|
+
columns_3 = (e_7 = void 0, __values(columns_2)), columns_3_1 = columns_3.next();
|
|
2252
|
+
_w.label = 2;
|
|
2253
|
+
case 2:
|
|
2254
|
+
if (!!columns_3_1.done) return [3 /*break*/, 5];
|
|
2255
|
+
exportColumn = columns_3_1.value;
|
|
2256
|
+
return [4 /*yield*/, handle(exportColumn)];
|
|
2257
|
+
case 3:
|
|
2258
|
+
_w.sent();
|
|
2259
|
+
_w.label = 4;
|
|
2260
|
+
case 4:
|
|
2261
|
+
columns_3_1 = columns_3.next();
|
|
2262
|
+
return [3 /*break*/, 2];
|
|
2263
|
+
case 5: return [3 /*break*/, 8];
|
|
2264
|
+
case 6:
|
|
2265
|
+
e_7_1 = _w.sent();
|
|
2266
|
+
e_7 = { error: e_7_1 };
|
|
2267
|
+
return [3 /*break*/, 8];
|
|
2268
|
+
case 7:
|
|
2269
|
+
try {
|
|
2270
|
+
if (columns_3_1 && !columns_3_1.done && (_v = columns_3.return)) _v.call(columns_3);
|
|
2271
|
+
}
|
|
2272
|
+
finally { if (e_7) throw e_7.error; }
|
|
2273
|
+
return [7 /*endfinally*/];
|
|
2274
|
+
case 8:
|
|
2275
|
+
items.push(obj);
|
|
2276
|
+
return [2 /*return*/];
|
|
2223
2277
|
}
|
|
2224
|
-
|
|
2225
|
-
// Nếu là datetime thì convert theo đúng format
|
|
2226
|
-
var date = new Date(item[column.field]);
|
|
2227
|
-
obj[column.field] = Date.toFormat(date, 'dd/MM/yyyy HH:mm:ss');
|
|
2228
|
-
}
|
|
2229
|
-
else if (column.type === 'time') {
|
|
2230
|
-
// Nếu là time thì convert theo đúng format
|
|
2231
|
-
var date = new Date(item[column.field]);
|
|
2232
|
-
obj[column.field] = Date.toFormat(date, 'HH:mm:ss');
|
|
2233
|
-
}
|
|
2234
|
-
else if (column.type === 'values') {
|
|
2235
|
-
// Nếu là values thì lấy giá trị của value được chọn
|
|
2236
|
-
var data = _this.gridService.getValues(column, _this.key);
|
|
2237
|
-
if (data.obj[column.option.displayField] !== null && data.obj[column.option.displayField] !== undefined) {
|
|
2238
|
-
obj[column.field] = data.obj[column.option.displayField];
|
|
2239
|
-
}
|
|
2240
|
-
else {
|
|
2241
|
-
obj[column.field] = item[column.field];
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
else {
|
|
2245
|
-
obj[column.field] = item[column.field];
|
|
2246
|
-
}
|
|
2247
|
-
};
|
|
2248
|
-
// this.gridOption.columns.forEach(handle);
|
|
2249
|
-
columns_2.forEach(handle);
|
|
2250
|
-
items.push(obj);
|
|
2278
|
+
});
|
|
2251
2279
|
};
|
|
2280
|
+
_w.label = 5;
|
|
2281
|
+
case 5:
|
|
2282
|
+
_w.trys.push([5, 10, 11, 12]);
|
|
2283
|
+
exportItems_1 = (e_6 = void 0, __values(exportItems)), exportItems_1_1 = exportItems_1.next();
|
|
2284
|
+
_w.label = 6;
|
|
2285
|
+
case 6:
|
|
2286
|
+
if (!!exportItems_1_1.done) return [3 /*break*/, 9];
|
|
2287
|
+
item = exportItems_1_1.value;
|
|
2288
|
+
return [5 /*yield**/, _loop_2(item)];
|
|
2289
|
+
case 7:
|
|
2290
|
+
_w.sent();
|
|
2291
|
+
_w.label = 8;
|
|
2292
|
+
case 8:
|
|
2293
|
+
exportItems_1_1 = exportItems_1.next();
|
|
2294
|
+
return [3 /*break*/, 6];
|
|
2295
|
+
case 9: return [3 /*break*/, 12];
|
|
2296
|
+
case 10:
|
|
2297
|
+
e_6_1 = _w.sent();
|
|
2298
|
+
e_6 = { error: e_6_1 };
|
|
2299
|
+
return [3 /*break*/, 12];
|
|
2300
|
+
case 11:
|
|
2252
2301
|
try {
|
|
2253
|
-
|
|
2254
|
-
item = exportItems_1_1.value;
|
|
2255
|
-
_loop_2(item);
|
|
2256
|
-
}
|
|
2257
|
-
}
|
|
2258
|
-
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
2259
|
-
finally {
|
|
2260
|
-
try {
|
|
2261
|
-
if (exportItems_1_1 && !exportItems_1_1.done && (_t = exportItems_1.return)) _t.call(exportItems_1);
|
|
2262
|
-
}
|
|
2263
|
-
finally { if (e_6) throw e_6.error; }
|
|
2302
|
+
if (exportItems_1_1 && !exportItems_1_1.done && (_v = exportItems_1.return)) _v.call(exportItems_1);
|
|
2264
2303
|
}
|
|
2304
|
+
finally { if (e_6) throw e_6.error; }
|
|
2305
|
+
return [7 /*endfinally*/];
|
|
2306
|
+
case 12:
|
|
2265
2307
|
pageNumber++;
|
|
2266
2308
|
return [2 /*return*/];
|
|
2267
2309
|
}
|
|
2268
2310
|
});
|
|
2269
2311
|
};
|
|
2270
2312
|
this_1 = this;
|
|
2271
|
-
|
|
2313
|
+
_1.label = 1;
|
|
2272
2314
|
case 1:
|
|
2273
2315
|
if (!(pageNumber * pageSize < total)) return [3 /*break*/, 3];
|
|
2274
2316
|
return [5 /*yield**/, _loop_1()];
|
|
2275
2317
|
case 2:
|
|
2276
|
-
|
|
2318
|
+
_1.sent();
|
|
2277
2319
|
return [3 /*break*/, 1];
|
|
2278
2320
|
case 3:
|
|
2279
2321
|
if (!!(file === null || file === void 0 ? void 0 : file.filePath)) return [3 /*break*/, 16];
|
|
@@ -2284,19 +2326,19 @@
|
|
|
2284
2326
|
fileName: (_k = (_j = this.gridOption) === null || _j === void 0 ? void 0 : _j.export) === null || _k === void 0 ? void 0 : _k.fileName
|
|
2285
2327
|
})];
|
|
2286
2328
|
case 4:
|
|
2287
|
-
|
|
2329
|
+
_1.sent();
|
|
2288
2330
|
return [2 /*return*/];
|
|
2289
2331
|
case 5:
|
|
2290
2332
|
sheets = [];
|
|
2291
2333
|
if (!Array.isArray((_m = (_l = this.gridOption) === null || _l === void 0 ? void 0 : _l.export) === null || _m === void 0 ? void 0 : _m.sheets)) return [3 /*break*/, 14];
|
|
2292
|
-
|
|
2334
|
+
_1.label = 6;
|
|
2293
2335
|
case 6:
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2336
|
+
_1.trys.push([6, 12, 13, 14]);
|
|
2337
|
+
_v = __values(this.gridOption.export.sheets), _w = _v.next();
|
|
2338
|
+
_1.label = 7;
|
|
2297
2339
|
case 7:
|
|
2298
|
-
if (!!
|
|
2299
|
-
sheet =
|
|
2340
|
+
if (!!_w.done) return [3 /*break*/, 11];
|
|
2341
|
+
sheet = _w.value;
|
|
2300
2342
|
if (!(sheet.name && sheet.items && sheet.fields)) return [3 /*break*/, 10];
|
|
2301
2343
|
if (!Array.isArray(sheet.items)) return [3 /*break*/, 8];
|
|
2302
2344
|
sheets.push({
|
|
@@ -2306,27 +2348,27 @@
|
|
|
2306
2348
|
});
|
|
2307
2349
|
return [3 /*break*/, 10];
|
|
2308
2350
|
case 8:
|
|
2309
|
-
|
|
2310
|
-
|
|
2351
|
+
_y = (_x = sheets).push;
|
|
2352
|
+
_z = {
|
|
2311
2353
|
name: sheet.name
|
|
2312
2354
|
};
|
|
2313
2355
|
return [4 /*yield*/, sheet.items()];
|
|
2314
2356
|
case 9:
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2357
|
+
_y.apply(_x, [(_z.items = _1.sent(),
|
|
2358
|
+
_z.fields = sheet.fields,
|
|
2359
|
+
_z)]);
|
|
2360
|
+
_1.label = 10;
|
|
2319
2361
|
case 10:
|
|
2320
|
-
|
|
2362
|
+
_w = _v.next();
|
|
2321
2363
|
return [3 /*break*/, 7];
|
|
2322
2364
|
case 11: return [3 /*break*/, 14];
|
|
2323
2365
|
case 12:
|
|
2324
|
-
e_5_1 =
|
|
2366
|
+
e_5_1 = _1.sent();
|
|
2325
2367
|
e_5 = { error: e_5_1 };
|
|
2326
2368
|
return [3 /*break*/, 14];
|
|
2327
2369
|
case 13:
|
|
2328
2370
|
try {
|
|
2329
|
-
if (
|
|
2371
|
+
if (_w && !_w.done && (_0 = _v.return)) _0.call(_v);
|
|
2330
2372
|
}
|
|
2331
2373
|
finally { if (e_5) throw e_5.error; }
|
|
2332
2374
|
return [7 /*endfinally*/];
|
|
@@ -2337,7 +2379,7 @@
|
|
|
2337
2379
|
sheets: sheets
|
|
2338
2380
|
})];
|
|
2339
2381
|
case 15:
|
|
2340
|
-
|
|
2382
|
+
_1.sent();
|
|
2341
2383
|
return [2 /*return*/];
|
|
2342
2384
|
case 16: return [4 /*yield*/, this.exportService.exportByTemplate({
|
|
2343
2385
|
filePath: file.filePath,
|
|
@@ -2346,7 +2388,7 @@
|
|
|
2346
2388
|
items: items
|
|
2347
2389
|
})];
|
|
2348
2390
|
case 17:
|
|
2349
|
-
|
|
2391
|
+
_1.sent();
|
|
2350
2392
|
return [3 /*break*/, 19];
|
|
2351
2393
|
case 18:
|
|
2352
2394
|
this.isExporting = false;
|
|
@@ -2360,7 +2402,7 @@
|
|
|
2360
2402
|
this.onExport = function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
2361
2403
|
var translate;
|
|
2362
2404
|
var _this = this;
|
|
2363
|
-
return __generator(this, function (
|
|
2405
|
+
return __generator(this, function (_v) {
|
|
2364
2406
|
translate = this.translateService.translate;
|
|
2365
2407
|
if (!args.isCSV && this.gridOption.export.max && this.total > this.gridOption.export.max) {
|
|
2366
2408
|
this.notifyService.confirm(translate("Total rows reach limit, do you want to export CSV")).then(function () {
|
|
@@ -2378,8 +2420,8 @@
|
|
|
2378
2420
|
_this.reload(false);
|
|
2379
2421
|
};
|
|
2380
2422
|
this.onExpand = function (rowData) { return __awaiter(_this, void 0, void 0, function () {
|
|
2381
|
-
var
|
|
2382
|
-
return __generator(this, function (
|
|
2423
|
+
var _s, _t, _u, data;
|
|
2424
|
+
return __generator(this, function (_v) {
|
|
2383
2425
|
if (rowData.isExpanding) {
|
|
2384
2426
|
return [2 /*return*/];
|
|
2385
2427
|
}
|
|
@@ -2387,8 +2429,8 @@
|
|
|
2387
2429
|
rowData.isExpanded = false;
|
|
2388
2430
|
return [2 /*return*/];
|
|
2389
2431
|
}
|
|
2390
|
-
data = (
|
|
2391
|
-
if (!((
|
|
2432
|
+
data = (_t = (_s = this.gridOption) === null || _s === void 0 ? void 0 : _s.subInformation) === null || _t === void 0 ? void 0 : _t.onExpand(rowData);
|
|
2433
|
+
if (!((_u = this.gridOption.subInformation) === null || _u === void 0 ? void 0 : _u.multiple)) {
|
|
2392
2434
|
this.items.forEach(function (item) { return item.isExpanding = item.isExpanded = false; });
|
|
2393
2435
|
}
|
|
2394
2436
|
if (data instanceof Promise) {
|
|
@@ -2450,7 +2492,7 @@
|
|
|
2450
2492
|
};
|
|
2451
2493
|
this.onCreate = function () {
|
|
2452
2494
|
var _a, _b;
|
|
2453
|
-
var
|
|
2495
|
+
var _v = _this.gridOption, type = _v.type, editor = _v.editor, columns = _v.columns;
|
|
2454
2496
|
if (!(editor === null || editor === void 0 ? void 0 : editor.addable)) {
|
|
2455
2497
|
return;
|
|
2456
2498
|
}
|
|
@@ -2506,23 +2548,23 @@
|
|
|
2506
2548
|
};
|
|
2507
2549
|
this.onSave = function (item) { return __awaiter(_this, void 0, void 0, function () {
|
|
2508
2550
|
var editor, result, message, result, err_1;
|
|
2509
|
-
return __generator(this, function (
|
|
2510
|
-
switch (
|
|
2551
|
+
return __generator(this, function (_v) {
|
|
2552
|
+
switch (_v.label) {
|
|
2511
2553
|
case 0:
|
|
2512
2554
|
if (item.editorHandlerRow.saving) {
|
|
2513
2555
|
return [2 /*return*/];
|
|
2514
2556
|
}
|
|
2515
2557
|
editor = this.gridOption.editor;
|
|
2516
|
-
|
|
2558
|
+
_v.label = 1;
|
|
2517
2559
|
case 1:
|
|
2518
|
-
|
|
2560
|
+
_v.trys.push([1, 7, 8, 9]);
|
|
2519
2561
|
item.editorHandlerRow.saving = true;
|
|
2520
2562
|
if (!editor.validate) return [3 /*break*/, 4];
|
|
2521
2563
|
result = editor.validate(item, this.items.indexOf(item));
|
|
2522
2564
|
if (!(result instanceof Promise)) return [3 /*break*/, 3];
|
|
2523
2565
|
return [4 /*yield*/, result];
|
|
2524
2566
|
case 2:
|
|
2525
|
-
message =
|
|
2567
|
+
message = _v.sent();
|
|
2526
2568
|
if (message) {
|
|
2527
2569
|
throw message;
|
|
2528
2570
|
}
|
|
@@ -2531,15 +2573,15 @@
|
|
|
2531
2573
|
if (result) {
|
|
2532
2574
|
throw result;
|
|
2533
2575
|
}
|
|
2534
|
-
|
|
2576
|
+
_v.label = 4;
|
|
2535
2577
|
case 4:
|
|
2536
2578
|
if (!editor.onSave) return [3 /*break*/, 6];
|
|
2537
2579
|
result = editor.onSave(item);
|
|
2538
2580
|
if (!(result instanceof Promise)) return [3 /*break*/, 6];
|
|
2539
2581
|
return [4 /*yield*/, result];
|
|
2540
2582
|
case 5:
|
|
2541
|
-
|
|
2542
|
-
|
|
2583
|
+
_v.sent();
|
|
2584
|
+
_v.label = 6;
|
|
2543
2585
|
case 6:
|
|
2544
2586
|
if (item.editorStatus === 'create' && editor.type === 'popup') {
|
|
2545
2587
|
if (this.gridOption.type === 'local') {
|
|
@@ -2550,7 +2592,7 @@
|
|
|
2550
2592
|
item.editorStatus = undefined;
|
|
2551
2593
|
return [3 /*break*/, 9];
|
|
2552
2594
|
case 7:
|
|
2553
|
-
err_1 =
|
|
2595
|
+
err_1 = _v.sent();
|
|
2554
2596
|
this.notifyService.notify.warning(err_1);
|
|
2555
2597
|
return [3 /*break*/, 9];
|
|
2556
2598
|
case 8:
|
|
@@ -2773,7 +2815,7 @@
|
|
|
2773
2815
|
{ type: _export.SdExportService },
|
|
2774
2816
|
{ type: notify.SdNotifyService },
|
|
2775
2817
|
{ type: translate.SdTranslateService },
|
|
2776
|
-
{ type:
|
|
2818
|
+
{ type: SdColumnValuesPipe }
|
|
2777
2819
|
]; };
|
|
2778
2820
|
SdGridMaterial.propDecorators = {
|
|
2779
2821
|
quickAction: [{ type: core.ViewChild, args: [quickAction.SdQuickAction,] }],
|
|
@@ -2981,33 +3023,6 @@
|
|
|
2981
3023
|
},] }
|
|
2982
3024
|
];
|
|
2983
3025
|
|
|
2984
|
-
var SdColumnValuesPipe = /** @class */ (function () {
|
|
2985
|
-
function SdColumnValuesPipe(gridService) {
|
|
2986
|
-
var _this = this;
|
|
2987
|
-
this.gridService = gridService;
|
|
2988
|
-
this.transform = function (value, column, key) { return __awaiter(_this, void 0, void 0, function () {
|
|
2989
|
-
var _a, data;
|
|
2990
|
-
return __generator(this, function (_b) {
|
|
2991
|
-
switch (_b.label) {
|
|
2992
|
-
case 0: return [4 /*yield*/, this.gridService.loadValues(column, key)];
|
|
2993
|
-
case 1:
|
|
2994
|
-
data = _b.sent();
|
|
2995
|
-
return [2 /*return*/, (_a = data.obj[value]) !== null && _a !== void 0 ? _a : value];
|
|
2996
|
-
}
|
|
2997
|
-
});
|
|
2998
|
-
}); };
|
|
2999
|
-
}
|
|
3000
|
-
return SdColumnValuesPipe;
|
|
3001
|
-
}());
|
|
3002
|
-
SdColumnValuesPipe.decorators = [
|
|
3003
|
-
{ type: core.Pipe, args: [{
|
|
3004
|
-
name: 'columnValues'
|
|
3005
|
-
},] }
|
|
3006
|
-
];
|
|
3007
|
-
SdColumnValuesPipe.ctorParameters = function () { return [
|
|
3008
|
-
{ type: SdGridService }
|
|
3009
|
-
]; };
|
|
3010
|
-
|
|
3011
3026
|
var SdColumnHtmlTemplatePipe = /** @class */ (function () {
|
|
3012
3027
|
function SdColumnHtmlTemplatePipe(deviceService) {
|
|
3013
3028
|
this.isMobileOrTablet = false;
|
|
@@ -3038,7 +3053,7 @@
|
|
|
3038
3053
|
SdDesktopCellView.decorators = [
|
|
3039
3054
|
{ type: core.Component, args: [{
|
|
3040
3055
|
selector: 'sd-desktop-cell-view',
|
|
3041
|
-
template: "<ng-container *ngIf=\"item[column.field] | cellView:item:column:gridOption:key | async as view\">\r\n <div *ngIf=\"view.display.hasHtml;else useValue\"
|
|
3056
|
+
template: "<ng-container *ngIf=\"item[column.field] | cellView:item:column:gridOption:key | async as view\">\r\n <div *ngIf=\"view.display.hasHtml;else useValue\" class=\"text-break\" [matTooltip]=\"view.tooltip\" [innerHTML]=\"view.display.html | safeHtml\">\r\n </div>\r\n <ng-template #useValue>\r\n <ng-container *ngIf=\"!!view.badge; else noBadge\">\r\n <sd-badge [type]=\"view.badge.type\" [title]=\"view.display.value\" [color]=\"view.badge.color\"\r\n [icon]=\"view.badge.icon\" [tooltip]=\"view.tooltip\" (sdClick)=\"column.click(item[column.field], item)\"></sd-badge>\r\n </ng-container>\r\n <ng-template #noBadge>\r\n <ng-container *ngIf=\"column.type !== 'children'; else childrenView\">\r\n <div *ngIf=\"column.type !== 'image'\" class=\"text-break\"\r\n [class.text-center]=\"view.display.align === 'center'\" [class.text-right]=\"view.display.align === 'right'\"\r\n [matTooltip]=\"view.tooltip\">\r\n <a *ngIf=\"!!view.click\" href=\"javascript:;\" (click)=\"view.click()\">{{view.display.value}}</a>\r\n <ng-container *ngIf=\"!view.click\">{{view.display.value}}\r\n </ng-container>\r\n </div>\r\n <div *ngIf=\"column.type === 'image'\" class=\"align-middle text-center\">\r\n <img *ngIf=\"view.display.value\" [src]=\"view.display.value\" [width]=\"column.option?.width\"\r\n [height]=\"column.option?.height\" class=\"c-image\" (click)=\"!!view.click && view.click()\"\r\n [class.cursor-pointer]=\"!!view.click\">\r\n <mat-icon *ngIf=\"!view.display.value\" class=\"c-img\" [class.cursor-pointer]=\"!!view.click\"\r\n (click)=\"!!view.click && view.click()\">\r\n image</mat-icon>\r\n </div>\r\n </ng-container>\r\n <ng-template #childrenView>\r\n <sd-desktop-cell-children-view [key]=\"key\" [item]=\"item\" [column]=\"column\">\r\n </sd-desktop-cell-children-view>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n</ng-container>",
|
|
3042
3057
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
3043
3058
|
styles: [".text-black400{color:#757575}.c-color-success{color:#4caf50}.c-color-danger{color:#f82c13}.c-image{-o-object-fit:contain;margin:5px 0;object-fit:contain}.c-img{font-size:30px;opacity:.5}.c-img.pointer:hover{opacity:.9}"]
|
|
3044
3059
|
},] }
|
|
@@ -3053,30 +3068,27 @@
|
|
|
3053
3068
|
};
|
|
3054
3069
|
|
|
3055
3070
|
var SdColumnTransformPipe = /** @class */ (function () {
|
|
3056
|
-
function SdColumnTransformPipe(
|
|
3057
|
-
this.
|
|
3071
|
+
function SdColumnTransformPipe(columnValuesPipe) {
|
|
3072
|
+
this.columnValuesPipe = columnValuesPipe;
|
|
3058
3073
|
}
|
|
3059
3074
|
SdColumnTransformPipe.prototype.transform = function (value, rowData, column, key) {
|
|
3060
|
-
var _a, _b
|
|
3075
|
+
var _a, _b;
|
|
3061
3076
|
return __awaiter(this, void 0, void 0, function () {
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
switch (_f.label) {
|
|
3077
|
+
return __generator(this, function (_c) {
|
|
3078
|
+
switch (_c.label) {
|
|
3065
3079
|
case 0:
|
|
3066
3080
|
if (column === null || column === void 0 ? void 0 : column.transform) {
|
|
3067
3081
|
return [2 /*return*/, column.transform(value, rowData)];
|
|
3068
3082
|
}
|
|
3069
3083
|
if (!(column.type === 'values')) return [3 /*break*/, 2];
|
|
3070
|
-
return [4 /*yield*/, this.
|
|
3071
|
-
case 1:
|
|
3072
|
-
data = _f.sent();
|
|
3073
|
-
return [2 /*return*/, (_c = (_a = data.obj[value]) === null || _a === void 0 ? void 0 : _a[(_b = column.option) === null || _b === void 0 ? void 0 : _b.displayField]) !== null && _c !== void 0 ? _c : value];
|
|
3084
|
+
return [4 /*yield*/, this.columnValuesPipe.transform(value, column)];
|
|
3085
|
+
case 1: return [2 /*return*/, _c.sent()];
|
|
3074
3086
|
case 2:
|
|
3075
3087
|
if (column.type === 'number' && Number.isNumber(value)) {
|
|
3076
3088
|
return [2 /*return*/, Number.toVNCurrency(value)]; // this.decimalPipe.transform(value, '1.0-2');
|
|
3077
3089
|
}
|
|
3078
3090
|
if (column.type === 'bool') {
|
|
3079
|
-
return [2 /*return*/, value === true ? (((
|
|
3091
|
+
return [2 /*return*/, value === true ? (((_a = column.option) === null || _a === void 0 ? void 0 : _a.displayOnTrue) || 'True') : (((_b = column.option) === null || _b === void 0 ? void 0 : _b.displayOnFalse) || 'False')];
|
|
3080
3092
|
}
|
|
3081
3093
|
return [2 /*return*/, value];
|
|
3082
3094
|
}
|
|
@@ -3091,7 +3103,7 @@
|
|
|
3091
3103
|
},] }
|
|
3092
3104
|
];
|
|
3093
3105
|
SdColumnTransformPipe.ctorParameters = function () { return [
|
|
3094
|
-
{ type:
|
|
3106
|
+
{ type: SdColumnValuesPipe }
|
|
3095
3107
|
]; };
|
|
3096
3108
|
|
|
3097
3109
|
var SdFilterExternalPipe = /** @class */ (function () {
|
|
@@ -3190,7 +3202,7 @@
|
|
|
3190
3202
|
SdDesktopCellChildrenView.decorators = [
|
|
3191
3203
|
{ type: core.Component, args: [{
|
|
3192
3204
|
selector: 'sd-desktop-cell-children-view',
|
|
3193
|
-
template: "<ng-container *ngIf=\"column.children?.length\">\r\n <div class=\"row mx-0\">\r\n <div *ngFor=\"let childColumn of column.children | columnChildrenFilter:item\" class=\"px-2\"\r\n [ngClass]=\"{'col-6': childColumn?.colSpan === 1, 'col-12': !childColumn?.colSpan || childColumn?.colSpan === 2}\">\r\n <span class=\"c-title\">\r\n {{item | columnTitle:childColumn | async}}:\r\n </span>\r\n <ng-container *ngIf=\"childColumn.htmlTemplate;else useDefaultView\">\r\n <div (click)=\"childColumn.click && childColumn.click(item[childColumn.field], item)\"\r\n style=\"display:inline-block ;overflow-wrap: break-word;\" [ngClass]=\"{'cursor-pointer':childColumn.click}\"\r\n [innerHTML]=\"(item[childColumn.field] | columnHtmlTemplate:item:childColumn) | safeHtml\">\r\n </div>\r\n </ng-container>\r\n <ng-template #useDefaultView>\r\n <span *ngIf=\"childColumn.type === 'string'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] |\r\n columnTransform:item:childColumn | async}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n {{item[childColumn.field] | columnTransform:item:childColumn | async}}</ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'number'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] |\r\n columnTransform:item:childColumn | async}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n {{item[childColumn.field] | columnTransform:item:childColumn | async}}\r\n </ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'datetime'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] |\r\n sdTimeDifferent:'dd/MM/yyyy HH:mm':childColumn.option?.timeDifferent | async}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n <span matTooltipPosition=\"above\"\r\n [matTooltip]=\"item[childColumn.field] | date:'dd/MM/yyyy HH:mm'\">{{item[childColumn.field] |\r\n sdTimeDifferent:'dd/MM/yyyy HH:mm':childColumn.option?.timeDifferent | async}}</span>\r\n </ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'date'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] |\r\n sdTimeDifferent:'dd/MM/yyyy':childColumn.option?.timeDifferent | async}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n <span matTooltipPosition=\"above\"\r\n [matTooltip]=\"item[childColumn.field] | date:'dd/MM/yyyy'\">{{item[childColumn.field] |\r\n sdTimeDifferent:'dd/MM/yyyy':childColumn.option?.timeDifferent | async}}</span>\r\n </ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'time'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] | date:'HH:mm'}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n {{item[childColumn.field] | date:'HH:mm'}}\r\n </ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'bool'\"\r\n (click)=\"childColumn.click && childColumn.click(item[childColumn.field], item)\">\r\n <strong *ngIf=\"item[childColumn.field]\" class=\"text-success\">{{childColumn.option?.displayOnTrue ||\r\n 'True'}}</strong>\r\n <strong *ngIf=\"!item[childColumn.field]\" class=\"text-danger\">{{childColumn.option?.displayOnFalse ||\r\n 'False'}}</strong>\r\n </span>\r\n <ng-container *ngIf=\"childColumn.type === 'values'\">\r\n <ng-container *ngIf=\"childColumn.transform\">{{item[childColumn.field] | columnTransform:item:childColumn | async}}</ng-container>\r\n <ng-container *ngIf=\"!childColumn.transform\">\r\n <ng-container *ngIf=\"item[childColumn.field] | columnValues:childColumn
|
|
3205
|
+
template: "<ng-container *ngIf=\"column.children?.length\">\r\n <div class=\"row mx-0\">\r\n <div *ngFor=\"let childColumn of column.children | columnChildrenFilter:item\" class=\"px-2\"\r\n [ngClass]=\"{'col-6': childColumn?.colSpan === 1, 'col-12': !childColumn?.colSpan || childColumn?.colSpan === 2}\">\r\n <span class=\"c-title\">\r\n {{item | columnTitle:childColumn | async}}:\r\n </span>\r\n <ng-container *ngIf=\"childColumn.htmlTemplate;else useDefaultView\">\r\n <div (click)=\"childColumn.click && childColumn.click(item[childColumn.field], item)\"\r\n style=\"display:inline-block ;overflow-wrap: break-word;\" [ngClass]=\"{'cursor-pointer':childColumn.click}\"\r\n [innerHTML]=\"(item[childColumn.field] | columnHtmlTemplate:item:childColumn) | safeHtml\">\r\n </div>\r\n </ng-container>\r\n <ng-template #useDefaultView>\r\n <span *ngIf=\"childColumn.type === 'string'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] |\r\n columnTransform:item:childColumn | async}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n {{item[childColumn.field] | columnTransform:item:childColumn | async}}</ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'number'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] |\r\n columnTransform:item:childColumn | async}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n {{item[childColumn.field] | columnTransform:item:childColumn | async}}\r\n </ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'datetime'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] |\r\n sdTimeDifferent:'dd/MM/yyyy HH:mm':childColumn.option?.timeDifferent | async}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n <span matTooltipPosition=\"above\"\r\n [matTooltip]=\"item[childColumn.field] | date:'dd/MM/yyyy HH:mm'\">{{item[childColumn.field] |\r\n sdTimeDifferent:'dd/MM/yyyy HH:mm':childColumn.option?.timeDifferent | async}}</span>\r\n </ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'date'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] |\r\n sdTimeDifferent:'dd/MM/yyyy':childColumn.option?.timeDifferent | async}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n <span matTooltipPosition=\"above\"\r\n [matTooltip]=\"item[childColumn.field] | date:'dd/MM/yyyy'\">{{item[childColumn.field] |\r\n sdTimeDifferent:'dd/MM/yyyy':childColumn.option?.timeDifferent | async}}</span>\r\n </ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'time'\">\r\n <a *ngIf=\"childColumn.click\" href=\"javascript:;\"\r\n (click)=\"childColumn.click(item[childColumn.field], item)\">{{item[childColumn.field] | date:'HH:mm'}}</a>\r\n <ng-container *ngIf=\"!childColumn.click\">\r\n {{item[childColumn.field] | date:'HH:mm'}}\r\n </ng-container>\r\n </span>\r\n <span *ngIf=\"childColumn.type === 'bool'\"\r\n (click)=\"childColumn.click && childColumn.click(item[childColumn.field], item)\">\r\n <strong *ngIf=\"item[childColumn.field]\" class=\"text-success\">{{childColumn.option?.displayOnTrue ||\r\n 'True'}}</strong>\r\n <strong *ngIf=\"!item[childColumn.field]\" class=\"text-danger\">{{childColumn.option?.displayOnFalse ||\r\n 'False'}}</strong>\r\n </span>\r\n <ng-container *ngIf=\"childColumn.type === 'values'\">\r\n <ng-container *ngIf=\"childColumn.transform\">{{item[childColumn.field] | columnTransform:item:childColumn | async}}</ng-container>\r\n <ng-container *ngIf=\"!childColumn.transform\">\r\n {{item[childColumn.field] | columnValues:childColumn | async}}\r\n <!-- <ng-container *ngIf=\"item[childColumn.field] | columnValues:childColumn | async; $implicit as valueData\">\r\n <div\r\n *ngIf=\"valueData[childColumn.option?.colorField] || valueData[childColumn.option?.backgroundColorField]; else elseNoStatus\"\r\n [ngStyle]=\"{'color':valueData[childColumn.option?.colorField], 'background-color': valueData[childColumn.option?.backgroundColorField]}\">\r\n {{valueData[childColumn.option?.displayField]}}\r\n </div>\r\n <ng-template #elseNoStatus>\r\n {{valueData[childColumn.option?.displayField]}}\r\n </ng-template>\r\n </ng-container> -->\r\n </ng-container>\r\n \r\n </ng-container>\r\n <img *ngIf=\"childColumn.type === 'image'\" [src]=\"item[childColumn.field] | columnTransform:item:childColumn | async\" [width]=\"childColumn.display?.width\"\r\n [height]=\"childColumn.display?.height\" style=\"margin: 5px 0\"\r\n (click)=\"childColumn.click && childColumn.click(item[childColumn.field], item)\">\r\n </ng-template>\r\n </div>\r\n </div>\r\n</ng-container>",
|
|
3194
3206
|
styles: [".c-title{color:#212529;font-size:13px;font-weight:700;line-height:1.7;margin-right:3px}.c-children{color:#212529;font-size:14px;overflow-wrap:break-word}"]
|
|
3195
3207
|
},] }
|
|
3196
3208
|
];
|
|
@@ -4280,9 +4292,9 @@
|
|
|
4280
4292
|
|
|
4281
4293
|
var _maxSecond, _maxMinute, _maxHour, _maxDay, _maxMonth, _isMobileOrTablet$1;
|
|
4282
4294
|
var SdCellViewPipe = /** @class */ (function () {
|
|
4283
|
-
function SdCellViewPipe(deviceService, utilityService,
|
|
4295
|
+
function SdCellViewPipe(deviceService, utilityService, columnValuesPipe) {
|
|
4284
4296
|
this.utilityService = utilityService;
|
|
4285
|
-
this.
|
|
4297
|
+
this.columnValuesPipe = columnValuesPipe;
|
|
4286
4298
|
_maxSecond.set(this, 60);
|
|
4287
4299
|
_maxMinute.set(this, __classPrivateFieldGet(this, _maxSecond) * 60);
|
|
4288
4300
|
_maxHour.set(this, __classPrivateFieldGet(this, _maxMinute) * 24);
|
|
@@ -4292,11 +4304,11 @@
|
|
|
4292
4304
|
__classPrivateFieldSet(this, _isMobileOrTablet$1, !deviceService.isDesktop());
|
|
4293
4305
|
}
|
|
4294
4306
|
SdCellViewPipe.prototype.transform = function (value, rowData, column, gridOption, key) {
|
|
4295
|
-
var _a
|
|
4307
|
+
var _a;
|
|
4296
4308
|
return __awaiter(this, void 0, void 0, function () {
|
|
4297
|
-
var displayOnEmpty, align, click, tooltip, htmlTemplate, transform, result, val,
|
|
4298
|
-
return __generator(this, function (
|
|
4299
|
-
switch (
|
|
4309
|
+
var displayOnEmpty, align, click, tooltip, htmlTemplate, transform, result, val, _b, option, seconds, _c, option;
|
|
4310
|
+
return __generator(this, function (_d) {
|
|
4311
|
+
switch (_d.label) {
|
|
4300
4312
|
case 0:
|
|
4301
4313
|
displayOnEmpty = gridOption.displayOnEmpty;
|
|
4302
4314
|
align = column.align, click = column.click, tooltip = column.tooltip, htmlTemplate = column.htmlTemplate, transform = column.transform;
|
|
@@ -4317,15 +4329,20 @@
|
|
|
4317
4329
|
if (!(typeof (transform) === 'function')) return [3 /*break*/, 5];
|
|
4318
4330
|
val = transform(value, rowData);
|
|
4319
4331
|
if (!(val instanceof Promise)) return [3 /*break*/, 3];
|
|
4320
|
-
|
|
4332
|
+
_b = result.display;
|
|
4321
4333
|
return [4 /*yield*/, val];
|
|
4322
4334
|
case 2:
|
|
4323
|
-
|
|
4335
|
+
_b.value = _d.sent();
|
|
4324
4336
|
return [3 /*break*/, 4];
|
|
4325
4337
|
case 3:
|
|
4326
4338
|
result.display.value = val;
|
|
4327
|
-
|
|
4328
|
-
case 4:
|
|
4339
|
+
_d.label = 4;
|
|
4340
|
+
case 4:
|
|
4341
|
+
if (column.type === 'datetime' && result.display.value) {
|
|
4342
|
+
result.display.hasHtml = true;
|
|
4343
|
+
result.display.html = "<span class=\"d-block T14R text-black400\">" + Date.toFormat(value, 'HH:mm') + "</span><span class=\"d-block T14R\">" + Date.toFormat(value, 'dd/MM/yyyy') + "</span>";
|
|
4344
|
+
}
|
|
4345
|
+
return [3 /*break*/, 9];
|
|
4329
4346
|
case 5:
|
|
4330
4347
|
if (column.type === 'date' || column.type === 'datetime') {
|
|
4331
4348
|
option = column.option;
|
|
@@ -4362,22 +4379,22 @@
|
|
|
4362
4379
|
result.display.value = Date.toFormat(value, 'HH:mm');
|
|
4363
4380
|
}
|
|
4364
4381
|
if (!(column.type === 'values')) return [3 /*break*/, 7];
|
|
4365
|
-
|
|
4382
|
+
_c = result.display;
|
|
4383
|
+
return [4 /*yield*/, this.columnValuesPipe.transform(value, column)];
|
|
4366
4384
|
case 6:
|
|
4367
|
-
|
|
4368
|
-
result.display.value = (_c = (_a = data.obj[value]) === null || _a === void 0 ? void 0 : _a[(_b = column.option) === null || _b === void 0 ? void 0 : _b.displayField]) !== null && _c !== void 0 ? _c : value;
|
|
4385
|
+
_c.value = _d.sent();
|
|
4369
4386
|
return [3 /*break*/, 8];
|
|
4370
4387
|
case 7:
|
|
4371
4388
|
if (column.type === 'number' && Number.isNumber(value)) {
|
|
4372
4389
|
result.display.value = Number.toVNCurrency(value);
|
|
4373
4390
|
}
|
|
4374
|
-
|
|
4391
|
+
_d.label = 8;
|
|
4375
4392
|
case 8:
|
|
4376
4393
|
if (column.type === 'bool') {
|
|
4377
4394
|
option = column.option;
|
|
4378
4395
|
result.display.value = value === true ? ((option === null || option === void 0 ? void 0 : option.displayOnTrue) || 'True') : ((option === null || option === void 0 ? void 0 : option.displayOnFalse) || 'False');
|
|
4379
4396
|
}
|
|
4380
|
-
|
|
4397
|
+
_d.label = 9;
|
|
4381
4398
|
case 9:
|
|
4382
4399
|
if (displayOnEmpty && (result.display.value === null || result.display.value === undefined || result.display.value === '')) {
|
|
4383
4400
|
if (typeof (displayOnEmpty) === 'function') {
|
|
@@ -4389,14 +4406,14 @@
|
|
|
4389
4406
|
result.display.html = "<div class=\"T16R text-black400\">--</div>";
|
|
4390
4407
|
}
|
|
4391
4408
|
}
|
|
4392
|
-
|
|
4409
|
+
_d.label = 10;
|
|
4393
4410
|
case 10:
|
|
4394
4411
|
// Badge
|
|
4395
4412
|
if ((column.type === 'string' || column.type === 'number' || column.type === 'values') && column.badge) {
|
|
4396
4413
|
result.badge = {
|
|
4397
4414
|
type: !(column === null || column === void 0 ? void 0 : column.badgeType) ? 'round' : column.badgeType,
|
|
4398
4415
|
color: column.badge(value, rowData),
|
|
4399
|
-
icon: (
|
|
4416
|
+
icon: (_a = column === null || column === void 0 ? void 0 : column.badgeIcon) === null || _a === void 0 ? void 0 : _a.call(column, value, rowData)
|
|
4400
4417
|
};
|
|
4401
4418
|
}
|
|
4402
4419
|
else if (column.type === 'bool') {
|
|
@@ -4430,7 +4447,7 @@
|
|
|
4430
4447
|
SdCellViewPipe.ctorParameters = function () { return [
|
|
4431
4448
|
{ type: ngxDeviceDetector.DeviceDetectorService },
|
|
4432
4449
|
{ type: utility.SdUtilityService },
|
|
4433
|
-
{ type:
|
|
4450
|
+
{ type: SdColumnValuesPipe }
|
|
4434
4451
|
]; };
|
|
4435
4452
|
|
|
4436
4453
|
var MatPaginatorIntlCro = /** @class */ (function (_super) {
|
|
@@ -4551,10 +4568,10 @@
|
|
|
4551
4568
|
common.DecimalPipe,
|
|
4552
4569
|
SdIdPipe,
|
|
4553
4570
|
table$1.CdkColumnDef,
|
|
4554
|
-
SdGridService,
|
|
4555
4571
|
SdGridFilterService,
|
|
4556
4572
|
SdGridConfigurationService,
|
|
4557
4573
|
SdGeneratedColumnService,
|
|
4574
|
+
SdColumnValuesPipe,
|
|
4558
4575
|
{
|
|
4559
4576
|
provide: paginator.MatPaginatorIntl, useClass: MatPaginatorIntlCro
|
|
4560
4577
|
}
|
|
@@ -4576,29 +4593,28 @@
|
|
|
4576
4593
|
exports.ɵa = MatPaginatorIntlCro;
|
|
4577
4594
|
exports.ɵb = SdGridFilter;
|
|
4578
4595
|
exports.ɵba = SdCommandTitlePipe;
|
|
4579
|
-
exports.ɵbb =
|
|
4580
|
-
exports.ɵbc =
|
|
4581
|
-
exports.ɵbd =
|
|
4582
|
-
exports.ɵbe =
|
|
4583
|
-
exports.ɵbf =
|
|
4584
|
-
exports.ɵbg =
|
|
4585
|
-
exports.ɵbh =
|
|
4586
|
-
exports.ɵbi =
|
|
4587
|
-
exports.ɵbj =
|
|
4588
|
-
exports.ɵbk =
|
|
4589
|
-
exports.ɵbl =
|
|
4590
|
-
exports.ɵbm =
|
|
4591
|
-
exports.ɵbn =
|
|
4592
|
-
exports.ɵbo =
|
|
4593
|
-
exports.ɵbp =
|
|
4594
|
-
exports.ɵbq =
|
|
4595
|
-
exports.ɵbr = SdCellViewPipe;
|
|
4596
|
+
exports.ɵbb = SdColumnHtmlTemplatePipe;
|
|
4597
|
+
exports.ɵbc = SdColumnTransformPipe;
|
|
4598
|
+
exports.ɵbd = SdColumnTooltipPipe;
|
|
4599
|
+
exports.ɵbe = SdColumnBadgePipe;
|
|
4600
|
+
exports.ɵbf = SdFilterColumnPipe;
|
|
4601
|
+
exports.ɵbg = SdFilterExternalPipe;
|
|
4602
|
+
exports.ɵbh = SdSelectionActionFilterPipe;
|
|
4603
|
+
exports.ɵbi = SdSelectionVisiblePipe;
|
|
4604
|
+
exports.ɵbj = SdSelectionDisablePipe;
|
|
4605
|
+
exports.ɵbk = SdSelectionVisibleSelectAllPipe;
|
|
4606
|
+
exports.ɵbl = SdEditorHandlerRowPipe;
|
|
4607
|
+
exports.ɵbm = SdEditorHandlerColumnPipe;
|
|
4608
|
+
exports.ɵbn = SdEditorValidatePipe;
|
|
4609
|
+
exports.ɵbo = SdIdPipe;
|
|
4610
|
+
exports.ɵbp = SdStyleRowCss;
|
|
4611
|
+
exports.ɵbq = SdCellViewPipe;
|
|
4596
4612
|
exports.ɵc = SdPopupFilter;
|
|
4597
4613
|
exports.ɵd = SdGridFilterService;
|
|
4598
4614
|
exports.ɵe = SdPopupExport;
|
|
4599
4615
|
exports.ɵg = GRID_MATERIAL_CONFIG;
|
|
4600
4616
|
exports.ɵh = SdGridConfigurationService;
|
|
4601
|
-
exports.ɵi =
|
|
4617
|
+
exports.ɵi = SdColumnValuesPipe;
|
|
4602
4618
|
exports.ɵj = SdGridQuickAction;
|
|
4603
4619
|
exports.ɵk = SdDesktopCell;
|
|
4604
4620
|
exports.ɵl = SdDesktopCellEditor;
|