@sd-angular/core 1.3.14 → 1.3.16
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-db.umd.js +1 -1
- package/bundles/sd-angular-core-db.umd.js.map +1 -1
- package/bundles/sd-angular-core-db.umd.min.js +1 -1
- package/bundles/sd-angular-core-db.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.js +159 -137
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
- 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/configurations/firebase.configuration.js +1 -1
- package/esm2015/common/src/lib/configurations/form.configuration.js +1 -1
- package/esm2015/common/src/lib/directives/sd-lable.directive.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/confirm/index.js +1 -1
- package/esm2015/confirm/sd-angular-core-confirm.js +1 -1
- package/esm2015/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.js +1 -1
- package/esm2015/confirm/src/lib/confirm.module.js +1 -1
- package/esm2015/confirm/src/lib/confirm.service.js +1 -1
- package/esm2015/confirm/src/public-api.js +1 -1
- package/esm2015/date-month/index.js +1 -1
- package/esm2015/date-month/sd-angular-core-date-month.js +1 -1
- package/esm2015/date-month/src/lib/date-month.component.js +1 -1
- package/esm2015/date-month/src/lib/date-month.module.js +1 -1
- package/esm2015/date-month/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/db/index.js +1 -1
- package/esm2015/db/sd-angular-core-db.js +1 -1
- package/esm2015/db/src/lib/db.model.js +1 -1
- package/esm2015/db/src/lib/db.service.js +2 -2
- package/esm2015/db/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.model.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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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/functions/calculate-sd-id.js +1 -1
- package/esm2015/grid-material/src/lib/grid-material.component.js +20 -6
- package/esm2015/grid-material/src/lib/grid-material.module.js +1 -1
- 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-group.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 +1 -1
- 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 +1 -1
- package/esm2015/grid-material/src/lib/pipes/column-values.pipe.js +1 -1
- 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-group.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/group/index.js +1 -1
- package/esm2015/group/sd-angular-core-group.js +1 -1
- package/esm2015/group/src/lib/group.component.js +1 -1
- package/esm2015/group/src/lib/group.module.js +1 -1
- package/esm2015/group/src/public-api.js +1 -1
- package/esm2015/header-title/index.js +1 -1
- package/esm2015/header-title/sd-angular-core-header-title.js +1 -1
- package/esm2015/header-title/src/lib/header-title.component.js +1 -1
- package/esm2015/header-title/src/lib/header-title.module.js +1 -1
- package/esm2015/header-title/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-number/index.js +1 -1
- package/esm2015/input-number/sd-angular-core-input-number.js +1 -1
- package/esm2015/input-number/src/lib/input-number.component.js +1 -1
- package/esm2015/input-number/src/lib/input-number.module.js +1 -1
- package/esm2015/input-number/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/json-editor/index.js +1 -1
- package/esm2015/json-editor/sd-angular-core-json-editor.js +1 -1
- package/esm2015/json-editor/src/lib/json-editor.component.js +1 -1
- package/esm2015/json-editor/src/lib/json-editor.module.js +1 -1
- package/esm2015/json-editor/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/configurations/notify.configuration.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-content.directive.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-badge/index.js +1 -1
- package/esm2015/select-badge/sd-angular-core-select-badge.js +1 -1
- package/esm2015/select-badge/src/lib/select-badge-display-def.directive.js +1 -1
- package/esm2015/select-badge/src/lib/select-badge.component.js +1 -1
- package/esm2015/select-badge/src/lib/select-badge.module.js +1 -1
- package/esm2015/select-badge/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/directives/router-link-mouse-down.directive.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/timeline/index.js +1 -1
- package/esm2015/timeline/sd-angular-core-timeline.js +1 -1
- package/esm2015/timeline/src/lib/components/timeline.component.js +1 -1
- package/esm2015/timeline/src/lib/directives/timeline-def.directive.js +1 -1
- package/esm2015/timeline/src/lib/timeline.module.js +1 -1
- package/esm2015/timeline/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/pipes/columm-hidden.pipe.js +1 -1
- package/esm2015/upload-excel/src/lib/pipes/column-transform.pipe.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-db.js +1 -1
- package/fesm2015/sd-angular-core-db.js.map +1 -1
- package/fesm2015/sd-angular-core-grid-material.js +19 -5
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/grid-material/src/lib/grid-material.component.d.ts +1 -1
- package/grid-material/src/lib/models/grid-editor.model.d.ts +1 -0
- package/package.json +1 -1
- package/{sd-angular-core-1.3.14.tgz → sd-angular-core-1.3.16.tgz} +0 -0
|
@@ -1880,11 +1880,11 @@
|
|
|
1880
1880
|
this.exportTitle = 'Export';
|
|
1881
1881
|
_loadCompleted.set(this, false);
|
|
1882
1882
|
_initCellDef.set(this, function () {
|
|
1883
|
-
var e_1,
|
|
1883
|
+
var e_1, _4;
|
|
1884
1884
|
_this.cellDef = {};
|
|
1885
1885
|
try {
|
|
1886
|
-
for (var
|
|
1887
|
-
var cellDef =
|
|
1886
|
+
for (var _5 = __values(_this.sdCellDefs), _6 = _5.next(); !_6.done; _6 = _5.next()) {
|
|
1887
|
+
var cellDef = _6.value;
|
|
1888
1888
|
if (cellDef.sdMaterialCellDef) {
|
|
1889
1889
|
_this.cellDef[cellDef.sdMaterialCellDef] = cellDef;
|
|
1890
1890
|
}
|
|
@@ -1893,35 +1893,35 @@
|
|
|
1893
1893
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1894
1894
|
finally {
|
|
1895
1895
|
try {
|
|
1896
|
-
if (
|
|
1896
|
+
if (_6 && !_6.done && (_4 = _5.return)) _4.call(_5);
|
|
1897
1897
|
}
|
|
1898
1898
|
finally { if (e_1) throw e_1.error; }
|
|
1899
1899
|
}
|
|
1900
1900
|
});
|
|
1901
1901
|
_initFilterDef.set(this, function () {
|
|
1902
|
-
var e_2,
|
|
1902
|
+
var e_2, _4;
|
|
1903
1903
|
_this.filterDefs = [];
|
|
1904
1904
|
try {
|
|
1905
|
-
for (var
|
|
1906
|
-
var filterDef =
|
|
1905
|
+
for (var _5 = __values(_this.sdFilterDefs), _6 = _5.next(); !_6.done; _6 = _5.next()) {
|
|
1906
|
+
var filterDef = _6.value;
|
|
1907
1907
|
_this.filterDefs.push(filterDef);
|
|
1908
1908
|
}
|
|
1909
1909
|
}
|
|
1910
1910
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1911
1911
|
finally {
|
|
1912
1912
|
try {
|
|
1913
|
-
if (
|
|
1913
|
+
if (_6 && !_6.done && (_4 = _5.return)) _4.call(_5);
|
|
1914
1914
|
}
|
|
1915
1915
|
finally { if (e_2) throw e_2.error; }
|
|
1916
1916
|
}
|
|
1917
1917
|
});
|
|
1918
1918
|
_initFooterDef.set(this, function () {
|
|
1919
|
-
var e_3,
|
|
1919
|
+
var e_3, _4;
|
|
1920
1920
|
_this.footerDef = {};
|
|
1921
1921
|
_this.hasFooter = false;
|
|
1922
1922
|
try {
|
|
1923
|
-
for (var
|
|
1924
|
-
var footerDef =
|
|
1923
|
+
for (var _5 = __values(_this.sdFooterDefs), _6 = _5.next(); !_6.done; _6 = _5.next()) {
|
|
1924
|
+
var footerDef = _6.value;
|
|
1925
1925
|
if (footerDef.sdMaterialFooterDef) {
|
|
1926
1926
|
_this.hasFooter = true;
|
|
1927
1927
|
_this.footerDef[footerDef.sdMaterialFooterDef] = footerDef;
|
|
@@ -1931,7 +1931,7 @@
|
|
|
1931
1931
|
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
1932
1932
|
finally {
|
|
1933
1933
|
try {
|
|
1934
|
-
if (
|
|
1934
|
+
if (_6 && !_6.done && (_4 = _5.return)) _4.call(_5);
|
|
1935
1935
|
}
|
|
1936
1936
|
finally { if (e_3) throw e_3.error; }
|
|
1937
1937
|
}
|
|
@@ -1963,7 +1963,7 @@
|
|
|
1963
1963
|
var columns = _this.gridOption.columns;
|
|
1964
1964
|
var rawColumnFilter = filterInfo.rawColumnFilter, orderBy = filterInfo.orderBy, orderDirection = filterInfo.orderDirection, pageSize = filterInfo.pageSize, pageNumber = filterInfo.pageNumber;
|
|
1965
1965
|
var items = localItems.filter(function (item) {
|
|
1966
|
-
var e_4,
|
|
1966
|
+
var e_4, _4;
|
|
1967
1967
|
var _a, _b, _c, _d;
|
|
1968
1968
|
try {
|
|
1969
1969
|
for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
|
|
@@ -2037,7 +2037,7 @@
|
|
|
2037
2037
|
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
2038
2038
|
finally {
|
|
2039
2039
|
try {
|
|
2040
|
-
if (columns_1_1 && !columns_1_1.done && (
|
|
2040
|
+
if (columns_1_1 && !columns_1_1.done && (_4 = columns_1.return)) _4.call(columns_1);
|
|
2041
2041
|
}
|
|
2042
2042
|
finally { if (e_4) throw e_4.error; }
|
|
2043
2043
|
}
|
|
@@ -2095,38 +2095,38 @@
|
|
|
2095
2095
|
_load$1.set(this, function (filterReq, force) {
|
|
2096
2096
|
if (force === void 0) { force = true; }
|
|
2097
2097
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2098
|
-
var result, results,
|
|
2099
|
-
return __generator(this, function (
|
|
2100
|
-
switch (
|
|
2098
|
+
var result, results, _4, _5, error_1;
|
|
2099
|
+
return __generator(this, function (_6) {
|
|
2100
|
+
switch (_6.label) {
|
|
2101
2101
|
case 0:
|
|
2102
2102
|
this.isLoading = true;
|
|
2103
|
-
|
|
2103
|
+
_6.label = 1;
|
|
2104
2104
|
case 1:
|
|
2105
|
-
|
|
2105
|
+
_6.trys.push([1, 8, 9, 10]);
|
|
2106
2106
|
if (!(this.gridOption.type === 'server')) return [3 /*break*/, 3];
|
|
2107
2107
|
result = this.gridOption.items(filterReq);
|
|
2108
2108
|
if (rxjs.isObservable(result)) {
|
|
2109
2109
|
result = result.toPromise();
|
|
2110
2110
|
}
|
|
2111
2111
|
return [4 /*yield*/, result];
|
|
2112
|
-
case 2: return [2 /*return*/,
|
|
2112
|
+
case 2: return [2 /*return*/, _6.sent()];
|
|
2113
2113
|
case 3:
|
|
2114
2114
|
if (!force) return [3 /*break*/, 6];
|
|
2115
2115
|
results = this.gridOption.items();
|
|
2116
2116
|
if (!(results instanceof Promise)) return [3 /*break*/, 5];
|
|
2117
|
-
|
|
2118
|
-
|
|
2117
|
+
_4 = __classPrivateFieldSet;
|
|
2118
|
+
_5 = [this, _localItems];
|
|
2119
2119
|
return [4 /*yield*/, results];
|
|
2120
2120
|
case 4:
|
|
2121
|
-
|
|
2121
|
+
_4.apply(void 0, _5.concat([_6.sent()]));
|
|
2122
2122
|
return [3 /*break*/, 6];
|
|
2123
2123
|
case 5:
|
|
2124
2124
|
__classPrivateFieldSet(this, _localItems, results);
|
|
2125
|
-
|
|
2125
|
+
_6.label = 6;
|
|
2126
2126
|
case 6: return [2 /*return*/, __classPrivateFieldGet(this, _filterLocal).call(this, __classPrivateFieldGet(this, _localItems), filterReq)];
|
|
2127
2127
|
case 7: return [3 /*break*/, 10];
|
|
2128
2128
|
case 8:
|
|
2129
|
-
error_1 =
|
|
2129
|
+
error_1 = _6.sent();
|
|
2130
2130
|
this.notifyService.handle.error(error_1);
|
|
2131
2131
|
return [3 /*break*/, 10];
|
|
2132
2132
|
case 9:
|
|
@@ -2140,8 +2140,8 @@
|
|
|
2140
2140
|
});
|
|
2141
2141
|
_render.set(this, function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
2142
2142
|
var _a, _b, _c, _d;
|
|
2143
|
-
return __generator(this, function (
|
|
2144
|
-
switch (
|
|
2143
|
+
return __generator(this, function (_4) {
|
|
2144
|
+
switch (_4.label) {
|
|
2145
2145
|
case 0:
|
|
2146
2146
|
(_a = this.sdScroll) === null || _a === void 0 ? void 0 : _a.scrollTop();
|
|
2147
2147
|
this.items = (args === null || args === void 0 ? void 0 : args.items) || [];
|
|
@@ -2152,7 +2152,7 @@
|
|
|
2152
2152
|
});
|
|
2153
2153
|
return [4 /*yield*/, ((_d = (_c = (_b = this.gridOption) === null || _b === void 0 ? void 0 : _b.reload) === null || _c === void 0 ? void 0 : _c.onReload) === null || _d === void 0 ? void 0 : _d.call(_c, this.items))];
|
|
2154
2154
|
case 1:
|
|
2155
|
-
|
|
2155
|
+
_4.sent();
|
|
2156
2156
|
this.isSelectAll = this.items.every(function (e) { return e.isSelected; });
|
|
2157
2157
|
__classPrivateFieldGet(this, _updateSelectedItems).call(this);
|
|
2158
2158
|
return [2 /*return*/];
|
|
@@ -2163,11 +2163,11 @@
|
|
|
2163
2163
|
if (force === void 0) { force = true; }
|
|
2164
2164
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2165
2165
|
var data;
|
|
2166
|
-
return __generator(this, function (
|
|
2167
|
-
switch (
|
|
2166
|
+
return __generator(this, function (_4) {
|
|
2167
|
+
switch (_4.label) {
|
|
2168
2168
|
case 0: return [4 /*yield*/, __classPrivateFieldGet(this, _load$1).call(this, __classPrivateFieldGet(this, _getFilter).call(this), force)];
|
|
2169
2169
|
case 1:
|
|
2170
|
-
data =
|
|
2170
|
+
data = _4.sent();
|
|
2171
2171
|
__classPrivateFieldGet(this, _render).call(this, data);
|
|
2172
2172
|
return [2 /*return*/];
|
|
2173
2173
|
}
|
|
@@ -2179,8 +2179,8 @@
|
|
|
2179
2179
|
if (pageSize === void 0) { pageSize = 10000; }
|
|
2180
2180
|
return __awaiter(_this, void 0, void 0, function () {
|
|
2181
2181
|
var _e, _f, result, filterInfo, result, exportedItems, results;
|
|
2182
|
-
return __generator(this, function (
|
|
2183
|
-
switch (
|
|
2182
|
+
return __generator(this, function (_4) {
|
|
2183
|
+
switch (_4.label) {
|
|
2184
2184
|
case 0:
|
|
2185
2185
|
if (!((_e = this.gridOption.export) === null || _e === void 0 ? void 0 : _e.items)) return [3 /*break*/, 2];
|
|
2186
2186
|
result = (_f = this.gridOption.export) === null || _f === void 0 ? void 0 : _f.items(__classPrivateFieldGet(this, _filterExportInfo).call(this, pageNumber, pageSize));
|
|
@@ -2194,7 +2194,7 @@
|
|
|
2194
2194
|
result = result.toPromise();
|
|
2195
2195
|
}
|
|
2196
2196
|
return [4 /*yield*/, result];
|
|
2197
|
-
case 1: return [2 /*return*/,
|
|
2197
|
+
case 1: return [2 /*return*/, _4.sent()];
|
|
2198
2198
|
case 2:
|
|
2199
2199
|
filterInfo = __classPrivateFieldGet(this, _filterExportInfo).call(this, pageNumber, pageSize);
|
|
2200
2200
|
if (!(this.gridOption.type === 'server')) return [3 /*break*/, 4];
|
|
@@ -2203,7 +2203,7 @@
|
|
|
2203
2203
|
result = result.toPromise();
|
|
2204
2204
|
}
|
|
2205
2205
|
return [4 /*yield*/, result];
|
|
2206
|
-
case 3: return [2 /*return*/,
|
|
2206
|
+
case 3: return [2 /*return*/, _4.sent()];
|
|
2207
2207
|
case 4:
|
|
2208
2208
|
exportedItems = [];
|
|
2209
2209
|
if (!(typeof (this.gridOption.items) === 'function')) return [3 /*break*/, 8];
|
|
@@ -2211,15 +2211,15 @@
|
|
|
2211
2211
|
if (!(results instanceof Promise)) return [3 /*break*/, 6];
|
|
2212
2212
|
return [4 /*yield*/, results];
|
|
2213
2213
|
case 5:
|
|
2214
|
-
exportedItems =
|
|
2214
|
+
exportedItems = _4.sent();
|
|
2215
2215
|
return [3 /*break*/, 7];
|
|
2216
2216
|
case 6:
|
|
2217
2217
|
exportedItems = results;
|
|
2218
|
-
|
|
2218
|
+
_4.label = 7;
|
|
2219
2219
|
case 7: return [3 /*break*/, 9];
|
|
2220
2220
|
case 8:
|
|
2221
2221
|
exportedItems = this.gridOption.items;
|
|
2222
|
-
|
|
2222
|
+
_4.label = 9;
|
|
2223
2223
|
case 9: return [2 /*return*/, __classPrivateFieldGet(this, _filterLocal).call(this, exportedItems, filterInfo)];
|
|
2224
2224
|
}
|
|
2225
2225
|
});
|
|
@@ -2259,13 +2259,13 @@
|
|
|
2259
2259
|
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); })) || [];
|
|
2260
2260
|
});
|
|
2261
2261
|
_onExport.set(this, function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
2262
|
-
var _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, file, isCSV, isRaw, columns_2, pageSize_1, batch, total_1, pageNumber_1, exportItems_1, items_1, promises_1, handleData, sheets,
|
|
2263
|
-
var e_5,
|
|
2262
|
+
var _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, file, isCSV, isRaw, columns_2, pageSize_1, batch, total_1, pageNumber_1, exportItems_1, items_1, promises_1, handleData, sheets, _4, _5, sheet, _6, _7, _8, e_5_1;
|
|
2263
|
+
var e_5, _9;
|
|
2264
2264
|
var _this = this;
|
|
2265
|
-
return __generator(this, function (
|
|
2266
|
-
switch (
|
|
2265
|
+
return __generator(this, function (_10) {
|
|
2266
|
+
switch (_10.label) {
|
|
2267
2267
|
case 0:
|
|
2268
|
-
|
|
2268
|
+
_10.trys.push([0, , 22, 23]);
|
|
2269
2269
|
file = args.file, isCSV = args.isCSV, isRaw = args.isRaw;
|
|
2270
2270
|
columns_2 = args.columns;
|
|
2271
2271
|
pageSize_1 = ((_h = (_g = this.gridOption) === null || _g === void 0 ? void 0 : _g.export) === null || _h === void 0 ? void 0 : _h.maxItemsPerRequest) || 1000;
|
|
@@ -2278,13 +2278,13 @@
|
|
|
2278
2278
|
promises_1 = [];
|
|
2279
2279
|
handleData = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2280
2280
|
var _u, results, results_1, results_1_1, result, results_2, totalPage, percent, allColumns, allExportedColumns, _loop_1, exportItems_2, exportItems_2_1, item, e_6_1;
|
|
2281
|
-
var e_7,
|
|
2281
|
+
var e_7, _4, e_6, _5;
|
|
2282
2282
|
var _this = this;
|
|
2283
|
-
return __generator(this, function (
|
|
2284
|
-
switch (
|
|
2283
|
+
return __generator(this, function (_6) {
|
|
2284
|
+
switch (_6.label) {
|
|
2285
2285
|
case 0: return [4 /*yield*/, Promise.all(promises_1)];
|
|
2286
2286
|
case 1:
|
|
2287
|
-
results =
|
|
2287
|
+
results = _6.sent();
|
|
2288
2288
|
promises_1 = [];
|
|
2289
2289
|
exportItems_1 = [];
|
|
2290
2290
|
try {
|
|
@@ -2302,7 +2302,7 @@
|
|
|
2302
2302
|
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
2303
2303
|
finally {
|
|
2304
2304
|
try {
|
|
2305
|
-
if (results_1_1 && !results_1_1.done && (
|
|
2305
|
+
if (results_1_1 && !results_1_1.done && (_4 = results_1.return)) _4.call(results_1);
|
|
2306
2306
|
}
|
|
2307
2307
|
finally { if (e_7) throw e_7.error; }
|
|
2308
2308
|
}
|
|
@@ -2311,11 +2311,11 @@
|
|
|
2311
2311
|
if (!(results_2 instanceof Promise)) return [3 /*break*/, 3];
|
|
2312
2312
|
return [4 /*yield*/, results_2];
|
|
2313
2313
|
case 2:
|
|
2314
|
-
exportItems_1 =
|
|
2314
|
+
exportItems_1 = _6.sent();
|
|
2315
2315
|
return [3 /*break*/, 4];
|
|
2316
2316
|
case 3:
|
|
2317
2317
|
exportItems_1 = results_2;
|
|
2318
|
-
|
|
2318
|
+
_6.label = 4;
|
|
2319
2319
|
case 4:
|
|
2320
2320
|
totalPage = total_1 / pageSize_1;
|
|
2321
2321
|
percent = Math.round((pageNumber_1 - 1) * 100.0 / totalPage);
|
|
@@ -2324,15 +2324,15 @@
|
|
|
2324
2324
|
allExportedColumns = __classPrivateFieldGet(this, _allExportedColumns).call(this);
|
|
2325
2325
|
_loop_1 = function (item) {
|
|
2326
2326
|
var obj, handle, columns_3, columns_3_1, exportColumn, e_8_1;
|
|
2327
|
-
var e_8,
|
|
2328
|
-
return __generator(this, function (
|
|
2329
|
-
switch (
|
|
2327
|
+
var e_8, _4;
|
|
2328
|
+
return __generator(this, function (_5) {
|
|
2329
|
+
switch (_5.label) {
|
|
2330
2330
|
case 0:
|
|
2331
2331
|
obj = {};
|
|
2332
2332
|
handle = function (exportColumn) { return __awaiter(_this, void 0, void 0, function () {
|
|
2333
|
-
var _v, _w, column, exportedColumn, transform,
|
|
2334
|
-
return __generator(this, function (
|
|
2335
|
-
switch (
|
|
2333
|
+
var _v, _w, column, exportedColumn, transform, _4, _5, date, transformDate, date, transformDate, date, transformDate, _6, _7;
|
|
2334
|
+
return __generator(this, function (_8) {
|
|
2335
|
+
switch (_8.label) {
|
|
2336
2336
|
case 0:
|
|
2337
2337
|
obj[exportColumn.field] = item[exportColumn.field];
|
|
2338
2338
|
column = allColumns.find(function (e) { return e.field === exportColumn.field; });
|
|
@@ -2354,15 +2354,15 @@
|
|
|
2354
2354
|
if (!column.transform) return [3 /*break*/, 4];
|
|
2355
2355
|
transform = column.transform(item[column.field], item);
|
|
2356
2356
|
if (!(transform instanceof Promise)) return [3 /*break*/, 2];
|
|
2357
|
-
|
|
2358
|
-
|
|
2357
|
+
_4 = obj;
|
|
2358
|
+
_5 = column.field;
|
|
2359
2359
|
return [4 /*yield*/, transform];
|
|
2360
2360
|
case 1:
|
|
2361
|
-
|
|
2361
|
+
_4[_5] = _8.sent();
|
|
2362
2362
|
return [3 /*break*/, 3];
|
|
2363
2363
|
case 2:
|
|
2364
2364
|
obj[column.field] = transform;
|
|
2365
|
-
|
|
2365
|
+
_8.label = 3;
|
|
2366
2366
|
case 3: return [3 /*break*/, 13];
|
|
2367
2367
|
case 4:
|
|
2368
2368
|
if (!(item[column.field] === undefined || item[column.field] === null || item[column.field] === '')) return [3 /*break*/, 5];
|
|
@@ -2416,43 +2416,43 @@
|
|
|
2416
2416
|
case 10:
|
|
2417
2417
|
if (!(column.type === 'values')) return [3 /*break*/, 12];
|
|
2418
2418
|
// Nếu là values thì lấy giá trị của value được chọn
|
|
2419
|
-
|
|
2420
|
-
|
|
2419
|
+
_6 = obj;
|
|
2420
|
+
_7 = column.field;
|
|
2421
2421
|
return [4 /*yield*/, this.columnValuesPipe.transform(item[column.field], column)];
|
|
2422
2422
|
case 11:
|
|
2423
2423
|
// Nếu là values thì lấy giá trị của value được chọn
|
|
2424
|
-
|
|
2424
|
+
_6[_7] = _8.sent();
|
|
2425
2425
|
return [3 /*break*/, 13];
|
|
2426
2426
|
case 12:
|
|
2427
2427
|
obj[column.field] = item[column.field];
|
|
2428
|
-
|
|
2428
|
+
_8.label = 13;
|
|
2429
2429
|
case 13: return [2 /*return*/];
|
|
2430
2430
|
}
|
|
2431
2431
|
});
|
|
2432
2432
|
}); };
|
|
2433
|
-
|
|
2433
|
+
_5.label = 1;
|
|
2434
2434
|
case 1:
|
|
2435
|
-
|
|
2435
|
+
_5.trys.push([1, 6, 7, 8]);
|
|
2436
2436
|
columns_3 = (e_8 = void 0, __values(columns_2)), columns_3_1 = columns_3.next();
|
|
2437
|
-
|
|
2437
|
+
_5.label = 2;
|
|
2438
2438
|
case 2:
|
|
2439
2439
|
if (!!columns_3_1.done) return [3 /*break*/, 5];
|
|
2440
2440
|
exportColumn = columns_3_1.value;
|
|
2441
2441
|
return [4 /*yield*/, handle(exportColumn)];
|
|
2442
2442
|
case 3:
|
|
2443
|
-
|
|
2444
|
-
|
|
2443
|
+
_5.sent();
|
|
2444
|
+
_5.label = 4;
|
|
2445
2445
|
case 4:
|
|
2446
2446
|
columns_3_1 = columns_3.next();
|
|
2447
2447
|
return [3 /*break*/, 2];
|
|
2448
2448
|
case 5: return [3 /*break*/, 8];
|
|
2449
2449
|
case 6:
|
|
2450
|
-
e_8_1 =
|
|
2450
|
+
e_8_1 = _5.sent();
|
|
2451
2451
|
e_8 = { error: e_8_1 };
|
|
2452
2452
|
return [3 /*break*/, 8];
|
|
2453
2453
|
case 7:
|
|
2454
2454
|
try {
|
|
2455
|
-
if (columns_3_1 && !columns_3_1.done && (
|
|
2455
|
+
if (columns_3_1 && !columns_3_1.done && (_4 = columns_3.return)) _4.call(columns_3);
|
|
2456
2456
|
}
|
|
2457
2457
|
finally { if (e_8) throw e_8.error; }
|
|
2458
2458
|
return [7 /*endfinally*/];
|
|
@@ -2462,29 +2462,29 @@
|
|
|
2462
2462
|
}
|
|
2463
2463
|
});
|
|
2464
2464
|
};
|
|
2465
|
-
|
|
2465
|
+
_6.label = 5;
|
|
2466
2466
|
case 5:
|
|
2467
|
-
|
|
2467
|
+
_6.trys.push([5, 10, 11, 12]);
|
|
2468
2468
|
exportItems_2 = __values(exportItems_1), exportItems_2_1 = exportItems_2.next();
|
|
2469
|
-
|
|
2469
|
+
_6.label = 6;
|
|
2470
2470
|
case 6:
|
|
2471
2471
|
if (!!exportItems_2_1.done) return [3 /*break*/, 9];
|
|
2472
2472
|
item = exportItems_2_1.value;
|
|
2473
2473
|
return [5 /*yield**/, _loop_1(item)];
|
|
2474
2474
|
case 7:
|
|
2475
|
-
|
|
2476
|
-
|
|
2475
|
+
_6.sent();
|
|
2476
|
+
_6.label = 8;
|
|
2477
2477
|
case 8:
|
|
2478
2478
|
exportItems_2_1 = exportItems_2.next();
|
|
2479
2479
|
return [3 /*break*/, 6];
|
|
2480
2480
|
case 9: return [3 /*break*/, 12];
|
|
2481
2481
|
case 10:
|
|
2482
|
-
e_6_1 =
|
|
2482
|
+
e_6_1 = _6.sent();
|
|
2483
2483
|
e_6 = { error: e_6_1 };
|
|
2484
2484
|
return [3 /*break*/, 12];
|
|
2485
2485
|
case 11:
|
|
2486
2486
|
try {
|
|
2487
|
-
if (exportItems_2_1 && !exportItems_2_1.done && (
|
|
2487
|
+
if (exportItems_2_1 && !exportItems_2_1.done && (_5 = exportItems_2.return)) _5.call(exportItems_2);
|
|
2488
2488
|
}
|
|
2489
2489
|
finally { if (e_6) throw e_6.error; }
|
|
2490
2490
|
return [7 /*endfinally*/];
|
|
@@ -2492,7 +2492,7 @@
|
|
|
2492
2492
|
}
|
|
2493
2493
|
});
|
|
2494
2494
|
}); };
|
|
2495
|
-
|
|
2495
|
+
_10.label = 1;
|
|
2496
2496
|
case 1:
|
|
2497
2497
|
if (!(pageNumber_1 * pageSize_1 < total_1)) return [3 /*break*/, 3];
|
|
2498
2498
|
promises_1.push(__classPrivateFieldGet(this, _exportedItems).call(this, pageNumber_1, pageSize_1));
|
|
@@ -2502,14 +2502,14 @@
|
|
|
2502
2502
|
}
|
|
2503
2503
|
return [4 /*yield*/, handleData()];
|
|
2504
2504
|
case 2:
|
|
2505
|
-
|
|
2505
|
+
_10.sent();
|
|
2506
2506
|
return [3 /*break*/, 1];
|
|
2507
2507
|
case 3:
|
|
2508
2508
|
if (!(promises_1.length > 0)) return [3 /*break*/, 5];
|
|
2509
2509
|
return [4 /*yield*/, handleData()];
|
|
2510
2510
|
case 4:
|
|
2511
|
-
|
|
2512
|
-
|
|
2511
|
+
_10.sent();
|
|
2512
|
+
_10.label = 5;
|
|
2513
2513
|
case 5:
|
|
2514
2514
|
if (!!(file === null || file === void 0 ? void 0 : file.filePath)) return [3 /*break*/, 20];
|
|
2515
2515
|
if (!isCSV) return [3 /*break*/, 7];
|
|
@@ -2519,7 +2519,7 @@
|
|
|
2519
2519
|
fileName: (_m = (_l = this.gridOption) === null || _l === void 0 ? void 0 : _l.export) === null || _m === void 0 ? void 0 : _m.fileName
|
|
2520
2520
|
})];
|
|
2521
2521
|
case 6:
|
|
2522
|
-
|
|
2522
|
+
_10.sent();
|
|
2523
2523
|
return [2 /*return*/];
|
|
2524
2524
|
case 7:
|
|
2525
2525
|
if (!isRaw) return [3 /*break*/, 9];
|
|
@@ -2529,19 +2529,19 @@
|
|
|
2529
2529
|
fileName: (_p = (_o = this.gridOption) === null || _o === void 0 ? void 0 : _o.export) === null || _p === void 0 ? void 0 : _p.fileName
|
|
2530
2530
|
})];
|
|
2531
2531
|
case 8:
|
|
2532
|
-
|
|
2532
|
+
_10.sent();
|
|
2533
2533
|
return [2 /*return*/];
|
|
2534
2534
|
case 9:
|
|
2535
2535
|
sheets = [];
|
|
2536
2536
|
if (!Array.isArray((_r = (_q = this.gridOption) === null || _q === void 0 ? void 0 : _q.export) === null || _r === void 0 ? void 0 : _r.sheets)) return [3 /*break*/, 18];
|
|
2537
|
-
|
|
2537
|
+
_10.label = 10;
|
|
2538
2538
|
case 10:
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2539
|
+
_10.trys.push([10, 16, 17, 18]);
|
|
2540
|
+
_4 = __values(this.gridOption.export.sheets), _5 = _4.next();
|
|
2541
|
+
_10.label = 11;
|
|
2542
2542
|
case 11:
|
|
2543
|
-
if (!!
|
|
2544
|
-
sheet =
|
|
2543
|
+
if (!!_5.done) return [3 /*break*/, 15];
|
|
2544
|
+
sheet = _5.value;
|
|
2545
2545
|
if (!(sheet.name && sheet.items && sheet.fields)) return [3 /*break*/, 14];
|
|
2546
2546
|
if (!Array.isArray(sheet.items)) return [3 /*break*/, 12];
|
|
2547
2547
|
sheets.push({
|
|
@@ -2551,27 +2551,27 @@
|
|
|
2551
2551
|
});
|
|
2552
2552
|
return [3 /*break*/, 14];
|
|
2553
2553
|
case 12:
|
|
2554
|
-
|
|
2555
|
-
|
|
2554
|
+
_7 = (_6 = sheets).push;
|
|
2555
|
+
_8 = {
|
|
2556
2556
|
name: sheet.name
|
|
2557
2557
|
};
|
|
2558
2558
|
return [4 /*yield*/, sheet.items()];
|
|
2559
2559
|
case 13:
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2560
|
+
_7.apply(_6, [(_8.items = _10.sent(),
|
|
2561
|
+
_8.fields = sheet.fields,
|
|
2562
|
+
_8)]);
|
|
2563
|
+
_10.label = 14;
|
|
2564
2564
|
case 14:
|
|
2565
|
-
|
|
2565
|
+
_5 = _4.next();
|
|
2566
2566
|
return [3 /*break*/, 11];
|
|
2567
2567
|
case 15: return [3 /*break*/, 18];
|
|
2568
2568
|
case 16:
|
|
2569
|
-
e_5_1 =
|
|
2569
|
+
e_5_1 = _10.sent();
|
|
2570
2570
|
e_5 = { error: e_5_1 };
|
|
2571
2571
|
return [3 /*break*/, 18];
|
|
2572
2572
|
case 17:
|
|
2573
2573
|
try {
|
|
2574
|
-
if (
|
|
2574
|
+
if (_5 && !_5.done && (_9 = _4.return)) _9.call(_4);
|
|
2575
2575
|
}
|
|
2576
2576
|
finally { if (e_5) throw e_5.error; }
|
|
2577
2577
|
return [7 /*endfinally*/];
|
|
@@ -2582,7 +2582,7 @@
|
|
|
2582
2582
|
sheets: sheets
|
|
2583
2583
|
})];
|
|
2584
2584
|
case 19:
|
|
2585
|
-
|
|
2585
|
+
_10.sent();
|
|
2586
2586
|
return [2 /*return*/];
|
|
2587
2587
|
case 20: return [4 /*yield*/, this.exportService.exportByTemplate({
|
|
2588
2588
|
filePath: file.filePath,
|
|
@@ -2591,7 +2591,7 @@
|
|
|
2591
2591
|
items: items_1
|
|
2592
2592
|
})];
|
|
2593
2593
|
case 21:
|
|
2594
|
-
|
|
2594
|
+
_10.sent();
|
|
2595
2595
|
return [3 /*break*/, 23];
|
|
2596
2596
|
case 22:
|
|
2597
2597
|
this.isExporting = false;
|
|
@@ -2604,7 +2604,7 @@
|
|
|
2604
2604
|
}); });
|
|
2605
2605
|
this.onExport = function (args) { return __awaiter(_this, void 0, void 0, function () {
|
|
2606
2606
|
var translate;
|
|
2607
|
-
return __generator(this, function (
|
|
2607
|
+
return __generator(this, function (_4) {
|
|
2608
2608
|
translate = this.translateService.translate;
|
|
2609
2609
|
if (!args.isCSV && this.gridOption.export.max && this.total > this.gridOption.export.max) {
|
|
2610
2610
|
args.isRaw = true;
|
|
@@ -2625,7 +2625,7 @@
|
|
|
2625
2625
|
};
|
|
2626
2626
|
this.onExpand = function (rowData) { return __awaiter(_this, void 0, void 0, function () {
|
|
2627
2627
|
var _x, _y, _z, _0, _1, data;
|
|
2628
|
-
return __generator(this, function (
|
|
2628
|
+
return __generator(this, function (_4) {
|
|
2629
2629
|
if ((_x = this.gridOption.subInformation) === null || _x === void 0 ? void 0 : _x.always) {
|
|
2630
2630
|
return [2 /*return*/];
|
|
2631
2631
|
}
|
|
@@ -2710,7 +2710,7 @@
|
|
|
2710
2710
|
};
|
|
2711
2711
|
this.onCreate = function () {
|
|
2712
2712
|
var _a, _b;
|
|
2713
|
-
var
|
|
2713
|
+
var _4 = _this.gridOption, type = _4.type, editor = _4.editor, columns = _4.columns;
|
|
2714
2714
|
if (!(editor === null || editor === void 0 ? void 0 : editor.addable)) {
|
|
2715
2715
|
return;
|
|
2716
2716
|
}
|
|
@@ -2766,23 +2766,23 @@
|
|
|
2766
2766
|
};
|
|
2767
2767
|
this.onSave = function (item) { return __awaiter(_this, void 0, void 0, function () {
|
|
2768
2768
|
var editor, result, message, result, err_1;
|
|
2769
|
-
return __generator(this, function (
|
|
2770
|
-
switch (
|
|
2769
|
+
return __generator(this, function (_4) {
|
|
2770
|
+
switch (_4.label) {
|
|
2771
2771
|
case 0:
|
|
2772
2772
|
if (item.editorHandlerRow.saving) {
|
|
2773
2773
|
return [2 /*return*/];
|
|
2774
2774
|
}
|
|
2775
2775
|
editor = this.gridOption.editor;
|
|
2776
|
-
|
|
2776
|
+
_4.label = 1;
|
|
2777
2777
|
case 1:
|
|
2778
|
-
|
|
2778
|
+
_4.trys.push([1, 7, 8, 9]);
|
|
2779
2779
|
item.editorHandlerRow.saving = true;
|
|
2780
2780
|
if (!editor.validate) return [3 /*break*/, 4];
|
|
2781
2781
|
result = editor.validate(item, this.items.indexOf(item));
|
|
2782
2782
|
if (!(result instanceof Promise)) return [3 /*break*/, 3];
|
|
2783
2783
|
return [4 /*yield*/, result];
|
|
2784
2784
|
case 2:
|
|
2785
|
-
message =
|
|
2785
|
+
message = _4.sent();
|
|
2786
2786
|
if (message) {
|
|
2787
2787
|
throw message;
|
|
2788
2788
|
}
|
|
@@ -2791,15 +2791,15 @@
|
|
|
2791
2791
|
if (result) {
|
|
2792
2792
|
throw result;
|
|
2793
2793
|
}
|
|
2794
|
-
|
|
2794
|
+
_4.label = 4;
|
|
2795
2795
|
case 4:
|
|
2796
2796
|
if (!editor.onSave) return [3 /*break*/, 6];
|
|
2797
2797
|
result = editor.onSave(item);
|
|
2798
2798
|
if (!(result instanceof Promise)) return [3 /*break*/, 6];
|
|
2799
2799
|
return [4 /*yield*/, result];
|
|
2800
2800
|
case 5:
|
|
2801
|
-
|
|
2802
|
-
|
|
2801
|
+
_4.sent();
|
|
2802
|
+
_4.label = 6;
|
|
2803
2803
|
case 6:
|
|
2804
2804
|
if (item.editorStatus === 'create' && editor.type === 'popup') {
|
|
2805
2805
|
if (this.gridOption.type === 'local') {
|
|
@@ -2810,7 +2810,7 @@
|
|
|
2810
2810
|
item.editorStatus = undefined;
|
|
2811
2811
|
return [3 /*break*/, 9];
|
|
2812
2812
|
case 7:
|
|
2813
|
-
err_1 =
|
|
2813
|
+
err_1 = _4.sent();
|
|
2814
2814
|
this.notifyService.notify.warning(err_1);
|
|
2815
2815
|
return [3 /*break*/, 9];
|
|
2816
2816
|
case 8:
|
|
@@ -2860,28 +2860,50 @@
|
|
|
2860
2860
|
item.editorStatus = undefined;
|
|
2861
2861
|
_this.ref.detectChanges();
|
|
2862
2862
|
};
|
|
2863
|
-
this.onRemove = function (item) {
|
|
2864
|
-
var
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2863
|
+
this.onRemove = function (item) { return __awaiter(_this, void 0, void 0, function () {
|
|
2864
|
+
var _2, _3, editor, beforeRemove, result, idx2, idx1;
|
|
2865
|
+
return __generator(this, function (_4) {
|
|
2866
|
+
switch (_4.label) {
|
|
2867
|
+
case 0:
|
|
2868
|
+
editor = this.gridOption.editor;
|
|
2869
|
+
if (!(editor === null || editor === void 0 ? void 0 : editor.beforeRemove)) return [3 /*break*/, 3];
|
|
2870
|
+
beforeRemove = editor === null || editor === void 0 ? void 0 : editor.beforeRemove(item);
|
|
2871
|
+
if (!(beforeRemove instanceof Promise)) return [3 /*break*/, 2];
|
|
2872
|
+
return [4 /*yield*/, beforeRemove];
|
|
2873
|
+
case 1:
|
|
2874
|
+
result = _4.sent();
|
|
2875
|
+
if (!result) {
|
|
2876
|
+
return [2 /*return*/];
|
|
2877
|
+
}
|
|
2878
|
+
return [3 /*break*/, 3];
|
|
2879
|
+
case 2:
|
|
2880
|
+
if (!beforeRemove) {
|
|
2881
|
+
return [2 /*return*/];
|
|
2882
|
+
}
|
|
2883
|
+
_4.label = 3;
|
|
2884
|
+
case 3:
|
|
2885
|
+
if (editor.type === 'inline') {
|
|
2886
|
+
if (this.gridOption.type === 'local') {
|
|
2887
|
+
idx2 = __classPrivateFieldGet(this, _localItems).indexOf(item);
|
|
2888
|
+
__classPrivateFieldGet(this, _localItems).splice(idx2, 1);
|
|
2889
|
+
__classPrivateFieldSet(this, _localItems, __spread(__classPrivateFieldGet(this, _localItems)));
|
|
2890
|
+
}
|
|
2891
|
+
idx1 = this.items.indexOf(item);
|
|
2892
|
+
this.items.splice(idx1, 1);
|
|
2893
|
+
this.items = __spread(this.items);
|
|
2894
|
+
if (this.gridOption.type === 'local') {
|
|
2895
|
+
(_2 = editor === null || editor === void 0 ? void 0 : editor.onRemove) === null || _2 === void 0 ? void 0 : _2.call(editor, item, __classPrivateFieldGet(this, _localItems));
|
|
2896
|
+
}
|
|
2897
|
+
else {
|
|
2898
|
+
(_3 = editor === null || editor === void 0 ? void 0 : editor.onRemove) === null || _3 === void 0 ? void 0 : _3.call(editor, item, this.items);
|
|
2899
|
+
}
|
|
2900
|
+
this.ref.detectChanges();
|
|
2901
|
+
return [2 /*return*/];
|
|
2902
|
+
}
|
|
2903
|
+
return [2 /*return*/];
|
|
2880
2904
|
}
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
}
|
|
2884
|
-
};
|
|
2905
|
+
});
|
|
2906
|
+
}); };
|
|
2885
2907
|
this.add = function (idx, item) {
|
|
2886
2908
|
if (_this.items.length > idx) {
|
|
2887
2909
|
_this.items.splice(idx, 0, item);
|
|
@@ -2979,13 +3001,13 @@
|
|
|
2979
3001
|
var _this = this;
|
|
2980
3002
|
__classPrivateFieldGet(this, _subscription$1).add(__classPrivateFieldGet(this, _reload).pipe(operators.debounceTime(200), operators.startWith(true), operators.switchMap(function (force) { return __awaiter(_this, void 0, void 0, function () {
|
|
2981
3003
|
var filterInfo, result;
|
|
2982
|
-
return __generator(this, function (
|
|
2983
|
-
switch (
|
|
3004
|
+
return __generator(this, function (_4) {
|
|
3005
|
+
switch (_4.label) {
|
|
2984
3006
|
case 0:
|
|
2985
3007
|
filterInfo = __classPrivateFieldGet(this, _getFilter).call(this);
|
|
2986
3008
|
return [4 /*yield*/, __classPrivateFieldGet(this, _load$1).call(this, filterInfo, !__classPrivateFieldGet(this, _loadCompleted) || force)];
|
|
2987
3009
|
case 1:
|
|
2988
|
-
result =
|
|
3010
|
+
result = _4.sent();
|
|
2989
3011
|
__classPrivateFieldSet(this, _loadCompleted, true);
|
|
2990
3012
|
return [2 /*return*/, result];
|
|
2991
3013
|
}
|