cmat 0.0.28 → 0.0.29
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/animations/index.d.ts +5 -5
- package/components/adapter/index.d.ts +188 -5
- package/components/breadcrumb/index.d.ts +245 -3
- package/components/card/index.d.ts +20 -5
- package/components/carousel/index.d.ts +177 -5
- package/components/cascade/index.d.ts +102 -5
- package/components/chip-input/index.d.ts +65 -5
- package/components/custom-formly/index.d.ts +677 -5
- package/components/date-range/index.d.ts +140 -5
- package/components/drawer/index.d.ts +105 -5
- package/components/fullscreen/index.d.ts +14 -5
- package/components/highlight/index.d.ts +30 -5
- package/components/image-viewer/index.d.ts +79 -5
- package/components/json-editor/index.d.ts +28 -5
- package/components/knob-input/index.d.ts +98 -5
- package/components/masonry/index.d.ts +16 -5
- package/components/material-color-picker/index.d.ts +46 -5
- package/components/material-datetimepicker/index.d.ts +756 -3
- package/components/navigation/index.d.ts +320 -5
- package/components/opt-input/index.d.ts +87 -5
- package/components/org-chart/index.d.ts +38 -5
- package/components/pagination/index.d.ts +122 -5
- package/components/password-strength/index.d.ts +92 -5
- package/components/popover/index.d.ts +292 -3
- package/components/progress-bar/index.d.ts +21 -5
- package/components/rating/index.d.ts +61 -5
- package/components/select-search/index.d.ts +109 -5
- package/components/select-table/index.d.ts +120 -5
- package/components/select-tree/index.d.ts +119 -5
- package/components/speed-dial/index.d.ts +67 -5
- package/components/timeline/index.d.ts +57 -5
- package/components/toast/index.d.ts +86 -5
- package/components/transfer-picker/index.d.ts +189 -3
- package/components/treetable/index.d.ts +44 -5
- package/components/upload/index.d.ts +115 -5
- package/components/x6-angular-shape/index.d.ts +43 -5
- package/directives/animate-on-scroll/index.d.ts +45 -5
- package/directives/arrow-cursor/index.d.ts +34 -5
- package/directives/autofocus/index.d.ts +11 -5
- package/directives/data-exporter/index.d.ts +54 -5
- package/directives/debounce/index.d.ts +32 -5
- package/directives/digit-only/index.d.ts +54 -5
- package/directives/equal-validator/index.d.ts +15 -5
- package/fesm2022/cmat-components-adapter.mjs +9 -9
- package/fesm2022/cmat-components-breadcrumb.mjs +9 -9
- package/fesm2022/cmat-components-card.mjs +3 -3
- package/fesm2022/cmat-components-carousel.mjs +21 -23
- package/fesm2022/cmat-components-carousel.mjs.map +1 -1
- package/fesm2022/cmat-components-cascade.mjs +9 -9
- package/fesm2022/cmat-components-cascade.mjs.map +1 -1
- package/fesm2022/cmat-components-chip-input.mjs +4 -4
- package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +96 -96
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-date-range.mjs +5 -5
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +6 -6
- package/fesm2022/cmat-components-fullscreen.mjs +5 -5
- package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
- package/fesm2022/cmat-components-highlight.mjs +6 -6
- package/fesm2022/cmat-components-image-viewer.mjs +5 -5
- package/fesm2022/cmat-components-image-viewer.mjs.map +1 -1
- package/fesm2022/cmat-components-json-editor.mjs +3 -3
- package/fesm2022/cmat-components-knob-input.mjs +5 -5
- package/fesm2022/cmat-components-knob-input.mjs.map +1 -1
- package/fesm2022/cmat-components-masonry.mjs +3 -3
- package/fesm2022/cmat-components-material-color-picker.mjs +3 -3
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs +45 -47
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
- package/fesm2022/cmat-components-navigation.mjs +46 -46
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-opt-input.mjs +7 -7
- package/fesm2022/cmat-components-opt-input.mjs.map +1 -1
- package/fesm2022/cmat-components-org-chart.mjs +9 -9
- package/fesm2022/cmat-components-org-chart.mjs.map +1 -1
- package/fesm2022/cmat-components-pagination.mjs +14 -18
- package/fesm2022/cmat-components-pagination.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs +15 -15
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
- package/fesm2022/cmat-components-popover.mjs +9 -9
- package/fesm2022/cmat-components-progress-bar.mjs +3 -3
- package/fesm2022/cmat-components-rating.mjs +3 -3
- package/fesm2022/cmat-components-select-search.mjs +10 -10
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-select-table.mjs +3 -3
- package/fesm2022/cmat-components-select-tree.mjs +3 -3
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-speed-dial.mjs +13 -16
- package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
- package/fesm2022/cmat-components-timeline.mjs +12 -12
- package/fesm2022/cmat-components-toast.mjs +9 -9
- package/fesm2022/cmat-components-transfer-picker.mjs +20 -20
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-treetable.mjs +6 -6
- package/fesm2022/cmat-components-treetable.mjs.map +1 -1
- package/fesm2022/cmat-components-upload.mjs +10 -10
- package/fesm2022/cmat-components-upload.mjs.map +1 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +6 -6
- package/fesm2022/cmat-directives-arrow-cursor.mjs +4 -5
- package/fesm2022/cmat-directives-arrow-cursor.mjs.map +1 -1
- package/fesm2022/cmat-directives-autofocus.mjs +3 -3
- package/fesm2022/cmat-directives-data-exporter.mjs +22 -24
- package/fesm2022/cmat-directives-data-exporter.mjs.map +1 -1
- package/fesm2022/cmat-directives-debounce.mjs +9 -9
- package/fesm2022/cmat-directives-digit-only.mjs +6 -6
- package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
- package/fesm2022/cmat-lib-mock-api.mjs +6 -6
- package/fesm2022/cmat-pipes-bytes.mjs +3 -3
- package/fesm2022/cmat-pipes-date-format.mjs +3 -3
- package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
- package/fesm2022/cmat-pipes-group-by.mjs +3 -3
- package/fesm2022/cmat-pipes-keys.mjs +3 -3
- package/fesm2022/cmat-pipes-secure.mjs +3 -3
- package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
- package/fesm2022/cmat-services-alert.mjs +7 -16
- package/fesm2022/cmat-services-alert.mjs.map +1 -1
- package/fesm2022/cmat-services-config.mjs +6 -6
- package/fesm2022/cmat-services-confirmation.mjs +6 -6
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
- package/fesm2022/cmat-services-data.mjs +3 -3
- package/fesm2022/cmat-services-export-as.mjs +3 -3
- package/fesm2022/cmat-services-loading.mjs +6 -6
- package/fesm2022/cmat-services-local-storage.mjs +3 -3
- package/fesm2022/cmat-services-media-watcher.mjs +3 -3
- package/fesm2022/cmat-services-platform.mjs +3 -3
- package/fesm2022/cmat-services-splash-screen.mjs +4 -5
- package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
- package/fesm2022/cmat-services-title.mjs +3 -3
- package/fesm2022/cmat-services-translation.mjs +3 -3
- package/fesm2022/cmat-services-utils.mjs +5 -5
- package/fesm2022/cmat-services-utils.mjs.map +1 -1
- package/index.d.ts +2 -5
- package/lib/mock-api/index.d.ts +61 -5
- package/package.json +51 -51
- package/pipes/bytes/index.d.ts +10 -5
- package/pipes/date-format/index.d.ts +10 -5
- package/pipes/find-by-key/index.d.ts +10 -5
- package/pipes/group-by/index.d.ts +10 -5
- package/pipes/keys/index.d.ts +10 -5
- package/pipes/secure/index.d.ts +21 -5
- package/pipes/uppercase/index.d.ts +10 -5
- package/services/alert/index.d.ts +69 -5
- package/services/config/index.d.ts +30 -5
- package/services/confirmation/index.d.ts +44 -5
- package/services/data/index.d.ts +23 -5
- package/services/export-as/index.d.ts +55 -5
- package/services/loading/index.d.ts +36 -5
- package/services/local-storage/index.d.ts +11 -5
- package/services/media-watcher/index.d.ts +23 -5
- package/services/platform/index.d.ts +12 -5
- package/services/splash-screen/index.d.ts +17 -5
- package/services/title/index.d.ts +16 -5
- package/services/translation/index.d.ts +23 -5
- package/services/utils/index.d.ts +63 -5
- package/styles/themes.scss +2 -1
- package/validators/index.d.ts +8 -5
- package/version/index.d.ts +11 -5
- package/animations/defaults.d.ts +0 -11
- package/animations/dropdown.d.ts +0 -2
- package/animations/expand-collapse.d.ts +0 -2
- package/animations/fade.d.ts +0 -11
- package/animations/public-api.d.ts +0 -1
- package/animations/shake.d.ts +0 -2
- package/animations/slide.d.ts +0 -9
- package/animations/transform.d.ts +0 -2
- package/animations/zoom.d.ts +0 -3
- package/components/adapter/datetime-adapter.d.ts +0 -45
- package/components/adapter/datetime-formats.d.ts +0 -22
- package/components/adapter/dayjs-date-adapter.d.ts +0 -63
- package/components/adapter/dayjs-date-formats.d.ts +0 -2
- package/components/adapter/dayjs-datetime-adapter.d.ts +0 -22
- package/components/adapter/dayjs-datetime-formats.d.ts +0 -2
- package/components/adapter/native-datetime-adapter.d.ts +0 -31
- package/components/adapter/native-datetime-formats.d.ts +0 -2
- package/components/adapter/public-api.d.ts +0 -8
- package/components/breadcrumb/breadcrumb-item.directive.d.ts +0 -10
- package/components/breadcrumb/breadcrumb.component.d.ts +0 -55
- package/components/breadcrumb/breadcrumb.service.d.ts +0 -126
- package/components/breadcrumb/public-api.d.ts +0 -5
- package/components/breadcrumb/types/breadcrumb.config.d.ts +0 -33
- package/components/breadcrumb/types/breadcrumb.d.ts +0 -23
- package/components/card/card.component.d.ts +0 -15
- package/components/card/card.types.d.ts +0 -1
- package/components/card/public-api.d.ts +0 -2
- package/components/carousel/carousel.component.d.ts +0 -136
- package/components/carousel/carousel.interface.d.ts +0 -38
- package/components/carousel/public-api.d.ts +0 -2
- package/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.d.ts +0 -13
- package/components/cascade/cascade-list/cascade-list.component.d.ts +0 -79
- package/components/cascade/cascade-menu/cascade-menu.component.d.ts +0 -8
- package/components/cascade/options.interface.d.ts +0 -8
- package/components/cascade/public-api.d.ts +0 -3
- package/components/chip-input/chip-input.component.d.ts +0 -62
- package/components/chip-input/public-api.d.ts +0 -1
- package/components/custom-formly/extension/addons.extension.d.ts +0 -2
- package/components/custom-formly/public-api.d.ts +0 -30
- package/components/custom-formly/types/button/button.component.d.ts +0 -34
- package/components/custom-formly/types/cascade/cascade.component.d.ts +0 -39
- package/components/custom-formly/types/checklist/checklist.component.d.ts +0 -42
- package/components/custom-formly/types/chips/chips.component.d.ts +0 -28
- package/components/custom-formly/types/color-picker/color-picker.component.d.ts +0 -7
- package/components/custom-formly/types/date-range/date-range.component.d.ts +0 -21
- package/components/custom-formly/types/datepicker/datepicker.component.d.ts +0 -42
- package/components/custom-formly/types/knob/knob.component.d.ts +0 -36
- package/components/custom-formly/types/multicheckbox/multicheckbox.component.d.ts +0 -44
- package/components/custom-formly/types/number/number.component.d.ts +0 -21
- package/components/custom-formly/types/quill/quill.component.d.ts +0 -43
- package/components/custom-formly/types/radio/radio.component.d.ts +0 -44
- package/components/custom-formly/types/rating/rating.component.d.ts +0 -25
- package/components/custom-formly/types/repeat/repeat.component.d.ts +0 -16
- package/components/custom-formly/types/select/select.component.d.ts +0 -54
- package/components/custom-formly/types/select-table/select-table.component.d.ts +0 -40
- package/components/custom-formly/types/select-tree/select-tree.component.d.ts +0 -43
- package/components/custom-formly/types/stepper/horizontal/stepper.component.d.ts +0 -8
- package/components/custom-formly/types/stepper/stepper.type.d.ts +0 -6
- package/components/custom-formly/types/stepper/vertical/stepper.component.d.ts +0 -8
- package/components/custom-formly/types/table/table.component.d.ts +0 -43
- package/components/custom-formly/types/tabs/tab.component.d.ts +0 -7
- package/components/custom-formly/types/tags/tags.component.d.ts +0 -41
- package/components/custom-formly/types/textarea/textarea.component.d.ts +0 -13
- package/components/custom-formly/types/upload/upload.component.d.ts +0 -32
- package/components/custom-formly/wrappers/addons/addons.component.d.ts +0 -10
- package/components/custom-formly/wrappers/card/card.component.d.ts +0 -6
- package/components/custom-formly/wrappers/expansion/expansion.component.d.ts +0 -6
- package/components/custom-formly/wrappers/form-field/form-field.component.d.ts +0 -25
- package/components/custom-formly/wrappers/panel/panel.component.d.ts +0 -6
- package/components/date-range/date-range.component.d.ts +0 -137
- package/components/date-range/public-api.d.ts +0 -1
- package/components/drawer/drawer.component.d.ts +0 -75
- package/components/drawer/drawer.service.d.ts +0 -26
- package/components/drawer/drawer.types.d.ts +0 -2
- package/components/drawer/public-api.d.ts +0 -3
- package/components/fullscreen/fullscreen.component.d.ts +0 -11
- package/components/fullscreen/public-api.d.ts +0 -1
- package/components/highlight/highlight.component.d.ts +0 -21
- package/components/highlight/highlight.service.d.ts +0 -7
- package/components/highlight/public-api.d.ts +0 -2
- package/components/image-viewer/image-viewer.component.d.ts +0 -76
- package/components/image-viewer/public-api.d.ts +0 -1
- package/components/json-editor/json-editor.component.d.ts +0 -25
- package/components/json-editor/public-api.d.ts +0 -1
- package/components/knob-input/knob-input.component.d.ts +0 -95
- package/components/knob-input/public-api.d.ts +0 -1
- package/components/masonry/masonry.component.d.ts +0 -13
- package/components/masonry/public-api.d.ts +0 -1
- package/components/material-color-picker/base-color.d.ts +0 -2
- package/components/material-color-picker/material-color-picker.component.d.ts +0 -38
- package/components/material-color-picker/public-api.d.ts +0 -2
- package/components/material-color-picker/selected-color.d.ts +0 -5
- package/components/material-datetimepicker/calendar-body.d.ts +0 -42
- package/components/material-datetimepicker/calendar.d.ts +0 -145
- package/components/material-datetimepicker/clock.d.ts +0 -73
- package/components/material-datetimepicker/datetimepicker-animations.d.ts +0 -4
- package/components/material-datetimepicker/datetimepicker-errors.d.ts +0 -1
- package/components/material-datetimepicker/datetimepicker-filtertype.d.ts +0 -5
- package/components/material-datetimepicker/datetimepicker-input.d.ts +0 -106
- package/components/material-datetimepicker/datetimepicker-intl.d.ts +0 -51
- package/components/material-datetimepicker/datetimepicker-toggle.d.ts +0 -40
- package/components/material-datetimepicker/datetimepicker-types.d.ts +0 -13
- package/components/material-datetimepicker/datetimepicker.d.ts +0 -190
- package/components/material-datetimepicker/month-view.d.ts +0 -62
- package/components/material-datetimepicker/multi-year-view.d.ts +0 -74
- package/components/material-datetimepicker/public-api.d.ts +0 -10
- package/components/material-datetimepicker/time.d.ts +0 -129
- package/components/material-datetimepicker/year-view.d.ts +0 -56
- package/components/navigation/horizontal/components/basic/basic.component.d.ts +0 -27
- package/components/navigation/horizontal/components/branch/branch.component.d.ts +0 -39
- package/components/navigation/horizontal/components/divider/divider.component.d.ts +0 -23
- package/components/navigation/horizontal/components/spacer/spacer.component.d.ts +0 -23
- package/components/navigation/horizontal/horizontal.component.d.ts +0 -43
- package/components/navigation/navigation.service.d.ts +0 -71
- package/components/navigation/navigation.types.d.ts +0 -34
- package/components/navigation/public-api.d.ts +0 -4
- package/components/navigation/vertical/components/aside/aside.component.d.ts +0 -63
- package/components/navigation/vertical/components/basic/basic.component.d.ts +0 -24
- package/components/navigation/vertical/components/collapsable/collapsable.component.d.ts +0 -74
- package/components/navigation/vertical/components/divider/divider.component.d.ts +0 -26
- package/components/navigation/vertical/components/group/group.component.d.ts +0 -36
- package/components/navigation/vertical/components/spacer/spacer.component.d.ts +0 -26
- package/components/navigation/vertical/vertical.component.d.ts +0 -176
- package/components/opt-input/models/config.d.ts +0 -14
- package/components/opt-input/otp-input.component.d.ts +0 -70
- package/components/opt-input/public-api.d.ts +0 -1
- package/components/opt-input/utils/keyboard-util.d.ts +0 -9
- package/components/opt-input/utils/object-util.d.ts +0 -3
- package/components/org-chart/designer/chart-designer.component.d.ts +0 -17
- package/components/org-chart/node/chart-node.component.d.ts +0 -17
- package/components/org-chart/node/node.type.d.ts +0 -22
- package/components/org-chart/org-chart.component.d.ts +0 -12
- package/components/org-chart/public-api.d.ts +0 -2
- package/components/pagination/pagination.component.d.ts +0 -23
- package/components/pagination/pagination.directive.d.ts +0 -40
- package/components/pagination/pagination.instance.d.ts +0 -11
- package/components/pagination/pagination.pipe.d.ts +0 -29
- package/components/pagination/pagination.service.d.ts +0 -20
- package/components/pagination/public-api.d.ts +0 -5
- package/components/password-strength/animations/index.d.ts +0 -4
- package/components/password-strength/enum.d.ts +0 -13
- package/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.d.ts +0 -11
- package/components/password-strength/mat-password-strength/mat-password-strength.component.d.ts +0 -52
- package/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.d.ts +0 -16
- package/components/password-strength/mat-password-strength-validator.d.ts +0 -6
- package/components/password-strength/public-api.d.ts +0 -3
- package/components/password-strength/regexp.class.d.ts +0 -6
- package/components/popover/popover-trigger.d.ts +0 -121
- package/components/popover/popover.component.d.ts +0 -136
- package/components/popover/popover.errors.d.ts +0 -14
- package/components/popover/popover.interfaces.d.ts +0 -43
- package/components/popover/popover.target.d.ts +0 -8
- package/components/popover/popover.type.d.ts +0 -5
- package/components/popover/public-api.d.ts +0 -4
- package/components/progress-bar/progress-bar.component.d.ts +0 -18
- package/components/progress-bar/public-api.d.ts +0 -1
- package/components/rating/public-api.d.ts +0 -1
- package/components/rating/rating.component.d.ts +0 -58
- package/components/select-search/default-options.d.ts +0 -8
- package/components/select-search/public-api.d.ts +0 -2
- package/components/select-search/select-no-entries-found.directive.d.ts +0 -5
- package/components/select-search/select-search-clear.directive.d.ts +0 -5
- package/components/select-search/select-search.component.d.ts +0 -91
- package/components/select-table/public-api.d.ts +0 -2
- package/components/select-table/select-table.component.d.ts +0 -96
- package/components/select-table/select-table.type.d.ts +0 -20
- package/components/select-tree/public-api.d.ts +0 -3
- package/components/select-tree/select-tree.component.d.ts +0 -105
- package/components/select-tree/select-tree.flatnode.d.ts +0 -6
- package/components/select-tree/select-tree.node.d.ts +0 -5
- package/components/speed-dial/public-api.d.ts +0 -2
- package/components/speed-dial/speed-dial.component.d.ts +0 -63
- package/components/timeline/public-api.d.ts +0 -2
- package/components/timeline/timeline-item/timeline-item.component.d.ts +0 -25
- package/components/timeline/timeline.component.d.ts +0 -30
- package/components/toast/models/global-config.model.d.ts +0 -12
- package/components/toast/models/toast.model.d.ts +0 -6
- package/components/toast/models/type.model.d.ts +0 -12
- package/components/toast/public-api.d.ts +0 -6
- package/components/toast/toast-modal.component.d.ts +0 -18
- package/components/toast/toast.component.d.ts +0 -17
- package/components/toast/toast.service.d.ts +0 -26
- package/components/transfer-picker/filter/filter.component.d.ts +0 -23
- package/components/transfer-picker/interface.d.ts +0 -41
- package/components/transfer-picker/public-api.d.ts +0 -7
- package/components/transfer-picker/search/search.component.d.ts +0 -14
- package/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.d.ts +0 -51
- package/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.d.ts +0 -11
- package/components/transfer-picker/transfer-picker.component.d.ts +0 -28
- package/components/transfer-picker/transfer-picker.service.d.ts +0 -32
- package/components/treetable/public-api.d.ts +0 -2
- package/components/treetable/treetable.component.d.ts +0 -32
- package/components/treetable/treetable.interface.d.ts +0 -9
- package/components/upload/files.type.d.ts +0 -22
- package/components/upload/files.util.service.d.ts +0 -20
- package/components/upload/public-api.d.ts +0 -4
- package/components/upload/upload-queue/upload-queue.component.d.ts +0 -40
- package/components/upload/upload.component.d.ts +0 -32
- package/components/x6-angular-shape/node.d.ts +0 -11
- package/components/x6-angular-shape/public-api.d.ts +0 -3
- package/components/x6-angular-shape/registry.d.ts +0 -13
- package/components/x6-angular-shape/view.d.ts +0 -16
- package/directives/animate-on-scroll/animate-on-scroll.directive.d.ts +0 -29
- package/directives/animate-on-scroll/public-api.d.ts +0 -1
- package/directives/animate-on-scroll/scroll.service.d.ts +0 -15
- package/directives/arrow-cursor/arrow-cursor.directive.d.ts +0 -31
- package/directives/arrow-cursor/public-api.d.ts +0 -1
- package/directives/autofocus/autofocus.directive.d.ts +0 -8
- package/directives/autofocus/public-api.d.ts +0 -1
- package/directives/data-exporter/constants.d.ts +0 -26
- package/directives/data-exporter/data-exporter.directive.d.ts +0 -18
- package/directives/data-exporter/mime.d.ts +0 -5
- package/directives/data-exporter/options.d.ts +0 -21
- package/directives/data-exporter/public-api.d.ts +0 -2
- package/directives/data-exporter/services/exporters/csv-exporter.service.d.ts +0 -12
- package/directives/data-exporter/services/exporters/exporter.d.ts +0 -4
- package/directives/data-exporter/services/exporters/file-exporter.d.ts +0 -8
- package/directives/data-exporter/services/exporters/json-exporter.service.d.ts +0 -11
- package/directives/data-exporter/services/exporters/txt-exporter.service.d.ts +0 -12
- package/directives/data-exporter/services/exporters/worksheet-exporter.d.ts +0 -10
- package/directives/data-exporter/services/exporters/xls-exporter.service.d.ts +0 -14
- package/directives/data-exporter/services/exporters/xlsx-exporter.service.d.ts +0 -9
- package/directives/data-exporter/services/file-util.d.ts +0 -8
- package/directives/data-exporter/services/service-locator.service.d.ts +0 -11
- package/directives/debounce/abstract-debounce.directive.d.ts +0 -15
- package/directives/debounce/debounce-click.directive.d.ts +0 -8
- package/directives/debounce/debounce-keyup.directive.d.ts +0 -8
- package/directives/debounce/public-api.d.ts +0 -2
- package/directives/digit-only/digit-only.directive.d.ts +0 -36
- package/directives/digit-only/mask.directive.d.ts +0 -16
- package/directives/digit-only/public-api.d.ts +0 -2
- package/directives/equal-validator/equal-validator.directive.d.ts +0 -12
- package/directives/equal-validator/public-api.d.ts +0 -1
- package/lib/mock-api/mock-api.constants.d.ts +0 -2
- package/lib/mock-api/mock-api.interceptor.d.ts +0 -12
- package/lib/mock-api/mock-api.request-handler.d.ts +0 -16
- package/lib/mock-api/mock-api.service.d.ts +0 -20
- package/lib/mock-api/mock-api.types.d.ts +0 -7
- package/lib/mock-api/mock-api.utils.d.ts +0 -3
- package/lib/mock-api/public-api.d.ts +0 -5
- package/pipes/bytes/bytes.pipe.d.ts +0 -7
- package/pipes/bytes/public-api.d.ts +0 -1
- package/pipes/date-format/date-format.pipe.d.ts +0 -7
- package/pipes/date-format/public-api.d.ts +0 -1
- package/pipes/find-by-key/find-by-key.pipe.d.ts +0 -7
- package/pipes/find-by-key/public-api.d.ts +0 -1
- package/pipes/group-by/group-by.pipe.d.ts +0 -7
- package/pipes/group-by/public-api.d.ts +0 -1
- package/pipes/keys/keys.pipe.d.ts +0 -7
- package/pipes/keys/public-api.d.ts +0 -1
- package/pipes/secure/public-api.d.ts +0 -1
- package/pipes/secure/secure-pipe.d.ts +0 -18
- package/pipes/uppercase/public-api.d.ts +0 -1
- package/pipes/uppercase/uppercase.pipe.d.ts +0 -7
- package/public-api.d.ts +0 -1
- package/services/alert/alert.dialog.d.ts +0 -11
- package/services/alert/alert.message.d.ts +0 -8
- package/services/alert/alert.service.d.ts +0 -37
- package/services/alert/enum.d.ts +0 -12
- package/services/alert/public-api.d.ts +0 -4
- package/services/config/config.constants.d.ts +0 -6
- package/services/config/config.service.d.ts +0 -11
- package/services/config/public-api.d.ts +0 -3
- package/services/config/urlStateConfig.service.d.ts +0 -10
- package/services/confirmation/confirmation.service.d.ts +0 -12
- package/services/confirmation/confirmation.types.d.ts +0 -21
- package/services/confirmation/dialog/dialog.component.d.ts +0 -10
- package/services/confirmation/public-api.d.ts +0 -2
- package/services/data/data.service.d.ts +0 -20
- package/services/data/public-api.d.ts +0 -1
- package/services/export-as/export-as-config.model.d.ts +0 -8
- package/services/export-as/export-as.service.d.ts +0 -43
- package/services/export-as/public-api.d.ts +0 -2
- package/services/loading/loading.interceptor.d.ts +0 -12
- package/services/loading/loading.service.d.ts +0 -24
- package/services/loading/public-api.d.ts +0 -2
- package/services/local-storage/local-storage.service.d.ts +0 -8
- package/services/local-storage/public-api.d.ts +0 -1
- package/services/media-watcher/media-watcher.service.d.ts +0 -20
- package/services/media-watcher/public-api.d.ts +0 -1
- package/services/platform/platform.service.d.ts +0 -9
- package/services/platform/public-api.d.ts +0 -1
- package/services/splash-screen/public-api.d.ts +0 -1
- package/services/splash-screen/splash-screen.service.d.ts +0 -14
- package/services/title/public-api.d.ts +0 -1
- package/services/title/title.service.d.ts +0 -13
- package/services/translation/public-api.d.ts +0 -1
- package/services/translation/translation.service.d.ts +0 -20
- package/services/utils/public-api.d.ts +0 -1
- package/services/utils/utils.service.d.ts +0 -60
- package/validators/public-api.d.ts +0 -1
- package/validators/validators.d.ts +0 -5
- package/version/public-api.d.ts +0 -1
- package/version/version.d.ts +0 -9
|
@@ -1,5 +1,758 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterContentInit, EventEmitter, ElementRef, OnDestroy, ChangeDetectorRef, InjectionToken, OnInit, Injector, ViewContainerRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { DatetimeAdapter, CmatDatetimeFormats } from 'cmat/components/adapter';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
6
|
+
import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
|
7
|
+
import { ThemePalette } from '@angular/material/core';
|
|
8
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
9
|
+
import { MatFormField } from '@angular/material/form-field';
|
|
10
|
+
import { MatButton } from '@angular/material/button';
|
|
11
|
+
|
|
12
|
+
declare enum CmatDatetimepickerFilterType {
|
|
13
|
+
DATE = 0,
|
|
14
|
+
HOUR = 1,
|
|
15
|
+
MINUTE = 2
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Possible types for datetimepicker. */
|
|
19
|
+
type CmatDatetimepickerType = 'date' | 'time' | 'month' | 'year' | 'datetime';
|
|
20
|
+
/** Possible views for datetimepicker calendar. */
|
|
21
|
+
type CmatCalendarView = 'clock' | 'month' | 'year' | 'multi-year';
|
|
22
|
+
/** Possible types for AM / PM */
|
|
23
|
+
type CmatAMPM = 'AM' | 'PM';
|
|
24
|
+
/** Possible modes for datetimepicker dropdown display. */
|
|
25
|
+
type CmatDatetimepickerMode = 'auto' | 'portrait' | 'landscape';
|
|
26
|
+
/** Possible positions for the datetimepicker dropdown along the X axis. */
|
|
27
|
+
type DatetimepickerDropdownPositionX = 'start' | 'end';
|
|
28
|
+
/** Possible positions for the datetimepicker dropdown along the Y axis. */
|
|
29
|
+
type DatetimepickerDropdownPositionY = 'above' | 'below';
|
|
30
|
+
type CmatClockView = 'hour' | 'minute';
|
|
31
|
+
|
|
32
|
+
declare const CLOCK_RADIUS = 50;
|
|
33
|
+
declare const CLOCK_INNER_RADIUS = 27.5;
|
|
34
|
+
declare const CLOCK_OUTER_RADIUS = 41.25;
|
|
35
|
+
declare const CLOCK_TICK_RADIUS = 7.0833;
|
|
1
36
|
/**
|
|
2
|
-
*
|
|
37
|
+
* A clock that is used as part of the datepicker.
|
|
3
38
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
39
|
+
declare class CmatDatetimepickerClockComponent<D> implements AfterContentInit {
|
|
40
|
+
private _element;
|
|
41
|
+
private _adapter;
|
|
42
|
+
userSelection: EventEmitter<void>;
|
|
43
|
+
/** A function used to filter which dates are selectable. */
|
|
44
|
+
dateFilter: (date: D, type: CmatDatetimepickerFilterType) => boolean;
|
|
45
|
+
interval: number;
|
|
46
|
+
twelvehour: boolean;
|
|
47
|
+
/** Emits when the currently selected date changes. */
|
|
48
|
+
selectedChange: EventEmitter<D>;
|
|
49
|
+
activeDateChange: EventEmitter<D>;
|
|
50
|
+
role: string;
|
|
51
|
+
class: string;
|
|
52
|
+
/** Hours and Minutes representing the clock view. */
|
|
53
|
+
hours: any[];
|
|
54
|
+
minutes: any[];
|
|
55
|
+
/** Whether the clock is in hour view. */
|
|
56
|
+
hourView: boolean;
|
|
57
|
+
selectedHour: number;
|
|
58
|
+
selectedMinute: number;
|
|
59
|
+
private _timeChanged;
|
|
60
|
+
private _mouseMoveListener;
|
|
61
|
+
private _mouseUpListener;
|
|
62
|
+
private _activeDate;
|
|
63
|
+
private _selected;
|
|
64
|
+
private _minDate;
|
|
65
|
+
private _maxDate;
|
|
66
|
+
constructor(_element: ElementRef, _adapter: DatetimeAdapter<D>);
|
|
67
|
+
/**
|
|
68
|
+
* The date to display in this clock view.
|
|
69
|
+
*/
|
|
70
|
+
get activeDate(): D;
|
|
71
|
+
set activeDate(value: D);
|
|
72
|
+
/** The currently selected date. */
|
|
73
|
+
get selected(): D | null;
|
|
74
|
+
set selected(value: D | null);
|
|
75
|
+
/** The minimum selectable date. */
|
|
76
|
+
get minDate(): D | null;
|
|
77
|
+
set minDate(value: D | null);
|
|
78
|
+
/** The maximum selectable date. */
|
|
79
|
+
get maxDate(): D | null;
|
|
80
|
+
set maxDate(value: D | null);
|
|
81
|
+
/** Whether the clock should be started in hour or minute view. */
|
|
82
|
+
set startView(value: CmatClockView);
|
|
83
|
+
get hand(): any;
|
|
84
|
+
/** Handles mousedown events on the clock body. */
|
|
85
|
+
handleMousedown(event: MouseEvent): void;
|
|
86
|
+
ngAfterContentInit(): void;
|
|
87
|
+
handleMousemove(event: any): void;
|
|
88
|
+
handleMouseup(): void;
|
|
89
|
+
/** Initializes this clock view. */
|
|
90
|
+
private _init;
|
|
91
|
+
/**
|
|
92
|
+
* Set Time
|
|
93
|
+
*
|
|
94
|
+
* @param event
|
|
95
|
+
*/
|
|
96
|
+
private _setTime;
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerClockComponent<any>, never>;
|
|
98
|
+
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>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class CmatDatetimepickerIntl {
|
|
102
|
+
/**
|
|
103
|
+
* Stream to emit from when labels are changed. Use this to notify components when the labels have
|
|
104
|
+
* changed after initialization.
|
|
105
|
+
*/
|
|
106
|
+
readonly changes: Subject<void>;
|
|
107
|
+
/** A label for the calendar popup (used by screen readers). */
|
|
108
|
+
calendarLabel: string;
|
|
109
|
+
/** A label for the button used to open the calendar popup (used by screen readers). */
|
|
110
|
+
openCalendarLabel: string;
|
|
111
|
+
/** Label for the button used to close the calendar popup. */
|
|
112
|
+
closeCalendarLabel: string;
|
|
113
|
+
/** A label for the previous month button (used by screen readers). */
|
|
114
|
+
prevMonthLabel: string;
|
|
115
|
+
/** A label for the next month button (used by screen readers). */
|
|
116
|
+
nextMonthLabel: string;
|
|
117
|
+
/** A label for the previous year button (used by screen readers). */
|
|
118
|
+
prevYearLabel: string;
|
|
119
|
+
/** A label for the next year button (used by screen readers). */
|
|
120
|
+
nextYearLabel: string;
|
|
121
|
+
/** A label for the previous multi-year button (used by screen readers). */
|
|
122
|
+
prevMultiYearLabel: string;
|
|
123
|
+
/** A label for the next multi-year button (used by screen readers). */
|
|
124
|
+
nextMultiYearLabel: string;
|
|
125
|
+
/** A label for the 'switch to month view' button (used by screen readers). */
|
|
126
|
+
switchToMonthViewLabel: string;
|
|
127
|
+
/** A label for the 'switch to year view' button (used by screen readers). */
|
|
128
|
+
switchToYearViewLabel: string;
|
|
129
|
+
/** A label for the 'switch to multi-year view' button (used by screen readers). */
|
|
130
|
+
switchToMultiYearViewLabel: string;
|
|
131
|
+
/** A label for the first date of a range of dates (used by screen readers). */
|
|
132
|
+
startDateLabel: string;
|
|
133
|
+
/** A label for the last date of a range of dates (used by screen readers). */
|
|
134
|
+
endDateLabel: string;
|
|
135
|
+
/** A label for the 'switch to clock hour view' button (used by screen readers). */
|
|
136
|
+
switchToClockHourViewLabel: string;
|
|
137
|
+
/** A label for the 'switch to clock minute view' button (used by screen readers). */
|
|
138
|
+
switchToClockMinuteViewLabel: string;
|
|
139
|
+
/** Label used for ok button within the manual time input. */
|
|
140
|
+
okLabel: string;
|
|
141
|
+
/** Label used for cancel button within the manual time input. */
|
|
142
|
+
cancelLabel: string;
|
|
143
|
+
/** Formats a range of years (used for visuals). */
|
|
144
|
+
formatYearRange(start: string, end: string): string;
|
|
145
|
+
/** Formats a label for a range of years (used by screen readers). */
|
|
146
|
+
formatYearRangeLabel(start: string, end: string): string;
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerIntl, never>;
|
|
148
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatDatetimepickerIntl>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* A calendar that is used as part of the datepicker.
|
|
153
|
+
*/
|
|
154
|
+
declare class CmatDatetimepickerCalendarComponent<D> implements AfterContentInit, OnDestroy {
|
|
155
|
+
private _elementRef;
|
|
156
|
+
private _intl;
|
|
157
|
+
private _adapter;
|
|
158
|
+
private _dateFormats;
|
|
159
|
+
userSelection: EventEmitter<void>;
|
|
160
|
+
/** Active multi year view when click on year. */
|
|
161
|
+
multiYearSelector: boolean;
|
|
162
|
+
/** Whether the calendar should be started in month or year view. */
|
|
163
|
+
startView: CmatCalendarView;
|
|
164
|
+
twelvehour: boolean;
|
|
165
|
+
timeInterval: number;
|
|
166
|
+
/** A function used to filter which dates are selectable. */
|
|
167
|
+
dateFilter: (date: D, type: CmatDatetimepickerFilterType) => boolean;
|
|
168
|
+
/** Prevent user to select same date time */
|
|
169
|
+
preventSameDateTimeSelection: boolean;
|
|
170
|
+
/** Emits when the currently selected date changes. */
|
|
171
|
+
selectedChange: EventEmitter<D>;
|
|
172
|
+
/** Emits when the view has been changed. **/
|
|
173
|
+
viewChanged: EventEmitter<CmatCalendarView>;
|
|
174
|
+
class: string;
|
|
175
|
+
label: string;
|
|
176
|
+
role: string;
|
|
177
|
+
tabindex: number;
|
|
178
|
+
AMPM: CmatAMPM;
|
|
179
|
+
clockView: CmatClockView;
|
|
180
|
+
calendarState: string;
|
|
181
|
+
/** Whether the calendar is in month view. */
|
|
182
|
+
private _currentView;
|
|
183
|
+
private _intlChanges;
|
|
184
|
+
private _clampedActiveDate;
|
|
185
|
+
private _type;
|
|
186
|
+
private _startAt;
|
|
187
|
+
private _selected;
|
|
188
|
+
private _minDate;
|
|
189
|
+
private _maxDate;
|
|
190
|
+
private _timeInput;
|
|
191
|
+
constructor(_elementRef: ElementRef, _intl: CmatDatetimepickerIntl, _adapter: DatetimeAdapter<D>, _dateFormats: CmatDatetimeFormats, changeDetectorRef: ChangeDetectorRef);
|
|
192
|
+
get type(): CmatDatetimepickerType;
|
|
193
|
+
set type(value: CmatDatetimepickerType);
|
|
194
|
+
/** A date representing the period (month or year) to start the calendar in. */
|
|
195
|
+
get startAt(): D | null;
|
|
196
|
+
set startAt(value: D | null);
|
|
197
|
+
/**
|
|
198
|
+
* Whether the calendar is in time mode. In time mode the calendar clock gets time input elements rather then just clock
|
|
199
|
+
*
|
|
200
|
+
* When touchUi is enabled this will be disabled
|
|
201
|
+
*/
|
|
202
|
+
get timeInput(): boolean;
|
|
203
|
+
set timeInput(value: boolean);
|
|
204
|
+
/** The currently selected date. */
|
|
205
|
+
get selected(): D | null;
|
|
206
|
+
set selected(value: D | null);
|
|
207
|
+
/** The minimum selectable date. */
|
|
208
|
+
get minDate(): D | null;
|
|
209
|
+
set minDate(value: D | null);
|
|
210
|
+
/** The maximum selectable date. */
|
|
211
|
+
get maxDate(): D | null;
|
|
212
|
+
set maxDate(value: D | null);
|
|
213
|
+
/**
|
|
214
|
+
* The current active date. This determines which time period is shown and which date is
|
|
215
|
+
* highlighted when using keyboard navigation.
|
|
216
|
+
*/
|
|
217
|
+
get activeDate(): D;
|
|
218
|
+
set activeDate(value: D);
|
|
219
|
+
get currentView(): CmatCalendarView;
|
|
220
|
+
set currentView(view: CmatCalendarView);
|
|
221
|
+
/** The label for the current calendar view. */
|
|
222
|
+
get yearButtonText(): string;
|
|
223
|
+
get yearPeriodText(): string;
|
|
224
|
+
get yearButtonLabel(): string;
|
|
225
|
+
get dateButtonText(): string;
|
|
226
|
+
get dateButtonLabel(): string;
|
|
227
|
+
get hoursButtonText(): string;
|
|
228
|
+
get hourButtonLabel(): string;
|
|
229
|
+
get minutesButtonText(): string;
|
|
230
|
+
get minuteButtonLabel(): string;
|
|
231
|
+
get prevButtonLabel(): string;
|
|
232
|
+
get nextButtonLabel(): string;
|
|
233
|
+
handleCalendarBodyKeydown(event: KeyboardEvent): void;
|
|
234
|
+
/** Date filter for the month and year views. */
|
|
235
|
+
dateFilterForViews: (date: D) => boolean;
|
|
236
|
+
userSelected(): void;
|
|
237
|
+
ngAfterContentInit(): void;
|
|
238
|
+
ngOnDestroy(): void;
|
|
239
|
+
/** Handles date selection in the month view. */
|
|
240
|
+
dateSelected(date: D): void;
|
|
241
|
+
/** Handles month selection in the year view. */
|
|
242
|
+
monthSelected(month: D): void;
|
|
243
|
+
/** Handles year selection in the multi year view. */
|
|
244
|
+
yearSelected(year: D): void;
|
|
245
|
+
timeSelected(date: D): void;
|
|
246
|
+
dialTimeSelected(date: D): void;
|
|
247
|
+
onActiveDateChange(date: D): void;
|
|
248
|
+
updateDate(date: D): D;
|
|
249
|
+
selectAMPM(date: D): void;
|
|
250
|
+
ampmClicked(source: CmatAMPM): void;
|
|
251
|
+
yearClicked(): void;
|
|
252
|
+
dateClicked(): void;
|
|
253
|
+
hoursClicked(): void;
|
|
254
|
+
minutesClicked(): void;
|
|
255
|
+
/** Handles user clicks on the previous button. */
|
|
256
|
+
previousClicked(): void;
|
|
257
|
+
/** Handles user clicks on the next button. */
|
|
258
|
+
nextClicked(): void;
|
|
259
|
+
/** Whether the previous period button is enabled. */
|
|
260
|
+
previousEnabled(): boolean;
|
|
261
|
+
/** Whether the next period button is enabled. */
|
|
262
|
+
nextEnabled(): boolean;
|
|
263
|
+
focusActiveCell(): void;
|
|
264
|
+
calendarStateDone(): void;
|
|
265
|
+
/** Whether the two dates represent the same view in the current view mode (month or year). */
|
|
266
|
+
private _isSameView;
|
|
267
|
+
/** Handles keydown events on the calendar body when calendar is in month view. */
|
|
268
|
+
private _handleCalendarBodyKeydownInMonthView;
|
|
269
|
+
/** Handles keydown events on the calendar body when calendar is in year view. */
|
|
270
|
+
private _handleCalendarBodyKeydownInYearView;
|
|
271
|
+
/** Handles keydown events on the calendar body when calendar is in multi-year view. */
|
|
272
|
+
private _handleCalendarBodyKeydownInMultiYearView;
|
|
273
|
+
/** Handles keydown events on the calendar body when calendar is in month view. */
|
|
274
|
+
private _handleCalendarBodyKeydownInClockView;
|
|
275
|
+
/**
|
|
276
|
+
* Determine the date for the month that comes before the given month in the same column in the
|
|
277
|
+
* calendar table.
|
|
278
|
+
*/
|
|
279
|
+
private _prevMonthInSameCol;
|
|
280
|
+
/**
|
|
281
|
+
* Determine the date for the month that comes after the given month in the same column in the
|
|
282
|
+
* calendar table.
|
|
283
|
+
*/
|
|
284
|
+
private _nextMonthInSameCol;
|
|
285
|
+
private _changeCalendarState;
|
|
286
|
+
private _2digit;
|
|
287
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerCalendarComponent<any>, [null, null, { optional: true; }, { optional: true; }, null]>;
|
|
288
|
+
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>;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* An internal class that represents the data corresponding to a single calendar cell.
|
|
293
|
+
*/
|
|
294
|
+
declare class CmatDatetimepickerCalendarCellComponent {
|
|
295
|
+
value: number;
|
|
296
|
+
displayValue: string;
|
|
297
|
+
ariaLabel: string;
|
|
298
|
+
enabled: boolean;
|
|
299
|
+
constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* An internal component used to display calendar data in a table.
|
|
303
|
+
*/
|
|
304
|
+
declare class CmatDatetimepickerCalendarBodyComponent {
|
|
305
|
+
/** The label for the table. (e.g. "Jan 2017"). */
|
|
306
|
+
label: string;
|
|
307
|
+
/** The cells to display in the table. */
|
|
308
|
+
rows: CmatDatetimepickerCalendarCellComponent[][];
|
|
309
|
+
/** The value in the table that corresponds to today. */
|
|
310
|
+
todayValue: number | null;
|
|
311
|
+
/** The value in the table that is currently selected. */
|
|
312
|
+
selectedValue: number | null;
|
|
313
|
+
/** The minimum number of free cells needed to fit the label in the first row. */
|
|
314
|
+
labelMinRequiredCells: number;
|
|
315
|
+
/** The number of columns in the table. */
|
|
316
|
+
numCols: number;
|
|
317
|
+
/** Whether to allow selection of disabled cells. */
|
|
318
|
+
allowDisabledSelection: boolean;
|
|
319
|
+
/** The cell number of the active cell in the table. */
|
|
320
|
+
activeCell: number;
|
|
321
|
+
/** Emits when a new value is selected. */
|
|
322
|
+
selectedValueChange: EventEmitter<number>;
|
|
323
|
+
class: string;
|
|
324
|
+
/** The number of blank cells to put at the beginning for the first row. */
|
|
325
|
+
get _firstRowOffset(): number;
|
|
326
|
+
cellClicked(cell: CmatDatetimepickerCalendarCellComponent): void;
|
|
327
|
+
isActiveCell(rowIndex: number, colIndex: number): boolean;
|
|
328
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerCalendarBodyComponent, never>;
|
|
329
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerCalendarBodyComponent, "[cmat-datetimepicker-calendar-body]", ["cmatDatetimepickerCalendarBody"], { "label": { "alias": "label"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "todayValue": { "alias": "todayValue"; "required": false; }; "selectedValue": { "alias": "selectedValue"; "required": false; }; "labelMinRequiredCells": { "alias": "labelMinRequiredCells"; "required": false; }; "numCols": { "alias": "numCols"; "required": false; }; "allowDisabledSelection": { "alias": "allowDisabledSelection"; "required": false; }; "activeCell": { "alias": "activeCell"; "required": false; }; }, { "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
declare const CMAT_DATETIMEPICKER_VALUE_ACCESSOR: any;
|
|
333
|
+
declare const CMAT_DATETIMEPICKER_VALIDATORS: any;
|
|
334
|
+
/**
|
|
335
|
+
* An event used for datepicker input and change events. We don't always have access to a native
|
|
336
|
+
* input or change event because the event may have been triggered by the user clicking on the
|
|
337
|
+
* calendar popup. For consistency, we always use MatDatepickerInputEvent instead.
|
|
338
|
+
*/
|
|
339
|
+
declare class CmatDatetimepickerInputEvent<D> {
|
|
340
|
+
target: CmatDatetimepickerInputDirective<D>;
|
|
341
|
+
targetElement: HTMLElement;
|
|
342
|
+
/** The new value for the target datepicker input. */
|
|
343
|
+
value: D | null;
|
|
344
|
+
constructor(target: CmatDatetimepickerInputDirective<D>, targetElement: HTMLElement);
|
|
345
|
+
}
|
|
346
|
+
/** Directive used to connect an input to a MatDatepicker. */
|
|
347
|
+
declare class CmatDatetimepickerInputDirective<D> implements AfterContentInit, ControlValueAccessor, OnDestroy, Validator {
|
|
348
|
+
private _elementRef;
|
|
349
|
+
_dateAdapter: DatetimeAdapter<D>;
|
|
350
|
+
private _dateFormats;
|
|
351
|
+
private _formField;
|
|
352
|
+
/** Emits when a `change` event is fired on this `<input>`. */
|
|
353
|
+
dateChange: EventEmitter<CmatDatetimepickerInputEvent<D>>;
|
|
354
|
+
/** Emits when an `input` event is fired on this `<input>`. */
|
|
355
|
+
dateInput: EventEmitter<CmatDatetimepickerInputEvent<D>>;
|
|
356
|
+
datetimepicker: CmatDatetimepickerComponent<D>;
|
|
357
|
+
dateFilter: (date: D | null, type: CmatDatetimepickerFilterType) => boolean;
|
|
358
|
+
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
359
|
+
valueChange: EventEmitter<D | null>;
|
|
360
|
+
/** Emits when the disabled state has changed */
|
|
361
|
+
disabledChange: EventEmitter<boolean>;
|
|
362
|
+
private _datepickerSubscription;
|
|
363
|
+
private _localeSubscription;
|
|
364
|
+
/** Whether the last value set on the input was valid. */
|
|
365
|
+
private _lastValueValid;
|
|
366
|
+
private _value;
|
|
367
|
+
private _min;
|
|
368
|
+
private _max;
|
|
369
|
+
private _disabled;
|
|
370
|
+
constructor(_elementRef: ElementRef, _dateAdapter: DatetimeAdapter<D>, _dateFormats: CmatDatetimeFormats, _formField: MatFormField);
|
|
371
|
+
/** The datepicker that this input is associated with. */
|
|
372
|
+
set cmatDatetimepicker(value: CmatDatetimepickerComponent<D>);
|
|
373
|
+
set cmatDatepickerFilter(filter: (date: D | null, type: CmatDatetimepickerFilterType) => boolean);
|
|
374
|
+
/** The value of the input. */
|
|
375
|
+
get value(): D | null;
|
|
376
|
+
set value(value: D | null);
|
|
377
|
+
/** The minimum valid date. */
|
|
378
|
+
get min(): D | null;
|
|
379
|
+
set min(value: D | null);
|
|
380
|
+
/** The maximum valid date. */
|
|
381
|
+
get max(): D | null;
|
|
382
|
+
set max(value: D | null);
|
|
383
|
+
/** Whether the datepicker-input is disabled. */
|
|
384
|
+
get disabled(): boolean;
|
|
385
|
+
set disabled(value: any);
|
|
386
|
+
ngAfterContentInit(): void;
|
|
387
|
+
ngOnDestroy(): void;
|
|
388
|
+
registerOnValidatorChange(fn: VoidFunction): void;
|
|
389
|
+
validate(c: AbstractControl): ValidationErrors | null;
|
|
390
|
+
/**
|
|
391
|
+
* Gets the element that the datepicker popup should be connected to.
|
|
392
|
+
*
|
|
393
|
+
* @return The element to connect the popup to.
|
|
394
|
+
*/
|
|
395
|
+
getConnectedOverlayOrigin(): ElementRef;
|
|
396
|
+
/** Gets the ID of an element that should be used a description for the calendar overlay. */
|
|
397
|
+
getOverlayLabelId(): string | null;
|
|
398
|
+
writeValue(value: D): void;
|
|
399
|
+
registerOnChange(fn: (value: any) => void): void;
|
|
400
|
+
registerOnTouched(fn: VoidFunction): void;
|
|
401
|
+
setDisabledState(disabled: boolean): void;
|
|
402
|
+
onKeydown(event: KeyboardEvent): void;
|
|
403
|
+
onInput(value: string): void;
|
|
404
|
+
onChange(): void;
|
|
405
|
+
/** Handles blur events on the input. */
|
|
406
|
+
onBlur(): void;
|
|
407
|
+
/** Returns the palette used by the input's form field, if any. */
|
|
408
|
+
getThemePalette(): ThemePalette;
|
|
409
|
+
private _registerDatetimepicker;
|
|
410
|
+
private _getDisplayFormat;
|
|
411
|
+
private _getParseFormat;
|
|
412
|
+
private _onTouched;
|
|
413
|
+
private _cvaOnChange;
|
|
414
|
+
private _validatorOnChange;
|
|
415
|
+
/** The form control validator for whether the input parses. */
|
|
416
|
+
private _parseValidator;
|
|
417
|
+
/** The form control validator for the min date. */
|
|
418
|
+
private _minValidator;
|
|
419
|
+
/** The form control validator for the max date. */
|
|
420
|
+
private _maxValidator;
|
|
421
|
+
/** The form control validator for the date filter. */
|
|
422
|
+
private _filterValidator;
|
|
423
|
+
/** The combined form control validator for this input. */
|
|
424
|
+
private _validator;
|
|
425
|
+
/** Formats a value and sets it on the input element. */
|
|
426
|
+
private _formatValue;
|
|
427
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerInputDirective<any>, [null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
428
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatDatetimepickerInputDirective<any>, "input[cmatDatetimepicker]", ["cmatDatepickerInput"], { "cmatDatetimepicker": { "alias": "cmatDatetimepicker"; "required": false; }; "cmatDatepickerFilter": { "alias": "cmatDatepickerFilter"; "required": false; }; "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "dateChange": "dateChange"; "dateInput": "dateInput"; }, never, never, true, never>;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/** Injection token that determines the scroll handling while the calendar is open. */
|
|
432
|
+
declare const CMAT_DATETIMEPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
433
|
+
declare function CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
434
|
+
declare const CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
435
|
+
provide: InjectionToken<() => ScrollStrategy>;
|
|
436
|
+
deps: (typeof Overlay)[];
|
|
437
|
+
useFactory: typeof CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY;
|
|
438
|
+
};
|
|
439
|
+
/**
|
|
440
|
+
* Component used as the content for the datepicker dialog and popup. We use this instead of using
|
|
441
|
+
* MatCalendar directly as the content so we can control the initial focus. This also gives us a
|
|
442
|
+
* place to put additional features of the popup that are not part of the calendar itself in the
|
|
443
|
+
* future. (e.g. confirmation buttons).
|
|
444
|
+
*/
|
|
445
|
+
declare class CmatDatetimepickerContentComponent<D> implements OnInit, AfterContentInit, OnDestroy {
|
|
446
|
+
protected _elementRef: ElementRef;
|
|
447
|
+
private _changeDetectorRef;
|
|
448
|
+
_calendar: CmatDatetimepickerCalendarComponent<D>;
|
|
449
|
+
color: ThemePalette;
|
|
450
|
+
datetimepicker: CmatDatetimepickerComponent<D>;
|
|
451
|
+
/** Whether the datetimepicker is above or below the input. */
|
|
452
|
+
isAbove: boolean;
|
|
453
|
+
/** Current state of the animation. */
|
|
454
|
+
animationState: 'enter-dropdown' | 'enter-dialog' | 'void';
|
|
455
|
+
/** Emits when an animation has finished. */
|
|
456
|
+
readonly animationDone: Subject<void>;
|
|
457
|
+
/** Id of the label for the `role="dialog"` element. */
|
|
458
|
+
dialogLabelId: string | null;
|
|
459
|
+
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef);
|
|
460
|
+
ngOnInit(): void;
|
|
461
|
+
ngAfterContentInit(): void;
|
|
462
|
+
startExitAnimation(): void;
|
|
463
|
+
ngOnDestroy(): void;
|
|
464
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerContentComponent<any>, never>;
|
|
465
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerContentComponent<any>, "cmat-datetimepicker-content", ["cmatDatetimepickerContent"], { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
466
|
+
}
|
|
467
|
+
declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
468
|
+
private _overlay;
|
|
469
|
+
private _injector;
|
|
470
|
+
private _viewContainerRef;
|
|
471
|
+
private _scrollStrategy;
|
|
472
|
+
private _dateAdapter;
|
|
473
|
+
private _dir;
|
|
474
|
+
private _document;
|
|
475
|
+
/** The view that the calendar should start in. */
|
|
476
|
+
startView: CmatCalendarView;
|
|
477
|
+
mode: CmatDatetimepickerMode;
|
|
478
|
+
timeInterval: number;
|
|
479
|
+
/** Prevent user to select same date time */
|
|
480
|
+
preventSameDateTimeSelection: boolean;
|
|
481
|
+
/** Preferred position of the datetimepicker in the X axis. */
|
|
482
|
+
xPosition: DatetimepickerDropdownPositionX;
|
|
483
|
+
/** Preferred position of the datetimepicker in the Y axis. */
|
|
484
|
+
yPosition: DatetimepickerDropdownPositionY;
|
|
485
|
+
selectedChanged: EventEmitter<D>;
|
|
486
|
+
/** Emits when the datepicker has been opened. */
|
|
487
|
+
openedStream: EventEmitter<void>;
|
|
488
|
+
/** Emits when the datepicker has been closed. */
|
|
489
|
+
closedStream: EventEmitter<void>;
|
|
490
|
+
/** Emits when the view has been changed. **/
|
|
491
|
+
viewChanged: EventEmitter<CmatCalendarView>;
|
|
492
|
+
/** Whether the calendar is open. */
|
|
493
|
+
/** The id for the datepicker calendar. */
|
|
494
|
+
id: string;
|
|
495
|
+
/** The input element this datepicker is associated with. */
|
|
496
|
+
datetimepickerInput: CmatDatetimepickerInputDirective<D>;
|
|
497
|
+
/** Emits when the datepicker is disabled. */
|
|
498
|
+
disabledChange: Subject<boolean>;
|
|
499
|
+
private _validSelected;
|
|
500
|
+
/** A reference to the overlay into which we've rendered the calendar. */
|
|
501
|
+
private _overlayRef;
|
|
502
|
+
/** Reference to the component instance rendered in the overlay. */
|
|
503
|
+
private _componentRef;
|
|
504
|
+
/** The element that was focused before the datetimepicker was opened. */
|
|
505
|
+
private _focusedElementBeforeOpen;
|
|
506
|
+
/** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
|
|
507
|
+
private _backdropHarnessClass;
|
|
508
|
+
private _inputStateChanges;
|
|
509
|
+
private _multiYearSelector;
|
|
510
|
+
private _twelvehour;
|
|
511
|
+
private _panelClass;
|
|
512
|
+
private _opened;
|
|
513
|
+
private _color;
|
|
514
|
+
private _startAt;
|
|
515
|
+
private _type;
|
|
516
|
+
private _touchUi;
|
|
517
|
+
private _disabled;
|
|
518
|
+
private _timeInput;
|
|
519
|
+
private _restoreFocus;
|
|
520
|
+
constructor(_overlay: Overlay, _injector: Injector, _viewContainerRef: ViewContainerRef, _scrollStrategy: any, _dateAdapter: DatetimeAdapter<D>, _dir: Directionality, _document: any);
|
|
521
|
+
/** Whether to show multi-year view. */
|
|
522
|
+
get multiYearSelector(): boolean;
|
|
523
|
+
set multiYearSelector(value: boolean);
|
|
524
|
+
/** Whether the clock uses 12 hour format. */
|
|
525
|
+
get twelvehour(): boolean;
|
|
526
|
+
set twelvehour(value: boolean);
|
|
527
|
+
/**
|
|
528
|
+
* Classes to be passed to the date picker panel.
|
|
529
|
+
* Supports string and string array values, similar to `ngClass`.
|
|
530
|
+
*/
|
|
531
|
+
get panelClass(): string | string[];
|
|
532
|
+
set panelClass(value: string | string[]);
|
|
533
|
+
/** Whether the calendar is open. */
|
|
534
|
+
get opened(): boolean;
|
|
535
|
+
set opened(value: boolean);
|
|
536
|
+
/** Color palette to use on the datetimepicker's calendar. */
|
|
537
|
+
get color(): ThemePalette;
|
|
538
|
+
set color(value: ThemePalette);
|
|
539
|
+
/** The date to open the calendar to initially. */
|
|
540
|
+
get startAt(): D | null;
|
|
541
|
+
set startAt(date: D | null);
|
|
542
|
+
get type(): CmatDatetimepickerType;
|
|
543
|
+
set type(value: CmatDatetimepickerType);
|
|
544
|
+
/**
|
|
545
|
+
* Whether the calendar is in time mode. In time mode the calendar clock gets time input
|
|
546
|
+
* elements rather then just clock. When `touchUi` is enabled this will be disabled.
|
|
547
|
+
*/
|
|
548
|
+
get timeInput(): boolean;
|
|
549
|
+
set timeInput(value: boolean);
|
|
550
|
+
/**
|
|
551
|
+
* Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather
|
|
552
|
+
* than a popup and elements have more padding to allow for bigger touch targets.
|
|
553
|
+
*/
|
|
554
|
+
get touchUi(): boolean;
|
|
555
|
+
set touchUi(value: boolean);
|
|
556
|
+
/** Whether the datepicker pop-up should be disabled. */
|
|
557
|
+
get disabled(): boolean;
|
|
558
|
+
set disabled(value: boolean);
|
|
559
|
+
/**
|
|
560
|
+
* Whether to restore focus to the previously-focused element when the panel is closed.
|
|
561
|
+
* Note that automatic focus restoration is an accessibility feature and it is recommended that
|
|
562
|
+
* you provide your own equivalent, if you decide to turn it off.
|
|
563
|
+
*/
|
|
564
|
+
get restoreFocus(): boolean;
|
|
565
|
+
set restoreFocus(value: boolean);
|
|
566
|
+
/** The currently selected date. */
|
|
567
|
+
get selected(): D | null;
|
|
568
|
+
set selected(value: D | null);
|
|
569
|
+
/** The minimum selectable date. */
|
|
570
|
+
get minDate(): D | null;
|
|
571
|
+
/** The maximum selectable date. */
|
|
572
|
+
get maxDate(): D | null;
|
|
573
|
+
get dateFilter(): (date: D | null, type: CmatDatetimepickerFilterType) => boolean;
|
|
574
|
+
ngOnDestroy(): void;
|
|
575
|
+
/**
|
|
576
|
+
* Register an input with this datepicker.
|
|
577
|
+
*
|
|
578
|
+
* @param input The datepicker input to register with this datepicker.
|
|
579
|
+
*/
|
|
580
|
+
registerInput(input: CmatDatetimepickerInputDirective<D>): void;
|
|
581
|
+
/** Open the calendar. */
|
|
582
|
+
open(): void;
|
|
583
|
+
/** Close the calendar. */
|
|
584
|
+
close(): void;
|
|
585
|
+
/** Selects the given date */
|
|
586
|
+
select(date: D): void;
|
|
587
|
+
viewChange(type: CmatCalendarView): void;
|
|
588
|
+
/**
|
|
589
|
+
* Forwards relevant values from the datetimepicker to the
|
|
590
|
+
* datetimepicker content inside the overlay.
|
|
591
|
+
*/
|
|
592
|
+
private _forwardContentValues;
|
|
593
|
+
/** Opens the overlay with the calendar. */
|
|
594
|
+
private _openOverlay;
|
|
595
|
+
/** Destroys the current overlay. */
|
|
596
|
+
private _destroyOverlay;
|
|
597
|
+
/** Gets a position strategy that will open the calendar as a dropdown. */
|
|
598
|
+
private _getDialogStrategy;
|
|
599
|
+
/** Gets a position strategy that will open the calendar as a dropdown. */
|
|
600
|
+
private _getDropdownStrategy;
|
|
601
|
+
/**
|
|
602
|
+
* Sets the positions of the datetimepicker in dropdown mode based on the current configuration.
|
|
603
|
+
*/
|
|
604
|
+
private _setConnectedPositions;
|
|
605
|
+
/** Gets an observable that will emit when the overlay is supposed to be closed. */
|
|
606
|
+
private _getCloseStream;
|
|
607
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerComponent<any>, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
608
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerComponent<any>, "cmat-datetimepicker", ["cmatDatetimepicker"], { "startView": { "alias": "startView"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "timeInterval": { "alias": "timeInterval"; "required": false; }; "preventSameDateTimeSelection": { "alias": "preventSameDateTimeSelection"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "multiYearSelector": { "alias": "multiYearSelector"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "color": { "alias": "color"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "type": { "alias": "type"; "required": false; }; "timeInput": { "alias": "timeInput"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; }, { "selectedChanged": "selectedChanged"; "openedStream": "openedStream"; "closedStream": "closedStream"; "viewChanged": "viewChanged"; }, never, never, true, never>;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
/** Can be used to override the icon of a `cmatDatetimepickerToggle`. */
|
|
612
|
+
declare class CmatDatetimepickerToggleIconDirective {
|
|
613
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerToggleIconDirective, never>;
|
|
614
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatDatetimepickerToggleIconDirective, "[cmatDatetimepickerToggleIcon]", never, {}, {}, never, never, true, never>;
|
|
615
|
+
}
|
|
616
|
+
declare class CmatDatetimepickerToggleComponent<D> implements AfterContentInit, OnChanges, OnDestroy {
|
|
617
|
+
protected intl: CmatDatetimepickerIntl;
|
|
618
|
+
private _changeDetectorRef;
|
|
619
|
+
/** Datepicker instance that the button will toggle. */
|
|
620
|
+
datetimepicker: CmatDatetimepickerComponent<D>;
|
|
621
|
+
/** Tabindex for the toggle. */
|
|
622
|
+
tabIndex: number;
|
|
623
|
+
/** Screen-reader label for the button. */
|
|
624
|
+
ariaLabel?: string;
|
|
625
|
+
/** Whether ripples on the toggle should be disabled. */
|
|
626
|
+
disableRipple: boolean;
|
|
627
|
+
/** Custom icon set by the consumer. */
|
|
628
|
+
customIcon: CmatDatetimepickerToggleIconDirective;
|
|
629
|
+
/** Underlying button element. */
|
|
630
|
+
button: MatButton;
|
|
631
|
+
class: string;
|
|
632
|
+
private _stateChanges;
|
|
633
|
+
private _disabled;
|
|
634
|
+
constructor(intl: CmatDatetimepickerIntl, _changeDetectorRef: ChangeDetectorRef);
|
|
635
|
+
/** Whether the toggle button is disabled. */
|
|
636
|
+
get disabled(): boolean;
|
|
637
|
+
set disabled(value: boolean);
|
|
638
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
639
|
+
ngOnDestroy(): void;
|
|
640
|
+
ngAfterContentInit(): void;
|
|
641
|
+
open(event: Event): void;
|
|
642
|
+
private _watchStateChanges;
|
|
643
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerToggleComponent<any>, never>;
|
|
644
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerToggleComponent<any>, "cmat-datetimepicker-toggle", ["cmatDatetimepickerToggle"], { "datetimepicker": { "alias": "for"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["customIcon"], ["[cmatDatetimepickerToggleIcon]"], true, never>;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* An internal component used to display a single month in the datepicker.
|
|
649
|
+
*/
|
|
650
|
+
declare class CmatDatetimepickerMonthViewComponent<D> implements AfterContentInit {
|
|
651
|
+
adapter: DatetimeAdapter<D>;
|
|
652
|
+
private _dateFormats;
|
|
653
|
+
type: CmatDatetimepickerType;
|
|
654
|
+
userSelection: EventEmitter<void>;
|
|
655
|
+
/** A function used to filter which dates are selectable. */
|
|
656
|
+
dateFilter: (date: D) => boolean;
|
|
657
|
+
/** Emits when a new date is selected. */
|
|
658
|
+
selectedChange: EventEmitter<D>;
|
|
659
|
+
/** Grid of calendar cells representing the dates of the month. */
|
|
660
|
+
weeks: CmatDatetimepickerCalendarCellComponent[][];
|
|
661
|
+
/** The number of blank cells in the first row before the 1st of the month. */
|
|
662
|
+
firstWeekOffset: number;
|
|
663
|
+
/**
|
|
664
|
+
* The date of the month that the currently selected Date falls on.
|
|
665
|
+
* Null if the currently selected Date is in another month.
|
|
666
|
+
*/
|
|
667
|
+
selectedDate: number | null;
|
|
668
|
+
/** The date of the month that today falls on. Null if today is in another month. */
|
|
669
|
+
todayDate: number | null;
|
|
670
|
+
/** The names of the weekdays. */
|
|
671
|
+
weekdays: {
|
|
672
|
+
long: string;
|
|
673
|
+
narrow: string;
|
|
674
|
+
}[];
|
|
675
|
+
calendarState: string;
|
|
676
|
+
private _activeDate;
|
|
677
|
+
private _selected;
|
|
678
|
+
constructor(adapter: DatetimeAdapter<D>, _dateFormats: CmatDatetimeFormats);
|
|
679
|
+
/**
|
|
680
|
+
* The date to display in this month view (everything other than the month and year is ignored).
|
|
681
|
+
*/
|
|
682
|
+
get activeDate(): D;
|
|
683
|
+
set activeDate(value: D);
|
|
684
|
+
/** The currently selected date. */
|
|
685
|
+
get selected(): D;
|
|
686
|
+
set selected(value: D);
|
|
687
|
+
ngAfterContentInit(): void;
|
|
688
|
+
/** Handles when a new date is selected. */
|
|
689
|
+
dateSelected(date: number): void;
|
|
690
|
+
calendarStateDone(): void;
|
|
691
|
+
/** Initializes this month view. */
|
|
692
|
+
private _init;
|
|
693
|
+
/** Creates MdCalendarCells for the dates in this month. */
|
|
694
|
+
private _createWeekCells;
|
|
695
|
+
/**
|
|
696
|
+
* Gets the date in this month that the given Date falls on.
|
|
697
|
+
* Returns null if the given Date is in another month.
|
|
698
|
+
*/
|
|
699
|
+
private _getDateInCurrentMonth;
|
|
700
|
+
private _changeCalendarState;
|
|
701
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerMonthViewComponent<any>, [{ optional: true; }, { optional: true; }]>;
|
|
702
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerMonthViewComponent<any>, "cmat-datetimepicker-month-view", ["cmatDatetimepickerMonthView"], { "type": { "alias": "type"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "userSelection": "userSelection"; "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* An internal component used to display a single year in the datepicker.
|
|
707
|
+
*/
|
|
708
|
+
declare class CmatDatetimepickerYearViewComponent<D> implements AfterContentInit {
|
|
709
|
+
adapter: DatetimeAdapter<D>;
|
|
710
|
+
private _dateFormats;
|
|
711
|
+
userSelection: EventEmitter<void>;
|
|
712
|
+
type: CmatDatetimepickerType;
|
|
713
|
+
/** A function used to filter which dates are selectable. */
|
|
714
|
+
dateFilter: (date: D) => boolean;
|
|
715
|
+
/** Emits when a new month is selected. */
|
|
716
|
+
selectedChange: EventEmitter<D>;
|
|
717
|
+
/** Grid of calendar cells representing the months of the year. */
|
|
718
|
+
months: CmatDatetimepickerCalendarCellComponent[][];
|
|
719
|
+
/** The label for this year (e.g. "2017"). */
|
|
720
|
+
yearLabel: string;
|
|
721
|
+
/** The month in this year that today falls on. Null if today is in a different year. */
|
|
722
|
+
todayMonth: number | null;
|
|
723
|
+
/**
|
|
724
|
+
* The month in this year that the selected Date falls on.
|
|
725
|
+
* Null if the selected Date is in a different year.
|
|
726
|
+
*/
|
|
727
|
+
selectedMonth: number | null;
|
|
728
|
+
calendarState: string;
|
|
729
|
+
private _activeDate;
|
|
730
|
+
private _selected;
|
|
731
|
+
constructor(adapter: DatetimeAdapter<D>, _dateFormats: CmatDatetimeFormats);
|
|
732
|
+
/** The date to display in this year view (everything other than the year is ignored). */
|
|
733
|
+
get activeDate(): D;
|
|
734
|
+
set activeDate(value: D);
|
|
735
|
+
/** The currently selected date. */
|
|
736
|
+
get selected(): D;
|
|
737
|
+
set selected(value: D);
|
|
738
|
+
ngAfterContentInit(): void;
|
|
739
|
+
/** Handles when a new month is selected. */
|
|
740
|
+
monthSelected(month: number): void;
|
|
741
|
+
calendarStateDone(): void;
|
|
742
|
+
/** Initializes this month view. */
|
|
743
|
+
private _init;
|
|
744
|
+
/**
|
|
745
|
+
* Gets the month in this year that the given Date falls on.
|
|
746
|
+
* Returns null if the given Date is in another year.
|
|
747
|
+
*/
|
|
748
|
+
private _getMonthInCurrentYear;
|
|
749
|
+
/** Creates an MdCalendarCell for the given month. */
|
|
750
|
+
private _createCellForMonth;
|
|
751
|
+
/** Whether the given month is enabled. */
|
|
752
|
+
private _isMonthEnabled;
|
|
753
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerYearViewComponent<any>, [{ optional: true; }, { optional: true; }]>;
|
|
754
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerYearViewComponent<any>, "cmat-datetimepicker-year-view", ["cmatDatetimepickerYearView"], { "type": { "alias": "type"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "userSelection": "userSelection"; "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
export { CLOCK_INNER_RADIUS, CLOCK_OUTER_RADIUS, CLOCK_RADIUS, CLOCK_TICK_RADIUS, CMAT_DATETIMEPICKER_SCROLL_STRATEGY, CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY, CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, CMAT_DATETIMEPICKER_VALIDATORS, CMAT_DATETIMEPICKER_VALUE_ACCESSOR, CmatDatetimepickerCalendarBodyComponent, CmatDatetimepickerCalendarCellComponent, CmatDatetimepickerCalendarComponent, CmatDatetimepickerClockComponent, CmatDatetimepickerComponent, CmatDatetimepickerContentComponent, CmatDatetimepickerFilterType, CmatDatetimepickerInputDirective, CmatDatetimepickerInputEvent, CmatDatetimepickerMonthViewComponent, CmatDatetimepickerToggleComponent, CmatDatetimepickerToggleIconDirective, CmatDatetimepickerYearViewComponent };
|
|
758
|
+
export type { CmatAMPM, CmatCalendarView, CmatClockView, CmatDatetimepickerMode, CmatDatetimepickerType, DatetimepickerDropdownPositionX, DatetimepickerDropdownPositionY };
|