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,658 @@
|
|
|
1
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
2
|
+
import * as i5 from '@angular/common';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Self, HostBinding, Input, Output, ViewChild, ViewChildren, HostListener } from '@angular/core';
|
|
6
|
+
import * as i1 from '@angular/forms';
|
|
7
|
+
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import * as i2 from '@angular/material/form-field';
|
|
9
|
+
import { MatFormFieldControl, MatFormFieldModule } from '@angular/material/form-field';
|
|
10
|
+
import * as i6 from '@angular/material/icon';
|
|
11
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
+
import * as i8 from '@angular/material/input';
|
|
13
|
+
import { MatInputModule } from '@angular/material/input';
|
|
14
|
+
import * as i3 from '@angular/material/select';
|
|
15
|
+
import { MatOption, MatSelectModule } from '@angular/material/select';
|
|
16
|
+
import * as i9 from '@angular/material/sort';
|
|
17
|
+
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
18
|
+
import * as i7 from '@angular/material/table';
|
|
19
|
+
import { MatTable, MatTableModule } from '@angular/material/table';
|
|
20
|
+
import { isNil, isArray, isNumber, isString } from 'lodash-es';
|
|
21
|
+
import { Subject, merge, takeUntil, debounceTime } from 'rxjs';
|
|
22
|
+
import { CmatSelectSearchComponent } from 'cmat/components/select-search';
|
|
23
|
+
import { CmatDigitOnlyDirective } from 'cmat/directives/digit-only';
|
|
24
|
+
import * as i4 from '@angular/material/core';
|
|
25
|
+
|
|
26
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
27
|
+
const MAX_SAFE_INTEGER = 9007199254740991;
|
|
28
|
+
let NEXT_ID = 0;
|
|
29
|
+
class CmatSelectTableComponent {
|
|
30
|
+
constructor(ngControl, _cd) {
|
|
31
|
+
this.ngControl = ngControl;
|
|
32
|
+
this._cd = _cd;
|
|
33
|
+
this.id = `cmat-select-table-${NEXT_ID++}`;
|
|
34
|
+
this.noEntriesFoundLabel = '无结果';
|
|
35
|
+
this.showNoFoundLabel = true;
|
|
36
|
+
this.multiple = false;
|
|
37
|
+
this.overallSearchEnabled = true;
|
|
38
|
+
this.closed = new EventEmitter();
|
|
39
|
+
this.completeRowList = [];
|
|
40
|
+
this.overallFilterControl = new FormControl('');
|
|
41
|
+
this.selectControl = new FormControl();
|
|
42
|
+
this.stateChanges = new Subject();
|
|
43
|
+
this.focused = false;
|
|
44
|
+
this.touched = false;
|
|
45
|
+
this._nullRow = { id: null };
|
|
46
|
+
this._unsubscribeAll = new Subject();
|
|
47
|
+
this._completeValueList = [];
|
|
48
|
+
this._placeholder = '';
|
|
49
|
+
this._required = false;
|
|
50
|
+
this._disabled = false;
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
52
|
+
this._onModelChange = () => { };
|
|
53
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
54
|
+
this._onTouchedChange = () => { };
|
|
55
|
+
if (this.ngControl != null) {
|
|
56
|
+
this.ngControl.valueAccessor = this;
|
|
57
|
+
}
|
|
58
|
+
this.tableColumnsMap = new Map();
|
|
59
|
+
this._filterControls = new FormGroup({});
|
|
60
|
+
}
|
|
61
|
+
set matSelect(m) {
|
|
62
|
+
this._matSelect = m;
|
|
63
|
+
}
|
|
64
|
+
clickedOut() {
|
|
65
|
+
if (!this._matSelect?.panelOpen) {
|
|
66
|
+
this.focused = false;
|
|
67
|
+
this.stateChanges.next();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
ngAfterViewInit() {
|
|
71
|
+
let panelClass = '';
|
|
72
|
+
if (!this.overallSearchEnabled) {
|
|
73
|
+
panelClass = 'cmat-select-search-panel overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom cmat-select-search-table-panel';
|
|
74
|
+
}
|
|
75
|
+
if (this._matSelect.panelClass) {
|
|
76
|
+
if (Array.isArray(this._matSelect.panelClass)) {
|
|
77
|
+
this._matSelect.panelClass.push(panelClass);
|
|
78
|
+
}
|
|
79
|
+
else if (typeof this._matSelect.panelClass === 'string') {
|
|
80
|
+
this._matSelect.panelClass = [this._matSelect.panelClass, panelClass];
|
|
81
|
+
}
|
|
82
|
+
else if (typeof this._matSelect.panelClass === 'object') {
|
|
83
|
+
this._matSelect.panelClass.entries[panelClass] = true;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
this._matSelect.panelClass = panelClass;
|
|
88
|
+
}
|
|
89
|
+
merge(...[
|
|
90
|
+
this._sort.sortChange,
|
|
91
|
+
this._filterControls.valueChanges,
|
|
92
|
+
this.overallFilterControl.valueChanges
|
|
93
|
+
])
|
|
94
|
+
.pipe(takeUntil(this._unsubscribeAll), debounceTime(100))
|
|
95
|
+
.subscribe(() => {
|
|
96
|
+
const dataClone = [...((this.dataSource || { data: [] }).data || [])];
|
|
97
|
+
if (this.addNullRow()) {
|
|
98
|
+
dataClone.unshift(this._nullRow);
|
|
99
|
+
}
|
|
100
|
+
if (this.overallSearchEnabled && this.overallSearchVisibleState) {
|
|
101
|
+
this._applyOverallFilter(dataClone);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
this._applyColumnLevelFilters(dataClone);
|
|
105
|
+
}
|
|
106
|
+
if (!this._sort.active && !isNil(this.defaultSort) && this.defaultSort.active) {
|
|
107
|
+
this._sort.active = this.defaultSort.active;
|
|
108
|
+
this._sort.direction = this.defaultSort.direction;
|
|
109
|
+
}
|
|
110
|
+
this.tableDataSource = !this._sort.active ?
|
|
111
|
+
dataClone : this._sortData(dataClone, this._sort.active, this._sort.direction);
|
|
112
|
+
this._cd.detectChanges();
|
|
113
|
+
});
|
|
114
|
+
this._matOptions.changes.pipe(takeUntil(this._unsubscribeAll)).subscribe(() => {
|
|
115
|
+
const options = {};
|
|
116
|
+
this._matOptions
|
|
117
|
+
.toArray()
|
|
118
|
+
.filter(option => !isNil(option) && !isNil(option.value) && !option._getHostElement().classList.contains('contains-cmat-select-search'))
|
|
119
|
+
.forEach(option => options[`${option.value.id}`] = option);
|
|
120
|
+
if (this._matSelectSearch) {
|
|
121
|
+
this._matSelect?.options.reset([this._matOptions.first,
|
|
122
|
+
...this.tableDataSource
|
|
123
|
+
.filter(row => !isNil(options[`${row.id}`]))
|
|
124
|
+
.map(row => options[`${row.id}`])]);
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
this._matSelect?.options.reset(this.tableDataSource
|
|
128
|
+
.filter(row => !isNil(options[`${row.id}`]))
|
|
129
|
+
.map(row => options[`${row.id}`]));
|
|
130
|
+
}
|
|
131
|
+
try {
|
|
132
|
+
this._matSelect?.options.notifyOnChanges();
|
|
133
|
+
}
|
|
134
|
+
catch {
|
|
135
|
+
//do something
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
ngOnDestroy() {
|
|
140
|
+
this._unsubscribeAll.next(void 0);
|
|
141
|
+
this._unsubscribeAll.complete();
|
|
142
|
+
}
|
|
143
|
+
get placeholder() {
|
|
144
|
+
return this._placeholder;
|
|
145
|
+
}
|
|
146
|
+
set placeholder(value) {
|
|
147
|
+
this._placeholder = value;
|
|
148
|
+
this.stateChanges.next();
|
|
149
|
+
}
|
|
150
|
+
get value() {
|
|
151
|
+
return this._value;
|
|
152
|
+
}
|
|
153
|
+
set value(value) {
|
|
154
|
+
if (value !== this.value) {
|
|
155
|
+
this._value = value;
|
|
156
|
+
this.stateChanges.next();
|
|
157
|
+
this._onModelChange(value);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
get empty() {
|
|
161
|
+
return !this._value;
|
|
162
|
+
}
|
|
163
|
+
get errorState() {
|
|
164
|
+
if (this.ngControl == null)
|
|
165
|
+
return false;
|
|
166
|
+
return (this.touched && this.ngControl?.invalid) ?? false;
|
|
167
|
+
}
|
|
168
|
+
get shouldLabelFloat() {
|
|
169
|
+
return this.focused || !this.empty;
|
|
170
|
+
}
|
|
171
|
+
get required() { return this._required; }
|
|
172
|
+
set required(value) {
|
|
173
|
+
this._required = coerceBooleanProperty(value);
|
|
174
|
+
this.stateChanges.next();
|
|
175
|
+
}
|
|
176
|
+
get disabled() {
|
|
177
|
+
if (!isNil(this.ngControl?.disabled)) {
|
|
178
|
+
return this.ngControl.disabled;
|
|
179
|
+
}
|
|
180
|
+
return this._disabled;
|
|
181
|
+
}
|
|
182
|
+
set disabled(value) {
|
|
183
|
+
this._disabled = coerceBooleanProperty(value);
|
|
184
|
+
if (this.focused) {
|
|
185
|
+
this.focused = false;
|
|
186
|
+
this.stateChanges.next();
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
registerOnChange(fn) {
|
|
190
|
+
this._onModelChange = fn;
|
|
191
|
+
}
|
|
192
|
+
registerOnTouched(fn) {
|
|
193
|
+
this._onTouchedChange = fn;
|
|
194
|
+
this._matSelect?.registerOnTouched(fn);
|
|
195
|
+
}
|
|
196
|
+
setDisabledState(isDisabled) {
|
|
197
|
+
this._matSelect?.setDisabledState(isDisabled);
|
|
198
|
+
}
|
|
199
|
+
setDescribedByIds(ids) {
|
|
200
|
+
this._matSelect?.setDescribedByIds(ids);
|
|
201
|
+
}
|
|
202
|
+
onContainerClick() {
|
|
203
|
+
if (!this.focused) {
|
|
204
|
+
this._matSelect?.focus();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
onFocusIn() {
|
|
208
|
+
if (!this.focused) {
|
|
209
|
+
this.focused = true;
|
|
210
|
+
this.stateChanges.next();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
onFocusOut(event) {
|
|
214
|
+
if (!this._matSelect.panel.nativeElement.contains(event.relatedTarget)) {
|
|
215
|
+
this.touched = true;
|
|
216
|
+
this.focused = false;
|
|
217
|
+
this._onTouchedChange();
|
|
218
|
+
this.stateChanges.next();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
writeValue(value) {
|
|
222
|
+
this.completeRowList.splice(0);
|
|
223
|
+
this._completeValueList.splice(0);
|
|
224
|
+
if (value) {
|
|
225
|
+
if (this.multiple)
|
|
226
|
+
value.forEach((v) => this._updateCompleteRowList(v, true));
|
|
227
|
+
else {
|
|
228
|
+
this.completeRowList.push(value);
|
|
229
|
+
this._completeValueList.push(value.id);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
if (this._matSelect) {
|
|
233
|
+
this.value = value;
|
|
234
|
+
this._matSelect.writeValue(value);
|
|
235
|
+
this._matSelect._onChange(value);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
this.value = value;
|
|
239
|
+
}
|
|
240
|
+
this._cd.markForCheck();
|
|
241
|
+
}
|
|
242
|
+
ngOnChanges(changes) {
|
|
243
|
+
if (!isNil(changes.resetFiltersOnOpen) && changes.resetFiltersOnOpen.currentValue !== false) {
|
|
244
|
+
this._resetFilters();
|
|
245
|
+
}
|
|
246
|
+
if (!isNil(changes.dataSource)
|
|
247
|
+
&& !isNil(changes.dataSource.currentValue)
|
|
248
|
+
&& isArray(changes.dataSource.currentValue.data)) {
|
|
249
|
+
this.tableDataSource = [...changes.dataSource.currentValue.data];
|
|
250
|
+
if (this.addNullRow()) {
|
|
251
|
+
this.tableDataSource.unshift(this._nullRow);
|
|
252
|
+
}
|
|
253
|
+
this.tableColumns = ['_selection', ...changes.dataSource.currentValue.columns.map((column) => column.key)];
|
|
254
|
+
this.tableColumnsMap.clear();
|
|
255
|
+
changes.dataSource.currentValue.columns.forEach((column) => this.tableColumnsMap.set(column.key, column));
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
emulateMatOptionClick(event) {
|
|
259
|
+
if (event.composedPath()
|
|
260
|
+
.filter(et => et instanceof HTMLElement)
|
|
261
|
+
.some((et) => et.tagName.toLowerCase() === 'mat-option')) {
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
if (!(event.target instanceof HTMLElement)) {
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
let rowElement = event.target;
|
|
268
|
+
while (rowElement != null && rowElement instanceof HTMLElement && rowElement.tagName.toLowerCase() !== 'tr') {
|
|
269
|
+
rowElement = rowElement.parentElement;
|
|
270
|
+
}
|
|
271
|
+
if (rowElement === null) {
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
const childOption = rowElement.querySelector('mat-option');
|
|
275
|
+
if (!childOption) {
|
|
276
|
+
return;
|
|
277
|
+
}
|
|
278
|
+
childOption.click();
|
|
279
|
+
const option = this._matOptions.find(i => i.id == childOption.id);
|
|
280
|
+
if (this.multiple && this._matSelect.panelOpen) {
|
|
281
|
+
this._updateCompleteRowList(option.value, option._selected);
|
|
282
|
+
}
|
|
283
|
+
if (!this.multiple) {
|
|
284
|
+
this.completeRowList.splice(0);
|
|
285
|
+
this._completeValueList.splice(0);
|
|
286
|
+
if (option.value) {
|
|
287
|
+
this.completeRowList.push(option.value);
|
|
288
|
+
this._completeValueList.push(option.value.id);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
openedChange(opened) {
|
|
293
|
+
if (this.resetFiltersOnOpen !== false || (!this._matOptions.length && this.overallSearchEnabled) || (this.overallSearchEnabled && this._matOptions.length === 1)) {
|
|
294
|
+
this._resetFilters();
|
|
295
|
+
}
|
|
296
|
+
this.overallSearchVisibleState = this.overallSearchVisible;
|
|
297
|
+
if (this.resetSortOnOpen !== false) {
|
|
298
|
+
this._sort.sort({ id: '', start: 'asc', disableClear: false });
|
|
299
|
+
}
|
|
300
|
+
if (!opened) {
|
|
301
|
+
if (this.multiple) {
|
|
302
|
+
if (this.completeRowList.length > 0) {
|
|
303
|
+
this.value = this.completeRowList;
|
|
304
|
+
if (this._matSelect) {
|
|
305
|
+
this._matSelect._onChange(this.completeRowList);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
if (this.completeRowList.length === 0) {
|
|
309
|
+
this._checkAndResetSelection();
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
if (this._matSelect) {
|
|
314
|
+
this.value = this._matSelect.value;
|
|
315
|
+
this._matSelect._onChange(this._matSelect.value);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
this.closed.emit(!opened);
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
this._table._headerRowDefChanged = true;
|
|
322
|
+
const panelElement = this._matSelect.panel.nativeElement;
|
|
323
|
+
const panelHeight = panelElement.getBoundingClientRect().height;
|
|
324
|
+
let tableAdditionalHeight = 0;
|
|
325
|
+
this._table._getRenderedRows(this._table._headerRowOutlet)
|
|
326
|
+
.concat(this._table._getRenderedRows(this._table._footerRowOutlet))
|
|
327
|
+
.forEach(row => tableAdditionalHeight += row.getBoundingClientRect().height);
|
|
328
|
+
if (!isNaN(panelHeight)) {
|
|
329
|
+
panelElement.style.maxHeight = `${panelHeight + tableAdditionalHeight}px`;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
filterFormControl(key) {
|
|
333
|
+
if (!this._filterControls.contains(key)) {
|
|
334
|
+
this._filterControls.registerControl(key, new FormControl(''));
|
|
335
|
+
}
|
|
336
|
+
return this._filterControls.get(key);
|
|
337
|
+
}
|
|
338
|
+
simpleTriggerLabelFn(value) {
|
|
339
|
+
if (!isNil(this.triggerLabelSort)) {
|
|
340
|
+
this._sortData(value, this.triggerLabelSort.active, this.triggerLabelSort.direction);
|
|
341
|
+
}
|
|
342
|
+
return value.map((row) => {
|
|
343
|
+
if (isNil(row)) {
|
|
344
|
+
return '';
|
|
345
|
+
}
|
|
346
|
+
if (isNil(this.customTriggerLabelTemplate)
|
|
347
|
+
|| typeof this.customTriggerLabelTemplate !== 'string'
|
|
348
|
+
|| this.customTriggerLabelTemplate.trim().length === 0) {
|
|
349
|
+
return `${row.id}`;
|
|
350
|
+
}
|
|
351
|
+
let atLeastPartialSubstitution = false;
|
|
352
|
+
const substitution = this.customTriggerLabelTemplate.replace(/[$]{1}[{]{1}([^}]+)[}]{1}?/g, (_, key) => !isNil(row[key]) && (atLeastPartialSubstitution = true) ? row[key] : '');
|
|
353
|
+
if (atLeastPartialSubstitution === false) {
|
|
354
|
+
return `${row.id}`;
|
|
355
|
+
}
|
|
356
|
+
return substitution.trim();
|
|
357
|
+
}).join(', ');
|
|
358
|
+
}
|
|
359
|
+
toggleOverallSearch() {
|
|
360
|
+
this.overallSearchVisibleState = !this.overallSearchVisibleState;
|
|
361
|
+
this._resetFilters();
|
|
362
|
+
if (this.overallSearchVisibleState) {
|
|
363
|
+
setTimeout(() => this._matSelectSearch.focus());
|
|
364
|
+
}
|
|
365
|
+
this._cd.markForCheck();
|
|
366
|
+
}
|
|
367
|
+
addNullRow() {
|
|
368
|
+
return !this.multiple && this.canNull;
|
|
369
|
+
}
|
|
370
|
+
compareObjects(o1, o2) {
|
|
371
|
+
return o1 && o2 ? o1?.name === o2?.name && o1?.id === o2?.id : o1 === o2;
|
|
372
|
+
}
|
|
373
|
+
_updateCompleteRowList(value, selected) {
|
|
374
|
+
if (isNil(value)) {
|
|
375
|
+
return;
|
|
376
|
+
}
|
|
377
|
+
if (selected) {
|
|
378
|
+
((this.dataSource || { data: [] }).data || [])
|
|
379
|
+
.filter(row => !isNil(row) && !isNil(row.id) && row.id === value.id)
|
|
380
|
+
.forEach((row) => {
|
|
381
|
+
const i = this.completeRowList.find(i => i.id === value.id);
|
|
382
|
+
if (!i) {
|
|
383
|
+
this.completeRowList.push(row);
|
|
384
|
+
this._completeValueList.push(row.id);
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
const rowIndex = this.completeRowList.findIndex(i => i.id === value.id);
|
|
390
|
+
if (rowIndex > -1)
|
|
391
|
+
this.completeRowList.splice(rowIndex, 1);
|
|
392
|
+
const valueIndex = this._completeValueList.findIndex(i => i === value.id);
|
|
393
|
+
if (valueIndex > -1)
|
|
394
|
+
this._completeValueList.splice(valueIndex, 1);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
_applyColumnLevelFilters(data) {
|
|
398
|
+
this.filteredOutRows = {};
|
|
399
|
+
const filters = {};
|
|
400
|
+
Object.keys(this._filterControls.controls)
|
|
401
|
+
.filter(key => this.tableColumnsMap.has(key)
|
|
402
|
+
&& !isNil(this.tableColumnsMap.get(key)?.filter)
|
|
403
|
+
&& this.tableColumnsMap.get(key)?.filter.enabled !== false)
|
|
404
|
+
.filter((key) => {
|
|
405
|
+
const value = this._filterControls.get(key)?.value;
|
|
406
|
+
return !isNil(value)
|
|
407
|
+
&& ((isArray(value) && value.length > 0)
|
|
408
|
+
|| (typeof value === 'string' && value.trim().length > 0)
|
|
409
|
+
|| (typeof value === 'number' && `${value}`.trim().length > 0));
|
|
410
|
+
})
|
|
411
|
+
.forEach(key => filters[key] = {
|
|
412
|
+
filter: this.tableColumnsMap.get(key)?.filter,
|
|
413
|
+
value: this._filterControls.get(key)?.value
|
|
414
|
+
});
|
|
415
|
+
const filterKeys = Object.keys(filters);
|
|
416
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
417
|
+
// eslint-disable-next-line @typescript-eslint/prefer-for-of
|
|
418
|
+
for (let k = 0; k < filterKeys.length; k++) {
|
|
419
|
+
const filterKey = filterKeys[k];
|
|
420
|
+
const row = data[i];
|
|
421
|
+
if (isNil(row)) {
|
|
422
|
+
continue;
|
|
423
|
+
}
|
|
424
|
+
const cellValue = row[filterKey];
|
|
425
|
+
if (isNil(cellValue)) {
|
|
426
|
+
data.splice(i, 1).forEach(item => this.filteredOutRows[`${item.id}`] = item);
|
|
427
|
+
continue;
|
|
428
|
+
}
|
|
429
|
+
const filter = filters[filterKey];
|
|
430
|
+
const comparator = filter.filter?.comparator;
|
|
431
|
+
if (filter.filter?.type === 'number') {
|
|
432
|
+
filter.value = Number(filter.value);
|
|
433
|
+
}
|
|
434
|
+
if (typeof filter.filter?.comparatorFn === 'function') {
|
|
435
|
+
if (!filter.filter.comparatorFn.call(null, cellValue, filter.value, row)) {
|
|
436
|
+
data.splice(i, 1).forEach(item => this.filteredOutRows[`${item.id}`] = item);
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
else if (isNil(comparator) || comparator === 'equals') {
|
|
441
|
+
if (filter.value !== cellValue) {
|
|
442
|
+
data.splice(i, 1).forEach(item => this.filteredOutRows[`${item.id}`] = item);
|
|
443
|
+
break;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
else if (typeof cellValue === 'string' && typeof filter.value === 'string') {
|
|
447
|
+
const cellValueLC = `${cellValue}`.toLowerCase();
|
|
448
|
+
const filterValueLC = filter.value.toLowerCase();
|
|
449
|
+
if (isNil(comparator) || comparator === 'equalsIgnoreCase') {
|
|
450
|
+
if (filterValueLC !== cellValueLC) {
|
|
451
|
+
data.splice(i, 1).forEach(item => this.filteredOutRows[`${item.id}`] = item);
|
|
452
|
+
break;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
else if (comparator === 'contains') {
|
|
456
|
+
if (!cellValue.includes(filter.value)) {
|
|
457
|
+
data.splice(i, 1).forEach(item => this.filteredOutRows[`${item.id}`] = item);
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
else if (comparator === 'containsIgnoreCase') {
|
|
462
|
+
if (!cellValueLC.includes(filterValueLC)) {
|
|
463
|
+
data.splice(i, 1).forEach(item => this.filteredOutRows[`${item.id}`] = item);
|
|
464
|
+
break;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
else if (comparator === 'startsWith') {
|
|
468
|
+
if (!cellValue.startsWith(filter.value)) {
|
|
469
|
+
data.splice(i, 1).forEach(item => this.filteredOutRows[`${item.id}`] = item);
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
else if (comparator === 'startsWithIgnoreCase') {
|
|
474
|
+
if (!cellValueLC.startsWith(filterValueLC)) {
|
|
475
|
+
data.splice(i, 1).forEach(item => this.filteredOutRows[`${item.id}`] = item);
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
_applyOverallFilter(data) {
|
|
484
|
+
this.filteredOutRows = {};
|
|
485
|
+
if (isNil(this.overallFilterControl.value)) {
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
488
|
+
const filterValueLC = this.overallFilterControl.value.toLowerCase();
|
|
489
|
+
if (filterValueLC.trim().length === 0) {
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
for (let i = data.length - 1; i >= 0; i--) {
|
|
493
|
+
const row = data[i];
|
|
494
|
+
let rowShouldBeFiltered = true;
|
|
495
|
+
for (let j = this.dataSource.columns.length - 1; j >= 0; j--) {
|
|
496
|
+
const key = this.dataSource.columns[j].key;
|
|
497
|
+
const cellValue = row[key];
|
|
498
|
+
if (isNil(cellValue)) {
|
|
499
|
+
continue;
|
|
500
|
+
}
|
|
501
|
+
const cellValueLC = `${cellValue}`.toLowerCase();
|
|
502
|
+
if (cellValueLC.includes(filterValueLC)) {
|
|
503
|
+
rowShouldBeFiltered = false;
|
|
504
|
+
break;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
if (rowShouldBeFiltered) {
|
|
508
|
+
data.splice(i, 1).forEach(item => this.filteredOutRows[`${item.id}`] = item);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
_resetFilters() {
|
|
513
|
+
this.overallFilterControl.setValue('');
|
|
514
|
+
Object.keys(this._filterControls.controls)
|
|
515
|
+
.forEach(key => this._filterControls.get(key)?.setValue(''));
|
|
516
|
+
}
|
|
517
|
+
_sortingDataAccessor(data, active) {
|
|
518
|
+
const value = data[active];
|
|
519
|
+
if (isNumber(value)) {
|
|
520
|
+
const numberValue = Number(value);
|
|
521
|
+
return numberValue < MAX_SAFE_INTEGER ? numberValue : value;
|
|
522
|
+
}
|
|
523
|
+
return value;
|
|
524
|
+
}
|
|
525
|
+
_sortData(data, active, direction) {
|
|
526
|
+
if (!active || direction === '') {
|
|
527
|
+
return data;
|
|
528
|
+
}
|
|
529
|
+
return data.sort((a, b) => {
|
|
530
|
+
let aValue = this._sortingDataAccessor(a, active);
|
|
531
|
+
let bValue = this._sortingDataAccessor(b, active);
|
|
532
|
+
if (a.id === null) {
|
|
533
|
+
return -1;
|
|
534
|
+
}
|
|
535
|
+
else if (b.id === null) {
|
|
536
|
+
return 1;
|
|
537
|
+
}
|
|
538
|
+
// Both null/undefined/equal value check
|
|
539
|
+
if (aValue === bValue) {
|
|
540
|
+
return 0;
|
|
541
|
+
}
|
|
542
|
+
// One null value check
|
|
543
|
+
if (isNil(aValue) && !isNil(bValue)) {
|
|
544
|
+
return -1;
|
|
545
|
+
}
|
|
546
|
+
else if (!isNil(aValue) && isNil(bValue)) {
|
|
547
|
+
return 1;
|
|
548
|
+
}
|
|
549
|
+
if (aValue instanceof Date) {
|
|
550
|
+
aValue = aValue.getTime();
|
|
551
|
+
}
|
|
552
|
+
if (bValue instanceof Date) {
|
|
553
|
+
bValue = bValue.getTime();
|
|
554
|
+
}
|
|
555
|
+
// User localeCompare for strings
|
|
556
|
+
if (isString(aValue) && isString(bValue)) {
|
|
557
|
+
return (aValue).localeCompare(bValue) * (direction === 'asc' ? 1 : -1);
|
|
558
|
+
}
|
|
559
|
+
// Try to convert to a Number type
|
|
560
|
+
aValue = isNaN(aValue) ? `${aValue}` : +aValue;
|
|
561
|
+
bValue = isNaN(bValue) ? `${bValue}` : +bValue;
|
|
562
|
+
// if one is number and other is String
|
|
563
|
+
if (isString(aValue) && isNumber(bValue)) {
|
|
564
|
+
return (1) * (direction === 'asc' ? 1 : -1);
|
|
565
|
+
}
|
|
566
|
+
if (isNumber(aValue) && isString(bValue)) {
|
|
567
|
+
return (-1) * (direction === 'asc' ? 1 : -1);
|
|
568
|
+
}
|
|
569
|
+
return (aValue > bValue ? 1 : -1) * (direction === 'asc' ? 1 : -1);
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
_checkAndResetSelection() {
|
|
573
|
+
if (this._matSelect.value && isArray(this._matSelect.value) && this._matSelect.value.length < 1
|
|
574
|
+
&& !isNil(this.resetOptionAction)) {
|
|
575
|
+
this.resetOptionAction();
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatSelectTableComponent, deps: [{ token: i1.NgControl, optional: true, self: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
579
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: CmatSelectTableComponent, isStandalone: true, selector: "cmat-select-table", inputs: { id: "id", dataSource: "dataSource", noEntriesFoundLabel: "noEntriesFoundLabel", showNoFoundLabel: "showNoFoundLabel", multiple: "multiple", overallSearchEnabled: "overallSearchEnabled", overallSearchVisible: "overallSearchVisible", resetSortOnOpen: "resetSortOnOpen", resetFiltersOnOpen: "resetFiltersOnOpen", customTriggerLabelFn: "customTriggerLabelFn", triggerLabelSort: "triggerLabelSort", customTriggerLabelTemplate: "customTriggerLabelTemplate", canNull: "canNull", defaultSort: "defaultSort", resetOptionAction: "resetOptionAction", placeholder: "placeholder", value: "value", required: "required", disabled: "disabled" }, outputs: { closed: "closed" }, host: { listeners: { "document:click": "clickedOut()" }, properties: { "attr.id": "this.id" } }, providers: [{ provide: MatFormFieldControl, useExisting: CmatSelectTableComponent }], viewQueries: [{ propertyName: "_matSelectSearch", first: true, predicate: CmatSelectSearchComponent, descendants: true }, { propertyName: "_sort", first: true, predicate: MatSort, descendants: true }, { propertyName: "_table", first: true, predicate: MatTable, descendants: true }, { propertyName: "matSelect", first: true, predicate: ["componentSelect"], descendants: true }, { propertyName: "_matOptions", predicate: MatOption, descendants: true }], exportAs: ["cmatSelectTable"], usesOnChanges: true, ngImport: i0, template: "@if(multiple){\r\n<mat-select #componentSelect multiple disableRipple\r\n panelClass=\"overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom cmat-select-search-table-panel\"\r\n [placeholder]=\"placeholder\" [required]=\"required\" [formControl]=\"selectControl\" [compareWith]=\"compareObjects\"\r\n (focusin)=\"onFocusIn()\" (openedChange)=\"openedChange($event)\">\r\n <mat-select-trigger>\r\n @if(!customTriggerLabelFn){\r\n {{simpleTriggerLabelFn(completeRowList)}}\r\n }@else {\r\n {{customTriggerLabelFn(completeRowList)}}\r\n }\r\n </mat-select-trigger>\r\n\r\n <div [ngClass]=\"{'hidden-header': overallSearchVisibleState}\" (focusout)=\"onFocusOut($event)\">\r\n @if(overallSearchEnabled){\r\n <mat-option [ngClass]=\"{'hidden':!overallSearchVisibleState === true}\">\r\n <cmat-select-search [showNoFoundLabel]=\"showNoFoundLabel\" [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\r\n [formControl]=\"overallFilterControl\" [clearSearchInput]=\"resetFiltersOnOpen\">\r\n </cmat-select-search>\r\n </mat-option>\r\n\r\n <div class=\"overall-search-toggle\" [ngStyle]=\"{ height: overallSearchVisibleState ? '48px' : '55.4px' }\">\r\n <mat-icon color=\"primary\"\r\n [svgIcon]=\"overallSearchVisibleState ? 'mat_outline:arrow_back' : 'mat_outline:search'\"\r\n (click)=\"toggleOverallSearch()\">\r\n </mat-icon>\r\n </div>\r\n }\r\n <table #table mat-table matSort [dataSource]=\"tableDataSource\">\r\n @for (columnKey of tableColumns; track $index) {\r\n @switch (columnKey) {\r\n @case ('_selection') {\r\n <ng-container [matColumnDef]=\"columnKey\">\r\n <th *matHeaderCellDef mat-header-cell [ngClass]=\"{selection: true, hidden: !multiple}\"></th>\r\n <td *matCellDef=\"let row\" mat-cell [ngClass]=\"{selection: true, hidden: !multiple}\">\r\n <mat-option [value]=\"row\"></mat-option>\r\n </td>\r\n </ng-container>\r\n }\r\n @default {\r\n <ng-container [matColumnDef]=\"columnKey\">\r\n <th *matHeaderCellDef mat-header-cell mat-sort-header\r\n [disabled]=\"!tableColumnsMap.get(columnKey)?.sortable\">\r\n @if(!tableColumnsMap.get(columnKey)?.sortable){\r\n <div>{{tableColumnsMap.get(columnKey)?.name}}</div>\r\n }@else {\r\n @switch (tableColumnsMap.get(columnKey)?.filter?.type) {\r\n @case ('string') {\r\n <ng-container [ngTemplateOutlet]=\"filterTypeString\"\r\n [ngTemplateOutletContext]=\"{column: tableColumnsMap.get(columnKey)}\"></ng-container>\r\n }\r\n @case('number'){\r\n <ng-container [ngTemplateOutlet]=\"filterTypeNumber\"\r\n [ngTemplateOutletContext]=\"{column: tableColumnsMap.get(columnKey)}\"></ng-container>\r\n }\r\n @default {\r\n <div>{{tableColumnsMap.get(columnKey)?.name}}</div>\r\n }\r\n }\r\n }\r\n </th>\r\n <td *matCellDef=\"let row\" mat-cell>\r\n {{row[columnKey]}}\r\n </td>\r\n </ng-container>\r\n }\r\n }\r\n }\r\n\r\n <tr *matHeaderRowDef=\"tableColumns; sticky: true\" mat-header-row></tr>\r\n <tr *matRowDef=\"let row; columns: tableColumns;\" mat-row (click)=\"emulateMatOptionClick($event)\"></tr>\r\n </table>\r\n </div>\r\n</mat-select>\r\n}@else {\r\n<mat-select #componentSelect disableRipple\r\n panelClass=\"overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom cmat-select-search-table-panel\"\r\n [placeholder]=\"placeholder\" [required]=\"required\" [formControl]=\"selectControl\" [compareWith]=\"compareObjects\"\r\n (focusin)=\"onFocusIn()\" (openedChange)=\"openedChange($event)\">\r\n <mat-select-trigger>\r\n @if(!customTriggerLabelFn){\r\n {{simpleTriggerLabelFn(completeRowList)}}\r\n }@else {\r\n {{customTriggerLabelFn(completeRowList)}}\r\n }\r\n </mat-select-trigger>\r\n\r\n <div [ngClass]=\"{'hidden-header': overallSearchVisibleState}\" (focusout)=\"onFocusOut($event)\">\r\n @if(overallSearchEnabled){\r\n <mat-option [ngClass]=\"{'hidden':!overallSearchVisibleState === true}\">\r\n <cmat-select-search [showNoFoundLabel]=\"showNoFoundLabel\" [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\r\n [formControl]=\"overallFilterControl\" [clearSearchInput]=\"resetFiltersOnOpen\">\r\n </cmat-select-search>\r\n </mat-option>\r\n\r\n <div class=\"overall-search-toggle\" [ngStyle]=\"{ height: overallSearchVisibleState ? '48px' : '55.4px' }\">\r\n <mat-icon color=\"primary\"\r\n [svgIcon]=\"overallSearchVisibleState ? 'mat_outline:arrow_back' : 'mat_outline:search'\"\r\n (click)=\"toggleOverallSearch()\">\r\n </mat-icon>\r\n </div>\r\n }\r\n <table #table mat-table matSort [dataSource]=\"tableDataSource\">\r\n @for (columnKey of tableColumns; track $index) {\r\n @switch (columnKey) {\r\n @case ('_selection') {\r\n <ng-container [matColumnDef]=\"columnKey\">\r\n <th *matHeaderCellDef mat-header-cell class=\"selection\"></th>\r\n <td *matCellDef=\"let row\" mat-cell class=\"selection\">\r\n @if(row.id===null){\r\n <mat-option></mat-option>\r\n }@else {\r\n <mat-option [value]=\"row\"></mat-option>\r\n } \r\n </td>\r\n </ng-container>\r\n }\r\n @default {\r\n <ng-container [matColumnDef]=\"columnKey\">\r\n <th *matHeaderCellDef mat-header-cell mat-sort-header\r\n [disabled]=\"!tableColumnsMap.get(columnKey)?.sortable\">\r\n @if(!tableColumnsMap.get(columnKey)?.sortable){\r\n <div>{{tableColumnsMap.get(columnKey)?.name}}</div>\r\n }@else {\r\n @switch (tableColumnsMap.get(columnKey)?.filter?.type) {\r\n @case ('string') {\r\n <ng-container [ngTemplateOutlet]=\"filterTypeString\"\r\n [ngTemplateOutletContext]=\"{column: tableColumnsMap.get(columnKey)}\"></ng-container>\r\n }\r\n @case('number'){\r\n <ng-container [ngTemplateOutlet]=\"filterTypeNumber\"\r\n [ngTemplateOutletContext]=\"{column: tableColumnsMap.get(columnKey)}\"></ng-container>\r\n }\r\n @default {\r\n <div>{{tableColumnsMap.get(columnKey)?.name}}</div>\r\n }\r\n }\r\n }\r\n </th>\r\n <td *matCellDef=\"let row\" mat-cell\r\n [colSpan]=\"addNullRow() && row.id === null && $index === 1 ? tableColumns.length : 1\"\r\n [ngStyle]=\"{display: addNullRow() && row.id === null && $index !== 1 ? 'none' : ''}\">\r\n {{addNullRow() && row.id === null && $index === 1 ? '\u7A7A' : row[columnKey]}}\r\n </td>\r\n </ng-container>\r\n }\r\n }\r\n }\r\n\r\n <tr *matHeaderRowDef=\"tableColumns; sticky: true\" mat-header-row></tr>\r\n <tr *matRowDef=\"let row; columns: tableColumns;\" mat-row (click)=\"emulateMatOptionClick($event)\"></tr>\r\n </table>\r\n </div>\r\n</mat-select>\r\n}\r\n<ng-template #filterTypeString let-column='column'>\r\n <mat-form-field class=\"filter\" (click)=\"$event.stopPropagation()\">\r\n <input matInput [formControl]=\"filterFormControl(column.key)\" [placeholder]=\"column.name\"\r\n (keydown)=\"$event.stopPropagation()\" (keyup)=\"$event.stopPropagation()\"\r\n (keypress)=\"$event.stopPropagation()\" />\r\n </mat-form-field>\r\n</ng-template>\r\n\r\n<ng-template #filterTypeNumber let-column='column'>\r\n <mat-form-field class=\"filter\" (click)=\"$event.stopPropagation()\">\r\n <input matInput cmatDigitOnly [min]=\"0\" [formControl]=\"filterFormControl(column.key)\"\r\n [placeholder]=\"column.name\" (keydown)=\"$event.stopPropagation()\" (keyup)=\"$event.stopPropagation()\"\r\n (keypress)=\"$event.stopPropagation()\" />\r\n </mat-form-field>\r\n</ng-template>", styles: ["cmat-select-table{display:block;width:100%}.cmat-select-search-table-panel{min-width:max-content;max-width:100%;padding-top:0!important}.cmat-select-search-table-panel .overall-search-toggle{z-index:102;display:flex;cursor:pointer;position:absolute;width:48px;height:48px;align-items:center;left:12px;top:0}.cmat-select-search-table-panel .hidden-header table thead{display:none}.cmat-select-search-table-panel table{width:100%}.cmat-select-search-table-panel table tr{cursor:pointer;height:48px;max-height:48px}.cmat-select-search-table-panel table tr mat-option{height:48px;max-height:48px}.cmat-select-search-table-panel table tr td{-webkit-user-select:none;user-select:none;border-bottom:0!important;box-shadow:inset 0 -1px var(--cmat-border)}.cmat-select-search-table-panel table tr th .mat-sort-header-container{height:55px}.cmat-select-search-table-panel table tr th .mat-sort-header-container mat-form-field .mat-form-field-infix{width:initial}.cmat-select-search-table-panel table tr th[aria-sort] .mat-sort-header-arrow{opacity:1!important}.cmat-select-search-table-panel table tr td mat-option,.cmat-select-search-table-panel table tr th mat-option{background:transparent!important}.cmat-select-search-table-panel table tr td.selection,.cmat-select-search-table-panel table tr th.selection{width:48px;padding:0;margin:0}.cmat-select-search-table-panel table tr:has(td:first-child mat-option[aria-selected=true]){@apply text-primary bg-hover !important;}.cmat-select-search-table-panel .cmat-select-search-inner>span{visibility:hidden}\n"], dependencies: [{ kind: "component", type: CmatSelectSearchComponent, selector: "cmat-select-search", inputs: ["placeholderLabel", "type", "noEntriesFoundLabel", "showNoFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"], exportAs: ["cmatSelectSearch"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i3.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i3.MatSelectTrigger, selector: "mat-select-trigger" }, { kind: "component", type: i4.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i5.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i6.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i7.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i7.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i7.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i7.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i7.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i7.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i7.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i7.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i7.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i7.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSortModule }, { kind: "directive", type: i9.MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i9.MatSortHeader, selector: "[mat-sort-header]", inputs: ["mat-sort-header", "arrowPosition", "start", "disabled", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "directive", type: CmatDigitOnlyDirective, selector: "[cmatDigitOnly]", inputs: ["decimal", "decimalSeparator", "allowNegatives", "allowPaste", "negativeSign", "min", "max", "pattern"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
580
|
+
}
|
|
581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatSelectTableComponent, decorators: [{
|
|
582
|
+
type: Component,
|
|
583
|
+
args: [{ selector: 'cmat-select-table', exportAs: 'cmatSelectTable', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: MatFormFieldControl, useExisting: CmatSelectTableComponent }], imports: [CmatSelectSearchComponent, MatFormFieldModule, MatSelectModule, ReactiveFormsModule, CommonModule,
|
|
584
|
+
MatIconModule, MatTableModule, MatInputModule, MatSortModule, CmatDigitOnlyDirective
|
|
585
|
+
], template: "@if(multiple){\r\n<mat-select #componentSelect multiple disableRipple\r\n panelClass=\"overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom cmat-select-search-table-panel\"\r\n [placeholder]=\"placeholder\" [required]=\"required\" [formControl]=\"selectControl\" [compareWith]=\"compareObjects\"\r\n (focusin)=\"onFocusIn()\" (openedChange)=\"openedChange($event)\">\r\n <mat-select-trigger>\r\n @if(!customTriggerLabelFn){\r\n {{simpleTriggerLabelFn(completeRowList)}}\r\n }@else {\r\n {{customTriggerLabelFn(completeRowList)}}\r\n }\r\n </mat-select-trigger>\r\n\r\n <div [ngClass]=\"{'hidden-header': overallSearchVisibleState}\" (focusout)=\"onFocusOut($event)\">\r\n @if(overallSearchEnabled){\r\n <mat-option [ngClass]=\"{'hidden':!overallSearchVisibleState === true}\">\r\n <cmat-select-search [showNoFoundLabel]=\"showNoFoundLabel\" [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\r\n [formControl]=\"overallFilterControl\" [clearSearchInput]=\"resetFiltersOnOpen\">\r\n </cmat-select-search>\r\n </mat-option>\r\n\r\n <div class=\"overall-search-toggle\" [ngStyle]=\"{ height: overallSearchVisibleState ? '48px' : '55.4px' }\">\r\n <mat-icon color=\"primary\"\r\n [svgIcon]=\"overallSearchVisibleState ? 'mat_outline:arrow_back' : 'mat_outline:search'\"\r\n (click)=\"toggleOverallSearch()\">\r\n </mat-icon>\r\n </div>\r\n }\r\n <table #table mat-table matSort [dataSource]=\"tableDataSource\">\r\n @for (columnKey of tableColumns; track $index) {\r\n @switch (columnKey) {\r\n @case ('_selection') {\r\n <ng-container [matColumnDef]=\"columnKey\">\r\n <th *matHeaderCellDef mat-header-cell [ngClass]=\"{selection: true, hidden: !multiple}\"></th>\r\n <td *matCellDef=\"let row\" mat-cell [ngClass]=\"{selection: true, hidden: !multiple}\">\r\n <mat-option [value]=\"row\"></mat-option>\r\n </td>\r\n </ng-container>\r\n }\r\n @default {\r\n <ng-container [matColumnDef]=\"columnKey\">\r\n <th *matHeaderCellDef mat-header-cell mat-sort-header\r\n [disabled]=\"!tableColumnsMap.get(columnKey)?.sortable\">\r\n @if(!tableColumnsMap.get(columnKey)?.sortable){\r\n <div>{{tableColumnsMap.get(columnKey)?.name}}</div>\r\n }@else {\r\n @switch (tableColumnsMap.get(columnKey)?.filter?.type) {\r\n @case ('string') {\r\n <ng-container [ngTemplateOutlet]=\"filterTypeString\"\r\n [ngTemplateOutletContext]=\"{column: tableColumnsMap.get(columnKey)}\"></ng-container>\r\n }\r\n @case('number'){\r\n <ng-container [ngTemplateOutlet]=\"filterTypeNumber\"\r\n [ngTemplateOutletContext]=\"{column: tableColumnsMap.get(columnKey)}\"></ng-container>\r\n }\r\n @default {\r\n <div>{{tableColumnsMap.get(columnKey)?.name}}</div>\r\n }\r\n }\r\n }\r\n </th>\r\n <td *matCellDef=\"let row\" mat-cell>\r\n {{row[columnKey]}}\r\n </td>\r\n </ng-container>\r\n }\r\n }\r\n }\r\n\r\n <tr *matHeaderRowDef=\"tableColumns; sticky: true\" mat-header-row></tr>\r\n <tr *matRowDef=\"let row; columns: tableColumns;\" mat-row (click)=\"emulateMatOptionClick($event)\"></tr>\r\n </table>\r\n </div>\r\n</mat-select>\r\n}@else {\r\n<mat-select #componentSelect disableRipple\r\n panelClass=\"overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom cmat-select-search-table-panel\"\r\n [placeholder]=\"placeholder\" [required]=\"required\" [formControl]=\"selectControl\" [compareWith]=\"compareObjects\"\r\n (focusin)=\"onFocusIn()\" (openedChange)=\"openedChange($event)\">\r\n <mat-select-trigger>\r\n @if(!customTriggerLabelFn){\r\n {{simpleTriggerLabelFn(completeRowList)}}\r\n }@else {\r\n {{customTriggerLabelFn(completeRowList)}}\r\n }\r\n </mat-select-trigger>\r\n\r\n <div [ngClass]=\"{'hidden-header': overallSearchVisibleState}\" (focusout)=\"onFocusOut($event)\">\r\n @if(overallSearchEnabled){\r\n <mat-option [ngClass]=\"{'hidden':!overallSearchVisibleState === true}\">\r\n <cmat-select-search [showNoFoundLabel]=\"showNoFoundLabel\" [noEntriesFoundLabel]=\"noEntriesFoundLabel\"\r\n [formControl]=\"overallFilterControl\" [clearSearchInput]=\"resetFiltersOnOpen\">\r\n </cmat-select-search>\r\n </mat-option>\r\n\r\n <div class=\"overall-search-toggle\" [ngStyle]=\"{ height: overallSearchVisibleState ? '48px' : '55.4px' }\">\r\n <mat-icon color=\"primary\"\r\n [svgIcon]=\"overallSearchVisibleState ? 'mat_outline:arrow_back' : 'mat_outline:search'\"\r\n (click)=\"toggleOverallSearch()\">\r\n </mat-icon>\r\n </div>\r\n }\r\n <table #table mat-table matSort [dataSource]=\"tableDataSource\">\r\n @for (columnKey of tableColumns; track $index) {\r\n @switch (columnKey) {\r\n @case ('_selection') {\r\n <ng-container [matColumnDef]=\"columnKey\">\r\n <th *matHeaderCellDef mat-header-cell class=\"selection\"></th>\r\n <td *matCellDef=\"let row\" mat-cell class=\"selection\">\r\n @if(row.id===null){\r\n <mat-option></mat-option>\r\n }@else {\r\n <mat-option [value]=\"row\"></mat-option>\r\n } \r\n </td>\r\n </ng-container>\r\n }\r\n @default {\r\n <ng-container [matColumnDef]=\"columnKey\">\r\n <th *matHeaderCellDef mat-header-cell mat-sort-header\r\n [disabled]=\"!tableColumnsMap.get(columnKey)?.sortable\">\r\n @if(!tableColumnsMap.get(columnKey)?.sortable){\r\n <div>{{tableColumnsMap.get(columnKey)?.name}}</div>\r\n }@else {\r\n @switch (tableColumnsMap.get(columnKey)?.filter?.type) {\r\n @case ('string') {\r\n <ng-container [ngTemplateOutlet]=\"filterTypeString\"\r\n [ngTemplateOutletContext]=\"{column: tableColumnsMap.get(columnKey)}\"></ng-container>\r\n }\r\n @case('number'){\r\n <ng-container [ngTemplateOutlet]=\"filterTypeNumber\"\r\n [ngTemplateOutletContext]=\"{column: tableColumnsMap.get(columnKey)}\"></ng-container>\r\n }\r\n @default {\r\n <div>{{tableColumnsMap.get(columnKey)?.name}}</div>\r\n }\r\n }\r\n }\r\n </th>\r\n <td *matCellDef=\"let row\" mat-cell\r\n [colSpan]=\"addNullRow() && row.id === null && $index === 1 ? tableColumns.length : 1\"\r\n [ngStyle]=\"{display: addNullRow() && row.id === null && $index !== 1 ? 'none' : ''}\">\r\n {{addNullRow() && row.id === null && $index === 1 ? '\u7A7A' : row[columnKey]}}\r\n </td>\r\n </ng-container>\r\n }\r\n }\r\n }\r\n\r\n <tr *matHeaderRowDef=\"tableColumns; sticky: true\" mat-header-row></tr>\r\n <tr *matRowDef=\"let row; columns: tableColumns;\" mat-row (click)=\"emulateMatOptionClick($event)\"></tr>\r\n </table>\r\n </div>\r\n</mat-select>\r\n}\r\n<ng-template #filterTypeString let-column='column'>\r\n <mat-form-field class=\"filter\" (click)=\"$event.stopPropagation()\">\r\n <input matInput [formControl]=\"filterFormControl(column.key)\" [placeholder]=\"column.name\"\r\n (keydown)=\"$event.stopPropagation()\" (keyup)=\"$event.stopPropagation()\"\r\n (keypress)=\"$event.stopPropagation()\" />\r\n </mat-form-field>\r\n</ng-template>\r\n\r\n<ng-template #filterTypeNumber let-column='column'>\r\n <mat-form-field class=\"filter\" (click)=\"$event.stopPropagation()\">\r\n <input matInput cmatDigitOnly [min]=\"0\" [formControl]=\"filterFormControl(column.key)\"\r\n [placeholder]=\"column.name\" (keydown)=\"$event.stopPropagation()\" (keyup)=\"$event.stopPropagation()\"\r\n (keypress)=\"$event.stopPropagation()\" />\r\n </mat-form-field>\r\n</ng-template>", styles: ["cmat-select-table{display:block;width:100%}.cmat-select-search-table-panel{min-width:max-content;max-width:100%;padding-top:0!important}.cmat-select-search-table-panel .overall-search-toggle{z-index:102;display:flex;cursor:pointer;position:absolute;width:48px;height:48px;align-items:center;left:12px;top:0}.cmat-select-search-table-panel .hidden-header table thead{display:none}.cmat-select-search-table-panel table{width:100%}.cmat-select-search-table-panel table tr{cursor:pointer;height:48px;max-height:48px}.cmat-select-search-table-panel table tr mat-option{height:48px;max-height:48px}.cmat-select-search-table-panel table tr td{-webkit-user-select:none;user-select:none;border-bottom:0!important;box-shadow:inset 0 -1px var(--cmat-border)}.cmat-select-search-table-panel table tr th .mat-sort-header-container{height:55px}.cmat-select-search-table-panel table tr th .mat-sort-header-container mat-form-field .mat-form-field-infix{width:initial}.cmat-select-search-table-panel table tr th[aria-sort] .mat-sort-header-arrow{opacity:1!important}.cmat-select-search-table-panel table tr td mat-option,.cmat-select-search-table-panel table tr th mat-option{background:transparent!important}.cmat-select-search-table-panel table tr td.selection,.cmat-select-search-table-panel table tr th.selection{width:48px;padding:0;margin:0}.cmat-select-search-table-panel table tr:has(td:first-child mat-option[aria-selected=true]){@apply text-primary bg-hover !important;}.cmat-select-search-table-panel .cmat-select-search-inner>span{visibility:hidden}\n"] }]
|
|
586
|
+
}], ctorParameters: () => [{ type: i1.NgControl, decorators: [{
|
|
587
|
+
type: Optional
|
|
588
|
+
}, {
|
|
589
|
+
type: Self
|
|
590
|
+
}] }, { type: i0.ChangeDetectorRef }], propDecorators: { id: [{
|
|
591
|
+
type: HostBinding,
|
|
592
|
+
args: ['attr.id']
|
|
593
|
+
}, {
|
|
594
|
+
type: Input
|
|
595
|
+
}], dataSource: [{
|
|
596
|
+
type: Input
|
|
597
|
+
}], noEntriesFoundLabel: [{
|
|
598
|
+
type: Input
|
|
599
|
+
}], showNoFoundLabel: [{
|
|
600
|
+
type: Input
|
|
601
|
+
}], multiple: [{
|
|
602
|
+
type: Input
|
|
603
|
+
}], overallSearchEnabled: [{
|
|
604
|
+
type: Input
|
|
605
|
+
}], overallSearchVisible: [{
|
|
606
|
+
type: Input
|
|
607
|
+
}], resetSortOnOpen: [{
|
|
608
|
+
type: Input
|
|
609
|
+
}], resetFiltersOnOpen: [{
|
|
610
|
+
type: Input
|
|
611
|
+
}], customTriggerLabelFn: [{
|
|
612
|
+
type: Input
|
|
613
|
+
}], triggerLabelSort: [{
|
|
614
|
+
type: Input
|
|
615
|
+
}], customTriggerLabelTemplate: [{
|
|
616
|
+
type: Input
|
|
617
|
+
}], canNull: [{
|
|
618
|
+
type: Input
|
|
619
|
+
}], defaultSort: [{
|
|
620
|
+
type: Input
|
|
621
|
+
}], resetOptionAction: [{
|
|
622
|
+
type: Input
|
|
623
|
+
}], closed: [{
|
|
624
|
+
type: Output
|
|
625
|
+
}], _matSelectSearch: [{
|
|
626
|
+
type: ViewChild,
|
|
627
|
+
args: [CmatSelectSearchComponent, { static: false }]
|
|
628
|
+
}], _sort: [{
|
|
629
|
+
type: ViewChild,
|
|
630
|
+
args: [MatSort, { static: false }]
|
|
631
|
+
}], _table: [{
|
|
632
|
+
type: ViewChild,
|
|
633
|
+
args: [MatTable, { static: false }]
|
|
634
|
+
}], _matOptions: [{
|
|
635
|
+
type: ViewChildren,
|
|
636
|
+
args: [MatOption]
|
|
637
|
+
}], matSelect: [{
|
|
638
|
+
type: ViewChild,
|
|
639
|
+
args: ['componentSelect', { static: false }]
|
|
640
|
+
}], clickedOut: [{
|
|
641
|
+
type: HostListener,
|
|
642
|
+
args: ['document:click']
|
|
643
|
+
}], placeholder: [{
|
|
644
|
+
type: Input
|
|
645
|
+
}], value: [{
|
|
646
|
+
type: Input
|
|
647
|
+
}], required: [{
|
|
648
|
+
type: Input
|
|
649
|
+
}], disabled: [{
|
|
650
|
+
type: Input
|
|
651
|
+
}] } });
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* Generated bundle index. Do not edit.
|
|
655
|
+
*/
|
|
656
|
+
|
|
657
|
+
export { CmatSelectTableComponent };
|
|
658
|
+
//# sourceMappingURL=cmat-components-select-table.mjs.map
|