@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,5 +1,5 @@
|
|
|
1
1
|
import { SdCommonModule } from '@sd-angular/core/common';
|
|
2
|
-
import { Directive, TemplateRef, Input, InjectionToken, EventEmitter, Component, ViewChild, Output, Injectable, ChangeDetectorRef, Inject, Optional, QueryList, ContentChild, ContentChildren,
|
|
2
|
+
import { Directive, TemplateRef, Input, InjectionToken, EventEmitter, Component, ViewChild, Output, Injectable, ChangeDetectorRef, Inject, Optional, Pipe, QueryList, ContentChild, ContentChildren, ChangeDetectionStrategy, HostListener, NgModule } from '@angular/core';
|
|
3
3
|
import { __awaiter, __classPrivateFieldGet, __rest, __classPrivateFieldSet } from 'tslib';
|
|
4
4
|
import { MatPaginator, MatPaginatorIntl, MatPaginatorModule } from '@angular/material/paginator';
|
|
5
5
|
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
@@ -10,14 +10,14 @@ import { Subject, Subscription, isObservable } from 'rxjs';
|
|
|
10
10
|
import { SdNotifyService } from '@sd-angular/core/notify';
|
|
11
11
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
12
12
|
import { startWith, debounceTime, map, switchMap } from 'rxjs/operators';
|
|
13
|
-
import hash from 'object-hash';
|
|
13
|
+
import * as hash from 'object-hash';
|
|
14
|
+
import hash__default from 'object-hash';
|
|
14
15
|
import { SdSettingService } from '@sd-angular/core/setting';
|
|
15
16
|
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
16
17
|
import { SdLoadingService } from '@sd-angular/core/loading';
|
|
17
18
|
import { SdTranslateService } from '@sd-angular/core/translate';
|
|
18
19
|
import { SdExportService } from '@sd-angular/core/export';
|
|
19
20
|
import { FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
20
|
-
import { SdUtilityService } from '@sd-angular/core/utility';
|
|
21
21
|
import { SdQuickAction } from '@sd-angular/core/quick-action';
|
|
22
22
|
import { CommonModule, DatePipe, DecimalPipe } from '@angular/common';
|
|
23
23
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
@@ -40,6 +40,7 @@ import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
|
40
40
|
import { MatListModule } from '@angular/material/list';
|
|
41
41
|
import { MatDividerModule } from '@angular/material/divider';
|
|
42
42
|
import { SdSideDrawer } from '@sd-angular/core/side-drawer';
|
|
43
|
+
import { SdUtilityService } from '@sd-angular/core/utility';
|
|
43
44
|
|
|
44
45
|
class SdMaterialCellDefDirective {
|
|
45
46
|
constructor(templateRef) {
|
|
@@ -236,7 +237,7 @@ class SdGridFilterService {
|
|
|
236
237
|
prefix: __classPrivateFieldGet(this, _prefix),
|
|
237
238
|
key
|
|
238
239
|
});
|
|
239
|
-
key =
|
|
240
|
+
key = hash__default({
|
|
240
241
|
prefix: __classPrivateFieldGet(this, _prefix),
|
|
241
242
|
key
|
|
242
243
|
});
|
|
@@ -692,7 +693,7 @@ class SdPopupExport {
|
|
|
692
693
|
if (!((_b = (_a = this.gridOption) === null || _a === void 0 ? void 0 : _a.export) === null || _b === void 0 ? void 0 : _b.key)) {
|
|
693
694
|
return null;
|
|
694
695
|
}
|
|
695
|
-
return
|
|
696
|
+
return hash__default({
|
|
696
697
|
prefix,
|
|
697
698
|
key: (_d = (_c = this.gridOption) === null || _c === void 0 ? void 0 : _c.export) === null || _d === void 0 ? void 0 : _d.key
|
|
698
699
|
});
|
|
@@ -763,7 +764,7 @@ class SdGridConfigurationService {
|
|
|
763
764
|
if (!((_a = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _a === void 0 ? void 0 : _a.key) && !(gridOption === null || gridOption === void 0 ? void 0 : gridOption.key)) {
|
|
764
765
|
return null;
|
|
765
766
|
}
|
|
766
|
-
return
|
|
767
|
+
return hash__default({
|
|
767
768
|
prefix,
|
|
768
769
|
key: ((_b = gridOption === null || gridOption === void 0 ? void 0 : gridOption.config) === null || _b === void 0 ? void 0 : _b.key) || !(gridOption === null || gridOption === void 0 ? void 0 : gridOption.key)
|
|
769
770
|
});
|
|
@@ -1101,70 +1102,57 @@ SdGridConfigurationService.ctorParameters = () => [
|
|
|
1101
1102
|
];
|
|
1102
1103
|
|
|
1103
1104
|
var _prefix$1, _cache$1;
|
|
1104
|
-
class
|
|
1105
|
-
constructor(
|
|
1106
|
-
this.utilityService = utilityService;
|
|
1105
|
+
class SdColumnValuesPipe {
|
|
1106
|
+
constructor() {
|
|
1107
1107
|
_prefix$1.set(this, 'a1e67660-8aa2-4c11-b02d-71a32188719f');
|
|
1108
1108
|
_cache$1.set(this, {});
|
|
1109
|
-
this.
|
|
1110
|
-
var _a, _b, _c, _d;
|
|
1109
|
+
this.transform = (value, column) => __awaiter(this, void 0, void 0, function* () {
|
|
1110
|
+
var _a, _b, _c, _d, _e;
|
|
1111
1111
|
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)) {
|
|
1112
|
-
return
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
if (typeof ((_d = column.option) === null || _d === void 0 ? void 0 : _d.items) === 'function') {
|
|
1125
|
-
items = yield column.option.items();
|
|
1112
|
+
return value;
|
|
1113
|
+
}
|
|
1114
|
+
const { items, valueField, displayField } = column.option;
|
|
1115
|
+
let key;
|
|
1116
|
+
if (typeof (items) === 'function') {
|
|
1117
|
+
key = hash(Object.assign(Object.assign({ prefix: __classPrivateFieldGet(this, _prefix$1) }, column), { value }));
|
|
1118
|
+
if (!__classPrivateFieldGet(this, _cache$1)[key]) {
|
|
1119
|
+
const values = yield items(value, true);
|
|
1120
|
+
__classPrivateFieldGet(this, _cache$1)[key] = {
|
|
1121
|
+
items: values,
|
|
1122
|
+
obj: Array.toObject(values, valueField)
|
|
1123
|
+
};
|
|
1126
1124
|
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1125
|
+
}
|
|
1126
|
+
else {
|
|
1127
|
+
key = hash(Object.assign({ prefix: __classPrivateFieldGet(this, _prefix$1) }, column));
|
|
1128
|
+
if (!__classPrivateFieldGet(this, _cache$1)[key]) {
|
|
1129
|
+
__classPrivateFieldGet(this, _cache$1)[key] = {
|
|
1130
|
+
items: items || [],
|
|
1131
|
+
obj: Array.toObject(items, valueField)
|
|
1132
|
+
};
|
|
1129
1133
|
}
|
|
1130
|
-
__classPrivateFieldGet(this, _cache$1)[hashKey] = {
|
|
1131
|
-
values: items,
|
|
1132
|
-
obj: this.utilityService.arrayToObject(items, column.option.valueField)
|
|
1133
|
-
};
|
|
1134
1134
|
}
|
|
1135
|
-
return __classPrivateFieldGet(this, _cache$1)[
|
|
1135
|
+
return (_e = (_d = __classPrivateFieldGet(this, _cache$1)[key].obj[value]) === null || _d === void 0 ? void 0 : _d[displayField]) !== null && _e !== void 0 ? _e : value;
|
|
1136
1136
|
});
|
|
1137
|
-
this.getValues = (column, key) => {
|
|
1138
|
-
const hashKey = hash({
|
|
1139
|
-
prefix: __classPrivateFieldGet(this, _prefix$1),
|
|
1140
|
-
field: column.field,
|
|
1141
|
-
key,
|
|
1142
|
-
});
|
|
1143
|
-
return __classPrivateFieldGet(this, _cache$1)[hashKey] || {
|
|
1144
|
-
values: [],
|
|
1145
|
-
obj: {}
|
|
1146
|
-
};
|
|
1147
|
-
};
|
|
1148
1137
|
}
|
|
1149
1138
|
}
|
|
1150
1139
|
_prefix$1 = new WeakMap(), _cache$1 = new WeakMap();
|
|
1151
|
-
|
|
1152
|
-
{ type:
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
{ type: SdUtilityService }
|
|
1140
|
+
SdColumnValuesPipe.decorators = [
|
|
1141
|
+
{ type: Pipe, args: [{
|
|
1142
|
+
name: 'columnValues'
|
|
1143
|
+
},] }
|
|
1156
1144
|
];
|
|
1157
1145
|
|
|
1158
1146
|
var _paginator, _sort, _subscription$1, _optionChanges, _initCellDef, _initFilterDef, _initFooterDef, _filterExportInfo, _initConfiguration, _filterLocal, _getFilter, _load$1, _render, _exportedItems, _allColumns, _allExportedColumns, _onExport, _updateSelectedItems;
|
|
1159
1147
|
class SdGridMaterial {
|
|
1160
|
-
constructor(ref, configuration, gridConfigurationService, exportService, notifyService, translateService,
|
|
1148
|
+
constructor(ref, configuration, gridConfigurationService, exportService, notifyService, translateService, columnValuesPipe) {
|
|
1161
1149
|
this.ref = ref;
|
|
1162
1150
|
this.configuration = configuration;
|
|
1163
1151
|
this.gridConfigurationService = gridConfigurationService;
|
|
1164
1152
|
this.exportService = exportService;
|
|
1165
1153
|
this.notifyService = notifyService;
|
|
1166
1154
|
this.translateService = translateService;
|
|
1167
|
-
this.
|
|
1155
|
+
this.columnValuesPipe = columnValuesPipe;
|
|
1168
1156
|
this.key = v4();
|
|
1169
1157
|
this.localItems = [];
|
|
1170
1158
|
this.items = [];
|
|
@@ -1522,8 +1510,8 @@ class SdGridMaterial {
|
|
|
1522
1510
|
const allExportedColumns = __classPrivateFieldGet(this, _allExportedColumns).call(this);
|
|
1523
1511
|
for (const item of exportItems) {
|
|
1524
1512
|
const obj = {};
|
|
1525
|
-
const handle = (exportColumn) => {
|
|
1526
|
-
var
|
|
1513
|
+
const handle = (exportColumn) => __awaiter(this, void 0, void 0, function* () {
|
|
1514
|
+
var _q, _r;
|
|
1527
1515
|
obj[exportColumn.field] = item[exportColumn.field];
|
|
1528
1516
|
const column = allColumns.find(e => e.field === exportColumn.field);
|
|
1529
1517
|
const exportedColumn = allExportedColumns.find(e => e.field === exportColumn.field);
|
|
@@ -1554,10 +1542,10 @@ class SdGridMaterial {
|
|
|
1554
1542
|
else if (column.type === 'bool') {
|
|
1555
1543
|
// Nếu là bool thì gán bằng giá trị trueValue và falseValue (nếu có), mặc định là TRUE/FALSE
|
|
1556
1544
|
if (item[column.field]) {
|
|
1557
|
-
obj[column.field] = ((
|
|
1545
|
+
obj[column.field] = ((_q = column.option) === null || _q === void 0 ? void 0 : _q.displayOnTrue) || 'True';
|
|
1558
1546
|
}
|
|
1559
1547
|
else {
|
|
1560
|
-
obj[column.field] = ((
|
|
1548
|
+
obj[column.field] = ((_r = column.option) === null || _r === void 0 ? void 0 : _r.displayOnFalse) || 'False';
|
|
1561
1549
|
}
|
|
1562
1550
|
}
|
|
1563
1551
|
else if (column.type === 'date') {
|
|
@@ -1577,20 +1565,16 @@ class SdGridMaterial {
|
|
|
1577
1565
|
}
|
|
1578
1566
|
else if (column.type === 'values') {
|
|
1579
1567
|
// Nếu là values thì lấy giá trị của value được chọn
|
|
1580
|
-
|
|
1581
|
-
if (data.obj[column.option.displayField] !== null && data.obj[column.option.displayField] !== undefined) {
|
|
1582
|
-
obj[column.field] = data.obj[column.option.displayField];
|
|
1583
|
-
}
|
|
1584
|
-
else {
|
|
1585
|
-
obj[column.field] = item[column.field];
|
|
1586
|
-
}
|
|
1568
|
+
obj[column.field] = yield this.columnValuesPipe.transform(item[column.field], column);
|
|
1587
1569
|
}
|
|
1588
1570
|
else {
|
|
1589
1571
|
obj[column.field] = item[column.field];
|
|
1590
1572
|
}
|
|
1591
|
-
};
|
|
1573
|
+
});
|
|
1592
1574
|
// this.gridOption.columns.forEach(handle);
|
|
1593
|
-
columns
|
|
1575
|
+
for (const exportColumn of columns) {
|
|
1576
|
+
yield handle(exportColumn);
|
|
1577
|
+
}
|
|
1594
1578
|
items.push(obj);
|
|
1595
1579
|
}
|
|
1596
1580
|
pageNumber++;
|
|
@@ -1662,7 +1646,7 @@ class SdGridMaterial {
|
|
|
1662
1646
|
this.reload(false);
|
|
1663
1647
|
};
|
|
1664
1648
|
this.onExpand = (rowData) => __awaiter(this, void 0, void 0, function* () {
|
|
1665
|
-
var
|
|
1649
|
+
var _s, _t, _u;
|
|
1666
1650
|
if (rowData.isExpanding) {
|
|
1667
1651
|
return;
|
|
1668
1652
|
}
|
|
@@ -1670,8 +1654,8 @@ class SdGridMaterial {
|
|
|
1670
1654
|
rowData.isExpanded = false;
|
|
1671
1655
|
return;
|
|
1672
1656
|
}
|
|
1673
|
-
const data = (
|
|
1674
|
-
if (!((
|
|
1657
|
+
const data = (_t = (_s = this.gridOption) === null || _s === void 0 ? void 0 : _s.subInformation) === null || _t === void 0 ? void 0 : _t.onExpand(rowData);
|
|
1658
|
+
if (!((_u = this.gridOption.subInformation) === null || _u === void 0 ? void 0 : _u.multiple)) {
|
|
1675
1659
|
this.items.forEach(item => item.isExpanding = item.isExpanded = false);
|
|
1676
1660
|
}
|
|
1677
1661
|
if (data instanceof Promise) {
|
|
@@ -2007,7 +1991,7 @@ SdGridMaterial.ctorParameters = () => [
|
|
|
2007
1991
|
{ type: SdExportService },
|
|
2008
1992
|
{ type: SdNotifyService },
|
|
2009
1993
|
{ type: SdTranslateService },
|
|
2010
|
-
{ type:
|
|
1994
|
+
{ type: SdColumnValuesPipe }
|
|
2011
1995
|
];
|
|
2012
1996
|
SdGridMaterial.propDecorators = {
|
|
2013
1997
|
quickAction: [{ type: ViewChild, args: [SdQuickAction,] }],
|
|
@@ -2151,25 +2135,6 @@ SdCommandTitlePipe.decorators = [
|
|
|
2151
2135
|
},] }
|
|
2152
2136
|
];
|
|
2153
2137
|
|
|
2154
|
-
class SdColumnValuesPipe {
|
|
2155
|
-
constructor(gridService) {
|
|
2156
|
-
this.gridService = gridService;
|
|
2157
|
-
this.transform = (value, column, key) => __awaiter(this, void 0, void 0, function* () {
|
|
2158
|
-
var _a;
|
|
2159
|
-
const data = yield this.gridService.loadValues(column, key);
|
|
2160
|
-
return (_a = data.obj[value]) !== null && _a !== void 0 ? _a : value;
|
|
2161
|
-
});
|
|
2162
|
-
}
|
|
2163
|
-
}
|
|
2164
|
-
SdColumnValuesPipe.decorators = [
|
|
2165
|
-
{ type: Pipe, args: [{
|
|
2166
|
-
name: 'columnValues'
|
|
2167
|
-
},] }
|
|
2168
|
-
];
|
|
2169
|
-
SdColumnValuesPipe.ctorParameters = () => [
|
|
2170
|
-
{ type: SdGridService }
|
|
2171
|
-
];
|
|
2172
|
-
|
|
2173
2138
|
class SdColumnHtmlTemplatePipe {
|
|
2174
2139
|
constructor(deviceService) {
|
|
2175
2140
|
this.isMobileOrTablet = false;
|
|
@@ -2197,7 +2162,7 @@ class SdDesktopCellView {
|
|
|
2197
2162
|
SdDesktopCellView.decorators = [
|
|
2198
2163
|
{ type: Component, args: [{
|
|
2199
2164
|
selector: 'sd-desktop-cell-view',
|
|
2200
|
-
template: "<ng-container *ngIf=\"item[column.field] | cellView:item:column:gridOption:key | async as view\">\r\n <div *ngIf=\"view.display.hasHtml;else useValue\"
|
|
2165
|
+
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>",
|
|
2201
2166
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2202
2167
|
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}"]
|
|
2203
2168
|
},] }
|
|
@@ -2212,24 +2177,23 @@ SdDesktopCellView.propDecorators = {
|
|
|
2212
2177
|
};
|
|
2213
2178
|
|
|
2214
2179
|
class SdColumnTransformPipe {
|
|
2215
|
-
constructor(
|
|
2216
|
-
this.
|
|
2180
|
+
constructor(columnValuesPipe) {
|
|
2181
|
+
this.columnValuesPipe = columnValuesPipe;
|
|
2217
2182
|
}
|
|
2218
2183
|
transform(value, rowData, column, key) {
|
|
2219
|
-
var _a, _b
|
|
2184
|
+
var _a, _b;
|
|
2220
2185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2221
2186
|
if (column === null || column === void 0 ? void 0 : column.transform) {
|
|
2222
2187
|
return column.transform(value, rowData);
|
|
2223
2188
|
}
|
|
2224
2189
|
if (column.type === 'values') {
|
|
2225
|
-
|
|
2226
|
-
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;
|
|
2190
|
+
return yield this.columnValuesPipe.transform(value, column);
|
|
2227
2191
|
}
|
|
2228
2192
|
if (column.type === 'number' && Number.isNumber(value)) {
|
|
2229
2193
|
return Number.toVNCurrency(value); // this.decimalPipe.transform(value, '1.0-2');
|
|
2230
2194
|
}
|
|
2231
2195
|
if (column.type === 'bool') {
|
|
2232
|
-
return value === true ? (((
|
|
2196
|
+
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');
|
|
2233
2197
|
}
|
|
2234
2198
|
return value;
|
|
2235
2199
|
});
|
|
@@ -2241,7 +2205,7 @@ SdColumnTransformPipe.decorators = [
|
|
|
2241
2205
|
},] }
|
|
2242
2206
|
];
|
|
2243
2207
|
SdColumnTransformPipe.ctorParameters = () => [
|
|
2244
|
-
{ type:
|
|
2208
|
+
{ type: SdColumnValuesPipe }
|
|
2245
2209
|
];
|
|
2246
2210
|
|
|
2247
2211
|
class SdFilterExternalPipe {
|
|
@@ -2300,7 +2264,7 @@ class SdDesktopCellChildrenView {
|
|
|
2300
2264
|
SdDesktopCellChildrenView.decorators = [
|
|
2301
2265
|
{ type: Component, args: [{
|
|
2302
2266
|
selector: 'sd-desktop-cell-children-view',
|
|
2303
|
-
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
|
|
2267
|
+
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>",
|
|
2304
2268
|
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}"]
|
|
2305
2269
|
},] }
|
|
2306
2270
|
];
|
|
@@ -2586,7 +2550,7 @@ class SdSelectionActionFilterPipe {
|
|
|
2586
2550
|
if ('children' in action) {
|
|
2587
2551
|
const children = [];
|
|
2588
2552
|
for (const childAction of action.children) {
|
|
2589
|
-
const key =
|
|
2553
|
+
const key = hash__default(childAction);
|
|
2590
2554
|
if (selectedItems.every(e => e.actions.includes(key))) {
|
|
2591
2555
|
children.push(childAction);
|
|
2592
2556
|
}
|
|
@@ -2596,7 +2560,7 @@ class SdSelectionActionFilterPipe {
|
|
|
2596
2560
|
}
|
|
2597
2561
|
}
|
|
2598
2562
|
else {
|
|
2599
|
-
const key =
|
|
2563
|
+
const key = hash__default(action);
|
|
2600
2564
|
if (selectedItems.every(e => e.actions.includes(key))) {
|
|
2601
2565
|
results.push(action);
|
|
2602
2566
|
}
|
|
@@ -2629,7 +2593,7 @@ class SdSelectionDisablePipe {
|
|
|
2629
2593
|
const availableActions = actions.filter(action => {
|
|
2630
2594
|
if ('children' in action) {
|
|
2631
2595
|
for (const childAction of action.children) {
|
|
2632
|
-
const key =
|
|
2596
|
+
const key = hash__default(childAction);
|
|
2633
2597
|
if (selectedItems.every(e => e.actions.includes(key))) {
|
|
2634
2598
|
return true;
|
|
2635
2599
|
}
|
|
@@ -2637,7 +2601,7 @@ class SdSelectionDisablePipe {
|
|
|
2637
2601
|
return false;
|
|
2638
2602
|
}
|
|
2639
2603
|
else {
|
|
2640
|
-
const key =
|
|
2604
|
+
const key = hash__default(action);
|
|
2641
2605
|
return selectedItems.every(e => e.actions.includes(key));
|
|
2642
2606
|
}
|
|
2643
2607
|
});
|
|
@@ -2645,13 +2609,13 @@ class SdSelectionDisablePipe {
|
|
|
2645
2609
|
for (const action of availableActions) {
|
|
2646
2610
|
if ('children' in action) {
|
|
2647
2611
|
for (const childAction of action.children) {
|
|
2648
|
-
if (rowData.actions.includes(
|
|
2612
|
+
if (rowData.actions.includes(hash__default(childAction))) {
|
|
2649
2613
|
return false;
|
|
2650
2614
|
}
|
|
2651
2615
|
}
|
|
2652
2616
|
}
|
|
2653
2617
|
else {
|
|
2654
|
-
if (rowData.actions.includes(
|
|
2618
|
+
if (rowData.actions.includes(hash__default(action))) {
|
|
2655
2619
|
return false;
|
|
2656
2620
|
}
|
|
2657
2621
|
}
|
|
@@ -2702,7 +2666,7 @@ class SdGeneratedColumnService {
|
|
|
2702
2666
|
if (!(configuration === null || configuration === void 0 ? void 0 : configuration.key)) {
|
|
2703
2667
|
return null;
|
|
2704
2668
|
}
|
|
2705
|
-
const key =
|
|
2669
|
+
const key = hash__default({
|
|
2706
2670
|
prefix: '260f5e94-5865-4425-8ced-b9c083c390dd',
|
|
2707
2671
|
key: configuration.key
|
|
2708
2672
|
});
|
|
@@ -2731,7 +2695,7 @@ class SdGeneratedColumnService {
|
|
|
2731
2695
|
if (!(configuration === null || configuration === void 0 ? void 0 : configuration.systemColumn)) {
|
|
2732
2696
|
return null;
|
|
2733
2697
|
}
|
|
2734
|
-
const key =
|
|
2698
|
+
const key = hash__default({
|
|
2735
2699
|
prefix: '8b8050ca-1f44-4860-bad3-20e646c0d68f',
|
|
2736
2700
|
key: configuration.key
|
|
2737
2701
|
});
|
|
@@ -2929,7 +2893,7 @@ class SdEditorHandlerRowPipe {
|
|
|
2929
2893
|
item.editorHandlerRow = Object.assign(Object.assign({}, item.editorHandlerRow), { visible: false, editable: !status, removable: false, savable: false, cancelable: false });
|
|
2930
2894
|
}
|
|
2931
2895
|
const { sdId, editorHandlerColumn } = item, remain = __rest(item, ["sdId", "editorHandlerColumn"]);
|
|
2932
|
-
item.sdId =
|
|
2896
|
+
item.sdId = hash__default(remain);
|
|
2933
2897
|
return item.editorHandlerRow;
|
|
2934
2898
|
}
|
|
2935
2899
|
}
|
|
@@ -2967,7 +2931,7 @@ class SdEditorHandlerColumnPipe {
|
|
|
2967
2931
|
item.editorHandlerColumn[col.field] = Object.assign(Object.assign({}, item.editorHandlerColumn[col.field]), { visible: __classPrivateFieldGet(this, _visible).call(this, col, item) });
|
|
2968
2932
|
}
|
|
2969
2933
|
const { sdId, editorHandlerColumn } = item, remain = __rest(item, ["sdId", "editorHandlerColumn"]);
|
|
2970
|
-
item.sdId =
|
|
2934
|
+
item.sdId = hash__default(remain);
|
|
2971
2935
|
return true;
|
|
2972
2936
|
}
|
|
2973
2937
|
}
|
|
@@ -3106,7 +3070,7 @@ class SdSelectionVisiblePipe {
|
|
|
3106
3070
|
let flag = false;
|
|
3107
3071
|
for (const childAction of action.children) {
|
|
3108
3072
|
const { hidden } = childAction;
|
|
3109
|
-
const key =
|
|
3073
|
+
const key = hash__default(childAction);
|
|
3110
3074
|
if (typeof (hidden) === 'function') {
|
|
3111
3075
|
if (!hidden(rowData)) {
|
|
3112
3076
|
rowData.actions.push(key);
|
|
@@ -3119,12 +3083,12 @@ class SdSelectionVisiblePipe {
|
|
|
3119
3083
|
}
|
|
3120
3084
|
}
|
|
3121
3085
|
if (flag) {
|
|
3122
|
-
rowData.actions.push(
|
|
3086
|
+
rowData.actions.push(hash__default(action));
|
|
3123
3087
|
}
|
|
3124
3088
|
}
|
|
3125
3089
|
else {
|
|
3126
3090
|
const { hidden } = action;
|
|
3127
|
-
const key =
|
|
3091
|
+
const key = hash__default(action);
|
|
3128
3092
|
if (typeof (hidden) === 'function') {
|
|
3129
3093
|
if (!hidden(rowData)) {
|
|
3130
3094
|
rowData.actions.push(key);
|
|
@@ -3150,7 +3114,7 @@ class SdIdPipe {
|
|
|
3150
3114
|
transform(value, item, column) {
|
|
3151
3115
|
const { sdId, editorHandlerColumn } = item, remain = __rest(item, ["sdId", "editorHandlerColumn"]);
|
|
3152
3116
|
item.editorHandlerColumn = item.editorHandlerColumn || {};
|
|
3153
|
-
item.sdId =
|
|
3117
|
+
item.sdId = hash__default(remain);
|
|
3154
3118
|
item.editorHandlerColumn[column.field] = Object.assign({}, item.editorHandlerColumn[column.field]);
|
|
3155
3119
|
return item.sdId;
|
|
3156
3120
|
}
|
|
@@ -3186,9 +3150,9 @@ SdGridQuickAction.propDecorators = {
|
|
|
3186
3150
|
|
|
3187
3151
|
var _maxSecond, _maxMinute, _maxHour, _maxDay, _maxMonth, _isMobileOrTablet$1;
|
|
3188
3152
|
class SdCellViewPipe {
|
|
3189
|
-
constructor(deviceService, utilityService,
|
|
3153
|
+
constructor(deviceService, utilityService, columnValuesPipe) {
|
|
3190
3154
|
this.utilityService = utilityService;
|
|
3191
|
-
this.
|
|
3155
|
+
this.columnValuesPipe = columnValuesPipe;
|
|
3192
3156
|
_maxSecond.set(this, 60);
|
|
3193
3157
|
_maxMinute.set(this, __classPrivateFieldGet(this, _maxSecond) * 60);
|
|
3194
3158
|
_maxHour.set(this, __classPrivateFieldGet(this, _maxMinute) * 24);
|
|
@@ -3198,7 +3162,7 @@ class SdCellViewPipe {
|
|
|
3198
3162
|
__classPrivateFieldSet(this, _isMobileOrTablet$1, !deviceService.isDesktop());
|
|
3199
3163
|
}
|
|
3200
3164
|
transform(value, rowData, column, gridOption, key) {
|
|
3201
|
-
var _a
|
|
3165
|
+
var _a;
|
|
3202
3166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3203
3167
|
const { displayOnEmpty } = gridOption;
|
|
3204
3168
|
const { align, click, tooltip, htmlTemplate, transform } = column;
|
|
@@ -3225,6 +3189,10 @@ class SdCellViewPipe {
|
|
|
3225
3189
|
else {
|
|
3226
3190
|
result.display.value = val;
|
|
3227
3191
|
}
|
|
3192
|
+
if (column.type === 'datetime' && result.display.value) {
|
|
3193
|
+
result.display.hasHtml = true;
|
|
3194
|
+
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>`;
|
|
3195
|
+
}
|
|
3228
3196
|
}
|
|
3229
3197
|
else {
|
|
3230
3198
|
if (column.type === 'date' || column.type === 'datetime') {
|
|
@@ -3262,8 +3230,7 @@ class SdCellViewPipe {
|
|
|
3262
3230
|
result.display.value = Date.toFormat(value, 'HH:mm');
|
|
3263
3231
|
}
|
|
3264
3232
|
if (column.type === 'values') {
|
|
3265
|
-
|
|
3266
|
-
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;
|
|
3233
|
+
result.display.value = yield this.columnValuesPipe.transform(value, column);
|
|
3267
3234
|
}
|
|
3268
3235
|
else if (column.type === 'number' && Number.isNumber(value)) {
|
|
3269
3236
|
result.display.value = Number.toVNCurrency(value);
|
|
@@ -3289,7 +3256,7 @@ class SdCellViewPipe {
|
|
|
3289
3256
|
result.badge = {
|
|
3290
3257
|
type: !(column === null || column === void 0 ? void 0 : column.badgeType) ? 'round' : column.badgeType,
|
|
3291
3258
|
color: column.badge(value, rowData),
|
|
3292
|
-
icon: (
|
|
3259
|
+
icon: (_a = column === null || column === void 0 ? void 0 : column.badgeIcon) === null || _a === void 0 ? void 0 : _a.call(column, value, rowData)
|
|
3293
3260
|
};
|
|
3294
3261
|
}
|
|
3295
3262
|
else if (column.type === 'bool') {
|
|
@@ -3320,7 +3287,7 @@ SdCellViewPipe.decorators = [
|
|
|
3320
3287
|
SdCellViewPipe.ctorParameters = () => [
|
|
3321
3288
|
{ type: DeviceDetectorService },
|
|
3322
3289
|
{ type: SdUtilityService },
|
|
3323
|
-
{ type:
|
|
3290
|
+
{ type: SdColumnValuesPipe }
|
|
3324
3291
|
];
|
|
3325
3292
|
|
|
3326
3293
|
class MatPaginatorIntlCro extends MatPaginatorIntl {
|
|
@@ -3435,10 +3402,10 @@ SdGridMaterialModule.decorators = [
|
|
|
3435
3402
|
DecimalPipe,
|
|
3436
3403
|
SdIdPipe,
|
|
3437
3404
|
CdkColumnDef,
|
|
3438
|
-
SdGridService,
|
|
3439
3405
|
SdGridFilterService,
|
|
3440
3406
|
SdGridConfigurationService,
|
|
3441
3407
|
SdGeneratedColumnService,
|
|
3408
|
+
SdColumnValuesPipe,
|
|
3442
3409
|
{
|
|
3443
3410
|
provide: MatPaginatorIntl, useClass: MatPaginatorIntlCro
|
|
3444
3411
|
}
|
|
@@ -3450,5 +3417,5 @@ SdGridMaterialModule.decorators = [
|
|
|
3450
3417
|
* Generated bundle index. Do not edit.
|
|
3451
3418
|
*/
|
|
3452
3419
|
|
|
3453
|
-
export { SdGridMaterial, SdGridMaterialModule, SdMaterialCellDefDirective, SdMaterialEmptyDataDefDirective, SdMaterialFilterDefDirective, SdMaterialFooterDefDirective, SdMaterialSubInformationDefDirective, MatPaginatorIntlCro as ɵa, SdGridFilter as ɵb, SdCommandTitlePipe as ɵba,
|
|
3420
|
+
export { SdGridMaterial, SdGridMaterialModule, SdMaterialCellDefDirective, SdMaterialEmptyDataDefDirective, SdMaterialFilterDefDirective, SdMaterialFooterDefDirective, SdMaterialSubInformationDefDirective, MatPaginatorIntlCro as ɵa, SdGridFilter as ɵb, SdCommandTitlePipe as ɵba, SdColumnHtmlTemplatePipe as ɵbb, SdColumnTransformPipe as ɵbc, SdColumnTooltipPipe as ɵbd, SdColumnBadgePipe as ɵbe, SdFilterColumnPipe as ɵbf, SdFilterExternalPipe as ɵbg, SdSelectionActionFilterPipe as ɵbh, SdSelectionVisiblePipe as ɵbi, SdSelectionDisablePipe as ɵbj, SdSelectionVisibleSelectAllPipe as ɵbk, SdEditorHandlerRowPipe as ɵbl, SdEditorHandlerColumnPipe as ɵbm, SdEditorValidatePipe as ɵbn, SdIdPipe as ɵbo, SdStyleRowCss as ɵbp, SdCellViewPipe as ɵbq, SdPopupFilter as ɵc, SdGridFilterService as ɵd, SdPopupExport as ɵe, GRID_MATERIAL_CONFIG as ɵg, SdGridConfigurationService as ɵh, SdColumnValuesPipe as ɵi, SdGridQuickAction as ɵj, SdDesktopCell as ɵk, SdDesktopCellEditor as ɵl, SdDesktopEditorValidation as ɵm, SdDesktopCellView as ɵn, SdDesktopCellChildrenView as ɵo, SdDesktopCommand as ɵp, SdColumnInlineFilter as ɵq, SdPopupGridConfiguration as ɵr, SdDynamicColumn as ɵs, SdGeneratedColumnService as ɵt, SdGridConfigurationResultPipe as ɵu, SdColumnChildrenFilterPipe as ɵv, SdColumnTitlePipe as ɵw, SdCommandFilterPipe as ɵx, SdCommandDisablePipe as ɵy, SdCommandIconPipe as ɵz };
|
|
3454
3421
|
//# sourceMappingURL=sd-angular-core-grid-material.js.map
|