@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 { takeUntil, distinctUntilChanged, delay } from 'rxjs/operators';
|
18
17
|
import * as i1$1 from '@angular/cdk/a11y';
|
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],
|
@@ -128,6 +127,9 @@ var ThemePalette;
|
|
128
127
|
ThemePalette["Primary"] = "primary";
|
129
128
|
ThemePalette["Second"] = "second";
|
130
129
|
ThemePalette["Error"] = "error";
|
130
|
+
ThemePalette["Info"] = "info";
|
131
|
+
ThemePalette["Warning"] = "warning";
|
132
|
+
ThemePalette["Success"] = "success";
|
131
133
|
ThemePalette["Default"] = "second";
|
132
134
|
ThemePalette["Empty"] = "";
|
133
135
|
})(ThemePalette || (ThemePalette = {}));
|
@@ -142,10 +144,10 @@ function mixinColor(base, defaultColor = ThemePalette.Default) {
|
|
142
144
|
const colorPalette = value || defaultColor;
|
143
145
|
if (colorPalette !== this._color) {
|
144
146
|
if (this._color) {
|
145
|
-
this.
|
147
|
+
this.elementRef.nativeElement.classList.remove(`mc-${this._color}`);
|
146
148
|
}
|
147
149
|
if (colorPalette) {
|
148
|
-
this.
|
150
|
+
this.elementRef.nativeElement.classList.add(`mc-${colorPalette}`);
|
149
151
|
}
|
150
152
|
this._color = colorPalette;
|
151
153
|
}
|
@@ -170,21 +172,12 @@ function mixinTabIndex(base, defaultTabIndex = 0) {
|
|
170
172
|
};
|
171
173
|
}
|
172
174
|
|
173
|
-
/**
|
174
|
-
* Mixin to augment a directive with updateErrorState method.
|
175
|
-
* For component with `errorState` and need to update `errorState`.
|
176
|
-
*/
|
177
175
|
function mixinErrorState(base) {
|
178
176
|
return class extends base {
|
179
177
|
constructor(...args) {
|
180
178
|
super(...args);
|
181
179
|
/** Whether the component is in an error state. */
|
182
180
|
this.errorState = false;
|
183
|
-
/**
|
184
|
-
* Stream that emits whenever the state of the input changes such that the wrapping
|
185
|
-
* `MatFormField` needs to run change detection.
|
186
|
-
*/
|
187
|
-
this.stateChanges = new Subject();
|
188
181
|
}
|
189
182
|
updateErrorState() {
|
190
183
|
const oldState = this.errorState;
|
@@ -207,9 +200,9 @@ function mixinErrorState(base) {
|
|
207
200
|
*/
|
208
201
|
class McLine {
|
209
202
|
}
|
210
|
-
/** @nocollapse */
|
211
|
-
/** @nocollapse */
|
212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
203
|
+
/** @nocollapse */ McLine.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLine, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
204
|
+
/** @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 });
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLine, decorators: [{
|
213
206
|
type: Directive,
|
214
207
|
args: [{
|
215
208
|
selector: '[mc-line], [mcLine]',
|
@@ -256,10 +249,10 @@ class McLineSetter {
|
|
256
249
|
}
|
257
250
|
class McLineModule {
|
258
251
|
}
|
259
|
-
/** @nocollapse */
|
260
|
-
/** @nocollapse */
|
261
|
-
/** @nocollapse */
|
262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
252
|
+
/** @nocollapse */ McLineModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLineModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
253
|
+
/** @nocollapse */ McLineModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McLineModule, declarations: [McLine], exports: [McLine] });
|
254
|
+
/** @nocollapse */ McLineModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLineModule });
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McLineModule, decorators: [{
|
263
256
|
type: NgModule,
|
264
257
|
args: [{
|
265
258
|
imports: [],
|
@@ -274,9 +267,9 @@ class ShowOnDirtyErrorStateMatcher {
|
|
274
267
|
return !!(control && control.invalid && (control.dirty || (form && form.submitted)));
|
275
268
|
}
|
276
269
|
}
|
277
|
-
/** @nocollapse */
|
278
|
-
/** @nocollapse */
|
279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
270
|
+
/** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
271
|
+
/** @nocollapse */ ShowOnDirtyErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShowOnDirtyErrorStateMatcher });
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ShowOnDirtyErrorStateMatcher, decorators: [{
|
280
273
|
type: Injectable
|
281
274
|
}] });
|
282
275
|
/** Provider that defines how form controls behave with regards to displaying error messages. */
|
@@ -285,9 +278,9 @@ class ErrorStateMatcher {
|
|
285
278
|
return !!(control && control.invalid && (control.touched || (form && form.submitted)));
|
286
279
|
}
|
287
280
|
}
|
288
|
-
/** @nocollapse */
|
289
|
-
/** @nocollapse */
|
290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
281
|
+
/** @nocollapse */ ErrorStateMatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
282
|
+
/** @nocollapse */ ErrorStateMatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ErrorStateMatcher, providedIn: 'root' });
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: ErrorStateMatcher, decorators: [{
|
291
284
|
type: Injectable,
|
292
285
|
args: [{ providedIn: 'root' }]
|
293
286
|
}] });
|
@@ -1179,9 +1172,9 @@ class DateFormatter {
|
|
1179
1172
|
return this.adapter.hasSame(startDate, endDate, unit) ? 'yes' : 'no';
|
1180
1173
|
}
|
1181
1174
|
}
|
1182
|
-
/** @nocollapse */
|
1183
|
-
/** @nocollapse */
|
1184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1175
|
+
/** @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 });
|
1176
|
+
/** @nocollapse */ DateFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DateFormatter });
|
1177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DateFormatter, decorators: [{
|
1185
1178
|
type: Injectable
|
1186
1179
|
}], ctorParameters: function () {
|
1187
1180
|
return [{ type: i1.DateAdapter }, { type: undefined, decorators: [{
|
@@ -1190,6 +1183,189 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
1190
1183
|
}] }];
|
1191
1184
|
} });
|
1192
1185
|
|
1186
|
+
class AbsoluteDateFormatterPipe {
|
1187
|
+
constructor(formatter) {
|
1188
|
+
this.formatter = formatter;
|
1189
|
+
}
|
1190
|
+
transform(value, currYear) {
|
1191
|
+
return this.formatter.absoluteLongDate(value, currYear);
|
1192
|
+
}
|
1193
|
+
}
|
1194
|
+
/** @nocollapse */ AbsoluteDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1195
|
+
/** @nocollapse */ AbsoluteDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateFormatterPipe, name: "absoluteLongDate" });
|
1196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateFormatterPipe, decorators: [{
|
1197
|
+
type: Pipe,
|
1198
|
+
args: [{ name: 'absoluteLongDate' }]
|
1199
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1200
|
+
class AbsoluteDateTimeFormatterPipe {
|
1201
|
+
constructor(formatter) {
|
1202
|
+
this.formatter = formatter;
|
1203
|
+
}
|
1204
|
+
transform(value, options) {
|
1205
|
+
return this.formatter.absoluteLongDateTime(value, options);
|
1206
|
+
}
|
1207
|
+
}
|
1208
|
+
/** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1209
|
+
/** @nocollapse */ AbsoluteDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, name: "absoluteLongDateTime" });
|
1210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, decorators: [{
|
1211
|
+
type: Pipe,
|
1212
|
+
args: [{ name: 'absoluteLongDateTime' }]
|
1213
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1214
|
+
class AbsoluteDateShortFormatterPipe {
|
1215
|
+
constructor(formatter) {
|
1216
|
+
this.formatter = formatter;
|
1217
|
+
}
|
1218
|
+
transform(value, currYear) {
|
1219
|
+
return this.formatter.absoluteShortDate(value, currYear);
|
1220
|
+
}
|
1221
|
+
}
|
1222
|
+
/** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateShortFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1223
|
+
/** @nocollapse */ AbsoluteDateShortFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateShortFormatterPipe, name: "absoluteShortDate" });
|
1224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteDateShortFormatterPipe, decorators: [{
|
1225
|
+
type: Pipe,
|
1226
|
+
args: [{ name: 'absoluteShortDate' }]
|
1227
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1228
|
+
class AbsoluteShortDateTimeFormatterPipe {
|
1229
|
+
constructor(formatter) {
|
1230
|
+
this.formatter = formatter;
|
1231
|
+
}
|
1232
|
+
transform(value, options) {
|
1233
|
+
return this.formatter.absoluteShortDateTime(value, options);
|
1234
|
+
}
|
1235
|
+
}
|
1236
|
+
/** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1237
|
+
/** @nocollapse */ AbsoluteShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, name: "absoluteShortDateTime" });
|
1238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, decorators: [{
|
1239
|
+
type: Pipe,
|
1240
|
+
args: [{ name: 'absoluteShortDateTime' }]
|
1241
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1242
|
+
class RelativeDateFormatterPipe {
|
1243
|
+
constructor(formatter) {
|
1244
|
+
this.formatter = formatter;
|
1245
|
+
}
|
1246
|
+
transform(value) {
|
1247
|
+
return this.formatter.relativeLongDate(value);
|
1248
|
+
}
|
1249
|
+
}
|
1250
|
+
/** @nocollapse */ RelativeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1251
|
+
/** @nocollapse */ RelativeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateFormatterPipe, name: "relativeLongDate" });
|
1252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateFormatterPipe, decorators: [{
|
1253
|
+
type: Pipe,
|
1254
|
+
args: [{ name: 'relativeLongDate' }]
|
1255
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1256
|
+
class RelativeDateTimeFormatterPipe {
|
1257
|
+
constructor(formatter) {
|
1258
|
+
this.formatter = formatter;
|
1259
|
+
}
|
1260
|
+
transform(value, options) {
|
1261
|
+
return this.formatter.relativeLongDateTime(value, options);
|
1262
|
+
}
|
1263
|
+
}
|
1264
|
+
/** @nocollapse */ RelativeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1265
|
+
/** @nocollapse */ RelativeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateTimeFormatterPipe, name: "relativeLongDateTime" });
|
1266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeDateTimeFormatterPipe, decorators: [{
|
1267
|
+
type: Pipe,
|
1268
|
+
args: [{ name: 'relativeLongDateTime' }]
|
1269
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1270
|
+
class RelativeShortDateFormatterPipe {
|
1271
|
+
constructor(formatter) {
|
1272
|
+
this.formatter = formatter;
|
1273
|
+
}
|
1274
|
+
transform(value) {
|
1275
|
+
return this.formatter.relativeShortDate(value);
|
1276
|
+
}
|
1277
|
+
}
|
1278
|
+
/** @nocollapse */ RelativeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1279
|
+
/** @nocollapse */ RelativeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateFormatterPipe, name: "relativeShortDate" });
|
1280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateFormatterPipe, decorators: [{
|
1281
|
+
type: Pipe,
|
1282
|
+
args: [{ name: 'relativeShortDate' }]
|
1283
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1284
|
+
class RelativeShortDateTimeFormatterPipe {
|
1285
|
+
constructor(formatter) {
|
1286
|
+
this.formatter = formatter;
|
1287
|
+
}
|
1288
|
+
transform(value, options) {
|
1289
|
+
return this.formatter.relativeShortDateTime(value, options);
|
1290
|
+
}
|
1291
|
+
}
|
1292
|
+
/** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1293
|
+
/** @nocollapse */ RelativeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, name: "relativeShortDateTime" });
|
1294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, decorators: [{
|
1295
|
+
type: Pipe,
|
1296
|
+
args: [{ name: 'relativeShortDateTime' }]
|
1297
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1298
|
+
class RangeDateFormatterPipe {
|
1299
|
+
constructor(formatter) {
|
1300
|
+
this.formatter = formatter;
|
1301
|
+
}
|
1302
|
+
transform([value1, value2]) {
|
1303
|
+
return this.formatter.rangeLongDate(value1, value2);
|
1304
|
+
}
|
1305
|
+
}
|
1306
|
+
/** @nocollapse */ RangeDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1307
|
+
/** @nocollapse */ RangeDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeDateFormatterPipe, name: "rangeLongDate" });
|
1308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeDateFormatterPipe, decorators: [{
|
1309
|
+
type: Pipe,
|
1310
|
+
args: [{ name: 'rangeLongDate' }]
|
1311
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1312
|
+
class RangeShortDateFormatterPipe {
|
1313
|
+
constructor(formatter) {
|
1314
|
+
this.formatter = formatter;
|
1315
|
+
}
|
1316
|
+
transform([value1, value2]) {
|
1317
|
+
return this.formatter.rangeShortDate(value1, value2);
|
1318
|
+
}
|
1319
|
+
}
|
1320
|
+
/** @nocollapse */ RangeShortDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1321
|
+
/** @nocollapse */ RangeShortDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateFormatterPipe, name: "rangeShortDate" });
|
1322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateFormatterPipe, decorators: [{
|
1323
|
+
type: Pipe,
|
1324
|
+
args: [{ name: 'rangeShortDate' }]
|
1325
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1326
|
+
class RangeDateTimeFormatterPipe {
|
1327
|
+
constructor(formatter) {
|
1328
|
+
this.formatter = formatter;
|
1329
|
+
}
|
1330
|
+
transform([value1, value2], options) {
|
1331
|
+
return this.formatter.rangeLongDateTime(value1, value2, options);
|
1332
|
+
}
|
1333
|
+
}
|
1334
|
+
/** @nocollapse */ RangeDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1335
|
+
/** @nocollapse */ RangeDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeDateTimeFormatterPipe, name: "rangeLongDateTime" });
|
1336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeDateTimeFormatterPipe, decorators: [{
|
1337
|
+
type: Pipe,
|
1338
|
+
args: [{ name: 'rangeLongDateTime' }]
|
1339
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1340
|
+
class RangeMiddleDateTimeFormatterPipe {
|
1341
|
+
constructor(formatter) {
|
1342
|
+
this.formatter = formatter;
|
1343
|
+
}
|
1344
|
+
transform([value1, value2], options) {
|
1345
|
+
return this.formatter.rangeMiddleDateTime(value1, value2, options);
|
1346
|
+
}
|
1347
|
+
}
|
1348
|
+
/** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1349
|
+
/** @nocollapse */ RangeMiddleDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, name: "rangeMiddleDateTime" });
|
1350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, decorators: [{
|
1351
|
+
type: Pipe,
|
1352
|
+
args: [{ name: 'rangeMiddleDateTime' }]
|
1353
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1354
|
+
class RangeShortDateTimeFormatterPipe {
|
1355
|
+
constructor(formatter) {
|
1356
|
+
this.formatter = formatter;
|
1357
|
+
}
|
1358
|
+
transform([value1, value2], options) {
|
1359
|
+
return this.formatter.rangeShortDateTime(value1, value2, options);
|
1360
|
+
}
|
1361
|
+
}
|
1362
|
+
/** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateTimeFormatterPipe, deps: [{ token: DateFormatter }], target: i0.ɵɵFactoryTarget.Pipe });
|
1363
|
+
/** @nocollapse */ RangeShortDateTimeFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateTimeFormatterPipe, name: "rangeShortDateTime" });
|
1364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: RangeShortDateTimeFormatterPipe, decorators: [{
|
1365
|
+
type: Pipe,
|
1366
|
+
args: [{ name: 'rangeShortDateTime' }]
|
1367
|
+
}], ctorParameters: function () { return [{ type: DateFormatter }]; } });
|
1368
|
+
|
1193
1369
|
/* tslint:disable:naming-convention */
|
1194
1370
|
const MC_LOCALE_ID = new InjectionToken('McLocaleId');
|
1195
1371
|
const DEFAULT_MC_LOCALE_ID = 'ru';
|
@@ -1271,10 +1447,10 @@ class McDecimalPipe {
|
|
1271
1447
|
}
|
1272
1448
|
}
|
1273
1449
|
}
|
1274
|
-
/** @nocollapse */
|
1275
|
-
/** @nocollapse */
|
1276
|
-
/** @nocollapse */
|
1277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1450
|
+
/** @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 });
|
1451
|
+
/** @nocollapse */ McDecimalPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McDecimalPipe, name: "mcNumber" });
|
1452
|
+
/** @nocollapse */ McDecimalPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McDecimalPipe, providedIn: 'root' });
|
1453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McDecimalPipe, decorators: [{
|
1278
1454
|
type: Injectable,
|
1279
1455
|
args: [{ providedIn: 'root' }]
|
1280
1456
|
}, {
|
@@ -1291,14 +1467,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
1291
1467
|
|
1292
1468
|
class McFormattersModule {
|
1293
1469
|
}
|
1294
|
-
/** @nocollapse */
|
1295
|
-
/** @nocollapse */
|
1296
|
-
|
1297
|
-
|
1470
|
+
/** @nocollapse */ McFormattersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormattersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1471
|
+
/** @nocollapse */ McFormattersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McFormattersModule, declarations: [McDecimalPipe,
|
1472
|
+
AbsoluteDateFormatterPipe,
|
1473
|
+
AbsoluteDateTimeFormatterPipe,
|
1474
|
+
AbsoluteDateShortFormatterPipe,
|
1475
|
+
AbsoluteShortDateTimeFormatterPipe,
|
1476
|
+
RelativeDateFormatterPipe,
|
1477
|
+
RelativeDateTimeFormatterPipe,
|
1478
|
+
RelativeShortDateFormatterPipe,
|
1479
|
+
RelativeShortDateTimeFormatterPipe,
|
1480
|
+
RangeDateFormatterPipe,
|
1481
|
+
RangeShortDateFormatterPipe,
|
1482
|
+
RangeDateTimeFormatterPipe,
|
1483
|
+
RangeShortDateTimeFormatterPipe,
|
1484
|
+
RangeMiddleDateTimeFormatterPipe], exports: [McDecimalPipe,
|
1485
|
+
AbsoluteDateFormatterPipe,
|
1486
|
+
AbsoluteDateTimeFormatterPipe,
|
1487
|
+
AbsoluteDateShortFormatterPipe,
|
1488
|
+
AbsoluteShortDateTimeFormatterPipe,
|
1489
|
+
RelativeDateFormatterPipe,
|
1490
|
+
RelativeDateTimeFormatterPipe,
|
1491
|
+
RelativeShortDateFormatterPipe,
|
1492
|
+
RelativeShortDateTimeFormatterPipe,
|
1493
|
+
RangeDateFormatterPipe,
|
1494
|
+
RangeShortDateFormatterPipe,
|
1495
|
+
RangeDateTimeFormatterPipe,
|
1496
|
+
RangeShortDateTimeFormatterPipe,
|
1497
|
+
RangeMiddleDateTimeFormatterPipe] });
|
1498
|
+
/** @nocollapse */ McFormattersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormattersModule, providers: [DateFormatter] });
|
1499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormattersModule, decorators: [{
|
1298
1500
|
type: NgModule,
|
1299
1501
|
args: [{
|
1300
|
-
|
1301
|
-
|
1502
|
+
declarations: [
|
1503
|
+
McDecimalPipe,
|
1504
|
+
AbsoluteDateFormatterPipe,
|
1505
|
+
AbsoluteDateTimeFormatterPipe,
|
1506
|
+
AbsoluteDateShortFormatterPipe,
|
1507
|
+
AbsoluteShortDateTimeFormatterPipe,
|
1508
|
+
RelativeDateFormatterPipe,
|
1509
|
+
RelativeDateTimeFormatterPipe,
|
1510
|
+
RelativeShortDateFormatterPipe,
|
1511
|
+
RelativeShortDateTimeFormatterPipe,
|
1512
|
+
RangeDateFormatterPipe,
|
1513
|
+
RangeShortDateFormatterPipe,
|
1514
|
+
RangeDateTimeFormatterPipe,
|
1515
|
+
RangeShortDateTimeFormatterPipe,
|
1516
|
+
RangeMiddleDateTimeFormatterPipe
|
1517
|
+
],
|
1518
|
+
exports: [
|
1519
|
+
McDecimalPipe,
|
1520
|
+
AbsoluteDateFormatterPipe,
|
1521
|
+
AbsoluteDateTimeFormatterPipe,
|
1522
|
+
AbsoluteDateShortFormatterPipe,
|
1523
|
+
AbsoluteShortDateTimeFormatterPipe,
|
1524
|
+
RelativeDateFormatterPipe,
|
1525
|
+
RelativeDateTimeFormatterPipe,
|
1526
|
+
RelativeShortDateFormatterPipe,
|
1527
|
+
RelativeShortDateTimeFormatterPipe,
|
1528
|
+
RangeDateFormatterPipe,
|
1529
|
+
RangeShortDateFormatterPipe,
|
1530
|
+
RangeDateTimeFormatterPipe,
|
1531
|
+
RangeShortDateTimeFormatterPipe,
|
1532
|
+
RangeMiddleDateTimeFormatterPipe
|
1533
|
+
],
|
1302
1534
|
providers: [DateFormatter]
|
1303
1535
|
}]
|
1304
1536
|
}] });
|
@@ -1306,118 +1538,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
1306
1538
|
const validationTooltipShowDelay = 10;
|
1307
1539
|
const validationTooltipHideDelay = 3000;
|
1308
1540
|
const MC_VALIDATION = new InjectionToken('McUseValidation', { factory: () => ({ useValidation: true }) });
|
1309
|
-
function setValidState(control, validator) {
|
1310
|
-
if (!control) {
|
1311
|
-
return;
|
1312
|
-
}
|
1313
|
-
control.clearValidators();
|
1314
|
-
control.updateValueAndValidity({ emitEvent: false });
|
1315
|
-
control.setValidators(validator);
|
1316
|
-
}
|
1317
|
-
/** This function do next:
|
1318
|
-
* - run validation on submitting parent form
|
1319
|
-
* - prevent validation in required validator if form doesn't submitted
|
1320
|
-
* - if control has focus validation will be prevented
|
1321
|
-
*/
|
1322
|
-
function setMosaicValidation(component, cdr) {
|
1323
|
-
const ngControl = component.ngControl;
|
1324
|
-
if (!ngControl) {
|
1325
|
-
return;
|
1326
|
-
}
|
1327
|
-
const parentForm = component.parentForm || component.parentFormGroup;
|
1328
|
-
if (parentForm) {
|
1329
|
-
parentForm.ngSubmit.subscribe(() => {
|
1330
|
-
// tslint:disable-next-line: no-unnecessary-type-assertion
|
1331
|
-
ngControl.control.updateValueAndValidity({ emitEvent: false });
|
1332
|
-
});
|
1333
|
-
}
|
1334
|
-
if (component.ngModel) {
|
1335
|
-
setMosaicValidationForModelControl(component, component.rawValidators, parentForm);
|
1336
|
-
}
|
1337
|
-
else if (component.formControlName || component.ngControl) {
|
1338
|
-
setMosaicValidationForFormControl(component, parentForm, ngControl, cdr);
|
1339
|
-
}
|
1340
|
-
}
|
1341
|
-
function setMosaicValidationForModelControl(component, validators, parentForm) {
|
1342
|
-
if (!validators) {
|
1343
|
-
return;
|
1344
|
-
}
|
1345
|
-
validators.forEach((validator) => {
|
1346
|
-
// tslint:disable-next-line: no-unbound-method
|
1347
|
-
const originalValidate = validator.validate;
|
1348
|
-
if (validator instanceof RequiredValidator) {
|
1349
|
-
// changed required validation logic
|
1350
|
-
validator.validate = (control) => {
|
1351
|
-
if (parentForm && !parentForm.submitted) {
|
1352
|
-
return null;
|
1353
|
-
}
|
1354
|
-
return originalValidate.call(validator, control);
|
1355
|
-
};
|
1356
|
-
}
|
1357
|
-
else {
|
1358
|
-
// changed all other validation logic
|
1359
|
-
validator.validate = (control) => {
|
1360
|
-
if (component.focused) {
|
1361
|
-
return null;
|
1362
|
-
}
|
1363
|
-
return originalValidate.call(validator, control);
|
1364
|
-
};
|
1365
|
-
}
|
1366
|
-
});
|
1367
|
-
}
|
1368
|
-
function setMosaicValidationForFormControl(component, parentForm, ngControl, cdr) {
|
1369
|
-
const originalValidator = ngControl.control.validator;
|
1370
|
-
// changed required validation logic after initialization
|
1371
|
-
if (ngControl.invalid && ngControl.errors.required) {
|
1372
|
-
Promise.resolve().then(() => {
|
1373
|
-
setValidState(ngControl.control, originalValidator);
|
1374
|
-
if (cdr) {
|
1375
|
-
cdr.markForCheck();
|
1376
|
-
}
|
1377
|
-
});
|
1378
|
-
}
|
1379
|
-
// check dynamic updates
|
1380
|
-
ngControl.statusChanges
|
1381
|
-
.subscribe(() => {
|
1382
|
-
// changed required validation logic
|
1383
|
-
if (ngControl.invalid && (parentForm && !parentForm.submitted) && ngControl.errors.required) {
|
1384
|
-
setValidState(ngControl.control, originalValidator);
|
1385
|
-
}
|
1386
|
-
// changed all other validation logic
|
1387
|
-
if (ngControl.invalid && component.focused) {
|
1388
|
-
setValidState(ngControl.control, originalValidator);
|
1389
|
-
}
|
1390
|
-
});
|
1391
|
-
}
|
1392
|
-
// this validation used in datepicker and timepicker
|
1393
|
-
function setMosaicValidationForCustomFormControl(component, cdr) {
|
1394
|
-
var _a;
|
1395
|
-
const originalValidator = component.control.validator;
|
1396
|
-
const parentForm = component.parentForm || component.parentFormGroup;
|
1397
|
-
parentForm === null || parentForm === void 0 ? void 0 : parentForm.ngSubmit.subscribe(() => {
|
1398
|
-
// tslint:disable-next-line: no-unnecessary-type-assertion
|
1399
|
-
component.control.updateValueAndValidity({ emitEvent: false });
|
1400
|
-
});
|
1401
|
-
// changed required validation logic after initialization
|
1402
|
-
if ((_a = component.control.errors) === null || _a === void 0 ? void 0 : _a.required) {
|
1403
|
-
Promise.resolve().then(() => {
|
1404
|
-
setValidState(component.control, originalValidator);
|
1405
|
-
cdr === null || cdr === void 0 ? void 0 : cdr.markForCheck();
|
1406
|
-
});
|
1407
|
-
}
|
1408
|
-
// check dynamic updates
|
1409
|
-
component.control.statusChanges
|
1410
|
-
.subscribe(() => {
|
1411
|
-
// changed required validation logic
|
1412
|
-
if (component.control.invalid && (parentForm && !parentForm.submitted) && component.control.errors.required) {
|
1413
|
-
setValidState(component.control, originalValidator);
|
1414
|
-
}
|
1415
|
-
// changed all other validation logic
|
1416
|
-
if (component.control.invalid && component.focused) {
|
1417
|
-
setValidState(component.control, originalValidator);
|
1418
|
-
}
|
1419
|
-
});
|
1420
|
-
}
|
1421
1541
|
|
1422
1542
|
class McHighlightPipe {
|
1423
1543
|
transform(value, args) {
|
@@ -1427,19 +1547,19 @@ class McHighlightPipe {
|
|
1427
1547
|
return value.replace(new RegExp(`(${args})`, 'gi'), '<mark class="mc-highlight">$1</mark>');
|
1428
1548
|
}
|
1429
1549
|
}
|
1430
|
-
/** @nocollapse */
|
1431
|
-
/** @nocollapse */
|
1432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1550
|
+
/** @nocollapse */ McHighlightPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
1551
|
+
/** @nocollapse */ McHighlightPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McHighlightPipe, name: "mcHighlight" });
|
1552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightPipe, decorators: [{
|
1433
1553
|
type: Pipe,
|
1434
1554
|
args: [{ name: 'mcHighlight' }]
|
1435
1555
|
}] });
|
1436
1556
|
|
1437
1557
|
class McHighlightModule {
|
1438
1558
|
}
|
1439
|
-
/** @nocollapse */
|
1440
|
-
/** @nocollapse */
|
1441
|
-
/** @nocollapse */
|
1442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1559
|
+
/** @nocollapse */ McHighlightModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1560
|
+
/** @nocollapse */ McHighlightModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McHighlightModule, declarations: [McHighlightPipe], imports: [CommonModule], exports: [McHighlightPipe] });
|
1561
|
+
/** @nocollapse */ McHighlightModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightModule, imports: [CommonModule] });
|
1562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McHighlightModule, decorators: [{
|
1443
1563
|
type: NgModule,
|
1444
1564
|
args: [{
|
1445
1565
|
imports: [CommonModule],
|
@@ -1817,9 +1937,8 @@ var MultipleMode;
|
|
1817
1937
|
// Boilerplate for applying mixins to McPseudoCheckbox.
|
1818
1938
|
/** @docs-private */
|
1819
1939
|
class McPseudoCheckboxBase {
|
1820
|
-
|
1821
|
-
|
1822
|
-
this._elementRef = _elementRef;
|
1940
|
+
constructor(elementRef) {
|
1941
|
+
this.elementRef = elementRef;
|
1823
1942
|
}
|
1824
1943
|
}
|
1825
1944
|
// tslint:disable-next-line:naming-convention
|
@@ -1844,9 +1963,9 @@ class McPseudoCheckbox extends McPseudoCheckboxMixinBase {
|
|
1844
1963
|
this.disabled = false;
|
1845
1964
|
}
|
1846
1965
|
}
|
1847
|
-
/** @nocollapse */
|
1848
|
-
/** @nocollapse */
|
1849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1966
|
+
/** @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 });
|
1967
|
+
/** @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 });
|
1968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckbox, decorators: [{
|
1850
1969
|
type: Component,
|
1851
1970
|
args: [{ selector: 'mc-pseudo-checkbox', host: {
|
1852
1971
|
class: 'mc-pseudo-checkbox',
|
@@ -1862,10 +1981,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
1862
1981
|
|
1863
1982
|
class McPseudoCheckboxModule {
|
1864
1983
|
}
|
1865
|
-
/** @nocollapse */
|
1866
|
-
/** @nocollapse */
|
1867
|
-
/** @nocollapse */
|
1868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
1984
|
+
/** @nocollapse */ McPseudoCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1985
|
+
/** @nocollapse */ McPseudoCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckboxModule, declarations: [McPseudoCheckbox], imports: [CommonModule], exports: [McPseudoCheckbox] });
|
1986
|
+
/** @nocollapse */ McPseudoCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckboxModule, imports: [CommonModule] });
|
1987
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPseudoCheckboxModule, decorators: [{
|
1869
1988
|
type: NgModule,
|
1870
1989
|
args: [{
|
1871
1990
|
imports: [CommonModule],
|
@@ -1907,9 +2026,9 @@ class McMeasureScrollbarService {
|
|
1907
2026
|
this._scrollBarWidth = width;
|
1908
2027
|
}
|
1909
2028
|
}
|
1910
|
-
/** @nocollapse */
|
1911
|
-
/** @nocollapse */
|
1912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2029
|
+
/** @nocollapse */ McMeasureScrollbarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McMeasureScrollbarService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
2030
|
+
/** @nocollapse */ McMeasureScrollbarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McMeasureScrollbarService, providedIn: 'root' });
|
2031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McMeasureScrollbarService, decorators: [{
|
1913
2032
|
type: Injectable,
|
1914
2033
|
args: [{
|
1915
2034
|
providedIn: 'root'
|
@@ -1937,14 +2056,14 @@ class McOptgroup extends McOptgroupMixinBase {
|
|
1937
2056
|
this.labelId = `mc-optgroup-label-${uniqueOptgroupIdCounter++}`;
|
1938
2057
|
}
|
1939
2058
|
}
|
1940
|
-
/** @nocollapse */
|
1941
|
-
/** @nocollapse */
|
1942
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2059
|
+
/** @nocollapse */ McOptgroup.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptgroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
2060
|
+
/** @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 });
|
2061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptgroup, decorators: [{
|
1943
2062
|
type: Component,
|
1944
2063
|
args: [{ selector: 'mc-optgroup', exportAs: 'mcOptgroup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['disabled'], host: {
|
1945
2064
|
class: 'mc-optgroup',
|
1946
2065
|
'[class.mc-disabled]': 'disabled'
|
1947
|
-
}, 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"] }]
|
2066
|
+
}, 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"] }]
|
1948
2067
|
}], propDecorators: { label: [{
|
1949
2068
|
type: Input
|
1950
2069
|
}] } });
|
@@ -2123,9 +2242,9 @@ class McOption {
|
|
2123
2242
|
this.onSelectionChange.emit(new McOptionSelectionChange(this, isUserInput));
|
2124
2243
|
}
|
2125
2244
|
}
|
2126
|
-
/** @nocollapse */
|
2127
|
-
/** @nocollapse */
|
2128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2245
|
+
/** @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 });
|
2246
|
+
/** @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 });
|
2247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOption, decorators: [{
|
2129
2248
|
type: Component,
|
2130
2249
|
args: [{ selector: 'mc-option', exportAs: 'mcOption', host: {
|
2131
2250
|
'[attr.tabindex]': 'getTabIndex()',
|
@@ -2280,14 +2399,14 @@ class McOptionActionComponent extends McOptionActionMixinBase {
|
|
2280
2399
|
setTimeout(() => this.option.tooltipTrigger.disabled = false);
|
2281
2400
|
}
|
2282
2401
|
}
|
2283
|
-
/** @nocollapse */
|
2284
|
-
/** @nocollapse */
|
2402
|
+
/** @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 });
|
2403
|
+
/** @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: `
|
2285
2404
|
<ng-container [ngSwitch]="!!customIcon">
|
2286
2405
|
<i class="mc mc-icon mc-ellipsis_16" *ngSwitchCase="false"></i>
|
2287
2406
|
<ng-content select="[mc-icon]" *ngSwitchCase="true"></ng-content>
|
2288
2407
|
</ng-container>
|
2289
|
-
`, 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"],
|
2290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2408
|
+
`, 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 });
|
2409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptionActionComponent, decorators: [{
|
2291
2410
|
type: Component,
|
2292
2411
|
args: [{ selector: 'mc-option-action', exportAs: 'mcOptionAction', template: `
|
2293
2412
|
<ng-container [ngSwitch]="!!customIcon">
|
@@ -2316,10 +2435,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
2316
2435
|
|
2317
2436
|
class McOptionModule {
|
2318
2437
|
}
|
2319
|
-
/** @nocollapse */
|
2320
|
-
/** @nocollapse */
|
2321
|
-
/** @nocollapse */
|
2322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2438
|
+
/** @nocollapse */ McOptionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2439
|
+
/** @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] });
|
2440
|
+
/** @nocollapse */ McOptionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptionModule, imports: [CommonModule, McPseudoCheckboxModule] });
|
2441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McOptionModule, decorators: [{
|
2323
2442
|
type: NgModule,
|
2324
2443
|
args: [{
|
2325
2444
|
imports: [CommonModule, McPseudoCheckboxModule],
|
@@ -2347,9 +2466,9 @@ class McFormElement {
|
|
2347
2466
|
}
|
2348
2467
|
}
|
2349
2468
|
}
|
2350
|
-
/** @nocollapse */
|
2351
|
-
/** @nocollapse */
|
2352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2469
|
+
/** @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 });
|
2470
|
+
/** @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 });
|
2471
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormElement, decorators: [{
|
2353
2472
|
type: Directive,
|
2354
2473
|
args: [{
|
2355
2474
|
selector: '.mc-form__row, .mc-form__fieldset, .mc-form__legend',
|
@@ -2376,9 +2495,9 @@ class McForm {
|
|
2376
2495
|
});
|
2377
2496
|
}
|
2378
2497
|
}
|
2379
|
-
/** @nocollapse */
|
2380
|
-
/** @nocollapse */
|
2381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2498
|
+
/** @nocollapse */ McForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McForm, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
2499
|
+
/** @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 });
|
2500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McForm, decorators: [{
|
2382
2501
|
type: Directive,
|
2383
2502
|
args: [{
|
2384
2503
|
selector: '.mc-form-vertical, .mc-form-horizontal',
|
@@ -2394,12 +2513,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
2394
2513
|
|
2395
2514
|
class McFormsModule {
|
2396
2515
|
}
|
2397
|
-
/** @nocollapse */
|
2398
|
-
/** @nocollapse */
|
2516
|
+
/** @nocollapse */ McFormsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
2517
|
+
/** @nocollapse */ McFormsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McFormsModule, declarations: [McForm,
|
2399
2518
|
McFormElement], exports: [McForm,
|
2400
2519
|
McFormElement] });
|
2401
|
-
/** @nocollapse */
|
2402
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2520
|
+
/** @nocollapse */ McFormsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormsModule });
|
2521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McFormsModule, decorators: [{
|
2403
2522
|
type: NgModule,
|
2404
2523
|
args: [{
|
2405
2524
|
exports: [
|
@@ -2527,9 +2646,9 @@ class McPopUp {
|
|
2527
2646
|
}
|
2528
2647
|
}
|
2529
2648
|
}
|
2530
|
-
/** @nocollapse */
|
2531
|
-
/** @nocollapse */
|
2532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2649
|
+
/** @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 });
|
2650
|
+
/** @nocollapse */ McPopUp.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McPopUp, ngImport: i0 });
|
2651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPopUp, decorators: [{
|
2533
2652
|
type: Directive
|
2534
2653
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
2535
2654
|
|
@@ -2552,7 +2671,8 @@ class McPopUpTrigger {
|
|
2552
2671
|
this.listeners = new Map();
|
2553
2672
|
this.destroyed = new Subject();
|
2554
2673
|
this.detach = () => {
|
2555
|
-
|
2674
|
+
var _a;
|
2675
|
+
if ((_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.hasAttached()) {
|
2556
2676
|
this.overlayRef.detach();
|
2557
2677
|
}
|
2558
2678
|
this.instance = null;
|
@@ -2587,9 +2707,8 @@ class McPopUpTrigger {
|
|
2587
2707
|
this.initListeners();
|
2588
2708
|
}
|
2589
2709
|
ngOnDestroy() {
|
2590
|
-
|
2591
|
-
|
2592
|
-
}
|
2710
|
+
var _a;
|
2711
|
+
(_a = this.overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
|
2593
2712
|
this.listeners.forEach(this.removeEventListener);
|
2594
2713
|
this.listeners.clear();
|
2595
2714
|
this.destroyed.next();
|
@@ -2641,6 +2760,7 @@ class McPopUpTrigger {
|
|
2641
2760
|
return;
|
2642
2761
|
}
|
2643
2762
|
this.overlayRef = this.createOverlay();
|
2763
|
+
this.subscribeOnClosingActions();
|
2644
2764
|
this.detach();
|
2645
2765
|
this.portal = this.portal || new ComponentPortal(this.getOverlayHandleComponentType(), this.hostView);
|
2646
2766
|
this.instance = this.overlayRef.attach(this.portal).instance;
|
@@ -2681,12 +2801,7 @@ class McPopUpTrigger {
|
|
2681
2801
|
.pipe(takeUntil(this.destroyed))
|
2682
2802
|
.subscribe(this.onPositionChange);
|
2683
2803
|
this.overlayRef = this.overlay.create(Object.assign(Object.assign({}, this.overlayConfig), { direction: this.direction, positionStrategy: strategy, scrollStrategy: this.scrollStrategy() }));
|
2684
|
-
this.
|
2685
|
-
.pipe(takeUntil(this.destroyed))
|
2686
|
-
.pipe(delay(0))
|
2687
|
-
.subscribe(() => this.hide());
|
2688
|
-
this.overlayRef.outsidePointerEvents()
|
2689
|
-
.subscribe(() => this.instance.handleBodyInteraction());
|
2804
|
+
this.subscribeOnClosingActions();
|
2690
2805
|
this.overlayRef.detachments()
|
2691
2806
|
.pipe(takeUntil(this.destroyed))
|
2692
2807
|
.subscribe(this.detach);
|
@@ -2715,6 +2830,7 @@ class McPopUpTrigger {
|
|
2715
2830
|
/** Updates the position of the current popover. */
|
2716
2831
|
updatePosition(reapplyPosition = false) {
|
2717
2832
|
this.overlayRef = this.createOverlay();
|
2833
|
+
this.subscribeOnClosingActions();
|
2718
2834
|
const position = this.overlayRef.getConfig().positionStrategy
|
2719
2835
|
.withPositions(this.getPrioritizedPositions())
|
2720
2836
|
.withPush(true);
|
@@ -2747,10 +2863,18 @@ class McPopUpTrigger {
|
|
2747
2863
|
this.listeners.forEach(this.removeEventListener);
|
2748
2864
|
this.listeners.clear();
|
2749
2865
|
}
|
2866
|
+
subscribeOnClosingActions() {
|
2867
|
+
var _a;
|
2868
|
+
(_a = this.closingActionsSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
2869
|
+
this.closingActionsSubscription = this.closingActions()
|
2870
|
+
.pipe(takeUntil(this.destroyed))
|
2871
|
+
.pipe(delay(0))
|
2872
|
+
.subscribe(() => this.hide());
|
2873
|
+
}
|
2750
2874
|
}
|
2751
|
-
/** @nocollapse */
|
2752
|
-
/** @nocollapse */
|
2753
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
2875
|
+
/** @nocollapse */ McPopUpTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPopUpTrigger, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
2876
|
+
/** @nocollapse */ McPopUpTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: McPopUpTrigger, ngImport: i0 });
|
2877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McPopUpTrigger, decorators: [{
|
2754
2878
|
type: Directive
|
2755
2879
|
}], 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 }]; } });
|
2756
2880
|
|
@@ -2758,5 +2882,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
2758
2882
|
* Generated bundle index. Do not edit.
|
2759
2883
|
*/
|
2760
2884
|
|
2761
|
-
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,
|
2885
|
+
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 };
|
2762
2886
|
//# sourceMappingURL=ptsecurity-mosaic-core.mjs.map
|