@ptsecurity/mosaic 12.1.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_theming.scss +113 -66
- package/_visual.scss +11 -9
- 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 +4 -4
- 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-trigger.d.ts +9 -12
- package/datepicker/README.md +0 -0
- package/datepicker/package.json +5 -5
- package/design-tokens/package.json +5 -5
- package/design-tokens/style-dictionary/build.js +6 -0
- package/design-tokens/style-dictionary/configs/index.js +2 -1
- package/design-tokens/tokens/components/navbar.json5 +12 -9
- package/design-tokens/tokens.d.ts +11 -9
- package/divider/README.md +0 -0
- package/divider/package.json +5 -5
- package/dropdown/dropdown-item.component.d.ts +1 -0
- package/dropdown/package.json +5 -5
- package/{esm2015/autocomplete/autocomplete-origin.directive.js → esm2020/autocomplete/autocomplete-origin.directive.mjs} +4 -4
- package/{esm2015/autocomplete/autocomplete-trigger.directive.js → esm2020/autocomplete/autocomplete-trigger.directive.mjs} +4 -4
- package/esm2020/autocomplete/autocomplete.component.mjs +154 -0
- package/{esm2015/autocomplete/autocomplete.module.js → esm2020/autocomplete/autocomplete.module.mjs} +5 -5
- 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/{esm2015/button-toggle/button-toggle.module.js → esm2020/button-toggle/button-toggle.module.mjs} +5 -5
- 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/{esm2015/card/card.module.js → esm2020/card/card.module.mjs} +5 -5
- 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/{esm2015/checkbox/checkbox-module.js → esm2020/checkbox/checkbox-module.mjs} +5 -5
- package/{esm2015/checkbox/checkbox-required-validator.js → esm2020/checkbox/checkbox-required-validator.mjs} +4 -4
- 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/{esm2015/core/common-behaviors/common-module.js → esm2020/core/common-behaviors/common-module.mjs} +5 -5
- 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/{esm2015/core/error/error-options.js → esm2020/core/error/error-options.mjs} +7 -7
- package/esm2020/core/formatters/date/formatter.mjs +314 -0
- package/esm2020/core/formatters/date/templates/en-US.mjs +280 -0
- package/esm2020/core/formatters/date/templates/ru-RU.mjs +280 -0
- package/{esm2015/core/formatters/index.js → esm2020/core/formatters/index.mjs} +5 -5
- package/esm2020/core/formatters/number/formatter.mjs +105 -0
- package/{esm2015/core/forms/forms-module.js → esm2020/core/forms/forms-module.mjs} +5 -5
- package/{esm2015/core/forms/forms.directive.js → esm2020/core/forms/forms.directive.mjs} +7 -7
- package/{esm2015/core/forms/index.js → esm2020/core/forms/index.mjs} +0 -0
- package/{esm2015/core/highlight/highlight.pipe.js → esm2020/core/highlight/highlight.pipe.mjs} +4 -4
- package/{esm2015/core/highlight/index.js → esm2020/core/highlight/index.mjs} +5 -5
- 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/{esm2015/core/line/line.js → esm2020/core/line/line.mjs} +8 -8
- 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/{esm2015/core/option/option-module.js → esm2020/core/option/option-module.mjs} +5 -5
- 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 +246 -0
- package/esm2020/core/pop-up/pop-up.mjs +91 -0
- package/{esm2015/core/ptsecurity-mosaic-core.js → esm2020/core/ptsecurity-mosaic-core.mjs} +0 -0
- package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +0 -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/{esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js → esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs} +5 -5
- package/{esm2015/core/services/measure-scrollbar.service.js → esm2020/core/services/measure-scrollbar.service.mjs} +4 -4
- 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/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/{esm2015/datepicker/datepicker-intl.js → esm2020/datepicker/datepicker-intl.mjs} +4 -4
- package/{esm2015/datepicker/datepicker-module.js → esm2020/datepicker/datepicker-module.mjs} +5 -5
- 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/{esm2015/datepicker/month-view.component.js → esm2020/datepicker/month-view.component.mjs} +5 -11
- package/{esm2015/datepicker/multi-year-view.component.js → esm2020/datepicker/multi-year-view.component.mjs} +5 -11
- 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/{esm2015/datepicker/year-view.component.js → esm2020/datepicker/year-view.component.mjs} +5 -11
- package/{esm2015/design-tokens/index.js → esm2020/design-tokens/index.mjs} +0 -0
- package/{esm2015/design-tokens/ptsecurity-mosaic-design-tokens.js → esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs} +0 -0
- package/{esm2015/design-tokens/public-api.js → esm2020/design-tokens/public-api.mjs} +0 -0
- package/{esm2015/design-tokens/tokens.js → esm2020/design-tokens/tokens.mjs} +12 -10
- package/{esm2015/divider/divider.component.js → esm2020/divider/divider.component.mjs} +6 -13
- package/{esm2015/divider/divider.module.js → esm2020/divider/divider.module.mjs} +5 -5
- 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/{esm2015/dropdown/dropdown-content.directive.js → esm2020/dropdown/dropdown-content.directive.mjs} +6 -8
- 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/{esm2015/dropdown/dropdown.module.js → esm2020/dropdown/dropdown.module.mjs} +5 -5
- 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/{esm2015/form-field/form-field.module.js → esm2020/form-field/form-field.module.mjs} +5 -5
- package/{esm2015/form-field/hint.js → esm2020/form-field/hint.mjs} +4 -4
- package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
- package/{esm2015/form-field/prefix.js → esm2020/form-field/prefix.mjs} +4 -4
- 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/{esm2015/form-field/stepper.js → esm2020/form-field/stepper.mjs} +4 -4
- package/{esm2015/form-field/suffix.js → esm2020/form-field/suffix.mjs} +4 -4
- package/esm2020/icon/icon.component.mjs +44 -0
- package/{esm2015/icon/icon.module.js → esm2020/icon/icon.module.mjs} +5 -5
- 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/{esm2015/input/input-number.js → esm2020/input/input-number.mjs} +4 -4
- package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
- package/{esm2015/input/input.js → esm2020/input/input.mjs} +7 -7
- package/{esm2015/input/input.module.js → esm2020/input/input.module.mjs} +5 -5
- 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/{esm2015/link/link.module.js → esm2020/link/link.module.mjs} +5 -5
- 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 +693 -0
- package/esm2020/list/list.component.mjs +44 -0
- package/{esm2015/list/list.module.js → esm2020/list/list.module.mjs} +5 -5
- 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/{esm2015/modal/css-unit.pipe.js → esm2020/modal/css-unit.pipe.mjs} +4 -4
- package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
- package/{esm2015/modal/modal-control.service.js → esm2020/modal/modal-control.service.mjs} +4 -4
- 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/{esm2015/modal/modal.directive.js → esm2020/modal/modal.directive.mjs} +13 -13
- 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 +577 -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/{esm2015/navbar/vertical-navbar.animation.js → esm2020/navbar/vertical-navbar.animation.mjs} +2 -2
- 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} +2 -1
- package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
- package/esm2020/progress-bar/progress-bar.component.mjs +42 -0
- package/{esm2015/progress-bar/progress-bar.module.js → esm2020/progress-bar/progress-bar.module.mjs} +5 -5
- 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/{esm2015/progress-spinner/progress-spinner.module.js → esm2020/progress-spinner/progress-spinner.module.mjs} +5 -5
- 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/{esm2015/radio/radio.module.js → esm2020/radio/radio.module.mjs} +5 -5
- 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/{esm2015/select/select.module.js → esm2020/select/select.module.mjs} +5 -5
- 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/{esm2015/sidebar/sidebar.module.js → esm2020/sidebar/sidebar.module.mjs} +5 -5
- 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 +480 -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/{esm2015/table/table.component.js → esm2020/table/table.component.mjs} +4 -4
- package/{esm2015/table/table.module.js → esm2020/table/table.module.mjs} +5 -5
- 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/{esm2015/tabs/tab-content.directive.js → esm2020/tabs/tab-content.directive.mjs} +4 -4
- package/esm2020/tabs/tab-group.component.mjs +350 -0
- package/esm2020/tabs/tab-header.component.mjs +67 -0
- package/{esm2015/tabs/tab-label-wrapper.directive.js → esm2020/tabs/tab-label-wrapper.directive.mjs} +4 -4
- package/{esm2015/tabs/tab-label.directive.js → esm2020/tabs/tab-label.directive.mjs} +4 -4
- 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/{esm2015/tabs/tab.component.js → esm2020/tabs/tab.component.mjs} +4 -4
- package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
- package/{esm2015/tabs/tabs.module.js → esm2020/tabs/tabs.module.mjs} +5 -5
- 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/{esm2015/tags/tag-input.js → esm2020/tags/tag-input.mjs} +4 -4
- 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 +374 -0
- package/{esm2015/tags/tag.module.js → esm2020/tags/tag.module.mjs} +5 -5
- 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/{esm2015/textarea/textarea.component.js → esm2020/textarea/textarea.component.mjs} +4 -4
- package/{esm2015/textarea/textarea.module.js → esm2020/textarea/textarea.module.mjs} +5 -5
- 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/{esm2015/timepicker/timepicker.module.js → esm2020/timepicker/timepicker.module.mjs} +5 -5
- 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/{esm2015/toggle/toggle.module.js → esm2020/toggle/toggle.module.mjs} +5 -5
- 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 +291 -0
- package/{esm2015/tooltip/tooltip.module.js → esm2020/tooltip/tooltip.module.mjs} +5 -5
- 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/{esm2015/tree/data-source/flat-data-source.js → esm2020/tree/data-source/flat-data-source.mjs} +0 -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/{esm2015/tree/node.js → esm2020/tree/node.mjs} +4 -4
- package/{esm2015/tree/outlet.js → esm2020/tree/outlet.mjs} +4 -4
- 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/{esm2015/tree/tree-base.js → esm2020/tree/tree-base.mjs} +7 -7
- package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
- package/esm2020/tree/tree-option.component.mjs +226 -0
- package/esm2020/tree/tree-selection.component.mjs +530 -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 +889 -0
- package/{esm2015/tree-select/tree-select.module.js → esm2020/tree-select/tree-select.module.mjs} +5 -5
- 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.js → ptsecurity-mosaic-card.mjs} +10 -18
- 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.js → ptsecurity-mosaic-core.mjs} +186 -241
- 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.js → ptsecurity-mosaic-design-tokens.mjs} +13 -11
- 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.js → ptsecurity-mosaic-link.mjs} +8 -8
- package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-list.mjs +796 -0
- package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-modal.mjs +842 -0
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-navbar.mjs +1025 -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.js → ptsecurity-mosaic-progress-bar.mjs} +10 -18
- 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.js → ptsecurity-mosaic-sidebar.mjs} +16 -25
- 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 +524 -0
- package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-table.js → ptsecurity-mosaic-table.mjs} +8 -8
- 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 +1372 -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.js → ptsecurity-mosaic-toggle.mjs} +12 -23
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +362 -0
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +932 -0
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tree.mjs +1707 -0
- package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic.js → ptsecurity-mosaic.mjs} +1 -1
- package/fesm2015/ptsecurity-mosaic.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-autocomplete.js → fesm2020/ptsecurity-mosaic-autocomplete.mjs} +17 -26
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-button-toggle.js → fesm2020/ptsecurity-mosaic-button-toggle.mjs} +15 -23
- 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/{fesm2015/ptsecurity-mosaic-checkbox.js → fesm2020/ptsecurity-mosaic-checkbox.mjs} +13 -23
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-core.mjs +2688 -0
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-datepicker.js → fesm2020/ptsecurity-mosaic-datepicker.mjs} +77 -121
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +939 -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/{fesm2015/ptsecurity-mosaic-dropdown.js → fesm2020/ptsecurity-mosaic-dropdown.mjs} +45 -53
- 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/{fesm2015/ptsecurity-mosaic-input.js → fesm2020/ptsecurity-mosaic-input.mjs} +41 -27
- 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/{fesm2015/ptsecurity-mosaic-list.js → fesm2020/ptsecurity-mosaic-list.mjs} +41 -70
- package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-modal.js → fesm2020/ptsecurity-mosaic-modal.mjs} +63 -59
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-navbar.mjs +1009 -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/{fesm2015/ptsecurity-mosaic-radio.js → fesm2020/ptsecurity-mosaic-radio.mjs} +13 -22
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-select.js → fesm2020/ptsecurity-mosaic-select.mjs} +23 -35
- 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/{fesm2015/ptsecurity-mosaic-sidepanel.js → fesm2020/ptsecurity-mosaic-sidepanel.mjs} +57 -53
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-splitter.mjs +524 -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/{fesm2015/ptsecurity-mosaic-tabs.js → fesm2020/ptsecurity-mosaic-tabs.mjs} +65 -102
- package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tags.js → fesm2020/ptsecurity-mosaic-tags.mjs} +29 -47
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-textarea.js → fesm2020/ptsecurity-mosaic-textarea.mjs} +8 -8
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-timepicker.js → fesm2020/ptsecurity-mosaic-timepicker.mjs} +16 -15
- 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 +354 -0
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tree-select.js → fesm2020/ptsecurity-mosaic-tree-select.mjs} +16 -27
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tree.js → fesm2020/ptsecurity-mosaic-tree.mjs} +61 -108
- 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/cleaner.d.ts +2 -0
- package/form-field/package.json +5 -5
- package/icon/README.md +0 -0
- package/icon/package.json +5 -5
- package/input/input-number-validators.d.ts +2 -2
- 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.component.d.ts +2 -0
- package/modal/modal.module.d.ts +1 -1
- package/modal/package.json +5 -5
- package/navbar/README.md +41 -0
- package/navbar/navbar-item.component.d.ts +122 -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/popover/popover-confirm.component.d.ts +33 -0
- package/popover/popover.component.d.ts +14 -4
- package/popover/popover.module.d.ts +6 -3
- package/popover/public-api.d.ts +1 -0
- 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/select/select.component.d.ts +2 -7
- package/sidebar/package.json +5 -5
- package/sidepanel/package.json +5 -5
- package/sidepanel/sidepanel-directives.d.ts +2 -0
- package/sidepanel/sidepanel.module.d.ts +2 -1
- package/splitter/package.json +5 -5
- package/splitter/splitter.component.d.ts +46 -5
- package/splitter/splitter.module.d.ts +1 -1
- 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/tooltip/tooltip.component.d.ts +12 -3
- package/tree/package.json +5 -5
- package/tree/padding.directive.d.ts +1 -1
- package/tree/tree-option.component.d.ts +1 -1
- package/tree/tree-selection.component.d.ts +2 -2
- package/tree/tree.module.d.ts +1 -1
- package/tree-select/README.md +0 -0
- package/tree-select/package.json +5 -5
- package/tree-select/tree-select.component.d.ts +2 -7
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js +0 -1162
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js +0 -757
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button.umd.js +0 -535
- package/bundles/ptsecurity-mosaic-button.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-card.umd.js +0 -481
- package/bundles/ptsecurity-mosaic-card.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.js +0 -764
- package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-core.umd.js +0 -2887
- package/bundles/ptsecurity-mosaic-core.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.js +0 -3357
- package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1872
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-divider.umd.js +0 -108
- package/bundles/ptsecurity-mosaic-divider.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.js +0 -1519
- package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.js +0 -789
- package/bundles/ptsecurity-mosaic-form-field.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-icon.umd.js +0 -452
- package/bundles/ptsecurity-mosaic-icon.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-input.umd.js +0 -996
- package/bundles/ptsecurity-mosaic-input.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-link.umd.js +0 -517
- package/bundles/ptsecurity-mosaic-link.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-list.umd.js +0 -1250
- package/bundles/ptsecurity-mosaic-list.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-modal.umd.js +0 -1304
- package/bundles/ptsecurity-mosaic-modal.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.js +0 -932
- package/bundles/ptsecurity-mosaic-navbar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-popover.umd.js +0 -655
- package/bundles/ptsecurity-mosaic-popover.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js +0 -442
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +0 -450
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-radio.umd.js +0 -903
- package/bundles/ptsecurity-mosaic-radio.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-select.umd.js +0 -1608
- package/bundles/ptsecurity-mosaic-select.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.js +0 -256
- package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js +0 -950
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.js +0 -438
- package/bundles/ptsecurity-mosaic-splitter.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-table.umd.js +0 -83
- package/bundles/ptsecurity-mosaic-table.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.js +0 -2015
- package/bundles/ptsecurity-mosaic-tabs.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tags.umd.js +0 -1913
- package/bundles/ptsecurity-mosaic-tags.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.js +0 -666
- package/bundles/ptsecurity-mosaic-textarea.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js +0 -822
- package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.js +0 -559
- package/bundles/ptsecurity-mosaic-toggle.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.js +0 -728
- package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.js +0 -1370
- package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree.umd.js +0 -2309
- 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/esm2015/autocomplete/autocomplete.component.js +0 -163
- 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/card/card.component.js +0 -88
- package/esm2015/checkbox/checkbox.js +0 -325
- package/esm2015/core/formatters/date/formatter.js +0 -287
- 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/number/formatter.js +0 -99
- package/esm2015/core/option/action.js +0 -131
- package/esm2015/core/option/optgroup.js +0 -40
- package/esm2015/core/option/option.js +0 -262
- package/esm2015/core/pop-up/pop-up-trigger.js +0 -273
- package/esm2015/core/pop-up/pop-up.js +0 -87
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -45
- 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 -885
- package/esm2015/datepicker/datepicker-toggle.component.js +0 -94
- package/esm2015/datepicker/datepicker.component.js +0 -418
- package/esm2015/dropdown/dropdown-item.component.js +0 -142
- package/esm2015/dropdown/dropdown-trigger.directive.js +0 -478
- package/esm2015/dropdown/dropdown.component.js +0 -302
- package/esm2015/form-field/cleaner.js +0 -19
- package/esm2015/form-field/form-field.js +0 -224
- package/esm2015/icon/icon.component.js +0 -51
- package/esm2015/input/input-number-validators.js +0 -78
- package/esm2015/link/link.component.js +0 -108
- package/esm2015/list/list-selection.component.js +0 -708
- package/esm2015/list/list.component.js +0 -58
- package/esm2015/modal/modal.component.js +0 -506
- package/esm2015/modal/modal.module.js +0 -70
- package/esm2015/modal/modal.service.js +0 -117
- 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.component.js +0 -140
- package/esm2015/popover/popover.component.js +0 -219
- package/esm2015/popover/popover.module.js +0 -21
- package/esm2015/progress-bar/progress-bar.component.js +0 -50
- package/esm2015/progress-spinner/progress-spinner.component.js +0 -54
- package/esm2015/radio/radio.component.js +0 -467
- package/esm2015/select/select.component.js +0 -1122
- package/esm2015/sidebar/sidebar.component.js +0 -155
- package/esm2015/sidepanel/sidepanel-container.component.js +0 -113
- package/esm2015/sidepanel/sidepanel-directives.js +0 -155
- package/esm2015/sidepanel/sidepanel.module.js +0 -70
- package/esm2015/sidepanel/sidepanel.service.js +0 -163
- package/esm2015/splitter/splitter.component.js +0 -331
- package/esm2015/splitter/splitter.module.js +0 -38
- package/esm2015/tabs/paginated-tab-header.js +0 -482
- package/esm2015/tabs/tab-body.component.js +0 -186
- package/esm2015/tabs/tab-group.component.js +0 -359
- package/esm2015/tabs/tab-header.component.js +0 -76
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -118
- package/esm2015/tags/tag-list.component.js +0 -732
- package/esm2015/tags/tag.component.js +0 -382
- package/esm2015/timepicker/timepicker.directive.js +0 -652
- package/esm2015/toggle/toggle.component.js +0 -169
- package/esm2015/tooltip/tooltip.component.js +0 -260
- package/esm2015/tree/padding.directive.js +0 -114
- package/esm2015/tree/toggle.js +0 -89
- 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 -56
- package/esm2015/tree-select/tree-select.component.js +0 -900
- package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +0 -1
- 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.map +0 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-core.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.js.map +0 -1
- 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.map +0 -1
- package/fesm2015/ptsecurity-mosaic-form-field.js +0 -393
- 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.map +0 -1
- package/fesm2015/ptsecurity-mosaic-link.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-list.js.map +0 -1
- 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 -257
- package/fesm2015/ptsecurity-mosaic-popover.js.map +0 -1
- 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.map +0 -1
- package/fesm2015/ptsecurity-mosaic-select.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-splitter.js +0 -373
- package/fesm2015/ptsecurity-mosaic-splitter.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-table.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tabs.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tags.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-textarea.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-toggle.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.js +0 -323
- package/fesm2015/ptsecurity-mosaic-tooltip.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic.js.map +0 -1
@@ -1,1608 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/overlay'), require('@angular/common'), require('@angular/core'), require('@ptsecurity/mosaic/core'), require('@ptsecurity/mosaic/form-field'), require('@ptsecurity/mosaic/icon'), require('@ptsecurity/mosaic/tags'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/forms'), require('@ptsecurity/cdk/a11y'), require('@ptsecurity/cdk/keycodes'), require('@ptsecurity/mosaic/input'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/bidi')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/select', ['exports', '@angular/cdk/overlay', '@angular/common', '@angular/core', '@ptsecurity/mosaic/core', '@ptsecurity/mosaic/form-field', '@ptsecurity/mosaic/icon', '@ptsecurity/mosaic/tags', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/forms', '@ptsecurity/cdk/a11y', '@ptsecurity/cdk/keycodes', '@ptsecurity/mosaic/input', 'rxjs', 'rxjs/operators', '@angular/cdk/bidi'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.select = {}), global.ng.cdk.overlay, global.ng.common, global.ng.core, global.ptsecurity.mosaic.core, global.ptsecurity.mosaic['form-field'], global.ptsecurity.mosaic.icon, global.ptsecurity.mosaic.tags, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.forms, global.mc.cdk.a11y, global.mc.cdk.keycodes, global.ptsecurity.mosaic.input, global.rxjs, global.rxjs.operators, global.ng.cdk.bidi));
|
5
|
-
}(this, (function (exports, i7, i8, i0, i2, i1, i6, i5, coercion, collections, i4, a11y, keycodes, input, rxjs, operators, i3) { 'use strict';
|
6
|
-
|
7
|
-
function _interopNamespace(e) {
|
8
|
-
if (e && e.__esModule) return e;
|
9
|
-
var n = Object.create(null);
|
10
|
-
if (e) {
|
11
|
-
Object.keys(e).forEach(function (k) {
|
12
|
-
if (k !== 'default') {
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
15
|
-
enumerable: true,
|
16
|
-
get: function () {
|
17
|
-
return e[k];
|
18
|
-
}
|
19
|
-
});
|
20
|
-
}
|
21
|
-
});
|
22
|
-
}
|
23
|
-
n['default'] = e;
|
24
|
-
return Object.freeze(n);
|
25
|
-
}
|
26
|
-
|
27
|
-
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
28
|
-
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
29
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
30
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
31
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
32
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
33
|
-
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
34
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
35
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
36
|
-
|
37
|
-
/*! *****************************************************************************
|
38
|
-
Copyright (c) Microsoft Corporation.
|
39
|
-
|
40
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
41
|
-
purpose with or without fee is hereby granted.
|
42
|
-
|
43
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
44
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
45
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
46
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
47
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
48
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
49
|
-
PERFORMANCE OF THIS SOFTWARE.
|
50
|
-
***************************************************************************** */
|
51
|
-
/* global Reflect, Promise */
|
52
|
-
var extendStatics = function (d, b) {
|
53
|
-
extendStatics = Object.setPrototypeOf ||
|
54
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
55
|
-
function (d, b) { for (var p in b)
|
56
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
57
|
-
d[p] = b[p]; };
|
58
|
-
return extendStatics(d, b);
|
59
|
-
};
|
60
|
-
function __extends(d, b) {
|
61
|
-
if (typeof b !== "function" && b !== null)
|
62
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
63
|
-
extendStatics(d, b);
|
64
|
-
function __() { this.constructor = d; }
|
65
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
66
|
-
}
|
67
|
-
var __assign = function () {
|
68
|
-
__assign = Object.assign || function __assign(t) {
|
69
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
70
|
-
s = arguments[i];
|
71
|
-
for (var p in s)
|
72
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
73
|
-
t[p] = s[p];
|
74
|
-
}
|
75
|
-
return t;
|
76
|
-
};
|
77
|
-
return __assign.apply(this, arguments);
|
78
|
-
};
|
79
|
-
function __rest(s, e) {
|
80
|
-
var t = {};
|
81
|
-
for (var p in s)
|
82
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
83
|
-
t[p] = s[p];
|
84
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
85
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
86
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
87
|
-
t[p[i]] = s[p[i]];
|
88
|
-
}
|
89
|
-
return t;
|
90
|
-
}
|
91
|
-
function __decorate(decorators, target, key, desc) {
|
92
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
93
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
94
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
95
|
-
else
|
96
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
97
|
-
if (d = decorators[i])
|
98
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
99
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
100
|
-
}
|
101
|
-
function __param(paramIndex, decorator) {
|
102
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
103
|
-
}
|
104
|
-
function __metadata(metadataKey, metadataValue) {
|
105
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
106
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
107
|
-
}
|
108
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
109
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
110
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
111
|
-
function fulfilled(value) { try {
|
112
|
-
step(generator.next(value));
|
113
|
-
}
|
114
|
-
catch (e) {
|
115
|
-
reject(e);
|
116
|
-
} }
|
117
|
-
function rejected(value) { try {
|
118
|
-
step(generator["throw"](value));
|
119
|
-
}
|
120
|
-
catch (e) {
|
121
|
-
reject(e);
|
122
|
-
} }
|
123
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
124
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
125
|
-
});
|
126
|
-
}
|
127
|
-
function __generator(thisArg, body) {
|
128
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
129
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
130
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
131
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
132
|
-
function step(op) {
|
133
|
-
if (f)
|
134
|
-
throw new TypeError("Generator is already executing.");
|
135
|
-
while (_)
|
136
|
-
try {
|
137
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
138
|
-
return t;
|
139
|
-
if (y = 0, t)
|
140
|
-
op = [op[0] & 2, t.value];
|
141
|
-
switch (op[0]) {
|
142
|
-
case 0:
|
143
|
-
case 1:
|
144
|
-
t = op;
|
145
|
-
break;
|
146
|
-
case 4:
|
147
|
-
_.label++;
|
148
|
-
return { value: op[1], done: false };
|
149
|
-
case 5:
|
150
|
-
_.label++;
|
151
|
-
y = op[1];
|
152
|
-
op = [0];
|
153
|
-
continue;
|
154
|
-
case 7:
|
155
|
-
op = _.ops.pop();
|
156
|
-
_.trys.pop();
|
157
|
-
continue;
|
158
|
-
default:
|
159
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
160
|
-
_ = 0;
|
161
|
-
continue;
|
162
|
-
}
|
163
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
164
|
-
_.label = op[1];
|
165
|
-
break;
|
166
|
-
}
|
167
|
-
if (op[0] === 6 && _.label < t[1]) {
|
168
|
-
_.label = t[1];
|
169
|
-
t = op;
|
170
|
-
break;
|
171
|
-
}
|
172
|
-
if (t && _.label < t[2]) {
|
173
|
-
_.label = t[2];
|
174
|
-
_.ops.push(op);
|
175
|
-
break;
|
176
|
-
}
|
177
|
-
if (t[2])
|
178
|
-
_.ops.pop();
|
179
|
-
_.trys.pop();
|
180
|
-
continue;
|
181
|
-
}
|
182
|
-
op = body.call(thisArg, _);
|
183
|
-
}
|
184
|
-
catch (e) {
|
185
|
-
op = [6, e];
|
186
|
-
y = 0;
|
187
|
-
}
|
188
|
-
finally {
|
189
|
-
f = t = 0;
|
190
|
-
}
|
191
|
-
if (op[0] & 5)
|
192
|
-
throw op[1];
|
193
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
194
|
-
}
|
195
|
-
}
|
196
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
197
|
-
if (k2 === undefined)
|
198
|
-
k2 = k;
|
199
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
200
|
-
}) : (function (o, m, k, k2) {
|
201
|
-
if (k2 === undefined)
|
202
|
-
k2 = k;
|
203
|
-
o[k2] = m[k];
|
204
|
-
});
|
205
|
-
function __exportStar(m, o) {
|
206
|
-
for (var p in m)
|
207
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
208
|
-
__createBinding(o, m, p);
|
209
|
-
}
|
210
|
-
function __values(o) {
|
211
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
212
|
-
if (m)
|
213
|
-
return m.call(o);
|
214
|
-
if (o && typeof o.length === "number")
|
215
|
-
return {
|
216
|
-
next: function () {
|
217
|
-
if (o && i >= o.length)
|
218
|
-
o = void 0;
|
219
|
-
return { value: o && o[i++], done: !o };
|
220
|
-
}
|
221
|
-
};
|
222
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
223
|
-
}
|
224
|
-
function __read(o, n) {
|
225
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
226
|
-
if (!m)
|
227
|
-
return o;
|
228
|
-
var i = m.call(o), r, ar = [], e;
|
229
|
-
try {
|
230
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
231
|
-
ar.push(r.value);
|
232
|
-
}
|
233
|
-
catch (error) {
|
234
|
-
e = { error: error };
|
235
|
-
}
|
236
|
-
finally {
|
237
|
-
try {
|
238
|
-
if (r && !r.done && (m = i["return"]))
|
239
|
-
m.call(i);
|
240
|
-
}
|
241
|
-
finally {
|
242
|
-
if (e)
|
243
|
-
throw e.error;
|
244
|
-
}
|
245
|
-
}
|
246
|
-
return ar;
|
247
|
-
}
|
248
|
-
/** @deprecated */
|
249
|
-
function __spread() {
|
250
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
251
|
-
ar = ar.concat(__read(arguments[i]));
|
252
|
-
return ar;
|
253
|
-
}
|
254
|
-
/** @deprecated */
|
255
|
-
function __spreadArrays() {
|
256
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
257
|
-
s += arguments[i].length;
|
258
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
259
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
260
|
-
r[k] = a[j];
|
261
|
-
return r;
|
262
|
-
}
|
263
|
-
function __spreadArray(to, from, pack) {
|
264
|
-
if (pack || arguments.length === 2)
|
265
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
266
|
-
if (ar || !(i in from)) {
|
267
|
-
if (!ar)
|
268
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
269
|
-
ar[i] = from[i];
|
270
|
-
}
|
271
|
-
}
|
272
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
273
|
-
}
|
274
|
-
function __await(v) {
|
275
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
276
|
-
}
|
277
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
278
|
-
if (!Symbol.asyncIterator)
|
279
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
280
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
281
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
282
|
-
function verb(n) { if (g[n])
|
283
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
284
|
-
function resume(n, v) { try {
|
285
|
-
step(g[n](v));
|
286
|
-
}
|
287
|
-
catch (e) {
|
288
|
-
settle(q[0][3], e);
|
289
|
-
} }
|
290
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
291
|
-
function fulfill(value) { resume("next", value); }
|
292
|
-
function reject(value) { resume("throw", value); }
|
293
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
294
|
-
resume(q[0][0], q[0][1]); }
|
295
|
-
}
|
296
|
-
function __asyncDelegator(o) {
|
297
|
-
var i, p;
|
298
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
299
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
300
|
-
}
|
301
|
-
function __asyncValues(o) {
|
302
|
-
if (!Symbol.asyncIterator)
|
303
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
304
|
-
var m = o[Symbol.asyncIterator], i;
|
305
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
306
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
307
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
308
|
-
}
|
309
|
-
function __makeTemplateObject(cooked, raw) {
|
310
|
-
if (Object.defineProperty) {
|
311
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
312
|
-
}
|
313
|
-
else {
|
314
|
-
cooked.raw = raw;
|
315
|
-
}
|
316
|
-
return cooked;
|
317
|
-
}
|
318
|
-
;
|
319
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
320
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
321
|
-
}) : function (o, v) {
|
322
|
-
o["default"] = v;
|
323
|
-
};
|
324
|
-
function __importStar(mod) {
|
325
|
-
if (mod && mod.__esModule)
|
326
|
-
return mod;
|
327
|
-
var result = {};
|
328
|
-
if (mod != null)
|
329
|
-
for (var k in mod)
|
330
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
331
|
-
__createBinding(result, mod, k);
|
332
|
-
__setModuleDefault(result, mod);
|
333
|
-
return result;
|
334
|
-
}
|
335
|
-
function __importDefault(mod) {
|
336
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
337
|
-
}
|
338
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
339
|
-
if (kind === "a" && !f)
|
340
|
-
throw new TypeError("Private accessor was defined without a getter");
|
341
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
342
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
343
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
344
|
-
}
|
345
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
346
|
-
if (kind === "m")
|
347
|
-
throw new TypeError("Private method is not writable");
|
348
|
-
if (kind === "a" && !f)
|
349
|
-
throw new TypeError("Private accessor was defined without a setter");
|
350
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
351
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
352
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
353
|
-
}
|
354
|
-
|
355
|
-
var nextUniqueId = 0;
|
356
|
-
/** Change event object that is emitted when the select value has changed. */
|
357
|
-
var McSelectChange = /** @class */ (function () {
|
358
|
-
function McSelectChange(source, value) {
|
359
|
-
this.source = source;
|
360
|
-
this.value = value;
|
361
|
-
}
|
362
|
-
return McSelectChange;
|
363
|
-
}());
|
364
|
-
var McSelectSearch = /** @class */ (function () {
|
365
|
-
function McSelectSearch(formField) {
|
366
|
-
this.searchChangesSubscription = new rxjs.Subscription();
|
367
|
-
this.isSearchChanged = false;
|
368
|
-
formField.canCleanerClearByEsc = false;
|
369
|
-
}
|
370
|
-
McSelectSearch.prototype.focus = function () {
|
371
|
-
this.input.focus();
|
372
|
-
};
|
373
|
-
McSelectSearch.prototype.reset = function () {
|
374
|
-
this.input.ngControl.reset();
|
375
|
-
};
|
376
|
-
McSelectSearch.prototype.ngAfterContentInit = function () {
|
377
|
-
var _this = this;
|
378
|
-
if (!this.input) {
|
379
|
-
throw Error('McSelectSearch does not work without mcInput');
|
380
|
-
}
|
381
|
-
if (!this.input.ngControl) {
|
382
|
-
throw Error('McSelectSearch does not work without ngControl');
|
383
|
-
}
|
384
|
-
Promise.resolve().then(function () {
|
385
|
-
_this.searchChangesSubscription = _this.input.ngControl.valueChanges.subscribe(function () {
|
386
|
-
_this.isSearchChanged = true;
|
387
|
-
});
|
388
|
-
});
|
389
|
-
};
|
390
|
-
McSelectSearch.prototype.ngOnDestroy = function () {
|
391
|
-
this.searchChangesSubscription.unsubscribe();
|
392
|
-
};
|
393
|
-
McSelectSearch.prototype.handleKeydown = function (event) {
|
394
|
-
// tslint:disable-next-line:deprecation
|
395
|
-
if (event.keyCode === keycodes.ESCAPE) {
|
396
|
-
if (this.input.value) {
|
397
|
-
this.reset();
|
398
|
-
event.stopPropagation();
|
399
|
-
}
|
400
|
-
}
|
401
|
-
// tslint:disable-next-line:deprecation
|
402
|
-
if ([keycodes.SPACE, keycodes.HOME, keycodes.END].includes(event.keyCode)) {
|
403
|
-
event.stopPropagation();
|
404
|
-
}
|
405
|
-
};
|
406
|
-
return McSelectSearch;
|
407
|
-
}());
|
408
|
-
/** @nocollapse */ McSelectSearch.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectSearch, deps: [{ token: i1__namespace.McFormField }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
409
|
-
/** @nocollapse */ McSelectSearch.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: McSelectSearch, selector: "[mcSelectSearch]", host: { listeners: { "keydown": "handleKeydown($event)" } }, queries: [{ propertyName: "input", first: true, predicate: input.McInput, descendants: true }], exportAs: ["mcSelectSearch"], ngImport: i0__namespace });
|
410
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectSearch, decorators: [{
|
411
|
-
type: i0.Directive,
|
412
|
-
args: [{
|
413
|
-
selector: '[mcSelectSearch]',
|
414
|
-
exportAs: 'mcSelectSearch',
|
415
|
-
host: {
|
416
|
-
'(keydown)': 'handleKeydown($event)'
|
417
|
-
}
|
418
|
-
}]
|
419
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.McFormField }]; }, propDecorators: { input: [{
|
420
|
-
type: i0.ContentChild,
|
421
|
-
args: [input.McInput, { static: false }]
|
422
|
-
}] } });
|
423
|
-
var McSelectSearchEmptyResult = /** @class */ (function () {
|
424
|
-
function McSelectSearchEmptyResult() {
|
425
|
-
}
|
426
|
-
return McSelectSearchEmptyResult;
|
427
|
-
}());
|
428
|
-
/** @nocollapse */ McSelectSearchEmptyResult.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectSearchEmptyResult, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
429
|
-
/** @nocollapse */ McSelectSearchEmptyResult.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: McSelectSearchEmptyResult, selector: "[mc-select-search-empty-result]", exportAs: ["mcSelectSearchEmptyResult"], ngImport: i0__namespace });
|
430
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectSearchEmptyResult, decorators: [{
|
431
|
-
type: i0.Directive,
|
432
|
-
args: [{
|
433
|
-
selector: '[mc-select-search-empty-result]',
|
434
|
-
exportAs: 'mcSelectSearchEmptyResult'
|
435
|
-
}]
|
436
|
-
}] });
|
437
|
-
var McSelectTrigger = /** @class */ (function () {
|
438
|
-
function McSelectTrigger() {
|
439
|
-
}
|
440
|
-
return McSelectTrigger;
|
441
|
-
}());
|
442
|
-
/** @nocollapse */ McSelectTrigger.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectTrigger, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
443
|
-
/** @nocollapse */ McSelectTrigger.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: McSelectTrigger, selector: "mc-select-trigger", ngImport: i0__namespace });
|
444
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectTrigger, decorators: [{
|
445
|
-
type: i0.Directive,
|
446
|
-
args: [{ selector: 'mc-select-trigger' }]
|
447
|
-
}] });
|
448
|
-
var McSelectBase = /** @class */ (function () {
|
449
|
-
function McSelectBase(elementRef, defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
|
450
|
-
this.elementRef = elementRef;
|
451
|
-
this.defaultErrorStateMatcher = defaultErrorStateMatcher;
|
452
|
-
this.parentForm = parentForm;
|
453
|
-
this.parentFormGroup = parentFormGroup;
|
454
|
-
this.ngControl = ngControl;
|
455
|
-
}
|
456
|
-
return McSelectBase;
|
457
|
-
}());
|
458
|
-
// tslint:disable-next-line:naming-convention
|
459
|
-
var McSelectMixinBase = i2.mixinTabIndex(i2.mixinDisabled(i2.mixinErrorState(McSelectBase)));
|
460
|
-
var McSelect = /** @class */ (function (_super) {
|
461
|
-
__extends(McSelect, _super);
|
462
|
-
function McSelect(_changeDetectorRef, _ngZone, _renderer, defaultErrorStateMatcher, elementRef, rawValidators, _dir, parentForm, parentFormGroup, _parentFormField, ngControl, ngModel, formControlName, _scrollStrategyFactory, mcValidation) {
|
463
|
-
var _this = _super.call(this, elementRef, defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) || this;
|
464
|
-
_this._changeDetectorRef = _changeDetectorRef;
|
465
|
-
_this._ngZone = _ngZone;
|
466
|
-
_this._renderer = _renderer;
|
467
|
-
_this.rawValidators = rawValidators;
|
468
|
-
_this._dir = _dir;
|
469
|
-
_this._parentFormField = _parentFormField;
|
470
|
-
_this.ngModel = ngModel;
|
471
|
-
_this.formControlName = formControlName;
|
472
|
-
_this._scrollStrategyFactory = _scrollStrategyFactory;
|
473
|
-
_this.mcValidation = mcValidation;
|
474
|
-
/** A name for this control that can be used by `mc-form-field`. */
|
475
|
-
_this.controlType = 'select';
|
476
|
-
_this.hiddenItems = 0;
|
477
|
-
/** The cached font-size of the trigger element. */
|
478
|
-
_this.triggerFontSize = 0;
|
479
|
-
_this.previousSelectionModelSelected = [];
|
480
|
-
/** The value of the select panel's transform-origin property. */
|
481
|
-
_this.transformOrigin = 'top';
|
482
|
-
/** Emits when the panel element is finished transforming in. */
|
483
|
-
_this.panelDoneAnimatingStream = new rxjs.Subject();
|
484
|
-
/** Strategy that will be used to handle scrolling while the select panel is open. */
|
485
|
-
_this.scrollStrategy = _this._scrollStrategyFactory();
|
486
|
-
/**
|
487
|
-
* The y-offset of the overlay panel in relation to the trigger's top start corner.
|
488
|
-
* This must be adjusted to align the selected option text over the trigger text.
|
489
|
-
* when the panel opens. Will change based on the y-position of the selected option.
|
490
|
-
*/
|
491
|
-
_this.offsetY = 0;
|
492
|
-
/**
|
493
|
-
* This position config ensures that the top "start" corner of the overlay
|
494
|
-
* is aligned with with the top "start" of the origin by default (overlapping
|
495
|
-
* the trigger completely). If the panel cannot fit below the trigger, it
|
496
|
-
* will fall back to a position above the trigger.
|
497
|
-
*/
|
498
|
-
_this.positions = [
|
499
|
-
{
|
500
|
-
originX: 'start',
|
501
|
-
originY: 'bottom',
|
502
|
-
overlayX: 'start',
|
503
|
-
overlayY: 'top'
|
504
|
-
},
|
505
|
-
{
|
506
|
-
originX: 'start',
|
507
|
-
originY: 'top',
|
508
|
-
overlayX: 'start',
|
509
|
-
overlayY: 'bottom'
|
510
|
-
}
|
511
|
-
];
|
512
|
-
_this.hiddenItemsText = '...ещё';
|
513
|
-
_this.backdropClass = 'cdk-overlay-transparent-backdrop';
|
514
|
-
/** Combined stream of all of the child options' change events. */
|
515
|
-
_this.optionSelectionChanges = rxjs.defer(function () {
|
516
|
-
if (_this.options) {
|
517
|
-
return rxjs.merge.apply(void 0, __spreadArray(__spreadArray([], __read(_this.options.map(function (option) { return option.onSelectionChange; }))), __read(_this.selectionModel.selected.map(function (option) { return option.onSelectionChange; }))));
|
518
|
-
}
|
519
|
-
return _this._ngZone.onStable
|
520
|
-
.asObservable()
|
521
|
-
.pipe(operators.take(1), operators.switchMap(function () { return _this.optionSelectionChanges; }));
|
522
|
-
});
|
523
|
-
/** Event emitted when the select panel has been toggled. */
|
524
|
-
_this.openedChange = new i0.EventEmitter();
|
525
|
-
/** Event emitted when the select has been opened. */
|
526
|
-
_this.openedStream = _this.openedChange.pipe(operators.filter(function (o) { return o; }), operators.map(function () { }));
|
527
|
-
/** Event emitted when the select has been closed. */
|
528
|
-
_this.closedStream = _this.openedChange.pipe(operators.filter(function (o) { return !o; }), operators.map(function () { }));
|
529
|
-
/** Event emitted when the selected value has been changed by the user. */
|
530
|
-
_this.selectionChange = new i0.EventEmitter();
|
531
|
-
/**
|
532
|
-
* Event that emits whenever the raw value of the select changes. This is here primarily
|
533
|
-
* to facilitate the two-way binding for the `value` input.
|
534
|
-
* @docs-private
|
535
|
-
*/
|
536
|
-
_this.valueChange = new i0.EventEmitter();
|
537
|
-
_this._hasBackdrop = false;
|
538
|
-
_this._required = false;
|
539
|
-
_this._multiple = false;
|
540
|
-
_this._focused = false;
|
541
|
-
_this.panelOpen = false;
|
542
|
-
_this.closeSubscription = rxjs.Subscription.EMPTY;
|
543
|
-
/** The scroll position of the overlay panel, calculated to center the selected option. */
|
544
|
-
_this.scrollTop = 0;
|
545
|
-
/** Unique id for this input. */
|
546
|
-
_this.uid = "mc-select-" + nextUniqueId++;
|
547
|
-
/** Emits whenever the component is destroyed. */
|
548
|
-
_this.destroy = new rxjs.Subject();
|
549
|
-
/** `View -> model callback called when value changes` */
|
550
|
-
_this.onChange = function () { };
|
551
|
-
/** `View -> model callback called when select has been touched` */
|
552
|
-
_this.onTouched = function () { };
|
553
|
-
/** Comparison function to specify which option is displayed. Defaults to object equality. */
|
554
|
-
_this._compareWith = function (o1, o2) { return o1 === o2; };
|
555
|
-
if (_this.ngControl) {
|
556
|
-
// Note: we provide the value accessor through here, instead of
|
557
|
-
// the `providers` to avoid running into a circular import.
|
558
|
-
_this.ngControl.valueAccessor = _this;
|
559
|
-
}
|
560
|
-
// Force setter to be called in case id was not specified.
|
561
|
-
_this.id = _this.id;
|
562
|
-
return _this;
|
563
|
-
}
|
564
|
-
Object.defineProperty(McSelect.prototype, "hasBackdrop", {
|
565
|
-
get: function () {
|
566
|
-
return this._hasBackdrop;
|
567
|
-
},
|
568
|
-
set: function (value) {
|
569
|
-
this._hasBackdrop = coercion.coerceBooleanProperty(value);
|
570
|
-
},
|
571
|
-
enumerable: false,
|
572
|
-
configurable: true
|
573
|
-
});
|
574
|
-
Object.defineProperty(McSelect.prototype, "placeholder", {
|
575
|
-
get: function () {
|
576
|
-
return this._placeholder;
|
577
|
-
},
|
578
|
-
set: function (value) {
|
579
|
-
this._placeholder = value;
|
580
|
-
this.stateChanges.next();
|
581
|
-
},
|
582
|
-
enumerable: false,
|
583
|
-
configurable: true
|
584
|
-
});
|
585
|
-
Object.defineProperty(McSelect.prototype, "required", {
|
586
|
-
get: function () {
|
587
|
-
return this._required;
|
588
|
-
},
|
589
|
-
set: function (value) {
|
590
|
-
this._required = coercion.coerceBooleanProperty(value);
|
591
|
-
this.stateChanges.next();
|
592
|
-
},
|
593
|
-
enumerable: false,
|
594
|
-
configurable: true
|
595
|
-
});
|
596
|
-
Object.defineProperty(McSelect.prototype, "multiple", {
|
597
|
-
get: function () {
|
598
|
-
return this._multiple;
|
599
|
-
},
|
600
|
-
set: function (value) {
|
601
|
-
if (this.selectionModel) {
|
602
|
-
throw i2.getMcSelectDynamicMultipleError();
|
603
|
-
}
|
604
|
-
this._multiple = coercion.coerceBooleanProperty(value);
|
605
|
-
},
|
606
|
-
enumerable: false,
|
607
|
-
configurable: true
|
608
|
-
});
|
609
|
-
Object.defineProperty(McSelect.prototype, "compareWith", {
|
610
|
-
/**
|
611
|
-
* Function to compare the option values with the selected values. The first argument
|
612
|
-
* is a value from an option. The second is a value from the selection. A boolean
|
613
|
-
* should be returned.
|
614
|
-
*/
|
615
|
-
get: function () {
|
616
|
-
return this._compareWith;
|
617
|
-
},
|
618
|
-
set: function (fn) {
|
619
|
-
/* tslint:disable-next-line:strict-type-predicates */
|
620
|
-
if (typeof fn !== 'function') {
|
621
|
-
throw i2.getMcSelectNonFunctionValueError();
|
622
|
-
}
|
623
|
-
this._compareWith = fn;
|
624
|
-
if (this.selectionModel) {
|
625
|
-
// A different comparator means the selection could change.
|
626
|
-
this.initializeSelection();
|
627
|
-
}
|
628
|
-
},
|
629
|
-
enumerable: false,
|
630
|
-
configurable: true
|
631
|
-
});
|
632
|
-
Object.defineProperty(McSelect.prototype, "value", {
|
633
|
-
/** Value of the select control. */
|
634
|
-
get: function () {
|
635
|
-
return this._value;
|
636
|
-
},
|
637
|
-
set: function (newValue) {
|
638
|
-
if (newValue !== this._value) {
|
639
|
-
this.writeValue(newValue);
|
640
|
-
this._value = newValue;
|
641
|
-
}
|
642
|
-
},
|
643
|
-
enumerable: false,
|
644
|
-
configurable: true
|
645
|
-
});
|
646
|
-
Object.defineProperty(McSelect.prototype, "id", {
|
647
|
-
get: function () {
|
648
|
-
return this._id;
|
649
|
-
},
|
650
|
-
set: function (value) {
|
651
|
-
this._id = value || this.uid;
|
652
|
-
this.stateChanges.next();
|
653
|
-
},
|
654
|
-
enumerable: false,
|
655
|
-
configurable: true
|
656
|
-
});
|
657
|
-
Object.defineProperty(McSelect.prototype, "focused", {
|
658
|
-
/** Whether the select is focused. */
|
659
|
-
get: function () {
|
660
|
-
return this._focused || this.panelOpen;
|
661
|
-
},
|
662
|
-
set: function (value) {
|
663
|
-
this._focused = value;
|
664
|
-
},
|
665
|
-
enumerable: false,
|
666
|
-
configurable: true
|
667
|
-
});
|
668
|
-
Object.defineProperty(McSelect.prototype, "isEmptySearchResult", {
|
669
|
-
get: function () {
|
670
|
-
return this.search && this.options.length === 0 && !!this.search.input.value;
|
671
|
-
},
|
672
|
-
enumerable: false,
|
673
|
-
configurable: true
|
674
|
-
});
|
675
|
-
Object.defineProperty(McSelect.prototype, "canShowCleaner", {
|
676
|
-
get: function () {
|
677
|
-
return this.cleaner && this.selectionModel.hasValue();
|
678
|
-
},
|
679
|
-
enumerable: false,
|
680
|
-
configurable: true
|
681
|
-
});
|
682
|
-
Object.defineProperty(McSelect.prototype, "selected", {
|
683
|
-
get: function () {
|
684
|
-
return this.multiple ? this.selectionModel.selected : this.selectionModel.selected[0];
|
685
|
-
},
|
686
|
-
enumerable: false,
|
687
|
-
configurable: true
|
688
|
-
});
|
689
|
-
Object.defineProperty(McSelect.prototype, "triggerValue", {
|
690
|
-
get: function () {
|
691
|
-
if (this.empty) {
|
692
|
-
return '';
|
693
|
-
}
|
694
|
-
return this.selectionModel.selected[0].viewValue;
|
695
|
-
},
|
696
|
-
enumerable: false,
|
697
|
-
configurable: true
|
698
|
-
});
|
699
|
-
Object.defineProperty(McSelect.prototype, "triggerValues", {
|
700
|
-
get: function () {
|
701
|
-
if (this.empty) {
|
702
|
-
return [];
|
703
|
-
}
|
704
|
-
var selectedOptions = this.selectionModel.selected;
|
705
|
-
if (this.isRtl()) {
|
706
|
-
selectedOptions.reverse();
|
707
|
-
}
|
708
|
-
return selectedOptions;
|
709
|
-
},
|
710
|
-
enumerable: false,
|
711
|
-
configurable: true
|
712
|
-
});
|
713
|
-
Object.defineProperty(McSelect.prototype, "empty", {
|
714
|
-
get: function () {
|
715
|
-
return !this.selectionModel || this.selectionModel.isEmpty();
|
716
|
-
},
|
717
|
-
enumerable: false,
|
718
|
-
configurable: true
|
719
|
-
});
|
720
|
-
McSelect.prototype.ngOnInit = function () {
|
721
|
-
var _this = this;
|
722
|
-
this.selectionModel = new collections.SelectionModel(this.multiple);
|
723
|
-
this.stateChanges.next();
|
724
|
-
// We need `distinctUntilChanged` here, because some browsers will
|
725
|
-
// fire the animation end event twice for the same animation. See:
|
726
|
-
// https://github.com/angular/angular/issues/24084
|
727
|
-
this.panelDoneAnimatingStream
|
728
|
-
.pipe(operators.distinctUntilChanged(), operators.takeUntil(this.destroy))
|
729
|
-
.subscribe(function () {
|
730
|
-
if (_this.panelOpen) {
|
731
|
-
_this.scrollTop = 0;
|
732
|
-
if (_this.search) {
|
733
|
-
_this.search.focus();
|
734
|
-
}
|
735
|
-
_this.openedChange.emit(true);
|
736
|
-
}
|
737
|
-
else {
|
738
|
-
_this.openedChange.emit(false);
|
739
|
-
_this._changeDetectorRef.markForCheck();
|
740
|
-
}
|
741
|
-
});
|
742
|
-
};
|
743
|
-
McSelect.prototype.ngAfterContentInit = function () {
|
744
|
-
var _this = this;
|
745
|
-
if (this.mcValidation.useValidation) {
|
746
|
-
i2.setMosaicValidation(this);
|
747
|
-
}
|
748
|
-
this.initKeyManager();
|
749
|
-
this.selectionModel.changed
|
750
|
-
.pipe(operators.takeUntil(this.destroy))
|
751
|
-
.subscribe(function (event) {
|
752
|
-
event.added.forEach(function (option) { return option.select(); });
|
753
|
-
event.removed.forEach(function (option) { return option.deselect(); });
|
754
|
-
});
|
755
|
-
this.options.changes
|
756
|
-
.pipe(operators.startWith(null), operators.takeUntil(this.destroy))
|
757
|
-
.subscribe(function () {
|
758
|
-
_this.resetOptions();
|
759
|
-
_this.initializeSelection();
|
760
|
-
});
|
761
|
-
};
|
762
|
-
McSelect.prototype.ngAfterViewInit = function () {
|
763
|
-
var _this = this;
|
764
|
-
this.tags.changes
|
765
|
-
.subscribe(function () {
|
766
|
-
setTimeout(function () { return _this.calculateHiddenItems(); }, 0);
|
767
|
-
});
|
768
|
-
};
|
769
|
-
McSelect.prototype.ngDoCheck = function () {
|
770
|
-
if (this.ngControl) {
|
771
|
-
this.updateErrorState();
|
772
|
-
}
|
773
|
-
};
|
774
|
-
McSelect.prototype.ngOnChanges = function (changes) {
|
775
|
-
// Updating the disabled state is handled by `mixinDisabled`, but we need to additionally let
|
776
|
-
// the parent form field know to run change detection when the disabled state changes.
|
777
|
-
if (changes.disabled) {
|
778
|
-
this.stateChanges.next();
|
779
|
-
}
|
780
|
-
};
|
781
|
-
McSelect.prototype.ngOnDestroy = function () {
|
782
|
-
this.destroy.next();
|
783
|
-
this.destroy.complete();
|
784
|
-
this.stateChanges.complete();
|
785
|
-
this.closeSubscription.unsubscribe();
|
786
|
-
};
|
787
|
-
McSelect.prototype.hiddenItemsTextFormatter = function (hiddenItemsText, hiddenItems) {
|
788
|
-
return hiddenItemsText + " " + hiddenItems;
|
789
|
-
};
|
790
|
-
McSelect.prototype.clearValue = function ($event) {
|
791
|
-
$event.stopPropagation();
|
792
|
-
this.selectionModel.clear();
|
793
|
-
this.keyManager.setActiveItem(-1);
|
794
|
-
this.propagateChanges();
|
795
|
-
};
|
796
|
-
McSelect.prototype.resetSearch = function () {
|
797
|
-
if (!this.search) {
|
798
|
-
return;
|
799
|
-
}
|
800
|
-
this.search.reset();
|
801
|
-
/*
|
802
|
-
todo the incorrect behaviour of keyManager is possible here
|
803
|
-
to avoid first item selection (to provide correct options flipping on closed select)
|
804
|
-
we should process options update like it is the first options appearance
|
805
|
-
*/
|
806
|
-
this.search.isSearchChanged = false;
|
807
|
-
};
|
808
|
-
/** Toggles the overlay panel open or closed. */
|
809
|
-
McSelect.prototype.toggle = function () {
|
810
|
-
if (this.panelOpen) {
|
811
|
-
this.close();
|
812
|
-
}
|
813
|
-
else {
|
814
|
-
this.open();
|
815
|
-
}
|
816
|
-
};
|
817
|
-
/** Opens the overlay panel. */
|
818
|
-
McSelect.prototype.open = function () {
|
819
|
-
var _this = this;
|
820
|
-
var _a;
|
821
|
-
if (this.disabled || !((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) || this.panelOpen) {
|
822
|
-
return;
|
823
|
-
}
|
824
|
-
this.triggerRect = this.trigger.nativeElement.getBoundingClientRect();
|
825
|
-
// Note: The computed font-size will be a string pixel value (e.g. "16px").
|
826
|
-
// `parseInt` ignores the trailing 'px' and converts this to a number.
|
827
|
-
this.triggerFontSize = parseInt(getComputedStyle(this.trigger.nativeElement)['font-size']);
|
828
|
-
this.panelOpen = true;
|
829
|
-
this.keyManager.withHorizontalOrientation(null);
|
830
|
-
this.highlightCorrectOption();
|
831
|
-
this._changeDetectorRef.markForCheck();
|
832
|
-
// Set the font size on the panel element once it exists.
|
833
|
-
this._ngZone.onStable.asObservable()
|
834
|
-
.pipe(operators.take(1))
|
835
|
-
.subscribe(function () {
|
836
|
-
_this.scrollActiveOptionIntoView();
|
837
|
-
if (_this.triggerFontSize && _this.overlayDir.overlayRef && _this.overlayDir.overlayRef.overlayElement) {
|
838
|
-
_this.overlayDir.overlayRef.overlayElement.style.fontSize = _this.triggerFontSize + "px";
|
839
|
-
}
|
840
|
-
});
|
841
|
-
};
|
842
|
-
/** Closes the overlay panel and focuses the host element. */
|
843
|
-
McSelect.prototype.close = function () {
|
844
|
-
if (!this.panelOpen) {
|
845
|
-
return;
|
846
|
-
}
|
847
|
-
// the order of calls is important
|
848
|
-
this.resetSearch();
|
849
|
-
this.panelOpen = false;
|
850
|
-
this.keyManager.withHorizontalOrientation(this.isRtl() ? 'rtl' : 'ltr');
|
851
|
-
this._changeDetectorRef.markForCheck();
|
852
|
-
this.onTouched();
|
853
|
-
};
|
854
|
-
/**
|
855
|
-
* Sets the select's value. Part of the ControlValueAccessor interface
|
856
|
-
* required to integrate with Angular's core forms API.
|
857
|
-
*
|
858
|
-
* @param value New value to be written to the model.
|
859
|
-
*/
|
860
|
-
McSelect.prototype.writeValue = function (value) {
|
861
|
-
if (this.options) {
|
862
|
-
this.setSelectionByValue(value);
|
863
|
-
}
|
864
|
-
};
|
865
|
-
/**
|
866
|
-
* Saves a callback function to be invoked when the select's value
|
867
|
-
* changes from user input. Part of the ControlValueAccessor interface
|
868
|
-
* required to integrate with Angular's core forms API.
|
869
|
-
*
|
870
|
-
* @param fn Callback to be triggered when the value changes.
|
871
|
-
*/
|
872
|
-
McSelect.prototype.registerOnChange = function (fn) {
|
873
|
-
this.onChange = fn;
|
874
|
-
};
|
875
|
-
/**
|
876
|
-
* Saves a callback function to be invoked when the select is blurred
|
877
|
-
* by the user. Part of the ControlValueAccessor interface required
|
878
|
-
* to integrate with Angular's core forms API.
|
879
|
-
*
|
880
|
-
* @param fn Callback to be triggered when the component has been touched.
|
881
|
-
*/
|
882
|
-
McSelect.prototype.registerOnTouched = function (fn) {
|
883
|
-
this.onTouched = fn;
|
884
|
-
};
|
885
|
-
/**
|
886
|
-
* Disables the select. Part of the ControlValueAccessor interface required
|
887
|
-
* to integrate with Angular's core forms API.
|
888
|
-
*
|
889
|
-
* @param isDisabled Sets whether the component is disabled.
|
890
|
-
*/
|
891
|
-
McSelect.prototype.setDisabledState = function (isDisabled) {
|
892
|
-
this.disabled = isDisabled;
|
893
|
-
this._changeDetectorRef.markForCheck();
|
894
|
-
this.stateChanges.next();
|
895
|
-
};
|
896
|
-
McSelect.prototype.isRtl = function () {
|
897
|
-
return this._dir ? this._dir.value === 'rtl' : false;
|
898
|
-
};
|
899
|
-
McSelect.prototype.handleKeydown = function (event) {
|
900
|
-
if (this.disabled) {
|
901
|
-
return;
|
902
|
-
}
|
903
|
-
if (this.panelOpen) {
|
904
|
-
this.handleOpenKeydown(event);
|
905
|
-
}
|
906
|
-
else {
|
907
|
-
this.handleClosedKeydown(event);
|
908
|
-
}
|
909
|
-
};
|
910
|
-
McSelect.prototype.onFocus = function () {
|
911
|
-
if (!this.disabled) {
|
912
|
-
this._focused = true;
|
913
|
-
this.stateChanges.next();
|
914
|
-
}
|
915
|
-
};
|
916
|
-
/**
|
917
|
-
* Calls the touched callback only if the panel is closed. Otherwise, the trigger will
|
918
|
-
* "blur" to the panel when it opens, causing a false positive.
|
919
|
-
*/
|
920
|
-
McSelect.prototype.onBlur = function () {
|
921
|
-
this._focused = false;
|
922
|
-
if (!this.disabled && !this.panelOpen) {
|
923
|
-
this.onTouched();
|
924
|
-
this._changeDetectorRef.markForCheck();
|
925
|
-
this.stateChanges.next();
|
926
|
-
}
|
927
|
-
};
|
928
|
-
/**
|
929
|
-
* Callback that is invoked when the overlay panel has been attached.
|
930
|
-
*/
|
931
|
-
McSelect.prototype.onAttached = function () {
|
932
|
-
var _this = this;
|
933
|
-
this.overlayDir.positionChange
|
934
|
-
.pipe(operators.take(1))
|
935
|
-
.subscribe(function () {
|
936
|
-
_this._changeDetectorRef.detectChanges();
|
937
|
-
_this.setOverlayPosition();
|
938
|
-
_this.optionsContainer.nativeElement.scrollTop = _this.scrollTop;
|
939
|
-
_this.updateScrollSize();
|
940
|
-
});
|
941
|
-
this.closeSubscription = this.closingActions()
|
942
|
-
.subscribe(function () { return _this.close(); });
|
943
|
-
};
|
944
|
-
/** Returns the theme to be used on the panel. */
|
945
|
-
McSelect.prototype.getPanelTheme = function () {
|
946
|
-
return this._parentFormField ? "mc-" + this._parentFormField.color : '';
|
947
|
-
};
|
948
|
-
/** Focuses the select element. */
|
949
|
-
McSelect.prototype.focus = function () {
|
950
|
-
this.elementRef.nativeElement.focus();
|
951
|
-
};
|
952
|
-
/**
|
953
|
-
* Implemented as part of McFormFieldControl.
|
954
|
-
* @docs-private
|
955
|
-
*/
|
956
|
-
McSelect.prototype.onContainerClick = function () {
|
957
|
-
this.focus();
|
958
|
-
};
|
959
|
-
/** Invoked when an option is clicked. */
|
960
|
-
McSelect.prototype.onRemoveMatcherItem = function (option, $event) {
|
961
|
-
$event.stopPropagation();
|
962
|
-
option.deselect();
|
963
|
-
};
|
964
|
-
McSelect.prototype.calculateHiddenItems = function () {
|
965
|
-
var _this = this;
|
966
|
-
if (this.customTrigger || this.empty || !this.multiple) {
|
967
|
-
return;
|
968
|
-
}
|
969
|
-
var visibleItems = 0;
|
970
|
-
var totalItemsWidth = this.getTotalItemsWidthInMatcher();
|
971
|
-
var totalVisibleItemsWidth = 0;
|
972
|
-
this.tags.forEach(function (tag) {
|
973
|
-
if (tag.nativeElement.offsetTop < tag.nativeElement.offsetHeight) {
|
974
|
-
totalVisibleItemsWidth += _this.getItemWidth(tag.nativeElement);
|
975
|
-
visibleItems++;
|
976
|
-
}
|
977
|
-
});
|
978
|
-
this.hiddenItems = this.selected.length - visibleItems;
|
979
|
-
if (this.hiddenItems) {
|
980
|
-
var itemsCounter = this.trigger.nativeElement.querySelector('.mc-select__match-hidden-text');
|
981
|
-
var matcherList = this.trigger.nativeElement.querySelector('.mc-select__match-list');
|
982
|
-
var itemsCounterShowed = itemsCounter.offsetTop < itemsCounter.offsetHeight;
|
983
|
-
// const itemsCounterWidth: number = itemsCounter.getBoundingClientRect().width;
|
984
|
-
var itemsCounterWidth = 86;
|
985
|
-
var matcherListWidth = matcherList.getBoundingClientRect().width;
|
986
|
-
var matcherWidth = matcherListWidth + itemsCounterWidth;
|
987
|
-
if (itemsCounterShowed && (totalItemsWidth < matcherWidth)) {
|
988
|
-
this.hiddenItems = 0;
|
989
|
-
}
|
990
|
-
if (totalVisibleItemsWidth === matcherListWidth ||
|
991
|
-
(totalVisibleItemsWidth + itemsCounterWidth) < matcherListWidth) {
|
992
|
-
this._changeDetectorRef.markForCheck();
|
993
|
-
return;
|
994
|
-
}
|
995
|
-
else if (!itemsCounterShowed && (totalItemsWidth + itemsCounterWidth) > matcherWidth) {
|
996
|
-
this.hiddenItems++;
|
997
|
-
}
|
998
|
-
}
|
999
|
-
this._changeDetectorRef.markForCheck();
|
1000
|
-
};
|
1001
|
-
McSelect.prototype.getItemHeight = function () {
|
1002
|
-
return this.options.first ? this.options.first.getHeight() : 0;
|
1003
|
-
};
|
1004
|
-
McSelect.prototype.closingActions = function () {
|
1005
|
-
var _this = this;
|
1006
|
-
return rxjs.merge(this.overlayDir.overlayRef.outsidePointerEvents()
|
1007
|
-
.pipe(operators.filter(function (event) { return !_this.elementRef.nativeElement.contains(event.target); })), this.overlayDir.overlayRef.detachments());
|
1008
|
-
};
|
1009
|
-
McSelect.prototype.getHeightOfOptionsContainer = function () {
|
1010
|
-
return this.optionsContainer.nativeElement.getClientRects()[0].height;
|
1011
|
-
};
|
1012
|
-
McSelect.prototype.updateScrollSize = function () {
|
1013
|
-
if (!this.options.first) {
|
1014
|
-
return;
|
1015
|
-
}
|
1016
|
-
this.keyManager.withScrollSize(Math.floor(this.getHeightOfOptionsContainer() / this.options.first.getHeight()));
|
1017
|
-
};
|
1018
|
-
McSelect.prototype.getTotalItemsWidthInMatcher = function () {
|
1019
|
-
var _this = this;
|
1020
|
-
var triggerClone = this.trigger.nativeElement.cloneNode(true);
|
1021
|
-
triggerClone.querySelector('.mc-select__match-hidden-text').remove();
|
1022
|
-
this._renderer.setStyle(triggerClone, 'position', 'absolute');
|
1023
|
-
this._renderer.setStyle(triggerClone, 'visibility', 'hidden');
|
1024
|
-
this._renderer.setStyle(triggerClone, 'top', '-100%');
|
1025
|
-
this._renderer.setStyle(triggerClone, 'left', '0');
|
1026
|
-
this._renderer.appendChild(this.trigger.nativeElement, triggerClone);
|
1027
|
-
var totalItemsWidth = 0;
|
1028
|
-
triggerClone.querySelectorAll('mc-tag').forEach(function (item) {
|
1029
|
-
totalItemsWidth += _this.getItemWidth(item);
|
1030
|
-
});
|
1031
|
-
triggerClone.remove();
|
1032
|
-
return totalItemsWidth;
|
1033
|
-
};
|
1034
|
-
McSelect.prototype.getItemWidth = function (element) {
|
1035
|
-
var computedStyle = window.getComputedStyle(element);
|
1036
|
-
var width = parseInt(computedStyle.width);
|
1037
|
-
var marginLeft = parseInt(computedStyle.marginLeft);
|
1038
|
-
var marginRight = parseInt(computedStyle.marginRight);
|
1039
|
-
return width + marginLeft + marginRight;
|
1040
|
-
};
|
1041
|
-
/** Handles keyboard events while the select is closed. */
|
1042
|
-
McSelect.prototype.handleClosedKeydown = function (event) {
|
1043
|
-
/* tslint:disable-next-line */
|
1044
|
-
var keyCode = event.keyCode;
|
1045
|
-
var isArrowKey = [keycodes.DOWN_ARROW, keycodes.UP_ARROW, keycodes.LEFT_ARROW, keycodes.RIGHT_ARROW].includes(keyCode);
|
1046
|
-
var isOpenKey = [keycodes.ENTER, keycodes.SPACE].includes(keyCode);
|
1047
|
-
// Open the select on ALT + arrow key to match the native <select>
|
1048
|
-
if (isOpenKey || ((this.multiple || event.altKey) && isArrowKey)) {
|
1049
|
-
event.preventDefault(); // prevents the page from scrolling down when pressing space
|
1050
|
-
this.open();
|
1051
|
-
}
|
1052
|
-
else if (!this.multiple) {
|
1053
|
-
this.keyManager.onKeydown(event);
|
1054
|
-
}
|
1055
|
-
};
|
1056
|
-
/** Handles keyboard events when the selected is open. */
|
1057
|
-
McSelect.prototype.handleOpenKeydown = function (event) {
|
1058
|
-
/* tslint:disable-next-line */
|
1059
|
-
var keyCode = event.keyCode;
|
1060
|
-
var isArrowKey = keyCode === keycodes.DOWN_ARROW || keyCode === keycodes.UP_ARROW;
|
1061
|
-
if (isArrowKey && event.altKey) {
|
1062
|
-
// Close the select on ALT + arrow key to match the native <select>
|
1063
|
-
event.preventDefault();
|
1064
|
-
this.close();
|
1065
|
-
}
|
1066
|
-
else if (keyCode === keycodes.HOME) {
|
1067
|
-
event.preventDefault();
|
1068
|
-
this.keyManager.setFirstItemActive();
|
1069
|
-
}
|
1070
|
-
else if (keyCode === keycodes.END) {
|
1071
|
-
event.preventDefault();
|
1072
|
-
this.keyManager.setLastItemActive();
|
1073
|
-
}
|
1074
|
-
else if (keyCode === keycodes.PAGE_UP) {
|
1075
|
-
event.preventDefault();
|
1076
|
-
this.keyManager.setPreviousPageItemActive();
|
1077
|
-
}
|
1078
|
-
else if (keyCode === keycodes.PAGE_DOWN) {
|
1079
|
-
event.preventDefault();
|
1080
|
-
this.keyManager.setNextPageItemActive();
|
1081
|
-
}
|
1082
|
-
else if ((keyCode === keycodes.ENTER || keyCode === keycodes.SPACE) && this.keyManager.activeItem) {
|
1083
|
-
event.preventDefault();
|
1084
|
-
this.keyManager.activeItem.selectViaInteraction();
|
1085
|
-
}
|
1086
|
-
else if (this._multiple && keyCode === keycodes.A && event.ctrlKey) {
|
1087
|
-
event.preventDefault();
|
1088
|
-
var hasDeselectedOptions_1 = this.options.some(function (option) { return !option.selected; });
|
1089
|
-
this.options.forEach(function (option) {
|
1090
|
-
if (hasDeselectedOptions_1 && !option.disabled) {
|
1091
|
-
option.select();
|
1092
|
-
}
|
1093
|
-
else {
|
1094
|
-
option.deselect();
|
1095
|
-
}
|
1096
|
-
});
|
1097
|
-
}
|
1098
|
-
else {
|
1099
|
-
var previouslyFocusedIndex = this.keyManager.activeItemIndex;
|
1100
|
-
this.keyManager.onKeydown(event);
|
1101
|
-
if (this._multiple && isArrowKey && event.shiftKey && this.keyManager.activeItem &&
|
1102
|
-
this.keyManager.activeItemIndex !== previouslyFocusedIndex) {
|
1103
|
-
this.keyManager.activeItem.selectViaInteraction();
|
1104
|
-
}
|
1105
|
-
if (this.search) {
|
1106
|
-
this.search.focus();
|
1107
|
-
}
|
1108
|
-
}
|
1109
|
-
};
|
1110
|
-
McSelect.prototype.initializeSelection = function () {
|
1111
|
-
var _this = this;
|
1112
|
-
// Defer setting the value in order to avoid the "Expression
|
1113
|
-
// has changed after it was checked" errors from Angular.
|
1114
|
-
Promise.resolve().then(function () {
|
1115
|
-
_this.setSelectionByValue(_this.ngControl ? _this.ngControl.value : _this._value);
|
1116
|
-
});
|
1117
|
-
};
|
1118
|
-
/**
|
1119
|
-
* Sets the selected option based on a value. If no option can be
|
1120
|
-
* found with the designated value, the select trigger is cleared.
|
1121
|
-
*/
|
1122
|
-
McSelect.prototype.setSelectionByValue = function (value) {
|
1123
|
-
var _this = this;
|
1124
|
-
this.previousSelectionModelSelected = this.selectionModel.selected;
|
1125
|
-
if (this.multiple && value) {
|
1126
|
-
if (!Array.isArray(value)) {
|
1127
|
-
throw i2.getMcSelectNonArrayValueError();
|
1128
|
-
}
|
1129
|
-
this.selectionModel.clear();
|
1130
|
-
value.forEach(function (currentValue) { return _this.selectValue(currentValue); });
|
1131
|
-
this.sortValues();
|
1132
|
-
}
|
1133
|
-
else {
|
1134
|
-
this.selectionModel.clear();
|
1135
|
-
var correspondingOption = this.selectValue(value);
|
1136
|
-
// Shift focus to the active item. Note that we shouldn't do this in multiple
|
1137
|
-
// mode, because we don't know what option the user interacted with last.
|
1138
|
-
if (correspondingOption) {
|
1139
|
-
this.keyManager.setActiveItem(correspondingOption);
|
1140
|
-
}
|
1141
|
-
}
|
1142
|
-
this._changeDetectorRef.markForCheck();
|
1143
|
-
};
|
1144
|
-
McSelect.prototype.getCorrespondOption = function (value) {
|
1145
|
-
var _this = this;
|
1146
|
-
return __spreadArray(__spreadArray([], __read(this.options.toArray())), __read(this.previousSelectionModelSelected)).find(function (option) {
|
1147
|
-
try {
|
1148
|
-
// Treat null as a special reset value.
|
1149
|
-
return option.value != null && _this.compareWith(option.value, value);
|
1150
|
-
}
|
1151
|
-
catch (error) {
|
1152
|
-
if (i0.isDevMode()) {
|
1153
|
-
// Notify developers of errors in their comparator.
|
1154
|
-
console.warn(error);
|
1155
|
-
}
|
1156
|
-
return false;
|
1157
|
-
}
|
1158
|
-
});
|
1159
|
-
};
|
1160
|
-
/**
|
1161
|
-
* Finds and selects and option based on its value.
|
1162
|
-
* @returns Option that has the corresponding value.
|
1163
|
-
*/
|
1164
|
-
McSelect.prototype.selectValue = function (value) {
|
1165
|
-
var correspondingOption = this.getCorrespondOption(value);
|
1166
|
-
if (correspondingOption) {
|
1167
|
-
this.selectionModel.select(correspondingOption);
|
1168
|
-
}
|
1169
|
-
return correspondingOption;
|
1170
|
-
};
|
1171
|
-
/** Sets up a key manager to listen to keyboard events on the overlay panel. */
|
1172
|
-
McSelect.prototype.initKeyManager = function () {
|
1173
|
-
var _this = this;
|
1174
|
-
var typeAheadDebounce = 200;
|
1175
|
-
this.keyManager = new a11y.ActiveDescendantKeyManager(this.options)
|
1176
|
-
.withTypeAhead(typeAheadDebounce, this.search ? -1 : 0)
|
1177
|
-
.withVerticalOrientation()
|
1178
|
-
.withHorizontalOrientation(this.isRtl() ? 'rtl' : 'ltr');
|
1179
|
-
this.keyManager.tabOut
|
1180
|
-
.pipe(operators.takeUntil(this.destroy))
|
1181
|
-
.subscribe(function () {
|
1182
|
-
// Restore focus to the trigger before closing. Ensures that the focus
|
1183
|
-
// position won't be lost if the user got focus into the overlay.
|
1184
|
-
_this.focus();
|
1185
|
-
_this.close();
|
1186
|
-
});
|
1187
|
-
this.keyManager.change
|
1188
|
-
.pipe(operators.takeUntil(this.destroy))
|
1189
|
-
.subscribe(function () {
|
1190
|
-
if (_this.panelOpen && _this.panel) {
|
1191
|
-
_this.scrollActiveOptionIntoView();
|
1192
|
-
}
|
1193
|
-
else if (!_this.panelOpen && !_this.multiple && _this.keyManager.activeItem) {
|
1194
|
-
_this.keyManager.activeItem.selectViaInteraction();
|
1195
|
-
}
|
1196
|
-
});
|
1197
|
-
};
|
1198
|
-
/** Drops current option subscriptions and IDs and resets from scratch. */
|
1199
|
-
McSelect.prototype.resetOptions = function () {
|
1200
|
-
var _this = this;
|
1201
|
-
var changedOrDestroyed = rxjs.merge(this.options.changes, this.destroy);
|
1202
|
-
this.optionSelectionChanges
|
1203
|
-
.pipe(operators.takeUntil(changedOrDestroyed))
|
1204
|
-
.subscribe(function (event) {
|
1205
|
-
_this.onSelect(event.source, event.isUserInput);
|
1206
|
-
if (_this.search && _this.search.isSearchChanged) {
|
1207
|
-
Promise.resolve().then(function () { return _this.keyManager.updateActiveItem(0); });
|
1208
|
-
_this.search.isSearchChanged = false;
|
1209
|
-
}
|
1210
|
-
if (event.isUserInput && !_this.multiple && _this.panelOpen) {
|
1211
|
-
_this.close();
|
1212
|
-
_this.focus();
|
1213
|
-
}
|
1214
|
-
});
|
1215
|
-
// Listen to changes in the internal state of the options and react accordingly.
|
1216
|
-
// Handles cases like the labels of the selected options changing.
|
1217
|
-
rxjs.merge.apply(void 0, __spreadArray([], __read(this.options.map(function (option) { return option.stateChanges; })))).pipe(operators.takeUntil(changedOrDestroyed))
|
1218
|
-
.subscribe(function () {
|
1219
|
-
_this._changeDetectorRef.markForCheck();
|
1220
|
-
_this.stateChanges.next();
|
1221
|
-
});
|
1222
|
-
};
|
1223
|
-
/** Invoked when an option is clicked. */
|
1224
|
-
McSelect.prototype.onSelect = function (option, isUserInput) {
|
1225
|
-
var wasSelected = this.selectionModel.isSelected(option);
|
1226
|
-
if (option.value == null && !this._multiple) {
|
1227
|
-
option.deselect();
|
1228
|
-
this.selectionModel.clear();
|
1229
|
-
this.propagateChanges(option.value);
|
1230
|
-
}
|
1231
|
-
else {
|
1232
|
-
if (option.selected) {
|
1233
|
-
this.selectionModel.select(option);
|
1234
|
-
}
|
1235
|
-
else {
|
1236
|
-
this.selectionModel.deselect(option);
|
1237
|
-
}
|
1238
|
-
if (isUserInput) {
|
1239
|
-
this.keyManager.setActiveItem(option);
|
1240
|
-
}
|
1241
|
-
if (this.multiple) {
|
1242
|
-
this.sortValues();
|
1243
|
-
if (isUserInput) {
|
1244
|
-
// In case the user selected the option with their mouse, we
|
1245
|
-
// want to restore focus back to the trigger, in order to
|
1246
|
-
// prevent the select keyboard controls from clashing with
|
1247
|
-
// the ones from `mc-option`.
|
1248
|
-
// If search is avaliable then we focus search again.
|
1249
|
-
if (this.search) {
|
1250
|
-
this.search.focus();
|
1251
|
-
}
|
1252
|
-
else {
|
1253
|
-
this.focus();
|
1254
|
-
}
|
1255
|
-
}
|
1256
|
-
}
|
1257
|
-
}
|
1258
|
-
if (wasSelected !== this.selectionModel.isSelected(option)) {
|
1259
|
-
this.propagateChanges();
|
1260
|
-
}
|
1261
|
-
this.stateChanges.next();
|
1262
|
-
};
|
1263
|
-
/** Sorts the selected values in the selected based on their order in the panel. */
|
1264
|
-
McSelect.prototype.sortValues = function () {
|
1265
|
-
var _this = this;
|
1266
|
-
if (this.multiple) {
|
1267
|
-
var options_1 = this.options.toArray();
|
1268
|
-
this.selectionModel.sort(function (a, b) {
|
1269
|
-
return _this.sortComparator ? _this.sortComparator(a, b, options_1) :
|
1270
|
-
options_1.indexOf(a) - options_1.indexOf(b);
|
1271
|
-
});
|
1272
|
-
this.stateChanges.next();
|
1273
|
-
}
|
1274
|
-
};
|
1275
|
-
/** Emits change event to set the model value. */
|
1276
|
-
McSelect.prototype.propagateChanges = function (fallbackValue) {
|
1277
|
-
var valueToEmit = null;
|
1278
|
-
if (this.multiple) {
|
1279
|
-
valueToEmit = this.selected.map(function (option) { return option.value; });
|
1280
|
-
}
|
1281
|
-
else {
|
1282
|
-
valueToEmit = this.selected ? this.selected.value : fallbackValue;
|
1283
|
-
}
|
1284
|
-
this._value = valueToEmit;
|
1285
|
-
this.valueChange.emit(valueToEmit);
|
1286
|
-
this.onChange(valueToEmit);
|
1287
|
-
this.selectionChange.emit(new McSelectChange(this, valueToEmit));
|
1288
|
-
this._changeDetectorRef.markForCheck();
|
1289
|
-
};
|
1290
|
-
/**
|
1291
|
-
* Highlights the selected item. If no option is selected, it will highlight
|
1292
|
-
* the first item instead.
|
1293
|
-
*/
|
1294
|
-
McSelect.prototype.highlightCorrectOption = function () {
|
1295
|
-
if (this.keyManager) {
|
1296
|
-
if (this.empty) {
|
1297
|
-
this.keyManager.setFirstItemActive();
|
1298
|
-
}
|
1299
|
-
else {
|
1300
|
-
this.keyManager.setActiveItem(this.selectionModel.selected[0]);
|
1301
|
-
}
|
1302
|
-
}
|
1303
|
-
};
|
1304
|
-
/** Scrolls the active option into view. */
|
1305
|
-
McSelect.prototype.scrollActiveOptionIntoView = function () {
|
1306
|
-
if (!this.keyManager.activeItem) {
|
1307
|
-
return;
|
1308
|
-
}
|
1309
|
-
this.keyManager.activeItem.focus();
|
1310
|
-
};
|
1311
|
-
/**
|
1312
|
-
* Sets the x-offset of the overlay panel in relation to the trigger's top start corner.
|
1313
|
-
* This must be adjusted to align the selected option text over the trigger text when
|
1314
|
-
* the panel opens. Will change based on LTR or RTL text direction. Note that the offset
|
1315
|
-
* can't be calculated until the panel has been attached, because we need to know the
|
1316
|
-
* content width in order to constrain the panel within the viewport.
|
1317
|
-
*/
|
1318
|
-
McSelect.prototype.setOverlayPosition = function () {
|
1319
|
-
var _b;
|
1320
|
-
this.resetOverlay();
|
1321
|
-
var overlayRect = this.getOverlayRect();
|
1322
|
-
// Window width without scrollbar
|
1323
|
-
var windowWidth = this.getOverlayWidth();
|
1324
|
-
var isRtl = this.isRtl();
|
1325
|
-
/* tslint:disable-next-line:no-magic-numbers */
|
1326
|
-
var paddingWidth = i2.SELECT_PANEL_PADDING_X * 2;
|
1327
|
-
var offsetX;
|
1328
|
-
var overlayMaxWidth;
|
1329
|
-
var selected = this.selectionModel.selected[0] || this.options.first;
|
1330
|
-
offsetX = selected && selected.group ? i2.SELECT_PANEL_INDENT_PADDING_X : i2.SELECT_PANEL_PADDING_X;
|
1331
|
-
// Invert the offset in LTR.
|
1332
|
-
if (!isRtl) {
|
1333
|
-
offsetX *= -1;
|
1334
|
-
}
|
1335
|
-
// Determine if select overflows on either side.
|
1336
|
-
var leftOverflow = 0 - (overlayRect.left + offsetX - (isRtl ? paddingWidth : 0));
|
1337
|
-
var rightOverflow = overlayRect.right + offsetX - windowWidth
|
1338
|
-
+ (isRtl ? 0 : paddingWidth);
|
1339
|
-
// If the element overflows on either side, reduce the offset to allow it to fit.
|
1340
|
-
if (leftOverflow > 0 || rightOverflow > 0) {
|
1341
|
-
_b = __read(this.calculateOverlayXPosition(overlayRect, windowWidth, offsetX), 2), offsetX = _b[0], overlayMaxWidth = _b[1];
|
1342
|
-
this.overlayDir.overlayRef.overlayElement.style.maxWidth = overlayMaxWidth + "px";
|
1343
|
-
}
|
1344
|
-
// Set the offset directly in order to avoid having to go through change detection and
|
1345
|
-
// potentially triggering "changed after it was checked" errors. Round the value to avoid
|
1346
|
-
// blurry content in some browsers.
|
1347
|
-
this.overlayDir.offsetX = Math.round(offsetX);
|
1348
|
-
this.overlayDir.overlayRef.updatePosition();
|
1349
|
-
};
|
1350
|
-
McSelect.prototype.calculateOverlayXPosition = function (overlayRect, windowWidth, basicOffsetX) {
|
1351
|
-
var offsetX = basicOffsetX;
|
1352
|
-
var leftIndent = this.triggerRect.left;
|
1353
|
-
var rightIndent = windowWidth - this.triggerRect.right;
|
1354
|
-
// Setting direction of dropdown expansion
|
1355
|
-
var isRightDirection = leftIndent <= rightIndent;
|
1356
|
-
var maxDropdownWidth;
|
1357
|
-
var overlayMaxWidth;
|
1358
|
-
var triggerWidth = this.triggerRect.width + i2.SELECT_PANEL_INDENT_PADDING_X;
|
1359
|
-
if (isRightDirection) {
|
1360
|
-
maxDropdownWidth = rightIndent + triggerWidth - i2.SELECT_PANEL_VIEWPORT_PADDING;
|
1361
|
-
overlayMaxWidth = overlayRect.width < maxDropdownWidth ? overlayRect.width : maxDropdownWidth;
|
1362
|
-
}
|
1363
|
-
else {
|
1364
|
-
var leftOffset = void 0;
|
1365
|
-
maxDropdownWidth = leftIndent + triggerWidth - i2.SELECT_PANEL_VIEWPORT_PADDING;
|
1366
|
-
if (overlayRect.width < maxDropdownWidth) {
|
1367
|
-
overlayMaxWidth = overlayRect.width;
|
1368
|
-
leftOffset = this.triggerRect.right - overlayMaxWidth;
|
1369
|
-
}
|
1370
|
-
else {
|
1371
|
-
overlayMaxWidth = maxDropdownWidth;
|
1372
|
-
leftOffset = this.triggerRect.right - (overlayMaxWidth - i2.SELECT_PANEL_INDENT_PADDING_X);
|
1373
|
-
}
|
1374
|
-
offsetX -= this.triggerRect.left - leftOffset;
|
1375
|
-
}
|
1376
|
-
return [offsetX, overlayMaxWidth];
|
1377
|
-
};
|
1378
|
-
McSelect.prototype.resetOverlay = function () {
|
1379
|
-
this.overlayDir.offsetX = 0;
|
1380
|
-
this.overlayDir.overlayRef.overlayElement.style.maxWidth = 'unset';
|
1381
|
-
this.overlayDir.overlayRef.updatePosition();
|
1382
|
-
};
|
1383
|
-
McSelect.prototype.getOverlayRect = function () {
|
1384
|
-
return this.overlayDir.overlayRef.overlayElement.getBoundingClientRect();
|
1385
|
-
};
|
1386
|
-
McSelect.prototype.getOverlayWidth = function () {
|
1387
|
-
return this.scrollStrategy._overlayRef.hostElement.clientWidth;
|
1388
|
-
};
|
1389
|
-
return McSelect;
|
1390
|
-
}(McSelectMixinBase));
|
1391
|
-
/** @nocollapse */ McSelect.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelect, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }, { token: i0__namespace.Renderer2 }, { token: i2__namespace.ErrorStateMatcher }, { token: i0__namespace.ElementRef }, { token: i4.NG_VALIDATORS, optional: true }, { token: i3__namespace.Directionality, optional: true }, { token: i4__namespace.NgForm, optional: true }, { token: i4__namespace.FormGroupDirective, optional: true }, { token: i1__namespace.McFormField, optional: true }, { token: i4__namespace.NgControl, optional: true, self: true }, { token: i4__namespace.NgModel, optional: true, self: true }, { token: i4__namespace.FormControlName, optional: true, self: true }, { token: i2.MC_SELECT_SCROLL_STRATEGY }, { token: i2.MC_VALIDATION, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1392
|
-
/** @nocollapse */ McSelect.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: McSelect, selector: "mc-select", inputs: { disabled: "disabled", tabIndex: "tabIndex", hiddenItemsText: "hiddenItemsText", panelClass: "panelClass", backdropClass: "backdropClass", errorStateMatcher: "errorStateMatcher", sortComparator: "sortComparator", hasBackdrop: "hasBackdrop", placeholder: "placeholder", required: "required", multiple: "multiple", compareWith: "compareWith", value: "value", id: "id", hiddenItemsTextFormatter: "hiddenItemsTextFormatter" }, outputs: { openedChange: "openedChange", openedStream: "opened", closedStream: "closed", selectionChange: "selectionChange", valueChange: "valueChange" }, host: { listeners: { "keydown": "handleKeydown($event)", "focus": "onFocus()", "blur": "onBlur()", "window:resize": "calculateHiddenItems()" }, properties: { "attr.id": "id", "attr.tabindex": "tabIndex", "attr.disabled": "disabled || null", "class.mc-disabled": "disabled", "class.mc-invalid": "errorState" }, classAttribute: "mc-select" }, providers: [
|
1393
|
-
{ provide: i1.McFormFieldControl, useExisting: McSelect },
|
1394
|
-
{ provide: i2.MC_OPTION_PARENT_COMPONENT, useExisting: McSelect }
|
1395
|
-
], queries: [{ propertyName: "customTrigger", first: true, predicate: McSelectTrigger, descendants: true }, { propertyName: "cleaner", first: true, predicate: ["mcSelectCleaner"], descendants: true, static: true }, { propertyName: "search", first: true, predicate: McSelectSearch, descendants: true }, { propertyName: "options", predicate: i2.McOption, descendants: true }, { propertyName: "optionGroups", predicate: i2.McOptgroup }], viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true }, { propertyName: "optionsContainer", first: true, predicate: ["optionsContainer"], descendants: true }, { propertyName: "overlayDir", first: true, predicate: i7.CdkConnectedOverlay, descendants: true }, { propertyName: "tags", predicate: i5.McTag, descendants: true }], exportAs: ["mcSelect"], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div cdk-overlay-origin\n class=\"mc-select__trigger\"\n (click)=\"toggle()\"\n [class.mc-select__trigger_multiple]=\"multiple\"\n #origin=\"cdkOverlayOrigin\"\n #trigger>\n <div class=\"mc-select__matcher\" [ngSwitch]=\"empty\">\n <span class=\"mc-select__placeholder\" *ngSwitchCase=\"true\">{{ placeholder || '\\u00A0' }}</span>\n <span *ngSwitchCase=\"false\" [ngSwitch]=\"!!customTrigger\">\n <div *ngSwitchDefault [ngSwitch]=\"multiple\" class=\"mc-select__match-container\">\n <span *ngSwitchCase=\"false\" class=\"mc-select__matcher-text\">{{ triggerValue }}</span>\n <div *ngSwitchCase=\"true\" class=\"mc-select__match-list\">\n <mc-tag *ngFor=\"let option of triggerValues\"\n [disabled]=\"option.disabled || disabled\"\n [selectable]=\"false\"\n [class.mc-error]=\"errorState\">\n {{ option.viewValue }}\n <i mc-icon=\"mc-close-S_16\"\n *ngIf=\"!option.disabled && !disabled\"\n (click)=\"onRemoveMatcherItem(option, $event)\">\n </i>\n </mc-tag>\n </div>\n <div class=\"mc-select__match-hidden-text\" [style.display]=\"hiddenItems > 0 ? 'block' : 'none'\">\n {{ hiddenItemsTextFormatter(hiddenItemsText, hiddenItems) }}\n </div>\n </div>\n <ng-content select=\"mc-select-trigger\" *ngSwitchCase=\"true\"></ng-content>\n </span>\n </div>\n\n <div class=\"mc-select__cleaner\" *ngIf=\"canShowCleaner\" (click)=\"clearValue($event)\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n </div>\n\n <div class=\"mc-select__arrow-wrapper\">\n <i class=\"mc-select__arrow\" mc-icon=\"mc-angle-down-L_16\"></i>\n </div>\n</div>\n\n<ng-template\n cdk-connected-overlay\n cdkConnectedOverlayLockPosition\n [cdkConnectedOverlayHasBackdrop]=\"hasBackdrop\"\n [cdkConnectedOverlayBackdropClass]=\"backdropClass\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"panelOpen\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"triggerRect?.width\"\n [cdkConnectedOverlayOffsetY]=\"offsetY\"\n (backdropClick)=\"close()\"\n (attach)=\"onAttached()\"\n (detach)=\"close()\">\n <div\n #panel\n class=\"mc-select__panel {{ getPanelTheme() }}\"\n [ngClass]=\"panelClass\"\n [style.transformOrigin]=\"transformOrigin\"\n [style.font-size.px]=\"triggerFontSize\"\n (keydown)=\"handleKeydown($event)\">\n\n <div *ngIf=\"search\" class=\"mc-select__search-container\">\n <ng-content select=\"[mcSelectSearch]\"></ng-content>\n </div>\n\n <div #optionsContainer\n class=\"mc-select__content\"\n [@fadeInContent]=\"'showing'\"\n (@fadeInContent.done)=\"panelDoneAnimatingStream.next($event.toState)\">\n\n <div *ngIf=\"isEmptySearchResult\" class=\"mc-select__no-options-message\">\n <ng-content select=\"[mc-select-search-empty-result]\"></ng-content>\n </div>\n <ng-content></ng-content>\n </div>\n </div>\n</ng-template>\n", styles: [".mc-option{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;position:relative;max-width:100%;height:32px;height:var(--mc-option-size-height, 32px);border:2px solid transparent;border:var(--mc-option-size-border-width, 2px) solid transparent;cursor:pointer;outline:none;padding-left:16px;padding-left:var(--mc-option-size-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mc-option-size-horizontal-padding, 16px);-webkit-tap-highlight-color:transparent}.mc-option.mc-disabled{cursor:default}.mc-option .mc-pseudo-checkbox{margin-right:8px}.mc-option .mc-option-overlay{position:absolute;top:calc(-1 * 2px);top:calc(-1 * var(--mc-option-size-border-width, 2px));left:calc(-1 * 2px);left:calc(-1 * var(--mc-option-size-border-width, 2px));right:calc(-1 * 2px);right:calc(-1 * var(--mc-option-size-border-width, 2px));bottom:calc(-1 * 2px);bottom:calc(-1 * var(--mc-option-size-border-width, 2px));pointer-events:none;border-radius:inherit}.mc-option-text{display:inline-block;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mc-select{box-sizing:border-box;display:inline-block;width:100%;outline:none}.mc-select .mc-select__trigger{display:flex;box-sizing:border-box;position:relative;height:30px;height:var(--mc-select-size-height, 30px);cursor:pointer;padding-left:calc(16px - 1px);padding-left:calc(var(--mc-select-size-left-padding, 16px) - var(--mc-form-field-size-border-width, 1px));padding-right:calc(8px - 1px);padding-right:calc(var(--mc-select-size-right-padding, 8px) - var(--mc-form-field-size-border-width, 1px))}.mc-select .mc-select__trigger.mc-select__trigger_multiple{padding-left:calc(8px - 1px);padding-left:calc(var(--mc-select-size-left-padding-multiple, 8px) - var(--mc-form-field-size-border-width, 1px))}.mc-select .mc-select__trigger.mc-select__trigger_multiple .mc-tag.mc-disabled .mc-tag__text{margin-right:7px}.mc-select.mc-disabled .mc-select__trigger{-webkit-user-select:none;user-select:none;cursor:default}.mc-select__no-options-message{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;position:relative;max-width:100%;height:32px;height:var(--mc-option-size-height, 32px);cursor:default;outline:none;padding-left:16px;padding-left:var(--mc-option-size-horizontal-padding, 16px);padding-right:16px;padding-right:var(--mc-option-size-horizontal-padding, 16px)}.mc-select__matcher{display:flex;align-items:center;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-select__matcher>span{width:100%}.mc-select__match-list{display:flex;flex-wrap:wrap;overflow:hidden;max-height:calc(30px - 1px);max-height:calc(var(--mc-select-size-height, 30px) - var(--mc-select-panel-size-border-width, 1px))}.mc-select__match-list .mc-tag{margin-right:4px}.mc-select__match-container{display:flex;flex-direction:row;justify-content:space-between;width:100%}.mc-select__match-container .mc-select__match-hidden-text{flex:0 0 70px;align-self:center;padding:0 8px;text-align:right}.mc-select__arrow-wrapper{align-self:center}.mc-form-field-appearance-fill .mc-select__arrow-wrapper,.mc-form-field-appearance-standard .mc-select__arrow-wrapper{transform:translateY(-50%)}.mc-form-field-appearance-outline .mc-select__arrow-wrapper{transform:translateY(-25%)}.mc-select__panel{min-width:100%;max-width:640px;max-width:var(--mc-select-panel-size-max-width, 640px);overflow:hidden;border-width:1px;border-width:var(--mc-select-panel-size-border-width, 1px);border-style:solid;border-bottom-left-radius:3px;border-bottom-left-radius:var(--mc-select-panel-size-border-radius, 3px);border-bottom-right-radius:3px;border-bottom-right-radius:var(--mc-select-panel-size-border-radius, 3px)}.mc-select__panel .mc-optgroup-label,.mc-select__panel .mc-option{font-size:inherit;line-height:32px;line-height:var(--mc-option-size-height, 32px);height:32px;height:var(--mc-option-size-height, 32px)}.mc-select__content{max-height:232px;max-height:var(--mc-select-panel-size-max-height, 232px);padding:4px 0;padding:var(--mc-select-panel-size-vertical-padding, 4px) 0;overflow:auto}.mc-select__content .cdk-virtual-scroll-viewport{min-height:232px-8px;min-height:var(--mc-select-panel-size-max-height, 232px)-8px;max-height:232px-8px;max-height:var(--mc-select-panel-size-max-height, 232px)-8px}.mc-form-field-type-select:not(.mc-disabled) .mc-form-field-flex{cursor:pointer}.mc-select__search-container{border-bottom-width:1px;border-bottom-style:solid}\n"], components: [{ type: i5__namespace.McTag, selector: "mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]", inputs: ["color", "selected", "value", "selectable", "removable", "disabled"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["mcTag"] }, { type: i6__namespace.McIcon, selector: "[mc-icon]", inputs: ["color"] }], directives: [{ type: i7__namespace.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { type: i8__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i8__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.McIconCSSStyler, selector: "[mc-icon]" }, { type: i7__namespace.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayPositions", "cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayTransformOriginOn"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { type: i8__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [
|
1396
|
-
i2.mcSelectAnimations.transformPanel,
|
1397
|
-
i2.mcSelectAnimations.fadeInContent
|
1398
|
-
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
1399
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelect, decorators: [{
|
1400
|
-
type: i0.Component,
|
1401
|
-
args: [{
|
1402
|
-
selector: 'mc-select',
|
1403
|
-
exportAs: 'mcSelect',
|
1404
|
-
templateUrl: 'select.html',
|
1405
|
-
styleUrls: ['./select.scss'],
|
1406
|
-
inputs: ['disabled', 'tabIndex'],
|
1407
|
-
encapsulation: i0.ViewEncapsulation.None,
|
1408
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1409
|
-
host: {
|
1410
|
-
'[attr.id]': 'id',
|
1411
|
-
'[attr.tabindex]': 'tabIndex',
|
1412
|
-
'[attr.disabled]': 'disabled || null',
|
1413
|
-
class: 'mc-select',
|
1414
|
-
'[class.mc-disabled]': 'disabled',
|
1415
|
-
'[class.mc-invalid]': 'errorState',
|
1416
|
-
'(keydown)': 'handleKeydown($event)',
|
1417
|
-
'(focus)': 'onFocus()',
|
1418
|
-
'(blur)': 'onBlur()',
|
1419
|
-
'(window:resize)': 'calculateHiddenItems()'
|
1420
|
-
},
|
1421
|
-
animations: [
|
1422
|
-
i2.mcSelectAnimations.transformPanel,
|
1423
|
-
i2.mcSelectAnimations.fadeInContent
|
1424
|
-
],
|
1425
|
-
providers: [
|
1426
|
-
{ provide: i1.McFormFieldControl, useExisting: McSelect },
|
1427
|
-
{ provide: i2.MC_OPTION_PARENT_COMPONENT, useExisting: McSelect }
|
1428
|
-
]
|
1429
|
-
}]
|
1430
|
-
}], ctorParameters: function () {
|
1431
|
-
return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.NgZone }, { type: i0__namespace.Renderer2 }, { type: i2__namespace.ErrorStateMatcher }, { type: i0__namespace.ElementRef }, { type: undefined, decorators: [{
|
1432
|
-
type: i0.Optional
|
1433
|
-
}, {
|
1434
|
-
type: i0.Inject,
|
1435
|
-
args: [i4.NG_VALIDATORS]
|
1436
|
-
}] }, { type: i3__namespace.Directionality, decorators: [{
|
1437
|
-
type: i0.Optional
|
1438
|
-
}] }, { type: i4__namespace.NgForm, decorators: [{
|
1439
|
-
type: i0.Optional
|
1440
|
-
}] }, { type: i4__namespace.FormGroupDirective, decorators: [{
|
1441
|
-
type: i0.Optional
|
1442
|
-
}] }, { type: i1__namespace.McFormField, decorators: [{
|
1443
|
-
type: i0.Optional
|
1444
|
-
}] }, { type: i4__namespace.NgControl, decorators: [{
|
1445
|
-
type: i0.Self
|
1446
|
-
}, {
|
1447
|
-
type: i0.Optional
|
1448
|
-
}] }, { type: i4__namespace.NgModel, decorators: [{
|
1449
|
-
type: i0.Optional
|
1450
|
-
}, {
|
1451
|
-
type: i0.Self
|
1452
|
-
}] }, { type: i4__namespace.FormControlName, decorators: [{
|
1453
|
-
type: i0.Optional
|
1454
|
-
}, {
|
1455
|
-
type: i0.Self
|
1456
|
-
}] }, { type: undefined, decorators: [{
|
1457
|
-
type: i0.Inject,
|
1458
|
-
args: [i2.MC_SELECT_SCROLL_STRATEGY]
|
1459
|
-
}] }, { type: undefined, decorators: [{
|
1460
|
-
type: i0.Optional
|
1461
|
-
}, {
|
1462
|
-
type: i0.Inject,
|
1463
|
-
args: [i2.MC_VALIDATION]
|
1464
|
-
}] }];
|
1465
|
-
}, propDecorators: { trigger: [{
|
1466
|
-
type: i0.ViewChild,
|
1467
|
-
args: ['trigger', { static: false }]
|
1468
|
-
}], panel: [{
|
1469
|
-
type: i0.ViewChild,
|
1470
|
-
args: ['panel', { static: false }]
|
1471
|
-
}], optionsContainer: [{
|
1472
|
-
type: i0.ViewChild,
|
1473
|
-
args: ['optionsContainer', { static: false }]
|
1474
|
-
}], overlayDir: [{
|
1475
|
-
type: i0.ViewChild,
|
1476
|
-
args: [i7.CdkConnectedOverlay, { static: false }]
|
1477
|
-
}], tags: [{
|
1478
|
-
type: i0.ViewChildren,
|
1479
|
-
args: [i5.McTag]
|
1480
|
-
}], customTrigger: [{
|
1481
|
-
type: i0.ContentChild,
|
1482
|
-
args: [McSelectTrigger, { static: false }]
|
1483
|
-
}], cleaner: [{
|
1484
|
-
type: i0.ContentChild,
|
1485
|
-
args: ['mcSelectCleaner', { static: true }]
|
1486
|
-
}], options: [{
|
1487
|
-
type: i0.ContentChildren,
|
1488
|
-
args: [i2.McOption, { descendants: true }]
|
1489
|
-
}], optionGroups: [{
|
1490
|
-
type: i0.ContentChildren,
|
1491
|
-
args: [i2.McOptgroup]
|
1492
|
-
}], search: [{
|
1493
|
-
type: i0.ContentChild,
|
1494
|
-
args: [McSelectSearch, { static: false }]
|
1495
|
-
}], hiddenItemsText: [{
|
1496
|
-
type: i0.Input
|
1497
|
-
}], panelClass: [{
|
1498
|
-
type: i0.Input
|
1499
|
-
}], backdropClass: [{
|
1500
|
-
type: i0.Input
|
1501
|
-
}], errorStateMatcher: [{
|
1502
|
-
type: i0.Input
|
1503
|
-
}], sortComparator: [{
|
1504
|
-
type: i0.Input
|
1505
|
-
}], openedChange: [{
|
1506
|
-
type: i0.Output
|
1507
|
-
}], openedStream: [{
|
1508
|
-
type: i0.Output,
|
1509
|
-
args: ['opened']
|
1510
|
-
}], closedStream: [{
|
1511
|
-
type: i0.Output,
|
1512
|
-
args: ['closed']
|
1513
|
-
}], selectionChange: [{
|
1514
|
-
type: i0.Output
|
1515
|
-
}], valueChange: [{
|
1516
|
-
type: i0.Output
|
1517
|
-
}], hasBackdrop: [{
|
1518
|
-
type: i0.Input
|
1519
|
-
}], placeholder: [{
|
1520
|
-
type: i0.Input
|
1521
|
-
}], required: [{
|
1522
|
-
type: i0.Input
|
1523
|
-
}], multiple: [{
|
1524
|
-
type: i0.Input
|
1525
|
-
}], compareWith: [{
|
1526
|
-
type: i0.Input
|
1527
|
-
}], value: [{
|
1528
|
-
type: i0.Input
|
1529
|
-
}], id: [{
|
1530
|
-
type: i0.Input
|
1531
|
-
}], hiddenItemsTextFormatter: [{
|
1532
|
-
type: i0.Input
|
1533
|
-
}] } });
|
1534
|
-
|
1535
|
-
var McSelectModule = /** @class */ (function () {
|
1536
|
-
function McSelectModule() {
|
1537
|
-
}
|
1538
|
-
return McSelectModule;
|
1539
|
-
}());
|
1540
|
-
/** @nocollapse */ McSelectModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1541
|
-
/** @nocollapse */ McSelectModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectModule, declarations: [McSelect,
|
1542
|
-
McSelectSearch,
|
1543
|
-
McSelectSearchEmptyResult,
|
1544
|
-
McSelectTrigger], imports: [i8.CommonModule,
|
1545
|
-
i7.OverlayModule,
|
1546
|
-
i2.McOptionModule,
|
1547
|
-
i6.McIconModule,
|
1548
|
-
i5.McTagsModule], exports: [i1.McFormFieldModule,
|
1549
|
-
McSelect,
|
1550
|
-
McSelectSearch,
|
1551
|
-
McSelectSearchEmptyResult,
|
1552
|
-
McSelectTrigger,
|
1553
|
-
i2.McOptionModule,
|
1554
|
-
i8.CommonModule] });
|
1555
|
-
/** @nocollapse */ McSelectModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectModule, providers: [i2.MC_SELECT_SCROLL_STRATEGY_PROVIDER], imports: [[
|
1556
|
-
i8.CommonModule,
|
1557
|
-
i7.OverlayModule,
|
1558
|
-
i2.McOptionModule,
|
1559
|
-
i6.McIconModule,
|
1560
|
-
i5.McTagsModule
|
1561
|
-
], i1.McFormFieldModule,
|
1562
|
-
i2.McOptionModule,
|
1563
|
-
i8.CommonModule] });
|
1564
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McSelectModule, decorators: [{
|
1565
|
-
type: i0.NgModule,
|
1566
|
-
args: [{
|
1567
|
-
imports: [
|
1568
|
-
i8.CommonModule,
|
1569
|
-
i7.OverlayModule,
|
1570
|
-
i2.McOptionModule,
|
1571
|
-
i6.McIconModule,
|
1572
|
-
i5.McTagsModule
|
1573
|
-
],
|
1574
|
-
exports: [
|
1575
|
-
i1.McFormFieldModule,
|
1576
|
-
McSelect,
|
1577
|
-
McSelectSearch,
|
1578
|
-
McSelectSearchEmptyResult,
|
1579
|
-
McSelectTrigger,
|
1580
|
-
i2.McOptionModule,
|
1581
|
-
i8.CommonModule
|
1582
|
-
],
|
1583
|
-
declarations: [
|
1584
|
-
McSelect,
|
1585
|
-
McSelectSearch,
|
1586
|
-
McSelectSearchEmptyResult,
|
1587
|
-
McSelectTrigger
|
1588
|
-
],
|
1589
|
-
providers: [i2.MC_SELECT_SCROLL_STRATEGY_PROVIDER]
|
1590
|
-
}]
|
1591
|
-
}] });
|
1592
|
-
|
1593
|
-
/**
|
1594
|
-
* Generated bundle index. Do not edit.
|
1595
|
-
*/
|
1596
|
-
|
1597
|
-
exports.McSelect = McSelect;
|
1598
|
-
exports.McSelectBase = McSelectBase;
|
1599
|
-
exports.McSelectChange = McSelectChange;
|
1600
|
-
exports.McSelectModule = McSelectModule;
|
1601
|
-
exports.McSelectSearch = McSelectSearch;
|
1602
|
-
exports.McSelectSearchEmptyResult = McSelectSearchEmptyResult;
|
1603
|
-
exports.McSelectTrigger = McSelectTrigger;
|
1604
|
-
|
1605
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
1606
|
-
|
1607
|
-
})));
|
1608
|
-
//# sourceMappingURL=ptsecurity-mosaic-select.umd.js.map
|