@sd-angular/core 1.2.99 → 1.3.0
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/api/package.json +12 -1
- package/api/sd-angular-core-api.d.ts +2 -0
- package/api/sd-angular-core-api.d.ts.__ivy_ngcc_bak +4 -0
- package/api/sd-angular-core-api.d.ts.map +1 -0
- package/autocomplete/package.json +12 -1
- package/autocomplete/sd-angular-core-autocomplete.d.ts +2 -0
- package/autocomplete/sd-angular-core-autocomplete.d.ts.__ivy_ngcc_bak +4 -0
- package/autocomplete/sd-angular-core-autocomplete.d.ts.map +1 -0
- package/badge/package.json +12 -1
- package/badge/sd-angular-core-badge.d.ts +2 -0
- package/badge/sd-angular-core-badge.d.ts.__ivy_ngcc_bak +4 -0
- package/badge/sd-angular-core-badge.d.ts.map +1 -0
- package/bundles/sd-angular-core-api.umd.js +2 -1
- package/bundles/sd-angular-core-api.umd.js.__ivy_ngcc_bak +876 -0
- package/bundles/sd-angular-core-api.umd.js.map +1 -1
- package/bundles/sd-angular-core-api.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-autocomplete.umd.js +2 -1
- package/bundles/sd-angular-core-autocomplete.umd.js.__ivy_ngcc_bak +791 -0
- package/bundles/sd-angular-core-autocomplete.umd.js.map +1 -1
- package/bundles/sd-angular-core-autocomplete.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-badge.umd.js +2 -1
- package/bundles/sd-angular-core-badge.umd.js.__ivy_ngcc_bak +89 -0
- package/bundles/sd-angular-core-badge.umd.js.map +1 -1
- package/bundles/sd-angular-core-badge.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-button.umd.js +2 -1
- package/bundles/sd-angular-core-button.umd.js.__ivy_ngcc_bak +447 -0
- package/bundles/sd-angular-core-button.umd.js.map +1 -1
- package/bundles/sd-angular-core-button.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-cache.umd.js +2 -1
- package/bundles/sd-angular-core-cache.umd.js.__ivy_ngcc_bak +623 -0
- package/bundles/sd-angular-core-cache.umd.js.map +1 -1
- package/bundles/sd-angular-core-cache.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-chart.umd.js +2 -1
- package/bundles/sd-angular-core-chart.umd.js.__ivy_ngcc_bak +1106 -0
- package/bundles/sd-angular-core-chart.umd.js.map +1 -1
- package/bundles/sd-angular-core-chart.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-checkbox.umd.js +2 -1
- package/bundles/sd-angular-core-checkbox.umd.js.__ivy_ngcc_bak +461 -0
- package/bundles/sd-angular-core-checkbox.umd.js.map +1 -1
- package/bundles/sd-angular-core-checkbox.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-chip.umd.js +2 -1
- package/bundles/sd-angular-core-chip.umd.js.__ivy_ngcc_bak +1051 -0
- package/bundles/sd-angular-core-chip.umd.js.map +1 -1
- package/bundles/sd-angular-core-chip.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-comment.umd.js +2 -1
- package/bundles/sd-angular-core-comment.umd.js.__ivy_ngcc_bak +456 -0
- package/bundles/sd-angular-core-comment.umd.js.map +1 -1
- package/bundles/sd-angular-core-comment.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-common.umd.js +2 -1
- package/bundles/sd-angular-core-common.umd.js.__ivy_ngcc_bak +962 -0
- package/bundles/sd-angular-core-common.umd.js.map +1 -1
- package/bundles/sd-angular-core-common.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-confirm.umd.js +2 -1
- package/bundles/sd-angular-core-confirm.umd.js.__ivy_ngcc_bak +159 -0
- package/bundles/sd-angular-core-confirm.umd.js.map +1 -1
- package/bundles/sd-angular-core-confirm.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-date-month.umd.js +2 -1
- package/bundles/sd-angular-core-date-month.umd.js.__ivy_ngcc_bak +650 -0
- package/bundles/sd-angular-core-date-month.umd.js.map +1 -1
- package/bundles/sd-angular-core-date-month.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-date-range.umd.js +2 -1
- package/bundles/sd-angular-core-date-range.umd.js.__ivy_ngcc_bak +660 -0
- package/bundles/sd-angular-core-date-range.umd.js.map +1 -1
- package/bundles/sd-angular-core-date-range.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-date-time.umd.js +2 -1
- package/bundles/sd-angular-core-date-time.umd.js.__ivy_ngcc_bak +734 -0
- package/bundles/sd-angular-core-date-time.umd.js.map +1 -1
- package/bundles/sd-angular-core-date-time.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-db.umd.js +2 -1
- package/bundles/sd-angular-core-db.umd.js.__ivy_ngcc_bak +475 -0
- package/bundles/sd-angular-core-db.umd.js.map +1 -1
- package/bundles/sd-angular-core-db.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-dynamic-report.umd.js +2 -1
- package/bundles/sd-angular-core-dynamic-report.umd.js.__ivy_ngcc_bak +96 -0
- package/bundles/sd-angular-core-dynamic-report.umd.js.map +1 -1
- package/bundles/sd-angular-core-dynamic-report.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-editor.umd.js +2 -1
- package/bundles/sd-angular-core-editor.umd.js.__ivy_ngcc_bak +943 -0
- package/bundles/sd-angular-core-editor.umd.js.map +1 -1
- package/bundles/sd-angular-core-editor.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-excel.umd.js +2 -1
- package/bundles/sd-angular-core-excel.umd.js.__ivy_ngcc_bak +500 -0
- package/bundles/sd-angular-core-excel.umd.js.map +1 -1
- package/bundles/sd-angular-core-excel.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-export.umd.js +2 -1
- package/bundles/sd-angular-core-export.umd.js.__ivy_ngcc_bak +712 -0
- package/bundles/sd-angular-core-export.umd.js.map +1 -1
- package/bundles/sd-angular-core-export.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-filter.umd.js +2 -1
- package/bundles/sd-angular-core-filter.umd.js.__ivy_ngcc_bak +703 -0
- package/bundles/sd-angular-core-filter.umd.js.map +1 -1
- package/bundles/sd-angular-core-filter.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-form.umd.js +2 -1
- package/bundles/sd-angular-core-form.umd.js.__ivy_ngcc_bak +88 -0
- package/bundles/sd-angular-core-form.umd.js.map +1 -1
- package/bundles/sd-angular-core-form.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-grid-material.umd.js +2 -1
- package/bundles/sd-angular-core-grid-material.umd.js.__ivy_ngcc_bak +5029 -0
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-grid.umd.js +2 -1
- package/bundles/sd-angular-core-grid.umd.js.__ivy_ngcc_bak +5125 -0
- package/bundles/sd-angular-core-grid.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-group.umd.js +2 -1
- package/bundles/sd-angular-core-group.umd.js.__ivy_ngcc_bak +93 -0
- package/bundles/sd-angular-core-group.umd.js.map +1 -1
- package/bundles/sd-angular-core-group.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-header-title.umd.js +2 -1
- package/bundles/sd-angular-core-header-title.umd.js.__ivy_ngcc_bak +56 -0
- package/bundles/sd-angular-core-header-title.umd.js.map +1 -1
- package/bundles/sd-angular-core-header-title.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-image-preview.umd.js +2 -1
- package/bundles/sd-angular-core-image-preview.umd.js.__ivy_ngcc_bak +121 -0
- package/bundles/sd-angular-core-image-preview.umd.js.map +1 -1
- package/bundles/sd-angular-core-image-preview.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-input-currency.umd.js +2 -1
- package/bundles/sd-angular-core-input-currency.umd.js.__ivy_ngcc_bak +737 -0
- package/bundles/sd-angular-core-input-currency.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-currency.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-input-dropdown.umd.js +2 -1
- package/bundles/sd-angular-core-input-dropdown.umd.js.__ivy_ngcc_bak +634 -0
- package/bundles/sd-angular-core-input-dropdown.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-dropdown.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-input-number.umd.js +2 -1
- package/bundles/sd-angular-core-input-number.umd.js.__ivy_ngcc_bak +792 -0
- package/bundles/sd-angular-core-input-number.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-number.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-input-upload-file.umd.js +2 -1
- package/bundles/sd-angular-core-input-upload-file.umd.js.__ivy_ngcc_bak +648 -0
- package/bundles/sd-angular-core-input-upload-file.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-upload-file.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-input.umd.js +2 -1
- package/bundles/sd-angular-core-input.umd.js.__ivy_ngcc_bak +798 -0
- package/bundles/sd-angular-core-input.umd.js.map +1 -1
- package/bundles/sd-angular-core-input.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-json-editor.umd.js +2 -1
- package/bundles/sd-angular-core-json-editor.umd.js.__ivy_ngcc_bak +523 -0
- package/bundles/sd-angular-core-json-editor.umd.js.map +1 -1
- package/bundles/sd-angular-core-json-editor.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-konva.umd.js +2 -1
- package/bundles/sd-angular-core-konva.umd.js.__ivy_ngcc_bak +605 -0
- package/bundles/sd-angular-core-konva.umd.js.map +1 -1
- package/bundles/sd-angular-core-konva.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-label.umd.js +2 -1
- package/bundles/sd-angular-core-label.umd.js.__ivy_ngcc_bak +60 -0
- package/bundles/sd-angular-core-label.umd.js.map +1 -1
- package/bundles/sd-angular-core-label.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-loading.umd.js +2 -1
- package/bundles/sd-angular-core-loading.umd.js.__ivy_ngcc_bak +413 -0
- package/bundles/sd-angular-core-loading.umd.js.map +1 -1
- package/bundles/sd-angular-core-loading.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-modal-resizable.umd.js +2 -1
- package/bundles/sd-angular-core-modal-resizable.umd.js.__ivy_ngcc_bak +487 -0
- package/bundles/sd-angular-core-modal-resizable.umd.js.map +1 -1
- package/bundles/sd-angular-core-modal-resizable.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-modal.umd.js +2 -1
- package/bundles/sd-angular-core-modal.umd.js.__ivy_ngcc_bak +307 -0
- package/bundles/sd-angular-core-modal.umd.js.map +1 -1
- package/bundles/sd-angular-core-modal.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-notify.umd.js +2 -1
- package/bundles/sd-angular-core-notify.umd.js.__ivy_ngcc_bak +719 -0
- package/bundles/sd-angular-core-notify.umd.js.map +1 -1
- package/bundles/sd-angular-core-notify.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-popover.umd.js +2 -1
- package/bundles/sd-angular-core-popover.umd.js.__ivy_ngcc_bak +752 -0
- package/bundles/sd-angular-core-popover.umd.js.map +1 -1
- package/bundles/sd-angular-core-popover.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-quick-action.umd.js +2 -1
- package/bundles/sd-angular-core-quick-action.umd.js.__ivy_ngcc_bak +66 -0
- package/bundles/sd-angular-core-quick-action.umd.js.map +1 -1
- package/bundles/sd-angular-core-quick-action.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-radio.umd.js +2 -1
- package/bundles/sd-angular-core-radio.umd.js.__ivy_ngcc_bak +535 -0
- package/bundles/sd-angular-core-radio.umd.js.map +1 -1
- package/bundles/sd-angular-core-radio.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-select-badge.umd.js +2 -1
- package/bundles/sd-angular-core-select-badge.umd.js.__ivy_ngcc_bak +486 -0
- package/bundles/sd-angular-core-select-badge.umd.js.map +1 -1
- package/bundles/sd-angular-core-select-badge.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-select-editor.umd.js +2 -1
- package/bundles/sd-angular-core-select-editor.umd.js.__ivy_ngcc_bak +431 -0
- package/bundles/sd-angular-core-select-editor.umd.js.map +1 -1
- package/bundles/sd-angular-core-select-editor.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-select.umd.js +2 -1
- package/bundles/sd-angular-core-select.umd.js.__ivy_ngcc_bak +921 -0
- package/bundles/sd-angular-core-select.umd.js.map +1 -1
- package/bundles/sd-angular-core-select.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-service.umd.js +2 -1
- package/bundles/sd-angular-core-service.umd.js.__ivy_ngcc_bak +42 -0
- package/bundles/sd-angular-core-service.umd.js.map +1 -1
- package/bundles/sd-angular-core-service.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-setting.umd.js +2 -1
- package/bundles/sd-angular-core-setting.umd.js.__ivy_ngcc_bak +664 -0
- package/bundles/sd-angular-core-setting.umd.js.map +1 -1
- package/bundles/sd-angular-core-setting.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-side-drawer.umd.js +2 -1
- package/bundles/sd-angular-core-side-drawer.umd.js.__ivy_ngcc_bak +438 -0
- package/bundles/sd-angular-core-side-drawer.umd.js.map +1 -1
- package/bundles/sd-angular-core-side-drawer.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-switch.umd.js +2 -1
- package/bundles/sd-angular-core-switch.umd.js.__ivy_ngcc_bak +454 -0
- package/bundles/sd-angular-core-switch.umd.js.map +1 -1
- package/bundles/sd-angular-core-switch.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-tab-router.umd.js +2 -1
- package/bundles/sd-angular-core-tab-router.umd.js.__ivy_ngcc_bak +941 -0
- package/bundles/sd-angular-core-tab-router.umd.js.map +1 -1
- package/bundles/sd-angular-core-tab-router.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-textarea.umd.js +2 -1
- package/bundles/sd-angular-core-textarea.umd.js.__ivy_ngcc_bak +642 -0
- package/bundles/sd-angular-core-textarea.umd.js.map +1 -1
- package/bundles/sd-angular-core-textarea.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-time.umd.js +2 -1
- package/bundles/sd-angular-core-time.umd.js.__ivy_ngcc_bak +497 -0
- package/bundles/sd-angular-core-time.umd.js.map +1 -1
- package/bundles/sd-angular-core-time.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-timeline.umd.js +2 -1
- package/bundles/sd-angular-core-timeline.umd.js.__ivy_ngcc_bak +102 -0
- package/bundles/sd-angular-core-timeline.umd.js.map +1 -1
- package/bundles/sd-angular-core-timeline.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-translate.umd.js +2 -1
- package/bundles/sd-angular-core-translate.umd.js.__ivy_ngcc_bak +119 -0
- package/bundles/sd-angular-core-translate.umd.js.map +1 -1
- package/bundles/sd-angular-core-translate.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-upload-excel.umd.js +2 -1
- package/bundles/sd-angular-core-upload-excel.umd.js.__ivy_ngcc_bak +1114 -0
- package/bundles/sd-angular-core-upload-excel.umd.js.map +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-upload-file.umd.js +2 -1
- package/bundles/sd-angular-core-upload-file.umd.js.__ivy_ngcc_bak +880 -0
- package/bundles/sd-angular-core-upload-file.umd.js.map +1 -1
- package/bundles/sd-angular-core-upload-file.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-utility.umd.js +33 -1
- package/bundles/sd-angular-core-utility.umd.js.__ivy_ngcc_bak +739 -0
- package/bundles/sd-angular-core-utility.umd.js.map +1 -1
- package/bundles/sd-angular-core-utility.umd.js.map.__ivy_ngcc_bak +1 -0
- package/bundles/sd-angular-core-utility.umd.min.js +1 -1
- package/bundles/sd-angular-core-utility.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-view.umd.js +2 -1
- package/bundles/sd-angular-core-view.umd.js.__ivy_ngcc_bak +32 -0
- package/bundles/sd-angular-core-view.umd.js.map +1 -1
- package/bundles/sd-angular-core-view.umd.js.map.__ivy_ngcc_bak +1 -0
- package/button/package.json +12 -1
- package/button/sd-angular-core-button.d.ts +2 -0
- package/button/sd-angular-core-button.d.ts.__ivy_ngcc_bak +4 -0
- package/button/sd-angular-core-button.d.ts.map +1 -0
- package/cache/package.json +12 -1
- package/cache/sd-angular-core-cache.d.ts +2 -0
- package/cache/sd-angular-core-cache.d.ts.__ivy_ngcc_bak +4 -0
- package/cache/sd-angular-core-cache.d.ts.map +1 -0
- package/chart/package.json +12 -1
- package/chart/sd-angular-core-chart.d.ts +2 -0
- package/chart/sd-angular-core-chart.d.ts.__ivy_ngcc_bak +4 -0
- package/chart/sd-angular-core-chart.d.ts.map +1 -0
- package/checkbox/package.json +12 -1
- package/checkbox/sd-angular-core-checkbox.d.ts +2 -0
- package/checkbox/sd-angular-core-checkbox.d.ts.__ivy_ngcc_bak +5 -0
- package/checkbox/sd-angular-core-checkbox.d.ts.map +1 -0
- package/chip/package.json +12 -1
- package/chip/sd-angular-core-chip.d.ts +2 -0
- package/chip/sd-angular-core-chip.d.ts.__ivy_ngcc_bak +5 -0
- package/chip/sd-angular-core-chip.d.ts.map +1 -0
- package/comment/package.json +12 -1
- package/comment/sd-angular-core-comment.d.ts +2 -0
- package/comment/sd-angular-core-comment.d.ts.__ivy_ngcc_bak +4 -0
- package/comment/sd-angular-core-comment.d.ts.map +1 -0
- package/common/package.json +12 -1
- package/common/sd-angular-core-common.d.ts +2 -0
- package/common/sd-angular-core-common.d.ts.__ivy_ngcc_bak +4 -0
- package/common/sd-angular-core-common.d.ts.map +1 -0
- package/confirm/package.json +12 -1
- package/confirm/sd-angular-core-confirm.d.ts +2 -0
- package/confirm/sd-angular-core-confirm.d.ts.__ivy_ngcc_bak +4 -0
- package/confirm/sd-angular-core-confirm.d.ts.map +1 -0
- package/date-month/package.json +12 -1
- package/date-month/sd-angular-core-date-month.d.ts +2 -0
- package/date-month/sd-angular-core-date-month.d.ts.__ivy_ngcc_bak +5 -0
- package/date-month/sd-angular-core-date-month.d.ts.map +1 -0
- package/date-range/package.json +12 -1
- package/date-range/sd-angular-core-date-range.d.ts +2 -0
- package/date-range/sd-angular-core-date-range.d.ts.__ivy_ngcc_bak +4 -0
- package/date-range/sd-angular-core-date-range.d.ts.map +1 -0
- package/date-time/package.json +12 -1
- package/date-time/sd-angular-core-date-time.d.ts +2 -0
- package/date-time/sd-angular-core-date-time.d.ts.__ivy_ngcc_bak +4 -0
- package/date-time/sd-angular-core-date-time.d.ts.map +1 -0
- package/db/package.json +12 -1
- package/db/sd-angular-core-db.d.ts +2 -0
- package/db/sd-angular-core-db.d.ts.__ivy_ngcc_bak +4 -0
- package/db/sd-angular-core-db.d.ts.map +1 -0
- package/dynamic-report/package.json +12 -1
- package/dynamic-report/sd-angular-core-dynamic-report.d.ts +2 -0
- package/dynamic-report/sd-angular-core-dynamic-report.d.ts.__ivy_ngcc_bak +4 -0
- package/dynamic-report/sd-angular-core-dynamic-report.d.ts.map +1 -0
- package/editor/package.json +12 -1
- package/editor/sd-angular-core-editor.d.ts +2 -0
- package/editor/sd-angular-core-editor.d.ts.__ivy_ngcc_bak +4 -0
- package/editor/sd-angular-core-editor.d.ts.map +1 -0
- package/esm2015/api/sd-angular-core-api.js +1 -1
- package/esm2015/api/sd-angular-core-api.js.__ivy_ngcc_bak +5 -0
- package/esm2015/autocomplete/sd-angular-core-autocomplete.js +1 -1
- package/esm2015/autocomplete/sd-angular-core-autocomplete.js.__ivy_ngcc_bak +5 -0
- package/esm2015/badge/sd-angular-core-badge.js +1 -1
- package/esm2015/badge/sd-angular-core-badge.js.__ivy_ngcc_bak +5 -0
- package/esm2015/button/sd-angular-core-button.js +1 -1
- package/esm2015/button/sd-angular-core-button.js.__ivy_ngcc_bak +5 -0
- package/esm2015/cache/sd-angular-core-cache.js +1 -1
- package/esm2015/cache/sd-angular-core-cache.js.__ivy_ngcc_bak +5 -0
- package/esm2015/chart/sd-angular-core-chart.js +1 -1
- package/esm2015/chart/sd-angular-core-chart.js.__ivy_ngcc_bak +5 -0
- package/esm2015/checkbox/sd-angular-core-checkbox.js +1 -1
- package/esm2015/checkbox/sd-angular-core-checkbox.js.__ivy_ngcc_bak +6 -0
- package/esm2015/chip/sd-angular-core-chip.js +1 -1
- package/esm2015/chip/sd-angular-core-chip.js.__ivy_ngcc_bak +6 -0
- package/esm2015/comment/sd-angular-core-comment.js +1 -1
- package/esm2015/comment/sd-angular-core-comment.js.__ivy_ngcc_bak +5 -0
- package/esm2015/common/sd-angular-core-common.js +1 -1
- package/esm2015/common/sd-angular-core-common.js.__ivy_ngcc_bak +5 -0
- package/esm2015/confirm/sd-angular-core-confirm.js +1 -1
- package/esm2015/confirm/sd-angular-core-confirm.js.__ivy_ngcc_bak +5 -0
- package/esm2015/date-month/sd-angular-core-date-month.js +1 -1
- package/esm2015/date-month/sd-angular-core-date-month.js.__ivy_ngcc_bak +6 -0
- package/esm2015/date-range/sd-angular-core-date-range.js +1 -1
- package/esm2015/date-range/sd-angular-core-date-range.js.__ivy_ngcc_bak +5 -0
- package/esm2015/date-time/sd-angular-core-date-time.js +1 -1
- package/esm2015/date-time/sd-angular-core-date-time.js.__ivy_ngcc_bak +5 -0
- package/esm2015/db/sd-angular-core-db.js +1 -1
- package/esm2015/db/sd-angular-core-db.js.__ivy_ngcc_bak +5 -0
- package/esm2015/dynamic-report/sd-angular-core-dynamic-report.js +1 -1
- package/esm2015/dynamic-report/sd-angular-core-dynamic-report.js.__ivy_ngcc_bak +5 -0
- package/esm2015/editor/sd-angular-core-editor.js +1 -1
- package/esm2015/editor/sd-angular-core-editor.js.__ivy_ngcc_bak +5 -0
- package/esm2015/excel/sd-angular-core-excel.js +1 -1
- package/esm2015/excel/sd-angular-core-excel.js.__ivy_ngcc_bak +5 -0
- package/esm2015/export/sd-angular-core-export.js +1 -1
- package/esm2015/export/sd-angular-core-export.js.__ivy_ngcc_bak +5 -0
- package/esm2015/filter/sd-angular-core-filter.js +1 -1
- package/esm2015/filter/sd-angular-core-filter.js.__ivy_ngcc_bak +8 -0
- package/esm2015/form/sd-angular-core-form.js +1 -1
- package/esm2015/form/sd-angular-core-form.js.__ivy_ngcc_bak +5 -0
- package/esm2015/grid/sd-angular-core-grid.js +1 -1
- package/esm2015/grid/sd-angular-core-grid.js.__ivy_ngcc_bak +5 -0
- package/esm2015/grid-material/sd-angular-core-grid-material.js +1 -1
- package/esm2015/grid-material/sd-angular-core-grid-material.js.__ivy_ngcc_bak +47 -0
- package/esm2015/group/sd-angular-core-group.js +1 -1
- package/esm2015/group/sd-angular-core-group.js.__ivy_ngcc_bak +6 -0
- package/esm2015/header-title/sd-angular-core-header-title.js +1 -1
- package/esm2015/header-title/sd-angular-core-header-title.js.__ivy_ngcc_bak +6 -0
- package/esm2015/image-preview/sd-angular-core-image-preview.js +1 -1
- package/esm2015/image-preview/sd-angular-core-image-preview.js.__ivy_ngcc_bak +7 -0
- package/esm2015/input/sd-angular-core-input.js +1 -1
- package/esm2015/input/sd-angular-core-input.js.__ivy_ngcc_bak +6 -0
- package/esm2015/input-currency/sd-angular-core-input-currency.js +1 -1
- package/esm2015/input-currency/sd-angular-core-input-currency.js.__ivy_ngcc_bak +5 -0
- package/esm2015/input-dropdown/sd-angular-core-input-dropdown.js +1 -1
- package/esm2015/input-dropdown/sd-angular-core-input-dropdown.js.__ivy_ngcc_bak +5 -0
- package/esm2015/input-number/sd-angular-core-input-number.js +1 -1
- package/esm2015/input-number/sd-angular-core-input-number.js.__ivy_ngcc_bak +5 -0
- package/esm2015/input-upload-file/sd-angular-core-input-upload-file.js +1 -1
- package/esm2015/input-upload-file/sd-angular-core-input-upload-file.js.__ivy_ngcc_bak +5 -0
- package/esm2015/json-editor/sd-angular-core-json-editor.js +1 -1
- package/esm2015/json-editor/sd-angular-core-json-editor.js.__ivy_ngcc_bak +5 -0
- package/esm2015/konva/sd-angular-core-konva.js +1 -1
- package/esm2015/konva/sd-angular-core-konva.js.__ivy_ngcc_bak +5 -0
- package/esm2015/label/sd-angular-core-label.js +1 -1
- package/esm2015/label/sd-angular-core-label.js.__ivy_ngcc_bak +6 -0
- package/esm2015/loading/sd-angular-core-loading.js +1 -1
- package/esm2015/loading/sd-angular-core-loading.js.__ivy_ngcc_bak +5 -0
- package/esm2015/modal/sd-angular-core-modal.js +1 -1
- package/esm2015/modal/sd-angular-core-modal.js.__ivy_ngcc_bak +5 -0
- package/esm2015/modal-resizable/sd-angular-core-modal-resizable.js +1 -1
- package/esm2015/modal-resizable/sd-angular-core-modal-resizable.js.__ivy_ngcc_bak +5 -0
- package/esm2015/notify/sd-angular-core-notify.js +1 -1
- package/esm2015/notify/sd-angular-core-notify.js.__ivy_ngcc_bak +5 -0
- package/esm2015/popover/sd-angular-core-popover.js +1 -1
- package/esm2015/popover/sd-angular-core-popover.js.__ivy_ngcc_bak +5 -0
- package/esm2015/quick-action/sd-angular-core-quick-action.js +1 -1
- package/esm2015/quick-action/sd-angular-core-quick-action.js.__ivy_ngcc_bak +5 -0
- package/esm2015/radio/sd-angular-core-radio.js +1 -1
- package/esm2015/radio/sd-angular-core-radio.js.__ivy_ngcc_bak +5 -0
- package/esm2015/select/sd-angular-core-select.js +1 -1
- package/esm2015/select/sd-angular-core-select.js.__ivy_ngcc_bak +5 -0
- package/esm2015/select-badge/sd-angular-core-select-badge.js +1 -1
- package/esm2015/select-badge/sd-angular-core-select-badge.js.__ivy_ngcc_bak +5 -0
- package/esm2015/select-editor/sd-angular-core-select-editor.js +1 -1
- package/esm2015/select-editor/sd-angular-core-select-editor.js.__ivy_ngcc_bak +5 -0
- package/esm2015/service/sd-angular-core-service.js +1 -1
- package/esm2015/service/sd-angular-core-service.js.__ivy_ngcc_bak +5 -0
- package/esm2015/setting/sd-angular-core-setting.js +1 -1
- package/esm2015/setting/sd-angular-core-setting.js.__ivy_ngcc_bak +5 -0
- package/esm2015/side-drawer/sd-angular-core-side-drawer.js +1 -1
- package/esm2015/side-drawer/sd-angular-core-side-drawer.js.__ivy_ngcc_bak +5 -0
- package/esm2015/switch/sd-angular-core-switch.js +1 -1
- package/esm2015/switch/sd-angular-core-switch.js.__ivy_ngcc_bak +5 -0
- package/esm2015/tab-router/sd-angular-core-tab-router.js +1 -1
- package/esm2015/tab-router/sd-angular-core-tab-router.js.__ivy_ngcc_bak +7 -0
- package/esm2015/textarea/sd-angular-core-textarea.js +1 -1
- package/esm2015/textarea/sd-angular-core-textarea.js.__ivy_ngcc_bak +5 -0
- package/esm2015/time/sd-angular-core-time.js +1 -1
- package/esm2015/time/sd-angular-core-time.js.__ivy_ngcc_bak +6 -0
- package/esm2015/timeline/sd-angular-core-timeline.js +1 -1
- package/esm2015/timeline/sd-angular-core-timeline.js.__ivy_ngcc_bak +6 -0
- package/esm2015/translate/sd-angular-core-translate.js +1 -1
- package/esm2015/translate/sd-angular-core-translate.js.__ivy_ngcc_bak +5 -0
- package/esm2015/upload-excel/sd-angular-core-upload-excel.js +1 -1
- package/esm2015/upload-excel/sd-angular-core-upload-excel.js.__ivy_ngcc_bak +7 -0
- package/esm2015/upload-file/sd-angular-core-upload-file.js +1 -1
- package/esm2015/upload-file/sd-angular-core-upload-file.js.__ivy_ngcc_bak +5 -0
- package/esm2015/utility/sd-angular-core-utility.js +1 -1
- package/esm2015/utility/sd-angular-core-utility.js.__ivy_ngcc_bak +5 -0
- package/esm2015/utility/src/lib/utility.service.js +22 -2
- package/esm2015/view/sd-angular-core-view.js +1 -1
- package/esm2015/view/sd-angular-core-view.js.__ivy_ngcc_bak +5 -0
- package/excel/package.json +12 -1
- package/excel/sd-angular-core-excel.d.ts +2 -0
- package/excel/sd-angular-core-excel.d.ts.__ivy_ngcc_bak +4 -0
- package/excel/sd-angular-core-excel.d.ts.map +1 -0
- package/export/package.json +12 -1
- package/export/sd-angular-core-export.d.ts +2 -0
- package/export/sd-angular-core-export.d.ts.__ivy_ngcc_bak +4 -0
- package/export/sd-angular-core-export.d.ts.map +1 -0
- package/fesm2015/sd-angular-core-api.js +2 -1
- package/fesm2015/sd-angular-core-api.js.__ivy_ngcc_bak +496 -0
- package/fesm2015/sd-angular-core-api.js.map +1 -1
- package/fesm2015/sd-angular-core-api.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-autocomplete.js +2 -1
- package/fesm2015/sd-angular-core-autocomplete.js.__ivy_ngcc_bak +427 -0
- package/fesm2015/sd-angular-core-autocomplete.js.map +1 -1
- package/fesm2015/sd-angular-core-autocomplete.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-badge.js +2 -1
- package/fesm2015/sd-angular-core-badge.js.__ivy_ngcc_bak +70 -0
- package/fesm2015/sd-angular-core-badge.js.map +1 -1
- package/fesm2015/sd-angular-core-badge.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-button.js +2 -1
- package/fesm2015/sd-angular-core-button.js.__ivy_ngcc_bak +118 -0
- package/fesm2015/sd-angular-core-button.js.map +1 -1
- package/fesm2015/sd-angular-core-button.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-cache.js +2 -1
- package/fesm2015/sd-angular-core-cache.js.__ivy_ngcc_bak +259 -0
- package/fesm2015/sd-angular-core-cache.js.map +1 -1
- package/fesm2015/sd-angular-core-cache.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-chart.js +2 -1
- package/fesm2015/sd-angular-core-chart.js.__ivy_ngcc_bak +727 -0
- package/fesm2015/sd-angular-core-chart.js.map +1 -1
- package/fesm2015/sd-angular-core-chart.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-checkbox.js +2 -1
- package/fesm2015/sd-angular-core-checkbox.js.__ivy_ngcc_bak +120 -0
- package/fesm2015/sd-angular-core-checkbox.js.map +1 -1
- package/fesm2015/sd-angular-core-checkbox.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-chip.js +2 -1
- package/fesm2015/sd-angular-core-chip.js.__ivy_ngcc_bak +632 -0
- package/fesm2015/sd-angular-core-chip.js.map +1 -1
- package/fesm2015/sd-angular-core-chip.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-comment.js +2 -1
- package/fesm2015/sd-angular-core-comment.js.__ivy_ngcc_bak +118 -0
- package/fesm2015/sd-angular-core-comment.js.map +1 -1
- package/fesm2015/sd-angular-core-comment.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-common.js +2 -1
- package/fesm2015/sd-angular-core-common.js.__ivy_ngcc_bak +562 -0
- package/fesm2015/sd-angular-core-common.js.map +1 -1
- package/fesm2015/sd-angular-core-common.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-confirm.js +2 -1
- package/fesm2015/sd-angular-core-confirm.js.__ivy_ngcc_bak +154 -0
- package/fesm2015/sd-angular-core-confirm.js.map +1 -1
- package/fesm2015/sd-angular-core-confirm.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-date-month.js +2 -1
- package/fesm2015/sd-angular-core-date-month.js.__ivy_ngcc_bak +289 -0
- package/fesm2015/sd-angular-core-date-month.js.map +1 -1
- package/fesm2015/sd-angular-core-date-month.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-date-range.js +2 -1
- package/fesm2015/sd-angular-core-date-range.js.__ivy_ngcc_bak +297 -0
- package/fesm2015/sd-angular-core-date-range.js.map +1 -1
- package/fesm2015/sd-angular-core-date-range.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-date-time.js +2 -1
- package/fesm2015/sd-angular-core-date-time.js.__ivy_ngcc_bak +367 -0
- package/fesm2015/sd-angular-core-date-time.js.map +1 -1
- package/fesm2015/sd-angular-core-date-time.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-db.js +2 -1
- package/fesm2015/sd-angular-core-db.js.__ivy_ngcc_bak +102 -0
- package/fesm2015/sd-angular-core-db.js.map +1 -1
- package/fesm2015/sd-angular-core-db.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-dynamic-report.js +2 -1
- package/fesm2015/sd-angular-core-dynamic-report.js.__ivy_ngcc_bak +82 -0
- package/fesm2015/sd-angular-core-dynamic-report.js.map +1 -1
- package/fesm2015/sd-angular-core-dynamic-report.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-editor.js +2 -1
- package/fesm2015/sd-angular-core-editor.js.__ivy_ngcc_bak +576 -0
- package/fesm2015/sd-angular-core-editor.js.map +1 -1
- package/fesm2015/sd-angular-core-editor.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-excel.js +2 -1
- package/fesm2015/sd-angular-core-excel.js.__ivy_ngcc_bak +100 -0
- package/fesm2015/sd-angular-core-excel.js.map +1 -1
- package/fesm2015/sd-angular-core-excel.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-export.js +2 -1
- package/fesm2015/sd-angular-core-export.js.__ivy_ngcc_bak +272 -0
- package/fesm2015/sd-angular-core-export.js.map +1 -1
- package/fesm2015/sd-angular-core-export.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-filter.js +2 -1
- package/fesm2015/sd-angular-core-filter.js.__ivy_ngcc_bak +323 -0
- package/fesm2015/sd-angular-core-filter.js.map +1 -1
- package/fesm2015/sd-angular-core-filter.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-form.js +2 -1
- package/fesm2015/sd-angular-core-form.js.__ivy_ngcc_bak +104 -0
- package/fesm2015/sd-angular-core-form.js.map +1 -1
- package/fesm2015/sd-angular-core-form.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-grid-material.js +2 -1
- package/fesm2015/sd-angular-core-grid-material.js.__ivy_ngcc_bak +3740 -0
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-grid-material.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-grid.js +2 -1
- package/fesm2015/sd-angular-core-grid.js.__ivy_ngcc_bak +3935 -0
- package/fesm2015/sd-angular-core-grid.js.map +1 -1
- package/fesm2015/sd-angular-core-grid.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-group.js +2 -1
- package/fesm2015/sd-angular-core-group.js.__ivy_ngcc_bak +74 -0
- package/fesm2015/sd-angular-core-group.js.map +1 -1
- package/fesm2015/sd-angular-core-group.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-header-title.js +2 -1
- package/fesm2015/sd-angular-core-header-title.js.__ivy_ngcc_bak +45 -0
- package/fesm2015/sd-angular-core-header-title.js.map +1 -1
- package/fesm2015/sd-angular-core-header-title.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-image-preview.js +2 -1
- package/fesm2015/sd-angular-core-image-preview.js.__ivy_ngcc_bak +107 -0
- package/fesm2015/sd-angular-core-image-preview.js.map +1 -1
- package/fesm2015/sd-angular-core-image-preview.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-input-currency.js +2 -1
- package/fesm2015/sd-angular-core-input-currency.js.__ivy_ngcc_bak +330 -0
- package/fesm2015/sd-angular-core-input-currency.js.map +1 -1
- package/fesm2015/sd-angular-core-input-currency.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-input-dropdown.js +2 -1
- package/fesm2015/sd-angular-core-input-dropdown.js.__ivy_ngcc_bak +268 -0
- package/fesm2015/sd-angular-core-input-dropdown.js.map +1 -1
- package/fesm2015/sd-angular-core-input-dropdown.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-input-number.js +2 -1
- package/fesm2015/sd-angular-core-input-number.js.__ivy_ngcc_bak +415 -0
- package/fesm2015/sd-angular-core-input-number.js.map +1 -1
- package/fesm2015/sd-angular-core-input-number.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-input-upload-file.js +2 -1
- package/fesm2015/sd-angular-core-input-upload-file.js.__ivy_ngcc_bak +274 -0
- package/fesm2015/sd-angular-core-input-upload-file.js.map +1 -1
- package/fesm2015/sd-angular-core-input-upload-file.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-input.js +2 -1
- package/fesm2015/sd-angular-core-input.js.__ivy_ngcc_bak +398 -0
- package/fesm2015/sd-angular-core-input.js.map +1 -1
- package/fesm2015/sd-angular-core-input.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-json-editor.js +2 -1
- package/fesm2015/sd-angular-core-json-editor.js.__ivy_ngcc_bak +180 -0
- package/fesm2015/sd-angular-core-json-editor.js.map +1 -1
- package/fesm2015/sd-angular-core-json-editor.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-konva.js +2 -1
- package/fesm2015/sd-angular-core-konva.js.__ivy_ngcc_bak +237 -0
- package/fesm2015/sd-angular-core-konva.js.map +1 -1
- package/fesm2015/sd-angular-core-konva.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-label.js +2 -1
- package/fesm2015/sd-angular-core-label.js.__ivy_ngcc_bak +49 -0
- package/fesm2015/sd-angular-core-label.js.map +1 -1
- package/fesm2015/sd-angular-core-label.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-loading.js +2 -1
- package/fesm2015/sd-angular-core-loading.js.__ivy_ngcc_bak +83 -0
- package/fesm2015/sd-angular-core-loading.js.map +1 -1
- package/fesm2015/sd-angular-core-loading.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-modal-resizable.js +2 -1
- package/fesm2015/sd-angular-core-modal-resizable.js.__ivy_ngcc_bak +161 -0
- package/fesm2015/sd-angular-core-modal-resizable.js.map +1 -1
- package/fesm2015/sd-angular-core-modal-resizable.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-modal.js +2 -1
- package/fesm2015/sd-angular-core-modal.js.__ivy_ngcc_bak +284 -0
- package/fesm2015/sd-angular-core-modal.js.map +1 -1
- package/fesm2015/sd-angular-core-modal.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-notify.js +2 -1
- package/fesm2015/sd-angular-core-notify.js.__ivy_ngcc_bak +402 -0
- package/fesm2015/sd-angular-core-notify.js.map +1 -1
- package/fesm2015/sd-angular-core-notify.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-popover.js +2 -1
- package/fesm2015/sd-angular-core-popover.js.__ivy_ngcc_bak +415 -0
- package/fesm2015/sd-angular-core-popover.js.map +1 -1
- package/fesm2015/sd-angular-core-popover.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-quick-action.js +2 -1
- package/fesm2015/sd-angular-core-quick-action.js.__ivy_ngcc_bak +53 -0
- package/fesm2015/sd-angular-core-quick-action.js.map +1 -1
- package/fesm2015/sd-angular-core-quick-action.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-radio.js +2 -1
- package/fesm2015/sd-angular-core-radio.js.__ivy_ngcc_bak +188 -0
- package/fesm2015/sd-angular-core-radio.js.map +1 -1
- package/fesm2015/sd-angular-core-radio.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-select-badge.js +2 -1
- package/fesm2015/sd-angular-core-select-badge.js.__ivy_ngcc_bak +156 -0
- package/fesm2015/sd-angular-core-select-badge.js.map +1 -1
- package/fesm2015/sd-angular-core-select-badge.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-select-editor.js +2 -1
- package/fesm2015/sd-angular-core-select-editor.js.__ivy_ngcc_bak +110 -0
- package/fesm2015/sd-angular-core-select-editor.js.map +1 -1
- package/fesm2015/sd-angular-core-select-editor.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-select.js +2 -1
- package/fesm2015/sd-angular-core-select.js.__ivy_ngcc_bak +487 -0
- package/fesm2015/sd-angular-core-select.js.map +1 -1
- package/fesm2015/sd-angular-core-select.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-service.js +2 -1
- package/fesm2015/sd-angular-core-service.js.__ivy_ngcc_bak +36 -0
- package/fesm2015/sd-angular-core-service.js.map +1 -1
- package/fesm2015/sd-angular-core-service.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-setting.js +2 -1
- package/fesm2015/sd-angular-core-setting.js.__ivy_ngcc_bak +290 -0
- package/fesm2015/sd-angular-core-setting.js.map +1 -1
- package/fesm2015/sd-angular-core-setting.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-side-drawer.js +2 -1
- package/fesm2015/sd-angular-core-side-drawer.js.__ivy_ngcc_bak +115 -0
- package/fesm2015/sd-angular-core-side-drawer.js.map +1 -1
- package/fesm2015/sd-angular-core-side-drawer.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-switch.js +2 -1
- package/fesm2015/sd-angular-core-switch.js.__ivy_ngcc_bak +116 -0
- package/fesm2015/sd-angular-core-switch.js.map +1 -1
- package/fesm2015/sd-angular-core-switch.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-tab-router.js +2 -1
- package/fesm2015/sd-angular-core-tab-router.js.__ivy_ngcc_bak +531 -0
- package/fesm2015/sd-angular-core-tab-router.js.map +1 -1
- package/fesm2015/sd-angular-core-tab-router.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-textarea.js +2 -1
- package/fesm2015/sd-angular-core-textarea.js.__ivy_ngcc_bak +266 -0
- package/fesm2015/sd-angular-core-textarea.js.map +1 -1
- package/fesm2015/sd-angular-core-textarea.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-time.js +2 -1
- package/fesm2015/sd-angular-core-time.js.__ivy_ngcc_bak +143 -0
- package/fesm2015/sd-angular-core-time.js.map +1 -1
- package/fesm2015/sd-angular-core-time.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-timeline.js +2 -1
- package/fesm2015/sd-angular-core-timeline.js.__ivy_ngcc_bak +87 -0
- package/fesm2015/sd-angular-core-timeline.js.map +1 -1
- package/fesm2015/sd-angular-core-timeline.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-translate.js +2 -1
- package/fesm2015/sd-angular-core-translate.js.__ivy_ngcc_bak +101 -0
- package/fesm2015/sd-angular-core-translate.js.map +1 -1
- package/fesm2015/sd-angular-core-translate.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-upload-excel.js +2 -1
- package/fesm2015/sd-angular-core-upload-excel.js.__ivy_ngcc_bak +638 -0
- package/fesm2015/sd-angular-core-upload-excel.js.map +1 -1
- package/fesm2015/sd-angular-core-upload-excel.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-upload-file.js +2 -1
- package/fesm2015/sd-angular-core-upload-file.js.__ivy_ngcc_bak +462 -0
- package/fesm2015/sd-angular-core-upload-file.js.map +1 -1
- package/fesm2015/sd-angular-core-upload-file.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-utility.js +23 -2
- package/fesm2015/sd-angular-core-utility.js.__ivy_ngcc_bak +384 -0
- package/fesm2015/sd-angular-core-utility.js.map +1 -1
- package/fesm2015/sd-angular-core-utility.js.map.__ivy_ngcc_bak +1 -0
- package/fesm2015/sd-angular-core-view.js +2 -1
- package/fesm2015/sd-angular-core-view.js.__ivy_ngcc_bak +23 -0
- package/fesm2015/sd-angular-core-view.js.map +1 -1
- package/fesm2015/sd-angular-core-view.js.map.__ivy_ngcc_bak +1 -0
- package/filter/package.json +12 -1
- package/filter/sd-angular-core-filter.d.ts +2 -0
- package/filter/sd-angular-core-filter.d.ts.__ivy_ngcc_bak +7 -0
- package/filter/sd-angular-core-filter.d.ts.map +1 -0
- package/form/package.json +12 -1
- package/form/sd-angular-core-form.d.ts +2 -0
- package/form/sd-angular-core-form.d.ts.__ivy_ngcc_bak +4 -0
- package/form/sd-angular-core-form.d.ts.map +1 -0
- package/grid/package.json +12 -1
- package/grid/sd-angular-core-grid.d.ts +2 -0
- package/grid/sd-angular-core-grid.d.ts.__ivy_ngcc_bak +4 -0
- package/grid/sd-angular-core-grid.d.ts.map +1 -0
- package/grid-material/package.json +12 -1
- package/grid-material/sd-angular-core-grid-material.d.ts +2 -0
- package/grid-material/sd-angular-core-grid-material.d.ts.__ivy_ngcc_bak +46 -0
- package/grid-material/sd-angular-core-grid-material.d.ts.map +1 -0
- package/group/package.json +12 -1
- package/group/sd-angular-core-group.d.ts +2 -0
- package/group/sd-angular-core-group.d.ts.__ivy_ngcc_bak +5 -0
- package/group/sd-angular-core-group.d.ts.map +1 -0
- package/header-title/package.json +12 -1
- package/header-title/sd-angular-core-header-title.d.ts +2 -0
- package/header-title/sd-angular-core-header-title.d.ts.__ivy_ngcc_bak +5 -0
- package/header-title/sd-angular-core-header-title.d.ts.map +1 -0
- package/image-preview/package.json +12 -1
- package/image-preview/sd-angular-core-image-preview.d.ts +2 -0
- package/image-preview/sd-angular-core-image-preview.d.ts.__ivy_ngcc_bak +6 -0
- package/image-preview/sd-angular-core-image-preview.d.ts.map +1 -0
- package/input/package.json +12 -1
- package/input/sd-angular-core-input.d.ts +2 -0
- package/input/sd-angular-core-input.d.ts.__ivy_ngcc_bak +5 -0
- package/input/sd-angular-core-input.d.ts.map +1 -0
- package/input-currency/package.json +12 -1
- package/input-currency/sd-angular-core-input-currency.d.ts +2 -0
- package/input-currency/sd-angular-core-input-currency.d.ts.__ivy_ngcc_bak +4 -0
- package/input-currency/sd-angular-core-input-currency.d.ts.map +1 -0
- package/input-dropdown/package.json +12 -1
- package/input-dropdown/sd-angular-core-input-dropdown.d.ts +2 -0
- package/input-dropdown/sd-angular-core-input-dropdown.d.ts.__ivy_ngcc_bak +4 -0
- package/input-dropdown/sd-angular-core-input-dropdown.d.ts.map +1 -0
- package/input-number/package.json +12 -1
- package/input-number/sd-angular-core-input-number.d.ts +2 -0
- package/input-number/sd-angular-core-input-number.d.ts.__ivy_ngcc_bak +4 -0
- package/input-number/sd-angular-core-input-number.d.ts.map +1 -0
- package/input-upload-file/package.json +12 -1
- package/input-upload-file/sd-angular-core-input-upload-file.d.ts +2 -0
- package/input-upload-file/sd-angular-core-input-upload-file.d.ts.__ivy_ngcc_bak +4 -0
- package/input-upload-file/sd-angular-core-input-upload-file.d.ts.map +1 -0
- package/json-editor/package.json +12 -1
- package/json-editor/sd-angular-core-json-editor.d.ts +2 -0
- package/json-editor/sd-angular-core-json-editor.d.ts.__ivy_ngcc_bak +4 -0
- package/json-editor/sd-angular-core-json-editor.d.ts.map +1 -0
- package/konva/package.json +12 -1
- package/konva/sd-angular-core-konva.d.ts +2 -0
- package/konva/sd-angular-core-konva.d.ts.__ivy_ngcc_bak +4 -0
- package/konva/sd-angular-core-konva.d.ts.map +1 -0
- package/label/package.json +12 -1
- package/label/sd-angular-core-label.d.ts +2 -0
- package/label/sd-angular-core-label.d.ts.__ivy_ngcc_bak +5 -0
- package/label/sd-angular-core-label.d.ts.map +1 -0
- package/loading/package.json +12 -1
- package/loading/sd-angular-core-loading.d.ts +2 -0
- package/loading/sd-angular-core-loading.d.ts.__ivy_ngcc_bak +4 -0
- package/loading/sd-angular-core-loading.d.ts.map +1 -0
- package/modal/package.json +12 -1
- package/modal/sd-angular-core-modal.d.ts +2 -0
- package/modal/sd-angular-core-modal.d.ts.__ivy_ngcc_bak +4 -0
- package/modal/sd-angular-core-modal.d.ts.map +1 -0
- package/modal-resizable/package.json +12 -1
- package/modal-resizable/sd-angular-core-modal-resizable.d.ts +2 -0
- package/modal-resizable/sd-angular-core-modal-resizable.d.ts.__ivy_ngcc_bak +4 -0
- package/modal-resizable/sd-angular-core-modal-resizable.d.ts.map +1 -0
- package/notify/package.json +12 -1
- package/notify/sd-angular-core-notify.d.ts +2 -0
- package/notify/sd-angular-core-notify.d.ts.__ivy_ngcc_bak +4 -0
- package/notify/sd-angular-core-notify.d.ts.map +1 -0
- package/package.json +1 -1
- package/popover/package.json +12 -1
- package/popover/sd-angular-core-popover.d.ts +2 -0
- package/popover/sd-angular-core-popover.d.ts.__ivy_ngcc_bak +4 -0
- package/popover/sd-angular-core-popover.d.ts.map +1 -0
- package/quick-action/package.json +12 -1
- package/quick-action/sd-angular-core-quick-action.d.ts +2 -0
- package/quick-action/sd-angular-core-quick-action.d.ts.__ivy_ngcc_bak +4 -0
- package/quick-action/sd-angular-core-quick-action.d.ts.map +1 -0
- package/radio/package.json +12 -1
- package/radio/sd-angular-core-radio.d.ts +2 -0
- package/radio/sd-angular-core-radio.d.ts.__ivy_ngcc_bak +4 -0
- package/radio/sd-angular-core-radio.d.ts.map +1 -0
- package/sd-angular-core-1.3.0.tgz +0 -0
- package/select/package.json +12 -1
- package/select/sd-angular-core-select.d.ts +2 -0
- package/select/sd-angular-core-select.d.ts.__ivy_ngcc_bak +4 -0
- package/select/sd-angular-core-select.d.ts.map +1 -0
- package/select-badge/package.json +12 -1
- package/select-badge/sd-angular-core-select-badge.d.ts +2 -0
- package/select-badge/sd-angular-core-select-badge.d.ts.__ivy_ngcc_bak +4 -0
- package/select-badge/sd-angular-core-select-badge.d.ts.map +1 -0
- package/select-editor/package.json +12 -1
- package/select-editor/sd-angular-core-select-editor.d.ts +2 -0
- package/select-editor/sd-angular-core-select-editor.d.ts.__ivy_ngcc_bak +4 -0
- package/select-editor/sd-angular-core-select-editor.d.ts.map +1 -0
- package/service/package.json +12 -1
- package/service/sd-angular-core-service.d.ts +2 -0
- package/service/sd-angular-core-service.d.ts.__ivy_ngcc_bak +4 -0
- package/service/sd-angular-core-service.d.ts.map +1 -0
- package/setting/package.json +12 -1
- package/setting/sd-angular-core-setting.d.ts +2 -0
- package/setting/sd-angular-core-setting.d.ts.__ivy_ngcc_bak +4 -0
- package/setting/sd-angular-core-setting.d.ts.map +1 -0
- package/side-drawer/package.json +12 -1
- package/side-drawer/sd-angular-core-side-drawer.d.ts +2 -0
- package/side-drawer/sd-angular-core-side-drawer.d.ts.__ivy_ngcc_bak +4 -0
- package/side-drawer/sd-angular-core-side-drawer.d.ts.map +1 -0
- package/switch/package.json +12 -1
- package/switch/sd-angular-core-switch.d.ts +2 -0
- package/switch/sd-angular-core-switch.d.ts.__ivy_ngcc_bak +4 -0
- package/switch/sd-angular-core-switch.d.ts.map +1 -0
- package/tab-router/package.json +12 -1
- package/tab-router/sd-angular-core-tab-router.d.ts +2 -0
- package/tab-router/sd-angular-core-tab-router.d.ts.__ivy_ngcc_bak +6 -0
- package/tab-router/sd-angular-core-tab-router.d.ts.map +1 -0
- package/textarea/package.json +12 -1
- package/textarea/sd-angular-core-textarea.d.ts +2 -0
- package/textarea/sd-angular-core-textarea.d.ts.__ivy_ngcc_bak +4 -0
- package/textarea/sd-angular-core-textarea.d.ts.map +1 -0
- package/time/package.json +12 -1
- package/time/sd-angular-core-time.d.ts +2 -0
- package/time/sd-angular-core-time.d.ts.__ivy_ngcc_bak +5 -0
- package/time/sd-angular-core-time.d.ts.map +1 -0
- package/timeline/package.json +12 -1
- package/timeline/sd-angular-core-timeline.d.ts +2 -0
- package/timeline/sd-angular-core-timeline.d.ts.__ivy_ngcc_bak +5 -0
- package/timeline/sd-angular-core-timeline.d.ts.map +1 -0
- package/translate/package.json +12 -1
- package/translate/sd-angular-core-translate.d.ts +2 -0
- package/translate/sd-angular-core-translate.d.ts.__ivy_ngcc_bak +4 -0
- package/translate/sd-angular-core-translate.d.ts.map +1 -0
- package/upload-excel/package.json +12 -1
- package/upload-excel/sd-angular-core-upload-excel.d.ts +2 -0
- package/upload-excel/sd-angular-core-upload-excel.d.ts.__ivy_ngcc_bak +6 -0
- package/upload-excel/sd-angular-core-upload-excel.d.ts.map +1 -0
- package/upload-file/package.json +12 -1
- package/upload-file/sd-angular-core-upload-file.d.ts +2 -0
- package/upload-file/sd-angular-core-upload-file.d.ts.__ivy_ngcc_bak +4 -0
- package/upload-file/sd-angular-core-upload-file.d.ts.map +1 -0
- package/utility/package.json +12 -1
- package/utility/sd-angular-core-utility.d.ts +2 -0
- package/utility/sd-angular-core-utility.d.ts.__ivy_ngcc_bak +4 -0
- package/utility/sd-angular-core-utility.d.ts.map +1 -0
- package/utility/src/lib/utility.service.d.ts +4 -0
- package/view/package.json +12 -1
- package/view/sd-angular-core-view.d.ts +2 -0
- package/view/sd-angular-core-view.d.ts.__ivy_ngcc_bak +4 -0
- package/view/sd-angular-core-view.d.ts.map +1 -0
- package/sd-angular-core-1.2.99.tgz +0 -0
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
import { __classPrivateFieldGet, __awaiter, __classPrivateFieldSet } from 'tslib';
|
|
2
|
+
import { Pipe, Injectable, Component, ChangeDetectorRef, Input, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import { v4 } from 'uuid';
|
|
4
|
+
import $ from 'jquery';
|
|
5
|
+
import XLSX from 'xlsx';
|
|
6
|
+
import { SdNotifyService, SdNotifyModule } from '@sd-angular/core/notify';
|
|
7
|
+
import { SdLoadingService } from '@sd-angular/core/loading';
|
|
8
|
+
import { SdTranslateService, SdTranslateModule } from '@sd-angular/core/translate';
|
|
9
|
+
import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
10
|
+
import { Subscription } from 'rxjs';
|
|
11
|
+
import { SdExportService } from '@sd-angular/core/export';
|
|
12
|
+
import { DecimalPipe, CommonModule } from '@angular/common';
|
|
13
|
+
import { DeviceDetectorModule } from 'ngx-device-detector';
|
|
14
|
+
import { SdButtonModule } from '@sd-angular/core/button';
|
|
15
|
+
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
16
|
+
import { SdModalModule } from '@sd-angular/core/modal';
|
|
17
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
18
|
+
import { FormsModule } from '@angular/forms';
|
|
19
|
+
import { SdInputModule } from '@sd-angular/core/input';
|
|
20
|
+
import { SdUtilityModule } from '@sd-angular/core/utility';
|
|
21
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
22
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
23
|
+
|
|
24
|
+
// export type ExcelItem<T> = {
|
|
25
|
+
// origin?: T;
|
|
26
|
+
// excelIndex?: number;
|
|
27
|
+
// validation: SdUploadExcelValidation;
|
|
28
|
+
// } & T;
|
|
29
|
+
|
|
30
|
+
class SdColumnHiddenPipe {
|
|
31
|
+
constructor() { }
|
|
32
|
+
transform(column) {
|
|
33
|
+
if (column.hidden === undefined) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
if (typeof (column.hidden) === 'boolean') {
|
|
37
|
+
return !column.hidden;
|
|
38
|
+
}
|
|
39
|
+
if (typeof (column.hidden) === 'function') {
|
|
40
|
+
return !column.hidden();
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
SdColumnHiddenPipe.decorators = [
|
|
46
|
+
{ type: Pipe, args: [{
|
|
47
|
+
name: 'columnHidden'
|
|
48
|
+
},] },
|
|
49
|
+
{ type: Injectable }
|
|
50
|
+
];
|
|
51
|
+
SdColumnHiddenPipe.ctorParameters = () => [];
|
|
52
|
+
|
|
53
|
+
var _paginator, _subscription, _reset, _reload, _isError, _isWarning, _isSuccess, _parse, _mapItem, _import, _isValidDate, _isValidTime, _isValidDateTime;
|
|
54
|
+
class SdUploadExcel {
|
|
55
|
+
constructor(ref, exportService, translateService, notifyService, sdColumnHidden, loadingService) {
|
|
56
|
+
this.ref = ref;
|
|
57
|
+
this.exportService = exportService;
|
|
58
|
+
this.translateService = translateService;
|
|
59
|
+
this.notifyService = notifyService;
|
|
60
|
+
this.sdColumnHidden = sdColumnHidden;
|
|
61
|
+
this.loadingService = loadingService;
|
|
62
|
+
this.importId = 'I' + v4();
|
|
63
|
+
this.items = [];
|
|
64
|
+
// originItems: SdExcelItem[] = [];
|
|
65
|
+
this.hasDescription = false;
|
|
66
|
+
this.showing = 'ALL';
|
|
67
|
+
this.filteredItems = [];
|
|
68
|
+
this.viewItems = [];
|
|
69
|
+
this.numberOfSuccess = 0;
|
|
70
|
+
this.numberOfError = 0;
|
|
71
|
+
this.numberOfWarning = 0;
|
|
72
|
+
_paginator.set(this, void 0);
|
|
73
|
+
_subscription.set(this, new Subscription());
|
|
74
|
+
this.isDownloadTemplate = false;
|
|
75
|
+
this.open = () => {
|
|
76
|
+
__classPrivateFieldGet(this, _reset).call(this);
|
|
77
|
+
this.modal.open();
|
|
78
|
+
};
|
|
79
|
+
this.close = () => {
|
|
80
|
+
this.modal.close();
|
|
81
|
+
};
|
|
82
|
+
_reset.set(this, () => {
|
|
83
|
+
this.items = [];
|
|
84
|
+
this.filteredItems = [];
|
|
85
|
+
this.viewItems = [];
|
|
86
|
+
this.numberOfSuccess = 0;
|
|
87
|
+
this.numberOfError = 0;
|
|
88
|
+
this.numberOfWarning = 0;
|
|
89
|
+
this.showing = 'ALL';
|
|
90
|
+
});
|
|
91
|
+
_reload.set(this, () => {
|
|
92
|
+
const pageIndex = __classPrivateFieldGet(this, _paginator).pageIndex;
|
|
93
|
+
const pageSize = __classPrivateFieldGet(this, _paginator).pageSize;
|
|
94
|
+
this.filteredItems = this.items.filter((item) => {
|
|
95
|
+
const { validation } = item.sd;
|
|
96
|
+
if (this.showing === 'SUCCESS') {
|
|
97
|
+
return !(validation === null || validation === void 0 ? void 0 : validation.error) && !(validation === null || validation === void 0 ? void 0 : validation.warning);
|
|
98
|
+
}
|
|
99
|
+
else if (this.showing === 'WARNING') {
|
|
100
|
+
return !!(validation === null || validation === void 0 ? void 0 : validation.warning) && !(validation === null || validation === void 0 ? void 0 : validation.error);
|
|
101
|
+
}
|
|
102
|
+
else if (this.showing === 'ERROR') {
|
|
103
|
+
return !!(validation === null || validation === void 0 ? void 0 : validation.error);
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
});
|
|
107
|
+
this.viewItems = this.filteredItems
|
|
108
|
+
.filter((item, index) => index >= pageIndex * pageSize && index < (pageIndex + 1) * pageSize);
|
|
109
|
+
this.numberOfSuccess = this.items.filter(__classPrivateFieldGet(this, _isSuccess)).length;
|
|
110
|
+
this.numberOfError = this.items.filter(__classPrivateFieldGet(this, _isError)).length;
|
|
111
|
+
this.numberOfWarning = this.items.filter(__classPrivateFieldGet(this, _isWarning)).length;
|
|
112
|
+
});
|
|
113
|
+
_isError.set(this, (item) => !!item.sd.validation.error);
|
|
114
|
+
_isWarning.set(this, (item) => { var _a, _b; return ((_a = item.sd.validation) === null || _a === void 0 ? void 0 : _a.warning) && !((_b = item.sd.validation) === null || _b === void 0 ? void 0 : _b.error); });
|
|
115
|
+
_isSuccess.set(this, (item) => { var _a, _b; return !((_a = item.sd.validation) === null || _a === void 0 ? void 0 : _a.error) && !((_b = item.sd.validation) === null || _b === void 0 ? void 0 : _b.warning); });
|
|
116
|
+
this.upload = () => __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
try {
|
|
118
|
+
const { mappingItems, errorValidation, warningValidation } = this.option;
|
|
119
|
+
const { translate } = this.translateService;
|
|
120
|
+
const { items, file } = yield __classPrivateFieldGet(this, _import).call(this);
|
|
121
|
+
this.hasDescription = this.option.columns.some(e => !!e.description);
|
|
122
|
+
const offset = this.hasDescription ? 2 : 1;
|
|
123
|
+
items.splice(0, offset);
|
|
124
|
+
if (items.length === 0) {
|
|
125
|
+
this.notifyService.notify.warning(`${translate(`No data to import`)}`);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (items.length > this.option.limit) {
|
|
129
|
+
this.notifyService.notify.warning(`${translate(`Limit rows`)}: ${this.option.limit}`);
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
__classPrivateFieldGet(this, _reset).call(this);
|
|
133
|
+
// this.originItems = items.map(data => ({
|
|
134
|
+
// data,
|
|
135
|
+
// sd: {}
|
|
136
|
+
// }));
|
|
137
|
+
this.items = items.map((data, idx) => ({
|
|
138
|
+
data,
|
|
139
|
+
sd: {
|
|
140
|
+
excelIndex: idx + (this.hasDescription ? 4 : 3),
|
|
141
|
+
validation: {
|
|
142
|
+
data: {}
|
|
143
|
+
},
|
|
144
|
+
origin: Object.assign({}, data)
|
|
145
|
+
}
|
|
146
|
+
}));
|
|
147
|
+
if (mappingItems) {
|
|
148
|
+
const mappedItems = mappingItems(this.items);
|
|
149
|
+
if (mappedItems instanceof Promise) {
|
|
150
|
+
this.uploading = true;
|
|
151
|
+
this.items = (yield mappedItems.finally(() => this.uploading = false));
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
this.items = (mappedItems || this.items);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
this.file = file;
|
|
158
|
+
this.loadingService.start();
|
|
159
|
+
for (const [idx, item] of this.items.entries()) {
|
|
160
|
+
yield this.validate(item, idx);
|
|
161
|
+
}
|
|
162
|
+
// Nếu không có error thì tiếp tục validate từ option validate truyền vào
|
|
163
|
+
if (!this.items.some(__classPrivateFieldGet(this, _isError)) && errorValidation) {
|
|
164
|
+
const results = yield errorValidation(this.items.map(e => e.data));
|
|
165
|
+
results.forEach(result => this.items[result.idx].sd.validation.error = result.message);
|
|
166
|
+
}
|
|
167
|
+
// Nếu không có warning thì tiếp tục validate từ option validate truyền vào
|
|
168
|
+
if (!this.items.some(__classPrivateFieldGet(this, _isWarning)) && warningValidation) {
|
|
169
|
+
const results = yield warningValidation(this.items.map(e => e.data));
|
|
170
|
+
results.forEach(result => this.items[result.idx].sd.validation.warning = result.message);
|
|
171
|
+
}
|
|
172
|
+
__classPrivateFieldGet(this, _paginator).pageIndex = 0;
|
|
173
|
+
__classPrivateFieldGet(this, _reload).call(this);
|
|
174
|
+
this.ref.detectChanges();
|
|
175
|
+
this.isUploaded = false;
|
|
176
|
+
}
|
|
177
|
+
catch (err) {
|
|
178
|
+
this.notifyService.handle.error(err);
|
|
179
|
+
}
|
|
180
|
+
finally {
|
|
181
|
+
this.loadingService.stop();
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
this.validate = (excelItem, idx) => __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
var _a;
|
|
186
|
+
const { data: item, sd: { validation } } = excelItem;
|
|
187
|
+
const { translate } = this.translateService;
|
|
188
|
+
const errors = [];
|
|
189
|
+
for (const column of this.option.columns) {
|
|
190
|
+
validation.data[column.field] = {};
|
|
191
|
+
if (!this.sdColumnHidden.transform(column)) {
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
try {
|
|
195
|
+
if (column.defaultValue !== undefined) {
|
|
196
|
+
item[column.field] = (_a = item[column.field]) !== null && _a !== void 0 ? _a : column.defaultValue;
|
|
197
|
+
}
|
|
198
|
+
else if (column.required && !item[column.field] && item[column.field] !== 0) {
|
|
199
|
+
validation.data[column.field].error = `${translate('required')}`;
|
|
200
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
if (column.type === 'string') {
|
|
204
|
+
const value = (item[column.field] || '').toString();
|
|
205
|
+
if (column.minLength !== undefined && value.length < column.minLength) {
|
|
206
|
+
validation.data[column.field].error = `${translate('Min length')}: ${column.minLength}`;
|
|
207
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
if (column.maxLength !== undefined && value.length > column.maxLength) {
|
|
211
|
+
validation.data[column.field].error = `${translate('Max length')}: ${column.maxLength}`;
|
|
212
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
item[column.field] = value;
|
|
216
|
+
}
|
|
217
|
+
else if (column.type === 'number') {
|
|
218
|
+
if (item[column.field]) {
|
|
219
|
+
const value = +item[column.field];
|
|
220
|
+
if (Number.isNaN(value)) {
|
|
221
|
+
validation.data[column.field].error = `${item[column.field]} ${translate('is not a number')}`;
|
|
222
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
223
|
+
continue;
|
|
224
|
+
}
|
|
225
|
+
item[column.field] = value;
|
|
226
|
+
}
|
|
227
|
+
if (!item[column.field] && item[column.field] !== 0) {
|
|
228
|
+
item[column.field] = undefined;
|
|
229
|
+
}
|
|
230
|
+
if (column.minValue !== undefined && item[column.field] < column.minValue) {
|
|
231
|
+
validation.data[column.field].error = `${item[column.field]} ${translate('Min value')}: ${column.minValue}`;
|
|
232
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
if (column.maxValue !== undefined && item[column.field] > column.maxValue) {
|
|
236
|
+
validation.data[column.field].error = `${item[column.field]} ${translate('Max value')}: ${column.maxValue}`;
|
|
237
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
238
|
+
continue;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
else if (column.type === 'bool') {
|
|
242
|
+
if (item[column.field] === 0 || item[column.field] === false) {
|
|
243
|
+
item[column.field] = '0';
|
|
244
|
+
}
|
|
245
|
+
if (item[column.field] === 1 || item[column.field] === true) {
|
|
246
|
+
item[column.field] = '1';
|
|
247
|
+
}
|
|
248
|
+
if (item[column.field]) {
|
|
249
|
+
const value = +item[column.field];
|
|
250
|
+
if (Number.isNaN(value) || (value !== 0 && value !== 1)) {
|
|
251
|
+
validation.data[column.field].error = `${translate('Value shoud be 0 or 1')}`;
|
|
252
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
if (column.parseToBool) {
|
|
256
|
+
item[column.field] = item[column.field] === '1';
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
else if (column.type === 'values') {
|
|
262
|
+
if (item[column.field] && typeof (item[column.field]) !== 'number' && typeof (item[column.field]) !== 'string') {
|
|
263
|
+
validation.data[column.field].error = `${item[column.field]} ${translate('Invalid data type')}`;
|
|
264
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
if (column.checkValueInArray && item[column.field] && !column.values.some(e => e.toString() === item[column.field].toString())) {
|
|
268
|
+
validation.data[column.field].error = `${item[column.field]} ${translate('Value not in')} [${column.values.join()}]`;
|
|
269
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
else if (column.type === 'date' || column.type === 'datetime' || column.type === 'time') {
|
|
274
|
+
const { type, format } = column;
|
|
275
|
+
const val = item[column.field];
|
|
276
|
+
if (format && item[column.field]) {
|
|
277
|
+
if (typeof (val) !== 'string') {
|
|
278
|
+
validation.data[column.field].error = `${translate('Invalid format')} ${column.format}: ${val}`;
|
|
279
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
if (type === 'date' && !__classPrivateFieldGet(this, _isValidDate).call(this, format, val)) {
|
|
283
|
+
validation.data[column.field].error = `${translate('Invalid format')} ${column.format}: ${val}`;
|
|
284
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
if (type === 'time' && !__classPrivateFieldGet(this, _isValidTime).call(this, format, val)) {
|
|
288
|
+
validation.data[column.field].error = `${translate('Invalid format')} ${column.format}: ${val}`;
|
|
289
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
290
|
+
continue;
|
|
291
|
+
}
|
|
292
|
+
if (type === 'datetime' && !__classPrivateFieldGet(this, _isValidDateTime).call(this, format, val)) {
|
|
293
|
+
validation.data[column.field].error = `${translate('Invalid format')} ${column.format}: ${val}`;
|
|
294
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
295
|
+
continue;
|
|
296
|
+
}
|
|
297
|
+
item[column.field] = Date.parseFrom(val, column.format).toFormat('MM/dd/yyyy HH:mm:ss');
|
|
298
|
+
}
|
|
299
|
+
if (item[column.field] && !Date.isDate(item[column.field])) {
|
|
300
|
+
validation.data[column.field].error = `${translate('Invalid date')}: ${item[column.field]}`;
|
|
301
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
if (!errors.length && column.errorValidation) {
|
|
306
|
+
const error = yield column.errorValidation(item, item[column.field], idx);
|
|
307
|
+
if (error) {
|
|
308
|
+
validation.data[column.field].error = `${error}`;
|
|
309
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
if (!validation.data[column.field].warning && column.warningValidation) {
|
|
313
|
+
const warning = yield column.warningValidation(item, item[column.field], idx);
|
|
314
|
+
if (warning) {
|
|
315
|
+
validation.data[column.field].warning = `${warning}`;
|
|
316
|
+
validation.warning += `<strong>[${column.title || column.field}]</strong> ${warning}<br>`;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
catch (ex) {
|
|
321
|
+
validation.data[column.field].error = `${(ex === null || ex === void 0 ? void 0 : ex.message) || (ex === null || ex === void 0 ? void 0 : ex.error) || ex || 'Có lỗi xảy ra'}`;
|
|
322
|
+
errors.push(`<strong>[${column.title || column.field}]</strong> ${validation.data[column.field].error}`);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
validation.error = errors.join('<br>');
|
|
326
|
+
});
|
|
327
|
+
_parse.set(this, (item) => {
|
|
328
|
+
const { data } = item;
|
|
329
|
+
return data;
|
|
330
|
+
});
|
|
331
|
+
_mapItem.set(this, (item) => {
|
|
332
|
+
const { data } = item;
|
|
333
|
+
return data;
|
|
334
|
+
});
|
|
335
|
+
this.accept = () => {
|
|
336
|
+
var _a;
|
|
337
|
+
const successItems = this.items.filter(__classPrivateFieldGet(this, _isSuccess)).map(__classPrivateFieldGet(this, _mapItem));
|
|
338
|
+
const errorItems = this.items.filter(__classPrivateFieldGet(this, _isError)).map(__classPrivateFieldGet(this, _mapItem));
|
|
339
|
+
const warningItems = this.items.filter(__classPrivateFieldGet(this, _isWarning)).map(__classPrivateFieldGet(this, _mapItem));
|
|
340
|
+
(_a = this.option) === null || _a === void 0 ? void 0 : _a.onAccept(this.items.map(__classPrivateFieldGet(this, _mapItem)), successItems, errorItems, warningItems, this.file);
|
|
341
|
+
this.isUploaded = true;
|
|
342
|
+
};
|
|
343
|
+
this.setValidation = (validates) => {
|
|
344
|
+
if (Array.isArray(validates)) {
|
|
345
|
+
validates.forEach(validate => {
|
|
346
|
+
this.items[validate.idx].sd.validation.error = validate.messageError;
|
|
347
|
+
this.items[validate.idx].sd.validation.warning = validate.messageWarning;
|
|
348
|
+
this.items[validate.idx].sd.validation.success = validate.messageSuccess;
|
|
349
|
+
});
|
|
350
|
+
}
|
|
351
|
+
__classPrivateFieldGet(this, _reload).call(this);
|
|
352
|
+
this.ref.detectChanges();
|
|
353
|
+
};
|
|
354
|
+
this.view = (showing = 'ALL') => {
|
|
355
|
+
this.showing = showing;
|
|
356
|
+
__classPrivateFieldGet(this, _paginator).pageIndex = 0;
|
|
357
|
+
__classPrivateFieldGet(this, _reload).call(this);
|
|
358
|
+
};
|
|
359
|
+
this.downloadTemplate = () => __awaiter(this, void 0, void 0, function* () {
|
|
360
|
+
var _b;
|
|
361
|
+
const sheets = [];
|
|
362
|
+
if (Array.isArray((_b = this.option) === null || _b === void 0 ? void 0 : _b.sheets)) {
|
|
363
|
+
for (const sheet of this.option.sheets) {
|
|
364
|
+
if (sheet.name && sheet.items && sheet.fields) {
|
|
365
|
+
if (Array.isArray(sheet.items)) {
|
|
366
|
+
sheets.push({
|
|
367
|
+
name: sheet.name,
|
|
368
|
+
items: sheet.items,
|
|
369
|
+
fields: sheet.fields
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
sheets.push({
|
|
374
|
+
name: sheet.name,
|
|
375
|
+
items: yield sheet.items(),
|
|
376
|
+
fields: sheet.fields
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
const columnNotHiddens = this.option.columns.filter(column => this.sdColumnHidden.transform(column));
|
|
383
|
+
const excelTemplate = {
|
|
384
|
+
fileName: this.option.fileName || 'Template',
|
|
385
|
+
columns: columnNotHiddens.map(column => {
|
|
386
|
+
return {
|
|
387
|
+
field: column.field,
|
|
388
|
+
title: column.title,
|
|
389
|
+
width: column.width,
|
|
390
|
+
required: column.required,
|
|
391
|
+
description: column.description,
|
|
392
|
+
fontColor: column.fontColor,
|
|
393
|
+
fill: column.fill
|
|
394
|
+
};
|
|
395
|
+
}),
|
|
396
|
+
sheets
|
|
397
|
+
};
|
|
398
|
+
this.isDownloadTemplate = true;
|
|
399
|
+
yield this.exportService.generateTemplate(excelTemplate).finally(() => {
|
|
400
|
+
this.isDownloadTemplate = false;
|
|
401
|
+
});
|
|
402
|
+
});
|
|
403
|
+
this.export = () => __awaiter(this, void 0, void 0, function* () {
|
|
404
|
+
this.loadingService.start();
|
|
405
|
+
const columns = [{
|
|
406
|
+
field: 'sdMessage',
|
|
407
|
+
title: this.translateService.translate('Upload message'),
|
|
408
|
+
width: '250px',
|
|
409
|
+
required: false
|
|
410
|
+
}, ...this.option.columns.filter(column => this.sdColumnHidden.transform(column))];
|
|
411
|
+
yield this.exportService.export({
|
|
412
|
+
columns,
|
|
413
|
+
items: this.filteredItems.map(e => {
|
|
414
|
+
var _a, _b, _c, _d, _e;
|
|
415
|
+
let result = {};
|
|
416
|
+
for (const column of columns) {
|
|
417
|
+
result = Object.assign(Object.assign({}, result), { [column.field]: (_a = e.sd.origin) === null || _a === void 0 ? void 0 : _a[column.field] });
|
|
418
|
+
}
|
|
419
|
+
return Object.assign(Object.assign({}, result), { sdMessage: (_e = (((_b = e.sd.validation) === null || _b === void 0 ? void 0 : _b.error) || ((_c = e.sd.validation) === null || _c === void 0 ? void 0 : _c.warning) || ((_d = e.sd.validation) === null || _d === void 0 ? void 0 : _d.success))) === null || _e === void 0 ? void 0 : _e.replace(/<strong>/g, '').replace(/<\/strong>/g, '').replace(/<br>/g, '\n') });
|
|
420
|
+
})
|
|
421
|
+
}).finally(this.loadingService.stop);
|
|
422
|
+
});
|
|
423
|
+
_import.set(this, () => {
|
|
424
|
+
const { translate } = this.translateService;
|
|
425
|
+
return new Promise((resolve, reject) => {
|
|
426
|
+
if ($(`#${this.importId}`).length) {
|
|
427
|
+
$('body').children(`#${this.importId}`).remove();
|
|
428
|
+
}
|
|
429
|
+
$('body').append(`<input id="${this.importId}" style="display: none" type="file" />`);
|
|
430
|
+
$(`#${this.importId}`).on('change', (evt) => {
|
|
431
|
+
try {
|
|
432
|
+
const target = evt.target;
|
|
433
|
+
if (target.files.length !== 1) {
|
|
434
|
+
throw new Error(translate('Cannot use multiple files'));
|
|
435
|
+
}
|
|
436
|
+
const file = target.files[0];
|
|
437
|
+
const lastDot = file.name.lastIndexOf('.');
|
|
438
|
+
if (lastDot === -1) {
|
|
439
|
+
throw new Error(translate('Invalid file extension'));
|
|
440
|
+
}
|
|
441
|
+
const extension = file.name.substring(lastDot + 1);
|
|
442
|
+
if (extension.toLowerCase() !== 'xlsx') {
|
|
443
|
+
throw new Error(translate('Please upload .xlsx file'));
|
|
444
|
+
}
|
|
445
|
+
const reader = new FileReader();
|
|
446
|
+
reader.onload = (e) => {
|
|
447
|
+
const bstr = e.target.result;
|
|
448
|
+
const wb = XLSX.read(bstr, { type: 'binary' });
|
|
449
|
+
const wsname = wb.SheetNames[0];
|
|
450
|
+
const ws = wb.Sheets[wsname];
|
|
451
|
+
const lines = (XLSX.utils.sheet_to_json(ws, { header: 1 }));
|
|
452
|
+
const records = [];
|
|
453
|
+
const headers = lines[0];
|
|
454
|
+
lines.splice(0, 1);
|
|
455
|
+
lines.forEach(line => {
|
|
456
|
+
const record = {};
|
|
457
|
+
let hasValue = false;
|
|
458
|
+
headers.forEach((header, index) => {
|
|
459
|
+
record[header] = line[index];
|
|
460
|
+
if (line[index] !== undefined && line[index] !== null && line[index].toString()) {
|
|
461
|
+
hasValue = true;
|
|
462
|
+
}
|
|
463
|
+
if (typeof (record[header]) === 'string') {
|
|
464
|
+
record[header] = record[header].trim();
|
|
465
|
+
}
|
|
466
|
+
if (record[header] === '' || record[header] === undefined) {
|
|
467
|
+
record[header] = null;
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
if (hasValue) {
|
|
471
|
+
records.push(record);
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
resolve({
|
|
475
|
+
items: records,
|
|
476
|
+
file: target.files[0]
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
reader.readAsBinaryString(target.files[0]);
|
|
480
|
+
}
|
|
481
|
+
catch (error) {
|
|
482
|
+
reject(error);
|
|
483
|
+
}
|
|
484
|
+
});
|
|
485
|
+
$(`#${this.importId}`).trigger('click');
|
|
486
|
+
});
|
|
487
|
+
});
|
|
488
|
+
_isValidDate.set(this, (format, value) => {
|
|
489
|
+
if ((value === null || value === void 0 ? void 0 : value.length) !== (format === null || format === void 0 ? void 0 : format.length)) {
|
|
490
|
+
return false;
|
|
491
|
+
}
|
|
492
|
+
const regex = /^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[13-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/;
|
|
493
|
+
return regex.test(value);
|
|
494
|
+
});
|
|
495
|
+
_isValidTime.set(this, (format, value) => {
|
|
496
|
+
if ((value === null || value === void 0 ? void 0 : value.length) !== (format === null || format === void 0 ? void 0 : format.length)) {
|
|
497
|
+
return false;
|
|
498
|
+
}
|
|
499
|
+
return true;
|
|
500
|
+
});
|
|
501
|
+
_isValidDateTime.set(this, (format, value) => {
|
|
502
|
+
if ((value === null || value === void 0 ? void 0 : value.length) !== (format === null || format === void 0 ? void 0 : format.length)) {
|
|
503
|
+
return false;
|
|
504
|
+
}
|
|
505
|
+
const dates = value === null || value === void 0 ? void 0 : value.split(' ');
|
|
506
|
+
if (dates.length !== 2) {
|
|
507
|
+
return false;
|
|
508
|
+
}
|
|
509
|
+
const date = dates[0];
|
|
510
|
+
if (!__classPrivateFieldGet(this, _isValidDate).call(this, 'dd/MM/yyyy', date)) {
|
|
511
|
+
return false;
|
|
512
|
+
}
|
|
513
|
+
const time = dates[1];
|
|
514
|
+
const regex = /^(0[0-9]|1[0-9]|2[0-3])(\:)(0[0-9]|[0-5][0-9])$/;
|
|
515
|
+
return regex.test(time);
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
set paginator(paginator) {
|
|
519
|
+
if (paginator && __classPrivateFieldGet(this, _paginator) !== paginator) {
|
|
520
|
+
__classPrivateFieldSet(this, _paginator, paginator);
|
|
521
|
+
__classPrivateFieldGet(this, _subscription).add(paginator.page.subscribe(__classPrivateFieldGet(this, _reload)));
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
ngOnInit() {
|
|
525
|
+
this.isUploaded = false;
|
|
526
|
+
}
|
|
527
|
+
ngOnDestroy() {
|
|
528
|
+
__classPrivateFieldGet(this, _subscription).unsubscribe();
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
_paginator = new WeakMap(), _subscription = new WeakMap(), _reset = new WeakMap(), _reload = new WeakMap(), _isError = new WeakMap(), _isWarning = new WeakMap(), _isSuccess = new WeakMap(), _parse = new WeakMap(), _mapItem = new WeakMap(), _import = new WeakMap(), _isValidDate = new WeakMap(), _isValidTime = new WeakMap(), _isValidDateTime = new WeakMap();
|
|
532
|
+
SdUploadExcel.decorators = [
|
|
533
|
+
{ type: Component, args: [{
|
|
534
|
+
selector: 'sd-upload-excel',
|
|
535
|
+
template: "<sd-modal [title]=\"(option?.title || 'Import Excel')| sdTranslate\" #modal>\r\n <sd-modal-body background=\"#F0F8FF\">\r\n <div class=\"row mx-0 mb-10\">\r\n <sd-button *ngIf=\"items?.length\" class=\"mr-5\" (action)=\"view('ALL')\" icon=\"cached\"\r\n [title]=\"'View all' | sdTranslate\" size=\"sm\"></sd-button>\r\n <sd-button *ngIf=\"numberOfSuccess\" class=\"mr-5\" (action)=\"view('SUCCESS')\" icon=\"done\" [title]=\"numberOfSuccess\"\r\n [tooltip]=\"'Number of success rows' | sdTranslate\" size=\"sm\" color=\"success\"></sd-button>\r\n <sd-button *ngIf=\"numberOfWarning\" class=\"mr-5\" (action)=\"view('WARNING')\" icon=\"warning\"\r\n [title]=\"numberOfWarning\" [tooltip]=\"'Number of warning rows' | sdTranslate\" size=\"sm\"></sd-button>\r\n <sd-button *ngIf=\"numberOfError\" class=\"mr-5\" (action)=\"view('ERROR')\" icon=\"error\" [title]=\"numberOfError\"\r\n color=\"danger\" [tooltip]=\"'Number of error rows' | sdTranslate\" size=\"sm\"></sd-button>\r\n </div>\r\n <div class=\"sd-box\">\r\n <div class=\"sd-box-body p-0\">\r\n <div class=\"table-responsive\" style=\"position: relative; height:50vh\">\r\n <table class=\"table table-striped table-sm table-hover table-bordered\">\r\n <thead class=\"thead-light\">\r\n <tr>\r\n <th class=\"text-center position-sticky c-sticky-left\" style=\"width: 50px;vertical-align: middle;\">#</th>\r\n <th *ngIf=\"filteredItems?.length\" class=\"text-center\"\r\n style=\"min-width: 250px; width: 250px;vertical-align: middle;\">\r\n {{'Upload message' | sdTranslate}}</th>\r\n <ng-container *ngFor=\"let column of option.columns\">\r\n <th *ngIf=\"column | columnHidden\" [ngStyle]=\"{'min-width':column.width ? column.width : '300px'}\"\r\n [matTooltip]=\"column.title\">\r\n <span class=\"c-ellipsis\"\r\n [ngStyle]=\"{'min-width':column.width ? column.width : '300px', 'max-width':column.width ? column.width : '300px'}\">{{column.title}}</span>\r\n </th>\r\n </ng-container>\r\n </tr>\r\n </thead>\r\n <tbody *ngIf=\"viewItems.length\">\r\n <tr *ngFor=\"let item of viewItems\">\r\n <td class=\"text-center position-sticky c-sticky-left\" style=\"width: 50px\">\r\n <span class=\"badge\"\r\n [ngClass]=\"{'badge-success':!item.sd.validation?.warning && !item.sd.validation?.error, 'badge-warning':item.sd.validation?.warning && !item.sd.validation?.error, 'badge-danger':item.sd.validation?.error}\"\r\n style=\"width: 100%\">{{item.sd.excelIndex}}</span>\r\n </td>\r\n <td style=\"min-width: 250px; width: 250px\">\r\n <div\r\n [innerHtml]=\"item.sd.validation?.error || item.sd.validation?.warning || item.sd.validation?.success || ('Success' | sdTranslate)\">\r\n </div>\r\n </td>\r\n <ng-container *ngFor=\"let column of option.columns\">\r\n <td *ngIf=\"column | columnHidden\" class=\"align-middle\" [ngClass]=\"{'table-warning':item.sd.validation?.data[column.field]?.warning && !item.sd.validation?.data[column.field]?.error, \r\n 'table-danger':item.sd.validation?.data[column.field]?.error}\"\r\n [matTooltip]=\"item.sd.validation?.data[column.field]?.error || item.sd.validation?.data[column.field]?.warning\"\r\n [ngStyle]=\"{'min-width':column.width ? column.width : '300px'}\" matTooltipPosition=\"above\">\r\n <span class=\"c-ellipsis\">\r\n <div *ngIf=\"column.type !== 'array'\"\r\n [innerHtml]=\"item | columnTransform:column | async | safeHtml\"></div>\r\n <ng-container *ngIf=\"column.type === 'array'\">\r\n {{item.data[column.field]?.split(column.divideString)?.length}} {{column.unitString}}\r\n <button mat-button [matMenuTriggerFor]=\"menu\" class=\"c-mat-menu\">\r\n <mat-icon>open_in_new</mat-icon>\r\n </button>\r\n <mat-menu #menu=\"matMenu\">\r\n <div class=\"row mx-0\">\r\n <div class=\"col-6\" *ngFor=\"let itemArray of item.data[column.field]?.split(column.divideString)\"\r\n [innerHtml]=\"itemArray\">\r\n </div>\r\n </div>\r\n </mat-menu>\r\n </ng-container>\r\n </span>\r\n </td>\r\n </ng-container>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n <div class=\"sd-box-footer clearfix\">\r\n <div style=\"display: flex; align-items: center; align-content: space-between;\">\r\n <div style=\"flex: 1;\" [innerHTML]=\"option?.note\">\r\n </div>\r\n <div style=\"flex: 1;\">\r\n <mat-paginator [length]=\"filteredItems?.length || 0\" hidePageSize>\r\n </mat-paginator>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </sd-modal-body>\r\n <sd-modal-footer *sdDesktop>\r\n <div class=\"mr-auto\">\r\n <sd-button class=\"mr-5\" (action)=\"upload()\" icon=\"file_upload\" [title]=\"'Upload' | sdTranslate\" size=\"sm\"\r\n color=\"info\" [loading]=\"uploading\"></sd-button>\r\n <sd-button class=\"mr-5\" (action)=\"downloadTemplate()\" icon=\"file_download\" [loading]=\"isDownloadTemplate\"\r\n [title]=\"'Download template' | sdTranslate\" color=\"info\" type=\"outline\" size=\"sm\">\r\n </sd-button>\r\n </div>\r\n <sd-button *ngIf=\"filteredItems?.length\" class=\"mr-5\" (action)=\"export()\" icon=\"get_app\"\r\n [title]=\"'Download result' | sdTranslate\" size=\"sm\" color=\"info\" type=\"outline\">\r\n </sd-button>\r\n <sd-button (action)=\"accept()\" [title]=\"'Accept' | sdTranslate\"\r\n [disabled]=\"numberOfSuccess === 0 || numberOfError > 0 || isUploaded\" color=\"primary\" type=\"fill\" size=\"sm\">\r\n </sd-button>\r\n </sd-modal-footer>\r\n <sd-modal-footer *sdMobileTablet>\r\n <sd-button style=\"flex: 1; padding-right: 5px;\" (action)=\"upload()\" icon=\"file_upload\"\r\n [title]=\"'Upload' | sdTranslate\" width=\"100%\" size=\"sm\" color=\"info\" [loading]=\"uploading\"></sd-button>\r\n <sd-button style=\"flex: 1; padding-left: 5px;\" (action)=\"accept()\" icon=\"check\" [title]=\"'Accept' | sdTranslate\"\r\n [disabled]=\"numberOfSuccess === 0 || numberOfError > 0\" color=\"success\" width=\"100%\" size=\"sm\"></sd-button>\r\n </sd-modal-footer>\r\n</sd-modal>",
|
|
536
|
+
styles: [".table thead td,.table thead th{padding-bottom:5px;padding-top:5px}.table-striped tbody tr:nth-of-type(2n) .c-sticky-left{background-color:#fff}.table-striped tbody tr:nth-of-type(odd) .c-sticky-left{background-color:#f2f2f2}.c-sticky-left{border-left:none!important;border-right:none!important;left:0!important;z-index:20}.c-ellipsis{display:block;overflow:hidden!important;padding:.1rem;text-overflow:ellipsis;white-space:nowrap}.c-mat-menu{border:none}.c-mat-menu mat-icon{font-size:20px;vertical-align:middle}:host ::ng-deep .mat-paginator-container{height:32px;min-height:32px}:host ::ng-deep .mat-paginator-container .mat-icon-button{height:28px;line-height:28px;width:28px}"]
|
|
537
|
+
},] }
|
|
538
|
+
];
|
|
539
|
+
SdUploadExcel.ctorParameters = () => [
|
|
540
|
+
{ type: ChangeDetectorRef },
|
|
541
|
+
{ type: SdExportService },
|
|
542
|
+
{ type: SdTranslateService },
|
|
543
|
+
{ type: SdNotifyService },
|
|
544
|
+
{ type: SdColumnHiddenPipe },
|
|
545
|
+
{ type: SdLoadingService }
|
|
546
|
+
];
|
|
547
|
+
SdUploadExcel.propDecorators = {
|
|
548
|
+
option: [{ type: Input }],
|
|
549
|
+
modal: [{ type: ViewChild, args: ['modal',] }],
|
|
550
|
+
paginator: [{ type: ViewChild, args: [MatPaginator,] }]
|
|
551
|
+
};
|
|
552
|
+
|
|
553
|
+
class SdColumnTransformPipe {
|
|
554
|
+
constructor(decimalPipe) {
|
|
555
|
+
this.decimalPipe = decimalPipe;
|
|
556
|
+
this.transform = (rowData, column) => __awaiter(this, void 0, void 0, function* () {
|
|
557
|
+
var _a, _b, _c, _d, _e, _f;
|
|
558
|
+
const { type, transform } = column;
|
|
559
|
+
const value = rowData.data[column.field];
|
|
560
|
+
if ((_a = rowData.sd.validation.data[column.field]) === null || _a === void 0 ? void 0 : _a.error) {
|
|
561
|
+
return (_c = (_b = rowData.sd.origin[column.field]) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : '';
|
|
562
|
+
}
|
|
563
|
+
if (transform) {
|
|
564
|
+
return transform(rowData.data, value);
|
|
565
|
+
}
|
|
566
|
+
if (column.type === 'number') {
|
|
567
|
+
return (_d = Number.toVNCurrency(value)) !== null && _d !== void 0 ? _d : '';
|
|
568
|
+
}
|
|
569
|
+
if (column.type === 'bool') {
|
|
570
|
+
if (value === '1' || value === true) {
|
|
571
|
+
return `<div class="text-center"><input type="checkbox" checked disabled></div>`;
|
|
572
|
+
}
|
|
573
|
+
else if (value === '0' || value === false) {
|
|
574
|
+
return `<div class="text-center"><input type="checkbox" disabled></div>`;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
if (column.type === 'date') {
|
|
578
|
+
return (_e = Date.toFormat(value, column.format || 'dd/MM/yyyy')) !== null && _e !== void 0 ? _e : '';
|
|
579
|
+
}
|
|
580
|
+
if (column.type === 'datetime') {
|
|
581
|
+
return (_f = Date.toFormat(value, column.format || 'dd/MM/yyyy HH:mm')) !== null && _f !== void 0 ? _f : '';
|
|
582
|
+
}
|
|
583
|
+
return value !== null && value !== void 0 ? value : '';
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
SdColumnTransformPipe.decorators = [
|
|
588
|
+
{ type: Pipe, args: [{
|
|
589
|
+
name: 'columnTransform'
|
|
590
|
+
},] }
|
|
591
|
+
];
|
|
592
|
+
SdColumnTransformPipe.ctorParameters = () => [
|
|
593
|
+
{ type: DecimalPipe }
|
|
594
|
+
];
|
|
595
|
+
|
|
596
|
+
class SdUploadExcelModule {
|
|
597
|
+
}
|
|
598
|
+
SdUploadExcelModule.decorators = [
|
|
599
|
+
{ type: NgModule, args: [{
|
|
600
|
+
imports: [
|
|
601
|
+
CommonModule,
|
|
602
|
+
FormsModule,
|
|
603
|
+
DeviceDetectorModule.forRoot(),
|
|
604
|
+
MatSlideToggleModule,
|
|
605
|
+
MatTooltipModule,
|
|
606
|
+
MatPaginatorModule,
|
|
607
|
+
MatSlideToggleModule,
|
|
608
|
+
SdNotifyModule,
|
|
609
|
+
SdTranslateModule,
|
|
610
|
+
SdUtilityModule,
|
|
611
|
+
SdButtonModule,
|
|
612
|
+
SdModalModule,
|
|
613
|
+
SdInputModule,
|
|
614
|
+
MatIconModule,
|
|
615
|
+
MatMenuModule
|
|
616
|
+
],
|
|
617
|
+
declarations: [
|
|
618
|
+
SdUploadExcel,
|
|
619
|
+
// pipe
|
|
620
|
+
SdColumnHiddenPipe,
|
|
621
|
+
SdColumnTransformPipe
|
|
622
|
+
],
|
|
623
|
+
exports: [
|
|
624
|
+
SdUploadExcel
|
|
625
|
+
],
|
|
626
|
+
providers: [
|
|
627
|
+
DecimalPipe,
|
|
628
|
+
SdColumnHiddenPipe
|
|
629
|
+
]
|
|
630
|
+
},] }
|
|
631
|
+
];
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Generated bundle index. Do not edit.
|
|
635
|
+
*/
|
|
636
|
+
|
|
637
|
+
export { SdUploadExcel, SdUploadExcelModule, SdColumnHiddenPipe as ɵa, SdColumnTransformPipe as ɵb };
|
|
638
|
+
//# sourceMappingURL=sd-angular-core-upload-excel.js.map
|