@ptsecurity/mosaic 12.3.0 → 13.1.1
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 +978 -781
- package/_visual.scss +848 -692
- package/autocomplete/README.md +0 -0
- package/autocomplete/package.json +5 -5
- package/button/README.md +0 -0
- package/button/button.component.d.ts +17 -14
- package/button/button.module.d.ts +1 -1
- package/button/package.json +5 -5
- package/button-toggle/README.md +0 -0
- package/button-toggle/package.json +5 -5
- package/card/README.md +0 -0
- package/card/package.json +5 -5
- package/checkbox/README.md +1 -0
- package/checkbox/package.json +5 -5
- package/core/formatters/date/formatter.d.ts +41 -17
- package/core/formatters/date/templates/en-US.d.ts +8 -8
- package/core/formatters/date/templates/ru-RU.d.ts +8 -8
- package/core/package.json +5 -5
- 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/datepicker/README.md +0 -0
- package/datepicker/package.json +5 -5
- 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 +0 -0
- 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/legacy-2017/tokens/components/checkbox.json5 +39 -0
- 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/{tokens → legacy-2017/tokens}/components/dropdown.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/components/form-field.json5 +0 -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/legacy-2017/tokens/components/modal.json5 +79 -0
- package/design-tokens/legacy-2017/tokens/components/navbar.json5 +69 -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/legacy-2017/tokens/components/radio.json5 +44 -0
- 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/{tokens → legacy-2017/tokens}/components/tabs.json5 +0 -0
- package/design-tokens/legacy-2017/tokens/components/tags.json5 +132 -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/legacy-2017/tokens/components/toggle.json5 +79 -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 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/properties/font.json5 +0 -0
- package/design-tokens/{tokens → legacy-2017/tokens}/properties/globals.json5 +0 -0
- 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/legacy-2017/tokens.d.ts +7659 -0
- package/design-tokens/package.json +5 -5
- 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 +184 -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/dropdown.json5 +47 -0
- package/design-tokens/pt-2022/tokens/components/form-field.json5 +52 -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 +25 -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 +112 -0
- package/design-tokens/pt-2022/tokens/properties/font.json5 +15 -0
- package/design-tokens/pt-2022/tokens/properties/globals.json5 +30 -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 +8696 -0
- package/design-tokens/public-api.d.ts +3 -1
- package/divider/README.md +0 -0
- package/divider/package.json +5 -5
- package/dropdown/package.json +5 -5
- package/esm2020/autocomplete/autocomplete-origin.directive.mjs +21 -0
- package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +555 -0
- package/esm2020/autocomplete/autocomplete.component.mjs +154 -0
- package/esm2020/autocomplete/autocomplete.module.mjs +34 -0
- package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
- package/{esm2015/autocomplete/ptsecurity-mosaic-autocomplete.js → esm2020/autocomplete/ptsecurity-mosaic-autocomplete.mjs} +0 -0
- package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
- package/esm2020/button/button.component.mjs +129 -0
- package/esm2020/button/button.module.mjs +38 -0
- package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
- package/{esm2015/button/ptsecurity-mosaic-button.js → esm2020/button/ptsecurity-mosaic-button.mjs} +0 -0
- package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
- package/esm2020/button-toggle/button-toggle.component.mjs +362 -0
- package/esm2020/button-toggle/button-toggle.module.mjs +19 -0
- package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
- package/{esm2015/button-toggle/ptsecurity-mosaic-button-toggle.js → esm2020/button-toggle/ptsecurity-mosaic-button-toggle.mjs} +0 -0
- package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
- package/esm2020/card/card.component.mjs +80 -0
- package/esm2020/card/card.module.mjs +30 -0
- package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
- package/{esm2015/card/ptsecurity-mosaic-card.js → esm2020/card/ptsecurity-mosaic-card.mjs} +0 -0
- package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
- package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
- package/esm2020/checkbox/checkbox-module.mjs +19 -0
- package/esm2020/checkbox/checkbox-required-validator.mjs +27 -0
- package/esm2020/checkbox/checkbox.mjs +315 -0
- package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
- package/{esm2015/checkbox/ptsecurity-mosaic-checkbox.js → esm2020/checkbox/ptsecurity-mosaic-checkbox.mjs} +0 -0
- package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
- package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
- package/{esm2015/core/animation/fade-animations.js → esm2020/core/animation/fade-animations.mjs} +0 -0
- package/{esm2015/core/animation/index.js → esm2020/core/animation/index.mjs} +0 -0
- package/{esm2015/core/animation/select-animations.js → esm2020/core/animation/select-animations.mjs} +0 -0
- package/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -0
- package/esm2020/core/common-behaviors/common-module.mjs +83 -0
- package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
- package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
- package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
- package/{esm2015/core/common-behaviors/index.js → esm2020/core/common-behaviors/index.mjs} +0 -0
- package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -0
- package/esm2020/core/error/error-options.mjs +26 -0
- package/esm2020/core/formatters/date/formatter.mjs +359 -0
- package/esm2020/core/formatters/date/templates/en-US.mjs +281 -0
- package/esm2020/core/formatters/date/templates/ru-RU.mjs +281 -0
- package/esm2020/core/formatters/index.mjs +20 -0
- package/esm2020/core/formatters/number/formatter.mjs +105 -0
- package/esm2020/core/forms/forms-module.mjs +24 -0
- package/esm2020/core/forms/forms.directive.mjs +66 -0
- package/{esm2015/core/forms/index.js → esm2020/core/forms/index.mjs} +0 -0
- package/esm2020/core/highlight/highlight.pipe.mjs +17 -0
- package/esm2020/core/highlight/index.mjs +19 -0
- package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
- package/{esm2015/core/label/label-options.js → esm2020/core/label/label-options.mjs} +0 -0
- package/esm2020/core/line/line.mjs +70 -0
- package/esm2020/core/option/action.mjs +121 -0
- package/{esm2015/core/option/index.js → esm2020/core/option/index.mjs} +0 -0
- package/esm2020/core/option/optgroup.mjs +31 -0
- package/esm2020/core/option/option-module.mjs +21 -0
- package/esm2020/core/option/option.mjs +254 -0
- package/{esm2015/core/overlay/overlay-position-map.js → esm2020/core/overlay/overlay-position-map.mjs} +0 -0
- package/{esm2015/core/pop-up/constants.js → esm2020/core/pop-up/constants.mjs} +0 -0
- package/{esm2015/core/pop-up/index.js → esm2020/core/pop-up/index.mjs} +0 -0
- package/esm2020/core/pop-up/pop-up-trigger.mjs +239 -0
- package/esm2020/core/pop-up/pop-up.mjs +94 -0
- package/{esm2015/core/ptsecurity-mosaic-core.js → esm2020/core/ptsecurity-mosaic-core.mjs} +0 -0
- package/esm2020/core/public-api.mjs +18 -0
- package/{esm2015/core/select/constants.js → esm2020/core/select/constants.mjs} +0 -0
- package/{esm2015/core/select/errors.js → esm2020/core/select/errors.mjs} +0 -0
- package/{esm2015/core/select/events.js → esm2020/core/select/events.mjs} +0 -0
- package/{esm2015/core/select/index.js → esm2020/core/select/index.mjs} +0 -0
- package/{esm2015/core/selection/constants.js → esm2020/core/selection/constants.mjs} +0 -0
- package/{esm2015/core/selection/index.js → esm2020/core/selection/index.mjs} +0 -0
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +37 -0
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +18 -0
- package/esm2020/core/services/measure-scrollbar.service.mjs +48 -0
- package/{esm2015/core/utils/index.js → esm2020/core/utils/index.mjs} +0 -0
- package/{esm2015/core/utils/public-api.js → esm2020/core/utils/public-api.mjs} +0 -0
- package/{esm2015/core/utils/utils.js → esm2020/core/utils/utils.mjs} +0 -0
- package/{esm2015/core/validation/index.js → esm2020/core/validation/index.mjs} +0 -0
- package/{esm2015/core/validation/validation.js → esm2020/core/validation/validation.mjs} +0 -0
- package/esm2020/core/version.mjs +3 -0
- package/esm2020/datepicker/calendar-body.component.mjs +106 -0
- package/esm2020/datepicker/calendar.component.mjs +362 -0
- package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
- package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
- package/esm2020/datepicker/datepicker-input.directive.mjs +900 -0
- package/esm2020/datepicker/datepicker-intl.mjs +40 -0
- package/esm2020/datepicker/datepicker-module.mjs +107 -0
- package/esm2020/datepicker/datepicker-toggle.component.mjs +86 -0
- package/esm2020/datepicker/datepicker.component.mjs +408 -0
- package/{esm2015/datepicker/index.js → esm2020/datepicker/index.mjs} +0 -0
- package/esm2020/datepicker/month-view.component.mjs +257 -0
- package/esm2020/datepicker/multi-year-view.component.mjs +218 -0
- package/{esm2015/datepicker/ptsecurity-mosaic-datepicker.js → esm2020/datepicker/ptsecurity-mosaic-datepicker.mjs} +0 -0
- package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
- package/esm2020/datepicker/year-view.component.mjs +253 -0
- package/{esm2015/design-tokens/index.js → esm2020/design-tokens/index.mjs} +0 -0
- package/esm2020/design-tokens/legacy-2017/tokens.mjs +953 -0
- package/esm2020/design-tokens/pt-2022/tokens.mjs +1013 -0
- package/{esm2015/design-tokens/ptsecurity-mosaic-design-tokens.js → esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs} +0 -0
- package/esm2020/design-tokens/public-api.mjs +4 -0
- package/esm2020/divider/divider.component.mjs +39 -0
- package/esm2020/divider/divider.module.mjs +18 -0
- package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
- package/{esm2015/divider/ptsecurity-mosaic-divider.js → esm2020/divider/ptsecurity-mosaic-divider.mjs} +0 -0
- package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
- package/{esm2015/dropdown/dropdown-animations.js → esm2020/dropdown/dropdown-animations.mjs} +0 -0
- package/esm2020/dropdown/dropdown-content.directive.mjs +64 -0
- package/{esm2015/dropdown/dropdown-errors.js → esm2020/dropdown/dropdown-errors.mjs} +0 -0
- package/esm2020/dropdown/dropdown-item.component.mjs +139 -0
- package/esm2020/dropdown/dropdown-trigger.directive.mjs +485 -0
- package/esm2020/dropdown/dropdown.component.mjs +292 -0
- package/esm2020/dropdown/dropdown.module.mjs +50 -0
- package/{esm2015/dropdown/dropdown.types.js → esm2020/dropdown/dropdown.types.mjs} +0 -0
- package/{esm2015/dropdown/index.js → esm2020/dropdown/index.mjs} +0 -0
- package/{esm2015/dropdown/ptsecurity-mosaic-dropdown.js → esm2020/dropdown/ptsecurity-mosaic-dropdown.mjs} +0 -0
- package/{esm2015/dropdown/public-api.js → esm2020/dropdown/public-api.mjs} +0 -0
- package/esm2020/form-field/cleaner.mjs +23 -0
- package/{esm2015/form-field/form-field-control.js → esm2020/form-field/form-field-control.mjs} +0 -0
- package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
- package/esm2020/form-field/form-field.mjs +205 -0
- package/esm2020/form-field/form-field.module.mjs +52 -0
- package/esm2020/form-field/hint.mjs +23 -0
- package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
- package/esm2020/form-field/prefix.mjs +13 -0
- package/{esm2015/form-field/ptsecurity-mosaic-form-field.js → esm2020/form-field/ptsecurity-mosaic-form-field.mjs} +0 -0
- package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
- package/esm2020/form-field/stepper.mjs +55 -0
- package/esm2020/form-field/suffix.mjs +13 -0
- package/esm2020/icon/icon.component.mjs +44 -0
- package/esm2020/icon/icon.module.mjs +38 -0
- package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
- package/{esm2015/icon/ptsecurity-mosaic-icon.js → esm2020/icon/ptsecurity-mosaic-icon.mjs} +0 -0
- package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
- package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
- package/esm2020/input/input-number-validators.mjs +92 -0
- package/esm2020/input/input-number.mjs +163 -0
- package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
- package/esm2020/input/input.mjs +333 -0
- package/esm2020/input/input.module.mjs +23 -0
- package/{esm2015/input/ptsecurity-mosaic-input.js → esm2020/input/ptsecurity-mosaic-input.mjs} +0 -0
- package/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -0
- package/{esm2015/link/index.js → esm2020/link/index.mjs} +0 -0
- package/esm2020/link/link.component.mjs +107 -0
- package/esm2020/link/link.module.mjs +26 -0
- package/{esm2015/link/ptsecurity-mosaic-link.js → esm2020/link/ptsecurity-mosaic-link.mjs} +0 -0
- package/{esm2015/link/public-api.js → esm2020/link/public-api.mjs} +0 -0
- package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
- package/esm2020/list/list-selection.component.mjs +687 -0
- package/esm2020/list/list.component.mjs +44 -0
- package/esm2020/list/list.module.mjs +55 -0
- package/{esm2015/list/ptsecurity-mosaic-list.js → esm2020/list/ptsecurity-mosaic-list.mjs} +0 -0
- package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
- package/esm2020/modal/css-unit.pipe.mjs +17 -0
- package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
- package/esm2020/modal/modal-control.service.mjs +85 -0
- package/{esm2015/modal/modal-ref.class.js → esm2020/modal/modal-ref.class.mjs} +0 -0
- package/{esm2015/modal/modal-util.js → esm2020/modal/modal-util.mjs} +0 -0
- package/esm2020/modal/modal.component.mjs +501 -0
- package/esm2020/modal/modal.directive.mjs +52 -0
- package/esm2020/modal/modal.module.mjs +72 -0
- package/esm2020/modal/modal.service.mjs +124 -0
- package/{esm2015/modal/modal.type.js → esm2020/modal/modal.type.mjs} +0 -0
- package/{esm2015/modal/ptsecurity-mosaic-modal.js → esm2020/modal/ptsecurity-mosaic-modal.mjs} +0 -0
- package/{esm2015/modal/public-api.js → esm2020/modal/public-api.mjs} +0 -0
- package/{esm2015/navbar/index.js → esm2020/navbar/index.mjs} +0 -0
- package/esm2020/navbar/navbar-item.component.mjs +583 -0
- package/esm2020/navbar/navbar.component.mjs +237 -0
- package/esm2020/navbar/navbar.module.mjs +92 -0
- package/{esm2015/navbar/ptsecurity-mosaic-navbar.js → esm2020/navbar/ptsecurity-mosaic-navbar.mjs} +0 -0
- package/{esm2015/navbar/public-api.js → esm2020/navbar/public-api.mjs} +0 -0
- package/esm2020/navbar/vertical-navbar.animation.mjs +10 -0
- package/esm2020/navbar/vertical-navbar.component.mjs +114 -0
- package/{esm2015/popover/index.js → esm2020/popover/index.mjs} +0 -0
- package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
- package/esm2020/popover/popover-confirm.component.mjs +108 -0
- package/esm2020/popover/popover.component.mjs +253 -0
- package/esm2020/popover/popover.module.mjs +24 -0
- package/{esm2015/popover/ptsecurity-mosaic-popover.js → esm2020/popover/ptsecurity-mosaic-popover.mjs} +0 -0
- package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +0 -0
- package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
- package/esm2020/progress-bar/progress-bar.component.mjs +42 -0
- package/esm2020/progress-bar/progress-bar.module.mjs +30 -0
- package/{esm2015/progress-bar/ptsecurity-mosaic-progress-bar.js → esm2020/progress-bar/ptsecurity-mosaic-progress-bar.mjs} +0 -0
- package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
- package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
- package/esm2020/progress-spinner/progress-spinner.component.mjs +46 -0
- package/esm2020/progress-spinner/progress-spinner.module.mjs +30 -0
- package/{esm2015/progress-spinner/ptsecurity-mosaic-progress-spinner.js → esm2020/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs} +0 -0
- package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
- package/{esm2015/ptsecurity-mosaic.js → esm2020/ptsecurity-mosaic.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
- package/{esm2015/radio/ptsecurity-mosaic-radio.js → esm2020/radio/ptsecurity-mosaic-radio.mjs} +0 -0
- package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
- package/esm2020/radio/radio.component.mjs +458 -0
- package/esm2020/radio/radio.module.mjs +20 -0
- package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
- package/{esm2015/select/ptsecurity-mosaic-select.js → esm2020/select/ptsecurity-mosaic-select.mjs} +0 -0
- package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
- package/esm2020/select/select.component.mjs +1110 -0
- package/esm2020/select/select.module.mjs +64 -0
- package/{esm2015/sidebar/index.js → esm2020/sidebar/index.mjs} +0 -0
- package/{esm2015/sidebar/ptsecurity-mosaic-sidebar.js → esm2020/sidebar/ptsecurity-mosaic-sidebar.mjs} +0 -0
- package/{esm2015/sidebar/public-api.js → esm2020/sidebar/public-api.mjs} +0 -0
- package/{esm2015/sidebar/sidebar-animations.js → esm2020/sidebar/sidebar-animations.mjs} +0 -0
- package/esm2020/sidebar/sidebar.component.mjs +146 -0
- package/esm2020/sidebar/sidebar.module.mjs +30 -0
- package/{esm2015/sidepanel/index.js → esm2020/sidepanel/index.mjs} +0 -0
- package/{esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js → esm2020/sidepanel/ptsecurity-mosaic-sidepanel.mjs} +0 -0
- package/{esm2015/sidepanel/public-api.js → esm2020/sidepanel/public-api.mjs} +0 -0
- package/{esm2015/sidepanel/sidepanel-animations.js → esm2020/sidepanel/sidepanel-animations.mjs} +0 -0
- package/{esm2015/sidepanel/sidepanel-config.js → esm2020/sidepanel/sidepanel-config.mjs} +0 -0
- package/esm2020/sidepanel/sidepanel-container.component.mjs +106 -0
- package/esm2020/sidepanel/sidepanel-directives.mjs +159 -0
- package/{esm2015/sidepanel/sidepanel-ref.js → esm2020/sidepanel/sidepanel-ref.mjs} +0 -0
- package/esm2020/sidepanel/sidepanel.module.mjs +74 -0
- package/esm2020/sidepanel/sidepanel.service.mjs +167 -0
- package/{esm2015/splitter/index.js → esm2020/splitter/index.mjs} +0 -0
- package/{esm2015/splitter/ptsecurity-mosaic-splitter.js → esm2020/splitter/ptsecurity-mosaic-splitter.mjs} +0 -0
- package/{esm2015/splitter/public-api.js → esm2020/splitter/public-api.mjs} +0 -0
- package/esm2020/splitter/splitter.component.mjs +482 -0
- package/esm2020/splitter/splitter.module.mjs +40 -0
- package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- package/{esm2015/table/ptsecurity-mosaic-table.js → esm2020/table/ptsecurity-mosaic-table.mjs} +0 -0
- package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
- package/esm2020/table/table.component.mjs +16 -0
- package/esm2020/table/table.module.mjs +30 -0
- package/{esm2015/tabs/index.js → esm2020/tabs/index.mjs} +0 -0
- package/esm2020/tabs/paginated-tab-header.mjs +479 -0
- package/{esm2015/tabs/ptsecurity-mosaic-tabs.js → esm2020/tabs/ptsecurity-mosaic-tabs.mjs} +0 -0
- package/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -0
- package/esm2020/tabs/tab-body.component.mjs +178 -0
- package/esm2020/tabs/tab-content.directive.mjs +15 -0
- package/esm2020/tabs/tab-group.component.mjs +350 -0
- package/esm2020/tabs/tab-header.component.mjs +67 -0
- package/esm2020/tabs/tab-label-wrapper.directive.mjs +78 -0
- package/esm2020/tabs/tab-label.directive.mjs +17 -0
- package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +110 -0
- package/esm2020/tabs/tab.component.mjs +133 -0
- package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
- package/esm2020/tabs/tabs.module.mjs +104 -0
- package/{esm2015/tags/index.js → esm2020/tags/index.mjs} +0 -0
- package/{esm2015/tags/ptsecurity-mosaic-tags.js → esm2020/tags/ptsecurity-mosaic-tags.mjs} +0 -0
- package/{esm2015/tags/public-api.js → esm2020/tags/public-api.mjs} +0 -0
- package/{esm2015/tags/tag-default-options.js → esm2020/tags/tag-default-options.mjs} +0 -0
- package/esm2020/tags/tag-input.mjs +229 -0
- package/esm2020/tags/tag-list.component.mjs +722 -0
- package/{esm2015/tags/tag-text-control.js → esm2020/tags/tag-text-control.mjs} +0 -0
- package/esm2020/tags/tag.component.mjs +377 -0
- package/esm2020/tags/tag.module.mjs +56 -0
- package/{esm2015/textarea/index.js → esm2020/textarea/index.mjs} +0 -0
- package/{esm2015/textarea/ptsecurity-mosaic-textarea.js → esm2020/textarea/ptsecurity-mosaic-textarea.mjs} +0 -0
- package/{esm2015/textarea/public-api.js → esm2020/textarea/public-api.mjs} +0 -0
- package/esm2020/textarea/textarea.component.mjs +268 -0
- package/esm2020/textarea/textarea.module.mjs +21 -0
- package/{esm2015/timepicker/index.js → esm2020/timepicker/index.mjs} +0 -0
- package/{esm2015/timepicker/ptsecurity-mosaic-timepicker.js → esm2020/timepicker/ptsecurity-mosaic-timepicker.mjs} +0 -0
- package/{esm2015/timepicker/public-api.js → esm2020/timepicker/public-api.mjs} +0 -0
- package/{esm2015/timepicker/timepicker.constants.js → esm2020/timepicker/timepicker.constants.mjs} +0 -0
- package/esm2020/timepicker/timepicker.directive.mjs +653 -0
- package/esm2020/timepicker/timepicker.module.mjs +34 -0
- package/{esm2015/toggle/index.js → esm2020/toggle/index.mjs} +0 -0
- package/{esm2015/toggle/ptsecurity-mosaic-toggle.js → esm2020/toggle/ptsecurity-mosaic-toggle.mjs} +0 -0
- package/{esm2015/toggle/public-api.js → esm2020/toggle/public-api.mjs} +0 -0
- package/esm2020/toggle/toggle.component.mjs +158 -0
- package/esm2020/toggle/toggle.module.mjs +20 -0
- package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
- package/{esm2015/tooltip/ptsecurity-mosaic-tooltip.js → esm2020/tooltip/ptsecurity-mosaic-tooltip.mjs} +0 -0
- package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
- package/{esm2015/tooltip/tooltip.animations.js → esm2020/tooltip/tooltip.animations.mjs} +0 -0
- package/esm2020/tooltip/tooltip.component.mjs +294 -0
- package/esm2020/tooltip/tooltip.module.mjs +43 -0
- package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +0 -0
- package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +0 -0
- package/{esm2015/tree/control/nested-tree-control.js → esm2020/tree/control/nested-tree-control.mjs} +0 -0
- package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
- package/esm2020/tree/data-source/flat-data-source.mjs +162 -0
- package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
- package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
- package/esm2020/tree/node.mjs +31 -0
- package/esm2020/tree/outlet.mjs +15 -0
- package/esm2020/tree/padding.directive.mjs +110 -0
- package/{esm2015/tree/ptsecurity-mosaic-tree.js → esm2020/tree/ptsecurity-mosaic-tree.mjs} +0 -0
- package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
- package/esm2020/tree/toggle.mjs +80 -0
- package/esm2020/tree/tree-base.mjs +243 -0
- package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
- package/esm2020/tree/tree-option.component.mjs +234 -0
- package/esm2020/tree/tree-selection.component.mjs +533 -0
- package/esm2020/tree/tree.mjs +15 -0
- package/esm2020/tree/tree.module.mjs +53 -0
- package/{esm2015/tree-select/index.js → esm2020/tree-select/index.mjs} +0 -0
- package/{esm2015/tree-select/ptsecurity-mosaic-tree-select.js → esm2020/tree-select/ptsecurity-mosaic-tree-select.mjs} +0 -0
- package/{esm2015/tree-select/public-api.js → esm2020/tree-select/public-api.mjs} +0 -0
- package/esm2020/tree-select/tree-select.component.mjs +925 -0
- package/esm2020/tree-select/tree-select.module.mjs +47 -0
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +756 -0
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +385 -0
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-button.mjs +170 -0
- package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-card.mjs +113 -0
- package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs +366 -0
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-core.mjs +2704 -0
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +2700 -0
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +2925 -0
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-divider.mjs +61 -0
- package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1106 -0
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +378 -0
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-icon.mjs +88 -0
- package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-input.mjs +609 -0
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-link.mjs +137 -0
- package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-list.mjs +791 -0
- package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-modal.mjs +864 -0
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-navbar.mjs +1031 -0
- package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-popover.mjs +393 -0
- package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +76 -0
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +80 -0
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-radio.mjs +481 -0
- package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-select.mjs +1175 -0
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs +202 -0
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +592 -0
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-splitter.mjs +526 -0
- package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-table.mjs +50 -0
- package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tabs.mjs +1511 -0
- package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tags.mjs +1377 -0
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-textarea.mjs +293 -0
- package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs +715 -0
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-toggle.mjs +180 -0
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +365 -0
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +972 -0
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tree.mjs +1718 -0
- package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic.mjs +4 -0
- package/fesm2015/ptsecurity-mosaic.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +752 -0
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +383 -0
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-button.mjs +170 -0
- package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-card.mjs +113 -0
- package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs +364 -0
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-core.mjs +2733 -0
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs +2687 -0
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +2925 -0
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-divider.mjs +61 -0
- package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs +1093 -0
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +377 -0
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-icon.mjs +86 -0
- package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-input.mjs +605 -0
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-link.mjs +136 -0
- package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-list.mjs +784 -0
- package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-modal.mjs +860 -0
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-navbar.mjs +1015 -0
- package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-popover.mjs +389 -0
- package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +76 -0
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +80 -0
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-radio.mjs +479 -0
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-select.mjs +1173 -0
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs +202 -0
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +589 -0
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-splitter.mjs +526 -0
- package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-table.mjs +50 -0
- package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-tabs.mjs +1496 -0
- package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-tags.mjs +1370 -0
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-textarea.mjs +291 -0
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs +713 -0
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-toggle.mjs +180 -0
- package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs +357 -0
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs +970 -0
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-tree.mjs +1705 -0
- package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic.mjs +4 -0
- package/fesm2020/ptsecurity-mosaic.mjs.map +1 -0
- package/form-field/README.md +0 -0
- package/form-field/package.json +5 -5
- package/icon/README.md +0 -0
- package/icon/package.json +5 -5
- package/input/package.json +5 -5
- package/link/README.md +0 -0
- package/link/package.json +5 -5
- package/list/README.md +0 -0
- package/list/package.json +5 -5
- package/modal/README.md +34 -0
- package/modal/modal-control.service.d.ts +1 -0
- package/modal/package.json +5 -5
- package/navbar/README.md +41 -0
- package/navbar/navbar-item.component.d.ts +123 -34
- package/navbar/navbar.component.d.ts +37 -9
- package/navbar/navbar.module.d.ts +2 -1
- package/navbar/package.json +5 -5
- package/navbar/vertical-navbar.component.d.ts +15 -26
- package/package.json +299 -14
- package/popover/README.md +32 -0
- package/popover/package.json +5 -5
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/prebuilt-visual/default-visual.css +1 -1
- package/progress-bar/README.md +0 -0
- package/progress-bar/package.json +5 -5
- package/progress-spinner/README.md +0 -0
- package/progress-spinner/package.json +5 -5
- package/radio/package.json +5 -5
- package/schematics/README.md +35 -0
- package/schematics/ng-update/data/index.d.ts +1 -0
- package/schematics/ng-update/data/index.js +10 -9
- package/schematics/ng-update/data/index.js.map +1 -1
- package/schematics/ng-update/data/symbol-removal.d.ts +2 -0
- package/schematics/ng-update/data/symbol-removal.js +5 -0
- package/schematics/ng-update/data/symbol-removal.js.map +1 -0
- package/schematics/ng-update/index.js +3 -3
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +1 -2
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
- package/schematics/ng-update/upgrade-data.js +2 -1
- package/schematics/ng-update/upgrade-data.js.map +1 -1
- package/schematics/tsconfig.lib.json +2 -2
- package/select/README.md +0 -0
- package/select/package.json +5 -5
- package/sidebar/package.json +5 -5
- package/sidepanel/package.json +5 -5
- package/splitter/package.json +5 -5
- package/table/README.md +0 -0
- package/table/package.json +5 -5
- package/tabs/README.md +0 -0
- package/tabs/package.json +5 -5
- package/tags/README.md +0 -0
- package/tags/package.json +5 -5
- package/textarea/README.md +0 -0
- package/textarea/package.json +5 -5
- package/timepicker/README.md +0 -0
- package/timepicker/package.json +5 -5
- package/toggle/package.json +5 -5
- package/tooltip/package.json +5 -5
- package/tree/data-source/flat-data-source.d.ts +2 -2
- package/tree/package.json +5 -5
- package/tree/tree-option.component.d.ts +5 -3
- package/tree/tree-selection.component.d.ts +1 -0
- package/tree-select/README.md +0 -0
- package/tree-select/package.json +5 -5
- package/tree-select/tree-select.component.d.ts +9 -1
- package/tree-select/tree-select.module.d.ts +2 -1
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js +0 -1160
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js +0 -755
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button.umd.js +0 -533
- package/bundles/ptsecurity-mosaic-button.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-card.umd.js +0 -479
- package/bundles/ptsecurity-mosaic-card.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.js +0 -762
- package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-core.umd.js +0 -2841
- package/bundles/ptsecurity-mosaic-core.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.js +0 -3362
- package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1871
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-divider.umd.js +0 -106
- package/bundles/ptsecurity-mosaic-divider.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.js +0 -1532
- package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.js +0 -788
- package/bundles/ptsecurity-mosaic-form-field.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-icon.umd.js +0 -450
- package/bundles/ptsecurity-mosaic-icon.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-input.umd.js +0 -1008
- package/bundles/ptsecurity-mosaic-input.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-link.umd.js +0 -515
- package/bundles/ptsecurity-mosaic-link.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-list.umd.js +0 -1251
- package/bundles/ptsecurity-mosaic-list.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-modal.umd.js +0 -1312
- package/bundles/ptsecurity-mosaic-modal.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.js +0 -930
- package/bundles/ptsecurity-mosaic-navbar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-popover.umd.js +0 -836
- package/bundles/ptsecurity-mosaic-popover.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js +0 -440
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +0 -448
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-radio.umd.js +0 -901
- package/bundles/ptsecurity-mosaic-radio.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-select.umd.js +0 -1606
- package/bundles/ptsecurity-mosaic-select.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.js +0 -254
- package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js +0 -954
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.js +0 -635
- package/bundles/ptsecurity-mosaic-splitter.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-table.umd.js +0 -81
- package/bundles/ptsecurity-mosaic-table.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.js +0 -2013
- package/bundles/ptsecurity-mosaic-tabs.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tags.umd.js +0 -1917
- package/bundles/ptsecurity-mosaic-tags.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.js +0 -664
- package/bundles/ptsecurity-mosaic-textarea.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js +0 -821
- package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.js +0 -557
- package/bundles/ptsecurity-mosaic-toggle.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.js +0 -777
- package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.js +0 -1369
- package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree.umd.js +0 -2301
- package/bundles/ptsecurity-mosaic-tree.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic.umd.js +0 -11
- package/bundles/ptsecurity-mosaic.umd.js.map +0 -1
- package/design-tokens/tokens/components/checkbox.json5 +0 -39
- package/design-tokens/tokens/components/modal.json5 +0 -67
- package/design-tokens/tokens/components/navbar.json5 +0 -64
- package/design-tokens/tokens/components/radio.json5 +0 -45
- package/design-tokens/tokens/components/tags.json5 +0 -126
- package/design-tokens/tokens/components/toggle.json5 +0 -55
- package/design-tokens/tokens.d.ts +0 -7636
- package/esm2015/autocomplete/autocomplete-origin.directive.js +0 -21
- package/esm2015/autocomplete/autocomplete-trigger.directive.js +0 -555
- package/esm2015/autocomplete/autocomplete.component.js +0 -163
- package/esm2015/autocomplete/autocomplete.module.js +0 -34
- package/esm2015/button/button.component.js +0 -129
- package/esm2015/button/button.module.js +0 -42
- package/esm2015/button-toggle/button-toggle.component.js +0 -370
- package/esm2015/button-toggle/button-toggle.module.js +0 -19
- package/esm2015/card/card.component.js +0 -88
- package/esm2015/card/card.module.js +0 -30
- package/esm2015/checkbox/checkbox-module.js +0 -19
- package/esm2015/checkbox/checkbox-required-validator.js +0 -27
- package/esm2015/checkbox/checkbox.js +0 -325
- package/esm2015/core/common-behaviors/common-module.js +0 -83
- package/esm2015/core/error/error-options.js +0 -26
- package/esm2015/core/formatters/date/formatter.js +0 -288
- package/esm2015/core/formatters/date/templates/en-US.js +0 -280
- package/esm2015/core/formatters/date/templates/ru-RU.js +0 -280
- package/esm2015/core/formatters/index.js +0 -20
- package/esm2015/core/formatters/number/formatter.js +0 -99
- package/esm2015/core/forms/forms-module.js +0 -24
- package/esm2015/core/forms/forms.directive.js +0 -66
- package/esm2015/core/highlight/highlight.pipe.js +0 -17
- package/esm2015/core/highlight/index.js +0 -19
- package/esm2015/core/line/line.js +0 -70
- package/esm2015/core/option/action.js +0 -131
- package/esm2015/core/option/optgroup.js +0 -40
- package/esm2015/core/option/option-module.js +0 -21
- package/esm2015/core/option/option.js +0 -262
- package/esm2015/core/pop-up/pop-up-trigger.js +0 -239
- package/esm2015/core/pop-up/pop-up.js +0 -87
- package/esm2015/core/public-api.js +0 -17
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -45
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js +0 -18
- package/esm2015/core/services/measure-scrollbar.service.js +0 -48
- package/esm2015/datepicker/calendar-body.component.js +0 -114
- package/esm2015/datepicker/calendar.component.js +0 -377
- package/esm2015/datepicker/datepicker-input.directive.js +0 -892
- package/esm2015/datepicker/datepicker-intl.js +0 -40
- package/esm2015/datepicker/datepicker-module.js +0 -107
- package/esm2015/datepicker/datepicker-toggle.component.js +0 -94
- package/esm2015/datepicker/datepicker.component.js +0 -418
- package/esm2015/datepicker/month-view.component.js +0 -263
- package/esm2015/datepicker/multi-year-view.component.js +0 -224
- package/esm2015/datepicker/year-view.component.js +0 -259
- package/esm2015/design-tokens/public-api.js +0 -2
- package/esm2015/design-tokens/tokens.js +0 -930
- package/esm2015/divider/divider.component.js +0 -46
- package/esm2015/divider/divider.module.js +0 -18
- package/esm2015/dropdown/dropdown-content.directive.js +0 -66
- package/esm2015/dropdown/dropdown-item.component.js +0 -149
- package/esm2015/dropdown/dropdown-trigger.directive.js +0 -486
- package/esm2015/dropdown/dropdown.component.js +0 -302
- package/esm2015/dropdown/dropdown.module.js +0 -50
- package/esm2015/form-field/cleaner.js +0 -23
- package/esm2015/form-field/form-field.js +0 -224
- package/esm2015/form-field/form-field.module.js +0 -52
- package/esm2015/form-field/hint.js +0 -23
- package/esm2015/form-field/prefix.js +0 -13
- package/esm2015/form-field/stepper.js +0 -55
- package/esm2015/form-field/suffix.js +0 -13
- package/esm2015/icon/icon.component.js +0 -51
- package/esm2015/icon/icon.module.js +0 -38
- package/esm2015/input/input-number-validators.js +0 -92
- package/esm2015/input/input-number.js +0 -163
- package/esm2015/input/input.js +0 -333
- package/esm2015/input/input.module.js +0 -23
- package/esm2015/link/link.component.js +0 -108
- package/esm2015/link/link.module.js +0 -26
- package/esm2015/list/list-selection.component.js +0 -711
- package/esm2015/list/list.component.js +0 -58
- package/esm2015/list/list.module.js +0 -55
- package/esm2015/modal/css-unit.pipe.js +0 -17
- package/esm2015/modal/modal-control.service.js +0 -63
- package/esm2015/modal/modal.component.js +0 -508
- package/esm2015/modal/modal.directive.js +0 -52
- package/esm2015/modal/modal.module.js +0 -72
- package/esm2015/modal/modal.service.js +0 -124
- package/esm2015/navbar/navbar-item.component.js +0 -209
- package/esm2015/navbar/navbar.component.js +0 -118
- package/esm2015/navbar/navbar.module.js +0 -76
- package/esm2015/navbar/vertical-navbar.animation.js +0 -10
- package/esm2015/navbar/vertical-navbar.component.js +0 -140
- package/esm2015/popover/popover-confirm.component.js +0 -116
- package/esm2015/popover/popover.component.js +0 -262
- package/esm2015/popover/popover.module.js +0 -24
- package/esm2015/progress-bar/progress-bar.component.js +0 -50
- package/esm2015/progress-bar/progress-bar.module.js +0 -30
- package/esm2015/progress-spinner/progress-spinner.component.js +0 -54
- package/esm2015/progress-spinner/progress-spinner.module.js +0 -30
- package/esm2015/radio/radio.component.js +0 -467
- package/esm2015/radio/radio.module.js +0 -20
- package/esm2015/select/select.component.js +0 -1122
- package/esm2015/select/select.module.js +0 -64
- package/esm2015/sidebar/sidebar.component.js +0 -155
- package/esm2015/sidebar/sidebar.module.js +0 -30
- package/esm2015/sidepanel/sidepanel-container.component.js +0 -114
- package/esm2015/sidepanel/sidepanel-directives.js +0 -159
- package/esm2015/sidepanel/sidepanel.module.js +0 -74
- package/esm2015/sidepanel/sidepanel.service.js +0 -164
- package/esm2015/splitter/splitter.component.js +0 -489
- package/esm2015/splitter/splitter.module.js +0 -40
- package/esm2015/table/table.component.js +0 -16
- package/esm2015/table/table.module.js +0 -30
- package/esm2015/tabs/paginated-tab-header.js +0 -482
- package/esm2015/tabs/tab-body.component.js +0 -186
- package/esm2015/tabs/tab-content.directive.js +0 -15
- package/esm2015/tabs/tab-group.component.js +0 -359
- package/esm2015/tabs/tab-header.component.js +0 -76
- package/esm2015/tabs/tab-label-wrapper.directive.js +0 -78
- package/esm2015/tabs/tab-label.directive.js +0 -17
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -118
- package/esm2015/tabs/tab.component.js +0 -133
- package/esm2015/tabs/tabs.module.js +0 -104
- package/esm2015/tags/tag-input.js +0 -229
- package/esm2015/tags/tag-list.component.js +0 -732
- package/esm2015/tags/tag.component.js +0 -386
- package/esm2015/tags/tag.module.js +0 -56
- package/esm2015/textarea/textarea.component.js +0 -268
- package/esm2015/textarea/textarea.module.js +0 -21
- package/esm2015/timepicker/timepicker.directive.js +0 -653
- package/esm2015/timepicker/timepicker.module.js +0 -34
- package/esm2015/toggle/toggle.component.js +0 -169
- package/esm2015/toggle/toggle.module.js +0 -20
- package/esm2015/tooltip/tooltip.component.js +0 -299
- package/esm2015/tooltip/tooltip.module.js +0 -43
- package/esm2015/tree/data-source/flat-data-source.js +0 -162
- package/esm2015/tree/node.js +0 -31
- package/esm2015/tree/outlet.js +0 -15
- package/esm2015/tree/padding.directive.js +0 -111
- package/esm2015/tree/toggle.js +0 -89
- package/esm2015/tree/tree-base.js +0 -243
- package/esm2015/tree/tree-option.component.js +0 -238
- package/esm2015/tree/tree-selection.component.js +0 -541
- package/esm2015/tree/tree.js +0 -23
- package/esm2015/tree/tree.module.js +0 -53
- package/esm2015/tree-select/tree-select.component.js +0 -901
- package/esm2015/tree-select/tree-select.module.js +0 -43
- package/fesm2015/ptsecurity-mosaic-autocomplete.js +0 -761
- package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.js +0 -391
- package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button.js +0 -174
- package/fesm2015/ptsecurity-mosaic-button.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-card.js +0 -121
- package/fesm2015/ptsecurity-mosaic-card.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.js +0 -374
- package/fesm2015/ptsecurity-mosaic-checkbox.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-core.js +0 -2680
- package/fesm2015/ptsecurity-mosaic-core.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.js +0 -2738
- package/fesm2015/ptsecurity-mosaic-datepicker.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.js +0 -936
- package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-divider.js +0 -68
- package/fesm2015/ptsecurity-mosaic-divider.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.js +0 -1116
- package/fesm2015/ptsecurity-mosaic-dropdown.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-form-field.js +0 -396
- package/fesm2015/ptsecurity-mosaic-form-field.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-icon.js +0 -93
- package/fesm2015/ptsecurity-mosaic-icon.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-input.js +0 -605
- package/fesm2015/ptsecurity-mosaic-input.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-link.js +0 -137
- package/fesm2015/ptsecurity-mosaic-link.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-list.js +0 -822
- package/fesm2015/ptsecurity-mosaic-list.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-modal.js +0 -845
- package/fesm2015/ptsecurity-mosaic-modal.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-navbar.js +0 -539
- package/fesm2015/ptsecurity-mosaic-navbar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-popover.js +0 -406
- package/fesm2015/ptsecurity-mosaic-popover.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.js +0 -84
- package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js +0 -88
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-radio.js +0 -488
- package/fesm2015/ptsecurity-mosaic-radio.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-select.js +0 -1185
- package/fesm2015/ptsecurity-mosaic-select.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.js +0 -211
- package/fesm2015/ptsecurity-mosaic-sidebar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.js +0 -594
- package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-splitter.js +0 -533
- package/fesm2015/ptsecurity-mosaic-splitter.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-table.js +0 -50
- package/fesm2015/ptsecurity-mosaic-table.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tabs.js +0 -1533
- package/fesm2015/ptsecurity-mosaic-tabs.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tags.js +0 -1389
- package/fesm2015/ptsecurity-mosaic-tags.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-textarea.js +0 -291
- package/fesm2015/ptsecurity-mosaic-textarea.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.js +0 -713
- package/fesm2015/ptsecurity-mosaic-timepicker.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-toggle.js +0 -191
- package/fesm2015/ptsecurity-mosaic-toggle.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.js +0 -362
- package/fesm2015/ptsecurity-mosaic-tooltip.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.js +0 -943
- package/fesm2015/ptsecurity-mosaic-tree-select.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree.js +0 -1735
- package/fesm2015/ptsecurity-mosaic-tree.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic.js +0 -4
- package/fesm2015/ptsecurity-mosaic.js.map +0 -1
@@ -0,0 +1,752 @@
|
|
1
|
+
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
2
|
+
import * as i0 from '@angular/core';
|
3
|
+
import { InjectionToken, EventEmitter, TemplateRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, ViewChild, ContentChildren, Input, Output, Directive, forwardRef, Optional, Host, NgModule } from '@angular/core';
|
4
|
+
import { ActiveDescendantKeyManager } from '@ptsecurity/cdk/a11y';
|
5
|
+
import { MC_OPTION_PARENT_COMPONENT, McOption, McOptgroup, McOptionSelectionChange, countGroupLabelsBeforeOption, getOptionScrollPosition, McOptionModule, McCommonModule } from '@ptsecurity/mosaic/core';
|
6
|
+
import * as i1 from '@angular/common';
|
7
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
8
|
+
import * as i1$1 from '@angular/cdk/overlay';
|
9
|
+
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
10
|
+
import * as i2 from '@angular/cdk/bidi';
|
11
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
12
|
+
import * as i4 from '@angular/cdk/scrolling';
|
13
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
14
|
+
import { ESCAPE, ENTER, TAB, DOWN_ARROW, UP_ARROW } from '@ptsecurity/cdk/keycodes';
|
15
|
+
import * as i3 from '@ptsecurity/mosaic/form-field';
|
16
|
+
import { defer, merge, Subscription, Subject, of, fromEvent } from 'rxjs';
|
17
|
+
import { take, switchMap, filter, map, tap, delay } from 'rxjs/operators';
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Autocomplete IDs need to be unique across components, so this counter exists outside of
|
21
|
+
* the component definition.
|
22
|
+
*/
|
23
|
+
let uniqueAutocompleteIdCounter = 0;
|
24
|
+
class McAutocompleteSelectedEvent {
|
25
|
+
constructor(source, option) {
|
26
|
+
this.source = source;
|
27
|
+
this.option = option;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
/** Injection token to be used to override the default options for `mc-autocomplete`. */
|
31
|
+
const MC_AUTOCOMPLETE_DEFAULT_OPTIONS = new InjectionToken('mc-autocomplete-default-options', {
|
32
|
+
providedIn: 'root',
|
33
|
+
factory: MC_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY
|
34
|
+
});
|
35
|
+
// tslint:disable-next-line naming-convention
|
36
|
+
function MC_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY() {
|
37
|
+
return { autoActiveFirstOption: true };
|
38
|
+
}
|
39
|
+
class McAutocomplete {
|
40
|
+
constructor(changeDetectorRef, elementRef, defaults) {
|
41
|
+
this.changeDetectorRef = changeDetectorRef;
|
42
|
+
this.elementRef = elementRef;
|
43
|
+
/** Unique ID to be used by autocomplete trigger's "aria-owns" property. */
|
44
|
+
this.id = `mc-autocomplete-${uniqueAutocompleteIdCounter++}`;
|
45
|
+
/** Whether the autocomplete panel should be visible, depending on option length. */
|
46
|
+
this.showPanel = false;
|
47
|
+
/** Function that maps an option's control value to its display value in the trigger. */
|
48
|
+
this.displayWith = null;
|
49
|
+
/** Event that is emitted whenever an option from the list is selected. */
|
50
|
+
this.optionSelected = new EventEmitter();
|
51
|
+
/** Event that is emitted when the autocomplete panel is opened. */
|
52
|
+
this.opened = new EventEmitter();
|
53
|
+
/** Event that is emitted when the autocomplete panel is closed. */
|
54
|
+
this.closed = new EventEmitter();
|
55
|
+
this._classList = {};
|
56
|
+
this._isOpen = false;
|
57
|
+
this._openOnFocus = true;
|
58
|
+
this._autoActiveFirstOption = !!defaults.autoActiveFirstOption;
|
59
|
+
}
|
60
|
+
/**
|
61
|
+
* Takes classes set on the host mc-autocomplete element and applies them to the panel
|
62
|
+
* inside the overlay container to allow for easy styling.
|
63
|
+
*/
|
64
|
+
get classList() {
|
65
|
+
return this._classList;
|
66
|
+
}
|
67
|
+
set classList(value) {
|
68
|
+
if (value && value.length) {
|
69
|
+
value.split(' ')
|
70
|
+
.forEach((className) => this._classList[className.trim()] = true);
|
71
|
+
this.elementRef.nativeElement.className = '';
|
72
|
+
}
|
73
|
+
}
|
74
|
+
/**
|
75
|
+
* Whether the first option should be highlighted when the autocomplete panel is opened.
|
76
|
+
* Can be configured globally through the `MC_AUTOCOMPLETE_DEFAULT_OPTIONS` token.
|
77
|
+
*/
|
78
|
+
get autoActiveFirstOption() {
|
79
|
+
return this._autoActiveFirstOption;
|
80
|
+
}
|
81
|
+
set autoActiveFirstOption(value) {
|
82
|
+
this._autoActiveFirstOption = coerceBooleanProperty(value);
|
83
|
+
}
|
84
|
+
get isOpen() {
|
85
|
+
return this._isOpen && this.showPanel;
|
86
|
+
}
|
87
|
+
set isOpen(value) {
|
88
|
+
this._isOpen = value;
|
89
|
+
}
|
90
|
+
get openOnFocus() {
|
91
|
+
return this._openOnFocus;
|
92
|
+
}
|
93
|
+
set openOnFocus(value) {
|
94
|
+
this._openOnFocus = value;
|
95
|
+
}
|
96
|
+
ngAfterContentInit() {
|
97
|
+
this.keyManager = new ActiveDescendantKeyManager(this.options);
|
98
|
+
this.setVisibility();
|
99
|
+
}
|
100
|
+
setScrollTop(scrollTop) {
|
101
|
+
if (this.panel) {
|
102
|
+
this.panel.nativeElement.scrollTop = scrollTop;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
getScrollTop() {
|
106
|
+
return this.panel ? this.panel.nativeElement.scrollTop : 0;
|
107
|
+
}
|
108
|
+
setVisibility() {
|
109
|
+
this.showPanel = !!this.options.length;
|
110
|
+
this._classList['mc-autocomplete_visible'] = this.showPanel;
|
111
|
+
this._classList['mc-autocomplete_hidden'] = !this.showPanel;
|
112
|
+
this.changeDetectorRef.markForCheck();
|
113
|
+
}
|
114
|
+
emitSelectEvent(option) {
|
115
|
+
const event = new McAutocompleteSelectedEvent(this, option);
|
116
|
+
this.optionSelected.emit(event);
|
117
|
+
}
|
118
|
+
onKeydown(event) {
|
119
|
+
this.keyManager.onKeydown(event);
|
120
|
+
}
|
121
|
+
}
|
122
|
+
/** @nocollapse */ /** @nocollapse */ McAutocomplete.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocomplete, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: MC_AUTOCOMPLETE_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
|
123
|
+
/** @nocollapse */ /** @nocollapse */ McAutocomplete.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: McAutocomplete, selector: "mc-autocomplete", inputs: { displayWith: "displayWith", panelWidth: "panelWidth", classList: ["class", "classList"], autoActiveFirstOption: "autoActiveFirstOption", openOnFocus: "openOnFocus" }, outputs: { optionSelected: "optionSelected", opened: "opened", closed: "closed" }, host: { classAttribute: "mc-autocomplete" }, providers: [{
|
124
|
+
provide: MC_OPTION_PARENT_COMPONENT, useExisting: McAutocomplete
|
125
|
+
}], queries: [{ propertyName: "options", predicate: McOption, descendants: true }, { propertyName: "optionGroups", predicate: McOptgroup }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true }], exportAs: ["mcAutocomplete"], ngImport: i0, template: "<ng-template>\n <div class=\"mc-autocomplete-panel\" role=\"listbox\" [id]=\"id\" [ngClass]=\"classList\" #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".mc-autocomplete-trigger{text-overflow:ellipsis}.mc-autocomplete-panel{visibility:hidden;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;margin-top:-1px;min-width:100%;width:100%;max-width:none;max-height:var(--mc-autocomplete-size-panel-max-height, 256px);border-width:1px;border-style:solid;border-bottom-left-radius:var(--mc-autocomplete-size-panel-border-radius, 3px);border-bottom-right-radius:var(--mc-autocomplete-size-panel-border-radius, 3px);padding:var(--mc-autocomplete-size-panel-padding, 4px 0)}.mc-autocomplete-panel.mc-autocomplete_visible{visibility:visible}.mc-autocomplete-panel.mc-autocomplete_hidden{visibility:hidden}.mc-autocomplete-panel-above .mc-autocomplete-panel{border-radius:var(--mc-autocomplete-size-panel-border-radius, 3px) var(--mc-autocomplete-size-panel-border-radius, 3px) 0 0}.mc-autocomplete-panel .mc-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mc-autocomplete-panel{outline:solid 1px}.cdk-high-contrast-active :host .mc-autocomplete-panel{outline:solid 1px}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocomplete, decorators: [{
|
127
|
+
type: Component,
|
128
|
+
args: [{ selector: 'mc-autocomplete', exportAs: 'mcAutocomplete', host: {
|
129
|
+
class: 'mc-autocomplete'
|
130
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
|
131
|
+
provide: MC_OPTION_PARENT_COMPONENT, useExisting: McAutocomplete
|
132
|
+
}], template: "<ng-template>\n <div class=\"mc-autocomplete-panel\" role=\"listbox\" [id]=\"id\" [ngClass]=\"classList\" #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".mc-autocomplete-trigger{text-overflow:ellipsis}.mc-autocomplete-panel{visibility:hidden;position:relative;overflow:auto;-webkit-overflow-scrolling:touch;margin-top:-1px;min-width:100%;width:100%;max-width:none;max-height:var(--mc-autocomplete-size-panel-max-height, 256px);border-width:1px;border-style:solid;border-bottom-left-radius:var(--mc-autocomplete-size-panel-border-radius, 3px);border-bottom-right-radius:var(--mc-autocomplete-size-panel-border-radius, 3px);padding:var(--mc-autocomplete-size-panel-padding, 4px 0)}.mc-autocomplete-panel.mc-autocomplete_visible{visibility:visible}.mc-autocomplete-panel.mc-autocomplete_hidden{visibility:hidden}.mc-autocomplete-panel-above .mc-autocomplete-panel{border-radius:var(--mc-autocomplete-size-panel-border-radius, 3px) var(--mc-autocomplete-size-panel-border-radius, 3px) 0 0}.mc-autocomplete-panel .mc-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mc-autocomplete-panel{outline:solid 1px}.cdk-high-contrast-active :host .mc-autocomplete-panel{outline:solid 1px}\n"] }]
|
133
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
134
|
+
type: Inject,
|
135
|
+
args: [MC_AUTOCOMPLETE_DEFAULT_OPTIONS]
|
136
|
+
}] }]; }, propDecorators: { template: [{
|
137
|
+
type: ViewChild,
|
138
|
+
args: [TemplateRef, { static: true }]
|
139
|
+
}], panel: [{
|
140
|
+
type: ViewChild,
|
141
|
+
args: ['panel', { static: false }]
|
142
|
+
}], options: [{
|
143
|
+
type: ContentChildren,
|
144
|
+
args: [McOption, { descendants: true }]
|
145
|
+
}], optionGroups: [{
|
146
|
+
type: ContentChildren,
|
147
|
+
args: [McOptgroup]
|
148
|
+
}], displayWith: [{
|
149
|
+
type: Input
|
150
|
+
}], panelWidth: [{
|
151
|
+
type: Input
|
152
|
+
}], optionSelected: [{
|
153
|
+
type: Output
|
154
|
+
}], opened: [{
|
155
|
+
type: Output
|
156
|
+
}], closed: [{
|
157
|
+
type: Output
|
158
|
+
}], classList: [{
|
159
|
+
type: Input,
|
160
|
+
args: ['class']
|
161
|
+
}], autoActiveFirstOption: [{
|
162
|
+
type: Input
|
163
|
+
}], openOnFocus: [{
|
164
|
+
type: Input
|
165
|
+
}] } });
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Directive applied to an element to make it usable
|
169
|
+
* as a connection point for an autocomplete panel.
|
170
|
+
*/
|
171
|
+
class McAutocompleteOrigin {
|
172
|
+
constructor(elementRef) {
|
173
|
+
this.elementRef = elementRef;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
/** @nocollapse */ /** @nocollapse */ McAutocompleteOrigin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocompleteOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
177
|
+
/** @nocollapse */ /** @nocollapse */ McAutocompleteOrigin.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: McAutocompleteOrigin, selector: "[mcAutocompleteOrigin]", exportAs: ["mcAutocompleteOrigin"], ngImport: i0 });
|
178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocompleteOrigin, decorators: [{
|
179
|
+
type: Directive,
|
180
|
+
args: [{
|
181
|
+
selector: '[mcAutocompleteOrigin]',
|
182
|
+
exportAs: 'mcAutocompleteOrigin'
|
183
|
+
}]
|
184
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
185
|
+
|
186
|
+
/**
|
187
|
+
* The following style constants are necessary to save here in order
|
188
|
+
* to properly calculate the scrollTop of the panel. Because we are not
|
189
|
+
* actually focusing the active item, scroll must be handled manually.
|
190
|
+
*/
|
191
|
+
/** The height of each autocomplete option. */
|
192
|
+
const AUTOCOMPLETE_OPTION_HEIGHT = 32;
|
193
|
+
/** The total height of the autocomplete panel. */
|
194
|
+
const AUTOCOMPLETE_PANEL_HEIGHT = 256;
|
195
|
+
const AUTOCOMPLETE_BORDER_WIDTH = 2;
|
196
|
+
/** Injection token that determines the scroll handling while the autocomplete panel is open. */
|
197
|
+
const MC_AUTOCOMPLETE_SCROLL_STRATEGY = new InjectionToken('mc-autocomplete-scroll-strategy');
|
198
|
+
// tslint:disable-next-line naming-convention
|
199
|
+
function MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(overlay) {
|
200
|
+
return () => overlay.scrollStrategies.reposition();
|
201
|
+
}
|
202
|
+
const MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
203
|
+
provide: MC_AUTOCOMPLETE_SCROLL_STRATEGY,
|
204
|
+
deps: [Overlay],
|
205
|
+
useFactory: MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY
|
206
|
+
};
|
207
|
+
/**
|
208
|
+
* Provider that allows the autocomplete to register as a ControlValueAccessor.
|
209
|
+
* @docs-private
|
210
|
+
*/
|
211
|
+
const MAT_AUTOCOMPLETE_VALUE_ACCESSOR = {
|
212
|
+
provide: NG_VALUE_ACCESSOR,
|
213
|
+
useExisting: forwardRef(() => McAutocompleteTrigger),
|
214
|
+
multi: true
|
215
|
+
};
|
216
|
+
/**
|
217
|
+
* Creates an error to be thrown when attempting to use an autocomplete trigger without a panel.
|
218
|
+
* @docs-private
|
219
|
+
*/
|
220
|
+
function getMcAutocompleteMissingPanelError() {
|
221
|
+
return Error('Attempting to open an undefined instance of `mc-autocomplete`. ' +
|
222
|
+
'Make sure that the id passed to the `mcAutocomplete` is correct and that ' +
|
223
|
+
'you\'re attempting to open it after the ngAfterContentInit hook.');
|
224
|
+
}
|
225
|
+
class McAutocompleteTrigger {
|
226
|
+
constructor(elementRef, viewContainerRef, changeDetectorRef, overlay, zone, scrollStrategy, dir, formField, document,
|
227
|
+
// @breaking-change 8.0.0 Make `_viewportRuler` required.
|
228
|
+
viewportRuler) {
|
229
|
+
this.elementRef = elementRef;
|
230
|
+
this.viewContainerRef = viewContainerRef;
|
231
|
+
this.changeDetectorRef = changeDetectorRef;
|
232
|
+
this.overlay = overlay;
|
233
|
+
this.zone = zone;
|
234
|
+
this.dir = dir;
|
235
|
+
this.formField = formField;
|
236
|
+
this.document = document;
|
237
|
+
this.viewportRuler = viewportRuler;
|
238
|
+
// @ts-ignore
|
239
|
+
this.optionSelections = defer(() => {
|
240
|
+
if (this.autocomplete && this.autocomplete.options) {
|
241
|
+
return merge(...this.autocomplete.options.map((option) => option.onSelectionChange));
|
242
|
+
}
|
243
|
+
// If there are any subscribers before `ngAfterViewInit`, the `autocomplete` will be undefined.
|
244
|
+
// Return a stream that we'll replace with the real one once everything is in place.
|
245
|
+
return this.zone.onStable
|
246
|
+
.asObservable()
|
247
|
+
.pipe(take(1), switchMap(() => this.optionSelections));
|
248
|
+
});
|
249
|
+
/**
|
250
|
+
* `autocomplete` attribute to be set on the input element.
|
251
|
+
* @docs-private
|
252
|
+
*/
|
253
|
+
this.autocompleteAttribute = 'off';
|
254
|
+
this._autocompleteDisabled = false;
|
255
|
+
this.overlayAttached = false;
|
256
|
+
this.componentDestroyed = false;
|
257
|
+
/** Subscription to viewport size changes. */
|
258
|
+
this.viewportSubscription = Subscription.EMPTY;
|
259
|
+
/**
|
260
|
+
* Whether the autocomplete can open the next time it is focused. Used to prevent a focused,
|
261
|
+
* closed autocomplete from being reopened if the user switches to another browser tab and then
|
262
|
+
* comes back.
|
263
|
+
*/
|
264
|
+
this.canOpenOnNextFocus = true;
|
265
|
+
/** Stream of keyboard events that can close the panel. */
|
266
|
+
this.closeKeyEventStream = new Subject();
|
267
|
+
/** `View -> model callback called when value changes` */
|
268
|
+
// tslint:disable-next-line no-empty
|
269
|
+
this.onChange = () => { };
|
270
|
+
/** `View -> model callback called when autocomplete has been touched` */
|
271
|
+
// tslint:disable-next-line no-empty
|
272
|
+
this.onTouched = () => { };
|
273
|
+
/**
|
274
|
+
* Event handler for when the window is blurred. Needs to be an
|
275
|
+
* arrow function in order to preserve the context.
|
276
|
+
*/
|
277
|
+
this.windowBlurHandler = () => {
|
278
|
+
// If the user blurred the window while the autocomplete is focused, it means that it'll be
|
279
|
+
// refocused when they come back. In this case we want to skip the first focus event, if the
|
280
|
+
// pane was closed, in order to avoid reopening it unintentionally.
|
281
|
+
this.canOpenOnNextFocus = this.document.activeElement !== this.elementRef.nativeElement || this.panelOpen;
|
282
|
+
};
|
283
|
+
// tslint:disable-next-line no-typeof-undefined
|
284
|
+
if (typeof window !== 'undefined') {
|
285
|
+
zone.runOutsideAngular(() => {
|
286
|
+
window.addEventListener('blur', this.windowBlurHandler);
|
287
|
+
});
|
288
|
+
}
|
289
|
+
this.scrollStrategy = scrollStrategy;
|
290
|
+
}
|
291
|
+
/** The currently active option, coerced to MatOption type. */
|
292
|
+
get activeOption() {
|
293
|
+
if (this.autocomplete && this.autocomplete.keyManager) {
|
294
|
+
return this.autocomplete.keyManager.activeItem;
|
295
|
+
}
|
296
|
+
return null;
|
297
|
+
}
|
298
|
+
get panelOpen() {
|
299
|
+
return this.overlayAttached && this.autocomplete.showPanel;
|
300
|
+
}
|
301
|
+
/**
|
302
|
+
* Whether the autocomplete is disabled. When disabled, the element will
|
303
|
+
* act as a regular input and the user won't be able to open the panel.
|
304
|
+
*/
|
305
|
+
get autocompleteDisabled() {
|
306
|
+
return this._autocompleteDisabled;
|
307
|
+
}
|
308
|
+
set autocompleteDisabled(value) {
|
309
|
+
this._autocompleteDisabled = coerceBooleanProperty(value);
|
310
|
+
}
|
311
|
+
ngOnDestroy() {
|
312
|
+
// tslint:disable-next-line no-typeof-undefined
|
313
|
+
if (typeof window !== 'undefined') {
|
314
|
+
window.removeEventListener('blur', this.windowBlurHandler);
|
315
|
+
}
|
316
|
+
this.viewportSubscription.unsubscribe();
|
317
|
+
this.componentDestroyed = true;
|
318
|
+
this.destroyPanel();
|
319
|
+
this.closeKeyEventStream.complete();
|
320
|
+
}
|
321
|
+
/** Opens the autocomplete suggestion panel. */
|
322
|
+
openPanel() {
|
323
|
+
this.attachOverlay();
|
324
|
+
}
|
325
|
+
closePanel() {
|
326
|
+
if (!this.overlayAttached) {
|
327
|
+
return;
|
328
|
+
}
|
329
|
+
if (this.panelOpen) {
|
330
|
+
this.autocomplete.closed.emit();
|
331
|
+
}
|
332
|
+
this.autocomplete.isOpen = this.overlayAttached = false;
|
333
|
+
if (this.overlayRef && this.overlayRef.hasAttached()) {
|
334
|
+
this.overlayRef.detach();
|
335
|
+
this.closingActionsSubscription.unsubscribe();
|
336
|
+
}
|
337
|
+
// Note that in some cases this can end up being called after the component is destroyed.
|
338
|
+
// Add a check to ensure that we don't try to run change detection on a destroyed view.
|
339
|
+
if (!this.componentDestroyed) {
|
340
|
+
// We need to trigger change detection manually, because
|
341
|
+
// `fromEvent` doesn't seem to do it at the proper time.
|
342
|
+
// This ensures that the label is reset when the
|
343
|
+
// user clicks outside.
|
344
|
+
this.changeDetectorRef.detectChanges();
|
345
|
+
}
|
346
|
+
}
|
347
|
+
/**
|
348
|
+
* Updates the position of the autocomplete suggestion panel to ensure that it fits all options
|
349
|
+
* within the viewport.
|
350
|
+
*/
|
351
|
+
updatePosition() {
|
352
|
+
if (this.overlayAttached) {
|
353
|
+
this.overlayRef.updatePosition();
|
354
|
+
}
|
355
|
+
}
|
356
|
+
/**
|
357
|
+
* A stream of actions that should close the autocomplete panel, including
|
358
|
+
* when an option is selected, on blur, and when TAB is pressed.
|
359
|
+
*/
|
360
|
+
get panelClosingActions() {
|
361
|
+
return merge(this.optionSelections, this.autocomplete.keyManager.tabOut.pipe(filter(() => this.overlayAttached)), this.closeKeyEventStream, this.getOutsideClickStream(), this.overlayRef ?
|
362
|
+
this.overlayRef.detachments().pipe(filter(() => this.overlayAttached)) :
|
363
|
+
of()).pipe(
|
364
|
+
// Normalize the output so we return a consistent type.
|
365
|
+
map((event) => event instanceof McOptionSelectionChange ? event : null));
|
366
|
+
}
|
367
|
+
// Implemented as part of ControlValueAccessor.
|
368
|
+
writeValue(value) {
|
369
|
+
Promise.resolve(null).then(() => this.setTriggerValue(value));
|
370
|
+
}
|
371
|
+
// Implemented as part of ControlValueAccessor.
|
372
|
+
registerOnChange(fn) {
|
373
|
+
this.onChange = fn;
|
374
|
+
}
|
375
|
+
// Implemented as part of ControlValueAccessor.
|
376
|
+
registerOnTouched(fn) {
|
377
|
+
this.onTouched = fn;
|
378
|
+
}
|
379
|
+
// Implemented as part of ControlValueAccessor.
|
380
|
+
setDisabledState(isDisabled) {
|
381
|
+
this.elementRef.nativeElement.disabled = isDisabled;
|
382
|
+
}
|
383
|
+
handleKeydown(event) {
|
384
|
+
// tslint:disable-next-line deprecation
|
385
|
+
const keyCode = event.keyCode;
|
386
|
+
// Prevent the default action on all escape key presses. This is here primarily to bring IE
|
387
|
+
// in line with other browsers. By default, pressing escape on IE will cause it to revert
|
388
|
+
// the input value to the one that it had on focus, however it won't dispatch any events
|
389
|
+
// which means that the model value will be out of sync with the view.
|
390
|
+
if (keyCode === ESCAPE) {
|
391
|
+
event.preventDefault();
|
392
|
+
}
|
393
|
+
if (this.activeOption && keyCode === ENTER && this.panelOpen) {
|
394
|
+
this.activeOption.selectViaInteraction();
|
395
|
+
this.resetActiveItem();
|
396
|
+
event.preventDefault();
|
397
|
+
}
|
398
|
+
else if (this.autocomplete) {
|
399
|
+
const prevActiveItem = this.autocomplete.keyManager.activeItem;
|
400
|
+
if (this.panelOpen || keyCode === TAB) {
|
401
|
+
this.autocomplete.onKeydown(event);
|
402
|
+
}
|
403
|
+
else if (keyCode === DOWN_ARROW && this.canOpen()) {
|
404
|
+
this.openPanel();
|
405
|
+
}
|
406
|
+
const isArrowKey = keyCode === UP_ARROW || keyCode === DOWN_ARROW;
|
407
|
+
if (isArrowKey || this.autocomplete.keyManager.activeItem !== prevActiveItem) {
|
408
|
+
this.scrollToOption();
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}
|
412
|
+
handleInput(event) {
|
413
|
+
const target = event.target;
|
414
|
+
let value = target.value;
|
415
|
+
// Based on `NumberValueAccessor` from forms.
|
416
|
+
if (target.type === 'number') {
|
417
|
+
value = value === '' ? null : parseFloat(value);
|
418
|
+
}
|
419
|
+
// If the input has a placeholder, IE will fire the `input` event on page load,
|
420
|
+
// focus and blur, in addition to when the user actually changed the value. To
|
421
|
+
// filter out all of the extra events, we save the value on focus and between
|
422
|
+
// `input` events, and we check whether it changed.
|
423
|
+
// See: https://connect.microsoft.com/IE/feedback/details/885747/
|
424
|
+
if (this.previousValue !== value) {
|
425
|
+
this.previousValue = value;
|
426
|
+
this.onChange(value);
|
427
|
+
if (this.canOpen() && this.document.activeElement === event.target) {
|
428
|
+
this.openPanel();
|
429
|
+
}
|
430
|
+
}
|
431
|
+
}
|
432
|
+
handleFocus() {
|
433
|
+
if (!this.canOpenOnNextFocus) {
|
434
|
+
this.canOpenOnNextFocus = true;
|
435
|
+
}
|
436
|
+
else if (this.canOpen() && this.autocomplete.openOnFocus) {
|
437
|
+
this.previousValue = this.elementRef.nativeElement.value;
|
438
|
+
this.attachOverlay();
|
439
|
+
}
|
440
|
+
}
|
441
|
+
handleClick($event) {
|
442
|
+
if (this.canOpen() && this.document.activeElement === $event.target) {
|
443
|
+
this.openPanel();
|
444
|
+
}
|
445
|
+
}
|
446
|
+
/** Stream of clicks outside of the autocomplete panel. */
|
447
|
+
getOutsideClickStream() {
|
448
|
+
return merge(
|
449
|
+
// tslint:disable-next-line: no-unnecessary-type-assertion
|
450
|
+
fromEvent(this.document, 'click'),
|
451
|
+
// tslint:disable-next-line: no-unnecessary-type-assertion
|
452
|
+
fromEvent(this.document, 'touchend'))
|
453
|
+
.pipe(filter((event) => {
|
454
|
+
const clickTarget = event.target;
|
455
|
+
const formField = this.formField ? this.formField._elementRef.nativeElement : null;
|
456
|
+
const customOrigin = this.connectedTo ? this.connectedTo.elementRef.nativeElement : null;
|
457
|
+
return this.overlayAttached &&
|
458
|
+
clickTarget !== this.elementRef.nativeElement &&
|
459
|
+
(!formField || !formField.contains(clickTarget)) &&
|
460
|
+
(!customOrigin || !customOrigin.contains(clickTarget)) &&
|
461
|
+
(!!this.overlayRef && !this.overlayRef.overlayElement.contains(clickTarget));
|
462
|
+
}));
|
463
|
+
}
|
464
|
+
/**
|
465
|
+
* Given that we are not actually focusing active options, we must manually adjust scroll
|
466
|
+
* to reveal options below the fold. First, we find the offset of the option from the top
|
467
|
+
* of the panel. If that offset is below the fold, the new scrollTop will be the offset -
|
468
|
+
* the panel height + the option height, so the active option will be just visible at the
|
469
|
+
* bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
|
470
|
+
* will become the offset. If that offset is visible within the panel already, the scrollTop is
|
471
|
+
* not adjusted.
|
472
|
+
*/
|
473
|
+
scrollToOption() {
|
474
|
+
const index = this.autocomplete.keyManager.activeItemIndex || 0;
|
475
|
+
const labelCount = countGroupLabelsBeforeOption(index, this.autocomplete.options, this.autocomplete.optionGroups);
|
476
|
+
const newScrollPosition = getOptionScrollPosition(index + labelCount, AUTOCOMPLETE_OPTION_HEIGHT, this.autocomplete.getScrollTop(), AUTOCOMPLETE_PANEL_HEIGHT);
|
477
|
+
this.autocomplete.setScrollTop(newScrollPosition);
|
478
|
+
}
|
479
|
+
/**
|
480
|
+
* This method listens to a stream of panel closing actions and resets the
|
481
|
+
* stream every time the option list changes.
|
482
|
+
*/
|
483
|
+
subscribeToClosingActions() {
|
484
|
+
const firstStable = this.zone.onStable.asObservable()
|
485
|
+
.pipe(take(1));
|
486
|
+
const optionChanges = this.autocomplete.options.changes
|
487
|
+
.pipe(tap(() => this.positionStrategy.reapplyLastPosition()),
|
488
|
+
// Defer emitting to the stream until the next tick, because changing
|
489
|
+
// bindings in here will cause "changed after checked" errors.
|
490
|
+
delay(0));
|
491
|
+
// When the zone is stable initially, and when the option list changes...
|
492
|
+
return merge(firstStable, optionChanges)
|
493
|
+
.pipe(
|
494
|
+
// create a new stream of panelClosingActions, replacing any previous streams
|
495
|
+
// that were created, and flatten it so our stream only emits closing events...
|
496
|
+
switchMap(() => {
|
497
|
+
const wasOpen = this.panelOpen;
|
498
|
+
this.resetActiveItem();
|
499
|
+
this.autocomplete.setVisibility();
|
500
|
+
if (this.panelOpen) {
|
501
|
+
this.overlayRef.updatePosition();
|
502
|
+
// If the `panelOpen` state changed, we need to make sure to emit the `opened`
|
503
|
+
// event, because we may not have emitted it when the panel was attached. This
|
504
|
+
// can happen if the users opens the panel and there are no options, but the
|
505
|
+
// options come in slightly later or as a result of the value changing.
|
506
|
+
if (wasOpen !== this.panelOpen) {
|
507
|
+
this.autocomplete.opened.emit();
|
508
|
+
}
|
509
|
+
}
|
510
|
+
return this.panelClosingActions;
|
511
|
+
}),
|
512
|
+
// when the first closing event occurs...
|
513
|
+
take(1))
|
514
|
+
// set the value, close the panel, and complete.
|
515
|
+
.subscribe((event) => this.setValueAndClose(event));
|
516
|
+
}
|
517
|
+
/** Destroys the autocomplete suggestion panel. */
|
518
|
+
destroyPanel() {
|
519
|
+
if (this.overlayRef) {
|
520
|
+
this.closePanel();
|
521
|
+
this.overlayRef.dispose();
|
522
|
+
this.overlayRef = null;
|
523
|
+
}
|
524
|
+
}
|
525
|
+
setTriggerValue(value) {
|
526
|
+
const toDisplay = this.autocomplete && this.autocomplete.displayWith ?
|
527
|
+
this.autocomplete.displayWith(value) :
|
528
|
+
value;
|
529
|
+
// Simply falling back to an empty string if the display value is falsy does not work properly.
|
530
|
+
// The display value can also be the number zero and shouldn't fall back to an empty string.
|
531
|
+
const inputValue = toDisplay != null ? toDisplay : '';
|
532
|
+
// If it's used within a `MatFormField`, we should set it through the property so it can go
|
533
|
+
// through change detection.
|
534
|
+
if (this.formField) {
|
535
|
+
this.formField.control.value = inputValue;
|
536
|
+
}
|
537
|
+
else {
|
538
|
+
this.elementRef.nativeElement.value = inputValue;
|
539
|
+
}
|
540
|
+
this.previousValue = inputValue;
|
541
|
+
}
|
542
|
+
/** This method closes the panel, and if a value is specified, also sets the associated
|
543
|
+
* control to that value. It will also mark the control as dirty if this interaction
|
544
|
+
* stemmed from the user.
|
545
|
+
*/
|
546
|
+
setValueAndClose(event) {
|
547
|
+
if (event && event.source) {
|
548
|
+
this.clearPreviousSelectedOption(event.source);
|
549
|
+
this.setTriggerValue(event.source.value);
|
550
|
+
this.onChange(event.source.value);
|
551
|
+
this.elementRef.nativeElement.focus();
|
552
|
+
this.autocomplete.emitSelectEvent(event.source);
|
553
|
+
}
|
554
|
+
this.closePanel();
|
555
|
+
}
|
556
|
+
/** Clear any previous selected option and emit a selection change event for this option */
|
557
|
+
clearPreviousSelectedOption(skip) {
|
558
|
+
this.autocomplete.options.forEach((option) => {
|
559
|
+
if (option !== skip && option.selected) {
|
560
|
+
option.deselect();
|
561
|
+
}
|
562
|
+
});
|
563
|
+
}
|
564
|
+
attachOverlay() {
|
565
|
+
if (!this.autocomplete) {
|
566
|
+
throw getMcAutocompleteMissingPanelError();
|
567
|
+
}
|
568
|
+
let overlayRef = this.overlayRef;
|
569
|
+
if (!overlayRef) {
|
570
|
+
this.portal = new TemplatePortal(this.autocomplete.template, this.viewContainerRef);
|
571
|
+
overlayRef = this.overlay.create(this.getOverlayConfig());
|
572
|
+
this.overlayRef = overlayRef;
|
573
|
+
// Use the `keydownEvents` in order to take advantage of
|
574
|
+
// the overlay event targeting provided by the CDK overlay.
|
575
|
+
overlayRef.keydownEvents().subscribe((event) => {
|
576
|
+
// Close when pressing ESCAPE or ALT + UP_ARROW, based on the a11y guidelines.
|
577
|
+
// See: https://www.w3.org/TR/wai-aria-practices-1.1/#textbox-keyboard-interaction
|
578
|
+
// tslint:disable-next-line deprecation
|
579
|
+
if (event.keyCode === ESCAPE || (event.keyCode === UP_ARROW && event.altKey)) {
|
580
|
+
this.resetActiveItem();
|
581
|
+
this.closeKeyEventStream.next();
|
582
|
+
}
|
583
|
+
});
|
584
|
+
if (this.viewportRuler) {
|
585
|
+
this.viewportSubscription = this.viewportRuler.change().subscribe(() => {
|
586
|
+
if (this.panelOpen && overlayRef) {
|
587
|
+
overlayRef.updateSize({ width: this.getPanelWidth() });
|
588
|
+
}
|
589
|
+
});
|
590
|
+
}
|
591
|
+
}
|
592
|
+
else {
|
593
|
+
const position = overlayRef.getConfig().positionStrategy;
|
594
|
+
// Update the trigger, panel width and direction, in case anything has changed.
|
595
|
+
position.setOrigin(this.getConnectedElement());
|
596
|
+
overlayRef.updateSize({ width: this.getPanelWidth() });
|
597
|
+
}
|
598
|
+
if (overlayRef && !overlayRef.hasAttached()) {
|
599
|
+
overlayRef.attach(this.portal);
|
600
|
+
this.closingActionsSubscription = this.subscribeToClosingActions();
|
601
|
+
}
|
602
|
+
const wasOpen = this.panelOpen;
|
603
|
+
this.autocomplete.setVisibility();
|
604
|
+
this.autocomplete.isOpen = this.overlayAttached = true;
|
605
|
+
// We need to do an extra `panelOpen` check in here, because the
|
606
|
+
// autocomplete won't be shown if there are no options.
|
607
|
+
if (this.panelOpen && wasOpen !== this.panelOpen) {
|
608
|
+
this.autocomplete.opened.emit();
|
609
|
+
}
|
610
|
+
}
|
611
|
+
getOverlayConfig() {
|
612
|
+
return new OverlayConfig({
|
613
|
+
positionStrategy: this.getOverlayPosition(),
|
614
|
+
scrollStrategy: this.scrollStrategy(),
|
615
|
+
width: this.getPanelWidth(),
|
616
|
+
direction: this.dir
|
617
|
+
});
|
618
|
+
}
|
619
|
+
getOverlayPosition() {
|
620
|
+
this.positionStrategy = this.overlay.position()
|
621
|
+
.flexibleConnectedTo(this.getConnectedElement())
|
622
|
+
.withFlexibleDimensions(false)
|
623
|
+
.withPush(false)
|
624
|
+
.withPositions([
|
625
|
+
{
|
626
|
+
originX: 'start',
|
627
|
+
originY: 'bottom',
|
628
|
+
overlayX: 'start',
|
629
|
+
overlayY: 'top'
|
630
|
+
},
|
631
|
+
{
|
632
|
+
originX: 'start',
|
633
|
+
originY: 'top',
|
634
|
+
overlayX: 'start',
|
635
|
+
overlayY: 'bottom',
|
636
|
+
// The overlay edge connected to the trigger should have squared corners, while
|
637
|
+
// the opposite end has rounded corners. We apply a CSS class to swap the
|
638
|
+
// border-radius based on the overlay position.
|
639
|
+
panelClass: 'mc-autocomplete-panel-above'
|
640
|
+
}
|
641
|
+
]);
|
642
|
+
return this.positionStrategy;
|
643
|
+
}
|
644
|
+
getConnectedElement() {
|
645
|
+
if (this.connectedTo) {
|
646
|
+
return this.connectedTo.elementRef;
|
647
|
+
}
|
648
|
+
return this.formField ? this.formField.getConnectedOverlayOrigin() : this.elementRef;
|
649
|
+
}
|
650
|
+
getPanelWidth() {
|
651
|
+
return this.autocomplete.panelWidth || this.getHostWidth() - AUTOCOMPLETE_BORDER_WIDTH;
|
652
|
+
}
|
653
|
+
getHostWidth() {
|
654
|
+
return this.getConnectedElement().nativeElement.getBoundingClientRect().width;
|
655
|
+
}
|
656
|
+
/**
|
657
|
+
* Resets the active item to -1 so arrow events will activate the
|
658
|
+
* correct options, or to 0 if the consumer opted into it.
|
659
|
+
*/
|
660
|
+
resetActiveItem() {
|
661
|
+
if (this.autocomplete.autoActiveFirstOption) {
|
662
|
+
this.autocomplete.keyManager.setFirstItemActive();
|
663
|
+
}
|
664
|
+
else {
|
665
|
+
this.autocomplete.keyManager.setActiveItem(-1);
|
666
|
+
}
|
667
|
+
}
|
668
|
+
canOpen() {
|
669
|
+
const element = this.elementRef.nativeElement;
|
670
|
+
return !element.readOnly && !element.disabled && !this._autocompleteDisabled;
|
671
|
+
}
|
672
|
+
}
|
673
|
+
/** @nocollapse */ /** @nocollapse */ McAutocompleteTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocompleteTrigger, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.Overlay }, { token: i0.NgZone }, { token: MC_AUTOCOMPLETE_SCROLL_STRATEGY }, { token: i2.Directionality, optional: true }, { token: i3.McFormField, host: true, optional: true }, { token: DOCUMENT, optional: true }, { token: i4.ViewportRuler }], target: i0.ɵɵFactoryTarget.Directive });
|
674
|
+
/** @nocollapse */ /** @nocollapse */ McAutocompleteTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.0", type: McAutocompleteTrigger, selector: "input[mcAutocomplete], textarea[mcAutocomplete]", inputs: { autocomplete: ["mcAutocomplete", "autocomplete"], connectedTo: ["mcAutocompleteConnectedTo", "connectedTo"], autocompleteAttribute: ["autocomplete", "autocompleteAttribute"], autocompleteDisabled: ["mcAutocompleteDisabled", "autocompleteDisabled"] }, host: { listeners: { "focusin": "handleFocus()", "blur": "onTouched()", "input": "handleInput($event)", "keydown": "handleKeydown($event)", "click": "handleClick($event)" }, properties: { "attr.autocomplete": "autocompleteAttribute" }, classAttribute: "mc-autocomplete-trigger" }, providers: [MAT_AUTOCOMPLETE_VALUE_ACCESSOR], exportAs: ["mcAutocompleteTrigger"], ngImport: i0 });
|
675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocompleteTrigger, decorators: [{
|
676
|
+
type: Directive,
|
677
|
+
args: [{
|
678
|
+
selector: `input[mcAutocomplete], textarea[mcAutocomplete]`,
|
679
|
+
host: {
|
680
|
+
class: 'mc-autocomplete-trigger',
|
681
|
+
'[attr.autocomplete]': 'autocompleteAttribute',
|
682
|
+
// Note: we use `focusin`, as opposed to `focus`, in order to open the panel
|
683
|
+
// a little earlier. This avoids issues where IE delays the focusing of the input.
|
684
|
+
'(focusin)': 'handleFocus()',
|
685
|
+
'(blur)': 'onTouched()',
|
686
|
+
'(input)': 'handleInput($event)',
|
687
|
+
'(keydown)': 'handleKeydown($event)',
|
688
|
+
'(click)': 'handleClick($event)'
|
689
|
+
},
|
690
|
+
exportAs: 'mcAutocompleteTrigger',
|
691
|
+
providers: [MAT_AUTOCOMPLETE_VALUE_ACCESSOR]
|
692
|
+
}]
|
693
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.Overlay }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
694
|
+
type: Inject,
|
695
|
+
args: [MC_AUTOCOMPLETE_SCROLL_STRATEGY]
|
696
|
+
}] }, { type: i2.Directionality, decorators: [{
|
697
|
+
type: Optional
|
698
|
+
}] }, { type: i3.McFormField, decorators: [{
|
699
|
+
type: Optional
|
700
|
+
}, {
|
701
|
+
type: Host
|
702
|
+
}] }, { type: undefined, decorators: [{
|
703
|
+
type: Optional
|
704
|
+
}, {
|
705
|
+
type: Inject,
|
706
|
+
args: [DOCUMENT]
|
707
|
+
}] }, { type: i4.ViewportRuler }]; }, propDecorators: { autocomplete: [{
|
708
|
+
type: Input,
|
709
|
+
args: ['mcAutocomplete']
|
710
|
+
}], connectedTo: [{
|
711
|
+
type: Input,
|
712
|
+
args: ['mcAutocompleteConnectedTo']
|
713
|
+
}], autocompleteAttribute: [{
|
714
|
+
type: Input,
|
715
|
+
args: ['autocomplete']
|
716
|
+
}], autocompleteDisabled: [{
|
717
|
+
type: Input,
|
718
|
+
args: ['mcAutocompleteDisabled']
|
719
|
+
}] } });
|
720
|
+
|
721
|
+
class McAutocompleteModule {
|
722
|
+
}
|
723
|
+
/** @nocollapse */ /** @nocollapse */ McAutocompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
724
|
+
/** @nocollapse */ /** @nocollapse */ McAutocompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocompleteModule, declarations: [McAutocomplete, McAutocompleteTrigger, McAutocompleteOrigin], imports: [McOptionModule, OverlayModule, McCommonModule, CommonModule], exports: [McAutocomplete,
|
725
|
+
McOptionModule,
|
726
|
+
McAutocompleteTrigger,
|
727
|
+
McAutocompleteOrigin,
|
728
|
+
McCommonModule] });
|
729
|
+
/** @nocollapse */ /** @nocollapse */ McAutocompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocompleteModule, providers: [MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[McOptionModule, OverlayModule, McCommonModule, CommonModule], McOptionModule,
|
730
|
+
McCommonModule] });
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: McAutocompleteModule, decorators: [{
|
732
|
+
type: NgModule,
|
733
|
+
args: [{
|
734
|
+
imports: [McOptionModule, OverlayModule, McCommonModule, CommonModule],
|
735
|
+
exports: [
|
736
|
+
McAutocomplete,
|
737
|
+
McOptionModule,
|
738
|
+
McAutocompleteTrigger,
|
739
|
+
McAutocompleteOrigin,
|
740
|
+
McCommonModule
|
741
|
+
],
|
742
|
+
declarations: [McAutocomplete, McAutocompleteTrigger, McAutocompleteOrigin],
|
743
|
+
providers: [MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER]
|
744
|
+
}]
|
745
|
+
}] });
|
746
|
+
|
747
|
+
/**
|
748
|
+
* Generated bundle index. Do not edit.
|
749
|
+
*/
|
750
|
+
|
751
|
+
export { AUTOCOMPLETE_BORDER_WIDTH, AUTOCOMPLETE_OPTION_HEIGHT, AUTOCOMPLETE_PANEL_HEIGHT, MAT_AUTOCOMPLETE_VALUE_ACCESSOR, MC_AUTOCOMPLETE_DEFAULT_OPTIONS, MC_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY, MC_AUTOCOMPLETE_SCROLL_STRATEGY, MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY, MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER, McAutocomplete, McAutocompleteModule, McAutocompleteOrigin, McAutocompleteSelectedEvent, McAutocompleteTrigger, getMcAutocompleteMissingPanelError };
|
752
|
+
//# sourceMappingURL=ptsecurity-mosaic-autocomplete.mjs.map
|