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
package/README.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class CmatAnimationCurves {
|
|
2
|
+
static standard: string;
|
|
3
|
+
static deceleration: string;
|
|
4
|
+
static acceleration: string;
|
|
5
|
+
static sharp: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class CmatAnimationDurations {
|
|
8
|
+
static complex: string;
|
|
9
|
+
static entering: string;
|
|
10
|
+
static exiting: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const fadeIn: import("@angular/animations").AnimationTriggerMetadata;
|
|
2
|
+
declare const fadeInTop: import("@angular/animations").AnimationTriggerMetadata;
|
|
3
|
+
declare const fadeInBottom: import("@angular/animations").AnimationTriggerMetadata;
|
|
4
|
+
declare const fadeInLeft: import("@angular/animations").AnimationTriggerMetadata;
|
|
5
|
+
declare const fadeInRight: import("@angular/animations").AnimationTriggerMetadata;
|
|
6
|
+
declare const fadeOut: import("@angular/animations").AnimationTriggerMetadata;
|
|
7
|
+
declare const fadeOutTop: import("@angular/animations").AnimationTriggerMetadata;
|
|
8
|
+
declare const fadeOutBottom: import("@angular/animations").AnimationTriggerMetadata;
|
|
9
|
+
declare const fadeOutLeft: import("@angular/animations").AnimationTriggerMetadata;
|
|
10
|
+
declare const fadeOutRight: import("@angular/animations").AnimationTriggerMetadata;
|
|
11
|
+
export { fadeIn, fadeInTop, fadeInBottom, fadeInLeft, fadeInRight, fadeOut, fadeOutTop, fadeOutBottom, fadeOutLeft, fadeOutRight };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cmatAnimations: import("@angular/animations").AnimationTriggerMetadata[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const slideInTop: import("@angular/animations").AnimationTriggerMetadata;
|
|
2
|
+
declare const slideInBottom: import("@angular/animations").AnimationTriggerMetadata;
|
|
3
|
+
declare const slideInLeft: import("@angular/animations").AnimationTriggerMetadata;
|
|
4
|
+
declare const slideInRight: import("@angular/animations").AnimationTriggerMetadata;
|
|
5
|
+
declare const slideOutTop: import("@angular/animations").AnimationTriggerMetadata;
|
|
6
|
+
declare const slideOutBottom: import("@angular/animations").AnimationTriggerMetadata;
|
|
7
|
+
declare const slideOutLeft: import("@angular/animations").AnimationTriggerMetadata;
|
|
8
|
+
declare const slideOutRight: import("@angular/animations").AnimationTriggerMetadata;
|
|
9
|
+
export { slideInTop, slideInBottom, slideInLeft, slideInRight, slideOutTop, slideOutBottom, slideOutLeft, slideOutRight };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { DateAdapter } from '@angular/material/core';
|
|
2
|
+
export declare abstract class DatetimeAdapter<D> extends DateAdapter<D> {
|
|
3
|
+
protected _delegate: DateAdapter<D>;
|
|
4
|
+
constructor(_delegate: DateAdapter<D>);
|
|
5
|
+
getValidDateOrNull(obj: any): D | null;
|
|
6
|
+
compareDatetime(first: D, second: D, respectMinutePart?: boolean): number | boolean;
|
|
7
|
+
sameDatetime(first: D | null, second: D | null): boolean;
|
|
8
|
+
sameYear(first: D, second: D): boolean;
|
|
9
|
+
sameDay(first: D, second: D): boolean;
|
|
10
|
+
sameHour(first: D, second: D): boolean;
|
|
11
|
+
sameMinute(first: D, second: D): boolean;
|
|
12
|
+
sameMonthAndYear(first: D | null, second: D | null): boolean;
|
|
13
|
+
clone(date: D): D;
|
|
14
|
+
addCalendarYears(date: D, years: number): D;
|
|
15
|
+
addCalendarMonths(date: D, months: number): D;
|
|
16
|
+
addCalendarDays(date: D, days: number): D;
|
|
17
|
+
getYear(date: D): number;
|
|
18
|
+
getMonth(date: D): number;
|
|
19
|
+
getDate(date: D): number;
|
|
20
|
+
getDayOfWeek(date: D): number;
|
|
21
|
+
getMonthNames(style: any): string[];
|
|
22
|
+
getDateNames(): string[];
|
|
23
|
+
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
24
|
+
getYearName(date: D): string;
|
|
25
|
+
getFirstDayOfWeek(): number;
|
|
26
|
+
getNumDaysInMonth(date: D): number;
|
|
27
|
+
createDate(year: number, month: number, date: number): D;
|
|
28
|
+
today(): D;
|
|
29
|
+
parse(value: any, parseFormat: any): D | null;
|
|
30
|
+
format(date: D, displayFormat: any): string;
|
|
31
|
+
toIso8601(date: D): string;
|
|
32
|
+
isDateInstance(obj: any): boolean;
|
|
33
|
+
isValid(date: D): boolean;
|
|
34
|
+
invalid(): D;
|
|
35
|
+
clampDate(date: D, min?: D | null, max?: D | null): D;
|
|
36
|
+
abstract getHour(date: D): number;
|
|
37
|
+
abstract getMinute(date: D): number;
|
|
38
|
+
abstract getFirstDateOfMonth(date: D): D;
|
|
39
|
+
abstract isInNextMonth(startDate: D, endDate: D): boolean;
|
|
40
|
+
abstract getHourNames(): string[];
|
|
41
|
+
abstract getMinuteNames(): string[];
|
|
42
|
+
abstract addCalendarHours(date: D, months: number): D;
|
|
43
|
+
abstract addCalendarMinutes(date: D, months: number): D;
|
|
44
|
+
abstract createDatetime(year: number, month: number, date: number, hour: number, minute: number): D;
|
|
45
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
export interface CmatDatetimeFormats {
|
|
3
|
+
parse: {
|
|
4
|
+
dateInput?: any;
|
|
5
|
+
monthInput?: any;
|
|
6
|
+
timeInput?: any;
|
|
7
|
+
datetimeInput?: any;
|
|
8
|
+
yearInput?: any;
|
|
9
|
+
};
|
|
10
|
+
display: {
|
|
11
|
+
dateInput: any;
|
|
12
|
+
monthInput: any;
|
|
13
|
+
timeInput: any;
|
|
14
|
+
datetimeInput: any;
|
|
15
|
+
yearInput: any;
|
|
16
|
+
monthYearLabel: any;
|
|
17
|
+
dateA11yLabel: any;
|
|
18
|
+
monthYearA11yLabel: any;
|
|
19
|
+
popupHeaderDateLabel: any;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const CMAT_DATETIME_FORMATS: InjectionToken<CmatDatetimeFormats>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { DateAdapter } from '@angular/material/core';
|
|
3
|
+
import { Dayjs } from 'dayjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface DayJsDateAdapterOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Turns the use of utc dates on or off.
|
|
8
|
+
* Changing this will change how Angular Material components like DatePicker output dates.
|
|
9
|
+
* {@default false}
|
|
10
|
+
*/
|
|
11
|
+
useUtc?: boolean;
|
|
12
|
+
}
|
|
13
|
+
/** InjectionToken for Dayjs date adapter to configure options. */
|
|
14
|
+
export declare const CMAT_DAYJS_DATE_ADAPTER_OPTIONS: InjectionToken<DayJsDateAdapterOptions>;
|
|
15
|
+
export declare function CMAT_DAYJS_DATE_ADAPTER_OPTIONS_FACTORY(): DayJsDateAdapterOptions;
|
|
16
|
+
export declare class DayjsDateAdapter extends DateAdapter<Dayjs> {
|
|
17
|
+
dateLocale: string;
|
|
18
|
+
private _options?;
|
|
19
|
+
private _localeData;
|
|
20
|
+
constructor(dateLocale: string, _options?: DayJsDateAdapterOptions | undefined);
|
|
21
|
+
private get _shouldUseUtc();
|
|
22
|
+
setLocale(locale: string): void;
|
|
23
|
+
getYear(date: Dayjs): number;
|
|
24
|
+
getMonth(date: Dayjs): number;
|
|
25
|
+
getDate(date: Dayjs): number;
|
|
26
|
+
getDayOfWeek(date: Dayjs): number;
|
|
27
|
+
getMonthNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
28
|
+
getDateNames(): string[];
|
|
29
|
+
getDayOfWeekNames(style: 'long' | 'short' | 'narrow'): string[];
|
|
30
|
+
getYearName(date: Dayjs): string;
|
|
31
|
+
getFirstDayOfWeek(): number;
|
|
32
|
+
getNumDaysInMonth(date: Dayjs): number;
|
|
33
|
+
clone(date: Dayjs): Dayjs;
|
|
34
|
+
createDate(year: number, month: number, date: number): Dayjs;
|
|
35
|
+
today(): Dayjs;
|
|
36
|
+
parse(value: any, parseFormat: string): Dayjs | null;
|
|
37
|
+
format(date: Dayjs, displayFormat: string): string;
|
|
38
|
+
addCalendarYears(date: Dayjs, years: number): Dayjs;
|
|
39
|
+
addCalendarMonths(date: Dayjs, months: number): Dayjs;
|
|
40
|
+
addCalendarDays(date: Dayjs, days: number): Dayjs;
|
|
41
|
+
toIso8601(date: Dayjs): string;
|
|
42
|
+
/**
|
|
43
|
+
* Attempts to deserialize a value to a valid date object. This is different from parsing in that
|
|
44
|
+
* deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
|
|
45
|
+
* string). The default implementation does not allow any deserialization, it simply checks that
|
|
46
|
+
* the given value is already a valid date object or null. The `<mat-datepicker>` will call this
|
|
47
|
+
* method on all of it's `@Input()` properties that accept dates. It is therefore possible to
|
|
48
|
+
* support passing values from your backend directly to these properties by overriding this method
|
|
49
|
+
* to also deserialize the format used by your backend.
|
|
50
|
+
*
|
|
51
|
+
* @param value The value to be deserialized into a date object.
|
|
52
|
+
* @returns The deserialized date object, either a valid date, null if the value can be
|
|
53
|
+
* deserialized into a null date (e.g. the empty string), or an invalid date.
|
|
54
|
+
*/
|
|
55
|
+
deserialize(value: any): Dayjs | null;
|
|
56
|
+
isDateInstance(obj: any): boolean;
|
|
57
|
+
isValid(date: Dayjs): boolean;
|
|
58
|
+
invalid(): Dayjs;
|
|
59
|
+
private _dayJs;
|
|
60
|
+
private _initializeParser;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DayjsDateAdapter, [{ optional: true; }, { optional: true; }]>;
|
|
62
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DayjsDateAdapter>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DateAdapter } from '@angular/material/core';
|
|
2
|
+
import { DatetimeAdapter } from './datetime-adapter';
|
|
3
|
+
import { Dayjs } from 'dayjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DayjsDatetimeAdapter extends DatetimeAdapter<Dayjs> {
|
|
6
|
+
private _localeData;
|
|
7
|
+
constructor(matDateLocale: string, _delegate: DateAdapter<Dayjs>);
|
|
8
|
+
setLocale(locale: string): void;
|
|
9
|
+
getHour(date: Dayjs): number;
|
|
10
|
+
getMinute(date: Dayjs): number;
|
|
11
|
+
isInNextMonth(startDate: Dayjs, endDate: Dayjs): boolean;
|
|
12
|
+
createDatetime(year: number, month: number, date: number, hour: number, minute: number): Dayjs;
|
|
13
|
+
getFirstDateOfMonth(date: Dayjs): Dayjs;
|
|
14
|
+
getHourNames(): string[];
|
|
15
|
+
getMinuteNames(): string[];
|
|
16
|
+
addCalendarHours(date: Dayjs, hours: number): Dayjs;
|
|
17
|
+
addCalendarMinutes(date: Dayjs, minutes: number): Dayjs;
|
|
18
|
+
deserialize(value: any): Dayjs | null;
|
|
19
|
+
private _getDateInNextMonth;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DayjsDatetimeAdapter, [{ optional: true; }, null]>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DayjsDatetimeAdapter>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DateAdapter } from '@angular/material/core';
|
|
2
|
+
import { DatetimeAdapter } from './datetime-adapter';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CNativeDatetimeAdapter extends DatetimeAdapter<Date> {
|
|
5
|
+
constructor(matDateLocale: string, _delegate: DateAdapter<Date>);
|
|
6
|
+
clone(date: Date): Date;
|
|
7
|
+
getHour(date: Date): number;
|
|
8
|
+
getMinute(date: Date): number;
|
|
9
|
+
isInNextMonth(startDate: Date, endDate: Date): boolean;
|
|
10
|
+
createDatetime(year: number, month: number, date: number, hour: number, minute: number): Date;
|
|
11
|
+
getFirstDateOfMonth(date: Date): Date;
|
|
12
|
+
getHourNames(): string[];
|
|
13
|
+
getMinuteNames(): string[];
|
|
14
|
+
addCalendarYears(date: Date, years: number): Date;
|
|
15
|
+
addCalendarMonths(date: Date, months: number): Date;
|
|
16
|
+
addCalendarDays(date: Date, days: number): Date;
|
|
17
|
+
addCalendarHours(date: Date, hours: number): Date;
|
|
18
|
+
addCalendarMinutes(date: Date, minutes: number): Date;
|
|
19
|
+
toIso8601(date: Date): string;
|
|
20
|
+
private _getDateInNextMonth;
|
|
21
|
+
/**
|
|
22
|
+
* Pads a number to make it two digits.
|
|
23
|
+
*
|
|
24
|
+
* @param n The number to pad.
|
|
25
|
+
* @returns The padded number.
|
|
26
|
+
*/
|
|
27
|
+
private _2digit;
|
|
28
|
+
private _createDateWithOverflow;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CNativeDatetimeAdapter, [{ optional: true; }, null]>;
|
|
30
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CNativeDatetimeAdapter>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './datetime-adapter';
|
|
2
|
+
export * from './datetime-formats';
|
|
3
|
+
export * from './native-datetime-adapter';
|
|
4
|
+
export * from './native-datetime-formats';
|
|
5
|
+
export * from './dayjs-datetime-adapter';
|
|
6
|
+
export * from './dayjs-datetime-formats';
|
|
7
|
+
export * from './dayjs-date-adapter';
|
|
8
|
+
export * from './dayjs-date-formats';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* This directive is used to customize the breadcrumb label behavior
|
|
4
|
+
* *cmatBreadcrumbItem directive can be used in the child element of cmat-breadcrumb
|
|
5
|
+
* Usage: refer to the demo - app.component.html
|
|
6
|
+
*/
|
|
7
|
+
export declare class CmatBreadcrumbItemDirective {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatBreadcrumbItemDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatBreadcrumbItemDirective, "[cmatBreadcrumbItem]", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable, Subscription } from 'rxjs';
|
|
3
|
+
import { CmatBreadcrumbDefinition, CmatBreadcrumbService } from './breadcrumb.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CmatBreadcrumbComponent implements OnInit {
|
|
6
|
+
private _breadcrumbService;
|
|
7
|
+
/**
|
|
8
|
+
* Breadcrumb item can be customized with this template
|
|
9
|
+
* Template context is provided label, additional info, first and last indexes
|
|
10
|
+
* Use cases:
|
|
11
|
+
* 1) Add an icon along with label
|
|
12
|
+
* 2) i18n. {{breadcrumb | translate}} or {{breadcrumb | transloco}}
|
|
13
|
+
* 3) Change text case {{breadcrumb | titlecase}}
|
|
14
|
+
*/
|
|
15
|
+
itemTemplate: any;
|
|
16
|
+
/**
|
|
17
|
+
* If true, breadcrumb is auto generated even without any mapping label
|
|
18
|
+
* Default label is same as route segment
|
|
19
|
+
*/
|
|
20
|
+
autoGenerate: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* By default query params will be preserved with breadcrumbs
|
|
23
|
+
*/
|
|
24
|
+
preserveQueryParams: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* By default query fragments will be preserved with breadcrumbs
|
|
27
|
+
*/
|
|
28
|
+
preserveFragment: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* custom class provided by consumer to increase specificity
|
|
31
|
+
* This will benefit to override styles that are conflicting
|
|
32
|
+
*/
|
|
33
|
+
class: string;
|
|
34
|
+
/**
|
|
35
|
+
* anchorTarget = "_blank" makes the breadcrumb link open in a new tab
|
|
36
|
+
*/
|
|
37
|
+
anchorTarget: '_blank' | void;
|
|
38
|
+
subscription: Subscription;
|
|
39
|
+
breadcrumbs$: Observable<CmatBreadcrumbDefinition[]>;
|
|
40
|
+
separatorTemplate: TemplateRef<void> | void;
|
|
41
|
+
private _separator;
|
|
42
|
+
constructor(_breadcrumbService: CmatBreadcrumbService);
|
|
43
|
+
get separator(): string | void;
|
|
44
|
+
/**
|
|
45
|
+
* separator between breadcrumbs, defaults to '/'.
|
|
46
|
+
* User can customize separator either by passing a String or Template
|
|
47
|
+
*
|
|
48
|
+
* String --> Ex: <cmat-breadcrumb separator="-"> </cmat-breadcrumb>
|
|
49
|
+
*
|
|
50
|
+
* Template --> Ex: <cmat-breadcrumb [separator]="separatorTemplate"> </cmat-breadcrumb>
|
|
51
|
+
* <ng-template #separatorTemplate><mat-icon>arrow_right</mat-icon></ng-template>
|
|
52
|
+
*/
|
|
53
|
+
set separator(value: string | TemplateRef<void>);
|
|
54
|
+
ngOnInit(): void;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatBreadcrumbComponent, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatBreadcrumbComponent, "cmat-breadcrumb", ["cmatBreadcrumb"], { "autoGenerate": { "alias": "autoGenerate"; "required": false; }; "preserveQueryParams": { "alias": "preserveQueryParams"; "required": false; }; "preserveFragment": { "alias": "preserveFragment"; "required": false; }; "class": { "alias": "class"; "required": false; }; "anchorTarget": { "alias": "anchorTarget"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; }, {}, ["itemTemplate"], never, true, never>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
cmat-breadcrumb {
|
|
2
|
+
.cmat-breadcrumb-root {
|
|
3
|
+
color: rgba(0, 0, 0, 0.6);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.cmat-breadcrumb-trail {
|
|
7
|
+
color: rgba(0, 0, 0, 0.9);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.cmat-breadcrumb-link {
|
|
11
|
+
@apply flex items-center text-primary whitespace-nowrap no-underline cursor-pointer;
|
|
12
|
+
transition: text-decoration 0.3s;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cmat-breadcrumb-link:hover {
|
|
16
|
+
@apply underline;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { CmatBreadcrumb } from './types/breadcrumb';
|
|
5
|
+
import { CmatBreadcrumbObject } from './types/breadcrumb.config';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export type CmatBreadcrumbDefinition = CmatBreadcrumb & CmatBreadcrumbObject;
|
|
8
|
+
export declare class CmatBreadcrumbService implements OnDestroy {
|
|
9
|
+
private _activatedRoute;
|
|
10
|
+
private _router;
|
|
11
|
+
private _baseHref;
|
|
12
|
+
private _unsubscribeAll;
|
|
13
|
+
/**
|
|
14
|
+
* dynamicBreadcrumbStore holds information about dynamically updated breadcrumbs.
|
|
15
|
+
* Breadcrumbs can be set from anywhere (component, service) in the app.
|
|
16
|
+
* On every breadcrumb update check this store and use the info if available.
|
|
17
|
+
*/
|
|
18
|
+
private _dynamicBreadcrumbStore;
|
|
19
|
+
/**
|
|
20
|
+
* breadcrumbList for the current route
|
|
21
|
+
* When breadcrumb info is changed dynamically, check if the currentBreadcrumbs is effected
|
|
22
|
+
* If effected, update the change and emit a new stream
|
|
23
|
+
*/
|
|
24
|
+
private _currentBreadcrumbs;
|
|
25
|
+
private _previousBreadcrumbs;
|
|
26
|
+
/**
|
|
27
|
+
* Breadcrumbs observable to be subscribed by BreadcrumbComponent
|
|
28
|
+
* Emits on every route change OR dynamic update of breadcrumb
|
|
29
|
+
*/
|
|
30
|
+
private _breadcrumbs;
|
|
31
|
+
constructor(_activatedRoute: ActivatedRoute, _router: Router);
|
|
32
|
+
get breadcrumbs$(): Observable<CmatBreadcrumbDefinition[]>;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Update breadcrumb dynamically
|
|
36
|
+
*
|
|
37
|
+
* key can be a path | alias
|
|
38
|
+
*
|
|
39
|
+
* 1) Using complete route path. route can be passed the same way you define angular routes
|
|
40
|
+
* - path can be passed as 'exact path(routeLink)' or 'path with params(routeRegex)'
|
|
41
|
+
* - update label Ex: set('/mentor', 'Mentor'), set('/mentor/:id', 'Mentor Details')
|
|
42
|
+
* - change visibility Ex: set('/mentor/:id/edit', { skip: true })
|
|
43
|
+
* ------------------------------------------ OR ------------------------------------------
|
|
44
|
+
* 2) Using route alias (prefixed with '@'). alias should be unique for a route
|
|
45
|
+
* - update label Ex: set('@mentor', 'Enabler')
|
|
46
|
+
* - change visibility Ex: set('@mentorEdit', { skip: true })
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
* value can be string | BreadcrumbObject | BreadcrumbFunction
|
|
50
|
+
*/
|
|
51
|
+
set(key: string, breadcrumb: string | CmatBreadcrumbObject): void;
|
|
52
|
+
/**
|
|
53
|
+
* Whenever route changes build breadcrumb list again
|
|
54
|
+
*/
|
|
55
|
+
private _detectRouteChanges;
|
|
56
|
+
private _setupBreadcrumbs;
|
|
57
|
+
private _getRootBreadcrumb;
|
|
58
|
+
private _prepareBreadcrumbItem;
|
|
59
|
+
private _prepareBreadcrumbList;
|
|
60
|
+
private _getFromStore;
|
|
61
|
+
/**
|
|
62
|
+
* use exact match instead of regexp.test
|
|
63
|
+
* for /mentor/[^/]+ we should match '/mentor/12' but not '/mentor/12/abc'
|
|
64
|
+
*/
|
|
65
|
+
private _matchRegex;
|
|
66
|
+
/**
|
|
67
|
+
* if the path segment has route params, read the param value from url
|
|
68
|
+
* for each segment of route this gets called
|
|
69
|
+
*
|
|
70
|
+
* for mentor/:id/view - it gets called with mentor, :id, view 3 times
|
|
71
|
+
*/
|
|
72
|
+
private _resolvePathSegment;
|
|
73
|
+
/**
|
|
74
|
+
* queryParams & fragments for previous breadcrumb path are copied over to new list
|
|
75
|
+
*/
|
|
76
|
+
private _getQueryParamsFromPreviousList;
|
|
77
|
+
/**
|
|
78
|
+
* set current activated route query params to the last breadcrumb item
|
|
79
|
+
*/
|
|
80
|
+
private _setQueryParamsForActiveBreadcrumb;
|
|
81
|
+
/**
|
|
82
|
+
* For a specific route, breadcrumb can be defined either on parent OR it's child(which has empty path)
|
|
83
|
+
* When both are defined, child takes precedence
|
|
84
|
+
*
|
|
85
|
+
* Ex: Below we are setting breadcrumb on both parent and child.
|
|
86
|
+
* So, child takes precedence and "Defined On Child" is displayed for the route 'home'
|
|
87
|
+
* { path: 'home', loadChildren: './home/home.module#HomeModule' , data: {breadcrumb: "Defined On Module"}}
|
|
88
|
+
* AND
|
|
89
|
+
* children: [
|
|
90
|
+
* { path: '', component: ShowUserComponent, data: {breadcrumb: "Defined On Child" }
|
|
91
|
+
* ]
|
|
92
|
+
*/
|
|
93
|
+
private _parseRouteData;
|
|
94
|
+
/**
|
|
95
|
+
* get empty children of a module or Component. Empty child is the one with path: ''
|
|
96
|
+
* When parent and it's children (that has empty route path) define data merge them both with child taking precedence
|
|
97
|
+
*/
|
|
98
|
+
private _mergeWithBaseChildData;
|
|
99
|
+
/**
|
|
100
|
+
* Update the store to reuse for dynamic declarations
|
|
101
|
+
* If the store already has this route definition update it, else add
|
|
102
|
+
*/
|
|
103
|
+
private _updateStore;
|
|
104
|
+
/**
|
|
105
|
+
* If breadcrumb is present in current breadcrumbs update it and emit new stream
|
|
106
|
+
*/
|
|
107
|
+
private _updateCurrentBreadcrumbs;
|
|
108
|
+
/**
|
|
109
|
+
* For a route with path param, we create regex dynamically from angular route syntax
|
|
110
|
+
* '/mentor/:id' becomes '/mentor/[^/]',
|
|
111
|
+
* breadcrumbService.set('/mentor/:id', 'Uday') should update 'Uday' as label for '/mentor/2' OR 'mentor/ada'
|
|
112
|
+
*/
|
|
113
|
+
private _buildRegex;
|
|
114
|
+
private _ensureLeadingSlash;
|
|
115
|
+
/**
|
|
116
|
+
* In App's RouteConfig, breadcrumb can be defined as a string OR a function OR an object
|
|
117
|
+
*
|
|
118
|
+
* string: simple static breadcrumb label for a path
|
|
119
|
+
* function: callback that gets invoked with resolved path param
|
|
120
|
+
* object: additional data defined along with breadcrumb label that gets passed to *cmatBreadcrumbItem directive
|
|
121
|
+
*/
|
|
122
|
+
private _extractLabel;
|
|
123
|
+
private _extractObject;
|
|
124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatBreadcrumbService, never>;
|
|
125
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatBreadcrumbService>;
|
|
126
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { CmatBreadcrumb } from './breadcrumb';
|
|
2
|
+
/**
|
|
3
|
+
* Breadcrumb config provided as part of App Route Config
|
|
4
|
+
*/
|
|
5
|
+
export interface CmatBreadcrumbObject {
|
|
6
|
+
/**
|
|
7
|
+
* breadcrumb label for a route
|
|
8
|
+
*/
|
|
9
|
+
label?: string | CmatBreadcrumbFunction;
|
|
10
|
+
/**
|
|
11
|
+
* unique alias name for a route path that can be used to dynamically update a route's breadcrumb label via breadcrumbService.set()
|
|
12
|
+
*/
|
|
13
|
+
alias?: string;
|
|
14
|
+
/**
|
|
15
|
+
* hide or show the breadcrumb item
|
|
16
|
+
*/
|
|
17
|
+
skip?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* disable a certain breadcrumb in the list. Not clickable.
|
|
20
|
+
* It may be needed when the routing has the path, but navigating to that path is of no use
|
|
21
|
+
*/
|
|
22
|
+
disable?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* custom data for each breadcrumb that is passed back to ng-template
|
|
25
|
+
*/
|
|
26
|
+
info?: unknown;
|
|
27
|
+
/**
|
|
28
|
+
* Interceptor for breadcrumb click action that returns the dynamic path
|
|
29
|
+
* Consumers can change the breadcrumb routing dynamically with this approach
|
|
30
|
+
*/
|
|
31
|
+
routeInterceptor?: (breadcrumb: CmatBreadcrumb, routeLink?: string) => string;
|
|
32
|
+
}
|
|
33
|
+
export type CmatBreadcrumbFunction = (resolvedLabel?: string) => string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface CmatBreadcrumb {
|
|
2
|
+
/**
|
|
3
|
+
* actual route path with resolved param. Ex /mentor/2, connect/edit
|
|
4
|
+
*/
|
|
5
|
+
routeLink?: string;
|
|
6
|
+
/**
|
|
7
|
+
* route with path params converted to a RegExp
|
|
8
|
+
* path '/mentor/:id' becomes routeRegex '/mentor/[^/]+', which can be matched against when needed
|
|
9
|
+
*/
|
|
10
|
+
routeRegex?: string;
|
|
11
|
+
/**
|
|
12
|
+
* This is additional info on each breadcrumb item whether label is auto generated or user specified
|
|
13
|
+
* isAutoGeneratedLabel has to be present at component level but not at the service,
|
|
14
|
+
* since we may need to support multiple breadcrumb components in same app
|
|
15
|
+
*/
|
|
16
|
+
isAutoGeneratedLabel?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Query params in string form.
|
|
19
|
+
*/
|
|
20
|
+
queryParams?: any;
|
|
21
|
+
fragment?: string;
|
|
22
|
+
routeInterceptor?: (breadcrumb: CmatBreadcrumb, routeLink?: string) => string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { CmatCardFace } from './card.types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CmatCardComponent implements OnChanges {
|
|
6
|
+
static ngAcceptInputType_expanded: BooleanInput;
|
|
7
|
+
static ngAcceptInputType_flippable: BooleanInput;
|
|
8
|
+
expanded: boolean;
|
|
9
|
+
face: CmatCardFace;
|
|
10
|
+
flippable: boolean;
|
|
11
|
+
get classList(): any;
|
|
12
|
+
/**
|
|
13
|
+
* On changes
|
|
14
|
+
*
|
|
15
|
+
* @param changes
|
|
16
|
+
*/
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatCardComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatCardComponent, "cmat-card", ["cmatCard"], { "expanded": { "alias": "expanded"; "required": false; }; "face": { "alias": "face"; "required": false; }; "flippable": { "alias": "flippable"; "required": false; }; }, {}, never, ["[cmatCardFront]", "[cmatCardBack]", "*", "[cmatCardExpansion]"], true, never>;
|
|
20
|
+
}
|