@ptsecurity/mosaic 11.6.0 → 12.2.1
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/_theming.scss +407 -99
- package/_visual.scss +63 -26
- package/autocomplete/autocomplete-origin.directive.d.ts +3 -0
- package/autocomplete/autocomplete-trigger.directive.d.ts +3 -0
- package/autocomplete/autocomplete.component.d.ts +3 -0
- package/autocomplete/autocomplete.module.d.ts +10 -0
- package/autocomplete/package.json +0 -1
- package/autocomplete/ptsecurity-mosaic-autocomplete.d.ts +1 -0
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js +178 -114
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js +107 -71
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-button.umd.js +106 -77
- package/bundles/ptsecurity-mosaic-button.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-card.umd.js +74 -43
- package/bundles/ptsecurity-mosaic-card.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.js +114 -69
- package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-core.umd.js +804 -256
- package/bundles/ptsecurity-mosaic-core.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.js +599 -420
- package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js +108 -26
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-divider.umd.js +55 -28
- package/bundles/ptsecurity-mosaic-divider.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.js +263 -187
- package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.js +200 -125
- package/bundles/ptsecurity-mosaic-form-field.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-icon.umd.js +79 -41
- package/bundles/ptsecurity-mosaic-icon.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-input.umd.js +222 -124
- package/bundles/ptsecurity-mosaic-input.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-link.umd.js +76 -45
- package/bundles/ptsecurity-mosaic-link.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-list.umd.js +344 -200
- package/bundles/ptsecurity-mosaic-list.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-modal.umd.js +324 -220
- package/bundles/ptsecurity-mosaic-modal.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.js +289 -208
- package/bundles/ptsecurity-mosaic-navbar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-popover.umd.js +346 -640
- package/bundles/ptsecurity-mosaic-popover.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js +69 -40
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +69 -40
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-radio.umd.js +126 -81
- package/bundles/ptsecurity-mosaic-radio.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-select.umd.js +276 -154
- package/bundles/ptsecurity-mosaic-select.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.js +105 -68
- package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js +236 -158
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.js +112 -83
- package/bundles/ptsecurity-mosaic-splitter.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-table.umd.js +77 -44
- package/bundles/ptsecurity-mosaic-table.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.js +894 -687
- package/bundles/ptsecurity-mosaic-tabs.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tags.umd.js +313 -209
- package/bundles/ptsecurity-mosaic-tags.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.js +107 -53
- package/bundles/ptsecurity-mosaic-textarea.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js +116 -71
- package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.js +97 -58
- package/bundles/ptsecurity-mosaic-toggle.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.js +347 -615
- package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.js +223 -118
- package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic-tree.umd.js +1162 -344
- package/bundles/ptsecurity-mosaic-tree.umd.js.map +1 -1
- package/bundles/ptsecurity-mosaic.umd.js +2 -2
- package/button/button.component.d.ts +7 -0
- package/button/button.module.d.ts +8 -0
- package/button/package.json +0 -1
- package/button/ptsecurity-mosaic-button.d.ts +1 -0
- package/button-toggle/button-toggle.component.d.ts +5 -0
- package/button-toggle/button-toggle.module.d.ts +7 -0
- package/button-toggle/package.json +0 -1
- package/button-toggle/ptsecurity-mosaic-button-toggle.d.ts +1 -0
- package/card/card.component.d.ts +3 -0
- package/card/card.module.d.ts +8 -0
- package/card/package.json +0 -1
- package/card/ptsecurity-mosaic-card.d.ts +1 -0
- package/checkbox/checkbox-module.d.ts +7 -0
- package/checkbox/checkbox-required-validator.d.ts +3 -0
- package/checkbox/checkbox.d.ts +3 -0
- package/checkbox/package.json +0 -1
- package/checkbox/ptsecurity-mosaic-checkbox.d.ts +1 -0
- package/core/common-behaviors/color.d.ts +3 -3
- package/core/common-behaviors/common-module.d.ts +5 -0
- package/core/common-behaviors/disabled.d.ts +4 -3
- package/core/common-behaviors/tabindex.d.ts +2 -1
- package/core/error/error-options.d.ts +5 -0
- package/core/formatters/date/formatter.d.ts +3 -0
- package/core/formatters/index.d.ts +5 -0
- package/core/formatters/number/formatter.d.ts +4 -0
- package/core/forms/forms-module.d.ts +5 -0
- package/core/forms/forms.directive.d.ts +5 -0
- package/core/highlight/highlight.pipe.d.ts +3 -0
- package/core/highlight/index.d.ts +6 -0
- package/core/line/line.d.ts +6 -0
- package/core/option/action.d.ts +42 -0
- package/core/option/index.d.ts +1 -0
- package/core/option/optgroup.d.ts +3 -0
- package/core/option/option-module.d.ts +9 -0
- package/core/option/option.d.ts +3 -0
- package/core/overlay/overlay-position-map.d.ts +0 -4
- package/core/package.json +0 -1
- package/core/pop-up/constants.d.ts +29 -0
- package/core/pop-up/index.d.ts +3 -0
- package/core/pop-up/pop-up-trigger.d.ts +70 -0
- package/core/pop-up/pop-up.d.ts +35 -0
- package/core/ptsecurity-mosaic-core.d.ts +1 -1
- package/core/public-api.d.ts +1 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox.module.d.ts +6 -0
- package/core/services/measure-scrollbar.service.d.ts +3 -0
- package/datepicker/calendar-body.component.d.ts +5 -6
- package/datepicker/calendar.component.d.ts +5 -0
- package/datepicker/datepicker-input.directive.d.ts +6 -2
- package/datepicker/datepicker-intl.d.ts +3 -0
- package/datepicker/datepicker-module.d.ts +18 -0
- package/datepicker/datepicker-toggle.component.d.ts +5 -0
- package/datepicker/datepicker.component.d.ts +5 -0
- package/datepicker/month-view.component.d.ts +3 -0
- package/datepicker/multi-year-view.component.d.ts +3 -0
- package/datepicker/package.json +0 -1
- package/datepicker/ptsecurity-mosaic-datepicker.d.ts +1 -0
- package/datepicker/year-view.component.d.ts +3 -0
- package/design-tokens/package.json +0 -1
- package/design-tokens/ptsecurity-mosaic-design-tokens.d.ts +1 -0
- package/design-tokens/tokens/components/list.json5 +0 -4
- package/design-tokens/tokens/components/popover.json5 +32 -4
- package/design-tokens/tokens/components/tooltip.json5 +49 -3
- package/design-tokens/tokens/components/tree.json5 +3 -3
- package/design-tokens/tokens/properties/globals.json5 +1 -1
- package/design-tokens/tokens.d.ts +56 -15
- package/divider/divider.component.d.ts +3 -0
- package/divider/divider.module.d.ts +6 -0
- package/divider/package.json +0 -1
- package/divider/ptsecurity-mosaic-divider.d.ts +1 -0
- package/dropdown/dropdown-content.directive.d.ts +3 -0
- package/dropdown/dropdown-item.component.d.ts +3 -0
- package/dropdown/dropdown-trigger.directive.d.ts +6 -8
- package/dropdown/dropdown.component.d.ts +5 -1
- package/dropdown/dropdown.module.d.ts +11 -0
- package/dropdown/package.json +0 -1
- package/dropdown/ptsecurity-mosaic-dropdown.d.ts +1 -0
- package/esm2015/autocomplete/autocomplete-origin.directive.js +11 -11
- package/esm2015/autocomplete/autocomplete-trigger.directive.js +53 -38
- package/esm2015/autocomplete/autocomplete.component.js +56 -37
- package/esm2015/autocomplete/autocomplete.module.js +25 -15
- package/esm2015/button/button.component.js +52 -56
- package/esm2015/button/button.module.js +35 -20
- package/esm2015/button-toggle/button-toggle.component.js +76 -55
- package/esm2015/button-toggle/button-toggle.module.js +13 -8
- package/esm2015/card/card.component.js +32 -30
- package/esm2015/card/card.module.js +23 -12
- package/esm2015/checkbox/checkbox-module.js +13 -8
- package/esm2015/checkbox/checkbox-required-validator.js +12 -8
- package/esm2015/checkbox/checkbox.js +61 -44
- package/esm2015/core/common-behaviors/color.js +2 -5
- package/esm2015/core/common-behaviors/common-module.js +17 -11
- package/esm2015/core/common-behaviors/disabled.js +1 -1
- package/esm2015/core/common-behaviors/tabindex.js +4 -13
- package/esm2015/core/error/error-options.js +12 -8
- package/esm2015/core/formatters/date/formatter.js +13 -10
- package/esm2015/core/formatters/index.js +13 -8
- package/esm2015/core/formatters/number/formatter.js +16 -10
- package/esm2015/core/forms/forms-module.js +20 -13
- package/esm2015/core/forms/forms.directive.js +32 -29
- package/esm2015/core/highlight/highlight.pipe.js +8 -4
- package/esm2015/core/highlight/index.js +13 -8
- package/esm2015/core/line/line.js +22 -14
- package/esm2015/core/option/action.js +131 -0
- package/esm2015/core/option/index.js +2 -1
- package/esm2015/core/option/optgroup.js +22 -19
- package/esm2015/core/option/option-module.js +14 -8
- package/esm2015/core/option/option.js +44 -35
- package/esm2015/core/overlay/overlay-position-map.js +16 -18
- package/esm2015/core/pop-up/constants.js +34 -0
- package/esm2015/core/pop-up/index.js +4 -0
- package/esm2015/core/pop-up/pop-up-trigger.js +241 -0
- package/esm2015/core/pop-up/pop-up.js +87 -0
- package/esm2015/core/ptsecurity-mosaic-core.js +1 -2
- package/esm2015/core/public-api.js +2 -1
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +25 -21
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +13 -8
- package/esm2015/core/services/measure-scrollbar.service.js +12 -12
- package/esm2015/datepicker/calendar-body.component.js +39 -32
- package/esm2015/datepicker/calendar.component.js +92 -58
- package/esm2015/datepicker/datepicker-input.directive.js +92 -61
- package/esm2015/datepicker/datepicker-intl.js +7 -5
- package/esm2015/datepicker/datepicker-module.js +89 -48
- package/esm2015/datepicker/datepicker-toggle.component.js +44 -32
- package/esm2015/datepicker/datepicker.component.js +88 -63
- package/esm2015/datepicker/month-view.component.js +48 -29
- package/esm2015/datepicker/multi-year-view.component.js +40 -27
- package/esm2015/datepicker/year-view.component.js +45 -28
- package/esm2015/design-tokens/tokens.js +57 -16
- package/esm2015/divider/divider.component.js +24 -20
- package/esm2015/divider/divider.module.js +13 -8
- package/esm2015/dropdown/dropdown-content.directive.js +13 -15
- package/esm2015/dropdown/dropdown-item.component.js +40 -30
- package/esm2015/dropdown/dropdown-trigger.directive.js +75 -67
- package/esm2015/dropdown/dropdown.component.js +63 -38
- package/esm2015/dropdown/dropdown.module.js +40 -23
- package/esm2015/form-field/cleaner.js +20 -11
- package/esm2015/form-field/form-field.js +77 -53
- package/esm2015/form-field/form-field.module.js +41 -24
- package/esm2015/form-field/hint.js +16 -13
- package/esm2015/form-field/prefix.js +10 -6
- package/esm2015/form-field/stepper.js +22 -11
- package/esm2015/form-field/suffix.js +10 -6
- package/esm2015/icon/icon.component.js +27 -22
- package/esm2015/icon/icon.module.js +31 -18
- package/esm2015/input/input-number-validators.js +48 -29
- package/esm2015/input/input-number.js +42 -28
- package/esm2015/input/input.js +94 -52
- package/esm2015/input/input.module.js +13 -8
- package/esm2015/link/link.component.js +38 -34
- package/esm2015/link/link.module.js +20 -11
- package/esm2015/list/list-selection.component.js +224 -122
- package/esm2015/list/list.component.js +35 -32
- package/esm2015/list/list.module.js +47 -25
- package/esm2015/modal/css-unit.pipe.js +10 -6
- package/esm2015/modal/modal-control.service.js +11 -8
- package/esm2015/modal/modal.component.js +107 -61
- package/esm2015/modal/modal.directive.js +43 -30
- package/esm2015/modal/modal.module.js +59 -31
- package/esm2015/modal/modal.service.js +9 -9
- package/esm2015/modal/ptsecurity-mosaic-modal.js +1 -3
- package/esm2015/navbar/navbar-item.component.js +111 -95
- package/esm2015/navbar/navbar.component.js +40 -30
- package/esm2015/navbar/navbar.module.js +66 -35
- package/esm2015/navbar/ptsecurity-mosaic-navbar.js +1 -2
- package/esm2015/navbar/vertical-navbar.component.js +68 -46
- package/esm2015/popover/popover-confirm.component.js +115 -0
- package/esm2015/popover/popover.component.js +180 -587
- package/esm2015/popover/popover.module.js +18 -12
- package/esm2015/popover/public-api.js +2 -1
- package/esm2015/progress-bar/progress-bar.component.js +26 -24
- package/esm2015/progress-bar/progress-bar.module.js +24 -15
- package/esm2015/progress-spinner/progress-spinner.component.js +26 -24
- package/esm2015/progress-spinner/progress-spinner.module.js +24 -15
- package/esm2015/radio/radio.component.js +87 -67
- package/esm2015/radio/radio.module.js +13 -8
- package/esm2015/select/select.component.js +181 -105
- package/esm2015/select/select.module.js +54 -28
- package/esm2015/sidebar/ptsecurity-mosaic-sidebar.js +1 -2
- package/esm2015/sidebar/sidebar.component.js +61 -50
- package/esm2015/sidebar/sidebar.module.js +25 -16
- package/esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js +1 -2
- package/esm2015/sidepanel/sidepanel-container.component.js +46 -40
- package/esm2015/sidepanel/sidepanel-directives.js +87 -57
- package/esm2015/sidepanel/sidepanel.module.js +63 -30
- package/esm2015/sidepanel/sidepanel.service.js +20 -12
- package/esm2015/splitter/splitter.component.js +62 -64
- package/esm2015/splitter/splitter.module.js +32 -19
- package/esm2015/table/table.component.js +13 -9
- package/esm2015/table/table.module.js +23 -12
- package/esm2015/tabs/paginated-tab-header.js +20 -18
- package/esm2015/tabs/ptsecurity-mosaic-tabs.js +1 -6
- package/esm2015/tabs/tab-body.component.js +52 -42
- package/esm2015/tabs/tab-content.directive.js +8 -8
- package/esm2015/tabs/tab-group.component.js +145 -74
- package/esm2015/tabs/tab-header.component.js +50 -36
- package/esm2015/tabs/tab-label-wrapper.directive.js +30 -16
- package/esm2015/tabs/tab-label.directive.js +11 -7
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +46 -46
- package/esm2015/tabs/tab.component.js +67 -33
- package/esm2015/tabs/tabs.module.js +87 -45
- package/esm2015/tags/tag-input.js +48 -34
- package/esm2015/tags/tag-list.component.js +93 -56
- package/esm2015/tags/tag.component.js +90 -73
- package/esm2015/tags/tag.module.js +46 -29
- package/esm2015/textarea/textarea.component.js +70 -41
- package/esm2015/textarea/textarea.module.js +13 -8
- package/esm2015/timepicker/timepicker.directive.js +64 -52
- package/esm2015/timepicker/timepicker.module.js +26 -13
- package/esm2015/toggle/toggle.component.js +65 -47
- package/esm2015/toggle/toggle.module.js +13 -8
- package/esm2015/tooltip/tooltip.animations.js +19 -0
- package/esm2015/tooltip/tooltip.component.js +239 -555
- package/esm2015/tooltip/tooltip.module.js +38 -11
- package/esm2015/tree/control/base-tree-control.js +60 -0
- package/esm2015/tree/control/flat-tree-control.js +123 -0
- package/esm2015/tree/control/nested-tree-control.js +41 -0
- package/esm2015/tree/control/tree-control.js +2 -0
- package/esm2015/tree/data-source/flat-data-source.js +1 -1
- package/esm2015/tree/node.js +31 -0
- package/esm2015/tree/outlet.js +15 -0
- package/esm2015/tree/padding.directive.js +98 -25
- package/esm2015/tree/public-api.js +9 -2
- package/esm2015/tree/toggle.js +65 -70
- package/esm2015/tree/tree-base.js +243 -0
- package/esm2015/tree/tree-errors.js +36 -0
- package/esm2015/tree/tree-option.component.js +102 -56
- package/esm2015/tree/tree-selection.component.js +180 -115
- package/esm2015/tree/tree.js +23 -0
- package/esm2015/tree/tree.module.js +38 -12
- package/esm2015/tree-select/tree-select.component.js +153 -85
- package/esm2015/tree-select/tree-select.module.js +33 -18
- package/fesm2015/ptsecurity-mosaic-autocomplete.js +140 -102
- package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.js +87 -63
- package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button.js +86 -76
- package/fesm2015/ptsecurity-mosaic-button.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-card.js +54 -42
- package/fesm2015/ptsecurity-mosaic-card.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.js +82 -59
- package/fesm2015/ptsecurity-mosaic-checkbox.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.js +758 -239
- package/fesm2015/ptsecurity-mosaic-core.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.js +544 -376
- package/fesm2015/ptsecurity-mosaic-datepicker.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.js +57 -16
- package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-divider.js +34 -26
- package/fesm2015/ptsecurity-mosaic-divider.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.js +219 -171
- package/fesm2015/ptsecurity-mosaic-dropdown.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.js +184 -119
- package/fesm2015/ptsecurity-mosaic-form-field.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-icon.js +56 -39
- package/fesm2015/ptsecurity-mosaic-icon.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.js +191 -116
- package/fesm2015/ptsecurity-mosaic-input.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-link.js +57 -45
- package/fesm2015/ptsecurity-mosaic-link.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-list.js +301 -177
- package/fesm2015/ptsecurity-mosaic-list.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-modal.js +243 -159
- package/fesm2015/ptsecurity-mosaic-modal.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-navbar.js +280 -205
- package/fesm2015/ptsecurity-mosaic-navbar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-popover.js +297 -597
- package/fesm2015/ptsecurity-mosaic-popover.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.js +48 -38
- package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js +48 -38
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-radio.js +99 -76
- package/fesm2015/ptsecurity-mosaic-radio.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.js +236 -136
- package/fesm2015/ptsecurity-mosaic-select.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.js +85 -66
- package/fesm2015/ptsecurity-mosaic-sidebar.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.js +207 -139
- package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-splitter.js +92 -82
- package/fesm2015/ptsecurity-mosaic-splitter.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-table.js +33 -19
- package/fesm2015/ptsecurity-mosaic-table.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tabs.js +557 -387
- package/fesm2015/ptsecurity-mosaic-tabs.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.js +273 -192
- package/fesm2015/ptsecurity-mosaic-tags.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-textarea.js +83 -50
- package/fesm2015/ptsecurity-mosaic-textarea.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.js +87 -64
- package/fesm2015/ptsecurity-mosaic-timepicker.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toggle.js +77 -55
- package/fesm2015/ptsecurity-mosaic-toggle.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.js +293 -566
- package/fesm2015/ptsecurity-mosaic-tooltip.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.js +188 -106
- package/fesm2015/ptsecurity-mosaic-tree-select.js.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree.js +1001 -279
- package/fesm2015/ptsecurity-mosaic-tree.js.map +1 -1
- package/form-field/cleaner.d.ts +5 -0
- package/form-field/form-field.d.ts +5 -0
- package/form-field/form-field.module.d.ts +12 -0
- package/form-field/hint.d.ts +3 -0
- package/form-field/package.json +0 -1
- package/form-field/prefix.d.ts +3 -0
- package/form-field/ptsecurity-mosaic-form-field.d.ts +1 -0
- package/form-field/stepper.d.ts +3 -0
- package/form-field/suffix.d.ts +3 -0
- package/icon/icon.component.d.ts +5 -0
- package/icon/icon.module.d.ts +8 -0
- package/icon/package.json +0 -1
- package/icon/ptsecurity-mosaic-icon.d.ts +1 -0
- package/input/input-number-validators.d.ts +7 -2
- package/input/input-number.d.ts +3 -0
- package/input/input.d.ts +5 -0
- package/input/input.module.d.ts +11 -0
- package/input/package.json +0 -1
- package/input/ptsecurity-mosaic-input.d.ts +1 -0
- package/link/link.component.d.ts +3 -0
- package/link/link.module.d.ts +7 -0
- package/link/package.json +0 -1
- package/link/ptsecurity-mosaic-link.d.ts +1 -0
- package/list/list-selection.component.d.ts +30 -3
- package/list/list.component.d.ts +5 -0
- package/list/list.module.d.ts +9 -0
- package/list/package.json +0 -1
- package/list/ptsecurity-mosaic-list.d.ts +1 -0
- package/modal/css-unit.pipe.d.ts +3 -0
- package/modal/modal-control.service.d.ts +3 -0
- package/modal/modal.component.d.ts +5 -0
- package/modal/modal.directive.d.ts +9 -0
- package/modal/modal.module.d.ts +12 -0
- package/modal/modal.service.d.ts +3 -0
- package/modal/package.json +0 -1
- package/modal/ptsecurity-mosaic-modal.d.ts +1 -2
- package/navbar/navbar-item.component.d.ts +13 -0
- package/navbar/navbar.component.d.ts +5 -0
- package/navbar/navbar.module.d.ts +11 -0
- package/navbar/package.json +0 -1
- package/navbar/ptsecurity-mosaic-navbar.d.ts +1 -1
- package/navbar/vertical-navbar.component.d.ts +5 -0
- package/package.json +8 -9
- package/popover/package.json +0 -1
- package/popover/popover-confirm.component.d.ts +33 -0
- package/popover/popover.component.d.ts +50 -136
- package/popover/popover.module.d.ts +9 -0
- package/popover/ptsecurity-mosaic-popover.d.ts +1 -0
- package/popover/public-api.d.ts +1 -0
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/prebuilt-visual/default-visual.css +1 -0
- package/progress-bar/package.json +0 -1
- package/progress-bar/progress-bar.component.d.ts +3 -0
- package/progress-bar/progress-bar.module.d.ts +7 -0
- package/progress-bar/ptsecurity-mosaic-progress-bar.d.ts +1 -0
- package/progress-spinner/package.json +0 -1
- package/progress-spinner/progress-spinner.component.d.ts +3 -0
- package/progress-spinner/progress-spinner.module.d.ts +7 -0
- package/progress-spinner/ptsecurity-mosaic-progress-spinner.d.ts +1 -0
- package/ptsecurity-mosaic.d.ts +1 -0
- package/radio/package.json +0 -1
- package/radio/ptsecurity-mosaic-radio.d.ts +1 -0
- package/radio/radio.component.d.ts +5 -0
- package/radio/radio.module.d.ts +8 -0
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +6 -3
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
- package/select/package.json +0 -1
- package/select/ptsecurity-mosaic-select.d.ts +1 -0
- package/select/select.component.d.ts +11 -7
- package/select/select.module.d.ts +11 -0
- package/sidebar/package.json +0 -1
- package/sidebar/ptsecurity-mosaic-sidebar.d.ts +1 -1
- package/sidebar/sidebar.component.d.ts +7 -0
- package/sidebar/sidebar.module.d.ts +6 -0
- package/sidepanel/package.json +0 -1
- package/sidepanel/ptsecurity-mosaic-sidepanel.d.ts +1 -1
- package/sidepanel/sidepanel-container.component.d.ts +3 -0
- package/sidepanel/sidepanel-directives.d.ts +13 -0
- package/sidepanel/sidepanel.module.d.ts +13 -0
- package/sidepanel/sidepanel.service.d.ts +3 -0
- package/splitter/package.json +0 -1
- package/splitter/ptsecurity-mosaic-splitter.d.ts +1 -0
- package/splitter/splitter.component.d.ts +7 -0
- package/splitter/splitter.module.d.ts +7 -0
- package/table/package.json +0 -1
- package/table/ptsecurity-mosaic-table.d.ts +1 -0
- package/table/table.component.d.ts +3 -0
- package/table/table.module.d.ts +8 -0
- package/tabs/package.json +0 -1
- package/tabs/paginated-tab-header.d.ts +3 -0
- package/tabs/ptsecurity-mosaic-tabs.d.ts +1 -5
- package/tabs/tab-body.component.d.ts +5 -0
- package/tabs/tab-content.directive.d.ts +3 -0
- package/tabs/tab-group.component.d.ts +24 -4
- package/tabs/tab-header.component.d.ts +3 -0
- package/tabs/tab-label-wrapper.directive.d.ts +9 -0
- package/tabs/tab-label.directive.d.ts +3 -0
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +5 -0
- package/tabs/tab.component.d.ts +12 -3
- package/tabs/tabs.module.d.ts +18 -0
- package/tags/package.json +0 -1
- package/tags/ptsecurity-mosaic-tags.d.ts +1 -0
- package/tags/tag-input.d.ts +3 -0
- package/tags/tag-list.component.d.ts +3 -0
- package/tags/tag.component.d.ts +9 -0
- package/tags/tag.module.d.ts +9 -0
- package/textarea/package.json +0 -1
- package/textarea/ptsecurity-mosaic-textarea.d.ts +1 -0
- package/textarea/textarea.component.d.ts +3 -0
- package/textarea/textarea.module.d.ts +9 -0
- package/timepicker/package.json +0 -1
- package/timepicker/ptsecurity-mosaic-timepicker.d.ts +1 -0
- package/timepicker/timepicker.directive.d.ts +5 -2
- package/timepicker/timepicker.module.d.ts +9 -0
- package/toggle/package.json +0 -1
- package/toggle/ptsecurity-mosaic-toggle.d.ts +1 -0
- package/toggle/toggle.component.d.ts +3 -0
- package/toggle/toggle.module.d.ts +8 -0
- package/tooltip/package.json +0 -1
- package/tooltip/ptsecurity-mosaic-tooltip.d.ts +1 -0
- package/tooltip/tooltip.animations.d.ts +8 -0
- package/tooltip/tooltip.component.d.ts +74 -134
- package/tooltip/tooltip.module.d.ts +7 -0
- package/tree/control/base-tree-control.d.ts +40 -0
- package/tree/control/flat-tree-control.d.ts +48 -0
- package/tree/control/nested-tree-control.d.ts +19 -0
- package/tree/control/tree-control.d.ts +44 -0
- package/tree/data-source/flat-data-source.d.ts +2 -1
- package/tree/node.d.ts +34 -0
- package/tree/outlet.d.ts +9 -0
- package/tree/package.json +0 -1
- package/tree/padding.directive.d.ts +36 -5
- package/tree/ptsecurity-mosaic-tree.d.ts +1 -0
- package/tree/public-api.d.ts +8 -1
- package/tree/toggle.d.ts +20 -15
- package/tree/tree-base.d.ts +97 -0
- package/tree/tree-errors.d.ts +25 -0
- package/tree/tree-option.component.d.ts +15 -4
- package/tree/tree-selection.component.d.ts +46 -24
- package/tree/tree.d.ts +6 -0
- package/tree/tree.module.d.ts +14 -0
- package/tree-select/package.json +0 -1
- package/tree-select/ptsecurity-mosaic-tree-select.d.ts +1 -0
- package/tree-select/tree-select.component.d.ts +8 -8
- package/tree-select/tree-select.module.d.ts +11 -0
- package/autocomplete/ptsecurity-mosaic-autocomplete.metadata.json +0 -1
- package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-autocomplete.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-button-toggle.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-button.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-card.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-card.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-checkbox.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-core.umd.min.js +0 -17
- package/bundles/ptsecurity-mosaic-core.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-datepicker.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-design-tokens.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-divider.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-divider.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.min.js +0 -17
- package/bundles/ptsecurity-mosaic-dropdown.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.min.js +0 -17
- package/bundles/ptsecurity-mosaic-form-field.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-icon.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-icon.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-input.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-input.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-link.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-link.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-list.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-list.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-modal.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-modal.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-navbar.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-popover.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-popover.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-progress-bar.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-radio.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-radio.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-select.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-select.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-sidebar.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-sidepanel.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-splitter.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-table.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-table.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tabs.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tags.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tags.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-textarea.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic-timepicker.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-toggle.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tooltip.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tree-select.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree.umd.min.js +0 -16
- package/bundles/ptsecurity-mosaic-tree.umd.min.js.map +0 -1
- package/bundles/ptsecurity-mosaic.umd.min.js +0 -2
- package/bundles/ptsecurity-mosaic.umd.min.js.map +0 -1
- package/button/ptsecurity-mosaic-button.metadata.json +0 -1
- package/button-toggle/ptsecurity-mosaic-button-toggle.metadata.json +0 -1
- package/card/ptsecurity-mosaic-card.metadata.json +0 -1
- package/checkbox/ptsecurity-mosaic-checkbox.metadata.json +0 -1
- package/core/ptsecurity-mosaic-core.metadata.json +0 -1
- package/datepicker/ptsecurity-mosaic-datepicker.metadata.json +0 -1
- package/design-tokens/ptsecurity-mosaic-design-tokens.metadata.json +0 -1
- package/divider/ptsecurity-mosaic-divider.metadata.json +0 -1
- package/dropdown/ptsecurity-mosaic-dropdown.metadata.json +0 -1
- package/esm2015/tree/node.directive.js +0 -15
- package/form-field/ptsecurity-mosaic-form-field.metadata.json +0 -1
- package/icon/ptsecurity-mosaic-icon.metadata.json +0 -1
- package/input/ptsecurity-mosaic-input.metadata.json +0 -1
- package/link/ptsecurity-mosaic-link.metadata.json +0 -1
- package/list/ptsecurity-mosaic-list.metadata.json +0 -1
- package/modal/ptsecurity-mosaic-modal.metadata.json +0 -1
- package/navbar/ptsecurity-mosaic-navbar.metadata.json +0 -1
- package/popover/ptsecurity-mosaic-popover.metadata.json +0 -1
- package/progress-bar/ptsecurity-mosaic-progress-bar.metadata.json +0 -1
- package/progress-spinner/ptsecurity-mosaic-progress-spinner.metadata.json +0 -1
- package/ptsecurity-mosaic.metadata.json +0 -1
- package/radio/ptsecurity-mosaic-radio.metadata.json +0 -1
- package/select/ptsecurity-mosaic-select.metadata.json +0 -1
- package/sidebar/ptsecurity-mosaic-sidebar.metadata.json +0 -1
- package/sidepanel/ptsecurity-mosaic-sidepanel.metadata.json +0 -1
- package/splitter/ptsecurity-mosaic-splitter.metadata.json +0 -1
- package/table/ptsecurity-mosaic-table.metadata.json +0 -1
- package/tabs/ptsecurity-mosaic-tabs.metadata.json +0 -1
- package/tags/ptsecurity-mosaic-tags.metadata.json +0 -1
- package/textarea/ptsecurity-mosaic-textarea.metadata.json +0 -1
- package/timepicker/ptsecurity-mosaic-timepicker.metadata.json +0 -1
- package/toggle/ptsecurity-mosaic-toggle.metadata.json +0 -1
- package/tooltip/ptsecurity-mosaic-tooltip.metadata.json +0 -1
- package/tree/node.directive.d.ts +0 -4
- package/tree/ptsecurity-mosaic-tree.metadata.json +0 -1
- package/tree-select/ptsecurity-mosaic-tree-select.metadata.json +0 -1
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/common'), require('@angular/core'), require('@ptsecurity/mosaic/button'), require('@ptsecurity/mosaic/icon'), require('rxjs/operators'), require('@ptsecurity/cdk/datetime'), require('rxjs'), require('@
|
3
|
-
typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/datepicker', ['exports', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/common', '@angular/core', '@ptsecurity/mosaic/button', '@ptsecurity/mosaic/icon', 'rxjs/operators', '@ptsecurity/cdk/datetime', 'rxjs', '@
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.datepicker = {}), global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.common, global.ng.core, global.ptsecurity.mosaic.button, global.ptsecurity.mosaic.icon, global.rxjs.operators, global.mc.cdk.datetime, global.rxjs, global.
|
5
|
-
}(this, (function (exports, a11y,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/portal'), require('@angular/common'), require('@angular/core'), require('@ptsecurity/mosaic/button'), require('@ptsecurity/mosaic/icon'), require('rxjs/operators'), require('@ptsecurity/cdk/datetime'), require('rxjs'), require('@ptsecurity/cdk/keycodes'), require('@angular/cdk/bidi'), require('@angular/cdk/coercion'), require('@angular/forms'), require('@ptsecurity/mosaic/core'), require('@ptsecurity/mosaic/form-field'), require('@angular/animations')) :
|
3
|
+
typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/datepicker', ['exports', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/portal', '@angular/common', '@angular/core', '@ptsecurity/mosaic/button', '@ptsecurity/mosaic/icon', 'rxjs/operators', '@ptsecurity/cdk/datetime', 'rxjs', '@ptsecurity/cdk/keycodes', '@angular/cdk/bidi', '@angular/cdk/coercion', '@angular/forms', '@ptsecurity/mosaic/core', '@ptsecurity/mosaic/form-field', '@angular/animations'], factory) :
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.datepicker = {}), global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.portal, global.ng.common, global.ng.core, global.ptsecurity.mosaic.button, global.ptsecurity.mosaic.icon, global.rxjs.operators, global.mc.cdk.datetime, global.rxjs, global.mc.cdk.keycodes, global.ng.cdk.bidi, global.ng.cdk.coercion, global.ng.forms, global.ptsecurity.mosaic.core, global.ptsecurity.mosaic["form-field"], global.ng.animations));
|
5
|
+
})(this, (function (exports, a11y, i3$1, i8, i1, i0, i3, i4, operators, i1$1, rxjs, keycodes, i2, coercion, forms, core, formField, animations) { 'use strict';
|
6
6
|
|
7
7
|
function _interopNamespace(e) {
|
8
8
|
if (e && e.__esModule) return e;
|
@@ -13,18 +13,23 @@
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
15
15
|
enumerable: true,
|
16
|
-
get: function () {
|
17
|
-
return e[k];
|
18
|
-
}
|
16
|
+
get: function () { return e[k]; }
|
19
17
|
});
|
20
18
|
}
|
21
19
|
});
|
22
20
|
}
|
23
|
-
n[
|
21
|
+
n["default"] = e;
|
24
22
|
return Object.freeze(n);
|
25
23
|
}
|
26
24
|
|
25
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
26
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
27
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
27
28
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
29
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
30
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
31
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
32
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
28
33
|
|
29
34
|
// tslint:disable:no-magic-numbers
|
30
35
|
/**
|
@@ -102,37 +107,42 @@
|
|
102
107
|
};
|
103
108
|
return McCalendarBody;
|
104
109
|
}());
|
105
|
-
McCalendarBody
|
106
|
-
{ type:
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
110
|
+
/** @nocollapse */ McCalendarBody.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCalendarBody, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
111
|
+
/** @nocollapse */ McCalendarBody.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McCalendarBody, selector: "[mc-calendar-body]", inputs: { label: "label", rows: "rows", todayValue: "todayValue", selectedValue: "selectedValue", labelMinRequiredCells: "labelMinRequiredCells", numCols: "numCols", activeCell: "activeCell", cellAspectRatio: "cellAspectRatio" }, outputs: { selectedValueChange: "selectedValueChange" }, host: { attributes: { "role": "grid", "aria-readonly": "true" }, classAttribute: "mc-calendar__body" }, exportAs: ["mcCalendarBody"], usesOnChanges: true, ngImport: i0__namespace, template: "<!--\n If there's not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\n-->\n<tr *ngIf=\"firstRowOffset < labelMinRequiredCells\">\n <td class=\"mc-calendar__body-label\" [attr.colspan]=\"numCols\">\n {{ label }}\n </td>\n</tr>\n\n<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\n percentage of the width (a variant of the trick described here:\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td *ngIf=\"rowIndex === 0 && firstRowOffset\"\n class=\"mc-calendar__body-label\"\n [attr.colspan]=\"firstRowOffset\">\n {{ firstRowOffset >= labelMinRequiredCells ? label : '' }}\n </td>\n <td *ngFor=\"let item of row; let colIndex = index\"\n class=\"mc-calendar__body-cell\"\n [ngClass]=\"item.cssClasses!\"\n [tabindex]=\"isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [class.mc-calendar__body_disabled]=\"!item.enabled\"\n [class.mc-calendar__body_active]=\"isActiveCell(rowIndex, colIndex)\"\n (click)=\"cellClicked(item)\"\n [style.width]=\"cellWidth\"\n [style.paddingTop]=\"cellPadding\"\n [style.paddingBottom]=\"cellPadding\">\n <div class=\"mc-calendar__body-cell-content\"\n [class.mc-selected]=\"selectedValue === item.value\"\n [class.mc-calendar__body-today]=\"todayValue === item.value\">\n {{ item.displayValue }}\n </div>\n </td>\n</tr>\n", styles: [".mc-calendar__body{min-width:calc(7 * 32px);min-width:calc(7 * var(--mc-datepicker-body-size-cell-min-size, 32px))}.mc-calendar__body-label{text-align:left;padding:8px 28px 12px 12px;padding:var(--mc-datepicker-body-size-label-paddings, 8px 28px 12px 12px)}.mc-calendar__body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer}.mc-calendar__body_disabled{cursor:default}.mc-calendar__body-cell-content{position:absolute;top:5%;top:var(--mc-datepicker-body-size-cell-margin, 5%);left:5%;left:var(--mc-datepicker-body-size-cell-margin, 5%);padding:8px;padding:var(--mc-datepicker-body-size-cell-padding, 8px);display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-width:var(--mc-datepicker-body-size-cell-border-width, 1px);border-style:solid}.cdk-high-contrast-active .mc-calendar__body-cell-content{border:none}.cdk-high-contrast-active :host .mc-calendar__body-cell-content{border:none}mc-month-view .mc-calendar__body-cell-content{justify-content:flex-end}mc-multi-year-view .mc-calendar__body-cell-content,mc-year-view .mc-calendar__body-cell-content{justify-content:center}.cdk-high-contrast-active .mc-datepicker__popup:not(:empty),.cdk-high-contrast-active .mc-selected{outline:solid 1px}.cdk-high-contrast-active .mc-calendar__body-today{outline:dotted 1px}.cdk-high-contrast-active :host .mc-datepicker__popup:not(:empty),.cdk-high-contrast-active :host .mc-selected{outline:solid 1px}.cdk-high-contrast-active :host .mc-calendar__body-today{outline:dotted 1px}[dir=rtl] .mc-calendar__body-label{text-align:right}\n"], directives: [{ type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
112
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCalendarBody, decorators: [{
|
113
|
+
type: i0.Component,
|
114
|
+
args: [{
|
115
|
+
selector: '[mc-calendar-body]',
|
116
|
+
exportAs: 'mcCalendarBody',
|
117
|
+
templateUrl: 'calendar-body.html',
|
118
|
+
styleUrls: ['calendar-body.scss'],
|
119
|
+
host: {
|
120
|
+
class: 'mc-calendar__body',
|
121
|
+
role: 'grid',
|
122
|
+
'aria-readonly': 'true'
|
123
|
+
},
|
124
|
+
encapsulation: i0.ViewEncapsulation.None,
|
125
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
126
|
+
}]
|
127
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { label: [{
|
128
|
+
type: i0.Input
|
129
|
+
}], rows: [{
|
130
|
+
type: i0.Input
|
131
|
+
}], todayValue: [{
|
132
|
+
type: i0.Input
|
133
|
+
}], selectedValue: [{
|
134
|
+
type: i0.Input
|
135
|
+
}], labelMinRequiredCells: [{
|
136
|
+
type: i0.Input
|
137
|
+
}], numCols: [{
|
138
|
+
type: i0.Input
|
139
|
+
}], activeCell: [{
|
140
|
+
type: i0.Input
|
141
|
+
}], cellAspectRatio: [{
|
142
|
+
type: i0.Input
|
143
|
+
}], selectedValueChange: [{
|
144
|
+
type: i0.Output
|
145
|
+
}] } });
|
136
146
|
|
137
147
|
/** @docs-private */
|
138
148
|
function createMissingDateImplError(provider) {
|
@@ -140,43 +150,6 @@
|
|
140
150
|
"modules at your application root or provide a custom implementation or use exists ones.");
|
141
151
|
}
|
142
152
|
|
143
|
-
/** Datepicker data that requires internationalization. */
|
144
|
-
var McDatepickerIntl = /** @class */ (function () {
|
145
|
-
function McDatepickerIntl() {
|
146
|
-
/**
|
147
|
-
* Stream that emits whenever the labels here are changed. Use this to notify
|
148
|
-
* components if the labels have changed after initialization.
|
149
|
-
*/
|
150
|
-
this.changes = new rxjs.Subject();
|
151
|
-
/** A label for the calendar popup (used by screen readers). */
|
152
|
-
this.calendarLabel = 'Calendar';
|
153
|
-
/** A label for the button used to open the calendar popup (used by screen readers). */
|
154
|
-
this.openCalendarLabel = 'Open calendar';
|
155
|
-
/** A label for the previous month button (used by screen readers). */
|
156
|
-
this.prevMonthLabel = 'Previous month';
|
157
|
-
/** A label for the next month button (used by screen readers). */
|
158
|
-
this.nextMonthLabel = 'Next month';
|
159
|
-
/** A label for the previous year button (used by screen readers). */
|
160
|
-
this.prevYearLabel = 'Previous year';
|
161
|
-
/** A label for the next year button (used by screen readers). */
|
162
|
-
this.nextYearLabel = 'Next year';
|
163
|
-
/** A label for the previous multi-year button (used by screen readers). */
|
164
|
-
this.prevMultiYearLabel = 'Previous 20 years';
|
165
|
-
/** A label for the next multi-year button (used by screen readers). */
|
166
|
-
this.nextMultiYearLabel = 'Next 20 years';
|
167
|
-
/** A label for the 'switch to month view' button (used by screen readers). */
|
168
|
-
this.switchToMonthViewLabel = 'Choose date';
|
169
|
-
/** A label for the 'switch to year view' button (used by screen readers). */
|
170
|
-
this.switchToMultiYearViewLabel = 'Choose month and year';
|
171
|
-
}
|
172
|
-
return McDatepickerIntl;
|
173
|
-
}());
|
174
|
-
/** @nocollapse */ McDatepickerIntl.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function McDatepickerIntl_Factory() { return new McDatepickerIntl(); }, token: McDatepickerIntl, providedIn: "root" });
|
175
|
-
McDatepickerIntl.decorators = [
|
176
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
177
|
-
];
|
178
|
-
|
179
|
-
// tslint:disable:no-magic-numbers
|
180
153
|
var DAYS_PER_WEEK = 7;
|
181
154
|
/**
|
182
155
|
* An internal component used to display a single month in the datepicker.
|
@@ -402,36 +375,51 @@
|
|
402
375
|
};
|
403
376
|
return McMonthView;
|
404
377
|
}());
|
405
|
-
McMonthView
|
406
|
-
{ type:
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
378
|
+
/** @nocollapse */ McMonthView.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMonthView, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1$1.MC_DATE_FORMATS, optional: true }, { token: i1__namespace$1.DateAdapter, optional: true }, { token: i2__namespace.Directionality, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
379
|
+
/** @nocollapse */ McMonthView.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McMonthView, selector: "mc-month-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", userSelection: "userSelection", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "mcCalendarBody", first: true, predicate: McCalendarBody, descendants: true }], exportAs: ["mcMonthView"], ngImport: i0__namespace, template: "<table class=\"mc-calendar__table\">\n <thead class=\"mc-calendar__table-header\">\n <tr>\n <th *ngFor=\"let day of weekdays\" [attr.aria-label]=\"day.long\">{{day.narrow}}</th>\n </tr>\n <tr>\n <th class=\"mc-calendar__table-header-divider\" colspan=\"7\"></th>\n </tr>\n </thead>\n <tbody mc-calendar-body\n [label]=\"monthLabel\"\n [rows]=\"weeks\"\n [todayValue]=\"todayDate!\"\n [selectedValue]=\"selectedDate!\"\n [labelMinRequiredCells]=\"3\"\n [activeCell]=\"dateAdapter.getDate(activeDate) - 1\"\n (selectedValueChange)=\"dateSelected($event)\"\n (keydown)=\"handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", components: [{ type: McCalendarBody, selector: "[mc-calendar-body]", inputs: ["label", "rows", "todayValue", "selectedValue", "labelMinRequiredCells", "numCols", "activeCell", "cellAspectRatio"], outputs: ["selectedValueChange"], exportAs: ["mcCalendarBody"] }], directives: [{ type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
380
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMonthView, decorators: [{
|
381
|
+
type: i0.Component,
|
382
|
+
args: [{
|
383
|
+
selector: 'mc-month-view',
|
384
|
+
exportAs: 'mcMonthView',
|
385
|
+
templateUrl: 'month-view.html',
|
386
|
+
encapsulation: i0.ViewEncapsulation.None,
|
387
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
388
|
+
}]
|
389
|
+
}], ctorParameters: function () {
|
390
|
+
return [{ type: i0__namespace.ChangeDetectorRef }, { type: undefined, decorators: [{
|
391
|
+
type: i0.Optional
|
392
|
+
}, {
|
393
|
+
type: i0.Inject,
|
394
|
+
args: [i1$1.MC_DATE_FORMATS]
|
395
|
+
}] }, { type: i1__namespace$1.DateAdapter, decorators: [{
|
396
|
+
type: i0.Optional
|
397
|
+
}] }, { type: i2__namespace.Directionality, decorators: [{
|
398
|
+
type: i0.Optional
|
399
|
+
}] }];
|
400
|
+
}, propDecorators: { activeDate: [{
|
401
|
+
type: i0.Input
|
402
|
+
}], selected: [{
|
403
|
+
type: i0.Input
|
404
|
+
}], minDate: [{
|
405
|
+
type: i0.Input
|
406
|
+
}], maxDate: [{
|
407
|
+
type: i0.Input
|
408
|
+
}], dateFilter: [{
|
409
|
+
type: i0.Input
|
410
|
+
}], dateClass: [{
|
411
|
+
type: i0.Input
|
412
|
+
}], selectedChange: [{
|
413
|
+
type: i0.Output
|
414
|
+
}], userSelection: [{
|
415
|
+
type: i0.Output
|
416
|
+
}], activeDateChange: [{
|
417
|
+
type: i0.Output
|
418
|
+
}], mcCalendarBody: [{
|
419
|
+
type: i0.ViewChild,
|
420
|
+
args: [McCalendarBody, { static: false }]
|
421
|
+
}] } });
|
433
422
|
|
434
|
-
// tslint:disable:no-magic-numbers
|
435
423
|
var yearsPerPage = 24;
|
436
424
|
var yearsPerRow = 4;
|
437
425
|
/**
|
@@ -627,32 +615,43 @@
|
|
627
615
|
};
|
628
616
|
return McMultiYearView;
|
629
617
|
}());
|
630
|
-
McMultiYearView
|
631
|
-
{ type:
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
618
|
+
/** @nocollapse */ McMultiYearView.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMultiYearView, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$1.DateAdapter, optional: true }, { token: i2__namespace.Directionality, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
619
|
+
/** @nocollapse */ McMultiYearView.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McMultiYearView, selector: "mc-multi-year-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "mcCalendarBody", first: true, predicate: McCalendarBody, descendants: true }], exportAs: ["mcMultiYearView"], ngImport: i0__namespace, template: "<table class=\"mc-calendar__table\">\n <thead class=\"mc-calendar__table-header\">\n <tr>\n <th class=\"mc-calendar__table-header-divider\" colspan=\"4\"></th>\n </tr>\n </thead>\n <tbody mc-calendar-body\n [rows]=\"years\"\n [todayValue]=\"todayYear\"\n [selectedValue]=\"selectedYear!\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"getActiveCell()\"\n (selectedValueChange)=\"onYearSelected($event)\"\n (keydown)=\"handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", components: [{ type: McCalendarBody, selector: "[mc-calendar-body]", inputs: ["label", "rows", "todayValue", "selectedValue", "labelMinRequiredCells", "numCols", "activeCell", "cellAspectRatio"], outputs: ["selectedValueChange"], exportAs: ["mcCalendarBody"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
620
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McMultiYearView, decorators: [{
|
621
|
+
type: i0.Component,
|
622
|
+
args: [{
|
623
|
+
selector: 'mc-multi-year-view',
|
624
|
+
exportAs: 'mcMultiYearView',
|
625
|
+
templateUrl: 'multi-year-view.html',
|
626
|
+
encapsulation: i0.ViewEncapsulation.None,
|
627
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
628
|
+
}]
|
629
|
+
}], ctorParameters: function () {
|
630
|
+
return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$1.DateAdapter, decorators: [{
|
631
|
+
type: i0.Optional
|
632
|
+
}] }, { type: i2__namespace.Directionality, decorators: [{
|
633
|
+
type: i0.Optional
|
634
|
+
}] }];
|
635
|
+
}, propDecorators: { activeDate: [{
|
636
|
+
type: i0.Input
|
637
|
+
}], selected: [{
|
638
|
+
type: i0.Input
|
639
|
+
}], minDate: [{
|
640
|
+
type: i0.Input
|
641
|
+
}], maxDate: [{
|
642
|
+
type: i0.Input
|
643
|
+
}], dateFilter: [{
|
644
|
+
type: i0.Input
|
645
|
+
}], selectedChange: [{
|
646
|
+
type: i0.Output
|
647
|
+
}], yearSelected: [{
|
648
|
+
type: i0.Output
|
649
|
+
}], activeDateChange: [{
|
650
|
+
type: i0.Output
|
651
|
+
}], mcCalendarBody: [{
|
652
|
+
type: i0.ViewChild,
|
653
|
+
args: [McCalendarBody, { static: false }]
|
654
|
+
}] } });
|
656
655
|
|
657
656
|
/**
|
658
657
|
* An internal component used to display a single year in the datepicker.
|
@@ -880,33 +879,86 @@
|
|
880
879
|
};
|
881
880
|
return McYearView;
|
882
881
|
}());
|
883
|
-
McYearView
|
884
|
-
|
885
|
-
|
886
|
-
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
882
|
+
/** @nocollapse */ McYearView.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McYearView, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1$1.MC_DATE_FORMATS, optional: true }, { token: i1__namespace$1.DateAdapter, optional: true }, { token: i2__namespace.Directionality, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
883
|
+
/** @nocollapse */ McYearView.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McYearView, selector: "mc-year-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter" }, outputs: { selectedChange: "selectedChange", monthSelected: "monthSelected", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "mcCalendarBody", first: true, predicate: McCalendarBody, descendants: true }], exportAs: ["mcYearView"], ngImport: i0__namespace, template: "<table class=\"mc-calendar__table\">\n <thead class=\"mc-calendar__table-header\">\n <tr>\n <th class=\"mc-calendar__table-header-divider\" colspan=\"4\"></th>\n </tr>\n </thead>\n <tbody mc-calendar-body\n [label]=\"yearLabel\"\n [rows]=\"months\"\n [todayValue]=\"todayMonth!\"\n [selectedValue]=\"selectedMonth!\"\n [labelMinRequiredCells]=\"2\"\n [numCols]=\"4\"\n [cellAspectRatio]=\"4 / 7\"\n [activeCell]=\"dateAdapter.getMonth(activeDate)\"\n (selectedValueChange)=\"onMonthSelected($event)\"\n (keydown)=\"handleCalendarBodyKeydown($event)\">\n </tbody>\n</table>\n", components: [{ type: McCalendarBody, selector: "[mc-calendar-body]", inputs: ["label", "rows", "todayValue", "selectedValue", "labelMinRequiredCells", "numCols", "activeCell", "cellAspectRatio"], outputs: ["selectedValueChange"], exportAs: ["mcCalendarBody"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
884
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McYearView, decorators: [{
|
885
|
+
type: i0.Component,
|
886
|
+
args: [{
|
887
|
+
selector: 'mc-year-view',
|
888
|
+
exportAs: 'mcYearView',
|
889
|
+
templateUrl: 'year-view.html',
|
890
|
+
encapsulation: i0.ViewEncapsulation.None,
|
891
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
892
|
+
}]
|
893
|
+
}], ctorParameters: function () {
|
894
|
+
return [{ type: i0__namespace.ChangeDetectorRef }, { type: undefined, decorators: [{
|
895
|
+
type: i0.Optional
|
896
|
+
}, {
|
897
|
+
type: i0.Inject,
|
898
|
+
args: [i1$1.MC_DATE_FORMATS]
|
899
|
+
}] }, { type: i1__namespace$1.DateAdapter, decorators: [{
|
900
|
+
type: i0.Optional
|
901
|
+
}] }, { type: i2__namespace.Directionality, decorators: [{
|
902
|
+
type: i0.Optional
|
903
|
+
}] }];
|
904
|
+
}, propDecorators: { activeDate: [{
|
905
|
+
type: i0.Input
|
906
|
+
}], selected: [{
|
907
|
+
type: i0.Input
|
908
|
+
}], minDate: [{
|
909
|
+
type: i0.Input
|
910
|
+
}], maxDate: [{
|
911
|
+
type: i0.Input
|
912
|
+
}], dateFilter: [{
|
913
|
+
type: i0.Input
|
914
|
+
}], selectedChange: [{
|
915
|
+
type: i0.Output
|
916
|
+
}], monthSelected: [{
|
917
|
+
type: i0.Output
|
918
|
+
}], activeDateChange: [{
|
919
|
+
type: i0.Output
|
920
|
+
}], mcCalendarBody: [{
|
921
|
+
type: i0.ViewChild,
|
922
|
+
args: [McCalendarBody, { static: false }]
|
923
|
+
}] } });
|
924
|
+
|
925
|
+
/** Datepicker data that requires internationalization. */
|
926
|
+
var McDatepickerIntl = /** @class */ (function () {
|
927
|
+
function McDatepickerIntl() {
|
928
|
+
/**
|
929
|
+
* Stream that emits whenever the labels here are changed. Use this to notify
|
930
|
+
* components if the labels have changed after initialization.
|
931
|
+
*/
|
932
|
+
this.changes = new rxjs.Subject();
|
933
|
+
/** A label for the calendar popup (used by screen readers). */
|
934
|
+
this.calendarLabel = 'Calendar';
|
935
|
+
/** A label for the button used to open the calendar popup (used by screen readers). */
|
936
|
+
this.openCalendarLabel = 'Open calendar';
|
937
|
+
/** A label for the previous month button (used by screen readers). */
|
938
|
+
this.prevMonthLabel = 'Previous month';
|
939
|
+
/** A label for the next month button (used by screen readers). */
|
940
|
+
this.nextMonthLabel = 'Next month';
|
941
|
+
/** A label for the previous year button (used by screen readers). */
|
942
|
+
this.prevYearLabel = 'Previous year';
|
943
|
+
/** A label for the next year button (used by screen readers). */
|
944
|
+
this.nextYearLabel = 'Next year';
|
945
|
+
/** A label for the previous multi-year button (used by screen readers). */
|
946
|
+
this.prevMultiYearLabel = 'Previous 20 years';
|
947
|
+
/** A label for the next multi-year button (used by screen readers). */
|
948
|
+
this.nextMultiYearLabel = 'Next 20 years';
|
949
|
+
/** A label for the 'switch to month view' button (used by screen readers). */
|
950
|
+
this.switchToMonthViewLabel = 'Choose date';
|
951
|
+
/** A label for the 'switch to year view' button (used by screen readers). */
|
952
|
+
this.switchToMultiYearViewLabel = 'Choose month and year';
|
953
|
+
}
|
954
|
+
return McDatepickerIntl;
|
955
|
+
}());
|
956
|
+
/** @nocollapse */ McDatepickerIntl.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerIntl, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
957
|
+
/** @nocollapse */ McDatepickerIntl.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerIntl, providedIn: 'root' });
|
958
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerIntl, decorators: [{
|
959
|
+
type: i0.Injectable,
|
960
|
+
args: [{ providedIn: 'root' }]
|
961
|
+
}] });
|
910
962
|
|
911
963
|
/**
|
912
964
|
* Possible views for the calendar.
|
@@ -1038,26 +1090,33 @@
|
|
1038
1090
|
};
|
1039
1091
|
return McCalendarHeader;
|
1040
1092
|
}());
|
1041
|
-
McCalendarHeader
|
1042
|
-
{ type:
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1093
|
+
/** @nocollapse */ McCalendarHeader.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCalendarHeader, deps: [{ token: McDatepickerIntl }, { token: i0.forwardRef(function () { return McCalendar; }) }, { token: i1__namespace$1.DateAdapter, optional: true }, { token: i1$1.MC_DATE_FORMATS, optional: true }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1094
|
+
/** @nocollapse */ McCalendarHeader.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McCalendarHeader, selector: "mc-calendar-header", host: { classAttribute: "mc-calendar-header" }, exportAs: ["mcCalendarHeader"], ngImport: i0__namespace, template: "<button mc-button\n [tabindex]=\"'-1'\"\n class=\"mc-button_transparent mc-calendar__period-button\"\n (click)=\"currentPeriodClicked()\">\n {{ periodButtonText }}\n\n <i class=\"mc mc-icon\"\n [class.mc-angle-up-M_16]=\"calendar.currentView !== 'month'\"\n [class.mc-angle-down-M_16]=\"calendar.currentView === 'month'\">\n </i>\n</button>\n\n<div class=\"mc-calendar-spacer\"></div>\n\n<button mc-button\n [tabindex]=\"'-1'\"\n class=\"mc-button_transparent mc-calendar__previous-button\"\n [disabled]=\"!previousEnabled()\"\n (click)=\"previousClicked()\">\n\n <i mc-icon=\"mc-angle-left-L_16\"></i>\n</button>\n\n<button mc-button\n [tabindex]=\"'-1'\"\n class=\"mc-button_transparent mc-calendar__next-button\"\n [disabled]=\"!nextEnabled()\"\n (click)=\"nextClicked()\">\n\n <i mc-icon=\"mc-angle-right-L_16\"></i>\n</button>\n", components: [{ type: i3__namespace.McButton, selector: "button[mc-button]", inputs: ["disabled", "color"] }, { type: i4__namespace.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i3__namespace.McButtonCssStyler, selector: "button[mc-button], a[mc-button]" }, { type: i4__namespace.McIconCSSStyler, selector: "[mc-icon]" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
1095
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCalendarHeader, decorators: [{
|
1096
|
+
type: i0.Component,
|
1097
|
+
args: [{
|
1098
|
+
selector: 'mc-calendar-header',
|
1099
|
+
templateUrl: 'calendar-header.html',
|
1100
|
+
exportAs: 'mcCalendarHeader',
|
1101
|
+
host: {
|
1102
|
+
class: 'mc-calendar-header'
|
1103
|
+
},
|
1104
|
+
encapsulation: i0.ViewEncapsulation.None,
|
1105
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
1106
|
+
}]
|
1107
|
+
}], ctorParameters: function () {
|
1108
|
+
return [{ type: McDatepickerIntl }, { type: McCalendar, decorators: [{
|
1109
|
+
type: i0.Inject,
|
1110
|
+
args: [i0.forwardRef(function () { return McCalendar; })]
|
1111
|
+
}] }, { type: i1__namespace$1.DateAdapter, decorators: [{
|
1112
|
+
type: i0.Optional
|
1113
|
+
}] }, { type: undefined, decorators: [{
|
1114
|
+
type: i0.Optional
|
1115
|
+
}, {
|
1116
|
+
type: i0.Inject,
|
1117
|
+
args: [i1$1.MC_DATE_FORMATS]
|
1118
|
+
}] }, { type: i0__namespace.ChangeDetectorRef }];
|
1119
|
+
} });
|
1061
1120
|
/**
|
1062
1121
|
* A calendar that is used as part of the datepicker.
|
1063
1122
|
* @docs-private
|
@@ -1177,7 +1236,7 @@
|
|
1177
1236
|
configurable: true
|
1178
1237
|
});
|
1179
1238
|
McCalendar.prototype.ngAfterContentInit = function () {
|
1180
|
-
this.calendarHeaderPortal = new
|
1239
|
+
this.calendarHeaderPortal = new i8.ComponentPortal(this.headerComponent || McCalendarHeader);
|
1181
1240
|
this.activeDate = this.startAt || this.dateAdapter.today();
|
1182
1241
|
// Assign to the private property since we don't want to move focus on init.
|
1183
1242
|
this._currentView = this.startView;
|
@@ -1249,43 +1308,64 @@
|
|
1249
1308
|
};
|
1250
1309
|
return McCalendar;
|
1251
1310
|
}());
|
1252
|
-
McCalendar
|
1253
|
-
{ type:
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
|
1263
|
-
|
1264
|
-
|
1265
|
-
|
1266
|
-
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
|
1273
|
-
|
1274
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
|
1281
|
-
|
1282
|
-
|
1283
|
-
|
1284
|
-
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1311
|
+
/** @nocollapse */ McCalendar.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCalendar, deps: [{ token: McDatepickerIntl }, { token: i1__namespace$1.DateAdapter, optional: true }, { token: i1$1.MC_DATE_FORMATS, optional: true }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1312
|
+
/** @nocollapse */ McCalendar.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McCalendar, selector: "mc-calendar", inputs: { startAt: "startAt", selected: "selected", minDate: "minDate", maxDate: "maxDate", headerComponent: "headerComponent", startView: "startView", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", monthSelected: "monthSelected", userSelection: "userSelection" }, host: { classAttribute: "mc-calendar" }, viewQueries: [{ propertyName: "monthView", first: true, predicate: McMonthView, descendants: true }, { propertyName: "yearView", first: true, predicate: McYearView, descendants: true }, { propertyName: "multiYearView", first: true, predicate: McMultiYearView, descendants: true }], exportAs: ["mcCalendar"], usesOnChanges: true, ngImport: i0__namespace, template: "<ng-template [cdkPortalOutlet]=\"calendarHeaderPortal\"></ng-template>\n\n<div class=\"mc-calendar__content\" [ngSwitch]=\"currentView\">\n <mc-month-view\n *ngSwitchCase=\"'month'\"\n [(activeDate)]=\"activeDate\"\n [selected]=\"selected\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [dateClass]=\"dateClass\"\n (selectedChange)=\"dateSelected($event!)\"\n (userSelection)=\"userSelected()\">\n </mc-month-view>\n\n <mc-year-view\n *ngSwitchCase=\"'year'\"\n [(activeDate)]=\"activeDate\"\n [selected]=\"selected\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n (monthSelected)=\"monthSelectedInYearView($event)\"\n (selectedChange)=\"goToDateInView($event, 'multi-year')\">\n </mc-year-view>\n\n <mc-multi-year-view\n *ngSwitchCase=\"'multi-year'\"\n [(activeDate)]=\"activeDate\"\n [selected]=\"selected\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n (yearSelected)=\"yearSelectedInMultiYearView($event)\"\n (selectedChange)=\"goToDateInView($event, 'month')\">\n </mc-multi-year-view>\n</div>\n", styles: [".mc-calendar{display:block}.mc-calendar-header{display:flex;padding:16px 8px 12px;padding:var(--mc-datepicker-calendar-size-padding-top, 16px) var(--mc-datepicker-calendar-size-padding-horizontal, 8px) var(--mc-datepicker-calendar-size-padding-blocks, 12px) var(--mc-datepicker-calendar-size-padding-horizontal, 8px)}.mc-calendar__content{padding:0 8px 8px;padding:0 var(--mc-datepicker-calendar-size-padding-horizontal, 8px) var(--mc-datepicker-calendar-size-padding-horizontal, 8px) var(--mc-datepicker-calendar-size-padding-horizontal, 8px);outline:none}.mc-calendar-spacer{flex:1 1 auto}.mc-calendar__period-button{min-width:0}.mc-calendar__period-button .mc-icon{vertical-align:baseline}.mc-calendar__previous-button:after{border-left-width:2px;border-left-width:var(--mc-datepicker-calendar-size-icon-border-width, 2px);transform:translate(2px) rotate(-45deg);transform:var(--mc-datepicker-calendar-size-icon-prev-icon-transform, translateX(2px) rotate(-45deg))}.mc-calendar__next-button:after{border-right-width:2px;border-right-width:var(--mc-datepicker-calendar-size-icon-border-width, 2px);transform:translate(-2px) rotate(45deg);transform:var(--mc-datepicker-calendar-size-icon-nex-icon-transform, translateX(-2px) rotate(45deg))}.mc-calendar__table{border-spacing:0;border-collapse:collapse;width:100%}.mc-calendar__table-header th{text-align:center;height:30px}.mc-calendar__table-header th.mc-calendar__table-header-divider{position:relative;height:calc(12px - 2px);height:calc(var(--mc-datepicker-calendar-size-padding-blocks, 12px) - 2px)}.mc-calendar__table-header th.mc-calendar__table-header-divider:after{content:\"\";position:absolute;top:0;left:calc(-1 * 8px);left:calc(-1 * var(--mc-datepicker-calendar-size-padding-horizontal, 8px));right:calc(-1 * 8px);right:calc(-1 * var(--mc-datepicker-calendar-size-padding-horizontal, 8px));height:1px;height:var(--mc-datepicker-calendar-size-divider-width, 1px)}\n"], components: [{ type: McMonthView, selector: "mc-month-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass"], outputs: ["selectedChange", "userSelection", "activeDateChange"], exportAs: ["mcMonthView"] }, { type: McYearView, selector: "mc-year-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter"], outputs: ["selectedChange", "monthSelected", "activeDateChange"], exportAs: ["mcYearView"] }, { type: McMultiYearView, selector: "mc-multi-year-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter"], outputs: ["selectedChange", "yearSelected", "activeDateChange"], exportAs: ["mcMultiYearView"] }], directives: [{ type: i8__namespace.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { type: i1__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
1313
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McCalendar, decorators: [{
|
1314
|
+
type: i0.Component,
|
1315
|
+
args: [{
|
1316
|
+
selector: 'mc-calendar',
|
1317
|
+
exportAs: 'mcCalendar',
|
1318
|
+
templateUrl: 'calendar.html',
|
1319
|
+
styleUrls: ['calendar.scss'],
|
1320
|
+
host: {
|
1321
|
+
class: 'mc-calendar'
|
1322
|
+
},
|
1323
|
+
encapsulation: i0.ViewEncapsulation.None,
|
1324
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
1325
|
+
}]
|
1326
|
+
}], ctorParameters: function () {
|
1327
|
+
return [{ type: McDatepickerIntl }, { type: i1__namespace$1.DateAdapter, decorators: [{
|
1328
|
+
type: i0.Optional
|
1329
|
+
}] }, { type: undefined, decorators: [{
|
1330
|
+
type: i0.Optional
|
1331
|
+
}, {
|
1332
|
+
type: i0.Inject,
|
1333
|
+
args: [i1$1.MC_DATE_FORMATS]
|
1334
|
+
}] }, { type: i0__namespace.ChangeDetectorRef }];
|
1335
|
+
}, propDecorators: { startAt: [{
|
1336
|
+
type: i0.Input
|
1337
|
+
}], selected: [{
|
1338
|
+
type: i0.Input
|
1339
|
+
}], minDate: [{
|
1340
|
+
type: i0.Input
|
1341
|
+
}], maxDate: [{
|
1342
|
+
type: i0.Input
|
1343
|
+
}], headerComponent: [{
|
1344
|
+
type: i0.Input
|
1345
|
+
}], startView: [{
|
1346
|
+
type: i0.Input
|
1347
|
+
}], dateFilter: [{
|
1348
|
+
type: i0.Input
|
1349
|
+
}], dateClass: [{
|
1350
|
+
type: i0.Input
|
1351
|
+
}], selectedChange: [{
|
1352
|
+
type: i0.Output
|
1353
|
+
}], yearSelected: [{
|
1354
|
+
type: i0.Output
|
1355
|
+
}], monthSelected: [{
|
1356
|
+
type: i0.Output
|
1357
|
+
}], userSelection: [{
|
1358
|
+
type: i0.Output
|
1359
|
+
}], monthView: [{
|
1360
|
+
type: i0.ViewChild,
|
1361
|
+
args: [McMonthView, { static: false }]
|
1362
|
+
}], yearView: [{
|
1363
|
+
type: i0.ViewChild,
|
1364
|
+
args: [McYearView, { static: false }]
|
1365
|
+
}], multiYearView: [{
|
1366
|
+
type: i0.ViewChild,
|
1367
|
+
args: [McMultiYearView, { static: false }]
|
1368
|
+
}] } });
|
1289
1369
|
|
1290
1370
|
/*! *****************************************************************************
|
1291
1371
|
Copyright (c) Microsoft Corporation.
|
@@ -1612,6 +1692,7 @@
|
|
1612
1692
|
DateParts["month"] = "m";
|
1613
1693
|
DateParts["day"] = "d";
|
1614
1694
|
})(DateParts || (DateParts = {}));
|
1695
|
+
var MAX_YEAR = 9999;
|
1615
1696
|
var DateDigit = /** @class */ (function () {
|
1616
1697
|
function DateDigit(value, start, length) {
|
1617
1698
|
this.value = value;
|
@@ -1697,6 +1778,9 @@
|
|
1697
1778
|
if (parsedValue === 0) {
|
1698
1779
|
return 1;
|
1699
1780
|
}
|
1781
|
+
if (parsedValue > MAX_YEAR) {
|
1782
|
+
return MAX_YEAR;
|
1783
|
+
}
|
1700
1784
|
return parsedValue;
|
1701
1785
|
};
|
1702
1786
|
return DateDigit;
|
@@ -1764,8 +1848,11 @@
|
|
1764
1848
|
var newTimeObj = _this.getDateFromString(formattedValue);
|
1765
1849
|
_this.lastValueValid = !!newTimeObj;
|
1766
1850
|
if (!newTimeObj) {
|
1767
|
-
_this.
|
1768
|
-
|
1851
|
+
if (!_this.viewValue) {
|
1852
|
+
_this._value = null;
|
1853
|
+
_this.cvaOnChange(null);
|
1854
|
+
}
|
1855
|
+
_this.control.updateValueAndValidity({ emitEvent: false });
|
1769
1856
|
return;
|
1770
1857
|
}
|
1771
1858
|
_this.setViewValue(_this.getTimeStringFromDate(newTimeObj, _this.dateFormats.dateInput), true);
|
@@ -1977,12 +2064,11 @@
|
|
1977
2064
|
if (!tooltip) {
|
1978
2065
|
return;
|
1979
2066
|
}
|
1980
|
-
tooltip.
|
1981
|
-
tooltip.
|
1982
|
-
tooltip.
|
1983
|
-
tooltip.initElementRefListeners();
|
2067
|
+
tooltip.enterDelay = core.validationTooltipShowDelay;
|
2068
|
+
tooltip.trigger = 'manual';
|
2069
|
+
tooltip.initListeners();
|
1984
2070
|
this.incorrectInput.subscribe(function () {
|
1985
|
-
if (tooltip.
|
2071
|
+
if (tooltip.isOpen) {
|
1986
2072
|
return;
|
1987
2073
|
}
|
1988
2074
|
tooltip.show();
|
@@ -2171,7 +2257,7 @@
|
|
2171
2257
|
this.separator = format.match(/[aA-zZ]+(?<separator>\W|\D)[aA-zZ]+/).groups.separator;
|
2172
2258
|
this.separatorPositions = format
|
2173
2259
|
.split('')
|
2174
|
-
.reduce(function (acc, item, index) { return _this.separator === item ?
|
2260
|
+
.reduce(function (acc, item, index) { return _this.separator === item ? __spreadArray(__spreadArray([], __read(acc)), [index + 1]) : acc; }, []);
|
2175
2261
|
this.getDigitPositions(format);
|
2176
2262
|
};
|
2177
2263
|
McDatepickerInput.prototype.updateValue = function (newValue) {
|
@@ -2181,7 +2267,7 @@
|
|
2181
2267
|
this.valueChange.emit(newValue);
|
2182
2268
|
this.dateInput.emit(new McDatepickerInputEvent(this, this.elementRef.nativeElement));
|
2183
2269
|
}
|
2184
|
-
this.control.updateValueAndValidity();
|
2270
|
+
this.control.updateValueAndValidity({ emitEvent: false });
|
2185
2271
|
};
|
2186
2272
|
McDatepickerInput.prototype.isKeyForClose = function (event) {
|
2187
2273
|
// tslint:disable-next-line: deprecation
|
@@ -2198,9 +2284,7 @@
|
|
2198
2284
|
// tslint:disable-next-line: deprecation
|
2199
2285
|
return (keycodes.hasModifierKey(event) && (keycodes.isVerticalMovement(event.keyCode) || keycodes.isHorizontalMovement(event.keyCode))) ||
|
2200
2286
|
event.ctrlKey ||
|
2201
|
-
event.metaKey
|
2202
|
-
// tslint:disable-next-line: deprecation
|
2203
|
-
[keycodes.DELETE, keycodes.BACKSPACE].includes(event.keyCode);
|
2287
|
+
event.metaKey;
|
2204
2288
|
};
|
2205
2289
|
McDatepickerInput.prototype.spaceKeyHandler = function (event) {
|
2206
2290
|
event.preventDefault();
|
@@ -2336,6 +2420,9 @@
|
|
2336
2420
|
break;
|
2337
2421
|
case DateParts.year:
|
2338
2422
|
year++;
|
2423
|
+
if (year > MAX_YEAR) {
|
2424
|
+
year = 1;
|
2425
|
+
}
|
2339
2426
|
break;
|
2340
2427
|
default:
|
2341
2428
|
}
|
@@ -2368,6 +2455,9 @@
|
|
2368
2455
|
break;
|
2369
2456
|
case DateParts.year:
|
2370
2457
|
year--;
|
2458
|
+
if (year < 1) {
|
2459
|
+
year = MAX_YEAR;
|
2460
|
+
}
|
2371
2461
|
break;
|
2372
2462
|
default:
|
2373
2463
|
}
|
@@ -2388,6 +2478,7 @@
|
|
2388
2478
|
this.value = changedTime;
|
2389
2479
|
this.selectionStart = selectionStart;
|
2390
2480
|
this.selectionEnd = selectionEnd;
|
2481
|
+
this.cvaOnChange(changedTime);
|
2391
2482
|
this.onChange();
|
2392
2483
|
this.stateChanges.next();
|
2393
2484
|
};
|
@@ -2502,53 +2593,73 @@
|
|
2502
2593
|
};
|
2503
2594
|
return McDatepickerInput;
|
2504
2595
|
}());
|
2505
|
-
McDatepickerInput
|
2506
|
-
|
2507
|
-
|
2508
|
-
|
2509
|
-
|
2510
|
-
|
2511
|
-
|
2512
|
-
|
2513
|
-
|
2514
|
-
|
2515
|
-
|
2516
|
-
|
2517
|
-
|
2518
|
-
|
2519
|
-
|
2520
|
-
|
2521
|
-
|
2522
|
-
|
2523
|
-
|
2524
|
-
|
2525
|
-
|
2526
|
-
|
2527
|
-
|
2528
|
-
|
2529
|
-
|
2530
|
-
|
2531
|
-
|
2532
|
-
|
2533
|
-
|
2534
|
-
|
2535
|
-
|
2536
|
-
|
2537
|
-
|
2538
|
-
|
2539
|
-
|
2540
|
-
|
2541
|
-
|
2542
|
-
|
2543
|
-
|
2544
|
-
|
2545
|
-
|
2546
|
-
|
2547
|
-
|
2548
|
-
|
2549
|
-
|
2550
|
-
|
2551
|
-
|
2596
|
+
/** @nocollapse */ McDatepickerInput.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerInput, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: i1__namespace$1.DateAdapter, optional: true }, { token: i1$1.MC_DATE_FORMATS, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
2597
|
+
/** @nocollapse */ McDatepickerInput.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McDatepickerInput, selector: "input[mcDatepicker]", inputs: { placeholder: "placeholder", required: "required", mcDatepicker: "mcDatepicker", mcDatepickerFilter: "mcDatepickerFilter", value: "value", min: "min", max: "max", disabled: "disabled", id: "id", mcValidationTooltip: "mcValidationTooltip" }, outputs: { incorrectInput: "incorrectInput", dateChange: "dateChange", dateInput: "dateInput" }, host: { listeners: { "paste": "onPaste($event)", "change": "onChange()", "focus": "focusChanged(true)", "blur": "onBlur()", "keydown": "onKeyDown($event)" }, properties: { "attr.placeholder": "placeholder", "attr.required": "required", "attr.disabled": "disabled || null", "attr.min": "min ? toISO8601(min) : null", "attr.max": "max ? toISO8601(max) : null", "attr.autocomplete": "\"off\"" }, classAttribute: "mc-input mc-datepicker" }, providers: [
|
2598
|
+
MC_DATEPICKER_VALUE_ACCESSOR,
|
2599
|
+
MC_DATEPICKER_VALIDATORS,
|
2600
|
+
{ provide: formField.McFormFieldControl, useExisting: McDatepickerInput }
|
2601
|
+
], exportAs: ["mcDatepickerInput"], ngImport: i0__namespace });
|
2602
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerInput, decorators: [{
|
2603
|
+
type: i0.Directive,
|
2604
|
+
args: [{
|
2605
|
+
selector: 'input[mcDatepicker]',
|
2606
|
+
exportAs: 'mcDatepickerInput',
|
2607
|
+
providers: [
|
2608
|
+
MC_DATEPICKER_VALUE_ACCESSOR,
|
2609
|
+
MC_DATEPICKER_VALIDATORS,
|
2610
|
+
{ provide: formField.McFormFieldControl, useExisting: McDatepickerInput }
|
2611
|
+
],
|
2612
|
+
host: {
|
2613
|
+
class: 'mc-input mc-datepicker',
|
2614
|
+
'[attr.placeholder]': 'placeholder',
|
2615
|
+
'[attr.required]': 'required',
|
2616
|
+
'[attr.disabled]': 'disabled || null',
|
2617
|
+
'[attr.min]': 'min ? toISO8601(min) : null',
|
2618
|
+
'[attr.max]': 'max ? toISO8601(max) : null',
|
2619
|
+
'[attr.autocomplete]': '"off"',
|
2620
|
+
'(paste)': 'onPaste($event)',
|
2621
|
+
'(change)': 'onChange()',
|
2622
|
+
'(focus)': 'focusChanged(true)',
|
2623
|
+
'(blur)': 'onBlur()',
|
2624
|
+
'(keydown)': 'onKeyDown($event)'
|
2625
|
+
}
|
2626
|
+
}]
|
2627
|
+
}], ctorParameters: function () {
|
2628
|
+
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: i1__namespace$1.DateAdapter, decorators: [{
|
2629
|
+
type: i0.Optional
|
2630
|
+
}] }, { type: undefined, decorators: [{
|
2631
|
+
type: i0.Optional
|
2632
|
+
}, {
|
2633
|
+
type: i0.Inject,
|
2634
|
+
args: [i1$1.MC_DATE_FORMATS]
|
2635
|
+
}] }];
|
2636
|
+
}, propDecorators: { placeholder: [{
|
2637
|
+
type: i0.Input
|
2638
|
+
}], required: [{
|
2639
|
+
type: i0.Input
|
2640
|
+
}], mcDatepicker: [{
|
2641
|
+
type: i0.Input
|
2642
|
+
}], mcDatepickerFilter: [{
|
2643
|
+
type: i0.Input
|
2644
|
+
}], value: [{
|
2645
|
+
type: i0.Input
|
2646
|
+
}], min: [{
|
2647
|
+
type: i0.Input
|
2648
|
+
}], max: [{
|
2649
|
+
type: i0.Input
|
2650
|
+
}], disabled: [{
|
2651
|
+
type: i0.Input
|
2652
|
+
}], id: [{
|
2653
|
+
type: i0.Input
|
2654
|
+
}], mcValidationTooltip: [{
|
2655
|
+
type: i0.Input
|
2656
|
+
}], incorrectInput: [{
|
2657
|
+
type: i0.Output
|
2658
|
+
}], dateChange: [{
|
2659
|
+
type: i0.Output
|
2660
|
+
}], dateInput: [{
|
2661
|
+
type: i0.Output
|
2662
|
+
}] } });
|
2552
2663
|
|
2553
2664
|
/** Can be used to override the icon of a `mcDatepickerToggle`. */
|
2554
2665
|
var McDatepickerToggleIcon = /** @class */ (function () {
|
@@ -2556,11 +2667,14 @@
|
|
2556
2667
|
}
|
2557
2668
|
return McDatepickerToggleIcon;
|
2558
2669
|
}());
|
2559
|
-
McDatepickerToggleIcon
|
2560
|
-
|
2561
|
-
|
2562
|
-
|
2563
|
-
|
2670
|
+
/** @nocollapse */ McDatepickerToggleIcon.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerToggleIcon, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
2671
|
+
/** @nocollapse */ McDatepickerToggleIcon.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.13", type: McDatepickerToggleIcon, selector: "[mcDatepickerToggleIcon]", ngImport: i0__namespace });
|
2672
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerToggleIcon, decorators: [{
|
2673
|
+
type: i0.Directive,
|
2674
|
+
args: [{
|
2675
|
+
selector: '[mcDatepickerToggleIcon]'
|
2676
|
+
}]
|
2677
|
+
}] });
|
2564
2678
|
var McDatepickerToggle = /** @class */ (function () {
|
2565
2679
|
function McDatepickerToggle(intl, changeDetectorRef) {
|
2566
2680
|
this.intl = intl;
|
@@ -2608,32 +2722,36 @@
|
|
2608
2722
|
};
|
2609
2723
|
return McDatepickerToggle;
|
2610
2724
|
}());
|
2611
|
-
McDatepickerToggle
|
2612
|
-
|
2613
|
-
|
2614
|
-
|
2615
|
-
|
2616
|
-
|
2617
|
-
|
2618
|
-
|
2619
|
-
|
2620
|
-
|
2621
|
-
|
2622
|
-
|
2623
|
-
|
2624
|
-
|
2625
|
-
|
2626
|
-
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2636
|
-
|
2725
|
+
/** @nocollapse */ McDatepickerToggle.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerToggle, deps: [{ token: McDatepickerIntl }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
2726
|
+
/** @nocollapse */ McDatepickerToggle.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McDatepickerToggle, selector: "mc-datepicker-toggle", inputs: { disabled: "disabled", datepicker: ["for", "datepicker"], tabIndex: "tabIndex" }, host: { properties: { "class.mc-active": "datepicker && datepicker.opened" }, classAttribute: "mc-datepicker-toggle" }, queries: [{ propertyName: "customIcon", first: true, predicate: McDatepickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true }], exportAs: ["mcDatepickerToggle"], usesOnChanges: true, ngImport: i0__namespace, template: "<!--todo need simplify this-->\n<button\n #button\n mc-button\n type=\"button\"\n class=\"mc-datepicker-toggle__button\"\n aria-haspopup=\"true\"\n [attr.aria-label]=\"intl.openCalendarLabel\"\n [attr.tabindex]=\"tabIndex\"\n [disabled]=\"disabled\"\n (click)=\"open($event)\">\n\n <i *ngIf=\"!customIcon\" mc-icon=\"mc-calendar_16\" class=\"mc-datepicker-toggle__default-icon\"></i>\n\n <ng-content select=\"[mcDatepickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mc-datepicker-toggle:focus{outline:0}.mc-datepicker-toggle__button.mc-icon-button{width:30px;width:var(--mc-datepicker-toggle-size-width, 30px);height:30px;height:var(--mc-datepicker-toggle-size-height, 30px);margin-left:2px}.mc-form-field-appearance-legacy .mc-form-field-prefix .mc-datepicker-toggle__default-icon,.mc-form-field-appearance-legacy .mc-form-field-suffix .mc-datepicker-toggle__default-icon{width:1em}.mc-form-field:not(.mc-form-field-appearance-legacy) .mc-form-field-prefix .mc-datepicker-toggle__default-icon,.mc-form-field:not(.mc-form-field-appearance-legacy) .mc-form-field-suffix .mc-datepicker-toggle__default-icon{display:block;width:1.5em;height:1.5em}.mc-form-field:not(.mc-form-field-appearance-legacy) .mc-form-field-prefix .mc-icon-button .mc-datepicker-toggle__default-icon,.mc-form-field:not(.mc-form-field-appearance-legacy) .mc-form-field-suffix .mc-icon-button .mc-datepicker-toggle__default-icon{margin:auto}\n"], components: [{ type: i3__namespace.McButton, selector: "button[mc-button]", inputs: ["disabled", "color"] }, { type: i4__namespace.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i3__namespace.McButtonCssStyler, selector: "button[mc-button], a[mc-button]" }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.McIconCSSStyler, selector: "[mc-icon]" }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
2727
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerToggle, decorators: [{
|
2728
|
+
type: i0.Component,
|
2729
|
+
args: [{
|
2730
|
+
selector: 'mc-datepicker-toggle',
|
2731
|
+
templateUrl: 'datepicker-toggle.html',
|
2732
|
+
styleUrls: ['datepicker-toggle.scss'],
|
2733
|
+
host: {
|
2734
|
+
class: 'mc-datepicker-toggle',
|
2735
|
+
'[class.mc-active]': 'datepicker && datepicker.opened'
|
2736
|
+
},
|
2737
|
+
exportAs: 'mcDatepickerToggle',
|
2738
|
+
encapsulation: i0.ViewEncapsulation.None,
|
2739
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
2740
|
+
}]
|
2741
|
+
}], ctorParameters: function () { return [{ type: McDatepickerIntl }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { disabled: [{
|
2742
|
+
type: i0.Input
|
2743
|
+
}], datepicker: [{
|
2744
|
+
type: i0.Input,
|
2745
|
+
args: ['for']
|
2746
|
+
}], tabIndex: [{
|
2747
|
+
type: i0.Input
|
2748
|
+
}], customIcon: [{
|
2749
|
+
type: i0.ContentChild,
|
2750
|
+
args: [McDatepickerToggleIcon, { static: false }]
|
2751
|
+
}], button: [{
|
2752
|
+
type: i0.ViewChild,
|
2753
|
+
args: ['button', { static: false }]
|
2754
|
+
}] } });
|
2637
2755
|
|
2638
2756
|
/**
|
2639
2757
|
* Animations used by the mosaic datepicker.
|
@@ -2666,7 +2784,6 @@
|
|
2666
2784
|
Element.prototype.matches = Element.prototype.msMatchesSelector;
|
2667
2785
|
}
|
2668
2786
|
|
2669
|
-
// tslint:disable:no-unbound-method
|
2670
2787
|
/** Used to generate a unique ID for each datepicker instance. */
|
2671
2788
|
var datepickerUid = 0;
|
2672
2789
|
/** Injection token that determines the scroll handling while the calendar is open. */
|
@@ -2679,7 +2796,7 @@
|
|
2679
2796
|
/** @docs-private */
|
2680
2797
|
var MC_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
2681
2798
|
provide: MC_DATEPICKER_SCROLL_STRATEGY,
|
2682
|
-
deps: [
|
2799
|
+
deps: [i3$1.Overlay],
|
2683
2800
|
useFactory: MC_DATEPICKER_SCROLL_STRATEGY_FACTORY
|
2684
2801
|
};
|
2685
2802
|
/**
|
@@ -2712,32 +2829,34 @@
|
|
2712
2829
|
};
|
2713
2830
|
return McDatepickerContent;
|
2714
2831
|
}());
|
2715
|
-
McDatepickerContent
|
2716
|
-
|
2717
|
-
|
2718
|
-
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2722
|
-
|
2723
|
-
|
2724
|
-
|
2725
|
-
|
2726
|
-
|
2727
|
-
|
2728
|
-
|
2729
|
-
|
2730
|
-
|
2731
|
-
|
2732
|
-
|
2733
|
-
|
2734
|
-
|
2735
|
-
|
2736
|
-
|
2737
|
-
|
2738
|
-
|
2739
|
-
|
2740
|
-
|
2832
|
+
/** @nocollapse */ McDatepickerContent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerContent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
2833
|
+
/** @nocollapse */ McDatepickerContent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McDatepickerContent, selector: "mc-datepicker__content", host: { listeners: { "@transformPanel.done": "animationDone.next()" }, properties: { "@transformPanel": "animationState" }, classAttribute: "mc-datepicker__content" }, viewQueries: [{ propertyName: "calendar", first: true, predicate: McCalendar, descendants: true }], exportAs: ["mcDatepickerContent"], ngImport: i0__namespace, template: "<mc-calendar [id]=\"datepicker.id\"\n [ngClass]=\"datepicker.panelClass\"\n [startAt]=\"datepicker.startAt\"\n [startView]=\"datepicker.startView\"\n [minDate]=\"datepicker.minDate\"\n [maxDate]=\"datepicker.maxDate\"\n [dateFilter]=\"datepicker.dateFilter\"\n [headerComponent]=\"datepicker.calendarHeaderComponent\"\n [selected]=\"datepicker.selected\"\n [dateClass]=\"datepicker.dateClass\"\n [@fadeInCalendar]=\"'enter'\"\n (selectedChange)=\"datepicker.select($event)\"\n (yearSelected)=\"datepicker.selectYear($event)\"\n (monthSelected)=\"datepicker.selectMonth($event)\"\n (userSelection)=\"datepicker.close()\">\n</mc-calendar>\n", styles: [".mc-calendar{display:block}.mc-calendar-header{display:flex;padding:16px 8px 12px;padding:var(--mc-datepicker-calendar-size-padding-top, 16px) var(--mc-datepicker-calendar-size-padding-horizontal, 8px) var(--mc-datepicker-calendar-size-padding-blocks, 12px) var(--mc-datepicker-calendar-size-padding-horizontal, 8px)}.mc-calendar__content{padding:0 8px 8px;padding:0 var(--mc-datepicker-calendar-size-padding-horizontal, 8px) var(--mc-datepicker-calendar-size-padding-horizontal, 8px) var(--mc-datepicker-calendar-size-padding-horizontal, 8px);outline:none}.mc-calendar-spacer{flex:1 1 auto}.mc-calendar__period-button{min-width:0}.mc-calendar__period-button .mc-icon{vertical-align:baseline}.mc-calendar__previous-button:after{border-left-width:2px;border-left-width:var(--mc-datepicker-calendar-size-icon-border-width, 2px);transform:translate(2px) rotate(-45deg);transform:var(--mc-datepicker-calendar-size-icon-prev-icon-transform, translateX(2px) rotate(-45deg))}.mc-calendar__next-button:after{border-right-width:2px;border-right-width:var(--mc-datepicker-calendar-size-icon-border-width, 2px);transform:translate(-2px) rotate(45deg);transform:var(--mc-datepicker-calendar-size-icon-nex-icon-transform, translateX(-2px) rotate(45deg))}.mc-calendar__table{border-spacing:0;border-collapse:collapse;width:100%}.mc-calendar__table-header th{text-align:center;height:30px}.mc-calendar__table-header th.mc-calendar__table-header-divider{position:relative;height:calc(12px - 2px);height:calc(var(--mc-datepicker-calendar-size-padding-blocks, 12px) - 2px)}.mc-calendar__table-header th.mc-calendar__table-header-divider:after{content:\"\";position:absolute;top:0;left:calc(-1 * 8px);left:calc(-1 * var(--mc-datepicker-calendar-size-padding-horizontal, 8px));right:calc(-1 * 8px);right:calc(-1 * var(--mc-datepicker-calendar-size-padding-horizontal, 8px));height:1px;height:var(--mc-datepicker-calendar-size-divider-width, 1px)}.mc-datepicker__content{display:block;border-width:1px;border-style:solid}.mc-datepicker__content .mc-calendar{width:296px;height:348px}.mc-datepicker__content .mc-calendar__next-button[disabled],.mc-datepicker__content .mc-calendar__previous-button[disabled]{border:0}\n"], components: [{ type: McCalendar, selector: "mc-calendar", inputs: ["startAt", "selected", "minDate", "maxDate", "headerComponent", "startView", "dateFilter", "dateClass"], outputs: ["selectedChange", "yearSelected", "monthSelected", "userSelection"], exportAs: ["mcCalendar"] }], directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
2834
|
+
mcDatepickerAnimations.transformPanel,
|
2835
|
+
mcDatepickerAnimations.fadeInCalendar
|
2836
|
+
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
2837
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerContent, decorators: [{
|
2838
|
+
type: i0.Component,
|
2839
|
+
args: [{
|
2840
|
+
selector: 'mc-datepicker__content',
|
2841
|
+
exportAs: 'mcDatepickerContent',
|
2842
|
+
templateUrl: 'datepicker-content.html',
|
2843
|
+
styleUrls: ['datepicker-content.scss'],
|
2844
|
+
host: {
|
2845
|
+
class: 'mc-datepicker__content',
|
2846
|
+
'[@transformPanel]': 'animationState',
|
2847
|
+
'(@transformPanel.done)': 'animationDone.next()'
|
2848
|
+
},
|
2849
|
+
animations: [
|
2850
|
+
mcDatepickerAnimations.transformPanel,
|
2851
|
+
mcDatepickerAnimations.fadeInCalendar
|
2852
|
+
],
|
2853
|
+
encapsulation: i0.ViewEncapsulation.None,
|
2854
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
2855
|
+
}]
|
2856
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { calendar: [{
|
2857
|
+
type: i0.ViewChild,
|
2858
|
+
args: [McCalendar]
|
2859
|
+
}] } });
|
2741
2860
|
// TODO: We use a component instead of a directive here so the user can use implicit
|
2742
2861
|
// template reference variables (e.g. #d vs #d="mcDatepicker"). We can change this to a directive
|
2743
2862
|
// if angular adds support for `exportAs: '$implicit'` on directives.
|
@@ -2914,7 +3033,6 @@
|
|
2914
3033
|
.subscribe(function (value) {
|
2915
3034
|
var _a;
|
2916
3035
|
_this.selected = value;
|
2917
|
-
// @ts-ignore
|
2918
3036
|
if (_this.popupComponentRef) {
|
2919
3037
|
(_a = _this.popupComponentRef.instance.calendar.monthView) === null || _a === void 0 ? void 0 : _a.init();
|
2920
3038
|
_this.popupComponentRef.instance.calendar.activeDate = value;
|
@@ -2974,7 +3092,7 @@
|
|
2974
3092
|
McDatepicker.prototype.openAsPopup = function () {
|
2975
3093
|
var _this = this;
|
2976
3094
|
if (!this.calendarPortal) {
|
2977
|
-
this.calendarPortal = new
|
3095
|
+
this.calendarPortal = new i8.ComponentPortal(McDatepickerContent, this.viewContainerRef);
|
2978
3096
|
}
|
2979
3097
|
if (!this.popupRef) {
|
2980
3098
|
this.createPopup();
|
@@ -2991,7 +3109,7 @@
|
|
2991
3109
|
/** Create the popup. */
|
2992
3110
|
McDatepicker.prototype.createPopup = function () {
|
2993
3111
|
var _this = this;
|
2994
|
-
var overlayConfig = new
|
3112
|
+
var overlayConfig = new i3$1.OverlayConfig({
|
2995
3113
|
positionStrategy: this.createPopupPositionStrategy(),
|
2996
3114
|
hasBackdrop: this.hasBackdrop,
|
2997
3115
|
backdropClass: this.backdropClass,
|
@@ -3053,99 +3171,160 @@
|
|
3053
3171
|
};
|
3054
3172
|
return McDatepicker;
|
3055
3173
|
}());
|
3056
|
-
McDatepicker
|
3057
|
-
|
3058
|
-
|
3059
|
-
|
3060
|
-
|
3061
|
-
|
3062
|
-
|
3063
|
-
|
3064
|
-
|
3065
|
-
|
3066
|
-
|
3067
|
-
|
3068
|
-
|
3069
|
-
|
3070
|
-
|
3071
|
-
|
3072
|
-
|
3073
|
-
|
3074
|
-
|
3075
|
-
|
3076
|
-
|
3077
|
-
|
3078
|
-
|
3079
|
-
|
3080
|
-
|
3081
|
-
|
3082
|
-
|
3083
|
-
|
3084
|
-
|
3085
|
-
|
3086
|
-
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3090
|
-
|
3174
|
+
/** @nocollapse */ McDatepicker.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepicker, deps: [{ token: i3__namespace$1.Overlay }, { token: i0__namespace.NgZone }, { token: i0__namespace.ViewContainerRef }, { token: MC_DATEPICKER_SCROLL_STRATEGY }, { token: i1__namespace$1.DateAdapter, optional: true }, { token: i2__namespace.Directionality, optional: true }, { token: i1.DOCUMENT, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
3175
|
+
/** @nocollapse */ McDatepicker.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: McDatepicker, selector: "mc-datepicker", inputs: { hasBackdrop: "hasBackdrop", startAt: "startAt", disabled: "disabled", opened: "opened", calendarHeaderComponent: "calendarHeaderComponent", startView: "startView", panelClass: "panelClass", dateClass: "dateClass", backdropClass: "backdropClass" }, outputs: { yearSelected: "yearSelected", monthSelected: "monthSelected", openedStream: "opened", closedStream: "closed" }, providers: [{ provide: formField.McFormFieldControl, useExisting: McDatepicker }], exportAs: ["mcDatepicker"], ngImport: i0__namespace, template: '', isInline: true, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
3176
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepicker, decorators: [{
|
3177
|
+
type: i0.Component,
|
3178
|
+
args: [{
|
3179
|
+
selector: 'mc-datepicker',
|
3180
|
+
template: '',
|
3181
|
+
exportAs: 'mcDatepicker',
|
3182
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
3183
|
+
encapsulation: i0.ViewEncapsulation.None,
|
3184
|
+
providers: [{ provide: formField.McFormFieldControl, useExisting: McDatepicker }]
|
3185
|
+
}]
|
3186
|
+
}], ctorParameters: function () {
|
3187
|
+
return [{ type: i3__namespace$1.Overlay }, { type: i0__namespace.NgZone }, { type: i0__namespace.ViewContainerRef }, { type: undefined, decorators: [{
|
3188
|
+
type: i0.Inject,
|
3189
|
+
args: [MC_DATEPICKER_SCROLL_STRATEGY]
|
3190
|
+
}] }, { type: i1__namespace$1.DateAdapter, decorators: [{
|
3191
|
+
type: i0.Optional
|
3192
|
+
}] }, { type: i2__namespace.Directionality, decorators: [{
|
3193
|
+
type: i0.Optional
|
3194
|
+
}] }, { type: undefined, decorators: [{
|
3195
|
+
type: i0.Optional
|
3196
|
+
}, {
|
3197
|
+
type: i0.Inject,
|
3198
|
+
args: [i1.DOCUMENT]
|
3199
|
+
}] }];
|
3200
|
+
}, propDecorators: { hasBackdrop: [{
|
3201
|
+
type: i0.Input
|
3202
|
+
}], startAt: [{
|
3203
|
+
type: i0.Input
|
3204
|
+
}], disabled: [{
|
3205
|
+
type: i0.Input
|
3206
|
+
}], opened: [{
|
3207
|
+
type: i0.Input
|
3208
|
+
}], calendarHeaderComponent: [{
|
3209
|
+
type: i0.Input
|
3210
|
+
}], startView: [{
|
3211
|
+
type: i0.Input
|
3212
|
+
}], yearSelected: [{
|
3213
|
+
type: i0.Output
|
3214
|
+
}], monthSelected: [{
|
3215
|
+
type: i0.Output
|
3216
|
+
}], panelClass: [{
|
3217
|
+
type: i0.Input
|
3218
|
+
}], dateClass: [{
|
3219
|
+
type: i0.Input
|
3220
|
+
}], backdropClass: [{
|
3221
|
+
type: i0.Input
|
3222
|
+
}], openedStream: [{
|
3223
|
+
type: i0.Output,
|
3224
|
+
args: ['opened']
|
3225
|
+
}], closedStream: [{
|
3226
|
+
type: i0.Output,
|
3227
|
+
args: ['closed']
|
3228
|
+
}] } });
|
3091
3229
|
|
3092
3230
|
var McDatepickerModule = /** @class */ (function () {
|
3093
3231
|
function McDatepickerModule() {
|
3094
3232
|
}
|
3095
3233
|
return McDatepickerModule;
|
3096
3234
|
}());
|
3097
|
-
McDatepickerModule
|
3098
|
-
|
3099
|
-
|
3100
|
-
|
3101
|
-
|
3102
|
-
|
3103
|
-
|
3104
|
-
|
3105
|
-
|
3106
|
-
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
3110
|
-
|
3111
|
-
|
3112
|
-
|
3113
|
-
|
3114
|
-
|
3115
|
-
|
3116
|
-
|
3117
|
-
|
3118
|
-
|
3119
|
-
|
3120
|
-
|
3121
|
-
|
3122
|
-
|
3123
|
-
|
3124
|
-
|
3125
|
-
|
3126
|
-
|
3127
|
-
|
3128
|
-
|
3129
|
-
|
3130
|
-
|
3131
|
-
|
3132
|
-
|
3133
|
-
|
3134
|
-
|
3135
|
-
|
3136
|
-
|
3137
|
-
|
3138
|
-
|
3139
|
-
|
3140
|
-
|
3141
|
-
|
3142
|
-
|
3143
|
-
|
3235
|
+
/** @nocollapse */ McDatepickerModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
3236
|
+
/** @nocollapse */ McDatepickerModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerModule, declarations: [McCalendar,
|
3237
|
+
McCalendarBody,
|
3238
|
+
McDatepicker,
|
3239
|
+
McDatepickerContent,
|
3240
|
+
McDatepickerInput,
|
3241
|
+
McDatepickerToggle,
|
3242
|
+
McDatepickerToggleIcon,
|
3243
|
+
McMonthView,
|
3244
|
+
McYearView,
|
3245
|
+
McMultiYearView,
|
3246
|
+
McCalendarHeader], imports: [i1.CommonModule,
|
3247
|
+
i3.McButtonModule,
|
3248
|
+
i3$1.OverlayModule,
|
3249
|
+
a11y.A11yModule,
|
3250
|
+
i8.PortalModule,
|
3251
|
+
i4.McIconModule], exports: [McCalendar,
|
3252
|
+
McCalendarBody,
|
3253
|
+
McDatepicker,
|
3254
|
+
McDatepickerContent,
|
3255
|
+
McDatepickerInput,
|
3256
|
+
McDatepickerToggle,
|
3257
|
+
McDatepickerToggleIcon,
|
3258
|
+
McMonthView,
|
3259
|
+
McYearView,
|
3260
|
+
McMultiYearView,
|
3261
|
+
McCalendarHeader,
|
3262
|
+
i3.McButtonModule] });
|
3263
|
+
/** @nocollapse */ McDatepickerModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerModule, providers: [
|
3264
|
+
McDatepickerIntl,
|
3265
|
+
MC_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER
|
3266
|
+
], imports: [[
|
3267
|
+
i1.CommonModule,
|
3268
|
+
i3.McButtonModule,
|
3269
|
+
i3$1.OverlayModule,
|
3270
|
+
a11y.A11yModule,
|
3271
|
+
i8.PortalModule,
|
3272
|
+
i4.McIconModule
|
3273
|
+
], i3.McButtonModule] });
|
3274
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: McDatepickerModule, decorators: [{
|
3275
|
+
type: i0.NgModule,
|
3276
|
+
args: [{
|
3277
|
+
imports: [
|
3278
|
+
i1.CommonModule,
|
3279
|
+
i3.McButtonModule,
|
3280
|
+
i3$1.OverlayModule,
|
3281
|
+
a11y.A11yModule,
|
3282
|
+
i8.PortalModule,
|
3283
|
+
i4.McIconModule
|
3284
|
+
],
|
3285
|
+
exports: [
|
3286
|
+
McCalendar,
|
3287
|
+
McCalendarBody,
|
3288
|
+
McDatepicker,
|
3289
|
+
McDatepickerContent,
|
3290
|
+
McDatepickerInput,
|
3291
|
+
McDatepickerToggle,
|
3292
|
+
McDatepickerToggleIcon,
|
3293
|
+
McMonthView,
|
3294
|
+
McYearView,
|
3295
|
+
McMultiYearView,
|
3296
|
+
McCalendarHeader,
|
3297
|
+
i3.McButtonModule
|
3298
|
+
],
|
3299
|
+
declarations: [
|
3300
|
+
McCalendar,
|
3301
|
+
McCalendarBody,
|
3302
|
+
McDatepicker,
|
3303
|
+
McDatepickerContent,
|
3304
|
+
McDatepickerInput,
|
3305
|
+
McDatepickerToggle,
|
3306
|
+
McDatepickerToggleIcon,
|
3307
|
+
McMonthView,
|
3308
|
+
McYearView,
|
3309
|
+
McMultiYearView,
|
3310
|
+
McCalendarHeader
|
3311
|
+
],
|
3312
|
+
providers: [
|
3313
|
+
McDatepickerIntl,
|
3314
|
+
MC_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER
|
3315
|
+
],
|
3316
|
+
entryComponents: [
|
3317
|
+
McDatepickerContent,
|
3318
|
+
McCalendarHeader
|
3319
|
+
]
|
3320
|
+
}]
|
3321
|
+
}] });
|
3144
3322
|
|
3145
3323
|
/**
|
3146
3324
|
* Generated bundle index. Do not edit.
|
3147
3325
|
*/
|
3148
3326
|
|
3327
|
+
exports.MAX_YEAR = MAX_YEAR;
|
3149
3328
|
exports.MC_DATEPICKER_SCROLL_STRATEGY = MC_DATEPICKER_SCROLL_STRATEGY;
|
3150
3329
|
exports.MC_DATEPICKER_SCROLL_STRATEGY_FACTORY = MC_DATEPICKER_SCROLL_STRATEGY_FACTORY;
|
3151
3330
|
exports.MC_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = MC_DATEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER;
|
@@ -3172,5 +3351,5 @@
|
|
3172
3351
|
|
3173
3352
|
Object.defineProperty(exports, '__esModule', { value: true });
|
3174
3353
|
|
3175
|
-
}))
|
3354
|
+
}));
|
3176
3355
|
//# sourceMappingURL=ptsecurity-mosaic-datepicker.umd.js.map
|