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,711 @@
|
|
|
1
|
+
import * as i1 from '@angular/common';
|
|
2
|
+
import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { Component, Directive, Input, EventEmitter, PLATFORM_ID, booleanAttribute, numberAttribute, ChangeDetectionStrategy, ViewEncapsulation, Inject, Output, ViewChild, ContentChild, ContentChildren } from '@angular/core';
|
|
5
|
+
import * as i3 from '@angular/material/button';
|
|
6
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
7
|
+
import * as i2 from '@angular/material/icon';
|
|
8
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
9
|
+
import { CmatArrowCursorDirective } from 'cmat/directives/arrow-cursor';
|
|
10
|
+
|
|
11
|
+
/* eslint-disable @typescript-eslint/member-ordering */
|
|
12
|
+
class CmatCarouselHeaderComponent {
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatCarouselHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: CmatCarouselHeaderComponent, isStandalone: true, selector: "cmat-carousel-header", ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
15
|
+
}
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatCarouselHeaderComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: 'cmat-carousel-header',
|
|
20
|
+
template: '<ng-content></ng-content>'
|
|
21
|
+
}]
|
|
22
|
+
}] });
|
|
23
|
+
class CmatCarouselFooterComponent {
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatCarouselFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: CmatCarouselFooterComponent, isStandalone: true, selector: "cmat-carousel-footer", ngImport: i0, template: '<ng-content></ng-content>', isInline: true }); }
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatCarouselFooterComponent, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{
|
|
30
|
+
selector: 'cmat-carousel-footer',
|
|
31
|
+
template: '<ng-content></ng-content>'
|
|
32
|
+
}]
|
|
33
|
+
}] });
|
|
34
|
+
class CmatCarouselTemplateDirective {
|
|
35
|
+
constructor(template) {
|
|
36
|
+
this.template = template;
|
|
37
|
+
}
|
|
38
|
+
getType() {
|
|
39
|
+
return this.name;
|
|
40
|
+
}
|
|
41
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatCarouselTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
42
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.5", type: CmatCarouselTemplateDirective, isStandalone: true, selector: "[cmatCarouselTemplate]", inputs: { type: "type", name: ["cmatCarouselTemplate", "name"] }, ngImport: i0 }); }
|
|
43
|
+
}
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatCarouselTemplateDirective, decorators: [{
|
|
45
|
+
type: Directive,
|
|
46
|
+
args: [{
|
|
47
|
+
selector: '[cmatCarouselTemplate]'
|
|
48
|
+
}]
|
|
49
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }], propDecorators: { type: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], name: [{
|
|
52
|
+
type: Input,
|
|
53
|
+
args: ['cmatCarouselTemplate']
|
|
54
|
+
}] } });
|
|
55
|
+
let NEXT_ID = 0;
|
|
56
|
+
class CmatCarouselComponent {
|
|
57
|
+
get page() {
|
|
58
|
+
return this._page;
|
|
59
|
+
}
|
|
60
|
+
set page(val) {
|
|
61
|
+
if (this.isCreated && val !== this._page) {
|
|
62
|
+
if (this.autoplayInterval) {
|
|
63
|
+
this._stopAutoplay();
|
|
64
|
+
}
|
|
65
|
+
if (val > this._page && val <= this.totalDots() - 1) {
|
|
66
|
+
this._step(-1, val);
|
|
67
|
+
}
|
|
68
|
+
else if (val < this._page) {
|
|
69
|
+
this._step(1, val);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
this._page = val ?? 0;
|
|
73
|
+
}
|
|
74
|
+
get numVisible() {
|
|
75
|
+
return this._numVisible;
|
|
76
|
+
}
|
|
77
|
+
set numVisible(val) {
|
|
78
|
+
this._numVisible = val;
|
|
79
|
+
}
|
|
80
|
+
get numScroll() {
|
|
81
|
+
return this._numVisible;
|
|
82
|
+
}
|
|
83
|
+
set numScroll(val) {
|
|
84
|
+
this._numScroll = val;
|
|
85
|
+
}
|
|
86
|
+
get data() {
|
|
87
|
+
return this._data;
|
|
88
|
+
}
|
|
89
|
+
set data(val) {
|
|
90
|
+
this._data = val;
|
|
91
|
+
}
|
|
92
|
+
constructor(el, zone, cd, renderer, _document, _platformId) {
|
|
93
|
+
this.el = el;
|
|
94
|
+
this.zone = zone;
|
|
95
|
+
this.cd = cd;
|
|
96
|
+
this.renderer = renderer;
|
|
97
|
+
this._document = _document;
|
|
98
|
+
this._platformId = _platformId;
|
|
99
|
+
this.orientation = 'horizontal';
|
|
100
|
+
this.navigatorsType = 'normal';
|
|
101
|
+
this.verticalViewPortHeight = '300px';
|
|
102
|
+
this.arrowSelector = '.carousel-arrow-cursor';
|
|
103
|
+
this.contentClass = '';
|
|
104
|
+
this.indicatorsContentClass = '';
|
|
105
|
+
this.indicatorStyleClass = '';
|
|
106
|
+
this.circular = false;
|
|
107
|
+
this.showIndicators = true;
|
|
108
|
+
this.showNavigators = true;
|
|
109
|
+
this.autoplayInterval = 0;
|
|
110
|
+
this.styleClass = '';
|
|
111
|
+
this.pageEvent = new EventEmitter();
|
|
112
|
+
this.prevState = {
|
|
113
|
+
numScroll: 0,
|
|
114
|
+
numVisible: 0,
|
|
115
|
+
value: []
|
|
116
|
+
};
|
|
117
|
+
this.defaultNumScroll = 1;
|
|
118
|
+
this.defaultNumVisible = 1;
|
|
119
|
+
this.isRemainingItemsAdded = false;
|
|
120
|
+
this.remainingItems = 0;
|
|
121
|
+
this.swipeThreshold = 20;
|
|
122
|
+
this._numVisible = 1;
|
|
123
|
+
this._numScroll = 1;
|
|
124
|
+
this._oldNumScroll = 0;
|
|
125
|
+
this._page = 0;
|
|
126
|
+
this.totalShiftedItems = this.page * this.numScroll * -1;
|
|
127
|
+
this.window = this._document.defaultView;
|
|
128
|
+
}
|
|
129
|
+
ngOnChanges(simpleChange) {
|
|
130
|
+
if (isPlatformBrowser(this._platformId)) {
|
|
131
|
+
if (simpleChange.data) {
|
|
132
|
+
if (this.circular && this._data) {
|
|
133
|
+
this._setCloneItems();
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (this.isCreated) {
|
|
137
|
+
if (simpleChange.numVisible) {
|
|
138
|
+
if (this.responsiveOptions) {
|
|
139
|
+
this.defaultNumVisible = this.numVisible;
|
|
140
|
+
}
|
|
141
|
+
if (this.isCircular()) {
|
|
142
|
+
this._setCloneItems();
|
|
143
|
+
}
|
|
144
|
+
this._createStyle();
|
|
145
|
+
this._calculatePosition();
|
|
146
|
+
}
|
|
147
|
+
if (simpleChange.numScroll) {
|
|
148
|
+
if (this.responsiveOptions) {
|
|
149
|
+
this.defaultNumScroll = this.numScroll;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (simpleChange.autoplayInterval) {
|
|
153
|
+
this.allowAutoplay = !!this.autoplayInterval;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
this.cd.markForCheck();
|
|
158
|
+
}
|
|
159
|
+
ngAfterContentInit() {
|
|
160
|
+
this.id = `cmat-carousel-${NEXT_ID++}`;
|
|
161
|
+
if (isPlatformBrowser(this._platformId)) {
|
|
162
|
+
this.allowAutoplay = !!this.autoplayInterval;
|
|
163
|
+
if (this.circular) {
|
|
164
|
+
this._setCloneItems();
|
|
165
|
+
}
|
|
166
|
+
if (this.responsiveOptions) {
|
|
167
|
+
this.defaultNumScroll = this._numScroll;
|
|
168
|
+
this.defaultNumVisible = this._numVisible;
|
|
169
|
+
}
|
|
170
|
+
this._createStyle();
|
|
171
|
+
this._calculatePosition();
|
|
172
|
+
if (this.responsiveOptions) {
|
|
173
|
+
this._bindDocumentListeners();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
this.templates?.forEach((item) => {
|
|
177
|
+
switch (item.getType()) {
|
|
178
|
+
case 'item':
|
|
179
|
+
this.itemTemplate = item.template;
|
|
180
|
+
break;
|
|
181
|
+
case 'header':
|
|
182
|
+
this.headerTemplate = item.template;
|
|
183
|
+
break;
|
|
184
|
+
case 'footer':
|
|
185
|
+
this.footerTemplate = item.template;
|
|
186
|
+
break;
|
|
187
|
+
case 'previousicon':
|
|
188
|
+
this.previousIconTemplate = item.template;
|
|
189
|
+
break;
|
|
190
|
+
case 'nexticon':
|
|
191
|
+
this.nextIconTemplate = item.template;
|
|
192
|
+
break;
|
|
193
|
+
default:
|
|
194
|
+
this.itemTemplate = item.template;
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
this.cd.detectChanges();
|
|
199
|
+
}
|
|
200
|
+
ngAfterContentChecked() {
|
|
201
|
+
if (isPlatformBrowser(this._platformId)) {
|
|
202
|
+
const isCircular = this.isCircular();
|
|
203
|
+
let totalShiftedItems = this.totalShiftedItems;
|
|
204
|
+
if (this.data && this.itemsContainer && (this.prevState.numScroll !== this._numScroll || this.prevState.numVisible !== this._numVisible || this.prevState.value.length !== this.data.length)) {
|
|
205
|
+
if (this.autoplayInterval) {
|
|
206
|
+
this._stopAutoplay(false);
|
|
207
|
+
}
|
|
208
|
+
this.remainingItems = (this.data.length - this._numVisible) % this._numScroll;
|
|
209
|
+
let page = this._page;
|
|
210
|
+
if (this.totalDots() !== 0 && page >= this.totalDots()) {
|
|
211
|
+
page = this.totalDots() - 1;
|
|
212
|
+
this._page = page;
|
|
213
|
+
this.pageEvent.emit({
|
|
214
|
+
page: this.page
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
totalShiftedItems = page * this._numScroll * -1;
|
|
218
|
+
if (isCircular) {
|
|
219
|
+
totalShiftedItems -= this._numVisible;
|
|
220
|
+
}
|
|
221
|
+
if (page === this.totalDots() - 1 && this.remainingItems > 0) {
|
|
222
|
+
totalShiftedItems += -1 * this.remainingItems + this._numScroll;
|
|
223
|
+
this.isRemainingItemsAdded = true;
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
this.isRemainingItemsAdded = false;
|
|
227
|
+
}
|
|
228
|
+
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
229
|
+
this.totalShiftedItems = totalShiftedItems;
|
|
230
|
+
}
|
|
231
|
+
this._oldNumScroll = this._numScroll;
|
|
232
|
+
this.prevState.numScroll = this._numScroll;
|
|
233
|
+
this.prevState.numVisible = this._numVisible;
|
|
234
|
+
this.prevState.value = [...(this._data)];
|
|
235
|
+
if (this.totalDots() > 0 && this.itemsContainer.nativeElement) {
|
|
236
|
+
this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;
|
|
237
|
+
}
|
|
238
|
+
this.isCreated = true;
|
|
239
|
+
if (this.autoplayInterval && this.isAutoplay()) {
|
|
240
|
+
this._startAutoplay();
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
if (isCircular) {
|
|
244
|
+
if (this.page === 0) {
|
|
245
|
+
totalShiftedItems = -1 * this._numVisible;
|
|
246
|
+
}
|
|
247
|
+
else if (totalShiftedItems === 0) {
|
|
248
|
+
totalShiftedItems = -1 * this.data.length;
|
|
249
|
+
if (this.remainingItems > 0) {
|
|
250
|
+
this.isRemainingItemsAdded = true;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
if (totalShiftedItems !== this.totalShiftedItems) {
|
|
254
|
+
this.totalShiftedItems = totalShiftedItems;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
ngOnDestroy() {
|
|
260
|
+
if (this.responsiveOptions) {
|
|
261
|
+
this._unbindDocumentListeners();
|
|
262
|
+
}
|
|
263
|
+
if (this.autoplayInterval) {
|
|
264
|
+
this._stopAutoplay();
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
firstIndex() {
|
|
268
|
+
return this.isCircular() ? -1 * (this.totalShiftedItems + this.numVisible) : this.totalShiftedItems * -1;
|
|
269
|
+
}
|
|
270
|
+
lastIndex() {
|
|
271
|
+
return this.firstIndex() + this.numVisible - 1;
|
|
272
|
+
}
|
|
273
|
+
totalDots() {
|
|
274
|
+
if (this._numVisible > 0 && this._numScroll > 0)
|
|
275
|
+
return this.data?.length ? Math.ceil((this.data.length - this._numVisible) / this._numScroll) + 1 : 0;
|
|
276
|
+
return 0;
|
|
277
|
+
}
|
|
278
|
+
totalDotsArray() {
|
|
279
|
+
const totalDots = this.totalDots();
|
|
280
|
+
return totalDots <= 0 ? [] : Array(totalDots).fill(0);
|
|
281
|
+
}
|
|
282
|
+
isVertical() {
|
|
283
|
+
return this.orientation === 'vertical';
|
|
284
|
+
}
|
|
285
|
+
isCircular() {
|
|
286
|
+
return this.circular && this.data && this.data.length >= this.numVisible;
|
|
287
|
+
}
|
|
288
|
+
isAutoplay() {
|
|
289
|
+
if (this.autoplayInterval) {
|
|
290
|
+
return this.allowAutoplay;
|
|
291
|
+
}
|
|
292
|
+
return false;
|
|
293
|
+
}
|
|
294
|
+
isForwardNavDisabled() {
|
|
295
|
+
return this.isEmpty() || (this._page >= this.totalDots() - 1 && !this.isCircular());
|
|
296
|
+
}
|
|
297
|
+
isBackwardNavDisabled() {
|
|
298
|
+
return this.isEmpty() || (this._page <= 0 && !this.isCircular());
|
|
299
|
+
}
|
|
300
|
+
isEmpty() {
|
|
301
|
+
return !this.data || this.data.length === 0;
|
|
302
|
+
}
|
|
303
|
+
navForward(e, index) {
|
|
304
|
+
if (this.isCircular() || this._page < this.totalDots() - 1) {
|
|
305
|
+
this._step(-1, index);
|
|
306
|
+
}
|
|
307
|
+
if (this.autoplayInterval) {
|
|
308
|
+
this._stopAutoplay();
|
|
309
|
+
}
|
|
310
|
+
if (e?.cancelable) {
|
|
311
|
+
e.preventDefault();
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
navBackward(e, index) {
|
|
315
|
+
if (this.isCircular() || this._page !== 0) {
|
|
316
|
+
this._step(1, index);
|
|
317
|
+
}
|
|
318
|
+
if (this.autoplayInterval) {
|
|
319
|
+
this._stopAutoplay();
|
|
320
|
+
}
|
|
321
|
+
if (e?.cancelable) {
|
|
322
|
+
e.preventDefault();
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
onDotClick(e, index) {
|
|
326
|
+
let page = this._page;
|
|
327
|
+
if (this.autoplayInterval) {
|
|
328
|
+
this._stopAutoplay();
|
|
329
|
+
}
|
|
330
|
+
if (index > page) {
|
|
331
|
+
this.navForward(e, index);
|
|
332
|
+
}
|
|
333
|
+
else if (index < page) {
|
|
334
|
+
this.navBackward(e, index);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
onIndicatorKeydown(event) {
|
|
338
|
+
switch (event.code) {
|
|
339
|
+
case 'ArrowRight':
|
|
340
|
+
this._onRightKey();
|
|
341
|
+
break;
|
|
342
|
+
case 'ArrowLeft':
|
|
343
|
+
this._onLeftKey();
|
|
344
|
+
break;
|
|
345
|
+
case 'Home': {
|
|
346
|
+
this._onHomeKey();
|
|
347
|
+
break;
|
|
348
|
+
}
|
|
349
|
+
case 'End': {
|
|
350
|
+
this._onEndKey();
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
case 'Tab': {
|
|
354
|
+
this._onTabKey();
|
|
355
|
+
break;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
isPlaying() {
|
|
360
|
+
return !!this.interval;
|
|
361
|
+
}
|
|
362
|
+
onTransitionEnd() {
|
|
363
|
+
if (this.itemsContainer) {
|
|
364
|
+
this.itemsContainer.nativeElement.style.transition = '';
|
|
365
|
+
if ((this.page === 0 || this.page === this.totalDots() - 1) && this.isCircular()) {
|
|
366
|
+
this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${this.totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${this.totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
onTouchStart(e) {
|
|
371
|
+
let touchobj = e.changedTouches[0];
|
|
372
|
+
this.startPos = {
|
|
373
|
+
x: touchobj.pageX,
|
|
374
|
+
y: touchobj.pageY
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
onTouchMove(e) {
|
|
378
|
+
if (e.cancelable) {
|
|
379
|
+
e.preventDefault();
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
onTouchEnd(e) {
|
|
383
|
+
let touchobj = e.changedTouches[0];
|
|
384
|
+
if (this.isVertical()) {
|
|
385
|
+
this._changePageOnTouch(e, touchobj.pageY - this.startPos.y);
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
this._changePageOnTouch(e, touchobj.pageX - this.startPos.x);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
arrowCursorClick(cursorSide) {
|
|
392
|
+
switch (cursorSide) {
|
|
393
|
+
case 'left':
|
|
394
|
+
case 'up':
|
|
395
|
+
this.navBackward(null);
|
|
396
|
+
break;
|
|
397
|
+
case 'right':
|
|
398
|
+
case 'down':
|
|
399
|
+
this.navForward(null);
|
|
400
|
+
break;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
_changePageOnTouch(e, diff) {
|
|
404
|
+
if (Math.abs(diff) > this.swipeThreshold) {
|
|
405
|
+
if (diff < 0) {
|
|
406
|
+
this.navForward(e);
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
this.navBackward(e);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
_bindDocumentListeners() {
|
|
414
|
+
if (isPlatformBrowser(this._platformId)) {
|
|
415
|
+
if (!this.documentResizeListener) {
|
|
416
|
+
this.documentResizeListener = this.renderer.listen(this.window, 'resize', () => {
|
|
417
|
+
this._calculatePosition();
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
_unbindDocumentListeners() {
|
|
423
|
+
if (isPlatformBrowser(this._platformId)) {
|
|
424
|
+
if (this.documentResizeListener) {
|
|
425
|
+
this.documentResizeListener();
|
|
426
|
+
this.documentResizeListener = null;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
_onRightKey() {
|
|
431
|
+
const indicators = [...Array.from(this.indicatorContent?.nativeElement.querySelectorAll('[data-pc-section="indicator"]'))];
|
|
432
|
+
const activeIndex = this._findFocusedIndicatorIndex();
|
|
433
|
+
this._changedFocusedIndicator(activeIndex, activeIndex + 1 === indicators.length ? indicators.length - 1 : activeIndex + 1);
|
|
434
|
+
}
|
|
435
|
+
_onLeftKey() {
|
|
436
|
+
const activeIndex = this._findFocusedIndicatorIndex();
|
|
437
|
+
this._changedFocusedIndicator(activeIndex, activeIndex - 1 <= 0 ? 0 : activeIndex - 1);
|
|
438
|
+
}
|
|
439
|
+
_onHomeKey() {
|
|
440
|
+
const activeIndex = this._findFocusedIndicatorIndex();
|
|
441
|
+
this._changedFocusedIndicator(activeIndex, 0);
|
|
442
|
+
}
|
|
443
|
+
_onEndKey() {
|
|
444
|
+
const indicators = [...Array.from(this.indicatorContent?.nativeElement.querySelectorAll('[data-pc-section="indicator"]'))];
|
|
445
|
+
const activeIndex = this._findFocusedIndicatorIndex();
|
|
446
|
+
this._changedFocusedIndicator(activeIndex, indicators.length - 1);
|
|
447
|
+
}
|
|
448
|
+
_onTabKey() {
|
|
449
|
+
const indicators = [...Array.from(this.indicatorContent?.nativeElement.querySelectorAll('[data-pc-section="indicator"]'))];
|
|
450
|
+
const highlightedIndex = indicators.findIndex(ind => ind.getAttribute('cmat-carousel-highlight') != undefined);
|
|
451
|
+
const activeIndicator = this.indicatorContent?.nativeElement ? this.indicatorContent?.nativeElement.querySelector('[data-pc-section="indicator"] > button[tabindex="0"]') : null;
|
|
452
|
+
const activeIndex = indicators.findIndex(ind => ind === activeIndicator.parentElement);
|
|
453
|
+
indicators[activeIndex].children[0].tabIndex = '-1';
|
|
454
|
+
indicators[highlightedIndex].children[0].tabIndex = '0';
|
|
455
|
+
}
|
|
456
|
+
_changedFocusedIndicator(prevInd, nextInd) {
|
|
457
|
+
const indicators = [...Array.from(this.indicatorContent?.nativeElement.querySelectorAll('[data-pc-section="indicator"]'))];
|
|
458
|
+
indicators[prevInd].children[0].tabIndex = '-1';
|
|
459
|
+
indicators[nextInd].children[0].tabIndex = '0';
|
|
460
|
+
indicators[nextInd].children[0].focus();
|
|
461
|
+
}
|
|
462
|
+
_step(dir, page) {
|
|
463
|
+
let totalShiftedItems = this.totalShiftedItems;
|
|
464
|
+
const isCircular = this.isCircular();
|
|
465
|
+
if (page != null) {
|
|
466
|
+
totalShiftedItems = this._numScroll * page * -1;
|
|
467
|
+
if (isCircular) {
|
|
468
|
+
totalShiftedItems -= this._numVisible;
|
|
469
|
+
}
|
|
470
|
+
this.isRemainingItemsAdded = false;
|
|
471
|
+
}
|
|
472
|
+
else {
|
|
473
|
+
totalShiftedItems += this._numScroll * dir;
|
|
474
|
+
if (this.isRemainingItemsAdded) {
|
|
475
|
+
totalShiftedItems += this.remainingItems - this._numScroll * dir;
|
|
476
|
+
this.isRemainingItemsAdded = false;
|
|
477
|
+
}
|
|
478
|
+
let originalShiftedItems = isCircular ? totalShiftedItems + this._numVisible : totalShiftedItems;
|
|
479
|
+
page = Math.abs(Math.floor(originalShiftedItems / this._numScroll));
|
|
480
|
+
}
|
|
481
|
+
if (isCircular && this.page === this.totalDots() - 1 && dir === -1) {
|
|
482
|
+
totalShiftedItems = -1 * (this.data.length + this._numVisible);
|
|
483
|
+
page = 0;
|
|
484
|
+
}
|
|
485
|
+
else if (isCircular && this.page === 0 && dir === 1) {
|
|
486
|
+
totalShiftedItems = 0;
|
|
487
|
+
page = this.totalDots() - 1;
|
|
488
|
+
}
|
|
489
|
+
else if (page === this.totalDots() - 1 && this.remainingItems > 0) {
|
|
490
|
+
totalShiftedItems += this.remainingItems * -1 - this._numScroll * dir;
|
|
491
|
+
this.isRemainingItemsAdded = true;
|
|
492
|
+
}
|
|
493
|
+
if (this.itemsContainer) {
|
|
494
|
+
this.itemsContainer.nativeElement.style.transform = this.isVertical() ? `translate3d(0, ${totalShiftedItems * (100 / this._numVisible)}%, 0)` : `translate3d(${totalShiftedItems * (100 / this._numVisible)}%, 0, 0)`;
|
|
495
|
+
this.itemsContainer.nativeElement.style.transition = 'transform 500ms ease 0s';
|
|
496
|
+
}
|
|
497
|
+
this.totalShiftedItems = totalShiftedItems;
|
|
498
|
+
this._page = page;
|
|
499
|
+
this.pageEvent.emit({
|
|
500
|
+
page: this.page
|
|
501
|
+
});
|
|
502
|
+
this.cd.markForCheck();
|
|
503
|
+
this._updateCarouselItemsAccessibility();
|
|
504
|
+
}
|
|
505
|
+
_startAutoplay() {
|
|
506
|
+
this.interval = setInterval(() => {
|
|
507
|
+
if (this.totalDots() > 0) {
|
|
508
|
+
if (this.page === this.totalDots() - 1) {
|
|
509
|
+
this._step(-1, 0);
|
|
510
|
+
}
|
|
511
|
+
else {
|
|
512
|
+
this._step(-1, this.page + 1);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}, this.autoplayInterval);
|
|
516
|
+
this.allowAutoplay = true;
|
|
517
|
+
this.cd.markForCheck();
|
|
518
|
+
}
|
|
519
|
+
_stopAutoplay(changeAllow = true) {
|
|
520
|
+
if (this.interval) {
|
|
521
|
+
clearInterval(this.interval);
|
|
522
|
+
this.interval = undefined;
|
|
523
|
+
if (changeAllow) {
|
|
524
|
+
this.allowAutoplay = false;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
this.cd.markForCheck();
|
|
528
|
+
}
|
|
529
|
+
_findFocusedIndicatorIndex() {
|
|
530
|
+
const indicators = [...Array.from(this.indicatorContent?.nativeElement.querySelectorAll('[data-pc-section="indicator"]'))];
|
|
531
|
+
const activeIndicator = this.indicatorContent?.nativeElement ? this.indicatorContent?.nativeElement.querySelector('[data-pc-section="indicator"] > button[tabindex="0"]') : null;
|
|
532
|
+
return indicators.findIndex(ind => ind === activeIndicator.parentElement);
|
|
533
|
+
}
|
|
534
|
+
_createStyle() {
|
|
535
|
+
if (!this.carouselStyle) {
|
|
536
|
+
this.carouselStyle = this.renderer.createElement('style');
|
|
537
|
+
this.carouselStyle.type = 'text/css';
|
|
538
|
+
this.renderer.appendChild(this._document.head, this.carouselStyle);
|
|
539
|
+
}
|
|
540
|
+
let innerHTML = `
|
|
541
|
+
#${this.id} .cmat-carousel-item {
|
|
542
|
+
flex: 1 0 ${100 / this.numVisible}%
|
|
543
|
+
}
|
|
544
|
+
`;
|
|
545
|
+
if (this.responsiveOptions) {
|
|
546
|
+
this.responsiveOptions.sort((data1, data2) => {
|
|
547
|
+
const value1 = data1.breakpoint;
|
|
548
|
+
const value2 = data2.breakpoint;
|
|
549
|
+
let result = null;
|
|
550
|
+
if (value1 == null && value2 != null)
|
|
551
|
+
result = -1;
|
|
552
|
+
else if (value1 != null && value2 == null)
|
|
553
|
+
result = 1;
|
|
554
|
+
else if (value1 == null && value2 == null)
|
|
555
|
+
result = 0;
|
|
556
|
+
else if (typeof value1 === 'string' && typeof value2 === 'string')
|
|
557
|
+
result = value1.localeCompare(value2, undefined, { numeric: true });
|
|
558
|
+
else
|
|
559
|
+
result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
560
|
+
return -1 * result;
|
|
561
|
+
});
|
|
562
|
+
for (const res of this.responsiveOptions) {
|
|
563
|
+
innerHTML += `
|
|
564
|
+
@media screen and (max-width: ${res.breakpoint}) {
|
|
565
|
+
#${this.id} .cmat-carousel-item {
|
|
566
|
+
flex: 1 0 ${100 / res.numVisible}%
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
`;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
this.carouselStyle.innerHTML = innerHTML;
|
|
573
|
+
}
|
|
574
|
+
_calculatePosition() {
|
|
575
|
+
if (this.responsiveOptions) {
|
|
576
|
+
let matchedResponsiveData = {
|
|
577
|
+
numVisible: this.defaultNumVisible,
|
|
578
|
+
numScroll: this.defaultNumScroll
|
|
579
|
+
};
|
|
580
|
+
if (typeof window !== 'undefined') {
|
|
581
|
+
let windowWidth = window.innerWidth;
|
|
582
|
+
for (const res of this.responsiveOptions) {
|
|
583
|
+
if (parseInt(res.breakpoint, 10) >= windowWidth) {
|
|
584
|
+
matchedResponsiveData = res;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
if (this._numScroll !== matchedResponsiveData.numScroll) {
|
|
589
|
+
let page = this._page;
|
|
590
|
+
page = Math.floor((page * this._numScroll) / matchedResponsiveData.numScroll);
|
|
591
|
+
let totalShiftedItems = matchedResponsiveData.numScroll * this.page * -1;
|
|
592
|
+
if (this.isCircular()) {
|
|
593
|
+
totalShiftedItems -= matchedResponsiveData.numVisible;
|
|
594
|
+
}
|
|
595
|
+
this.totalShiftedItems = totalShiftedItems;
|
|
596
|
+
this._numScroll = matchedResponsiveData.numScroll;
|
|
597
|
+
this._page = page;
|
|
598
|
+
this.pageEvent.emit({
|
|
599
|
+
page: this.page
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
if (this._numVisible !== matchedResponsiveData.numVisible) {
|
|
603
|
+
this._numVisible = matchedResponsiveData.numVisible;
|
|
604
|
+
this._setCloneItems();
|
|
605
|
+
}
|
|
606
|
+
this.cd.markForCheck();
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
_updateSlideAccessibility(slide, isActive) {
|
|
610
|
+
const focusableElements = slide.querySelectorAll('a, button, input, select, textarea, [tabindex]');
|
|
611
|
+
focusableElements.forEach((element) => {
|
|
612
|
+
element.tabIndex = isActive ? 0 : -1;
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
_updateCarouselItemsAccessibility() {
|
|
616
|
+
const slides = this.el.nativeElement.querySelectorAll('.cmat-carousel-item');
|
|
617
|
+
slides.forEach((slide, index) => {
|
|
618
|
+
const isActive = index === this._page;
|
|
619
|
+
slide.setAttribute('aria-hidden', !isActive ? 'true' : 'false');
|
|
620
|
+
this._updateSlideAccessibility(slide, isActive);
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
_setCloneItems() {
|
|
624
|
+
this.clonedItemsForStarting = [];
|
|
625
|
+
this.clonedItemsForFinishing = [];
|
|
626
|
+
if (this.isCircular()) {
|
|
627
|
+
this.clonedItemsForStarting.push(...this.data.slice(-1 * this._numVisible));
|
|
628
|
+
this.clonedItemsForFinishing.push(...this.data.slice(0, this._numVisible));
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatCarouselComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: DOCUMENT }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
632
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.5", type: CmatCarouselComponent, isStandalone: true, selector: "cmat-carousel", inputs: { page: "page", numVisible: "numVisible", numScroll: "numScroll", responsiveOptions: "responsiveOptions", orientation: "orientation", navigatorsType: "navigatorsType", verticalViewPortHeight: "verticalViewPortHeight", arrowSelector: "arrowSelector", contentClass: "contentClass", indicatorsContentClass: "indicatorsContentClass", indicatorsContentStyle: "indicatorsContentStyle", indicatorStyleClass: "indicatorStyleClass", indicatorStyle: "indicatorStyle", data: "data", circular: ["circular", "circular", booleanAttribute], showIndicators: ["showIndicators", "showIndicators", booleanAttribute], showNavigators: ["showNavigators", "showNavigators", booleanAttribute], autoplayInterval: ["autoplayInterval", "autoplayInterval", numberAttribute], style: "style", styleClass: "styleClass" }, outputs: { pageEvent: "pageEvent" }, queries: [{ propertyName: "headerFacet", first: true, predicate: CmatCarouselHeaderComponent, descendants: true }, { propertyName: "footerFacet", first: true, predicate: CmatCarouselFooterComponent, descendants: true }, { propertyName: "templates", predicate: CmatCarouselTemplateDirective }], viewQueries: [{ propertyName: "itemsContainer", first: true, predicate: ["itemsContainer"], descendants: true }, { propertyName: "indicatorContent", first: true, predicate: ["indicatorContent"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div role=\"region\" [attr.id]=\"id\"\r\n [ngClass]=\"{ 'cmat-carousel': true, 'cmat-carousel-vertical': isVertical(), 'cmat-carousel-horizontal': !isVertical() }\"\r\n [ngStyle]=\"style\" [class]=\"styleClass\">\r\n\r\n @if(headerFacet || headerTemplate){\r\n <div class=\"cmat-carousel-header\">\r\n <ng-content select=\"cmat-carousel-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n </div>\r\n }\r\n\r\n <div [class]=\"contentClass\" [ngClass]=\"'items-center cmat-carousel-content'\">\r\n <div class=\"cmat-carousel-container\" cmatArrowCursor [orientation]=\"orientation\" [selector]=\"arrowSelector\"\r\n [enabled]=\"navigatorsType==='arrow'\" [attr.aria-live]=\"allowAutoplay ? 'polite' : 'off'\"\r\n (clickEvent)=\"arrowCursorClick($event)\">\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-prev': true }\"\r\n [disabled]=\"isBackwardNavDisabled()\" (click)=\"navBackward($event)\">\r\n @if(!previousIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-left'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-up'\"></mat-icon>\r\n }\r\n }\r\n @else {\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"previousIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <div class=\"cmat-carousel-items-content\"\r\n [ngStyle]=\"{ height: isVertical() ? verticalViewPortHeight : 'auto' }\" (touchend)=\"onTouchEnd($event)\"\r\n (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\">\r\n <div #itemsContainer class=\"cmat-carousel-items-container\" (transitionend)=\"onTransitionEnd()\">\r\n @for (item of clonedItemsForStarting; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === data.length,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForStarting?.length??0 - 1 === $index\r\n }\" [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of data; track $index) {\r\n <div [ngClass]=\"{ 'cmat-carousel-item': true, 'cmat-carousel-item-active': firstIndex() <= $index && lastIndex() >= $index, 'cmat-carousel-item-start': firstIndex() === $index, 'cmat-carousel-item-end': lastIndex() === $index }\"\r\n [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of clonedItemsForFinishing; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === numVisible,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForFinishing?.length??0 - 1 === $index\r\n }\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n </div>\r\n </div>\r\n\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-next': true}\"\r\n [disabled]=\"isForwardNavDisabled()\" (click)=\"navForward($event)\">\r\n @if(!nextIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-right'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-down'\"></mat-icon>\r\n }\r\n }\r\n @else{\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"nextIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n </div>\r\n @if(showIndicators){\r\n <ul #indicatorContent role=\"presentation\" [ngClass]=\"'cmat-carousel-indicators'\"\r\n [class]=\"indicatorsContentClass\" [ngStyle]=\"indicatorsContentStyle\" (keydown)=\"onIndicatorKeydown($event)\">\r\n @for (totalDot of totalDotsArray(); track $index) {\r\n <li [ngClass]=\"{ 'cmat-carousel-indicator': true, 'cmat-carousel-indicator-active': page === $index }\"\r\n [attr.data-pc-section]=\"'indicator'\">\r\n <button type=\"button\" [ngClass]=\"'cmat-carousel-indicator-button'\" [class]=\"indicatorStyleClass\"\r\n [ngStyle]=\"indicatorStyle\" [attr.aria-current]=\"page === $index ? 'page' : undefined\"\r\n [tabindex]=\"page === $index ? 0 : -1\" (click)=\"onDotClick($event, $index)\">\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n }\r\n\r\n </div>\r\n @if(footerFacet || footerTemplate){\r\n <div class=\"cmat-carousel-footer\">\r\n <ng-content select=\"cmat-carousel-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n }\r\n</div>", styles: ["cmat-carousel{display:flex;flex-direction:column}cmat-carousel .cmat-carousel-content{display:flex;flex-direction:column;overflow:hidden}cmat-carousel .cmat-carousel-prev,cmat-carousel .cmat-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative;margin:.25rem}cmat-carousel .cmat-carousel-container{display:flex;flex-direction:row;width:100%}cmat-carousel .cmat-carousel-items-content{overflow:hidden;width:100%}cmat-carousel .cmat-carousel-items-container{display:flex;flex-direction:row}cmat-carousel .cmat-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;padding:1rem;gap:.5rem;margin:0;list-style:none}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator-active{background:var(--cmat-text-default)!important;opacity:1!important}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator{border:0 none;border-radius:6px;background:var(--cmat-text-disabled);transition:background .2s,color .2s,outline-color .2s,box-shadow .2s;opacity:.3}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator .cmat-carousel-indicator-button{display:flex;align-items:center;justify-content:center;width:2rem;height:.5rem;outline-color:transparent;padding:0;margin:0;-webkit-user-select:none;user-select:none;cursor:pointer}cmat-carousel .cmat-carousel-vertical .cmat-carousel-container{flex-direction:column;width:auto}cmat-carousel .cmat-carousel-vertical .cmat-carousel-items-container{flex-direction:column;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: CmatArrowCursorDirective, selector: "[cmatArrowCursor]", inputs: ["animationDuration", "orientation", "enabled", "selector"], outputs: ["clickEvent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
633
|
+
}
|
|
634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CmatCarouselComponent, decorators: [{
|
|
635
|
+
type: Component,
|
|
636
|
+
args: [{ selector: 'cmat-carousel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [CommonModule, MatIconModule, MatButtonModule, CmatArrowCursorDirective], template: "<div role=\"region\" [attr.id]=\"id\"\r\n [ngClass]=\"{ 'cmat-carousel': true, 'cmat-carousel-vertical': isVertical(), 'cmat-carousel-horizontal': !isVertical() }\"\r\n [ngStyle]=\"style\" [class]=\"styleClass\">\r\n\r\n @if(headerFacet || headerTemplate){\r\n <div class=\"cmat-carousel-header\">\r\n <ng-content select=\"cmat-carousel-header\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\r\n </div>\r\n }\r\n\r\n <div [class]=\"contentClass\" [ngClass]=\"'items-center cmat-carousel-content'\">\r\n <div class=\"cmat-carousel-container\" cmatArrowCursor [orientation]=\"orientation\" [selector]=\"arrowSelector\"\r\n [enabled]=\"navigatorsType==='arrow'\" [attr.aria-live]=\"allowAutoplay ? 'polite' : 'off'\"\r\n (clickEvent)=\"arrowCursorClick($event)\">\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-prev': true }\"\r\n [disabled]=\"isBackwardNavDisabled()\" (click)=\"navBackward($event)\">\r\n @if(!previousIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-left'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-up'\"></mat-icon>\r\n }\r\n }\r\n @else {\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"previousIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n <div class=\"cmat-carousel-items-content\"\r\n [ngStyle]=\"{ height: isVertical() ? verticalViewPortHeight : 'auto' }\" (touchend)=\"onTouchEnd($event)\"\r\n (touchstart)=\"onTouchStart($event)\" (touchmove)=\"onTouchMove($event)\">\r\n <div #itemsContainer class=\"cmat-carousel-items-container\" (transitionend)=\"onTransitionEnd()\">\r\n @for (item of clonedItemsForStarting; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === data.length,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForStarting?.length??0 - 1 === $index\r\n }\" [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of data; track $index) {\r\n <div [ngClass]=\"{ 'cmat-carousel-item': true, 'cmat-carousel-item-active': firstIndex() <= $index && lastIndex() >= $index, 'cmat-carousel-item-start': firstIndex() === $index, 'cmat-carousel-item-end': lastIndex() === $index }\"\r\n [attr.aria-hidden]=\"!(totalShiftedItems * -1 === data.length)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n @for (item of clonedItemsForFinishing; track $index) {\r\n <div [ngClass]=\"{\r\n 'cmat-carousel-item cmat-carousel-item-cloned': true,\r\n 'cmat-carousel-item-active': totalShiftedItems * -1 === numVisible,\r\n 'cmat-carousel-item-start': 0 === $index,\r\n 'cmat-carousel-item-end': clonedItemsForFinishing?.length??0 - 1 === $index\r\n }\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\r\n </div>\r\n }\r\n\r\n </div>\r\n </div>\r\n\r\n @if(showNavigators&&navigatorsType==='normal'){\r\n <button type=\"button\" mat-icon-button [ngClass]=\"{ 'cmat-carousel-next': true}\"\r\n [disabled]=\"isForwardNavDisabled()\" (click)=\"navForward($event)\">\r\n @if(!nextIconTemplate){\r\n @if(!isVertical()){\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-right'\"></mat-icon>\r\n }@else {\r\n <mat-icon [svgIcon]=\"'heroicons_solid:chevron-down'\"></mat-icon>\r\n }\r\n }\r\n @else{\r\n <span class=\"cmat-carousel-prev-icon\">\r\n <ng-template *ngTemplateOutlet=\"nextIconTemplate\"></ng-template>\r\n </span>\r\n }\r\n </button>\r\n }\r\n\r\n </div>\r\n @if(showIndicators){\r\n <ul #indicatorContent role=\"presentation\" [ngClass]=\"'cmat-carousel-indicators'\"\r\n [class]=\"indicatorsContentClass\" [ngStyle]=\"indicatorsContentStyle\" (keydown)=\"onIndicatorKeydown($event)\">\r\n @for (totalDot of totalDotsArray(); track $index) {\r\n <li [ngClass]=\"{ 'cmat-carousel-indicator': true, 'cmat-carousel-indicator-active': page === $index }\"\r\n [attr.data-pc-section]=\"'indicator'\">\r\n <button type=\"button\" [ngClass]=\"'cmat-carousel-indicator-button'\" [class]=\"indicatorStyleClass\"\r\n [ngStyle]=\"indicatorStyle\" [attr.aria-current]=\"page === $index ? 'page' : undefined\"\r\n [tabindex]=\"page === $index ? 0 : -1\" (click)=\"onDotClick($event, $index)\">\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n }\r\n\r\n </div>\r\n @if(footerFacet || footerTemplate){\r\n <div class=\"cmat-carousel-footer\">\r\n <ng-content select=\"cmat-carousel-footer\"></ng-content>\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </div>\r\n }\r\n</div>", styles: ["cmat-carousel{display:flex;flex-direction:column}cmat-carousel .cmat-carousel-content{display:flex;flex-direction:column;overflow:hidden}cmat-carousel .cmat-carousel-prev,cmat-carousel .cmat-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative;margin:.25rem}cmat-carousel .cmat-carousel-container{display:flex;flex-direction:row;width:100%}cmat-carousel .cmat-carousel-items-content{overflow:hidden;width:100%}cmat-carousel .cmat-carousel-items-container{display:flex;flex-direction:row}cmat-carousel .cmat-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;padding:1rem;gap:.5rem;margin:0;list-style:none}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator-active{background:var(--cmat-text-default)!important;opacity:1!important}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator{border:0 none;border-radius:6px;background:var(--cmat-text-disabled);transition:background .2s,color .2s,outline-color .2s,box-shadow .2s;opacity:.3}cmat-carousel .cmat-carousel-indicators .cmat-carousel-indicator .cmat-carousel-indicator-button{display:flex;align-items:center;justify-content:center;width:2rem;height:.5rem;outline-color:transparent;padding:0;margin:0;-webkit-user-select:none;user-select:none;cursor:pointer}cmat-carousel .cmat-carousel-vertical .cmat-carousel-container{flex-direction:column;width:auto}cmat-carousel .cmat-carousel-vertical .cmat-carousel-items-container{flex-direction:column;height:100%}\n"] }]
|
|
637
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: Document, decorators: [{
|
|
638
|
+
type: Inject,
|
|
639
|
+
args: [DOCUMENT]
|
|
640
|
+
}] }, { type: undefined, decorators: [{
|
|
641
|
+
type: Inject,
|
|
642
|
+
args: [PLATFORM_ID]
|
|
643
|
+
}] }], propDecorators: { page: [{
|
|
644
|
+
type: Input
|
|
645
|
+
}], numVisible: [{
|
|
646
|
+
type: Input
|
|
647
|
+
}], numScroll: [{
|
|
648
|
+
type: Input
|
|
649
|
+
}], responsiveOptions: [{
|
|
650
|
+
type: Input
|
|
651
|
+
}], orientation: [{
|
|
652
|
+
type: Input
|
|
653
|
+
}], navigatorsType: [{
|
|
654
|
+
type: Input
|
|
655
|
+
}], verticalViewPortHeight: [{
|
|
656
|
+
type: Input
|
|
657
|
+
}], arrowSelector: [{
|
|
658
|
+
type: Input
|
|
659
|
+
}], contentClass: [{
|
|
660
|
+
type: Input
|
|
661
|
+
}], indicatorsContentClass: [{
|
|
662
|
+
type: Input
|
|
663
|
+
}], indicatorsContentStyle: [{
|
|
664
|
+
type: Input
|
|
665
|
+
}], indicatorStyleClass: [{
|
|
666
|
+
type: Input
|
|
667
|
+
}], indicatorStyle: [{
|
|
668
|
+
type: Input
|
|
669
|
+
}], data: [{
|
|
670
|
+
type: Input
|
|
671
|
+
}], circular: [{
|
|
672
|
+
type: Input,
|
|
673
|
+
args: [{ transform: booleanAttribute }]
|
|
674
|
+
}], showIndicators: [{
|
|
675
|
+
type: Input,
|
|
676
|
+
args: [{ transform: booleanAttribute }]
|
|
677
|
+
}], showNavigators: [{
|
|
678
|
+
type: Input,
|
|
679
|
+
args: [{ transform: booleanAttribute }]
|
|
680
|
+
}], autoplayInterval: [{
|
|
681
|
+
type: Input,
|
|
682
|
+
args: [{ transform: numberAttribute }]
|
|
683
|
+
}], style: [{
|
|
684
|
+
type: Input
|
|
685
|
+
}], styleClass: [{
|
|
686
|
+
type: Input
|
|
687
|
+
}], pageEvent: [{
|
|
688
|
+
type: Output
|
|
689
|
+
}], itemsContainer: [{
|
|
690
|
+
type: ViewChild,
|
|
691
|
+
args: ['itemsContainer']
|
|
692
|
+
}], indicatorContent: [{
|
|
693
|
+
type: ViewChild,
|
|
694
|
+
args: ['indicatorContent']
|
|
695
|
+
}], headerFacet: [{
|
|
696
|
+
type: ContentChild,
|
|
697
|
+
args: [CmatCarouselHeaderComponent]
|
|
698
|
+
}], footerFacet: [{
|
|
699
|
+
type: ContentChild,
|
|
700
|
+
args: [CmatCarouselFooterComponent]
|
|
701
|
+
}], templates: [{
|
|
702
|
+
type: ContentChildren,
|
|
703
|
+
args: [CmatCarouselTemplateDirective]
|
|
704
|
+
}] } });
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Generated bundle index. Do not edit.
|
|
708
|
+
*/
|
|
709
|
+
|
|
710
|
+
export { CmatCarouselComponent, CmatCarouselFooterComponent, CmatCarouselHeaderComponent, CmatCarouselTemplateDirective };
|
|
711
|
+
//# sourceMappingURL=cmat-components-carousel.mjs.map
|