@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,1913 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/platform'), require('@angular/common'), require('@angular/core'), require('@ptsecurity/cdk/keycodes'), require('@angular/cdk/coercion'), require('@angular/forms'), require('@angular/cdk/collections'), require('@ptsecurity/cdk/a11y'), require('@ptsecurity/mosaic/core'), require('@ptsecurity/mosaic/form-field'), require('rxjs'), require('rxjs/operators'), require('@ptsecurity/mosaic/icon'), require('@angular/cdk/bidi')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/tags', ['exports', '@angular/cdk/platform', '@angular/common', '@angular/core', '@ptsecurity/cdk/keycodes', '@angular/cdk/coercion', '@angular/forms', '@angular/cdk/collections', '@ptsecurity/cdk/a11y', '@ptsecurity/mosaic/core', '@ptsecurity/mosaic/form-field', 'rxjs', 'rxjs/operators', '@ptsecurity/mosaic/icon', '@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.tags = {}), global.ng.cdk.platform, global.ng.common, global.ng.core, global.mc.cdk.keycodes, global.ng.cdk.coercion, global.ng.forms, global.ng.cdk.collections, global.mc.cdk.a11y, global.ptsecurity.mosaic.core, global.ptsecurity.mosaic['form-field'], global.rxjs, global.rxjs.operators, global.ptsecurity.mosaic.icon, global.ng.cdk.bidi));
|
5
|
-
}(this, (function (exports, platform, i4, i0, keycodes, coercion, i3, collections, a11y, i1, formField, rxjs, operators, icon, i2) { '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 i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
28
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
29
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
30
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
31
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
32
|
-
|
33
|
-
/** Injection token to be used to override the default options for the chips module. */
|
34
|
-
var MC_TAGS_DEFAULT_OPTIONS = new i0.InjectionToken('mc-tags-default-options');
|
35
|
-
|
36
|
-
/*! *****************************************************************************
|
37
|
-
Copyright (c) Microsoft Corporation.
|
38
|
-
|
39
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
40
|
-
purpose with or without fee is hereby granted.
|
41
|
-
|
42
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
43
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
44
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
45
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
46
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
47
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
48
|
-
PERFORMANCE OF THIS SOFTWARE.
|
49
|
-
***************************************************************************** */
|
50
|
-
/* global Reflect, Promise */
|
51
|
-
var extendStatics = function (d, b) {
|
52
|
-
extendStatics = Object.setPrototypeOf ||
|
53
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
54
|
-
function (d, b) { for (var p in b)
|
55
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
56
|
-
d[p] = b[p]; };
|
57
|
-
return extendStatics(d, b);
|
58
|
-
};
|
59
|
-
function __extends(d, b) {
|
60
|
-
if (typeof b !== "function" && b !== null)
|
61
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
62
|
-
extendStatics(d, b);
|
63
|
-
function __() { this.constructor = d; }
|
64
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
65
|
-
}
|
66
|
-
var __assign = function () {
|
67
|
-
__assign = Object.assign || function __assign(t) {
|
68
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
69
|
-
s = arguments[i];
|
70
|
-
for (var p in s)
|
71
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
72
|
-
t[p] = s[p];
|
73
|
-
}
|
74
|
-
return t;
|
75
|
-
};
|
76
|
-
return __assign.apply(this, arguments);
|
77
|
-
};
|
78
|
-
function __rest(s, e) {
|
79
|
-
var t = {};
|
80
|
-
for (var p in s)
|
81
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
82
|
-
t[p] = s[p];
|
83
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
84
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
85
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
86
|
-
t[p[i]] = s[p[i]];
|
87
|
-
}
|
88
|
-
return t;
|
89
|
-
}
|
90
|
-
function __decorate(decorators, target, key, desc) {
|
91
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
92
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
93
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
94
|
-
else
|
95
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
96
|
-
if (d = decorators[i])
|
97
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
98
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
99
|
-
}
|
100
|
-
function __param(paramIndex, decorator) {
|
101
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
102
|
-
}
|
103
|
-
function __metadata(metadataKey, metadataValue) {
|
104
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
105
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
106
|
-
}
|
107
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
108
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
109
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
110
|
-
function fulfilled(value) { try {
|
111
|
-
step(generator.next(value));
|
112
|
-
}
|
113
|
-
catch (e) {
|
114
|
-
reject(e);
|
115
|
-
} }
|
116
|
-
function rejected(value) { try {
|
117
|
-
step(generator["throw"](value));
|
118
|
-
}
|
119
|
-
catch (e) {
|
120
|
-
reject(e);
|
121
|
-
} }
|
122
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
123
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
124
|
-
});
|
125
|
-
}
|
126
|
-
function __generator(thisArg, body) {
|
127
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
128
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
129
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
130
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
131
|
-
function step(op) {
|
132
|
-
if (f)
|
133
|
-
throw new TypeError("Generator is already executing.");
|
134
|
-
while (_)
|
135
|
-
try {
|
136
|
-
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)
|
137
|
-
return t;
|
138
|
-
if (y = 0, t)
|
139
|
-
op = [op[0] & 2, t.value];
|
140
|
-
switch (op[0]) {
|
141
|
-
case 0:
|
142
|
-
case 1:
|
143
|
-
t = op;
|
144
|
-
break;
|
145
|
-
case 4:
|
146
|
-
_.label++;
|
147
|
-
return { value: op[1], done: false };
|
148
|
-
case 5:
|
149
|
-
_.label++;
|
150
|
-
y = op[1];
|
151
|
-
op = [0];
|
152
|
-
continue;
|
153
|
-
case 7:
|
154
|
-
op = _.ops.pop();
|
155
|
-
_.trys.pop();
|
156
|
-
continue;
|
157
|
-
default:
|
158
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
159
|
-
_ = 0;
|
160
|
-
continue;
|
161
|
-
}
|
162
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
163
|
-
_.label = op[1];
|
164
|
-
break;
|
165
|
-
}
|
166
|
-
if (op[0] === 6 && _.label < t[1]) {
|
167
|
-
_.label = t[1];
|
168
|
-
t = op;
|
169
|
-
break;
|
170
|
-
}
|
171
|
-
if (t && _.label < t[2]) {
|
172
|
-
_.label = t[2];
|
173
|
-
_.ops.push(op);
|
174
|
-
break;
|
175
|
-
}
|
176
|
-
if (t[2])
|
177
|
-
_.ops.pop();
|
178
|
-
_.trys.pop();
|
179
|
-
continue;
|
180
|
-
}
|
181
|
-
op = body.call(thisArg, _);
|
182
|
-
}
|
183
|
-
catch (e) {
|
184
|
-
op = [6, e];
|
185
|
-
y = 0;
|
186
|
-
}
|
187
|
-
finally {
|
188
|
-
f = t = 0;
|
189
|
-
}
|
190
|
-
if (op[0] & 5)
|
191
|
-
throw op[1];
|
192
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
193
|
-
}
|
194
|
-
}
|
195
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
196
|
-
if (k2 === undefined)
|
197
|
-
k2 = k;
|
198
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
199
|
-
}) : (function (o, m, k, k2) {
|
200
|
-
if (k2 === undefined)
|
201
|
-
k2 = k;
|
202
|
-
o[k2] = m[k];
|
203
|
-
});
|
204
|
-
function __exportStar(m, o) {
|
205
|
-
for (var p in m)
|
206
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
207
|
-
__createBinding(o, m, p);
|
208
|
-
}
|
209
|
-
function __values(o) {
|
210
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
211
|
-
if (m)
|
212
|
-
return m.call(o);
|
213
|
-
if (o && typeof o.length === "number")
|
214
|
-
return {
|
215
|
-
next: function () {
|
216
|
-
if (o && i >= o.length)
|
217
|
-
o = void 0;
|
218
|
-
return { value: o && o[i++], done: !o };
|
219
|
-
}
|
220
|
-
};
|
221
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
222
|
-
}
|
223
|
-
function __read(o, n) {
|
224
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
225
|
-
if (!m)
|
226
|
-
return o;
|
227
|
-
var i = m.call(o), r, ar = [], e;
|
228
|
-
try {
|
229
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
230
|
-
ar.push(r.value);
|
231
|
-
}
|
232
|
-
catch (error) {
|
233
|
-
e = { error: error };
|
234
|
-
}
|
235
|
-
finally {
|
236
|
-
try {
|
237
|
-
if (r && !r.done && (m = i["return"]))
|
238
|
-
m.call(i);
|
239
|
-
}
|
240
|
-
finally {
|
241
|
-
if (e)
|
242
|
-
throw e.error;
|
243
|
-
}
|
244
|
-
}
|
245
|
-
return ar;
|
246
|
-
}
|
247
|
-
/** @deprecated */
|
248
|
-
function __spread() {
|
249
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
250
|
-
ar = ar.concat(__read(arguments[i]));
|
251
|
-
return ar;
|
252
|
-
}
|
253
|
-
/** @deprecated */
|
254
|
-
function __spreadArrays() {
|
255
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
256
|
-
s += arguments[i].length;
|
257
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
258
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
259
|
-
r[k] = a[j];
|
260
|
-
return r;
|
261
|
-
}
|
262
|
-
function __spreadArray(to, from, pack) {
|
263
|
-
if (pack || arguments.length === 2)
|
264
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
265
|
-
if (ar || !(i in from)) {
|
266
|
-
if (!ar)
|
267
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
268
|
-
ar[i] = from[i];
|
269
|
-
}
|
270
|
-
}
|
271
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
272
|
-
}
|
273
|
-
function __await(v) {
|
274
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
275
|
-
}
|
276
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
277
|
-
if (!Symbol.asyncIterator)
|
278
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
279
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
280
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
281
|
-
function verb(n) { if (g[n])
|
282
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
283
|
-
function resume(n, v) { try {
|
284
|
-
step(g[n](v));
|
285
|
-
}
|
286
|
-
catch (e) {
|
287
|
-
settle(q[0][3], e);
|
288
|
-
} }
|
289
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
290
|
-
function fulfill(value) { resume("next", value); }
|
291
|
-
function reject(value) { resume("throw", value); }
|
292
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
293
|
-
resume(q[0][0], q[0][1]); }
|
294
|
-
}
|
295
|
-
function __asyncDelegator(o) {
|
296
|
-
var i, p;
|
297
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
298
|
-
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; }
|
299
|
-
}
|
300
|
-
function __asyncValues(o) {
|
301
|
-
if (!Symbol.asyncIterator)
|
302
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
303
|
-
var m = o[Symbol.asyncIterator], i;
|
304
|
-
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);
|
305
|
-
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); }); }; }
|
306
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
307
|
-
}
|
308
|
-
function __makeTemplateObject(cooked, raw) {
|
309
|
-
if (Object.defineProperty) {
|
310
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
311
|
-
}
|
312
|
-
else {
|
313
|
-
cooked.raw = raw;
|
314
|
-
}
|
315
|
-
return cooked;
|
316
|
-
}
|
317
|
-
;
|
318
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
319
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
320
|
-
}) : function (o, v) {
|
321
|
-
o["default"] = v;
|
322
|
-
};
|
323
|
-
function __importStar(mod) {
|
324
|
-
if (mod && mod.__esModule)
|
325
|
-
return mod;
|
326
|
-
var result = {};
|
327
|
-
if (mod != null)
|
328
|
-
for (var k in mod)
|
329
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
330
|
-
__createBinding(result, mod, k);
|
331
|
-
__setModuleDefault(result, mod);
|
332
|
-
return result;
|
333
|
-
}
|
334
|
-
function __importDefault(mod) {
|
335
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
336
|
-
}
|
337
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
338
|
-
if (kind === "a" && !f)
|
339
|
-
throw new TypeError("Private accessor was defined without a getter");
|
340
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
341
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
342
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
343
|
-
}
|
344
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
345
|
-
if (kind === "m")
|
346
|
-
throw new TypeError("Private method is not writable");
|
347
|
-
if (kind === "a" && !f)
|
348
|
-
throw new TypeError("Private accessor was defined without a setter");
|
349
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
350
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
351
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
352
|
-
}
|
353
|
-
|
354
|
-
// Increasing integer for generating unique ids.
|
355
|
-
var nextUniqueId$1 = 0;
|
356
|
-
/**
|
357
|
-
* Directive that adds tag-specific behaviors to an input element inside `<mc-form-field>`.
|
358
|
-
* May be placed inside or outside of an `<mc-tag-list>`.
|
359
|
-
*/
|
360
|
-
var McTagInput = /** @class */ (function () {
|
361
|
-
function McTagInput(elementRef, renderer, defaultOptions, ngControl) {
|
362
|
-
this.elementRef = elementRef;
|
363
|
-
this.renderer = renderer;
|
364
|
-
this.defaultOptions = defaultOptions;
|
365
|
-
this.ngControl = ngControl;
|
366
|
-
/** Whether the control is focused. */
|
367
|
-
this.focused = false;
|
368
|
-
/**
|
369
|
-
* The list of key codes that will trigger a tagEnd event.
|
370
|
-
*
|
371
|
-
* Defaults to `[ENTER]`.
|
372
|
-
*/
|
373
|
-
this.separatorKeyCodes = this.defaultOptions.separatorKeyCodes;
|
374
|
-
/** Emitted when a tag is to be added. */
|
375
|
-
this.tagEnd = new i0.EventEmitter();
|
376
|
-
/** The input's placeholder text. */
|
377
|
-
this.placeholder = '';
|
378
|
-
/** Unique id for the input. */
|
379
|
-
this.id = "mc-tag-list-input-" + nextUniqueId$1++;
|
380
|
-
this._addOnBlur = true;
|
381
|
-
this._disabled = false;
|
382
|
-
this.countOfSymbolsForUpdateWidth = 3;
|
383
|
-
// tslint:disable-next-line: no-unnecessary-type-assertion
|
384
|
-
this.inputElement = this.elementRef.nativeElement;
|
385
|
-
this.setDefaultInputWidth();
|
386
|
-
}
|
387
|
-
Object.defineProperty(McTagInput.prototype, "tagList", {
|
388
|
-
/** Register input for tag list */
|
389
|
-
set: function (value) {
|
390
|
-
if (value) {
|
391
|
-
this._tagList = value;
|
392
|
-
this._tagList.registerInput(this);
|
393
|
-
}
|
394
|
-
},
|
395
|
-
enumerable: false,
|
396
|
-
configurable: true
|
397
|
-
});
|
398
|
-
Object.defineProperty(McTagInput.prototype, "addOnBlur", {
|
399
|
-
/**
|
400
|
-
* Whether or not the tagEnd event will be emitted when the input is blurred.
|
401
|
-
*/
|
402
|
-
get: function () {
|
403
|
-
return this._addOnBlur;
|
404
|
-
},
|
405
|
-
set: function (value) {
|
406
|
-
this._addOnBlur = coercion.coerceBooleanProperty(value);
|
407
|
-
},
|
408
|
-
enumerable: false,
|
409
|
-
configurable: true
|
410
|
-
});
|
411
|
-
Object.defineProperty(McTagInput.prototype, "disabled", {
|
412
|
-
/** Whether the input is disabled. */
|
413
|
-
get: function () {
|
414
|
-
return this._disabled || (this._tagList && this._tagList.disabled);
|
415
|
-
},
|
416
|
-
set: function (value) {
|
417
|
-
this._disabled = coercion.coerceBooleanProperty(value);
|
418
|
-
},
|
419
|
-
enumerable: false,
|
420
|
-
configurable: true
|
421
|
-
});
|
422
|
-
Object.defineProperty(McTagInput.prototype, "empty", {
|
423
|
-
/** Whether the input is empty. */
|
424
|
-
get: function () {
|
425
|
-
return !this.inputElement.value;
|
426
|
-
},
|
427
|
-
enumerable: false,
|
428
|
-
configurable: true
|
429
|
-
});
|
430
|
-
McTagInput.prototype.ngOnChanges = function () {
|
431
|
-
this._tagList.stateChanges.next();
|
432
|
-
};
|
433
|
-
McTagInput.prototype.onKeydown = function (event) {
|
434
|
-
if (!this.inputElement.value) {
|
435
|
-
this._tagList.keydown(event);
|
436
|
-
}
|
437
|
-
if (this.isSeparatorKey(event)) {
|
438
|
-
this.emitTagEnd();
|
439
|
-
event.preventDefault();
|
440
|
-
}
|
441
|
-
};
|
442
|
-
/** Checks to see if the blur should emit the (tagEnd) event. */
|
443
|
-
McTagInput.prototype.blur = function () {
|
444
|
-
this.focused = false;
|
445
|
-
// Blur the tag list if it is not focused
|
446
|
-
if (!this._tagList.focused) {
|
447
|
-
this.triggerValidation();
|
448
|
-
this._tagList.blur();
|
449
|
-
}
|
450
|
-
// tslint:disable-next-line: no-unnecessary-type-assertion
|
451
|
-
if (this.addOnBlur) {
|
452
|
-
this.emitTagEnd();
|
453
|
-
}
|
454
|
-
this._tagList.stateChanges.next();
|
455
|
-
};
|
456
|
-
McTagInput.prototype.triggerValidation = function () {
|
457
|
-
if (!this.hasControl()) {
|
458
|
-
return;
|
459
|
-
}
|
460
|
-
this.ngControl.statusChanges.emit(this.ngControl.status);
|
461
|
-
};
|
462
|
-
/** Checks to see if the (tagEnd) event needs to be emitted. */
|
463
|
-
McTagInput.prototype.emitTagEnd = function () {
|
464
|
-
if (!this.hasControl() || (this.hasControl() && !this.ngControl.invalid)) {
|
465
|
-
this.tagEnd.emit({ input: this.inputElement, value: this.inputElement.value });
|
466
|
-
this.updateInputWidth();
|
467
|
-
}
|
468
|
-
};
|
469
|
-
McTagInput.prototype.onInput = function () {
|
470
|
-
this.updateInputWidth();
|
471
|
-
// Let tag list know whenever the value changes.
|
472
|
-
this._tagList.stateChanges.next();
|
473
|
-
};
|
474
|
-
McTagInput.prototype.onPaste = function ($event) {
|
475
|
-
var e_1, _a;
|
476
|
-
var _this = this;
|
477
|
-
if (!$event.clipboardData) {
|
478
|
-
return;
|
479
|
-
}
|
480
|
-
var data = $event.clipboardData.getData('text');
|
481
|
-
if (data && data.length === 0) {
|
482
|
-
return;
|
483
|
-
}
|
484
|
-
var items = [];
|
485
|
-
try {
|
486
|
-
for (var _b = __values(this.separatorKeyCodes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
487
|
-
var key = _c.value;
|
488
|
-
var separator = this.separatorKeyToSymbol(key);
|
489
|
-
if (data.search(separator) > -1) {
|
490
|
-
items.push.apply(items, __spreadArray([], __read(data.split(separator))));
|
491
|
-
break;
|
492
|
-
}
|
493
|
-
}
|
494
|
-
}
|
495
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
496
|
-
finally {
|
497
|
-
try {
|
498
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
499
|
-
}
|
500
|
-
finally { if (e_1) throw e_1.error; }
|
501
|
-
}
|
502
|
-
if (items.length === 0) {
|
503
|
-
items.push(data);
|
504
|
-
}
|
505
|
-
items.forEach(function (item) { return _this.tagEnd.emit({ input: _this.inputElement, value: item }); });
|
506
|
-
this.updateInputWidth();
|
507
|
-
$event.preventDefault();
|
508
|
-
$event.stopPropagation();
|
509
|
-
};
|
510
|
-
McTagInput.prototype.updateInputWidth = function () {
|
511
|
-
var length = this.inputElement.value.length;
|
512
|
-
this.renderer.setStyle(this.inputElement, 'max-width', 0);
|
513
|
-
this.oneSymbolWidth = this.inputElement.scrollWidth / length;
|
514
|
-
this.renderer.setStyle(this.inputElement, 'max-width', '');
|
515
|
-
if (length > this.countOfSymbolsForUpdateWidth) {
|
516
|
-
this.renderer.setStyle(this.inputElement, 'width', length * this.oneSymbolWidth + "px");
|
517
|
-
}
|
518
|
-
else {
|
519
|
-
this.setDefaultInputWidth();
|
520
|
-
}
|
521
|
-
};
|
522
|
-
McTagInput.prototype.onFocus = function () {
|
523
|
-
this.focused = true;
|
524
|
-
this._tagList.stateChanges.next();
|
525
|
-
};
|
526
|
-
/** Focuses the input. */
|
527
|
-
McTagInput.prototype.focus = function () {
|
528
|
-
this.inputElement.focus();
|
529
|
-
};
|
530
|
-
McTagInput.prototype.separatorKeyToSymbol = function (k) {
|
531
|
-
var _a;
|
532
|
-
var sep = (_a = {},
|
533
|
-
_a[keycodes.ENTER] = /\r?\n/,
|
534
|
-
_a[keycodes.TAB] = /\t/,
|
535
|
-
_a[keycodes.SPACE] = / /,
|
536
|
-
_a[keycodes.COMMA] = /,/,
|
537
|
-
_a)[k];
|
538
|
-
if (sep) {
|
539
|
-
return sep;
|
540
|
-
}
|
541
|
-
return k;
|
542
|
-
};
|
543
|
-
McTagInput.prototype.hasControl = function () {
|
544
|
-
return !!this.ngControl;
|
545
|
-
};
|
546
|
-
McTagInput.prototype.setDefaultInputWidth = function () {
|
547
|
-
this.renderer.setStyle(this.inputElement, 'width', '30px');
|
548
|
-
};
|
549
|
-
/** Checks whether a keycode is one of the configured separators. */
|
550
|
-
McTagInput.prototype.isSeparatorKey = function (event) {
|
551
|
-
if (keycodes.hasModifierKey(event)) {
|
552
|
-
return false;
|
553
|
-
}
|
554
|
-
// tslint:disable-next-line: deprecation
|
555
|
-
return this.separatorKeyCodes.indexOf(event.keyCode) > -1;
|
556
|
-
};
|
557
|
-
return McTagInput;
|
558
|
-
}());
|
559
|
-
/** @nocollapse */ McTagInput.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagInput, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.Renderer2 }, { token: MC_TAGS_DEFAULT_OPTIONS }, { token: i3__namespace.NgControl, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
560
|
-
/** @nocollapse */ McTagInput.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: McTagInput, selector: "input[mcTagInputFor]", inputs: { separatorKeyCodes: ["mcTagInputSeparatorKeyCodes", "separatorKeyCodes"], placeholder: "placeholder", id: "id", tagList: ["mcTagInputFor", "tagList"], addOnBlur: ["mcTagInputAddOnBlur", "addOnBlur"], disabled: "disabled" }, outputs: { tagEnd: "mcTagInputTokenEnd" }, host: { listeners: { "keydown": "onKeydown($event)", "blur": "blur()", "focus": "onFocus()", "input": "onInput()", "paste": "onPaste($event)" }, properties: { "id": "id", "attr.disabled": "disabled || null", "attr.placeholder": "placeholder || null" }, classAttribute: "mc-tag-input" }, exportAs: ["mcTagInput", "mcTagInputFor"], usesOnChanges: true, ngImport: i0__namespace });
|
561
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagInput, decorators: [{
|
562
|
-
type: i0.Directive,
|
563
|
-
args: [{
|
564
|
-
selector: 'input[mcTagInputFor]',
|
565
|
-
exportAs: 'mcTagInput, mcTagInputFor',
|
566
|
-
host: {
|
567
|
-
class: 'mc-tag-input',
|
568
|
-
'[id]': 'id',
|
569
|
-
'[attr.disabled]': 'disabled || null',
|
570
|
-
'[attr.placeholder]': 'placeholder || null',
|
571
|
-
'(keydown)': 'onKeydown($event)',
|
572
|
-
'(blur)': 'blur()',
|
573
|
-
'(focus)': 'onFocus()',
|
574
|
-
'(input)': 'onInput()',
|
575
|
-
'(paste)': 'onPaste($event)'
|
576
|
-
}
|
577
|
-
}]
|
578
|
-
}], ctorParameters: function () {
|
579
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.Renderer2 }, { type: undefined, decorators: [{
|
580
|
-
type: i0.Inject,
|
581
|
-
args: [MC_TAGS_DEFAULT_OPTIONS]
|
582
|
-
}] }, { type: i3__namespace.NgControl, decorators: [{
|
583
|
-
type: i0.Optional
|
584
|
-
}, {
|
585
|
-
type: i0.Self
|
586
|
-
}] }];
|
587
|
-
}, propDecorators: { separatorKeyCodes: [{
|
588
|
-
type: i0.Input,
|
589
|
-
args: ['mcTagInputSeparatorKeyCodes']
|
590
|
-
}], tagEnd: [{
|
591
|
-
type: i0.Output,
|
592
|
-
args: ['mcTagInputTokenEnd']
|
593
|
-
}], placeholder: [{
|
594
|
-
type: i0.Input
|
595
|
-
}], id: [{
|
596
|
-
type: i0.Input
|
597
|
-
}], tagList: [{
|
598
|
-
type: i0.Input,
|
599
|
-
args: ['mcTagInputFor']
|
600
|
-
}], addOnBlur: [{
|
601
|
-
type: i0.Input,
|
602
|
-
args: ['mcTagInputAddOnBlur']
|
603
|
-
}], disabled: [{
|
604
|
-
type: i0.Input
|
605
|
-
}] } });
|
606
|
-
|
607
|
-
/** Event object emitted by McTag when selected or deselected. */
|
608
|
-
var McTagSelectionChange = /** @class */ (function () {
|
609
|
-
function McTagSelectionChange(source, selected, isUserInput) {
|
610
|
-
if (isUserInput === void 0) { isUserInput = false; }
|
611
|
-
this.source = source;
|
612
|
-
this.selected = selected;
|
613
|
-
this.isUserInput = isUserInput;
|
614
|
-
}
|
615
|
-
return McTagSelectionChange;
|
616
|
-
}());
|
617
|
-
var TAG_ATTRIBUTE_NAMES = ['mc-basic-tag'];
|
618
|
-
/**
|
619
|
-
* Dummy directive to add CSS class to tag avatar.
|
620
|
-
* @docs-private
|
621
|
-
*/
|
622
|
-
var McTagAvatar = /** @class */ (function () {
|
623
|
-
function McTagAvatar() {
|
624
|
-
}
|
625
|
-
return McTagAvatar;
|
626
|
-
}());
|
627
|
-
/** @nocollapse */ McTagAvatar.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagAvatar, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
628
|
-
/** @nocollapse */ McTagAvatar.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: McTagAvatar, selector: "mc-tag-avatar, [mcTagAvatar]", host: { classAttribute: "mc-tag-avatar" }, ngImport: i0__namespace });
|
629
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagAvatar, decorators: [{
|
630
|
-
type: i0.Directive,
|
631
|
-
args: [{
|
632
|
-
selector: 'mc-tag-avatar, [mcTagAvatar]',
|
633
|
-
host: { class: 'mc-tag-avatar' }
|
634
|
-
}]
|
635
|
-
}] });
|
636
|
-
/**
|
637
|
-
* Dummy directive to add CSS class to tag trailing icon.
|
638
|
-
* @docs-private
|
639
|
-
*/
|
640
|
-
var McTagTrailingIcon = /** @class */ (function () {
|
641
|
-
function McTagTrailingIcon() {
|
642
|
-
}
|
643
|
-
return McTagTrailingIcon;
|
644
|
-
}());
|
645
|
-
/** @nocollapse */ McTagTrailingIcon.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagTrailingIcon, deps: [], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
646
|
-
/** @nocollapse */ McTagTrailingIcon.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: McTagTrailingIcon, selector: "mc-tag-trailing-icon, [mcTagTrailingIcon]", host: { classAttribute: "mc-tag-trailing-icon" }, ngImport: i0__namespace });
|
647
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagTrailingIcon, decorators: [{
|
648
|
-
type: i0.Directive,
|
649
|
-
args: [{
|
650
|
-
selector: 'mc-tag-trailing-icon, [mcTagTrailingIcon]',
|
651
|
-
host: { class: 'mc-tag-trailing-icon' }
|
652
|
-
}]
|
653
|
-
}] });
|
654
|
-
var McTagBase = /** @class */ (function () {
|
655
|
-
// tslint:disable-next-line:naming-convention
|
656
|
-
function McTagBase(_elementRef) {
|
657
|
-
this._elementRef = _elementRef;
|
658
|
-
}
|
659
|
-
return McTagBase;
|
660
|
-
}());
|
661
|
-
// tslint:disable-next-line:naming-convention
|
662
|
-
var McTagMixinBase = i1.mixinColor(i1.mixinDisabled(McTagBase));
|
663
|
-
var McTag = /** @class */ (function (_super) {
|
664
|
-
__extends(McTag, _super);
|
665
|
-
function McTag(elementRef, changeDetectorRef, _ngZone) {
|
666
|
-
var _this = _super.call(this, elementRef) || this;
|
667
|
-
_this.elementRef = elementRef;
|
668
|
-
_this.changeDetectorRef = changeDetectorRef;
|
669
|
-
_this._ngZone = _ngZone;
|
670
|
-
/** Emits when the tag is focused. */
|
671
|
-
_this.onFocus = new rxjs.Subject();
|
672
|
-
/** Emits when the tag is blured. */
|
673
|
-
_this.onBlur = new rxjs.Subject();
|
674
|
-
/** Whether the tag has focus. */
|
675
|
-
_this.hasFocus = false;
|
676
|
-
/** Whether the tag list is selectable */
|
677
|
-
_this.tagListSelectable = true;
|
678
|
-
/** Emitted when the tag is selected or deselected. */
|
679
|
-
_this.selectionChange = new i0.EventEmitter();
|
680
|
-
/** Emitted when the tag is destroyed. */
|
681
|
-
_this.destroyed = new i0.EventEmitter();
|
682
|
-
/** Emitted when a tag is to be removed. */
|
683
|
-
_this.removed = new i0.EventEmitter();
|
684
|
-
_this._selected = false;
|
685
|
-
_this._selectable = true;
|
686
|
-
_this._removable = true;
|
687
|
-
_this._disabled = false;
|
688
|
-
_this.addHostClassName();
|
689
|
-
_this.nativeElement = elementRef.nativeElement;
|
690
|
-
return _this;
|
691
|
-
}
|
692
|
-
Object.defineProperty(McTag.prototype, "selected", {
|
693
|
-
/** Whether the tag is selected. */
|
694
|
-
get: function () {
|
695
|
-
return this._selected;
|
696
|
-
},
|
697
|
-
set: function (value) {
|
698
|
-
var coercedValue = coercion.coerceBooleanProperty(value);
|
699
|
-
if (coercedValue !== this._selected) {
|
700
|
-
this._selected = coercedValue;
|
701
|
-
this.dispatchSelectionChange();
|
702
|
-
}
|
703
|
-
},
|
704
|
-
enumerable: false,
|
705
|
-
configurable: true
|
706
|
-
});
|
707
|
-
Object.defineProperty(McTag.prototype, "value", {
|
708
|
-
/** The value of the tag. Defaults to the content inside `<mc-tag>` tags. */
|
709
|
-
get: function () {
|
710
|
-
return this._value !== undefined
|
711
|
-
? this._value
|
712
|
-
: this.elementRef.nativeElement.textContent;
|
713
|
-
},
|
714
|
-
set: function (value) {
|
715
|
-
this._value = value;
|
716
|
-
},
|
717
|
-
enumerable: false,
|
718
|
-
configurable: true
|
719
|
-
});
|
720
|
-
Object.defineProperty(McTag.prototype, "selectable", {
|
721
|
-
/**
|
722
|
-
* Whether or not the tag is selectable. When a tag is not selectable,
|
723
|
-
* changes to its selected state are always ignored. By default a tag is
|
724
|
-
* selectable, and it becomes non-selectable if its parent tag list is
|
725
|
-
* not selectable.
|
726
|
-
*/
|
727
|
-
get: function () {
|
728
|
-
return this._selectable && this.tagListSelectable;
|
729
|
-
},
|
730
|
-
set: function (value) {
|
731
|
-
this._selectable = coercion.coerceBooleanProperty(value);
|
732
|
-
},
|
733
|
-
enumerable: false,
|
734
|
-
configurable: true
|
735
|
-
});
|
736
|
-
Object.defineProperty(McTag.prototype, "removable", {
|
737
|
-
/**
|
738
|
-
* Determines whether or not the tag displays the remove styling and emits (removed) events.
|
739
|
-
*/
|
740
|
-
get: function () {
|
741
|
-
return this._removable;
|
742
|
-
},
|
743
|
-
set: function (value) {
|
744
|
-
this._removable = coercion.coerceBooleanProperty(value);
|
745
|
-
},
|
746
|
-
enumerable: false,
|
747
|
-
configurable: true
|
748
|
-
});
|
749
|
-
Object.defineProperty(McTag.prototype, "tabindex", {
|
750
|
-
get: function () {
|
751
|
-
if (!this.selectable) {
|
752
|
-
return null;
|
753
|
-
}
|
754
|
-
return this.disabled ? null : -1;
|
755
|
-
},
|
756
|
-
enumerable: false,
|
757
|
-
configurable: true
|
758
|
-
});
|
759
|
-
Object.defineProperty(McTag.prototype, "disabled", {
|
760
|
-
get: function () {
|
761
|
-
return this._disabled;
|
762
|
-
},
|
763
|
-
set: function (value) {
|
764
|
-
if (value !== this.disabled) {
|
765
|
-
this._disabled = value;
|
766
|
-
}
|
767
|
-
},
|
768
|
-
enumerable: false,
|
769
|
-
configurable: true
|
770
|
-
});
|
771
|
-
McTag.prototype.ngAfterContentInit = function () {
|
772
|
-
this.addClassModificatorForIcons();
|
773
|
-
};
|
774
|
-
McTag.prototype.addClassModificatorForIcons = function () {
|
775
|
-
var icons = this.contentChildren.map(function (item) { return item._elementRef.nativeElement; });
|
776
|
-
if (icons.length === 1) {
|
777
|
-
var iconElement = icons[0];
|
778
|
-
if (!iconElement.previousElementSibling && !iconElement.nextElementSibling) {
|
779
|
-
if (iconElement.nextSibling) {
|
780
|
-
iconElement.classList.add('mc-icon_left');
|
781
|
-
this.nativeElement.classList.add('mc-left-icon');
|
782
|
-
}
|
783
|
-
if (iconElement.previousSibling) {
|
784
|
-
iconElement.classList.add('mc-icon_right');
|
785
|
-
this.nativeElement.classList.add('mc-right-icon');
|
786
|
-
}
|
787
|
-
}
|
788
|
-
}
|
789
|
-
else if (icons.length > 1) {
|
790
|
-
var firstIconElement = icons[0];
|
791
|
-
var secondIconElement = icons[1];
|
792
|
-
firstIconElement.classList.add('mc-icon_left');
|
793
|
-
secondIconElement.classList.add('mc-icon_right');
|
794
|
-
}
|
795
|
-
};
|
796
|
-
McTag.prototype.addHostClassName = function () {
|
797
|
-
var e_1, _a;
|
798
|
-
try {
|
799
|
-
// Add class for the different tags
|
800
|
-
for (var TAG_ATTRIBUTE_NAMES_1 = __values(TAG_ATTRIBUTE_NAMES), TAG_ATTRIBUTE_NAMES_1_1 = TAG_ATTRIBUTE_NAMES_1.next(); !TAG_ATTRIBUTE_NAMES_1_1.done; TAG_ATTRIBUTE_NAMES_1_1 = TAG_ATTRIBUTE_NAMES_1.next()) {
|
801
|
-
var attr = TAG_ATTRIBUTE_NAMES_1_1.value;
|
802
|
-
if (this.elementRef.nativeElement.hasAttribute(attr) ||
|
803
|
-
this.elementRef.nativeElement.tagName.toLowerCase() === attr) {
|
804
|
-
this.elementRef.nativeElement.classList.add(attr);
|
805
|
-
return;
|
806
|
-
}
|
807
|
-
}
|
808
|
-
}
|
809
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
810
|
-
finally {
|
811
|
-
try {
|
812
|
-
if (TAG_ATTRIBUTE_NAMES_1_1 && !TAG_ATTRIBUTE_NAMES_1_1.done && (_a = TAG_ATTRIBUTE_NAMES_1.return)) _a.call(TAG_ATTRIBUTE_NAMES_1);
|
813
|
-
}
|
814
|
-
finally { if (e_1) throw e_1.error; }
|
815
|
-
}
|
816
|
-
this.elementRef.nativeElement.classList.add('mc-standard-tag');
|
817
|
-
};
|
818
|
-
McTag.prototype.ngOnDestroy = function () {
|
819
|
-
this.destroyed.emit({ tag: this });
|
820
|
-
};
|
821
|
-
McTag.prototype.select = function () {
|
822
|
-
if (!this._selected) {
|
823
|
-
this._selected = true;
|
824
|
-
this.dispatchSelectionChange();
|
825
|
-
}
|
826
|
-
};
|
827
|
-
McTag.prototype.deselect = function () {
|
828
|
-
if (this._selected) {
|
829
|
-
this._selected = false;
|
830
|
-
this.dispatchSelectionChange();
|
831
|
-
}
|
832
|
-
};
|
833
|
-
McTag.prototype.selectViaInteraction = function () {
|
834
|
-
if (!this._selected) {
|
835
|
-
this._selected = true;
|
836
|
-
this.dispatchSelectionChange(true);
|
837
|
-
}
|
838
|
-
};
|
839
|
-
McTag.prototype.toggleSelected = function (isUserInput) {
|
840
|
-
if (isUserInput === void 0) { isUserInput = false; }
|
841
|
-
this._selected = !this.selected;
|
842
|
-
this.dispatchSelectionChange(isUserInput);
|
843
|
-
return this.selected;
|
844
|
-
};
|
845
|
-
/** Allows for programmatic focusing of the tag. */
|
846
|
-
McTag.prototype.focus = function () {
|
847
|
-
var _this = this;
|
848
|
-
if (!this.selectable) {
|
849
|
-
return;
|
850
|
-
}
|
851
|
-
if (!this.hasFocus) {
|
852
|
-
this.elementRef.nativeElement.focus();
|
853
|
-
this.onFocus.next({ tag: this });
|
854
|
-
Promise.resolve().then(function () {
|
855
|
-
_this.hasFocus = true;
|
856
|
-
_this.changeDetectorRef.markForCheck();
|
857
|
-
});
|
858
|
-
}
|
859
|
-
};
|
860
|
-
/**
|
861
|
-
* Allows for programmatic removal of the tag. Called by the McTagList when the DELETE or
|
862
|
-
* BACKSPACE keys are pressed.
|
863
|
-
*
|
864
|
-
* Informs any listeners of the removal request. Does not remove the tag from the DOM.
|
865
|
-
*/
|
866
|
-
McTag.prototype.remove = function () {
|
867
|
-
if (this.removable) {
|
868
|
-
this.removed.emit({ tag: this });
|
869
|
-
}
|
870
|
-
};
|
871
|
-
McTag.prototype.handleClick = function (event) {
|
872
|
-
if (this.disabled) {
|
873
|
-
event.preventDefault();
|
874
|
-
}
|
875
|
-
else {
|
876
|
-
event.stopPropagation();
|
877
|
-
}
|
878
|
-
};
|
879
|
-
McTag.prototype.handleKeydown = function (event) {
|
880
|
-
if (this.disabled) {
|
881
|
-
return;
|
882
|
-
}
|
883
|
-
// tslint:disable-next-line: deprecation
|
884
|
-
switch (event.keyCode) {
|
885
|
-
case keycodes.DELETE:
|
886
|
-
case keycodes.BACKSPACE:
|
887
|
-
// If we are removable, remove the focused tag
|
888
|
-
this.remove();
|
889
|
-
// Always prevent so page navigation does not occur
|
890
|
-
event.preventDefault();
|
891
|
-
break;
|
892
|
-
case keycodes.SPACE:
|
893
|
-
// If we are selectable, toggle the focused tag
|
894
|
-
if (this.selectable) {
|
895
|
-
this.toggleSelected(true);
|
896
|
-
}
|
897
|
-
// Always prevent space from scrolling the page since the list has focus
|
898
|
-
event.preventDefault();
|
899
|
-
break;
|
900
|
-
default:
|
901
|
-
}
|
902
|
-
};
|
903
|
-
McTag.prototype.blur = function () {
|
904
|
-
var _this = this;
|
905
|
-
// When animations are enabled, Angular may end up removing the tag from the DOM a little
|
906
|
-
// earlier than usual, causing it to be blurred and throwing off the logic in the tag list
|
907
|
-
// that moves focus not the next item. To work around the issue, we defer marking the tag
|
908
|
-
// as not focused until the next time the zone stabilizes.
|
909
|
-
this._ngZone.onStable
|
910
|
-
.asObservable()
|
911
|
-
.pipe(operators.take(1))
|
912
|
-
.subscribe(function () {
|
913
|
-
_this._ngZone.run(function () {
|
914
|
-
_this.hasFocus = false;
|
915
|
-
_this.onBlur.next({ tag: _this });
|
916
|
-
});
|
917
|
-
});
|
918
|
-
};
|
919
|
-
McTag.prototype.dispatchSelectionChange = function (isUserInput) {
|
920
|
-
if (isUserInput === void 0) { isUserInput = false; }
|
921
|
-
this.selectionChange.emit({
|
922
|
-
source: this,
|
923
|
-
isUserInput: isUserInput,
|
924
|
-
selected: this._selected
|
925
|
-
});
|
926
|
-
};
|
927
|
-
return McTag;
|
928
|
-
}(McTagMixinBase));
|
929
|
-
/** @nocollapse */ McTag.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTag, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
930
|
-
/** @nocollapse */ McTag.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: McTag, selector: "mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]", inputs: { color: "color", selected: "selected", value: "value", selectable: "selectable", removable: "removable", disabled: "disabled" }, outputs: { selectionChange: "selectionChange", destroyed: "destroyed", removed: "removed" }, host: { listeners: { "click": "handleClick($event)", "keydown": "handleKeydown($event)", "focus": "focus()", "blur": "blur()" }, properties: { "attr.tabindex": "tabindex", "attr.disabled": "disabled || null", "class.mc-selected": "selected", "class.mc-focused": "hasFocus", "class.mc-tag-with-avatar": "avatar", "class.mc-tag-with-trailing-icon": "trailingIcon || removeIcon", "class.mc-disabled": "disabled" }, classAttribute: "mc-tag" }, queries: [{ propertyName: "avatar", first: true, predicate: McTagAvatar, descendants: true }, { propertyName: "trailingIcon", first: true, predicate: McTagTrailingIcon, descendants: true }, { propertyName: "removeIcon", first: true, predicate: McTagRemove, descendants: true }, { propertyName: "contentChildren", predicate: icon.McIcon }], exportAs: ["mcTag"], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"mc-tag__wrapper\">\n <span class=\"mc-tag__text\"><ng-content></ng-content></span>\n <ng-content select=\"[mc-icon]\"></ng-content>\n <div class=\"mc-tag-overlay\"></div>\n</div>\n", styles: [".mc-tag{position:relative;display:inline-block;overflow:hidden;margin:2px;margin:var(--mc-tags-size-margin, 2px);height:24px;height:var(--mc-tags-size-height, 24px);border-width:1px;border-width:var(--mc-tags-size-border-width, 1px);border-style:solid;border-radius:4px;border-radius:var(--mc-tags-size-border-radius, 4px);cursor:default;outline:none;box-sizing:border-box}.mc-tag.mc-left-icon{padding-left:3px;padding-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag.mc-right-icon{padding-right:3px;padding-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper{display:flex;align-items:center;height:100%;flex:1 1 100%}.mc-tag__wrapper .mc-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:24px;width:var(--mc-tags-size-height, 24px);height:24px;height:var(--mc-tags-size-height, 24px)}.mc-tag__wrapper .mc-icon_left{margin-right:3px;margin-right:var(--mc-tags-size-icon-padding, 3px)}.mc-tag__wrapper .mc-icon_right{margin-left:3px;margin-left:var(--mc-tags-size-icon-padding, 3px)}.mc-tag-overlay{position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;pointer-events:none;border-radius:inherit}.mc-tag__text{margin-left:calc(8px - 1px);margin-left:calc(var(--mc-tags-size-text-margin, 8px) - var(--mc-tags-size-border-width, 1px));text-overflow:ellipsis;white-space:nowrap;overflow:hidden}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
931
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTag, decorators: [{
|
932
|
-
type: i0.Component,
|
933
|
-
args: [{
|
934
|
-
selector: 'mc-tag, [mc-tag], mc-basic-tag, [mc-basic-tag]',
|
935
|
-
exportAs: 'mcTag',
|
936
|
-
templateUrl: 'tag.partial.html',
|
937
|
-
styleUrls: ['./tag.scss'],
|
938
|
-
inputs: ['color'],
|
939
|
-
host: {
|
940
|
-
class: 'mc-tag',
|
941
|
-
'[attr.tabindex]': 'tabindex',
|
942
|
-
'[attr.disabled]': 'disabled || null',
|
943
|
-
'[class.mc-selected]': 'selected',
|
944
|
-
'[class.mc-focused]': 'hasFocus',
|
945
|
-
'[class.mc-tag-with-avatar]': 'avatar',
|
946
|
-
'[class.mc-tag-with-trailing-icon]': 'trailingIcon || removeIcon',
|
947
|
-
'[class.mc-disabled]': 'disabled',
|
948
|
-
'(click)': 'handleClick($event)',
|
949
|
-
'(keydown)': 'handleKeydown($event)',
|
950
|
-
'(focus)': 'focus()',
|
951
|
-
'(blur)': 'blur()'
|
952
|
-
},
|
953
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
954
|
-
encapsulation: i0.ViewEncapsulation.None
|
955
|
-
}]
|
956
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { contentChildren: [{
|
957
|
-
type: i0.ContentChildren,
|
958
|
-
args: [icon.McIcon]
|
959
|
-
}], avatar: [{
|
960
|
-
type: i0.ContentChild,
|
961
|
-
args: [McTagAvatar, { static: false }]
|
962
|
-
}], trailingIcon: [{
|
963
|
-
type: i0.ContentChild,
|
964
|
-
args: [McTagTrailingIcon, { static: false }]
|
965
|
-
}], removeIcon: [{
|
966
|
-
type: i0.ContentChild,
|
967
|
-
args: [i0.forwardRef(function () { return McTagRemove; }), { static: false }]
|
968
|
-
}], selectionChange: [{
|
969
|
-
type: i0.Output
|
970
|
-
}], destroyed: [{
|
971
|
-
type: i0.Output
|
972
|
-
}], removed: [{
|
973
|
-
type: i0.Output
|
974
|
-
}], selected: [{
|
975
|
-
type: i0.Input
|
976
|
-
}], value: [{
|
977
|
-
type: i0.Input
|
978
|
-
}], selectable: [{
|
979
|
-
type: i0.Input
|
980
|
-
}], removable: [{
|
981
|
-
type: i0.Input
|
982
|
-
}], disabled: [{
|
983
|
-
type: i0.Input
|
984
|
-
}] } });
|
985
|
-
/**
|
986
|
-
*
|
987
|
-
* Example:
|
988
|
-
*
|
989
|
-
* `<mc-tag>
|
990
|
-
* <mc-icon mcTagRemove>cancel</mc-icon>
|
991
|
-
* </mc-tag>`
|
992
|
-
*
|
993
|
-
* You *may* use a custom icon, but you may need to override the `mc-tag-remove` positioning
|
994
|
-
* styles to properly center the icon within the tag.
|
995
|
-
*/
|
996
|
-
var McTagRemove = /** @class */ (function () {
|
997
|
-
function McTagRemove(parentTag) {
|
998
|
-
this.parentTag = parentTag;
|
999
|
-
}
|
1000
|
-
McTagRemove.prototype.focus = function ($event) {
|
1001
|
-
$event.stopPropagation();
|
1002
|
-
};
|
1003
|
-
/** Calls the parent tag's public `remove()` method if applicable. */
|
1004
|
-
McTagRemove.prototype.handleClick = function (event) {
|
1005
|
-
if (this.parentTag.removable) {
|
1006
|
-
this.parentTag.hasFocus = true;
|
1007
|
-
this.parentTag.remove();
|
1008
|
-
}
|
1009
|
-
// We need to stop event propagation because otherwise the event will bubble up to the
|
1010
|
-
// form field and cause the `onContainerClick` method to be invoked. This method would then
|
1011
|
-
// reset the focused tag that has been focused after tag removal. Usually the parent
|
1012
|
-
// the parent click listener of the `McTag` would prevent propagation, but it can happen
|
1013
|
-
// that the tag is being removed before the event bubbles up.
|
1014
|
-
event.stopPropagation();
|
1015
|
-
};
|
1016
|
-
return McTagRemove;
|
1017
|
-
}());
|
1018
|
-
/** @nocollapse */ McTagRemove.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagRemove, deps: [{ token: McTag }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
1019
|
-
/** @nocollapse */ McTagRemove.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.5", type: McTagRemove, selector: "[mcTagRemove]", host: { listeners: { "click": "handleClick($event)", "focus": "focus($event)" }, properties: { "attr.tabindex": "-1" }, classAttribute: "mc-tag-remove mc-tag-trailing-icon" }, ngImport: i0__namespace });
|
1020
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagRemove, decorators: [{
|
1021
|
-
type: i0.Directive,
|
1022
|
-
args: [{
|
1023
|
-
selector: '[mcTagRemove]',
|
1024
|
-
host: {
|
1025
|
-
class: 'mc-tag-remove mc-tag-trailing-icon',
|
1026
|
-
'[attr.tabindex]': '-1',
|
1027
|
-
'(click)': 'handleClick($event)',
|
1028
|
-
'(focus)': 'focus($event)'
|
1029
|
-
}
|
1030
|
-
}]
|
1031
|
-
}], ctorParameters: function () { return [{ type: McTag }]; } });
|
1032
|
-
|
1033
|
-
var McTagListBase = /** @class */ (function () {
|
1034
|
-
function McTagListBase(defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) {
|
1035
|
-
this.defaultErrorStateMatcher = defaultErrorStateMatcher;
|
1036
|
-
this.parentForm = parentForm;
|
1037
|
-
this.parentFormGroup = parentFormGroup;
|
1038
|
-
this.ngControl = ngControl;
|
1039
|
-
}
|
1040
|
-
return McTagListBase;
|
1041
|
-
}());
|
1042
|
-
// tslint:disable-next-line:naming-convention
|
1043
|
-
var McTagListMixinBase = i1.mixinErrorState(McTagListBase);
|
1044
|
-
// Increasing integer for generating unique ids for tag-list components.
|
1045
|
-
var nextUniqueId = 0;
|
1046
|
-
/** Change event object that is emitted when the tag list value has changed. */
|
1047
|
-
var McTagListChange = /** @class */ (function () {
|
1048
|
-
function McTagListChange(source, value) {
|
1049
|
-
this.source = source;
|
1050
|
-
this.value = value;
|
1051
|
-
}
|
1052
|
-
return McTagListChange;
|
1053
|
-
}());
|
1054
|
-
var McTagList = /** @class */ (function (_super) {
|
1055
|
-
__extends(McTagList, _super);
|
1056
|
-
function McTagList(elementRef, changeDetectorRef, defaultErrorStateMatcher, rawValidators, mcValidation, dir, parentForm, parentFormGroup, ngControl, ngModel, formControlName) {
|
1057
|
-
var _this = _super.call(this, defaultErrorStateMatcher, parentForm, parentFormGroup, ngControl) || this;
|
1058
|
-
_this.elementRef = elementRef;
|
1059
|
-
_this.changeDetectorRef = changeDetectorRef;
|
1060
|
-
_this.rawValidators = rawValidators;
|
1061
|
-
_this.mcValidation = mcValidation;
|
1062
|
-
_this.dir = dir;
|
1063
|
-
_this.ngModel = ngModel;
|
1064
|
-
_this.formControlName = formControlName;
|
1065
|
-
_this.controlType = 'tag-list';
|
1066
|
-
_this._tabIndex = 0;
|
1067
|
-
/**
|
1068
|
-
* Event that emits whenever the raw value of the tag-list changes. This is here primarily
|
1069
|
-
* to facilitate the two-way binding for the `value` input.
|
1070
|
-
* @docs-private
|
1071
|
-
*/
|
1072
|
-
_this.valueChange = new i0.EventEmitter();
|
1073
|
-
_this.uid = "mc-tag-list-" + nextUniqueId++;
|
1074
|
-
/**
|
1075
|
-
* User defined tab index.
|
1076
|
-
* When it is not null, use user defined tab index. Otherwise use tabIndex
|
1077
|
-
*/
|
1078
|
-
_this.userTabIndex = null;
|
1079
|
-
_this.tagChanges = new i0.EventEmitter();
|
1080
|
-
/** Orientation of the tag list. */
|
1081
|
-
_this.orientation = 'horizontal';
|
1082
|
-
/** Event emitted when the selected tag list value has been changed by the user. */
|
1083
|
-
_this.change = new i0.EventEmitter();
|
1084
|
-
_this._required = false;
|
1085
|
-
_this._disabled = false;
|
1086
|
-
_this._selectable = true;
|
1087
|
-
_this._multiple = false;
|
1088
|
-
/**
|
1089
|
-
* When a tag is destroyed, we store the index of the destroyed tag until the tags
|
1090
|
-
* query list notifies about the update. This is necessary because we cannot determine an
|
1091
|
-
* appropriate tag that should receive focus until the array of tags updated completely.
|
1092
|
-
*/
|
1093
|
-
_this.lastDestroyedTagIndex = null;
|
1094
|
-
/** Subject that emits when the component has been destroyed. */
|
1095
|
-
_this.destroyed = new rxjs.Subject();
|
1096
|
-
// tslint:disable-next-line:no-empty
|
1097
|
-
_this.onTouched = function () { };
|
1098
|
-
// tslint:disable-next-line:no-empty
|
1099
|
-
_this.onChange = function () { };
|
1100
|
-
_this._compareWith = function (o1, o2) { return o1 === o2; };
|
1101
|
-
if (_this.ngControl) {
|
1102
|
-
_this.ngControl.valueAccessor = _this;
|
1103
|
-
}
|
1104
|
-
return _this;
|
1105
|
-
}
|
1106
|
-
Object.defineProperty(McTagList.prototype, "tagSelectionChanges", {
|
1107
|
-
/** Combined stream of all of the child tags' selection change events. */
|
1108
|
-
get: function () {
|
1109
|
-
return rxjs.merge.apply(void 0, __spreadArray([], __read(this.tags.map(function (tag) { return tag.selectionChange; }))));
|
1110
|
-
},
|
1111
|
-
enumerable: false,
|
1112
|
-
configurable: true
|
1113
|
-
});
|
1114
|
-
Object.defineProperty(McTagList.prototype, "tagFocusChanges", {
|
1115
|
-
/** Combined stream of all of the child tags' focus change events. */
|
1116
|
-
get: function () {
|
1117
|
-
return rxjs.merge.apply(void 0, __spreadArray([], __read(this.tags.map(function (tag) { return tag.onFocus; }))));
|
1118
|
-
},
|
1119
|
-
enumerable: false,
|
1120
|
-
configurable: true
|
1121
|
-
});
|
1122
|
-
Object.defineProperty(McTagList.prototype, "tagBlurChanges", {
|
1123
|
-
/** Combined stream of all of the child tags' blur change events. */
|
1124
|
-
get: function () {
|
1125
|
-
return rxjs.merge.apply(void 0, __spreadArray([], __read(this.tags.map(function (tag) { return tag.onBlur; }))));
|
1126
|
-
},
|
1127
|
-
enumerable: false,
|
1128
|
-
configurable: true
|
1129
|
-
});
|
1130
|
-
Object.defineProperty(McTagList.prototype, "tagRemoveChanges", {
|
1131
|
-
/** Combined stream of all of the child tags' remove change events. */
|
1132
|
-
get: function () {
|
1133
|
-
return rxjs.merge.apply(void 0, __spreadArray([], __read(this.tags.map(function (tag) { return tag.destroyed; }))));
|
1134
|
-
},
|
1135
|
-
enumerable: false,
|
1136
|
-
configurable: true
|
1137
|
-
});
|
1138
|
-
Object.defineProperty(McTagList.prototype, "selected", {
|
1139
|
-
/** The array of selected tags inside tag list. */
|
1140
|
-
get: function () {
|
1141
|
-
return this.multiple ? this.selectionModel.selected : this.selectionModel.selected[0];
|
1142
|
-
},
|
1143
|
-
enumerable: false,
|
1144
|
-
configurable: true
|
1145
|
-
});
|
1146
|
-
Object.defineProperty(McTagList.prototype, "canShowCleaner", {
|
1147
|
-
get: function () {
|
1148
|
-
return this.cleaner && this.tags.length > 0;
|
1149
|
-
},
|
1150
|
-
enumerable: false,
|
1151
|
-
configurable: true
|
1152
|
-
});
|
1153
|
-
Object.defineProperty(McTagList.prototype, "multiple", {
|
1154
|
-
/** Whether the user should be allowed to select multiple tags. */
|
1155
|
-
get: function () {
|
1156
|
-
return this._multiple;
|
1157
|
-
},
|
1158
|
-
set: function (value) {
|
1159
|
-
this._multiple = coercion.coerceBooleanProperty(value);
|
1160
|
-
},
|
1161
|
-
enumerable: false,
|
1162
|
-
configurable: true
|
1163
|
-
});
|
1164
|
-
Object.defineProperty(McTagList.prototype, "compareWith", {
|
1165
|
-
/**
|
1166
|
-
* A function to compare the option values with the selected values. The first argument
|
1167
|
-
* is a value from an option. The second is a value from the selection. A boolean
|
1168
|
-
* should be returned.
|
1169
|
-
*/
|
1170
|
-
get: function () {
|
1171
|
-
return this._compareWith;
|
1172
|
-
},
|
1173
|
-
set: function (fn) {
|
1174
|
-
this._compareWith = fn;
|
1175
|
-
if (this.selectionModel) {
|
1176
|
-
// A different comparator means the selection could change.
|
1177
|
-
this.initializeSelection();
|
1178
|
-
}
|
1179
|
-
},
|
1180
|
-
enumerable: false,
|
1181
|
-
configurable: true
|
1182
|
-
});
|
1183
|
-
Object.defineProperty(McTagList.prototype, "value", {
|
1184
|
-
/**
|
1185
|
-
* Implemented as part of McFormFieldControl.
|
1186
|
-
* @docs-private
|
1187
|
-
*/
|
1188
|
-
get: function () {
|
1189
|
-
return this._value;
|
1190
|
-
},
|
1191
|
-
set: function (value) {
|
1192
|
-
this.writeValue(value);
|
1193
|
-
this._value = value;
|
1194
|
-
},
|
1195
|
-
enumerable: false,
|
1196
|
-
configurable: true
|
1197
|
-
});
|
1198
|
-
Object.defineProperty(McTagList.prototype, "id", {
|
1199
|
-
/**
|
1200
|
-
* Implemented as part of McFormFieldControl.
|
1201
|
-
* @docs-private
|
1202
|
-
*/
|
1203
|
-
get: function () {
|
1204
|
-
return this.tagInput ? this.tagInput.id : this.uid;
|
1205
|
-
},
|
1206
|
-
enumerable: false,
|
1207
|
-
configurable: true
|
1208
|
-
});
|
1209
|
-
Object.defineProperty(McTagList.prototype, "required", {
|
1210
|
-
/**
|
1211
|
-
* Implemented as part of McFormFieldControl.
|
1212
|
-
* @docs-private
|
1213
|
-
*/
|
1214
|
-
get: function () {
|
1215
|
-
return this._required;
|
1216
|
-
},
|
1217
|
-
set: function (value) {
|
1218
|
-
this._required = coercion.coerceBooleanProperty(value);
|
1219
|
-
this.stateChanges.next();
|
1220
|
-
},
|
1221
|
-
enumerable: false,
|
1222
|
-
configurable: true
|
1223
|
-
});
|
1224
|
-
Object.defineProperty(McTagList.prototype, "placeholder", {
|
1225
|
-
/**
|
1226
|
-
* Implemented as part of McFormFieldControl.
|
1227
|
-
* @docs-private
|
1228
|
-
*/
|
1229
|
-
get: function () {
|
1230
|
-
return this.tagInput ? this.tagInput.placeholder : this._placeholder;
|
1231
|
-
},
|
1232
|
-
set: function (value) {
|
1233
|
-
this._placeholder = value;
|
1234
|
-
this.stateChanges.next();
|
1235
|
-
},
|
1236
|
-
enumerable: false,
|
1237
|
-
configurable: true
|
1238
|
-
});
|
1239
|
-
Object.defineProperty(McTagList.prototype, "focused", {
|
1240
|
-
/** Whether any tags or the mcTagInput inside of this tag-list has focus. */
|
1241
|
-
get: function () {
|
1242
|
-
return (this.tagInput && this.tagInput.focused) || this.hasFocusedTag();
|
1243
|
-
},
|
1244
|
-
enumerable: false,
|
1245
|
-
configurable: true
|
1246
|
-
});
|
1247
|
-
Object.defineProperty(McTagList.prototype, "empty", {
|
1248
|
-
/**
|
1249
|
-
* Implemented as part of McFormFieldControl.
|
1250
|
-
* @docs-private
|
1251
|
-
*/
|
1252
|
-
get: function () {
|
1253
|
-
return (!this.tagInput || this.tagInput.empty) && this.tags.length === 0;
|
1254
|
-
},
|
1255
|
-
enumerable: false,
|
1256
|
-
configurable: true
|
1257
|
-
});
|
1258
|
-
Object.defineProperty(McTagList.prototype, "shouldLabelFloat", {
|
1259
|
-
/**
|
1260
|
-
* Implemented as part of McFormFieldControl.
|
1261
|
-
* @docs-private
|
1262
|
-
*/
|
1263
|
-
get: function () {
|
1264
|
-
return !this.empty || this.focused;
|
1265
|
-
},
|
1266
|
-
enumerable: false,
|
1267
|
-
configurable: true
|
1268
|
-
});
|
1269
|
-
Object.defineProperty(McTagList.prototype, "disabled", {
|
1270
|
-
/**
|
1271
|
-
* Implemented as part of McFormFieldControl.
|
1272
|
-
* @docs-private
|
1273
|
-
*/
|
1274
|
-
get: function () {
|
1275
|
-
return this.ngControl ? !!this.ngControl.disabled : this._disabled;
|
1276
|
-
},
|
1277
|
-
set: function (value) {
|
1278
|
-
this._disabled = coercion.coerceBooleanProperty(value);
|
1279
|
-
this.syncTagsDisabledState();
|
1280
|
-
},
|
1281
|
-
enumerable: false,
|
1282
|
-
configurable: true
|
1283
|
-
});
|
1284
|
-
Object.defineProperty(McTagList.prototype, "selectable", {
|
1285
|
-
/**
|
1286
|
-
* Whether or not this tag list is selectable. When a tag list is not selectable,
|
1287
|
-
* the selected states for all the tags inside the tag list are always ignored.
|
1288
|
-
*/
|
1289
|
-
get: function () {
|
1290
|
-
return this._selectable;
|
1291
|
-
},
|
1292
|
-
set: function (value) {
|
1293
|
-
var _this = this;
|
1294
|
-
this._selectable = coercion.coerceBooleanProperty(value);
|
1295
|
-
if (this.tags) {
|
1296
|
-
this.tags.forEach(function (tag) { return tag.tagListSelectable = _this._selectable; });
|
1297
|
-
}
|
1298
|
-
},
|
1299
|
-
enumerable: false,
|
1300
|
-
configurable: true
|
1301
|
-
});
|
1302
|
-
Object.defineProperty(McTagList.prototype, "tabIndex", {
|
1303
|
-
get: function () {
|
1304
|
-
return this._tabIndex;
|
1305
|
-
},
|
1306
|
-
set: function (value) {
|
1307
|
-
this.userTabIndex = value;
|
1308
|
-
this._tabIndex = value;
|
1309
|
-
},
|
1310
|
-
enumerable: false,
|
1311
|
-
configurable: true
|
1312
|
-
});
|
1313
|
-
McTagList.prototype.ngAfterContentInit = function () {
|
1314
|
-
var _this = this;
|
1315
|
-
if (this.mcValidation.useValidation) {
|
1316
|
-
i1.setMosaicValidation(this);
|
1317
|
-
}
|
1318
|
-
this.keyManager = new a11y.FocusKeyManager(this.tags)
|
1319
|
-
.withVerticalOrientation()
|
1320
|
-
.withHorizontalOrientation(this.dir ? this.dir.value : 'ltr');
|
1321
|
-
if (this.dir) {
|
1322
|
-
this.dir.change
|
1323
|
-
.pipe(operators.takeUntil(this.destroyed))
|
1324
|
-
.subscribe(function (dir) { return _this.keyManager.withHorizontalOrientation(dir); });
|
1325
|
-
}
|
1326
|
-
// Prevents the tag list from capturing focus and redirecting
|
1327
|
-
// it back to the first tag when the user tabs out.
|
1328
|
-
this.keyManager.tabOut
|
1329
|
-
.pipe(operators.takeUntil(this.destroyed))
|
1330
|
-
.subscribe(function () {
|
1331
|
-
_this._tabIndex = -1;
|
1332
|
-
setTimeout(function () {
|
1333
|
-
_this._tabIndex = _this.userTabIndex || 0;
|
1334
|
-
_this.changeDetectorRef.markForCheck();
|
1335
|
-
});
|
1336
|
-
});
|
1337
|
-
// When the list changes, re-subscribe
|
1338
|
-
this.tags.changes
|
1339
|
-
.pipe(operators.startWith(null), operators.takeUntil(this.destroyed))
|
1340
|
-
.subscribe(function () {
|
1341
|
-
if (_this.disabled) {
|
1342
|
-
// Since this happens after the content has been
|
1343
|
-
// checked, we need to defer it to the next tick.
|
1344
|
-
Promise.resolve().then(function () { _this.syncTagsDisabledState(); });
|
1345
|
-
}
|
1346
|
-
_this.resetTags();
|
1347
|
-
// Reset tags selected/deselected status
|
1348
|
-
_this.initializeSelection();
|
1349
|
-
// Check to see if we need to update our tab index
|
1350
|
-
_this.updateTabIndex();
|
1351
|
-
// Check to see if we have a destroyed tag and need to refocus
|
1352
|
-
_this.updateFocusForDestroyedTags();
|
1353
|
-
// Defer setting the value in order to avoid the "Expression
|
1354
|
-
// has changed after it was checked" errors from Angular.
|
1355
|
-
Promise.resolve().then(function () {
|
1356
|
-
_this.tagChanges.emit(_this.tags.toArray());
|
1357
|
-
_this.stateChanges.next();
|
1358
|
-
_this.propagateTagsChanges();
|
1359
|
-
});
|
1360
|
-
});
|
1361
|
-
};
|
1362
|
-
McTagList.prototype.ngOnInit = function () {
|
1363
|
-
this.selectionModel = new collections.SelectionModel(this.multiple, undefined, false);
|
1364
|
-
this.stateChanges.next();
|
1365
|
-
};
|
1366
|
-
McTagList.prototype.ngDoCheck = function () {
|
1367
|
-
if (this.ngControl) {
|
1368
|
-
// We need to re-evaluate this on every change detection cycle, because there are some
|
1369
|
-
// error triggers that we can't subscribe to (e.g. parent form submissions). This means
|
1370
|
-
// that whatever logic is in here has to be super lean or we risk destroying the performance.
|
1371
|
-
this.updateErrorState();
|
1372
|
-
}
|
1373
|
-
};
|
1374
|
-
McTagList.prototype.ngOnDestroy = function () {
|
1375
|
-
this.destroyed.next();
|
1376
|
-
this.destroyed.complete();
|
1377
|
-
this.stateChanges.complete();
|
1378
|
-
this.dropSubscriptions();
|
1379
|
-
};
|
1380
|
-
/** Associates an HTML input element with this tag list. */
|
1381
|
-
McTagList.prototype.registerInput = function (inputElement) {
|
1382
|
-
var _this = this;
|
1383
|
-
var _a;
|
1384
|
-
this.tagInput = inputElement;
|
1385
|
-
// todo need rethink about it
|
1386
|
-
if (this.ngControl && ((_a = inputElement.ngControl) === null || _a === void 0 ? void 0 : _a.statusChanges)) {
|
1387
|
-
inputElement.ngControl.statusChanges
|
1388
|
-
.subscribe(function () { return _this.ngControl.control.setErrors(inputElement.ngControl.errors); });
|
1389
|
-
}
|
1390
|
-
};
|
1391
|
-
// Implemented as part of ControlValueAccessor.
|
1392
|
-
McTagList.prototype.writeValue = function (value) {
|
1393
|
-
if (this.tags) {
|
1394
|
-
this.setSelectionByValue(value, false);
|
1395
|
-
}
|
1396
|
-
};
|
1397
|
-
// Implemented as part of ControlValueAccessor.
|
1398
|
-
McTagList.prototype.registerOnChange = function (fn) {
|
1399
|
-
this.onChange = fn;
|
1400
|
-
};
|
1401
|
-
// Implemented as part of ControlValueAccessor.
|
1402
|
-
McTagList.prototype.registerOnTouched = function (fn) {
|
1403
|
-
this.onTouched = fn;
|
1404
|
-
};
|
1405
|
-
// Implemented as part of ControlValueAccessor.
|
1406
|
-
McTagList.prototype.setDisabledState = function (isDisabled) {
|
1407
|
-
this.disabled = isDisabled;
|
1408
|
-
this.stateChanges.next();
|
1409
|
-
};
|
1410
|
-
/**
|
1411
|
-
* Implemented as part of McFormFieldControl.
|
1412
|
-
* @docs-private
|
1413
|
-
*/
|
1414
|
-
McTagList.prototype.onContainerClick = function (event) {
|
1415
|
-
if (!this.originatesFromTag(event)) {
|
1416
|
-
this.focus();
|
1417
|
-
}
|
1418
|
-
};
|
1419
|
-
/**
|
1420
|
-
* Focuses the first non-disabled tag in this tag list, or the associated input when there
|
1421
|
-
* are no eligible tags.
|
1422
|
-
*/
|
1423
|
-
McTagList.prototype.focus = function () {
|
1424
|
-
if (this.disabled) {
|
1425
|
-
return;
|
1426
|
-
}
|
1427
|
-
// TODO: ARIA says this should focus the first `selected` tag if any are selected.
|
1428
|
-
// Focus on first element if there's no tagInput inside tag-list
|
1429
|
-
if (this.tagInput && this.tagInput.focused) {
|
1430
|
-
// do nothing
|
1431
|
-
}
|
1432
|
-
else if (this.tags.length > 0) {
|
1433
|
-
this.keyManager.setFirstItemActive();
|
1434
|
-
this.stateChanges.next();
|
1435
|
-
}
|
1436
|
-
else {
|
1437
|
-
this.focusInput();
|
1438
|
-
this.stateChanges.next();
|
1439
|
-
}
|
1440
|
-
};
|
1441
|
-
/** Attempt to focus an input if we have one. */
|
1442
|
-
McTagList.prototype.focusInput = function () {
|
1443
|
-
if (this.tagInput) {
|
1444
|
-
this.tagInput.focus();
|
1445
|
-
}
|
1446
|
-
};
|
1447
|
-
/**
|
1448
|
-
* Pass events to the keyboard manager. Available here for tests.
|
1449
|
-
*/
|
1450
|
-
McTagList.prototype.keydown = function (event) {
|
1451
|
-
var target = event.target;
|
1452
|
-
// If they are on an empty input and hit backspace, focus the last tag
|
1453
|
-
// tslint:disable-next-line: deprecation
|
1454
|
-
if (event.keyCode === keycodes.BACKSPACE && this.isInputEmpty(target)) {
|
1455
|
-
this.keyManager.setLastItemActive();
|
1456
|
-
event.preventDefault();
|
1457
|
-
}
|
1458
|
-
else if (target && target.classList.contains('mc-tag')) {
|
1459
|
-
// tslint:disable-next-line: deprecation
|
1460
|
-
if (event.keyCode === keycodes.HOME) {
|
1461
|
-
this.keyManager.setFirstItemActive();
|
1462
|
-
event.preventDefault();
|
1463
|
-
// tslint:disable-next-line: deprecation
|
1464
|
-
}
|
1465
|
-
else if (event.keyCode === keycodes.END) {
|
1466
|
-
this.keyManager.setLastItemActive();
|
1467
|
-
event.preventDefault();
|
1468
|
-
}
|
1469
|
-
else {
|
1470
|
-
this.keyManager.onKeydown(event);
|
1471
|
-
}
|
1472
|
-
this.stateChanges.next();
|
1473
|
-
}
|
1474
|
-
};
|
1475
|
-
McTagList.prototype.setSelectionByValue = function (value, isUserInput) {
|
1476
|
-
var _this = this;
|
1477
|
-
if (isUserInput === void 0) { isUserInput = true; }
|
1478
|
-
this.clearSelection();
|
1479
|
-
this.tags.forEach(function (tag) { return tag.deselect(); });
|
1480
|
-
if (Array.isArray(value)) {
|
1481
|
-
value.forEach(function (currentValue) { return _this.selectValue(currentValue, isUserInput); });
|
1482
|
-
this.sortValues();
|
1483
|
-
}
|
1484
|
-
else {
|
1485
|
-
var correspondingTag = this.selectValue(value, isUserInput);
|
1486
|
-
// Shift focus to the active item. Note that we shouldn't do this in multiple
|
1487
|
-
// mode, because we don't know what tag the user interacted with last.
|
1488
|
-
if (correspondingTag && isUserInput) {
|
1489
|
-
this.keyManager.setActiveItem(correspondingTag);
|
1490
|
-
}
|
1491
|
-
}
|
1492
|
-
};
|
1493
|
-
/** When blurred, mark the field as touched when focus moved outside the tag list. */
|
1494
|
-
McTagList.prototype.blur = function () {
|
1495
|
-
var _this = this;
|
1496
|
-
if (!this.hasFocusedTag()) {
|
1497
|
-
this.keyManager.setActiveItem(-1);
|
1498
|
-
}
|
1499
|
-
if (!this.disabled) {
|
1500
|
-
if (this.tagInput) {
|
1501
|
-
// If there's a tag input, we should check whether the focus moved to tag input.
|
1502
|
-
// If the focus is not moved to tag input, mark the field as touched. If the focus moved
|
1503
|
-
// to tag input, do nothing.
|
1504
|
-
// Timeout is needed to wait for the focus() event trigger on tag input.
|
1505
|
-
setTimeout(function () {
|
1506
|
-
if (!_this.focused) {
|
1507
|
-
_this.markAsTouched();
|
1508
|
-
}
|
1509
|
-
});
|
1510
|
-
}
|
1511
|
-
else {
|
1512
|
-
// If there's no tag input, then mark the field as touched.
|
1513
|
-
this.markAsTouched();
|
1514
|
-
}
|
1515
|
-
}
|
1516
|
-
};
|
1517
|
-
/** Mark the field as touched */
|
1518
|
-
McTagList.prototype.markAsTouched = function () {
|
1519
|
-
this.onTouched();
|
1520
|
-
this.changeDetectorRef.markForCheck();
|
1521
|
-
this.stateChanges.next();
|
1522
|
-
};
|
1523
|
-
/**
|
1524
|
-
* Check the tab index as you should not be allowed to focus an empty list.
|
1525
|
-
*/
|
1526
|
-
McTagList.prototype.updateTabIndex = function () {
|
1527
|
-
// If we have 0 tags, we should not allow keyboard focus
|
1528
|
-
this._tabIndex = this.userTabIndex || (this.tags.length === 0 ? -1 : 0);
|
1529
|
-
};
|
1530
|
-
/**
|
1531
|
-
* If the amount of tags changed, we need to update the
|
1532
|
-
* key manager state and focus the next closest tag.
|
1533
|
-
*/
|
1534
|
-
McTagList.prototype.updateFocusForDestroyedTags = function () {
|
1535
|
-
if (this.lastDestroyedTagIndex != null) {
|
1536
|
-
if (this.tags.length) {
|
1537
|
-
var newTagIndex = Math.min(this.lastDestroyedTagIndex, this.tags.length - 1);
|
1538
|
-
this.keyManager.setActiveItem(newTagIndex);
|
1539
|
-
}
|
1540
|
-
else {
|
1541
|
-
this.focusInput();
|
1542
|
-
}
|
1543
|
-
}
|
1544
|
-
this.lastDestroyedTagIndex = null;
|
1545
|
-
};
|
1546
|
-
/**
|
1547
|
-
* Utility to ensure all indexes are valid.
|
1548
|
-
*
|
1549
|
-
* @param index The index to be checked.
|
1550
|
-
* @returns True if the index is valid for our list of tags.
|
1551
|
-
*/
|
1552
|
-
McTagList.prototype.isValidIndex = function (index) {
|
1553
|
-
return index >= 0 && index < this.tags.length;
|
1554
|
-
};
|
1555
|
-
McTagList.prototype.isInputEmpty = function (element) {
|
1556
|
-
if (element && element.nodeName.toLowerCase() === 'input') {
|
1557
|
-
var input = element;
|
1558
|
-
return !input.value;
|
1559
|
-
}
|
1560
|
-
return false;
|
1561
|
-
};
|
1562
|
-
/**
|
1563
|
-
* Finds and selects the tag based on its value.
|
1564
|
-
* @returns Tag that has the corresponding value.
|
1565
|
-
*/
|
1566
|
-
McTagList.prototype.selectValue = function (value, isUserInput) {
|
1567
|
-
var _this = this;
|
1568
|
-
if (isUserInput === void 0) { isUserInput = true; }
|
1569
|
-
var correspondingTag = this.tags.find(function (tag) {
|
1570
|
-
return tag.value != null && _this._compareWith(tag.value, value);
|
1571
|
-
});
|
1572
|
-
if (correspondingTag) {
|
1573
|
-
if (isUserInput) {
|
1574
|
-
correspondingTag.selectViaInteraction();
|
1575
|
-
}
|
1576
|
-
else {
|
1577
|
-
correspondingTag.select();
|
1578
|
-
}
|
1579
|
-
this.selectionModel.select(correspondingTag);
|
1580
|
-
}
|
1581
|
-
return correspondingTag;
|
1582
|
-
};
|
1583
|
-
McTagList.prototype.initializeSelection = function () {
|
1584
|
-
var _this = this;
|
1585
|
-
// Defer setting the value in order to avoid the "Expression
|
1586
|
-
// has changed after it was checked" errors from Angular.
|
1587
|
-
Promise.resolve().then(function () {
|
1588
|
-
if (_this.ngControl || _this._value) {
|
1589
|
-
_this.setSelectionByValue(_this.ngControl ? _this.ngControl.value : _this._value, false);
|
1590
|
-
_this.stateChanges.next();
|
1591
|
-
}
|
1592
|
-
});
|
1593
|
-
};
|
1594
|
-
/**
|
1595
|
-
* Deselects every tag in the list.
|
1596
|
-
* @param skip Tag that should not be deselected.
|
1597
|
-
*/
|
1598
|
-
McTagList.prototype.clearSelection = function (skip) {
|
1599
|
-
this.selectionModel.clear();
|
1600
|
-
this.tags.forEach(function (tag) {
|
1601
|
-
if (tag !== skip) {
|
1602
|
-
tag.deselect();
|
1603
|
-
}
|
1604
|
-
});
|
1605
|
-
this.stateChanges.next();
|
1606
|
-
};
|
1607
|
-
/**
|
1608
|
-
* Sorts the model values, ensuring that they keep the same
|
1609
|
-
* order that they have in the panel.
|
1610
|
-
*/
|
1611
|
-
McTagList.prototype.sortValues = function () {
|
1612
|
-
var _this = this;
|
1613
|
-
if (this._multiple) {
|
1614
|
-
this.selectionModel.clear();
|
1615
|
-
this.tags.forEach(function (tag) {
|
1616
|
-
if (tag.selected) {
|
1617
|
-
_this.selectionModel.select(tag);
|
1618
|
-
}
|
1619
|
-
});
|
1620
|
-
this.stateChanges.next();
|
1621
|
-
}
|
1622
|
-
};
|
1623
|
-
/** Emits change event to set the model value. */
|
1624
|
-
// todo need rethink this method and selection logic
|
1625
|
-
McTagList.prototype.propagateChanges = function (fallbackValue) {
|
1626
|
-
var valueToEmit = null;
|
1627
|
-
if (Array.isArray(this.selected)) {
|
1628
|
-
valueToEmit = this.selected.map(function (tag) { return tag.value; });
|
1629
|
-
}
|
1630
|
-
else {
|
1631
|
-
valueToEmit = this.selected ? this.selected.value : fallbackValue;
|
1632
|
-
}
|
1633
|
-
this._value = valueToEmit;
|
1634
|
-
this.change.emit(new McTagListChange(this, valueToEmit));
|
1635
|
-
this.valueChange.emit(valueToEmit);
|
1636
|
-
this.onChange(valueToEmit);
|
1637
|
-
this.changeDetectorRef.markForCheck();
|
1638
|
-
};
|
1639
|
-
McTagList.prototype.propagateTagsChanges = function () {
|
1640
|
-
var valueToEmit = this.tags.map(function (tag) { return tag.value; });
|
1641
|
-
this._value = valueToEmit;
|
1642
|
-
this.change.emit(new McTagListChange(this, valueToEmit));
|
1643
|
-
this.valueChange.emit(valueToEmit);
|
1644
|
-
this.onChange(valueToEmit);
|
1645
|
-
this.changeDetectorRef.markForCheck();
|
1646
|
-
};
|
1647
|
-
McTagList.prototype.resetTags = function () {
|
1648
|
-
this.dropSubscriptions();
|
1649
|
-
this.listenToTagsFocus();
|
1650
|
-
this.listenToTagsSelection();
|
1651
|
-
this.listenToTagsRemoved();
|
1652
|
-
};
|
1653
|
-
McTagList.prototype.dropSubscriptions = function () {
|
1654
|
-
if (this.tagFocusSubscription) {
|
1655
|
-
this.tagFocusSubscription.unsubscribe();
|
1656
|
-
this.tagFocusSubscription = null;
|
1657
|
-
}
|
1658
|
-
if (this.tagBlurSubscription) {
|
1659
|
-
this.tagBlurSubscription.unsubscribe();
|
1660
|
-
this.tagBlurSubscription = null;
|
1661
|
-
}
|
1662
|
-
if (this.tagSelectionSubscription) {
|
1663
|
-
this.tagSelectionSubscription.unsubscribe();
|
1664
|
-
this.tagSelectionSubscription = null;
|
1665
|
-
}
|
1666
|
-
if (this.tagRemoveSubscription) {
|
1667
|
-
this.tagRemoveSubscription.unsubscribe();
|
1668
|
-
this.tagRemoveSubscription = null;
|
1669
|
-
}
|
1670
|
-
};
|
1671
|
-
/** Listens to user-generated selection events on each tag. */
|
1672
|
-
McTagList.prototype.listenToTagsSelection = function () {
|
1673
|
-
var _this = this;
|
1674
|
-
this.tagSelectionSubscription = this.tagSelectionChanges.subscribe(function (event) {
|
1675
|
-
if (event.source.selected) {
|
1676
|
-
_this.selectionModel.select(event.source);
|
1677
|
-
}
|
1678
|
-
else {
|
1679
|
-
_this.selectionModel.deselect(event.source);
|
1680
|
-
}
|
1681
|
-
// For single selection tag list, make sure the deselected value is unselected.
|
1682
|
-
if (!_this.multiple) {
|
1683
|
-
_this.tags.forEach(function (tag) {
|
1684
|
-
if (!_this.selectionModel.isSelected(tag) && tag.selected) {
|
1685
|
-
tag.deselect();
|
1686
|
-
}
|
1687
|
-
});
|
1688
|
-
}
|
1689
|
-
if (event.isUserInput) {
|
1690
|
-
_this.propagateChanges();
|
1691
|
-
}
|
1692
|
-
});
|
1693
|
-
};
|
1694
|
-
/** Listens to user-generated selection events on each tag. */
|
1695
|
-
McTagList.prototype.listenToTagsFocus = function () {
|
1696
|
-
var _this = this;
|
1697
|
-
this.tagFocusSubscription = this.tagFocusChanges
|
1698
|
-
.subscribe(function (event) {
|
1699
|
-
var tagIndex = _this.tags.toArray().indexOf(event.tag);
|
1700
|
-
if (_this.isValidIndex(tagIndex)) {
|
1701
|
-
_this.keyManager.updateActiveItem(tagIndex);
|
1702
|
-
}
|
1703
|
-
_this.stateChanges.next();
|
1704
|
-
});
|
1705
|
-
this.tagBlurSubscription = this.tagBlurChanges
|
1706
|
-
.subscribe(function () {
|
1707
|
-
_this.blur();
|
1708
|
-
_this.stateChanges.next();
|
1709
|
-
});
|
1710
|
-
};
|
1711
|
-
McTagList.prototype.listenToTagsRemoved = function () {
|
1712
|
-
var _this = this;
|
1713
|
-
this.tagRemoveSubscription = this.tagRemoveChanges
|
1714
|
-
.subscribe(function (event) {
|
1715
|
-
var tag = event.tag;
|
1716
|
-
var tagIndex = _this.tags.toArray().indexOf(event.tag);
|
1717
|
-
// In case the tag that will be removed is currently focused, we temporarily store
|
1718
|
-
// the index in order to be able to determine an appropriate sibling tag that will
|
1719
|
-
// receive focus.
|
1720
|
-
if (_this.isValidIndex(tagIndex) && tag.hasFocus) {
|
1721
|
-
_this.lastDestroyedTagIndex = tagIndex;
|
1722
|
-
}
|
1723
|
-
});
|
1724
|
-
};
|
1725
|
-
/** Checks whether an event comes from inside a tag element. */
|
1726
|
-
McTagList.prototype.originatesFromTag = function (event) {
|
1727
|
-
var currentElement = event.target;
|
1728
|
-
while (currentElement && currentElement !== this.elementRef.nativeElement) {
|
1729
|
-
if (currentElement.classList.contains('mc-tag')) {
|
1730
|
-
return true;
|
1731
|
-
}
|
1732
|
-
currentElement = currentElement.parentElement;
|
1733
|
-
}
|
1734
|
-
return false;
|
1735
|
-
};
|
1736
|
-
/** Checks whether any of the tags is focused. */
|
1737
|
-
McTagList.prototype.hasFocusedTag = function () {
|
1738
|
-
return this.tags.some(function (tag) { return tag.hasFocus; });
|
1739
|
-
};
|
1740
|
-
/** Syncs the list's disabled state with the individual tags. */
|
1741
|
-
McTagList.prototype.syncTagsDisabledState = function () {
|
1742
|
-
var _this = this;
|
1743
|
-
if (this.tags) {
|
1744
|
-
this.tags.forEach(function (tag) {
|
1745
|
-
tag.disabled = _this._disabled;
|
1746
|
-
});
|
1747
|
-
}
|
1748
|
-
};
|
1749
|
-
return McTagList;
|
1750
|
-
}(McTagListMixinBase));
|
1751
|
-
/** @nocollapse */ McTagList.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagList, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.ErrorStateMatcher }, { token: i3.NG_VALIDATORS, optional: true }, { token: i1.MC_VALIDATION, optional: true }, { token: i2__namespace.Directionality, optional: true }, { token: i3__namespace.NgForm, optional: true }, { token: i3__namespace.FormGroupDirective, optional: true }, { token: i3__namespace.NgControl, optional: true, self: true }, { token: i3__namespace.NgModel, optional: true, self: true }, { token: i3__namespace.FormControlName, optional: true, self: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1752
|
-
/** @nocollapse */ McTagList.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: McTagList, selector: "mc-tag-list", inputs: { multiple: "multiple", compareWith: "compareWith", value: "value", required: "required", placeholder: "placeholder", disabled: "disabled", selectable: "selectable", tabIndex: "tabIndex", errorStateMatcher: "errorStateMatcher", orientation: "orientation" }, outputs: { valueChange: "valueChange", change: "change" }, host: { listeners: { "focus": "focus()", "blur": "blur()", "keydown": "keydown($event)" }, properties: { "class.mc-disabled": "disabled", "class.mc-invalid": "errorState", "attr.tabindex": "disabled ? null : tabIndex", "id": "uid" }, classAttribute: "mc-tag-list" }, providers: [{ provide: formField.McFormFieldControl, useExisting: McTagList }], queries: [{ propertyName: "cleaner", first: true, predicate: ["mcTagListCleaner"], descendants: true, static: true }, { propertyName: "tags", predicate: McTag, descendants: true }], exportAs: ["mcTagList"], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"mc-tags-list__list-container\">\n <ng-content></ng-content>\n</div>\n\n<div class=\"mc-tags-list__cleaner\"\n *ngIf=\"canShowCleaner\">\n <ng-content select=\"mc-cleaner\"></ng-content>\n</div>\n", styles: [".mc-tag-list{display:flex;flex-direction:row;box-sizing:border-box}.mc-tag-input{border:none;outline:none;background:transparent}.mc-tags-list__list-container{display:flex;flex-wrap:wrap;flex:1 1 100%;box-sizing:border-box;min-width:0;min-height:30px;min-height:var(--mc-tag-list-size-min-height, 30px);padding:1px 6px;padding:var(--mc-tag-list-size-padding, 1px 6px)}.mc-tags-list__list-container .mc-tag-input{max-width:100%;flex:1 1 auto;height:22px;height:var(--mc-tag-input-size-height, 22px);margin:2px 4px;margin:var(--mc-tag-input-size-margin, 2px 4px)}.mc-tags-list__cleaner .mc-cleaner{height:30px}\n"], directives: [{ type: i4__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
1753
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagList, decorators: [{
|
1754
|
-
type: i0.Component,
|
1755
|
-
args: [{
|
1756
|
-
selector: 'mc-tag-list',
|
1757
|
-
exportAs: 'mcTagList',
|
1758
|
-
templateUrl: 'tag-list.partial.html',
|
1759
|
-
styleUrls: ['tag-list.scss'],
|
1760
|
-
host: {
|
1761
|
-
class: 'mc-tag-list',
|
1762
|
-
'[class.mc-disabled]': 'disabled',
|
1763
|
-
'[class.mc-invalid]': 'errorState',
|
1764
|
-
'[attr.tabindex]': 'disabled ? null : tabIndex',
|
1765
|
-
'[id]': 'uid',
|
1766
|
-
'(focus)': 'focus()',
|
1767
|
-
'(blur)': 'blur()',
|
1768
|
-
'(keydown)': 'keydown($event)'
|
1769
|
-
},
|
1770
|
-
encapsulation: i0.ViewEncapsulation.None,
|
1771
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1772
|
-
providers: [{ provide: formField.McFormFieldControl, useExisting: McTagList }]
|
1773
|
-
}]
|
1774
|
-
}], ctorParameters: function () {
|
1775
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.ErrorStateMatcher }, { type: undefined, decorators: [{
|
1776
|
-
type: i0.Optional
|
1777
|
-
}, {
|
1778
|
-
type: i0.Inject,
|
1779
|
-
args: [i3.NG_VALIDATORS]
|
1780
|
-
}] }, { type: undefined, decorators: [{
|
1781
|
-
type: i0.Optional
|
1782
|
-
}, {
|
1783
|
-
type: i0.Inject,
|
1784
|
-
args: [i1.MC_VALIDATION]
|
1785
|
-
}] }, { type: i2__namespace.Directionality, decorators: [{
|
1786
|
-
type: i0.Optional
|
1787
|
-
}] }, { type: i3__namespace.NgForm, decorators: [{
|
1788
|
-
type: i0.Optional
|
1789
|
-
}] }, { type: i3__namespace.FormGroupDirective, decorators: [{
|
1790
|
-
type: i0.Optional
|
1791
|
-
}] }, { type: i3__namespace.NgControl, decorators: [{
|
1792
|
-
type: i0.Optional
|
1793
|
-
}, {
|
1794
|
-
type: i0.Self
|
1795
|
-
}] }, { type: i3__namespace.NgModel, decorators: [{
|
1796
|
-
type: i0.Optional
|
1797
|
-
}, {
|
1798
|
-
type: i0.Self
|
1799
|
-
}] }, { type: i3__namespace.FormControlName, decorators: [{
|
1800
|
-
type: i0.Optional
|
1801
|
-
}, {
|
1802
|
-
type: i0.Self
|
1803
|
-
}] }];
|
1804
|
-
}, propDecorators: { multiple: [{
|
1805
|
-
type: i0.Input
|
1806
|
-
}], compareWith: [{
|
1807
|
-
type: i0.Input
|
1808
|
-
}], value: [{
|
1809
|
-
type: i0.Input
|
1810
|
-
}], required: [{
|
1811
|
-
type: i0.Input
|
1812
|
-
}], placeholder: [{
|
1813
|
-
type: i0.Input
|
1814
|
-
}], disabled: [{
|
1815
|
-
type: i0.Input
|
1816
|
-
}], selectable: [{
|
1817
|
-
type: i0.Input
|
1818
|
-
}], tabIndex: [{
|
1819
|
-
type: i0.Input
|
1820
|
-
}], valueChange: [{
|
1821
|
-
type: i0.Output
|
1822
|
-
}], errorStateMatcher: [{
|
1823
|
-
type: i0.Input
|
1824
|
-
}], orientation: [{
|
1825
|
-
type: i0.Input,
|
1826
|
-
args: ['orientation']
|
1827
|
-
}], change: [{
|
1828
|
-
type: i0.Output
|
1829
|
-
}], cleaner: [{
|
1830
|
-
type: i0.ContentChild,
|
1831
|
-
args: ['mcTagListCleaner', { static: true }]
|
1832
|
-
}], tags: [{
|
1833
|
-
type: i0.ContentChildren,
|
1834
|
-
args: [McTag, {
|
1835
|
-
// Need to use `descendants: true`,
|
1836
|
-
// Ivy will no longer match indirect descendants if it's left as false.
|
1837
|
-
descendants: true
|
1838
|
-
}]
|
1839
|
-
}] } });
|
1840
|
-
|
1841
|
-
var McTagsModule = /** @class */ (function () {
|
1842
|
-
function McTagsModule() {
|
1843
|
-
}
|
1844
|
-
return McTagsModule;
|
1845
|
-
}());
|
1846
|
-
/** @nocollapse */ McTagsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1847
|
-
/** @nocollapse */ McTagsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagsModule, declarations: [McTagList,
|
1848
|
-
McTag,
|
1849
|
-
McTagInput,
|
1850
|
-
McTagTrailingIcon,
|
1851
|
-
McTagAvatar,
|
1852
|
-
McTagRemove], imports: [i4.CommonModule, platform.PlatformModule], exports: [McTagList,
|
1853
|
-
McTag,
|
1854
|
-
McTagInput,
|
1855
|
-
McTagTrailingIcon,
|
1856
|
-
McTagAvatar,
|
1857
|
-
McTagRemove] });
|
1858
|
-
/** @nocollapse */ McTagsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagsModule, providers: [{
|
1859
|
-
provide: MC_TAGS_DEFAULT_OPTIONS,
|
1860
|
-
// tslint:disable-next-line: no-object-literal-type-assertion
|
1861
|
-
useValue: { separatorKeyCodes: [keycodes.ENTER] }
|
1862
|
-
}], imports: [[i4.CommonModule, platform.PlatformModule]] });
|
1863
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McTagsModule, decorators: [{
|
1864
|
-
type: i0.NgModule,
|
1865
|
-
args: [{
|
1866
|
-
imports: [i4.CommonModule, platform.PlatformModule],
|
1867
|
-
exports: [
|
1868
|
-
McTagList,
|
1869
|
-
McTag,
|
1870
|
-
McTagInput,
|
1871
|
-
McTagTrailingIcon,
|
1872
|
-
McTagAvatar,
|
1873
|
-
McTagRemove
|
1874
|
-
],
|
1875
|
-
declarations: [
|
1876
|
-
McTagList,
|
1877
|
-
McTag,
|
1878
|
-
McTagInput,
|
1879
|
-
McTagTrailingIcon,
|
1880
|
-
McTagAvatar,
|
1881
|
-
McTagRemove
|
1882
|
-
],
|
1883
|
-
providers: [{
|
1884
|
-
provide: MC_TAGS_DEFAULT_OPTIONS,
|
1885
|
-
// tslint:disable-next-line: no-object-literal-type-assertion
|
1886
|
-
useValue: { separatorKeyCodes: [keycodes.ENTER] }
|
1887
|
-
}]
|
1888
|
-
}]
|
1889
|
-
}] });
|
1890
|
-
|
1891
|
-
/**
|
1892
|
-
* Generated bundle index. Do not edit.
|
1893
|
-
*/
|
1894
|
-
|
1895
|
-
exports.MC_TAGS_DEFAULT_OPTIONS = MC_TAGS_DEFAULT_OPTIONS;
|
1896
|
-
exports.McTag = McTag;
|
1897
|
-
exports.McTagAvatar = McTagAvatar;
|
1898
|
-
exports.McTagBase = McTagBase;
|
1899
|
-
exports.McTagInput = McTagInput;
|
1900
|
-
exports.McTagList = McTagList;
|
1901
|
-
exports.McTagListBase = McTagListBase;
|
1902
|
-
exports.McTagListChange = McTagListChange;
|
1903
|
-
exports.McTagListMixinBase = McTagListMixinBase;
|
1904
|
-
exports.McTagMixinBase = McTagMixinBase;
|
1905
|
-
exports.McTagRemove = McTagRemove;
|
1906
|
-
exports.McTagSelectionChange = McTagSelectionChange;
|
1907
|
-
exports.McTagTrailingIcon = McTagTrailingIcon;
|
1908
|
-
exports.McTagsModule = McTagsModule;
|
1909
|
-
|
1910
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
1911
|
-
|
1912
|
-
})));
|
1913
|
-
//# sourceMappingURL=ptsecurity-mosaic-tags.umd.js.map
|