cmat 0.0.16 → 0.0.18
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/components/carousel/carousel.component.d.ts +136 -0
- package/components/carousel/carousel.interface.d.ts +38 -0
- package/components/carousel/index.d.ts +5 -0
- package/components/carousel/public-api.d.ts +2 -0
- package/components/custom-formly/public-api.d.ts +1 -0
- package/components/custom-formly/types/knob/knob.component.d.ts +36 -0
- package/components/custom-formly/types/table/table.component.d.ts +3 -8
- package/components/custom-formly/wrappers/form-field/form-field.component.d.ts +4 -4
- package/components/image-viewer/image-viewer.component.d.ts +76 -0
- package/components/image-viewer/index.d.ts +5 -0
- package/components/image-viewer/public-api.d.ts +1 -0
- package/components/knob-input/index.d.ts +5 -0
- package/components/knob-input/knob-input.component.d.ts +95 -0
- package/components/knob-input/public-api.d.ts +1 -0
- package/components/material-datetimepicker/datetimepicker-input.d.ts +2 -2
- package/components/opt-input/index.d.ts +5 -0
- package/components/opt-input/models/config.d.ts +14 -0
- package/components/opt-input/otp-input.component.d.ts +70 -0
- package/components/opt-input/public-api.d.ts +1 -0
- package/components/opt-input/utils/keyboard-util.d.ts +9 -0
- package/components/opt-input/utils/object-util.d.ts +3 -0
- package/components/org-chart/designer/chart-designer.component.d.ts +17 -0
- package/components/org-chart/index.d.ts +5 -0
- package/components/org-chart/node/chart-node.component.d.ts +17 -0
- package/components/org-chart/node/node.type.d.ts +22 -0
- package/components/org-chart/org-chart.component.d.ts +12 -0
- package/components/org-chart/public-api.d.ts +2 -0
- package/components/popover/popover.interfaces.d.ts +1 -1
- package/components/select-search/select-search.component.d.ts +2 -1
- package/components/select-table/index.d.ts +5 -0
- package/components/select-table/public-api.d.ts +2 -0
- package/components/select-table/select-table.component.d.ts +96 -0
- package/components/select-table/select-table.type.d.ts +20 -0
- package/components/select-tree/select-tree.component.d.ts +11 -12
- package/components/speed-dial/index.d.ts +5 -0
- package/components/speed-dial/public-api.d.ts +2 -0
- package/components/speed-dial/speed-dial.component.d.ts +63 -0
- package/components/transfer-picker/interface.d.ts +0 -1
- package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.d.ts +8 -6
- package/components/treetable/index.d.ts +5 -0
- package/components/treetable/public-api.d.ts +2 -0
- package/components/treetable/treetable.component.d.ts +32 -0
- package/components/treetable/treetable.interface.d.ts +9 -0
- package/directives/animate-on-scroll/animate-on-scroll.directive.d.ts +4 -4
- package/directives/arrow-cursor/arrow-cursor.directive.d.ts +31 -0
- package/directives/arrow-cursor/index.d.ts +5 -0
- package/directives/arrow-cursor/public-api.d.ts +1 -0
- package/directives/data-exporter/constants.d.ts +26 -0
- package/directives/data-exporter/data-exporter.directive.d.ts +18 -0
- package/directives/data-exporter/index.d.ts +5 -0
- package/directives/data-exporter/mime.d.ts +5 -0
- package/directives/data-exporter/options.d.ts +21 -0
- package/directives/data-exporter/public-api.d.ts +2 -0
- package/directives/data-exporter/services/exporters/csv-exporter.service.d.ts +12 -0
- package/directives/data-exporter/services/exporters/exporter.d.ts +4 -0
- package/directives/data-exporter/services/exporters/file-exporter.d.ts +8 -0
- package/directives/data-exporter/services/exporters/json-exporter.service.d.ts +11 -0
- package/directives/data-exporter/services/exporters/txt-exporter.service.d.ts +12 -0
- package/directives/data-exporter/services/exporters/worksheet-exporter.d.ts +10 -0
- package/directives/data-exporter/services/exporters/xls-exporter.service.d.ts +14 -0
- package/directives/data-exporter/services/exporters/xlsx-exporter.service.d.ts +9 -0
- package/directives/data-exporter/services/file-util.d.ts +8 -0
- package/directives/data-exporter/services/service-locator.service.d.ts +11 -0
- package/directives/debounce/abstract-debounce.directive.d.ts +1 -1
- package/fesm2022/cmat-animations.mjs.map +1 -1
- package/fesm2022/cmat-components-adapter.mjs +9 -9
- package/fesm2022/cmat-components-adapter.mjs.map +1 -1
- package/fesm2022/cmat-components-breadcrumb.mjs +10 -10
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/cmat-components-card.mjs +4 -4
- package/fesm2022/cmat-components-card.mjs.map +1 -1
- package/fesm2022/cmat-components-carousel.mjs +711 -0
- package/fesm2022/cmat-components-carousel.mjs.map +1 -0
- package/fesm2022/cmat-components-cascade.mjs +12 -12
- package/fesm2022/cmat-components-cascade.mjs.map +1 -1
- package/fesm2022/cmat-components-chip-input.mjs +5 -5
- package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +168 -155
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-date-range.mjs +5 -5
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +6 -6
- package/fesm2022/cmat-components-drawer.mjs.map +1 -1
- package/fesm2022/cmat-components-fullscreen.mjs +4 -4
- package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
- package/fesm2022/cmat-components-highlight.mjs +7 -7
- package/fesm2022/cmat-components-highlight.mjs.map +1 -1
- package/fesm2022/cmat-components-image-viewer.mjs +227 -0
- package/fesm2022/cmat-components-image-viewer.mjs.map +1 -0
- package/fesm2022/cmat-components-json-editor.mjs +4 -4
- package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-knob-input.mjs +404 -0
- package/fesm2022/cmat-components-knob-input.mjs.map +1 -0
- package/fesm2022/cmat-components-masonry.mjs +4 -4
- package/fesm2022/cmat-components-masonry.mjs.map +1 -1
- package/fesm2022/cmat-components-material-color-picker.mjs +4 -4
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs +53 -53
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
- package/fesm2022/cmat-components-navigation.mjs +51 -51
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-opt-input.mjs +457 -0
- package/fesm2022/cmat-components-opt-input.mjs.map +1 -0
- package/fesm2022/cmat-components-org-chart.mjs +141 -0
- package/fesm2022/cmat-components-org-chart.mjs.map +1 -0
- package/fesm2022/cmat-components-pagination.mjs +13 -13
- package/fesm2022/cmat-components-pagination.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs +12 -12
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
- package/fesm2022/cmat-components-popover.mjs +10 -10
- package/fesm2022/cmat-components-popover.mjs.map +1 -1
- package/fesm2022/cmat-components-progress-bar.mjs +4 -4
- package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
- package/fesm2022/cmat-components-rating.mjs +4 -4
- package/fesm2022/cmat-components-rating.mjs.map +1 -1
- package/fesm2022/cmat-components-select-search.mjs +11 -11
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-select-table.mjs +658 -0
- package/fesm2022/cmat-components-select-table.mjs.map +1 -0
- package/fesm2022/cmat-components-select-tree.mjs +75 -57
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-speed-dial.mjs +312 -0
- package/fesm2022/cmat-components-speed-dial.mjs.map +1 -0
- package/fesm2022/cmat-components-timeline.mjs +14 -14
- package/fesm2022/cmat-components-timeline.mjs.map +1 -1
- package/fesm2022/cmat-components-toast.mjs +11 -11
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-transfer-picker.mjs +60 -41
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-treetable.mjs +122 -0
- package/fesm2022/cmat-components-treetable.mjs.map +1 -0
- package/fesm2022/cmat-components-upload.mjs +11 -11
- package/fesm2022/cmat-components-upload.mjs.map +1 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +21 -21
- package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/cmat-directives-arrow-cursor.mjs +184 -0
- package/fesm2022/cmat-directives-arrow-cursor.mjs.map +1 -0
- package/fesm2022/cmat-directives-autofocus.mjs +3 -3
- package/fesm2022/cmat-directives-autofocus.mjs.map +1 -1
- package/fesm2022/cmat-directives-data-exporter.mjs +324 -0
- package/fesm2022/cmat-directives-data-exporter.mjs.map +1 -0
- package/fesm2022/cmat-directives-debounce.mjs +9 -9
- package/fesm2022/cmat-directives-debounce.mjs.map +1 -1
- package/fesm2022/cmat-directives-digit-only.mjs +8 -6
- package/fesm2022/cmat-directives-digit-only.mjs.map +1 -1
- package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
- package/fesm2022/cmat-directives-equal-validator.mjs.map +1 -1
- package/fesm2022/cmat-lib-mock-api.mjs +6 -6
- package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
- package/fesm2022/cmat-pipes-bytes.mjs +3 -3
- package/fesm2022/cmat-pipes-bytes.mjs.map +1 -1
- package/fesm2022/cmat-pipes-date-format.mjs +3 -3
- package/fesm2022/cmat-pipes-date-format.mjs.map +1 -1
- package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
- package/fesm2022/cmat-pipes-find-by-key.mjs.map +1 -1
- package/fesm2022/cmat-pipes-group-by.mjs +3 -3
- package/fesm2022/cmat-pipes-group-by.mjs.map +1 -1
- package/fesm2022/cmat-pipes-keys.mjs +3 -3
- package/fesm2022/cmat-pipes-keys.mjs.map +1 -1
- package/fesm2022/cmat-pipes-secure.mjs +3 -3
- package/fesm2022/cmat-pipes-secure.mjs.map +1 -1
- package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
- package/fesm2022/cmat-pipes-uppercase.mjs.map +1 -1
- package/fesm2022/cmat-services-alert.mjs +3 -3
- package/fesm2022/cmat-services-alert.mjs.map +1 -1
- package/fesm2022/cmat-services-config.mjs +6 -6
- package/fesm2022/cmat-services-config.mjs.map +1 -1
- package/fesm2022/cmat-services-confirmation.mjs +7 -7
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
- package/fesm2022/cmat-services-data.mjs +5 -5
- package/fesm2022/cmat-services-data.mjs.map +1 -1
- package/fesm2022/cmat-services-export-as.mjs +211 -0
- package/fesm2022/cmat-services-export-as.mjs.map +1 -0
- package/fesm2022/cmat-services-loading.mjs +6 -6
- package/fesm2022/cmat-services-loading.mjs.map +1 -1
- package/fesm2022/cmat-services-local-storage.mjs +3 -3
- package/fesm2022/cmat-services-local-storage.mjs.map +1 -1
- package/fesm2022/cmat-services-media-watcher.mjs +3 -3
- package/fesm2022/cmat-services-media-watcher.mjs.map +1 -1
- package/fesm2022/cmat-services-platform.mjs +3 -3
- package/fesm2022/cmat-services-platform.mjs.map +1 -1
- package/fesm2022/cmat-services-splash-screen.mjs +3 -3
- package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
- package/fesm2022/cmat-services-title.mjs +3 -3
- package/fesm2022/cmat-services-title.mjs.map +1 -1
- package/fesm2022/cmat-services-translation.mjs +3 -3
- package/fesm2022/cmat-services-translation.mjs.map +1 -1
- package/fesm2022/cmat-services-utils.mjs +35 -3
- package/fesm2022/cmat-services-utils.mjs.map +1 -1
- package/fesm2022/cmat-validators.mjs.map +1 -1
- package/fesm2022/cmat-version.mjs.map +1 -1
- package/icons/arrow-cursor.svg +1 -1
- package/package.json +81 -147
- package/services/data/data.service.d.ts +1 -1
- package/services/export-as/export-as-config.model.d.ts +8 -0
- package/services/export-as/export-as.service.d.ts +43 -0
- package/services/export-as/index.d.ts +5 -0
- package/services/export-as/public-api.d.ts +2 -0
- package/services/utils/utils.service.d.ts +4 -0
- package/styles/overrides/angular-material.scss +95 -13
- package/esm2022/animations/cmat-animations.mjs +0 -5
- package/esm2022/animations/defaults.mjs +0 -12
- package/esm2022/animations/dropdown.mjs +0 -26
- package/esm2022/animations/expand-collapse.mjs +0 -17
- package/esm2022/animations/fade.mjs +0 -170
- package/esm2022/animations/public-api.mjs +0 -19
- package/esm2022/animations/shake.mjs +0 -59
- package/esm2022/animations/slide.mjs +0 -124
- package/esm2022/animations/transform.mjs +0 -16
- package/esm2022/animations/zoom.mjs +0 -38
- package/esm2022/cmat.mjs +0 -5
- package/esm2022/components/adapter/cmat-components-adapter.mjs +0 -5
- package/esm2022/components/adapter/datetime-adapter.mjs +0 -127
- package/esm2022/components/adapter/datetime-formats.mjs +0 -3
- package/esm2022/components/adapter/dayjs-date-adapter.mjs +0 -198
- package/esm2022/components/adapter/dayjs-date-formats.mjs +0 -12
- package/esm2022/components/adapter/dayjs-datetime-adapter.mjs +0 -100
- package/esm2022/components/adapter/dayjs-datetime-formats.mjs +0 -21
- package/esm2022/components/adapter/native-datetime-adapter.mjs +0 -130
- package/esm2022/components/adapter/native-datetime-formats.mjs +0 -15
- package/esm2022/components/adapter/public-api.mjs +0 -9
- package/esm2022/components/breadcrumb/breadcrumb-item.directive.mjs +0 -19
- package/esm2022/components/breadcrumb/breadcrumb.component.mjs +0 -94
- package/esm2022/components/breadcrumb/breadcrumb.service.mjs +0 -333
- package/esm2022/components/breadcrumb/cmat-components-breadcrumb.mjs +0 -5
- package/esm2022/components/breadcrumb/public-api.mjs +0 -6
- package/esm2022/components/breadcrumb/types/breadcrumb.config.mjs +0 -2
- package/esm2022/components/breadcrumb/types/breadcrumb.mjs +0 -2
- package/esm2022/components/card/card.component.mjs +0 -49
- package/esm2022/components/card/card.types.mjs +0 -2
- package/esm2022/components/card/cmat-components-card.mjs +0 -5
- package/esm2022/components/card/public-api.mjs +0 -3
- package/esm2022/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.mjs +0 -49
- package/esm2022/components/cascade/cascade-list/cascade-list.component.mjs +0 -384
- package/esm2022/components/cascade/cascade-menu/cascade-menu.component.mjs +0 -22
- package/esm2022/components/cascade/cmat-components-cascade.mjs +0 -5
- package/esm2022/components/cascade/options.interface.mjs +0 -2
- package/esm2022/components/cascade/public-api.mjs +0 -4
- package/esm2022/components/chip-input/chip-input.component.mjs +0 -251
- package/esm2022/components/chip-input/cmat-components-chip-input.mjs +0 -5
- package/esm2022/components/chip-input/public-api.mjs +0 -2
- package/esm2022/components/custom-formly/cmat-components-custom-formly.mjs +0 -5
- package/esm2022/components/custom-formly/extension/addons.extension.mjs +0 -13
- package/esm2022/components/custom-formly/public-api.mjs +0 -29
- package/esm2022/components/custom-formly/types/button/button.component.mjs +0 -81
- package/esm2022/components/custom-formly/types/cascade/cascade.component.mjs +0 -71
- package/esm2022/components/custom-formly/types/checklist/checklist.component.mjs +0 -161
- package/esm2022/components/custom-formly/types/chips/chips.component.mjs +0 -55
- package/esm2022/components/custom-formly/types/color-picker/color-picker.component.mjs +0 -15
- package/esm2022/components/custom-formly/types/date-range/date-range.component.mjs +0 -25
- package/esm2022/components/custom-formly/types/datepicker/datepicker.component.mjs +0 -51
- package/esm2022/components/custom-formly/types/multicheckbox/multicheckbox.component.mjs +0 -88
- package/esm2022/components/custom-formly/types/number/number.component.mjs +0 -27
- package/esm2022/components/custom-formly/types/quill/quill.component.mjs +0 -171
- package/esm2022/components/custom-formly/types/radio/radio.component.mjs +0 -87
- package/esm2022/components/custom-formly/types/rating/rating.component.mjs +0 -27
- package/esm2022/components/custom-formly/types/repeat/repeat.component.mjs +0 -25
- package/esm2022/components/custom-formly/types/select/select.component.mjs +0 -167
- package/esm2022/components/custom-formly/types/select-tree/select-tree.component.mjs +0 -66
- package/esm2022/components/custom-formly/types/stepper/horizontal/stepper.component.mjs +0 -28
- package/esm2022/components/custom-formly/types/stepper/stepper.type.mjs +0 -2
- package/esm2022/components/custom-formly/types/stepper/vertical/stepper.component.mjs +0 -28
- package/esm2022/components/custom-formly/types/table/table.component.mjs +0 -127
- package/esm2022/components/custom-formly/types/tabs/tab.component.mjs +0 -16
- package/esm2022/components/custom-formly/types/tags/tags.component.mjs +0 -146
- package/esm2022/components/custom-formly/types/textarea/textarea.component.mjs +0 -25
- package/esm2022/components/custom-formly/types/upload/upload.component.mjs +0 -58
- package/esm2022/components/custom-formly/wrappers/addons/addons.component.mjs +0 -92
- package/esm2022/components/custom-formly/wrappers/card/card.component.mjs +0 -14
- package/esm2022/components/custom-formly/wrappers/expansion/expansion.component.mjs +0 -14
- package/esm2022/components/custom-formly/wrappers/form-field/form-field.component.mjs +0 -47
- package/esm2022/components/custom-formly/wrappers/panel/panel.component.mjs +0 -12
- package/esm2022/components/date-range/cmat-components-date-range.mjs +0 -5
- package/esm2022/components/date-range/date-range.component.mjs +0 -558
- package/esm2022/components/date-range/public-api.mjs +0 -2
- package/esm2022/components/drawer/cmat-components-drawer.mjs +0 -5
- package/esm2022/components/drawer/drawer.component.mjs +0 -301
- package/esm2022/components/drawer/drawer.service.mjs +0 -41
- package/esm2022/components/drawer/drawer.types.mjs +0 -2
- package/esm2022/components/drawer/public-api.mjs +0 -4
- package/esm2022/components/fullscreen/cmat-components-fullscreen.mjs +0 -5
- package/esm2022/components/fullscreen/fullscreen.component.mjs +0 -44
- package/esm2022/components/fullscreen/public-api.mjs +0 -2
- package/esm2022/components/highlight/cmat-components-highlight.mjs +0 -5
- package/esm2022/components/highlight/highlight.component.mjs +0 -80
- package/esm2022/components/highlight/highlight.service.mjs +0 -47
- package/esm2022/components/highlight/public-api.mjs +0 -3
- package/esm2022/components/json-editor/cmat-components-json-editor.mjs +0 -5
- package/esm2022/components/json-editor/json-editor.component.mjs +0 -176
- package/esm2022/components/json-editor/public-api.mjs +0 -2
- package/esm2022/components/masonry/cmat-components-masonry.mjs +0 -5
- package/esm2022/components/masonry/masonry.component.mjs +0 -54
- package/esm2022/components/masonry/public-api.mjs +0 -2
- package/esm2022/components/material-color-picker/base-color.mjs +0 -13
- package/esm2022/components/material-color-picker/cmat-components-material-color-picker.mjs +0 -5
- package/esm2022/components/material-color-picker/material-color-picker.component.mjs +0 -147
- package/esm2022/components/material-color-picker/public-api.mjs +0 -3
- package/esm2022/components/material-color-picker/selected-color.mjs +0 -3
- package/esm2022/components/material-datetimepicker/calendar-body.mjs +0 -76
- package/esm2022/components/material-datetimepicker/calendar.mjs +0 -670
- package/esm2022/components/material-datetimepicker/clock.mjs +0 -290
- package/esm2022/components/material-datetimepicker/cmat-components-material-datetimepicker.mjs +0 -5
- package/esm2022/components/material-datetimepicker/datetimepicker-animations.mjs +0 -34
- package/esm2022/components/material-datetimepicker/datetimepicker-errors.mjs +0 -6
- package/esm2022/components/material-datetimepicker/datetimepicker-filtertype.mjs +0 -8
- package/esm2022/components/material-datetimepicker/datetimepicker-input.mjs +0 -341
- package/esm2022/components/material-datetimepicker/datetimepicker-intl.mjs +0 -63
- package/esm2022/components/material-datetimepicker/datetimepicker-toggle.mjs +0 -87
- package/esm2022/components/material-datetimepicker/datetimepicker-types.mjs +0 -2
- package/esm2022/components/material-datetimepicker/datetimepicker.mjs +0 -531
- package/esm2022/components/material-datetimepicker/month-view.mjs +0 -141
- package/esm2022/components/material-datetimepicker/multi-year-view.mjs +0 -197
- package/esm2022/components/material-datetimepicker/public-api.mjs +0 -11
- package/esm2022/components/material-datetimepicker/time.mjs +0 -455
- package/esm2022/components/material-datetimepicker/year-view.mjs +0 -124
- package/esm2022/components/navigation/cmat-components-navigation.mjs +0 -5
- package/esm2022/components/navigation/horizontal/components/basic/basic.component.mjs +0 -70
- package/esm2022/components/navigation/horizontal/components/branch/branch.component.mjs +0 -82
- package/esm2022/components/navigation/horizontal/components/divider/divider.component.mjs +0 -47
- package/esm2022/components/navigation/horizontal/components/spacer/spacer.component.mjs +0 -47
- package/esm2022/components/navigation/horizontal/horizontal.component.mjs +0 -87
- package/esm2022/components/navigation/navigation.service.mjs +0 -140
- package/esm2022/components/navigation/navigation.types.mjs +0 -3
- package/esm2022/components/navigation/public-api.mjs +0 -5
- package/esm2022/components/navigation/vertical/components/aside/aside.component.mjs +0 -162
- package/esm2022/components/navigation/vertical/components/basic/basic.component.mjs +0 -60
- package/esm2022/components/navigation/vertical/components/collapsable/collapsable.component.mjs +0 -277
- package/esm2022/components/navigation/vertical/components/divider/divider.component.mjs +0 -56
- package/esm2022/components/navigation/vertical/components/group/group.component.mjs +0 -78
- package/esm2022/components/navigation/vertical/components/spacer/spacer.component.mjs +0 -56
- package/esm2022/components/navigation/vertical/vertical.component.mjs +0 -584
- package/esm2022/components/pagination/cmat-components-pagination.mjs +0 -5
- package/esm2022/components/pagination/pagination.component.mjs +0 -67
- package/esm2022/components/pagination/pagination.directive.mjs +0 -197
- package/esm2022/components/pagination/pagination.instance.mjs +0 -2
- package/esm2022/components/pagination/pagination.pipe.mjs +0 -100
- package/esm2022/components/pagination/pagination.service.mjs +0 -90
- package/esm2022/components/pagination/public-api.mjs +0 -6
- package/esm2022/components/password-strength/animations/index.mjs +0 -48
- package/esm2022/components/password-strength/cmat-components-password-strength.mjs +0 -5
- package/esm2022/components/password-strength/enum.mjs +0 -17
- package/esm2022/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.mjs +0 -27
- package/esm2022/components/password-strength/mat-password-strength/mat-password-strength.component.mjs +0 -206
- package/esm2022/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.mjs +0 -150
- package/esm2022/components/password-strength/mat-password-strength-validator.mjs +0 -36
- package/esm2022/components/password-strength/public-api.mjs +0 -4
- package/esm2022/components/password-strength/regexp.class.mjs +0 -8
- package/esm2022/components/popover/cmat-components-popover.mjs +0 -5
- package/esm2022/components/popover/popover-trigger.mjs +0 -442
- package/esm2022/components/popover/popover.component.mjs +0 -348
- package/esm2022/components/popover/popover.errors.mjs +0 -27
- package/esm2022/components/popover/popover.interfaces.mjs +0 -2
- package/esm2022/components/popover/popover.target.mjs +0 -18
- package/esm2022/components/popover/popover.type.mjs +0 -2
- package/esm2022/components/popover/public-api.mjs +0 -5
- package/esm2022/components/progress-bar/cmat-components-progress-bar.mjs +0 -5
- package/esm2022/components/progress-bar/progress-bar.component.mjs +0 -58
- package/esm2022/components/progress-bar/public-api.mjs +0 -2
- package/esm2022/components/rating/cmat-components-rating.mjs +0 -5
- package/esm2022/components/rating/public-api.mjs +0 -2
- package/esm2022/components/rating/rating.component.mjs +0 -202
- package/esm2022/components/select-search/cmat-components-select-search.mjs +0 -5
- package/esm2022/components/select-search/default-options.mjs +0 -16
- package/esm2022/components/select-search/public-api.mjs +0 -3
- package/esm2022/components/select-search/select-no-entries-found.directive.mjs +0 -14
- package/esm2022/components/select-search/select-search-clear.directive.mjs +0 -14
- package/esm2022/components/select-search/select-search.component.mjs +0 -485
- package/esm2022/components/select-tree/cmat-components-select-tree.mjs +0 -5
- package/esm2022/components/select-tree/public-api.mjs +0 -4
- package/esm2022/components/select-tree/select-tree.component.mjs +0 -565
- package/esm2022/components/select-tree/select-tree.flatnode.mjs +0 -3
- package/esm2022/components/select-tree/select-tree.node.mjs +0 -3
- package/esm2022/components/timeline/cmat-components-timeline.mjs +0 -5
- package/esm2022/components/timeline/public-api.mjs +0 -3
- package/esm2022/components/timeline/timeline-item/timeline-item.component.mjs +0 -70
- package/esm2022/components/timeline/timeline.component.mjs +0 -107
- package/esm2022/components/toast/cmat-components-toast.mjs +0 -5
- package/esm2022/components/toast/models/global-config.model.mjs +0 -2
- package/esm2022/components/toast/models/toast.model.mjs +0 -2
- package/esm2022/components/toast/models/type.model.mjs +0 -2
- package/esm2022/components/toast/public-api.mjs +0 -7
- package/esm2022/components/toast/toast-modal.component.mjs +0 -53
- package/esm2022/components/toast/toast.component.mjs +0 -30
- package/esm2022/components/toast/toast.service.mjs +0 -122
- package/esm2022/components/transfer-picker/cmat-components-transfer-picker.mjs +0 -5
- package/esm2022/components/transfer-picker/filter/filter.component.mjs +0 -91
- package/esm2022/components/transfer-picker/interface.mjs +0 -17
- package/esm2022/components/transfer-picker/public-api.mjs +0 -8
- package/esm2022/components/transfer-picker/search/search.component.mjs +0 -38
- package/esm2022/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.mjs +0 -201
- package/esm2022/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.mjs +0 -32
- package/esm2022/components/transfer-picker/transfer-picker.component.mjs +0 -84
- package/esm2022/components/transfer-picker/transfer-picker.service.mjs +0 -137
- package/esm2022/components/upload/cmat-components-upload.mjs +0 -5
- package/esm2022/components/upload/files.type.mjs +0 -2
- package/esm2022/components/upload/files.util.service.mjs +0 -89
- package/esm2022/components/upload/public-api.mjs +0 -5
- package/esm2022/components/upload/upload-queue/upload-queue.component.mjs +0 -155
- package/esm2022/components/upload/upload.component.mjs +0 -118
- package/esm2022/directives/animate-on-scroll/animate-on-scroll.directive.mjs +0 -126
- package/esm2022/directives/animate-on-scroll/cmat-directives-animate-on-scroll.mjs +0 -5
- package/esm2022/directives/animate-on-scroll/public-api.mjs +0 -2
- package/esm2022/directives/animate-on-scroll/scroll.service.mjs +0 -38
- package/esm2022/directives/autofocus/autofocus.directive.mjs +0 -20
- package/esm2022/directives/autofocus/cmat-directives-autofocus.mjs +0 -5
- package/esm2022/directives/autofocus/public-api.mjs +0 -2
- package/esm2022/directives/debounce/abstract-debounce.directive.mjs +0 -34
- package/esm2022/directives/debounce/cmat-directives-debounce.mjs +0 -5
- package/esm2022/directives/debounce/debounce-click.directive.mjs +0 -25
- package/esm2022/directives/debounce/debounce-keyup.directive.mjs +0 -25
- package/esm2022/directives/debounce/public-api.mjs +0 -3
- package/esm2022/directives/digit-only/cmat-directives-digit-only.mjs +0 -5
- package/esm2022/directives/digit-only/digit-only.directive.mjs +0 -298
- package/esm2022/directives/digit-only/mask.directive.mjs +0 -84
- package/esm2022/directives/digit-only/public-api.mjs +0 -3
- package/esm2022/directives/equal-validator/cmat-directives-equal-validator.mjs +0 -5
- package/esm2022/directives/equal-validator/equal-validator.directive.mjs +0 -54
- package/esm2022/directives/equal-validator/public-api.mjs +0 -2
- package/esm2022/lib/mock-api/cmat-lib-mock-api.mjs +0 -5
- package/esm2022/lib/mock-api/mock-api.constants.mjs +0 -3
- package/esm2022/lib/mock-api/mock-api.interceptor.mjs +0 -73
- package/esm2022/lib/mock-api/mock-api.request-handler.mjs +0 -48
- package/esm2022/lib/mock-api/mock-api.service.mjs +0 -93
- package/esm2022/lib/mock-api/mock-api.types.mjs +0 -2
- package/esm2022/lib/mock-api/mock-api.utils.mjs +0 -16
- package/esm2022/lib/mock-api/public-api.mjs +0 -6
- package/esm2022/pipes/bytes/bytes.pipe.mjs +0 -25
- package/esm2022/pipes/bytes/cmat-pipes-bytes.mjs +0 -5
- package/esm2022/pipes/bytes/public-api.mjs +0 -2
- package/esm2022/pipes/date-format/cmat-pipes-date-format.mjs +0 -5
- package/esm2022/pipes/date-format/date-format.pipe.mjs +0 -20
- package/esm2022/pipes/date-format/public-api.mjs +0 -2
- package/esm2022/pipes/find-by-key/cmat-pipes-find-by-key.mjs +0 -5
- package/esm2022/pipes/find-by-key/find-by-key.pipe.mjs +0 -23
- package/esm2022/pipes/find-by-key/public-api.mjs +0 -2
- package/esm2022/pipes/group-by/cmat-pipes-group-by.mjs +0 -5
- package/esm2022/pipes/group-by/group-by.pipe.mjs +0 -29
- package/esm2022/pipes/group-by/public-api.mjs +0 -2
- package/esm2022/pipes/keys/cmat-pipes-keys.mjs +0 -5
- package/esm2022/pipes/keys/keys.pipe.mjs +0 -26
- package/esm2022/pipes/keys/public-api.mjs +0 -2
- package/esm2022/pipes/secure/cmat-pipes-secure.mjs +0 -5
- package/esm2022/pipes/secure/public-api.mjs +0 -2
- package/esm2022/pipes/secure/secure-pipe.mjs +0 -46
- package/esm2022/pipes/uppercase/cmat-pipes-uppercase.mjs +0 -5
- package/esm2022/pipes/uppercase/public-api.mjs +0 -2
- package/esm2022/pipes/uppercase/uppercase.pipe.mjs +0 -17
- package/esm2022/public-api.mjs +0 -2
- package/esm2022/services/alert/alert.dialog.mjs +0 -12
- package/esm2022/services/alert/alert.message.mjs +0 -9
- package/esm2022/services/alert/alert.service.mjs +0 -166
- package/esm2022/services/alert/cmat-services-alert.mjs +0 -5
- package/esm2022/services/alert/enum.mjs +0 -15
- package/esm2022/services/alert/public-api.mjs +0 -5
- package/esm2022/services/config/cmat-services-config.mjs +0 -5
- package/esm2022/services/config/config.constants.mjs +0 -3
- package/esm2022/services/config/config.service.mjs +0 -35
- package/esm2022/services/config/public-api.mjs +0 -4
- package/esm2022/services/config/urlStateConfig.service.mjs +0 -30
- package/esm2022/services/confirmation/cmat-services-confirmation.mjs +0 -5
- package/esm2022/services/confirmation/confirmation.service.mjs +0 -51
- package/esm2022/services/confirmation/confirmation.types.mjs +0 -2
- package/esm2022/services/confirmation/dialog/dialog.component.mjs +0 -25
- package/esm2022/services/confirmation/public-api.mjs +0 -3
- package/esm2022/services/data/cmat-services-data.mjs +0 -5
- package/esm2022/services/data/data.service.mjs +0 -169
- package/esm2022/services/data/public-api.mjs +0 -2
- package/esm2022/services/loading/cmat-services-loading.mjs +0 -5
- package/esm2022/services/loading/loading.interceptor.mjs +0 -29
- package/esm2022/services/loading/loading.service.mjs +0 -72
- package/esm2022/services/loading/public-api.mjs +0 -3
- package/esm2022/services/local-storage/cmat-services-local-storage.mjs +0 -5
- package/esm2022/services/local-storage/local-storage.service.mjs +0 -22
- package/esm2022/services/local-storage/public-api.mjs +0 -2
- package/esm2022/services/media-watcher/cmat-services-media-watcher.mjs +0 -5
- package/esm2022/services/media-watcher/media-watcher.service.mjs +0 -55
- package/esm2022/services/media-watcher/public-api.mjs +0 -2
- package/esm2022/services/platform/cmat-services-platform.mjs +0 -5
- package/esm2022/services/platform/platform.service.mjs +0 -46
- package/esm2022/services/platform/public-api.mjs +0 -2
- package/esm2022/services/splash-screen/cmat-services-splash-screen.mjs +0 -5
- package/esm2022/services/splash-screen/public-api.mjs +0 -2
- package/esm2022/services/splash-screen/splash-screen.service.mjs +0 -42
- package/esm2022/services/title/cmat-services-title.mjs +0 -5
- package/esm2022/services/title/public-api.mjs +0 -2
- package/esm2022/services/title/title.service.mjs +0 -46
- package/esm2022/services/translation/cmat-services-translation.mjs +0 -5
- package/esm2022/services/translation/public-api.mjs +0 -2
- package/esm2022/services/translation/translation.service.mjs +0 -62
- package/esm2022/services/utils/cmat-services-utils.mjs +0 -5
- package/esm2022/services/utils/public-api.mjs +0 -2
- package/esm2022/services/utils/utils.service.mjs +0 -435
- package/esm2022/validators/cmat-validators.mjs +0 -5
- package/esm2022/validators/public-api.mjs +0 -2
- package/esm2022/validators/validators.mjs +0 -33
- package/esm2022/version/cmat-version.mjs +0 -5
- package/esm2022/version/public-api.mjs +0 -2
- package/esm2022/version/version.mjs +0 -11
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface INode {
|
|
2
|
+
name: string;
|
|
3
|
+
cssClass: string;
|
|
4
|
+
image: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
showDetail: boolean;
|
|
8
|
+
children: INode[];
|
|
9
|
+
heightFactor?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class ChartNode implements INode {
|
|
12
|
+
name: string;
|
|
13
|
+
cssClass: string;
|
|
14
|
+
image: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
color?: string;
|
|
17
|
+
showDetail: boolean;
|
|
18
|
+
children: ChartNode[];
|
|
19
|
+
heightFactor?: number;
|
|
20
|
+
parent?: ChartNode;
|
|
21
|
+
constructor(structure: string[], parent?: ChartNode);
|
|
22
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { INode } from './node/node.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CmatOrgChartComponent {
|
|
5
|
+
nodes: INode[];
|
|
6
|
+
enableControlHeight: boolean;
|
|
7
|
+
direction: 'vertical' | 'horizontal';
|
|
8
|
+
detailsBtnTitle: string;
|
|
9
|
+
detailsBtnClick: EventEmitter<INode>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatOrgChartComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatOrgChartComponent, "cmat-org-chart", ["cmatOrgChart"], { "nodes": { "alias": "nodes"; "required": false; }; "enableControlHeight": { "alias": "enableControlHeight"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "detailsBtnTitle": { "alias": "detailsBtnTitle"; "required": false; }; }, { "detailsBtnClick": "detailsBtnClick"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -20,7 +20,7 @@ export interface CmatPopoverPanel {
|
|
|
20
20
|
closed: EventEmitter<void>;
|
|
21
21
|
setCurrentStyles: (pos?: CmatPopoverPosition) => void;
|
|
22
22
|
setPositionClasses: (pos?: CmatPopoverPosition) => void;
|
|
23
|
-
emitCloseEvent:
|
|
23
|
+
emitCloseEvent: VoidFunction;
|
|
24
24
|
}
|
|
25
25
|
export interface CmatPopoverConfig {
|
|
26
26
|
triggerEvent: CmatPopoverTriggerEvent;
|
|
@@ -5,6 +5,7 @@ import { MatOption } from '@angular/material/core';
|
|
|
5
5
|
import { MatFormField } from '@angular/material/form-field';
|
|
6
6
|
import { MatSelect } from '@angular/material/select';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
|
+
import { MatSelectSearchOptions } from './default-options';
|
|
8
9
|
import { CmatSelectNoEntriesFoundDirective } from './select-no-entries-found.directive';
|
|
9
10
|
import { CmatSelectSearchClearDirective } from './select-search-clear.directive';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
@@ -51,7 +52,7 @@ export declare class CmatSelectSearchComponent implements OnInit, OnDestroy, Con
|
|
|
51
52
|
private _onDestroy;
|
|
52
53
|
/** Reference to active descendant for ARIA Support. */
|
|
53
54
|
private _activeDescendant?;
|
|
54
|
-
constructor(matSelect: MatSelect, _changeDetectorRef: ChangeDetectorRef, _viewportRuler: ViewportRuler, _matOption?: MatOption | null, matFormField?: MatFormField | null, _defaultOptions?:
|
|
55
|
+
constructor(matSelect: MatSelect, _changeDetectorRef: ChangeDetectorRef, _viewportRuler: ViewportRuler, _matOption?: MatOption | null, matFormField?: MatFormField | null, _defaultOptions?: MatSelectSearchOptions | undefined);
|
|
55
56
|
/** whether to show the no entries found message */
|
|
56
57
|
showNoEntriesFound$: Observable<boolean>;
|
|
57
58
|
get isInsideMatOption(): boolean;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
4
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
5
|
+
import { MatSelect } from '@angular/material/select';
|
|
6
|
+
import { Sort } from '@angular/material/sort';
|
|
7
|
+
import { Subject } from 'rxjs';
|
|
8
|
+
import { CmatSelectTableColumn, CmatSelectTableDataSource, CmatSelectTableRow } from './select-table.type';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class CmatSelectTableComponent implements MatFormFieldControl<any>, ControlValueAccessor, AfterViewInit, OnDestroy, OnChanges {
|
|
11
|
+
ngControl: NgControl;
|
|
12
|
+
private _cd;
|
|
13
|
+
id: string;
|
|
14
|
+
dataSource: CmatSelectTableDataSource<CmatSelectTableRow>;
|
|
15
|
+
noEntriesFoundLabel: string;
|
|
16
|
+
showNoFoundLabel: boolean;
|
|
17
|
+
multiple: boolean;
|
|
18
|
+
overallSearchEnabled: boolean;
|
|
19
|
+
overallSearchVisible: boolean;
|
|
20
|
+
resetSortOnOpen: boolean;
|
|
21
|
+
resetFiltersOnOpen: boolean;
|
|
22
|
+
customTriggerLabelFn: (value: CmatSelectTableRow[]) => string;
|
|
23
|
+
triggerLabelSort: Sort;
|
|
24
|
+
customTriggerLabelTemplate: string;
|
|
25
|
+
canNull: boolean;
|
|
26
|
+
defaultSort: Sort;
|
|
27
|
+
resetOptionAction: () => void;
|
|
28
|
+
closed: EventEmitter<boolean>;
|
|
29
|
+
private _matSelectSearch;
|
|
30
|
+
private _sort;
|
|
31
|
+
private _table;
|
|
32
|
+
private _matOptions;
|
|
33
|
+
tableDataSource: CmatSelectTableRow[];
|
|
34
|
+
tableColumns: string[];
|
|
35
|
+
tableColumnsMap: Map<string, CmatSelectTableColumn>;
|
|
36
|
+
filteredOutRows: Record<string, CmatSelectTableRow>;
|
|
37
|
+
completeRowList: CmatSelectTableRow[];
|
|
38
|
+
overallSearchVisibleState: boolean;
|
|
39
|
+
overallFilterControl: FormControl;
|
|
40
|
+
selectControl: FormControl;
|
|
41
|
+
readonly stateChanges: Subject<void>;
|
|
42
|
+
focused: boolean;
|
|
43
|
+
touched: boolean;
|
|
44
|
+
private _matSelect;
|
|
45
|
+
private _filterControls;
|
|
46
|
+
private _nullRow;
|
|
47
|
+
private _unsubscribeAll;
|
|
48
|
+
private _completeValueList;
|
|
49
|
+
constructor(ngControl: NgControl, _cd: ChangeDetectorRef);
|
|
50
|
+
set matSelect(m: MatSelect);
|
|
51
|
+
clickedOut(): void;
|
|
52
|
+
ngAfterViewInit(): void;
|
|
53
|
+
ngOnDestroy(): void;
|
|
54
|
+
get placeholder(): string;
|
|
55
|
+
set placeholder(value: string);
|
|
56
|
+
private _placeholder;
|
|
57
|
+
get value(): any;
|
|
58
|
+
set value(value: any);
|
|
59
|
+
protected _value: any;
|
|
60
|
+
get empty(): boolean;
|
|
61
|
+
get errorState(): boolean;
|
|
62
|
+
get shouldLabelFloat(): boolean;
|
|
63
|
+
get required(): boolean;
|
|
64
|
+
set required(value: any);
|
|
65
|
+
protected _required: boolean;
|
|
66
|
+
get disabled(): boolean;
|
|
67
|
+
set disabled(value: BooleanInput);
|
|
68
|
+
protected _disabled: boolean;
|
|
69
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
70
|
+
registerOnTouched(fn: () => object): void;
|
|
71
|
+
setDisabledState(isDisabled: boolean): void;
|
|
72
|
+
setDescribedByIds(ids: string[]): void;
|
|
73
|
+
onContainerClick(): void;
|
|
74
|
+
onFocusIn(): void;
|
|
75
|
+
onFocusOut(event: FocusEvent): void;
|
|
76
|
+
writeValue(value: any): void;
|
|
77
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
78
|
+
emulateMatOptionClick(event: MouseEvent): void;
|
|
79
|
+
openedChange(opened: boolean): void;
|
|
80
|
+
filterFormControl(key: string): FormControl;
|
|
81
|
+
simpleTriggerLabelFn(value: CmatSelectTableRow[]): string;
|
|
82
|
+
toggleOverallSearch(): void;
|
|
83
|
+
addNullRow(): boolean;
|
|
84
|
+
compareObjects(o1: any, o2: any): boolean;
|
|
85
|
+
private _onModelChange;
|
|
86
|
+
private _onTouchedChange;
|
|
87
|
+
private _updateCompleteRowList;
|
|
88
|
+
private _applyColumnLevelFilters;
|
|
89
|
+
private _applyOverallFilter;
|
|
90
|
+
private _resetFilters;
|
|
91
|
+
private _sortingDataAccessor;
|
|
92
|
+
private _sortData;
|
|
93
|
+
private _checkAndResetSelection;
|
|
94
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSelectTableComponent, [{ optional: true; self: true; }, null]>;
|
|
95
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSelectTableComponent, "cmat-select-table", ["cmatSelectTable"], { "id": { "alias": "id"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "showNoFoundLabel": { "alias": "showNoFoundLabel"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "overallSearchEnabled": { "alias": "overallSearchEnabled"; "required": false; }; "overallSearchVisible": { "alias": "overallSearchVisible"; "required": false; }; "resetSortOnOpen": { "alias": "resetSortOnOpen"; "required": false; }; "resetFiltersOnOpen": { "alias": "resetFiltersOnOpen"; "required": false; }; "customTriggerLabelFn": { "alias": "customTriggerLabelFn"; "required": false; }; "triggerLabelSort": { "alias": "triggerLabelSort"; "required": false; }; "customTriggerLabelTemplate": { "alias": "customTriggerLabelTemplate"; "required": false; }; "canNull": { "alias": "canNull"; "required": false; }; "defaultSort": { "alias": "defaultSort"; "required": false; }; "resetOptionAction": { "alias": "resetOptionAction"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface CmatSelectTableRow {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
id: string | number | null;
|
|
4
|
+
}
|
|
5
|
+
export interface CmatSelectTableFilter {
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
type: 'string' | 'number';
|
|
8
|
+
comparator?: 'equalsIgnoreCase' | 'equals' | 'containsIgnoreCase' | 'contains' | 'startsWithIgnoreCase' | 'startsWith';
|
|
9
|
+
comparatorFn?: (value: any, filterValue: any, row: CmatSelectTableRow) => boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface CmatSelectTableColumn {
|
|
12
|
+
key: string;
|
|
13
|
+
name: string;
|
|
14
|
+
sortable: boolean;
|
|
15
|
+
filter: CmatSelectTableFilter;
|
|
16
|
+
}
|
|
17
|
+
export interface CmatSelectTableDataSource<T extends CmatSelectTableRow> {
|
|
18
|
+
columns: CmatSelectTableColumn[];
|
|
19
|
+
data: T[];
|
|
20
|
+
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
3
|
-
import {
|
|
3
|
+
import { CdkTree } from '@angular/cdk/tree';
|
|
4
4
|
import { AfterViewInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
5
5
|
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
6
6
|
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
7
7
|
import { MatSelect } from '@angular/material/select';
|
|
8
|
-
import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree';
|
|
9
8
|
import { ReplaySubject, Subject } from 'rxjs';
|
|
10
9
|
import { CmatSelectTreeFlatNode } from './select-tree.flatnode';
|
|
11
10
|
import { CmatSelectTreeNode } from './select-tree.node';
|
|
@@ -27,10 +26,9 @@ export declare class CmatSelectTreeComponent implements MatFormFieldControl<any>
|
|
|
27
26
|
flatNodeMap: Map<CmatSelectTreeFlatNode, CmatSelectTreeNode>;
|
|
28
27
|
nestedNodeMap: Map<CmatSelectTreeNode, CmatSelectTreeFlatNode>;
|
|
29
28
|
selectedParent: CmatSelectTreeFlatNode | null;
|
|
30
|
-
treeControl: FlatTreeControl<CmatSelectTreeFlatNode>;
|
|
31
|
-
treeFlattener: MatTreeFlattener<CmatSelectTreeNode, CmatSelectTreeFlatNode>;
|
|
32
29
|
checklistSelection: SelectionModel<CmatSelectTreeFlatNode>;
|
|
33
|
-
treeDataSource:
|
|
30
|
+
treeDataSource: CmatSelectTreeNode[];
|
|
31
|
+
dataFlatNodes: CmatSelectTreeFlatNode[];
|
|
34
32
|
overallFilterControl: FormControl;
|
|
35
33
|
isIndeterminate: boolean;
|
|
36
34
|
isChecked: boolean;
|
|
@@ -40,18 +38,15 @@ export declare class CmatSelectTreeComponent implements MatFormFieldControl<any>
|
|
|
40
38
|
readonly stateChanges: Subject<void>;
|
|
41
39
|
focused: boolean;
|
|
42
40
|
touched: boolean;
|
|
43
|
-
controlType: string;
|
|
44
41
|
private _matSelect;
|
|
45
42
|
private _unsubscribeAll;
|
|
46
43
|
constructor(ngControl: NgControl, _changeDetectorRef: ChangeDetectorRef);
|
|
47
44
|
set matSelect(m: MatSelect);
|
|
45
|
+
tree: CdkTree<CmatSelectTreeNode>;
|
|
48
46
|
clickedOut(): void;
|
|
49
|
-
getLevel: (
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
hasChild: (_: number, _nodeData: CmatSelectTreeFlatNode) => boolean;
|
|
53
|
-
hasNoContent: (_: number, _nodeData: CmatSelectTreeFlatNode) => boolean;
|
|
54
|
-
transformer: (node: CmatSelectTreeNode, level: number) => CmatSelectTreeFlatNode;
|
|
47
|
+
getLevel: (dataNode: CmatSelectTreeFlatNode) => number;
|
|
48
|
+
childrenAccessor: (node: CmatSelectTreeNode) => CmatSelectTreeNode[];
|
|
49
|
+
hasChild: (_: number, node: CmatSelectTreeNode) => boolean;
|
|
55
50
|
ngOnChanges(changes: SimpleChanges): void;
|
|
56
51
|
ngAfterViewInit(): void;
|
|
57
52
|
ngOnDestroy(): void;
|
|
@@ -89,6 +84,7 @@ export declare class CmatSelectTreeComponent implements MatFormFieldControl<any>
|
|
|
89
84
|
todoLeafItemSelectionToggle(event: any, node: CmatSelectTreeFlatNode): void;
|
|
90
85
|
clearSelection(): void;
|
|
91
86
|
toggleSelectAll(selectAllValue: boolean): void;
|
|
87
|
+
getChecklistSelectionIsSelected(i: CmatSelectTreeNode): boolean;
|
|
92
88
|
compareObjects(o1: any, o2: any): boolean;
|
|
93
89
|
private _onModelChange;
|
|
94
90
|
private _onTouchedChange;
|
|
@@ -101,6 +97,9 @@ export declare class CmatSelectTreeComponent implements MatFormFieldControl<any>
|
|
|
101
97
|
private _updateSelect;
|
|
102
98
|
private _applyColumnLevelFilters;
|
|
103
99
|
private _updateCheckState;
|
|
100
|
+
private _getFlattenNodes;
|
|
101
|
+
private _transformer;
|
|
102
|
+
private _getDescendants;
|
|
104
103
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSelectTreeComponent, [{ optional: true; self: true; }, null]>;
|
|
105
104
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSelectTreeComponent, "cmat-select-tree", ["cmatSelectTree"], { "id": { "alias": "id"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "showNoFoundLabel": { "alias": "showNoFoundLabel"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "overallSearchEnabled": { "alias": "overallSearchEnabled"; "required": false; }; "canNull": { "alias": "canNull"; "required": false; }; "customTriggerLabelFn": { "alias": "customTriggerLabelFn"; "required": false; }; "customTriggerLabelTemplate": { "alias": "customTriggerLabelTemplate"; "required": false; }; "expandable": { "alias": "expandable"; "required": false; }; "showToggleAllCheckbox": { "alias": "showToggleAllCheckbox"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
106
105
|
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type Direction = 'up' | 'down' | 'left' | 'right';
|
|
4
|
+
export type AnimationMode = 'fling' | 'scale';
|
|
5
|
+
export declare class CmatSpeedDialActionsComponent implements AfterContentInit {
|
|
6
|
+
private _changeDetectorRef;
|
|
7
|
+
private _buttons;
|
|
8
|
+
miniFabVisible: boolean;
|
|
9
|
+
private readonly _renderer;
|
|
10
|
+
private readonly _parent;
|
|
11
|
+
private _showMiniFabAnimation;
|
|
12
|
+
private _hideMiniFab;
|
|
13
|
+
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
14
|
+
ngAfterContentInit(): void;
|
|
15
|
+
show(): void;
|
|
16
|
+
hide(): void;
|
|
17
|
+
private _initButtonStates;
|
|
18
|
+
private _resetAnimationState;
|
|
19
|
+
private _getTranslateFunction;
|
|
20
|
+
private _changeElementStyle;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSpeedDialActionsComponent, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSpeedDialActionsComponent, "cmat-speed-dial-actions", never, {}, {}, ["_buttons"], ["[mat-mini-fab]"], true, never>;
|
|
23
|
+
}
|
|
24
|
+
export declare class CmatSpeedDialComponent implements OnDestroy, AfterContentInit {
|
|
25
|
+
readonly openChange: EventEmitter<boolean>;
|
|
26
|
+
private _childActions;
|
|
27
|
+
private readonly _elementRef;
|
|
28
|
+
private readonly _renderer;
|
|
29
|
+
private readonly _document;
|
|
30
|
+
private _isInitialized;
|
|
31
|
+
private _direction;
|
|
32
|
+
private _open;
|
|
33
|
+
private _animationMode;
|
|
34
|
+
private _fixed;
|
|
35
|
+
private _documentClickUnlistener;
|
|
36
|
+
get fixed(): boolean;
|
|
37
|
+
set fixed(fixed: boolean);
|
|
38
|
+
get open(): boolean;
|
|
39
|
+
set open(open: boolean);
|
|
40
|
+
get direction(): Direction;
|
|
41
|
+
set direction(direction: Direction);
|
|
42
|
+
get animationMode(): AnimationMode;
|
|
43
|
+
set animationMode(animationMode: AnimationMode);
|
|
44
|
+
ngAfterContentInit(): void;
|
|
45
|
+
ngOnDestroy(): void;
|
|
46
|
+
toggle(): void;
|
|
47
|
+
onClick(): void;
|
|
48
|
+
setActionsVisibility(): void;
|
|
49
|
+
private _setElementClass;
|
|
50
|
+
private _processOutsideClickState;
|
|
51
|
+
private _setDocumentClickListener;
|
|
52
|
+
private _unsetDocumentClickListener;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSpeedDialComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSpeedDialComponent, "cmat-speed-dial", never, { "fixed": { "alias": "fixed"; "required": false; }; "open": { "alias": "open"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "animationMode": { "alias": "animationMode"; "required": false; }; }, { "openChange": "openChange"; }, ["_childActions"], ["cmat-speed-dial-trigger", "cmat-speed-dial-actions"], true, never>;
|
|
55
|
+
}
|
|
56
|
+
export declare class CmatSpeedDialTriggerComponent {
|
|
57
|
+
spin: boolean;
|
|
58
|
+
private readonly _parent;
|
|
59
|
+
get sp(): boolean;
|
|
60
|
+
onClick(event: Event): void;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSpeedDialTriggerComponent, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSpeedDialTriggerComponent, "cmat-speed-dial-trigger", never, { "spin": { "alias": "spin"; "required": false; }; }, {}, never, ["[mat-fab]"], true, never>;
|
|
63
|
+
}
|
|
@@ -6,7 +6,6 @@ export declare class CmatTransferItemNode {
|
|
|
6
6
|
children?: CmatTransferItemNode[];
|
|
7
7
|
label: string;
|
|
8
8
|
value: string | number;
|
|
9
|
-
disabled?: boolean;
|
|
10
9
|
}
|
|
11
10
|
/** Flat Transfer item node with expandable and level information */
|
|
12
11
|
export declare class CmatTransferItemFlatNode {
|
package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
2
|
-
import {
|
|
2
|
+
import { CdkTree } from '@angular/cdk/tree';
|
|
3
3
|
import { AfterViewInit, ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
4
|
-
import { MatTreeFlatDataSource, MatTreeFlattener } from '@angular/material/tree';
|
|
5
4
|
import { CmatSourceOptions, CmatTransferItemFlatNode, CmatTransferItemNode } from '../interface';
|
|
6
5
|
import { CmatTransferPickerService } from '../transfer-picker.service';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
7
|
export declare class CmatTransferPickerSourceComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
9
8
|
private _service;
|
|
10
9
|
private _changeDetectorRef;
|
|
10
|
+
tree: CdkTree<CmatTransferItemNode>;
|
|
11
11
|
/** Map from nested node to flattened node. This helps us to keep the same object for selection */
|
|
12
12
|
nestedNodeMap: Map<CmatTransferItemNode, CmatTransferItemFlatNode>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
dataSource: MatTreeFlatDataSource<CmatTransferItemNode, CmatTransferItemFlatNode>;
|
|
13
|
+
dataSource: CmatTransferItemNode[];
|
|
14
|
+
dataFlatNodes: CmatTransferItemFlatNode[];
|
|
16
15
|
/** The selection for checklist */
|
|
17
16
|
checklistSelection: SelectionModel<CmatTransferItemFlatNode>;
|
|
18
17
|
options: CmatSourceOptions;
|
|
@@ -24,7 +23,8 @@ export declare class CmatTransferPickerSourceComponent implements OnInit, AfterV
|
|
|
24
23
|
ngOnDestroy(): void;
|
|
25
24
|
getSelectedList(): CmatTransferItemFlatNode[];
|
|
26
25
|
resetSelectedItem(item: CmatTransferItemFlatNode): void;
|
|
27
|
-
|
|
26
|
+
childrenAccessor: (node: CmatTransferItemNode) => CmatTransferItemNode[];
|
|
27
|
+
hasChild: (_: number, node: CmatTransferItemNode) => boolean;
|
|
28
28
|
/** Whether all the descendants of the node are selected */
|
|
29
29
|
descendantsAllSelected(node: CmatTransferItemFlatNode): boolean;
|
|
30
30
|
/** Whether part of the descendants are selected */
|
|
@@ -40,6 +40,8 @@ export declare class CmatTransferPickerSourceComponent implements OnInit, AfterV
|
|
|
40
40
|
* Transformer to convert nested node to flat node. Record the nodes in maps for later use.
|
|
41
41
|
*/
|
|
42
42
|
private _transformer;
|
|
43
|
+
private _getDescendants;
|
|
44
|
+
private _getFlattenNodes;
|
|
43
45
|
private _checkAllParentsSelection;
|
|
44
46
|
/** Check root node checked state and change it accordingly */
|
|
45
47
|
private _checkRootNodeSelection;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges, ChangeDetectorRef, TemplateRef } from '@angular/core';
|
|
2
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { CmatTreeTableNode } from './treetable.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CmatTreeTableColumnDirective {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTreeTableColumnDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatTreeTableColumnDirective, "ng-template[cmatTreeTableColumn]", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
export declare class CmatTreeTableComponent implements OnChanges {
|
|
11
|
+
private _changeDetectorRef;
|
|
12
|
+
data: CmatTreeTableNode[];
|
|
13
|
+
verticalSeparator: boolean;
|
|
14
|
+
initExpand: boolean;
|
|
15
|
+
tableClass: string;
|
|
16
|
+
showControlColumn: boolean;
|
|
17
|
+
nodeClicked: Subject<CmatTreeTableNode>;
|
|
18
|
+
customColumnTpl?: TemplateRef<any>;
|
|
19
|
+
displayedColumns: string[];
|
|
20
|
+
dataSource: MatTableDataSource<CmatTreeTableNode>;
|
|
21
|
+
private _treeTable;
|
|
22
|
+
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
23
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
|
+
formatIndentation(node: CmatTreeTableNode, step?: number): string;
|
|
25
|
+
onNodeClick(clickedNode: CmatTreeTableNode): void;
|
|
26
|
+
getDisplayedColumns(): string[];
|
|
27
|
+
private _switchNodeVisible;
|
|
28
|
+
private _generateDataSource;
|
|
29
|
+
private _getFlattenNodes;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTreeTableComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTreeTableComponent, "cmat-treetable", ["cmatTreeTable"], { "data": { "alias": "data"; "required": false; }; "verticalSeparator": { "alias": "verticalSeparator"; "required": false; }; "initExpand": { "alias": "initExpand"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "showControlColumn": { "alias": "showControlColumn"; "required": false; }; }, { "nodeClicked": "nodeClicked"; }, ["customColumnTpl"], never, true, never>;
|
|
32
|
+
}
|
|
@@ -2,9 +2,9 @@ import { AfterViewInit, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angula
|
|
|
2
2
|
import { ScrollService } from './scroll.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class CmatAnimationOnScrollDirective implements OnInit, OnDestroy, AfterViewInit {
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
-
private
|
|
5
|
+
private _elementRef;
|
|
6
|
+
private _renderer;
|
|
7
|
+
private _scroll;
|
|
8
8
|
animationName: string | null;
|
|
9
9
|
offset: number;
|
|
10
10
|
useScroll?: boolean;
|
|
@@ -14,7 +14,7 @@ export declare class CmatAnimationOnScrollDirective implements OnInit, OnDestroy
|
|
|
14
14
|
private _winHeight;
|
|
15
15
|
private _scrollSub;
|
|
16
16
|
private _resizeSub;
|
|
17
|
-
constructor(
|
|
17
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2, _scroll: ScrollService);
|
|
18
18
|
private get id();
|
|
19
19
|
ngOnInit(): void;
|
|
20
20
|
ngAfterViewInit(): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy, EventEmitter } from '@angular/core';
|
|
2
|
+
import { CmatMediaWatcherService } from 'cmat/services/media-watcher';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CmatArrowCursorDirective implements AfterViewInit, OnDestroy {
|
|
5
|
+
private _document;
|
|
6
|
+
private _cmatMediaWatcherService;
|
|
7
|
+
animationDuration: number;
|
|
8
|
+
orientation: 'horizontal' | 'vertical';
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
selector: string;
|
|
11
|
+
clickEvent: EventEmitter<string | null>;
|
|
12
|
+
cursorAnimationFrame: any;
|
|
13
|
+
isPhone: boolean;
|
|
14
|
+
arrowCursor: HTMLDivElement | null;
|
|
15
|
+
cursorClientX: number;
|
|
16
|
+
cursorClientY: number;
|
|
17
|
+
cursorIcon: SVGElement | null;
|
|
18
|
+
cursorSide: string | null;
|
|
19
|
+
oldCursorSide: string | null;
|
|
20
|
+
private _unsubscribeAll;
|
|
21
|
+
constructor(_document: Document, _cmatMediaWatcherService: CmatMediaWatcherService);
|
|
22
|
+
onMouseEnter(event: any): void;
|
|
23
|
+
onMouseLeave(event: any): void;
|
|
24
|
+
onMouseOver(event: any): void;
|
|
25
|
+
onClick(event: Event): void;
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
moveCursor(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatArrowCursorDirective, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatArrowCursorDirective, "[cmatArrowCursor]", never, { "animationDuration": { "alias": "animationDuration"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "selector": { "alias": "selector"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './arrow-cursor.directive';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Mime } from './mime';
|
|
2
|
+
export declare const TYPE_ARRAY = "array";
|
|
3
|
+
export declare const CHAR_SET_UTF = ";charset=utf-";
|
|
4
|
+
export declare const CHAR_SET_UTF_8: string;
|
|
5
|
+
export declare const CONTENT_TYPE_TEXT: string;
|
|
6
|
+
export declare const CONTENT_TYPE_APPLICATION = "application/";
|
|
7
|
+
export declare const CONTENT_TYPE_EXCEL: string;
|
|
8
|
+
export declare const CONTENT_TYPE_JSON: string;
|
|
9
|
+
export declare const DOT = ".";
|
|
10
|
+
export declare const COMMA = ",";
|
|
11
|
+
export declare const EXTENSION_XLS: string;
|
|
12
|
+
export declare const EXTENSION_XLSX: string;
|
|
13
|
+
export declare const EXTENSION_CSV: string;
|
|
14
|
+
export declare const EXTENSION_JSON: string;
|
|
15
|
+
export declare const EXTENSION_TEXT: string;
|
|
16
|
+
export declare const MIME_EXCEL_XLS: Mime;
|
|
17
|
+
export declare const MIME_EXCEL_XLSX: Mime;
|
|
18
|
+
export declare const MIME_JSON: Mime;
|
|
19
|
+
export declare const MIME_TXT: Mime;
|
|
20
|
+
export declare const MIME_CSV: Mime;
|
|
21
|
+
export declare const REF = "!ref";
|
|
22
|
+
export declare const XLS_REGEX: string;
|
|
23
|
+
export declare const RETURN = "\n";
|
|
24
|
+
export declare const TAB = "\t";
|
|
25
|
+
export declare const XLSX_COLS = "!cols";
|
|
26
|
+
export declare const BOM = "\uFEFF";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ExcelOptions, ExporterListInfo, ExportType, Options, TxtOptions } from './options';
|
|
3
|
+
import { ServiceLocatorService } from './services/service-locator.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CmatDataExporterDirective implements OnChanges {
|
|
6
|
+
private _serviceLocator;
|
|
7
|
+
dataSource: any[];
|
|
8
|
+
exportColumns: ExporterListInfo[];
|
|
9
|
+
options?: Options | ExcelOptions | TxtOptions;
|
|
10
|
+
exportType: ExportType | 'xls' | 'xlsx' | 'csv' | 'txt' | 'json';
|
|
11
|
+
private _data;
|
|
12
|
+
private _exporterService;
|
|
13
|
+
constructor(_serviceLocator: ServiceLocatorService);
|
|
14
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
15
|
+
private _loadExporter;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDataExporterDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatDataExporterDirective, "button[cmatDataExporter]", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "exportColumns": { "alias": "exportColumns"; "required": false; }; "options": { "alias": "options"; "required": false; }; "exportType": { "alias": "exportType"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WritingOptions } from 'xlsx';
|
|
2
|
+
export interface ExporterListInfo {
|
|
3
|
+
code: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare enum ExportType {
|
|
7
|
+
XLS = "xls",
|
|
8
|
+
XLSX = "xlsx",
|
|
9
|
+
CSV = "csv",
|
|
10
|
+
TXT = "txt",
|
|
11
|
+
JSON = "json"
|
|
12
|
+
}
|
|
13
|
+
export interface Options {
|
|
14
|
+
fileName?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface TxtOptions extends Options {
|
|
17
|
+
delimiter?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ExcelOptions extends Options, Omit<WritingOptions, 'bookType'> {
|
|
20
|
+
columnWidths: number[];
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { WorkSheet } from 'xlsx';
|
|
2
|
+
import { WorksheetExporter } from './worksheet-exporter';
|
|
3
|
+
import { Mime } from '../../mime';
|
|
4
|
+
import { TxtOptions } from '../../options';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CsvExporterService extends WorksheetExporter<TxtOptions> {
|
|
7
|
+
constructor();
|
|
8
|
+
workSheetToContent(worksheet: WorkSheet, options?: TxtOptions): Promise<any>;
|
|
9
|
+
getMimeType(): Mime;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CsvExporterService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CsvExporterService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Exporter } from './exporter';
|
|
2
|
+
import { Mime } from '../../mime';
|
|
3
|
+
import { Options } from '../../options';
|
|
4
|
+
export declare abstract class FileExporter<T extends Options> implements Exporter<T> {
|
|
5
|
+
export(rows: any[], options?: T): void;
|
|
6
|
+
abstract createContent(rows: any[], options?: T): Promise<any>;
|
|
7
|
+
abstract getMimeType(): Mime;
|
|
8
|
+
}
|