@sd-angular/core 1.3.0 → 1.3.1
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 +1 -12
- package/api/sd-angular-core-api.d.ts +0 -2
- package/autocomplete/package.json +1 -12
- package/autocomplete/sd-angular-core-autocomplete.d.ts +0 -2
- package/badge/package.json +1 -12
- package/badge/sd-angular-core-badge.d.ts +0 -2
- package/bundles/sd-angular-core-api.umd.js +1 -2
- package/bundles/sd-angular-core-api.umd.js.map +1 -1
- package/bundles/sd-angular-core-autocomplete.umd.js +1 -2
- package/bundles/sd-angular-core-autocomplete.umd.js.map +1 -1
- package/bundles/sd-angular-core-badge.umd.js +1 -2
- package/bundles/sd-angular-core-badge.umd.js.map +1 -1
- package/bundles/sd-angular-core-button.umd.js +1 -2
- package/bundles/sd-angular-core-button.umd.js.map +1 -1
- package/bundles/sd-angular-core-cache.umd.js +1 -2
- package/bundles/sd-angular-core-cache.umd.js.map +1 -1
- package/bundles/sd-angular-core-chart.umd.js +1 -2
- package/bundles/sd-angular-core-chart.umd.js.map +1 -1
- package/bundles/sd-angular-core-checkbox.umd.js +1 -2
- package/bundles/sd-angular-core-checkbox.umd.js.map +1 -1
- package/bundles/sd-angular-core-chip.umd.js +1 -2
- package/bundles/sd-angular-core-chip.umd.js.map +1 -1
- package/bundles/sd-angular-core-comment.umd.js +1 -2
- package/bundles/sd-angular-core-comment.umd.js.map +1 -1
- package/bundles/sd-angular-core-common.umd.js +1 -2
- package/bundles/sd-angular-core-common.umd.js.map +1 -1
- package/bundles/sd-angular-core-confirm.umd.js +1 -2
- package/bundles/sd-angular-core-confirm.umd.js.map +1 -1
- package/bundles/sd-angular-core-date-month.umd.js +1 -2
- package/bundles/sd-angular-core-date-month.umd.js.map +1 -1
- package/bundles/sd-angular-core-date-range.umd.js +1 -2
- package/bundles/sd-angular-core-date-range.umd.js.map +1 -1
- package/bundles/sd-angular-core-date-time.umd.js +1 -2
- package/bundles/sd-angular-core-date-time.umd.js.map +1 -1
- package/bundles/sd-angular-core-db.umd.js +1 -2
- package/bundles/sd-angular-core-db.umd.js.map +1 -1
- package/bundles/sd-angular-core-dynamic-report.umd.js +1 -2
- package/bundles/sd-angular-core-dynamic-report.umd.js.map +1 -1
- package/bundles/sd-angular-core-editor.umd.js +1 -2
- package/bundles/sd-angular-core-editor.umd.js.map +1 -1
- package/bundles/sd-angular-core-excel.umd.js +1 -2
- package/bundles/sd-angular-core-excel.umd.js.map +1 -1
- package/bundles/sd-angular-core-export.umd.js +1 -2
- package/bundles/sd-angular-core-export.umd.js.map +1 -1
- package/bundles/sd-angular-core-filter.umd.js +1 -2
- package/bundles/sd-angular-core-filter.umd.js.map +1 -1
- package/bundles/sd-angular-core-form.umd.js +1 -2
- package/bundles/sd-angular-core-form.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.js +19 -17
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-grid.umd.js +1 -2
- package/bundles/sd-angular-core-grid.umd.js.map +1 -1
- package/bundles/sd-angular-core-group.umd.js +1 -2
- package/bundles/sd-angular-core-group.umd.js.map +1 -1
- package/bundles/sd-angular-core-header-title.umd.js +1 -2
- package/bundles/sd-angular-core-header-title.umd.js.map +1 -1
- package/bundles/sd-angular-core-image-preview.umd.js +1 -2
- package/bundles/sd-angular-core-image-preview.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-currency.umd.js +1 -2
- package/bundles/sd-angular-core-input-currency.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-dropdown.umd.js +1 -2
- package/bundles/sd-angular-core-input-dropdown.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-number.umd.js +1 -2
- package/bundles/sd-angular-core-input-number.umd.js.map +1 -1
- package/bundles/sd-angular-core-input-upload-file.umd.js +1 -2
- package/bundles/sd-angular-core-input-upload-file.umd.js.map +1 -1
- package/bundles/sd-angular-core-input.umd.js +1 -2
- package/bundles/sd-angular-core-input.umd.js.map +1 -1
- package/bundles/sd-angular-core-json-editor.umd.js +1 -2
- package/bundles/sd-angular-core-json-editor.umd.js.map +1 -1
- package/bundles/sd-angular-core-konva.umd.js +1 -2
- package/bundles/sd-angular-core-konva.umd.js.map +1 -1
- package/bundles/sd-angular-core-label.umd.js +1 -2
- package/bundles/sd-angular-core-label.umd.js.map +1 -1
- package/bundles/sd-angular-core-loading.umd.js +1 -2
- package/bundles/sd-angular-core-loading.umd.js.map +1 -1
- package/bundles/sd-angular-core-modal-resizable.umd.js +1 -2
- package/bundles/sd-angular-core-modal-resizable.umd.js.map +1 -1
- package/bundles/sd-angular-core-modal.umd.js +1 -2
- package/bundles/sd-angular-core-modal.umd.js.map +1 -1
- package/bundles/sd-angular-core-notify.umd.js +1 -2
- package/bundles/sd-angular-core-notify.umd.js.map +1 -1
- package/bundles/sd-angular-core-popover.umd.js +1 -2
- package/bundles/sd-angular-core-popover.umd.js.map +1 -1
- package/bundles/sd-angular-core-quick-action.umd.js +1 -2
- package/bundles/sd-angular-core-quick-action.umd.js.map +1 -1
- package/bundles/sd-angular-core-radio.umd.js +1 -2
- package/bundles/sd-angular-core-radio.umd.js.map +1 -1
- package/bundles/sd-angular-core-select-badge.umd.js +1 -2
- package/bundles/sd-angular-core-select-badge.umd.js.map +1 -1
- package/bundles/sd-angular-core-select-editor.umd.js +1 -2
- package/bundles/sd-angular-core-select-editor.umd.js.map +1 -1
- package/bundles/sd-angular-core-select.umd.js +1 -2
- package/bundles/sd-angular-core-select.umd.js.map +1 -1
- package/bundles/sd-angular-core-service.umd.js +1 -2
- package/bundles/sd-angular-core-service.umd.js.map +1 -1
- package/bundles/sd-angular-core-setting.umd.js +1 -2
- package/bundles/sd-angular-core-setting.umd.js.map +1 -1
- package/bundles/sd-angular-core-side-drawer.umd.js +1 -2
- package/bundles/sd-angular-core-side-drawer.umd.js.map +1 -1
- package/bundles/sd-angular-core-switch.umd.js +1 -2
- package/bundles/sd-angular-core-switch.umd.js.map +1 -1
- package/bundles/sd-angular-core-tab-router.umd.js +1 -2
- package/bundles/sd-angular-core-tab-router.umd.js.map +1 -1
- package/bundles/sd-angular-core-textarea.umd.js +1 -2
- package/bundles/sd-angular-core-textarea.umd.js.map +1 -1
- package/bundles/sd-angular-core-time.umd.js +1 -2
- package/bundles/sd-angular-core-time.umd.js.map +1 -1
- package/bundles/sd-angular-core-timeline.umd.js +1 -2
- package/bundles/sd-angular-core-timeline.umd.js.map +1 -1
- package/bundles/sd-angular-core-translate.umd.js +1 -2
- package/bundles/sd-angular-core-translate.umd.js.map +1 -1
- package/bundles/sd-angular-core-upload-excel.umd.js +1 -2
- package/bundles/sd-angular-core-upload-excel.umd.js.map +1 -1
- package/bundles/sd-angular-core-upload-file.umd.js +1 -2
- package/bundles/sd-angular-core-upload-file.umd.js.map +1 -1
- package/bundles/sd-angular-core-utility.umd.js +1 -2
- package/bundles/sd-angular-core-utility.umd.js.map +1 -1
- package/bundles/sd-angular-core-view.umd.js +1 -2
- package/bundles/sd-angular-core-view.umd.js.map +1 -1
- package/button/package.json +1 -12
- package/button/sd-angular-core-button.d.ts +0 -2
- package/cache/package.json +1 -12
- package/cache/sd-angular-core-cache.d.ts +0 -2
- package/chart/package.json +1 -12
- package/chart/sd-angular-core-chart.d.ts +0 -2
- package/checkbox/package.json +1 -12
- package/checkbox/sd-angular-core-checkbox.d.ts +0 -2
- package/chip/package.json +1 -12
- package/chip/sd-angular-core-chip.d.ts +0 -2
- package/comment/package.json +1 -12
- package/comment/sd-angular-core-comment.d.ts +0 -2
- package/common/package.json +1 -12
- package/common/sd-angular-core-common.d.ts +0 -2
- package/confirm/package.json +1 -12
- package/confirm/sd-angular-core-confirm.d.ts +0 -2
- package/date-month/package.json +1 -12
- package/date-month/sd-angular-core-date-month.d.ts +0 -2
- package/date-range/package.json +1 -12
- package/date-range/sd-angular-core-date-range.d.ts +0 -2
- package/date-time/package.json +1 -12
- package/date-time/sd-angular-core-date-time.d.ts +0 -2
- package/db/package.json +1 -12
- package/db/sd-angular-core-db.d.ts +0 -2
- package/dynamic-report/package.json +1 -12
- package/dynamic-report/sd-angular-core-dynamic-report.d.ts +0 -2
- package/editor/package.json +1 -12
- package/editor/sd-angular-core-editor.d.ts +0 -2
- package/esm2015/api/sd-angular-core-api.js +1 -1
- package/esm2015/autocomplete/sd-angular-core-autocomplete.js +1 -1
- package/esm2015/badge/sd-angular-core-badge.js +1 -1
- package/esm2015/button/sd-angular-core-button.js +1 -1
- package/esm2015/cache/sd-angular-core-cache.js +1 -1
- package/esm2015/chart/sd-angular-core-chart.js +1 -1
- package/esm2015/checkbox/sd-angular-core-checkbox.js +1 -1
- package/esm2015/chip/sd-angular-core-chip.js +1 -1
- package/esm2015/comment/sd-angular-core-comment.js +1 -1
- package/esm2015/common/sd-angular-core-common.js +1 -1
- package/esm2015/confirm/sd-angular-core-confirm.js +1 -1
- package/esm2015/date-month/sd-angular-core-date-month.js +1 -1
- package/esm2015/date-range/sd-angular-core-date-range.js +1 -1
- package/esm2015/date-time/sd-angular-core-date-time.js +1 -1
- package/esm2015/db/sd-angular-core-db.js +1 -1
- package/esm2015/dynamic-report/sd-angular-core-dynamic-report.js +1 -1
- package/esm2015/editor/sd-angular-core-editor.js +1 -1
- package/esm2015/excel/sd-angular-core-excel.js +1 -1
- package/esm2015/export/sd-angular-core-export.js +1 -1
- package/esm2015/filter/sd-angular-core-filter.js +1 -1
- package/esm2015/form/sd-angular-core-form.js +1 -1
- package/esm2015/grid/sd-angular-core-grid.js +1 -1
- package/esm2015/grid-material/sd-angular-core-grid-material.js +1 -1
- package/esm2015/grid-material/src/lib/grid-material.component.js +44 -40
- package/esm2015/group/sd-angular-core-group.js +1 -1
- package/esm2015/header-title/sd-angular-core-header-title.js +1 -1
- package/esm2015/image-preview/sd-angular-core-image-preview.js +1 -1
- package/esm2015/input/sd-angular-core-input.js +1 -1
- package/esm2015/input-currency/sd-angular-core-input-currency.js +1 -1
- package/esm2015/input-dropdown/sd-angular-core-input-dropdown.js +1 -1
- package/esm2015/input-number/sd-angular-core-input-number.js +1 -1
- package/esm2015/input-upload-file/sd-angular-core-input-upload-file.js +1 -1
- package/esm2015/json-editor/sd-angular-core-json-editor.js +1 -1
- package/esm2015/konva/sd-angular-core-konva.js +1 -1
- package/esm2015/label/sd-angular-core-label.js +1 -1
- package/esm2015/loading/sd-angular-core-loading.js +1 -1
- package/esm2015/modal/sd-angular-core-modal.js +1 -1
- package/esm2015/modal-resizable/sd-angular-core-modal-resizable.js +1 -1
- package/esm2015/notify/sd-angular-core-notify.js +1 -1
- package/esm2015/popover/sd-angular-core-popover.js +1 -1
- package/esm2015/quick-action/sd-angular-core-quick-action.js +1 -1
- package/esm2015/radio/sd-angular-core-radio.js +1 -1
- package/esm2015/select/sd-angular-core-select.js +1 -1
- package/esm2015/select-badge/sd-angular-core-select-badge.js +1 -1
- package/esm2015/select-editor/sd-angular-core-select-editor.js +1 -1
- package/esm2015/service/sd-angular-core-service.js +1 -1
- package/esm2015/setting/sd-angular-core-setting.js +1 -1
- package/esm2015/side-drawer/sd-angular-core-side-drawer.js +1 -1
- package/esm2015/switch/sd-angular-core-switch.js +1 -1
- package/esm2015/tab-router/sd-angular-core-tab-router.js +1 -1
- package/esm2015/textarea/sd-angular-core-textarea.js +1 -1
- package/esm2015/time/sd-angular-core-time.js +1 -1
- package/esm2015/timeline/sd-angular-core-timeline.js +1 -1
- package/esm2015/translate/sd-angular-core-translate.js +1 -1
- package/esm2015/upload-excel/sd-angular-core-upload-excel.js +1 -1
- package/esm2015/upload-file/sd-angular-core-upload-file.js +1 -1
- package/esm2015/utility/sd-angular-core-utility.js +1 -1
- package/esm2015/view/sd-angular-core-view.js +1 -1
- package/excel/package.json +1 -12
- package/excel/sd-angular-core-excel.d.ts +0 -2
- package/export/package.json +1 -12
- package/export/sd-angular-core-export.d.ts +0 -2
- package/fesm2015/sd-angular-core-api.js +1 -2
- package/fesm2015/sd-angular-core-api.js.map +1 -1
- package/fesm2015/sd-angular-core-autocomplete.js +1 -2
- package/fesm2015/sd-angular-core-autocomplete.js.map +1 -1
- package/fesm2015/sd-angular-core-badge.js +1 -2
- package/fesm2015/sd-angular-core-badge.js.map +1 -1
- package/fesm2015/sd-angular-core-button.js +1 -2
- package/fesm2015/sd-angular-core-button.js.map +1 -1
- package/fesm2015/sd-angular-core-cache.js +1 -2
- package/fesm2015/sd-angular-core-cache.js.map +1 -1
- package/fesm2015/sd-angular-core-chart.js +1 -2
- package/fesm2015/sd-angular-core-chart.js.map +1 -1
- package/fesm2015/sd-angular-core-checkbox.js +1 -2
- package/fesm2015/sd-angular-core-checkbox.js.map +1 -1
- package/fesm2015/sd-angular-core-chip.js +1 -2
- package/fesm2015/sd-angular-core-chip.js.map +1 -1
- package/fesm2015/sd-angular-core-comment.js +1 -2
- package/fesm2015/sd-angular-core-comment.js.map +1 -1
- package/fesm2015/sd-angular-core-common.js +1 -2
- package/fesm2015/sd-angular-core-common.js.map +1 -1
- package/fesm2015/sd-angular-core-confirm.js +1 -2
- package/fesm2015/sd-angular-core-confirm.js.map +1 -1
- package/fesm2015/sd-angular-core-date-month.js +1 -2
- package/fesm2015/sd-angular-core-date-month.js.map +1 -1
- package/fesm2015/sd-angular-core-date-range.js +1 -2
- package/fesm2015/sd-angular-core-date-range.js.map +1 -1
- package/fesm2015/sd-angular-core-date-time.js +1 -2
- package/fesm2015/sd-angular-core-date-time.js.map +1 -1
- package/fesm2015/sd-angular-core-db.js +1 -2
- package/fesm2015/sd-angular-core-db.js.map +1 -1
- package/fesm2015/sd-angular-core-dynamic-report.js +1 -2
- package/fesm2015/sd-angular-core-dynamic-report.js.map +1 -1
- package/fesm2015/sd-angular-core-editor.js +1 -2
- package/fesm2015/sd-angular-core-editor.js.map +1 -1
- package/fesm2015/sd-angular-core-excel.js +1 -2
- package/fesm2015/sd-angular-core-excel.js.map +1 -1
- package/fesm2015/sd-angular-core-export.js +1 -2
- package/fesm2015/sd-angular-core-export.js.map +1 -1
- package/fesm2015/sd-angular-core-filter.js +1 -2
- package/fesm2015/sd-angular-core-filter.js.map +1 -1
- package/fesm2015/sd-angular-core-form.js +1 -2
- package/fesm2015/sd-angular-core-form.js.map +1 -1
- package/fesm2015/sd-angular-core-grid-material.js +44 -41
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-grid.js +1 -2
- package/fesm2015/sd-angular-core-grid.js.map +1 -1
- package/fesm2015/sd-angular-core-group.js +1 -2
- package/fesm2015/sd-angular-core-group.js.map +1 -1
- package/fesm2015/sd-angular-core-header-title.js +1 -2
- package/fesm2015/sd-angular-core-header-title.js.map +1 -1
- package/fesm2015/sd-angular-core-image-preview.js +1 -2
- package/fesm2015/sd-angular-core-image-preview.js.map +1 -1
- package/fesm2015/sd-angular-core-input-currency.js +1 -2
- package/fesm2015/sd-angular-core-input-currency.js.map +1 -1
- package/fesm2015/sd-angular-core-input-dropdown.js +1 -2
- package/fesm2015/sd-angular-core-input-dropdown.js.map +1 -1
- package/fesm2015/sd-angular-core-input-number.js +1 -2
- package/fesm2015/sd-angular-core-input-number.js.map +1 -1
- package/fesm2015/sd-angular-core-input-upload-file.js +1 -2
- package/fesm2015/sd-angular-core-input-upload-file.js.map +1 -1
- package/fesm2015/sd-angular-core-input.js +1 -2
- package/fesm2015/sd-angular-core-input.js.map +1 -1
- package/fesm2015/sd-angular-core-json-editor.js +1 -2
- package/fesm2015/sd-angular-core-json-editor.js.map +1 -1
- package/fesm2015/sd-angular-core-konva.js +1 -2
- package/fesm2015/sd-angular-core-konva.js.map +1 -1
- package/fesm2015/sd-angular-core-label.js +1 -2
- package/fesm2015/sd-angular-core-label.js.map +1 -1
- package/fesm2015/sd-angular-core-loading.js +1 -2
- package/fesm2015/sd-angular-core-loading.js.map +1 -1
- package/fesm2015/sd-angular-core-modal-resizable.js +1 -2
- package/fesm2015/sd-angular-core-modal-resizable.js.map +1 -1
- package/fesm2015/sd-angular-core-modal.js +1 -2
- package/fesm2015/sd-angular-core-modal.js.map +1 -1
- package/fesm2015/sd-angular-core-notify.js +1 -2
- package/fesm2015/sd-angular-core-notify.js.map +1 -1
- package/fesm2015/sd-angular-core-popover.js +1 -2
- package/fesm2015/sd-angular-core-popover.js.map +1 -1
- package/fesm2015/sd-angular-core-quick-action.js +1 -2
- package/fesm2015/sd-angular-core-quick-action.js.map +1 -1
- package/fesm2015/sd-angular-core-radio.js +1 -2
- package/fesm2015/sd-angular-core-radio.js.map +1 -1
- package/fesm2015/sd-angular-core-select-badge.js +1 -2
- package/fesm2015/sd-angular-core-select-badge.js.map +1 -1
- package/fesm2015/sd-angular-core-select-editor.js +1 -2
- package/fesm2015/sd-angular-core-select-editor.js.map +1 -1
- package/fesm2015/sd-angular-core-select.js +1 -2
- package/fesm2015/sd-angular-core-select.js.map +1 -1
- package/fesm2015/sd-angular-core-service.js +1 -2
- package/fesm2015/sd-angular-core-service.js.map +1 -1
- package/fesm2015/sd-angular-core-setting.js +1 -2
- package/fesm2015/sd-angular-core-setting.js.map +1 -1
- package/fesm2015/sd-angular-core-side-drawer.js +1 -2
- package/fesm2015/sd-angular-core-side-drawer.js.map +1 -1
- package/fesm2015/sd-angular-core-switch.js +1 -2
- package/fesm2015/sd-angular-core-switch.js.map +1 -1
- package/fesm2015/sd-angular-core-tab-router.js +1 -2
- package/fesm2015/sd-angular-core-tab-router.js.map +1 -1
- package/fesm2015/sd-angular-core-textarea.js +1 -2
- package/fesm2015/sd-angular-core-textarea.js.map +1 -1
- package/fesm2015/sd-angular-core-time.js +1 -2
- package/fesm2015/sd-angular-core-time.js.map +1 -1
- package/fesm2015/sd-angular-core-timeline.js +1 -2
- package/fesm2015/sd-angular-core-timeline.js.map +1 -1
- package/fesm2015/sd-angular-core-translate.js +1 -2
- package/fesm2015/sd-angular-core-translate.js.map +1 -1
- package/fesm2015/sd-angular-core-upload-excel.js +1 -2
- package/fesm2015/sd-angular-core-upload-excel.js.map +1 -1
- package/fesm2015/sd-angular-core-upload-file.js +1 -2
- package/fesm2015/sd-angular-core-upload-file.js.map +1 -1
- package/fesm2015/sd-angular-core-utility.js +1 -2
- package/fesm2015/sd-angular-core-utility.js.map +1 -1
- package/fesm2015/sd-angular-core-view.js +1 -2
- package/fesm2015/sd-angular-core-view.js.map +1 -1
- package/filter/package.json +1 -12
- package/filter/sd-angular-core-filter.d.ts +0 -2
- package/form/package.json +1 -12
- package/form/sd-angular-core-form.d.ts +0 -2
- package/grid/package.json +1 -12
- package/grid/sd-angular-core-grid.d.ts +0 -2
- package/grid-material/package.json +1 -12
- package/grid-material/sd-angular-core-grid-material.d.ts +0 -2
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/group/package.json +1 -12
- package/group/sd-angular-core-group.d.ts +0 -2
- package/header-title/package.json +1 -12
- package/header-title/sd-angular-core-header-title.d.ts +0 -2
- package/image-preview/package.json +1 -12
- package/image-preview/sd-angular-core-image-preview.d.ts +0 -2
- package/input/package.json +1 -12
- package/input/sd-angular-core-input.d.ts +0 -2
- package/input-currency/package.json +1 -12
- package/input-currency/sd-angular-core-input-currency.d.ts +0 -2
- package/input-dropdown/package.json +1 -12
- package/input-dropdown/sd-angular-core-input-dropdown.d.ts +0 -2
- package/input-number/package.json +1 -12
- package/input-number/sd-angular-core-input-number.d.ts +0 -2
- package/input-upload-file/package.json +1 -12
- package/input-upload-file/sd-angular-core-input-upload-file.d.ts +0 -2
- package/json-editor/package.json +1 -12
- package/json-editor/sd-angular-core-json-editor.d.ts +0 -2
- package/konva/package.json +1 -12
- package/konva/sd-angular-core-konva.d.ts +0 -2
- package/label/package.json +1 -12
- package/label/sd-angular-core-label.d.ts +0 -2
- package/loading/package.json +1 -12
- package/loading/sd-angular-core-loading.d.ts +0 -2
- package/modal/package.json +1 -12
- package/modal/sd-angular-core-modal.d.ts +0 -2
- package/modal-resizable/package.json +1 -12
- package/modal-resizable/sd-angular-core-modal-resizable.d.ts +0 -2
- package/notify/package.json +1 -12
- package/notify/sd-angular-core-notify.d.ts +0 -2
- package/package.json +1 -1
- package/popover/package.json +1 -12
- package/popover/sd-angular-core-popover.d.ts +0 -2
- package/quick-action/package.json +1 -12
- package/quick-action/sd-angular-core-quick-action.d.ts +0 -2
- package/radio/package.json +1 -12
- package/radio/sd-angular-core-radio.d.ts +0 -2
- package/sd-angular-core-1.3.1.tgz +0 -0
- package/select/package.json +1 -12
- package/select/sd-angular-core-select.d.ts +0 -2
- package/select-badge/package.json +1 -12
- package/select-badge/sd-angular-core-select-badge.d.ts +0 -2
- package/select-editor/package.json +1 -12
- package/select-editor/sd-angular-core-select-editor.d.ts +0 -2
- package/service/package.json +1 -12
- package/service/sd-angular-core-service.d.ts +0 -2
- package/setting/package.json +1 -12
- package/setting/sd-angular-core-setting.d.ts +0 -2
- package/side-drawer/package.json +1 -12
- package/side-drawer/sd-angular-core-side-drawer.d.ts +0 -2
- package/switch/package.json +1 -12
- package/switch/sd-angular-core-switch.d.ts +0 -2
- package/tab-router/package.json +1 -12
- package/tab-router/sd-angular-core-tab-router.d.ts +0 -2
- package/textarea/package.json +1 -12
- package/textarea/sd-angular-core-textarea.d.ts +0 -2
- package/time/package.json +1 -12
- package/time/sd-angular-core-time.d.ts +0 -2
- package/timeline/package.json +1 -12
- package/timeline/sd-angular-core-timeline.d.ts +0 -2
- package/translate/package.json +1 -12
- package/translate/sd-angular-core-translate.d.ts +0 -2
- package/upload-excel/package.json +1 -12
- package/upload-excel/sd-angular-core-upload-excel.d.ts +0 -2
- package/upload-file/package.json +1 -12
- package/upload-file/sd-angular-core-upload-file.d.ts +0 -2
- package/utility/package.json +1 -12
- package/utility/sd-angular-core-utility.d.ts +0 -2
- package/view/package.json +1 -12
- package/view/sd-angular-core-view.d.ts +0 -2
- package/api/sd-angular-core-api.d.ts.__ivy_ngcc_bak +0 -4
- package/api/sd-angular-core-api.d.ts.map +0 -1
- package/autocomplete/sd-angular-core-autocomplete.d.ts.__ivy_ngcc_bak +0 -4
- package/autocomplete/sd-angular-core-autocomplete.d.ts.map +0 -1
- package/badge/sd-angular-core-badge.d.ts.__ivy_ngcc_bak +0 -4
- package/badge/sd-angular-core-badge.d.ts.map +0 -1
- package/bundles/sd-angular-core-api.umd.js.__ivy_ngcc_bak +0 -876
- package/bundles/sd-angular-core-api.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-autocomplete.umd.js.__ivy_ngcc_bak +0 -791
- package/bundles/sd-angular-core-autocomplete.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-badge.umd.js.__ivy_ngcc_bak +0 -89
- package/bundles/sd-angular-core-badge.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-button.umd.js.__ivy_ngcc_bak +0 -447
- package/bundles/sd-angular-core-button.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-cache.umd.js.__ivy_ngcc_bak +0 -623
- package/bundles/sd-angular-core-cache.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-chart.umd.js.__ivy_ngcc_bak +0 -1106
- package/bundles/sd-angular-core-chart.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-checkbox.umd.js.__ivy_ngcc_bak +0 -461
- package/bundles/sd-angular-core-checkbox.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-chip.umd.js.__ivy_ngcc_bak +0 -1051
- package/bundles/sd-angular-core-chip.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-comment.umd.js.__ivy_ngcc_bak +0 -456
- package/bundles/sd-angular-core-comment.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-common.umd.js.__ivy_ngcc_bak +0 -962
- package/bundles/sd-angular-core-common.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-confirm.umd.js.__ivy_ngcc_bak +0 -159
- package/bundles/sd-angular-core-confirm.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-date-month.umd.js.__ivy_ngcc_bak +0 -650
- package/bundles/sd-angular-core-date-month.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-date-range.umd.js.__ivy_ngcc_bak +0 -660
- package/bundles/sd-angular-core-date-range.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-date-time.umd.js.__ivy_ngcc_bak +0 -734
- package/bundles/sd-angular-core-date-time.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-db.umd.js.__ivy_ngcc_bak +0 -475
- package/bundles/sd-angular-core-db.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-dynamic-report.umd.js.__ivy_ngcc_bak +0 -96
- package/bundles/sd-angular-core-dynamic-report.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-editor.umd.js.__ivy_ngcc_bak +0 -943
- package/bundles/sd-angular-core-editor.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-excel.umd.js.__ivy_ngcc_bak +0 -500
- package/bundles/sd-angular-core-excel.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-export.umd.js.__ivy_ngcc_bak +0 -712
- package/bundles/sd-angular-core-export.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-filter.umd.js.__ivy_ngcc_bak +0 -703
- package/bundles/sd-angular-core-filter.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-form.umd.js.__ivy_ngcc_bak +0 -88
- package/bundles/sd-angular-core-form.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-grid-material.umd.js.__ivy_ngcc_bak +0 -5029
- package/bundles/sd-angular-core-grid-material.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-grid.umd.js.__ivy_ngcc_bak +0 -5125
- package/bundles/sd-angular-core-grid.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-group.umd.js.__ivy_ngcc_bak +0 -93
- package/bundles/sd-angular-core-group.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-header-title.umd.js.__ivy_ngcc_bak +0 -56
- package/bundles/sd-angular-core-header-title.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-image-preview.umd.js.__ivy_ngcc_bak +0 -121
- package/bundles/sd-angular-core-image-preview.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-input-currency.umd.js.__ivy_ngcc_bak +0 -737
- package/bundles/sd-angular-core-input-currency.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-input-dropdown.umd.js.__ivy_ngcc_bak +0 -634
- package/bundles/sd-angular-core-input-dropdown.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-input-number.umd.js.__ivy_ngcc_bak +0 -792
- package/bundles/sd-angular-core-input-number.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-input-upload-file.umd.js.__ivy_ngcc_bak +0 -648
- package/bundles/sd-angular-core-input-upload-file.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-input.umd.js.__ivy_ngcc_bak +0 -798
- package/bundles/sd-angular-core-input.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-json-editor.umd.js.__ivy_ngcc_bak +0 -523
- package/bundles/sd-angular-core-json-editor.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-konva.umd.js.__ivy_ngcc_bak +0 -605
- package/bundles/sd-angular-core-konva.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-label.umd.js.__ivy_ngcc_bak +0 -60
- package/bundles/sd-angular-core-label.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-loading.umd.js.__ivy_ngcc_bak +0 -413
- package/bundles/sd-angular-core-loading.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-modal-resizable.umd.js.__ivy_ngcc_bak +0 -487
- package/bundles/sd-angular-core-modal-resizable.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-modal.umd.js.__ivy_ngcc_bak +0 -307
- package/bundles/sd-angular-core-modal.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-notify.umd.js.__ivy_ngcc_bak +0 -719
- package/bundles/sd-angular-core-notify.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-popover.umd.js.__ivy_ngcc_bak +0 -752
- package/bundles/sd-angular-core-popover.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-quick-action.umd.js.__ivy_ngcc_bak +0 -66
- package/bundles/sd-angular-core-quick-action.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-radio.umd.js.__ivy_ngcc_bak +0 -535
- package/bundles/sd-angular-core-radio.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-select-badge.umd.js.__ivy_ngcc_bak +0 -486
- package/bundles/sd-angular-core-select-badge.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-select-editor.umd.js.__ivy_ngcc_bak +0 -431
- package/bundles/sd-angular-core-select-editor.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-select.umd.js.__ivy_ngcc_bak +0 -921
- package/bundles/sd-angular-core-select.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-service.umd.js.__ivy_ngcc_bak +0 -42
- package/bundles/sd-angular-core-service.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-setting.umd.js.__ivy_ngcc_bak +0 -664
- package/bundles/sd-angular-core-setting.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-side-drawer.umd.js.__ivy_ngcc_bak +0 -438
- package/bundles/sd-angular-core-side-drawer.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-switch.umd.js.__ivy_ngcc_bak +0 -454
- package/bundles/sd-angular-core-switch.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-tab-router.umd.js.__ivy_ngcc_bak +0 -941
- package/bundles/sd-angular-core-tab-router.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-textarea.umd.js.__ivy_ngcc_bak +0 -642
- package/bundles/sd-angular-core-textarea.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-time.umd.js.__ivy_ngcc_bak +0 -497
- package/bundles/sd-angular-core-time.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-timeline.umd.js.__ivy_ngcc_bak +0 -102
- package/bundles/sd-angular-core-timeline.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-translate.umd.js.__ivy_ngcc_bak +0 -119
- package/bundles/sd-angular-core-translate.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-upload-excel.umd.js.__ivy_ngcc_bak +0 -1114
- package/bundles/sd-angular-core-upload-excel.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-upload-file.umd.js.__ivy_ngcc_bak +0 -880
- package/bundles/sd-angular-core-upload-file.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-utility.umd.js.__ivy_ngcc_bak +0 -739
- package/bundles/sd-angular-core-utility.umd.js.map.__ivy_ngcc_bak +0 -1
- package/bundles/sd-angular-core-view.umd.js.__ivy_ngcc_bak +0 -32
- package/bundles/sd-angular-core-view.umd.js.map.__ivy_ngcc_bak +0 -1
- package/button/sd-angular-core-button.d.ts.__ivy_ngcc_bak +0 -4
- package/button/sd-angular-core-button.d.ts.map +0 -1
- package/cache/sd-angular-core-cache.d.ts.__ivy_ngcc_bak +0 -4
- package/cache/sd-angular-core-cache.d.ts.map +0 -1
- package/chart/sd-angular-core-chart.d.ts.__ivy_ngcc_bak +0 -4
- package/chart/sd-angular-core-chart.d.ts.map +0 -1
- package/checkbox/sd-angular-core-checkbox.d.ts.__ivy_ngcc_bak +0 -5
- package/checkbox/sd-angular-core-checkbox.d.ts.map +0 -1
- package/chip/sd-angular-core-chip.d.ts.__ivy_ngcc_bak +0 -5
- package/chip/sd-angular-core-chip.d.ts.map +0 -1
- package/comment/sd-angular-core-comment.d.ts.__ivy_ngcc_bak +0 -4
- package/comment/sd-angular-core-comment.d.ts.map +0 -1
- package/common/sd-angular-core-common.d.ts.__ivy_ngcc_bak +0 -4
- package/common/sd-angular-core-common.d.ts.map +0 -1
- package/confirm/sd-angular-core-confirm.d.ts.__ivy_ngcc_bak +0 -4
- package/confirm/sd-angular-core-confirm.d.ts.map +0 -1
- package/date-month/sd-angular-core-date-month.d.ts.__ivy_ngcc_bak +0 -5
- package/date-month/sd-angular-core-date-month.d.ts.map +0 -1
- package/date-range/sd-angular-core-date-range.d.ts.__ivy_ngcc_bak +0 -4
- package/date-range/sd-angular-core-date-range.d.ts.map +0 -1
- package/date-time/sd-angular-core-date-time.d.ts.__ivy_ngcc_bak +0 -4
- package/date-time/sd-angular-core-date-time.d.ts.map +0 -1
- package/db/sd-angular-core-db.d.ts.__ivy_ngcc_bak +0 -4
- package/db/sd-angular-core-db.d.ts.map +0 -1
- package/dynamic-report/sd-angular-core-dynamic-report.d.ts.__ivy_ngcc_bak +0 -4
- package/dynamic-report/sd-angular-core-dynamic-report.d.ts.map +0 -1
- package/editor/sd-angular-core-editor.d.ts.__ivy_ngcc_bak +0 -4
- package/editor/sd-angular-core-editor.d.ts.map +0 -1
- package/esm2015/api/sd-angular-core-api.js.__ivy_ngcc_bak +0 -5
- package/esm2015/autocomplete/sd-angular-core-autocomplete.js.__ivy_ngcc_bak +0 -5
- package/esm2015/badge/sd-angular-core-badge.js.__ivy_ngcc_bak +0 -5
- package/esm2015/button/sd-angular-core-button.js.__ivy_ngcc_bak +0 -5
- package/esm2015/cache/sd-angular-core-cache.js.__ivy_ngcc_bak +0 -5
- package/esm2015/chart/sd-angular-core-chart.js.__ivy_ngcc_bak +0 -5
- package/esm2015/checkbox/sd-angular-core-checkbox.js.__ivy_ngcc_bak +0 -6
- package/esm2015/chip/sd-angular-core-chip.js.__ivy_ngcc_bak +0 -6
- package/esm2015/comment/sd-angular-core-comment.js.__ivy_ngcc_bak +0 -5
- package/esm2015/common/sd-angular-core-common.js.__ivy_ngcc_bak +0 -5
- package/esm2015/confirm/sd-angular-core-confirm.js.__ivy_ngcc_bak +0 -5
- package/esm2015/date-month/sd-angular-core-date-month.js.__ivy_ngcc_bak +0 -6
- package/esm2015/date-range/sd-angular-core-date-range.js.__ivy_ngcc_bak +0 -5
- package/esm2015/date-time/sd-angular-core-date-time.js.__ivy_ngcc_bak +0 -5
- package/esm2015/db/sd-angular-core-db.js.__ivy_ngcc_bak +0 -5
- package/esm2015/dynamic-report/sd-angular-core-dynamic-report.js.__ivy_ngcc_bak +0 -5
- package/esm2015/editor/sd-angular-core-editor.js.__ivy_ngcc_bak +0 -5
- package/esm2015/excel/sd-angular-core-excel.js.__ivy_ngcc_bak +0 -5
- package/esm2015/export/sd-angular-core-export.js.__ivy_ngcc_bak +0 -5
- package/esm2015/filter/sd-angular-core-filter.js.__ivy_ngcc_bak +0 -8
- package/esm2015/form/sd-angular-core-form.js.__ivy_ngcc_bak +0 -5
- package/esm2015/grid/sd-angular-core-grid.js.__ivy_ngcc_bak +0 -5
- package/esm2015/grid-material/sd-angular-core-grid-material.js.__ivy_ngcc_bak +0 -47
- package/esm2015/group/sd-angular-core-group.js.__ivy_ngcc_bak +0 -6
- package/esm2015/header-title/sd-angular-core-header-title.js.__ivy_ngcc_bak +0 -6
- package/esm2015/image-preview/sd-angular-core-image-preview.js.__ivy_ngcc_bak +0 -7
- package/esm2015/input/sd-angular-core-input.js.__ivy_ngcc_bak +0 -6
- package/esm2015/input-currency/sd-angular-core-input-currency.js.__ivy_ngcc_bak +0 -5
- package/esm2015/input-dropdown/sd-angular-core-input-dropdown.js.__ivy_ngcc_bak +0 -5
- package/esm2015/input-number/sd-angular-core-input-number.js.__ivy_ngcc_bak +0 -5
- package/esm2015/input-upload-file/sd-angular-core-input-upload-file.js.__ivy_ngcc_bak +0 -5
- package/esm2015/json-editor/sd-angular-core-json-editor.js.__ivy_ngcc_bak +0 -5
- package/esm2015/konva/sd-angular-core-konva.js.__ivy_ngcc_bak +0 -5
- package/esm2015/label/sd-angular-core-label.js.__ivy_ngcc_bak +0 -6
- package/esm2015/loading/sd-angular-core-loading.js.__ivy_ngcc_bak +0 -5
- package/esm2015/modal/sd-angular-core-modal.js.__ivy_ngcc_bak +0 -5
- package/esm2015/modal-resizable/sd-angular-core-modal-resizable.js.__ivy_ngcc_bak +0 -5
- package/esm2015/notify/sd-angular-core-notify.js.__ivy_ngcc_bak +0 -5
- package/esm2015/popover/sd-angular-core-popover.js.__ivy_ngcc_bak +0 -5
- package/esm2015/quick-action/sd-angular-core-quick-action.js.__ivy_ngcc_bak +0 -5
- package/esm2015/radio/sd-angular-core-radio.js.__ivy_ngcc_bak +0 -5
- package/esm2015/select/sd-angular-core-select.js.__ivy_ngcc_bak +0 -5
- package/esm2015/select-badge/sd-angular-core-select-badge.js.__ivy_ngcc_bak +0 -5
- package/esm2015/select-editor/sd-angular-core-select-editor.js.__ivy_ngcc_bak +0 -5
- package/esm2015/service/sd-angular-core-service.js.__ivy_ngcc_bak +0 -5
- package/esm2015/setting/sd-angular-core-setting.js.__ivy_ngcc_bak +0 -5
- package/esm2015/side-drawer/sd-angular-core-side-drawer.js.__ivy_ngcc_bak +0 -5
- package/esm2015/switch/sd-angular-core-switch.js.__ivy_ngcc_bak +0 -5
- package/esm2015/tab-router/sd-angular-core-tab-router.js.__ivy_ngcc_bak +0 -7
- package/esm2015/textarea/sd-angular-core-textarea.js.__ivy_ngcc_bak +0 -5
- package/esm2015/time/sd-angular-core-time.js.__ivy_ngcc_bak +0 -6
- package/esm2015/timeline/sd-angular-core-timeline.js.__ivy_ngcc_bak +0 -6
- package/esm2015/translate/sd-angular-core-translate.js.__ivy_ngcc_bak +0 -5
- package/esm2015/upload-excel/sd-angular-core-upload-excel.js.__ivy_ngcc_bak +0 -7
- package/esm2015/upload-file/sd-angular-core-upload-file.js.__ivy_ngcc_bak +0 -5
- package/esm2015/utility/sd-angular-core-utility.js.__ivy_ngcc_bak +0 -5
- package/esm2015/view/sd-angular-core-view.js.__ivy_ngcc_bak +0 -5
- package/excel/sd-angular-core-excel.d.ts.__ivy_ngcc_bak +0 -4
- package/excel/sd-angular-core-excel.d.ts.map +0 -1
- package/export/sd-angular-core-export.d.ts.__ivy_ngcc_bak +0 -4
- package/export/sd-angular-core-export.d.ts.map +0 -1
- package/fesm2015/sd-angular-core-api.js.__ivy_ngcc_bak +0 -496
- package/fesm2015/sd-angular-core-api.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-autocomplete.js.__ivy_ngcc_bak +0 -427
- package/fesm2015/sd-angular-core-autocomplete.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-badge.js.__ivy_ngcc_bak +0 -70
- package/fesm2015/sd-angular-core-badge.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-button.js.__ivy_ngcc_bak +0 -118
- package/fesm2015/sd-angular-core-button.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-cache.js.__ivy_ngcc_bak +0 -259
- package/fesm2015/sd-angular-core-cache.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-chart.js.__ivy_ngcc_bak +0 -727
- package/fesm2015/sd-angular-core-chart.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-checkbox.js.__ivy_ngcc_bak +0 -120
- package/fesm2015/sd-angular-core-checkbox.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-chip.js.__ivy_ngcc_bak +0 -632
- package/fesm2015/sd-angular-core-chip.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-comment.js.__ivy_ngcc_bak +0 -118
- package/fesm2015/sd-angular-core-comment.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-common.js.__ivy_ngcc_bak +0 -562
- package/fesm2015/sd-angular-core-common.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-confirm.js.__ivy_ngcc_bak +0 -154
- package/fesm2015/sd-angular-core-confirm.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-date-month.js.__ivy_ngcc_bak +0 -289
- package/fesm2015/sd-angular-core-date-month.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-date-range.js.__ivy_ngcc_bak +0 -297
- package/fesm2015/sd-angular-core-date-range.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-date-time.js.__ivy_ngcc_bak +0 -367
- package/fesm2015/sd-angular-core-date-time.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-db.js.__ivy_ngcc_bak +0 -102
- package/fesm2015/sd-angular-core-db.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-dynamic-report.js.__ivy_ngcc_bak +0 -82
- package/fesm2015/sd-angular-core-dynamic-report.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-editor.js.__ivy_ngcc_bak +0 -576
- package/fesm2015/sd-angular-core-editor.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-excel.js.__ivy_ngcc_bak +0 -100
- package/fesm2015/sd-angular-core-excel.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-export.js.__ivy_ngcc_bak +0 -272
- package/fesm2015/sd-angular-core-export.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-filter.js.__ivy_ngcc_bak +0 -323
- package/fesm2015/sd-angular-core-filter.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-form.js.__ivy_ngcc_bak +0 -104
- package/fesm2015/sd-angular-core-form.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-grid-material.js.__ivy_ngcc_bak +0 -3740
- package/fesm2015/sd-angular-core-grid-material.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-grid.js.__ivy_ngcc_bak +0 -3935
- package/fesm2015/sd-angular-core-grid.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-group.js.__ivy_ngcc_bak +0 -74
- package/fesm2015/sd-angular-core-group.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-header-title.js.__ivy_ngcc_bak +0 -45
- package/fesm2015/sd-angular-core-header-title.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-image-preview.js.__ivy_ngcc_bak +0 -107
- package/fesm2015/sd-angular-core-image-preview.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-input-currency.js.__ivy_ngcc_bak +0 -330
- package/fesm2015/sd-angular-core-input-currency.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-input-dropdown.js.__ivy_ngcc_bak +0 -268
- package/fesm2015/sd-angular-core-input-dropdown.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-input-number.js.__ivy_ngcc_bak +0 -415
- package/fesm2015/sd-angular-core-input-number.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-input-upload-file.js.__ivy_ngcc_bak +0 -274
- package/fesm2015/sd-angular-core-input-upload-file.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-input.js.__ivy_ngcc_bak +0 -398
- package/fesm2015/sd-angular-core-input.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-json-editor.js.__ivy_ngcc_bak +0 -180
- package/fesm2015/sd-angular-core-json-editor.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-konva.js.__ivy_ngcc_bak +0 -237
- package/fesm2015/sd-angular-core-konva.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-label.js.__ivy_ngcc_bak +0 -49
- package/fesm2015/sd-angular-core-label.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-loading.js.__ivy_ngcc_bak +0 -83
- package/fesm2015/sd-angular-core-loading.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-modal-resizable.js.__ivy_ngcc_bak +0 -161
- package/fesm2015/sd-angular-core-modal-resizable.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-modal.js.__ivy_ngcc_bak +0 -284
- package/fesm2015/sd-angular-core-modal.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-notify.js.__ivy_ngcc_bak +0 -402
- package/fesm2015/sd-angular-core-notify.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-popover.js.__ivy_ngcc_bak +0 -415
- package/fesm2015/sd-angular-core-popover.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-quick-action.js.__ivy_ngcc_bak +0 -53
- package/fesm2015/sd-angular-core-quick-action.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-radio.js.__ivy_ngcc_bak +0 -188
- package/fesm2015/sd-angular-core-radio.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-select-badge.js.__ivy_ngcc_bak +0 -156
- package/fesm2015/sd-angular-core-select-badge.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-select-editor.js.__ivy_ngcc_bak +0 -110
- package/fesm2015/sd-angular-core-select-editor.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-select.js.__ivy_ngcc_bak +0 -487
- package/fesm2015/sd-angular-core-select.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-service.js.__ivy_ngcc_bak +0 -36
- package/fesm2015/sd-angular-core-service.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-setting.js.__ivy_ngcc_bak +0 -290
- package/fesm2015/sd-angular-core-setting.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-side-drawer.js.__ivy_ngcc_bak +0 -115
- package/fesm2015/sd-angular-core-side-drawer.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-switch.js.__ivy_ngcc_bak +0 -116
- package/fesm2015/sd-angular-core-switch.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-tab-router.js.__ivy_ngcc_bak +0 -531
- package/fesm2015/sd-angular-core-tab-router.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-textarea.js.__ivy_ngcc_bak +0 -266
- package/fesm2015/sd-angular-core-textarea.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-time.js.__ivy_ngcc_bak +0 -143
- package/fesm2015/sd-angular-core-time.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-timeline.js.__ivy_ngcc_bak +0 -87
- package/fesm2015/sd-angular-core-timeline.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-translate.js.__ivy_ngcc_bak +0 -101
- package/fesm2015/sd-angular-core-translate.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-upload-excel.js.__ivy_ngcc_bak +0 -638
- package/fesm2015/sd-angular-core-upload-excel.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-upload-file.js.__ivy_ngcc_bak +0 -462
- package/fesm2015/sd-angular-core-upload-file.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-utility.js.__ivy_ngcc_bak +0 -384
- package/fesm2015/sd-angular-core-utility.js.map.__ivy_ngcc_bak +0 -1
- package/fesm2015/sd-angular-core-view.js.__ivy_ngcc_bak +0 -23
- package/fesm2015/sd-angular-core-view.js.map.__ivy_ngcc_bak +0 -1
- package/filter/sd-angular-core-filter.d.ts.__ivy_ngcc_bak +0 -7
- package/filter/sd-angular-core-filter.d.ts.map +0 -1
- package/form/sd-angular-core-form.d.ts.__ivy_ngcc_bak +0 -4
- package/form/sd-angular-core-form.d.ts.map +0 -1
- package/grid/sd-angular-core-grid.d.ts.__ivy_ngcc_bak +0 -4
- package/grid/sd-angular-core-grid.d.ts.map +0 -1
- package/grid-material/sd-angular-core-grid-material.d.ts.__ivy_ngcc_bak +0 -46
- package/grid-material/sd-angular-core-grid-material.d.ts.map +0 -1
- package/group/sd-angular-core-group.d.ts.__ivy_ngcc_bak +0 -5
- package/group/sd-angular-core-group.d.ts.map +0 -1
- package/header-title/sd-angular-core-header-title.d.ts.__ivy_ngcc_bak +0 -5
- package/header-title/sd-angular-core-header-title.d.ts.map +0 -1
- package/image-preview/sd-angular-core-image-preview.d.ts.__ivy_ngcc_bak +0 -6
- package/image-preview/sd-angular-core-image-preview.d.ts.map +0 -1
- package/input/sd-angular-core-input.d.ts.__ivy_ngcc_bak +0 -5
- package/input/sd-angular-core-input.d.ts.map +0 -1
- package/input-currency/sd-angular-core-input-currency.d.ts.__ivy_ngcc_bak +0 -4
- package/input-currency/sd-angular-core-input-currency.d.ts.map +0 -1
- package/input-dropdown/sd-angular-core-input-dropdown.d.ts.__ivy_ngcc_bak +0 -4
- package/input-dropdown/sd-angular-core-input-dropdown.d.ts.map +0 -1
- package/input-number/sd-angular-core-input-number.d.ts.__ivy_ngcc_bak +0 -4
- package/input-number/sd-angular-core-input-number.d.ts.map +0 -1
- package/input-upload-file/sd-angular-core-input-upload-file.d.ts.__ivy_ngcc_bak +0 -4
- package/input-upload-file/sd-angular-core-input-upload-file.d.ts.map +0 -1
- package/json-editor/sd-angular-core-json-editor.d.ts.__ivy_ngcc_bak +0 -4
- package/json-editor/sd-angular-core-json-editor.d.ts.map +0 -1
- package/konva/sd-angular-core-konva.d.ts.__ivy_ngcc_bak +0 -4
- package/konva/sd-angular-core-konva.d.ts.map +0 -1
- package/label/sd-angular-core-label.d.ts.__ivy_ngcc_bak +0 -5
- package/label/sd-angular-core-label.d.ts.map +0 -1
- package/loading/sd-angular-core-loading.d.ts.__ivy_ngcc_bak +0 -4
- package/loading/sd-angular-core-loading.d.ts.map +0 -1
- package/modal/sd-angular-core-modal.d.ts.__ivy_ngcc_bak +0 -4
- package/modal/sd-angular-core-modal.d.ts.map +0 -1
- package/modal-resizable/sd-angular-core-modal-resizable.d.ts.__ivy_ngcc_bak +0 -4
- package/modal-resizable/sd-angular-core-modal-resizable.d.ts.map +0 -1
- package/notify/sd-angular-core-notify.d.ts.__ivy_ngcc_bak +0 -4
- package/notify/sd-angular-core-notify.d.ts.map +0 -1
- package/popover/sd-angular-core-popover.d.ts.__ivy_ngcc_bak +0 -4
- package/popover/sd-angular-core-popover.d.ts.map +0 -1
- package/quick-action/sd-angular-core-quick-action.d.ts.__ivy_ngcc_bak +0 -4
- package/quick-action/sd-angular-core-quick-action.d.ts.map +0 -1
- package/radio/sd-angular-core-radio.d.ts.__ivy_ngcc_bak +0 -4
- package/radio/sd-angular-core-radio.d.ts.map +0 -1
- package/sd-angular-core-1.3.0.tgz +0 -0
- package/select/sd-angular-core-select.d.ts.__ivy_ngcc_bak +0 -4
- package/select/sd-angular-core-select.d.ts.map +0 -1
- package/select-badge/sd-angular-core-select-badge.d.ts.__ivy_ngcc_bak +0 -4
- package/select-badge/sd-angular-core-select-badge.d.ts.map +0 -1
- package/select-editor/sd-angular-core-select-editor.d.ts.__ivy_ngcc_bak +0 -4
- package/select-editor/sd-angular-core-select-editor.d.ts.map +0 -1
- package/service/sd-angular-core-service.d.ts.__ivy_ngcc_bak +0 -4
- package/service/sd-angular-core-service.d.ts.map +0 -1
- package/setting/sd-angular-core-setting.d.ts.__ivy_ngcc_bak +0 -4
- package/setting/sd-angular-core-setting.d.ts.map +0 -1
- package/side-drawer/sd-angular-core-side-drawer.d.ts.__ivy_ngcc_bak +0 -4
- package/side-drawer/sd-angular-core-side-drawer.d.ts.map +0 -1
- package/switch/sd-angular-core-switch.d.ts.__ivy_ngcc_bak +0 -4
- package/switch/sd-angular-core-switch.d.ts.map +0 -1
- package/tab-router/sd-angular-core-tab-router.d.ts.__ivy_ngcc_bak +0 -6
- package/tab-router/sd-angular-core-tab-router.d.ts.map +0 -1
- package/textarea/sd-angular-core-textarea.d.ts.__ivy_ngcc_bak +0 -4
- package/textarea/sd-angular-core-textarea.d.ts.map +0 -1
- package/time/sd-angular-core-time.d.ts.__ivy_ngcc_bak +0 -5
- package/time/sd-angular-core-time.d.ts.map +0 -1
- package/timeline/sd-angular-core-timeline.d.ts.__ivy_ngcc_bak +0 -5
- package/timeline/sd-angular-core-timeline.d.ts.map +0 -1
- package/translate/sd-angular-core-translate.d.ts.__ivy_ngcc_bak +0 -4
- package/translate/sd-angular-core-translate.d.ts.map +0 -1
- package/upload-excel/sd-angular-core-upload-excel.d.ts.__ivy_ngcc_bak +0 -6
- package/upload-excel/sd-angular-core-upload-excel.d.ts.map +0 -1
- package/upload-file/sd-angular-core-upload-file.d.ts.__ivy_ngcc_bak +0 -4
- package/upload-file/sd-angular-core-upload-file.d.ts.map +0 -1
- package/utility/sd-angular-core-utility.d.ts.__ivy_ngcc_bak +0 -4
- package/utility/sd-angular-core-utility.d.ts.map +0 -1
- package/view/sd-angular-core-view.d.ts.__ivy_ngcc_bak +0 -4
- package/view/sd-angular-core-view.d.ts.map +0 -1
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, ɵɵdefineInjectable, ɵɵinject, Injectable, Inject, Optional } from '@angular/core';
|
|
2
|
-
import { __classPrivateFieldGet, __awaiter } from 'tslib';
|
|
3
|
-
import hash from 'object-hash';
|
|
4
|
-
import { BehaviorSubject } from 'rxjs';
|
|
5
|
-
import { startWith, switchMap } from 'rxjs/operators';
|
|
6
|
-
|
|
7
|
-
const SETTING_CONFIG = new InjectionToken('setting.configuration');
|
|
8
|
-
|
|
9
|
-
var _cache, _subject, _get, _getServer, _set, _setServer, _has, _hasServer, _remove, _removeServer;
|
|
10
|
-
class SdSettingService {
|
|
11
|
-
constructor(configuration) {
|
|
12
|
-
this.configuration = configuration;
|
|
13
|
-
_cache.set(this, {});
|
|
14
|
-
_subject.set(this, {});
|
|
15
|
-
_get.set(this, (key, option) => {
|
|
16
|
-
return () => {
|
|
17
|
-
let cache = __classPrivateFieldGet(this, _cache)[key];
|
|
18
|
-
if ((option === null || option === void 0 ? void 0 : option.type) === 'session') {
|
|
19
|
-
try {
|
|
20
|
-
cache = JSON.parse(sessionStorage.getItem(key));
|
|
21
|
-
}
|
|
22
|
-
catch (_a) {
|
|
23
|
-
cache = undefined;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
try {
|
|
28
|
-
cache = JSON.parse(localStorage.getItem(key));
|
|
29
|
-
}
|
|
30
|
-
catch (_b) {
|
|
31
|
-
cache = undefined;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if (!cache) {
|
|
35
|
-
return option === null || option === void 0 ? void 0 : option.default;
|
|
36
|
-
}
|
|
37
|
-
if (cache.data === undefined) {
|
|
38
|
-
return undefined;
|
|
39
|
-
}
|
|
40
|
-
return JSON.parse(JSON.stringify(cache.data));
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
_getServer.set(this, (key, option) => {
|
|
44
|
-
return () => __awaiter(this, void 0, void 0, function* () {
|
|
45
|
-
var _a;
|
|
46
|
-
let cache = __classPrivateFieldGet(this, _cache)[key];
|
|
47
|
-
try {
|
|
48
|
-
cache = yield ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.get(key, option));
|
|
49
|
-
}
|
|
50
|
-
catch (_b) {
|
|
51
|
-
cache = undefined;
|
|
52
|
-
}
|
|
53
|
-
if (!cache) {
|
|
54
|
-
return option === null || option === void 0 ? void 0 : option.default;
|
|
55
|
-
}
|
|
56
|
-
if (cache.data === undefined) {
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
59
|
-
return JSON.parse(JSON.stringify(cache.data));
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
_set.set(this, (key, option) => {
|
|
63
|
-
return (data) => {
|
|
64
|
-
if (data === undefined) {
|
|
65
|
-
__classPrivateFieldGet(this, _cache)[key] = {
|
|
66
|
-
data: undefined,
|
|
67
|
-
createdOn: new Date()
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
__classPrivateFieldGet(this, _cache)[key] = {
|
|
72
|
-
data: JSON.parse(JSON.stringify(data)),
|
|
73
|
-
createdOn: new Date()
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
if ((option === null || option === void 0 ? void 0 : option.type) === 'session') {
|
|
77
|
-
try {
|
|
78
|
-
sessionStorage.setItem(key, JSON.stringify(__classPrivateFieldGet(this, _cache)[key]));
|
|
79
|
-
__classPrivateFieldGet(this, _subject)[key].next(__classPrivateFieldGet(this, _cache)[key].data);
|
|
80
|
-
}
|
|
81
|
-
catch (err) {
|
|
82
|
-
console.error(err);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
try {
|
|
87
|
-
localStorage.setItem(key, JSON.stringify(__classPrivateFieldGet(this, _cache)[key]));
|
|
88
|
-
__classPrivateFieldGet(this, _subject)[key].next(__classPrivateFieldGet(this, _cache)[key].data);
|
|
89
|
-
}
|
|
90
|
-
catch (err) {
|
|
91
|
-
console.error(err);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
});
|
|
96
|
-
_setServer.set(this, (key, option) => {
|
|
97
|
-
return (data) => __awaiter(this, void 0, void 0, function* () {
|
|
98
|
-
var _a;
|
|
99
|
-
if (data === undefined) {
|
|
100
|
-
__classPrivateFieldGet(this, _cache)[key] = {
|
|
101
|
-
data: undefined,
|
|
102
|
-
createdOn: new Date()
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
__classPrivateFieldGet(this, _cache)[key] = {
|
|
107
|
-
data: JSON.parse(JSON.stringify(data)),
|
|
108
|
-
createdOn: new Date()
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
try {
|
|
112
|
-
yield ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.set(key, __classPrivateFieldGet(this, _cache)[key]));
|
|
113
|
-
__classPrivateFieldGet(this, _subject)[key].next(__classPrivateFieldGet(this, _cache)[key].data);
|
|
114
|
-
}
|
|
115
|
-
catch (err) {
|
|
116
|
-
console.error(err);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
_has.set(this, (key, option) => {
|
|
121
|
-
return () => {
|
|
122
|
-
let cache = __classPrivateFieldGet(this, _cache)[key];
|
|
123
|
-
if ((option === null || option === void 0 ? void 0 : option.type) === 'session') {
|
|
124
|
-
try {
|
|
125
|
-
cache = JSON.parse(sessionStorage.getItem(key));
|
|
126
|
-
}
|
|
127
|
-
catch (_a) {
|
|
128
|
-
cache = undefined;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
try {
|
|
133
|
-
cache = JSON.parse(localStorage.getItem(key));
|
|
134
|
-
}
|
|
135
|
-
catch (_b) {
|
|
136
|
-
cache = undefined;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
if (!cache) {
|
|
140
|
-
return false;
|
|
141
|
-
}
|
|
142
|
-
return true;
|
|
143
|
-
};
|
|
144
|
-
});
|
|
145
|
-
_hasServer.set(this, (key, option) => {
|
|
146
|
-
return () => __awaiter(this, void 0, void 0, function* () {
|
|
147
|
-
var _a;
|
|
148
|
-
let cache = __classPrivateFieldGet(this, _cache)[key];
|
|
149
|
-
try {
|
|
150
|
-
cache = yield ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.get(key, option));
|
|
151
|
-
}
|
|
152
|
-
catch (_b) {
|
|
153
|
-
cache = undefined;
|
|
154
|
-
}
|
|
155
|
-
if (!cache) {
|
|
156
|
-
return false;
|
|
157
|
-
}
|
|
158
|
-
return true;
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
_remove.set(this, (key, option) => {
|
|
162
|
-
return () => __awaiter(this, void 0, void 0, function* () {
|
|
163
|
-
try {
|
|
164
|
-
if ((option === null || option === void 0 ? void 0 : option.type) === 'session') {
|
|
165
|
-
sessionStorage.removeItem(key);
|
|
166
|
-
}
|
|
167
|
-
else {
|
|
168
|
-
localStorage.removeItem(key);
|
|
169
|
-
}
|
|
170
|
-
__classPrivateFieldGet(this, _cache)[key] = undefined;
|
|
171
|
-
__classPrivateFieldGet(this, _subject)[key].next(undefined);
|
|
172
|
-
}
|
|
173
|
-
catch (err) {
|
|
174
|
-
console.error(err);
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
});
|
|
178
|
-
_removeServer.set(this, (key, option) => {
|
|
179
|
-
return () => __awaiter(this, void 0, void 0, function* () {
|
|
180
|
-
var _a;
|
|
181
|
-
try {
|
|
182
|
-
yield ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.remove(key, option));
|
|
183
|
-
__classPrivateFieldGet(this, _cache)[key] = undefined;
|
|
184
|
-
__classPrivateFieldGet(this, _subject)[key].next(undefined);
|
|
185
|
-
}
|
|
186
|
-
catch (err) {
|
|
187
|
-
console.error(err);
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
create(key, option) {
|
|
193
|
-
var _a;
|
|
194
|
-
if (!key) {
|
|
195
|
-
throw new Error('Key is required');
|
|
196
|
-
}
|
|
197
|
-
let hashKey = null;
|
|
198
|
-
if (typeof (key) === 'string') {
|
|
199
|
-
hashKey = key;
|
|
200
|
-
}
|
|
201
|
-
else if (typeof (key) === 'object') {
|
|
202
|
-
hashKey = hash(key);
|
|
203
|
-
}
|
|
204
|
-
else {
|
|
205
|
-
throw new Error('Invalid key');
|
|
206
|
-
}
|
|
207
|
-
if ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.convertKey) {
|
|
208
|
-
hashKey = this.configuration.convertKey(hashKey);
|
|
209
|
-
}
|
|
210
|
-
const get = __classPrivateFieldGet(this, _get).call(this, hashKey, option);
|
|
211
|
-
const set = __classPrivateFieldGet(this, _set).call(this, hashKey, option);
|
|
212
|
-
const has = __classPrivateFieldGet(this, _has).call(this, hashKey, option);
|
|
213
|
-
const remove = __classPrivateFieldGet(this, _remove).call(this, hashKey, option);
|
|
214
|
-
if (!__classPrivateFieldGet(this, _subject)[hashKey]) {
|
|
215
|
-
__classPrivateFieldGet(this, _subject)[hashKey] = new BehaviorSubject(get());
|
|
216
|
-
}
|
|
217
|
-
return {
|
|
218
|
-
get,
|
|
219
|
-
set,
|
|
220
|
-
has,
|
|
221
|
-
remove,
|
|
222
|
-
subject: __classPrivateFieldGet(this, _subject)[hashKey],
|
|
223
|
-
observer: __classPrivateFieldGet(this, _subject)[hashKey]
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
createServer(key, option) {
|
|
227
|
-
var _a, _b, _c, _d;
|
|
228
|
-
if (!key) {
|
|
229
|
-
throw new Error('Key is required');
|
|
230
|
-
}
|
|
231
|
-
let hashKey = null;
|
|
232
|
-
if (typeof (key) === 'string') {
|
|
233
|
-
hashKey = key;
|
|
234
|
-
}
|
|
235
|
-
else if (typeof (key) === 'object') {
|
|
236
|
-
hashKey = hash(key);
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
throw new Error('Invalid key');
|
|
240
|
-
}
|
|
241
|
-
if ((_a = this.configuration) === null || _a === void 0 ? void 0 : _a.convertKey) {
|
|
242
|
-
hashKey = this.configuration.convertKey(hashKey);
|
|
243
|
-
}
|
|
244
|
-
if (!((_b = this.configuration) === null || _b === void 0 ? void 0 : _b.get)) {
|
|
245
|
-
throw new Error('Please init setting configuration method get for type server');
|
|
246
|
-
}
|
|
247
|
-
if (!((_c = this.configuration) === null || _c === void 0 ? void 0 : _c.set)) {
|
|
248
|
-
throw new Error('Please init setting configuration method set for type server');
|
|
249
|
-
}
|
|
250
|
-
if (!((_d = this.configuration) === null || _d === void 0 ? void 0 : _d.remove)) {
|
|
251
|
-
throw new Error('Please init setting configuration method remove for type server');
|
|
252
|
-
}
|
|
253
|
-
if (!__classPrivateFieldGet(this, _subject)[hashKey]) {
|
|
254
|
-
__classPrivateFieldGet(this, _subject)[hashKey] = new BehaviorSubject(option === null || option === void 0 ? void 0 : option.default);
|
|
255
|
-
}
|
|
256
|
-
const get = __classPrivateFieldGet(this, _getServer).call(this, hashKey, option);
|
|
257
|
-
const set = __classPrivateFieldGet(this, _setServer).call(this, hashKey, option);
|
|
258
|
-
const has = __classPrivateFieldGet(this, _hasServer).call(this, hashKey, option);
|
|
259
|
-
const remove = __classPrivateFieldGet(this, _remove).call(this, hashKey, option);
|
|
260
|
-
return {
|
|
261
|
-
get,
|
|
262
|
-
set,
|
|
263
|
-
has,
|
|
264
|
-
remove,
|
|
265
|
-
subject: __classPrivateFieldGet(this, _subject)[hashKey],
|
|
266
|
-
observer: __classPrivateFieldGet(this, _subject)[hashKey].pipe(startWith(__classPrivateFieldGet(this, _subject)[hashKey].getValue()), switchMap(get))
|
|
267
|
-
};
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
_cache = new WeakMap(), _subject = new WeakMap(), _get = new WeakMap(), _getServer = new WeakMap(), _set = new WeakMap(), _setServer = new WeakMap(), _has = new WeakMap(), _hasServer = new WeakMap(), _remove = new WeakMap(), _removeServer = new WeakMap();
|
|
271
|
-
SdSettingService.ɵprov = ɵɵdefineInjectable({ factory: function SdSettingService_Factory() { return new SdSettingService(ɵɵinject(SETTING_CONFIG, 8)); }, token: SdSettingService, providedIn: "root" });
|
|
272
|
-
SdSettingService.decorators = [
|
|
273
|
-
{ type: Injectable, args: [{
|
|
274
|
-
providedIn: 'root'
|
|
275
|
-
},] }
|
|
276
|
-
];
|
|
277
|
-
SdSettingService.ctorParameters = () => [
|
|
278
|
-
{ type: undefined, decorators: [{ type: Inject, args: [SETTING_CONFIG,] }, { type: Optional }] }
|
|
279
|
-
];
|
|
280
|
-
|
|
281
|
-
/*
|
|
282
|
-
* Public API Surface of superdev-angular-core
|
|
283
|
-
*/
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* Generated bundle index. Do not edit.
|
|
287
|
-
*/
|
|
288
|
-
|
|
289
|
-
export { SETTING_CONFIG, SdSettingService };
|
|
290
|
-
//# sourceMappingURL=sd-angular-core-setting.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sd-angular-core-setting.js","sources":["../../../../projects/sd-core/setting/src/lib/setting.model.ts","../../../../projects/sd-core/setting/src/lib/setting.service.ts","../../../../projects/sd-core/setting/src/public-api.ts","../../../../projects/sd-core/setting/sd-angular-core-setting.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\nimport { BehaviorSubject, Observable, Subject } from 'rxjs';\r\n\r\nexport interface SdSettingOption<T = any> {\r\n type?: 'session';\r\n default?: T;\r\n args?: {\r\n [key: string]: any\r\n };\r\n}\r\nexport interface SdSettingOptionServer<T = any> {\r\n default?: T;\r\n args?: {\r\n [key: string]: any\r\n };\r\n}\r\n\r\nexport interface SdSetting<T = any> {\r\n get: () => T;\r\n set: (data: T) => void;\r\n has: () => boolean;\r\n remove: () => void;\r\n subject: BehaviorSubject<T>;\r\n observer: Observable<T>;\r\n}\r\n\r\nexport interface SdSettingServer<T = any> {\r\n get: () => Promise<T>;\r\n set: (data: T) => Promise<void>;\r\n has: () => Promise<boolean>;\r\n remove: () => Promise<void>;\r\n subject: BehaviorSubject<T>;\r\n observer: Observable<T>;\r\n}\r\n\r\nexport interface ISettingConfiguration {\r\n convertKey?: (key: string) => string;\r\n set?: (key: string, value: { data: any, createdOn: Date }, args?: SdSettingOptionServer) => Promise<void>;\r\n get?: (key: string, args?: SdSettingOptionServer) => Promise<{\r\n data: any,\r\n createdOn: Date\r\n }>;\r\n remove?: (key: string, args?: SdSettingOptionServer) => Promise<void>;\r\n}\r\n\r\nexport const SETTING_CONFIG = new InjectionToken<ISettingConfiguration>('setting.configuration');\r\n","import { Optional } from '@angular/core';\r\nimport { Injectable, Inject } from '@angular/core';\r\nimport hash from 'object-hash';\r\nimport { BehaviorSubject, Subject } from 'rxjs';\r\nimport { startWith, switchMap } from 'rxjs/operators';\r\nimport { SETTING_CONFIG, ISettingConfiguration, SdSettingOption, SdSetting, SdSettingServer, SdSettingOptionServer } from './setting.model';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class SdSettingService {\r\n #cache: {\r\n [key: string]: {\r\n data: any,\r\n createdOn: Date\r\n }\r\n } = {};\r\n\r\n #subject: {\r\n [key: string]: BehaviorSubject<any>;\r\n } = {};\r\n\r\n constructor(@Inject(SETTING_CONFIG) @Optional() private configuration: ISettingConfiguration) { }\r\n\r\n create<T = any>(key: string | object, option?: SdSettingOption<T>): SdSetting<T> {\r\n if (!key) {\r\n throw new Error('Key is required');\r\n }\r\n let hashKey: string = null;\r\n if (typeof (key) === 'string') {\r\n hashKey = key;\r\n } else if (typeof (key) === 'object') {\r\n hashKey = hash(key);\r\n } else {\r\n throw new Error('Invalid key');\r\n }\r\n if (this.configuration?.convertKey) {\r\n hashKey = this.configuration.convertKey(hashKey);\r\n }\r\n\r\n const get = this.#get<T>(hashKey, option);\r\n const set = this.#set<T>(hashKey, option);\r\n const has = this.#has(hashKey, option);\r\n const remove = this.#remove(hashKey, option);\r\n if (!this.#subject[hashKey]) {\r\n this.#subject[hashKey] = new BehaviorSubject<T>(get());\r\n }\r\n return {\r\n get,\r\n set,\r\n has,\r\n remove,\r\n subject: this.#subject[hashKey],\r\n observer: this.#subject[hashKey]\r\n };\r\n }\r\n\r\n createServer<T = any>(key: string | object, option?: SdSettingOptionServer<T>): SdSettingServer<T> {\r\n if (!key) {\r\n throw new Error('Key is required');\r\n }\r\n let hashKey: string = null;\r\n if (typeof (key) === 'string') {\r\n hashKey = key;\r\n } else if (typeof (key) === 'object') {\r\n hashKey = hash(key);\r\n } else {\r\n throw new Error('Invalid key');\r\n }\r\n if (this.configuration?.convertKey) {\r\n hashKey = this.configuration.convertKey(hashKey);\r\n }\r\n if (!this.configuration?.get) {\r\n throw new Error('Please init setting configuration method get for type server');\r\n }\r\n if (!this.configuration?.set) {\r\n throw new Error('Please init setting configuration method set for type server');\r\n }\r\n if (!this.configuration?.remove) {\r\n throw new Error('Please init setting configuration method remove for type server');\r\n }\r\n if (!this.#subject[hashKey]) {\r\n this.#subject[hashKey] = new BehaviorSubject<any>(option?.default);\r\n }\r\n const get = this.#getServer<T>(hashKey, option);\r\n const set = this.#setServer<T>(hashKey, option);\r\n const has = this.#hasServer(hashKey, option);\r\n const remove = this.#remove(hashKey, option);\r\n return {\r\n get,\r\n set,\r\n has,\r\n remove,\r\n subject: this.#subject[hashKey],\r\n observer: this.#subject[hashKey].pipe(startWith(this.#subject[hashKey].getValue()), switchMap(get))\r\n };\r\n }\r\n\r\n #get = <T = any>(key: string, option?: SdSettingOption<T>): (() => T) => {\r\n return () => {\r\n let cache = this.#cache[key];\r\n if (option?.type === 'session') {\r\n try {\r\n cache = JSON.parse(sessionStorage.getItem(key));\r\n } catch {\r\n cache = undefined;\r\n }\r\n } else {\r\n try {\r\n cache = JSON.parse(localStorage.getItem(key));\r\n } catch {\r\n cache = undefined;\r\n }\r\n }\r\n if (!cache) {\r\n return option?.default;\r\n }\r\n if (cache.data === undefined) {\r\n return undefined;\r\n }\r\n return JSON.parse(JSON.stringify(cache.data));\r\n };\r\n }\r\n\r\n #getServer = <T = any>(key: string, option?: SdSettingOptionServer<T>): (() => Promise<T>) => {\r\n return async () => {\r\n let cache = this.#cache[key];\r\n try {\r\n cache = await this.configuration?.get(key, option);\r\n } catch {\r\n cache = undefined;\r\n }\r\n if (!cache) {\r\n return option?.default;\r\n }\r\n if (cache.data === undefined) {\r\n return undefined;\r\n }\r\n return JSON.parse(JSON.stringify(cache.data));\r\n };\r\n }\r\n\r\n #set = <T = any>(key: string, option?: SdSettingOption<T>): ((data: T) => void) => {\r\n return (data: T) => {\r\n if (data === undefined) {\r\n this.#cache[key] = {\r\n data: undefined,\r\n createdOn: new Date()\r\n };\r\n } else {\r\n this.#cache[key] = {\r\n data: JSON.parse(JSON.stringify(data)),\r\n createdOn: new Date()\r\n };\r\n }\r\n if (option?.type === 'session') {\r\n try {\r\n sessionStorage.setItem(key, JSON.stringify(this.#cache[key]));\r\n this.#subject[key].next(this.#cache[key].data);\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n } else {\r\n try {\r\n localStorage.setItem(key, JSON.stringify(this.#cache[key]));\r\n this.#subject[key].next(this.#cache[key].data);\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n }\r\n };\r\n }\r\n\r\n #setServer = <T = any>(key: string, option?: SdSettingOption<T>): ((data: T) => Promise<void>) => {\r\n return async (data: T) => {\r\n if (data === undefined) {\r\n this.#cache[key] = {\r\n data: undefined,\r\n createdOn: new Date()\r\n };\r\n } else {\r\n this.#cache[key] = {\r\n data: JSON.parse(JSON.stringify(data)),\r\n createdOn: new Date()\r\n };\r\n }\r\n try {\r\n await this.configuration?.set(key, this.#cache[key]);\r\n this.#subject[key].next(this.#cache[key].data);\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n };\r\n }\r\n\r\n #has = (key: string, option?: SdSettingOption): (() => boolean) => {\r\n return () => {\r\n let cache = this.#cache[key];\r\n if (option?.type === 'session') {\r\n try {\r\n cache = JSON.parse(sessionStorage.getItem(key));\r\n } catch {\r\n cache = undefined;\r\n }\r\n } else {\r\n try {\r\n cache = JSON.parse(localStorage.getItem(key));\r\n } catch {\r\n cache = undefined;\r\n }\r\n }\r\n if (!cache) {\r\n return false;\r\n }\r\n return true;\r\n };\r\n }\r\n\r\n #hasServer = (key: string, option?: SdSettingOptionServer): (() => Promise<boolean>) => {\r\n return async () => {\r\n let cache = this.#cache[key];\r\n try {\r\n cache = await this.configuration?.get(key, option);\r\n } catch {\r\n cache = undefined;\r\n }\r\n if (!cache) {\r\n return false;\r\n }\r\n return true;\r\n };\r\n }\r\n\r\n #remove = (key: string, option?: SdSettingOption): (() => Promise<void>) => {\r\n return async () => {\r\n try {\r\n if (option?.type === 'session') {\r\n sessionStorage.removeItem(key);\r\n } else {\r\n localStorage.removeItem(key);\r\n }\r\n this.#cache[key] = undefined;\r\n this.#subject[key].next(undefined);\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n };\r\n }\r\n\r\n #removeServer = (key: string, option?: SdSettingOptionServer): (() => Promise<void>) => {\r\n return async () => {\r\n try {\r\n await this.configuration?.remove(key, option);\r\n this.#cache[key] = undefined;\r\n this.#subject[key].next(undefined);\r\n } catch (err) {\r\n console.error(err);\r\n }\r\n };\r\n }\r\n}\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\nexport * from './lib/setting.model';\r\nexport * from './lib/setting.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MA6Ca,cAAc,GAAG,IAAI,cAAc,CAAwB,uBAAuB;;;MCnClF,gBAAgB;IAY3B,YAAwD,aAAoC;QAApC,kBAAa,GAAb,aAAa,CAAuB;QAX5F,iBAKI,EAAE,EAAC;QAEP,mBAEI,EAAE,EAAC;QA8EP,eAAO,CAAU,GAAW,EAAE,MAA2B;YACvD,OAAO;gBACL,IAAI,KAAK,GAAG,qCAAY,GAAG,CAAC,CAAC;gBAC7B,IAAI,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,MAAK,SAAS,EAAE;oBAC9B,IAAI;wBACF,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;qBACjD;oBAAC,WAAM;wBACN,KAAK,GAAG,SAAS,CAAC;qBACnB;iBACF;qBAAM;oBACL,IAAI;wBACF,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,C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;aACnB;;;4CAac,MAAM,SAAC,cAAc,cAAG,QAAQ;;;ACtB/C;;;;ACAA;;;;;;"}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
2
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, ComponentFactoryResolver, ApplicationRef, Injector, ChangeDetectorRef, ViewChild, Input, Output, NgModule } from '@angular/core';
|
|
3
|
-
import { DomPortalOutlet, CdkPortal, PortalModule } from '@angular/cdk/portal';
|
|
4
|
-
import { v4 } from 'uuid';
|
|
5
|
-
import { SdLoadingService } from '@sd-angular/core/loading';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
8
|
-
import { MatDialogModule } from '@angular/material/dialog';
|
|
9
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
10
|
-
import { SdButtonModule } from '@sd-angular/core/button';
|
|
11
|
-
|
|
12
|
-
var _embeddedViewRef;
|
|
13
|
-
class SdSideDrawer {
|
|
14
|
-
constructor(cfr, ar, injector, ref, loadingService) {
|
|
15
|
-
this.cfr = cfr;
|
|
16
|
-
this.ar = ar;
|
|
17
|
-
this.injector = injector;
|
|
18
|
-
this.ref = ref;
|
|
19
|
-
this.loadingService = loadingService;
|
|
20
|
-
this.id = `I${v4()}`;
|
|
21
|
-
this.width = "480px";
|
|
22
|
-
this.editingChanged = new EventEmitter();
|
|
23
|
-
_embeddedViewRef.set(this, void 0);
|
|
24
|
-
this.isEditing = false;
|
|
25
|
-
this.isOpened = false;
|
|
26
|
-
this.alreadyOpen = false;
|
|
27
|
-
this.isHover = false;
|
|
28
|
-
this.isLoading = false;
|
|
29
|
-
this.open = () => {
|
|
30
|
-
this.ref.markForCheck();
|
|
31
|
-
this.isOpened = true;
|
|
32
|
-
this.alreadyOpen = true;
|
|
33
|
-
};
|
|
34
|
-
this.close = () => {
|
|
35
|
-
this.ref.markForCheck();
|
|
36
|
-
this.isOpened = false;
|
|
37
|
-
this.stopLoading();
|
|
38
|
-
};
|
|
39
|
-
this.startLoading = () => {
|
|
40
|
-
this.isLoading = true;
|
|
41
|
-
this.loadingService.stop(`#${this.id}`);
|
|
42
|
-
this.loadingService.start(`#${this.id}`);
|
|
43
|
-
};
|
|
44
|
-
this.stopLoading = () => {
|
|
45
|
-
this.isLoading = false;
|
|
46
|
-
this.loadingService.stop(`#${this.id}`);
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
ngAfterViewInit() {
|
|
50
|
-
__classPrivateFieldSet(this, _embeddedViewRef, new DomPortalOutlet(document.body, this.cfr, this.ar, this.injector).attachTemplatePortal(this.portal));
|
|
51
|
-
}
|
|
52
|
-
ngOnDestroy() {
|
|
53
|
-
__classPrivateFieldGet(this, _embeddedViewRef).destroy();
|
|
54
|
-
}
|
|
55
|
-
toggleEditable() {
|
|
56
|
-
this.isEditing = !this.isEditing;
|
|
57
|
-
this.editingChanged.emit(this.isEditing);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
_embeddedViewRef = new WeakMap();
|
|
61
|
-
SdSideDrawer.decorators = [
|
|
62
|
-
{ type: Component, args: [{
|
|
63
|
-
selector: "sd-side-drawer",
|
|
64
|
-
template: "<ng-template cdkPortal>\r\n <div [id]=\"id\" class=\"side-drawer\" [ngStyle]=\"{'width': width}\" [ngClass]=\"{'side-drawer--active': isOpened,'side-drawer--loading': isLoading}\"\r\n (mouseover)=\"isHover = true\" (mouseout)=\"isHover = false\">\r\n <ng-container *ngIf=\"isOpened\">\r\n <div class=\"side-drawer__header media align-items-center\">\r\n <div class=\"side-drawer__title media-body\">\r\n <ng-content select=\"[sdTitle]\"></ng-content>\r\n </div>\r\n <button type=\"button\" class=\"c-action\" (click)=\"toggleEditable()\" *ngIf=\"editable\" mat-icon-button>\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button type=\"button\" class=\"c-action\" (click)=\"close()\" mat-icon-button>\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n <div *ngIf=\"isOpened\" class=\"side-drawer__body\">\r\n <div class=\"side-drawer__content\">\r\n <ng-content select=\"[sdBody]\"></ng-content>\r\n </div>\r\n </div>\r\n <div class=\"side-drawer__footer\">\r\n <ng-content select=\"[sdFooter]\"></ng-content>\r\n </div>\r\n </ng-container>\r\n </div>\r\n <button *ngIf=\"isOpened\" type=\"button\" class=\"side-drawer-backdrop\" (click)=\"close()\"\r\n [ngClass]=\"{ 'side-drawer-backdrop--active': isHover }\"></button>\r\n</ng-template>",
|
|
65
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
66
|
-
styles: [".text-black400{color:#757575}.side-drawer{background-color:#fff;bottom:0;box-shadow:0 .4px .8px rgba(0,0,0,.1),0 3px 6px rgba(0,0,0,.2);display:flex;flex-direction:column;opacity:0;pointer-events:none;position:fixed;right:0;top:0;transform:translate3d(100%,0,0);transition:all .3s ease-in-out;visibility:hidden;z-index:999}.c-action{color:#212121}.c-action:focus{outline:none}.side-drawer__icon{background:transparent;border:0;color:#212121;outline:none;overflow:hidden}.side-drawer__icon .mat-icon{float:left}.side-drawer__header{min-height:64px;padding:12px 16px}.side-drawer__body{flex:1;position:relative}.side-drawer__content{bottom:0;left:0;overflow:auto;padding:0 16px 16px;position:absolute;right:0;top:0}.side-drawer__footer{border-top:1px solid #dde0e5;padding:8px 0}.side-drawer-backdrop{background:none;border:0;bottom:0;height:100%;left:0;outline:none!important;position:fixed;right:0;top:0;transition:all .3s ease-in-out;width:100%;z-index:99}.side-drawer-backdrop--active{background-color:rgba(0,0,0,.4)}.side-drawer--active{opacity:1;pointer-events:all;transform:translateZ(0);visibility:visible}.side-drawer__title{font-size:20px;font-weight:500;line-height:28px}"]
|
|
67
|
-
},] }
|
|
68
|
-
];
|
|
69
|
-
SdSideDrawer.ctorParameters = () => [
|
|
70
|
-
{ type: ComponentFactoryResolver },
|
|
71
|
-
{ type: ApplicationRef },
|
|
72
|
-
{ type: Injector },
|
|
73
|
-
{ type: ChangeDetectorRef },
|
|
74
|
-
{ type: SdLoadingService }
|
|
75
|
-
];
|
|
76
|
-
SdSideDrawer.propDecorators = {
|
|
77
|
-
portal: [{ type: ViewChild, args: [CdkPortal,] }],
|
|
78
|
-
title: [{ type: Input }],
|
|
79
|
-
editable: [{ type: Input }],
|
|
80
|
-
width: [{ type: Input }],
|
|
81
|
-
editingChanged: [{ type: Output }]
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
class SdSideDrawerModule {
|
|
85
|
-
}
|
|
86
|
-
SdSideDrawerModule.decorators = [
|
|
87
|
-
{ type: NgModule, args: [{
|
|
88
|
-
imports: [
|
|
89
|
-
CommonModule,
|
|
90
|
-
MatIconModule,
|
|
91
|
-
MatDialogModule,
|
|
92
|
-
MatButtonModule,
|
|
93
|
-
SdButtonModule,
|
|
94
|
-
PortalModule
|
|
95
|
-
],
|
|
96
|
-
declarations: [
|
|
97
|
-
SdSideDrawer
|
|
98
|
-
],
|
|
99
|
-
exports: [
|
|
100
|
-
SdSideDrawer
|
|
101
|
-
],
|
|
102
|
-
providers: []
|
|
103
|
-
},] }
|
|
104
|
-
];
|
|
105
|
-
|
|
106
|
-
/*
|
|
107
|
-
* Public API Surface of superdev-angular-core
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Generated bundle index. Do not edit.
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
export { SdSideDrawer, SdSideDrawerModule };
|
|
115
|
-
//# sourceMappingURL=sd-angular-core-side-drawer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sd-angular-core-side-drawer.js","sources":["../../../../projects/sd-core/side-drawer/src/lib/side-drawer/side-drawer.component.ts","../../../../projects/sd-core/side-drawer/src/lib/side-drawer.module.ts","../../../../projects/sd-core/side-drawer/src/public-api.ts","../../../../projects/sd-core/side-drawer/sd-angular-core-side-drawer.ts"],"sourcesContent":["import {\r\n Component,\r\n ViewChild,\r\n ComponentFactoryResolver,\r\n ApplicationRef,\r\n Injector,\r\n EmbeddedViewRef,\r\n AfterViewInit,\r\n OnDestroy,\r\n Input,\r\n Output,\r\n EventEmitter,\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n} from \"@angular/core\";\r\nimport { CdkPortal, DomPortalOutlet } from \"@angular/cdk/portal\";\r\nimport * as uuid from \"uuid\";\r\nimport { SdLoadingService } from \"@sd-angular/core/loading\";\r\n\r\n@Component({\r\n selector: \"sd-side-drawer\",\r\n templateUrl: \"./side-drawer.component.html\",\r\n styleUrls: [\"./side-drawer.component.scss\"],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class SdSideDrawer implements AfterViewInit, OnDestroy {\r\n id = `I${uuid.v4()}`;\r\n @ViewChild(CdkPortal) portal: CdkPortal;\r\n @Input() title: string;\r\n @Input() editable: boolean;\r\n @Input() width = \"480px\";\r\n @Output() editingChanged = new EventEmitter<boolean>();\r\n #embeddedViewRef: EmbeddedViewRef<any>;\r\n isEditing: boolean = false;\r\n isOpened = false;\r\n alreadyOpen = false;\r\n isHover = false;\r\n isLoading = false;\r\n\r\n constructor(\r\n private cfr: ComponentFactoryResolver,\r\n private ar: ApplicationRef,\r\n private injector: Injector,\r\n private ref: ChangeDetectorRef,\r\n private loadingService: SdLoadingService\r\n ) {}\r\n\r\n ngAfterViewInit() {\r\n this.#embeddedViewRef = new DomPortalOutlet(\r\n document.body,\r\n this.cfr,\r\n this.ar,\r\n this.injector\r\n ).attachTemplatePortal(this.portal);\r\n }\r\n\r\n open = () => {\r\n this.ref.markForCheck();\r\n this.isOpened = true;\r\n this.alreadyOpen = true;\r\n };\r\n\r\n close = () => {\r\n this.ref.markForCheck();\r\n this.isOpened = false;\r\n this.stopLoading();\r\n };\r\n\r\n startLoading = () => {\r\n this.isLoading = true;\r\n this.loadingService.stop(`#${this.id}`);\r\n this.loadingService.start(`#${this.id}`);\r\n };\r\n\r\n stopLoading = () => {\r\n this.isLoading = false;\r\n this.loadingService.stop(`#${this.id}`);\r\n };\r\n\r\n ngOnDestroy() {\r\n this.#embeddedViewRef.destroy();\r\n }\r\n\r\n toggleEditable() {\r\n this.isEditing = !this.isEditing;\r\n this.editingChanged.emit(this.isEditing);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\n\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { SdButtonModule } from '@sd-angular/core/button';\r\nimport { SdSideDrawer } from './side-drawer/side-drawer.component';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatIconModule,\r\n MatDialogModule,\r\n MatButtonModule,\r\n SdButtonModule,\r\n PortalModule\r\n ],\r\n declarations: [\r\n SdSideDrawer\r\n ],\r\n exports: [\r\n SdSideDrawer\r\n ],\r\n providers: [\r\n ]\r\n})\r\nexport class SdSideDrawerModule {\r\n\r\n}\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\nexport * from './lib/side-drawer/side-drawer.component';\r\n\r\nexport * from './lib/side-drawer.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["uuid.v4"],"mappings":";;;;;;;;;;;;MAyBa,YAAY;IAcvB,YACU,GAA6B,EAC7B,EAAkB,EAClB,QAAkB,EAClB,GAAsB,EACtB,cAAgC;QAJhC,QAAG,GAAH,GAAG,CAA0B;QAC7B,OAAE,GAAF,EAAE,CAAgB;QAClB,aAAQ,GAAR,QAAQ,CAAU;QAClB,QAAG,GAAH,GAAG,CAAmB;QACtB,mBAAc,GAAd,cAAc,CAAkB;QAlB1C,OAAE,GAAG,IAAIA,EAAO,EAAE,EAAE,CAAC;QAIZ,UAAK,GAAG,OAAO,CAAC;QACf,mBAAc,GAAG,IAAI,YAAY,EAAW,CAAC;QACvD,mCAAuC;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Ac,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC1C;;;;YAnEF,SAAS,SAAC;gBACT,QAAQ,EAAE,gBAAgB;gBAC1B,63CAA2C;gBAE3C,eAAe,EAAE,uBAAuB,CAAC,MAAM;;aAChD;;;YArBC,wBAAwB;YACxB,cAAc;YACd,QAAQ;YAQR,iBAAiB;YAIV,gBAAgB;;;qBAUtB,SAAS,SAAC,SAAS;oBACnB,KAAK;uBACL,KAAK;oBACL,KAAK;6BACL,MAAM;;;MCHI,kBAAkB;;;YAlB9B,QAAQ,SAAC;gBACR,OAAO,EAAE;oBACP,YAAY;oBACZ,aAAa;oBACb,eAAe;oBACf,eAAe;oBACf,cAAc;oBACd,YAAY;iBACb;gBACD,YAAY,EAAE;oBACZ,YAAY;iBACb;gBACD,OAAO,EAAE;oBACP,YAAY;iBACb;gBACD,SAAS,EAAE,EACV;aACF;;;AC3BD;;;;ACAA;;;;;;"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, ChangeDetectorRef, Input, Output, NgModule } from '@angular/core';
|
|
2
|
-
import { FormControl, NgForm, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
5
|
-
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
6
|
-
import { Subscription } from 'rxjs';
|
|
7
|
-
import { v4 } from 'uuid';
|
|
8
|
-
|
|
9
|
-
var _name, _form, _subscription, _onChange;
|
|
10
|
-
class SdSwitch {
|
|
11
|
-
constructor(ref) {
|
|
12
|
-
this.ref = ref;
|
|
13
|
-
_name.set(this, v4());
|
|
14
|
-
_form.set(this, void 0);
|
|
15
|
-
this.color = 'primary';
|
|
16
|
-
this.modelChange = new EventEmitter();
|
|
17
|
-
this.sdChange = new EventEmitter();
|
|
18
|
-
this.formControl = new FormControl();
|
|
19
|
-
_subscription.set(this, new Subscription());
|
|
20
|
-
_onChange.set(this, (value) => {
|
|
21
|
-
this.modelChange.emit(value);
|
|
22
|
-
this.sdChange.emit(value);
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
set form(val) {
|
|
26
|
-
if (val) {
|
|
27
|
-
if (val instanceof NgForm) {
|
|
28
|
-
__classPrivateFieldSet(this, _form, val.form);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
__classPrivateFieldSet(this, _form, val);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
set disabled(val) {
|
|
36
|
-
val = (val === '') || val;
|
|
37
|
-
if (val) {
|
|
38
|
-
this.formControl.disable();
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this.formControl.enable();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
set model(value) {
|
|
45
|
-
if (this.formControl.value !== value) {
|
|
46
|
-
this.formControl.setValue(value, {
|
|
47
|
-
emitEvent: false
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
ngOnInit() {
|
|
52
|
-
}
|
|
53
|
-
ngAfterViewInit() {
|
|
54
|
-
var _a;
|
|
55
|
-
__classPrivateFieldGet(this, _subscription).add(this.formControl.valueChanges.subscribe(__classPrivateFieldGet(this, _onChange)));
|
|
56
|
-
(_a = __classPrivateFieldGet(this, _form)) === null || _a === void 0 ? void 0 : _a.addControl(__classPrivateFieldGet(this, _name), this.formControl);
|
|
57
|
-
this.ref.detectChanges();
|
|
58
|
-
}
|
|
59
|
-
ngOnDestroy() {
|
|
60
|
-
var _a;
|
|
61
|
-
(_a = __classPrivateFieldGet(this, _form)) === null || _a === void 0 ? void 0 : _a.removeControl(__classPrivateFieldGet(this, _name));
|
|
62
|
-
__classPrivateFieldGet(this, _subscription).unsubscribe();
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
_name = new WeakMap(), _form = new WeakMap(), _subscription = new WeakMap(), _onChange = new WeakMap();
|
|
66
|
-
SdSwitch.decorators = [
|
|
67
|
-
{ type: Component, args: [{
|
|
68
|
-
selector: 'sd-switch',
|
|
69
|
-
template: "<mat-slide-toggle [formControl]=\"formControl\" [color]=\"color\"><span\r\n class=\"c-label\">{{label}}</span></mat-slide-toggle>",
|
|
70
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
71
|
-
styles: [""]
|
|
72
|
-
},] }
|
|
73
|
-
];
|
|
74
|
-
SdSwitch.ctorParameters = () => [
|
|
75
|
-
{ type: ChangeDetectorRef }
|
|
76
|
-
];
|
|
77
|
-
SdSwitch.propDecorators = {
|
|
78
|
-
size: [{ type: Input }],
|
|
79
|
-
form: [{ type: Input }],
|
|
80
|
-
label: [{ type: Input }],
|
|
81
|
-
color: [{ type: Input }],
|
|
82
|
-
disabled: [{ type: Input }],
|
|
83
|
-
model: [{ type: Input }],
|
|
84
|
-
modelChange: [{ type: Output }],
|
|
85
|
-
sdChange: [{ type: Output }]
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
class SdSwitchModule {
|
|
89
|
-
}
|
|
90
|
-
SdSwitchModule.decorators = [
|
|
91
|
-
{ type: NgModule, args: [{
|
|
92
|
-
imports: [
|
|
93
|
-
CommonModule,
|
|
94
|
-
FormsModule,
|
|
95
|
-
ReactiveFormsModule,
|
|
96
|
-
MatSlideToggleModule,
|
|
97
|
-
],
|
|
98
|
-
declarations: [
|
|
99
|
-
SdSwitch
|
|
100
|
-
],
|
|
101
|
-
exports: [
|
|
102
|
-
SdSwitch
|
|
103
|
-
]
|
|
104
|
-
},] }
|
|
105
|
-
];
|
|
106
|
-
|
|
107
|
-
/*
|
|
108
|
-
* Public API Surface of superdev-angular-core
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Generated bundle index. Do not edit.
|
|
113
|
-
*/
|
|
114
|
-
|
|
115
|
-
export { SdSwitch, SdSwitchModule };
|
|
116
|
-
//# sourceMappingURL=sd-angular-core-switch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sd-angular-core-switch.js","sources":["../../../../projects/sd-core/switch/src/lib/switch.component.ts","../../../../projects/sd-core/switch/src/lib/switch.module.ts","../../../../projects/sd-core/switch/src/public-api.ts","../../../../projects/sd-core/switch/sd-angular-core-switch.ts"],"sourcesContent":["import { Component, Input, Output, EventEmitter, ChangeDetectorRef, ChangeDetectionStrategy } from '@angular/core';\r\nimport { FormControl, FormGroup, NgForm } from '@angular/forms';\r\nimport { Subscription } from 'rxjs';\r\nimport * as uuid from 'uuid';\r\n\r\n@Component({\r\n selector: 'sd-switch',\r\n templateUrl: './switch.component.html',\r\n styleUrls: ['./switch.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush\r\n})\r\nexport class SdSwitch {\r\n #name = uuid.v4();\r\n @Input() size: 'sm' | 'lg';\r\n #form: FormGroup;\r\n @Input() set form(val: NgForm | FormGroup) {\r\n if (val) {\r\n if (val instanceof NgForm) {\r\n this.#form = val.form;\r\n } else {\r\n this.#form = val;\r\n }\r\n }\r\n }\r\n @Input() label: string;\r\n @Input() color: 'primary' | 'warn' = 'primary';\r\n @Input() set disabled(val: boolean | '') {\r\n val = (val === '') || val;\r\n if (val) {\r\n this.formControl.disable();\r\n } else {\r\n this.formControl.enable();\r\n }\r\n }\r\n\r\n @Input() set model(value: any) {\r\n if (this.formControl.value !== value) {\r\n this.formControl.setValue(value, {\r\n emitEvent: false\r\n });\r\n }\r\n }\r\n\r\n @Output() modelChange = new EventEmitter();\r\n @Output() sdChange = new EventEmitter();\r\n formControl = new FormControl();\r\n #subscription = new Subscription();\r\n constructor(private ref: ChangeDetectorRef) {\r\n }\r\n\r\n ngOnInit() {\r\n }\r\n ngAfterViewInit() {\r\n this.#subscription.add(this.formControl.valueChanges.subscribe(this.#onChange));\r\n this.#form?.addControl(this.#name, this.formControl);\r\n this.ref.detectChanges();\r\n }\r\n\r\n ngOnDestroy() {\r\n this.#form?.removeControl(this.#name);\r\n this.#subscription.unsubscribe();\r\n }\r\n\r\n #onChange = (value: any) => {\r\n this.modelChange.emit(value);\r\n this.sdChange.emit(value);\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatSlideToggleModule } from '@angular/material/slide-toggle';\r\nimport { SdSwitch } from './switch.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n ReactiveFormsModule,\r\n MatSlideToggleModule,\r\n ],\r\n declarations: [\r\n SdSwitch\r\n ],\r\n exports: [\r\n SdSwitch\r\n ]\r\n})\r\nexport class SdSwitchModule { }\r\n","/*\r\n * Public API Surface of superdev-angular-core\r\n */\r\n\r\nexport * from './lib/switch.module';\r\nexport * from './lib/switch.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["uuid.v4"],"mappings":";;;;;;;;;MAWa,QAAQ;IAoCnB,YAAoB,GAAsB;QAAtB,QAAG,GAAH,GAAG,CAAmB;QAnC1C,gBAAQA,EAAO,EAAE,EAAC;QAElB,wBAAiB;QAWR,UAAK,GAAuB,SAAS,CAAC;QAkBrC,gBAAW,GAAG,IAAI,YAAY,EAAE,CAAC;QACjC,aAAQ,GAAG,IAAI,YAAY,EAAE,CAAC;QACxC,gBAAW,GAAG,IAAI,WAAW,EAAE,CAAC;QAChC,wBAAgB,IAAI,YAAY,EAAE,EAAC;QAiBnC,oBAAY,CAAC,KAAU;YACrB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAC7B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC3B,EAAA;KAlBA;IAjCD,IAAa,IAAI,CAAC,GAAuB;QACvC,IAAI,GAAG,EAAE;YACP,IAAI,GAAG,YAAY,MAAM,EAAE;gBACzB,uBAAA,IAAI,SAAS,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