@ptsecurity/mosaic 15.6.0 → 16.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 +28 -1
- package/_visual.scss +3 -1
- package/autocomplete/autocomplete-trigger.directive.d.ts +6 -16
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/button/button.component.d.ts +1 -1
- package/button-toggle/button-toggle.component.d.ts +3 -3
- package/card/card.component.d.ts +1 -1
- package/checkbox/_checkbox-theme.scss +4 -0
- package/checkbox/checkbox-config.d.ts +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/code-block/_code-block-theme.scss +8 -0
- 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/label/label-options.d.ts +1 -1
- package/core/locales/en-US.d.ts +19 -1
- package/core/locales/es-LA.d.ts +27 -0
- package/core/locales/fa-IR.d.ts +28 -0
- package/core/locales/locale-service.d.ts +148 -3
- package/core/locales/pt-BR.d.ts +27 -0
- package/core/locales/ru-RU.d.ts +20 -1
- package/core/locales/zh-CN.d.ts +26 -0
- 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/pop-up/constants.d.ts +2 -1
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +2 -2
- package/core/styles/_variables.scss +1 -0
- package/core/styles/theming/_theming.scss +1 -0
- 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.component.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/dropdown/dropdown.scss +6 -6
- 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 +28 -0
- package/esm2022/core/locales/es-LA.mjs +35 -0
- package/esm2022/core/locales/fa-IR.mjs +34 -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 +33 -0
- package/esm2022/core/locales/ru-RU.mjs +31 -0
- package/esm2022/core/locales/zh-CN.mjs +32 -0
- package/{esm2020 → esm2022}/core/option/action.mjs +9 -9
- package/{esm2020 → esm2022}/core/option/optgroup.mjs +4 -4
- package/{esm2020 → esm2022}/core/option/option-module.mjs +5 -5
- package/esm2022/core/option/option.mjs +299 -0
- package/esm2022/core/overlay/overlay-position-map.mjs +251 -0
- package/{esm2020 → esm2022}/core/pop-up/constants.mjs +2 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +256 -0
- 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 +963 -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 +149 -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 +386 -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 +7 -7
- 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 +523 -0
- package/{esm2020 → esm2022}/modal/modal.directive.mjs +13 -13
- package/esm2022/modal/modal.module.mjs +75 -0
- package/esm2022/modal/modal.service.mjs +124 -0
- 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/esm2022/navbar/vertical-navbar.component.mjs +117 -0
- 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-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/esm2022/timezone/timezone-select.component.mjs +40 -0
- 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 +650 -220
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-datepicker.mjs +343 -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 +90 -90
- 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 +87 -84
- 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 +383 -167
- package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -0
- 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 +86 -86
- 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 +164 -148
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-navbar.mjs +186 -178
- package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-popover.mjs +38 -38
- package/fesm2022/ptsecurity-mosaic-popover.mjs.map +1 -0
- 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 +78 -78
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-select.mjs +189 -175
- 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 +131 -131
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tags.mjs.map +1 -1
- 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/{fesm2020 → fesm2022}/ptsecurity-mosaic-timezone.mjs +54 -54
- package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -0
- 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 +202 -198
- package/fesm2022/ptsecurity-mosaic-tree.mjs.map +1 -0
- 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 +4 -0
- package/form-field/form-field.d.ts +1 -1
- package/form-field/hint.d.ts +1 -1
- package/form-field/password-hint.d.ts +2 -1
- package/icon/icon.component.d.ts +1 -1
- package/input/input-number-validators.d.ts +2 -2
- package/input/input-number.d.ts +61 -10
- package/input/input-password.d.ts +2 -2
- package/input/input.d.ts +1 -1
- package/link/link.component.d.ts +1 -1
- package/list/list-selection.component.d.ts +2 -2
- package/loader-overlay/loader-overlay.component.d.ts +1 -1
- package/loader-overlay/loader-overlay.scss +12 -2
- package/markdown/markdown.component.d.ts +1 -1
- package/modal/modal.component.d.ts +6 -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-item.component.d.ts +3 -3
- package/navbar/navbar-item.scss +5 -0
- package/navbar/navbar.component.d.ts +7 -4
- package/navbar/vertical-navbar.component.d.ts +5 -3
- package/package.json +148 -237
- 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/prebuilt-visual/default-visual.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 +4 -0
- package/radio/radio.component.d.ts +2 -2
- package/select/select.component.d.ts +12 -9
- package/select/select.scss +1 -1
- package/sidebar/sidebar.component.d.ts +3 -3
- package/sidepanel/sidepanel-directives.d.ts +2 -2
- package/splitter/splitter.component.d.ts +3 -3
- 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-input.d.ts +1 -1
- package/tags/tag-list.component.d.ts +1 -1
- package/tags/tag.component.d.ts +1 -1
- package/textarea/textarea.component.d.ts +1 -1
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/timezone/timezone-option.component.d.ts +1 -1
- package/toast/toast.type.d.ts +1 -1
- package/toggle/toggle.component.d.ts +2 -2
- package/tooltip/tooltip.component.d.ts +3 -3
- 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.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/pop-up/pop-up-trigger.mjs +0 -247
- 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 -267
- package/esm2020/form-field/password-hint.mjs +0 -146
- 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/modal/modal.service.mjs +0 -124
- package/esm2020/navbar/navbar-item.component.mjs +0 -606
- package/esm2020/navbar/navbar.component.mjs +0 -239
- package/esm2020/navbar/vertical-navbar.component.mjs +0 -114
- package/esm2020/popover/popover-confirm.component.mjs +0 -108
- package/esm2020/popover/popover.component.mjs +0 -266
- package/esm2020/radio/radio.component.mjs +0 -457
- 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-input.mjs +0 -250
- package/esm2020/tags/tag-list.component.mjs +0 -718
- 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/timezone/timezone-select.component.mjs +0 -40
- 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 -300
- 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 -772
- 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 -1055
- package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-popover.mjs +0 -411
- package/fesm2015/ptsecurity-mosaic-popover.mjs.map +0 -1
- 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 -481
- 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 -1397
- 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 -1816
- 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-input.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-textarea.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +0 -1
- 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/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-default-options.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
@@ -2,17 +2,17 @@ import * as i3$1 from '@angular/cdk/a11y';
|
|
2
2
|
import { A11yModule } from '@angular/cdk/a11y';
|
3
3
|
import { CommonModule } from '@angular/common';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import {
|
5
|
+
import { forwardRef, EventEmitter, Directive, Attribute, Optional, Inject, Input, InjectionToken, Self, Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
|
6
6
|
import * as i1 from '@angular/forms';
|
7
|
-
import { NG_VALIDATORS, Validators, FormsModule } from '@angular/forms';
|
7
|
+
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators, FormsModule } from '@angular/forms';
|
8
8
|
import * as i3 from '@ptsecurity/mosaic/core';
|
9
|
-
import { mixinErrorState, PopUpTriggers, McCommonModule } from '@ptsecurity/mosaic/core';
|
9
|
+
import { MC_LOCALE_SERVICE, mixinErrorState, PopUpTriggers, McCommonModule } from '@ptsecurity/mosaic/core';
|
10
10
|
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
11
11
|
import { getSupportedInputTypes } from '@angular/cdk/platform';
|
12
12
|
import * as i4 from '@ptsecurity/mosaic/form-field';
|
13
13
|
import { McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
14
|
-
import { Subject } from 'rxjs';
|
15
|
-
import { A, C, V, X, Z,
|
14
|
+
import { Subject, Subscription } from 'rxjs';
|
15
|
+
import { A, C, V, X, Z, NUMPAD_MINUS, DASH, FF_MINUS, DELETE, BACKSPACE, TAB, ESCAPE, ENTER, LEFT_ARROW, RIGHT_ARROW, HOME, END, isFunctionKey, isNumberKey, isNumpadKey, UP_ARROW, DOWN_ARROW } from '@ptsecurity/cdk/keycodes';
|
16
16
|
import * as i2 from '@angular/cdk/bidi';
|
17
17
|
import * as i1$1 from '@angular/cdk/overlay';
|
18
18
|
import { McTooltipTrigger, MC_TOOLTIP_SCROLL_STRATEGY } from '@ptsecurity/mosaic/tooltip';
|
@@ -23,6 +23,7 @@ function getMcInputUnsupportedTypeError(inputType) {
|
|
23
23
|
|
24
24
|
const BIG_STEP = 10;
|
25
25
|
const SMALL_STEP = 1;
|
26
|
+
// TODO: подставлять локализованный сплиттер
|
26
27
|
function normalizeSplitter(value) {
|
27
28
|
return value ? value.replace(/,/g, '.') : value;
|
28
29
|
}
|
@@ -46,17 +47,78 @@ function add(value1, value2) {
|
|
46
47
|
const precision = Math.max(getPrecision(value1), getPrecision(value2));
|
47
48
|
return (value1 * precision + value2 * precision) / precision;
|
48
49
|
}
|
50
|
+
const MC_NUMBER_INPUT_VALUE_ACCESSOR = {
|
51
|
+
provide: NG_VALUE_ACCESSOR,
|
52
|
+
useExisting: forwardRef(() => McNumberInput),
|
53
|
+
multi: true
|
54
|
+
};
|
49
55
|
class McNumberInput {
|
50
|
-
|
56
|
+
get value() {
|
57
|
+
return this._value;
|
58
|
+
}
|
59
|
+
set value(value) {
|
60
|
+
const oldValue = this.value;
|
61
|
+
this._value = value;
|
62
|
+
if (oldValue !== value) {
|
63
|
+
this.setViewValue(this.formatNumber(value));
|
64
|
+
this.valueChange.emit(value);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
get disabled() {
|
68
|
+
return this._disabled;
|
69
|
+
}
|
70
|
+
set disabled(value) {
|
71
|
+
const newValue = coerceBooleanProperty(value);
|
72
|
+
const element = this.nativeElement;
|
73
|
+
if (this._disabled !== newValue) {
|
74
|
+
this._disabled = newValue;
|
75
|
+
this.disabledChange.emit(newValue);
|
76
|
+
}
|
77
|
+
// We need to null check the `blur` method, because it's undefined during SSR.
|
78
|
+
if (newValue && element.blur) {
|
79
|
+
// Normally, native input elements automatically blur if they turn disabled. This behavior
|
80
|
+
// is problematic, because it would mean that it triggers another change detection cycle,
|
81
|
+
// which then causes a changed after checked error if the input element was focused before.
|
82
|
+
element.blur();
|
83
|
+
}
|
84
|
+
}
|
85
|
+
get nativeElement() {
|
86
|
+
return this.elementRef.nativeElement;
|
87
|
+
}
|
88
|
+
get viewValue() {
|
89
|
+
return this.nativeElement.value;
|
90
|
+
}
|
91
|
+
get ngControl() {
|
92
|
+
return this.control;
|
93
|
+
}
|
94
|
+
constructor(elementRef, renderer, step, bigStep, min, max, localeService) {
|
51
95
|
this.elementRef = elementRef;
|
52
|
-
this.
|
53
|
-
this.
|
96
|
+
this.renderer = renderer;
|
97
|
+
this.localeService = localeService;
|
98
|
+
/** Emits when the value changes (either due to user input or programmatic change). */
|
99
|
+
this.valueChange = new EventEmitter();
|
100
|
+
/** Emits when the disabled state has changed */
|
101
|
+
this.disabledChange = new EventEmitter();
|
54
102
|
this.stateChanges = new Subject();
|
103
|
+
this.withThousandSeparator = true;
|
104
|
+
this._disabled = false;
|
105
|
+
this.focused = false;
|
106
|
+
this.localeSubscription = Subscription.EMPTY;
|
107
|
+
// tslint:disable-next-line:no-empty
|
108
|
+
this.onTouched = () => { };
|
109
|
+
// tslint:disable-next-line:no-empty
|
110
|
+
this.cvaOnChange = () => { };
|
111
|
+
this.updateLocaleParams = (id) => {
|
112
|
+
this.numberLocaleConfig = this.localeService.locales[id].input.number;
|
113
|
+
this.setViewValue(this.formatNumber(this.value));
|
114
|
+
};
|
55
115
|
this.step = isDigit(step) ? parseFloat(step) : SMALL_STEP;
|
56
116
|
this.bigStep = isDigit(bigStep) ? parseFloat(bigStep) : BIG_STEP;
|
57
117
|
this.min = isDigit(min) ? parseFloat(min) : -Infinity;
|
58
118
|
this.max = isDigit(max) ? parseFloat(max) : Infinity;
|
119
|
+
setTimeout(() => this.nativeElement.type = 'text', 0);
|
59
120
|
if ('valueAsNumber' in this.nativeElement) {
|
121
|
+
/* переделать алгоритм */
|
60
122
|
Object.defineProperty(Object.getPrototypeOf(this.nativeElement), 'valueAsNumber', {
|
61
123
|
// tslint:disable-next-line:no-reserved-keywords
|
62
124
|
get() {
|
@@ -65,9 +127,38 @@ class McNumberInput {
|
|
65
127
|
}
|
66
128
|
});
|
67
129
|
}
|
130
|
+
this.allNumberLocaleConfigs = this.localeService.locales.items
|
131
|
+
.map((localeItem) => {
|
132
|
+
return { id: localeItem.id, config: this.localeService.locales[localeItem.id].input.number };
|
133
|
+
});
|
134
|
+
this.localeSubscription = this.localeService.changes.subscribe(this.updateLocaleParams);
|
68
135
|
}
|
69
|
-
|
70
|
-
|
136
|
+
ngOnDestroy() {
|
137
|
+
this.localeSubscription.unsubscribe();
|
138
|
+
this.valueChange.complete();
|
139
|
+
this.disabledChange.complete();
|
140
|
+
}
|
141
|
+
onContainerClick() {
|
142
|
+
this.focus();
|
143
|
+
}
|
144
|
+
focus() {
|
145
|
+
this.nativeElement.focus();
|
146
|
+
}
|
147
|
+
// Implemented as part of ControlValueAccessor.
|
148
|
+
writeValue(value) {
|
149
|
+
this.value = value;
|
150
|
+
}
|
151
|
+
// Implemented as part of ControlValueAccessor.
|
152
|
+
registerOnChange(fn) {
|
153
|
+
this.cvaOnChange = fn;
|
154
|
+
}
|
155
|
+
// Implemented as part of ControlValueAccessor.
|
156
|
+
registerOnTouched(fn) {
|
157
|
+
this.onTouched = fn;
|
158
|
+
}
|
159
|
+
// Implemented as part of ControlValueAccessor.
|
160
|
+
setDisabledState(isDisabled) {
|
161
|
+
this.disabled = isDisabled;
|
71
162
|
}
|
72
163
|
focusChanged(isFocused) {
|
73
164
|
if (isFocused !== this.focused) {
|
@@ -83,32 +174,39 @@ class McNumberInput {
|
|
83
174
|
const isCtrlV = (e) => e.keyCode === V && (e.ctrlKey || e.metaKey);
|
84
175
|
const isCtrlX = (e) => e.keyCode === X && (e.ctrlKey || e.metaKey);
|
85
176
|
const isCtrlZ = (e) => e.keyCode === Z && (e.ctrlKey || e.metaKey);
|
86
|
-
const
|
87
|
-
|
88
|
-
(e.keyCode >= NUMPAD_ZERO && e.keyCode <= NUMPAD_NINE);
|
89
|
-
const isPeriod = (e) => e.key === '.' || e.key === ',';
|
177
|
+
const isPeriod = (e) => this.numberLocaleConfig.groupSeparator.includes(e.key)
|
178
|
+
|| [this.numberLocaleConfig.fractionSeparator, '.'].includes(e.key);
|
90
179
|
const minuses = [NUMPAD_MINUS, DASH, FF_MINUS];
|
91
180
|
const serviceKeys = [DELETE, BACKSPACE, TAB, ESCAPE, ENTER];
|
92
181
|
const arrows = [LEFT_ARROW, RIGHT_ARROW];
|
93
182
|
const allowedKeys = [HOME, END].concat(arrows).concat(serviceKeys).concat(minuses);
|
94
183
|
if (minuses.includes(keyCode) &&
|
95
|
-
(this.
|
184
|
+
(this.viewValue.includes(event.key) || this.min >= 0)) {
|
96
185
|
event.preventDefault();
|
97
186
|
return;
|
98
187
|
}
|
188
|
+
if (isPeriod(event)) {
|
189
|
+
if (event.key === this.numberLocaleConfig.fractionSeparator &&
|
190
|
+
this.viewValue.indexOf(this.numberLocaleConfig.fractionSeparator) !== -1) {
|
191
|
+
event.preventDefault();
|
192
|
+
return;
|
193
|
+
}
|
194
|
+
}
|
99
195
|
if (allowedKeys.indexOf(keyCode) !== -1 ||
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
196
|
+
[
|
197
|
+
isCtrlA,
|
198
|
+
isCtrlC,
|
199
|
+
isCtrlV,
|
200
|
+
isCtrlX,
|
201
|
+
isCtrlZ,
|
202
|
+
isFunctionKey,
|
203
|
+
isPeriod
|
204
|
+
].some((fn) => fn(event))) {
|
107
205
|
// let it happen, don't do anything
|
108
206
|
return;
|
109
207
|
}
|
110
208
|
// Ensure that it is not a number and stop the keypress
|
111
|
-
if (event.shiftKey || !
|
209
|
+
if (event.shiftKey || !isNumberKey(event) && !isNumpadKey(event)) {
|
112
210
|
event.preventDefault();
|
113
211
|
// process steps
|
114
212
|
const step = event.shiftKey ? this.bigStep : this.step;
|
@@ -120,48 +218,153 @@ class McNumberInput {
|
|
120
218
|
}
|
121
219
|
}
|
122
220
|
}
|
221
|
+
onInput(event) {
|
222
|
+
const currentValueLength = this.formatNumber(this.value)?.length || 0;
|
223
|
+
setTimeout(() => {
|
224
|
+
const fromPaste = event.inputType === 'insertFromPaste';
|
225
|
+
let formattedValue;
|
226
|
+
if (fromPaste) {
|
227
|
+
formattedValue = this.formatNumber(this.valueFromPaste);
|
228
|
+
}
|
229
|
+
else {
|
230
|
+
/*this.viewValue is raw and should be reformatted to localized number */
|
231
|
+
formattedValue = this.formatViewValue();
|
232
|
+
const offsetWhenSeparatorAdded = 2;
|
233
|
+
Promise.resolve().then(() => {
|
234
|
+
if (Math.abs(this.viewValue.length - currentValueLength) === offsetWhenSeparatorAdded) {
|
235
|
+
const cursorPosition = Math.max(0, (this.nativeElement.selectionStart || 0) + Math.sign(this.viewValue.length - currentValueLength));
|
236
|
+
this.renderer.setProperty(this.nativeElement, 'selectionStart', cursorPosition);
|
237
|
+
this.renderer.setProperty(this.nativeElement, 'selectionEnd', cursorPosition);
|
238
|
+
}
|
239
|
+
});
|
240
|
+
}
|
241
|
+
this.setViewValue(formattedValue, !fromPaste);
|
242
|
+
this.viewToModelUpdate(formattedValue);
|
243
|
+
});
|
244
|
+
}
|
123
245
|
onPaste(event) {
|
124
|
-
|
246
|
+
this.valueFromPaste = this.checkAndNormalizeLocalizedNumber(event.clipboardData?.getData('text'));
|
247
|
+
if (this.valueFromPaste === null) {
|
125
248
|
event.preventDefault();
|
126
249
|
}
|
127
250
|
}
|
128
251
|
stepUp(step) {
|
129
|
-
this.
|
130
|
-
const res = Math.max(Math.min(add(this.
|
131
|
-
this.
|
132
|
-
this.
|
252
|
+
this.nativeElement.focus();
|
253
|
+
const res = Math.max(Math.min(add(this.value || 0, step), this.max), this.min);
|
254
|
+
this.setViewValue(this.formatNumber(res));
|
255
|
+
this._value = res;
|
256
|
+
this.cvaOnChange(res);
|
257
|
+
this.valueChange.emit(res);
|
133
258
|
}
|
134
259
|
stepDown(step) {
|
135
|
-
this.
|
136
|
-
const res = Math.min(Math.max(add(this.
|
137
|
-
this.
|
138
|
-
this.
|
260
|
+
this.nativeElement.focus();
|
261
|
+
const res = Math.min(Math.max(add(this.value || 0, -step), this.min), this.max);
|
262
|
+
this.setViewValue(this.formatNumber(res));
|
263
|
+
this._value = res;
|
264
|
+
this.cvaOnChange(res);
|
265
|
+
this.valueChange.emit(res);
|
266
|
+
}
|
267
|
+
setViewValue(value, savePosition = false) {
|
268
|
+
const cursorPosition = this.nativeElement.selectionStart;
|
269
|
+
this.renderer.setProperty(this.nativeElement, 'value', value);
|
270
|
+
if (savePosition) {
|
271
|
+
this.renderer.setProperty(this.nativeElement, 'selectionStart', cursorPosition);
|
272
|
+
this.renderer.setProperty(this.nativeElement, 'selectionEnd', cursorPosition);
|
273
|
+
}
|
139
274
|
}
|
140
|
-
viewToModelUpdate(
|
141
|
-
|
142
|
-
|
275
|
+
viewToModelUpdate(newValue) {
|
276
|
+
const normalizedValue = newValue === null ? null : +this.normalizeNumber(newValue);
|
277
|
+
if (normalizedValue !== this.value) {
|
278
|
+
this._value = normalizedValue;
|
279
|
+
this.cvaOnChange(normalizedValue);
|
280
|
+
this.valueChange.emit(normalizedValue);
|
281
|
+
}
|
282
|
+
this.ngControl?.updateValueAndValidity({ emitEvent: false });
|
283
|
+
}
|
284
|
+
formatViewValue() {
|
285
|
+
if (this.viewValue === null || this.viewValue === '' || Number.isNaN(+this.normalizeNumber(this.viewValue))) {
|
286
|
+
return null;
|
287
|
+
}
|
288
|
+
const separator = this.numberLocaleConfig.groupSeparator.includes(' ')
|
289
|
+
&& this.numberLocaleConfig.fractionSeparator === ','
|
290
|
+
? /[,.]/
|
291
|
+
: this.numberLocaleConfig.fractionSeparator;
|
292
|
+
const [intPart, fractionPart] = this.viewValue.split(separator)
|
293
|
+
.map((valuePart) => this.normalizeNumber(valuePart));
|
294
|
+
return this.createLocalizedNumberFromParts(+intPart, fractionPart);
|
295
|
+
}
|
296
|
+
formatNumber(value) {
|
297
|
+
if (value === null || value === undefined) {
|
298
|
+
return null;
|
299
|
+
}
|
300
|
+
const [intPart, fractionPart] = value.toString().split('.');
|
301
|
+
return this.createLocalizedNumberFromParts(+intPart, fractionPart);
|
302
|
+
}
|
303
|
+
createLocalizedNumberFromParts(intPart, fractionPart) {
|
304
|
+
const formatOptions = {
|
305
|
+
useGrouping: this.withThousandSeparator,
|
306
|
+
maximumFractionDigits: 20
|
307
|
+
};
|
308
|
+
if (this.withThousandSeparator && this.numberLocaleConfig.startFormattingFrom) {
|
309
|
+
formatOptions.useGrouping = intPart >= Math.pow(
|
310
|
+
// tslint:disable-next-line:no-magic-numbers
|
311
|
+
10, this.numberLocaleConfig.startFormattingFrom);
|
312
|
+
}
|
313
|
+
const localeId = this.localeService.id === 'es-LA' ? 'ru-RU' : this.localeService.id;
|
314
|
+
const formatter = new Intl.NumberFormat(localeId, formatOptions);
|
315
|
+
const formattedFractionPart = fractionPart?.split('')
|
316
|
+
.map((numChar) => formatter.format(+numChar)).join('');
|
317
|
+
return formattedFractionPart === undefined
|
318
|
+
? formatter.format(intPart)
|
319
|
+
: `${formatter.format(intPart)}${this.numberLocaleConfig.fractionSeparator}${formattedFractionPart}`;
|
320
|
+
}
|
321
|
+
/**
|
322
|
+
* Method that returns a string representation of a number without localized separators
|
323
|
+
*/
|
324
|
+
normalizeNumber(value, customConfig) {
|
325
|
+
if (value === null || value === undefined) {
|
326
|
+
return '';
|
327
|
+
}
|
328
|
+
const { groupSeparator, fractionSeparator } = customConfig || this.numberLocaleConfig;
|
329
|
+
const groupSeparatorRegexp = new RegExp(`[${groupSeparator.join('')}]`, 'g');
|
330
|
+
const fractionSeparatorRegexp = new RegExp(`\\${fractionSeparator}`, 'g');
|
331
|
+
return value.toString()
|
332
|
+
.replace(groupSeparatorRegexp, '')
|
333
|
+
.replace(fractionSeparatorRegexp, '.');
|
334
|
+
}
|
335
|
+
checkAndNormalizeLocalizedNumber(num) {
|
336
|
+
if (num === null || num === undefined) {
|
337
|
+
return null;
|
338
|
+
}
|
339
|
+
/* if some locale input config satisfies pasted number, try to normalise with selected locale config */
|
340
|
+
let numberOutput = null;
|
341
|
+
for (const { config } of this.allNumberLocaleConfigs) {
|
342
|
+
const normalized = +this.normalizeNumber(num, config);
|
343
|
+
if (!Number.isNaN(normalized)) {
|
344
|
+
numberOutput = normalized;
|
345
|
+
break;
|
346
|
+
}
|
143
347
|
}
|
348
|
+
return numberOutput;
|
144
349
|
}
|
350
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McNumberInput, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: 'step', attribute: true }, { token: 'big-step', attribute: true }, { token: 'min', attribute: true }, { token: 'max', attribute: true }, { token: MC_LOCALE_SERVICE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
351
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: McNumberInput, selector: "input[mcInput][type=\"number\"]", inputs: { bigStep: "bigStep", step: "step", min: "min", max: "max", withThousandSeparator: "withThousandSeparator", startFormattingFrom: "startFormattingFrom", value: "value", disabled: "disabled" }, host: { listeners: { "blur": "focusChanged(false)", "focus": "focusChanged(true)", "paste": "onPaste($event)", "keydown": "onKeyDown($event)", "input": "onInput($event)" } }, providers: [MC_NUMBER_INPUT_VALUE_ACCESSOR], exportAs: ["mcNumericalInput"], ngImport: i0 }); }
|
145
352
|
}
|
146
|
-
|
147
|
-
/** @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 });
|
148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McNumberInput, decorators: [{
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McNumberInput, decorators: [{
|
149
354
|
type: Directive,
|
150
355
|
args: [{
|
151
356
|
selector: `input[mcInput][type="number"]`,
|
152
357
|
exportAs: 'mcNumericalInput',
|
358
|
+
providers: [MC_NUMBER_INPUT_VALUE_ACCESSOR],
|
153
359
|
host: {
|
154
360
|
'(blur)': 'focusChanged(false)',
|
155
361
|
'(focus)': 'focusChanged(true)',
|
156
362
|
'(paste)': 'onPaste($event)',
|
157
|
-
'(keydown)': 'onKeyDown($event)'
|
363
|
+
'(keydown)': 'onKeyDown($event)',
|
364
|
+
'(input)': 'onInput($event)'
|
158
365
|
}
|
159
366
|
}]
|
160
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type:
|
161
|
-
type: Optional
|
162
|
-
}, {
|
163
|
-
type: Self
|
164
|
-
}] }, { type: undefined, decorators: [{
|
367
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
|
165
368
|
type: Attribute,
|
166
369
|
args: ['step']
|
167
370
|
}] }, { type: undefined, decorators: [{
|
@@ -173,6 +376,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
173
376
|
}] }, { type: undefined, decorators: [{
|
174
377
|
type: Attribute,
|
175
378
|
args: ['max']
|
379
|
+
}] }, { type: i3.McLocaleService, decorators: [{
|
380
|
+
type: Optional
|
381
|
+
}, {
|
382
|
+
type: Inject,
|
383
|
+
args: [MC_LOCALE_SERVICE]
|
176
384
|
}] }]; }, propDecorators: { bigStep: [{
|
177
385
|
type: Input
|
178
386
|
}], step: [{
|
@@ -181,6 +389,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
181
389
|
type: Input
|
182
390
|
}], max: [{
|
183
391
|
type: Input
|
392
|
+
}], withThousandSeparator: [{
|
393
|
+
type: Input
|
394
|
+
}], startFormattingFrom: [{
|
395
|
+
type: Input
|
396
|
+
}], value: [{
|
397
|
+
type: Input
|
398
|
+
}], disabled: [{
|
399
|
+
type: Input
|
184
400
|
}] } });
|
185
401
|
|
186
402
|
const MC_INPUT_VALUE_ACCESSOR = new InjectionToken('MC_INPUT_VALUE_ACCESSOR');
|
@@ -215,45 +431,6 @@ class McInputBase {
|
|
215
431
|
/** @docs-private */
|
216
432
|
const McInputMixinBase = mixinErrorState(McInputBase);
|
217
433
|
class McInput extends McInputMixinBase {
|
218
|
-
// tslint:disable-next-line: naming-convention
|
219
|
-
constructor(elementRef, ngControl, numberInput, parentForm, parentFormGroup, defaultErrorStateMatcher, inputValueAccessor) {
|
220
|
-
super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
|
221
|
-
this.elementRef = elementRef;
|
222
|
-
this.numberInput = numberInput;
|
223
|
-
/**
|
224
|
-
* Implemented as part of McFormFieldControl.
|
225
|
-
* @docs-private
|
226
|
-
*/
|
227
|
-
this.focused = false;
|
228
|
-
/**
|
229
|
-
* Implemented as part of McFormFieldControl.
|
230
|
-
* @docs-private
|
231
|
-
*/
|
232
|
-
this.stateChanges = new Subject();
|
233
|
-
/**
|
234
|
-
* Implemented as part of McFormFieldControl.
|
235
|
-
* @docs-private
|
236
|
-
*/
|
237
|
-
this.controlType = 'input';
|
238
|
-
this.uid = `mc-input-${nextUniqueId$1++}`;
|
239
|
-
this.neverEmptyInputTypes = [
|
240
|
-
'date',
|
241
|
-
'datetime',
|
242
|
-
'datetime-local',
|
243
|
-
'month',
|
244
|
-
'time',
|
245
|
-
'week'
|
246
|
-
].filter((t) => getSupportedInputTypes().has(t));
|
247
|
-
this._disabled = false;
|
248
|
-
this._required = false;
|
249
|
-
// tslint:enable no-reserved-keywords
|
250
|
-
this._type = 'text';
|
251
|
-
// If no input value accessor was explicitly specified, use the element as the input value accessor.
|
252
|
-
this.inputValueAccessor = inputValueAccessor || this.elementRef.nativeElement;
|
253
|
-
this.previousNativeValue = this.value;
|
254
|
-
// Force setter to be called in case id was not specified.
|
255
|
-
this.id = this.id;
|
256
|
-
}
|
257
434
|
/**
|
258
435
|
* Implemented as part of McFormFieldControl.
|
259
436
|
* @docs-private
|
@@ -321,6 +498,45 @@ class McInput extends McInputMixinBase {
|
|
321
498
|
this.stateChanges.next();
|
322
499
|
}
|
323
500
|
}
|
501
|
+
// tslint:disable-next-line: naming-convention
|
502
|
+
constructor(elementRef, ngControl, numberInput, parentForm, parentFormGroup, defaultErrorStateMatcher, inputValueAccessor) {
|
503
|
+
super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
|
504
|
+
this.elementRef = elementRef;
|
505
|
+
this.numberInput = numberInput;
|
506
|
+
/**
|
507
|
+
* Implemented as part of McFormFieldControl.
|
508
|
+
* @docs-private
|
509
|
+
*/
|
510
|
+
this.focused = false;
|
511
|
+
/**
|
512
|
+
* Implemented as part of McFormFieldControl.
|
513
|
+
* @docs-private
|
514
|
+
*/
|
515
|
+
this.stateChanges = new Subject();
|
516
|
+
/**
|
517
|
+
* Implemented as part of McFormFieldControl.
|
518
|
+
* @docs-private
|
519
|
+
*/
|
520
|
+
this.controlType = 'input';
|
521
|
+
this.uid = `mc-input-${nextUniqueId$1++}`;
|
522
|
+
this.neverEmptyInputTypes = [
|
523
|
+
'date',
|
524
|
+
'datetime',
|
525
|
+
'datetime-local',
|
526
|
+
'month',
|
527
|
+
'time',
|
528
|
+
'week'
|
529
|
+
].filter((t) => getSupportedInputTypes().has(t));
|
530
|
+
this._disabled = false;
|
531
|
+
this._required = false;
|
532
|
+
// tslint:enable no-reserved-keywords
|
533
|
+
this._type = 'text';
|
534
|
+
// If no input value accessor was explicitly specified, use the element as the input value accessor.
|
535
|
+
this.inputValueAccessor = inputValueAccessor || this.elementRef.nativeElement;
|
536
|
+
this.previousNativeValue = this.value;
|
537
|
+
// Force setter to be called in case id was not specified.
|
538
|
+
this.id = this.id;
|
539
|
+
}
|
324
540
|
ngOnChanges() {
|
325
541
|
this.stateChanges.next();
|
326
542
|
}
|
@@ -396,12 +612,12 @@ class McInput extends McInputMixinBase {
|
|
396
612
|
const validity = this.elementRef.nativeElement.validity;
|
397
613
|
return validity?.badInput;
|
398
614
|
}
|
615
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", 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 }); }
|
616
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", 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: [{
|
617
|
+
provide: McFormFieldControl, useExisting: McInput
|
618
|
+
}], exportAs: ["mcInput"], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|
399
619
|
}
|
400
|
-
|
401
|
-
/** @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: [{
|
402
|
-
provide: McFormFieldControl, useExisting: McInput
|
403
|
-
}], exportAs: ["mcInput"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInput, decorators: [{
|
620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McInput, decorators: [{
|
405
621
|
type: Directive,
|
406
622
|
args: [{
|
407
623
|
selector: `input[mcInput]`,
|
@@ -456,10 +672,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
456
672
|
type: Input
|
457
673
|
}] } });
|
458
674
|
class McInputMono {
|
675
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McInputMono, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
676
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: McInputMono, selector: "input[mcInputMonospace]", host: { classAttribute: "mc-input_monospace" }, exportAs: ["McInputMonospace"], ngImport: i0 }); }
|
459
677
|
}
|
460
|
-
|
461
|
-
/** @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 });
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputMono, decorators: [{
|
678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McInputMono, decorators: [{
|
463
679
|
type: Directive,
|
464
680
|
args: [{
|
465
681
|
selector: 'input[mcInputMonospace]',
|
@@ -495,10 +711,10 @@ class MinValidator {
|
|
495
711
|
createValidator() {
|
496
712
|
this.validator = Validators.min(parseInt(this.min, 10));
|
497
713
|
}
|
714
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MinValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
715
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", 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 }); }
|
498
716
|
}
|
499
|
-
|
500
|
-
/** @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 });
|
501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MinValidator, decorators: [{
|
717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MinValidator, decorators: [{
|
502
718
|
type: Directive,
|
503
719
|
args: [{
|
504
720
|
selector: '[min][formControlName],[min][formControl],[min][ngModel]',
|
@@ -537,10 +753,10 @@ class MaxValidator {
|
|
537
753
|
createValidator() {
|
538
754
|
this.validator = Validators.max(parseInt(this.max, 10));
|
539
755
|
}
|
756
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MaxValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
757
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", 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 }); }
|
540
758
|
}
|
541
|
-
|
542
|
-
/** @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 });
|
543
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MaxValidator, decorators: [{
|
759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: MaxValidator, decorators: [{
|
544
760
|
type: Directive,
|
545
761
|
args: [{
|
546
762
|
selector: '[max][formControlName],[max][formControl],[max][ngModel]',
|
@@ -555,14 +771,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
555
771
|
|
556
772
|
let nextUniqueId = 0;
|
557
773
|
class McPasswordToggle extends McTooltipTrigger {
|
558
|
-
constructor(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction, focusMonitor, formField) {
|
559
|
-
super(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction);
|
560
|
-
this.focusMonitor = focusMonitor;
|
561
|
-
this.formField = formField;
|
562
|
-
this._tabIndex = 0;
|
563
|
-
this.trigger = `${PopUpTriggers.Hover}`;
|
564
|
-
this.runFocusMonitor();
|
565
|
-
}
|
566
774
|
get content() {
|
567
775
|
return this.formField.control.elementType === 'password' ?
|
568
776
|
this.mcTooltipHidden :
|
@@ -592,6 +800,14 @@ class McPasswordToggle extends McTooltipTrigger {
|
|
592
800
|
get visibility() {
|
593
801
|
return this.disabled && this.formField.control.empty ? 'hidden' : 'visible';
|
594
802
|
}
|
803
|
+
constructor(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction, focusMonitor, formField) {
|
804
|
+
super(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction);
|
805
|
+
this.focusMonitor = focusMonitor;
|
806
|
+
this.formField = formField;
|
807
|
+
this._tabIndex = 0;
|
808
|
+
this.trigger = `${PopUpTriggers.Hover}`;
|
809
|
+
this.runFocusMonitor();
|
810
|
+
}
|
595
811
|
ngOnDestroy() {
|
596
812
|
this.stopFocusMonitor();
|
597
813
|
}
|
@@ -618,10 +834,10 @@ class McPasswordToggle extends McTooltipTrigger {
|
|
618
834
|
stopFocusMonitor() {
|
619
835
|
this.focusMonitor.stopMonitoring(this.elementRef);
|
620
836
|
}
|
837
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", 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 }); }
|
838
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", 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 }); }
|
621
839
|
}
|
622
|
-
|
623
|
-
/** @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 });
|
624
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McPasswordToggle, decorators: [{
|
840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McPasswordToggle, decorators: [{
|
625
841
|
type: Component,
|
626
842
|
args: [{
|
627
843
|
selector: `mc-password-toggle`,
|
@@ -657,37 +873,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
657
873
|
type: Input
|
658
874
|
}] } });
|
659
875
|
class McInputPassword extends McInputMixinBase {
|
660
|
-
// tslint:disable-next-line: naming-convention
|
661
|
-
constructor(elementRef, ngControl, parentForm, parentFormGroup, defaultErrorStateMatcher, inputValueAccessor) {
|
662
|
-
super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
|
663
|
-
this.elementRef = elementRef;
|
664
|
-
/**
|
665
|
-
* Implemented as part of McFormFieldControl.
|
666
|
-
* @docs-private
|
667
|
-
*/
|
668
|
-
this.focused = false;
|
669
|
-
/**
|
670
|
-
* Implemented as part of McFormFieldControl.
|
671
|
-
* @docs-private
|
672
|
-
*/
|
673
|
-
this.stateChanges = new Subject();
|
674
|
-
this.checkRule = new Subject();
|
675
|
-
/**
|
676
|
-
* Implemented as part of McFormFieldControl.
|
677
|
-
* @docs-private
|
678
|
-
*/
|
679
|
-
this.controlType = 'input-password';
|
680
|
-
this.elementType = 'password';
|
681
|
-
this.uid = `mc-input-${nextUniqueId++}`;
|
682
|
-
this._disabled = false;
|
683
|
-
this._required = false;
|
684
|
-
// If no input value accessor was explicitly specified, use the element as the input value
|
685
|
-
// accessor.
|
686
|
-
this._inputValueAccessor = inputValueAccessor || this.elementRef.nativeElement;
|
687
|
-
this.previousNativeValue = this.value;
|
688
|
-
// Force setter to be called in case id was not specified.
|
689
|
-
this.id = this.id;
|
690
|
-
}
|
691
876
|
/**
|
692
877
|
* Implemented as part of McFormFieldControl.
|
693
878
|
* @docs-private
|
@@ -749,6 +934,37 @@ class McInputPassword extends McInputMixinBase {
|
|
749
934
|
get empty() {
|
750
935
|
return !this.elementRef.nativeElement.value && !this.isBadInput();
|
751
936
|
}
|
937
|
+
// tslint:disable-next-line: naming-convention
|
938
|
+
constructor(elementRef, ngControl, parentForm, parentFormGroup, defaultErrorStateMatcher, inputValueAccessor) {
|
939
|
+
super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
|
940
|
+
this.elementRef = elementRef;
|
941
|
+
/**
|
942
|
+
* Implemented as part of McFormFieldControl.
|
943
|
+
* @docs-private
|
944
|
+
*/
|
945
|
+
this.focused = false;
|
946
|
+
/**
|
947
|
+
* Implemented as part of McFormFieldControl.
|
948
|
+
* @docs-private
|
949
|
+
*/
|
950
|
+
this.stateChanges = new Subject();
|
951
|
+
this.checkRule = new Subject();
|
952
|
+
/**
|
953
|
+
* Implemented as part of McFormFieldControl.
|
954
|
+
* @docs-private
|
955
|
+
*/
|
956
|
+
this.controlType = 'input-password';
|
957
|
+
this.elementType = 'password';
|
958
|
+
this.uid = `mc-input-${nextUniqueId++}`;
|
959
|
+
this._disabled = false;
|
960
|
+
this._required = false;
|
961
|
+
// If no input value accessor was explicitly specified, use the element as the input value
|
962
|
+
// accessor.
|
963
|
+
this._inputValueAccessor = inputValueAccessor || this.elementRef.nativeElement;
|
964
|
+
this.previousNativeValue = this.value;
|
965
|
+
// Force setter to be called in case id was not specified.
|
966
|
+
this.id = this.id;
|
967
|
+
}
|
752
968
|
ngOnChanges() {
|
753
969
|
this.stateChanges.next(null);
|
754
970
|
}
|
@@ -821,12 +1037,12 @@ class McInputPassword extends McInputMixinBase {
|
|
821
1037
|
// The `validity` property won't be present on platform-server.
|
822
1038
|
return this.elementRef.nativeElement.validity?.badInput;
|
823
1039
|
}
|
1040
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", 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 }); }
|
1041
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", 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: [{
|
1042
|
+
provide: McFormFieldControl, useExisting: McInputPassword
|
1043
|
+
}], exportAs: ["mcInputPassword"], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|
824
1044
|
}
|
825
|
-
|
826
|
-
/** @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: [{
|
827
|
-
provide: McFormFieldControl, useExisting: McInputPassword
|
828
|
-
}], exportAs: ["mcInputPassword"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputPassword, decorators: [{
|
1045
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McInputPassword, decorators: [{
|
830
1046
|
type: Directive,
|
831
1047
|
args: [{
|
832
1048
|
selector: `input[mcInputPassword]`,
|
@@ -878,29 +1094,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
878
1094
|
}] } });
|
879
1095
|
|
880
1096
|
class McInputModule {
|
1097
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1098
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: McInputModule, declarations: [McInput,
|
1099
|
+
McNumberInput,
|
1100
|
+
McInputPassword,
|
1101
|
+
McPasswordToggle,
|
1102
|
+
McInputMono,
|
1103
|
+
MinValidator,
|
1104
|
+
MaxValidator], imports: [CommonModule,
|
1105
|
+
A11yModule,
|
1106
|
+
McCommonModule,
|
1107
|
+
FormsModule], exports: [McInput,
|
1108
|
+
McNumberInput,
|
1109
|
+
McInputPassword,
|
1110
|
+
McPasswordToggle,
|
1111
|
+
McInputMono,
|
1112
|
+
MinValidator,
|
1113
|
+
MaxValidator] }); }
|
1114
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McInputModule, imports: [CommonModule,
|
1115
|
+
A11yModule,
|
1116
|
+
McCommonModule,
|
1117
|
+
FormsModule] }); }
|
881
1118
|
}
|
882
|
-
|
883
|
-
/** @nocollapse */ McInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McInputModule, declarations: [McInput,
|
884
|
-
McNumberInput,
|
885
|
-
McInputPassword,
|
886
|
-
McPasswordToggle,
|
887
|
-
McInputMono,
|
888
|
-
MinValidator,
|
889
|
-
MaxValidator], imports: [CommonModule,
|
890
|
-
A11yModule,
|
891
|
-
McCommonModule,
|
892
|
-
FormsModule], exports: [McInput,
|
893
|
-
McNumberInput,
|
894
|
-
McInputPassword,
|
895
|
-
McPasswordToggle,
|
896
|
-
McInputMono,
|
897
|
-
MinValidator,
|
898
|
-
MaxValidator] });
|
899
|
-
/** @nocollapse */ McInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputModule, imports: [CommonModule,
|
900
|
-
A11yModule,
|
901
|
-
McCommonModule,
|
902
|
-
FormsModule] });
|
903
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McInputModule, decorators: [{
|
1119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: McInputModule, decorators: [{
|
904
1120
|
type: NgModule,
|
905
1121
|
args: [{
|
906
1122
|
imports: [
|
@@ -934,5 +1150,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
934
1150
|
* Generated bundle index. Do not edit.
|
935
1151
|
*/
|
936
1152
|
|
937
|
-
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 };
|
1153
|
+
export { BIG_STEP, MAX_VALIDATOR, MC_INPUT_VALUE_ACCESSOR, MC_NUMBER_INPUT_VALUE_ACCESSOR, MIN_VALIDATOR, MaxValidator, McInput, McInputBase, McInputMixinBase, McInputModule, McInputMono, McInputPassword, McNumberInput, McPasswordToggle, MinValidator, SMALL_STEP, add, getPrecision, isDigit, isFloat, isInt, normalizeSplitter };
|
938
1154
|
//# sourceMappingURL=ptsecurity-mosaic-input.mjs.map
|