cmat 0.0.3
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/README.md +3 -0
- package/animations/defaults.d.ts +11 -0
- package/animations/drop.d.ts +2 -0
- package/animations/expand-collapse.d.ts +2 -0
- package/animations/fade.d.ts +11 -0
- package/animations/index.d.ts +5 -0
- package/animations/public-api.d.ts +1 -0
- package/animations/shake.d.ts +2 -0
- package/animations/slide.d.ts +9 -0
- package/animations/transform.d.ts +2 -0
- package/animations/zoom.d.ts +3 -0
- package/components/adapter/datetime-adapter.d.ts +45 -0
- package/components/adapter/datetime-formats.d.ts +22 -0
- package/components/adapter/dayjs-date-adapter.d.ts +63 -0
- package/components/adapter/dayjs-date-formats.d.ts +2 -0
- package/components/adapter/dayjs-datetime-adapter.d.ts +22 -0
- package/components/adapter/dayjs-datetime-formats.d.ts +2 -0
- package/components/adapter/index.d.ts +5 -0
- package/components/adapter/native-datetime-adapter.d.ts +31 -0
- package/components/adapter/native-datetime-formats.d.ts +2 -0
- package/components/adapter/public-api.d.ts +8 -0
- package/components/breadcrumb/breadcrumb-item.directive.d.ts +10 -0
- package/components/breadcrumb/breadcrumb.component.d.ts +57 -0
- package/components/breadcrumb/breadcrumb.component.scss +18 -0
- package/components/breadcrumb/breadcrumb.service.d.ts +126 -0
- package/components/breadcrumb/index.d.ts +5 -0
- package/components/breadcrumb/public-api.d.ts +3 -0
- package/components/breadcrumb/types/breadcrumb.config.d.ts +33 -0
- package/components/breadcrumb/types/breadcrumb.d.ts +23 -0
- package/components/card/card.component.d.ts +20 -0
- package/components/card/card.component.scss +63 -0
- package/components/card/card.types.d.ts +1 -0
- package/components/card/index.d.ts +5 -0
- package/components/card/public-api.d.ts +1 -0
- package/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.d.ts +14 -0
- package/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.scss +43 -0
- package/components/cascade/cascade-list/cascade-list.component.d.ts +52 -0
- package/components/cascade/cascade-list/cascade-list.component.scss +22 -0
- package/components/cascade/cascade-menu/cascade-menu.component.d.ts +10 -0
- package/components/cascade/cascade-menu/cascade-menu.component.scss +48 -0
- package/components/cascade/index.d.ts +5 -0
- package/components/cascade/options.interface.d.ts +8 -0
- package/components/cascade/public-api.d.ts +2 -0
- package/components/date-range/date-range.component.d.ts +134 -0
- package/components/date-range/date-range.component.scss +232 -0
- package/components/date-range/index.d.ts +5 -0
- package/components/date-range/public-api.d.ts +1 -0
- package/components/drawer/drawer.component.d.ts +75 -0
- package/components/drawer/drawer.component.scss +133 -0
- package/components/drawer/drawer.service.d.ts +26 -0
- package/components/drawer/drawer.types.d.ts +2 -0
- package/components/drawer/index.d.ts +5 -0
- package/components/drawer/public-api.d.ts +3 -0
- package/components/fullscreen/fullscreen.component.d.ts +18 -0
- package/components/fullscreen/fullscreen.types.d.ts +13 -0
- package/components/fullscreen/index.d.ts +5 -0
- package/components/fullscreen/public-api.d.ts +2 -0
- package/components/highlight/highlight.component.d.ts +21 -0
- package/components/highlight/highlight.component.scss +3 -0
- package/components/highlight/highlight.service.d.ts +7 -0
- package/components/highlight/index.d.ts +5 -0
- package/components/highlight/public-api.d.ts +2 -0
- package/components/masonry/index.d.ts +5 -0
- package/components/masonry/masonry.component.d.ts +13 -0
- package/components/masonry/public-api.d.ts +1 -0
- package/components/material-color-picker/base-color.d.ts +1 -0
- package/components/material-color-picker/index.d.ts +5 -0
- package/components/material-color-picker/material-color-picker.component.d.ts +35 -0
- package/components/material-color-picker/material-color-picker.component.scss +5 -0
- package/components/material-color-picker/public-api.d.ts +2 -0
- package/components/material-color-picker/selected-color.d.ts +5 -0
- package/components/material-datetimepicker/calendar-body.d.ts +43 -0
- package/components/material-datetimepicker/calendar-body.scss +58 -0
- package/components/material-datetimepicker/calendar.d.ts +146 -0
- package/components/material-datetimepicker/calendar.scss +194 -0
- package/components/material-datetimepicker/clock.d.ts +74 -0
- package/components/material-datetimepicker/clock.scss +90 -0
- package/components/material-datetimepicker/datetimepicker-animations.d.ts +4 -0
- package/components/material-datetimepicker/datetimepicker-content.scss +151 -0
- package/components/material-datetimepicker/datetimepicker-errors.d.ts +1 -0
- package/components/material-datetimepicker/datetimepicker-filtertype.d.ts +5 -0
- package/components/material-datetimepicker/datetimepicker-input.d.ts +106 -0
- package/components/material-datetimepicker/datetimepicker-intl.d.ts +51 -0
- package/components/material-datetimepicker/datetimepicker-toggle.d.ts +40 -0
- package/components/material-datetimepicker/datetimepicker-types.d.ts +13 -0
- package/components/material-datetimepicker/datetimepicker.d.ts +195 -0
- package/components/material-datetimepicker/datetimepicker.scss +145 -0
- package/components/material-datetimepicker/index.d.ts +5 -0
- package/components/material-datetimepicker/month-view.d.ts +64 -0
- package/components/material-datetimepicker/multi-year-view.d.ts +74 -0
- package/components/material-datetimepicker/public-api.d.ts +9 -0
- package/components/material-datetimepicker/time.d.ts +129 -0
- package/components/material-datetimepicker/time.scss +82 -0
- package/components/material-datetimepicker/year-view.d.ts +56 -0
- package/components/navigation/horizontal/components/basic/basic.component.d.ts +27 -0
- package/components/navigation/horizontal/components/branch/branch.component.d.ts +39 -0
- package/components/navigation/horizontal/components/divider/divider.component.d.ts +23 -0
- package/components/navigation/horizontal/components/spacer/spacer.component.d.ts +23 -0
- package/components/navigation/horizontal/horizontal.component.d.ts +43 -0
- package/components/navigation/horizontal/horizontal.component.scss +167 -0
- package/components/navigation/index.d.ts +5 -0
- package/components/navigation/navigation.service.d.ts +71 -0
- package/components/navigation/navigation.types.d.ts +34 -0
- package/components/navigation/public-api.d.ts +4 -0
- package/components/navigation/vertical/components/aside/aside.component.d.ts +63 -0
- package/components/navigation/vertical/components/basic/basic.component.d.ts +30 -0
- package/components/navigation/vertical/components/collapsable/collapsable.component.d.ts +74 -0
- package/components/navigation/vertical/components/divider/divider.component.d.ts +26 -0
- package/components/navigation/vertical/components/group/group.component.d.ts +36 -0
- package/components/navigation/vertical/components/spacer/spacer.component.d.ts +26 -0
- package/components/navigation/vertical/styles/appearances/compact.scss +103 -0
- package/components/navigation/vertical/styles/appearances/default.scss +550 -0
- package/components/navigation/vertical/styles/appearances/dense.scss +171 -0
- package/components/navigation/vertical/styles/appearances/thin.scss +91 -0
- package/components/navigation/vertical/vertical.component.d.ts +176 -0
- package/components/navigation/vertical/vertical.component.scss +4 -0
- package/components/pagination/index.d.ts +5 -0
- package/components/pagination/pagination.component.d.ts +24 -0
- package/components/pagination/pagination.directive.d.ts +40 -0
- package/components/pagination/pagination.instance.d.ts +11 -0
- package/components/pagination/pagination.pipe.d.ts +29 -0
- package/components/pagination/pagination.service.d.ts +20 -0
- package/components/pagination/public-api.d.ts +4 -0
- package/components/password-strength/animations/index.d.ts +4 -0
- package/components/password-strength/enum.d.ts +13 -0
- package/components/password-strength/index.d.ts +5 -0
- package/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.d.ts +11 -0
- package/components/password-strength/mat-password-strength/mat-password-strength.component.d.ts +52 -0
- package/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.d.ts +16 -0
- package/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.scss +19 -0
- package/components/password-strength/mat-password-strength-validator.d.ts +6 -0
- package/components/password-strength/public-api.d.ts +3 -0
- package/components/password-strength/regexp.class.d.ts +6 -0
- package/components/popover/index.d.ts +5 -0
- package/components/popover/popover.component.d.ts +139 -0
- package/components/popover/popover.component.scss +174 -0
- package/components/popover/popover.errors.d.ts +14 -0
- package/components/popover/popover.interfaces.d.ts +44 -0
- package/components/popover/popover.type.d.ts +5 -0
- package/components/popover/public-api.d.ts +1 -0
- package/components/progress-bar/index.d.ts +5 -0
- package/components/progress-bar/progress-bar.component.d.ts +17 -0
- package/components/progress-bar/progress-bar.component.scss +7 -0
- package/components/progress-bar/public-api.d.ts +1 -0
- package/components/rating/index.d.ts +5 -0
- package/components/rating/public-api.d.ts +1 -0
- package/components/rating/rating.component.d.ts +28 -0
- package/components/rating/rating.component.scss +33 -0
- package/components/select-search/default-options.d.ts +8 -0
- package/components/select-search/index.d.ts +5 -0
- package/components/select-search/public-api.d.ts +2 -0
- package/components/select-search/select-no-entries-found.directive.d.ts +5 -0
- package/components/select-search/select-search-clear.directive.d.ts +5 -0
- package/components/select-search/select-search.component.d.ts +91 -0
- package/components/select-search/select-search.component.scss +126 -0
- package/components/select-tree/index.d.ts +5 -0
- package/components/select-tree/public-api.d.ts +1 -0
- package/components/select-tree/select-tree.component.d.ts +85 -0
- package/components/select-tree/select-tree.component.scss +54 -0
- package/components/select-tree/select-tree.flatnode.d.ts +6 -0
- package/components/select-tree/select-tree.node.d.ts +5 -0
- package/components/timeline/index.d.ts +5 -0
- package/components/timeline/public-api.d.ts +2 -0
- package/components/timeline/timeline-item/timeline-item.component.d.ts +25 -0
- package/components/timeline/timeline-item/timeline-item.component.scss +329 -0
- package/components/timeline/timeline.component.d.ts +32 -0
- package/components/timeline/timeline.component.scss +42 -0
- package/components/toast/index.d.ts +5 -0
- package/components/toast/models/global-config.model.d.ts +12 -0
- package/components/toast/models/toast.model.d.ts +6 -0
- package/components/toast/models/type.model.d.ts +12 -0
- package/components/toast/public-api.d.ts +2 -0
- package/components/toast/toast-modal.component.d.ts +18 -0
- package/components/toast/toast-modal.component.scss +119 -0
- package/components/toast/toast.component.d.ts +17 -0
- package/components/toast/toast.component.scss +62 -0
- package/components/toast/toast.service.d.ts +26 -0
- package/components/transfer-picker/filter/filter.component.d.ts +24 -0
- package/components/transfer-picker/filter/filter.component.scss +40 -0
- package/components/transfer-picker/index.d.ts +5 -0
- package/components/transfer-picker/interface.d.ts +42 -0
- package/components/transfer-picker/public-api.d.ts +7 -0
- package/components/transfer-picker/search/search.component.d.ts +14 -0
- package/components/transfer-picker/search/search.component.scss +7 -0
- package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.d.ts +49 -0
- package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.scss +25 -0
- package/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.d.ts +12 -0
- package/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.scss +27 -0
- package/components/transfer-picker/transfer-picker.component.d.ts +28 -0
- package/components/transfer-picker/transfer-picker.component.scss +8 -0
- package/components/transfer-picker/transfer-picker.service.d.ts +31 -0
- package/directives/animate-on-scroll/animate-on-scroll.directive.d.ts +29 -0
- package/directives/animate-on-scroll/index.d.ts +5 -0
- package/directives/animate-on-scroll/public-api.d.ts +1 -0
- package/directives/animate-on-scroll/scroll.service.d.ts +15 -0
- package/directives/autofocus/autofocus.directive.d.ts +10 -0
- package/directives/autofocus/index.d.ts +5 -0
- package/directives/autofocus/public-api.d.ts +1 -0
- package/directives/debounce/abstract-debounce.directive.d.ts +15 -0
- package/directives/debounce/debounce-click.directive.d.ts +8 -0
- package/directives/debounce/debounce-keyup.directive.d.ts +8 -0
- package/directives/debounce/index.d.ts +5 -0
- package/directives/debounce/public-api.d.ts +2 -0
- package/directives/digit-only/digit-only.directive.d.ts +34 -0
- package/directives/digit-only/index.d.ts +5 -0
- package/directives/digit-only/mask.directive.d.ts +14 -0
- package/directives/digit-only/public-api.d.ts +2 -0
- package/directives/equal-validator/equal-validator.directive.d.ts +14 -0
- package/directives/equal-validator/index.d.ts +5 -0
- package/directives/equal-validator/public-api.d.ts +1 -0
- package/esm2022/animations/cmat-animations.mjs +5 -0
- package/esm2022/animations/defaults.mjs +12 -0
- package/esm2022/animations/drop.mjs +26 -0
- package/esm2022/animations/expand-collapse.mjs +17 -0
- package/esm2022/animations/fade.mjs +170 -0
- package/esm2022/animations/public-api.mjs +19 -0
- package/esm2022/animations/shake.mjs +59 -0
- package/esm2022/animations/slide.mjs +124 -0
- package/esm2022/animations/transform.mjs +16 -0
- package/esm2022/animations/zoom.mjs +38 -0
- package/esm2022/cmat.mjs +5 -0
- package/esm2022/components/adapter/cmat-components-adapter.mjs +5 -0
- package/esm2022/components/adapter/datetime-adapter.mjs +127 -0
- package/esm2022/components/adapter/datetime-formats.mjs +3 -0
- package/esm2022/components/adapter/dayjs-date-adapter.mjs +198 -0
- package/esm2022/components/adapter/dayjs-date-formats.mjs +12 -0
- package/esm2022/components/adapter/dayjs-datetime-adapter.mjs +100 -0
- package/esm2022/components/adapter/dayjs-datetime-formats.mjs +21 -0
- package/esm2022/components/adapter/native-datetime-adapter.mjs +130 -0
- package/esm2022/components/adapter/native-datetime-formats.mjs +15 -0
- package/esm2022/components/adapter/public-api.mjs +9 -0
- package/esm2022/components/breadcrumb/breadcrumb-item.directive.mjs +19 -0
- package/esm2022/components/breadcrumb/breadcrumb.component.mjs +95 -0
- package/esm2022/components/breadcrumb/breadcrumb.service.mjs +336 -0
- package/esm2022/components/breadcrumb/cmat-components-breadcrumb.mjs +5 -0
- package/esm2022/components/breadcrumb/public-api.mjs +4 -0
- package/esm2022/components/breadcrumb/types/breadcrumb.config.mjs +2 -0
- package/esm2022/components/breadcrumb/types/breadcrumb.mjs +2 -0
- package/esm2022/components/card/card.component.mjs +58 -0
- package/esm2022/components/card/card.types.mjs +2 -0
- package/esm2022/components/card/cmat-components-card.mjs +5 -0
- package/esm2022/components/card/public-api.mjs +2 -0
- package/esm2022/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.mjs +53 -0
- package/esm2022/components/cascade/cascade-list/cascade-list.component.mjs +263 -0
- package/esm2022/components/cascade/cascade-menu/cascade-menu.component.mjs +29 -0
- package/esm2022/components/cascade/cmat-components-cascade.mjs +5 -0
- package/esm2022/components/cascade/options.interface.mjs +2 -0
- package/esm2022/components/cascade/public-api.mjs +3 -0
- package/esm2022/components/date-range/cmat-components-date-range.mjs +5 -0
- package/esm2022/components/date-range/date-range.component.mjs +540 -0
- package/esm2022/components/date-range/public-api.mjs +2 -0
- package/esm2022/components/drawer/cmat-components-drawer.mjs +5 -0
- package/esm2022/components/drawer/drawer.component.mjs +301 -0
- package/esm2022/components/drawer/drawer.service.mjs +41 -0
- package/esm2022/components/drawer/drawer.types.mjs +2 -0
- package/esm2022/components/drawer/public-api.mjs +4 -0
- package/esm2022/components/fullscreen/cmat-components-fullscreen.mjs +5 -0
- package/esm2022/components/fullscreen/fullscreen.component.mjs +101 -0
- package/esm2022/components/fullscreen/fullscreen.types.mjs +2 -0
- package/esm2022/components/fullscreen/public-api.mjs +3 -0
- package/esm2022/components/highlight/cmat-components-highlight.mjs +5 -0
- package/esm2022/components/highlight/highlight.component.mjs +80 -0
- package/esm2022/components/highlight/highlight.service.mjs +47 -0
- package/esm2022/components/highlight/public-api.mjs +3 -0
- package/esm2022/components/masonry/cmat-components-masonry.mjs +5 -0
- package/esm2022/components/masonry/masonry.component.mjs +54 -0
- package/esm2022/components/masonry/public-api.mjs +2 -0
- package/esm2022/components/material-color-picker/base-color.mjs +13 -0
- package/esm2022/components/material-color-picker/cmat-components-material-color-picker.mjs +5 -0
- package/esm2022/components/material-color-picker/material-color-picker.component.mjs +138 -0
- package/esm2022/components/material-color-picker/public-api.mjs +3 -0
- package/esm2022/components/material-color-picker/selected-color.mjs +3 -0
- package/esm2022/components/material-datetimepicker/calendar-body.mjs +80 -0
- package/esm2022/components/material-datetimepicker/calendar.mjs +678 -0
- package/esm2022/components/material-datetimepicker/clock.mjs +293 -0
- package/esm2022/components/material-datetimepicker/cmat-components-material-datetimepicker.mjs +5 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-animations.mjs +34 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-errors.mjs +6 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-filtertype.mjs +8 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-input.mjs +340 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-intl.mjs +63 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-toggle.mjs +88 -0
- package/esm2022/components/material-datetimepicker/datetimepicker-types.mjs +2 -0
- package/esm2022/components/material-datetimepicker/datetimepicker.mjs +534 -0
- package/esm2022/components/material-datetimepicker/month-view.mjs +146 -0
- package/esm2022/components/material-datetimepicker/multi-year-view.mjs +198 -0
- package/esm2022/components/material-datetimepicker/public-api.mjs +10 -0
- package/esm2022/components/material-datetimepicker/time.mjs +456 -0
- package/esm2022/components/material-datetimepicker/year-view.mjs +125 -0
- package/esm2022/components/navigation/cmat-components-navigation.mjs +5 -0
- package/esm2022/components/navigation/horizontal/components/basic/basic.component.mjs +70 -0
- package/esm2022/components/navigation/horizontal/components/branch/branch.component.mjs +83 -0
- package/esm2022/components/navigation/horizontal/components/divider/divider.component.mjs +47 -0
- package/esm2022/components/navigation/horizontal/components/spacer/spacer.component.mjs +47 -0
- package/esm2022/components/navigation/horizontal/horizontal.component.mjs +88 -0
- package/esm2022/components/navigation/navigation.service.mjs +140 -0
- package/esm2022/components/navigation/navigation.types.mjs +3 -0
- package/esm2022/components/navigation/public-api.mjs +5 -0
- package/esm2022/components/navigation/vertical/components/aside/aside.component.mjs +162 -0
- package/esm2022/components/navigation/vertical/components/basic/basic.component.mjs +76 -0
- package/esm2022/components/navigation/vertical/components/collapsable/collapsable.component.mjs +279 -0
- package/esm2022/components/navigation/vertical/components/divider/divider.component.mjs +56 -0
- package/esm2022/components/navigation/vertical/components/group/group.component.mjs +79 -0
- package/esm2022/components/navigation/vertical/components/spacer/spacer.component.mjs +56 -0
- package/esm2022/components/navigation/vertical/vertical.component.mjs +586 -0
- package/esm2022/components/pagination/cmat-components-pagination.mjs +5 -0
- package/esm2022/components/pagination/pagination.component.mjs +71 -0
- package/esm2022/components/pagination/pagination.directive.mjs +197 -0
- package/esm2022/components/pagination/pagination.instance.mjs +2 -0
- package/esm2022/components/pagination/pagination.pipe.mjs +100 -0
- package/esm2022/components/pagination/pagination.service.mjs +90 -0
- package/esm2022/components/pagination/public-api.mjs +5 -0
- package/esm2022/components/password-strength/animations/index.mjs +48 -0
- package/esm2022/components/password-strength/cmat-components-password-strength.mjs +5 -0
- package/esm2022/components/password-strength/enum.mjs +17 -0
- package/esm2022/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.mjs +27 -0
- package/esm2022/components/password-strength/mat-password-strength/mat-password-strength.component.mjs +206 -0
- package/esm2022/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.mjs +151 -0
- package/esm2022/components/password-strength/mat-password-strength-validator.mjs +36 -0
- package/esm2022/components/password-strength/public-api.mjs +4 -0
- package/esm2022/components/password-strength/regexp.class.mjs +8 -0
- package/esm2022/components/popover/cmat-components-popover.mjs +5 -0
- package/esm2022/components/popover/popover.component.mjs +350 -0
- package/esm2022/components/popover/popover.errors.mjs +27 -0
- package/esm2022/components/popover/popover.interfaces.mjs +2 -0
- package/esm2022/components/popover/popover.type.mjs +2 -0
- package/esm2022/components/popover/public-api.mjs +2 -0
- package/esm2022/components/progress-bar/cmat-components-progress-bar.mjs +5 -0
- package/esm2022/components/progress-bar/progress-bar.component.mjs +55 -0
- package/esm2022/components/progress-bar/public-api.mjs +2 -0
- package/esm2022/components/rating/cmat-components-rating.mjs +5 -0
- package/esm2022/components/rating/public-api.mjs +2 -0
- package/esm2022/components/rating/rating.component.mjs +91 -0
- package/esm2022/components/select-search/cmat-components-select-search.mjs +5 -0
- package/esm2022/components/select-search/default-options.mjs +16 -0
- package/esm2022/components/select-search/public-api.mjs +3 -0
- package/esm2022/components/select-search/select-no-entries-found.directive.mjs +14 -0
- package/esm2022/components/select-search/select-search-clear.directive.mjs +14 -0
- package/esm2022/components/select-search/select-search.component.mjs +488 -0
- package/esm2022/components/select-tree/cmat-components-select-tree.mjs +5 -0
- package/esm2022/components/select-tree/public-api.mjs +2 -0
- package/esm2022/components/select-tree/select-tree.component.mjs +458 -0
- package/esm2022/components/select-tree/select-tree.flatnode.mjs +3 -0
- package/esm2022/components/select-tree/select-tree.node.mjs +3 -0
- package/esm2022/components/timeline/cmat-components-timeline.mjs +5 -0
- package/esm2022/components/timeline/public-api.mjs +3 -0
- package/esm2022/components/timeline/timeline-item/timeline-item.component.mjs +68 -0
- package/esm2022/components/timeline/timeline.component.mjs +114 -0
- package/esm2022/components/toast/cmat-components-toast.mjs +5 -0
- package/esm2022/components/toast/models/global-config.model.mjs +2 -0
- package/esm2022/components/toast/models/toast.model.mjs +2 -0
- package/esm2022/components/toast/models/type.model.mjs +2 -0
- package/esm2022/components/toast/public-api.mjs +3 -0
- package/esm2022/components/toast/toast-modal.component.mjs +53 -0
- package/esm2022/components/toast/toast.component.mjs +30 -0
- package/esm2022/components/toast/toast.service.mjs +122 -0
- package/esm2022/components/transfer-picker/cmat-components-transfer-picker.mjs +5 -0
- package/esm2022/components/transfer-picker/filter/filter.component.mjs +85 -0
- package/esm2022/components/transfer-picker/interface.mjs +17 -0
- package/esm2022/components/transfer-picker/public-api.mjs +8 -0
- package/esm2022/components/transfer-picker/search/search.component.mjs +34 -0
- package/esm2022/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.mjs +178 -0
- package/esm2022/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.mjs +34 -0
- package/esm2022/components/transfer-picker/transfer-picker.component.mjs +82 -0
- package/esm2022/components/transfer-picker/transfer-picker.service.mjs +134 -0
- package/esm2022/directives/animate-on-scroll/animate-on-scroll.directive.mjs +126 -0
- package/esm2022/directives/animate-on-scroll/cmat-directives-animate-on-scroll.mjs +5 -0
- package/esm2022/directives/animate-on-scroll/public-api.mjs +2 -0
- package/esm2022/directives/animate-on-scroll/scroll.service.mjs +38 -0
- package/esm2022/directives/autofocus/autofocus.directive.mjs +20 -0
- package/esm2022/directives/autofocus/cmat-directives-autofocus.mjs +5 -0
- package/esm2022/directives/autofocus/public-api.mjs +2 -0
- package/esm2022/directives/debounce/abstract-debounce.directive.mjs +34 -0
- package/esm2022/directives/debounce/cmat-directives-debounce.mjs +5 -0
- package/esm2022/directives/debounce/debounce-click.directive.mjs +25 -0
- package/esm2022/directives/debounce/debounce-keyup.directive.mjs +25 -0
- package/esm2022/directives/debounce/public-api.mjs +3 -0
- package/esm2022/directives/digit-only/cmat-directives-digit-only.mjs +5 -0
- package/esm2022/directives/digit-only/digit-only.directive.mjs +282 -0
- package/esm2022/directives/digit-only/mask.directive.mjs +69 -0
- package/esm2022/directives/digit-only/public-api.mjs +3 -0
- package/esm2022/directives/equal-validator/cmat-directives-equal-validator.mjs +5 -0
- package/esm2022/directives/equal-validator/equal-validator.directive.mjs +54 -0
- package/esm2022/directives/equal-validator/public-api.mjs +2 -0
- package/esm2022/lib/mock-api/cmat-lib-mock-api.mjs +5 -0
- package/esm2022/lib/mock-api/mock-api.constants.mjs +3 -0
- package/esm2022/lib/mock-api/mock-api.interceptor.mjs +73 -0
- package/esm2022/lib/mock-api/mock-api.request-handler.mjs +48 -0
- package/esm2022/lib/mock-api/mock-api.service.mjs +93 -0
- package/esm2022/lib/mock-api/mock-api.types.mjs +2 -0
- package/esm2022/lib/mock-api/mock-api.utils.mjs +17 -0
- package/esm2022/lib/mock-api/public-api.mjs +6 -0
- package/esm2022/pipes/bytes/bytes.pipe.mjs +25 -0
- package/esm2022/pipes/bytes/cmat-pipes-bytes.mjs +5 -0
- package/esm2022/pipes/bytes/public-api.mjs +2 -0
- package/esm2022/pipes/date-format/cmat-pipes-date-format.mjs +5 -0
- package/esm2022/pipes/date-format/date-format.pipe.mjs +18 -0
- package/esm2022/pipes/date-format/public-api.mjs +2 -0
- package/esm2022/pipes/find-by-key/cmat-pipes-find-by-key.mjs +5 -0
- package/esm2022/pipes/find-by-key/find-by-key.pipe.mjs +23 -0
- package/esm2022/pipes/find-by-key/public-api.mjs +2 -0
- package/esm2022/pipes/group-by/cmat-pipes-group-by.mjs +5 -0
- package/esm2022/pipes/group-by/group-by.pipe.mjs +29 -0
- package/esm2022/pipes/group-by/public-api.mjs +2 -0
- package/esm2022/pipes/keys/cmat-pipes-keys.mjs +5 -0
- package/esm2022/pipes/keys/keys.pipe.mjs +26 -0
- package/esm2022/pipes/keys/public-api.mjs +2 -0
- package/esm2022/pipes/secure/cmat-pipes-secure.mjs +5 -0
- package/esm2022/pipes/secure/public-api.mjs +2 -0
- package/esm2022/pipes/secure/secure-pipe.mjs +43 -0
- package/esm2022/pipes/uppercase/cmat-pipes-uppercase.mjs +5 -0
- package/esm2022/pipes/uppercase/public-api.mjs +2 -0
- package/esm2022/pipes/uppercase/uppercase.pipe.mjs +17 -0
- package/esm2022/public-api.mjs +2 -0
- package/esm2022/services/alert/alert.dialog.mjs +12 -0
- package/esm2022/services/alert/alert.message.mjs +9 -0
- package/esm2022/services/alert/alert.service.mjs +165 -0
- package/esm2022/services/alert/cmat-services-alert.mjs +5 -0
- package/esm2022/services/alert/enum.mjs +15 -0
- package/esm2022/services/alert/public-api.mjs +5 -0
- package/esm2022/services/config/cmat-services-config.mjs +5 -0
- package/esm2022/services/config/config.constants.mjs +3 -0
- package/esm2022/services/config/config.service.mjs +35 -0
- package/esm2022/services/config/public-api.mjs +4 -0
- package/esm2022/services/config/urlStateConfig.service.mjs +30 -0
- package/esm2022/services/confirmation/cmat-services-confirmation.mjs +5 -0
- package/esm2022/services/confirmation/confirmation.service.mjs +51 -0
- package/esm2022/services/confirmation/confirmation.types.mjs +2 -0
- package/esm2022/services/confirmation/dialog/dialog.component.mjs +25 -0
- package/esm2022/services/confirmation/public-api.mjs +3 -0
- package/esm2022/services/data/cmat-services-data.mjs +5 -0
- package/esm2022/services/data/data.service.mjs +169 -0
- package/esm2022/services/data/public-api.mjs +2 -0
- package/esm2022/services/loading/cmat-services-loading.mjs +5 -0
- package/esm2022/services/loading/loading.interceptor.mjs +29 -0
- package/esm2022/services/loading/loading.service.mjs +72 -0
- package/esm2022/services/loading/public-api.mjs +3 -0
- package/esm2022/services/local-storage/cmat-services-local-storage.mjs +5 -0
- package/esm2022/services/local-storage/local-storage.service.mjs +22 -0
- package/esm2022/services/local-storage/public-api.mjs +2 -0
- package/esm2022/services/media-watcher/cmat-services-media-watcher.mjs +5 -0
- package/esm2022/services/media-watcher/media-watcher.service.mjs +55 -0
- package/esm2022/services/media-watcher/public-api.mjs +2 -0
- package/esm2022/services/platform/cmat-services-platform.mjs +5 -0
- package/esm2022/services/platform/platform.service.mjs +46 -0
- package/esm2022/services/platform/public-api.mjs +2 -0
- package/esm2022/services/splash-screen/cmat-services-splash-screen.mjs +5 -0
- package/esm2022/services/splash-screen/public-api.mjs +2 -0
- package/esm2022/services/splash-screen/splash-screen.service.mjs +42 -0
- package/esm2022/services/title/cmat-services-title.mjs +5 -0
- package/esm2022/services/title/public-api.mjs +2 -0
- package/esm2022/services/title/title.service.mjs +46 -0
- package/esm2022/services/translation/cmat-services-translation.mjs +5 -0
- package/esm2022/services/translation/public-api.mjs +2 -0
- package/esm2022/services/translation/translation.service.mjs +62 -0
- package/esm2022/services/utils/cmat-services-utils.mjs +5 -0
- package/esm2022/services/utils/public-api.mjs +2 -0
- package/esm2022/services/utils/utils.service.mjs +391 -0
- package/esm2022/validators/cmat-validators.mjs +5 -0
- package/esm2022/validators/public-api.mjs +2 -0
- package/esm2022/validators/validators.mjs +33 -0
- package/esm2022/version/cmat-version.mjs +5 -0
- package/esm2022/version/public-api.mjs +2 -0
- package/esm2022/version/version.mjs +11 -0
- package/fesm2022/cmat-animations.mjs +466 -0
- package/fesm2022/cmat-animations.mjs.map +1 -0
- package/fesm2022/cmat-components-adapter.mjs +600 -0
- package/fesm2022/cmat-components-adapter.mjs.map +1 -0
- package/fesm2022/cmat-components-breadcrumb.mjs +449 -0
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/cmat-components-card.mjs +65 -0
- package/fesm2022/cmat-components-card.mjs.map +1 -0
- package/fesm2022/cmat-components-cascade.mjs +334 -0
- package/fesm2022/cmat-components-cascade.mjs.map +1 -0
- package/fesm2022/cmat-components-date-range.mjs +547 -0
- package/fesm2022/cmat-components-date-range.mjs.map +1 -0
- package/fesm2022/cmat-components-drawer.mjs +346 -0
- package/fesm2022/cmat-components-drawer.mjs.map +1 -0
- package/fesm2022/cmat-components-fullscreen.mjs +108 -0
- package/fesm2022/cmat-components-fullscreen.mjs.map +1 -0
- package/fesm2022/cmat-components-highlight.mjs +131 -0
- package/fesm2022/cmat-components-highlight.mjs.map +1 -0
- package/fesm2022/cmat-components-masonry.mjs +61 -0
- package/fesm2022/cmat-components-masonry.mjs.map +1 -0
- package/fesm2022/cmat-components-material-color-picker.mjs +160 -0
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -0
- package/fesm2022/cmat-components-material-datetimepicker.mjs +2976 -0
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -0
- package/fesm2022/cmat-components-navigation.mjs +1656 -0
- package/fesm2022/cmat-components-navigation.mjs.map +1 -0
- package/fesm2022/cmat-components-pagination.mjs +455 -0
- package/fesm2022/cmat-components-pagination.mjs.map +1 -0
- package/fesm2022/cmat-components-password-strength.mjs +489 -0
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -0
- package/fesm2022/cmat-components-popover.mjs +383 -0
- package/fesm2022/cmat-components-popover.mjs.map +1 -0
- package/fesm2022/cmat-components-progress-bar.mjs +62 -0
- package/fesm2022/cmat-components-progress-bar.mjs.map +1 -0
- package/fesm2022/cmat-components-rating.mjs +98 -0
- package/fesm2022/cmat-components-rating.mjs.map +1 -0
- package/fesm2022/cmat-components-select-search.mjs +531 -0
- package/fesm2022/cmat-components-select-search.mjs.map +1 -0
- package/fesm2022/cmat-components-select-tree.mjs +467 -0
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -0
- package/fesm2022/cmat-components-timeline.mjs +186 -0
- package/fesm2022/cmat-components-timeline.mjs.map +1 -0
- package/fesm2022/cmat-components-toast.mjs +205 -0
- package/fesm2022/cmat-components-toast.mjs.map +1 -0
- package/fesm2022/cmat-components-transfer-picker.mjs +536 -0
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -0
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +166 -0
- package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -0
- package/fesm2022/cmat-directives-autofocus.mjs +27 -0
- package/fesm2022/cmat-directives-autofocus.mjs.map +1 -0
- package/fesm2022/cmat-directives-debounce.mjs +85 -0
- package/fesm2022/cmat-directives-debounce.mjs.map +1 -0
- package/fesm2022/cmat-directives-digit-only.mjs +356 -0
- package/fesm2022/cmat-directives-digit-only.mjs.map +1 -0
- package/fesm2022/cmat-directives-equal-validator.mjs +61 -0
- package/fesm2022/cmat-directives-equal-validator.mjs.map +1 -0
- package/fesm2022/cmat-lib-mock-api.mjs +232 -0
- package/fesm2022/cmat-lib-mock-api.mjs.map +1 -0
- package/fesm2022/cmat-pipes-bytes.mjs +32 -0
- package/fesm2022/cmat-pipes-bytes.mjs.map +1 -0
- package/fesm2022/cmat-pipes-date-format.mjs +25 -0
- package/fesm2022/cmat-pipes-date-format.mjs.map +1 -0
- package/fesm2022/cmat-pipes-find-by-key.mjs +30 -0
- package/fesm2022/cmat-pipes-find-by-key.mjs.map +1 -0
- package/fesm2022/cmat-pipes-group-by.mjs +36 -0
- package/fesm2022/cmat-pipes-group-by.mjs.map +1 -0
- package/fesm2022/cmat-pipes-keys.mjs +33 -0
- package/fesm2022/cmat-pipes-keys.mjs.map +1 -0
- package/fesm2022/cmat-pipes-secure.mjs +50 -0
- package/fesm2022/cmat-pipes-secure.mjs.map +1 -0
- package/fesm2022/cmat-pipes-uppercase.mjs +24 -0
- package/fesm2022/cmat-pipes-uppercase.mjs.map +1 -0
- package/fesm2022/cmat-services-alert.mjs +207 -0
- package/fesm2022/cmat-services-alert.mjs.map +1 -0
- package/fesm2022/cmat-services-config.mjs +69 -0
- package/fesm2022/cmat-services-config.mjs.map +1 -0
- package/fesm2022/cmat-services-confirmation.mjs +79 -0
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -0
- package/fesm2022/cmat-services-data.mjs +176 -0
- package/fesm2022/cmat-services-data.mjs.map +1 -0
- package/fesm2022/cmat-services-loading.mjs +104 -0
- package/fesm2022/cmat-services-loading.mjs.map +1 -0
- package/fesm2022/cmat-services-local-storage.mjs +29 -0
- package/fesm2022/cmat-services-local-storage.mjs.map +1 -0
- package/fesm2022/cmat-services-media-watcher.mjs +62 -0
- package/fesm2022/cmat-services-media-watcher.mjs.map +1 -0
- package/fesm2022/cmat-services-platform.mjs +53 -0
- package/fesm2022/cmat-services-platform.mjs.map +1 -0
- package/fesm2022/cmat-services-splash-screen.mjs +49 -0
- package/fesm2022/cmat-services-splash-screen.mjs.map +1 -0
- package/fesm2022/cmat-services-title.mjs +53 -0
- package/fesm2022/cmat-services-title.mjs.map +1 -0
- package/fesm2022/cmat-services-translation.mjs +69 -0
- package/fesm2022/cmat-services-translation.mjs.map +1 -0
- package/fesm2022/cmat-services-utils.mjs +398 -0
- package/fesm2022/cmat-services-utils.mjs.map +1 -0
- package/fesm2022/cmat-validators.mjs +39 -0
- package/fesm2022/cmat-validators.mjs.map +1 -0
- package/fesm2022/cmat-version.mjs +17 -0
- package/fesm2022/cmat-version.mjs.map +1 -0
- package/fesm2022/cmat.mjs +4 -0
- package/fesm2022/cmat.mjs.map +1 -0
- package/icons/CSV.svg +3 -0
- package/icons/EXCEL.svg +3 -0
- package/icons/FILE.svg +3 -0
- package/icons/GIF.svg +3 -0
- package/icons/JPG.svg +3 -0
- package/icons/PDF.svg +3 -0
- package/icons/PNG.svg +3 -0
- package/icons/PPT.svg +3 -0
- package/icons/TEXT.svg +3 -0
- package/icons/VIDEO.svg +3 -0
- package/icons/WORD.svg +3 -0
- package/icons/ZIP.svg +3 -0
- package/icons/arrow-cursor.svg +3 -0
- package/icons/material-icons/heroicons-outline.svg +893 -0
- package/icons/material-icons/heroicons-solid.svg +958 -0
- package/icons/material-icons/material-outline.svg +3586 -0
- package/icons/material-icons/material-solid.svg +3586 -0
- package/index.d.ts +5 -0
- package/lib/mock-api/index.d.ts +5 -0
- package/lib/mock-api/mock-api.constants.d.ts +2 -0
- package/lib/mock-api/mock-api.interceptor.d.ts +12 -0
- package/lib/mock-api/mock-api.request-handler.d.ts +18 -0
- package/lib/mock-api/mock-api.service.d.ts +22 -0
- package/lib/mock-api/mock-api.types.d.ts +9 -0
- package/lib/mock-api/mock-api.utils.d.ts +3 -0
- package/lib/mock-api/public-api.d.ts +5 -0
- package/package.json +344 -0
- package/pipes/bytes/bytes.pipe.d.ts +7 -0
- package/pipes/bytes/index.d.ts +5 -0
- package/pipes/bytes/public-api.d.ts +1 -0
- package/pipes/date-format/date-format.pipe.d.ts +7 -0
- package/pipes/date-format/index.d.ts +5 -0
- package/pipes/date-format/public-api.d.ts +1 -0
- package/pipes/find-by-key/find-by-key.pipe.d.ts +7 -0
- package/pipes/find-by-key/index.d.ts +5 -0
- package/pipes/find-by-key/public-api.d.ts +1 -0
- package/pipes/group-by/group-by.pipe.d.ts +7 -0
- package/pipes/group-by/index.d.ts +5 -0
- package/pipes/group-by/public-api.d.ts +1 -0
- package/pipes/keys/index.d.ts +5 -0
- package/pipes/keys/keys.pipe.d.ts +7 -0
- package/pipes/keys/public-api.d.ts +1 -0
- package/pipes/secure/index.d.ts +5 -0
- package/pipes/secure/public-api.d.ts +1 -0
- package/pipes/secure/secure-pipe.d.ts +18 -0
- package/pipes/uppercase/index.d.ts +5 -0
- package/pipes/uppercase/public-api.d.ts +1 -0
- package/pipes/uppercase/uppercase.pipe.d.ts +7 -0
- package/public-api.d.ts +1 -0
- package/services/alert/alert.dialog.d.ts +11 -0
- package/services/alert/alert.message.d.ts +8 -0
- package/services/alert/alert.service.d.ts +37 -0
- package/services/alert/enum.d.ts +12 -0
- package/services/alert/index.d.ts +5 -0
- package/services/alert/public-api.d.ts +4 -0
- package/services/config/config.constants.d.ts +6 -0
- package/services/config/config.service.d.ts +11 -0
- package/services/config/index.d.ts +5 -0
- package/services/config/public-api.d.ts +3 -0
- package/services/config/urlStateConfig.service.d.ts +10 -0
- package/services/confirmation/confirmation.service.d.ts +12 -0
- package/services/confirmation/confirmation.types.d.ts +21 -0
- package/services/confirmation/dialog/dialog.component.d.ts +10 -0
- package/services/confirmation/index.d.ts +5 -0
- package/services/confirmation/public-api.d.ts +2 -0
- package/services/data/data.service.d.ts +20 -0
- package/services/data/index.d.ts +5 -0
- package/services/data/public-api.d.ts +1 -0
- package/services/loading/index.d.ts +5 -0
- package/services/loading/loading.interceptor.d.ts +12 -0
- package/services/loading/loading.service.d.ts +24 -0
- package/services/loading/public-api.d.ts +2 -0
- package/services/local-storage/index.d.ts +5 -0
- package/services/local-storage/local-storage.service.d.ts +8 -0
- package/services/local-storage/public-api.d.ts +1 -0
- package/services/media-watcher/index.d.ts +5 -0
- package/services/media-watcher/media-watcher.service.d.ts +20 -0
- package/services/media-watcher/public-api.d.ts +1 -0
- package/services/platform/index.d.ts +5 -0
- package/services/platform/platform.service.d.ts +9 -0
- package/services/platform/public-api.d.ts +1 -0
- package/services/splash-screen/index.d.ts +5 -0
- package/services/splash-screen/public-api.d.ts +1 -0
- package/services/splash-screen/splash-screen.service.d.ts +14 -0
- package/services/title/index.d.ts +5 -0
- package/services/title/public-api.d.ts +1 -0
- package/services/title/title.service.d.ts +13 -0
- package/services/translation/index.d.ts +5 -0
- package/services/translation/public-api.d.ts +1 -0
- package/services/translation/translation.service.d.ts +20 -0
- package/services/utils/index.d.ts +5 -0
- package/services/utils/public-api.d.ts +1 -0
- package/services/utils/utils.service.d.ts +57 -0
- package/styles/components/input.scss +42 -0
- package/styles/main.scss +9 -0
- package/styles/overrides/angular-material.scss +1403 -0
- package/styles/overrides/fullcalendar.scss +550 -0
- package/styles/overrides/highlightjs.scss +81 -0
- package/styles/styles.scss +3 -0
- package/styles/tailwind.scss +86 -0
- package/styles/themes.scss +164 -0
- package/styles/user-themes.scss +1 -0
- package/tailwind/plugins/icon-size.js +49 -0
- package/tailwind/plugins/theming.js +256 -0
- package/tailwind/plugins/utilities.js +66 -0
- package/tailwind/utils/generate-contrasts.js +29 -0
- package/tailwind/utils/generate-palette.js +100 -0
- package/tailwind/utils/json-to-sass-map.js +67 -0
- package/validators/index.d.ts +5 -0
- package/validators/public-api.d.ts +1 -0
- package/validators/validators.d.ts +5 -0
- package/version/index.d.ts +5 -0
- package/version/public-api.d.ts +1 -0
- package/version/version.d.ts +9 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmat-components-breadcrumb.mjs","sources":["../../../projects/cmat/components/breadcrumb/breadcrumb-item.directive.ts","../../../projects/cmat/components/breadcrumb/breadcrumb.service.ts","../../../projects/cmat/components/breadcrumb/breadcrumb.component.ts","../../../projects/cmat/components/breadcrumb/breadcrumb.component.html","../../../projects/cmat/components/breadcrumb/cmat-components-breadcrumb.ts"],"sourcesContent":["import { Directive } from '@angular/core';\r\n\r\n/**\r\n * This directive is used to customize the breadcrumb label behavior\r\n * *cmatBreadcrumbItem directive can be used in the child element of cmat-breadcrumb\r\n * Usage: refer to the demo - app.component.html\r\n */\r\n@Directive({\r\n selector: '[cmatBreadcrumbItem]',\r\n standalone: true\r\n})\r\nexport class CmatBreadcrumbItemDirective {\r\n}\r\n","import { Observable } from 'rxjs';\r\nimport { Injectable, OnDestroy } from '@angular/core';\r\nimport { ActivatedRoute, ActivatedRouteSnapshot, GuardsCheckEnd, Route, Router } from '@angular/router';\r\nimport { BehaviorSubject, Subject } from 'rxjs';\r\nimport { filter, takeUntil } from 'rxjs/operators';\r\nimport { CmatBreadcrumb } from './types/breadcrumb';\r\nimport { CmatBreadcrumbFunction, CmatBreadcrumbObject, } from './types/breadcrumb.config';\r\nimport { isNull } from 'lodash-es';\r\n\r\ntype CmatBreadcrumbConfig = CmatBreadcrumbObject | CmatBreadcrumbFunction | string;\r\ntype StoreMatcherKey = 'routeLink' | 'routeRegex' | 'alias';\r\nexport type CmatBreadcrumbDefinition = CmatBreadcrumb & CmatBreadcrumbObject;\r\n\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\nconst PATH_PARAM = { \r\n PREFIX: ':',\r\n REGEX_IDENTIFIER: '/:[^/]+',\r\n REGEX_REPLACER: '/[^/]+',\r\n};\r\n/* eslint-disable @typescript-eslint/naming-convention */\r\n\r\nconst ALIAS_PREFIX = '@';\r\nconst isNonEmpty = (obj: any): boolean => obj && Object.keys(obj).length > 0;\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class CmatBreadcrumbService implements OnDestroy {\r\n private _baseHref = '/';\r\n\r\n private _unsubscribeAll: Subject<void> = new Subject<void>();\r\n /**\r\n * dynamicBreadcrumbStore holds information about dynamically updated breadcrumbs.\r\n * Breadcrumbs can be set from anywhere (component, service) in the app.\r\n * On every breadcrumb update check this store and use the info if available.\r\n */\r\n private _dynamicBreadcrumbStore: CmatBreadcrumbDefinition[] = [];\r\n\r\n /**\r\n * breadcrumbList for the current route\r\n * When breadcrumb info is changed dynamically, check if the currentBreadcrumbs is effected\r\n * If effected, update the change and emit a new stream\r\n */\r\n private _currentBreadcrumbs: CmatBreadcrumbDefinition[] = [];\r\n private _previousBreadcrumbs: CmatBreadcrumbDefinition[] = [];\r\n\r\n /**\r\n * Breadcrumbs observable to be subscribed by BreadcrumbComponent\r\n * Emits on every route change OR dynamic update of breadcrumb\r\n */\r\n private _breadcrumbs = new BehaviorSubject<CmatBreadcrumbDefinition[]>([]);\r\n\r\n constructor(private _activatedRoute: ActivatedRoute, private _router: Router) {\r\n this._detectRouteChanges();\r\n }\r\n\r\n get breadcrumbs$(): Observable<CmatBreadcrumbDefinition[]> {\r\n return this._breadcrumbs.asObservable();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._unsubscribeAll.next(void 0);\r\n this._unsubscribeAll.complete();\r\n }\r\n\r\n /**\r\n * Update breadcrumb dynamically\r\n *\r\n * key can be a path | alias\r\n *\r\n * 1) Using complete route path. route can be passed the same way you define angular routes\r\n * - path can be passed as 'exact path(routeLink)' or 'path with params(routeRegex)'\r\n * - update label Ex: set('/mentor', 'Mentor'), set('/mentor/:id', 'Mentor Details')\r\n * - change visibility Ex: set('/mentor/:id/edit', { skip: true })\r\n * ------------------------------------------ OR ------------------------------------------\r\n * 2) Using route alias (prefixed with '@'). alias should be unique for a route\r\n * - update label Ex: set('@mentor', 'Enabler')\r\n * - change visibility Ex: set('@mentorEdit', { skip: true })\r\n *\r\n *\r\n * value can be string | BreadcrumbObject | BreadcrumbFunction\r\n */\r\n set(key: string, breadcrumb: string | CmatBreadcrumbObject): void {\r\n const breadcrumbObject = this._extractObject(breadcrumb);\r\n let updateArgs: [StoreMatcherKey, CmatBreadcrumbDefinition];\r\n\r\n if (key.startsWith(ALIAS_PREFIX)) {\r\n updateArgs = ['alias', { ...breadcrumbObject, alias: key.slice(1) }];\r\n } else if (key.includes(PATH_PARAM.PREFIX)) {\r\n updateArgs = [\r\n 'routeRegex',\r\n { ...breadcrumbObject, routeRegex: this._buildRegex(key) },\r\n ];\r\n } else {\r\n updateArgs = [\r\n 'routeLink',\r\n { ...breadcrumbObject, routeLink: this._ensureLeadingSlash(key) },\r\n ];\r\n }\r\n\r\n // For this route if previously a breadcrumb is not defined that sets isAutoGeneratedLabel: true\r\n // change it to false since this is user supplied value\r\n updateArgs[1].isAutoGeneratedLabel = false;\r\n\r\n this._updateStore(...updateArgs);\r\n this._updateCurrentBreadcrumbs(...updateArgs);\r\n }\r\n\r\n\r\n\r\n /**\r\n * Whenever route changes build breadcrumb list again\r\n */\r\n private _detectRouteChanges(): void {\r\n // Special case where breadcrumb service & component instantiates after a route is navigated.\r\n // Ex: put breadcrumbs within *ngIf and this.router.events would be empty\r\n // This check is also required where { initialNavigation: 'enabledBlocking' } is applied to routes\r\n this._setupBreadcrumbs(this._activatedRoute.snapshot);\r\n\r\n this._router.events\r\n .pipe(\r\n takeUntil(this._unsubscribeAll),\r\n filter((event): event is GuardsCheckEnd => event instanceof GuardsCheckEnd))\r\n .subscribe((event) => {\r\n // activatedRoute doesn't carry data when shouldReuseRoute returns false\r\n // use the event data with GuardsCheckEnd as workaround\r\n // Check for shouldActivate in case where the authGuard returns false the breadcrumbs shouldn't be changed\r\n if (event.shouldActivate) {\r\n this._setupBreadcrumbs(event.state.root);\r\n }\r\n });\r\n }\r\n\r\n private _setupBreadcrumbs(activatedRouteSnapshot: ActivatedRouteSnapshot): void {\r\n this._previousBreadcrumbs = this._currentBreadcrumbs;\r\n // breadcrumb label for base OR root path. Usually, this can be set as 'Home'\r\n const rootBreadcrumb = this._getRootBreadcrumb();\r\n this._currentBreadcrumbs = rootBreadcrumb ? [rootBreadcrumb] : [];\r\n this._prepareBreadcrumbList(activatedRouteSnapshot, this._baseHref);\r\n }\r\n\r\n private _getRootBreadcrumb(): CmatBreadcrumb | void {\r\n const rootConfig = this._router.config.find(config => config.path === '');\r\n const rootBreadcrumb = this._extractObject(rootConfig?.data?.['breadcrumb']);\r\n const storeItem = this._getFromStore('/', rootBreadcrumb.alias);\r\n\r\n if (isNonEmpty(rootBreadcrumb) || isNonEmpty(storeItem)) {\r\n return {\r\n ...storeItem,\r\n ...rootBreadcrumb,\r\n routeLink: this._baseHref,\r\n ...this._getQueryParamsFromPreviousList('/'),\r\n };\r\n }\r\n }\r\n\r\n private _prepareBreadcrumbItem(\r\n activatedRouteSnapshot: ActivatedRouteSnapshot,\r\n routeLinkPrefix: string\r\n ): CmatBreadcrumbDefinition {\r\n const { path, breadcrumb } = this._parseRouteData(\r\n activatedRouteSnapshot.routeConfig\r\n );\r\n const resolvedSegment = this._resolvePathSegment(path, activatedRouteSnapshot);\r\n const routeLink = `${routeLinkPrefix}${resolvedSegment}`;\r\n const storeItem = this._getFromStore(routeLink, breadcrumb.alias);\r\n\r\n const label = this._extractLabel(\r\n storeItem?.label || breadcrumb?.label,\r\n resolvedSegment\r\n );\r\n let isAutoGeneratedLabel = false;\r\n let autoGeneratedLabel = '';\r\n if (!label) {\r\n isAutoGeneratedLabel = true;\r\n autoGeneratedLabel = resolvedSegment;\r\n }\r\n\r\n return {\r\n ...storeItem,\r\n ...breadcrumb,\r\n label: isAutoGeneratedLabel ? autoGeneratedLabel : label,\r\n routeLink,\r\n isAutoGeneratedLabel,\r\n ...this._getQueryParamsFromPreviousList(routeLink),\r\n };\r\n }\r\n\r\n private _prepareBreadcrumbList(\r\n activatedRouteSnapshot: ActivatedRouteSnapshot,\r\n routeLinkPrefix: string\r\n ): CmatBreadcrumb[] | void {\r\n if (activatedRouteSnapshot.routeConfig && activatedRouteSnapshot.routeConfig.path) {\r\n const breadcrumbItem = this._prepareBreadcrumbItem(\r\n activatedRouteSnapshot,\r\n routeLinkPrefix\r\n );\r\n this._currentBreadcrumbs.push(breadcrumbItem);\r\n\r\n if (activatedRouteSnapshot.firstChild) {\r\n return this._prepareBreadcrumbList(\r\n activatedRouteSnapshot.firstChild,\r\n breadcrumbItem.routeLink + '/'\r\n );\r\n }\r\n } else if (activatedRouteSnapshot.firstChild) {\r\n return this._prepareBreadcrumbList(\r\n activatedRouteSnapshot.firstChild,\r\n routeLinkPrefix\r\n );\r\n }\r\n const lastCrumb = this._currentBreadcrumbs[\r\n this._currentBreadcrumbs.length - 1\r\n ];\r\n this._setQueryParamsForActiveBreadcrumb(lastCrumb, activatedRouteSnapshot);\r\n\r\n // remove breadcrumb items that needs to be hidden\r\n const breadcrumbsToShow = this._currentBreadcrumbs.filter(\r\n item => !item.skip\r\n );\r\n\r\n this._breadcrumbs.next(breadcrumbsToShow);\r\n\r\n return void 0;\r\n }\r\n\r\n private _getFromStore(routeLink: string, alias?: string): CmatBreadcrumbDefinition | void {\r\n return this._dynamicBreadcrumbStore.find(item => (\r\n (alias && alias === item.alias) ||\r\n (routeLink && routeLink === item.routeLink) ||\r\n this._matchRegex(routeLink, item.routeRegex)\r\n ));\r\n }\r\n\r\n /**\r\n * use exact match instead of regexp.test\r\n * for /mentor/[^/]+ we should match '/mentor/12' but not '/mentor/12/abc'\r\n */\r\n private _matchRegex(routeLink?: string, routeRegex?: string): boolean | null {\r\n if (routeRegex && routeLink) {\r\n const match = routeLink.match(new RegExp(routeRegex));\r\n return match && match[0] === routeLink;\r\n }\r\n\r\n return null;\r\n }\r\n\r\n /**\r\n * if the path segment has route params, read the param value from url\r\n * for each segment of route this gets called\r\n *\r\n * for mentor/:id/view - it gets called with mentor, :id, view 3 times\r\n */\r\n private _resolvePathSegment(segment: string, activatedRouteSnapshot: ActivatedRouteSnapshot): string {\r\n //quirk -segment can be defined as view/:id in route config in which case you need to make it view/<resolved-param>\r\n if (segment.includes(PATH_PARAM.PREFIX)) {\r\n Object.entries(activatedRouteSnapshot.params).forEach(([key, value]) => {\r\n segment = segment.replace(`:${key}`, `${value}`);\r\n });\r\n }\r\n return segment;\r\n }\r\n\r\n /**\r\n * queryParams & fragments for previous breadcrumb path are copied over to new list\r\n */\r\n private _getQueryParamsFromPreviousList(routeLink: string): CmatBreadcrumb {\r\n const { queryParams, fragment } =\r\n this._previousBreadcrumbs.find(item => item.routeLink === routeLink) ||\r\n {};\r\n return { queryParams, fragment };\r\n }\r\n\r\n /**\r\n * set current activated route query params to the last breadcrumb item\r\n */\r\n private _setQueryParamsForActiveBreadcrumb(\r\n lastItem: CmatBreadcrumb,\r\n activatedRouteSnapshot: ActivatedRouteSnapshot\r\n ): void {\r\n if (lastItem) {\r\n const { queryParams, fragment } = activatedRouteSnapshot;\r\n lastItem.queryParams = queryParams ? { ...queryParams } : undefined;\r\n lastItem.fragment = fragment === null ? void 0 : fragment;\r\n }\r\n }\r\n\r\n /**\r\n * For a specific route, breadcrumb can be defined either on parent OR it's child(which has empty path)\r\n * When both are defined, child takes precedence\r\n *\r\n * Ex: Below we are setting breadcrumb on both parent and child.\r\n * So, child takes precedence and \"Defined On Child\" is displayed for the route 'home'\r\n * { path: 'home', loadChildren: './home/home.module#HomeModule' , data: {breadcrumb: \"Defined On Module\"}}\r\n * AND\r\n * children: [\r\n * { path: '', component: ShowUserComponent, data: {breadcrumb: \"Defined On Child\" }\r\n * ]\r\n */\r\n private _parseRouteData(routeConfig: Route | null): any {\r\n if (isNull(routeConfig))\r\n return void 0;\r\n\r\n const { path, data } = routeConfig;\r\n const breadcrumb = this._mergeWithBaseChildData(\r\n routeConfig,\r\n data?.['breadcrumb']\r\n );\r\n\r\n return { path, breadcrumb };\r\n }\r\n\r\n /**\r\n * get empty children of a module or Component. Empty child is the one with path: ''\r\n * When parent and it's children (that has empty route path) define data merge them both with child taking precedence\r\n */\r\n private _mergeWithBaseChildData(\r\n routeConfig: any,\r\n config: CmatBreadcrumbConfig\r\n ): CmatBreadcrumbObject {\r\n if (!routeConfig) {\r\n return this._extractObject(config);\r\n }\r\n\r\n let baseChild: Route | void = void 0;\r\n if (routeConfig.loadChildren) {\r\n // To handle a module with empty child route\r\n baseChild = routeConfig._loadedRoutes.find((route: { path: string; }) => route.path === '');\r\n } else if (routeConfig.children) {\r\n // To handle a component with empty child route\r\n baseChild = routeConfig.children.find((route: { path: string; }) => route.path === '');\r\n }\r\n\r\n const childConfig = baseChild?.data?.['breadcrumb'];\r\n return childConfig\r\n ? this._mergeWithBaseChildData(baseChild, {\r\n ...this._extractObject(config),\r\n ...this._extractObject(childConfig),\r\n })\r\n : this._extractObject(config);\r\n }\r\n\r\n /**\r\n * Update the store to reuse for dynamic declarations\r\n * If the store already has this route definition update it, else add\r\n */\r\n private _updateStore(key: string, breadcrumb: CmatBreadcrumbDefinition): void {\r\n const storeItemIndex = this._dynamicBreadcrumbStore.findIndex(item => (breadcrumb as any)[key] === (item as any)[key]);\r\n if (storeItemIndex > -1) {\r\n this._dynamicBreadcrumbStore[storeItemIndex] = {\r\n ...this._dynamicBreadcrumbStore[storeItemIndex],\r\n ...breadcrumb,\r\n };\r\n } else {\r\n this._dynamicBreadcrumbStore.push({ ...breadcrumb });\r\n }\r\n }\r\n\r\n /**\r\n * If breadcrumb is present in current breadcrumbs update it and emit new stream\r\n */\r\n private _updateCurrentBreadcrumbs(\r\n key: string,\r\n breadcrumb: CmatBreadcrumbDefinition\r\n ): void {\r\n const itemIndex = this._currentBreadcrumbs.findIndex(item => key === 'routeRegex'\r\n ? this._matchRegex(item.routeLink, breadcrumb[key])\r\n : (breadcrumb as any)[key] === (item as any)[key]);\r\n if (itemIndex > -1) {\r\n this._currentBreadcrumbs[itemIndex] = {\r\n ...this._currentBreadcrumbs[itemIndex],\r\n ...breadcrumb,\r\n };\r\n const breadcrumbsToShow = this._currentBreadcrumbs.filter(\r\n item => !item.skip\r\n );\r\n this._breadcrumbs.next([...breadcrumbsToShow]);\r\n }\r\n }\r\n\r\n /**\r\n * For a route with path param, we create regex dynamically from angular route syntax\r\n * '/mentor/:id' becomes '/mentor/[^/]',\r\n * breadcrumbService.set('/mentor/:id', 'Uday') should update 'Uday' as label for '/mentor/2' OR 'mentor/ada'\r\n */\r\n private _buildRegex(path: string): string {\r\n return this._ensureLeadingSlash(path).replace(\r\n new RegExp(PATH_PARAM.REGEX_IDENTIFIER, 'g'),\r\n PATH_PARAM.REGEX_REPLACER\r\n );\r\n }\r\n\r\n private _ensureLeadingSlash(path: string): string {\r\n return path.startsWith('/') ? path : `/${path}`;\r\n }\r\n\r\n /**\r\n * In App's RouteConfig, breadcrumb can be defined as a string OR a function OR an object\r\n *\r\n * string: simple static breadcrumb label for a path\r\n * function: callback that gets invoked with resolved path param\r\n * object: additional data defined along with breadcrumb label that gets passed to *cmatBreadcrumbItem directive\r\n */\r\n private _extractLabel(config: CmatBreadcrumbConfig, resolvedParam?: string): string | void {\r\n const label = typeof config === 'object' ? config.label : config;\r\n if (typeof label === 'function') {\r\n return label(resolvedParam);\r\n }\r\n return label;\r\n }\r\n\r\n private _extractObject(config: CmatBreadcrumbConfig): CmatBreadcrumbObject {\r\n // don't include {label} if config is undefined. This is important since we merge the configs\r\n if (\r\n config &&\r\n (typeof config === 'string' || typeof config === 'function')\r\n ) {\r\n return { label: config };\r\n }\r\n return (config as CmatBreadcrumbObject) || {};\r\n }\r\n}\r\n","import { ChangeDetectionStrategy, Component, ContentChild, Input, OnInit, TemplateRef, ViewEncapsulation, } from '@angular/core';\r\nimport { Observable, Subscription } from 'rxjs';\r\nimport { map } from 'rxjs/operators';\r\nimport { CmatBreadcrumbItemDirective } from './breadcrumb-item.directive';\r\nimport { CmatBreadcrumbDefinition, CmatBreadcrumbService } from './breadcrumb.service';\r\nimport { AsyncPipe, NgClass, NgFor, NgIf } from '@angular/common';\r\nimport { RouterLink } from '@angular/router';\r\n\r\n@Component({\r\n selector: 'cmat-breadcrumb',\r\n templateUrl: './breadcrumb.component.html',\r\n styleUrls: ['./breadcrumb.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n exportAs: 'cmatBreadcrumb',\r\n standalone: true,\r\n imports: [NgIf, NgFor, NgClass, AsyncPipe, RouterLink]\r\n})\r\nexport class CmatBreadcrumbComponent implements OnInit {\r\n /**\r\n * Breadcrumb item can be customized with this template\r\n * Template context is provided label, additional info, first and last indexes\r\n * Use cases:\r\n * 1) Add an icon along with label\r\n * 2) i18n. {{breadcrumb | translate}} or {{breadcrumb | transloco}}\r\n * 3) Change text case {{breadcrumb | titlecase}}\r\n */\r\n @ContentChild(CmatBreadcrumbItemDirective, { static: false, read: TemplateRef })\r\n itemTemplate: any;\r\n\r\n /**\r\n * If true, breadcrumb is auto generated even without any mapping label\r\n * Default label is same as route segment\r\n */\r\n @Input() autoGenerate = true;\r\n\r\n /**\r\n * By default query params will be preserved with breadcrumbs\r\n */\r\n @Input() preserveQueryParams = true;\r\n\r\n /**\r\n * By default query fragments will be preserved with breadcrumbs\r\n */\r\n @Input() preserveFragment = true;\r\n\r\n /**\r\n * custom class provided by consumer to increase specificity\r\n * This will benefit to override styles that are conflicting\r\n */\r\n @Input() class = '';\r\n\r\n /**\r\n * anchorTarget = \"_blank\" makes the breadcrumb link open in a new tab\r\n */\r\n @Input() anchorTarget: '_blank' | void;\r\n\r\n subscription: Subscription;\r\n breadcrumbs$: Observable<CmatBreadcrumbDefinition[]>;\r\n separatorTemplate: TemplateRef<void> | void;\r\n\r\n private _separator: string | void = '/';\r\n\r\n constructor(\r\n private _breadcrumbService: CmatBreadcrumbService) { }\r\n\r\n get separator(): string | void {\r\n return this._separator;\r\n }\r\n /**\r\n * separator between breadcrumbs, defaults to '/'.\r\n * User can customize separator either by passing a String or Template\r\n *\r\n * String --> Ex: <cmat-breadcrumb separator=\"-\"> </cmat-breadcrumb>\r\n *\r\n * Template --> Ex: <cmat-breadcrumb [separator]=\"separatorTemplate\"> </cmat-breadcrumb>\r\n * <ng-template #separatorTemplate><mat-icon>arrow_right</mat-icon></ng-template>\r\n */\r\n @Input()\r\n set separator(value: string | TemplateRef<void>) {\r\n if (value instanceof TemplateRef) {\r\n this.separatorTemplate = value;\r\n this._separator = undefined;\r\n } else {\r\n this.separatorTemplate = undefined;\r\n this._separator = value || '/';\r\n }\r\n }\r\n\r\n ngOnInit(): void {\r\n this.breadcrumbs$ = this._breadcrumbService.breadcrumbs$.pipe(\r\n map((breadcrumbs: CmatBreadcrumbDefinition[]) => breadcrumbs\r\n .filter((breadcrumb: CmatBreadcrumbDefinition) => {\r\n // Usually, breadcrumb list can contain a combination of auto generated and user specified labels\r\n // this filters autogenerated labels in case of \"[autoGenerate]: false\"\r\n if (this.autoGenerate) {\r\n return true;\r\n }\r\n return !breadcrumb.isAutoGeneratedLabel;\r\n })\r\n .map((breadcrumb: CmatBreadcrumbDefinition) => {\r\n // Do not mutate breadcrumb as its source of truth.\r\n // There can be scenarios where we can have multiple cmat-breadcrumb instances in page\r\n const { routeInterceptor, routeLink } = breadcrumb;\r\n return {\r\n ...breadcrumb,\r\n routeLink: routeInterceptor?.(breadcrumb,routeLink) || routeLink,\r\n };\r\n }))\r\n );\r\n }\r\n}\r\n","<nav aria-label=\"breadcrumb\" class=\"cmat-breadcrumb-root m-0\" [ngClass]=\"class\">\r\n <ol class=\"flex items-center flex-wrap m-0 p-0\">\r\n <ng-container *ngFor=\"\r\n let breadcrumb of breadcrumbs$ | async;\r\n last as isLast;\r\n first as isFirst;\r\n index as index;\r\n count as count\r\n \">\r\n <li class=\"list-none\">\r\n <a *ngIf=\"!isLast\" class=\"cmat-breadcrumb-link\"\r\n [ngClass]=\"{ 'pointer-events-none cursor-not-allowed': breadcrumb.disable }\"\r\n [attr.aria-disabled]=\"breadcrumb.disable\" [attr.tabIndex]=\"breadcrumb.disable ? -1 : 0\"\r\n rel=\"noopener noreferrer\" [routerLink]=\"\r\n breadcrumb.routeInterceptor\r\n ? breadcrumb.routeInterceptor( breadcrumb,breadcrumb.routeLink)\r\n : breadcrumb.routeLink\" [queryParams]=\"preserveQueryParams ? breadcrumb.queryParams : undefined\"\r\n [fragment]=\"preserveFragment ? breadcrumb.fragment : undefined\"\r\n [target]=\"anchorTarget ? anchorTarget : '_self'\">\r\n <ng-container *ngTemplateOutlet=\"\r\n itemTemplate;\r\n context: {\r\n $implicit: breadcrumb.label,\r\n info: breadcrumb.info,\r\n last: isLast,\r\n first: isFirst,\r\n index: index,\r\n count: count\r\n }\r\n \"></ng-container>\r\n <ng-container *ngIf=\"!itemTemplate\">{{\r\n breadcrumb.label\r\n }}</ng-container>\r\n </a>\r\n\r\n <span *ngIf=\"isLast\" class=\"cmat-breadcrumb-trail flex items-center\">\r\n <ng-container *ngTemplateOutlet=\"\r\n itemTemplate;\r\n context: {\r\n $implicit: breadcrumb.label,\r\n info: breadcrumb.info,\r\n last: isLast,\r\n first: isFirst,\r\n index: index,\r\n count: count\r\n }\r\n \"></ng-container>\r\n <ng-container *ngIf=\"!itemTemplate\">{{\r\n breadcrumb.label\r\n }}</ng-container>\r\n </span>\r\n </li>\r\n\r\n <li *ngIf=\"!isLast\" class=\"flex select-none mx-4\" aria-hidden=\"true\" role=\"separator\">\r\n <ng-container *ngTemplateOutlet=\"separatorTemplate\"></ng-container>\r\n <ng-container *ngIf=\"!separatorTemplate\">{{ separator }}</ng-container>\r\n </li>\r\n </ng-container>\r\n </ol>\r\n</nav>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.CmatBreadcrumbService"],"mappings":";;;;;;;;;AAEA;;;;AAIG;MAKU,2BAA2B,CAAA;8GAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EA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gBAKG,gBAAgB,EAAA,CAAA;sBAAxB,KAAK;gBAMG,KAAK,EAAA,CAAA;sBAAb,KAAK;gBAKG,YAAY,EAAA,CAAA;sBAApB,KAAK;gBAwBF,SAAS,EAAA,CAAA;sBADZ,KAAK;;;AE9EV;;AAEG;;;;"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, HostBinding } from '@angular/core';
|
|
3
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
4
|
+
import { NgIf } from '@angular/common';
|
|
5
|
+
import { cmatAnimations } from 'cmat/animations';
|
|
6
|
+
|
|
7
|
+
class CmatCardComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.expanded = false;
|
|
10
|
+
this.face = 'front';
|
|
11
|
+
this.flippable = false;
|
|
12
|
+
}
|
|
13
|
+
get classList() {
|
|
14
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
15
|
+
return {
|
|
16
|
+
'cmat-card-expanded': this.expanded,
|
|
17
|
+
'cmat-card-face-back': this.flippable && this.face === 'back',
|
|
18
|
+
'cmat-card-face-front': this.flippable && this.face === 'front',
|
|
19
|
+
'cmat-card-flippable': this.flippable
|
|
20
|
+
};
|
|
21
|
+
/* eslint-enable @typescript-eslint/naming-convention */
|
|
22
|
+
}
|
|
23
|
+
// -----------------------------------------------------------------------------------------------------
|
|
24
|
+
// @ Lifecycle hooks
|
|
25
|
+
// -----------------------------------------------------------------------------------------------------
|
|
26
|
+
/**
|
|
27
|
+
* On changes
|
|
28
|
+
*
|
|
29
|
+
* @param changes
|
|
30
|
+
*/
|
|
31
|
+
ngOnChanges(changes) {
|
|
32
|
+
// Expanded
|
|
33
|
+
if ('expanded' in changes) {
|
|
34
|
+
// Coerce the value to a boolean
|
|
35
|
+
this.expanded = coerceBooleanProperty(changes['expanded'].currentValue);
|
|
36
|
+
}
|
|
37
|
+
// Flippable
|
|
38
|
+
if ('flippable' in changes) {
|
|
39
|
+
// Coerce the value to a boolean
|
|
40
|
+
this.flippable = coerceBooleanProperty(changes['flippable'].currentValue);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
44
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.0", type: CmatCardComponent, isStandalone: true, selector: "cmat-card", inputs: { expanded: "expanded", face: "face", flippable: "flippable" }, host: { properties: { "class": "this.classList" } }, exportAs: ["cmatCard"], usesOnChanges: true, ngImport: i0, template: "<!-- Flippable card -->\r\n<ng-container *ngIf=\"flippable\">\r\n\r\n <!-- Front -->\r\n <div class=\"cmat-card-front\">\r\n <ng-content select=\"[cmatCardFront]\"></ng-content>\r\n </div>\r\n\r\n <!-- Back -->\r\n <div class=\"cmat-card-back\">\r\n <ng-content select=\"[cmatCardBack]\"></ng-content>\r\n </div>\r\n\r\n</ng-container>\r\n\r\n<!-- Normal card -->\r\n<ng-container *ngIf=\"!flippable\">\r\n\r\n <!-- Content -->\r\n <ng-content></ng-content>\r\n\r\n <!-- Expansion -->\r\n <div class=\"cmat-card-expansion\" *ngIf=\"expanded\" [@expandCollapse]>\r\n <ng-content select=\"[cmatCardExpansion]\"></ng-content>\r\n </div>\r\n\r\n</ng-container>", styles: ["cmat-card{position:relative;display:flex;overflow:hidden;@apply rounded-2xl shadow bg-card;}cmat-card.cmat-card-flippable{border-radius:0;overflow:visible;transform-style:preserve-3d;transition:transform 1s;perspective:600px;background:transparent;@apply shadow-none;}cmat-card.cmat-card-flippable.cmat-card-face-back .cmat-card-front{visibility:hidden;opacity:0;transform:rotateY(180deg)}cmat-card.cmat-card-flippable.cmat-card-face-back .cmat-card-back{visibility:visible;opacity:1;transform:rotateY(360deg)}cmat-card.cmat-card-flippable .cmat-card-front,cmat-card.cmat-card-flippable .cmat-card-back{display:flex;flex-direction:column;flex:1 1 auto;z-index:10;transition:transform .5s ease-out 0s,visibility 0s ease-in .2s,opacity 0s ease-in .2s;backface-visibility:hidden;@apply rounded-2xl shadow bg-card;}cmat-card.cmat-card-flippable .cmat-card-front{position:relative;opacity:1;visibility:visible;transform:rotateY(0);overflow:hidden}cmat-card.cmat-card-flippable .cmat-card-back{position:absolute;inset:0;opacity:0;visibility:hidden;transform:rotateY(180deg);overflow:hidden auto}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: cmatAnimations, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
45
|
+
}
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatCardComponent, decorators: [{
|
|
47
|
+
type: Component,
|
|
48
|
+
args: [{ selector: 'cmat-card', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, animations: cmatAnimations, exportAs: 'cmatCard', standalone: true, imports: [NgIf], template: "<!-- Flippable card -->\r\n<ng-container *ngIf=\"flippable\">\r\n\r\n <!-- Front -->\r\n <div class=\"cmat-card-front\">\r\n <ng-content select=\"[cmatCardFront]\"></ng-content>\r\n </div>\r\n\r\n <!-- Back -->\r\n <div class=\"cmat-card-back\">\r\n <ng-content select=\"[cmatCardBack]\"></ng-content>\r\n </div>\r\n\r\n</ng-container>\r\n\r\n<!-- Normal card -->\r\n<ng-container *ngIf=\"!flippable\">\r\n\r\n <!-- Content -->\r\n <ng-content></ng-content>\r\n\r\n <!-- Expansion -->\r\n <div class=\"cmat-card-expansion\" *ngIf=\"expanded\" [@expandCollapse]>\r\n <ng-content select=\"[cmatCardExpansion]\"></ng-content>\r\n </div>\r\n\r\n</ng-container>", styles: ["cmat-card{position:relative;display:flex;overflow:hidden;@apply rounded-2xl shadow bg-card;}cmat-card.cmat-card-flippable{border-radius:0;overflow:visible;transform-style:preserve-3d;transition:transform 1s;perspective:600px;background:transparent;@apply shadow-none;}cmat-card.cmat-card-flippable.cmat-card-face-back .cmat-card-front{visibility:hidden;opacity:0;transform:rotateY(180deg)}cmat-card.cmat-card-flippable.cmat-card-face-back .cmat-card-back{visibility:visible;opacity:1;transform:rotateY(360deg)}cmat-card.cmat-card-flippable .cmat-card-front,cmat-card.cmat-card-flippable .cmat-card-back{display:flex;flex-direction:column;flex:1 1 auto;z-index:10;transition:transform .5s ease-out 0s,visibility 0s ease-in .2s,opacity 0s ease-in .2s;backface-visibility:hidden;@apply rounded-2xl shadow bg-card;}cmat-card.cmat-card-flippable .cmat-card-front{position:relative;opacity:1;visibility:visible;transform:rotateY(0);overflow:hidden}cmat-card.cmat-card-flippable .cmat-card-back{position:absolute;inset:0;opacity:0;visibility:hidden;transform:rotateY(180deg);overflow:hidden auto}\n"] }]
|
|
49
|
+
}], propDecorators: { expanded: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], face: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], flippable: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], classList: [{
|
|
56
|
+
type: HostBinding,
|
|
57
|
+
args: ['class']
|
|
58
|
+
}] } });
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Generated bundle index. Do not edit.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
export { CmatCardComponent };
|
|
65
|
+
//# sourceMappingURL=cmat-components-card.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmat-components-card.mjs","sources":["../../../projects/cmat/components/card/card.component.ts","../../../projects/cmat/components/card/card.component.html","../../../projects/cmat/components/card/cmat-components-card.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, HostBinding, Input, OnChanges, SimpleChanges, ViewEncapsulation } from '@angular/core';\r\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\r\nimport {CmatCardFace} from './card.types';\r\nimport { NgIf } from '@angular/common';\r\nimport { cmatAnimations } from 'cmat/animations';\r\n\r\n@Component({\r\n selector: 'cmat-card',\r\n templateUrl: './card.component.html',\r\n styleUrls: ['./card.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n animations: cmatAnimations,\r\n exportAs: 'cmatCard',\r\n standalone: true,\r\n imports: [NgIf]\r\n})\r\nexport class CmatCardComponent implements OnChanges {\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n static ngAcceptInputType_expanded: BooleanInput;\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n static ngAcceptInputType_flippable: BooleanInput;\r\n\r\n @Input() expanded: boolean = false;\r\n @Input() face: CmatCardFace = 'front';\r\n @Input() flippable: boolean = false;\r\n\r\n @HostBinding('class') get classList(): any {\r\n /* eslint-disable @typescript-eslint/naming-convention */\r\n return {\r\n 'cmat-card-expanded': this.expanded,\r\n 'cmat-card-face-back': this.flippable && this.face === 'back',\r\n 'cmat-card-face-front': this.flippable && this.face === 'front',\r\n 'cmat-card-flippable': this.flippable\r\n };\r\n /* eslint-enable @typescript-eslint/naming-convention */\r\n }\r\n\r\n // -----------------------------------------------------------------------------------------------------\r\n // @ Lifecycle hooks\r\n // -----------------------------------------------------------------------------------------------------\r\n\r\n /**\r\n * On changes\r\n *\r\n * @param changes\r\n */\r\n ngOnChanges(changes: SimpleChanges): void {\r\n // Expanded\r\n if ('expanded' in changes) {\r\n // Coerce the value to a boolean\r\n this.expanded = coerceBooleanProperty(changes['expanded'].currentValue);\r\n }\r\n\r\n // Flippable\r\n if ('flippable' in changes) {\r\n // Coerce the value to a boolean\r\n this.flippable = coerceBooleanProperty(changes['flippable'].currentValue);\r\n }\r\n }\r\n}\r\n","<!-- Flippable card -->\r\n<ng-container *ngIf=\"flippable\">\r\n\r\n <!-- Front -->\r\n <div class=\"cmat-card-front\">\r\n <ng-content select=\"[cmatCardFront]\"></ng-content>\r\n </div>\r\n\r\n <!-- Back -->\r\n <div class=\"cmat-card-back\">\r\n <ng-content select=\"[cmatCardBack]\"></ng-content>\r\n </div>\r\n\r\n</ng-container>\r\n\r\n<!-- Normal card -->\r\n<ng-container *ngIf=\"!flippable\">\r\n\r\n <!-- Content -->\r\n <ng-content></ng-content>\r\n\r\n <!-- Expansion -->\r\n <div class=\"cmat-card-expansion\" *ngIf=\"expanded\" [@expandCollapse]>\r\n <ng-content select=\"[cmatCardExpansion]\"></ng-content>\r\n </div>\r\n\r\n</ng-container>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAiBa,iBAAiB,CAAA;AAX9B,IAAA,WAAA,GAAA;QAiBa,IAAQ,CAAA,QAAA,GAAY,KAAK,CAAC;QAC1B,IAAI,CAAA,IAAA,GAAiB,OAAO,CAAC;QAC7B,IAAS,CAAA,SAAA,GAAY,KAAK,CAAC;AAmCvC,KAAA;AAjCG,IAAA,IAA0B,SAAS,GAAA;;QAE/B,OAAO;YACH,oBAAoB,EAAE,IAAI,CAAC,QAAQ;YACnC,qBAAqB,EAAE,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM;YAC7D,sBAAsB,EAAE,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;YAC/D,qBAAqB,EAAE,IAAI,CAAC,SAAS;SACxC,CAAC;;KAEL;;;;AAMD;;;;AAIG;AACH,IAAA,WAAW,CAAC,OAAsB,EAAA;;QAE9B,IAAI,UAAU,IAAI,OAAO,EAAE;;AAEvB,YAAA,IAAI,CAAC,QAAQ,GAAG,qBAAqB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,YAAY,CAAC,CAAC;AAC3E,SAAA;;QAGD,IAAI,WAAW,IAAI,OAAO,EAAE;;AAExB,YAAA,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,OAAO,CAAC,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CAAA;8BAQN,QAAQ,EAAA,CAAA;sBAAhB,KAAK;gBACG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBACG,SAAS,EAAA,CAAA;sBAAjB,KAAK;gBAEoB,SAAS,EAAA,CAAA;sBAAlC,WAAW;uBAAC,OAAO,CAAA;;;AE3BxB;;AAEG;;;;"}
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { NgFor, NgIf, NgClass } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Optional, EventEmitter, forwardRef, HostBinding, Input, Output, Inject } from '@angular/core';
|
|
4
|
+
import * as i2$1 from '@angular/material/bottom-sheet';
|
|
5
|
+
import { MAT_BOTTOM_SHEET_DATA } from '@angular/material/bottom-sheet';
|
|
6
|
+
import { NG_VALUE_ACCESSOR, FormControl } from '@angular/forms';
|
|
7
|
+
import * as i2$2 from '@angular/material/tabs';
|
|
8
|
+
import { MatTabsModule } from '@angular/material/tabs';
|
|
9
|
+
import * as i1$1 from '@angular/material/button';
|
|
10
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
+
import * as i2 from '@angular/material/list';
|
|
12
|
+
import { MatListModule } from '@angular/material/list';
|
|
13
|
+
import * as i4 from '@angular/material/icon';
|
|
14
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
+
import { isUndefined, isNull } from 'lodash-es';
|
|
16
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
17
|
+
import * as i1 from '@angular/cdk/layout';
|
|
18
|
+
import { Breakpoints } from '@angular/cdk/layout';
|
|
19
|
+
import { Subject } from 'rxjs';
|
|
20
|
+
import { takeUntil, map } from 'rxjs/operators';
|
|
21
|
+
import * as i3 from '@angular/material/form-field';
|
|
22
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
23
|
+
import { cmatAnimations } from 'cmat/animations';
|
|
24
|
+
|
|
25
|
+
class CmatCascadeMenuComponent {
|
|
26
|
+
constructor(root) {
|
|
27
|
+
this.root = root;
|
|
28
|
+
}
|
|
29
|
+
clickHandle(event) {
|
|
30
|
+
event.stopPropagation();
|
|
31
|
+
}
|
|
32
|
+
trackByFn(index, item) {
|
|
33
|
+
return index || item;
|
|
34
|
+
}
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatCascadeMenuComponent, deps: [{ token: CmatCascadeListComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.0", type: CmatCascadeMenuComponent, isStandalone: true, selector: "cmat-cascade-menu", exportAs: ["cmatCascadeMenu"], ngImport: i0, template: "<div role=\"presentation\" class=\"cmat-cascade-menu\" [@dropdown]=\"root.menuVisible\" (click)=\"clickHandle($event)\">\r\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\"\r\n *ngFor=\"let menuItem of root.steps; let step = index;trackBy: trackByFn\">\r\n <mat-list-item *ngFor=\"let listItem of menuItem; let i = index;trackBy: trackByFn\" class=\"menu-item\"\r\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\r\n (click)=\"root.selectHandle($event, step, i);\">\r\n <div matLine>{{listItem.label}}</div>\r\n <mat-icon class=\"item-icon\" [svgIcon]=\"'mat_outline:chevron_right'\"\r\n *ngIf=\"listItem.children && listItem.children.length\"></mat-icon>\r\n </mat-list-item>\r\n </mat-list>\r\n</div>", styles: [".cmat-cascade-menu{z-index:2007;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;@apply absolute left-0 whitespace-nowrap bg-dialog;}.cmat-cascade-menu .menu-list{@apply inline-block border-r box-border m-0 p-2 overflow-hidden relative;height:204px;min-width:160px;vertical-align:top}.cmat-cascade-menu .menu-list:last-child{@apply border-r-0;}.cmat-cascade-menu .menu-item{@apply leading-loose h-12 p-0 relative whitespace-nowrap overflow-hidden text-ellipsis bg-dialog box-border cursor-pointer outline-none;}.cmat-cascade-menu .menu-item.disabled{@apply text-disabled cursor-not-allowed;}.cmat-cascade-menu .menu-item.active{@apply text-primary bg-hover;}.cmat-cascade-menu .menu-item:focus:not(:active),.cmat-cascade-menu .menu-item:hover{@apply bg-hover;}.cmat-cascade-menu .menu-item.active:hover{@apply bg-hover;}.cmat-cascade-menu .menu-item.selected{@apply text-secondary bg-default;}.cmat-cascade-menu .menu-item .item-icon{@apply absolute justify-items-center inset-y-2/4 right-0;transform:translateY(-50%)}\n"], dependencies: [{ kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [cmatAnimations], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
37
|
+
}
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatCascadeMenuComponent, decorators: [{
|
|
39
|
+
type: Component,
|
|
40
|
+
args: [{ selector: 'cmat-cascade-menu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatCascadeMenu', animations: [cmatAnimations], standalone: true, imports: [MatListModule, MatIconModule, NgFor, NgIf], template: "<div role=\"presentation\" class=\"cmat-cascade-menu\" [@dropdown]=\"root.menuVisible\" (click)=\"clickHandle($event)\">\r\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\"\r\n *ngFor=\"let menuItem of root.steps; let step = index;trackBy: trackByFn\">\r\n <mat-list-item *ngFor=\"let listItem of menuItem; let i = index;trackBy: trackByFn\" class=\"menu-item\"\r\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\r\n (click)=\"root.selectHandle($event, step, i);\">\r\n <div matLine>{{listItem.label}}</div>\r\n <mat-icon class=\"item-icon\" [svgIcon]=\"'mat_outline:chevron_right'\"\r\n *ngIf=\"listItem.children && listItem.children.length\"></mat-icon>\r\n </mat-list-item>\r\n </mat-list>\r\n</div>", styles: [".cmat-cascade-menu{z-index:2007;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;@apply absolute left-0 whitespace-nowrap bg-dialog;}.cmat-cascade-menu .menu-list{@apply inline-block border-r box-border m-0 p-2 overflow-hidden relative;height:204px;min-width:160px;vertical-align:top}.cmat-cascade-menu .menu-list:last-child{@apply border-r-0;}.cmat-cascade-menu .menu-item{@apply leading-loose h-12 p-0 relative whitespace-nowrap overflow-hidden text-ellipsis bg-dialog box-border cursor-pointer outline-none;}.cmat-cascade-menu .menu-item.disabled{@apply text-disabled cursor-not-allowed;}.cmat-cascade-menu .menu-item.active{@apply text-primary bg-hover;}.cmat-cascade-menu .menu-item:focus:not(:active),.cmat-cascade-menu .menu-item:hover{@apply bg-hover;}.cmat-cascade-menu .menu-item.active:hover{@apply bg-hover;}.cmat-cascade-menu .menu-item.selected{@apply text-secondary bg-default;}.cmat-cascade-menu .menu-item .item-icon{@apply absolute justify-items-center inset-y-2/4 right-0;transform:translateY(-50%)}\n"] }]
|
|
41
|
+
}], ctorParameters: () => [{ type: CmatCascadeListComponent, decorators: [{
|
|
42
|
+
type: Optional
|
|
43
|
+
}] }] });
|
|
44
|
+
|
|
45
|
+
let NEXT_ID = 0;
|
|
46
|
+
class CmatCascadeListComponent {
|
|
47
|
+
constructor(_renderer, _breakpointObserver, _bottomSheet) {
|
|
48
|
+
this._renderer = _renderer;
|
|
49
|
+
this._breakpointObserver = _breakpointObserver;
|
|
50
|
+
this._bottomSheet = _bottomSheet;
|
|
51
|
+
/* 组件 id */
|
|
52
|
+
this.id = `cmat-cascade-list-${NEXT_ID++}`;
|
|
53
|
+
this.disabled = false;
|
|
54
|
+
this.placeholder = '请选择';
|
|
55
|
+
this.appearance = 'fill';
|
|
56
|
+
this.clearable = false;
|
|
57
|
+
this.fullLevels = true;
|
|
58
|
+
this.changeOnSelect = false;
|
|
59
|
+
this.modelChange = new EventEmitter();
|
|
60
|
+
this.steps = [];
|
|
61
|
+
this.menuVisible = false;
|
|
62
|
+
this.inputHover = false;
|
|
63
|
+
this.currentLabels = [];
|
|
64
|
+
this._touchUi = false;
|
|
65
|
+
this._unsubscribeAll = new Subject();
|
|
66
|
+
this.onTouched = () => { };
|
|
67
|
+
this.controlChange = () => { };
|
|
68
|
+
this.globalListenFunc = () => { };
|
|
69
|
+
this._unsubscribeAll = new Subject();
|
|
70
|
+
}
|
|
71
|
+
// Whether the cascade dropdownlist UI is in touch mode.
|
|
72
|
+
get touchUi() {
|
|
73
|
+
return this._touchUi;
|
|
74
|
+
}
|
|
75
|
+
set touchUi(value) {
|
|
76
|
+
this._touchUi = coerceBooleanProperty(value);
|
|
77
|
+
}
|
|
78
|
+
ngOnChanges(changes) {
|
|
79
|
+
if (changes['options']) {
|
|
80
|
+
this.options = changes['options'].currentValue;
|
|
81
|
+
this._init();
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
ngOnDestroy() {
|
|
85
|
+
this.globalListenFunc();
|
|
86
|
+
// unsubscribe
|
|
87
|
+
this._unsubscribeAll.next(void 0);
|
|
88
|
+
this._unsubscribeAll.complete();
|
|
89
|
+
}
|
|
90
|
+
writeValue(value) {
|
|
91
|
+
this.model = value;
|
|
92
|
+
}
|
|
93
|
+
registerOnChange(fn) {
|
|
94
|
+
this.controlChange = fn;
|
|
95
|
+
}
|
|
96
|
+
registerOnTouched(fn) {
|
|
97
|
+
this.onTouched = fn;
|
|
98
|
+
}
|
|
99
|
+
close() {
|
|
100
|
+
this.menuVisible = false;
|
|
101
|
+
this.globalListenFunc();
|
|
102
|
+
}
|
|
103
|
+
clickHandle(event) {
|
|
104
|
+
event.stopPropagation();
|
|
105
|
+
if (this.disabled) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const element = event.target;
|
|
109
|
+
const isSelfTrigger = ['SPAN', 'I', 'INPUT'].find(v => v === element.tagName);
|
|
110
|
+
if (!isSelfTrigger) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (this.touchUi) {
|
|
114
|
+
this.menuVisible = false;
|
|
115
|
+
this.openBottomSheet();
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
this.menuVisible = !this.menuVisible;
|
|
119
|
+
if (this.menuVisible) {
|
|
120
|
+
this.globalListenFunc = this._renderer.listen('document', 'click', () => {
|
|
121
|
+
this.menuVisible = false;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
this.globalListenFunc();
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
changeLabels() {
|
|
130
|
+
this.inputValue = '';
|
|
131
|
+
const nextValue = [];
|
|
132
|
+
this.steps.forEach((items) => {
|
|
133
|
+
const steps = items.filter((item) => item.active);
|
|
134
|
+
nextValue.push(steps[0]);
|
|
135
|
+
});
|
|
136
|
+
this.currentLabels = nextValue;
|
|
137
|
+
this._setInputValue();
|
|
138
|
+
const next = nextValue.map((item) => item.value);
|
|
139
|
+
this.model = next;
|
|
140
|
+
this.modelChange.emit(next);
|
|
141
|
+
this.controlChange();
|
|
142
|
+
}
|
|
143
|
+
clearValue(isFirst, event) {
|
|
144
|
+
if (event) {
|
|
145
|
+
event.stopPropagation();
|
|
146
|
+
}
|
|
147
|
+
this.currentLabels = [];
|
|
148
|
+
if (!isFirst || (this.model && !this.model.length) || !this.model) {
|
|
149
|
+
const step1 = this.options.map((option) => ({
|
|
150
|
+
...option,
|
|
151
|
+
active: false
|
|
152
|
+
}));
|
|
153
|
+
this.steps = [step1];
|
|
154
|
+
}
|
|
155
|
+
this.menuVisible = false;
|
|
156
|
+
this.inputValue = '';
|
|
157
|
+
if (event) {
|
|
158
|
+
this.modelChange.emit([]);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
initSteps(index, options) {
|
|
162
|
+
const step = [];
|
|
163
|
+
options.map((item) => {
|
|
164
|
+
if (this.model[index] === item.value) {
|
|
165
|
+
if (!isUndefined(item.children))
|
|
166
|
+
options = item.children;
|
|
167
|
+
step.push(({
|
|
168
|
+
...item,
|
|
169
|
+
active: true
|
|
170
|
+
}));
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
step.push(item);
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
this.steps.push(step);
|
|
177
|
+
index += 1;
|
|
178
|
+
if (index < this.model.length) {
|
|
179
|
+
this.initSteps(index, options);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
selectHandle(event, step, index) {
|
|
183
|
+
event.stopPropagation();
|
|
184
|
+
if (this.steps[step][index].disabled) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
this.steps[step] = this.steps[step].map((item, i) => ({
|
|
188
|
+
...item,
|
|
189
|
+
active: i === index
|
|
190
|
+
}));
|
|
191
|
+
// reset steps
|
|
192
|
+
this.steps.length = step + 1;
|
|
193
|
+
const next = this.steps[step][index].children;
|
|
194
|
+
// go next
|
|
195
|
+
if (next && Array.isArray(next) && next.length) {
|
|
196
|
+
// change on select (props)
|
|
197
|
+
if (this.changeOnSelect) {
|
|
198
|
+
this.changeLabels();
|
|
199
|
+
}
|
|
200
|
+
const nativeNext = next.map((item) => ({
|
|
201
|
+
...item,
|
|
202
|
+
active: false
|
|
203
|
+
}));
|
|
204
|
+
return this.steps.push(nativeNext);
|
|
205
|
+
}
|
|
206
|
+
// last step
|
|
207
|
+
this.changeLabels();
|
|
208
|
+
this.menuVisible = false;
|
|
209
|
+
if (this.touchUi) {
|
|
210
|
+
this.bottomSheetRef.dismiss();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
showClearIcon() {
|
|
214
|
+
return !!(this.clearable && this.inputHover && this.currentLabels.length);
|
|
215
|
+
}
|
|
216
|
+
openBottomSheet() {
|
|
217
|
+
this.bottomSheetRef = this._bottomSheet.open(CmatCascadeBottomSheetComponent, {
|
|
218
|
+
data: this
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
_init() {
|
|
222
|
+
this.clearValue(true);
|
|
223
|
+
if (this.model && this.model.length) {
|
|
224
|
+
const val = this.model.map((v) => {
|
|
225
|
+
const item = this.options.filter((i) => i.value === v)[0];
|
|
226
|
+
if (!isUndefined(item.children))
|
|
227
|
+
this.options = item.children;
|
|
228
|
+
return item;
|
|
229
|
+
});
|
|
230
|
+
this.currentLabels = val.filter(v => !!v);
|
|
231
|
+
this._setInputValue();
|
|
232
|
+
this.initSteps(0, this.options);
|
|
233
|
+
}
|
|
234
|
+
this._breakpointObserver.observe(Breakpoints.Handset).pipe(takeUntil(this._unsubscribeAll), map((match) => match.matches)).subscribe((matches) => {
|
|
235
|
+
this.touchUi !== matches && !matches && this.bottomSheetRef && this.bottomSheetRef.dismiss();
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
_setInputValue() {
|
|
239
|
+
if (this.fullLevels) {
|
|
240
|
+
this.currentLabels.map((value, i) => {
|
|
241
|
+
this.inputValue += `${value.label}${i < this.currentLabels.length - 1 ? ' / ' : ''}`;
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
this.inputValue = this.currentLabels[this.currentLabels.length - 1].label;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatCascadeListComponent, deps: [{ token: i0.Renderer2 }, { token: i1.BreakpointObserver }, { token: i2$1.MatBottomSheet }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
249
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.0", type: CmatCascadeListComponent, isStandalone: true, selector: "cmat-cascade-list", inputs: { id: "id", disabled: "disabled", placeholder: "placeholder", appearance: "appearance", options: "options", clearable: "clearable", fullLevels: "fullLevels", changeOnSelect: "changeOnSelect", model: "model", touchUi: "touchUi" }, outputs: { modelChange: "modelChange" }, host: { properties: { "attr.id": "this.id" } }, providers: [{
|
|
250
|
+
provide: NG_VALUE_ACCESSOR,
|
|
251
|
+
useExisting: forwardRef(() => CmatCascadeListComponent),
|
|
252
|
+
multi: true
|
|
253
|
+
}], exportAs: ["cmatCascadeList"], usesOnChanges: true, ngImport: i0, template: "<span role=\"presentation\" class=\"cmat-cascade-list\" [ngClass]=\"{'opened': menuVisible, 'disabled': disabled}\"\n (click)=\"clickHandle($event)\" (mouseenter)=\"inputHover = true\" (mouseleave)=\"inputHover = false\">\n <mat-form-field [appearance]=\"appearance\">\n <input [value]=\"inputValue || ''\" matInput readonly [placeholder]=\"currentLabels.length ? '' : placeholder\">\n <button type=\"button\" *ngIf=\"showClearIcon()\" matSuffix mat-icon-button aria-label=\"Clear\"\n (click)=\"clearValue(false,$event)\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n <mat-icon matSuffix *ngIf=\"!showClearIcon()\" [svgIcon]=\"'mat_outline:arrow_drop_down'\"></mat-icon>\n </mat-form-field>\n <cmat-cascade-menu></cmat-cascade-menu>\n</span>", styles: [".cmat-cascade-list{@apply inline-block relative w-full leading-loose;}.cmat-cascade-list mat-form-field{@apply w-full;}.cmat-cascade-list input{@apply cursor-pointer;}.cmat-cascade-list.disabled .cascade-label{z-index:2;@apply text-disabled;}.cmat-cascade-list .cascade-label span{@apply text-secondary;}\n"], dependencies: [{ kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: CmatCascadeMenuComponent, selector: "cmat-cascade-menu", exportAs: ["cmatCascadeMenu"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
254
|
+
}
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatCascadeListComponent, decorators: [{
|
|
256
|
+
type: Component,
|
|
257
|
+
args: [{ selector: 'cmat-cascade-list', providers: [{
|
|
258
|
+
provide: NG_VALUE_ACCESSOR,
|
|
259
|
+
useExisting: forwardRef(() => CmatCascadeListComponent),
|
|
260
|
+
multi: true
|
|
261
|
+
}], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatCascadeList', standalone: true, imports: [MatFormFieldModule, MatIconModule, NgClass, NgIf, CmatCascadeMenuComponent], template: "<span role=\"presentation\" class=\"cmat-cascade-list\" [ngClass]=\"{'opened': menuVisible, 'disabled': disabled}\"\n (click)=\"clickHandle($event)\" (mouseenter)=\"inputHover = true\" (mouseleave)=\"inputHover = false\">\n <mat-form-field [appearance]=\"appearance\">\n <input [value]=\"inputValue || ''\" matInput readonly [placeholder]=\"currentLabels.length ? '' : placeholder\">\n <button type=\"button\" *ngIf=\"showClearIcon()\" matSuffix mat-icon-button aria-label=\"Clear\"\n (click)=\"clearValue(false,$event)\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n <mat-icon matSuffix *ngIf=\"!showClearIcon()\" [svgIcon]=\"'mat_outline:arrow_drop_down'\"></mat-icon>\n </mat-form-field>\n <cmat-cascade-menu></cmat-cascade-menu>\n</span>", styles: [".cmat-cascade-list{@apply inline-block relative w-full leading-loose;}.cmat-cascade-list mat-form-field{@apply w-full;}.cmat-cascade-list input{@apply cursor-pointer;}.cmat-cascade-list.disabled .cascade-label{z-index:2;@apply text-disabled;}.cmat-cascade-list .cascade-label span{@apply text-secondary;}\n"] }]
|
|
262
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i1.BreakpointObserver }, { type: i2$1.MatBottomSheet }], propDecorators: { id: [{
|
|
263
|
+
type: HostBinding,
|
|
264
|
+
args: ['attr.id']
|
|
265
|
+
}, {
|
|
266
|
+
type: Input
|
|
267
|
+
}], disabled: [{
|
|
268
|
+
type: Input
|
|
269
|
+
}], placeholder: [{
|
|
270
|
+
type: Input
|
|
271
|
+
}], appearance: [{
|
|
272
|
+
type: Input
|
|
273
|
+
}], options: [{
|
|
274
|
+
type: Input,
|
|
275
|
+
args: [{ required: true }]
|
|
276
|
+
}], clearable: [{
|
|
277
|
+
type: Input
|
|
278
|
+
}], fullLevels: [{
|
|
279
|
+
type: Input
|
|
280
|
+
}], changeOnSelect: [{
|
|
281
|
+
type: Input
|
|
282
|
+
}], model: [{
|
|
283
|
+
type: Input,
|
|
284
|
+
args: [{ required: true }]
|
|
285
|
+
}], modelChange: [{
|
|
286
|
+
type: Output
|
|
287
|
+
}], touchUi: [{
|
|
288
|
+
type: Input
|
|
289
|
+
}] } });
|
|
290
|
+
|
|
291
|
+
class CmatCascadeBottomSheetComponent {
|
|
292
|
+
constructor(root) {
|
|
293
|
+
this.root = root;
|
|
294
|
+
this.selected = new FormControl(0);
|
|
295
|
+
this.labels = [];
|
|
296
|
+
this.root.steps.forEach((items) => {
|
|
297
|
+
const steps = items.filter((item) => item.active);
|
|
298
|
+
if (steps[0] && !isUndefined(steps[0].label)) {
|
|
299
|
+
this.labels.push(steps[0].label);
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
clickHandle(event) {
|
|
304
|
+
event.stopPropagation();
|
|
305
|
+
}
|
|
306
|
+
select(disabled, label) {
|
|
307
|
+
if (!disabled) {
|
|
308
|
+
if (!isNull(this.selected.value)) {
|
|
309
|
+
this.labels[this.selected.value] = label;
|
|
310
|
+
this.labels = this.labels.slice(0, this.selected.value + 1);
|
|
311
|
+
}
|
|
312
|
+
this.selected.setValue(this.root.steps.length - 1);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
trackByFn(index, item) {
|
|
316
|
+
return index || item;
|
|
317
|
+
}
|
|
318
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatCascadeBottomSheetComponent, deps: [{ token: MAT_BOTTOM_SHEET_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
319
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.0", type: CmatCascadeBottomSheetComponent, isStandalone: true, selector: "cmat-cascade-bottom-sheet", exportAs: ["cmatCascadeBottomSheet"], ngImport: i0, template: "<div role=\"presentation\" class=\"cmat-cascade-bottom-sheet\" (click)=\"clickHandle($event)\">\r\n <div class=\"sheet-header flex items-center\">\r\n <p class=\"sheet-title\">{{root.placeholder}}</p>\r\n <button type=\"button\" mat-icon-button (click)=\"root.bottomSheetRef.dismiss()\">\r\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\r\n </button>\r\n </div>\r\n <mat-tab-group [selectedIndex]=\"selected.value\" (selectedIndexChange)=\"selected.setValue($event);\">\r\n <mat-tab *ngFor=\"let menuItem of root.steps; let step = index;trackBy: trackByFn\"\r\n [label]=\"labels[step] || '\u9009\u62E9'\">\r\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\">\r\n <mat-list-item *ngFor=\"let listItem of menuItem; let i = index;trackBy: trackByFn\" class=\"menu-item\"\r\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\r\n (click)=\"root.selectHandle($event, step, i); select(listItem.disabled,listItem.label);\">\r\n <div matLine>{{listItem.label}}</div>\r\n </mat-list-item>\r\n </mat-list>\r\n </mat-tab>\r\n </mat-tab-group>\r\n</div>", styles: [".cmat-cascade-bottom-sheet{@apply p-0;margin:-8px -16px}.cmat-cascade-bottom-sheet .sheet-header{@apply flex flex-1 items-center text-lg border-b;padding:12px 16px}.cmat-cascade-bottom-sheet .sheet-header .sheet-title{@apply text-secondary m-0 p-0 tracking-wider text-center flex-grow;}.cmat-cascade-bottom-sheet .menu-list{vertical-align:top;@apply box-border m-0 p-0 w-full overflow-hidden relative;height:204px}.cmat-cascade-bottom-sheet .menu-item{@apply leading-loose p-0 text-ellipsis box-border cursor-pointer outline-none;font-size:14px;line-height:3em;height:3em}.cmat-cascade-bottom-sheet .menu-item.disabled{@apply text-disabled;pointer-events:none}.cmat-cascade-bottom-sheet .menu-item.active{@apply text-primary bg-hover;}.cmat-cascade-bottom-sheet .menu-item:focus:not(:active),.cmat-cascade-bottom-sheet .menu-item:hover,.cmat-cascade-bottom-sheet .menu-item.active:hover{@apply bg-hover;}\n"], dependencies: [{ kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i2$2.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i2$2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatListModule }, { kind: "component", type: i2.MatList, selector: "mat-list", exportAs: ["matList"] }, { kind: "component", type: i2.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["activated"], exportAs: ["matListItem"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
320
|
+
}
|
|
321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatCascadeBottomSheetComponent, decorators: [{
|
|
322
|
+
type: Component,
|
|
323
|
+
args: [{ selector: 'cmat-cascade-bottom-sheet', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatCascadeBottomSheet', standalone: true, imports: [MatButtonModule, MatTabsModule, MatListModule, MatIconModule, NgFor], template: "<div role=\"presentation\" class=\"cmat-cascade-bottom-sheet\" (click)=\"clickHandle($event)\">\r\n <div class=\"sheet-header flex items-center\">\r\n <p class=\"sheet-title\">{{root.placeholder}}</p>\r\n <button type=\"button\" mat-icon-button (click)=\"root.bottomSheetRef.dismiss()\">\r\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\r\n </button>\r\n </div>\r\n <mat-tab-group [selectedIndex]=\"selected.value\" (selectedIndexChange)=\"selected.setValue($event);\">\r\n <mat-tab *ngFor=\"let menuItem of root.steps; let step = index;trackBy: trackByFn\"\r\n [label]=\"labels[step] || '\u9009\u62E9'\">\r\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\">\r\n <mat-list-item *ngFor=\"let listItem of menuItem; let i = index;trackBy: trackByFn\" class=\"menu-item\"\r\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\r\n (click)=\"root.selectHandle($event, step, i); select(listItem.disabled,listItem.label);\">\r\n <div matLine>{{listItem.label}}</div>\r\n </mat-list-item>\r\n </mat-list>\r\n </mat-tab>\r\n </mat-tab-group>\r\n</div>", styles: [".cmat-cascade-bottom-sheet{@apply p-0;margin:-8px -16px}.cmat-cascade-bottom-sheet .sheet-header{@apply flex flex-1 items-center text-lg border-b;padding:12px 16px}.cmat-cascade-bottom-sheet .sheet-header .sheet-title{@apply text-secondary m-0 p-0 tracking-wider text-center flex-grow;}.cmat-cascade-bottom-sheet .menu-list{vertical-align:top;@apply box-border m-0 p-0 w-full overflow-hidden relative;height:204px}.cmat-cascade-bottom-sheet .menu-item{@apply leading-loose p-0 text-ellipsis box-border cursor-pointer outline-none;font-size:14px;line-height:3em;height:3em}.cmat-cascade-bottom-sheet .menu-item.disabled{@apply text-disabled;pointer-events:none}.cmat-cascade-bottom-sheet .menu-item.active{@apply text-primary bg-hover;}.cmat-cascade-bottom-sheet .menu-item:focus:not(:active),.cmat-cascade-bottom-sheet .menu-item:hover,.cmat-cascade-bottom-sheet .menu-item.active:hover{@apply bg-hover;}\n"] }]
|
|
324
|
+
}], ctorParameters: () => [{ type: CmatCascadeListComponent, decorators: [{
|
|
325
|
+
type: Inject,
|
|
326
|
+
args: [MAT_BOTTOM_SHEET_DATA]
|
|
327
|
+
}] }] });
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Generated bundle index. Do not edit.
|
|
331
|
+
*/
|
|
332
|
+
|
|
333
|
+
export { CmatCascadeBottomSheetComponent, CmatCascadeListComponent };
|
|
334
|
+
//# sourceMappingURL=cmat-components-cascade.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmat-components-cascade.mjs","sources":["../../../projects/cmat/components/cascade/cascade-menu/cascade-menu.component.ts","../../../projects/cmat/components/cascade/cascade-menu/cascade-menu.component.html","../../../projects/cmat/components/cascade/cascade-list/cascade-list.component.ts","../../../projects/cmat/components/cascade/cascade-list/cascade-list.component.html","../../../projects/cmat/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.ts","../../../projects/cmat/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.html","../../../projects/cmat/components/cascade/cmat-components-cascade.ts"],"sourcesContent":["import { NgFor, NgIf } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, Optional, ViewEncapsulation } from '@angular/core';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { CmatCascadeListComponent } from '../cascade-list/cascade-list.component';\r\nimport { cmatAnimations } from 'cmat/animations';\r\n\r\n@Component({\r\n selector: 'cmat-cascade-menu',\r\n templateUrl: './cascade-menu.component.html',\r\n styleUrls: ['./cascade-menu.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n exportAs: 'cmatCascadeMenu',\r\n animations: [cmatAnimations],\r\n standalone: true,\r\n imports: [MatListModule, MatIconModule, NgFor, NgIf]\r\n})\r\nexport class CmatCascadeMenuComponent {\r\n\r\n constructor(\r\n @Optional() public root: CmatCascadeListComponent,\r\n ) {\r\n\r\n }\r\n\r\n clickHandle(event: Event): void {\r\n event.stopPropagation();\r\n }\r\n\r\n trackByFn(index: number, item: any): any {\r\n return index || item;\r\n }\r\n}\r\n","<div role=\"presentation\" class=\"cmat-cascade-menu\" [@dropdown]=\"root.menuVisible\" (click)=\"clickHandle($event)\">\r\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\"\r\n *ngFor=\"let menuItem of root.steps; let step = index;trackBy: trackByFn\">\r\n <mat-list-item *ngFor=\"let listItem of menuItem; let i = index;trackBy: trackByFn\" class=\"menu-item\"\r\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\r\n (click)=\"root.selectHandle($event, step, i);\">\r\n <div matLine>{{listItem.label}}</div>\r\n <mat-icon class=\"item-icon\" [svgIcon]=\"'mat_outline:chevron_right'\"\r\n *ngIf=\"listItem.children && listItem.children.length\"></mat-icon>\r\n </mat-list-item>\r\n </mat-list>\r\n</div>","import { NgClass, NgIf } from '@angular/common';\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n EventEmitter,\r\n forwardRef,\r\n HostBinding,\r\n Input,\r\n OnChanges,\r\n OnDestroy,\r\n Output,\r\n Renderer2,\r\n SimpleChanges,\r\n ViewEncapsulation\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\r\nimport { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';\r\nimport { MatBottomSheet, MatBottomSheetRef } from '@angular/material/bottom-sheet';\r\nimport { Subject } from 'rxjs';\r\nimport { map, takeUntil } from 'rxjs/operators';\r\n\r\nimport { CmatCascadeOptionsInterface } from '../options.interface';\r\nimport { CmatCascadeBottomSheetComponent } from '../cascade-bottom-sheet/cascade-bottom-sheet.component';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { CmatCascadeMenuComponent } from '../cascade-menu/cascade-menu.component';\r\nimport { isUndefined } from 'lodash-es';\r\n\r\nlet NEXT_ID = 0;\r\n\r\n@Component({\r\n selector: 'cmat-cascade-list',\r\n templateUrl: './cascade-list.component.html',\r\n styleUrls: ['./cascade-list.component.scss'],\r\n providers: [{\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => CmatCascadeListComponent),\r\n multi: true\r\n }],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n exportAs: 'cmatCascadeList',\r\n standalone: true,\r\n imports: [MatFormFieldModule, MatIconModule, NgClass, NgIf, CmatCascadeMenuComponent]\r\n})\r\nexport class CmatCascadeListComponent implements OnDestroy, OnChanges, ControlValueAccessor {\r\n /* 组件 id */\r\n @HostBinding('attr.id')\r\n @Input()\r\n public id = `cmat-cascade-list-${NEXT_ID++}`;\r\n\r\n @Input() disabled = false;\r\n\r\n @Input() placeholder = '请选择';\r\n\r\n @Input() appearance: 'fill' | 'outline' = 'fill';\r\n\r\n // data\r\n @Input({ required: true }) options: Array<CmatCascadeOptionsInterface>;\r\n @Input() clearable = false;\r\n @Input() fullLevels = true;\r\n @Input() changeOnSelect = false;\r\n\r\n // bind value\r\n @Input({ required: true }) model: Array<string>;\r\n @Output() modelChange: EventEmitter<any> = new EventEmitter<any>();\r\n\r\n // bottomSheet\r\n bottomSheetRef: MatBottomSheetRef;\r\n steps: Array<any> = [];\r\n menuVisible = false;\r\n inputHover = false;\r\n currentLabels: Array<CmatCascadeOptionsInterface> = [];\r\n inputValue?: string;\r\n\r\n private _touchUi = false;\r\n private _unsubscribeAll: Subject<void> = new Subject<void>();\r\n\r\n constructor(\r\n private _renderer: Renderer2,\r\n private _breakpointObserver: BreakpointObserver,\r\n private _bottomSheet: MatBottomSheet\r\n ) {\r\n this._unsubscribeAll = new Subject<void>();\r\n }\r\n\r\n // Whether the cascade dropdownlist UI is in touch mode.\r\n @Input()\r\n get touchUi(): boolean {\r\n return this._touchUi;\r\n }\r\n\r\n set touchUi(value: boolean) {\r\n this._touchUi = coerceBooleanProperty(value);\r\n }\r\n\r\n onTouched: () => any = () => { };\r\n controlChange: () => any = () => { };\r\n globalListenFunc: () => any = () => { };\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n if (changes['options']) {\r\n this.options = changes['options'].currentValue;\r\n this._init();\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.globalListenFunc();\r\n // unsubscribe\r\n this._unsubscribeAll.next(void 0);\r\n this._unsubscribeAll.complete();\r\n }\r\n\r\n writeValue(value: any): void {\r\n this.model = value;\r\n }\r\n\r\n registerOnChange(fn: any): void {\r\n this.controlChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this.onTouched = fn;\r\n }\r\n\r\n close(): void {\r\n this.menuVisible = false;\r\n this.globalListenFunc();\r\n }\r\n\r\n clickHandle(event: MouseEvent): void {\r\n event.stopPropagation();\r\n if (this.disabled) {\r\n return;\r\n }\r\n const element: HTMLElement = event.target as HTMLElement;\r\n const isSelfTrigger = ['SPAN', 'I', 'INPUT'].find(v => v === element.tagName);\r\n if (!isSelfTrigger) {\r\n return;\r\n }\r\n\r\n if (this.touchUi) {\r\n this.menuVisible = false;\r\n this.openBottomSheet();\r\n } else {\r\n this.menuVisible = !this.menuVisible;\r\n\r\n if (this.menuVisible) {\r\n this.globalListenFunc = this._renderer.listen(\r\n 'document', 'click', () => {\r\n this.menuVisible = false;\r\n }\r\n );\r\n } else {\r\n this.globalListenFunc();\r\n }\r\n }\r\n }\r\n\r\n changeLabels(): void {\r\n this.inputValue = '';\r\n const nextValue: Array<CmatCascadeOptionsInterface> = [];\r\n\r\n this.steps.forEach((items: Array<CmatCascadeOptionsInterface>) => {\r\n const steps: Array<CmatCascadeOptionsInterface> = items.filter((item: CmatCascadeOptionsInterface) => item.active);\r\n nextValue.push(steps[0]);\r\n });\r\n this.currentLabels = nextValue;\r\n this._setInputValue();\r\n const next = nextValue.map((item: CmatCascadeOptionsInterface) => item.value);\r\n this.model = next;\r\n\r\n this.modelChange.emit(next);\r\n this.controlChange();\r\n }\r\n\r\n clearValue(isFirst: boolean, event?: Event): void {\r\n if (event) { event.stopPropagation(); }\r\n this.currentLabels = [];\r\n\r\n if (!isFirst || (this.model && !this.model.length) || !this.model) {\r\n const step1 = this.options.map((option: CmatCascadeOptionsInterface) => ({\r\n ...option,\r\n active: false\r\n }));\r\n this.steps = [step1];\r\n }\r\n\r\n this.menuVisible = false;\r\n this.inputValue = '';\r\n\r\n if (event) { this.modelChange.emit([]); }\r\n }\r\n\r\n initSteps(index: number, options: CmatCascadeOptionsInterface[]): void {\r\n const step: CmatCascadeOptionsInterface[] = [];\r\n options.map((item: CmatCascadeOptionsInterface) => {\r\n if (this.model[index] === item.value) {\r\n if (!isUndefined(item.children))\r\n options = item.children;\r\n\r\n step.push(({\r\n ...item,\r\n active: true\r\n }));\r\n } else {\r\n step.push(item);\r\n }\r\n });\r\n this.steps.push(step);\r\n index += 1;\r\n if (index < this.model.length) {\r\n this.initSteps(index, options);\r\n }\r\n }\r\n\r\n selectHandle(event: Event, step: number, index: number): any {\r\n event.stopPropagation();\r\n\r\n if (this.steps[step][index].disabled) {\r\n return;\r\n }\r\n\r\n this.steps[step] = this.steps[step].map((item: CmatCascadeOptionsInterface, i: number) =>\r\n ({\r\n ...item,\r\n active: i === index\r\n }));\r\n // reset steps\r\n this.steps.length = step + 1;\r\n const next = this.steps[step][index].children;\r\n\r\n // go next\r\n if (next && Array.isArray(next) && next.length) {\r\n // change on select (props)\r\n if (this.changeOnSelect) { this.changeLabels(); }\r\n\r\n const nativeNext = next.map((item: CmatCascadeOptionsInterface) => ({\r\n ...item,\r\n active: false\r\n }));\r\n return this.steps.push(nativeNext);\r\n }\r\n\r\n // last step\r\n this.changeLabels();\r\n this.menuVisible = false;\r\n if (this.touchUi) {\r\n this.bottomSheetRef.dismiss();\r\n }\r\n }\r\n\r\n showClearIcon(): boolean {\r\n return !!(this.clearable && this.inputHover && this.currentLabels.length);\r\n }\r\n\r\n openBottomSheet(): void {\r\n this.bottomSheetRef = this._bottomSheet.open(CmatCascadeBottomSheetComponent, {\r\n data: this\r\n });\r\n }\r\n\r\n private _init(): void {\r\n this.clearValue(true);\r\n\r\n if (this.model && this.model.length) {\r\n const val = this.model.map((v) => {\r\n const item = this.options.filter((i: CmatCascadeOptionsInterface) => i.value === v)[0];\r\n if (!isUndefined(item.children))\r\n this.options = item.children;\r\n return item;\r\n });\r\n\r\n this.currentLabels = val.filter(v => !!v);\r\n this._setInputValue();\r\n this.initSteps(0, this.options);\r\n }\r\n\r\n this._breakpointObserver.observe(Breakpoints.Handset).pipe(\r\n takeUntil(this._unsubscribeAll),\r\n map((match: { matches: any }) => match.matches)\r\n ).subscribe((matches: boolean) => {\r\n this.touchUi !== matches && !matches && this.bottomSheetRef && this.bottomSheetRef.dismiss();\r\n });\r\n }\r\n\r\n private _setInputValue(): void {\r\n if (this.fullLevels) {\r\n this.currentLabels.map((value, i) => {\r\n this.inputValue += `${value.label}${i < this.currentLabels.length - 1 ? ' / ' : ''}`;\r\n });\r\n } else {\r\n this.inputValue = this.currentLabels[this.currentLabels.length - 1].label;\r\n }\r\n }\r\n}\r\n","<span role=\"presentation\" class=\"cmat-cascade-list\" [ngClass]=\"{'opened': menuVisible, 'disabled': disabled}\"\n (click)=\"clickHandle($event)\" (mouseenter)=\"inputHover = true\" (mouseleave)=\"inputHover = false\">\n <mat-form-field [appearance]=\"appearance\">\n <input [value]=\"inputValue || ''\" matInput readonly [placeholder]=\"currentLabels.length ? '' : placeholder\">\n <button type=\"button\" *ngIf=\"showClearIcon()\" matSuffix mat-icon-button aria-label=\"Clear\"\n (click)=\"clearValue(false,$event)\">\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\n </button>\n <mat-icon matSuffix *ngIf=\"!showClearIcon()\" [svgIcon]=\"'mat_outline:arrow_drop_down'\"></mat-icon>\n </mat-form-field>\n <cmat-cascade-menu></cmat-cascade-menu>\n</span>","import { NgFor } from '@angular/common';\r\nimport { ChangeDetectionStrategy, Component, Inject, ViewEncapsulation } from '@angular/core';\r\nimport { MAT_BOTTOM_SHEET_DATA } from '@angular/material/bottom-sheet';\r\nimport { FormControl } from '@angular/forms';\r\nimport { CmatCascadeOptionsInterface } from '../options.interface';\r\nimport { CmatCascadeListComponent } from '../cascade-list/cascade-list.component';\r\nimport { MatTabsModule } from '@angular/material/tabs';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { isNull, isUndefined } from 'lodash-es';\r\n\r\n@Component({\r\n selector: 'cmat-cascade-bottom-sheet',\r\n templateUrl: './cascade-bottom-sheet.component.html',\r\n styleUrls: ['./cascade-bottom-sheet.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n exportAs: 'cmatCascadeBottomSheet',\r\n standalone: true,\r\n imports: [MatButtonModule, MatTabsModule, MatListModule, MatIconModule, NgFor]\r\n})\r\nexport class CmatCascadeBottomSheetComponent {\r\n selected = new FormControl(0);\r\n labels: string[] = [];\r\n\r\n constructor(\r\n @Inject(MAT_BOTTOM_SHEET_DATA) public root: CmatCascadeListComponent,\r\n ) {\r\n this.root.steps.forEach((items: Array<CmatCascadeOptionsInterface>) => {\r\n const steps: Array<CmatCascadeOptionsInterface> = items.filter((item: CmatCascadeOptionsInterface) => item.active);\r\n if (steps[0] && !isUndefined(steps[0].label)) { this.labels.push(steps[0].label); }\r\n });\r\n }\r\n\r\n clickHandle(event: Event): void {\r\n event.stopPropagation();\r\n }\r\n\r\n select(disabled: boolean, label: string): void {\r\n if (!disabled) {\r\n if (!isNull(this.selected.value)) {\r\n this.labels[this.selected.value] = label;\r\n this.labels = this.labels.slice(0, this.selected.value + 1);\r\n }\r\n this.selected.setValue(this.root.steps.length - 1);\r\n }\r\n }\r\n\r\n trackByFn(index: number, item: any): any {\r\n return index || item;\r\n }\r\n}\r\n","<div role=\"presentation\" class=\"cmat-cascade-bottom-sheet\" (click)=\"clickHandle($event)\">\r\n <div class=\"sheet-header flex items-center\">\r\n <p class=\"sheet-title\">{{root.placeholder}}</p>\r\n <button type=\"button\" mat-icon-button (click)=\"root.bottomSheetRef.dismiss()\">\r\n <mat-icon [svgIcon]=\"'heroicons_outline:x-mark'\"></mat-icon>\r\n </button>\r\n </div>\r\n <mat-tab-group [selectedIndex]=\"selected.value\" (selectedIndexChange)=\"selected.setValue($event);\">\r\n <mat-tab *ngFor=\"let menuItem of root.steps; let step = index;trackBy: trackByFn\"\r\n [label]=\"labels[step] || '选择'\">\r\n <mat-list class=\"menu-list overflow-y-auto lg:overflow-y-hidden lg:hover:overflow-y-auto scrollbar-custom\">\r\n <mat-list-item *ngFor=\"let listItem of menuItem; let i = index;trackBy: trackByFn\" class=\"menu-item\"\r\n [class.active]=\"listItem.active\" [class.disabled]=\"listItem.disabled\"\r\n (click)=\"root.selectHandle($event, step, i); select(listItem.disabled,listItem.label);\">\r\n <div matLine>{{listItem.label}}</div>\r\n </mat-list-item>\r\n </mat-list>\r\n </mat-tab>\r\n </mat-tab-group>\r\n</div>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.CmatCascadeListComponent","i3","i2","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;MAkBa,wBAAwB,CAAA;AAEjC,IAAA,WAAA,CACuB,IAA8B,EAAA;QAA9B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAA0B;KAGpD;AAED,IAAA,WAAW,CAAC,KAAY,EAAA;QACpB,KAAK,CAAC,eAAe,EAAE,CAAC;KAC3B;IAED,SAAS,CAAC,KAAa,EAAE,IAAS,EAAA;QAC9B,OAAO,KAAK,IAAI,IAAI,CAAC;KACxB;8GAdQ,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAAA,wBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,C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