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