@ptsecurity/mosaic 13.0.0 → 13.2.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 +1235 -1004
- package/_visual.scss +914 -708
- package/core/formatters/date/formatter.d.ts +37 -13
- package/core/pop-up/pop-up.d.ts +1 -0
- package/core/public-api.d.ts +1 -0
- package/core/version.d.ts +2 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/alert.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/autocomplete.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/badge.json5 +28 -38
- package/design-tokens/{tokens → legacy-2017/tokens}/components/button-toggle.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/button.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/card.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/checkbox.json5 +2 -2
- package/design-tokens/{tokens → legacy-2017/tokens}/components/datepicker.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/divider.json5 +0 -0
- package/design-tokens/legacy-2017/tokens/components/dl.json5 +38 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/dropdown.json5 +0 -0
- package/design-tokens/legacy-2017/tokens/components/form-field.json5 +91 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/forms.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/input.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/link.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/list.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/modal.json5 +12 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/navbar.json5 +2 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/optgroup.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/option.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/popover.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/popup.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-bar.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/progress-spinner.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/radio.json5 +0 -1
- package/design-tokens/{tokens → legacy-2017/tokens}/components/select.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/sidepanel.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/table.json5 +0 -0
- package/design-tokens/legacy-2017/tokens/components/tabs.json5 +101 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/tags.json5 +6 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/textarea.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/timepicker.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/toggle.json5 +24 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/tooltip.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/tree.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/properties/aliases.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/properties/colors.json5 +4 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/properties/font.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/properties/globals.json5 +20 -1
- package/design-tokens/{tokens → legacy-2017/tokens}/properties/padding.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/properties/palette.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/properties/typography.json5 +0 -0
- package/design-tokens/{tokens.d.ts → legacy-2017/tokens.d.ts} +101 -28
- package/design-tokens/pt-2022/tokens/components/alert.json5 +83 -0
- package/design-tokens/pt-2022/tokens/components/autocomplete.json5 +11 -0
- package/design-tokens/pt-2022/tokens/components/badge.json5 +174 -0
- package/design-tokens/pt-2022/tokens/components/button-toggle.json5 +10 -0
- package/design-tokens/pt-2022/tokens/components/button.json5 +143 -0
- package/design-tokens/pt-2022/tokens/components/card.json5 +51 -0
- package/design-tokens/pt-2022/tokens/components/checkbox.json5 +39 -0
- package/design-tokens/pt-2022/tokens/components/datepicker.json5 +64 -0
- package/design-tokens/pt-2022/tokens/components/divider.json5 +8 -0
- package/design-tokens/pt-2022/tokens/components/dl.json5 +38 -0
- package/design-tokens/pt-2022/tokens/components/dropdown.json5 +47 -0
- package/design-tokens/pt-2022/tokens/components/form-field.json5 +91 -0
- package/design-tokens/pt-2022/tokens/components/forms.json5 +52 -0
- package/design-tokens/pt-2022/tokens/components/input.json5 +13 -0
- package/design-tokens/pt-2022/tokens/components/link.json5 +56 -0
- package/design-tokens/pt-2022/tokens/components/list.json5 +15 -0
- package/design-tokens/pt-2022/tokens/components/modal.json5 +79 -0
- package/design-tokens/pt-2022/tokens/components/navbar.json5 +69 -0
- package/design-tokens/pt-2022/tokens/components/optgroup.json5 +10 -0
- package/design-tokens/pt-2022/tokens/components/option.json5 +12 -0
- package/design-tokens/pt-2022/tokens/components/popover.json5 +68 -0
- package/design-tokens/pt-2022/tokens/components/popup.json5 +18 -0
- package/design-tokens/pt-2022/tokens/components/progress-bar.json5 +13 -0
- package/design-tokens/pt-2022/tokens/components/progress-spinner.json5 +7 -0
- package/design-tokens/pt-2022/tokens/components/radio.json5 +44 -0
- package/design-tokens/pt-2022/tokens/components/select.json5 +25 -0
- package/design-tokens/pt-2022/tokens/components/sidepanel.json5 +30 -0
- package/design-tokens/pt-2022/tokens/components/table.json5 +15 -0
- package/design-tokens/pt-2022/tokens/components/tabs.json5 +101 -0
- package/design-tokens/pt-2022/tokens/components/tags.json5 +132 -0
- package/design-tokens/pt-2022/tokens/components/textarea.json5 +12 -0
- package/design-tokens/pt-2022/tokens/components/timepicker.json5 +7 -0
- package/design-tokens/pt-2022/tokens/components/toggle.json5 +79 -0
- package/design-tokens/pt-2022/tokens/components/tooltip.json5 +83 -0
- package/design-tokens/pt-2022/tokens/components/tree.json5 +12 -0
- package/design-tokens/pt-2022/tokens/properties/aliases.json5 +3 -0
- package/design-tokens/pt-2022/tokens/properties/colors.json5 +116 -0
- package/design-tokens/pt-2022/tokens/properties/font.json5 +15 -0
- package/design-tokens/pt-2022/tokens/properties/globals.json5 +49 -0
- package/design-tokens/pt-2022/tokens/properties/padding.json5 +3 -0
- package/design-tokens/pt-2022/tokens/properties/palette.json5 +226 -0
- package/design-tokens/pt-2022/tokens/properties/typography.json5 +140 -0
- package/design-tokens/pt-2022/tokens.d.ts +8749 -0
- package/design-tokens/public-api.d.ts +3 -1
- package/dl/README.md +0 -0
- package/dl/dl.component.d.ts +26 -0
- package/dl/dl.module.d.ts +10 -0
- package/dl/index.d.ts +1 -0
- package/dl/package.json +10 -0
- package/dl/ptsecurity-mosaic-dl.d.ts +5 -0
- package/dl/public-api.d.ts +2 -0
- package/esm2020/autocomplete/autocomplete-origin.directive.mjs +3 -3
- package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +3 -3
- package/esm2020/autocomplete/autocomplete.component.mjs +5 -5
- package/esm2020/autocomplete/autocomplete.module.mjs +4 -4
- package/esm2020/button/button.component.mjs +7 -7
- package/esm2020/button/button.module.mjs +4 -4
- package/esm2020/button-toggle/button-toggle.component.mjs +8 -8
- package/esm2020/button-toggle/button-toggle.module.mjs +4 -4
- package/esm2020/card/card.component.mjs +4 -4
- package/esm2020/card/card.module.mjs +4 -4
- package/esm2020/checkbox/checkbox-module.mjs +4 -4
- package/esm2020/checkbox/checkbox-required-validator.mjs +3 -3
- package/esm2020/checkbox/checkbox.mjs +4 -4
- package/esm2020/core/common-behaviors/common-module.mjs +4 -4
- package/esm2020/core/error/error-options.mjs +6 -6
- package/esm2020/core/formatters/date/formatter.mjs +76 -31
- package/esm2020/core/formatters/date/templates/en-US.mjs +38 -37
- package/esm2020/core/formatters/date/templates/ru-RU.mjs +38 -37
- package/esm2020/core/formatters/index.mjs +4 -4
- package/esm2020/core/formatters/number/formatter.mjs +4 -4
- package/esm2020/core/forms/forms-module.mjs +4 -4
- package/esm2020/core/forms/forms.directive.mjs +6 -6
- package/esm2020/core/highlight/highlight.pipe.mjs +3 -3
- package/esm2020/core/highlight/index.mjs +4 -4
- package/esm2020/core/line/line.mjs +7 -7
- package/esm2020/core/option/action.mjs +3 -3
- package/esm2020/core/option/optgroup.mjs +4 -4
- package/esm2020/core/option/option-module.mjs +4 -4
- package/esm2020/core/option/option.mjs +4 -4
- package/esm2020/core/pop-up/pop-up-trigger.mjs +7 -14
- package/esm2020/core/pop-up/pop-up.mjs +7 -4
- package/esm2020/core/public-api.mjs +2 -1
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +4 -4
- package/esm2020/core/services/measure-scrollbar.service.mjs +3 -3
- package/esm2020/core/version.mjs +3 -0
- package/esm2020/datepicker/calendar-body.component.mjs +4 -4
- package/esm2020/datepicker/calendar.component.mjs +7 -7
- package/esm2020/datepicker/datepicker-input.directive.mjs +3 -3
- package/esm2020/datepicker/datepicker-intl.mjs +3 -3
- package/esm2020/datepicker/datepicker-module.mjs +4 -4
- package/esm2020/datepicker/datepicker-toggle.component.mjs +7 -7
- package/esm2020/datepicker/datepicker.component.mjs +8 -8
- package/esm2020/datepicker/month-view.component.mjs +3 -3
- package/esm2020/datepicker/multi-year-view.component.mjs +3 -3
- package/esm2020/datepicker/year-view.component.mjs +3 -3
- package/esm2020/design-tokens/legacy-2017/tokens.mjs +1006 -0
- package/esm2020/design-tokens/pt-2022/tokens.mjs +1066 -0
- package/esm2020/design-tokens/public-api.mjs +4 -2
- package/esm2020/divider/divider.component.mjs +4 -4
- package/esm2020/divider/divider.module.mjs +4 -4
- package/esm2020/dl/dl.component.mjs +78 -0
- package/esm2020/dl/dl.module.mjs +42 -0
- package/esm2020/dl/index.mjs +2 -0
- package/esm2020/dl/ptsecurity-mosaic-dl.mjs +5 -0
- package/esm2020/dl/public-api.mjs +3 -0
- package/esm2020/dropdown/dropdown-content.directive.mjs +3 -3
- package/esm2020/dropdown/dropdown-item.component.mjs +4 -4
- package/esm2020/dropdown/dropdown-trigger.directive.mjs +3 -3
- package/esm2020/dropdown/dropdown.component.mjs +6 -6
- package/esm2020/dropdown/dropdown.module.mjs +4 -4
- package/esm2020/form-field/cleaner.mjs +5 -5
- package/esm2020/form-field/form-field.mjs +48 -28
- package/esm2020/form-field/form-field.module.mjs +10 -5
- package/esm2020/form-field/hint.mjs +6 -6
- package/esm2020/form-field/password-hint.mjs +115 -0
- package/esm2020/form-field/prefix.mjs +3 -3
- package/esm2020/form-field/public-api.mjs +2 -1
- package/esm2020/form-field/stepper.mjs +3 -3
- package/esm2020/form-field/suffix.mjs +3 -3
- package/esm2020/icon/icon.component.mjs +6 -6
- package/esm2020/icon/icon.module.mjs +4 -4
- package/esm2020/input/input-number-validators.mjs +6 -6
- package/esm2020/input/input-number.mjs +3 -3
- package/esm2020/input/input-password.mjs +367 -0
- package/esm2020/input/input.mjs +6 -6
- package/esm2020/input/input.module.mjs +50 -8
- package/esm2020/input/public-api.mjs +2 -1
- package/esm2020/link/link.component.mjs +3 -3
- package/esm2020/link/link.module.mjs +4 -4
- package/esm2020/list/list-selection.component.mjs +22 -28
- package/esm2020/list/list.component.mjs +7 -7
- package/esm2020/list/list.module.mjs +4 -4
- package/esm2020/modal/css-unit.pipe.mjs +3 -3
- package/esm2020/modal/modal-control.service.mjs +26 -4
- package/esm2020/modal/modal.component.mjs +4 -4
- package/esm2020/modal/modal.directive.mjs +12 -12
- package/esm2020/modal/modal.module.mjs +4 -4
- package/esm2020/modal/modal.service.mjs +3 -3
- package/esm2020/navbar/navbar-item.component.mjs +37 -31
- package/esm2020/navbar/navbar.component.mjs +10 -10
- package/esm2020/navbar/navbar.module.mjs +4 -4
- package/esm2020/navbar/vertical-navbar.component.mjs +6 -6
- package/esm2020/popover/popover-confirm.component.mjs +8 -8
- package/esm2020/popover/popover.component.mjs +8 -8
- package/esm2020/popover/popover.module.mjs +4 -4
- package/esm2020/progress-bar/progress-bar.component.mjs +4 -4
- package/esm2020/progress-bar/progress-bar.module.mjs +4 -4
- package/esm2020/progress-spinner/progress-spinner.component.mjs +4 -4
- package/esm2020/progress-spinner/progress-spinner.module.mjs +4 -4
- package/esm2020/radio/radio.component.mjs +7 -7
- package/esm2020/radio/radio.module.mjs +4 -4
- package/esm2020/select/select.component.mjs +15 -15
- package/esm2020/select/select.module.mjs +4 -4
- package/esm2020/sidebar/sidebar.component.mjs +9 -9
- package/esm2020/sidebar/sidebar.module.mjs +4 -4
- package/esm2020/sidepanel/sidepanel-container.component.mjs +5 -5
- package/esm2020/sidepanel/sidepanel-directives.mjs +18 -18
- package/esm2020/sidepanel/sidepanel.module.mjs +4 -4
- package/esm2020/sidepanel/sidepanel.service.mjs +3 -3
- package/esm2020/splitter/splitter.component.mjs +22 -20
- package/esm2020/splitter/splitter.module.mjs +4 -4
- package/esm2020/table/table.component.mjs +3 -3
- package/esm2020/table/table.module.mjs +4 -4
- package/esm2020/tabs/paginated-tab-header.mjs +3 -3
- package/esm2020/tabs/tab-body.component.mjs +6 -6
- package/esm2020/tabs/tab-content.directive.mjs +3 -3
- package/esm2020/tabs/tab-group.component.mjs +20 -20
- package/esm2020/tabs/tab-header.component.mjs +4 -4
- package/esm2020/tabs/tab-label-wrapper.directive.mjs +3 -3
- package/esm2020/tabs/tab-label.directive.mjs +3 -3
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +9 -9
- package/esm2020/tabs/tab.component.mjs +3 -3
- package/esm2020/tabs/tabs.module.mjs +4 -4
- package/esm2020/tags/tag-input.mjs +3 -3
- package/esm2020/tags/tag-list.component.mjs +4 -4
- package/esm2020/tags/tag.component.mjs +61 -58
- package/esm2020/tags/tag.module.mjs +4 -4
- package/esm2020/textarea/textarea.component.mjs +3 -3
- package/esm2020/textarea/textarea.module.mjs +4 -4
- package/esm2020/timepicker/timepicker.directive.mjs +3 -3
- package/esm2020/timepicker/timepicker.module.mjs +4 -4
- package/esm2020/toggle/toggle.component.mjs +6 -6
- package/esm2020/toggle/toggle.module.mjs +4 -4
- package/esm2020/tooltip/tooltip.component.mjs +17 -14
- package/esm2020/tooltip/tooltip.module.mjs +4 -4
- package/esm2020/tree/data-source/flat-data-source.mjs +4 -4
- package/esm2020/tree/node.mjs +3 -3
- package/esm2020/tree/outlet.mjs +3 -3
- package/esm2020/tree/padding.directive.mjs +3 -3
- package/esm2020/tree/toggle.mjs +11 -11
- package/esm2020/tree/tree-base.mjs +6 -6
- package/esm2020/tree/tree-option.component.mjs +17 -9
- package/esm2020/tree/tree-selection.component.mjs +8 -5
- package/esm2020/tree/tree.mjs +3 -3
- package/esm2020/tree/tree.module.mjs +4 -4
- package/esm2020/tree-select/tree-select.component.mjs +46 -10
- package/esm2020/tree-select/tree-select.module.mjs +15 -11
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +15 -15
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +12 -12
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button.mjs +11 -11
- package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-card.mjs +8 -8
- package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs +11 -11
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs +234 -189
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +44 -44
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +2647 -502
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-divider.mjs +8 -8
- package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dl.mjs +124 -0
- package/fesm2015/ptsecurity-mosaic-dl.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs +19 -19
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +193 -51
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-icon.mjs +10 -10
- package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.mjs +429 -28
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-link.mjs +7 -7
- package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-list.mjs +33 -38
- package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-modal.mjs +51 -29
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-navbar.mjs +55 -49
- package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-popover.mjs +18 -18
- package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +8 -8
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +8 -8
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-radio.mjs +11 -11
- package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.mjs +18 -18
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs +13 -13
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +28 -28
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-splitter.mjs +25 -23
- package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-table.mjs +7 -7
- package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tabs.mjs +56 -56
- package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.mjs +73 -68
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-textarea.mjs +7 -7
- package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs +7 -7
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toggle.mjs +9 -9
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +20 -17
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +59 -19
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree.mjs +58 -47
- package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +15 -15
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +12 -12
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-button.mjs +11 -11
- package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-card.mjs +8 -8
- package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs +11 -11
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs +234 -189
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs +44 -44
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +2647 -502
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-divider.mjs +8 -8
- package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-dl.mjs +124 -0
- package/fesm2020/ptsecurity-mosaic-dl.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs +19 -19
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +182 -51
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-icon.mjs +10 -10
- package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-input.mjs +422 -28
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-link.mjs +7 -7
- package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-list.mjs +32 -38
- package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-modal.mjs +51 -29
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-navbar.mjs +55 -49
- package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-popover.mjs +18 -18
- package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +8 -8
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +8 -8
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-radio.mjs +11 -11
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs +18 -18
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs +13 -13
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +28 -28
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-splitter.mjs +25 -23
- package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-table.mjs +7 -7
- package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tabs.mjs +56 -56
- package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tags.mjs +71 -68
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-textarea.mjs +7 -7
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs +7 -7
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-toggle.mjs +9 -9
- package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs +20 -17
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs +58 -19
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tree.mjs +58 -47
- package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic.mjs.map +1 -1
- package/form-field/form-field.d.ts +9 -2
- package/form-field/form-field.module.d.ts +8 -7
- package/form-field/password-hint.d.ts +38 -0
- package/form-field/public-api.d.ts +1 -0
- package/input/input-password.d.ts +120 -0
- package/input/input.module.d.ts +7 -6
- package/input/public-api.d.ts +1 -0
- package/modal/modal-control.service.d.ts +1 -0
- package/navbar/navbar-item.component.d.ts +1 -0
- package/package.json +12 -4
- 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/tags/tag.component.d.ts +20 -20
- package/tree/data-source/flat-data-source.d.ts +2 -2
- package/tree/toggle.d.ts +1 -1
- package/tree/tree-option.component.d.ts +5 -3
- package/tree/tree-selection.component.d.ts +1 -0
- package/tree-select/tree-select.component.d.ts +9 -1
- package/tree-select/tree-select.module.d.ts +2 -1
- package/design-tokens/tokens/components/form-field.json5 +0 -52
- package/design-tokens/tokens/components/tabs.json5 +0 -25
- package/esm2020/design-tokens/tokens.mjs +0 -933
@@ -1,16 +1,21 @@
|
|
1
|
+
import * as i3$1 from '@angular/cdk/a11y';
|
1
2
|
import { A11yModule } from '@angular/cdk/a11y';
|
2
3
|
import { CommonModule } from '@angular/common';
|
3
4
|
import * as i0 from '@angular/core';
|
4
|
-
import { InjectionToken, Directive, Optional, Self, Attribute, Input, Inject, forwardRef, NgModule } from '@angular/core';
|
5
|
+
import { InjectionToken, Directive, Optional, Self, Attribute, Input, Inject, forwardRef, Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
|
5
6
|
import * as i1 from '@angular/forms';
|
6
7
|
import { NG_VALIDATORS, Validators, FormsModule } from '@angular/forms';
|
7
8
|
import * as i3 from '@ptsecurity/mosaic/core';
|
8
|
-
import { mixinErrorState, setMosaicValidation, MC_VALIDATION, McCommonModule } from '@ptsecurity/mosaic/core';
|
9
|
-
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
9
|
+
import { mixinErrorState, setMosaicValidation, MC_VALIDATION, PopUpTriggers, McCommonModule } from '@ptsecurity/mosaic/core';
|
10
|
+
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
10
11
|
import { getSupportedInputTypes } from '@angular/cdk/platform';
|
12
|
+
import * as i4 from '@ptsecurity/mosaic/form-field';
|
11
13
|
import { McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
12
14
|
import { Subject } from 'rxjs';
|
13
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';
|
14
19
|
|
15
20
|
function getMcInputUnsupportedTypeError(inputType) {
|
16
21
|
return Error(`Input type "${inputType}" isn't supported by mcInput.`);
|
@@ -135,9 +140,9 @@ class McNumberInput {
|
|
135
140
|
}
|
136
141
|
}
|
137
142
|
}
|
138
|
-
/** @nocollapse */ /** @nocollapse */ McNumberInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
139
|
-
/** @nocollapse */ /** @nocollapse */ McNumberInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
143
|
+
/** @nocollapse */ /** @nocollapse */ McNumberInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", 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 });
|
144
|
+
/** @nocollapse */ /** @nocollapse */ McNumberInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", 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 });
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McNumberInput, decorators: [{
|
141
146
|
type: Directive,
|
142
147
|
args: [{
|
143
148
|
selector: `input[mcInput][type="number"]`,
|
@@ -188,7 +193,7 @@ const MC_INPUT_INVALID_TYPES = [
|
|
188
193
|
'reset',
|
189
194
|
'submit'
|
190
195
|
];
|
191
|
-
let nextUniqueId = 0;
|
196
|
+
let nextUniqueId$1 = 0;
|
192
197
|
class McInputBase {
|
193
198
|
constructor(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
|
194
199
|
this.defaultErrorStateMatcher = defaultErrorStateMatcher;
|
@@ -224,7 +229,7 @@ class McInput extends McInputMixinBase {
|
|
224
229
|
* @docs-private
|
225
230
|
*/
|
226
231
|
this.controlType = 'input';
|
227
|
-
this.uid = `mc-input-${nextUniqueId++}`;
|
232
|
+
this.uid = `mc-input-${nextUniqueId$1++}`;
|
228
233
|
this.neverEmptyInputTypes = [
|
229
234
|
'date',
|
230
235
|
'datetime',
|
@@ -404,11 +409,11 @@ class McInput extends McInputMixinBase {
|
|
404
409
|
return validity && validity.badInput;
|
405
410
|
}
|
406
411
|
}
|
407
|
-
/** @nocollapse */ /** @nocollapse */ McInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
408
|
-
/** @nocollapse */ /** @nocollapse */ McInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
412
|
+
/** @nocollapse */ /** @nocollapse */ McInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInput, deps: [{ token: i0.ElementRef }, { token: NG_VALIDATORS, optional: true, self: true }, { token: MC_VALIDATION, optional: true }, { token: i1.NgControl, optional: true, self: true }, { token: McNumberInput, optional: true, self: true }, { token: i1.NgModel, optional: true, self: true }, { token: i1.FormControlName, 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 });
|
413
|
+
/** @nocollapse */ /** @nocollapse */ McInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", 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)", "input": "onInput()" }, properties: { "attr.id": "id", "attr.placeholder": "placeholder", "attr.disabled": "disabled || null", "required": "required" }, classAttribute: "mc-input" }, providers: [{
|
409
414
|
provide: McFormFieldControl, useExisting: McInput
|
410
415
|
}], exportAs: ["mcInput"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInput, decorators: [{
|
412
417
|
type: Directive,
|
413
418
|
args: [{
|
414
419
|
selector: `input[mcInput]`,
|
@@ -487,9 +492,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
487
492
|
}] } });
|
488
493
|
class McInputMono {
|
489
494
|
}
|
490
|
-
/** @nocollapse */ /** @nocollapse */ McInputMono.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
491
|
-
/** @nocollapse */ /** @nocollapse */ McInputMono.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
495
|
+
/** @nocollapse */ /** @nocollapse */ McInputMono.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputMono, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
496
|
+
/** @nocollapse */ /** @nocollapse */ McInputMono.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: McInputMono, selector: "input[mcInputMonospace]", host: { classAttribute: "mc-input_monospace" }, exportAs: ["McInputMonospace"], ngImport: i0 });
|
497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputMono, decorators: [{
|
493
498
|
type: Directive,
|
494
499
|
args: [{
|
495
500
|
selector: 'input[mcInputMonospace]',
|
@@ -528,9 +533,9 @@ class MinValidator {
|
|
528
533
|
this.validator = Validators.min(parseInt(this.min, 10));
|
529
534
|
}
|
530
535
|
}
|
531
|
-
/** @nocollapse */ /** @nocollapse */ MinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
532
|
-
/** @nocollapse */ /** @nocollapse */ MinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
533
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
536
|
+
/** @nocollapse */ /** @nocollapse */ MinValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MinValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
537
|
+
/** @nocollapse */ /** @nocollapse */ MinValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", 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 });
|
538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MinValidator, decorators: [{
|
534
539
|
type: Directive,
|
535
540
|
args: [{
|
536
541
|
selector: '[min][formControlName],[min][formControl],[min][ngModel]',
|
@@ -572,9 +577,9 @@ class MaxValidator {
|
|
572
577
|
this.validator = Validators.max(parseInt(this.max, 10));
|
573
578
|
}
|
574
579
|
}
|
575
|
-
/** @nocollapse */ /** @nocollapse */ MaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
576
|
-
/** @nocollapse */ /** @nocollapse */ MaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
580
|
+
/** @nocollapse */ /** @nocollapse */ MaxValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MaxValidator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
581
|
+
/** @nocollapse */ /** @nocollapse */ MaxValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", 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 });
|
582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: MaxValidator, decorators: [{
|
578
583
|
type: Directive,
|
579
584
|
args: [{
|
580
585
|
selector: '[max][formControlName],[max][formControl],[max][ngModel]',
|
@@ -587,17 +592,413 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
587
592
|
type: Input
|
588
593
|
}] } });
|
589
594
|
|
595
|
+
let nextUniqueId = 0;
|
596
|
+
class McPasswordToggle extends McTooltipTrigger {
|
597
|
+
constructor(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction, focusMonitor, formField) {
|
598
|
+
super(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction);
|
599
|
+
this.focusMonitor = focusMonitor;
|
600
|
+
this.formField = formField;
|
601
|
+
this._tabIndex = 0;
|
602
|
+
this.trigger = `${PopUpTriggers.Hover}`;
|
603
|
+
this.runFocusMonitor();
|
604
|
+
}
|
605
|
+
get content() {
|
606
|
+
return this.formField.control.elementType === 'password' ?
|
607
|
+
this.mcTooltipHidden :
|
608
|
+
this._content;
|
609
|
+
}
|
610
|
+
set content(content) {
|
611
|
+
this._content = content;
|
612
|
+
this.updateData();
|
613
|
+
}
|
614
|
+
get disabled() {
|
615
|
+
return this._disabled === undefined ? this.formField.disabled : this._disabled;
|
616
|
+
}
|
617
|
+
set disabled(value) {
|
618
|
+
this._disabled = coerceBooleanProperty(value);
|
619
|
+
this._disabled ? this.stopFocusMonitor() : this.runFocusMonitor();
|
620
|
+
}
|
621
|
+
get tabIndex() {
|
622
|
+
return this.disabled ? -1 : this._tabIndex;
|
623
|
+
}
|
624
|
+
set tabIndex(value) {
|
625
|
+
// If the specified tabIndex value is null or undefined, fall back to the default value.
|
626
|
+
this._tabIndex = value != null ? coerceNumberProperty(value) : 0;
|
627
|
+
}
|
628
|
+
get hidden() {
|
629
|
+
return this.formField.control.elementType === 'password';
|
630
|
+
}
|
631
|
+
ngOnDestroy() {
|
632
|
+
this.stopFocusMonitor();
|
633
|
+
}
|
634
|
+
toggle() {
|
635
|
+
if (this.disabled) {
|
636
|
+
return;
|
637
|
+
}
|
638
|
+
this.hide();
|
639
|
+
const input = this.formField.control;
|
640
|
+
input.toggleType();
|
641
|
+
this.updateData();
|
642
|
+
}
|
643
|
+
runFocusMonitor() {
|
644
|
+
this.focusMonitor.monitor(this.elementRef)
|
645
|
+
.subscribe((origin) => {
|
646
|
+
if (origin === 'keyboard') {
|
647
|
+
this.show();
|
648
|
+
}
|
649
|
+
else if (origin === null) {
|
650
|
+
this.hide();
|
651
|
+
}
|
652
|
+
});
|
653
|
+
}
|
654
|
+
stopFocusMonitor() {
|
655
|
+
this.focusMonitor.stopMonitoring(this.elementRef);
|
656
|
+
}
|
657
|
+
}
|
658
|
+
/** @nocollapse */ /** @nocollapse */ McPasswordToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", 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 });
|
659
|
+
/** @nocollapse */ /** @nocollapse */ McPasswordToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", 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", "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 });
|
660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McPasswordToggle, decorators: [{
|
661
|
+
type: Component,
|
662
|
+
args: [{
|
663
|
+
selector: `mc-password-toggle`,
|
664
|
+
exportAs: 'mcPasswordToggle',
|
665
|
+
template: '<ng-content></ng-content>',
|
666
|
+
host: {
|
667
|
+
class: 'mc-password-toggle mc',
|
668
|
+
'[class.mc-eye_16]': 'hidden',
|
669
|
+
'[class.mc-eye-crossed_16]': '!hidden',
|
670
|
+
'[attr.tabindex]': 'disabled ? null : tabIndex',
|
671
|
+
'[attr.disabled]': 'disabled || null',
|
672
|
+
'(click)': 'toggle()',
|
673
|
+
'(keydown.ENTER)': 'toggle()',
|
674
|
+
'(keydown.SPACE)': 'toggle()'
|
675
|
+
},
|
676
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
677
|
+
encapsulation: ViewEncapsulation.None
|
678
|
+
}]
|
679
|
+
}], ctorParameters: function () {
|
680
|
+
return [{ type: i1$1.Overlay }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i1$1.ScrollDispatcher }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
|
681
|
+
type: Inject,
|
682
|
+
args: [MC_TOOLTIP_SCROLL_STRATEGY]
|
683
|
+
}] }, { type: i2.Directionality, decorators: [{
|
684
|
+
type: Optional
|
685
|
+
}] }, { type: i3$1.FocusMonitor }, { type: i4.McFormField }];
|
686
|
+
}, propDecorators: { content: [{
|
687
|
+
type: Input,
|
688
|
+
args: ['mcTooltipNotHidden']
|
689
|
+
}], mcTooltipHidden: [{
|
690
|
+
type: Input
|
691
|
+
}], disabled: [{
|
692
|
+
type: Input
|
693
|
+
}], tabIndex: [{
|
694
|
+
type: Input
|
695
|
+
}] } });
|
696
|
+
class McInputPassword extends McInputMixinBase {
|
697
|
+
// tslint:disable-next-line: naming-convention
|
698
|
+
constructor(elementRef, rawValidators, mcValidation, ngControl, ngModel, formControlName, parentForm, parentFormGroup, defaultErrorStateMatcher, inputValueAccessor) {
|
699
|
+
super(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl);
|
700
|
+
this.elementRef = elementRef;
|
701
|
+
this.rawValidators = rawValidators;
|
702
|
+
this.mcValidation = mcValidation;
|
703
|
+
this.ngModel = ngModel;
|
704
|
+
this.formControlName = formControlName;
|
705
|
+
/**
|
706
|
+
* Implemented as part of McFormFieldControl.
|
707
|
+
* @docs-private
|
708
|
+
*/
|
709
|
+
this.focused = false;
|
710
|
+
/**
|
711
|
+
* Implemented as part of McFormFieldControl.
|
712
|
+
* @docs-private
|
713
|
+
*/
|
714
|
+
this.stateChanges = new Subject();
|
715
|
+
/**
|
716
|
+
* Implemented as part of McFormFieldControl.
|
717
|
+
* @docs-private
|
718
|
+
*/
|
719
|
+
this.controlType = 'input-password';
|
720
|
+
this.elementType = 'password';
|
721
|
+
this.uid = `mc-input-${nextUniqueId++}`;
|
722
|
+
this._disabled = false;
|
723
|
+
this._required = false;
|
724
|
+
// If no input value accessor was explicitly specified, use the element as the input value
|
725
|
+
// accessor.
|
726
|
+
this._inputValueAccessor = inputValueAccessor || this.elementRef.nativeElement;
|
727
|
+
this.previousNativeValue = this.value;
|
728
|
+
// Force setter to be called in case id was not specified.
|
729
|
+
this.id = this.id;
|
730
|
+
}
|
731
|
+
/**
|
732
|
+
* Implemented as part of McFormFieldControl.
|
733
|
+
* @docs-private
|
734
|
+
*/
|
735
|
+
get disabled() {
|
736
|
+
var _a;
|
737
|
+
if (((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.disabled) !== null) {
|
738
|
+
return this.ngControl.disabled;
|
739
|
+
}
|
740
|
+
return this._disabled;
|
741
|
+
}
|
742
|
+
set disabled(value) {
|
743
|
+
this._disabled = coerceBooleanProperty(value);
|
744
|
+
// Browsers may not fire the blur event if the input is disabled too quickly.
|
745
|
+
// Reset from here to ensure that the element doesn't become stuck.
|
746
|
+
if (this.focused) {
|
747
|
+
this.focused = false;
|
748
|
+
this.stateChanges.next();
|
749
|
+
}
|
750
|
+
}
|
751
|
+
/**
|
752
|
+
* Implemented as part of McFormFieldControl.
|
753
|
+
* @docs-private
|
754
|
+
*/
|
755
|
+
get id() {
|
756
|
+
return this._id;
|
757
|
+
}
|
758
|
+
set id(value) {
|
759
|
+
this._id = value || this.uid;
|
760
|
+
}
|
761
|
+
/**
|
762
|
+
* Implemented as part of McFormFieldControl.
|
763
|
+
* @docs-private
|
764
|
+
*/
|
765
|
+
get required() {
|
766
|
+
return this._required;
|
767
|
+
}
|
768
|
+
set required(value) {
|
769
|
+
this._required = coerceBooleanProperty(value);
|
770
|
+
}
|
771
|
+
// this.elementRef.nativeElement.type = this._type;
|
772
|
+
/**
|
773
|
+
* Implemented as part of McFormFieldControl.
|
774
|
+
* @docs-private
|
775
|
+
*/
|
776
|
+
get value() {
|
777
|
+
return this._inputValueAccessor.value;
|
778
|
+
}
|
779
|
+
set value(value) {
|
780
|
+
if (value === this.value) {
|
781
|
+
return;
|
782
|
+
}
|
783
|
+
this._inputValueAccessor.value = value;
|
784
|
+
this.stateChanges.next();
|
785
|
+
}
|
786
|
+
ngAfterContentInit() {
|
787
|
+
if (!this.ngControl) {
|
788
|
+
return;
|
789
|
+
}
|
790
|
+
if (this.mcValidation.useValidation) {
|
791
|
+
setMosaicValidation(this);
|
792
|
+
}
|
793
|
+
}
|
794
|
+
ngOnChanges() {
|
795
|
+
this.stateChanges.next();
|
796
|
+
}
|
797
|
+
ngOnDestroy() {
|
798
|
+
this.stateChanges.complete();
|
799
|
+
}
|
800
|
+
ngDoCheck() {
|
801
|
+
if (this.ngControl) {
|
802
|
+
// We need to re-evaluate this on every change detection cycle, because there are some
|
803
|
+
// error triggers that we can't subscribe to (e.g. parent form submissions). This means
|
804
|
+
// that whatever logic is in here has to be super lean or we risk destroying the performance.
|
805
|
+
this.updateErrorState();
|
806
|
+
}
|
807
|
+
// We need to dirty-check the native element's value, because there are some cases where
|
808
|
+
// we won't be notified when it changes (e.g. the consumer isn't using forms or they're
|
809
|
+
// updating the value using `emitEvent: false`).
|
810
|
+
this.dirtyCheckNativeValue();
|
811
|
+
}
|
812
|
+
toggleType() {
|
813
|
+
this.elementType = this.elementType === 'password' ? 'text' : 'password';
|
814
|
+
}
|
815
|
+
/** Focuses the input. */
|
816
|
+
focus() {
|
817
|
+
this.elementRef.nativeElement.focus();
|
818
|
+
}
|
819
|
+
onBlur() {
|
820
|
+
var _a;
|
821
|
+
if ((_a = this.ngControl) === null || _a === void 0 ? void 0 : _a.control) {
|
822
|
+
const control = this.ngControl.control;
|
823
|
+
control.updateValueAndValidity({ emitEvent: false });
|
824
|
+
control.statusChanges.emit(control.status);
|
825
|
+
}
|
826
|
+
this.focusChanged(false);
|
827
|
+
}
|
828
|
+
/** Callback for the cases where the focused state of the input changes. */
|
829
|
+
focusChanged(isFocused) {
|
830
|
+
if (isFocused === this.focused) {
|
831
|
+
return;
|
832
|
+
}
|
833
|
+
this.focused = isFocused;
|
834
|
+
this.stateChanges.next({ focused: this.focused });
|
835
|
+
}
|
836
|
+
onInput() {
|
837
|
+
// This is a noop function and is used to let Angular know whenever the value changes.
|
838
|
+
// Angular will run a new change detection each time the `input` event has been dispatched.
|
839
|
+
// It's necessary that Angular recognizes the value change, because when floatingLabel
|
840
|
+
// is set to false and Angular forms aren't used, the placeholder won't recognize the
|
841
|
+
// value changes and will not disappear.
|
842
|
+
// Listening to the input event wouldn't be necessary when the input is using the
|
843
|
+
// FormsModule or ReactiveFormsModule, because Angular forms also listens to input events.
|
844
|
+
}
|
845
|
+
/**
|
846
|
+
* Implemented as part of McFormFieldControl.
|
847
|
+
* @docs-private
|
848
|
+
*/
|
849
|
+
get empty() {
|
850
|
+
return !this.elementRef.nativeElement.value && !this.isBadInput();
|
851
|
+
}
|
852
|
+
/**
|
853
|
+
* Implemented as part of McFormFieldControl.
|
854
|
+
* @docs-private
|
855
|
+
*/
|
856
|
+
onContainerClick() {
|
857
|
+
this.focus();
|
858
|
+
}
|
859
|
+
/** Does some manual dirty checking on the native input `value` property. */
|
860
|
+
dirtyCheckNativeValue() {
|
861
|
+
if (this.previousNativeValue !== this.value) {
|
862
|
+
this.previousNativeValue = this.value;
|
863
|
+
this.stateChanges.next();
|
864
|
+
}
|
865
|
+
}
|
866
|
+
/** Checks whether the input is invalid based on the native validation. */
|
867
|
+
isBadInput() {
|
868
|
+
var _a;
|
869
|
+
// The `validity` property won't be present on platform-server.
|
870
|
+
return (_a = this.elementRef.nativeElement.validity) === null || _a === void 0 ? void 0 : _a.badInput;
|
871
|
+
}
|
872
|
+
}
|
873
|
+
/** @nocollapse */ /** @nocollapse */ McInputPassword.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputPassword, deps: [{ token: i0.ElementRef }, { token: NG_VALIDATORS, optional: true, self: true }, { token: MC_VALIDATION, optional: true }, { token: i1.NgControl, optional: true, self: true }, { token: i1.NgModel, optional: true, self: true }, { token: i1.FormControlName, 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 });
|
874
|
+
/** @nocollapse */ /** @nocollapse */ McInputPassword.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", 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: [{
|
875
|
+
provide: McFormFieldControl, useExisting: McInputPassword
|
876
|
+
}], exportAs: ["mcInputPassword"], usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputPassword, decorators: [{
|
878
|
+
type: Directive,
|
879
|
+
args: [{
|
880
|
+
selector: `input[mcInputPassword]`,
|
881
|
+
exportAs: 'mcInputPassword',
|
882
|
+
host: {
|
883
|
+
class: 'mc-input mc-input-password',
|
884
|
+
// Native input properties that are overwritten by Angular inputs need to be synced with
|
885
|
+
// the native input element. Otherwise property bindings for those don't work.
|
886
|
+
'[attr.id]': 'id',
|
887
|
+
'[attr.type]': 'elementType',
|
888
|
+
'[attr.placeholder]': 'placeholder',
|
889
|
+
'[attr.disabled]': 'disabled || null',
|
890
|
+
'[required]': 'required',
|
891
|
+
'(blur)': 'onBlur()',
|
892
|
+
'(focus)': 'focusChanged(true)',
|
893
|
+
'(input)': 'onInput()'
|
894
|
+
},
|
895
|
+
providers: [{
|
896
|
+
provide: McFormFieldControl, useExisting: McInputPassword
|
897
|
+
}]
|
898
|
+
}]
|
899
|
+
}], ctorParameters: function () {
|
900
|
+
return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
|
901
|
+
type: Optional
|
902
|
+
}, {
|
903
|
+
type: Self
|
904
|
+
}, {
|
905
|
+
type: Inject,
|
906
|
+
args: [NG_VALIDATORS]
|
907
|
+
}] }, { type: undefined, decorators: [{
|
908
|
+
type: Optional
|
909
|
+
}, {
|
910
|
+
type: Inject,
|
911
|
+
args: [MC_VALIDATION]
|
912
|
+
}] }, { type: i1.NgControl, decorators: [{
|
913
|
+
type: Optional
|
914
|
+
}, {
|
915
|
+
type: Self
|
916
|
+
}] }, { type: i1.NgModel, decorators: [{
|
917
|
+
type: Optional
|
918
|
+
}, {
|
919
|
+
type: Self
|
920
|
+
}] }, { type: i1.FormControlName, decorators: [{
|
921
|
+
type: Optional
|
922
|
+
}, {
|
923
|
+
type: Self
|
924
|
+
}] }, { type: i1.NgForm, decorators: [{
|
925
|
+
type: Optional
|
926
|
+
}] }, { type: i1.FormGroupDirective, decorators: [{
|
927
|
+
type: Optional
|
928
|
+
}] }, { type: i3.ErrorStateMatcher }, { type: undefined, decorators: [{
|
929
|
+
type: Optional
|
930
|
+
}, {
|
931
|
+
type: Self
|
932
|
+
}, {
|
933
|
+
type: Inject,
|
934
|
+
args: [MC_INPUT_VALUE_ACCESSOR]
|
935
|
+
}] }];
|
936
|
+
}, propDecorators: { errorStateMatcher: [{
|
937
|
+
type: Input
|
938
|
+
}], placeholder: [{
|
939
|
+
type: Input
|
940
|
+
}], disabled: [{
|
941
|
+
type: Input
|
942
|
+
}], id: [{
|
943
|
+
type: Input
|
944
|
+
}], required: [{
|
945
|
+
type: Input
|
946
|
+
}], value: [{
|
947
|
+
type: Input
|
948
|
+
}] } });
|
949
|
+
|
590
950
|
class McInputModule {
|
591
951
|
}
|
592
|
-
/** @nocollapse */ /** @nocollapse */ McInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
593
|
-
/** @nocollapse */ /** @nocollapse */ McInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
594
|
-
|
595
|
-
|
952
|
+
/** @nocollapse */ /** @nocollapse */ McInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
953
|
+
/** @nocollapse */ /** @nocollapse */ McInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputModule, declarations: [McInput,
|
954
|
+
McNumberInput,
|
955
|
+
McInputPassword,
|
956
|
+
McPasswordToggle,
|
957
|
+
McInputMono,
|
958
|
+
MinValidator,
|
959
|
+
MaxValidator], imports: [CommonModule,
|
960
|
+
A11yModule,
|
961
|
+
McCommonModule,
|
962
|
+
FormsModule], exports: [McInput,
|
963
|
+
McNumberInput,
|
964
|
+
McInputPassword,
|
965
|
+
McPasswordToggle,
|
966
|
+
McInputMono,
|
967
|
+
MinValidator,
|
968
|
+
MaxValidator] });
|
969
|
+
/** @nocollapse */ /** @nocollapse */ McInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputModule, imports: [[
|
970
|
+
CommonModule,
|
971
|
+
A11yModule,
|
972
|
+
McCommonModule,
|
973
|
+
FormsModule
|
974
|
+
]] });
|
975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McInputModule, decorators: [{
|
596
976
|
type: NgModule,
|
597
977
|
args: [{
|
598
|
-
imports: [
|
599
|
-
|
600
|
-
|
978
|
+
imports: [
|
979
|
+
CommonModule,
|
980
|
+
A11yModule,
|
981
|
+
McCommonModule,
|
982
|
+
FormsModule
|
983
|
+
],
|
984
|
+
declarations: [
|
985
|
+
McInput,
|
986
|
+
McNumberInput,
|
987
|
+
McInputPassword,
|
988
|
+
McPasswordToggle,
|
989
|
+
McInputMono,
|
990
|
+
MinValidator,
|
991
|
+
MaxValidator
|
992
|
+
],
|
993
|
+
exports: [
|
994
|
+
McInput,
|
995
|
+
McNumberInput,
|
996
|
+
McInputPassword,
|
997
|
+
McPasswordToggle,
|
998
|
+
McInputMono,
|
999
|
+
MinValidator,
|
1000
|
+
MaxValidator
|
1001
|
+
]
|
601
1002
|
}]
|
602
1003
|
}] });
|
603
1004
|
|
@@ -605,5 +1006,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
605
1006
|
* Generated bundle index. Do not edit.
|
606
1007
|
*/
|
607
1008
|
|
608
|
-
export { BIG_STEP, MAX_VALIDATOR, MC_INPUT_VALUE_ACCESSOR, MIN_VALIDATOR, MaxValidator, McInput, McInputBase, McInputMixinBase, McInputModule, McInputMono, McNumberInput, MinValidator, SMALL_STEP, add, getPrecision, isDigit, isFloat, isInt, normalizeSplitter };
|
1009
|
+
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 };
|
609
1010
|
//# sourceMappingURL=ptsecurity-mosaic-input.mjs.map
|