@sd-angular/core 1.2.98 → 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 +3 -2
- 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-db.umd.min.js +1 -1
- package/bundles/sd-angular-core-db.umd.min.js.map +1 -1
- 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/db/sd-angular-core-db.metadata.json +1 -1
- package/db/src/lib/db.model.d.ts +10 -2
- package/db/src/lib/db.service.d.ts +6 -9
- 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/db/src/lib/db.model.js +1 -1
- package/esm2015/db/src/lib/db.service.js +2 -2
- 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 +3 -2
- 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.98.tgz +0 -0
|
@@ -0,0 +1,1114 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('uuid'), require('jquery'), require('xlsx'), require('@sd-angular/core/notify'), require('@sd-angular/core/loading'), require('@sd-angular/core/translate'), require('@angular/material/paginator'), require('rxjs'), require('@sd-angular/core/export'), require('@angular/common'), require('ngx-device-detector'), require('@sd-angular/core/button'), require('@angular/material/slide-toggle'), require('@sd-angular/core/modal'), require('@angular/material/tooltip'), require('@angular/forms'), require('@sd-angular/core/input'), require('@sd-angular/core/utility'), require('@angular/material/icon'), require('@angular/material/menu')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@sd-angular/core/upload-excel', ['exports', '@angular/core', 'uuid', 'jquery', 'xlsx', '@sd-angular/core/notify', '@sd-angular/core/loading', '@sd-angular/core/translate', '@angular/material/paginator', 'rxjs', '@sd-angular/core/export', '@angular/common', 'ngx-device-detector', '@sd-angular/core/button', '@angular/material/slide-toggle', '@sd-angular/core/modal', '@angular/material/tooltip', '@angular/forms', '@sd-angular/core/input', '@sd-angular/core/utility', '@angular/material/icon', '@angular/material/menu'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core['upload-excel'] = {}), global.ng.core, global.uuid, global.jquery, global['ngx-device-detector'], global['sd-angular'].core.notify, global['sd-angular'].core.loading, global['sd-angular'].core.translate, global.ng.material.paginator, global.rxjs, global['sd-angular'].core.export, global.ng.common, global.ngxDeviceDetector, global['sd-angular'].core.button, global.ng.material.slideToggle, global['sd-angular'].core.modal, global.ng.material.tooltip, global.ng.forms, global['sd-angular'].core.input, global['sd-angular'].core.utility, global.ng.material.icon, global.ng.material.menu));
|
|
5
|
+
}(this, (function (exports, core, uuid, $, XLSX, notify, loading, translate, paginator, rxjs, _export, common, ngxDeviceDetector, button, slideToggle, modal, tooltip, forms, input, utility, icon, menu) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var $__default = /*#__PURE__*/_interopDefaultLegacy($);
|
|
10
|
+
var XLSX__default = /*#__PURE__*/_interopDefaultLegacy(XLSX);
|
|
11
|
+
|
|
12
|
+
// export type ExcelItem<T> = {
|
|
13
|
+
// origin?: T;
|
|
14
|
+
// excelIndex?: number;
|
|
15
|
+
// validation: SdUploadExcelValidation;
|
|
16
|
+
// } & T;
|
|
17
|
+
|
|
18
|
+
/*! *****************************************************************************
|
|
19
|
+
Copyright (c) Microsoft Corporation.
|
|
20
|
+
|
|
21
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
22
|
+
purpose with or without fee is hereby granted.
|
|
23
|
+
|
|
24
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
25
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
26
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
27
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
28
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
29
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
30
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
31
|
+
***************************************************************************** */
|
|
32
|
+
/* global Reflect, Promise */
|
|
33
|
+
var extendStatics = function (d, b) {
|
|
34
|
+
extendStatics = Object.setPrototypeOf ||
|
|
35
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
36
|
+
function (d, b) { for (var p in b)
|
|
37
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
38
|
+
d[p] = b[p]; };
|
|
39
|
+
return extendStatics(d, b);
|
|
40
|
+
};
|
|
41
|
+
function __extends(d, b) {
|
|
42
|
+
if (typeof b !== "function" && b !== null)
|
|
43
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
44
|
+
extendStatics(d, b);
|
|
45
|
+
function __() { this.constructor = d; }
|
|
46
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
+
}
|
|
48
|
+
var __assign = function () {
|
|
49
|
+
__assign = Object.assign || function __assign(t) {
|
|
50
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
51
|
+
s = arguments[i];
|
|
52
|
+
for (var p in s)
|
|
53
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
54
|
+
t[p] = s[p];
|
|
55
|
+
}
|
|
56
|
+
return t;
|
|
57
|
+
};
|
|
58
|
+
return __assign.apply(this, arguments);
|
|
59
|
+
};
|
|
60
|
+
function __rest(s, e) {
|
|
61
|
+
var t = {};
|
|
62
|
+
for (var p in s)
|
|
63
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
64
|
+
t[p] = s[p];
|
|
65
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
66
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
67
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
68
|
+
t[p[i]] = s[p[i]];
|
|
69
|
+
}
|
|
70
|
+
return t;
|
|
71
|
+
}
|
|
72
|
+
function __decorate(decorators, target, key, desc) {
|
|
73
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
74
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
75
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
76
|
+
else
|
|
77
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
78
|
+
if (d = decorators[i])
|
|
79
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
80
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
81
|
+
}
|
|
82
|
+
function __param(paramIndex, decorator) {
|
|
83
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
84
|
+
}
|
|
85
|
+
function __metadata(metadataKey, metadataValue) {
|
|
86
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
87
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
88
|
+
}
|
|
89
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
90
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
91
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
92
|
+
function fulfilled(value) { try {
|
|
93
|
+
step(generator.next(value));
|
|
94
|
+
}
|
|
95
|
+
catch (e) {
|
|
96
|
+
reject(e);
|
|
97
|
+
} }
|
|
98
|
+
function rejected(value) { try {
|
|
99
|
+
step(generator["throw"](value));
|
|
100
|
+
}
|
|
101
|
+
catch (e) {
|
|
102
|
+
reject(e);
|
|
103
|
+
} }
|
|
104
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
105
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
function __generator(thisArg, body) {
|
|
109
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
110
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
111
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
112
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
113
|
+
function step(op) {
|
|
114
|
+
if (f)
|
|
115
|
+
throw new TypeError("Generator is already executing.");
|
|
116
|
+
while (_)
|
|
117
|
+
try {
|
|
118
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
119
|
+
return t;
|
|
120
|
+
if (y = 0, t)
|
|
121
|
+
op = [op[0] & 2, t.value];
|
|
122
|
+
switch (op[0]) {
|
|
123
|
+
case 0:
|
|
124
|
+
case 1:
|
|
125
|
+
t = op;
|
|
126
|
+
break;
|
|
127
|
+
case 4:
|
|
128
|
+
_.label++;
|
|
129
|
+
return { value: op[1], done: false };
|
|
130
|
+
case 5:
|
|
131
|
+
_.label++;
|
|
132
|
+
y = op[1];
|
|
133
|
+
op = [0];
|
|
134
|
+
continue;
|
|
135
|
+
case 7:
|
|
136
|
+
op = _.ops.pop();
|
|
137
|
+
_.trys.pop();
|
|
138
|
+
continue;
|
|
139
|
+
default:
|
|
140
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
141
|
+
_ = 0;
|
|
142
|
+
continue;
|
|
143
|
+
}
|
|
144
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
145
|
+
_.label = op[1];
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
149
|
+
_.label = t[1];
|
|
150
|
+
t = op;
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
if (t && _.label < t[2]) {
|
|
154
|
+
_.label = t[2];
|
|
155
|
+
_.ops.push(op);
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
if (t[2])
|
|
159
|
+
_.ops.pop();
|
|
160
|
+
_.trys.pop();
|
|
161
|
+
continue;
|
|
162
|
+
}
|
|
163
|
+
op = body.call(thisArg, _);
|
|
164
|
+
}
|
|
165
|
+
catch (e) {
|
|
166
|
+
op = [6, e];
|
|
167
|
+
y = 0;
|
|
168
|
+
}
|
|
169
|
+
finally {
|
|
170
|
+
f = t = 0;
|
|
171
|
+
}
|
|
172
|
+
if (op[0] & 5)
|
|
173
|
+
throw op[1];
|
|
174
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
178
|
+
if (k2 === undefined)
|
|
179
|
+
k2 = k;
|
|
180
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
181
|
+
}) : (function (o, m, k, k2) {
|
|
182
|
+
if (k2 === undefined)
|
|
183
|
+
k2 = k;
|
|
184
|
+
o[k2] = m[k];
|
|
185
|
+
});
|
|
186
|
+
function __exportStar(m, o) {
|
|
187
|
+
for (var p in m)
|
|
188
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
189
|
+
__createBinding(o, m, p);
|
|
190
|
+
}
|
|
191
|
+
function __values(o) {
|
|
192
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
193
|
+
if (m)
|
|
194
|
+
return m.call(o);
|
|
195
|
+
if (o && typeof o.length === "number")
|
|
196
|
+
return {
|
|
197
|
+
next: function () {
|
|
198
|
+
if (o && i >= o.length)
|
|
199
|
+
o = void 0;
|
|
200
|
+
return { value: o && o[i++], done: !o };
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
204
|
+
}
|
|
205
|
+
function __read(o, n) {
|
|
206
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
207
|
+
if (!m)
|
|
208
|
+
return o;
|
|
209
|
+
var i = m.call(o), r, ar = [], e;
|
|
210
|
+
try {
|
|
211
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
212
|
+
ar.push(r.value);
|
|
213
|
+
}
|
|
214
|
+
catch (error) {
|
|
215
|
+
e = { error: error };
|
|
216
|
+
}
|
|
217
|
+
finally {
|
|
218
|
+
try {
|
|
219
|
+
if (r && !r.done && (m = i["return"]))
|
|
220
|
+
m.call(i);
|
|
221
|
+
}
|
|
222
|
+
finally {
|
|
223
|
+
if (e)
|
|
224
|
+
throw e.error;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
return ar;
|
|
228
|
+
}
|
|
229
|
+
/** @deprecated */
|
|
230
|
+
function __spread() {
|
|
231
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
232
|
+
ar = ar.concat(__read(arguments[i]));
|
|
233
|
+
return ar;
|
|
234
|
+
}
|
|
235
|
+
/** @deprecated */
|
|
236
|
+
function __spreadArrays() {
|
|
237
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
238
|
+
s += arguments[i].length;
|
|
239
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
240
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
241
|
+
r[k] = a[j];
|
|
242
|
+
return r;
|
|
243
|
+
}
|
|
244
|
+
function __spreadArray(to, from, pack) {
|
|
245
|
+
if (pack || arguments.length === 2)
|
|
246
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
247
|
+
if (ar || !(i in from)) {
|
|
248
|
+
if (!ar)
|
|
249
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
250
|
+
ar[i] = from[i];
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
254
|
+
}
|
|
255
|
+
function __await(v) {
|
|
256
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
257
|
+
}
|
|
258
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
259
|
+
if (!Symbol.asyncIterator)
|
|
260
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
261
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
262
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
263
|
+
function verb(n) { if (g[n])
|
|
264
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
265
|
+
function resume(n, v) { try {
|
|
266
|
+
step(g[n](v));
|
|
267
|
+
}
|
|
268
|
+
catch (e) {
|
|
269
|
+
settle(q[0][3], e);
|
|
270
|
+
} }
|
|
271
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
272
|
+
function fulfill(value) { resume("next", value); }
|
|
273
|
+
function reject(value) { resume("throw", value); }
|
|
274
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
275
|
+
resume(q[0][0], q[0][1]); }
|
|
276
|
+
}
|
|
277
|
+
function __asyncDelegator(o) {
|
|
278
|
+
var i, p;
|
|
279
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
280
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
281
|
+
}
|
|
282
|
+
function __asyncValues(o) {
|
|
283
|
+
if (!Symbol.asyncIterator)
|
|
284
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
285
|
+
var m = o[Symbol.asyncIterator], i;
|
|
286
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
287
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
288
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
289
|
+
}
|
|
290
|
+
function __makeTemplateObject(cooked, raw) {
|
|
291
|
+
if (Object.defineProperty) {
|
|
292
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
cooked.raw = raw;
|
|
296
|
+
}
|
|
297
|
+
return cooked;
|
|
298
|
+
}
|
|
299
|
+
;
|
|
300
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
301
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
302
|
+
}) : function (o, v) {
|
|
303
|
+
o["default"] = v;
|
|
304
|
+
};
|
|
305
|
+
function __importStar(mod) {
|
|
306
|
+
if (mod && mod.__esModule)
|
|
307
|
+
return mod;
|
|
308
|
+
var result = {};
|
|
309
|
+
if (mod != null)
|
|
310
|
+
for (var k in mod)
|
|
311
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
312
|
+
__createBinding(result, mod, k);
|
|
313
|
+
__setModuleDefault(result, mod);
|
|
314
|
+
return result;
|
|
315
|
+
}
|
|
316
|
+
function __importDefault(mod) {
|
|
317
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
318
|
+
}
|
|
319
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
320
|
+
if (kind === "a" && !f)
|
|
321
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
322
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
323
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
324
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
325
|
+
}
|
|
326
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
327
|
+
if (kind === "m")
|
|
328
|
+
throw new TypeError("Private method is not writable");
|
|
329
|
+
if (kind === "a" && !f)
|
|
330
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
331
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
332
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
333
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
var SdColumnHiddenPipe = /** @class */ (function () {
|
|
337
|
+
function SdColumnHiddenPipe() {
|
|
338
|
+
}
|
|
339
|
+
SdColumnHiddenPipe.prototype.transform = function (column) {
|
|
340
|
+
if (column.hidden === undefined) {
|
|
341
|
+
return true;
|
|
342
|
+
}
|
|
343
|
+
if (typeof (column.hidden) === 'boolean') {
|
|
344
|
+
return !column.hidden;
|
|
345
|
+
}
|
|
346
|
+
if (typeof (column.hidden) === 'function') {
|
|
347
|
+
return !column.hidden();
|
|
348
|
+
}
|
|
349
|
+
return false;
|
|
350
|
+
};
|
|
351
|
+
return SdColumnHiddenPipe;
|
|
352
|
+
}());
|
|
353
|
+
SdColumnHiddenPipe.decorators = [
|
|
354
|
+
{ type: core.Pipe, args: [{
|
|
355
|
+
name: 'columnHidden'
|
|
356
|
+
},] },
|
|
357
|
+
{ type: core.Injectable }
|
|
358
|
+
];
|
|
359
|
+
SdColumnHiddenPipe.ctorParameters = function () { return []; };
|
|
360
|
+
|
|
361
|
+
var _paginator, _subscription, _reset, _reload, _isError, _isWarning, _isSuccess, _parse, _mapItem, _import, _isValidDate, _isValidTime, _isValidDateTime;
|
|
362
|
+
var SdUploadExcel = /** @class */ (function () {
|
|
363
|
+
function SdUploadExcel(ref, exportService, translateService, notifyService, sdColumnHidden, loadingService) {
|
|
364
|
+
var _this = this;
|
|
365
|
+
this.ref = ref;
|
|
366
|
+
this.exportService = exportService;
|
|
367
|
+
this.translateService = translateService;
|
|
368
|
+
this.notifyService = notifyService;
|
|
369
|
+
this.sdColumnHidden = sdColumnHidden;
|
|
370
|
+
this.loadingService = loadingService;
|
|
371
|
+
this.importId = 'I' + uuid.v4();
|
|
372
|
+
this.items = [];
|
|
373
|
+
// originItems: SdExcelItem[] = [];
|
|
374
|
+
this.hasDescription = false;
|
|
375
|
+
this.showing = 'ALL';
|
|
376
|
+
this.filteredItems = [];
|
|
377
|
+
this.viewItems = [];
|
|
378
|
+
this.numberOfSuccess = 0;
|
|
379
|
+
this.numberOfError = 0;
|
|
380
|
+
this.numberOfWarning = 0;
|
|
381
|
+
_paginator.set(this, void 0);
|
|
382
|
+
_subscription.set(this, new rxjs.Subscription());
|
|
383
|
+
this.isDownloadTemplate = false;
|
|
384
|
+
this.open = function () {
|
|
385
|
+
__classPrivateFieldGet(_this, _reset).call(_this);
|
|
386
|
+
_this.modal.open();
|
|
387
|
+
};
|
|
388
|
+
this.close = function () {
|
|
389
|
+
_this.modal.close();
|
|
390
|
+
};
|
|
391
|
+
_reset.set(this, function () {
|
|
392
|
+
_this.items = [];
|
|
393
|
+
_this.filteredItems = [];
|
|
394
|
+
_this.viewItems = [];
|
|
395
|
+
_this.numberOfSuccess = 0;
|
|
396
|
+
_this.numberOfError = 0;
|
|
397
|
+
_this.numberOfWarning = 0;
|
|
398
|
+
_this.showing = 'ALL';
|
|
399
|
+
});
|
|
400
|
+
_reload.set(this, function () {
|
|
401
|
+
var pageIndex = __classPrivateFieldGet(_this, _paginator).pageIndex;
|
|
402
|
+
var pageSize = __classPrivateFieldGet(_this, _paginator).pageSize;
|
|
403
|
+
_this.filteredItems = _this.items.filter(function (item) {
|
|
404
|
+
var validation = item.sd.validation;
|
|
405
|
+
if (_this.showing === 'SUCCESS') {
|
|
406
|
+
return !(validation === null || validation === void 0 ? void 0 : validation.error) && !(validation === null || validation === void 0 ? void 0 : validation.warning);
|
|
407
|
+
}
|
|
408
|
+
else if (_this.showing === 'WARNING') {
|
|
409
|
+
return !!(validation === null || validation === void 0 ? void 0 : validation.warning) && !(validation === null || validation === void 0 ? void 0 : validation.error);
|
|
410
|
+
}
|
|
411
|
+
else if (_this.showing === 'ERROR') {
|
|
412
|
+
return !!(validation === null || validation === void 0 ? void 0 : validation.error);
|
|
413
|
+
}
|
|
414
|
+
return true;
|
|
415
|
+
});
|
|
416
|
+
_this.viewItems = _this.filteredItems
|
|
417
|
+
.filter(function (item, index) { return index >= pageIndex * pageSize && index < (pageIndex + 1) * pageSize; });
|
|
418
|
+
_this.numberOfSuccess = _this.items.filter(__classPrivateFieldGet(_this, _isSuccess)).length;
|
|
419
|
+
_this.numberOfError = _this.items.filter(__classPrivateFieldGet(_this, _isError)).length;
|
|
420
|
+
_this.numberOfWarning = _this.items.filter(__classPrivateFieldGet(_this, _isWarning)).length;
|
|
421
|
+
});
|
|
422
|
+
_isError.set(this, function (item) { return !!item.sd.validation.error; });
|
|
423
|
+
_isWarning.set(this, function (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); });
|
|
424
|
+
_isSuccess.set(this, function (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); });
|
|
425
|
+
this.upload = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
426
|
+
var _f, mappingItems, errorValidation, warningValidation, translate, _g, items, file, offset, mappedItems, _h, _j, _k, _l, idx, item, e_1_1, results, results, err_1;
|
|
427
|
+
var e_1, _m;
|
|
428
|
+
var _this = this;
|
|
429
|
+
return __generator(this, function (_o) {
|
|
430
|
+
switch (_o.label) {
|
|
431
|
+
case 0:
|
|
432
|
+
_o.trys.push([0, 17, 18, 19]);
|
|
433
|
+
_f = this.option, mappingItems = _f.mappingItems, errorValidation = _f.errorValidation, warningValidation = _f.warningValidation;
|
|
434
|
+
translate = this.translateService.translate;
|
|
435
|
+
return [4 /*yield*/, __classPrivateFieldGet(this, _import).call(this)];
|
|
436
|
+
case 1:
|
|
437
|
+
_g = _o.sent(), items = _g.items, file = _g.file;
|
|
438
|
+
this.hasDescription = this.option.columns.some(function (e) { return !!e.description; });
|
|
439
|
+
offset = this.hasDescription ? 2 : 1;
|
|
440
|
+
items.splice(0, offset);
|
|
441
|
+
if (items.length === 0) {
|
|
442
|
+
this.notifyService.notify.warning("" + translate("No data to import"));
|
|
443
|
+
return [2 /*return*/];
|
|
444
|
+
}
|
|
445
|
+
if (items.length > this.option.limit) {
|
|
446
|
+
this.notifyService.notify.warning(translate("Limit rows") + ": " + this.option.limit);
|
|
447
|
+
return [2 /*return*/];
|
|
448
|
+
}
|
|
449
|
+
__classPrivateFieldGet(this, _reset).call(this);
|
|
450
|
+
// this.originItems = items.map(data => ({
|
|
451
|
+
// data,
|
|
452
|
+
// sd: {}
|
|
453
|
+
// }));
|
|
454
|
+
this.items = items.map(function (data, idx) { return ({
|
|
455
|
+
data: data,
|
|
456
|
+
sd: {
|
|
457
|
+
excelIndex: idx + (_this.hasDescription ? 4 : 3),
|
|
458
|
+
validation: {
|
|
459
|
+
data: {}
|
|
460
|
+
},
|
|
461
|
+
origin: Object.assign({}, data)
|
|
462
|
+
}
|
|
463
|
+
}); });
|
|
464
|
+
if (!mappingItems) return [3 /*break*/, 4];
|
|
465
|
+
mappedItems = mappingItems(this.items);
|
|
466
|
+
if (!(mappedItems instanceof Promise)) return [3 /*break*/, 3];
|
|
467
|
+
this.uploading = true;
|
|
468
|
+
_h = this;
|
|
469
|
+
return [4 /*yield*/, mappedItems.finally(function () { return _this.uploading = false; })];
|
|
470
|
+
case 2:
|
|
471
|
+
_h.items = (_o.sent());
|
|
472
|
+
return [3 /*break*/, 4];
|
|
473
|
+
case 3:
|
|
474
|
+
this.items = (mappedItems || this.items);
|
|
475
|
+
_o.label = 4;
|
|
476
|
+
case 4:
|
|
477
|
+
this.file = file;
|
|
478
|
+
this.loadingService.start();
|
|
479
|
+
_o.label = 5;
|
|
480
|
+
case 5:
|
|
481
|
+
_o.trys.push([5, 10, 11, 12]);
|
|
482
|
+
_j = __values(this.items.entries()), _k = _j.next();
|
|
483
|
+
_o.label = 6;
|
|
484
|
+
case 6:
|
|
485
|
+
if (!!_k.done) return [3 /*break*/, 9];
|
|
486
|
+
_l = __read(_k.value, 2), idx = _l[0], item = _l[1];
|
|
487
|
+
return [4 /*yield*/, this.validate(item, idx)];
|
|
488
|
+
case 7:
|
|
489
|
+
_o.sent();
|
|
490
|
+
_o.label = 8;
|
|
491
|
+
case 8:
|
|
492
|
+
_k = _j.next();
|
|
493
|
+
return [3 /*break*/, 6];
|
|
494
|
+
case 9: return [3 /*break*/, 12];
|
|
495
|
+
case 10:
|
|
496
|
+
e_1_1 = _o.sent();
|
|
497
|
+
e_1 = { error: e_1_1 };
|
|
498
|
+
return [3 /*break*/, 12];
|
|
499
|
+
case 11:
|
|
500
|
+
try {
|
|
501
|
+
if (_k && !_k.done && (_m = _j.return)) _m.call(_j);
|
|
502
|
+
}
|
|
503
|
+
finally { if (e_1) throw e_1.error; }
|
|
504
|
+
return [7 /*endfinally*/];
|
|
505
|
+
case 12:
|
|
506
|
+
if (!(!this.items.some(__classPrivateFieldGet(this, _isError)) && errorValidation)) return [3 /*break*/, 14];
|
|
507
|
+
return [4 /*yield*/, errorValidation(this.items.map(function (e) { return e.data; }))];
|
|
508
|
+
case 13:
|
|
509
|
+
results = _o.sent();
|
|
510
|
+
results.forEach(function (result) { return _this.items[result.idx].sd.validation.error = result.message; });
|
|
511
|
+
_o.label = 14;
|
|
512
|
+
case 14:
|
|
513
|
+
if (!(!this.items.some(__classPrivateFieldGet(this, _isWarning)) && warningValidation)) return [3 /*break*/, 16];
|
|
514
|
+
return [4 /*yield*/, warningValidation(this.items.map(function (e) { return e.data; }))];
|
|
515
|
+
case 15:
|
|
516
|
+
results = _o.sent();
|
|
517
|
+
results.forEach(function (result) { return _this.items[result.idx].sd.validation.warning = result.message; });
|
|
518
|
+
_o.label = 16;
|
|
519
|
+
case 16:
|
|
520
|
+
__classPrivateFieldGet(this, _paginator).pageIndex = 0;
|
|
521
|
+
__classPrivateFieldGet(this, _reload).call(this);
|
|
522
|
+
this.ref.detectChanges();
|
|
523
|
+
this.isUploaded = false;
|
|
524
|
+
return [3 /*break*/, 19];
|
|
525
|
+
case 17:
|
|
526
|
+
err_1 = _o.sent();
|
|
527
|
+
this.notifyService.handle.error(err_1);
|
|
528
|
+
return [3 /*break*/, 19];
|
|
529
|
+
case 18:
|
|
530
|
+
this.loadingService.stop();
|
|
531
|
+
return [7 /*endfinally*/];
|
|
532
|
+
case 19: return [2 /*return*/];
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
}); };
|
|
536
|
+
this.validate = function (excelItem, idx) { return __awaiter(_this, void 0, void 0, function () {
|
|
537
|
+
var _a, item, validation, translate, errors, _loop_1, this_1, _f, _g, column, e_2_1;
|
|
538
|
+
var e_2, _h;
|
|
539
|
+
return __generator(this, function (_j) {
|
|
540
|
+
switch (_j.label) {
|
|
541
|
+
case 0:
|
|
542
|
+
item = excelItem.data, validation = excelItem.sd.validation;
|
|
543
|
+
translate = this.translateService.translate;
|
|
544
|
+
errors = [];
|
|
545
|
+
_loop_1 = function (column) {
|
|
546
|
+
var value, value, value, type, format, val, error, warning, ex_1;
|
|
547
|
+
return __generator(this, function (_f) {
|
|
548
|
+
switch (_f.label) {
|
|
549
|
+
case 0:
|
|
550
|
+
validation.data[column.field] = {};
|
|
551
|
+
if (!this_1.sdColumnHidden.transform(column)) {
|
|
552
|
+
return [2 /*return*/, "continue"];
|
|
553
|
+
}
|
|
554
|
+
_f.label = 1;
|
|
555
|
+
case 1:
|
|
556
|
+
_f.trys.push([1, 6, , 7]);
|
|
557
|
+
if (column.defaultValue !== undefined) {
|
|
558
|
+
item[column.field] = (_a = item[column.field]) !== null && _a !== void 0 ? _a : column.defaultValue;
|
|
559
|
+
}
|
|
560
|
+
else if (column.required && !item[column.field] && item[column.field] !== 0) {
|
|
561
|
+
validation.data[column.field].error = "" + translate('required');
|
|
562
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
563
|
+
return [2 /*return*/, "continue"];
|
|
564
|
+
}
|
|
565
|
+
if (column.type === 'string') {
|
|
566
|
+
value = (item[column.field] || '').toString();
|
|
567
|
+
if (column.minLength !== undefined && value.length < column.minLength) {
|
|
568
|
+
validation.data[column.field].error = translate('Min length') + ": " + column.minLength;
|
|
569
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
570
|
+
return [2 /*return*/, "continue"];
|
|
571
|
+
}
|
|
572
|
+
if (column.maxLength !== undefined && value.length > column.maxLength) {
|
|
573
|
+
validation.data[column.field].error = translate('Max length') + ": " + column.maxLength;
|
|
574
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
575
|
+
return [2 /*return*/, "continue"];
|
|
576
|
+
}
|
|
577
|
+
item[column.field] = value;
|
|
578
|
+
}
|
|
579
|
+
else if (column.type === 'number') {
|
|
580
|
+
if (item[column.field]) {
|
|
581
|
+
value = +item[column.field];
|
|
582
|
+
if (Number.isNaN(value)) {
|
|
583
|
+
validation.data[column.field].error = item[column.field] + " " + translate('is not a number');
|
|
584
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
585
|
+
return [2 /*return*/, "continue"];
|
|
586
|
+
}
|
|
587
|
+
item[column.field] = value;
|
|
588
|
+
}
|
|
589
|
+
if (!item[column.field] && item[column.field] !== 0) {
|
|
590
|
+
item[column.field] = undefined;
|
|
591
|
+
}
|
|
592
|
+
if (column.minValue !== undefined && item[column.field] < column.minValue) {
|
|
593
|
+
validation.data[column.field].error = item[column.field] + " " + translate('Min value') + ": " + column.minValue;
|
|
594
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
595
|
+
return [2 /*return*/, "continue"];
|
|
596
|
+
}
|
|
597
|
+
if (column.maxValue !== undefined && item[column.field] > column.maxValue) {
|
|
598
|
+
validation.data[column.field].error = item[column.field] + " " + translate('Max value') + ": " + column.maxValue;
|
|
599
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
600
|
+
return [2 /*return*/, "continue"];
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
else if (column.type === 'bool') {
|
|
604
|
+
if (item[column.field] === 0 || item[column.field] === false) {
|
|
605
|
+
item[column.field] = '0';
|
|
606
|
+
}
|
|
607
|
+
if (item[column.field] === 1 || item[column.field] === true) {
|
|
608
|
+
item[column.field] = '1';
|
|
609
|
+
}
|
|
610
|
+
if (item[column.field]) {
|
|
611
|
+
value = +item[column.field];
|
|
612
|
+
if (Number.isNaN(value) || (value !== 0 && value !== 1)) {
|
|
613
|
+
validation.data[column.field].error = "" + translate('Value shoud be 0 or 1');
|
|
614
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
615
|
+
}
|
|
616
|
+
else {
|
|
617
|
+
if (column.parseToBool) {
|
|
618
|
+
item[column.field] = item[column.field] === '1';
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
else if (column.type === 'values') {
|
|
624
|
+
if (item[column.field] && typeof (item[column.field]) !== 'number' && typeof (item[column.field]) !== 'string') {
|
|
625
|
+
validation.data[column.field].error = item[column.field] + " " + translate('Invalid data type');
|
|
626
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
627
|
+
return [2 /*return*/, "continue"];
|
|
628
|
+
}
|
|
629
|
+
if (column.checkValueInArray && item[column.field] && !column.values.some(function (e) { return e.toString() === item[column.field].toString(); })) {
|
|
630
|
+
validation.data[column.field].error = item[column.field] + " " + translate('Value not in') + " [" + column.values.join() + "]";
|
|
631
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
632
|
+
return [2 /*return*/, "continue"];
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
else if (column.type === 'date' || column.type === 'datetime' || column.type === 'time') {
|
|
636
|
+
type = column.type, format = column.format;
|
|
637
|
+
val = item[column.field];
|
|
638
|
+
if (format && item[column.field]) {
|
|
639
|
+
if (typeof (val) !== 'string') {
|
|
640
|
+
validation.data[column.field].error = translate('Invalid format') + " " + column.format + ": " + val;
|
|
641
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
642
|
+
return [2 /*return*/, "continue"];
|
|
643
|
+
}
|
|
644
|
+
if (type === 'date' && !__classPrivateFieldGet(this_1, _isValidDate).call(this_1, format, val)) {
|
|
645
|
+
validation.data[column.field].error = translate('Invalid format') + " " + column.format + ": " + val;
|
|
646
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
647
|
+
return [2 /*return*/, "continue"];
|
|
648
|
+
}
|
|
649
|
+
if (type === 'time' && !__classPrivateFieldGet(this_1, _isValidTime).call(this_1, format, val)) {
|
|
650
|
+
validation.data[column.field].error = translate('Invalid format') + " " + column.format + ": " + val;
|
|
651
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
652
|
+
return [2 /*return*/, "continue"];
|
|
653
|
+
}
|
|
654
|
+
if (type === 'datetime' && !__classPrivateFieldGet(this_1, _isValidDateTime).call(this_1, format, val)) {
|
|
655
|
+
validation.data[column.field].error = translate('Invalid format') + " " + column.format + ": " + val;
|
|
656
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
657
|
+
return [2 /*return*/, "continue"];
|
|
658
|
+
}
|
|
659
|
+
item[column.field] = Date.parseFrom(val, column.format).toFormat('MM/dd/yyyy HH:mm:ss');
|
|
660
|
+
}
|
|
661
|
+
if (item[column.field] && !Date.isDate(item[column.field])) {
|
|
662
|
+
validation.data[column.field].error = translate('Invalid date') + ": " + item[column.field];
|
|
663
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
664
|
+
return [2 /*return*/, "continue"];
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
if (!(!errors.length && column.errorValidation)) return [3 /*break*/, 3];
|
|
668
|
+
return [4 /*yield*/, column.errorValidation(item, item[column.field], idx)];
|
|
669
|
+
case 2:
|
|
670
|
+
error = _f.sent();
|
|
671
|
+
if (error) {
|
|
672
|
+
validation.data[column.field].error = "" + error;
|
|
673
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
674
|
+
}
|
|
675
|
+
_f.label = 3;
|
|
676
|
+
case 3:
|
|
677
|
+
if (!(!validation.data[column.field].warning && column.warningValidation)) return [3 /*break*/, 5];
|
|
678
|
+
return [4 /*yield*/, column.warningValidation(item, item[column.field], idx)];
|
|
679
|
+
case 4:
|
|
680
|
+
warning = _f.sent();
|
|
681
|
+
if (warning) {
|
|
682
|
+
validation.data[column.field].warning = "" + warning;
|
|
683
|
+
validation.warning += "<strong>[" + (column.title || column.field) + "]</strong> " + warning + "<br>";
|
|
684
|
+
}
|
|
685
|
+
_f.label = 5;
|
|
686
|
+
case 5: return [3 /*break*/, 7];
|
|
687
|
+
case 6:
|
|
688
|
+
ex_1 = _f.sent();
|
|
689
|
+
validation.data[column.field].error = "" + ((ex_1 === null || ex_1 === void 0 ? void 0 : ex_1.message) || (ex_1 === null || ex_1 === void 0 ? void 0 : ex_1.error) || ex_1 || 'Có lỗi xảy ra');
|
|
690
|
+
errors.push("<strong>[" + (column.title || column.field) + "]</strong> " + validation.data[column.field].error);
|
|
691
|
+
return [3 /*break*/, 7];
|
|
692
|
+
case 7: return [2 /*return*/];
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
};
|
|
696
|
+
this_1 = this;
|
|
697
|
+
_j.label = 1;
|
|
698
|
+
case 1:
|
|
699
|
+
_j.trys.push([1, 6, 7, 8]);
|
|
700
|
+
_f = __values(this.option.columns), _g = _f.next();
|
|
701
|
+
_j.label = 2;
|
|
702
|
+
case 2:
|
|
703
|
+
if (!!_g.done) return [3 /*break*/, 5];
|
|
704
|
+
column = _g.value;
|
|
705
|
+
return [5 /*yield**/, _loop_1(column)];
|
|
706
|
+
case 3:
|
|
707
|
+
_j.sent();
|
|
708
|
+
_j.label = 4;
|
|
709
|
+
case 4:
|
|
710
|
+
_g = _f.next();
|
|
711
|
+
return [3 /*break*/, 2];
|
|
712
|
+
case 5: return [3 /*break*/, 8];
|
|
713
|
+
case 6:
|
|
714
|
+
e_2_1 = _j.sent();
|
|
715
|
+
e_2 = { error: e_2_1 };
|
|
716
|
+
return [3 /*break*/, 8];
|
|
717
|
+
case 7:
|
|
718
|
+
try {
|
|
719
|
+
if (_g && !_g.done && (_h = _f.return)) _h.call(_f);
|
|
720
|
+
}
|
|
721
|
+
finally { if (e_2) throw e_2.error; }
|
|
722
|
+
return [7 /*endfinally*/];
|
|
723
|
+
case 8:
|
|
724
|
+
validation.error = errors.join('<br>');
|
|
725
|
+
return [2 /*return*/];
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
}); };
|
|
729
|
+
_parse.set(this, function (item) {
|
|
730
|
+
var data = item.data;
|
|
731
|
+
return data;
|
|
732
|
+
});
|
|
733
|
+
_mapItem.set(this, function (item) {
|
|
734
|
+
var data = item.data;
|
|
735
|
+
return data;
|
|
736
|
+
});
|
|
737
|
+
this.accept = function () {
|
|
738
|
+
var _a;
|
|
739
|
+
var successItems = _this.items.filter(__classPrivateFieldGet(_this, _isSuccess)).map(__classPrivateFieldGet(_this, _mapItem));
|
|
740
|
+
var errorItems = _this.items.filter(__classPrivateFieldGet(_this, _isError)).map(__classPrivateFieldGet(_this, _mapItem));
|
|
741
|
+
var warningItems = _this.items.filter(__classPrivateFieldGet(_this, _isWarning)).map(__classPrivateFieldGet(_this, _mapItem));
|
|
742
|
+
(_a = _this.option) === null || _a === void 0 ? void 0 : _a.onAccept(_this.items.map(__classPrivateFieldGet(_this, _mapItem)), successItems, errorItems, warningItems, _this.file);
|
|
743
|
+
_this.isUploaded = true;
|
|
744
|
+
};
|
|
745
|
+
this.setValidation = function (validates) {
|
|
746
|
+
if (Array.isArray(validates)) {
|
|
747
|
+
validates.forEach(function (validate) {
|
|
748
|
+
_this.items[validate.idx].sd.validation.error = validate.messageError;
|
|
749
|
+
_this.items[validate.idx].sd.validation.warning = validate.messageWarning;
|
|
750
|
+
_this.items[validate.idx].sd.validation.success = validate.messageSuccess;
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
__classPrivateFieldGet(_this, _reload).call(_this);
|
|
754
|
+
_this.ref.detectChanges();
|
|
755
|
+
};
|
|
756
|
+
this.view = function (showing) {
|
|
757
|
+
if (showing === void 0) { showing = 'ALL'; }
|
|
758
|
+
_this.showing = showing;
|
|
759
|
+
__classPrivateFieldGet(_this, _paginator).pageIndex = 0;
|
|
760
|
+
__classPrivateFieldGet(_this, _reload).call(_this);
|
|
761
|
+
};
|
|
762
|
+
this.downloadTemplate = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
763
|
+
var _b, sheets, _f, _g, sheet, _h, _j, _k, e_3_1, columnNotHiddens, excelTemplate;
|
|
764
|
+
var e_3, _l;
|
|
765
|
+
var _this = this;
|
|
766
|
+
return __generator(this, function (_m) {
|
|
767
|
+
switch (_m.label) {
|
|
768
|
+
case 0:
|
|
769
|
+
sheets = [];
|
|
770
|
+
if (!Array.isArray((_b = this.option) === null || _b === void 0 ? void 0 : _b.sheets)) return [3 /*break*/, 9];
|
|
771
|
+
_m.label = 1;
|
|
772
|
+
case 1:
|
|
773
|
+
_m.trys.push([1, 7, 8, 9]);
|
|
774
|
+
_f = __values(this.option.sheets), _g = _f.next();
|
|
775
|
+
_m.label = 2;
|
|
776
|
+
case 2:
|
|
777
|
+
if (!!_g.done) return [3 /*break*/, 6];
|
|
778
|
+
sheet = _g.value;
|
|
779
|
+
if (!(sheet.name && sheet.items && sheet.fields)) return [3 /*break*/, 5];
|
|
780
|
+
if (!Array.isArray(sheet.items)) return [3 /*break*/, 3];
|
|
781
|
+
sheets.push({
|
|
782
|
+
name: sheet.name,
|
|
783
|
+
items: sheet.items,
|
|
784
|
+
fields: sheet.fields
|
|
785
|
+
});
|
|
786
|
+
return [3 /*break*/, 5];
|
|
787
|
+
case 3:
|
|
788
|
+
_j = (_h = sheets).push;
|
|
789
|
+
_k = {
|
|
790
|
+
name: sheet.name
|
|
791
|
+
};
|
|
792
|
+
return [4 /*yield*/, sheet.items()];
|
|
793
|
+
case 4:
|
|
794
|
+
_j.apply(_h, [(_k.items = _m.sent(),
|
|
795
|
+
_k.fields = sheet.fields,
|
|
796
|
+
_k)]);
|
|
797
|
+
_m.label = 5;
|
|
798
|
+
case 5:
|
|
799
|
+
_g = _f.next();
|
|
800
|
+
return [3 /*break*/, 2];
|
|
801
|
+
case 6: return [3 /*break*/, 9];
|
|
802
|
+
case 7:
|
|
803
|
+
e_3_1 = _m.sent();
|
|
804
|
+
e_3 = { error: e_3_1 };
|
|
805
|
+
return [3 /*break*/, 9];
|
|
806
|
+
case 8:
|
|
807
|
+
try {
|
|
808
|
+
if (_g && !_g.done && (_l = _f.return)) _l.call(_f);
|
|
809
|
+
}
|
|
810
|
+
finally { if (e_3) throw e_3.error; }
|
|
811
|
+
return [7 /*endfinally*/];
|
|
812
|
+
case 9:
|
|
813
|
+
columnNotHiddens = this.option.columns.filter(function (column) { return _this.sdColumnHidden.transform(column); });
|
|
814
|
+
excelTemplate = {
|
|
815
|
+
fileName: this.option.fileName || 'Template',
|
|
816
|
+
columns: columnNotHiddens.map(function (column) {
|
|
817
|
+
return {
|
|
818
|
+
field: column.field,
|
|
819
|
+
title: column.title,
|
|
820
|
+
width: column.width,
|
|
821
|
+
required: column.required,
|
|
822
|
+
description: column.description,
|
|
823
|
+
fontColor: column.fontColor,
|
|
824
|
+
fill: column.fill
|
|
825
|
+
};
|
|
826
|
+
}),
|
|
827
|
+
sheets: sheets
|
|
828
|
+
};
|
|
829
|
+
this.isDownloadTemplate = true;
|
|
830
|
+
return [4 /*yield*/, this.exportService.generateTemplate(excelTemplate).finally(function () {
|
|
831
|
+
_this.isDownloadTemplate = false;
|
|
832
|
+
})];
|
|
833
|
+
case 10:
|
|
834
|
+
_m.sent();
|
|
835
|
+
return [2 /*return*/];
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
}); };
|
|
839
|
+
this.export = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
840
|
+
var columns;
|
|
841
|
+
var _this = this;
|
|
842
|
+
return __generator(this, function (_f) {
|
|
843
|
+
switch (_f.label) {
|
|
844
|
+
case 0:
|
|
845
|
+
this.loadingService.start();
|
|
846
|
+
columns = __spread([{
|
|
847
|
+
field: 'sdMessage',
|
|
848
|
+
title: this.translateService.translate('Upload message'),
|
|
849
|
+
width: '250px',
|
|
850
|
+
required: false
|
|
851
|
+
}], this.option.columns.filter(function (column) { return _this.sdColumnHidden.transform(column); }));
|
|
852
|
+
return [4 /*yield*/, this.exportService.export({
|
|
853
|
+
columns: columns,
|
|
854
|
+
items: this.filteredItems.map(function (e) {
|
|
855
|
+
var e_4, _f, _g;
|
|
856
|
+
var _a, _b, _c, _d, _e;
|
|
857
|
+
var result = {};
|
|
858
|
+
try {
|
|
859
|
+
for (var columns_1 = __values(columns), columns_1_1 = columns_1.next(); !columns_1_1.done; columns_1_1 = columns_1.next()) {
|
|
860
|
+
var column = columns_1_1.value;
|
|
861
|
+
result = Object.assign(Object.assign({}, result), (_g = {}, _g[column.field] = (_a = e.sd.origin) === null || _a === void 0 ? void 0 : _a[column.field], _g));
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
865
|
+
finally {
|
|
866
|
+
try {
|
|
867
|
+
if (columns_1_1 && !columns_1_1.done && (_f = columns_1.return)) _f.call(columns_1);
|
|
868
|
+
}
|
|
869
|
+
finally { if (e_4) throw e_4.error; }
|
|
870
|
+
}
|
|
871
|
+
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') });
|
|
872
|
+
})
|
|
873
|
+
}).finally(this.loadingService.stop)];
|
|
874
|
+
case 1:
|
|
875
|
+
_f.sent();
|
|
876
|
+
return [2 /*return*/];
|
|
877
|
+
}
|
|
878
|
+
});
|
|
879
|
+
}); };
|
|
880
|
+
_import.set(this, function () {
|
|
881
|
+
var translate = _this.translateService.translate;
|
|
882
|
+
return new Promise(function (resolve, reject) {
|
|
883
|
+
if ($__default['default']("#" + _this.importId).length) {
|
|
884
|
+
$__default['default']('body').children("#" + _this.importId).remove();
|
|
885
|
+
}
|
|
886
|
+
$__default['default']('body').append("<input id=\"" + _this.importId + "\" style=\"display: none\" type=\"file\" />");
|
|
887
|
+
$__default['default']("#" + _this.importId).on('change', function (evt) {
|
|
888
|
+
try {
|
|
889
|
+
var target_1 = evt.target;
|
|
890
|
+
if (target_1.files.length !== 1) {
|
|
891
|
+
throw new Error(translate('Cannot use multiple files'));
|
|
892
|
+
}
|
|
893
|
+
var file = target_1.files[0];
|
|
894
|
+
var lastDot = file.name.lastIndexOf('.');
|
|
895
|
+
if (lastDot === -1) {
|
|
896
|
+
throw new Error(translate('Invalid file extension'));
|
|
897
|
+
}
|
|
898
|
+
var extension = file.name.substring(lastDot + 1);
|
|
899
|
+
if (extension.toLowerCase() !== 'xlsx') {
|
|
900
|
+
throw new Error(translate('Please upload .xlsx file'));
|
|
901
|
+
}
|
|
902
|
+
var reader = new FileReader();
|
|
903
|
+
reader.onload = function (e) {
|
|
904
|
+
var bstr = e.target.result;
|
|
905
|
+
var wb = XLSX__default['default'].read(bstr, { type: 'binary' });
|
|
906
|
+
var wsname = wb.SheetNames[0];
|
|
907
|
+
var ws = wb.Sheets[wsname];
|
|
908
|
+
var lines = (XLSX__default['default'].utils.sheet_to_json(ws, { header: 1 }));
|
|
909
|
+
var records = [];
|
|
910
|
+
var headers = lines[0];
|
|
911
|
+
lines.splice(0, 1);
|
|
912
|
+
lines.forEach(function (line) {
|
|
913
|
+
var record = {};
|
|
914
|
+
var hasValue = false;
|
|
915
|
+
headers.forEach(function (header, index) {
|
|
916
|
+
record[header] = line[index];
|
|
917
|
+
if (line[index] !== undefined && line[index] !== null && line[index].toString()) {
|
|
918
|
+
hasValue = true;
|
|
919
|
+
}
|
|
920
|
+
if (typeof (record[header]) === 'string') {
|
|
921
|
+
record[header] = record[header].trim();
|
|
922
|
+
}
|
|
923
|
+
if (record[header] === '' || record[header] === undefined) {
|
|
924
|
+
record[header] = null;
|
|
925
|
+
}
|
|
926
|
+
});
|
|
927
|
+
if (hasValue) {
|
|
928
|
+
records.push(record);
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
resolve({
|
|
932
|
+
items: records,
|
|
933
|
+
file: target_1.files[0]
|
|
934
|
+
});
|
|
935
|
+
};
|
|
936
|
+
reader.readAsBinaryString(target_1.files[0]);
|
|
937
|
+
}
|
|
938
|
+
catch (error) {
|
|
939
|
+
reject(error);
|
|
940
|
+
}
|
|
941
|
+
});
|
|
942
|
+
$__default['default']("#" + _this.importId).trigger('click');
|
|
943
|
+
});
|
|
944
|
+
});
|
|
945
|
+
_isValidDate.set(this, function (format, value) {
|
|
946
|
+
if ((value === null || value === void 0 ? void 0 : value.length) !== (format === null || format === void 0 ? void 0 : format.length)) {
|
|
947
|
+
return false;
|
|
948
|
+
}
|
|
949
|
+
var 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})$/;
|
|
950
|
+
return regex.test(value);
|
|
951
|
+
});
|
|
952
|
+
_isValidTime.set(this, function (format, value) {
|
|
953
|
+
if ((value === null || value === void 0 ? void 0 : value.length) !== (format === null || format === void 0 ? void 0 : format.length)) {
|
|
954
|
+
return false;
|
|
955
|
+
}
|
|
956
|
+
return true;
|
|
957
|
+
});
|
|
958
|
+
_isValidDateTime.set(this, function (format, value) {
|
|
959
|
+
if ((value === null || value === void 0 ? void 0 : value.length) !== (format === null || format === void 0 ? void 0 : format.length)) {
|
|
960
|
+
return false;
|
|
961
|
+
}
|
|
962
|
+
var dates = value === null || value === void 0 ? void 0 : value.split(' ');
|
|
963
|
+
if (dates.length !== 2) {
|
|
964
|
+
return false;
|
|
965
|
+
}
|
|
966
|
+
var date = dates[0];
|
|
967
|
+
if (!__classPrivateFieldGet(_this, _isValidDate).call(_this, 'dd/MM/yyyy', date)) {
|
|
968
|
+
return false;
|
|
969
|
+
}
|
|
970
|
+
var time = dates[1];
|
|
971
|
+
var regex = /^(0[0-9]|1[0-9]|2[0-3])(\:)(0[0-9]|[0-5][0-9])$/;
|
|
972
|
+
return regex.test(time);
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
Object.defineProperty(SdUploadExcel.prototype, "paginator", {
|
|
976
|
+
set: function (paginator) {
|
|
977
|
+
if (paginator && __classPrivateFieldGet(this, _paginator) !== paginator) {
|
|
978
|
+
__classPrivateFieldSet(this, _paginator, paginator);
|
|
979
|
+
__classPrivateFieldGet(this, _subscription).add(paginator.page.subscribe(__classPrivateFieldGet(this, _reload)));
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
enumerable: false,
|
|
983
|
+
configurable: true
|
|
984
|
+
});
|
|
985
|
+
SdUploadExcel.prototype.ngOnInit = function () {
|
|
986
|
+
this.isUploaded = false;
|
|
987
|
+
};
|
|
988
|
+
SdUploadExcel.prototype.ngOnDestroy = function () {
|
|
989
|
+
__classPrivateFieldGet(this, _subscription).unsubscribe();
|
|
990
|
+
};
|
|
991
|
+
return SdUploadExcel;
|
|
992
|
+
}());
|
|
993
|
+
_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();
|
|
994
|
+
SdUploadExcel.decorators = [
|
|
995
|
+
{ type: core.Component, args: [{
|
|
996
|
+
selector: 'sd-upload-excel',
|
|
997
|
+
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>",
|
|
998
|
+
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}"]
|
|
999
|
+
},] }
|
|
1000
|
+
];
|
|
1001
|
+
SdUploadExcel.ctorParameters = function () { return [
|
|
1002
|
+
{ type: core.ChangeDetectorRef },
|
|
1003
|
+
{ type: _export.SdExportService },
|
|
1004
|
+
{ type: translate.SdTranslateService },
|
|
1005
|
+
{ type: notify.SdNotifyService },
|
|
1006
|
+
{ type: SdColumnHiddenPipe },
|
|
1007
|
+
{ type: loading.SdLoadingService }
|
|
1008
|
+
]; };
|
|
1009
|
+
SdUploadExcel.propDecorators = {
|
|
1010
|
+
option: [{ type: core.Input }],
|
|
1011
|
+
modal: [{ type: core.ViewChild, args: ['modal',] }],
|
|
1012
|
+
paginator: [{ type: core.ViewChild, args: [paginator.MatPaginator,] }]
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
var SdColumnTransformPipe = /** @class */ (function () {
|
|
1016
|
+
function SdColumnTransformPipe(decimalPipe) {
|
|
1017
|
+
var _this = this;
|
|
1018
|
+
this.decimalPipe = decimalPipe;
|
|
1019
|
+
this.transform = function (rowData, column) { return __awaiter(_this, void 0, void 0, function () {
|
|
1020
|
+
var _a, _b, _c, _d, _e, _f, type, transform, value;
|
|
1021
|
+
return __generator(this, function (_g) {
|
|
1022
|
+
type = column.type, transform = column.transform;
|
|
1023
|
+
value = rowData.data[column.field];
|
|
1024
|
+
if ((_a = rowData.sd.validation.data[column.field]) === null || _a === void 0 ? void 0 : _a.error) {
|
|
1025
|
+
return [2 /*return*/, (_c = (_b = rowData.sd.origin[column.field]) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : ''];
|
|
1026
|
+
}
|
|
1027
|
+
if (transform) {
|
|
1028
|
+
return [2 /*return*/, transform(rowData.data, value)];
|
|
1029
|
+
}
|
|
1030
|
+
if (column.type === 'number') {
|
|
1031
|
+
return [2 /*return*/, (_d = Number.toVNCurrency(value)) !== null && _d !== void 0 ? _d : ''];
|
|
1032
|
+
}
|
|
1033
|
+
if (column.type === 'bool') {
|
|
1034
|
+
if (value === '1' || value === true) {
|
|
1035
|
+
return [2 /*return*/, "<div class=\"text-center\"><input type=\"checkbox\" checked disabled></div>"];
|
|
1036
|
+
}
|
|
1037
|
+
else if (value === '0' || value === false) {
|
|
1038
|
+
return [2 /*return*/, "<div class=\"text-center\"><input type=\"checkbox\" disabled></div>"];
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
if (column.type === 'date') {
|
|
1042
|
+
return [2 /*return*/, (_e = Date.toFormat(value, column.format || 'dd/MM/yyyy')) !== null && _e !== void 0 ? _e : ''];
|
|
1043
|
+
}
|
|
1044
|
+
if (column.type === 'datetime') {
|
|
1045
|
+
return [2 /*return*/, (_f = Date.toFormat(value, column.format || 'dd/MM/yyyy HH:mm')) !== null && _f !== void 0 ? _f : ''];
|
|
1046
|
+
}
|
|
1047
|
+
return [2 /*return*/, value !== null && value !== void 0 ? value : ''];
|
|
1048
|
+
});
|
|
1049
|
+
}); };
|
|
1050
|
+
}
|
|
1051
|
+
return SdColumnTransformPipe;
|
|
1052
|
+
}());
|
|
1053
|
+
SdColumnTransformPipe.decorators = [
|
|
1054
|
+
{ type: core.Pipe, args: [{
|
|
1055
|
+
name: 'columnTransform'
|
|
1056
|
+
},] }
|
|
1057
|
+
];
|
|
1058
|
+
SdColumnTransformPipe.ctorParameters = function () { return [
|
|
1059
|
+
{ type: common.DecimalPipe }
|
|
1060
|
+
]; };
|
|
1061
|
+
|
|
1062
|
+
var SdUploadExcelModule = /** @class */ (function () {
|
|
1063
|
+
function SdUploadExcelModule() {
|
|
1064
|
+
}
|
|
1065
|
+
return SdUploadExcelModule;
|
|
1066
|
+
}());
|
|
1067
|
+
SdUploadExcelModule.decorators = [
|
|
1068
|
+
{ type: core.NgModule, args: [{
|
|
1069
|
+
imports: [
|
|
1070
|
+
common.CommonModule,
|
|
1071
|
+
forms.FormsModule,
|
|
1072
|
+
ngxDeviceDetector.DeviceDetectorModule.forRoot(),
|
|
1073
|
+
slideToggle.MatSlideToggleModule,
|
|
1074
|
+
tooltip.MatTooltipModule,
|
|
1075
|
+
paginator.MatPaginatorModule,
|
|
1076
|
+
slideToggle.MatSlideToggleModule,
|
|
1077
|
+
notify.SdNotifyModule,
|
|
1078
|
+
translate.SdTranslateModule,
|
|
1079
|
+
utility.SdUtilityModule,
|
|
1080
|
+
button.SdButtonModule,
|
|
1081
|
+
modal.SdModalModule,
|
|
1082
|
+
input.SdInputModule,
|
|
1083
|
+
icon.MatIconModule,
|
|
1084
|
+
menu.MatMenuModule
|
|
1085
|
+
],
|
|
1086
|
+
declarations: [
|
|
1087
|
+
SdUploadExcel,
|
|
1088
|
+
// pipe
|
|
1089
|
+
SdColumnHiddenPipe,
|
|
1090
|
+
SdColumnTransformPipe
|
|
1091
|
+
],
|
|
1092
|
+
exports: [
|
|
1093
|
+
SdUploadExcel
|
|
1094
|
+
],
|
|
1095
|
+
providers: [
|
|
1096
|
+
common.DecimalPipe,
|
|
1097
|
+
SdColumnHiddenPipe
|
|
1098
|
+
]
|
|
1099
|
+
},] }
|
|
1100
|
+
];
|
|
1101
|
+
|
|
1102
|
+
/**
|
|
1103
|
+
* Generated bundle index. Do not edit.
|
|
1104
|
+
*/
|
|
1105
|
+
|
|
1106
|
+
exports.SdUploadExcel = SdUploadExcel;
|
|
1107
|
+
exports.SdUploadExcelModule = SdUploadExcelModule;
|
|
1108
|
+
exports.ɵa = SdColumnHiddenPipe;
|
|
1109
|
+
exports.ɵb = SdColumnTransformPipe;
|
|
1110
|
+
|
|
1111
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1112
|
+
|
|
1113
|
+
})));
|
|
1114
|
+
//# sourceMappingURL=sd-angular-core-upload-excel.umd.js.map
|