@ptsecurity/mosaic 15.5.0 → 16.0.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 +29 -6
- package/_visual.scss +6 -4
- package/autocomplete/autocomplete-trigger.directive.d.ts +6 -16
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/button/_button-theme.scss +2 -5
- package/button/button.component.d.ts +1 -1
- package/button-toggle/_button-toggle-theme.scss +2 -5
- package/button-toggle/button-toggle.component.d.ts +3 -3
- package/card/card.component.d.ts +1 -1
- package/checkbox/_checkbox-theme.scss +6 -5
- package/checkbox/checkbox-config.d.ts +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/code-block/_code-block-theme.scss +2 -6
- package/code-block/actionbar.component.d.ts +1 -1
- package/code-block/code-block.component.d.ts +1 -1
- package/core/common-behaviors/color.d.ts +1 -1
- package/core/common-behaviors/constructor.d.ts +2 -2
- package/core/common-behaviors/disabled.d.ts +1 -1
- package/core/common-behaviors/error-state.d.ts +1 -1
- package/core/common-behaviors/tabindex.d.ts +1 -1
- package/core/datetime/date-formats.d.ts +1 -1
- package/core/formatters/index.d.ts +1 -1
- package/core/formatters/number/formatter.d.ts +55 -0
- package/core/forms/_forms-theme.scss +2 -4
- package/core/label/label-options.d.ts +1 -1
- package/core/locales/en-US.d.ts +13 -2
- package/core/locales/es-LA.d.ts +21 -0
- package/core/locales/fa-IR.d.ts +22 -0
- package/core/locales/locale-service.d.ts +111 -5
- package/core/locales/pt-BR.d.ts +21 -0
- package/core/locales/ru-RU.d.ts +13 -2
- package/core/locales/zh-CN.d.ts +20 -0
- package/core/option/_optgroup-theme.scss +2 -4
- package/core/option/_option-theme.scss +2 -5
- package/core/option/action.d.ts +1 -1
- package/core/option/optgroup.d.ts +1 -1
- package/core/option/option.d.ts +37 -8
- package/core/overlay/overlay-position-map.d.ts +7 -1
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +2 -2
- package/core/styles/_variables.scss +1 -0
- package/core/styles/theming/_badges.scss +2 -1
- package/core/styles/theming/_theming.scss +1 -0
- package/datepicker/_datepicker-theme.scss +2 -5
- package/datepicker/calendar-body.component.d.ts +2 -2
- package/datepicker/calendar-header.component.d.ts +9 -3
- package/datepicker/calendar.component.d.ts +4 -5
- package/datepicker/datepicker-input.directive.d.ts +1 -1
- package/datepicker/datepicker-toggle.component.d.ts +1 -1
- package/datepicker/datepicker.component.d.ts +1 -1
- package/datepicker/month-view.component.d.ts +4 -5
- package/divider/divider.component.d.ts +1 -1
- package/dl/_dl-theme.scss +2 -5
- package/dl/dl.component.d.ts +1 -1
- package/dropdown/_dropdown-theme.scss +2 -5
- 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/dropdown/dropdown.types.d.ts +3 -3
- package/ellipsis-center/ellipsis-center.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/autocomplete/autocomplete-origin.directive.mjs +4 -4
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +555 -0
- package/{esm2020 → esm2022}/autocomplete/autocomplete.component.mjs +26 -26
- package/{esm2020 → esm2022}/autocomplete/autocomplete.module.mjs +10 -10
- package/esm2022/button/button.component.mjs +148 -0
- package/{esm2020 → esm2022}/button/button.module.mjs +13 -13
- package/esm2022/button-toggle/button-toggle.component.mjs +381 -0
- package/{esm2020 → esm2022}/button-toggle/button-toggle.module.mjs +5 -5
- package/esm2022/card/card.component.mjs +80 -0
- package/{esm2020 → esm2022}/card/card.module.mjs +9 -9
- package/{esm2020 → esm2022}/checkbox/checkbox-module.mjs +5 -5
- package/{esm2020 → esm2022}/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2022/checkbox/checkbox.mjs +300 -0
- package/{esm2020 → esm2022}/code-block/actionbar.component.mjs +4 -4
- package/esm2022/code-block/code-block.component.mjs +157 -0
- package/esm2022/code-block/code-block.module.mjs +60 -0
- package/esm2022/core/common-behaviors/color.mjs +33 -0
- package/{esm2020 → esm2022}/core/common-behaviors/common-module.mjs +5 -5
- package/{esm2020 → esm2022}/core/common-behaviors/disabled.mjs +6 -6
- package/{esm2020 → esm2022}/core/common-behaviors/tabindex.mjs +6 -6
- package/{esm2020 → esm2022}/core/error/error-options.mjs +7 -7
- package/{esm2020 → esm2022}/core/formatters/date/formatter.mjs +4 -4
- package/{esm2020 → esm2022}/core/formatters/date/formatter.pipe.mjs +40 -40
- package/esm2022/core/formatters/index.mjs +86 -0
- package/esm2022/core/formatters/number/formatter.mjs +350 -0
- package/{esm2020 → esm2022}/core/forms/forms-module.mjs +7 -7
- package/{esm2020 → esm2022}/core/forms/forms.directive.mjs +7 -7
- package/{esm2020 → esm2022}/core/highlight/highlight.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/core/highlight/index.mjs +5 -5
- package/{esm2020 → esm2022}/core/line/line.mjs +8 -8
- package/esm2022/core/locales/en-US.mjs +21 -0
- package/esm2022/core/locales/es-LA.mjs +27 -0
- package/esm2022/core/locales/fa-IR.mjs +28 -0
- package/{esm2020 → esm2022}/core/locales/locale-service.mjs +7 -7
- package/{esm2020 → esm2022}/core/locales/locale-service.module.mjs +7 -7
- package/esm2022/core/locales/pt-BR.mjs +27 -0
- package/esm2022/core/locales/ru-RU.mjs +21 -0
- package/esm2022/core/locales/zh-CN.mjs +26 -0
- package/{esm2020 → esm2022}/core/option/action.mjs +9 -9
- package/{esm2020 → esm2022}/core/option/optgroup.mjs +5 -5
- package/{esm2020 → esm2022}/core/option/option-module.mjs +5 -5
- package/esm2022/core/option/option.mjs +298 -0
- package/esm2022/core/overlay/overlay-position-map.mjs +251 -0
- package/{esm2020 → esm2022}/core/pop-up/pop-up-trigger.mjs +4 -4
- package/{esm2020 → esm2022}/core/pop-up/pop-up.mjs +4 -4
- package/{esm2020 → esm2022}/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
- package/{esm2020 → esm2022}/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +5 -5
- package/esm2022/core/services/measure-scrollbar.service.mjs +48 -0
- package/{esm2020 → esm2022}/core/utils/data-size/data-size.pipe.mjs +8 -8
- package/{esm2020 → esm2022}/core/version.mjs +2 -2
- package/{esm2020 → esm2022}/datepicker/calendar-body.component.mjs +4 -4
- package/esm2022/datepicker/calendar-header.component.mjs +135 -0
- package/esm2022/datepicker/calendar.component.mjs +166 -0
- package/esm2022/datepicker/datepicker-input.directive.mjs +955 -0
- package/{esm2020 → esm2022}/datepicker/datepicker-intl.mjs +4 -4
- package/{esm2020 → esm2022}/datepicker/datepicker-module.mjs +38 -38
- package/esm2022/datepicker/datepicker-toggle.component.mjs +86 -0
- package/esm2022/datepicker/datepicker.component.mjs +393 -0
- package/esm2022/datepicker/month-view.component.mjs +149 -0
- package/{esm2020 → esm2022}/divider/divider.component.mjs +4 -4
- package/{esm2020 → esm2022}/divider/divider.module.mjs +5 -5
- package/{esm2020 → esm2022}/dl/dl.component.mjs +10 -10
- package/{esm2020 → esm2022}/dl/dl.module.mjs +13 -13
- package/{esm2020 → esm2022}/dropdown/dropdown-content.directive.mjs +4 -4
- package/{esm2020 → esm2022}/dropdown/dropdown-item.component.mjs +6 -6
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +489 -0
- package/esm2022/dropdown/dropdown.component.mjs +292 -0
- package/{esm2020 → esm2022}/dropdown/dropdown.module.mjs +15 -15
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +106 -0
- package/{esm2020 → esm2022}/file-upload/file-drop.mjs +4 -4
- package/{esm2020 → esm2022}/file-upload/file-upload.module.mjs +25 -25
- package/esm2022/file-upload/multiple-file-upload.component.mjs +165 -0
- package/esm2022/file-upload/single-file-upload.component.mjs +134 -0
- package/{esm2020 → esm2022}/form-field/cleaner.mjs +4 -4
- package/esm2022/form-field/form-field.mjs +267 -0
- package/{esm2020 → esm2022}/form-field/form-field.module.mjs +23 -23
- package/{esm2020 → esm2022}/form-field/hint.mjs +4 -4
- package/esm2022/form-field/password-hint.mjs +146 -0
- package/{esm2020 → esm2022}/form-field/prefix.mjs +4 -4
- package/{esm2020 → esm2022}/form-field/stepper.mjs +6 -6
- package/{esm2020 → esm2022}/form-field/suffix.mjs +4 -4
- package/esm2022/form-field/validate.directive.mjs +158 -0
- package/{esm2020 → esm2022}/icon/icon.component.mjs +7 -7
- package/{esm2020 → esm2022}/icon/icon.module.mjs +11 -11
- package/{esm2020 → esm2022}/input/input-number-validators.mjs +7 -7
- package/esm2022/input/input-number.mjs +168 -0
- package/esm2022/input/input-password.mjs +343 -0
- package/esm2022/input/input.mjs +297 -0
- package/{esm2020 → esm2022}/input/input.module.mjs +23 -23
- package/esm2022/link/link.component.mjs +122 -0
- package/{esm2020 → esm2022}/link/link.module.mjs +7 -7
- package/esm2022/list/list-selection.component.mjs +705 -0
- package/{esm2020 → esm2022}/list/list.component.mjs +8 -8
- package/{esm2020 → esm2022}/list/list.module.mjs +20 -20
- package/esm2022/loader-overlay/loader-overlay.component.mjs +103 -0
- package/{esm2020 → esm2022}/loader-overlay/loader-overlay.module.mjs +17 -17
- package/{esm2020 → esm2022}/markdown/markdown.component.mjs +13 -13
- package/{esm2020 → esm2022}/markdown/markdown.module.mjs +5 -5
- package/{esm2020 → esm2022}/markdown/markdown.service.mjs +4 -4
- package/{esm2020 → esm2022}/modal/css-unit.pipe.mjs +4 -4
- package/esm2022/modal/modal-control.service.mjs +85 -0
- package/esm2022/modal/modal.component.mjs +520 -0
- package/{esm2020 → esm2022}/modal/modal.directive.mjs +13 -13
- package/esm2022/modal/modal.module.mjs +75 -0
- package/{esm2020 → esm2022}/modal/modal.service.mjs +8 -8
- package/esm2022/navbar/navbar-item.component.mjs +606 -0
- package/esm2022/navbar/navbar.component.mjs +248 -0
- package/{esm2020 → esm2022}/navbar/navbar.module.mjs +37 -37
- package/{esm2020 → esm2022}/navbar/vertical-navbar.component.mjs +20 -17
- package/esm2022/popover/popover-confirm.component.mjs +108 -0
- package/esm2022/popover/popover.component.mjs +266 -0
- package/{esm2020 → esm2022}/popover/popover.module.mjs +8 -8
- package/{esm2020 → esm2022}/progress-bar/progress-bar.component.mjs +4 -4
- package/{esm2020 → esm2022}/progress-bar/progress-bar.module.mjs +7 -7
- package/{esm2020 → esm2022}/progress-spinner/progress-spinner.component.mjs +12 -12
- package/{esm2020 → esm2022}/progress-spinner/progress-spinner.module.mjs +7 -7
- package/esm2022/radio/radio.component.mjs +457 -0
- package/{esm2020 → esm2022}/radio/radio.module.mjs +5 -5
- package/esm2022/select/select-option.directive.mjs +65 -0
- package/esm2022/select/select.component.mjs +1160 -0
- package/{esm2020 → esm2022}/select/select.module.mjs +32 -32
- package/esm2022/sidebar/sidebar.component.mjs +146 -0
- package/{esm2020 → esm2022}/sidebar/sidebar.module.mjs +9 -9
- package/esm2022/sidepanel/sidepanel-container.component.mjs +110 -0
- package/{esm2020 → esm2022}/sidepanel/sidepanel-directives.mjs +18 -18
- package/{esm2020 → esm2022}/sidepanel/sidepanel.module.mjs +32 -32
- package/{esm2020 → esm2022}/sidepanel/sidepanel.service.mjs +10 -10
- package/esm2022/splitter/splitter.component.mjs +482 -0
- package/{esm2020 → esm2022}/splitter/splitter.module.mjs +12 -12
- package/{esm2020 → esm2022}/table/table.component.mjs +4 -4
- package/{esm2020 → esm2022}/table/table.module.mjs +9 -9
- package/esm2022/tabs/paginated-tab-header.mjs +488 -0
- package/esm2022/tabs/tab-body.component.mjs +179 -0
- package/{esm2020 → esm2022}/tabs/tab-content.directive.mjs +4 -4
- package/esm2022/tabs/tab-group.component.mjs +349 -0
- package/{esm2020 → esm2022}/tabs/tab-header.component.mjs +4 -4
- package/{esm2020 → esm2022}/tabs/tab-label-wrapper.directive.mjs +4 -4
- package/{esm2020 → esm2022}/tabs/tab-label.directive.mjs +4 -4
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +111 -0
- package/{esm2020 → esm2022}/tabs/tab.component.mjs +43 -34
- package/{esm2020 → esm2022}/tabs/tabs.module.mjs +42 -42
- package/esm2022/tags/tag-default-options.mjs +4 -0
- package/esm2022/tags/tag-input.mjs +250 -0
- package/esm2022/tags/tag-list.component.mjs +718 -0
- package/esm2022/tags/tag.component.mjs +381 -0
- package/esm2022/tags/tag.module.mjs +56 -0
- package/esm2022/textarea/textarea.component.mjs +254 -0
- package/{esm2020 → esm2022}/textarea/textarea.module.mjs +5 -5
- package/esm2022/timepicker/timepicker.directive.mjs +647 -0
- package/{esm2020 → esm2022}/timepicker/timepicker.module.mjs +11 -11
- package/{esm2020 → esm2022}/timezone/cities-by-filter.pipe.mjs +4 -4
- package/esm2022/timezone/timezone-option.component.mjs +48 -0
- package/{esm2020 → esm2022}/timezone/timezone-option.directive.mjs +4 -4
- package/{esm2020 → esm2022}/timezone/timezone-select.component.mjs +11 -11
- package/{esm2020 → esm2022}/timezone/timezone.module.mjs +29 -29
- package/{esm2020 → esm2022}/timezone/utc-offset.pipe.mjs +4 -4
- package/esm2022/title/title.directive.mjs +107 -0
- package/{esm2020 → esm2022}/title/title.module.mjs +5 -5
- package/{esm2020 → esm2022}/toast/toast-container.component.mjs +4 -4
- package/esm2022/toast/toast.component.mjs +92 -0
- package/esm2022/toast/toast.module.mjs +48 -0
- package/esm2022/toast/toast.service.mjs +188 -0
- package/esm2022/toggle/toggle.component.mjs +156 -0
- package/{esm2020 → esm2022}/toggle/toggle.module.mjs +5 -5
- package/esm2022/tooltip/tooltip.component.mjs +299 -0
- package/{esm2020 → esm2022}/tooltip/tooltip.module.mjs +14 -14
- package/esm2022/tree/data-source/flat-data-source.mjs +162 -0
- package/{esm2020 → esm2022}/tree/node.mjs +4 -4
- package/{esm2020 → esm2022}/tree/outlet.mjs +4 -4
- package/esm2022/tree/padding.directive.mjs +113 -0
- package/esm2022/tree/toggle.mjs +81 -0
- package/esm2022/tree/tree-base.mjs +243 -0
- package/esm2022/tree/tree-option.component.mjs +303 -0
- package/esm2022/tree/tree-selection.component.mjs +558 -0
- package/{esm2020 → esm2022}/tree/tree.mjs +4 -4
- package/{esm2020 → esm2022}/tree/tree.module.mjs +21 -21
- package/esm2022/tree-select/tree-select.component.mjs +936 -0
- package/{esm2020 → esm2022}/tree-select/tree-select.module.mjs +17 -17
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-autocomplete.mjs +80 -77
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button-toggle.mjs +47 -47
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button.mjs +25 -25
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-card.mjs +17 -17
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-card.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-checkbox.mjs +39 -39
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-code-block.mjs +34 -34
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-code-block.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-core.mjs +600 -224
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-datepicker.mjs +335 -351
- package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-divider.mjs +7 -7
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-divider.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dl.mjs +21 -21
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dl.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dropdown.mjs +89 -89
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-ellipsis-center.mjs +11 -11
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-file-upload.mjs +55 -47
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-form-field.mjs +92 -87
- package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-icon.mjs +16 -16
- package/fesm2022/ptsecurity-mosaic-icon.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-input.mjs +128 -128
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-input.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-link.mjs +22 -22
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-link.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-list.mjs +88 -88
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-list.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +155 -0
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-markdown.mjs +19 -19
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-markdown.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-modal.mjs +157 -144
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-navbar.mjs +196 -187
- package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-popover.mjs +37 -37
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-bar.mjs +9 -9
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-spinner.mjs +18 -18
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-radio.mjs +80 -79
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-select.mjs +188 -174
- package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidebar.mjs +29 -29
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidebar.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidepanel.mjs +63 -63
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-splitter.mjs +55 -55
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-splitter.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-table.mjs +45 -0
- package/fesm2022/ptsecurity-mosaic-table.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tabs.mjs +188 -179
- package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tags.mjs +150 -144
- package/fesm2022/ptsecurity-mosaic-tags.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-textarea.mjs +41 -41
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timepicker.mjs +95 -95
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-timezone.mjs +314 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-title.mjs +18 -18
- package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toast.mjs +47 -41
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toggle.mjs +35 -35
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tooltip.mjs +47 -47
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tree-select.mjs +123 -123
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tree.mjs +203 -198
- package/fesm2022/ptsecurity-mosaic-tree.mjs.map +1 -0
- package/file-upload/_file-upload-theme.scss +2 -4
- package/file-upload/file-upload.d.ts +1 -1
- package/file-upload/multiple-file-upload.component.d.ts +5 -4
- package/file-upload/single-file-upload.component.d.ts +5 -4
- package/form-field/_form-field-theme.scss +7 -5
- package/form-field/form-field.d.ts +1 -2
- package/form-field/form-field.scss +1 -3
- package/form-field/hint.d.ts +1 -1
- package/form-field/password-hint.d.ts +6 -3
- package/icon/icon.component.d.ts +1 -1
- package/input/_input-theme.scss +7 -6
- package/input/input-number-validators.d.ts +2 -2
- package/input/input-number.d.ts +1 -1
- package/input/input-password.d.ts +2 -2
- package/input/input.d.ts +1 -1
- package/link/_link-theme.scss +7 -8
- package/link/link.component.d.ts +1 -1
- package/list/_list-theme.scss +2 -5
- package/list/list-selection.component.d.ts +2 -2
- package/loader-overlay/_loader-overlay-theme.scss +2 -5
- package/loader-overlay/loader-overlay.component.d.ts +1 -1
- package/loader-overlay/loader-overlay.scss +3 -0
- package/markdown/_markdown-theme.scss +3 -6
- package/markdown/markdown.component.d.ts +1 -1
- package/modal/_modal-theme.scss +3 -5
- package/modal/modal.component.d.ts +5 -2
- package/modal/modal.module.d.ts +2 -1
- package/modal/modal.scss +14 -2
- package/modal/modal.type.d.ts +3 -3
- package/navbar/_navbar-theme.scss +2 -6
- package/navbar/navbar-item.component.d.ts +5 -4
- package/navbar/navbar.component.d.ts +7 -4
- package/navbar/vertical-navbar.component.d.ts +5 -3
- package/package.json +156 -246
- package/popover/_popover-theme.scss +2 -6
- package/popover/popover-confirm.component.d.ts +1 -1
- package/popover/popover.component.d.ts +1 -1
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/progress-bar/progress-bar.component.d.ts +2 -2
- package/progress-spinner/progress-spinner.component.d.ts +3 -3
- package/radio/_radio-theme.scss +6 -6
- package/radio/radio.component.d.ts +2 -2
- package/select/_select-theme.scss +2 -5
- package/select/select.component.d.ts +12 -9
- package/select/select.scss +3 -1
- package/sidebar/sidebar.component.d.ts +3 -3
- package/sidepanel/_sidepanel-theme.scss +2 -5
- package/sidepanel/sidepanel-directives.d.ts +2 -2
- package/splitter/splitter.component.d.ts +3 -3
- package/table/_table-theme.scss +2 -5
- package/tabs/_tabs-theme.scss +2 -5
- package/tabs/paginated-tab-header.d.ts +3 -3
- package/tabs/tab-body.component.d.ts +3 -3
- package/tabs/tab-group.component.d.ts +2 -2
- package/tabs/tab-header.component.d.ts +2 -2
- package/tabs/tab-label-wrapper.directive.d.ts +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +1 -1
- package/tabs/tab.component.d.ts +1 -1
- package/tags/_tag-theme.scss +2 -5
- package/tags/tag-default-options.d.ts +4 -0
- package/tags/tag-input.d.ts +1 -1
- package/tags/tag-list.component.d.ts +2 -1
- package/tags/tag-list.scss +6 -2
- package/tags/tag.component.d.ts +2 -2
- package/textarea/_textarea-theme.scss +2 -5
- package/textarea/textarea.component.d.ts +1 -1
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/timezone/_timezone-option-theme.scss +2 -5
- package/timezone/timezone-option.component.d.ts +1 -1
- package/toast/_toast-theme.scss +2 -5
- package/toast/toast.type.d.ts +1 -1
- package/toggle/_toggle-theme.scss +2 -5
- package/toggle/toggle.component.d.ts +2 -2
- package/tooltip/_tooltip-theme.scss +2 -5
- package/tooltip/tooltip.component.d.ts +3 -3
- package/tree/_tree-theme.scss +2 -4
- package/tree/node.d.ts +1 -1
- package/tree/padding.directive.d.ts +1 -1
- package/tree/toggle.d.ts +2 -2
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.component.d.ts +1 -1
- package/tree/tree-option.scss +4 -2
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree-select/_tree-select-theme.scss +2 -5
- package/tree-select/tree-select.component.d.ts +1 -1
- package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +0 -552
- package/esm2020/button/button.component.mjs +0 -148
- package/esm2020/button-toggle/button-toggle.component.mjs +0 -381
- package/esm2020/card/card.component.mjs +0 -80
- package/esm2020/checkbox/checkbox.mjs +0 -300
- package/esm2020/code-block/code-block.component.mjs +0 -157
- package/esm2020/code-block/code-block.module.mjs +0 -60
- package/esm2020/core/common-behaviors/color.mjs +0 -33
- package/esm2020/core/formatters/index.mjs +0 -78
- package/esm2020/core/formatters/number/formatter.mjs +0 -129
- package/esm2020/core/locales/en-US.mjs +0 -10
- package/esm2020/core/locales/es-LA.mjs +0 -6
- package/esm2020/core/locales/fa-IR.mjs +0 -6
- package/esm2020/core/locales/pt-BR.mjs +0 -6
- package/esm2020/core/locales/ru-RU.mjs +0 -10
- package/esm2020/core/locales/zh-CN.mjs +0 -6
- package/esm2020/core/option/option.mjs +0 -262
- package/esm2020/core/overlay/overlay-position-map.mjs +0 -245
- package/esm2020/core/services/measure-scrollbar.service.mjs +0 -48
- package/esm2020/datepicker/calendar-header.component.mjs +0 -134
- package/esm2020/datepicker/calendar.component.mjs +0 -175
- package/esm2020/datepicker/datepicker-input.directive.mjs +0 -954
- package/esm2020/datepicker/datepicker-toggle.component.mjs +0 -86
- package/esm2020/datepicker/datepicker.component.mjs +0 -393
- package/esm2020/datepicker/month-view.component.mjs +0 -158
- package/esm2020/dropdown/dropdown-trigger.directive.mjs +0 -489
- package/esm2020/dropdown/dropdown.component.mjs +0 -292
- package/esm2020/ellipsis-center/ellipsis-center.directive.mjs +0 -106
- package/esm2020/file-upload/multiple-file-upload.component.mjs +0 -161
- package/esm2020/file-upload/single-file-upload.component.mjs +0 -130
- package/esm2020/form-field/form-field.mjs +0 -270
- package/esm2020/form-field/password-hint.mjs +0 -138
- package/esm2020/form-field/validate.directive.mjs +0 -158
- package/esm2020/input/input-number.mjs +0 -168
- package/esm2020/input/input-password.mjs +0 -343
- package/esm2020/input/input.mjs +0 -297
- package/esm2020/link/link.component.mjs +0 -122
- package/esm2020/list/list-selection.component.mjs +0 -705
- package/esm2020/loader-overlay/loader-overlay.component.mjs +0 -103
- package/esm2020/modal/modal-control.service.mjs +0 -85
- package/esm2020/modal/modal.component.mjs +0 -510
- package/esm2020/modal/modal.module.mjs +0 -71
- package/esm2020/navbar/navbar-item.component.mjs +0 -605
- package/esm2020/navbar/navbar.component.mjs +0 -239
- package/esm2020/popover/popover-confirm.component.mjs +0 -108
- package/esm2020/popover/popover.component.mjs +0 -266
- package/esm2020/radio/radio.component.mjs +0 -456
- package/esm2020/select/select-option.directive.mjs +0 -65
- package/esm2020/select/select.component.mjs +0 -1146
- package/esm2020/sidebar/sidebar.component.mjs +0 -146
- package/esm2020/sidepanel/sidepanel-container.component.mjs +0 -110
- package/esm2020/splitter/splitter.component.mjs +0 -482
- package/esm2020/tabs/paginated-tab-header.mjs +0 -488
- package/esm2020/tabs/tab-body.component.mjs +0 -179
- package/esm2020/tabs/tab-group.component.mjs +0 -349
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +0 -111
- package/esm2020/tags/tag-default-options.mjs +0 -4
- package/esm2020/tags/tag-input.mjs +0 -248
- package/esm2020/tags/tag-list.component.mjs +0 -714
- package/esm2020/tags/tag.component.mjs +0 -381
- package/esm2020/tags/tag.module.mjs +0 -56
- package/esm2020/textarea/textarea.component.mjs +0 -254
- package/esm2020/timepicker/timepicker.directive.mjs +0 -647
- package/esm2020/timezone/timezone-option.component.mjs +0 -48
- package/esm2020/title/title.directive.mjs +0 -107
- package/esm2020/toast/toast.component.mjs +0 -92
- package/esm2020/toast/toast.module.mjs +0 -42
- package/esm2020/toast/toast.service.mjs +0 -188
- package/esm2020/toggle/toggle.component.mjs +0 -156
- package/esm2020/tooltip/tooltip.component.mjs +0 -299
- package/esm2020/tree/data-source/flat-data-source.mjs +0 -162
- package/esm2020/tree/padding.directive.mjs +0 -113
- package/esm2020/tree/toggle.mjs +0 -81
- package/esm2020/tree/tree-base.mjs +0 -243
- package/esm2020/tree/tree-option.component.mjs +0 -299
- package/esm2020/tree/tree-selection.component.mjs +0 -557
- package/esm2020/tree-select/tree-select.component.mjs +0 -936
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +0 -753
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +0 -405
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button.mjs +0 -193
- package/fesm2015/ptsecurity-mosaic-button.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-card.mjs +0 -111
- package/fesm2015/ptsecurity-mosaic-card.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs +0 -351
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-code-block.mjs +0 -280
- package/fesm2015/ptsecurity-mosaic-code-block.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs +0 -2314
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +0 -2112
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-divider.mjs +0 -61
- package/fesm2015/ptsecurity-mosaic-divider.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-dl.mjs +0 -126
- package/fesm2015/ptsecurity-mosaic-dl.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs +0 -1115
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-ellipsis-center.mjs +0 -113
- package/fesm2015/ptsecurity-mosaic-ellipsis-center.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-file-upload.mjs +0 -392
- package/fesm2015/ptsecurity-mosaic-file-upload.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +0 -768
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-icon.mjs +0 -86
- package/fesm2015/ptsecurity-mosaic-icon.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-input.mjs +0 -951
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-link.mjs +0 -150
- package/fesm2015/ptsecurity-mosaic-link.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-list.mjs +0 -807
- package/fesm2015/ptsecurity-mosaic-list.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +0 -157
- package/fesm2015/ptsecurity-mosaic-markdown.mjs +0 -128
- package/fesm2015/ptsecurity-mosaic-markdown.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-modal.mjs +0 -875
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-navbar.mjs +0 -1054
- package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-popover.mjs +0 -411
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +0 -74
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +0 -93
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-radio.mjs +0 -480
- package/fesm2015/ptsecurity-mosaic-select.mjs +0 -1286
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs +0 -202
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +0 -622
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-table.mjs +0 -45
- package/fesm2015/ptsecurity-mosaic-table.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tabs.mjs +0 -1523
- package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tags.mjs +0 -1391
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-textarea.mjs +0 -280
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs +0 -708
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-timezone.mjs +0 -316
- package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-title.mjs +0 -128
- package/fesm2015/ptsecurity-mosaic-title.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-toast.mjs +0 -379
- package/fesm2015/ptsecurity-mosaic-toast.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-toggle.mjs +0 -178
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +0 -369
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +0 -983
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree.mjs +0 -1815
- package/fesm2015/ptsecurity-mosaic-tree.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-file-upload.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-icon.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +0 -155
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-popover.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-splitter.mjs +0 -524
- package/fesm2020/ptsecurity-mosaic-table.mjs +0 -45
- package/fesm2020/ptsecurity-mosaic-table.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-timezone.mjs +0 -314
- package/fesm2020/ptsecurity-mosaic-title.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-tree.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic.mjs +0 -4
- package/fesm2020/ptsecurity-mosaic.mjs.map +0 -1
- /package/{esm2020 → esm2022}/autocomplete/index.mjs +0 -0
- /package/{esm2020 → esm2022}/autocomplete/ptsecurity-mosaic-autocomplete.mjs +0 -0
- /package/{esm2020 → esm2022}/autocomplete/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/button/ptsecurity-mosaic-button.mjs +0 -0
- /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/button-toggle/index.mjs +0 -0
- /package/{esm2020 → esm2022}/button-toggle/ptsecurity-mosaic-button-toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/button-toggle/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/card/index.mjs +0 -0
- /package/{esm2020 → esm2022}/card/ptsecurity-mosaic-card.mjs +0 -0
- /package/{esm2020 → esm2022}/card/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/checkbox-config.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/ptsecurity-mosaic-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/code-block/code-block.types.mjs +0 -0
- /package/{esm2020 → esm2022}/code-block/index.mjs +0 -0
- /package/{esm2020 → esm2022}/code-block/ptsecurity-mosaic-code-block.mjs +0 -0
- /package/{esm2020 → esm2022}/code-block/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/animation.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/fade-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/select-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common-behaviors/constructor.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common-behaviors/error-state.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common-behaviors/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/datetime/date-adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/core/datetime/date-formats.mjs +0 -0
- /package/{esm2020 → esm2022}/core/datetime/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/forms/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/label/label-options.mjs +0 -0
- /package/{esm2020 → esm2022}/core/locales/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/option/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/pop-up/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/core/pop-up/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/ptsecurity-mosaic-core.mjs +0 -0
- /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/select/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/core/select/errors.mjs +0 -0
- /package/{esm2020 → esm2022}/core/select/events.mjs +0 -0
- /package/{esm2020 → esm2022}/core/select/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/selection/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/core/selection/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/title/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/title/title-text-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/data-size/config.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/data-size/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/data-size/size.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/core/validation/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/validation/validation.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/datepicker-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/datepicker-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/ptsecurity-mosaic-datepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/divider/index.mjs +0 -0
- /package/{esm2020 → esm2022}/divider/ptsecurity-mosaic-divider.mjs +0 -0
- /package/{esm2020 → esm2022}/divider/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/dl/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dl/ptsecurity-mosaic-dl.mjs +0 -0
- /package/{esm2020 → esm2022}/dl/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/dropdown-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/dropdown-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/dropdown.types.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/ptsecurity-mosaic-dropdown.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/ellipsis-center/index.mjs +0 -0
- /package/{esm2020 → esm2022}/ellipsis-center/ptsecurity-mosaic-ellipsis-center.mjs +0 -0
- /package/{esm2020 → esm2022}/ellipsis-center/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/file-upload/file-upload.mjs +0 -0
- /package/{esm2020 → esm2022}/file-upload/index.mjs +0 -0
- /package/{esm2020 → esm2022}/file-upload/ptsecurity-mosaic-file-upload.mjs +0 -0
- /package/{esm2020 → esm2022}/file-upload/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/form-field-control.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/form-field-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/index.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/ptsecurity-mosaic-form-field.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/ptsecurity-mosaic-icon.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/input-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/input/input-value-accessor.mjs +0 -0
- /package/{esm2020 → esm2022}/input/ptsecurity-mosaic-input.mjs +0 -0
- /package/{esm2020 → esm2022}/input/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/link/index.mjs +0 -0
- /package/{esm2020 → esm2022}/link/ptsecurity-mosaic-link.mjs +0 -0
- /package/{esm2020 → esm2022}/link/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/list/index.mjs +0 -0
- /package/{esm2020 → esm2022}/list/ptsecurity-mosaic-list.mjs +0 -0
- /package/{esm2020 → esm2022}/list/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/loader-overlay/index.mjs +0 -0
- /package/{esm2020 → esm2022}/loader-overlay/ptsecurity-mosaic-loader-overlay.mjs +0 -0
- /package/{esm2020 → esm2022}/loader-overlay/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/markdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/markdown/markdown.values.mjs +0 -0
- /package/{esm2020 → esm2022}/markdown/ptsecurity-mosaic-markdown.mjs +0 -0
- /package/{esm2020 → esm2022}/markdown/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/index.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/modal-ref.class.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/modal-util.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/modal.type.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/ptsecurity-mosaic-modal.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/ptsecurity-mosaic-navbar.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/vertical-navbar.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/index.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/popover-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/ptsecurity-mosaic-popover.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-bar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-bar/ptsecurity-mosaic-progress-bar.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-bar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-spinner/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-spinner/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/ptsecurity-mosaic.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/index.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/ptsecurity-mosaic-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/select/index.mjs +0 -0
- /package/{esm2020 → esm2022}/select/ptsecurity-mosaic-select.mjs +0 -0
- /package/{esm2020 → esm2022}/select/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/ptsecurity-mosaic-sidebar.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/sidebar-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/index.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/ptsecurity-mosaic-sidepanel.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/sidepanel-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/sidepanel-config.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/sidepanel-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/splitter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/splitter/ptsecurity-mosaic-splitter.mjs +0 -0
- /package/{esm2020 → esm2022}/splitter/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/table/index.mjs +0 -0
- /package/{esm2020 → esm2022}/table/ptsecurity-mosaic-table.mjs +0 -0
- /package/{esm2020 → esm2022}/table/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/ptsecurity-mosaic-tabs.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/tab-nav-bar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/tabs-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/tags/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tags/ptsecurity-mosaic-tags.mjs +0 -0
- /package/{esm2020 → esm2022}/tags/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tags/tag-text-control.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/index.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/ptsecurity-mosaic-textarea.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/ptsecurity-mosaic-timepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/timepicker.constants.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/index.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/ptsecurity-mosaic-timezone.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/timezone.models.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/timezone.utils.mjs +0 -0
- /package/{esm2020 → esm2022}/title/index.mjs +0 -0
- /package/{esm2020 → esm2022}/title/ptsecurity-mosaic-title.mjs +0 -0
- /package/{esm2020 → esm2022}/title/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/index.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/ptsecurity-mosaic-toast.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/toast-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/toast.type.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/index.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/ptsecurity-mosaic-toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/ptsecurity-mosaic-tooltip.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/tooltip.animations.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/control/base-tree-control.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/control/flat-tree-control.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/control/nested-tree-control.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/control/tree-control.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/data-source/nested-data-source.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/ptsecurity-mosaic-tree.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/tree-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/ptsecurity-mosaic-tree-select.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/public-api.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ptsecurity-mosaic.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ptsecurity-mosaic.mjs.map +0 -0
@@ -1,951 +0,0 @@
|
|
1
|
-
import * as i3$1 from '@angular/cdk/a11y';
|
2
|
-
import { A11yModule } from '@angular/cdk/a11y';
|
3
|
-
import { CommonModule } from '@angular/common';
|
4
|
-
import * as i0 from '@angular/core';
|
5
|
-
import { InjectionToken, Directive, Optional, Self, Attribute, Input, Inject, forwardRef, Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
|
6
|
-
import * as i1 from '@angular/forms';
|
7
|
-
import { NG_VALIDATORS, Validators, FormsModule } from '@angular/forms';
|
8
|
-
import * as i3 from '@ptsecurity/mosaic/core';
|
9
|
-
import { mixinErrorState, PopUpTriggers, McCommonModule } from '@ptsecurity/mosaic/core';
|
10
|
-
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
11
|
-
import { getSupportedInputTypes } from '@angular/cdk/platform';
|
12
|
-
import * as i4 from '@ptsecurity/mosaic/form-field';
|
13
|
-
import { McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
14
|
-
import { Subject } from 'rxjs';
|
15
|
-
import { A, C, V, X, Z, F1, F12, ZERO, NINE, NUMPAD_ZERO, NUMPAD_NINE, NUMPAD_MINUS, DASH, FF_MINUS, DELETE, BACKSPACE, TAB, ESCAPE, ENTER, LEFT_ARROW, RIGHT_ARROW, HOME, END, UP_ARROW, DOWN_ARROW } from '@ptsecurity/cdk/keycodes';
|
16
|
-
import { McTooltipTrigger, MC_TOOLTIP_SCROLL_STRATEGY } from '@ptsecurity/mosaic/tooltip';
|
17
|
-
import * as i1$1 from '@angular/cdk/overlay';
|
18
|
-
import * as i2 from '@angular/cdk/bidi';
|
19
|
-
|
20
|
-
function getMcInputUnsupportedTypeError(inputType) {
|
21
|
-
return Error(`Input type "${inputType}" isn't supported by mcInput.`);
|
22
|
-
}
|
23
|
-
|
24
|
-
const MC_INPUT_VALUE_ACCESSOR = new InjectionToken('MC_INPUT_VALUE_ACCESSOR');
|
25
|
-
|
26
|
-
const BIG_STEP = 10;
|
27
|
-
const SMALL_STEP = 1;
|
28
|
-
function normalizeSplitter(value) {
|
29
|
-
return value ? value.replace(/,/g, '.') : value;
|
30
|
-
}
|
31
|
-
function isFloat(value) {
|
32
|
-
return /^-?\d+\.\d+$/.test(value);
|
33
|
-
}
|
34
|
-
function isInt(value) {
|
35
|
-
return /^-?\d+$/.test(value);
|
36
|
-
}
|
37
|
-
function isDigit(value) {
|
38
|
-
return isFloat(value) || isInt(value);
|
39
|
-
}
|
40
|
-
function getPrecision(value) {
|
41
|
-
const arr = value.toString().split('.');
|
42
|
-
return arr.length === 1
|
43
|
-
? 1
|
44
|
-
// tslint:disable-next-line:no-magic-numbers
|
45
|
-
: Math.pow(10, arr[1].length);
|
46
|
-
}
|
47
|
-
function add(value1, value2) {
|
48
|
-
const precision = Math.max(getPrecision(value1), getPrecision(value2));
|
49
|
-
return (value1 * precision + value2 * precision) / precision;
|
50
|
-
}
|
51
|
-
class McNumberInput {
|
52
|
-
constructor(elementRef, ngControl, step, bigStep, min, max) {
|
53
|
-
this.elementRef = elementRef;
|
54
|
-
this.ngControl = ngControl;
|
55
|
-
this.focused = false;
|
56
|
-
this.stateChanges = new Subject();
|
57
|
-
this.step = isDigit(step) ? parseFloat(step) : SMALL_STEP;
|
58
|
-
this.bigStep = isDigit(bigStep) ? parseFloat(bigStep) : BIG_STEP;
|
59
|
-
this.min = isDigit(min) ? parseFloat(min) : -Infinity;
|
60
|
-
this.max = isDigit(max) ? parseFloat(max) : Infinity;
|
61
|
-
if ('valueAsNumber' in this.nativeElement) {
|
62
|
-
Object.defineProperty(Object.getPrototypeOf(this.nativeElement), 'valueAsNumber', {
|
63
|
-
// tslint:disable-next-line:no-reserved-keywords
|
64
|
-
get() {
|
65
|
-
const res = parseFloat(normalizeSplitter(this.value));
|
66
|
-
return isNaN(res) ? null : res;
|
67
|
-
}
|
68
|
-
});
|
69
|
-
}
|
70
|
-
}
|
71
|
-
get nativeElement() {
|
72
|
-
return this.elementRef.nativeElement;
|
73
|
-
}
|
74
|
-
focusChanged(isFocused) {
|
75
|
-
if (isFocused !== this.focused) {
|
76
|
-
this.focused = isFocused;
|
77
|
-
this.stateChanges.next();
|
78
|
-
}
|
79
|
-
}
|
80
|
-
onKeyDown(event) {
|
81
|
-
var _a;
|
82
|
-
// tslint:disable-next-line:deprecation
|
83
|
-
const keyCode = event.keyCode;
|
84
|
-
const isCtrlA = (e) => e.keyCode === A && (e.ctrlKey || e.metaKey);
|
85
|
-
const isCtrlC = (e) => e.keyCode === C && (e.ctrlKey || e.metaKey);
|
86
|
-
const isCtrlV = (e) => e.keyCode === V && (e.ctrlKey || e.metaKey);
|
87
|
-
const isCtrlX = (e) => e.keyCode === X && (e.ctrlKey || e.metaKey);
|
88
|
-
const isCtrlZ = (e) => e.keyCode === Z && (e.ctrlKey || e.metaKey);
|
89
|
-
const isFKey = (e) => e.keyCode >= F1 && e.keyCode <= F12;
|
90
|
-
const isNumber = (e) => (e.keyCode >= ZERO && e.keyCode <= NINE) ||
|
91
|
-
(e.keyCode >= NUMPAD_ZERO && e.keyCode <= NUMPAD_NINE);
|
92
|
-
const isPeriod = (e) => e.key === '.' || e.key === ',';
|
93
|
-
const minuses = [NUMPAD_MINUS, DASH, FF_MINUS];
|
94
|
-
const serviceKeys = [DELETE, BACKSPACE, TAB, ESCAPE, ENTER];
|
95
|
-
const arrows = [LEFT_ARROW, RIGHT_ARROW];
|
96
|
-
const allowedKeys = [HOME, END].concat(arrows).concat(serviceKeys).concat(minuses);
|
97
|
-
if (minuses.includes(keyCode) &&
|
98
|
-
(this.nativeElement.valueAsNumber || this.min >= 0 || ((_a = this.nativeElement.validity) === null || _a === void 0 ? void 0 : _a.badInput))) {
|
99
|
-
event.preventDefault();
|
100
|
-
return;
|
101
|
-
}
|
102
|
-
if (allowedKeys.indexOf(keyCode) !== -1 ||
|
103
|
-
isCtrlA(event) ||
|
104
|
-
isCtrlC(event) ||
|
105
|
-
isCtrlV(event) ||
|
106
|
-
isCtrlX(event) ||
|
107
|
-
isCtrlZ(event) ||
|
108
|
-
isFKey(event) ||
|
109
|
-
isPeriod(event)) {
|
110
|
-
// let it happen, don't do anything
|
111
|
-
return;
|
112
|
-
}
|
113
|
-
// Ensure that it is not a number and stop the keypress
|
114
|
-
if (event.shiftKey || !isNumber(event)) {
|
115
|
-
event.preventDefault();
|
116
|
-
// process steps
|
117
|
-
const step = event.shiftKey ? this.bigStep : this.step;
|
118
|
-
if (keyCode === UP_ARROW) {
|
119
|
-
this.stepUp(step);
|
120
|
-
}
|
121
|
-
if (keyCode === DOWN_ARROW) {
|
122
|
-
this.stepDown(step);
|
123
|
-
}
|
124
|
-
}
|
125
|
-
}
|
126
|
-
onPaste(event) {
|
127
|
-
if (!isDigit(normalizeSplitter(event.clipboardData.getData('text')))) {
|
128
|
-
event.preventDefault();
|
129
|
-
}
|
130
|
-
}
|
131
|
-
stepUp(step) {
|
132
|
-
this.elementRef.nativeElement.focus();
|
133
|
-
const res = Math.max(Math.min(add(this.nativeElement.valueAsNumber || 0, step), this.max), this.min);
|
134
|
-
this.nativeElement.value = res.toString();
|
135
|
-
this.viewToModelUpdate(this.nativeElement.valueAsNumber);
|
136
|
-
}
|
137
|
-
stepDown(step) {
|
138
|
-
this.elementRef.nativeElement.focus();
|
139
|
-
const res = Math.min(Math.max(add(this.nativeElement.valueAsNumber || 0, -step), this.min), this.max);
|
140
|
-
this.nativeElement.value = res.toString();
|
141
|
-
this.viewToModelUpdate(this.nativeElement.valueAsNumber);
|
142
|
-
}
|
143
|
-
viewToModelUpdate(value) {
|
144
|
-
if (this.ngControl) {
|
145
|
-
this.ngControl.control.setValue(value);
|
146
|
-
}
|
147
|
-
}
|
148
|
-
}
|
149
|
-
/** @nocollapse */ McNumberInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McNumberInput, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, self: true }, { token: 'step', attribute: true }, { token: 'big-step', attribute: true }, { token: 'min', attribute: true }, { token: 'max', attribute: true }], target: i0.ɵɵFactoryTarget.Directive });
|
150
|
-
/** @nocollapse */ McNumberInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McNumberInput, selector: "input[mcInput][type=\"number\"]", inputs: { bigStep: "bigStep", step: "step", min: "min", max: "max" }, host: { listeners: { "blur": "focusChanged(false)", "focus": "focusChanged(true)", "paste": "onPaste($event)", "keydown": "onKeyDown($event)" } }, exportAs: ["mcNumericalInput"], ngImport: i0 });
|
151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McNumberInput, decorators: [{
|
152
|
-
type: Directive,
|
153
|
-
args: [{
|
154
|
-
selector: `input[mcInput][type="number"]`,
|
155
|
-
exportAs: 'mcNumericalInput',
|
156
|
-
host: {
|
157
|
-
'(blur)': 'focusChanged(false)',
|
158
|
-
'(focus)': 'focusChanged(true)',
|
159
|
-
'(paste)': 'onPaste($event)',
|
160
|
-
'(keydown)': 'onKeyDown($event)'
|
161
|
-
}
|
162
|
-
}]
|
163
|
-
}], ctorParameters: function () {
|
164
|
-
return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
165
|
-
type: Optional
|
166
|
-
}, {
|
167
|
-
type: Self
|
168
|
-
}] }, { type: undefined, decorators: [{
|
169
|
-
type: Attribute,
|
170
|
-
args: ['step']
|
171
|
-
}] }, { type: undefined, decorators: [{
|
172
|
-
type: Attribute,
|
173
|
-
args: ['big-step']
|
174
|
-
}] }, { type: undefined, decorators: [{
|
175
|
-
type: Attribute,
|
176
|
-
args: ['min']
|
177
|
-
}] }, { type: undefined, decorators: [{
|
178
|
-
type: Attribute,
|
179
|
-
args: ['max']
|
180
|
-
}] }];
|
181
|
-
}, propDecorators: { bigStep: [{
|
182
|
-
type: Input
|
183
|
-
}], step: [{
|
184
|
-
type: Input
|
185
|
-
}], min: [{
|
186
|
-
type: Input
|
187
|
-
}], max: [{
|
188
|
-
type: Input
|
189
|
-
}] } });
|
190
|
-
|
191
|
-
const MC_INPUT_INVALID_TYPES = [
|
192
|
-
'button',
|
193
|
-
'checkbox',
|
194
|
-
'file',
|
195
|
-
'hidden',
|
196
|
-
'image',
|
197
|
-
'radio',
|
198
|
-
'range',
|
199
|
-
'reset',
|
200
|
-
'submit'
|
201
|
-
];
|
202
|
-
let nextUniqueId$1 = 0;
|
203
|
-
/** @docs-private */
|
204
|
-
class McInputBase {
|
205
|
-
constructor(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
|
206
|
-
this.defaultErrorStateMatcher = defaultErrorStateMatcher;
|
207
|
-
this.parentForm = parentForm;
|
208
|
-
this.parentFormGroup = parentFormGroup;
|
209
|
-
this.ngControl = ngControl;
|
210
|
-
/**
|
211
|
-
* Emits whenever the component state changes and should cause the parent
|
212
|
-
* form-field to update. Implemented as part of `McFormFieldControl`.
|
213
|
-
* @docs-private
|
214
|
-
*/
|
215
|
-
this.stateChanges = new Subject();
|
216
|
-
}
|
217
|
-
}
|
218
|
-
/** @docs-private */
|
219
|
-
const McInputMixinBase = mixinErrorState(McInputBase);
|
220
|
-
class McInput extends McInputMixinBase {
|
221
|
-
// tslint:disable-next-line: naming-convention
|
222
|
-
constructor(elementRef, ngControl, numberInput, parentForm, parentFormGroup, defaultErrorStateMatcher, inputValueAccessor) {
|
223
|
-
super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
|
224
|
-
this.elementRef = elementRef;
|
225
|
-
this.numberInput = numberInput;
|
226
|
-
/**
|
227
|
-
* Implemented as part of McFormFieldControl.
|
228
|
-
* @docs-private
|
229
|
-
*/
|
230
|
-
this.focused = false;
|
231
|
-
/**
|
232
|
-
* Implemented as part of McFormFieldControl.
|
233
|
-
* @docs-private
|
234
|
-
*/
|
235
|
-
this.stateChanges = new Subject();
|
236
|
-
/**
|
237
|
-
* Implemented as part of McFormFieldControl.
|
238
|
-
* @docs-private
|
239
|
-
*/
|
240
|
-
this.controlType = 'input';
|
241
|
-
this.uid = `mc-input-${nextUniqueId$1++}`;
|
242
|
-
this.neverEmptyInputTypes = [
|
243
|
-
'date',
|
244
|
-
'datetime',
|
245
|
-
'datetime-local',
|
246
|
-
'month',
|
247
|
-
'time',
|
248
|
-
'week'
|
249
|
-
].filter((t) => getSupportedInputTypes().has(t));
|
250
|
-
this._disabled = false;
|
251
|
-
this._required = false;
|
252
|
-
// tslint:enable no-reserved-keywords
|
253
|
-
this._type = 'text';
|
254
|
-
// If no input value accessor was explicitly specified, use the element as the input value accessor.
|
255
|
-
this.inputValueAccessor = inputValueAccessor || this.elementRef.nativeElement;
|
256
|
-
this.previousNativeValue = this.value;
|
257
|
-
// Force setter to be called in case id was not specified.
|
258
|
-
this.id = this.id;
|
259
|
-
}
|
260
|
-
/**
|
261
|
-
* Implemented as part of McFormFieldControl.
|
262
|
-
* @docs-private
|
263
|
-
*/
|
264
|
-
get disabled() {
|
265
|
-
if (this.ngControl && this.ngControl.disabled !== null) {
|
266
|
-
return this.ngControl.disabled;
|
267
|
-
}
|
268
|
-
return this._disabled;
|
269
|
-
}
|
270
|
-
set disabled(value) {
|
271
|
-
this._disabled = coerceBooleanProperty(value);
|
272
|
-
// Browsers may not fire the blur event if the input is disabled too quickly.
|
273
|
-
// Reset from here to ensure that the element doesn't become stuck.
|
274
|
-
if (this.focused) {
|
275
|
-
this.focused = false;
|
276
|
-
this.stateChanges.next();
|
277
|
-
}
|
278
|
-
}
|
279
|
-
/**
|
280
|
-
* Implemented as part of McFormFieldControl.
|
281
|
-
* @docs-private
|
282
|
-
*/
|
283
|
-
get id() {
|
284
|
-
return this._id;
|
285
|
-
}
|
286
|
-
set id(value) {
|
287
|
-
this._id = value || this.uid;
|
288
|
-
}
|
289
|
-
/**
|
290
|
-
* Implemented as part of McFormFieldControl.
|
291
|
-
* @docs-private
|
292
|
-
*/
|
293
|
-
get required() {
|
294
|
-
return this._required;
|
295
|
-
}
|
296
|
-
set required(value) {
|
297
|
-
this._required = coerceBooleanProperty(value);
|
298
|
-
}
|
299
|
-
// tslint:disable no-reserved-keywords
|
300
|
-
/** Input type of the element. */
|
301
|
-
get type() {
|
302
|
-
return this._type;
|
303
|
-
}
|
304
|
-
set type(value) {
|
305
|
-
this._type = value || 'text';
|
306
|
-
this.validateType();
|
307
|
-
// When using Angular inputs, developers are no longer able to set the properties on the native
|
308
|
-
// input element. To ensure that bindings for `type` work, we need to sync the setter
|
309
|
-
// with the native property. Textarea elements don't support the type property or attribute.
|
310
|
-
if (getSupportedInputTypes().has(this._type)) {
|
311
|
-
this.elementRef.nativeElement.type = this._type;
|
312
|
-
}
|
313
|
-
}
|
314
|
-
/**
|
315
|
-
* Implemented as part of McFormFieldControl.
|
316
|
-
* @docs-private
|
317
|
-
*/
|
318
|
-
get value() {
|
319
|
-
return this.inputValueAccessor.value;
|
320
|
-
}
|
321
|
-
set value(value) {
|
322
|
-
if (value !== this.value) {
|
323
|
-
this.inputValueAccessor.value = value;
|
324
|
-
this.stateChanges.next();
|
325
|
-
}
|
326
|
-
}
|
327
|
-
ngOnChanges() {
|
328
|
-
this.stateChanges.next();
|
329
|
-
}
|
330
|
-
ngOnDestroy() {
|
331
|
-
this.stateChanges.complete();
|
332
|
-
}
|
333
|
-
ngDoCheck() {
|
334
|
-
if (this.ngControl) {
|
335
|
-
// We need to re-evaluate this on every change detection cycle, because there are some
|
336
|
-
// error triggers that we can't subscribe to (e.g. parent form submissions). This means
|
337
|
-
// that whatever logic is in here has to be super lean or we risk destroying the performance.
|
338
|
-
this.updateErrorState();
|
339
|
-
}
|
340
|
-
// We need to dirty-check the native element's value, because there are some cases where
|
341
|
-
// we won't be notified when it changes (e.g. the consumer isn't using forms or they're
|
342
|
-
// updating the value using `emitEvent: false`).
|
343
|
-
this.dirtyCheckNativeValue();
|
344
|
-
}
|
345
|
-
/** Focuses the input. */
|
346
|
-
focus() {
|
347
|
-
this.elementRef.nativeElement.focus();
|
348
|
-
}
|
349
|
-
onBlur() {
|
350
|
-
var _a;
|
351
|
-
this.focusChanged(false);
|
352
|
-
if ((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) {
|
353
|
-
const control = this.ngControl.control;
|
354
|
-
control.updateValueAndValidity({ emitEvent: false });
|
355
|
-
control.statusChanges.emit(control.status);
|
356
|
-
}
|
357
|
-
}
|
358
|
-
/** Callback for the cases where the focused state of the input changes. */
|
359
|
-
focusChanged(isFocused) {
|
360
|
-
if (this.focused !== isFocused) {
|
361
|
-
this.focused = isFocused;
|
362
|
-
this.stateChanges.next();
|
363
|
-
}
|
364
|
-
}
|
365
|
-
/**
|
366
|
-
* Implemented as part of McFormFieldControl.
|
367
|
-
* @docs-private
|
368
|
-
*/
|
369
|
-
get empty() {
|
370
|
-
return !this.isNeverEmpty() && !this.elementRef.nativeElement.value && !this.isBadInput();
|
371
|
-
}
|
372
|
-
/**
|
373
|
-
* Implemented as part of McFormFieldControl.
|
374
|
-
* @docs-private
|
375
|
-
*/
|
376
|
-
onContainerClick() {
|
377
|
-
this.focus();
|
378
|
-
}
|
379
|
-
/** Does some manual dirty checking on the native input `value` property. */
|
380
|
-
dirtyCheckNativeValue() {
|
381
|
-
const newValue = this.value;
|
382
|
-
if (this.previousNativeValue !== newValue) {
|
383
|
-
this.previousNativeValue = newValue;
|
384
|
-
this.stateChanges.next();
|
385
|
-
}
|
386
|
-
}
|
387
|
-
/** Make sure the input is a supported type. */
|
388
|
-
validateType() {
|
389
|
-
if (MC_INPUT_INVALID_TYPES.indexOf(this._type) > -1) {
|
390
|
-
throw getMcInputUnsupportedTypeError(this._type);
|
391
|
-
}
|
392
|
-
}
|
393
|
-
/** Checks whether the input type is one of the types that are never empty. */
|
394
|
-
isNeverEmpty() {
|
395
|
-
return this.neverEmptyInputTypes.indexOf(this._type) > -1;
|
396
|
-
}
|
397
|
-
/** Checks whether the input is invalid based on the native validation. */
|
398
|
-
isBadInput() {
|
399
|
-
// The `validity` property won't be present on platform-server.
|
400
|
-
const validity = this.elementRef.nativeElement.validity;
|
401
|
-
return validity === null || validity === void 0 ? void 0 : validity.badInput;
|
402
|
-
}
|
403
|
-
}
|
404
|
-
/** @nocollapse */ McInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInput, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, self: true }, { token: McNumberInput, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i1.FormGroupDirective, optional: true }, { token: i3.ErrorStateMatcher }, { token: MC_INPUT_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
405
|
-
/** @nocollapse */ McInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McInput, selector: "input[mcInput]", inputs: { errorStateMatcher: "errorStateMatcher", placeholder: "placeholder", disabled: "disabled", id: "id", required: "required", type: "type", value: "value" }, host: { listeners: { "blur": "onBlur()", "focus": "focusChanged(true)" }, properties: { "attr.id": "id", "attr.placeholder": "placeholder", "attr.disabled": "disabled || null", "required": "required" }, classAttribute: "mc-input" }, providers: [{
|
406
|
-
provide: McFormFieldControl, useExisting: McInput
|
407
|
-
}], exportAs: ["mcInput"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInput, decorators: [{
|
409
|
-
type: Directive,
|
410
|
-
args: [{
|
411
|
-
selector: `input[mcInput]`,
|
412
|
-
exportAs: 'mcInput',
|
413
|
-
host: {
|
414
|
-
class: 'mc-input',
|
415
|
-
// Native input properties that are overwritten by Angular inputs need to be synced with
|
416
|
-
// the native input element. Otherwise property bindings for those don't work.
|
417
|
-
'[attr.id]': 'id',
|
418
|
-
'[attr.placeholder]': 'placeholder',
|
419
|
-
'[attr.disabled]': 'disabled || null',
|
420
|
-
'[required]': 'required',
|
421
|
-
'(blur)': 'onBlur()',
|
422
|
-
'(focus)': 'focusChanged(true)'
|
423
|
-
},
|
424
|
-
providers: [{
|
425
|
-
provide: McFormFieldControl, useExisting: McInput
|
426
|
-
}]
|
427
|
-
}]
|
428
|
-
}], ctorParameters: function () {
|
429
|
-
return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
430
|
-
type: Optional
|
431
|
-
}, {
|
432
|
-
type: Self
|
433
|
-
}] }, { type: McNumberInput, decorators: [{
|
434
|
-
type: Optional
|
435
|
-
}, {
|
436
|
-
type: Self
|
437
|
-
}] }, { type: i1.NgForm, decorators: [{
|
438
|
-
type: Optional
|
439
|
-
}] }, { type: i1.FormGroupDirective, decorators: [{
|
440
|
-
type: Optional
|
441
|
-
}] }, { type: i3.ErrorStateMatcher }, { type: undefined, decorators: [{
|
442
|
-
type: Optional
|
443
|
-
}, {
|
444
|
-
type: Self
|
445
|
-
}, {
|
446
|
-
type: Inject,
|
447
|
-
args: [MC_INPUT_VALUE_ACCESSOR]
|
448
|
-
}] }];
|
449
|
-
}, propDecorators: { errorStateMatcher: [{
|
450
|
-
type: Input
|
451
|
-
}], placeholder: [{
|
452
|
-
type: Input
|
453
|
-
}], disabled: [{
|
454
|
-
type: Input
|
455
|
-
}], id: [{
|
456
|
-
type: Input
|
457
|
-
}], required: [{
|
458
|
-
type: Input
|
459
|
-
}], type: [{
|
460
|
-
type: Input
|
461
|
-
}], value: [{
|
462
|
-
type: Input
|
463
|
-
}] } });
|
464
|
-
class McInputMono {
|
465
|
-
}
|
466
|
-
/** @nocollapse */ McInputMono.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputMono, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
467
|
-
/** @nocollapse */ McInputMono.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McInputMono, selector: "input[mcInputMonospace]", host: { classAttribute: "mc-input_monospace" }, exportAs: ["McInputMonospace"], ngImport: i0 });
|
468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputMono, decorators: [{
|
469
|
-
type: Directive,
|
470
|
-
args: [{
|
471
|
-
selector: 'input[mcInputMonospace]',
|
472
|
-
exportAs: 'McInputMonospace',
|
473
|
-
host: { class: 'mc-input_monospace' }
|
474
|
-
}]
|
475
|
-
}] });
|
476
|
-
|
477
|
-
const MIN_VALIDATOR = {
|
478
|
-
provide: NG_VALIDATORS,
|
479
|
-
useExisting: forwardRef(() => MinValidator),
|
480
|
-
multi: true
|
481
|
-
};
|
482
|
-
/**
|
483
|
-
* A directive which installs the MinValidator for any `formControlName`,
|
484
|
-
* `formControl`, or control with `ngModel` that also has a `min` attribute.
|
485
|
-
*/
|
486
|
-
class MinValidator {
|
487
|
-
ngOnChanges(changes) {
|
488
|
-
if ('min' in changes) {
|
489
|
-
this.createValidator();
|
490
|
-
if (this.onChange) {
|
491
|
-
this.onChange();
|
492
|
-
}
|
493
|
-
}
|
494
|
-
}
|
495
|
-
validate(c) {
|
496
|
-
return this.validator(c);
|
497
|
-
}
|
498
|
-
registerOnValidatorChange(fn) {
|
499
|
-
this.onChange = fn;
|
500
|
-
}
|
501
|
-
createValidator() {
|
502
|
-
this.validator = Validators.min(parseInt(this.min, 10));
|
503
|
-
}
|
504
|
-
}
|
505
|
-
/** @nocollapse */ MinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MinValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
506
|
-
/** @nocollapse */ MinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MinValidator, selector: "[min][formControlName],[min][formControl],[min][ngModel]", inputs: { min: "min" }, host: { properties: { "attr.min": "min ? min : null" } }, providers: [MIN_VALIDATOR], usesOnChanges: true, ngImport: i0 });
|
507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MinValidator, decorators: [{
|
508
|
-
type: Directive,
|
509
|
-
args: [{
|
510
|
-
selector: '[min][formControlName],[min][formControl],[min][ngModel]',
|
511
|
-
providers: [MIN_VALIDATOR],
|
512
|
-
host: {
|
513
|
-
'[attr.min]': 'min ? min : null'
|
514
|
-
}
|
515
|
-
}]
|
516
|
-
}], propDecorators: { min: [{
|
517
|
-
type: Input
|
518
|
-
}] } });
|
519
|
-
const MAX_VALIDATOR = {
|
520
|
-
provide: NG_VALIDATORS,
|
521
|
-
useExisting: forwardRef(() => MaxValidator),
|
522
|
-
multi: true
|
523
|
-
};
|
524
|
-
/**
|
525
|
-
* A directive which installs the MaxValidator for any `formControlName`,
|
526
|
-
* `formControl`, or control with `ngModel` that also has a `min` attribute.
|
527
|
-
*/
|
528
|
-
class MaxValidator {
|
529
|
-
ngOnChanges(changes) {
|
530
|
-
if ('max' in changes) {
|
531
|
-
this.createValidator();
|
532
|
-
if (this.onChange) {
|
533
|
-
this.onChange();
|
534
|
-
}
|
535
|
-
}
|
536
|
-
}
|
537
|
-
validate(c) {
|
538
|
-
return this.validator(c);
|
539
|
-
}
|
540
|
-
registerOnValidatorChange(fn) {
|
541
|
-
this.onChange = fn;
|
542
|
-
}
|
543
|
-
createValidator() {
|
544
|
-
this.validator = Validators.max(parseInt(this.max, 10));
|
545
|
-
}
|
546
|
-
}
|
547
|
-
/** @nocollapse */ MaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaxValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
548
|
-
/** @nocollapse */ MaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: MaxValidator, selector: "[max][formControlName],[max][formControl],[max][ngModel]", inputs: { max: "max" }, host: { properties: { "attr.max": "max ? max : null" } }, providers: [MAX_VALIDATOR], usesOnChanges: true, ngImport: i0 });
|
549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaxValidator, decorators: [{
|
550
|
-
type: Directive,
|
551
|
-
args: [{
|
552
|
-
selector: '[max][formControlName],[max][formControl],[max][ngModel]',
|
553
|
-
providers: [MAX_VALIDATOR],
|
554
|
-
host: {
|
555
|
-
'[attr.max]': 'max ? max : null'
|
556
|
-
}
|
557
|
-
}]
|
558
|
-
}], propDecorators: { max: [{
|
559
|
-
type: Input
|
560
|
-
}] } });
|
561
|
-
|
562
|
-
let nextUniqueId = 0;
|
563
|
-
class McPasswordToggle extends McTooltipTrigger {
|
564
|
-
constructor(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction, focusMonitor, formField) {
|
565
|
-
super(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction);
|
566
|
-
this.focusMonitor = focusMonitor;
|
567
|
-
this.formField = formField;
|
568
|
-
this._tabIndex = 0;
|
569
|
-
this.trigger = `${PopUpTriggers.Hover}`;
|
570
|
-
this.runFocusMonitor();
|
571
|
-
}
|
572
|
-
get content() {
|
573
|
-
return this.formField.control.elementType === 'password' ?
|
574
|
-
this.mcTooltipHidden :
|
575
|
-
this._content;
|
576
|
-
}
|
577
|
-
set content(content) {
|
578
|
-
this._content = content;
|
579
|
-
this.updateData();
|
580
|
-
}
|
581
|
-
get disabled() {
|
582
|
-
return this._disabled === undefined ? this.formField.disabled : this._disabled;
|
583
|
-
}
|
584
|
-
set disabled(value) {
|
585
|
-
this._disabled = coerceBooleanProperty(value);
|
586
|
-
this._disabled ? this.stopFocusMonitor() : this.runFocusMonitor();
|
587
|
-
}
|
588
|
-
get tabIndex() {
|
589
|
-
return this.disabled ? -1 : this._tabIndex;
|
590
|
-
}
|
591
|
-
set tabIndex(value) {
|
592
|
-
// If the specified tabIndex value is null or undefined, fall back to the default value.
|
593
|
-
this._tabIndex = value != null ? coerceNumberProperty(value) : 0;
|
594
|
-
}
|
595
|
-
get hidden() {
|
596
|
-
return this.formField.control.elementType === 'password';
|
597
|
-
}
|
598
|
-
get visibility() {
|
599
|
-
return this.disabled && this.formField.control.empty ? 'hidden' : 'visible';
|
600
|
-
}
|
601
|
-
ngOnDestroy() {
|
602
|
-
this.stopFocusMonitor();
|
603
|
-
}
|
604
|
-
toggle() {
|
605
|
-
if (this.disabled) {
|
606
|
-
return;
|
607
|
-
}
|
608
|
-
this.hide();
|
609
|
-
const input = this.formField.control;
|
610
|
-
input.toggleType();
|
611
|
-
this.updateData();
|
612
|
-
}
|
613
|
-
runFocusMonitor() {
|
614
|
-
this.focusMonitor.monitor(this.elementRef)
|
615
|
-
.subscribe((origin) => {
|
616
|
-
if (origin === 'keyboard') {
|
617
|
-
this.show();
|
618
|
-
}
|
619
|
-
else if (origin === null) {
|
620
|
-
this.hide();
|
621
|
-
}
|
622
|
-
});
|
623
|
-
}
|
624
|
-
stopFocusMonitor() {
|
625
|
-
this.focusMonitor.stopMonitoring(this.elementRef);
|
626
|
-
}
|
627
|
-
}
|
628
|
-
/** @nocollapse */ McPasswordToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPasswordToggle, deps: [{ token: i1$1.Overlay }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$1.ScrollDispatcher }, { token: i0.ViewContainerRef }, { token: MC_TOOLTIP_SCROLL_STRATEGY }, { token: i2.Directionality, optional: true }, { token: i3$1.FocusMonitor }, { token: i4.McFormField }], target: i0.ɵɵFactoryTarget.Component });
|
629
|
-
/** @nocollapse */ McPasswordToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McPasswordToggle, selector: "mc-password-toggle", inputs: { content: ["mcTooltipNotHidden", "content"], mcTooltipHidden: "mcTooltipHidden", disabled: "disabled", tabIndex: "tabIndex" }, host: { listeners: { "click": "toggle()", "keydown.ENTER": "toggle()", "keydown.SPACE": "toggle()" }, properties: { "class.mc-eye_16": "hidden", "class.mc-eye-crossed_16": "!hidden", "style.visibility": "visibility", "attr.tabindex": "disabled ? null : tabIndex", "attr.disabled": "disabled || null" }, classAttribute: "mc-password-toggle mc" }, exportAs: ["mcPasswordToggle"], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPasswordToggle, decorators: [{
|
631
|
-
type: Component,
|
632
|
-
args: [{
|
633
|
-
selector: `mc-password-toggle`,
|
634
|
-
exportAs: 'mcPasswordToggle',
|
635
|
-
template: '<ng-content></ng-content>',
|
636
|
-
host: {
|
637
|
-
class: 'mc-password-toggle mc',
|
638
|
-
'[class.mc-eye_16]': 'hidden',
|
639
|
-
'[class.mc-eye-crossed_16]': '!hidden',
|
640
|
-
'[style.visibility]': 'visibility',
|
641
|
-
'[attr.tabindex]': 'disabled ? null : tabIndex',
|
642
|
-
'[attr.disabled]': 'disabled || null',
|
643
|
-
'(click)': 'toggle()',
|
644
|
-
'(keydown.ENTER)': 'toggle()',
|
645
|
-
'(keydown.SPACE)': 'toggle()'
|
646
|
-
},
|
647
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
648
|
-
encapsulation: ViewEncapsulation.None
|
649
|
-
}]
|
650
|
-
}], ctorParameters: function () {
|
651
|
-
return [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$1.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
652
|
-
type: Inject,
|
653
|
-
args: [MC_TOOLTIP_SCROLL_STRATEGY]
|
654
|
-
}] }, { type: i2.Directionality, decorators: [{
|
655
|
-
type: Optional
|
656
|
-
}] }, { type: i3$1.FocusMonitor }, { type: i4.McFormField }];
|
657
|
-
}, propDecorators: { content: [{
|
658
|
-
type: Input,
|
659
|
-
args: ['mcTooltipNotHidden']
|
660
|
-
}], mcTooltipHidden: [{
|
661
|
-
type: Input
|
662
|
-
}], disabled: [{
|
663
|
-
type: Input
|
664
|
-
}], tabIndex: [{
|
665
|
-
type: Input
|
666
|
-
}] } });
|
667
|
-
class McInputPassword extends McInputMixinBase {
|
668
|
-
// tslint:disable-next-line: naming-convention
|
669
|
-
constructor(elementRef, ngControl, parentForm, parentFormGroup, defaultErrorStateMatcher, inputValueAccessor) {
|
670
|
-
super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
|
671
|
-
this.elementRef = elementRef;
|
672
|
-
/**
|
673
|
-
* Implemented as part of McFormFieldControl.
|
674
|
-
* @docs-private
|
675
|
-
*/
|
676
|
-
this.focused = false;
|
677
|
-
/**
|
678
|
-
* Implemented as part of McFormFieldControl.
|
679
|
-
* @docs-private
|
680
|
-
*/
|
681
|
-
this.stateChanges = new Subject();
|
682
|
-
this.checkRule = new Subject();
|
683
|
-
/**
|
684
|
-
* Implemented as part of McFormFieldControl.
|
685
|
-
* @docs-private
|
686
|
-
*/
|
687
|
-
this.controlType = 'input-password';
|
688
|
-
this.elementType = 'password';
|
689
|
-
this.uid = `mc-input-${nextUniqueId++}`;
|
690
|
-
this._disabled = false;
|
691
|
-
this._required = false;
|
692
|
-
// If no input value accessor was explicitly specified, use the element as the input value
|
693
|
-
// accessor.
|
694
|
-
this._inputValueAccessor = inputValueAccessor || this.elementRef.nativeElement;
|
695
|
-
this.previousNativeValue = this.value;
|
696
|
-
// Force setter to be called in case id was not specified.
|
697
|
-
this.id = this.id;
|
698
|
-
}
|
699
|
-
/**
|
700
|
-
* Implemented as part of McFormFieldControl.
|
701
|
-
* @docs-private
|
702
|
-
*/
|
703
|
-
get disabled() {
|
704
|
-
var _a;
|
705
|
-
if (((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.disabled) !== null) {
|
706
|
-
return this.ngControl.disabled;
|
707
|
-
}
|
708
|
-
return this._disabled;
|
709
|
-
}
|
710
|
-
set disabled(value) {
|
711
|
-
this._disabled = coerceBooleanProperty(value);
|
712
|
-
// Browsers may not fire the blur event if the input is disabled too quickly.
|
713
|
-
// Reset from here to ensure that the element doesn't become stuck.
|
714
|
-
if (this.focused) {
|
715
|
-
this.focused = false;
|
716
|
-
this.stateChanges.next(null);
|
717
|
-
}
|
718
|
-
}
|
719
|
-
/**
|
720
|
-
* Implemented as part of McFormFieldControl.
|
721
|
-
* @docs-private
|
722
|
-
*/
|
723
|
-
get id() {
|
724
|
-
return this._id;
|
725
|
-
}
|
726
|
-
set id(value) {
|
727
|
-
this._id = value || this.uid;
|
728
|
-
}
|
729
|
-
/**
|
730
|
-
* Implemented as part of McFormFieldControl.
|
731
|
-
* @docs-private
|
732
|
-
*/
|
733
|
-
get required() {
|
734
|
-
return this._required;
|
735
|
-
}
|
736
|
-
set required(value) {
|
737
|
-
this._required = coerceBooleanProperty(value);
|
738
|
-
}
|
739
|
-
// this.elementRef.nativeElement.type = this._type;
|
740
|
-
/**
|
741
|
-
* Implemented as part of McFormFieldControl.
|
742
|
-
* @docs-private
|
743
|
-
*/
|
744
|
-
get value() {
|
745
|
-
return this._inputValueAccessor.value;
|
746
|
-
}
|
747
|
-
set value(value) {
|
748
|
-
if (value === this.value) {
|
749
|
-
return;
|
750
|
-
}
|
751
|
-
this._inputValueAccessor.value = value;
|
752
|
-
this.stateChanges.next(null);
|
753
|
-
}
|
754
|
-
/**
|
755
|
-
* Implemented as part of McFormFieldControl.
|
756
|
-
* @docs-private
|
757
|
-
*/
|
758
|
-
get empty() {
|
759
|
-
return !this.elementRef.nativeElement.value && !this.isBadInput();
|
760
|
-
}
|
761
|
-
ngOnChanges() {
|
762
|
-
this.stateChanges.next(null);
|
763
|
-
}
|
764
|
-
ngOnDestroy() {
|
765
|
-
this.stateChanges.complete();
|
766
|
-
}
|
767
|
-
ngDoCheck() {
|
768
|
-
if (this.ngControl) {
|
769
|
-
// We need to re-evaluate this on every change detection cycle, because there are some
|
770
|
-
// error triggers that we can't subscribe to (e.g. parent form submissions). This means
|
771
|
-
// that whatever logic is in here has to be super lean or we risk destroying the performance.
|
772
|
-
this.updateErrorState();
|
773
|
-
}
|
774
|
-
// We need to dirty-check the native element's value, because there are some cases where
|
775
|
-
// we won't be notified when it changes (e.g. the consumer isn't using forms or they're
|
776
|
-
// updating the value using `emitEvent: false`).
|
777
|
-
this.dirtyCheckNativeValue();
|
778
|
-
}
|
779
|
-
checkRules() {
|
780
|
-
this.checkRule.next();
|
781
|
-
}
|
782
|
-
toggleType() {
|
783
|
-
this.elementType = this.elementType === 'password' ? 'text' : 'password';
|
784
|
-
}
|
785
|
-
/** Focuses the input. */
|
786
|
-
focus() {
|
787
|
-
this.elementRef.nativeElement.focus();
|
788
|
-
}
|
789
|
-
onBlur() {
|
790
|
-
var _a;
|
791
|
-
if ((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) {
|
792
|
-
const control = this.ngControl.control;
|
793
|
-
control.updateValueAndValidity({ emitEvent: false });
|
794
|
-
control.statusChanges.emit(control.status);
|
795
|
-
}
|
796
|
-
this.focusChanged(false);
|
797
|
-
}
|
798
|
-
/** Callback for the cases where the focused state of the input changes. */
|
799
|
-
focusChanged(isFocused) {
|
800
|
-
if (isFocused === this.focused) {
|
801
|
-
return;
|
802
|
-
}
|
803
|
-
this.focused = isFocused;
|
804
|
-
this.stateChanges.next({ focused: this.focused });
|
805
|
-
}
|
806
|
-
onInput() {
|
807
|
-
// This is a noop function and is used to let Angular know whenever the value changes.
|
808
|
-
// Angular will run a new change detection each time the `input` event has been dispatched.
|
809
|
-
// It's necessary that Angular recognizes the value change, because when floatingLabel
|
810
|
-
// is set to false and Angular forms aren't used, the placeholder won't recognize the
|
811
|
-
// value changes and will not disappear.
|
812
|
-
// Listening to the input event wouldn't be necessary when the input is using the
|
813
|
-
// FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.
|
814
|
-
}
|
815
|
-
/**
|
816
|
-
* Implemented as part of McFormFieldControl.
|
817
|
-
* @docs-private
|
818
|
-
*/
|
819
|
-
onContainerClick() {
|
820
|
-
this.focus();
|
821
|
-
}
|
822
|
-
/** Does some manual dirty checking on the native input `value` property. */
|
823
|
-
dirtyCheckNativeValue() {
|
824
|
-
if (this.previousNativeValue !== this.value) {
|
825
|
-
this.previousNativeValue = this.value;
|
826
|
-
this.stateChanges.next(null);
|
827
|
-
}
|
828
|
-
}
|
829
|
-
/** Checks whether the input is invalid based on the native validation. */
|
830
|
-
isBadInput() {
|
831
|
-
var _a;
|
832
|
-
// The `validity` property won't be present on platform-server.
|
833
|
-
return (_a = this.elementRef.nativeElement.validity) === null || _a === void 0 ? void 0 : _a.badInput;
|
834
|
-
}
|
835
|
-
}
|
836
|
-
/** @nocollapse */ McInputPassword.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputPassword, deps: [{ token: i0.ElementRef }, { token: i1.NgControl, optional: true, self: true }, { token: i1.NgForm, optional: true }, { token: i1.FormGroupDirective, optional: true }, { token: i3.ErrorStateMatcher }, { token: MC_INPUT_VALUE_ACCESSOR, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
837
|
-
/** @nocollapse */ McInputPassword.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McInputPassword, selector: "input[mcInputPassword]", inputs: { errorStateMatcher: "errorStateMatcher", placeholder: "placeholder", disabled: "disabled", id: "id", required: "required", value: "value" }, host: { listeners: { "blur": "onBlur()", "focus": "focusChanged(true)", "input": "onInput()" }, properties: { "attr.id": "id", "attr.type": "elementType", "attr.placeholder": "placeholder", "attr.disabled": "disabled || null", "required": "required" }, classAttribute: "mc-input mc-input-password" }, providers: [{
|
838
|
-
provide: McFormFieldControl, useExisting: McInputPassword
|
839
|
-
}], exportAs: ["mcInputPassword"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
840
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputPassword, decorators: [{
|
841
|
-
type: Directive,
|
842
|
-
args: [{
|
843
|
-
selector: `input[mcInputPassword]`,
|
844
|
-
exportAs: 'mcInputPassword',
|
845
|
-
host: {
|
846
|
-
class: 'mc-input mc-input-password',
|
847
|
-
// Native input properties that are overwritten by Angular inputs need to be synced with
|
848
|
-
// the native input element. Otherwise property bindings for those don't work.
|
849
|
-
'[attr.id]': 'id',
|
850
|
-
'[attr.type]': 'elementType',
|
851
|
-
'[attr.placeholder]': 'placeholder',
|
852
|
-
'[attr.disabled]': 'disabled || null',
|
853
|
-
'[required]': 'required',
|
854
|
-
'(blur)': 'onBlur()',
|
855
|
-
'(focus)': 'focusChanged(true)',
|
856
|
-
'(input)': 'onInput()'
|
857
|
-
},
|
858
|
-
providers: [{
|
859
|
-
provide: McFormFieldControl, useExisting: McInputPassword
|
860
|
-
}]
|
861
|
-
}]
|
862
|
-
}], ctorParameters: function () {
|
863
|
-
return [{ type: i0.ElementRef }, { type: i1.NgControl, decorators: [{
|
864
|
-
type: Optional
|
865
|
-
}, {
|
866
|
-
type: Self
|
867
|
-
}] }, { type: i1.NgForm, decorators: [{
|
868
|
-
type: Optional
|
869
|
-
}] }, { type: i1.FormGroupDirective, decorators: [{
|
870
|
-
type: Optional
|
871
|
-
}] }, { type: i3.ErrorStateMatcher }, { type: undefined, decorators: [{
|
872
|
-
type: Optional
|
873
|
-
}, {
|
874
|
-
type: Self
|
875
|
-
}, {
|
876
|
-
type: Inject,
|
877
|
-
args: [MC_INPUT_VALUE_ACCESSOR]
|
878
|
-
}] }];
|
879
|
-
}, propDecorators: { errorStateMatcher: [{
|
880
|
-
type: Input
|
881
|
-
}], placeholder: [{
|
882
|
-
type: Input
|
883
|
-
}], disabled: [{
|
884
|
-
type: Input
|
885
|
-
}], id: [{
|
886
|
-
type: Input
|
887
|
-
}], required: [{
|
888
|
-
type: Input
|
889
|
-
}], value: [{
|
890
|
-
type: Input
|
891
|
-
}] } });
|
892
|
-
|
893
|
-
class McInputModule {
|
894
|
-
}
|
895
|
-
/** @nocollapse */ McInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
896
|
-
/** @nocollapse */ McInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McInputModule, declarations: [McInput,
|
897
|
-
McNumberInput,
|
898
|
-
McInputPassword,
|
899
|
-
McPasswordToggle,
|
900
|
-
McInputMono,
|
901
|
-
MinValidator,
|
902
|
-
MaxValidator], imports: [CommonModule,
|
903
|
-
A11yModule,
|
904
|
-
McCommonModule,
|
905
|
-
FormsModule], exports: [McInput,
|
906
|
-
McNumberInput,
|
907
|
-
McInputPassword,
|
908
|
-
McPasswordToggle,
|
909
|
-
McInputMono,
|
910
|
-
MinValidator,
|
911
|
-
MaxValidator] });
|
912
|
-
/** @nocollapse */ McInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputModule, imports: [CommonModule,
|
913
|
-
A11yModule,
|
914
|
-
McCommonModule,
|
915
|
-
FormsModule] });
|
916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputModule, decorators: [{
|
917
|
-
type: NgModule,
|
918
|
-
args: [{
|
919
|
-
imports: [
|
920
|
-
CommonModule,
|
921
|
-
A11yModule,
|
922
|
-
McCommonModule,
|
923
|
-
FormsModule
|
924
|
-
],
|
925
|
-
declarations: [
|
926
|
-
McInput,
|
927
|
-
McNumberInput,
|
928
|
-
McInputPassword,
|
929
|
-
McPasswordToggle,
|
930
|
-
McInputMono,
|
931
|
-
MinValidator,
|
932
|
-
MaxValidator
|
933
|
-
],
|
934
|
-
exports: [
|
935
|
-
McInput,
|
936
|
-
McNumberInput,
|
937
|
-
McInputPassword,
|
938
|
-
McPasswordToggle,
|
939
|
-
McInputMono,
|
940
|
-
MinValidator,
|
941
|
-
MaxValidator
|
942
|
-
]
|
943
|
-
}]
|
944
|
-
}] });
|
945
|
-
|
946
|
-
/**
|
947
|
-
* Generated bundle index. Do not edit.
|
948
|
-
*/
|
949
|
-
|
950
|
-
export { BIG_STEP, MAX_VALIDATOR, MC_INPUT_VALUE_ACCESSOR, MIN_VALIDATOR, MaxValidator, McInput, McInputBase, McInputMixinBase, McInputModule, McInputMono, McInputPassword, McNumberInput, McPasswordToggle, MinValidator, SMALL_STEP, add, getPrecision, isDigit, isFloat, isInt, normalizeSplitter };
|
951
|
-
//# sourceMappingURL=ptsecurity-mosaic-input.mjs.map
|