@ptsecurity/mosaic 13.10.0 → 14.1.0
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 +90 -7388
- package/_visual.scss +6 -2778
- package/autocomplete/autocomplete-origin.directive.d.ts +1 -1
- package/autocomplete/autocomplete-trigger.directive.d.ts +1 -1
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/button/button.component.d.ts +4 -4
- package/button-toggle/button-toggle.component.d.ts +2 -2
- package/card/card.component.d.ts +3 -3
- package/checkbox/checkbox-required-validator.d.ts +1 -1
- package/checkbox/checkbox.d.ts +7 -16
- package/core/common-behaviors/color.d.ts +4 -1
- package/core/common-behaviors/error-state.d.ts +7 -4
- package/core/error/error-options.d.ts +3 -3
- package/core/formatters/date/formatter.pipe.d.ts +95 -0
- package/core/formatters/index.d.ts +3 -1
- package/core/formatters/number/formatter.d.ts +1 -1
- package/core/forms/forms.directive.d.ts +2 -2
- package/core/highlight/highlight.pipe.d.ts +1 -1
- package/core/line/line.d.ts +1 -1
- package/core/option/action.d.ts +2 -2
- package/core/option/optgroup.d.ts +2 -2
- package/core/option/option.d.ts +1 -1
- package/core/pop-up/pop-up-trigger.d.ts +5 -4
- package/core/pop-up/pop-up.d.ts +2 -2
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -3
- package/core/validation/validation.d.ts +1 -12
- package/datepicker/calendar-body.component.d.ts +1 -1
- package/datepicker/calendar.component.d.ts +30 -30
- package/datepicker/datepicker-input.directive.d.ts +6 -11
- package/datepicker/datepicker-toggle.component.d.ts +2 -2
- package/datepicker/datepicker.component.d.ts +2 -2
- package/datepicker/month-view.component.d.ts +1 -1
- package/datepicker/multi-year-view.component.d.ts +1 -1
- package/datepicker/year-view.component.d.ts +1 -1
- package/design-tokens/legacy-2017/tokens/components/badge.json5 +46 -46
- package/design-tokens/legacy-2017/tokens/components/button-toggle.json5 +2 -1
- package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +20 -15
- package/design-tokens/legacy-2017/tokens/components/forms.json5 +0 -4
- package/design-tokens/legacy-2017/tokens/components/progress-spinner.json5 +10 -1
- package/design-tokens/legacy-2017/tokens/components/timezone.json5 +23 -0
- package/design-tokens/legacy-2017/tokens.d.ts +55 -35
- package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +2 -1
- package/design-tokens/pt-2022/tokens/components/checkbox.json5 +21 -16
- package/design-tokens/pt-2022/tokens/components/forms.json5 +0 -4
- package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +10 -1
- package/design-tokens/pt-2022/tokens/components/timezone.json5 +23 -0
- package/design-tokens/pt-2022/tokens/properties/colors.json5 +2 -2
- package/design-tokens/pt-2022/tokens/properties/typography.json5 +17 -17
- package/design-tokens/pt-2022/tokens.d.ts +43 -23
- package/design-tokens/style-dictionary/formats/figma.js +2 -2
- package/design-tokens/style-dictionary/transforms/attribute/palette.js +1 -1
- package/design-tokens/style-dictionary/transforms/attribute/size.js +1 -1
- package/design-tokens/style-dictionary/transforms/attribute/typography.js +1 -1
- package/divider/divider.component.d.ts +1 -1
- package/dl/dl.component.d.ts +3 -3
- package/dropdown/dropdown-content.directive.d.ts +1 -1
- package/dropdown/dropdown-item.component.d.ts +1 -1
- package/dropdown/dropdown-trigger.directive.d.ts +1 -1
- package/dropdown/dropdown.component.d.ts +1 -1
- package/esm2020/autocomplete/autocomplete-origin.directive.mjs +4 -4
- package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +7 -7
- package/esm2020/autocomplete/autocomplete.component.mjs +5 -6
- package/esm2020/autocomplete/autocomplete.module.mjs +5 -5
- package/esm2020/button/button.component.mjs +13 -13
- package/esm2020/button/button.module.mjs +7 -9
- package/esm2020/button-toggle/button-toggle.component.mjs +9 -9
- package/esm2020/button-toggle/button-toggle.module.mjs +5 -5
- package/esm2020/card/card.component.mjs +9 -9
- package/esm2020/card/card.module.mjs +7 -9
- package/esm2020/checkbox/checkbox-module.mjs +5 -5
- package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2020/checkbox/checkbox.mjs +22 -38
- package/esm2020/core/common-behaviors/color.mjs +6 -3
- package/esm2020/core/common-behaviors/common-module.mjs +5 -5
- package/esm2020/core/common-behaviors/disabled.mjs +1 -1
- package/esm2020/core/common-behaviors/error-state.mjs +1 -11
- package/esm2020/core/error/error-options.mjs +7 -7
- package/esm2020/core/formatters/date/formatter.mjs +4 -4
- package/esm2020/core/formatters/date/formatter.pipe.mjs +187 -0
- package/esm2020/core/formatters/index.mjs +65 -7
- package/esm2020/core/formatters/number/formatter.mjs +5 -5
- package/esm2020/core/forms/forms-module.mjs +5 -5
- package/esm2020/core/forms/forms.directive.mjs +7 -7
- package/esm2020/core/highlight/highlight.pipe.mjs +4 -4
- package/esm2020/core/highlight/index.mjs +5 -5
- package/esm2020/core/line/line.mjs +8 -8
- package/esm2020/core/option/action.mjs +6 -6
- package/esm2020/core/option/optgroup.mjs +6 -6
- package/esm2020/core/option/option-module.mjs +6 -6
- package/esm2020/core/option/option.mjs +6 -6
- package/esm2020/core/pop-up/pop-up-trigger.mjs +16 -14
- package/esm2020/core/pop-up/pop-up.mjs +4 -4
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +6 -7
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +5 -5
- package/esm2020/core/services/measure-scrollbar.service.mjs +4 -4
- package/esm2020/core/validation/validation.mjs +1 -114
- package/esm2020/datepicker/calendar-body.component.mjs +4 -4
- package/esm2020/datepicker/calendar.component.mjs +125 -128
- package/esm2020/datepicker/datepicker-input.directive.mjs +14 -32
- package/esm2020/datepicker/datepicker-intl.mjs +4 -4
- package/esm2020/datepicker/datepicker-module.mjs +11 -17
- package/esm2020/datepicker/datepicker-toggle.component.mjs +10 -10
- package/esm2020/datepicker/datepicker.component.mjs +10 -10
- package/esm2020/datepicker/month-view.component.mjs +6 -6
- package/esm2020/datepicker/multi-year-view.component.mjs +4 -4
- package/esm2020/datepicker/year-view.component.mjs +4 -4
- package/esm2020/design-tokens/legacy-2017/tokens.mjs +56 -36
- package/esm2020/design-tokens/pt-2022/tokens.mjs +44 -24
- package/esm2020/divider/divider.component.mjs +4 -4
- package/esm2020/divider/divider.module.mjs +5 -5
- package/esm2020/dl/dl.component.mjs +11 -11
- package/esm2020/dl/dl.module.mjs +7 -9
- package/esm2020/dropdown/dropdown-content.directive.mjs +4 -4
- package/esm2020/dropdown/dropdown-item.component.mjs +7 -7
- package/esm2020/dropdown/dropdown-trigger.directive.mjs +4 -4
- package/esm2020/dropdown/dropdown.component.mjs +5 -5
- package/esm2020/dropdown/dropdown.module.mjs +7 -9
- package/esm2020/form-field/cleaner.mjs +4 -4
- package/esm2020/form-field/form-field.mjs +24 -21
- package/esm2020/form-field/form-field.module.mjs +14 -9
- package/esm2020/form-field/hint.mjs +6 -7
- package/esm2020/form-field/password-hint.mjs +11 -12
- package/esm2020/form-field/prefix.mjs +4 -4
- package/esm2020/form-field/public-api.mjs +2 -1
- package/esm2020/form-field/stepper.mjs +4 -4
- package/esm2020/form-field/suffix.mjs +4 -4
- package/esm2020/form-field/validate.directive.mjs +156 -0
- package/esm2020/icon/icon.component.mjs +10 -11
- package/esm2020/icon/icon.module.mjs +7 -9
- package/esm2020/input/input-number-validators.mjs +7 -7
- package/esm2020/input/input-number.mjs +4 -4
- package/esm2020/input/input-password.mjs +17 -50
- package/esm2020/input/input.mjs +19 -46
- package/esm2020/input/input.module.mjs +8 -10
- package/esm2020/link/link.component.mjs +4 -4
- package/esm2020/link/link.module.mjs +6 -8
- package/esm2020/list/list-selection.component.mjs +10 -10
- package/esm2020/list/list.component.mjs +8 -8
- package/esm2020/list/list.module.mjs +9 -11
- package/esm2020/loader-overlay/loader-overlay.component.mjs +15 -15
- package/esm2020/loader-overlay/loader-overlay.module.mjs +8 -10
- package/esm2020/modal/css-unit.pipe.mjs +4 -4
- package/esm2020/modal/modal-control.service.mjs +4 -4
- package/esm2020/modal/modal.component.mjs +8 -8
- package/esm2020/modal/modal.directive.mjs +13 -13
- package/esm2020/modal/modal.module.mjs +11 -14
- package/esm2020/modal/modal.service.mjs +6 -6
- package/esm2020/navbar/navbar-item.component.mjs +36 -36
- package/esm2020/navbar/navbar.component.mjs +11 -11
- package/esm2020/navbar/navbar.module.mjs +9 -11
- package/esm2020/navbar/vertical-navbar.component.mjs +6 -6
- package/esm2020/popover/popover-confirm.component.mjs +11 -11
- package/esm2020/popover/popover.component.mjs +20 -11
- package/esm2020/popover/popover.module.mjs +6 -7
- package/esm2020/progress-bar/progress-bar.component.mjs +7 -8
- package/esm2020/progress-bar/progress-bar.module.mjs +6 -8
- package/esm2020/progress-spinner/progress-spinner.component.mjs +25 -11
- package/esm2020/progress-spinner/progress-spinner.module.mjs +6 -8
- package/esm2020/radio/radio.component.mjs +53 -54
- package/esm2020/radio/radio.module.mjs +5 -5
- package/esm2020/select/select-option.directive.mjs +4 -4
- package/esm2020/select/select.component.mjs +41 -55
- package/esm2020/select/select.module.mjs +10 -12
- package/esm2020/sidebar/sidebar.component.mjs +10 -10
- package/esm2020/sidebar/sidebar.module.mjs +5 -5
- package/esm2020/sidepanel/sidepanel-container.component.mjs +7 -7
- package/esm2020/sidepanel/sidepanel-directives.mjs +22 -20
- package/esm2020/sidepanel/sidepanel.module.mjs +11 -14
- package/esm2020/sidepanel/sidepanel.service.mjs +33 -29
- package/esm2020/splitter/splitter.component.mjs +37 -37
- package/esm2020/splitter/splitter.module.mjs +6 -8
- package/esm2020/table/table.component.mjs +4 -4
- package/esm2020/table/table.module.mjs +7 -9
- package/esm2020/tabs/paginated-tab-header.mjs +4 -4
- package/esm2020/tabs/tab-body.component.mjs +7 -7
- package/esm2020/tabs/tab-content.directive.mjs +4 -4
- package/esm2020/tabs/tab-group.component.mjs +29 -30
- package/esm2020/tabs/tab-header.component.mjs +5 -5
- package/esm2020/tabs/tab-label-wrapper.directive.mjs +4 -4
- package/esm2020/tabs/tab-label.directive.mjs +4 -4
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +7 -7
- package/esm2020/tabs/tab.component.mjs +4 -4
- package/esm2020/tabs/tabs.module.mjs +11 -13
- package/esm2020/tags/tag-input.mjs +4 -4
- package/esm2020/tags/tag-list.component.mjs +26 -35
- package/esm2020/tags/tag.component.mjs +23 -21
- package/esm2020/tags/tag.module.mjs +6 -6
- package/esm2020/textarea/textarea.component.mjs +24 -39
- package/esm2020/textarea/textarea.module.mjs +5 -5
- package/esm2020/timepicker/timepicker.directive.mjs +10 -27
- package/esm2020/timepicker/timepicker.module.mjs +8 -10
- package/esm2020/timezone/cities-by-filter.pipe.mjs +17 -0
- package/esm2020/timezone/index.mjs +2 -0
- package/esm2020/timezone/ptsecurity-mosaic-timezone.mjs +5 -0
- package/esm2020/timezone/public-api.mjs +7 -0
- package/esm2020/timezone/timezone-option.component.mjs +48 -0
- package/esm2020/timezone/timezone-option.directive.mjs +58 -0
- package/esm2020/timezone/timezone-select.component.mjs +40 -0
- package/esm2020/timezone/timezone.models.mjs +3 -0
- package/esm2020/timezone/timezone.module.mjs +75 -0
- package/esm2020/timezone/timezone.utils.mjs +72 -0
- package/esm2020/timezone/utc-offset.pipe.mjs +17 -0
- package/esm2020/toast/toast-container.component.mjs +5 -5
- package/esm2020/toast/toast.component.mjs +9 -9
- package/esm2020/toast/toast.module.mjs +12 -12
- package/esm2020/toast/toast.service.mjs +23 -14
- package/esm2020/toggle/toggle.component.mjs +13 -16
- package/esm2020/toggle/toggle.module.mjs +5 -5
- package/esm2020/tooltip/tooltip.component.mjs +14 -14
- package/esm2020/tooltip/tooltip.module.mjs +7 -8
- package/esm2020/tree/control/flat-tree-control.mjs +1 -1
- package/esm2020/tree/data-source/nested-data-source.mjs +1 -1
- package/esm2020/tree/node.mjs +4 -4
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.directive.mjs +4 -4
- package/esm2020/tree/toggle.mjs +10 -10
- package/esm2020/tree/tree-base.mjs +7 -7
- package/esm2020/tree/tree-option.component.mjs +8 -8
- package/esm2020/tree/tree-selection.component.mjs +5 -5
- package/esm2020/tree/tree.mjs +4 -4
- package/esm2020/tree/tree.module.mjs +5 -5
- package/esm2020/tree-select/tree-select.component.mjs +39 -53
- package/esm2020/tree-select/tree-select.module.mjs +11 -13
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +17 -18
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +12 -12
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button.mjs +18 -20
- package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-card.mjs +14 -16
- package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs +28 -44
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs +341 -217
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +174 -201
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +153 -93
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-divider.mjs +7 -7
- package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dl.mjs +16 -18
- package/fesm2015/ptsecurity-mosaic-dl.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs +22 -24
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +216 -57
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-icon.mjs +15 -18
- package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.mjs +45 -107
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-link.mjs +8 -10
- package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-list.mjs +24 -26
- package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +21 -23
- package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-modal.mjs +41 -44
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-navbar.mjs +58 -60
- package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-popover.mjs +33 -25
- package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +11 -14
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +29 -17
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-radio.mjs +57 -57
- package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.mjs +52 -68
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs +13 -13
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +69 -66
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-splitter.mjs +41 -43
- package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-table.mjs +9 -11
- package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tabs.mjs +137 -140
- package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.mjs +54 -61
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-textarea.mjs +28 -42
- package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs +15 -34
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timezone.mjs +308 -0
- package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-toast.mjs +135 -125
- package/fesm2015/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toggle.mjs +16 -19
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +19 -20
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +50 -66
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree.mjs +43 -43
- package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +17 -18
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +12 -12
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-button.mjs +18 -20
- package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-card.mjs +14 -16
- package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs +28 -44
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs +338 -217
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs +173 -200
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +153 -93
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-divider.mjs +7 -7
- package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-dl.mjs +16 -18
- package/fesm2020/ptsecurity-mosaic-dl.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs +22 -24
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +214 -57
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-icon.mjs +15 -18
- package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-input.mjs +45 -107
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-link.mjs +8 -10
- package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-list.mjs +24 -26
- package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +21 -23
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-modal.mjs +41 -44
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-navbar.mjs +58 -60
- package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-popover.mjs +33 -25
- package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +11 -14
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +29 -17
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-radio.mjs +56 -57
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs +50 -67
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs +13 -13
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +69 -66
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-splitter.mjs +41 -43
- package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-table.mjs +9 -11
- package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tabs.mjs +66 -69
- package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tags.mjs +53 -61
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-textarea.mjs +26 -41
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs +15 -34
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-timezone.mjs +306 -0
- package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-toast.mjs +130 -120
- package/fesm2020/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-toggle.mjs +16 -19
- package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs +19 -20
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs +47 -64
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tree.mjs +43 -43
- package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
- package/form-field/cleaner.d.ts +1 -1
- package/form-field/form-field.d.ts +13 -7
- package/form-field/form-field.module.d.ts +4 -3
- package/form-field/hint.d.ts +3 -3
- package/form-field/password-hint.d.ts +2 -3
- package/form-field/prefix.d.ts +1 -1
- package/form-field/public-api.d.ts +1 -0
- package/form-field/stepper.d.ts +1 -1
- package/form-field/suffix.d.ts +1 -1
- package/form-field/validate.directive.d.ts +32 -0
- package/icon/icon.component.d.ts +4 -4
- package/input/input-number-validators.d.ts +2 -2
- package/input/input-number.d.ts +1 -1
- package/input/input-password.d.ts +9 -15
- package/input/input.d.ts +14 -14
- package/link/link.component.d.ts +1 -1
- package/list/list-selection.component.d.ts +2 -2
- package/list/list.component.d.ts +2 -2
- package/loader-overlay/loader-overlay.component.d.ts +4 -4
- package/modal/css-unit.pipe.d.ts +1 -1
- package/modal/modal.component.d.ts +1 -1
- package/modal/modal.directive.d.ts +4 -4
- package/navbar/navbar-item.component.d.ts +11 -11
- package/navbar/navbar.component.d.ts +3 -3
- package/navbar/vertical-navbar.component.d.ts +1 -1
- package/package.json +56 -48
- package/popover/popover-confirm.component.d.ts +2 -2
- package/popover/popover.component.d.ts +5 -5
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/prebuilt-visual/default-visual.css +1 -1
- package/progress-bar/progress-bar.component.d.ts +3 -3
- package/progress-spinner/progress-spinner.component.d.ts +8 -3
- package/radio/radio.component.d.ts +11 -17
- package/select/select-option.directive.d.ts +1 -1
- package/select/select.component.d.ts +16 -14
- package/sidebar/sidebar.component.d.ts +3 -3
- package/sidepanel/sidepanel-container.component.d.ts +1 -1
- package/sidepanel/sidepanel-directives.d.ts +5 -5
- package/splitter/splitter.component.d.ts +4 -4
- package/table/table.component.d.ts +1 -1
- package/tabs/paginated-tab-header.d.ts +1 -1
- package/tabs/tab-body.component.d.ts +2 -2
- package/tabs/tab-content.directive.d.ts +1 -1
- package/tabs/tab-group.component.d.ts +8 -8
- package/tabs/tab-header.component.d.ts +1 -1
- package/tabs/tab-label-wrapper.directive.d.ts +1 -1
- package/tabs/tab-label.directive.d.ts +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +2 -2
- package/tabs/tab.component.d.ts +1 -1
- package/tags/tag-input.d.ts +1 -1
- package/tags/tag-list.component.d.ts +14 -10
- package/tags/tag.component.d.ts +8 -6
- package/textarea/textarea.component.d.ts +14 -13
- package/timepicker/timepicker.directive.d.ts +5 -10
- package/timezone/README.md +0 -0
- package/timezone/cities-by-filter.pipe.d.ts +7 -0
- package/timezone/index.d.ts +1 -0
- package/timezone/public-api.d.ts +6 -0
- package/timezone/timezone-option.component.d.ts +15 -0
- package/timezone/timezone-option.directive.d.ts +20 -0
- package/timezone/timezone-select.component.d.ts +14 -0
- package/timezone/timezone.models.d.ts +16 -0
- package/timezone/timezone.module.d.ts +19 -0
- package/timezone/timezone.utils.d.ts +18 -0
- package/timezone/utc-offset.pipe.d.ts +7 -0
- package/toast/toast-container.component.d.ts +1 -1
- package/toast/toast.component.d.ts +1 -1
- package/toast/toast.service.d.ts +6 -4
- package/toggle/toggle.component.d.ts +5 -5
- package/tooltip/tooltip.component.d.ts +5 -6
- package/tree/control/flat-tree-control.d.ts +8 -8
- package/tree/node.d.ts +1 -1
- package/tree/outlet.d.ts +1 -1
- package/tree/padding.directive.d.ts +1 -1
- package/tree/toggle.d.ts +3 -3
- package/tree/tree-base.d.ts +2 -2
- package/tree/tree-option.component.d.ts +1 -1
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree/tree.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +14 -12
- package/autocomplete/package.json +0 -10
- package/autocomplete/ptsecurity-mosaic-autocomplete.d.ts +0 -5
- package/button/package.json +0 -10
- package/button/ptsecurity-mosaic-button.d.ts +0 -5
- package/button-toggle/package.json +0 -10
- package/button-toggle/ptsecurity-mosaic-button-toggle.d.ts +0 -5
- package/card/package.json +0 -10
- package/card/ptsecurity-mosaic-card.d.ts +0 -5
- package/checkbox/package.json +0 -10
- package/checkbox/ptsecurity-mosaic-checkbox.d.ts +0 -5
- package/core/package.json +0 -10
- package/core/ptsecurity-mosaic-core.d.ts +0 -5
- package/datepicker/package.json +0 -10
- package/datepicker/ptsecurity-mosaic-datepicker.d.ts +0 -5
- package/design-tokens/package.json +0 -10
- package/design-tokens/ptsecurity-mosaic-design-tokens.d.ts +0 -5
- package/divider/package.json +0 -10
- package/divider/ptsecurity-mosaic-divider.d.ts +0 -5
- package/dl/package.json +0 -10
- package/dl/ptsecurity-mosaic-dl.d.ts +0 -5
- package/dropdown/package.json +0 -10
- package/dropdown/ptsecurity-mosaic-dropdown.d.ts +0 -5
- package/form-field/package.json +0 -10
- package/form-field/ptsecurity-mosaic-form-field.d.ts +0 -5
- package/icon/package.json +0 -10
- package/icon/ptsecurity-mosaic-icon.d.ts +0 -5
- package/input/package.json +0 -10
- package/input/ptsecurity-mosaic-input.d.ts +0 -5
- package/link/package.json +0 -10
- package/link/ptsecurity-mosaic-link.d.ts +0 -5
- package/list/package.json +0 -10
- package/list/ptsecurity-mosaic-list.d.ts +0 -5
- package/loader-overlay/package.json +0 -10
- package/loader-overlay/ptsecurity-mosaic-loader-overlay.d.ts +0 -5
- package/modal/package.json +0 -10
- package/modal/ptsecurity-mosaic-modal.d.ts +0 -5
- package/navbar/package.json +0 -10
- package/navbar/ptsecurity-mosaic-navbar.d.ts +0 -5
- package/popover/package.json +0 -10
- package/popover/ptsecurity-mosaic-popover.d.ts +0 -5
- package/progress-bar/package.json +0 -10
- package/progress-bar/ptsecurity-mosaic-progress-bar.d.ts +0 -5
- package/progress-spinner/package.json +0 -10
- package/progress-spinner/ptsecurity-mosaic-progress-spinner.d.ts +0 -5
- package/ptsecurity-mosaic.d.ts +0 -5
- package/radio/package.json +0 -10
- package/radio/ptsecurity-mosaic-radio.d.ts +0 -5
- package/select/package.json +0 -10
- package/select/ptsecurity-mosaic-select.d.ts +0 -5
- package/sidebar/package.json +0 -10
- package/sidebar/ptsecurity-mosaic-sidebar.d.ts +0 -5
- package/sidepanel/package.json +0 -10
- package/sidepanel/ptsecurity-mosaic-sidepanel.d.ts +0 -5
- package/splitter/package.json +0 -10
- package/splitter/ptsecurity-mosaic-splitter.d.ts +0 -5
- package/table/package.json +0 -10
- package/table/ptsecurity-mosaic-table.d.ts +0 -5
- package/tabs/package.json +0 -10
- package/tabs/ptsecurity-mosaic-tabs.d.ts +0 -5
- package/tags/package.json +0 -10
- package/tags/ptsecurity-mosaic-tags.d.ts +0 -5
- package/textarea/package.json +0 -10
- package/textarea/ptsecurity-mosaic-textarea.d.ts +0 -5
- package/timepicker/package.json +0 -10
- package/timepicker/ptsecurity-mosaic-timepicker.d.ts +0 -5
- package/toast/package.json +0 -10
- package/toast/ptsecurity-mosaic-toast.d.ts +0 -5
- package/toggle/package.json +0 -10
- package/toggle/ptsecurity-mosaic-toggle.d.ts +0 -5
- package/tooltip/package.json +0 -10
- package/tooltip/ptsecurity-mosaic-tooltip.d.ts +0 -5
- package/tree/package.json +0 -10
- package/tree/ptsecurity-mosaic-tree.d.ts +0 -5
- package/tree-select/package.json +0 -10
- package/tree-select/ptsecurity-mosaic-tree-select.d.ts +0 -5
@@ -3,17 +3,16 @@ import { Version, InjectionToken, isDevMode, NgModule, Optional, Inject, Directi
|
|
3
3
|
import * as i2$1 from '@angular/cdk/bidi';
|
4
4
|
import { BidiModule } from '@angular/cdk/bidi';
|
5
5
|
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
6
|
-
import { Subject } from 'rxjs';
|
7
6
|
import MessageFormat from '@messageformat/core';
|
8
7
|
import * as i1 from '@ptsecurity/cdk/datetime';
|
9
8
|
import { MC_DATE_LOCALE } from '@ptsecurity/cdk/datetime';
|
10
|
-
import { RequiredValidator } from '@angular/forms';
|
11
9
|
import * as i2 from '@angular/common';
|
12
10
|
import { CommonModule, DOCUMENT } from '@angular/common';
|
13
11
|
import * as i1$2 from '@angular/cdk/overlay';
|
14
12
|
import { Overlay } from '@angular/cdk/overlay';
|
15
13
|
import { trigger, state, style, transition, animate, group } from '@angular/animations';
|
16
14
|
import { ENTER, SPACE, TAB, ESCAPE } from '@ptsecurity/cdk/keycodes';
|
15
|
+
import { Subject } from 'rxjs';
|
17
16
|
import * as i1$1 from '@angular/cdk/a11y';
|
18
17
|
import { takeUntil, distinctUntilChanged, delay } from 'rxjs/operators';
|
19
18
|
import { ComponentPortal } from '@angular/cdk/portal';
|
@@ -89,10 +88,10 @@ class McCommonModule {
|
|
89
88
|
}
|
90
89
|
}
|
91
90
|
}
|
92
|
-
/** @nocollapse */
|
93
|
-
/** @nocollapse */
|
94
|
-
/** @nocollapse */
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
91
|
+
/** @nocollapse */ McCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McCommonModule, deps: [{ token: MC_SANITY_CHECKS, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
92
|
+
/** @nocollapse */ McCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McCommonModule, imports: [BidiModule], exports: [BidiModule] });
|
93
|
+
/** @nocollapse */ McCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McCommonModule, imports: [BidiModule, BidiModule] });
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McCommonModule, decorators: [{
|
96
95
|
type: NgModule,
|
97
96
|
args: [{
|
98
97
|
imports: [BidiModule],
|
@@ -126,6 +125,9 @@ var ThemePalette;
|
|
126
125
|
ThemePalette["Primary"] = "primary";
|
127
126
|
ThemePalette["Second"] = "second";
|
128
127
|
ThemePalette["Error"] = "error";
|
128
|
+
ThemePalette["Info"] = "info";
|
129
|
+
ThemePalette["Warning"] = "warning";
|
130
|
+
ThemePalette["Success"] = "success";
|
129
131
|
ThemePalette["Default"] = "second";
|
130
132
|
ThemePalette["Empty"] = "";
|
131
133
|
})(ThemePalette || (ThemePalette = {}));
|
@@ -140,10 +142,10 @@ function mixinColor(base, defaultColor = ThemePalette.Default) {
|
|
140
142
|
const colorPalette = value || defaultColor;
|
141
143
|
if (colorPalette !== this._color) {
|
142
144
|
if (this._color) {
|
143
|
-
this.
|
145
|
+
this.elementRef.nativeElement.classList.remove(`mc-${this._color}`);
|
144
146
|
}
|
145
147
|
if (colorPalette) {
|
146
|
-
this.
|
148
|
+
this.elementRef.nativeElement.classList.add(`mc-${colorPalette}`);
|
147
149
|
}
|
148
150
|
this._color = colorPalette;
|
149
151
|
}
|
@@ -168,21 +170,12 @@ function mixinTabIndex(base, defaultTabIndex = 0) {
|
|
168
170
|
};
|
169
171
|
}
|
170
172
|
|
171
|
-
/**
|
172
|
-
* Mixin to augment a directive with updateErrorState method.
|
173
|
-
* For component with `errorState` and need to update `errorState`.
|
174
|
-
*/
|
175
173
|
function mixinErrorState(base) {
|
176
174
|
return class extends base {
|
177
175
|
constructor(...args) {
|
178
176
|
super(...args);
|
179
177
|
/** Whether the component is in an error state. */
|
180
178
|
this.errorState = false;
|
181
|
-
/**
|
182
|
-
* Stream that emits whenever the state of the input changes such that the wrapping
|
183
|
-
* `MatFormField` needs to run change detection.
|
184
|
-
*/
|
185
|
-
this.stateChanges = new Subject();
|
186
179
|
}
|
187
180
|
updateErrorState() {
|
188
181
|
const oldState = this.errorState;
|
@@ -205,9 +198,9 @@ function mixinErrorState(base) {
|
|
205
198
|
*/
|
206
199
|
class McLine {
|
207
200
|
}
|
208
|
-
/** @nocollapse */
|
209
|
-
/** @nocollapse */
|
210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
201
|
+
/** @nocollapse */ McLine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLine, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
202
|
+
/** @nocollapse */ McLine.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McLine, selector: "[mc-line], [mcLine]", host: { classAttribute: "mc-line" }, ngImport: i0 });
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLine, decorators: [{
|
211
204
|
type: Directive,
|
212
205
|
args: [{
|
213
206
|
selector: '[mc-line], [mcLine]',
|
@@ -254,10 +247,10 @@ class McLineSetter {
|
|
254
247
|
}
|
255
248
|
class McLineModule {
|
256
249
|
}
|
257
|
-
/** @nocollapse */
|
258
|
-
/** @nocollapse */
|
259
|
-
/** @nocollapse */
|
260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
250
|
+
/** @nocollapse */ McLineModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
251
|
+
/** @nocollapse */ McLineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McLineModule, declarations: [McLine], exports: [McLine] });
|
252
|
+
/** @nocollapse */ McLineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLineModule });
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLineModule, decorators: [{
|
261
254
|
type: NgModule,
|
262
255
|
args: [{
|
263
256
|
imports: [],
|
@@ -272,9 +265,9 @@ class ShowOnDirtyErrorStateMatcher {
|
|
272
265
|
return !!(control && control.invalid && (control.dirty || (form && form.submitted)));
|
273
266
|
}
|
274
267
|
}
|
275
|
-
/** @nocollapse */
|
276
|
-
/** @nocollapse */
|
277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
268
|
+
/** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
269
|
+
/** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShowOnDirtyErrorStateMatcher });
|
270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, decorators: [{
|
278
271
|
type: Injectable
|
279
272
|
}] });
|
280
273
|
/** Provider that defines how form controls behave with regards to displaying error messages. */
|
@@ -283,9 +276,9 @@ class ErrorStateMatcher {
|
|
283
276
|
return !!(control && control.invalid && (control.touched || (form && form.submitted)));
|
284
277
|
}
|
285
278
|
}
|
286
|
-
/** @nocollapse */
|
287
|
-
/** @nocollapse */
|
288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
279
|
+
/** @nocollapse */ ErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
280
|
+
/** @nocollapse */ ErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ErrorStateMatcher, providedIn: 'root' });
|
281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ErrorStateMatcher, decorators: [{
|
289
282
|
type: Injectable,
|
290
283
|
args: [{ providedIn: 'root' }]
|
291
284
|
}] });
|
@@ -1204,15 +1197,198 @@ class DateFormatter {
|
|
1204
1197
|
return this.adapter.hasSame(startDate, endDate, unit) ? 'yes' : 'no';
|
1205
1198
|
}
|
1206
1199
|
}
|
1207
|
-
/** @nocollapse */
|
1208
|
-
/** @nocollapse */
|
1209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1200
|
+
/** @nocollapse */ DateFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DateFormatter, deps: [{ token: i1.DateAdapter }, { token: MC_DATE_LOCALE }], target: i0.ɵɵFactoryTarget.Injectable });
|
1201
|
+
/** @nocollapse */ DateFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DateFormatter });
|
1202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DateFormatter, decorators: [{
|
1210
1203
|
type: Injectable
|
1211
1204
|
}], ctorParameters: function () { return [{ type: i1.DateAdapter }, { type: undefined, decorators: [{
|
1212
1205
|
type: Inject,
|
1213
1206
|
args: [MC_DATE_LOCALE]
|
1214
1207
|
}] }]; } });
|
1215
1208
|
|
1209
|
+
class AbsoluteDateFormatterPipe {
|
1210
|
+
constructor(formatter) {
|
1211
|
+
this.formatter = formatter;
|
1212
|
+
}
|
1213
|
+
transform(value, currYear) {
|
1214
|
+
return this.formatter.absoluteLongDate(value, currYear);
|
1215
|
+
}
|
1216
|
+
}
|
1217
|
+
/** @nocollapse */ AbsoluteDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1218
|
+
/** @nocollapse */ AbsoluteDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateFormatterPipe, name: "absoluteLongDate" });
|
1219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateFormatterPipe, decorators: [{
|
1220
|
+
type: Pipe,
|
1221
|
+
args: [{ name: 'absoluteLongDate' }]
|
1222
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1223
|
+
class AbsoluteDateTimeFormatterPipe {
|
1224
|
+
constructor(formatter) {
|
1225
|
+
this.formatter = formatter;
|
1226
|
+
}
|
1227
|
+
transform(value, options) {
|
1228
|
+
return this.formatter.absoluteLongDateTime(value, options);
|
1229
|
+
}
|
1230
|
+
}
|
1231
|
+
/** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1232
|
+
/** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, name: "absoluteLongDateTime" });
|
1233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, decorators: [{
|
1234
|
+
type: Pipe,
|
1235
|
+
args: [{ name: 'absoluteLongDateTime' }]
|
1236
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1237
|
+
class AbsoluteDateShortFormatterPipe {
|
1238
|
+
constructor(formatter) {
|
1239
|
+
this.formatter = formatter;
|
1240
|
+
}
|
1241
|
+
transform(value, currYear) {
|
1242
|
+
return this.formatter.absoluteShortDate(value, currYear);
|
1243
|
+
}
|
1244
|
+
}
|
1245
|
+
/** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateShortFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1246
|
+
/** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateShortFormatterPipe, name: "absoluteShortDate" });
|
1247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateShortFormatterPipe, decorators: [{
|
1248
|
+
type: Pipe,
|
1249
|
+
args: [{ name: 'absoluteShortDate' }]
|
1250
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1251
|
+
class AbsoluteShortDateTimeFormatterPipe {
|
1252
|
+
constructor(formatter) {
|
1253
|
+
this.formatter = formatter;
|
1254
|
+
}
|
1255
|
+
transform(value, options) {
|
1256
|
+
return this.formatter.absoluteShortDateTime(value, options);
|
1257
|
+
}
|
1258
|
+
}
|
1259
|
+
/** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1260
|
+
/** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, name: "absoluteShortDateTime" });
|
1261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, decorators: [{
|
1262
|
+
type: Pipe,
|
1263
|
+
args: [{ name: 'absoluteShortDateTime' }]
|
1264
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1265
|
+
class RelativeDateFormatterPipe {
|
1266
|
+
constructor(formatter) {
|
1267
|
+
this.formatter = formatter;
|
1268
|
+
}
|
1269
|
+
transform(value) {
|
1270
|
+
return this.formatter.relativeLongDate(value);
|
1271
|
+
}
|
1272
|
+
}
|
1273
|
+
/** @nocollapse */ RelativeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1274
|
+
/** @nocollapse */ RelativeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateFormatterPipe, name: "relativeLongDate" });
|
1275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateFormatterPipe, decorators: [{
|
1276
|
+
type: Pipe,
|
1277
|
+
args: [{ name: 'relativeLongDate' }]
|
1278
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1279
|
+
class RelativeDateTimeFormatterPipe {
|
1280
|
+
constructor(formatter) {
|
1281
|
+
this.formatter = formatter;
|
1282
|
+
}
|
1283
|
+
transform(value, options) {
|
1284
|
+
return this.formatter.relativeLongDateTime(value, options);
|
1285
|
+
}
|
1286
|
+
}
|
1287
|
+
/** @nocollapse */ RelativeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1288
|
+
/** @nocollapse */ RelativeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateTimeFormatterPipe, name: "relativeLongDateTime" });
|
1289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateTimeFormatterPipe, decorators: [{
|
1290
|
+
type: Pipe,
|
1291
|
+
args: [{ name: 'relativeLongDateTime' }]
|
1292
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1293
|
+
class RelativeShortDateFormatterPipe {
|
1294
|
+
constructor(formatter) {
|
1295
|
+
this.formatter = formatter;
|
1296
|
+
}
|
1297
|
+
transform(value) {
|
1298
|
+
return this.formatter.relativeShortDate(value);
|
1299
|
+
}
|
1300
|
+
}
|
1301
|
+
/** @nocollapse */ RelativeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1302
|
+
/** @nocollapse */ RelativeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateFormatterPipe, name: "relativeShortDate" });
|
1303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateFormatterPipe, decorators: [{
|
1304
|
+
type: Pipe,
|
1305
|
+
args: [{ name: 'relativeShortDate' }]
|
1306
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1307
|
+
class RelativeShortDateTimeFormatterPipe {
|
1308
|
+
constructor(formatter) {
|
1309
|
+
this.formatter = formatter;
|
1310
|
+
}
|
1311
|
+
transform(value, options) {
|
1312
|
+
return this.formatter.relativeShortDateTime(value, options);
|
1313
|
+
}
|
1314
|
+
}
|
1315
|
+
/** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1316
|
+
/** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, name: "relativeShortDateTime" });
|
1317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, decorators: [{
|
1318
|
+
type: Pipe,
|
1319
|
+
args: [{ name: 'relativeShortDateTime' }]
|
1320
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1321
|
+
class RangeDateFormatterPipe {
|
1322
|
+
constructor(formatter) {
|
1323
|
+
this.formatter = formatter;
|
1324
|
+
}
|
1325
|
+
transform([value1, value2]) {
|
1326
|
+
return this.formatter.rangeLongDate(value1, value2);
|
1327
|
+
}
|
1328
|
+
}
|
1329
|
+
/** @nocollapse */ RangeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1330
|
+
/** @nocollapse */ RangeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeDateFormatterPipe, name: "rangeLongDate" });
|
1331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeDateFormatterPipe, decorators: [{
|
1332
|
+
type: Pipe,
|
1333
|
+
args: [{ name: 'rangeLongDate' }]
|
1334
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1335
|
+
class RangeShortDateFormatterPipe {
|
1336
|
+
constructor(formatter) {
|
1337
|
+
this.formatter = formatter;
|
1338
|
+
}
|
1339
|
+
transform([value1, value2]) {
|
1340
|
+
return this.formatter.rangeShortDate(value1, value2);
|
1341
|
+
}
|
1342
|
+
}
|
1343
|
+
/** @nocollapse */ RangeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1344
|
+
/** @nocollapse */ RangeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateFormatterPipe, name: "rangeShortDate" });
|
1345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateFormatterPipe, decorators: [{
|
1346
|
+
type: Pipe,
|
1347
|
+
args: [{ name: 'rangeShortDate' }]
|
1348
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1349
|
+
class RangeDateTimeFormatterPipe {
|
1350
|
+
constructor(formatter) {
|
1351
|
+
this.formatter = formatter;
|
1352
|
+
}
|
1353
|
+
transform([value1, value2], options) {
|
1354
|
+
return this.formatter.rangeLongDateTime(value1, value2, options);
|
1355
|
+
}
|
1356
|
+
}
|
1357
|
+
/** @nocollapse */ RangeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1358
|
+
/** @nocollapse */ RangeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeDateTimeFormatterPipe, name: "rangeLongDateTime" });
|
1359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeDateTimeFormatterPipe, decorators: [{
|
1360
|
+
type: Pipe,
|
1361
|
+
args: [{ name: 'rangeLongDateTime' }]
|
1362
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1363
|
+
class RangeMiddleDateTimeFormatterPipe {
|
1364
|
+
constructor(formatter) {
|
1365
|
+
this.formatter = formatter;
|
1366
|
+
}
|
1367
|
+
transform([value1, value2], options) {
|
1368
|
+
return this.formatter.rangeMiddleDateTime(value1, value2, options);
|
1369
|
+
}
|
1370
|
+
}
|
1371
|
+
/** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1372
|
+
/** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, name: "rangeMiddleDateTime" });
|
1373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, decorators: [{
|
1374
|
+
type: Pipe,
|
1375
|
+
args: [{ name: 'rangeMiddleDateTime' }]
|
1376
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1377
|
+
class RangeShortDateTimeFormatterPipe {
|
1378
|
+
constructor(formatter) {
|
1379
|
+
this.formatter = formatter;
|
1380
|
+
}
|
1381
|
+
transform([value1, value2], options) {
|
1382
|
+
return this.formatter.rangeShortDateTime(value1, value2, options);
|
1383
|
+
}
|
1384
|
+
}
|
1385
|
+
/** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1386
|
+
/** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateTimeFormatterPipe, name: "rangeShortDateTime" });
|
1387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateTimeFormatterPipe, decorators: [{
|
1388
|
+
type: Pipe,
|
1389
|
+
args: [{ name: 'rangeShortDateTime' }]
|
1390
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1391
|
+
|
1216
1392
|
/* tslint:disable:naming-convention */
|
1217
1393
|
const MC_LOCALE_ID = new InjectionToken('McLocaleId');
|
1218
1394
|
const DEFAULT_MC_LOCALE_ID = 'ru';
|
@@ -1300,10 +1476,10 @@ class McDecimalPipe {
|
|
1300
1476
|
}
|
1301
1477
|
}
|
1302
1478
|
}
|
1303
|
-
/** @nocollapse */
|
1304
|
-
/** @nocollapse */
|
1305
|
-
/** @nocollapse */
|
1306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1479
|
+
/** @nocollapse */ McDecimalPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McDecimalPipe, deps: [{ token: MC_LOCALE_ID, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
|
1480
|
+
/** @nocollapse */ McDecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McDecimalPipe, name: "mcNumber" });
|
1481
|
+
/** @nocollapse */ McDecimalPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McDecimalPipe, providedIn: 'root' });
|
1482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McDecimalPipe, decorators: [{
|
1307
1483
|
type: Injectable,
|
1308
1484
|
args: [{ providedIn: 'root' }]
|
1309
1485
|
}, {
|
@@ -1318,14 +1494,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
1318
1494
|
|
1319
1495
|
class McFormattersModule {
|
1320
1496
|
}
|
1321
|
-
/** @nocollapse */
|
1322
|
-
/** @nocollapse */
|
1323
|
-
|
1324
|
-
|
1497
|
+
/** @nocollapse */ McFormattersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormattersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1498
|
+
/** @nocollapse */ McFormattersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McFormattersModule, declarations: [McDecimalPipe,
|
1499
|
+
AbsoluteDateFormatterPipe,
|
1500
|
+
AbsoluteDateTimeFormatterPipe,
|
1501
|
+
AbsoluteDateShortFormatterPipe,
|
1502
|
+
AbsoluteShortDateTimeFormatterPipe,
|
1503
|
+
RelativeDateFormatterPipe,
|
1504
|
+
RelativeDateTimeFormatterPipe,
|
1505
|
+
RelativeShortDateFormatterPipe,
|
1506
|
+
RelativeShortDateTimeFormatterPipe,
|
1507
|
+
RangeDateFormatterPipe,
|
1508
|
+
RangeShortDateFormatterPipe,
|
1509
|
+
RangeDateTimeFormatterPipe,
|
1510
|
+
RangeShortDateTimeFormatterPipe,
|
1511
|
+
RangeMiddleDateTimeFormatterPipe], exports: [McDecimalPipe,
|
1512
|
+
AbsoluteDateFormatterPipe,
|
1513
|
+
AbsoluteDateTimeFormatterPipe,
|
1514
|
+
AbsoluteDateShortFormatterPipe,
|
1515
|
+
AbsoluteShortDateTimeFormatterPipe,
|
1516
|
+
RelativeDateFormatterPipe,
|
1517
|
+
RelativeDateTimeFormatterPipe,
|
1518
|
+
RelativeShortDateFormatterPipe,
|
1519
|
+
RelativeShortDateTimeFormatterPipe,
|
1520
|
+
RangeDateFormatterPipe,
|
1521
|
+
RangeShortDateFormatterPipe,
|
1522
|
+
RangeDateTimeFormatterPipe,
|
1523
|
+
RangeShortDateTimeFormatterPipe,
|
1524
|
+
RangeMiddleDateTimeFormatterPipe] });
|
1525
|
+
/** @nocollapse */ McFormattersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormattersModule, providers: [DateFormatter] });
|
1526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormattersModule, decorators: [{
|
1325
1527
|
type: NgModule,
|
1326
1528
|
args: [{
|
1327
|
-
|
1328
|
-
|
1529
|
+
declarations: [
|
1530
|
+
McDecimalPipe,
|
1531
|
+
AbsoluteDateFormatterPipe,
|
1532
|
+
AbsoluteDateTimeFormatterPipe,
|
1533
|
+
AbsoluteDateShortFormatterPipe,
|
1534
|
+
AbsoluteShortDateTimeFormatterPipe,
|
1535
|
+
RelativeDateFormatterPipe,
|
1536
|
+
RelativeDateTimeFormatterPipe,
|
1537
|
+
RelativeShortDateFormatterPipe,
|
1538
|
+
RelativeShortDateTimeFormatterPipe,
|
1539
|
+
RangeDateFormatterPipe,
|
1540
|
+
RangeShortDateFormatterPipe,
|
1541
|
+
RangeDateTimeFormatterPipe,
|
1542
|
+
RangeShortDateTimeFormatterPipe,
|
1543
|
+
RangeMiddleDateTimeFormatterPipe
|
1544
|
+
],
|
1545
|
+
exports: [
|
1546
|
+
McDecimalPipe,
|
1547
|
+
AbsoluteDateFormatterPipe,
|
1548
|
+
AbsoluteDateTimeFormatterPipe,
|
1549
|
+
AbsoluteDateShortFormatterPipe,
|
1550
|
+
AbsoluteShortDateTimeFormatterPipe,
|
1551
|
+
RelativeDateFormatterPipe,
|
1552
|
+
RelativeDateTimeFormatterPipe,
|
1553
|
+
RelativeShortDateFormatterPipe,
|
1554
|
+
RelativeShortDateTimeFormatterPipe,
|
1555
|
+
RangeDateFormatterPipe,
|
1556
|
+
RangeShortDateFormatterPipe,
|
1557
|
+
RangeDateTimeFormatterPipe,
|
1558
|
+
RangeShortDateTimeFormatterPipe,
|
1559
|
+
RangeMiddleDateTimeFormatterPipe
|
1560
|
+
],
|
1329
1561
|
providers: [DateFormatter]
|
1330
1562
|
}]
|
1331
1563
|
}] });
|
@@ -1333,118 +1565,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
1333
1565
|
const validationTooltipShowDelay = 10;
|
1334
1566
|
const validationTooltipHideDelay = 3000;
|
1335
1567
|
const MC_VALIDATION = new InjectionToken('McUseValidation', { factory: () => ({ useValidation: true }) });
|
1336
|
-
function setValidState(control, validator) {
|
1337
|
-
if (!control) {
|
1338
|
-
return;
|
1339
|
-
}
|
1340
|
-
control.clearValidators();
|
1341
|
-
control.updateValueAndValidity({ emitEvent: false });
|
1342
|
-
control.setValidators(validator);
|
1343
|
-
}
|
1344
|
-
/** This function do next:
|
1345
|
-
* - run validation on submitting parent form
|
1346
|
-
* - prevent validation in required validator if form doesn't submitted
|
1347
|
-
* - if control has focus validation will be prevented
|
1348
|
-
*/
|
1349
|
-
function setMosaicValidation(component, cdr) {
|
1350
|
-
const ngControl = component.ngControl;
|
1351
|
-
if (!ngControl) {
|
1352
|
-
return;
|
1353
|
-
}
|
1354
|
-
const parentForm = component.parentForm || component.parentFormGroup;
|
1355
|
-
if (parentForm) {
|
1356
|
-
parentForm.ngSubmit.subscribe(() => {
|
1357
|
-
// tslint:disable-next-line: no-unnecessary-type-assertion
|
1358
|
-
ngControl.control.updateValueAndValidity({ emitEvent: false });
|
1359
|
-
});
|
1360
|
-
}
|
1361
|
-
if (component.ngModel) {
|
1362
|
-
setMosaicValidationForModelControl(component, component.rawValidators, parentForm);
|
1363
|
-
}
|
1364
|
-
else if (component.formControlName || component.ngControl) {
|
1365
|
-
setMosaicValidationForFormControl(component, parentForm, ngControl, cdr);
|
1366
|
-
}
|
1367
|
-
}
|
1368
|
-
function setMosaicValidationForModelControl(component, validators, parentForm) {
|
1369
|
-
if (!validators) {
|
1370
|
-
return;
|
1371
|
-
}
|
1372
|
-
validators.forEach((validator) => {
|
1373
|
-
// tslint:disable-next-line: no-unbound-method
|
1374
|
-
const originalValidate = validator.validate;
|
1375
|
-
if (validator instanceof RequiredValidator) {
|
1376
|
-
// changed required validation logic
|
1377
|
-
validator.validate = (control) => {
|
1378
|
-
if (parentForm && !parentForm.submitted) {
|
1379
|
-
return null;
|
1380
|
-
}
|
1381
|
-
return originalValidate.call(validator, control);
|
1382
|
-
};
|
1383
|
-
}
|
1384
|
-
else {
|
1385
|
-
// changed all other validation logic
|
1386
|
-
validator.validate = (control) => {
|
1387
|
-
if (component.focused) {
|
1388
|
-
return null;
|
1389
|
-
}
|
1390
|
-
return originalValidate.call(validator, control);
|
1391
|
-
};
|
1392
|
-
}
|
1393
|
-
});
|
1394
|
-
}
|
1395
|
-
function setMosaicValidationForFormControl(component, parentForm, ngControl, cdr) {
|
1396
|
-
const originalValidator = ngControl.control.validator;
|
1397
|
-
// changed required validation logic after initialization
|
1398
|
-
if (ngControl.invalid && ngControl.errors.required) {
|
1399
|
-
Promise.resolve().then(() => {
|
1400
|
-
setValidState(ngControl.control, originalValidator);
|
1401
|
-
if (cdr) {
|
1402
|
-
cdr.markForCheck();
|
1403
|
-
}
|
1404
|
-
});
|
1405
|
-
}
|
1406
|
-
// check dynamic updates
|
1407
|
-
ngControl.statusChanges
|
1408
|
-
.subscribe(() => {
|
1409
|
-
// changed required validation logic
|
1410
|
-
if (ngControl.invalid && (parentForm && !parentForm.submitted) && ngControl.errors.required) {
|
1411
|
-
setValidState(ngControl.control, originalValidator);
|
1412
|
-
}
|
1413
|
-
// changed all other validation logic
|
1414
|
-
if (ngControl.invalid && component.focused) {
|
1415
|
-
setValidState(ngControl.control, originalValidator);
|
1416
|
-
}
|
1417
|
-
});
|
1418
|
-
}
|
1419
|
-
// this validation used in datepicker and timepicker
|
1420
|
-
function setMosaicValidationForCustomFormControl(component, cdr) {
|
1421
|
-
const originalValidator = component.control.validator;
|
1422
|
-
const parentForm = component.parentForm || component.parentFormGroup;
|
1423
|
-
parentForm?.ngSubmit
|
1424
|
-
.subscribe(() => {
|
1425
|
-
// tslint:disable-next-line: no-unnecessary-type-assertion
|
1426
|
-
component.control.updateValueAndValidity({ emitEvent: false });
|
1427
|
-
});
|
1428
|
-
// changed required validation logic after initialization
|
1429
|
-
if (component.control.errors?.required) {
|
1430
|
-
Promise.resolve().then(() => {
|
1431
|
-
setValidState(component.control, originalValidator);
|
1432
|
-
cdr?.markForCheck();
|
1433
|
-
});
|
1434
|
-
}
|
1435
|
-
// check dynamic updates
|
1436
|
-
component.control.statusChanges
|
1437
|
-
.subscribe(() => {
|
1438
|
-
// changed required validation logic
|
1439
|
-
if (component.control.invalid && (parentForm && !parentForm.submitted) && component.control.errors.required) {
|
1440
|
-
setValidState(component.control, originalValidator);
|
1441
|
-
}
|
1442
|
-
// changed all other validation logic
|
1443
|
-
if (component.control.invalid && component.focused) {
|
1444
|
-
setValidState(component.control, originalValidator);
|
1445
|
-
}
|
1446
|
-
});
|
1447
|
-
}
|
1448
1568
|
|
1449
1569
|
class McHighlightPipe {
|
1450
1570
|
transform(value, args) {
|
@@ -1454,19 +1574,19 @@ class McHighlightPipe {
|
|
1454
1574
|
return value.replace(new RegExp(`(${args})`, 'gi'), '<mark class="mc-highlight">$1</mark>');
|
1455
1575
|
}
|
1456
1576
|
}
|
1457
|
-
/** @nocollapse */
|
1458
|
-
/** @nocollapse */
|
1459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1577
|
+
/** @nocollapse */ McHighlightPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
1578
|
+
/** @nocollapse */ McHighlightPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McHighlightPipe, name: "mcHighlight" });
|
1579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightPipe, decorators: [{
|
1460
1580
|
type: Pipe,
|
1461
1581
|
args: [{ name: 'mcHighlight' }]
|
1462
1582
|
}] });
|
1463
1583
|
|
1464
1584
|
class McHighlightModule {
|
1465
1585
|
}
|
1466
|
-
/** @nocollapse */
|
1467
|
-
/** @nocollapse */
|
1468
|
-
/** @nocollapse */
|
1469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1586
|
+
/** @nocollapse */ McHighlightModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1587
|
+
/** @nocollapse */ McHighlightModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McHighlightModule, declarations: [McHighlightPipe], imports: [CommonModule], exports: [McHighlightPipe] });
|
1588
|
+
/** @nocollapse */ McHighlightModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightModule, imports: [CommonModule] });
|
1589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightModule, decorators: [{
|
1470
1590
|
type: NgModule,
|
1471
1591
|
args: [{
|
1472
1592
|
imports: [CommonModule],
|
@@ -1844,9 +1964,8 @@ var MultipleMode;
|
|
1844
1964
|
// Boilerplate for applying mixins to McPseudoCheckbox.
|
1845
1965
|
/** @docs-private */
|
1846
1966
|
class McPseudoCheckboxBase {
|
1847
|
-
|
1848
|
-
|
1849
|
-
this._elementRef = _elementRef;
|
1967
|
+
constructor(elementRef) {
|
1968
|
+
this.elementRef = elementRef;
|
1850
1969
|
}
|
1851
1970
|
}
|
1852
1971
|
// tslint:disable-next-line:naming-convention
|
@@ -1871,9 +1990,9 @@ class McPseudoCheckbox extends McPseudoCheckboxMixinBase {
|
|
1871
1990
|
this.disabled = false;
|
1872
1991
|
}
|
1873
1992
|
}
|
1874
|
-
/** @nocollapse */
|
1875
|
-
/** @nocollapse */
|
1876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1993
|
+
/** @nocollapse */ McPseudoCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckbox, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
1994
|
+
/** @nocollapse */ McPseudoCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: { color: "color", state: "state", disabled: "disabled" }, host: { properties: { "class.mc-indeterminate": "state === \"indeterminate\"", "class.mc-checked": "state === \"checked\"", "class.mc-disabled": "disabled" }, classAttribute: "mc-pseudo-checkbox" }, usesInheritance: true, ngImport: i0, template: "<i class=\"mc-checkbox-checkmark mc mc-check_16\"></i>\n<i class=\"mc-checkbox-mixedmark mc mc-minus_16\"></i>\n", styles: [".mc-pseudo-checkbox{position:relative;display:inline-block;box-sizing:border-box;width:16px;width:var(--mc-checkbox-size-width, 16px);height:16px;height:var(--mc-checkbox-size-width, 16px);border-radius:3px;border-width:1px;border-width:var(--mc-checkbox-size-border-width, 1px);border-style:solid;cursor:pointer;vertical-align:middle;flex-shrink:0}.mc-pseudo-checkbox .mc-checkbox-checkmark,.mc-pseudo-checkbox .mc-checkbox-mixedmark{display:none;position:absolute;top:-1px;top:calc(-1 * var(--mc-checkbox-size-border-width, 1px));left:-1px;left:calc(-1 * var(--mc-checkbox-size-border-width, 1px))}.mc-pseudo-checkbox.mc-pseudo-checkbox-checked,.mc-pseudo-checkbox.mc-pseudo-checkbox-indeterminate{border-color:transparent}.mc-pseudo-checkbox.mc-checked .mc-checkbox-checkmark,.mc-pseudo-checkbox.mc-indeterminate .mc-checkbox-mixedmark{display:inline-block}.mc-pseudo-checkbox.mc-disabled{cursor:default}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
1995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckbox, decorators: [{
|
1877
1996
|
type: Component,
|
1878
1997
|
args: [{ selector: 'mc-pseudo-checkbox', host: {
|
1879
1998
|
class: 'mc-pseudo-checkbox',
|
@@ -1889,10 +2008,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
1889
2008
|
|
1890
2009
|
class McPseudoCheckboxModule {
|
1891
2010
|
}
|
1892
|
-
/** @nocollapse */
|
1893
|
-
/** @nocollapse */
|
1894
|
-
/** @nocollapse */
|
1895
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2011
|
+
/** @nocollapse */ McPseudoCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2012
|
+
/** @nocollapse */ McPseudoCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckboxModule, declarations: [McPseudoCheckbox], imports: [CommonModule], exports: [McPseudoCheckbox] });
|
2013
|
+
/** @nocollapse */ McPseudoCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckboxModule, imports: [CommonModule] });
|
2014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckboxModule, decorators: [{
|
1896
2015
|
type: NgModule,
|
1897
2016
|
args: [{
|
1898
2017
|
imports: [CommonModule],
|
@@ -1934,9 +2053,9 @@ class McMeasureScrollbarService {
|
|
1934
2053
|
this._scrollBarWidth = width;
|
1935
2054
|
}
|
1936
2055
|
}
|
1937
|
-
/** @nocollapse */
|
1938
|
-
/** @nocollapse */
|
1939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2056
|
+
/** @nocollapse */ McMeasureScrollbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McMeasureScrollbarService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
2057
|
+
/** @nocollapse */ McMeasureScrollbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McMeasureScrollbarService, providedIn: 'root' });
|
2058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McMeasureScrollbarService, decorators: [{
|
1940
2059
|
type: Injectable,
|
1941
2060
|
args: [{
|
1942
2061
|
providedIn: 'root'
|
@@ -1962,14 +2081,14 @@ class McOptgroup extends McOptgroupMixinBase {
|
|
1962
2081
|
this.labelId = `mc-optgroup-label-${uniqueOptgroupIdCounter++}`;
|
1963
2082
|
}
|
1964
2083
|
}
|
1965
|
-
/** @nocollapse */
|
1966
|
-
/** @nocollapse */
|
1967
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2084
|
+
/** @nocollapse */ McOptgroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptgroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
2085
|
+
/** @nocollapse */ McOptgroup.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McOptgroup, selector: "mc-optgroup", inputs: { disabled: "disabled", label: "label" }, host: { properties: { "class.mc-disabled": "disabled" }, classAttribute: "mc-optgroup" }, exportAs: ["mcOptgroup"], usesInheritance: true, ngImport: i0, template: "<label class=\"mc-optgroup-label\" [id]=\"labelId\">{{ label }}</label>\n<ng-content select=\"mc-option, mc-list-option, mc-timezone-option, ng-container\"></ng-content>\n", styles: [".mc-optgroup-label{padding-left:17px;padding-left:var(--mc-optgroup-size-padding-left, 17px);-webkit-user-select:none;user-select:none;cursor:default}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
2086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptgroup, decorators: [{
|
1968
2087
|
type: Component,
|
1969
2088
|
args: [{ selector: 'mc-optgroup', exportAs: 'mcOptgroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled'], host: {
|
1970
2089
|
class: 'mc-optgroup',
|
1971
2090
|
'[class.mc-disabled]': 'disabled'
|
1972
|
-
}, template: "<label class=\"mc-optgroup-label\" [id]=\"labelId\">{{ label }}</label>\n<ng-content select=\"mc-option, mc-list-option, ng-container\"></ng-content>\n", styles: [".mc-optgroup-label{padding-left:17px;padding-left:var(--mc-optgroup-size-padding-left, 17px);-webkit-user-select:none;user-select:none;cursor:default}\n"] }]
|
2091
|
+
}, template: "<label class=\"mc-optgroup-label\" [id]=\"labelId\">{{ label }}</label>\n<ng-content select=\"mc-option, mc-list-option, mc-timezone-option, ng-container\"></ng-content>\n", styles: [".mc-optgroup-label{padding-left:17px;padding-left:var(--mc-optgroup-size-padding-left, 17px);-webkit-user-select:none;user-select:none;cursor:default}\n"] }]
|
1973
2092
|
}], propDecorators: { label: [{
|
1974
2093
|
type: Input
|
1975
2094
|
}] } });
|
@@ -2148,9 +2267,9 @@ class McOption {
|
|
2148
2267
|
this.onSelectionChange.emit(new McOptionSelectionChange(this, isUserInput));
|
2149
2268
|
}
|
2150
2269
|
}
|
2151
|
-
/** @nocollapse */
|
2152
|
-
/** @nocollapse */
|
2153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2270
|
+
/** @nocollapse */ McOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOption, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: MC_OPTION_PARENT_COMPONENT, optional: true }, { token: McOptgroup, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
2271
|
+
/** @nocollapse */ McOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McOption, selector: "mc-option", inputs: { value: "value", showCheckbox: "showCheckbox", disabled: "disabled" }, outputs: { onSelectionChange: "onSelectionChange" }, host: { listeners: { "click": "selectViaInteraction()", "keydown": "handleKeydown($event)" }, properties: { "attr.tabindex": "getTabIndex()", "class.mc-selected": "selected", "class.mc-option-multiple": "multiple", "class.mc-active": "active", "class.mc-disabled": "disabled", "id": "id" }, classAttribute: "mc-option" }, viewQueries: [{ propertyName: "textElement", first: true, predicate: ["mcTextElement"], descendants: true }], exportAs: ["mcOption"], ngImport: i0, template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<span #mcTextElement class=\"mc-option-text\"><ng-content></ng-content></span>\n\n<div class=\"mc-option-overlay\"></div>\n", styles: [".mc-option{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;position:relative;max-width:100%;height:32px;height:var(--mc-option-size-height, 32px);border:2px solid transparent;border:var(--mc-option-size-border-width, 2px) solid transparent;cursor:pointer;outline:none;padding-left:12px;padding-left:var(--mc-option-size-horizontal-padding, 12px);padding-right:12px;padding-right:var(--mc-option-size-horizontal-padding, 12px);-webkit-tap-highlight-color:transparent}.mc-option.mc-disabled{cursor:default}.mc-option .mc-pseudo-checkbox{margin-right:8px}.mc-option .mc-option-overlay{position:absolute;top:-2px;top:calc(-1 * var(--mc-option-size-border-width, 2px));left:-2px;left:calc(-1 * var(--mc-option-size-border-width, 2px));right:-2px;right:calc(-1 * var(--mc-option-size-border-width, 2px));bottom:-2px;bottom:calc(-1 * var(--mc-option-size-border-width, 2px));pointer-events:none;border-radius:inherit}.mc-option-text{display:inline-block;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: ["color", "state", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
2272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOption, decorators: [{
|
2154
2273
|
type: Component,
|
2155
2274
|
args: [{ selector: 'mc-option', exportAs: 'mcOption', host: {
|
2156
2275
|
'[attr.tabindex]': 'getTabIndex()',
|
@@ -2302,14 +2421,14 @@ class McOptionActionComponent extends McOptionActionMixinBase {
|
|
2302
2421
|
setTimeout(() => this.option.tooltipTrigger.disabled = false);
|
2303
2422
|
}
|
2304
2423
|
}
|
2305
|
-
/** @nocollapse */
|
2306
|
-
/** @nocollapse */
|
2424
|
+
/** @nocollapse */ McOptionActionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptionActionComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.FocusMonitor }, { token: MC_OPTION_ACTION_PARENT }], target: i0.ɵɵFactoryTarget.Component });
|
2425
|
+
/** @nocollapse */ McOptionActionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McOptionActionComponent, selector: "mc-option-action", inputs: { disabled: "disabled" }, host: { listeners: { "focus": "onFocus($event)", "blur": "onBlur()", "click": "onClick($event)", "keydown": "onKeyDown($event)" }, properties: { "class.mc-expanded": "false", "attr.disabled": "disabled || null", "attr.tabIndex": "-1" }, classAttribute: "mc-option-action" }, queries: [{ propertyName: "customIcon", first: true, predicate: ["customIcon"], descendants: true }], exportAs: ["mcOptionAction"], usesInheritance: true, ngImport: i0, template: `
|
2307
2426
|
<ng-container [ngSwitch]="!!customIcon">
|
2308
2427
|
<i class="mc mc-icon mc-ellipsis_16" *ngSwitchCase="false"></i>
|
2309
2428
|
<ng-content select="[mc-icon]" *ngSwitchCase="true"></ng-content>
|
2310
2429
|
</ng-container>
|
2311
|
-
`, isInline: true, styles: [".mc-option-action{box-sizing:content-box;box-sizing:initial;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:-2px;width:28px;height:100%;cursor:pointer;outline:none;border:2px solid transparent;background:transparent}.mc-option-action[disabled]{cursor:default}\n"],
|
2312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2430
|
+
`, isInline: true, styles: [".mc-option-action{box-sizing:content-box;box-sizing:initial;position:relative;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:-2px;width:28px;height:100%;cursor:pointer;outline:none;border:2px solid transparent;background:transparent}.mc-option-action[disabled]{cursor:default}\n"], dependencies: [{ kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
2431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptionActionComponent, decorators: [{
|
2313
2432
|
type: Component,
|
2314
2433
|
args: [{ selector: 'mc-option-action', exportAs: 'mcOptionAction', template: `
|
2315
2434
|
<ng-container [ngSwitch]="!!customIcon">
|
@@ -2336,10 +2455,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
2336
2455
|
|
2337
2456
|
class McOptionModule {
|
2338
2457
|
}
|
2339
|
-
/** @nocollapse */
|
2340
|
-
/** @nocollapse */
|
2341
|
-
/** @nocollapse */
|
2342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2458
|
+
/** @nocollapse */ McOptionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2459
|
+
/** @nocollapse */ McOptionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McOptionModule, declarations: [McOption, McOptgroup, McOptionActionComponent], imports: [CommonModule, McPseudoCheckboxModule], exports: [McOption, McOptgroup, McOptionActionComponent] });
|
2460
|
+
/** @nocollapse */ McOptionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptionModule, imports: [CommonModule, McPseudoCheckboxModule] });
|
2461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptionModule, decorators: [{
|
2343
2462
|
type: NgModule,
|
2344
2463
|
args: [{
|
2345
2464
|
imports: [CommonModule, McPseudoCheckboxModule],
|
@@ -2367,9 +2486,9 @@ class McFormElement {
|
|
2367
2486
|
}
|
2368
2487
|
}
|
2369
2488
|
}
|
2370
|
-
/** @nocollapse */
|
2371
|
-
/** @nocollapse */
|
2372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2489
|
+
/** @nocollapse */ McFormElement.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormElement, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
2490
|
+
/** @nocollapse */ McFormElement.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McFormElement, selector: ".mc-form__row, .mc-form__fieldset, .mc-form__legend", host: { properties: { "class.mc-form-row_margin": "margin" } }, queries: [{ propertyName: "elements", predicate: McFormElement }], exportAs: ["mcFormElement"], ngImport: i0 });
|
2491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormElement, decorators: [{
|
2373
2492
|
type: Directive,
|
2374
2493
|
args: [{
|
2375
2494
|
selector: '.mc-form__row, .mc-form__fieldset, .mc-form__legend',
|
@@ -2396,9 +2515,9 @@ class McForm {
|
|
2396
2515
|
});
|
2397
2516
|
}
|
2398
2517
|
}
|
2399
|
-
/** @nocollapse */
|
2400
|
-
/** @nocollapse */
|
2401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2518
|
+
/** @nocollapse */ McForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McForm, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
2519
|
+
/** @nocollapse */ McForm.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McForm, selector: ".mc-form-vertical, .mc-form-horizontal", host: { classAttribute: "mc-form" }, queries: [{ propertyName: "elements", predicate: McFormElement }], exportAs: ["mcForm"], ngImport: i0 });
|
2520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McForm, decorators: [{
|
2402
2521
|
type: Directive,
|
2403
2522
|
args: [{
|
2404
2523
|
selector: '.mc-form-vertical, .mc-form-horizontal',
|
@@ -2414,12 +2533,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
2414
2533
|
|
2415
2534
|
class McFormsModule {
|
2416
2535
|
}
|
2417
|
-
/** @nocollapse */
|
2418
|
-
/** @nocollapse */
|
2536
|
+
/** @nocollapse */ McFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2537
|
+
/** @nocollapse */ McFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McFormsModule, declarations: [McForm,
|
2419
2538
|
McFormElement], exports: [McForm,
|
2420
2539
|
McFormElement] });
|
2421
|
-
/** @nocollapse */
|
2422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2540
|
+
/** @nocollapse */ McFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormsModule });
|
2541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormsModule, decorators: [{
|
2423
2542
|
type: NgModule,
|
2424
2543
|
args: [{
|
2425
2544
|
exports: [
|
@@ -2551,9 +2670,9 @@ class McPopUp {
|
|
2551
2670
|
}
|
2552
2671
|
}
|
2553
2672
|
}
|
2554
|
-
/** @nocollapse */
|
2555
|
-
/** @nocollapse */
|
2556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2673
|
+
/** @nocollapse */ McPopUp.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPopUp, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
2674
|
+
/** @nocollapse */ McPopUp.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McPopUp, ngImport: i0 });
|
2675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPopUp, decorators: [{
|
2557
2676
|
type: Directive
|
2558
2677
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
2559
2678
|
|
@@ -2576,7 +2695,7 @@ class McPopUpTrigger {
|
|
2576
2695
|
this.listeners = new Map();
|
2577
2696
|
this.destroyed = new Subject();
|
2578
2697
|
this.detach = () => {
|
2579
|
-
if (this.overlayRef
|
2698
|
+
if (this.overlayRef?.hasAttached()) {
|
2580
2699
|
this.overlayRef.detach();
|
2581
2700
|
}
|
2582
2701
|
this.instance = null;
|
@@ -2611,9 +2730,7 @@ class McPopUpTrigger {
|
|
2611
2730
|
this.initListeners();
|
2612
2731
|
}
|
2613
2732
|
ngOnDestroy() {
|
2614
|
-
|
2615
|
-
this.overlayRef.dispose();
|
2616
|
-
}
|
2733
|
+
this.overlayRef?.dispose();
|
2617
2734
|
this.listeners.forEach(this.removeEventListener);
|
2618
2735
|
this.listeners.clear();
|
2619
2736
|
this.destroyed.next();
|
@@ -2665,6 +2782,7 @@ class McPopUpTrigger {
|
|
2665
2782
|
return;
|
2666
2783
|
}
|
2667
2784
|
this.overlayRef = this.createOverlay();
|
2785
|
+
this.subscribeOnClosingActions();
|
2668
2786
|
this.detach();
|
2669
2787
|
this.portal = this.portal || new ComponentPortal(this.getOverlayHandleComponentType(), this.hostView);
|
2670
2788
|
this.instance = this.overlayRef.attach(this.portal).instance;
|
@@ -2710,12 +2828,7 @@ class McPopUpTrigger {
|
|
2710
2828
|
positionStrategy: strategy,
|
2711
2829
|
scrollStrategy: this.scrollStrategy()
|
2712
2830
|
});
|
2713
|
-
this.
|
2714
|
-
.pipe(takeUntil(this.destroyed))
|
2715
|
-
.pipe(delay(0))
|
2716
|
-
.subscribe(() => this.hide());
|
2717
|
-
this.overlayRef.outsidePointerEvents()
|
2718
|
-
.subscribe(() => this.instance.handleBodyInteraction());
|
2831
|
+
this.subscribeOnClosingActions();
|
2719
2832
|
this.overlayRef.detachments()
|
2720
2833
|
.pipe(takeUntil(this.destroyed))
|
2721
2834
|
.subscribe(this.detach);
|
@@ -2744,6 +2857,7 @@ class McPopUpTrigger {
|
|
2744
2857
|
/** Updates the position of the current popover. */
|
2745
2858
|
updatePosition(reapplyPosition = false) {
|
2746
2859
|
this.overlayRef = this.createOverlay();
|
2860
|
+
this.subscribeOnClosingActions();
|
2747
2861
|
const position = this.overlayRef.getConfig().positionStrategy
|
2748
2862
|
.withPositions(this.getPrioritizedPositions())
|
2749
2863
|
.withPush(true);
|
@@ -2776,10 +2890,17 @@ class McPopUpTrigger {
|
|
2776
2890
|
this.listeners.forEach(this.removeEventListener);
|
2777
2891
|
this.listeners.clear();
|
2778
2892
|
}
|
2893
|
+
subscribeOnClosingActions() {
|
2894
|
+
this.closingActionsSubscription?.unsubscribe();
|
2895
|
+
this.closingActionsSubscription = this.closingActions()
|
2896
|
+
.pipe(takeUntil(this.destroyed))
|
2897
|
+
.pipe(delay(0))
|
2898
|
+
.subscribe(() => this.hide());
|
2899
|
+
}
|
2779
2900
|
}
|
2780
|
-
/** @nocollapse */
|
2781
|
-
/** @nocollapse */
|
2782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2901
|
+
/** @nocollapse */ McPopUpTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPopUpTrigger, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
2902
|
+
/** @nocollapse */ McPopUpTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McPopUpTrigger, ngImport: i0 });
|
2903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPopUpTrigger, decorators: [{
|
2783
2904
|
type: Directive
|
2784
2905
|
}], ctorParameters: function () { return [{ type: i1$2.Overlay }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$2.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: undefined }, { type: i2$1.Directionality }]; } });
|
2785
2906
|
|
@@ -2787,5 +2908,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
2787
2908
|
* Generated bundle index. Do not edit.
|
2788
2909
|
*/
|
2789
2910
|
|
2790
|
-
export { AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DEFAULT_MC_LOCALE_ID, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, MC_LABEL_GLOBAL_OPTIONS, MC_LOCALE_ID, MC_OPTION_ACTION_PARENT, MC_OPTION_PARENT_COMPONENT, MC_SANITY_CHECKS, MC_SELECT_SCROLL_STRATEGY, MC_SELECT_SCROLL_STRATEGY_PROVIDER, MC_VALIDATION, McCommonModule, McDecimalPipe, McForm, McFormElement, McFormattersModule, McFormsModule, McHighlightModule, McHighlightPipe, McLine, McLineModule, McLineSetter, McMeasureScrollbarService, McOptgroup, McOptgroupBase, McOptgroupMixinBase, McOption, McOptionActionBase, McOptionActionComponent, McOptionActionMixinBase, McOptionModule, McOptionSelectionChange, McPopUp, McPopUpTrigger, McPseudoCheckbox, McPseudoCheckboxBase, McPseudoCheckboxMixinBase, McPseudoCheckboxModule, MultipleMode, NUMBER_FORMAT_REGEXP, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, SELECT_PANEL_INDENT_PADDING_X, SELECT_PANEL_MAX_HEIGHT, SELECT_PANEL_PADDING_X, SELECT_PANEL_VIEWPORT_PADDING, ShowOnDirtyErrorStateMatcher, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, ThemePalette, VERSION, countGroupLabelsBeforeOption, fadeAnimation, getMcSelectDynamicMultipleError, getMcSelectNonArrayValueError, getMcSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, mcSelectAnimations, mcSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, selectEvents,
|
2911
|
+
export { AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterPipe, AnimationCurves, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, DEFAULT_MC_LOCALE_ID, DateFormatter, EXTENDED_OVERLAY_POSITIONS, ErrorStateMatcher, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, MC_LABEL_GLOBAL_OPTIONS, MC_LOCALE_ID, MC_OPTION_ACTION_PARENT, MC_OPTION_PARENT_COMPONENT, MC_SANITY_CHECKS, MC_SELECT_SCROLL_STRATEGY, MC_SELECT_SCROLL_STRATEGY_PROVIDER, MC_VALIDATION, McCommonModule, McDecimalPipe, McForm, McFormElement, McFormattersModule, McFormsModule, McHighlightModule, McHighlightPipe, McLine, McLineModule, McLineSetter, McMeasureScrollbarService, McOptgroup, McOptgroupBase, McOptgroupMixinBase, McOption, McOptionActionBase, McOptionActionComponent, McOptionActionMixinBase, McOptionModule, McOptionSelectionChange, McPopUp, McPopUpTrigger, McPseudoCheckbox, McPseudoCheckboxBase, McPseudoCheckboxMixinBase, McPseudoCheckboxModule, MultipleMode, NUMBER_FORMAT_REGEXP, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, RangeDateFormatterPipe, RangeDateTimeFormatterPipe, RangeMiddleDateTimeFormatterPipe, RangeShortDateFormatterPipe, RangeShortDateTimeFormatterPipe, RelativeDateFormatterPipe, RelativeDateTimeFormatterPipe, RelativeShortDateFormatterPipe, RelativeShortDateTimeFormatterPipe, SELECT_PANEL_INDENT_PADDING_X, SELECT_PANEL_MAX_HEIGHT, SELECT_PANEL_PADDING_X, SELECT_PANEL_VIEWPORT_PADDING, ShowOnDirtyErrorStateMatcher, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, ThemePalette, VERSION, countGroupLabelsBeforeOption, fadeAnimation, getMcSelectDynamicMultipleError, getMcSelectNonArrayValueError, getMcSelectNonFunctionValueError, getOptionScrollPosition, isBoolean, mcSelectAnimations, mcSelectScrollStrategyProviderFactory, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, selectEvents, toBoolean, validationTooltipHideDelay, validationTooltipShowDelay };
|
2791
2912
|
//# sourceMappingURL=ptsecurity-mosaic-core.mjs.map
|