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,383 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, TemplateRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Output, ViewChild, HostBinding, Input } from '@angular/core';
|
|
3
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
4
|
+
import { cmatAnimations } from 'cmat/animations';
|
|
5
|
+
import { NgStyle, NgClass } from '@angular/common';
|
|
6
|
+
import * as i2 from '@angular/cdk/a11y';
|
|
7
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
8
|
+
import * as i1 from '@angular/cdk/bidi';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Throws an exception for the case when popover trigger doesn't have a valid cmat-popover instance
|
|
12
|
+
*/
|
|
13
|
+
function throwCmatPopoverMissingError() {
|
|
14
|
+
throw Error(`cmat-popover-trigger: must pass in an cmat-popover instance.
|
|
15
|
+
|
|
16
|
+
Example:
|
|
17
|
+
<cmat-popover #popover="cmatPopover"></cmat-popover>
|
|
18
|
+
<button [cmatPopoverTriggerFor]="popover"></button>`);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Throws an exception for the case when popover's cmatPopoverPosition[0] value isn't valid.
|
|
22
|
+
* In other words, it doesn't match 'above', 'below', 'before' or 'after'.
|
|
23
|
+
*/
|
|
24
|
+
function throwCmatPopoverInvalidPositionStart() {
|
|
25
|
+
throw Error(`cmatPopoverPosition[0] value must be either 'above', 'below', 'before' or 'after'.
|
|
26
|
+
Example: <cmat-popover [position]="['below', 'after']" #popover="cmatPopover"></cmat-popover>`);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Throws an exception for the case when popover's cmatPopoverPosition[1] value isn't valid.
|
|
30
|
+
* In other words, it doesn't match 'above', 'below', 'before', 'after' or 'center'.
|
|
31
|
+
*/
|
|
32
|
+
function throwCmatPopoverInvalidPositionEnd() {
|
|
33
|
+
throw Error(`cmatPopoverPosition[1] value must be either 'above', 'below', 'before', 'after' or 'center'.
|
|
34
|
+
Example: <cmat-popover [position]="['below', 'after']" #popover="cmatPopover"></cmat-popover>`);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* eslint-disable @typescript-eslint/naming-convention */
|
|
38
|
+
class CmatPopoverComponent {
|
|
39
|
+
constructor(_dir, _elementRef, zone) {
|
|
40
|
+
this._dir = _dir;
|
|
41
|
+
this._elementRef = _elementRef;
|
|
42
|
+
this.zone = zone;
|
|
43
|
+
/** Event emitted when the popover is closed. */
|
|
44
|
+
this.closed = new EventEmitter();
|
|
45
|
+
this.role = 'dialog';
|
|
46
|
+
/** Config object to be passed into the popover's arrow ngStyle */
|
|
47
|
+
this.popoverPanelStyles = {};
|
|
48
|
+
/** Config object to be passed into the popover's arrow ngStyle */
|
|
49
|
+
this.popoverArrowStyles = {};
|
|
50
|
+
/** Config object to be passed into the popover's content ngStyle */
|
|
51
|
+
this.popoverContentStyles = {};
|
|
52
|
+
/** Whether popover's `targetElement` is defined */
|
|
53
|
+
this.containerPositioning = false;
|
|
54
|
+
/** Closing disabled on popover */
|
|
55
|
+
this.closeDisabled = false;
|
|
56
|
+
/** Config object to be passed into the popover's ngClass */
|
|
57
|
+
this.classList = {};
|
|
58
|
+
/** Emits the current animation state whenever it changes. */
|
|
59
|
+
this._onAnimationStateChange = new EventEmitter();
|
|
60
|
+
/** Settings for popover, view setters and getters for more detail */
|
|
61
|
+
this._position = ['below', 'after'];
|
|
62
|
+
this._triggerEvent = 'hover';
|
|
63
|
+
this._scrollStrategy = 'reposition';
|
|
64
|
+
this._enterDelay = 100;
|
|
65
|
+
this._leaveDelay = 100;
|
|
66
|
+
this._panelOffsetX = 0;
|
|
67
|
+
this._panelOffsetY = 0;
|
|
68
|
+
this._closeOnPanelClick = false;
|
|
69
|
+
this._closeOnBackdropClick = true;
|
|
70
|
+
this._disableAnimation = false;
|
|
71
|
+
this._focusTrapEnabled = true;
|
|
72
|
+
this._focusTrapAutoCaptureEnabled = true;
|
|
73
|
+
this._arrowOffsetX = 20;
|
|
74
|
+
this._arrowOffsetY = 20;
|
|
75
|
+
this._arrowWidth = 16;
|
|
76
|
+
this._arrowHeight = 16;
|
|
77
|
+
this.setPositionClasses();
|
|
78
|
+
}
|
|
79
|
+
get position() {
|
|
80
|
+
return this._position;
|
|
81
|
+
}
|
|
82
|
+
/** Position of the popover. */
|
|
83
|
+
set position(value) {
|
|
84
|
+
if (!['before', 'after', 'above', 'below'].includes(value[0])) {
|
|
85
|
+
throwCmatPopoverInvalidPositionStart();
|
|
86
|
+
}
|
|
87
|
+
if (!['before', 'after', 'above', 'below', 'center'].includes(value[1])) {
|
|
88
|
+
throwCmatPopoverInvalidPositionEnd();
|
|
89
|
+
}
|
|
90
|
+
this._position = value;
|
|
91
|
+
this.setPositionClasses();
|
|
92
|
+
}
|
|
93
|
+
/** Popover trigger event */
|
|
94
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
95
|
+
get triggerEvent() {
|
|
96
|
+
return this._triggerEvent;
|
|
97
|
+
}
|
|
98
|
+
set triggerEvent(value) {
|
|
99
|
+
this._triggerEvent = value;
|
|
100
|
+
}
|
|
101
|
+
/** Popover scroll strategy */
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
103
|
+
get scrollStrategy() {
|
|
104
|
+
return this._scrollStrategy;
|
|
105
|
+
}
|
|
106
|
+
set scrollStrategy(value) {
|
|
107
|
+
this._scrollStrategy = value;
|
|
108
|
+
}
|
|
109
|
+
/** Popover enter delay */
|
|
110
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
111
|
+
get enterDelay() {
|
|
112
|
+
return this._enterDelay;
|
|
113
|
+
}
|
|
114
|
+
set enterDelay(value) {
|
|
115
|
+
this._enterDelay = value;
|
|
116
|
+
}
|
|
117
|
+
/** Popover leave delay */
|
|
118
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
119
|
+
get leaveDelay() {
|
|
120
|
+
return this._leaveDelay;
|
|
121
|
+
}
|
|
122
|
+
set leaveDelay(value) {
|
|
123
|
+
this._leaveDelay = value;
|
|
124
|
+
}
|
|
125
|
+
/** Popover target offset x */
|
|
126
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
127
|
+
get xOffset() {
|
|
128
|
+
return this._panelOffsetX;
|
|
129
|
+
}
|
|
130
|
+
set xOffset(value) {
|
|
131
|
+
this._panelOffsetX = value;
|
|
132
|
+
}
|
|
133
|
+
/** Popover target offset y */
|
|
134
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
135
|
+
get yOffset() {
|
|
136
|
+
return this._panelOffsetY;
|
|
137
|
+
}
|
|
138
|
+
set yOffset(value) {
|
|
139
|
+
this._panelOffsetY = value;
|
|
140
|
+
}
|
|
141
|
+
/** Popover arrow offset x */
|
|
142
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
143
|
+
get arrowOffsetX() {
|
|
144
|
+
return this._arrowOffsetX;
|
|
145
|
+
}
|
|
146
|
+
set arrowOffsetX(value) {
|
|
147
|
+
this._arrowOffsetX = value;
|
|
148
|
+
}
|
|
149
|
+
/** Popover arrow offset y */
|
|
150
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
151
|
+
get arrowOffsetY() {
|
|
152
|
+
return this._arrowOffsetY;
|
|
153
|
+
}
|
|
154
|
+
set arrowOffsetY(value) {
|
|
155
|
+
this._arrowOffsetY = value;
|
|
156
|
+
}
|
|
157
|
+
/** Popover arrow width */
|
|
158
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
159
|
+
get arrowWidth() {
|
|
160
|
+
return this._arrowWidth;
|
|
161
|
+
}
|
|
162
|
+
set arrowWidth(value) {
|
|
163
|
+
this._arrowWidth = value;
|
|
164
|
+
}
|
|
165
|
+
/** Popover arrow height */
|
|
166
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
167
|
+
get arrowHeight() {
|
|
168
|
+
return this._arrowHeight;
|
|
169
|
+
}
|
|
170
|
+
set arrowHeight(value) {
|
|
171
|
+
this._arrowHeight = value;
|
|
172
|
+
}
|
|
173
|
+
/** Popover close on container click */
|
|
174
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
175
|
+
get closeOnPanelClick() {
|
|
176
|
+
return this._closeOnPanelClick;
|
|
177
|
+
}
|
|
178
|
+
set closeOnPanelClick(value) {
|
|
179
|
+
this._closeOnPanelClick = coerceBooleanProperty(value);
|
|
180
|
+
}
|
|
181
|
+
/** Popover close on backdrop click */
|
|
182
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
183
|
+
get closeOnBackdropClick() {
|
|
184
|
+
return this._closeOnBackdropClick;
|
|
185
|
+
}
|
|
186
|
+
set closeOnBackdropClick(value) {
|
|
187
|
+
this._closeOnBackdropClick = coerceBooleanProperty(value);
|
|
188
|
+
}
|
|
189
|
+
/** Disable animations of popover and all child elements */
|
|
190
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
191
|
+
get disableAnimation() {
|
|
192
|
+
return this._disableAnimation;
|
|
193
|
+
}
|
|
194
|
+
set disableAnimation(value) {
|
|
195
|
+
this._disableAnimation = coerceBooleanProperty(value);
|
|
196
|
+
}
|
|
197
|
+
/** Popover focus trap using cdkTrapFocus */
|
|
198
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
199
|
+
get focusTrapEnabled() {
|
|
200
|
+
return this._focusTrapEnabled;
|
|
201
|
+
}
|
|
202
|
+
set focusTrapEnabled(value) {
|
|
203
|
+
this._focusTrapEnabled = coerceBooleanProperty(value);
|
|
204
|
+
}
|
|
205
|
+
/** Popover focus trap auto capture using cdkTrapFocusAutoCapture */
|
|
206
|
+
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
207
|
+
get focusTrapAutoCaptureEnabled() {
|
|
208
|
+
return this._focusTrapAutoCaptureEnabled;
|
|
209
|
+
}
|
|
210
|
+
set focusTrapAutoCaptureEnabled(value) {
|
|
211
|
+
this._focusTrapAutoCaptureEnabled = coerceBooleanProperty(value);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* This method takes classes set on the host md-popover element and applies them on the
|
|
215
|
+
* popover template that displays in the overlay container. Otherwise, it's difficult
|
|
216
|
+
* to style the containing popover from outside the component.
|
|
217
|
+
*
|
|
218
|
+
* @param classes list of class names
|
|
219
|
+
*/
|
|
220
|
+
set panelClass(classes) {
|
|
221
|
+
if (classes && classes.length) {
|
|
222
|
+
this.classList = classes.split(' ').reduce((obj, className) => {
|
|
223
|
+
obj[className] = true;
|
|
224
|
+
return obj;
|
|
225
|
+
}, {});
|
|
226
|
+
this._elementRef.nativeElement.className = '';
|
|
227
|
+
this.setPositionClasses();
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
ngOnDestroy() {
|
|
231
|
+
this.emitCloseEvent();
|
|
232
|
+
this.closed.complete();
|
|
233
|
+
}
|
|
234
|
+
/** Handle a keyboard event from the popover, delegating to the appropriate action. */
|
|
235
|
+
handleKeydown(event) {
|
|
236
|
+
switch (event.code) {
|
|
237
|
+
case 'Escape':
|
|
238
|
+
this.emitCloseEvent();
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* This emits a close event to which the trigger is subscribed. When emitted, the
|
|
244
|
+
* trigger will close the popover.
|
|
245
|
+
*/
|
|
246
|
+
emitCloseEvent() {
|
|
247
|
+
this.closed.emit();
|
|
248
|
+
}
|
|
249
|
+
/** Close popover on click if closeOnPanelClick is true */
|
|
250
|
+
onClick() {
|
|
251
|
+
if (this.closeOnPanelClick) {
|
|
252
|
+
this.emitCloseEvent();
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* TODO: Refactor when @angular/cdk includes feature I mentioned on github see link below.
|
|
257
|
+
* https://github.com/angular/material2/pull/5493#issuecomment-313085323
|
|
258
|
+
*/
|
|
259
|
+
/** Disables close of popover when leaving trigger element and mouse over the popover */
|
|
260
|
+
onMouseOver() {
|
|
261
|
+
if (this.triggerEvent === 'hover') {
|
|
262
|
+
this.closeDisabled = true;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
onFocus() {
|
|
266
|
+
//do someting
|
|
267
|
+
}
|
|
268
|
+
/** Enables close of popover when mouse leaving popover element */
|
|
269
|
+
onMouseLeave() {
|
|
270
|
+
if (this.triggerEvent === 'hover') {
|
|
271
|
+
this.closeDisabled = false;
|
|
272
|
+
this.emitCloseEvent();
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
// TODO: Refactor how styles are set and updated on the component, use best practices.
|
|
276
|
+
// TODO: If arrow left and right positioning is requested, see if flex direction can be used to work with order.
|
|
277
|
+
/** Sets the current styles for the popover to allow for dynamically changing settings */
|
|
278
|
+
setCurrentStyles(pos = this.position) {
|
|
279
|
+
const left = pos[1] === 'after'
|
|
280
|
+
? `${this.arrowOffsetX - this.arrowWidth / 2}px`
|
|
281
|
+
: pos[1] === 'center'
|
|
282
|
+
? `calc(50% - ${this.arrowWidth / 2}px)`
|
|
283
|
+
: '';
|
|
284
|
+
const right = pos[1] === 'before' ? `${this.arrowOffsetX - this.arrowWidth / 2}px` : '';
|
|
285
|
+
const bottom = pos[1] === 'above'
|
|
286
|
+
? `${this.arrowOffsetY - this.arrowHeight / 2}px`
|
|
287
|
+
: pos[1] === 'center'
|
|
288
|
+
? `calc(50% - ${this.arrowHeight / 2}px)`
|
|
289
|
+
: '';
|
|
290
|
+
const top = pos[1] === 'below' ? `${this.arrowOffsetY - this.arrowHeight / 2}px` : '';
|
|
291
|
+
this.popoverArrowStyles =
|
|
292
|
+
pos[0] === 'above' || pos[0] === 'below'
|
|
293
|
+
? {
|
|
294
|
+
left: this._dir.value === 'ltr' ? left : right,
|
|
295
|
+
right: this._dir.value === 'ltr' ? right : left,
|
|
296
|
+
}
|
|
297
|
+
: {
|
|
298
|
+
top,
|
|
299
|
+
bottom,
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* It's necessary to set position-based classes to ensure the popover panel animation
|
|
304
|
+
* folds out from the correct direction.
|
|
305
|
+
*/
|
|
306
|
+
setPositionClasses(pos = this.position) {
|
|
307
|
+
this.classList['cmat-popover-before-above'] = pos[0] === 'before' && pos[1] === 'above';
|
|
308
|
+
this.classList['cmat-popover-before-center'] = pos[0] === 'before' && pos[1] === 'center';
|
|
309
|
+
this.classList['cmat-popover-before-below'] = pos[0] === 'before' && pos[1] === 'below';
|
|
310
|
+
this.classList['cmat-popover-after-above'] = pos[0] === 'after' && pos[1] === 'above';
|
|
311
|
+
this.classList['cmat-popover-after-center'] = pos[0] === 'after' && pos[1] === 'center';
|
|
312
|
+
this.classList['cmat-popover-after-below'] = pos[0] === 'after' && pos[1] === 'below';
|
|
313
|
+
this.classList['cmat-popover-above-before'] = pos[0] === 'above' && pos[1] === 'before';
|
|
314
|
+
this.classList['cmat-popover-above-center'] = pos[0] === 'above' && pos[1] === 'center';
|
|
315
|
+
this.classList['cmat-popover-above-after'] = pos[0] === 'above' && pos[1] === 'after';
|
|
316
|
+
this.classList['cmat-popover-below-before'] = pos[0] === 'below' && pos[1] === 'before';
|
|
317
|
+
this.classList['cmat-popover-below-center'] = pos[0] === 'below' && pos[1] === 'center';
|
|
318
|
+
this.classList['cmat-popover-below-after'] = pos[0] === 'below' && pos[1] === 'after';
|
|
319
|
+
}
|
|
320
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatPopoverComponent, deps: [{ token: i1.Directionality, optional: true }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
321
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.0", type: CmatPopoverComponent, isStandalone: true, selector: "cmat-popover", inputs: { popoverPanelStyles: "popoverPanelStyles", popoverArrowStyles: "popoverArrowStyles", popoverContentStyles: "popoverContentStyles", position: "position", triggerEvent: "triggerEvent", scrollStrategy: "scrollStrategy", enterDelay: "enterDelay", leaveDelay: "leaveDelay", xOffset: "xOffset", yOffset: "yOffset", arrowOffsetX: "arrowOffsetX", arrowOffsetY: "arrowOffsetY", arrowWidth: "arrowWidth", arrowHeight: "arrowHeight", closeOnPanelClick: "closeOnPanelClick", closeOnBackdropClick: "closeOnBackdropClick", disableAnimation: "disableAnimation", focusTrapEnabled: "focusTrapEnabled", focusTrapAutoCaptureEnabled: "focusTrapAutoCaptureEnabled", panelClass: "panelClass" }, outputs: { closed: "closed" }, host: { properties: { "attr.role": "this.role" } }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true }], exportAs: ["cmatPopover"], ngImport: i0, template: "<ng-template>\r\n <div class=\"cmat-popover-panel shadow\" role=\"dialog\" [ngClass]=\"classList\" [ngStyle]=\"popoverPanelStyles\"\r\n (keydown)=\"handleKeydown($event)\" (click)=\"onClick()\" (focus)=\"onFocus()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\"\r\n [@.disabled]=\"disableAnimation\" [@transform]=\"'enter'\">\r\n <div class=\"cmat-popover-direction-arrow\" [ngStyle]=\"popoverArrowStyles\"></div>\r\n <div class=\"cmat-popover-content\" [ngStyle]=\"popoverContentStyles\" [cdkTrapFocus]=\"focusTrapEnabled\"\r\n [cdkTrapFocusAutoCapture]=\"focusTrapAutoCaptureEnabled\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</ng-template>", styles: [".cmat-popover-panel{max-height:calc(100vh - 48px);@apply p-2 rounded-lg text-lg bg-card;}.cmat-popover-panel[class*=cmat-popover-below]{margin-top:calc(.5em + 2px)}.cmat-popover-panel[class*=cmat-popover-above]{margin-bottom:calc(.5em + 2px)}.cmat-popover-panel[class*=cmat-popover-before]{margin-right:calc(.5em + 2px)}[dir=rtl] .cmat-popover-panel[class*=cmat-popover-before]{@apply mr-auto;margin-left:calc(.5em + 2px)}.cmat-popover-panel[class*=cmat-popover-after]{margin-left:calc(.5em + 2px)}[dir=rtl] .cmat-popover-panel[class*=cmat-popover-after]{@apply ml-auto;margin-right:calc(.5em + 2px)}.cmat-popover-direction-arrow{@apply absolute;}.cmat-popover-direction-arrow:before,.cmat-popover-direction-arrow:after{@apply absolute inline-block border-solid;content:\"\"}.cmat-popover-direction-arrow:before{border-width:.5em;border-color:var(--cmat-divider)}.cmat-popover-direction-arrow:after{border-width:calc(.5em - 1px);border-color:var(--cmat-bg-card)}[class*=cmat-popover-below] .cmat-popover-direction-arrow,[class*=cmat-popover-above] .cmat-popover-direction-arrow{width:1em}[class*=cmat-popover-below] .cmat-popover-direction-arrow:after,[class*=cmat-popover-above] .cmat-popover-direction-arrow:after{left:1px}[dir=rtl] [class*=cmat-popover-below] .cmat-popover-direction-arrow:after,[dir=rtl] [class*=cmat-popover-above] .cmat-popover-direction-arrow:after{right:1px;left:auto}[class*=cmat-popover-below] .cmat-popover-direction-arrow:before,[class*=cmat-popover-below] .cmat-popover-direction-arrow:after,[class*=cmat-popover-above] .cmat-popover-direction-arrow:before,[class*=cmat-popover-above] .cmat-popover-direction-arrow:after{border-left-color:transparent;border-right-color:transparent}[class*=cmat-popover-below] .cmat-popover-direction-arrow{@apply top-0;}[class*=cmat-popover-below] .cmat-popover-direction-arrow:before,[class*=cmat-popover-below] .cmat-popover-direction-arrow:after{@apply bottom-0 border-t-0;}[class*=cmat-popover-above] .cmat-popover-direction-arrow{@apply bottom-0;}[class*=cmat-popover-above] .cmat-popover-direction-arrow:before,[class*=cmat-popover-above] .cmat-popover-direction-arrow:after{@apply top-0 border-b-0;}[class*=cmat-popover-before] .cmat-popover-direction-arrow,[class*=cmat-popover-after] .cmat-popover-direction-arrow{height:1em}[class*=cmat-popover-before] .cmat-popover-direction-arrow:after,[class*=cmat-popover-after] .cmat-popover-direction-arrow:after{top:1px}[class*=cmat-popover-before] .cmat-popover-direction-arrow:before,[class*=cmat-popover-before] .cmat-popover-direction-arrow:after,[class*=cmat-popover-after] .cmat-popover-direction-arrow:before,[class*=cmat-popover-after] .cmat-popover-direction-arrow:after{border-top-color:transparent;border-bottom-color:transparent}[class*=cmat-popover-before] .cmat-popover-direction-arrow{@apply right-0;}[class*=cmat-popover-before] .cmat-popover-direction-arrow:before,[class*=cmat-popover-before] .cmat-popover-direction-arrow:after{@apply left-0 border-r-0;}[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow{@apply right-auto left-0;}[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow:before,[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow:after{@apply left-auto right-0 border-l-0;}[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow:before{border-right-width:.5em}[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow:after{border-right-width:calc(.5em - 1px)}[class*=cmat-popover-after] .cmat-popover-direction-arrow{@apply left-0;}[class*=cmat-popover-after] .cmat-popover-direction-arrow:before,[class*=cmat-popover-after] .cmat-popover-direction-arrow:after{@apply right-0 border-l-0;}[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow{@apply left-auto right-0;}[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow:before,[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow:after{@apply right-auto left-0 border-r-0;}[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow:before{border-left-width:.5em}[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow:after{border-left-width:calc(.5em - 1px)}\n"], dependencies: [{ kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], animations: [cmatAnimations], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
322
|
+
}
|
|
323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatPopoverComponent, decorators: [{
|
|
324
|
+
type: Component,
|
|
325
|
+
args: [{ selector: 'cmat-popover', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, animations: [cmatAnimations], exportAs: 'cmatPopover', standalone: true, imports: [NgStyle, NgClass, A11yModule], template: "<ng-template>\r\n <div class=\"cmat-popover-panel shadow\" role=\"dialog\" [ngClass]=\"classList\" [ngStyle]=\"popoverPanelStyles\"\r\n (keydown)=\"handleKeydown($event)\" (click)=\"onClick()\" (focus)=\"onFocus()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\"\r\n [@.disabled]=\"disableAnimation\" [@transform]=\"'enter'\">\r\n <div class=\"cmat-popover-direction-arrow\" [ngStyle]=\"popoverArrowStyles\"></div>\r\n <div class=\"cmat-popover-content\" [ngStyle]=\"popoverContentStyles\" [cdkTrapFocus]=\"focusTrapEnabled\"\r\n [cdkTrapFocusAutoCapture]=\"focusTrapAutoCaptureEnabled\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</ng-template>", styles: [".cmat-popover-panel{max-height:calc(100vh - 48px);@apply p-2 rounded-lg text-lg bg-card;}.cmat-popover-panel[class*=cmat-popover-below]{margin-top:calc(.5em + 2px)}.cmat-popover-panel[class*=cmat-popover-above]{margin-bottom:calc(.5em + 2px)}.cmat-popover-panel[class*=cmat-popover-before]{margin-right:calc(.5em + 2px)}[dir=rtl] .cmat-popover-panel[class*=cmat-popover-before]{@apply mr-auto;margin-left:calc(.5em + 2px)}.cmat-popover-panel[class*=cmat-popover-after]{margin-left:calc(.5em + 2px)}[dir=rtl] .cmat-popover-panel[class*=cmat-popover-after]{@apply ml-auto;margin-right:calc(.5em + 2px)}.cmat-popover-direction-arrow{@apply absolute;}.cmat-popover-direction-arrow:before,.cmat-popover-direction-arrow:after{@apply absolute inline-block border-solid;content:\"\"}.cmat-popover-direction-arrow:before{border-width:.5em;border-color:var(--cmat-divider)}.cmat-popover-direction-arrow:after{border-width:calc(.5em - 1px);border-color:var(--cmat-bg-card)}[class*=cmat-popover-below] .cmat-popover-direction-arrow,[class*=cmat-popover-above] .cmat-popover-direction-arrow{width:1em}[class*=cmat-popover-below] .cmat-popover-direction-arrow:after,[class*=cmat-popover-above] .cmat-popover-direction-arrow:after{left:1px}[dir=rtl] [class*=cmat-popover-below] .cmat-popover-direction-arrow:after,[dir=rtl] [class*=cmat-popover-above] .cmat-popover-direction-arrow:after{right:1px;left:auto}[class*=cmat-popover-below] .cmat-popover-direction-arrow:before,[class*=cmat-popover-below] .cmat-popover-direction-arrow:after,[class*=cmat-popover-above] .cmat-popover-direction-arrow:before,[class*=cmat-popover-above] .cmat-popover-direction-arrow:after{border-left-color:transparent;border-right-color:transparent}[class*=cmat-popover-below] .cmat-popover-direction-arrow{@apply top-0;}[class*=cmat-popover-below] .cmat-popover-direction-arrow:before,[class*=cmat-popover-below] .cmat-popover-direction-arrow:after{@apply bottom-0 border-t-0;}[class*=cmat-popover-above] .cmat-popover-direction-arrow{@apply bottom-0;}[class*=cmat-popover-above] .cmat-popover-direction-arrow:before,[class*=cmat-popover-above] .cmat-popover-direction-arrow:after{@apply top-0 border-b-0;}[class*=cmat-popover-before] .cmat-popover-direction-arrow,[class*=cmat-popover-after] .cmat-popover-direction-arrow{height:1em}[class*=cmat-popover-before] .cmat-popover-direction-arrow:after,[class*=cmat-popover-after] .cmat-popover-direction-arrow:after{top:1px}[class*=cmat-popover-before] .cmat-popover-direction-arrow:before,[class*=cmat-popover-before] .cmat-popover-direction-arrow:after,[class*=cmat-popover-after] .cmat-popover-direction-arrow:before,[class*=cmat-popover-after] .cmat-popover-direction-arrow:after{border-top-color:transparent;border-bottom-color:transparent}[class*=cmat-popover-before] .cmat-popover-direction-arrow{@apply right-0;}[class*=cmat-popover-before] .cmat-popover-direction-arrow:before,[class*=cmat-popover-before] .cmat-popover-direction-arrow:after{@apply left-0 border-r-0;}[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow{@apply right-auto left-0;}[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow:before,[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow:after{@apply left-auto right-0 border-l-0;}[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow:before{border-right-width:.5em}[dir=rtl] [class*=cmat-popover-before] .cmat-popover-direction-arrow:after{border-right-width:calc(.5em - 1px)}[class*=cmat-popover-after] .cmat-popover-direction-arrow{@apply left-0;}[class*=cmat-popover-after] .cmat-popover-direction-arrow:before,[class*=cmat-popover-after] .cmat-popover-direction-arrow:after{@apply right-0 border-l-0;}[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow{@apply left-auto right-0;}[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow:before,[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow:after{@apply right-auto left-0 border-r-0;}[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow:before{border-left-width:.5em}[dir=rtl] [class*=cmat-popover-after] .cmat-popover-direction-arrow:after{border-left-width:calc(.5em - 1px)}\n"] }]
|
|
326
|
+
}], ctorParameters: () => [{ type: i1.Directionality, decorators: [{
|
|
327
|
+
type: Optional
|
|
328
|
+
}] }, { type: i0.ElementRef }, { type: i0.NgZone }], propDecorators: { closed: [{
|
|
329
|
+
type: Output
|
|
330
|
+
}], templateRef: [{
|
|
331
|
+
type: ViewChild,
|
|
332
|
+
args: [TemplateRef]
|
|
333
|
+
}], role: [{
|
|
334
|
+
type: HostBinding,
|
|
335
|
+
args: ['attr.role']
|
|
336
|
+
}], popoverPanelStyles: [{
|
|
337
|
+
type: Input
|
|
338
|
+
}], popoverArrowStyles: [{
|
|
339
|
+
type: Input
|
|
340
|
+
}], popoverContentStyles: [{
|
|
341
|
+
type: Input
|
|
342
|
+
}], position: [{
|
|
343
|
+
type: Input
|
|
344
|
+
}], triggerEvent: [{
|
|
345
|
+
type: Input
|
|
346
|
+
}], scrollStrategy: [{
|
|
347
|
+
type: Input
|
|
348
|
+
}], enterDelay: [{
|
|
349
|
+
type: Input
|
|
350
|
+
}], leaveDelay: [{
|
|
351
|
+
type: Input
|
|
352
|
+
}], xOffset: [{
|
|
353
|
+
type: Input
|
|
354
|
+
}], yOffset: [{
|
|
355
|
+
type: Input
|
|
356
|
+
}], arrowOffsetX: [{
|
|
357
|
+
type: Input
|
|
358
|
+
}], arrowOffsetY: [{
|
|
359
|
+
type: Input
|
|
360
|
+
}], arrowWidth: [{
|
|
361
|
+
type: Input
|
|
362
|
+
}], arrowHeight: [{
|
|
363
|
+
type: Input
|
|
364
|
+
}], closeOnPanelClick: [{
|
|
365
|
+
type: Input
|
|
366
|
+
}], closeOnBackdropClick: [{
|
|
367
|
+
type: Input
|
|
368
|
+
}], disableAnimation: [{
|
|
369
|
+
type: Input
|
|
370
|
+
}], focusTrapEnabled: [{
|
|
371
|
+
type: Input
|
|
372
|
+
}], focusTrapAutoCaptureEnabled: [{
|
|
373
|
+
type: Input
|
|
374
|
+
}], panelClass: [{
|
|
375
|
+
type: Input
|
|
376
|
+
}] } });
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Generated bundle index. Do not edit.
|
|
380
|
+
*/
|
|
381
|
+
|
|
382
|
+
export { CmatPopoverComponent };
|
|
383
|
+
//# sourceMappingURL=cmat-components-popover.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmat-components-popover.mjs","sources":["../../../projects/cmat/components/popover/popover.errors.ts","../../../projects/cmat/components/popover/popover.component.ts","../../../projects/cmat/components/popover/popover.component.html","../../../projects/cmat/components/popover/cmat-components-popover.ts"],"sourcesContent":["\r\n/**\r\n * Throws an exception for the case when popover trigger doesn't have a valid cmat-popover instance\r\n */\r\nexport function throwCmatPopoverMissingError(): void {\r\n throw Error(`cmat-popover-trigger: must pass in an cmat-popover instance.\r\n\r\n Example:\r\n <cmat-popover #popover=\"cmatPopover\"></cmat-popover>\r\n <button [cmatPopoverTriggerFor]=\"popover\"></button>`);\r\n}\r\n\r\n/**\r\n * Throws an exception for the case when popover's cmatPopoverPosition[0] value isn't valid.\r\n * In other words, it doesn't match 'above', 'below', 'before' or 'after'.\r\n */\r\nexport function throwCmatPopoverInvalidPositionStart(): void {\r\n throw Error(`cmatPopoverPosition[0] value must be either 'above', 'below', 'before' or 'after'.\r\n Example: <cmat-popover [position]=\"['below', 'after']\" #popover=\"cmatPopover\"></cmat-popover>`);\r\n}\r\n\r\n/**\r\n * Throws an exception for the case when popover's cmatPopoverPosition[1] value isn't valid.\r\n * In other words, it doesn't match 'above', 'below', 'before', 'after' or 'center'.\r\n */\r\nexport function throwCmatPopoverInvalidPositionEnd(): void {\r\n throw Error(`cmatPopoverPosition[1] value must be either 'above', 'below', 'before', 'after' or 'center'.\r\n Example: <cmat-popover [position]=\"['below', 'after']\" #popover=\"cmatPopover\"></cmat-popover>`);\r\n}\r\n","/* eslint-disable @typescript-eslint/naming-convention */\r\nimport {\r\n ChangeDetectionStrategy,\r\n Component,\r\n ElementRef,\r\n EventEmitter,\r\n HostBinding,\r\n Input,\r\n NgZone,\r\n OnDestroy,\r\n Optional,\r\n Output,\r\n TemplateRef,\r\n ViewChild,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\nimport { AnimationEvent } from '@angular/animations';\r\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\r\nimport { Directionality } from '@angular/cdk/bidi';\r\n\r\nimport { CmatPopoverPosition, CmatPopoverScrollStrategy, CmatPopoverTriggerEvent } from './popover.type';\r\nimport { throwCmatPopoverInvalidPositionEnd, throwCmatPopoverInvalidPositionStart } from './popover.errors';\r\nimport { CmatPopoverPanel } from './popover.interfaces';\r\nimport { cmatAnimations } from 'cmat/animations';\r\nimport { NgClass, NgStyle } from '@angular/common';\r\nimport { A11yModule } from '@angular/cdk/a11y';\r\n\r\n@Component({\r\n selector: 'cmat-popover',\r\n templateUrl: './popover.component.html',\r\n styleUrls: ['./popover.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n animations: [cmatAnimations],\r\n exportAs: 'cmatPopover',\r\n standalone: true,\r\n imports: [NgStyle, NgClass,A11yModule]\r\n})\r\nexport class CmatPopoverComponent implements CmatPopoverPanel, OnDestroy {\r\n static ngAcceptInputType_closeOnPanelClick: BooleanInput;\r\n static ngAcceptInputType_closeOnBackdropClick: BooleanInput;\r\n static ngAcceptInputType_disableAnimation: BooleanInput;\r\n static ngAcceptInputType_focusTrapEnabled: BooleanInput;\r\n static ngAcceptInputType_focusTrapAutoCaptureEnabled: BooleanInput;\r\n\r\n /** Event emitted when the popover is closed. */\r\n @Output() closed = new EventEmitter<void>();\r\n\r\n @ViewChild(TemplateRef) templateRef!: TemplateRef<any>;\r\n\r\n @HostBinding('attr.role') role = 'dialog';\r\n /** Config object to be passed into the popover's arrow ngStyle */\r\n @Input()\r\n popoverPanelStyles = {};\r\n\r\n /** Config object to be passed into the popover's arrow ngStyle */\r\n @Input()\r\n public popoverArrowStyles = {};\r\n\r\n /** Config object to be passed into the popover's content ngStyle */\r\n @Input()\r\n public popoverContentStyles = {};\r\n /** Whether popover's `targetElement` is defined */\r\n public containerPositioning = false;\r\n\r\n /** Closing disabled on popover */\r\n public closeDisabled = false;\r\n\r\n /** Config object to be passed into the popover's ngClass */\r\n classList: { [key: string]: boolean } = {};\r\n\r\n /** Emits the current animation state whenever it changes. */\r\n _onAnimationStateChange = new EventEmitter<AnimationEvent>();\r\n\r\n /** Settings for popover, view setters and getters for more detail */\r\n private _position: CmatPopoverPosition = ['below', 'after'];\r\n private _triggerEvent: CmatPopoverTriggerEvent = 'hover';\r\n private _scrollStrategy: CmatPopoverScrollStrategy = 'reposition';\r\n private _enterDelay = 100;\r\n private _leaveDelay = 100;\r\n private _panelOffsetX = 0;\r\n private _panelOffsetY = 0;\r\n private _closeOnPanelClick = false;\r\n private _closeOnBackdropClick = true;\r\n private _disableAnimation = false;\r\n private _focusTrapEnabled = true;\r\n private _focusTrapAutoCaptureEnabled = true;\r\n private _arrowOffsetX = 20;\r\n private _arrowOffsetY = 20;\r\n private _arrowWidth = 16;\r\n private _arrowHeight = 16;\r\n\r\n constructor(\r\n @Optional() private _dir: Directionality,\r\n private _elementRef: ElementRef,\r\n public zone: NgZone\r\n ) {\r\n this.setPositionClasses();\r\n }\r\n\r\n get position(): CmatPopoverPosition {\r\n return this._position;\r\n }\r\n /** Position of the popover. */\r\n @Input()\r\n set position(value: CmatPopoverPosition) {\r\n if (!['before', 'after', 'above', 'below'].includes(value[0])) {\r\n throwCmatPopoverInvalidPositionStart();\r\n }\r\n if (!['before', 'after', 'above', 'below', 'center'].includes(value[1])) {\r\n throwCmatPopoverInvalidPositionEnd();\r\n }\r\n this._position = value;\r\n this.setPositionClasses();\r\n }\r\n\r\n /** Popover trigger event */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get triggerEvent(): CmatPopoverTriggerEvent {\r\n return this._triggerEvent;\r\n }\r\n @Input()\r\n set triggerEvent(value: CmatPopoverTriggerEvent) {\r\n this._triggerEvent = value;\r\n }\r\n\r\n /** Popover scroll strategy */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get scrollStrategy(): CmatPopoverScrollStrategy {\r\n return this._scrollStrategy;\r\n }\r\n @Input()\r\n set scrollStrategy(value: CmatPopoverScrollStrategy) {\r\n this._scrollStrategy = value;\r\n }\r\n\r\n /** Popover enter delay */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get enterDelay(): number {\r\n return this._enterDelay;\r\n }\r\n\r\n @Input()\r\n set enterDelay(value: number) {\r\n this._enterDelay = value;\r\n }\r\n\r\n /** Popover leave delay */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get leaveDelay(): number {\r\n return this._leaveDelay;\r\n }\r\n\r\n @Input()\r\n set leaveDelay(value: number) {\r\n this._leaveDelay = value;\r\n }\r\n\r\n /** Popover target offset x */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get xOffset(): number {\r\n return this._panelOffsetX;\r\n }\r\n @Input()\r\n set xOffset(value: number) {\r\n this._panelOffsetX = value;\r\n }\r\n\r\n /** Popover target offset y */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get yOffset(): number {\r\n return this._panelOffsetY;\r\n }\r\n\r\n @Input()\r\n set yOffset(value: number) {\r\n this._panelOffsetY = value;\r\n }\r\n\r\n /** Popover arrow offset x */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get arrowOffsetX(): number {\r\n return this._arrowOffsetX;\r\n }\r\n\r\n @Input()\r\n set arrowOffsetX(value: number) {\r\n this._arrowOffsetX = value;\r\n }\r\n\r\n /** Popover arrow offset y */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get arrowOffsetY(): number {\r\n return this._arrowOffsetY;\r\n }\r\n\r\n @Input()\r\n set arrowOffsetY(value: number) {\r\n this._arrowOffsetY = value;\r\n }\r\n\r\n /** Popover arrow width */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get arrowWidth(): number {\r\n return this._arrowWidth;\r\n }\r\n\r\n @Input()\r\n set arrowWidth(value: number) {\r\n this._arrowWidth = value;\r\n }\r\n\r\n /** Popover arrow height */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get arrowHeight(): number {\r\n return this._arrowHeight;\r\n }\r\n @Input()\r\n set arrowHeight(value: number) {\r\n this._arrowHeight = value;\r\n }\r\n\r\n /** Popover close on container click */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get closeOnPanelClick(): boolean {\r\n return this._closeOnPanelClick;\r\n }\r\n\r\n @Input()\r\n set closeOnPanelClick(value: boolean) {\r\n this._closeOnPanelClick = coerceBooleanProperty(value);\r\n }\r\n\r\n /** Popover close on backdrop click */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get closeOnBackdropClick(): boolean {\r\n return this._closeOnBackdropClick;\r\n }\r\n @Input()\r\n set closeOnBackdropClick(value: boolean) {\r\n this._closeOnBackdropClick = coerceBooleanProperty(value);\r\n }\r\n\r\n /** Disable animations of popover and all child elements */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get disableAnimation(): boolean {\r\n return this._disableAnimation;\r\n }\r\n\r\n @Input()\r\n set disableAnimation(value: boolean) {\r\n this._disableAnimation = coerceBooleanProperty(value);\r\n }\r\n\r\n /** Popover focus trap using cdkTrapFocus */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get focusTrapEnabled(): boolean {\r\n return this._focusTrapEnabled;\r\n }\r\n\r\n @Input()\r\n set focusTrapEnabled(value: boolean) {\r\n this._focusTrapEnabled = coerceBooleanProperty(value);\r\n }\r\n\r\n /** Popover focus trap auto capture using cdkTrapFocusAutoCapture */\r\n // eslint-disable-next-line @typescript-eslint/member-ordering\r\n get focusTrapAutoCaptureEnabled(): boolean {\r\n return this._focusTrapAutoCaptureEnabled;\r\n }\r\n\r\n @Input()\r\n set focusTrapAutoCaptureEnabled(value: boolean) {\r\n this._focusTrapAutoCaptureEnabled = coerceBooleanProperty(value);\r\n }\r\n\r\n /**\r\n * This method takes classes set on the host md-popover element and applies them on the\r\n * popover template that displays in the overlay container. Otherwise, it's difficult\r\n * to style the containing popover from outside the component.\r\n *\r\n * @param classes list of class names\r\n */\r\n @Input()\r\n set panelClass(classes: string) {\r\n if (classes && classes.length) {\r\n this.classList = classes.split(' ').reduce((obj: any, className: string) => {\r\n obj[className] = true;\r\n return obj;\r\n }, {});\r\n\r\n this._elementRef.nativeElement.className = '';\r\n this.setPositionClasses();\r\n }\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.emitCloseEvent();\r\n this.closed.complete();\r\n }\r\n\r\n /** Handle a keyboard event from the popover, delegating to the appropriate action. */\r\n handleKeydown(event: KeyboardEvent): void {\r\n switch (event.code) {\r\n case 'Escape':\r\n this.emitCloseEvent();\r\n return;\r\n }\r\n }\r\n\r\n /**\r\n * This emits a close event to which the trigger is subscribed. When emitted, the\r\n * trigger will close the popover.\r\n */\r\n emitCloseEvent(): void {\r\n this.closed.emit();\r\n }\r\n\r\n /** Close popover on click if closeOnPanelClick is true */\r\n onClick(): void {\r\n if (this.closeOnPanelClick) {\r\n this.emitCloseEvent();\r\n }\r\n }\r\n\r\n /**\r\n * TODO: Refactor when @angular/cdk includes feature I mentioned on github see link below.\r\n * https://github.com/angular/material2/pull/5493#issuecomment-313085323\r\n */\r\n /** Disables close of popover when leaving trigger element and mouse over the popover */\r\n onMouseOver(): void {\r\n if (this.triggerEvent === 'hover') {\r\n this.closeDisabled = true;\r\n }\r\n }\r\n\r\n onFocus(): void {\r\n //do someting\r\n }\r\n\r\n /** Enables close of popover when mouse leaving popover element */\r\n onMouseLeave(): void {\r\n if (this.triggerEvent === 'hover') {\r\n this.closeDisabled = false;\r\n this.emitCloseEvent();\r\n }\r\n }\r\n\r\n // TODO: Refactor how styles are set and updated on the component, use best practices.\r\n // TODO: If arrow left and right positioning is requested, see if flex direction can be used to work with order.\r\n /** Sets the current styles for the popover to allow for dynamically changing settings */\r\n setCurrentStyles(pos = this.position): void {\r\n const left =\r\n pos[1] === 'after'\r\n ? `${this.arrowOffsetX - this.arrowWidth / 2}px`\r\n : pos[1] === 'center'\r\n ? `calc(50% - ${this.arrowWidth / 2}px)`\r\n : '';\r\n const right = pos[1] === 'before' ? `${this.arrowOffsetX - this.arrowWidth / 2}px` : '';\r\n\r\n const bottom =\r\n pos[1] === 'above'\r\n ? `${this.arrowOffsetY - this.arrowHeight / 2}px`\r\n : pos[1] === 'center'\r\n ? `calc(50% - ${this.arrowHeight / 2}px)`\r\n : '';\r\n const top = pos[1] === 'below' ? `${this.arrowOffsetY - this.arrowHeight / 2}px` : '';\r\n\r\n this.popoverArrowStyles =\r\n pos[0] === 'above' || pos[0] === 'below'\r\n ? {\r\n left: this._dir.value === 'ltr' ? left : right,\r\n right: this._dir.value === 'ltr' ? right : left,\r\n }\r\n : {\r\n top,\r\n bottom,\r\n };\r\n }\r\n\r\n /**\r\n * It's necessary to set position-based classes to ensure the popover panel animation\r\n * folds out from the correct direction.\r\n */\r\n setPositionClasses(pos = this.position): void {\r\n this.classList['cmat-popover-before-above'] = pos[0] === 'before' && pos[1] === 'above';\r\n this.classList['cmat-popover-before-center'] = pos[0] === 'before' && pos[1] === 'center';\r\n this.classList['cmat-popover-before-below'] = pos[0] === 'before' && pos[1] === 'below';\r\n this.classList['cmat-popover-after-above'] = pos[0] === 'after' && pos[1] === 'above';\r\n this.classList['cmat-popover-after-center'] = pos[0] === 'after' && pos[1] === 'center';\r\n this.classList['cmat-popover-after-below'] = pos[0] === 'after' && pos[1] === 'below';\r\n this.classList['cmat-popover-above-before'] = pos[0] === 'above' && pos[1] === 'before';\r\n this.classList['cmat-popover-above-center'] = pos[0] === 'above' && pos[1] === 'center';\r\n this.classList['cmat-popover-above-after'] = pos[0] === 'above' && pos[1] === 'after';\r\n this.classList['cmat-popover-below-before'] = pos[0] === 'below' && pos[1] === 'before';\r\n this.classList['cmat-popover-below-center'] = pos[0] === 'below' && pos[1] === 'center';\r\n this.classList['cmat-popover-below-after'] = pos[0] === 'below' && pos[1] === 'after';\r\n }\r\n}\r\n","<ng-template>\r\n <div class=\"cmat-popover-panel shadow\" role=\"dialog\" [ngClass]=\"classList\" [ngStyle]=\"popoverPanelStyles\"\r\n (keydown)=\"handleKeydown($event)\" (click)=\"onClick()\" (focus)=\"onFocus()\" (mouseover)=\"onMouseOver()\" (mouseleave)=\"onMouseLeave()\"\r\n [@.disabled]=\"disableAnimation\" [@transform]=\"'enter'\">\r\n <div class=\"cmat-popover-direction-arrow\" [ngStyle]=\"popoverArrowStyles\"></div>\r\n <div class=\"cmat-popover-content\" [ngStyle]=\"popoverContentStyles\" [cdkTrapFocus]=\"focusTrapEnabled\"\r\n [cdkTrapFocusAutoCapture]=\"focusTrapAutoCaptureEnabled\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</ng-template>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AACA;;AAEG;SACa,4BAA4B,GAAA;AACxC,IAAA,MAAM,KAAK,CAAC,CAAA;;;;AAI0C,yDAAA,CAAA,CAAC,CAAC;AAC5D,CAAC;AAED;;;AAGG;SACa,oCAAoC,GAAA;AAChD,IAAA,MAAM,KAAK,CAAC,CAAA;AACkF,iGAAA,CAAA,CAAC,CAAC;AACpG,CAAC;AAED;;;AAGG;SACa,kCAAkC,GAAA;AAC9C,IAAA,MAAM,KAAK,CAAC,CAAA;AACkF,iGAAA,CAAA,CAAC,CAAC;AACpG;;AC5BA;MAsCa,oBAAoB,CAAA;AAsD7B,IAAA,WAAA,CACwB,IAAoB,EAChC,WAAuB,EACxB,IAAY,EAAA;QAFC,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAgB;QAChC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAY;QACxB,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAQ;;AAjDb,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,YAAY,EAAQ,CAAC;QAIlB,IAAI,CAAA,IAAA,GAAG,QAAQ,CAAC;;QAG1C,IAAkB,CAAA,kBAAA,GAAG,EAAE,CAAC;;QAIjB,IAAkB,CAAA,kBAAA,GAAG,EAAE,CAAC;;QAIxB,IAAoB,CAAA,oBAAA,GAAG,EAAE,CAAC;;QAE1B,IAAoB,CAAA,oBAAA,GAAG,KAAK,CAAC;;QAG7B,IAAa,CAAA,aAAA,GAAG,KAAK,CAAC;;QAG7B,IAAS,CAAA,SAAA,GAA+B,EAAE,CAAC;;AAG3C,QAAA,IAAA,CAAA,uBAAuB,GAAG,IAAI,YAAY,EAAkB,CAAC;;AAGrD,QAAA,IAAA,CAAA,SAAS,GAAwB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACpD,IAAa,CAAA,aAAA,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,CAAA;sBADf,KAAK;gBAWF,cAAc,EAAA,CAAA;sBADjB,KAAK;gBAYF,UAAU,EAAA,CAAA;sBADb,KAAK;gBAYF,UAAU,EAAA,CAAA;sBADb,KAAK;gBAWF,OAAO,EAAA,CAAA;sBADV,KAAK;gBAYF,OAAO,EAAA,CAAA;sBADV,KAAK;gBAYF,YAAY,EAAA,CAAA;sBADf,KAAK;gBAYF,YAAY,EAAA,CAAA;sBADf,KAAK;gBAYF,UAAU,EAAA,CAAA;sBADb,KAAK;gBAWF,WAAW,EAAA,CAAA;sBADd,KAAK;gBAYF,iBAAiB,EAAA,CAAA;sBADpB,KAAK;gBAWF,oBAAoB,EAAA,CAAA;sBADvB,KAAK;gBAYF,gBAAgB,EAAA,CAAA;sBADnB,KAAK;gBAYF,gBAAgB,EAAA,CAAA;sBADnB,KAAK;gBAYF,2BAA2B,EAAA,CAAA;sBAD9B,KAAK;gBAaF,UAAU,EAAA,CAAA;sBADb,KAAK;;;AE3RV;;AAEG;;;;"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { takeUntil } from 'rxjs/operators';
|
|
5
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
6
|
+
import * as i2 from '@angular/material/progress-bar';
|
|
7
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
8
|
+
import { NgIf } from '@angular/common';
|
|
9
|
+
import * as i1 from 'cmat/services/loading';
|
|
10
|
+
|
|
11
|
+
class CmatProgressBarComponent {
|
|
12
|
+
constructor(_cmatLoadingService) {
|
|
13
|
+
this._cmatLoadingService = _cmatLoadingService;
|
|
14
|
+
this.autoMode = true;
|
|
15
|
+
this.progress = 0;
|
|
16
|
+
this.show = false;
|
|
17
|
+
this._unsubscribeAll = new Subject();
|
|
18
|
+
}
|
|
19
|
+
ngOnChanges(changes) {
|
|
20
|
+
// Auto mode
|
|
21
|
+
if ('autoMode' in changes) {
|
|
22
|
+
// Set the auto mode in the service
|
|
23
|
+
this._cmatLoadingService.setAutoMode(coerceBooleanProperty(changes['autoMode'].currentValue));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
ngOnInit() {
|
|
27
|
+
this._cmatLoadingService.mode$
|
|
28
|
+
.pipe(takeUntil(this._unsubscribeAll))
|
|
29
|
+
.subscribe((value) => {
|
|
30
|
+
this.mode = value;
|
|
31
|
+
});
|
|
32
|
+
this._cmatLoadingService.progress$
|
|
33
|
+
.pipe(takeUntil(this._unsubscribeAll))
|
|
34
|
+
.subscribe((value) => {
|
|
35
|
+
this.progress = value;
|
|
36
|
+
});
|
|
37
|
+
this._cmatLoadingService.show$
|
|
38
|
+
.pipe(takeUntil(this._unsubscribeAll))
|
|
39
|
+
.subscribe((value) => {
|
|
40
|
+
this.show = value;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
ngOnDestroy() {
|
|
44
|
+
this._unsubscribeAll.next(null);
|
|
45
|
+
this._unsubscribeAll.complete();
|
|
46
|
+
}
|
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatProgressBarComponent, deps: [{ token: i1.CmatLoadingService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
48
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.0", type: CmatProgressBarComponent, isStandalone: true, selector: "cmat-progress-bar", inputs: { autoMode: "autoMode" }, exportAs: ["cmatProgressBar"], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"show\">\r\n <mat-progress-bar\r\n [mode]=\"mode\"\r\n [value]=\"progress\"></mat-progress-bar>\r\n</ng-container>\r\n", styles: ["cmat-progress-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
49
|
+
}
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.0", ngImport: i0, type: CmatProgressBarComponent, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{ selector: 'cmat-progress-bar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatProgressBar', standalone: true, imports: [NgIf, MatProgressBarModule], template: "<ng-container *ngIf=\"show\">\r\n <mat-progress-bar\r\n [mode]=\"mode\"\r\n [value]=\"progress\"></mat-progress-bar>\r\n</ng-container>\r\n", styles: ["cmat-progress-bar{position:fixed;top:0;z-index:999;width:100%;height:6px}\n"] }]
|
|
53
|
+
}], ctorParameters: () => [{ type: i1.CmatLoadingService }], propDecorators: { autoMode: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}] } });
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Generated bundle index. Do not edit.
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
export { CmatProgressBarComponent };
|
|
62
|
+
//# sourceMappingURL=cmat-components-progress-bar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmat-components-progress-bar.mjs","sources":["../../../projects/cmat/components/progress-bar/progress-bar.component.ts","../../../projects/cmat/components/progress-bar/progress-bar.component.html","../../../projects/cmat/components/progress-bar/cmat-components-progress-bar.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewEncapsulation } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\nimport { takeUntil } from 'rxjs/operators';\r\nimport { CmatLoadingService } from 'cmat/services/loading';\r\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\r\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\r\nimport { NgIf } from '@angular/common';\r\n\r\n@Component({\r\n selector: 'cmat-progress-bar',\r\n templateUrl: './progress-bar.component.html',\r\n styleUrls: ['./progress-bar.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n exportAs: 'cmatProgressBar',\r\n standalone: true,\r\n imports: [NgIf, MatProgressBarModule]\r\n})\r\nexport class CmatProgressBarComponent implements OnChanges, OnInit, OnDestroy {\r\n @Input() autoMode: boolean = true;\r\n mode: 'determinate' | 'indeterminate';\r\n progress: number | null = 0;\r\n show: boolean = false;\r\n private _unsubscribeAll: Subject<any> = new Subject<any>();\r\n\r\n constructor(\r\n private _cmatLoadingService: CmatLoadingService\r\n ) {\r\n\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n // Auto mode\r\n if ('autoMode' in changes) {\r\n // Set the auto mode in the service\r\n this._cmatLoadingService.setAutoMode(coerceBooleanProperty(changes['autoMode'].currentValue));\r\n }\r\n }\r\n\r\n ngOnInit(): void {\r\n this._cmatLoadingService.mode$\r\n .pipe(takeUntil(this._unsubscribeAll))\r\n .subscribe((value) => {\r\n this.mode = value;\r\n });\r\n\r\n this._cmatLoadingService.progress$\r\n .pipe(takeUntil(this._unsubscribeAll))\r\n .subscribe((value) => {\r\n this.progress = value;\r\n });\r\n\r\n this._cmatLoadingService.show$\r\n .pipe(takeUntil(this._unsubscribeAll))\r\n .subscribe((value) => {\r\n this.show = value;\r\n });\r\n\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._unsubscribeAll.next(null);\r\n this._unsubscribeAll.complete();\r\n }\r\n}\r\n","<ng-container *ngIf=\"show\">\r\n <mat-progress-bar\r\n [mode]=\"mode\"\r\n [value]=\"progress\"></mat-prog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