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,146 @@
|
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CmatDatetimepickerFilterType } from './datetimepicker-filtertype';
|
|
3
|
+
import { CmatDatetimeFormats, DatetimeAdapter } from 'cmat/components/adapter';
|
|
4
|
+
import { CmatAMPM, CmatCalendarView, CmatClockView, CmatDatetimepickerType } from './datetimepicker-types';
|
|
5
|
+
import { CmatDatetimepickerIntl } from './datetimepicker-intl';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* A calendar that is used as part of the datepicker.
|
|
9
|
+
*/
|
|
10
|
+
export declare class CmatDatetimepickerCalendarComponent<D> implements AfterContentInit, OnDestroy {
|
|
11
|
+
private _elementRef;
|
|
12
|
+
private _intl;
|
|
13
|
+
private _ngZone;
|
|
14
|
+
private _adapter;
|
|
15
|
+
private _dateFormats;
|
|
16
|
+
userSelection: EventEmitter<void>;
|
|
17
|
+
/** Active multi year view when click on year. */
|
|
18
|
+
multiYearSelector: boolean;
|
|
19
|
+
/** Whether the calendar should be started in month or year view. */
|
|
20
|
+
startView: CmatCalendarView;
|
|
21
|
+
twelvehour: boolean;
|
|
22
|
+
timeInterval: number;
|
|
23
|
+
/** A function used to filter which dates are selectable. */
|
|
24
|
+
dateFilter: (date: D, type: CmatDatetimepickerFilterType) => boolean;
|
|
25
|
+
/** Prevent user to select same date time */
|
|
26
|
+
preventSameDateTimeSelection: boolean;
|
|
27
|
+
/** Emits when the currently selected date changes. */
|
|
28
|
+
selectedChange: EventEmitter<D>;
|
|
29
|
+
/** Emits when the view has been changed. **/
|
|
30
|
+
viewChanged: EventEmitter<CmatCalendarView>;
|
|
31
|
+
class: string;
|
|
32
|
+
label: string;
|
|
33
|
+
role: string;
|
|
34
|
+
tabindex: number;
|
|
35
|
+
AMPM: CmatAMPM;
|
|
36
|
+
clockView: CmatClockView;
|
|
37
|
+
calendarState: string;
|
|
38
|
+
/** Whether the calendar is in month view. */
|
|
39
|
+
private _currentView;
|
|
40
|
+
private _intlChanges;
|
|
41
|
+
private _clampedActiveDate;
|
|
42
|
+
private _type;
|
|
43
|
+
private _startAt;
|
|
44
|
+
private _selected;
|
|
45
|
+
private _minDate;
|
|
46
|
+
private _maxDate;
|
|
47
|
+
private _timeInput;
|
|
48
|
+
constructor(_elementRef: ElementRef, _intl: CmatDatetimepickerIntl, _ngZone: NgZone, _adapter: DatetimeAdapter<D>, _dateFormats: CmatDatetimeFormats, changeDetectorRef: ChangeDetectorRef);
|
|
49
|
+
get type(): CmatDatetimepickerType;
|
|
50
|
+
set type(value: CmatDatetimepickerType);
|
|
51
|
+
/** A date representing the period (month or year) to start the calendar in. */
|
|
52
|
+
get startAt(): D | null;
|
|
53
|
+
set startAt(value: D | null);
|
|
54
|
+
/**
|
|
55
|
+
* Whether the calendar is in time mode. In time mode the calendar clock gets time input elements rather then just clock
|
|
56
|
+
*
|
|
57
|
+
* When touchUi is enabled this will be disabled
|
|
58
|
+
*/
|
|
59
|
+
get timeInput(): boolean;
|
|
60
|
+
set timeInput(value: boolean);
|
|
61
|
+
/** The currently selected date. */
|
|
62
|
+
get selected(): D | null;
|
|
63
|
+
set selected(value: D | null);
|
|
64
|
+
/** The minimum selectable date. */
|
|
65
|
+
get minDate(): D | null;
|
|
66
|
+
set minDate(value: D | null);
|
|
67
|
+
/** The maximum selectable date. */
|
|
68
|
+
get maxDate(): D | null;
|
|
69
|
+
set maxDate(value: D | null);
|
|
70
|
+
/**
|
|
71
|
+
* The current active date. This determines which time period is shown and which date is
|
|
72
|
+
* highlighted when using keyboard navigation.
|
|
73
|
+
*/
|
|
74
|
+
get activeDate(): D;
|
|
75
|
+
set activeDate(value: D);
|
|
76
|
+
get currentView(): CmatCalendarView;
|
|
77
|
+
set currentView(view: CmatCalendarView);
|
|
78
|
+
/** The label for the current calendar view. */
|
|
79
|
+
get yearButtonText(): string;
|
|
80
|
+
get yearPeriodText(): string;
|
|
81
|
+
get yearButtonLabel(): string;
|
|
82
|
+
get dateButtonText(): string;
|
|
83
|
+
get dateButtonLabel(): string;
|
|
84
|
+
get hoursButtonText(): string;
|
|
85
|
+
get hourButtonLabel(): string;
|
|
86
|
+
get minutesButtonText(): string;
|
|
87
|
+
get minuteButtonLabel(): string;
|
|
88
|
+
get prevButtonLabel(): string;
|
|
89
|
+
get nextButtonLabel(): string;
|
|
90
|
+
handleCalendarBodyKeydown(event: KeyboardEvent): void;
|
|
91
|
+
/** Date filter for the month and year views. */
|
|
92
|
+
dateFilterForViews: (date: D) => boolean;
|
|
93
|
+
userSelected(): void;
|
|
94
|
+
ngAfterContentInit(): void;
|
|
95
|
+
ngOnDestroy(): void;
|
|
96
|
+
/** Handles date selection in the month view. */
|
|
97
|
+
dateSelected(date: D): void;
|
|
98
|
+
/** Handles month selection in the year view. */
|
|
99
|
+
monthSelected(month: D): void;
|
|
100
|
+
/** Handles year selection in the multi year view. */
|
|
101
|
+
yearSelected(year: D): void;
|
|
102
|
+
timeSelected(date: D): void;
|
|
103
|
+
dialTimeSelected(date: D): void;
|
|
104
|
+
onActiveDateChange(date: D): void;
|
|
105
|
+
updateDate(date: D): D;
|
|
106
|
+
selectAMPM(date: D): void;
|
|
107
|
+
ampmClicked(source: CmatAMPM): void;
|
|
108
|
+
yearClicked(): void;
|
|
109
|
+
dateClicked(): void;
|
|
110
|
+
hoursClicked(): void;
|
|
111
|
+
minutesClicked(): void;
|
|
112
|
+
/** Handles user clicks on the previous button. */
|
|
113
|
+
previousClicked(): void;
|
|
114
|
+
/** Handles user clicks on the next button. */
|
|
115
|
+
nextClicked(): void;
|
|
116
|
+
/** Whether the previous period button is enabled. */
|
|
117
|
+
previousEnabled(): boolean;
|
|
118
|
+
/** Whether the next period button is enabled. */
|
|
119
|
+
nextEnabled(): boolean;
|
|
120
|
+
focusActiveCell(): void;
|
|
121
|
+
calendarStateDone(): void;
|
|
122
|
+
/** Whether the two dates represent the same view in the current view mode (month or year). */
|
|
123
|
+
private _isSameView;
|
|
124
|
+
/** Handles keydown events on the calendar body when calendar is in month view. */
|
|
125
|
+
private _handleCalendarBodyKeydownInMonthView;
|
|
126
|
+
/** Handles keydown events on the calendar body when calendar is in year view. */
|
|
127
|
+
private _handleCalendarBodyKeydownInYearView;
|
|
128
|
+
/** Handles keydown events on the calendar body when calendar is in multi-year view. */
|
|
129
|
+
private _handleCalendarBodyKeydownInMultiYearView;
|
|
130
|
+
/** Handles keydown events on the calendar body when calendar is in month view. */
|
|
131
|
+
private _handleCalendarBodyKeydownInClockView;
|
|
132
|
+
/**
|
|
133
|
+
* Determine the date for the month that comes before the given month in the same column in the
|
|
134
|
+
* calendar table.
|
|
135
|
+
*/
|
|
136
|
+
private _prevMonthInSameCol;
|
|
137
|
+
/**
|
|
138
|
+
* Determine the date for the month that comes after the given month in the same column in the
|
|
139
|
+
* calendar table.
|
|
140
|
+
*/
|
|
141
|
+
private _nextMonthInSameCol;
|
|
142
|
+
private _changeCalendarState;
|
|
143
|
+
private _2digit;
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerCalendarComponent<any>, [null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
145
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerCalendarComponent<any>, "cmat-datetimepicker-calendar", ["cmatDatetimepickerCalendar"], { "multiYearSelector": { "alias": "multiYearSelector"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "timeInterval": { "alias": "timeInterval"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "preventSameDateTimeSelection": { "alias": "preventSameDateTimeSelection"; "required": false; }; "type": { "alias": "type"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "timeInput": { "alias": "timeInput"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "userSelection": "userSelection"; "selectedChange": "selectedChange"; "viewChanged": "viewChanged"; }, never, never, true, never>;
|
|
146
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
$calendar-padding: 8px !default;
|
|
2
|
+
|
|
3
|
+
// We use the same padding as the month / year label, but subtract 16px since there is padding
|
|
4
|
+
// between the edge of the button and the text. This ensures that the button text lines up with
|
|
5
|
+
// the month / year label text.
|
|
6
|
+
$calendar-controls-side-margin: calc(33% / 7 - 16px);
|
|
7
|
+
|
|
8
|
+
// Values chosen to approximate https://material.io/icons/#ic_navigate_before and
|
|
9
|
+
// https://material.io/icons/#ic_navigate_next as closely as possible.
|
|
10
|
+
$calendar-prev-next-icon-border-width: 2px;
|
|
11
|
+
$calendar-prev-next-icon-margin: 15.5px;
|
|
12
|
+
$calendar-prev-icon-transform: translateX(2px) rotate(-45deg);
|
|
13
|
+
$calendar-next-icon-transform: translateX(-2px) rotate(45deg);
|
|
14
|
+
|
|
15
|
+
@mixin landscape-calendar-header {
|
|
16
|
+
.cmat-datetimepicker-calendar {
|
|
17
|
+
display: flex;
|
|
18
|
+
|
|
19
|
+
.cmat-datetimepicker-calendar-header {
|
|
20
|
+
width: 150px;
|
|
21
|
+
min-width: 150px;
|
|
22
|
+
padding: 16px 8px;
|
|
23
|
+
border-radius: 4px 0 0 4px;
|
|
24
|
+
|
|
25
|
+
[dir='rtl'] & {
|
|
26
|
+
border-radius: 0 4px 4px 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cmat-datetimepicker-calendar-header-year+.cmat-datetimepicker-calendar-header-date-time,
|
|
31
|
+
.cmat-datetimepicker-calendar-header-date+.cmat-datetimepicker-calendar-header-time {
|
|
32
|
+
margin-top: 12px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.cmat-datetimepicker-calendar-header-date-time {
|
|
36
|
+
font-size: 28px;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cmat-datetimepicker-calendar-header-time {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.cmat-datetimepicker-calendar-header-ampm-container {
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
font-size: 24px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.cmat-datetimepicker-calendar-header-ampm {
|
|
51
|
+
padding: 4px;
|
|
52
|
+
|
|
53
|
+
+.cmat-datetimepicker-calendar-header-ampm {
|
|
54
|
+
margin: 0 8px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.cmat-datetimepicker-calendar {
|
|
61
|
+
display: block;
|
|
62
|
+
outline: none;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.cmat-datetimepicker-calendar-header {
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
padding: 8px;
|
|
68
|
+
border-radius: 4px 4px 0 0;
|
|
69
|
+
|
|
70
|
+
.header-button {
|
|
71
|
+
color: white !important;
|
|
72
|
+
padding: 0 4px;
|
|
73
|
+
font-size: inherit;
|
|
74
|
+
white-space: normal;
|
|
75
|
+
word-break: break-word;
|
|
76
|
+
font-weight: 500;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.cmat-datetimepicker-calendar-header-year.header-button {
|
|
82
|
+
font-size: 26px;
|
|
83
|
+
line-height: 24px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.cmat-datetimepicker-calendar-header-date-time {
|
|
87
|
+
font-size: 24px;
|
|
88
|
+
line-height: 36px;
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: row;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.cmat-datetimepicker-calendar-header-year,
|
|
94
|
+
.cmat-datetimepicker-calendar-header-date,
|
|
95
|
+
.cmat-datetimepicker-calendar-header-hours,
|
|
96
|
+
.cmat-datetimepicker-calendar-header-minutes,
|
|
97
|
+
.cmat-datetimepicker-calendar-header-ampm {
|
|
98
|
+
&:not(.active) {
|
|
99
|
+
opacity: .6;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.not-clickable {
|
|
103
|
+
cursor: initial;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.cmat-datetimepicker-calendar-header-time {
|
|
108
|
+
display: inline-flex;
|
|
109
|
+
|
|
110
|
+
&:not(.active) {
|
|
111
|
+
opacity: .6;
|
|
112
|
+
|
|
113
|
+
.cmat-datetimepicker-calendar-header-hours,
|
|
114
|
+
.cmat-datetimepicker-calendar-header-minutes,
|
|
115
|
+
.cmat-datetimepicker-calendar-header-ampm {
|
|
116
|
+
opacity: 1;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.cmat-datetimepicker-calendar-header-hour-minute-separator {
|
|
122
|
+
display: inline-block;
|
|
123
|
+
width: 8px;
|
|
124
|
+
text-align: center;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.cmat-datetimepicker-calendar-header-ampm-container {
|
|
128
|
+
display: inline-flex;
|
|
129
|
+
flex-direction: column;
|
|
130
|
+
line-height: 18px;
|
|
131
|
+
font-size: 12px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
[mode='landscape'] {
|
|
135
|
+
@include landscape-calendar-header;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@media all and (orientation: landscape) {
|
|
139
|
+
[mode='auto'] {
|
|
140
|
+
@include landscape-calendar-header;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.cmat-datetimepicker-calendar-content {
|
|
145
|
+
width: 100%;
|
|
146
|
+
padding: $calendar-padding;
|
|
147
|
+
outline: none;
|
|
148
|
+
box-sizing: border-box;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.cmat-datetimepicker-calendar-controls {
|
|
153
|
+
display: flex;
|
|
154
|
+
justify-content: space-between;
|
|
155
|
+
margin: 0 $calendar-controls-side-margin;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.cmat-datetimepicker-calendar-period-button {
|
|
159
|
+
display: inline-block;
|
|
160
|
+
height: 40px;
|
|
161
|
+
line-height: 40px;
|
|
162
|
+
outline: none;
|
|
163
|
+
border: 0;
|
|
164
|
+
background: transparent;
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.cmat-datetimepicker-calendar-previous-button,
|
|
169
|
+
.cmat-datetimepicker-calendar-next-button {
|
|
170
|
+
&.disabled {
|
|
171
|
+
pointer-events: none;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
svg {
|
|
175
|
+
fill: currentColor;
|
|
176
|
+
vertical-align: top;
|
|
177
|
+
|
|
178
|
+
[dir='rtl'] & {
|
|
179
|
+
transform: rotate(180deg);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.cmat-datetimepicker-calendar-table {
|
|
185
|
+
border-spacing: 0;
|
|
186
|
+
border-collapse: collapse;
|
|
187
|
+
width: 100%;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.cmat-datetimepicker-calendar-table-header th {
|
|
191
|
+
text-align: center;
|
|
192
|
+
padding: $calendar-padding 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { AfterContentInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import { CmatDatetimepickerFilterType } from './datetimepicker-filtertype';
|
|
3
|
+
import { DatetimeAdapter } from 'cmat/components/adapter';
|
|
4
|
+
import { CmatClockView } from './datetimepicker-types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const CLOCK_RADIUS = 50;
|
|
7
|
+
export declare const CLOCK_INNER_RADIUS = 27.5;
|
|
8
|
+
export declare const CLOCK_OUTER_RADIUS = 41.25;
|
|
9
|
+
export declare const CLOCK_TICK_RADIUS = 7.0833;
|
|
10
|
+
/**
|
|
11
|
+
* A clock that is used as part of the datepicker.
|
|
12
|
+
*/
|
|
13
|
+
export declare class CmatDatetimepickerClockComponent<D> implements AfterContentInit {
|
|
14
|
+
private _element;
|
|
15
|
+
private _adapter;
|
|
16
|
+
userSelection: EventEmitter<void>;
|
|
17
|
+
/** A function used to filter which dates are selectable. */
|
|
18
|
+
dateFilter: (date: D, type: CmatDatetimepickerFilterType) => boolean;
|
|
19
|
+
interval: number;
|
|
20
|
+
twelvehour: boolean;
|
|
21
|
+
/** Emits when the currently selected date changes. */
|
|
22
|
+
selectedChange: EventEmitter<D>;
|
|
23
|
+
activeDateChange: EventEmitter<D>;
|
|
24
|
+
role: string;
|
|
25
|
+
class: string;
|
|
26
|
+
/** Hours and Minutes representing the clock view. */
|
|
27
|
+
hours: Array<any>;
|
|
28
|
+
minutes: Array<any>;
|
|
29
|
+
/** Whether the clock is in hour view. */
|
|
30
|
+
hourView: boolean;
|
|
31
|
+
selectedHour: number;
|
|
32
|
+
selectedMinute: number;
|
|
33
|
+
private _timeChanged;
|
|
34
|
+
private _mouseMoveListener;
|
|
35
|
+
private _mouseUpListener;
|
|
36
|
+
private _activeDate;
|
|
37
|
+
private _selected;
|
|
38
|
+
private _minDate;
|
|
39
|
+
private _maxDate;
|
|
40
|
+
constructor(_element: ElementRef, _adapter: DatetimeAdapter<D>);
|
|
41
|
+
/**
|
|
42
|
+
* The date to display in this clock view.
|
|
43
|
+
*/
|
|
44
|
+
get activeDate(): D;
|
|
45
|
+
set activeDate(value: D);
|
|
46
|
+
/** The currently selected date. */
|
|
47
|
+
get selected(): D | null;
|
|
48
|
+
set selected(value: D | null);
|
|
49
|
+
/** The minimum selectable date. */
|
|
50
|
+
get minDate(): D | null;
|
|
51
|
+
set minDate(value: D | null);
|
|
52
|
+
/** The maximum selectable date. */
|
|
53
|
+
get maxDate(): D | null;
|
|
54
|
+
set maxDate(value: D | null);
|
|
55
|
+
/** Whether the clock should be started in hour or minute view. */
|
|
56
|
+
set startView(value: CmatClockView);
|
|
57
|
+
get hand(): any;
|
|
58
|
+
/** Handles mousedown events on the clock body. */
|
|
59
|
+
handleMousedown(event: MouseEvent): void;
|
|
60
|
+
ngAfterContentInit(): void;
|
|
61
|
+
handleMousemove(event: any): void;
|
|
62
|
+
handleMouseup(): void;
|
|
63
|
+
trackByFn(index: number, item: any): any;
|
|
64
|
+
/** Initializes this clock view. */
|
|
65
|
+
private _init;
|
|
66
|
+
/**
|
|
67
|
+
* Set Time
|
|
68
|
+
*
|
|
69
|
+
* @param event
|
|
70
|
+
*/
|
|
71
|
+
private _setTime;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerClockComponent<any>, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerClockComponent<any>, "cmat-datetimepicker-clock", ["cmatDatetimepickerClock"], { "dateFilter": { "alias": "dateFilter"; "required": false; }; "interval": { "alias": "interval"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; }, { "userSelection": "userSelection"; "selectedChange": "selectedChange"; "activeDateChange": "activeDateChange"; }, never, never, true, never>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
$clock-min-size: 224px !default;
|
|
2
|
+
$clock-margin: 12px !default;
|
|
3
|
+
$clock-cell-size: 14.1666% !default;
|
|
4
|
+
|
|
5
|
+
.cmat-datetimepicker-clock {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: block;
|
|
8
|
+
min-width: $clock-min-size;
|
|
9
|
+
margin: $clock-margin;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
user-select: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.cmat-datetimepicker-clock-wrapper {
|
|
15
|
+
position: relative;
|
|
16
|
+
width: 100%;
|
|
17
|
+
height: 0;
|
|
18
|
+
padding-top: 100%;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cmat-datetimepicker-clock-center {
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 50%;
|
|
25
|
+
left: 50%;
|
|
26
|
+
width: 2%;
|
|
27
|
+
height: 2%;
|
|
28
|
+
margin: -1%;
|
|
29
|
+
border-radius: 50%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.cmat-datetimepicker-clock-hand {
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
right: 0;
|
|
36
|
+
bottom: 0;
|
|
37
|
+
left: 0;
|
|
38
|
+
width: 1px;
|
|
39
|
+
margin: 0 auto;
|
|
40
|
+
transform-origin: bottom;
|
|
41
|
+
|
|
42
|
+
&::before {
|
|
43
|
+
content: '';
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: -4px;
|
|
46
|
+
left: -4px;
|
|
47
|
+
width: 8px;
|
|
48
|
+
height: 8px;
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.cmat-datetimepicker-clock-hours,
|
|
54
|
+
.cmat-datetimepicker-clock-minutes {
|
|
55
|
+
position: absolute;
|
|
56
|
+
top: 0;
|
|
57
|
+
left: 0;
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: 100%;
|
|
60
|
+
opacity: 0;
|
|
61
|
+
visibility: hidden;
|
|
62
|
+
transition: 350ms;
|
|
63
|
+
transform: scale(1.2);
|
|
64
|
+
|
|
65
|
+
&.active {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
visibility: visible;
|
|
68
|
+
transform: scale(1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.cmat-datetimepicker-clock-minutes {
|
|
73
|
+
transform: scale(.8);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.cmat-datetimepicker-clock-cell {
|
|
77
|
+
position: absolute;
|
|
78
|
+
display: flex;
|
|
79
|
+
width: $clock-cell-size;
|
|
80
|
+
height: $clock-cell-size;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
border-radius: 50%;
|
|
84
|
+
align-items: center;
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
|
|
87
|
+
&.cmat-datetimepicker-clock-cell-disabled {
|
|
88
|
+
pointer-events: none;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
$calendar-padding: 8px;
|
|
2
|
+
$non-touch-calendar-cell-size: 40px;
|
|
3
|
+
$non-touch-calendar-portrait-width: $non-touch-calendar-cell-size * 7 + $calendar-padding * 2;
|
|
4
|
+
$non-touch-calendar-portrait-height: 424px;
|
|
5
|
+
$non-touch-calendar-landscape-width: 446px;
|
|
6
|
+
$non-touch-calendar-landscape-height: 328px;
|
|
7
|
+
$non-touch-calendar-with-time-input-portrait-height: 490px;
|
|
8
|
+
$non-touch-calendar-with-time-input-landscape-height: 412px;
|
|
9
|
+
|
|
10
|
+
// Ideally the calendar would have a constant aspect ratio, no matter its size, and we would base
|
|
11
|
+
// these measurements off the aspect ratio. Unfortunately, the aspect ratio does change a little as
|
|
12
|
+
// the calendar grows, since some of the elements have pixel-based sizes. These numbers have been
|
|
13
|
+
// chosen to minimize extra whitespace at larger sizes, while still ensuring we won't need
|
|
14
|
+
// scrollbars at smaller sizes.
|
|
15
|
+
$touch-landscape-mode-landscape-width: 120vh;
|
|
16
|
+
$touch-landscape-mode-landscape-height: 80vh;
|
|
17
|
+
$touch-landscape-mode-portrait-width: 90vw;
|
|
18
|
+
$touch-landscape-mode-portrait-height: 64vw;
|
|
19
|
+
$touch-portrait-mode-landscape-width: 64vh;
|
|
20
|
+
$touch-portrait-mode-landscape-height: 90vh;
|
|
21
|
+
$touch-portrait-mode-portrait-width: 80vw;
|
|
22
|
+
$touch-portrait-mode-portrait-height: 120vw;
|
|
23
|
+
$touch-portrait-mode-portrait-height-with-actions: 135vw;
|
|
24
|
+
$touch-min-width: 250px;
|
|
25
|
+
$touch-min-height: 300px;
|
|
26
|
+
$touch-max-width: 750px;
|
|
27
|
+
$touch-max-height: 850px;
|
|
28
|
+
|
|
29
|
+
@mixin landscape-calendar-size {
|
|
30
|
+
.cmat-datetimepicker-calendar {
|
|
31
|
+
width: $non-touch-calendar-landscape-width;
|
|
32
|
+
height: $non-touch-calendar-landscape-height;
|
|
33
|
+
|
|
34
|
+
&.cmat-datetimepicker-calendar-with-time-input {
|
|
35
|
+
height: $non-touch-calendar-with-time-input-landscape-height;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cmat-datetimepicker-content {
|
|
41
|
+
@apply shadow border-slate-300 bg-card dark:bg-black dark:bg-opacity-5 dark:border-slate-500;
|
|
42
|
+
display: block;
|
|
43
|
+
border-radius: 4px;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.cmat-datetimepicker-content-container {
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
|
|
51
|
+
// TODO: Ensures that `cmat-datetimepicker-actions` is pushed to the bottom of the popup.
|
|
52
|
+
justify-content: space-between;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cmat-datetimepicker-content .cmat-calendar {
|
|
56
|
+
width: $non-touch-calendar-portrait-width;
|
|
57
|
+
height: $non-touch-calendar-portrait-height;
|
|
58
|
+
|
|
59
|
+
&.cmat-datetimepicker-calendar-with-time-input {
|
|
60
|
+
height: $non-touch-calendar-with-time-input-portrait-height;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.cmat-datetimepicker-content[mode='landscape'] {
|
|
65
|
+
@include landscape-calendar-size;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@media all and (orientation: landscape) {
|
|
69
|
+
.cmat-datetimepicker-content[mode='auto'] {
|
|
70
|
+
@include landscape-calendar-size;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.cmat-datetimepicker-content-touch {
|
|
75
|
+
display: block;
|
|
76
|
+
max-height: 80vh;
|
|
77
|
+
|
|
78
|
+
// Allows for the screen reader close button to be seen in touch UI mode.
|
|
79
|
+
position: relative;
|
|
80
|
+
|
|
81
|
+
// Prevents the content from jumping around on Windows while the animation is running.
|
|
82
|
+
overflow: visible;
|
|
83
|
+
|
|
84
|
+
.cmat-datetimepicker-content-container {
|
|
85
|
+
min-height: $touch-min-height;
|
|
86
|
+
max-height: $touch-max-height;
|
|
87
|
+
min-width: $touch-min-width;
|
|
88
|
+
max-width: $touch-max-width;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.cmat-datetimepicker-calendar {
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: auto;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media all and (orientation: landscape) {
|
|
98
|
+
.cmat-datetimepicker-content-touch {
|
|
99
|
+
.cmat-datetimepicker-content-container[mode='auto'],
|
|
100
|
+
.cmat-datetimepicker-content-container[mode='landscape'] {
|
|
101
|
+
width: $touch-landscape-mode-landscape-width;
|
|
102
|
+
height: $touch-landscape-mode-landscape-height;
|
|
103
|
+
|
|
104
|
+
.cmat-datetimepicker-calendar {
|
|
105
|
+
width: auto;
|
|
106
|
+
height: 100%;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.cmat-datetimepicker-content-container[mode='portrait'] {
|
|
111
|
+
width: $touch-portrait-mode-landscape-width;
|
|
112
|
+
height: $touch-portrait-mode-landscape-height;
|
|
113
|
+
|
|
114
|
+
.cmat-datetimepicker-calendar {
|
|
115
|
+
width: 100%;
|
|
116
|
+
height: auto;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media all and (orientation: portrait) {
|
|
123
|
+
.cmat-datetimepicker-content-touch {
|
|
124
|
+
.cmat-datetimepicker-content-container[mode='auto'],
|
|
125
|
+
.cmat-datetimepicker-content-container[mode='portrait'] {
|
|
126
|
+
width: $touch-portrait-mode-portrait-width;
|
|
127
|
+
height: $touch-portrait-mode-portrait-height;
|
|
128
|
+
|
|
129
|
+
.cmat-datetimepicker-calendar {
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: auto;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.cmat-datetimepicker-content-container[mode='landscape'] {
|
|
136
|
+
width: $touch-landscape-mode-portrait-width;
|
|
137
|
+
height: $touch-landscape-mode-portrait-height;
|
|
138
|
+
|
|
139
|
+
.cmat-datetimepicker-calendar {
|
|
140
|
+
width: auto;
|
|
141
|
+
height: 100%;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// The content needs to be a bit taller when actions have
|
|
146
|
+
// been projected so that it doesn't have to scroll.
|
|
147
|
+
.cmat-datetimepicker-content-container-with-actions {
|
|
148
|
+
height: $touch-portrait-mode-portrait-height-with-actions;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createMissingDateImplError(provider: string): Error;
|