@ptsecurity/mosaic 12.1.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_theming.scss +113 -66
- package/_visual.scss +11 -9
- package/autocomplete/README.md +0 -0
- package/autocomplete/package.json +5 -5
- package/button/README.md +0 -0
- package/button/button.component.d.ts +17 -14
- package/button/button.module.d.ts +1 -1
- package/button/package.json +5 -5
- package/button-toggle/README.md +0 -0
- package/button-toggle/package.json +5 -5
- package/card/README.md +0 -0
- package/card/package.json +5 -5
- package/checkbox/README.md +1 -0
- package/checkbox/package.json +5 -5
- package/core/formatters/date/formatter.d.ts +4 -4
- package/core/formatters/date/templates/en-US.d.ts +8 -8
- package/core/formatters/date/templates/ru-RU.d.ts +8 -8
- package/core/package.json +5 -5
- package/core/pop-up/pop-up-trigger.d.ts +9 -12
- package/datepicker/README.md +0 -0
- package/datepicker/package.json +5 -5
- package/design-tokens/package.json +5 -5
- package/design-tokens/style-dictionary/build.js +6 -0
- package/design-tokens/style-dictionary/configs/index.js +2 -1
- package/design-tokens/tokens/components/navbar.json5 +12 -9
- package/design-tokens/tokens.d.ts +11 -9
- package/divider/README.md +0 -0
- package/divider/package.json +5 -5
- package/dropdown/dropdown-item.component.d.ts +1 -0
- package/dropdown/package.json +5 -5
- package/{esm2015/autocomplete/autocomplete-origin.directive.js → esm2020/autocomplete/autocomplete-origin.directive.mjs} +4 -4
- package/{esm2015/autocomplete/autocomplete-trigger.directive.js → esm2020/autocomplete/autocomplete-trigger.directive.mjs} +4 -4
- package/esm2020/autocomplete/autocomplete.component.mjs +154 -0
- package/{esm2015/autocomplete/autocomplete.module.js → esm2020/autocomplete/autocomplete.module.mjs} +5 -5
- package/{esm2015/autocomplete/index.js → esm2020/autocomplete/index.mjs} +0 -0
- package/{esm2015/autocomplete/ptsecurity-mosaic-autocomplete.js → esm2020/autocomplete/ptsecurity-mosaic-autocomplete.mjs} +0 -0
- package/{esm2015/autocomplete/public-api.js → esm2020/autocomplete/public-api.mjs} +0 -0
- package/esm2020/button/button.component.mjs +129 -0
- package/esm2020/button/button.module.mjs +38 -0
- package/{esm2015/button/index.js → esm2020/button/index.mjs} +0 -0
- package/{esm2015/button/ptsecurity-mosaic-button.js → esm2020/button/ptsecurity-mosaic-button.mjs} +0 -0
- package/{esm2015/button/public-api.js → esm2020/button/public-api.mjs} +0 -0
- package/esm2020/button-toggle/button-toggle.component.mjs +362 -0
- package/{esm2015/button-toggle/button-toggle.module.js → esm2020/button-toggle/button-toggle.module.mjs} +5 -5
- package/{esm2015/button-toggle/index.js → esm2020/button-toggle/index.mjs} +0 -0
- package/{esm2015/button-toggle/ptsecurity-mosaic-button-toggle.js → esm2020/button-toggle/ptsecurity-mosaic-button-toggle.mjs} +0 -0
- package/{esm2015/button-toggle/public-api.js → esm2020/button-toggle/public-api.mjs} +0 -0
- package/esm2020/card/card.component.mjs +80 -0
- package/{esm2015/card/card.module.js → esm2020/card/card.module.mjs} +5 -5
- package/{esm2015/card/index.js → esm2020/card/index.mjs} +0 -0
- package/{esm2015/card/ptsecurity-mosaic-card.js → esm2020/card/ptsecurity-mosaic-card.mjs} +0 -0
- package/{esm2015/card/public-api.js → esm2020/card/public-api.mjs} +0 -0
- package/{esm2015/checkbox/checkbox-config.js → esm2020/checkbox/checkbox-config.mjs} +0 -0
- package/{esm2015/checkbox/checkbox-module.js → esm2020/checkbox/checkbox-module.mjs} +5 -5
- package/{esm2015/checkbox/checkbox-required-validator.js → esm2020/checkbox/checkbox-required-validator.mjs} +4 -4
- package/esm2020/checkbox/checkbox.mjs +315 -0
- package/{esm2015/checkbox/index.js → esm2020/checkbox/index.mjs} +0 -0
- package/{esm2015/checkbox/ptsecurity-mosaic-checkbox.js → esm2020/checkbox/ptsecurity-mosaic-checkbox.mjs} +0 -0
- package/{esm2015/checkbox/public-api.js → esm2020/checkbox/public-api.mjs} +0 -0
- package/{esm2015/core/animation/animation.js → esm2020/core/animation/animation.mjs} +0 -0
- package/{esm2015/core/animation/fade-animations.js → esm2020/core/animation/fade-animations.mjs} +0 -0
- package/{esm2015/core/animation/index.js → esm2020/core/animation/index.mjs} +0 -0
- package/{esm2015/core/animation/select-animations.js → esm2020/core/animation/select-animations.mjs} +0 -0
- package/{esm2015/core/common-behaviors/color.js → esm2020/core/common-behaviors/color.mjs} +0 -0
- package/{esm2015/core/common-behaviors/common-module.js → esm2020/core/common-behaviors/common-module.mjs} +5 -5
- package/{esm2015/core/common-behaviors/constructor.js → esm2020/core/common-behaviors/constructor.mjs} +0 -0
- package/{esm2015/core/common-behaviors/disabled.js → esm2020/core/common-behaviors/disabled.mjs} +0 -0
- package/{esm2015/core/common-behaviors/error-state.js → esm2020/core/common-behaviors/error-state.mjs} +0 -0
- package/{esm2015/core/common-behaviors/index.js → esm2020/core/common-behaviors/index.mjs} +0 -0
- package/{esm2015/core/common-behaviors/tabindex.js → esm2020/core/common-behaviors/tabindex.mjs} +0 -0
- package/{esm2015/core/error/error-options.js → esm2020/core/error/error-options.mjs} +7 -7
- package/esm2020/core/formatters/date/formatter.mjs +314 -0
- package/esm2020/core/formatters/date/templates/en-US.mjs +280 -0
- package/esm2020/core/formatters/date/templates/ru-RU.mjs +280 -0
- package/{esm2015/core/formatters/index.js → esm2020/core/formatters/index.mjs} +5 -5
- package/esm2020/core/formatters/number/formatter.mjs +105 -0
- package/{esm2015/core/forms/forms-module.js → esm2020/core/forms/forms-module.mjs} +5 -5
- package/{esm2015/core/forms/forms.directive.js → esm2020/core/forms/forms.directive.mjs} +7 -7
- package/{esm2015/core/forms/index.js → esm2020/core/forms/index.mjs} +0 -0
- package/{esm2015/core/highlight/highlight.pipe.js → esm2020/core/highlight/highlight.pipe.mjs} +4 -4
- package/{esm2015/core/highlight/index.js → esm2020/core/highlight/index.mjs} +5 -5
- package/{esm2015/core/index.js → esm2020/core/index.mjs} +0 -0
- package/{esm2015/core/label/label-options.js → esm2020/core/label/label-options.mjs} +0 -0
- package/{esm2015/core/line/line.js → esm2020/core/line/line.mjs} +8 -8
- package/esm2020/core/option/action.mjs +121 -0
- package/{esm2015/core/option/index.js → esm2020/core/option/index.mjs} +0 -0
- package/esm2020/core/option/optgroup.mjs +31 -0
- package/{esm2015/core/option/option-module.js → esm2020/core/option/option-module.mjs} +5 -5
- package/esm2020/core/option/option.mjs +254 -0
- package/{esm2015/core/overlay/overlay-position-map.js → esm2020/core/overlay/overlay-position-map.mjs} +0 -0
- package/{esm2015/core/pop-up/constants.js → esm2020/core/pop-up/constants.mjs} +0 -0
- package/{esm2015/core/pop-up/index.js → esm2020/core/pop-up/index.mjs} +0 -0
- package/esm2020/core/pop-up/pop-up-trigger.mjs +246 -0
- package/esm2020/core/pop-up/pop-up.mjs +91 -0
- package/{esm2015/core/ptsecurity-mosaic-core.js → esm2020/core/ptsecurity-mosaic-core.mjs} +0 -0
- package/{esm2015/core/public-api.js → esm2020/core/public-api.mjs} +0 -0
- package/{esm2015/core/select/constants.js → esm2020/core/select/constants.mjs} +0 -0
- package/{esm2015/core/select/errors.js → esm2020/core/select/errors.mjs} +0 -0
- package/{esm2015/core/select/events.js → esm2020/core/select/events.mjs} +0 -0
- package/{esm2015/core/select/index.js → esm2020/core/select/index.mjs} +0 -0
- package/{esm2015/core/selection/constants.js → esm2020/core/selection/constants.mjs} +0 -0
- package/{esm2015/core/selection/index.js → esm2020/core/selection/index.mjs} +0 -0
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +37 -0
- package/{esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.module.js → esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs} +5 -5
- package/{esm2015/core/services/measure-scrollbar.service.js → esm2020/core/services/measure-scrollbar.service.mjs} +4 -4
- package/{esm2015/core/utils/index.js → esm2020/core/utils/index.mjs} +0 -0
- package/{esm2015/core/utils/public-api.js → esm2020/core/utils/public-api.mjs} +0 -0
- package/{esm2015/core/utils/utils.js → esm2020/core/utils/utils.mjs} +0 -0
- package/{esm2015/core/validation/index.js → esm2020/core/validation/index.mjs} +0 -0
- package/{esm2015/core/validation/validation.js → esm2020/core/validation/validation.mjs} +0 -0
- package/esm2020/datepicker/calendar-body.component.mjs +106 -0
- package/esm2020/datepicker/calendar.component.mjs +362 -0
- package/{esm2015/datepicker/datepicker-animations.js → esm2020/datepicker/datepicker-animations.mjs} +0 -0
- package/{esm2015/datepicker/datepicker-errors.js → esm2020/datepicker/datepicker-errors.mjs} +0 -0
- package/esm2020/datepicker/datepicker-input.directive.mjs +900 -0
- package/{esm2015/datepicker/datepicker-intl.js → esm2020/datepicker/datepicker-intl.mjs} +4 -4
- package/{esm2015/datepicker/datepicker-module.js → esm2020/datepicker/datepicker-module.mjs} +5 -5
- package/esm2020/datepicker/datepicker-toggle.component.mjs +86 -0
- package/esm2020/datepicker/datepicker.component.mjs +408 -0
- package/{esm2015/datepicker/index.js → esm2020/datepicker/index.mjs} +0 -0
- package/{esm2015/datepicker/month-view.component.js → esm2020/datepicker/month-view.component.mjs} +5 -11
- package/{esm2015/datepicker/multi-year-view.component.js → esm2020/datepicker/multi-year-view.component.mjs} +5 -11
- package/{esm2015/datepicker/ptsecurity-mosaic-datepicker.js → esm2020/datepicker/ptsecurity-mosaic-datepicker.mjs} +0 -0
- package/{esm2015/datepicker/public-api.js → esm2020/datepicker/public-api.mjs} +0 -0
- package/{esm2015/datepicker/year-view.component.js → esm2020/datepicker/year-view.component.mjs} +5 -11
- package/{esm2015/design-tokens/index.js → esm2020/design-tokens/index.mjs} +0 -0
- package/{esm2015/design-tokens/ptsecurity-mosaic-design-tokens.js → esm2020/design-tokens/ptsecurity-mosaic-design-tokens.mjs} +0 -0
- package/{esm2015/design-tokens/public-api.js → esm2020/design-tokens/public-api.mjs} +0 -0
- package/{esm2015/design-tokens/tokens.js → esm2020/design-tokens/tokens.mjs} +12 -10
- package/{esm2015/divider/divider.component.js → esm2020/divider/divider.component.mjs} +6 -13
- package/{esm2015/divider/divider.module.js → esm2020/divider/divider.module.mjs} +5 -5
- package/{esm2015/divider/index.js → esm2020/divider/index.mjs} +0 -0
- package/{esm2015/divider/ptsecurity-mosaic-divider.js → esm2020/divider/ptsecurity-mosaic-divider.mjs} +0 -0
- package/{esm2015/divider/public-api.js → esm2020/divider/public-api.mjs} +0 -0
- package/{esm2015/dropdown/dropdown-animations.js → esm2020/dropdown/dropdown-animations.mjs} +0 -0
- package/{esm2015/dropdown/dropdown-content.directive.js → esm2020/dropdown/dropdown-content.directive.mjs} +6 -8
- package/{esm2015/dropdown/dropdown-errors.js → esm2020/dropdown/dropdown-errors.mjs} +0 -0
- package/esm2020/dropdown/dropdown-item.component.mjs +139 -0
- package/esm2020/dropdown/dropdown-trigger.directive.mjs +485 -0
- package/esm2020/dropdown/dropdown.component.mjs +292 -0
- package/{esm2015/dropdown/dropdown.module.js → esm2020/dropdown/dropdown.module.mjs} +5 -5
- package/{esm2015/dropdown/dropdown.types.js → esm2020/dropdown/dropdown.types.mjs} +0 -0
- package/{esm2015/dropdown/index.js → esm2020/dropdown/index.mjs} +0 -0
- package/{esm2015/dropdown/ptsecurity-mosaic-dropdown.js → esm2020/dropdown/ptsecurity-mosaic-dropdown.mjs} +0 -0
- package/{esm2015/dropdown/public-api.js → esm2020/dropdown/public-api.mjs} +0 -0
- package/esm2020/form-field/cleaner.mjs +23 -0
- package/{esm2015/form-field/form-field-control.js → esm2020/form-field/form-field-control.mjs} +0 -0
- package/{esm2015/form-field/form-field-errors.js → esm2020/form-field/form-field-errors.mjs} +0 -0
- package/esm2020/form-field/form-field.mjs +205 -0
- package/{esm2015/form-field/form-field.module.js → esm2020/form-field/form-field.module.mjs} +5 -5
- package/{esm2015/form-field/hint.js → esm2020/form-field/hint.mjs} +4 -4
- package/{esm2015/form-field/index.js → esm2020/form-field/index.mjs} +0 -0
- package/{esm2015/form-field/prefix.js → esm2020/form-field/prefix.mjs} +4 -4
- package/{esm2015/form-field/ptsecurity-mosaic-form-field.js → esm2020/form-field/ptsecurity-mosaic-form-field.mjs} +0 -0
- package/{esm2015/form-field/public-api.js → esm2020/form-field/public-api.mjs} +0 -0
- package/{esm2015/form-field/stepper.js → esm2020/form-field/stepper.mjs} +4 -4
- package/{esm2015/form-field/suffix.js → esm2020/form-field/suffix.mjs} +4 -4
- package/esm2020/icon/icon.component.mjs +44 -0
- package/{esm2015/icon/icon.module.js → esm2020/icon/icon.module.mjs} +5 -5
- package/{esm2015/icon/index.js → esm2020/icon/index.mjs} +0 -0
- package/{esm2015/icon/ptsecurity-mosaic-icon.js → esm2020/icon/ptsecurity-mosaic-icon.mjs} +0 -0
- package/{esm2015/icon/public-api.js → esm2020/icon/public-api.mjs} +0 -0
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/input/index.js → esm2020/input/index.mjs} +0 -0
- package/{esm2015/input/input-errors.js → esm2020/input/input-errors.mjs} +0 -0
- package/esm2020/input/input-number-validators.mjs +92 -0
- package/{esm2015/input/input-number.js → esm2020/input/input-number.mjs} +4 -4
- package/{esm2015/input/input-value-accessor.js → esm2020/input/input-value-accessor.mjs} +0 -0
- package/{esm2015/input/input.js → esm2020/input/input.mjs} +7 -7
- package/{esm2015/input/input.module.js → esm2020/input/input.module.mjs} +5 -5
- package/{esm2015/input/ptsecurity-mosaic-input.js → esm2020/input/ptsecurity-mosaic-input.mjs} +0 -0
- package/{esm2015/input/public-api.js → esm2020/input/public-api.mjs} +0 -0
- package/{esm2015/link/index.js → esm2020/link/index.mjs} +0 -0
- package/esm2020/link/link.component.mjs +107 -0
- package/{esm2015/link/link.module.js → esm2020/link/link.module.mjs} +5 -5
- package/{esm2015/link/ptsecurity-mosaic-link.js → esm2020/link/ptsecurity-mosaic-link.mjs} +0 -0
- package/{esm2015/link/public-api.js → esm2020/link/public-api.mjs} +0 -0
- package/{esm2015/list/index.js → esm2020/list/index.mjs} +0 -0
- package/esm2020/list/list-selection.component.mjs +693 -0
- package/esm2020/list/list.component.mjs +44 -0
- package/{esm2015/list/list.module.js → esm2020/list/list.module.mjs} +5 -5
- package/{esm2015/list/ptsecurity-mosaic-list.js → esm2020/list/ptsecurity-mosaic-list.mjs} +0 -0
- package/{esm2015/list/public-api.js → esm2020/list/public-api.mjs} +0 -0
- package/{esm2015/modal/css-unit.pipe.js → esm2020/modal/css-unit.pipe.mjs} +4 -4
- package/{esm2015/modal/index.js → esm2020/modal/index.mjs} +0 -0
- package/{esm2015/modal/modal-control.service.js → esm2020/modal/modal-control.service.mjs} +4 -4
- package/{esm2015/modal/modal-ref.class.js → esm2020/modal/modal-ref.class.mjs} +0 -0
- package/{esm2015/modal/modal-util.js → esm2020/modal/modal-util.mjs} +0 -0
- package/esm2020/modal/modal.component.mjs +501 -0
- package/{esm2015/modal/modal.directive.js → esm2020/modal/modal.directive.mjs} +13 -13
- package/esm2020/modal/modal.module.mjs +72 -0
- package/esm2020/modal/modal.service.mjs +124 -0
- package/{esm2015/modal/modal.type.js → esm2020/modal/modal.type.mjs} +0 -0
- package/{esm2015/modal/ptsecurity-mosaic-modal.js → esm2020/modal/ptsecurity-mosaic-modal.mjs} +0 -0
- package/{esm2015/modal/public-api.js → esm2020/modal/public-api.mjs} +0 -0
- package/{esm2015/navbar/index.js → esm2020/navbar/index.mjs} +0 -0
- package/esm2020/navbar/navbar-item.component.mjs +577 -0
- package/esm2020/navbar/navbar.component.mjs +237 -0
- package/esm2020/navbar/navbar.module.mjs +92 -0
- package/{esm2015/navbar/ptsecurity-mosaic-navbar.js → esm2020/navbar/ptsecurity-mosaic-navbar.mjs} +0 -0
- package/{esm2015/navbar/public-api.js → esm2020/navbar/public-api.mjs} +0 -0
- package/{esm2015/navbar/vertical-navbar.animation.js → esm2020/navbar/vertical-navbar.animation.mjs} +2 -2
- package/esm2020/navbar/vertical-navbar.component.mjs +114 -0
- package/{esm2015/popover/index.js → esm2020/popover/index.mjs} +0 -0
- package/{esm2015/popover/popover-animations.js → esm2020/popover/popover-animations.mjs} +0 -0
- package/esm2020/popover/popover-confirm.component.mjs +108 -0
- package/esm2020/popover/popover.component.mjs +253 -0
- package/esm2020/popover/popover.module.mjs +24 -0
- package/{esm2015/popover/ptsecurity-mosaic-popover.js → esm2020/popover/ptsecurity-mosaic-popover.mjs} +0 -0
- package/{esm2015/popover/public-api.js → esm2020/popover/public-api.mjs} +2 -1
- package/{esm2015/progress-bar/index.js → esm2020/progress-bar/index.mjs} +0 -0
- package/esm2020/progress-bar/progress-bar.component.mjs +42 -0
- package/{esm2015/progress-bar/progress-bar.module.js → esm2020/progress-bar/progress-bar.module.mjs} +5 -5
- package/{esm2015/progress-bar/ptsecurity-mosaic-progress-bar.js → esm2020/progress-bar/ptsecurity-mosaic-progress-bar.mjs} +0 -0
- package/{esm2015/progress-bar/public-api.js → esm2020/progress-bar/public-api.mjs} +0 -0
- package/{esm2015/progress-spinner/index.js → esm2020/progress-spinner/index.mjs} +0 -0
- package/esm2020/progress-spinner/progress-spinner.component.mjs +46 -0
- package/{esm2015/progress-spinner/progress-spinner.module.js → esm2020/progress-spinner/progress-spinner.module.mjs} +5 -5
- package/{esm2015/progress-spinner/ptsecurity-mosaic-progress-spinner.js → esm2020/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs} +0 -0
- package/{esm2015/progress-spinner/public-api.js → esm2020/progress-spinner/public-api.mjs} +0 -0
- package/{esm2015/ptsecurity-mosaic.js → esm2020/ptsecurity-mosaic.mjs} +0 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
- package/{esm2015/radio/index.js → esm2020/radio/index.mjs} +0 -0
- package/{esm2015/radio/ptsecurity-mosaic-radio.js → esm2020/radio/ptsecurity-mosaic-radio.mjs} +0 -0
- package/{esm2015/radio/public-api.js → esm2020/radio/public-api.mjs} +0 -0
- package/esm2020/radio/radio.component.mjs +458 -0
- package/{esm2015/radio/radio.module.js → esm2020/radio/radio.module.mjs} +5 -5
- package/{esm2015/select/index.js → esm2020/select/index.mjs} +0 -0
- package/{esm2015/select/ptsecurity-mosaic-select.js → esm2020/select/ptsecurity-mosaic-select.mjs} +0 -0
- package/{esm2015/select/public-api.js → esm2020/select/public-api.mjs} +0 -0
- package/esm2020/select/select.component.mjs +1110 -0
- package/{esm2015/select/select.module.js → esm2020/select/select.module.mjs} +5 -5
- package/{esm2015/sidebar/index.js → esm2020/sidebar/index.mjs} +0 -0
- package/{esm2015/sidebar/ptsecurity-mosaic-sidebar.js → esm2020/sidebar/ptsecurity-mosaic-sidebar.mjs} +0 -0
- package/{esm2015/sidebar/public-api.js → esm2020/sidebar/public-api.mjs} +0 -0
- package/{esm2015/sidebar/sidebar-animations.js → esm2020/sidebar/sidebar-animations.mjs} +0 -0
- package/esm2020/sidebar/sidebar.component.mjs +146 -0
- package/{esm2015/sidebar/sidebar.module.js → esm2020/sidebar/sidebar.module.mjs} +5 -5
- package/{esm2015/sidepanel/index.js → esm2020/sidepanel/index.mjs} +0 -0
- package/{esm2015/sidepanel/ptsecurity-mosaic-sidepanel.js → esm2020/sidepanel/ptsecurity-mosaic-sidepanel.mjs} +0 -0
- package/{esm2015/sidepanel/public-api.js → esm2020/sidepanel/public-api.mjs} +0 -0
- package/{esm2015/sidepanel/sidepanel-animations.js → esm2020/sidepanel/sidepanel-animations.mjs} +0 -0
- package/{esm2015/sidepanel/sidepanel-config.js → esm2020/sidepanel/sidepanel-config.mjs} +0 -0
- package/esm2020/sidepanel/sidepanel-container.component.mjs +106 -0
- package/esm2020/sidepanel/sidepanel-directives.mjs +159 -0
- package/{esm2015/sidepanel/sidepanel-ref.js → esm2020/sidepanel/sidepanel-ref.mjs} +0 -0
- package/esm2020/sidepanel/sidepanel.module.mjs +74 -0
- package/esm2020/sidepanel/sidepanel.service.mjs +167 -0
- package/{esm2015/splitter/index.js → esm2020/splitter/index.mjs} +0 -0
- package/{esm2015/splitter/ptsecurity-mosaic-splitter.js → esm2020/splitter/ptsecurity-mosaic-splitter.mjs} +0 -0
- package/{esm2015/splitter/public-api.js → esm2020/splitter/public-api.mjs} +0 -0
- package/esm2020/splitter/splitter.component.mjs +480 -0
- package/esm2020/splitter/splitter.module.mjs +40 -0
- package/{esm2015/table/index.js → esm2020/table/index.mjs} +0 -0
- package/{esm2015/table/ptsecurity-mosaic-table.js → esm2020/table/ptsecurity-mosaic-table.mjs} +0 -0
- package/{esm2015/table/public-api.js → esm2020/table/public-api.mjs} +0 -0
- package/{esm2015/table/table.component.js → esm2020/table/table.component.mjs} +4 -4
- package/{esm2015/table/table.module.js → esm2020/table/table.module.mjs} +5 -5
- package/{esm2015/tabs/index.js → esm2020/tabs/index.mjs} +0 -0
- package/esm2020/tabs/paginated-tab-header.mjs +479 -0
- package/{esm2015/tabs/ptsecurity-mosaic-tabs.js → esm2020/tabs/ptsecurity-mosaic-tabs.mjs} +0 -0
- package/{esm2015/tabs/public-api.js → esm2020/tabs/public-api.mjs} +0 -0
- package/esm2020/tabs/tab-body.component.mjs +178 -0
- package/{esm2015/tabs/tab-content.directive.js → esm2020/tabs/tab-content.directive.mjs} +4 -4
- package/esm2020/tabs/tab-group.component.mjs +350 -0
- package/esm2020/tabs/tab-header.component.mjs +67 -0
- package/{esm2015/tabs/tab-label-wrapper.directive.js → esm2020/tabs/tab-label-wrapper.directive.mjs} +4 -4
- package/{esm2015/tabs/tab-label.directive.js → esm2020/tabs/tab-label.directive.mjs} +4 -4
- package/{esm2015/tabs/tab-nav-bar/index.js → esm2020/tabs/tab-nav-bar/index.mjs} +0 -0
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +110 -0
- package/{esm2015/tabs/tab.component.js → esm2020/tabs/tab.component.mjs} +4 -4
- package/{esm2015/tabs/tabs-animations.js → esm2020/tabs/tabs-animations.mjs} +0 -0
- package/{esm2015/tabs/tabs.module.js → esm2020/tabs/tabs.module.mjs} +5 -5
- package/{esm2015/tags/index.js → esm2020/tags/index.mjs} +0 -0
- package/{esm2015/tags/ptsecurity-mosaic-tags.js → esm2020/tags/ptsecurity-mosaic-tags.mjs} +0 -0
- package/{esm2015/tags/public-api.js → esm2020/tags/public-api.mjs} +0 -0
- package/{esm2015/tags/tag-default-options.js → esm2020/tags/tag-default-options.mjs} +0 -0
- package/{esm2015/tags/tag-input.js → esm2020/tags/tag-input.mjs} +4 -4
- package/esm2020/tags/tag-list.component.mjs +722 -0
- package/{esm2015/tags/tag-text-control.js → esm2020/tags/tag-text-control.mjs} +0 -0
- package/esm2020/tags/tag.component.mjs +374 -0
- package/{esm2015/tags/tag.module.js → esm2020/tags/tag.module.mjs} +5 -5
- package/{esm2015/textarea/index.js → esm2020/textarea/index.mjs} +0 -0
- package/{esm2015/textarea/ptsecurity-mosaic-textarea.js → esm2020/textarea/ptsecurity-mosaic-textarea.mjs} +0 -0
- package/{esm2015/textarea/public-api.js → esm2020/textarea/public-api.mjs} +0 -0
- package/{esm2015/textarea/textarea.component.js → esm2020/textarea/textarea.component.mjs} +4 -4
- package/{esm2015/textarea/textarea.module.js → esm2020/textarea/textarea.module.mjs} +5 -5
- package/{esm2015/timepicker/index.js → esm2020/timepicker/index.mjs} +0 -0
- package/{esm2015/timepicker/ptsecurity-mosaic-timepicker.js → esm2020/timepicker/ptsecurity-mosaic-timepicker.mjs} +0 -0
- package/{esm2015/timepicker/public-api.js → esm2020/timepicker/public-api.mjs} +0 -0
- package/{esm2015/timepicker/timepicker.constants.js → esm2020/timepicker/timepicker.constants.mjs} +0 -0
- package/esm2020/timepicker/timepicker.directive.mjs +653 -0
- package/{esm2015/timepicker/timepicker.module.js → esm2020/timepicker/timepicker.module.mjs} +5 -5
- package/{esm2015/toggle/index.js → esm2020/toggle/index.mjs} +0 -0
- package/{esm2015/toggle/ptsecurity-mosaic-toggle.js → esm2020/toggle/ptsecurity-mosaic-toggle.mjs} +0 -0
- package/{esm2015/toggle/public-api.js → esm2020/toggle/public-api.mjs} +0 -0
- package/esm2020/toggle/toggle.component.mjs +158 -0
- package/{esm2015/toggle/toggle.module.js → esm2020/toggle/toggle.module.mjs} +5 -5
- package/{esm2015/tooltip/index.js → esm2020/tooltip/index.mjs} +0 -0
- package/{esm2015/tooltip/ptsecurity-mosaic-tooltip.js → esm2020/tooltip/ptsecurity-mosaic-tooltip.mjs} +0 -0
- package/{esm2015/tooltip/public-api.js → esm2020/tooltip/public-api.mjs} +0 -0
- package/{esm2015/tooltip/tooltip.animations.js → esm2020/tooltip/tooltip.animations.mjs} +0 -0
- package/esm2020/tooltip/tooltip.component.mjs +291 -0
- package/{esm2015/tooltip/tooltip.module.js → esm2020/tooltip/tooltip.module.mjs} +5 -5
- package/{esm2015/tree/control/base-tree-control.js → esm2020/tree/control/base-tree-control.mjs} +0 -0
- package/{esm2015/tree/control/flat-tree-control.js → esm2020/tree/control/flat-tree-control.mjs} +0 -0
- package/{esm2015/tree/control/nested-tree-control.js → esm2020/tree/control/nested-tree-control.mjs} +0 -0
- package/{esm2015/tree/control/tree-control.js → esm2020/tree/control/tree-control.mjs} +0 -0
- package/{esm2015/tree/data-source/flat-data-source.js → esm2020/tree/data-source/flat-data-source.mjs} +0 -0
- package/{esm2015/tree/data-source/nested-data-source.js → esm2020/tree/data-source/nested-data-source.mjs} +0 -0
- package/{esm2015/tree/index.js → esm2020/tree/index.mjs} +0 -0
- package/{esm2015/tree/node.js → esm2020/tree/node.mjs} +4 -4
- package/{esm2015/tree/outlet.js → esm2020/tree/outlet.mjs} +4 -4
- package/esm2020/tree/padding.directive.mjs +110 -0
- package/{esm2015/tree/ptsecurity-mosaic-tree.js → esm2020/tree/ptsecurity-mosaic-tree.mjs} +0 -0
- package/{esm2015/tree/public-api.js → esm2020/tree/public-api.mjs} +0 -0
- package/esm2020/tree/toggle.mjs +80 -0
- package/{esm2015/tree/tree-base.js → esm2020/tree/tree-base.mjs} +7 -7
- package/{esm2015/tree/tree-errors.js → esm2020/tree/tree-errors.mjs} +0 -0
- package/esm2020/tree/tree-option.component.mjs +226 -0
- package/esm2020/tree/tree-selection.component.mjs +530 -0
- package/esm2020/tree/tree.mjs +15 -0
- package/esm2020/tree/tree.module.mjs +53 -0
- package/{esm2015/tree-select/index.js → esm2020/tree-select/index.mjs} +0 -0
- package/{esm2015/tree-select/ptsecurity-mosaic-tree-select.js → esm2020/tree-select/ptsecurity-mosaic-tree-select.mjs} +0 -0
- package/{esm2015/tree-select/public-api.js → esm2020/tree-select/public-api.mjs} +0 -0
- package/esm2020/tree-select/tree-select.component.mjs +889 -0
- package/{esm2015/tree-select/tree-select.module.js → esm2020/tree-select/tree-select.module.mjs} +5 -5
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +756 -0
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +385 -0
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-button.mjs +170 -0
- package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-card.js → ptsecurity-mosaic-card.mjs} +10 -18
- package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs +366 -0
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-core.js → ptsecurity-mosaic-core.mjs} +186 -241
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +2700 -0
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-design-tokens.js → ptsecurity-mosaic-design-tokens.mjs} +13 -11
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-divider.mjs +61 -0
- package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs +1106 -0
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +378 -0
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-icon.mjs +88 -0
- package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-input.mjs +609 -0
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-link.js → ptsecurity-mosaic-link.mjs} +8 -8
- package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-list.mjs +796 -0
- package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-modal.mjs +842 -0
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-navbar.mjs +1025 -0
- package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-popover.mjs +393 -0
- package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-progress-bar.js → ptsecurity-mosaic-progress-bar.mjs} +10 -18
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +80 -0
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-radio.mjs +481 -0
- package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-select.mjs +1175 -0
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-sidebar.js → ptsecurity-mosaic-sidebar.mjs} +16 -25
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +592 -0
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-splitter.mjs +524 -0
- package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-table.js → ptsecurity-mosaic-table.mjs} +8 -8
- package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tabs.mjs +1511 -0
- package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tags.mjs +1372 -0
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-textarea.mjs +293 -0
- package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs +715 -0
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic-toggle.js → ptsecurity-mosaic-toggle.mjs} +12 -23
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +362 -0
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +932 -0
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-tree.mjs +1707 -0
- package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -0
- package/fesm2015/{ptsecurity-mosaic.js → ptsecurity-mosaic.mjs} +1 -1
- package/fesm2015/ptsecurity-mosaic.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-autocomplete.js → fesm2020/ptsecurity-mosaic-autocomplete.mjs} +17 -26
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-button-toggle.js → fesm2020/ptsecurity-mosaic-button-toggle.mjs} +15 -23
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-button.mjs +170 -0
- package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-card.mjs +113 -0
- package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-checkbox.js → fesm2020/ptsecurity-mosaic-checkbox.mjs} +13 -23
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-core.mjs +2688 -0
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-datepicker.js → fesm2020/ptsecurity-mosaic-datepicker.mjs} +77 -121
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +939 -0
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-divider.mjs +61 -0
- package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-dropdown.js → fesm2020/ptsecurity-mosaic-dropdown.mjs} +45 -53
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +377 -0
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-icon.mjs +86 -0
- package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-input.js → fesm2020/ptsecurity-mosaic-input.mjs} +41 -27
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-link.mjs +136 -0
- package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-list.js → fesm2020/ptsecurity-mosaic-list.mjs} +41 -70
- package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-modal.js → fesm2020/ptsecurity-mosaic-modal.mjs} +63 -59
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-navbar.mjs +1009 -0
- package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-popover.mjs +389 -0
- package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +76 -0
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +80 -0
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-radio.js → fesm2020/ptsecurity-mosaic-radio.mjs} +13 -22
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-select.js → fesm2020/ptsecurity-mosaic-select.mjs} +23 -35
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs +202 -0
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-sidepanel.js → fesm2020/ptsecurity-mosaic-sidepanel.mjs} +57 -53
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-splitter.mjs +524 -0
- package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-table.mjs +50 -0
- package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tabs.js → fesm2020/ptsecurity-mosaic-tabs.mjs} +65 -102
- package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tags.js → fesm2020/ptsecurity-mosaic-tags.mjs} +29 -47
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-textarea.js → fesm2020/ptsecurity-mosaic-textarea.mjs} +8 -8
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-timepicker.js → fesm2020/ptsecurity-mosaic-timepicker.mjs} +16 -15
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-toggle.mjs +180 -0
- package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs +354 -0
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tree-select.js → fesm2020/ptsecurity-mosaic-tree-select.mjs} +16 -27
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/{fesm2015/ptsecurity-mosaic-tree.js → fesm2020/ptsecurity-mosaic-tree.mjs} +61 -108
- package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic.mjs +4 -0
- package/fesm2020/ptsecurity-mosaic.mjs.map +1 -0
- package/form-field/README.md +0 -0
- package/form-field/cleaner.d.ts +2 -0
- package/form-field/package.json +5 -5
- package/icon/README.md +0 -0
- package/icon/package.json +5 -5
- package/input/input-number-validators.d.ts +2 -2
- package/input/package.json +5 -5
- package/link/README.md +0 -0
- package/link/package.json +5 -5
- package/list/README.md +0 -0
- package/list/package.json +5 -5
- package/modal/README.md +34 -0
- package/modal/modal.component.d.ts +2 -0
- package/modal/modal.module.d.ts +1 -1
- package/modal/package.json +5 -5
- package/navbar/README.md +41 -0
- package/navbar/navbar-item.component.d.ts +122 -34
- package/navbar/navbar.component.d.ts +37 -9
- package/navbar/navbar.module.d.ts +2 -1
- package/navbar/package.json +5 -5
- package/navbar/vertical-navbar.component.d.ts +15 -26
- package/package.json +299 -14
- package/popover/README.md +32 -0
- package/popover/package.json +5 -5
- package/popover/popover-confirm.component.d.ts +33 -0
- package/popover/popover.component.d.ts +14 -4
- package/popover/popover.module.d.ts +6 -3
- package/popover/public-api.d.ts +1 -0
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/prebuilt-visual/default-visual.css +1 -1
- package/progress-bar/README.md +0 -0
- package/progress-bar/package.json +5 -5
- package/progress-spinner/README.md +0 -0
- package/progress-spinner/package.json +5 -5
- package/radio/package.json +5 -5
- package/schematics/README.md +35 -0
- package/schematics/ng-update/data/index.d.ts +1 -0
- package/schematics/ng-update/data/index.js +10 -9
- package/schematics/ng-update/data/index.js.map +1 -1
- package/schematics/ng-update/data/symbol-removal.d.ts +2 -0
- package/schematics/ng-update/data/symbol-removal.js +5 -0
- package/schematics/ng-update/data/symbol-removal.js.map +1 -0
- package/schematics/ng-update/index.js +3 -3
- package/schematics/ng-update/index.js.map +1 -1
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js +1 -2
- package/schematics/ng-update/update-9.0.0/secondary-entry-points-migration.js.map +1 -1
- package/schematics/ng-update/upgrade-data.js +2 -1
- package/schematics/ng-update/upgrade-data.js.map +1 -1
- package/schematics/tsconfig.lib.json +2 -2
- package/select/README.md +0 -0
- package/select/package.json +5 -5
- package/select/select.component.d.ts +2 -7
- package/sidebar/package.json +5 -5
- package/sidepanel/package.json +5 -5
- package/sidepanel/sidepanel-directives.d.ts +2 -0
- package/sidepanel/sidepanel.module.d.ts +2 -1
- package/splitter/package.json +5 -5
- package/splitter/splitter.component.d.ts +46 -5
- package/splitter/splitter.module.d.ts +1 -1
- package/table/README.md +0 -0
- package/table/package.json +5 -5
- package/tabs/README.md +0 -0
- package/tabs/package.json +5 -5
- package/tags/README.md +0 -0
- package/tags/package.json +5 -5
- package/textarea/README.md +0 -0
- package/textarea/package.json +5 -5
- package/timepicker/README.md +0 -0
- package/timepicker/package.json +5 -5
- package/toggle/package.json +5 -5
- package/tooltip/package.json +5 -5
- package/tooltip/tooltip.component.d.ts +12 -3
- package/tree/package.json +5 -5
- package/tree/padding.directive.d.ts +1 -1
- package/tree/tree-option.component.d.ts +1 -1
- package/tree/tree-selection.component.d.ts +2 -2
- package/tree/tree.module.d.ts +1 -1
- package/tree-select/README.md +0 -0
- package/tree-select/package.json +5 -5
- package/tree-select/tree-select.component.d.ts +2 -7
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js +0 -1162
- package/bundles/ptsecurity-mosaic-autocomplete.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js +0 -757
- package/bundles/ptsecurity-mosaic-button-toggle.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-button.umd.js +0 -535
- package/bundles/ptsecurity-mosaic-button.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-card.umd.js +0 -481
- package/bundles/ptsecurity-mosaic-card.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-checkbox.umd.js +0 -764
- package/bundles/ptsecurity-mosaic-checkbox.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-core.umd.js +0 -2887
- package/bundles/ptsecurity-mosaic-core.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-datepicker.umd.js +0 -3357
- package/bundles/ptsecurity-mosaic-datepicker.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js +0 -1872
- package/bundles/ptsecurity-mosaic-design-tokens.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-divider.umd.js +0 -108
- package/bundles/ptsecurity-mosaic-divider.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-dropdown.umd.js +0 -1519
- package/bundles/ptsecurity-mosaic-dropdown.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-form-field.umd.js +0 -789
- package/bundles/ptsecurity-mosaic-form-field.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-icon.umd.js +0 -452
- package/bundles/ptsecurity-mosaic-icon.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-input.umd.js +0 -996
- package/bundles/ptsecurity-mosaic-input.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-link.umd.js +0 -517
- package/bundles/ptsecurity-mosaic-link.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-list.umd.js +0 -1250
- package/bundles/ptsecurity-mosaic-list.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-modal.umd.js +0 -1304
- package/bundles/ptsecurity-mosaic-modal.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-navbar.umd.js +0 -932
- package/bundles/ptsecurity-mosaic-navbar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-popover.umd.js +0 -655
- package/bundles/ptsecurity-mosaic-popover.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js +0 -442
- package/bundles/ptsecurity-mosaic-progress-bar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js +0 -450
- package/bundles/ptsecurity-mosaic-progress-spinner.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-radio.umd.js +0 -903
- package/bundles/ptsecurity-mosaic-radio.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-select.umd.js +0 -1608
- package/bundles/ptsecurity-mosaic-select.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidebar.umd.js +0 -256
- package/bundles/ptsecurity-mosaic-sidebar.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js +0 -950
- package/bundles/ptsecurity-mosaic-sidepanel.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-splitter.umd.js +0 -438
- package/bundles/ptsecurity-mosaic-splitter.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-table.umd.js +0 -83
- package/bundles/ptsecurity-mosaic-table.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tabs.umd.js +0 -2015
- package/bundles/ptsecurity-mosaic-tabs.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tags.umd.js +0 -1913
- package/bundles/ptsecurity-mosaic-tags.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-textarea.umd.js +0 -666
- package/bundles/ptsecurity-mosaic-textarea.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-timepicker.umd.js +0 -822
- package/bundles/ptsecurity-mosaic-timepicker.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-toggle.umd.js +0 -559
- package/bundles/ptsecurity-mosaic-toggle.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tooltip.umd.js +0 -728
- package/bundles/ptsecurity-mosaic-tooltip.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree-select.umd.js +0 -1370
- package/bundles/ptsecurity-mosaic-tree-select.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic-tree.umd.js +0 -2309
- package/bundles/ptsecurity-mosaic-tree.umd.js.map +0 -1
- package/bundles/ptsecurity-mosaic.umd.js +0 -11
- package/bundles/ptsecurity-mosaic.umd.js.map +0 -1
- package/esm2015/autocomplete/autocomplete.component.js +0 -163
- package/esm2015/button/button.component.js +0 -129
- package/esm2015/button/button.module.js +0 -42
- package/esm2015/button-toggle/button-toggle.component.js +0 -370
- package/esm2015/card/card.component.js +0 -88
- package/esm2015/checkbox/checkbox.js +0 -325
- package/esm2015/core/formatters/date/formatter.js +0 -287
- package/esm2015/core/formatters/date/templates/en-US.js +0 -280
- package/esm2015/core/formatters/date/templates/ru-RU.js +0 -280
- package/esm2015/core/formatters/number/formatter.js +0 -99
- package/esm2015/core/option/action.js +0 -131
- package/esm2015/core/option/optgroup.js +0 -40
- package/esm2015/core/option/option.js +0 -262
- package/esm2015/core/pop-up/pop-up-trigger.js +0 -273
- package/esm2015/core/pop-up/pop-up.js +0 -87
- package/esm2015/core/selection/pseudo-checkbox/pseudo-checkbox.js +0 -45
- package/esm2015/datepicker/calendar-body.component.js +0 -114
- package/esm2015/datepicker/calendar.component.js +0 -377
- package/esm2015/datepicker/datepicker-input.directive.js +0 -885
- package/esm2015/datepicker/datepicker-toggle.component.js +0 -94
- package/esm2015/datepicker/datepicker.component.js +0 -418
- package/esm2015/dropdown/dropdown-item.component.js +0 -142
- package/esm2015/dropdown/dropdown-trigger.directive.js +0 -478
- package/esm2015/dropdown/dropdown.component.js +0 -302
- package/esm2015/form-field/cleaner.js +0 -19
- package/esm2015/form-field/form-field.js +0 -224
- package/esm2015/icon/icon.component.js +0 -51
- package/esm2015/input/input-number-validators.js +0 -78
- package/esm2015/link/link.component.js +0 -108
- package/esm2015/list/list-selection.component.js +0 -708
- package/esm2015/list/list.component.js +0 -58
- package/esm2015/modal/modal.component.js +0 -506
- package/esm2015/modal/modal.module.js +0 -70
- package/esm2015/modal/modal.service.js +0 -117
- package/esm2015/navbar/navbar-item.component.js +0 -209
- package/esm2015/navbar/navbar.component.js +0 -118
- package/esm2015/navbar/navbar.module.js +0 -76
- package/esm2015/navbar/vertical-navbar.component.js +0 -140
- package/esm2015/popover/popover.component.js +0 -219
- package/esm2015/popover/popover.module.js +0 -21
- package/esm2015/progress-bar/progress-bar.component.js +0 -50
- package/esm2015/progress-spinner/progress-spinner.component.js +0 -54
- package/esm2015/radio/radio.component.js +0 -467
- package/esm2015/select/select.component.js +0 -1122
- package/esm2015/sidebar/sidebar.component.js +0 -155
- package/esm2015/sidepanel/sidepanel-container.component.js +0 -113
- package/esm2015/sidepanel/sidepanel-directives.js +0 -155
- package/esm2015/sidepanel/sidepanel.module.js +0 -70
- package/esm2015/sidepanel/sidepanel.service.js +0 -163
- package/esm2015/splitter/splitter.component.js +0 -331
- package/esm2015/splitter/splitter.module.js +0 -38
- package/esm2015/tabs/paginated-tab-header.js +0 -482
- package/esm2015/tabs/tab-body.component.js +0 -186
- package/esm2015/tabs/tab-group.component.js +0 -359
- package/esm2015/tabs/tab-header.component.js +0 -76
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +0 -118
- package/esm2015/tags/tag-list.component.js +0 -732
- package/esm2015/tags/tag.component.js +0 -382
- package/esm2015/timepicker/timepicker.directive.js +0 -652
- package/esm2015/toggle/toggle.component.js +0 -169
- package/esm2015/tooltip/tooltip.component.js +0 -260
- package/esm2015/tree/padding.directive.js +0 -114
- package/esm2015/tree/toggle.js +0 -89
- package/esm2015/tree/tree-option.component.js +0 -238
- package/esm2015/tree/tree-selection.component.js +0 -541
- package/esm2015/tree/tree.js +0 -23
- package/esm2015/tree/tree.module.js +0 -56
- package/esm2015/tree-select/tree-select.component.js +0 -900
- package/fesm2015/ptsecurity-mosaic-autocomplete.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button.js +0 -174
- package/fesm2015/ptsecurity-mosaic-button.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-card.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-core.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-divider.js +0 -68
- package/fesm2015/ptsecurity-mosaic-divider.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-form-field.js +0 -393
- package/fesm2015/ptsecurity-mosaic-form-field.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-icon.js +0 -93
- package/fesm2015/ptsecurity-mosaic-icon.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-input.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-link.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-list.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-modal.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-navbar.js +0 -539
- package/fesm2015/ptsecurity-mosaic-navbar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-popover.js +0 -257
- package/fesm2015/ptsecurity-mosaic-popover.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js +0 -88
- package/fesm2015/ptsecurity-mosaic-progress-spinner.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-radio.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-select.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-splitter.js +0 -373
- package/fesm2015/ptsecurity-mosaic-splitter.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-table.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tabs.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tags.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-textarea.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-toggle.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.js +0 -323
- package/fesm2015/ptsecurity-mosaic-tooltip.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree.js.map +0 -1
- package/fesm2015/ptsecurity-mosaic.js.map +0 -1
@@ -1,1250 +0,0 @@
|
|
1
|
-
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/cdk/a11y'), require('@angular/common'), require('@angular/core'), require('@ptsecurity/mosaic/core'), require('@angular/cdk/coercion'), require('@angular/cdk/collections'), require('@angular/forms'), require('@ptsecurity/cdk/a11y'), require('@ptsecurity/cdk/keycodes'), require('@ptsecurity/mosaic/dropdown'), require('@ptsecurity/mosaic/tooltip'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/clipboard')) :
|
3
|
-
typeof define === 'function' && define.amd ? define('@ptsecurity/mosaic/list', ['exports', '@angular/cdk/a11y', '@angular/common', '@angular/core', '@ptsecurity/mosaic/core', '@angular/cdk/coercion', '@angular/cdk/collections', '@angular/forms', '@ptsecurity/cdk/a11y', '@ptsecurity/cdk/keycodes', '@ptsecurity/mosaic/dropdown', '@ptsecurity/mosaic/tooltip', 'rxjs', 'rxjs/operators', '@angular/cdk/clipboard'], factory) :
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.ptsecurity = global.ptsecurity || {}, global.ptsecurity.mosaic = global.ptsecurity.mosaic || {}, global.ptsecurity.mosaic.list = {}), global.ng.cdk.a11y, global.ng.common, global.ng.core, global.ptsecurity.mosaic.core, global.ng.cdk.coercion, global.ng.cdk.collections, global.ng.forms, global.mc.cdk.a11y, global.mc.cdk.keycodes, global.ptsecurity.mosaic.dropdown, global.ptsecurity.mosaic.tooltip, global.rxjs, global.rxjs.operators, global.ng.cdk.clipboard));
|
5
|
-
}(this, (function (exports, a11y$1, i2, i0, i1, coercion, collections, forms, a11y, keycodes, dropdown, tooltip, rxjs, operators, i3) { 'use strict';
|
6
|
-
|
7
|
-
function _interopNamespace(e) {
|
8
|
-
if (e && e.__esModule) return e;
|
9
|
-
var n = Object.create(null);
|
10
|
-
if (e) {
|
11
|
-
Object.keys(e).forEach(function (k) {
|
12
|
-
if (k !== 'default') {
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
15
|
-
enumerable: true,
|
16
|
-
get: function () {
|
17
|
-
return e[k];
|
18
|
-
}
|
19
|
-
});
|
20
|
-
}
|
21
|
-
});
|
22
|
-
}
|
23
|
-
n['default'] = e;
|
24
|
-
return Object.freeze(n);
|
25
|
-
}
|
26
|
-
|
27
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
28
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
29
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
30
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
31
|
-
|
32
|
-
/*! *****************************************************************************
|
33
|
-
Copyright (c) Microsoft Corporation.
|
34
|
-
|
35
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
36
|
-
purpose with or without fee is hereby granted.
|
37
|
-
|
38
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
39
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
40
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
41
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
42
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
43
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
44
|
-
PERFORMANCE OF THIS SOFTWARE.
|
45
|
-
***************************************************************************** */
|
46
|
-
/* global Reflect, Promise */
|
47
|
-
var extendStatics = function (d, b) {
|
48
|
-
extendStatics = Object.setPrototypeOf ||
|
49
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
50
|
-
function (d, b) { for (var p in b)
|
51
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
52
|
-
d[p] = b[p]; };
|
53
|
-
return extendStatics(d, b);
|
54
|
-
};
|
55
|
-
function __extends(d, b) {
|
56
|
-
if (typeof b !== "function" && b !== null)
|
57
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
58
|
-
extendStatics(d, b);
|
59
|
-
function __() { this.constructor = d; }
|
60
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
61
|
-
}
|
62
|
-
var __assign = function () {
|
63
|
-
__assign = Object.assign || function __assign(t) {
|
64
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
65
|
-
s = arguments[i];
|
66
|
-
for (var p in s)
|
67
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
68
|
-
t[p] = s[p];
|
69
|
-
}
|
70
|
-
return t;
|
71
|
-
};
|
72
|
-
return __assign.apply(this, arguments);
|
73
|
-
};
|
74
|
-
function __rest(s, e) {
|
75
|
-
var t = {};
|
76
|
-
for (var p in s)
|
77
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
78
|
-
t[p] = s[p];
|
79
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
80
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
81
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
82
|
-
t[p[i]] = s[p[i]];
|
83
|
-
}
|
84
|
-
return t;
|
85
|
-
}
|
86
|
-
function __decorate(decorators, target, key, desc) {
|
87
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
88
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
89
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
90
|
-
else
|
91
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
92
|
-
if (d = decorators[i])
|
93
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
94
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
95
|
-
}
|
96
|
-
function __param(paramIndex, decorator) {
|
97
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
98
|
-
}
|
99
|
-
function __metadata(metadataKey, metadataValue) {
|
100
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
101
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
102
|
-
}
|
103
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
104
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
105
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
106
|
-
function fulfilled(value) { try {
|
107
|
-
step(generator.next(value));
|
108
|
-
}
|
109
|
-
catch (e) {
|
110
|
-
reject(e);
|
111
|
-
} }
|
112
|
-
function rejected(value) { try {
|
113
|
-
step(generator["throw"](value));
|
114
|
-
}
|
115
|
-
catch (e) {
|
116
|
-
reject(e);
|
117
|
-
} }
|
118
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
119
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
120
|
-
});
|
121
|
-
}
|
122
|
-
function __generator(thisArg, body) {
|
123
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
124
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
125
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
126
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
127
|
-
function step(op) {
|
128
|
-
if (f)
|
129
|
-
throw new TypeError("Generator is already executing.");
|
130
|
-
while (_)
|
131
|
-
try {
|
132
|
-
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)
|
133
|
-
return t;
|
134
|
-
if (y = 0, t)
|
135
|
-
op = [op[0] & 2, t.value];
|
136
|
-
switch (op[0]) {
|
137
|
-
case 0:
|
138
|
-
case 1:
|
139
|
-
t = op;
|
140
|
-
break;
|
141
|
-
case 4:
|
142
|
-
_.label++;
|
143
|
-
return { value: op[1], done: false };
|
144
|
-
case 5:
|
145
|
-
_.label++;
|
146
|
-
y = op[1];
|
147
|
-
op = [0];
|
148
|
-
continue;
|
149
|
-
case 7:
|
150
|
-
op = _.ops.pop();
|
151
|
-
_.trys.pop();
|
152
|
-
continue;
|
153
|
-
default:
|
154
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
155
|
-
_ = 0;
|
156
|
-
continue;
|
157
|
-
}
|
158
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
159
|
-
_.label = op[1];
|
160
|
-
break;
|
161
|
-
}
|
162
|
-
if (op[0] === 6 && _.label < t[1]) {
|
163
|
-
_.label = t[1];
|
164
|
-
t = op;
|
165
|
-
break;
|
166
|
-
}
|
167
|
-
if (t && _.label < t[2]) {
|
168
|
-
_.label = t[2];
|
169
|
-
_.ops.push(op);
|
170
|
-
break;
|
171
|
-
}
|
172
|
-
if (t[2])
|
173
|
-
_.ops.pop();
|
174
|
-
_.trys.pop();
|
175
|
-
continue;
|
176
|
-
}
|
177
|
-
op = body.call(thisArg, _);
|
178
|
-
}
|
179
|
-
catch (e) {
|
180
|
-
op = [6, e];
|
181
|
-
y = 0;
|
182
|
-
}
|
183
|
-
finally {
|
184
|
-
f = t = 0;
|
185
|
-
}
|
186
|
-
if (op[0] & 5)
|
187
|
-
throw op[1];
|
188
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
189
|
-
}
|
190
|
-
}
|
191
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
192
|
-
if (k2 === undefined)
|
193
|
-
k2 = k;
|
194
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
195
|
-
}) : (function (o, m, k, k2) {
|
196
|
-
if (k2 === undefined)
|
197
|
-
k2 = k;
|
198
|
-
o[k2] = m[k];
|
199
|
-
});
|
200
|
-
function __exportStar(m, o) {
|
201
|
-
for (var p in m)
|
202
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
203
|
-
__createBinding(o, m, p);
|
204
|
-
}
|
205
|
-
function __values(o) {
|
206
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
207
|
-
if (m)
|
208
|
-
return m.call(o);
|
209
|
-
if (o && typeof o.length === "number")
|
210
|
-
return {
|
211
|
-
next: function () {
|
212
|
-
if (o && i >= o.length)
|
213
|
-
o = void 0;
|
214
|
-
return { value: o && o[i++], done: !o };
|
215
|
-
}
|
216
|
-
};
|
217
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
218
|
-
}
|
219
|
-
function __read(o, n) {
|
220
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
221
|
-
if (!m)
|
222
|
-
return o;
|
223
|
-
var i = m.call(o), r, ar = [], e;
|
224
|
-
try {
|
225
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
226
|
-
ar.push(r.value);
|
227
|
-
}
|
228
|
-
catch (error) {
|
229
|
-
e = { error: error };
|
230
|
-
}
|
231
|
-
finally {
|
232
|
-
try {
|
233
|
-
if (r && !r.done && (m = i["return"]))
|
234
|
-
m.call(i);
|
235
|
-
}
|
236
|
-
finally {
|
237
|
-
if (e)
|
238
|
-
throw e.error;
|
239
|
-
}
|
240
|
-
}
|
241
|
-
return ar;
|
242
|
-
}
|
243
|
-
/** @deprecated */
|
244
|
-
function __spread() {
|
245
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
246
|
-
ar = ar.concat(__read(arguments[i]));
|
247
|
-
return ar;
|
248
|
-
}
|
249
|
-
/** @deprecated */
|
250
|
-
function __spreadArrays() {
|
251
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
252
|
-
s += arguments[i].length;
|
253
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
254
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
255
|
-
r[k] = a[j];
|
256
|
-
return r;
|
257
|
-
}
|
258
|
-
function __spreadArray(to, from, pack) {
|
259
|
-
if (pack || arguments.length === 2)
|
260
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
261
|
-
if (ar || !(i in from)) {
|
262
|
-
if (!ar)
|
263
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
264
|
-
ar[i] = from[i];
|
265
|
-
}
|
266
|
-
}
|
267
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
268
|
-
}
|
269
|
-
function __await(v) {
|
270
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
271
|
-
}
|
272
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
273
|
-
if (!Symbol.asyncIterator)
|
274
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
275
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
276
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
277
|
-
function verb(n) { if (g[n])
|
278
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
279
|
-
function resume(n, v) { try {
|
280
|
-
step(g[n](v));
|
281
|
-
}
|
282
|
-
catch (e) {
|
283
|
-
settle(q[0][3], e);
|
284
|
-
} }
|
285
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
286
|
-
function fulfill(value) { resume("next", value); }
|
287
|
-
function reject(value) { resume("throw", value); }
|
288
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
289
|
-
resume(q[0][0], q[0][1]); }
|
290
|
-
}
|
291
|
-
function __asyncDelegator(o) {
|
292
|
-
var i, p;
|
293
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
294
|
-
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; }
|
295
|
-
}
|
296
|
-
function __asyncValues(o) {
|
297
|
-
if (!Symbol.asyncIterator)
|
298
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
299
|
-
var m = o[Symbol.asyncIterator], i;
|
300
|
-
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);
|
301
|
-
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); }); }; }
|
302
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
303
|
-
}
|
304
|
-
function __makeTemplateObject(cooked, raw) {
|
305
|
-
if (Object.defineProperty) {
|
306
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
307
|
-
}
|
308
|
-
else {
|
309
|
-
cooked.raw = raw;
|
310
|
-
}
|
311
|
-
return cooked;
|
312
|
-
}
|
313
|
-
;
|
314
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
315
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
316
|
-
}) : function (o, v) {
|
317
|
-
o["default"] = v;
|
318
|
-
};
|
319
|
-
function __importStar(mod) {
|
320
|
-
if (mod && mod.__esModule)
|
321
|
-
return mod;
|
322
|
-
var result = {};
|
323
|
-
if (mod != null)
|
324
|
-
for (var k in mod)
|
325
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
326
|
-
__createBinding(result, mod, k);
|
327
|
-
__setModuleDefault(result, mod);
|
328
|
-
return result;
|
329
|
-
}
|
330
|
-
function __importDefault(mod) {
|
331
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
332
|
-
}
|
333
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
334
|
-
if (kind === "a" && !f)
|
335
|
-
throw new TypeError("Private accessor was defined without a getter");
|
336
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
337
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
338
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
339
|
-
}
|
340
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
341
|
-
if (kind === "m")
|
342
|
-
throw new TypeError("Private method is not writable");
|
343
|
-
if (kind === "a" && !f)
|
344
|
-
throw new TypeError("Private accessor was defined without a setter");
|
345
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
346
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
347
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
348
|
-
}
|
349
|
-
|
350
|
-
/**
|
351
|
-
* Component for list-options of selection-list. Each list-option can automatically
|
352
|
-
* generate a checkbox and can put current item into the selectionModel of selection-list
|
353
|
-
* if the current item is selected.
|
354
|
-
*/
|
355
|
-
var McListOption = /** @class */ (function () {
|
356
|
-
function McListOption(elementRef, changeDetector, ngZone, listSelection, group) {
|
357
|
-
this.elementRef = elementRef;
|
358
|
-
this.changeDetector = changeDetector;
|
359
|
-
this.ngZone = ngZone;
|
360
|
-
this.listSelection = listSelection;
|
361
|
-
this.group = group;
|
362
|
-
this.hasFocus = false;
|
363
|
-
this.onFocus = new rxjs.Subject();
|
364
|
-
this.onBlur = new rxjs.Subject();
|
365
|
-
/**
|
366
|
-
* This is set to true after the first OnChanges cycle so we don't clear the value of `selected`
|
367
|
-
* in the first cycle.
|
368
|
-
*/
|
369
|
-
this.inputsInitialized = false;
|
370
|
-
this._disabled = false;
|
371
|
-
this._selected = false;
|
372
|
-
}
|
373
|
-
Object.defineProperty(McListOption.prototype, "value", {
|
374
|
-
get: function () { return this._value; },
|
375
|
-
set: function (newValue) {
|
376
|
-
if (this.selected && newValue !== this.value && this.inputsInitialized) {
|
377
|
-
this.selected = false;
|
378
|
-
}
|
379
|
-
this._value = newValue;
|
380
|
-
},
|
381
|
-
enumerable: false,
|
382
|
-
configurable: true
|
383
|
-
});
|
384
|
-
Object.defineProperty(McListOption.prototype, "disabled", {
|
385
|
-
get: function () {
|
386
|
-
var listSelectionDisabled = this.listSelection && this.listSelection.disabled;
|
387
|
-
var groupDisabled = this.group && this.group.disabled;
|
388
|
-
return listSelectionDisabled || groupDisabled || this._disabled;
|
389
|
-
},
|
390
|
-
set: function (value) {
|
391
|
-
var newValue = i1.toBoolean(value);
|
392
|
-
if (newValue !== this._disabled) {
|
393
|
-
this._disabled = newValue;
|
394
|
-
this.changeDetector.markForCheck();
|
395
|
-
}
|
396
|
-
},
|
397
|
-
enumerable: false,
|
398
|
-
configurable: true
|
399
|
-
});
|
400
|
-
Object.defineProperty(McListOption.prototype, "showCheckbox", {
|
401
|
-
get: function () {
|
402
|
-
return this._showCheckbox !== undefined ? this._showCheckbox : this.listSelection.showCheckbox;
|
403
|
-
},
|
404
|
-
set: function (value) {
|
405
|
-
this._showCheckbox = coercion.coerceBooleanProperty(value);
|
406
|
-
},
|
407
|
-
enumerable: false,
|
408
|
-
configurable: true
|
409
|
-
});
|
410
|
-
Object.defineProperty(McListOption.prototype, "selected", {
|
411
|
-
get: function () {
|
412
|
-
return this.listSelection.selectionModel && this.listSelection.selectionModel.isSelected(this) || false;
|
413
|
-
},
|
414
|
-
set: function (value) {
|
415
|
-
var isSelected = i1.toBoolean(value);
|
416
|
-
if (isSelected !== this._selected) {
|
417
|
-
this.setSelected(isSelected);
|
418
|
-
this.listSelection.reportValueChange();
|
419
|
-
}
|
420
|
-
},
|
421
|
-
enumerable: false,
|
422
|
-
configurable: true
|
423
|
-
});
|
424
|
-
Object.defineProperty(McListOption.prototype, "tabIndex", {
|
425
|
-
get: function () {
|
426
|
-
return this.disabled ? null : -1;
|
427
|
-
},
|
428
|
-
enumerable: false,
|
429
|
-
configurable: true
|
430
|
-
});
|
431
|
-
McListOption.prototype.ngOnInit = function () {
|
432
|
-
var _this = this;
|
433
|
-
var list = this.listSelection;
|
434
|
-
if (list._value && list._value.some(function (value) { return list.compareWith(value, _this._value); })) {
|
435
|
-
this.setSelected(true);
|
436
|
-
}
|
437
|
-
var wasSelected = this._selected;
|
438
|
-
// List options that are selected at initialization can't be reported properly to the form
|
439
|
-
// control. This is because it takes some time until the selection-list knows about all
|
440
|
-
// available options. Also it can happen that the ControlValueAccessor has an initial value
|
441
|
-
// that should be used instead. Deferring the value change report to the next tick ensures
|
442
|
-
// that the form control value is not being overwritten.
|
443
|
-
Promise.resolve().then(function () {
|
444
|
-
if (_this._selected || wasSelected) {
|
445
|
-
_this.selected = true;
|
446
|
-
_this.changeDetector.markForCheck();
|
447
|
-
}
|
448
|
-
});
|
449
|
-
this.inputsInitialized = true;
|
450
|
-
};
|
451
|
-
McListOption.prototype.ngOnDestroy = function () {
|
452
|
-
var _this = this;
|
453
|
-
if (this.selected) {
|
454
|
-
// We have to delay this until the next tick in order
|
455
|
-
// to avoid changed after checked errors.
|
456
|
-
Promise.resolve().then(function () { return _this.selected = false; });
|
457
|
-
}
|
458
|
-
this.listSelection.removeOptionFromList(this);
|
459
|
-
};
|
460
|
-
McListOption.prototype.toggle = function () {
|
461
|
-
this.selected = !this.selected;
|
462
|
-
};
|
463
|
-
McListOption.prototype.getLabel = function () {
|
464
|
-
return this.text ? this.text.nativeElement.textContent : '';
|
465
|
-
};
|
466
|
-
McListOption.prototype.setSelected = function (selected) {
|
467
|
-
if (this._selected === selected || !this.listSelection.selectionModel) {
|
468
|
-
return;
|
469
|
-
}
|
470
|
-
this._selected = selected;
|
471
|
-
if (selected) {
|
472
|
-
this.listSelection.selectionModel.select(this);
|
473
|
-
}
|
474
|
-
else {
|
475
|
-
this.listSelection.selectionModel.deselect(this);
|
476
|
-
}
|
477
|
-
this.changeDetector.markForCheck();
|
478
|
-
};
|
479
|
-
McListOption.prototype.getHeight = function () {
|
480
|
-
return this.elementRef.nativeElement.getClientRects()[0].height;
|
481
|
-
};
|
482
|
-
McListOption.prototype.handleClick = function ($event) {
|
483
|
-
if (this.disabled) {
|
484
|
-
return;
|
485
|
-
}
|
486
|
-
this.listSelection.setSelectedOptionsByClick(this, keycodes.hasModifierKey($event, 'shiftKey'), keycodes.hasModifierKey($event, 'ctrlKey'));
|
487
|
-
};
|
488
|
-
McListOption.prototype.onKeydown = function ($event) {
|
489
|
-
if (!this.actionButton) {
|
490
|
-
return;
|
491
|
-
}
|
492
|
-
if ($event.keyCode === keycodes.TAB && !$event.shiftKey && !this.actionButton.hasFocus) {
|
493
|
-
this.actionButton.focus();
|
494
|
-
$event.preventDefault();
|
495
|
-
}
|
496
|
-
};
|
497
|
-
McListOption.prototype.focus = function () {
|
498
|
-
var _this = this;
|
499
|
-
var _a;
|
500
|
-
if (this.disabled || this.hasFocus || ((_a = this.actionButton) === null || _a === void 0 ? void 0 : _a.hasFocus)) {
|
501
|
-
return;
|
502
|
-
}
|
503
|
-
this.elementRef.nativeElement.focus();
|
504
|
-
this.onFocus.next({ option: this });
|
505
|
-
Promise.resolve().then(function () {
|
506
|
-
_this.hasFocus = true;
|
507
|
-
_this.changeDetector.markForCheck();
|
508
|
-
});
|
509
|
-
};
|
510
|
-
McListOption.prototype.blur = function () {
|
511
|
-
var _this = this;
|
512
|
-
// When animations are enabled, Angular may end up removing the option from the DOM a little
|
513
|
-
// earlier than usual, causing it to be blurred and throwing off the logic in the list
|
514
|
-
// that moves focus not the next item. To work around the issue, we defer marking the option
|
515
|
-
// as not focused until the next time the zone stabilizes.
|
516
|
-
this.ngZone.onStable
|
517
|
-
.asObservable()
|
518
|
-
.pipe(operators.take(1))
|
519
|
-
.subscribe(function () {
|
520
|
-
_this.ngZone.run(function () {
|
521
|
-
var _a;
|
522
|
-
_this.hasFocus = false;
|
523
|
-
if ((_a = _this.actionButton) === null || _a === void 0 ? void 0 : _a.hasFocus) {
|
524
|
-
return;
|
525
|
-
}
|
526
|
-
_this.onBlur.next({ option: _this });
|
527
|
-
});
|
528
|
-
});
|
529
|
-
};
|
530
|
-
McListOption.prototype.getHostElement = function () {
|
531
|
-
return this.elementRef.nativeElement;
|
532
|
-
};
|
533
|
-
return McListOption;
|
534
|
-
}());
|
535
|
-
/** @nocollapse */ McListOption.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListOption, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.NgZone }, { token: i0.forwardRef(function () { return McListSelection; }) }, { token: i1__namespace.McOptgroup, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
536
|
-
/** @nocollapse */ McListOption.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: McListOption, selector: "mc-list-option", inputs: { checkboxPosition: "checkboxPosition", value: "value", disabled: "disabled", showCheckbox: "showCheckbox", selected: "selected" }, host: { listeners: { "focusin": "focus()", "blur": "blur()", "click": "handleClick($event)", "keydown": "onKeydown($event)" }, properties: { "class.mc-selected": "selected", "class.mc-disabled": "disabled", "class.mc-focused": "hasFocus", "class.mc-action-button-focused": "actionButton?.active", "attr.tabindex": "tabIndex", "attr.disabled": "disabled || null" }, classAttribute: "mc-list-option" }, providers: [
|
537
|
-
{ provide: i1.MC_OPTION_ACTION_PARENT, useExisting: McListOption }
|
538
|
-
], queries: [{ propertyName: "actionButton", first: true, predicate: i1.McOptionActionComponent, descendants: true }, { propertyName: "tooltipTrigger", first: true, predicate: tooltip.McTooltipTrigger, descendants: true }, { propertyName: "dropdownTrigger", first: true, predicate: dropdown.McDropdownTrigger, descendants: true }], viewQueries: [{ propertyName: "text", first: true, predicate: ["text"], descendants: true }], exportAs: ["mcListOption"], ngImport: i0__namespace, template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<div class=\"mc-list-text\" #text>\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"mc-option-action\"></ng-content>\n", components: [{ type: i1__namespace.McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: ["state", "disabled"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
539
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListOption, decorators: [{
|
540
|
-
type: i0.Component,
|
541
|
-
args: [{
|
542
|
-
exportAs: 'mcListOption',
|
543
|
-
selector: 'mc-list-option',
|
544
|
-
templateUrl: './list-option.html',
|
545
|
-
host: {
|
546
|
-
class: 'mc-list-option',
|
547
|
-
'[class.mc-selected]': 'selected',
|
548
|
-
'[class.mc-disabled]': 'disabled',
|
549
|
-
'[class.mc-focused]': 'hasFocus',
|
550
|
-
'[class.mc-action-button-focused]': 'actionButton?.active',
|
551
|
-
'[attr.tabindex]': 'tabIndex',
|
552
|
-
'[attr.disabled]': 'disabled || null',
|
553
|
-
'(focusin)': 'focus()',
|
554
|
-
'(blur)': 'blur()',
|
555
|
-
'(click)': 'handleClick($event)',
|
556
|
-
'(keydown)': 'onKeydown($event)'
|
557
|
-
},
|
558
|
-
encapsulation: i0.ViewEncapsulation.None,
|
559
|
-
preserveWhitespaces: false,
|
560
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
561
|
-
providers: [
|
562
|
-
{ provide: i1.MC_OPTION_ACTION_PARENT, useExisting: McListOption }
|
563
|
-
]
|
564
|
-
}]
|
565
|
-
}], ctorParameters: function () {
|
566
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.NgZone }, { type: McListSelection, decorators: [{
|
567
|
-
type: i0.Inject,
|
568
|
-
args: [i0.forwardRef(function () { return McListSelection; })]
|
569
|
-
}] }, { type: i1__namespace.McOptgroup, decorators: [{
|
570
|
-
type: i0.Optional
|
571
|
-
}] }];
|
572
|
-
}, propDecorators: { actionButton: [{
|
573
|
-
type: i0.ContentChild,
|
574
|
-
args: [i1.McOptionActionComponent]
|
575
|
-
}], tooltipTrigger: [{
|
576
|
-
type: i0.ContentChild,
|
577
|
-
args: [tooltip.McTooltipTrigger]
|
578
|
-
}], dropdownTrigger: [{
|
579
|
-
type: i0.ContentChild,
|
580
|
-
args: [dropdown.McDropdownTrigger]
|
581
|
-
}], text: [{
|
582
|
-
type: i0.ViewChild,
|
583
|
-
args: ['text', { static: false }]
|
584
|
-
}], checkboxPosition: [{
|
585
|
-
type: i0.Input
|
586
|
-
}], value: [{
|
587
|
-
type: i0.Input
|
588
|
-
}], disabled: [{
|
589
|
-
type: i0.Input
|
590
|
-
}], showCheckbox: [{
|
591
|
-
type: i0.Input
|
592
|
-
}], selected: [{
|
593
|
-
type: i0.Input
|
594
|
-
}] } });
|
595
|
-
var MC_SELECTION_LIST_VALUE_ACCESSOR = {
|
596
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
597
|
-
useExisting: i0.forwardRef(function () { return McListSelection; }),
|
598
|
-
multi: true
|
599
|
-
};
|
600
|
-
var McListSelectionChange = /** @class */ (function () {
|
601
|
-
function McListSelectionChange(source, option) {
|
602
|
-
this.source = source;
|
603
|
-
this.option = option;
|
604
|
-
}
|
605
|
-
return McListSelectionChange;
|
606
|
-
}());
|
607
|
-
var McListSelectAllEvent = /** @class */ (function () {
|
608
|
-
function McListSelectAllEvent(source, options) {
|
609
|
-
this.source = source;
|
610
|
-
this.options = options;
|
611
|
-
}
|
612
|
-
return McListSelectAllEvent;
|
613
|
-
}());
|
614
|
-
var McListCopyEvent = /** @class */ (function () {
|
615
|
-
function McListCopyEvent(source, option) {
|
616
|
-
this.source = source;
|
617
|
-
this.option = option;
|
618
|
-
}
|
619
|
-
return McListCopyEvent;
|
620
|
-
}());
|
621
|
-
var McListSelectionBase = /** @class */ (function () {
|
622
|
-
function McListSelectionBase(elementRef) {
|
623
|
-
this.elementRef = elementRef;
|
624
|
-
}
|
625
|
-
return McListSelectionBase;
|
626
|
-
}());
|
627
|
-
// tslint:disable-next-line:naming-convention
|
628
|
-
var McListSelectionMixinBase = i1.mixinTabIndex(i1.mixinDisabled(McListSelectionBase));
|
629
|
-
var McListSelection = /** @class */ (function (_super) {
|
630
|
-
__extends(McListSelection, _super);
|
631
|
-
function McListSelection(elementRef, changeDetectorRef, multiple, clipboard) {
|
632
|
-
var _this = _super.call(this, elementRef) || this;
|
633
|
-
_this.changeDetectorRef = changeDetectorRef;
|
634
|
-
_this.clipboard = clipboard;
|
635
|
-
_this.onSelectAll = new i0.EventEmitter();
|
636
|
-
_this.onCopy = new i0.EventEmitter();
|
637
|
-
_this._autoSelect = true;
|
638
|
-
_this._noUnselectLast = true;
|
639
|
-
_this.horizontal = false;
|
640
|
-
_this._tabIndex = 0;
|
641
|
-
_this.userTabIndex = null;
|
642
|
-
// Emits a change event whenever the selected state of an option changes.
|
643
|
-
_this.selectionChange = new i0.EventEmitter();
|
644
|
-
/** Emits whenever the component is destroyed. */
|
645
|
-
_this.destroyed = new rxjs.Subject();
|
646
|
-
/**
|
647
|
-
* Function used for comparing an option against the selected value when determining which
|
648
|
-
* options should appear as selected. The first argument is the value of an options. The second
|
649
|
-
* one is a value from the selected value. A boolean must be returned.
|
650
|
-
*/
|
651
|
-
_this.compareWith = function (a1, a2) { return a1 === a2; };
|
652
|
-
// View to model callback that should be called if the list or its options lost focus.
|
653
|
-
// tslint:disable-next-line:no-empty
|
654
|
-
_this.onTouched = function () { };
|
655
|
-
// View to model callback that should be called whenever the selected options change.
|
656
|
-
_this.onChange = function (_) { };
|
657
|
-
if (multiple === i1.MultipleMode.CHECKBOX || multiple === i1.MultipleMode.KEYBOARD) {
|
658
|
-
_this.multipleMode = multiple;
|
659
|
-
}
|
660
|
-
else if (multiple !== null) {
|
661
|
-
_this.multipleMode = i1.MultipleMode.CHECKBOX;
|
662
|
-
}
|
663
|
-
if (_this.multipleMode === i1.MultipleMode.CHECKBOX) {
|
664
|
-
_this.autoSelect = false;
|
665
|
-
_this.noUnselectLast = false;
|
666
|
-
}
|
667
|
-
_this.selectionModel = new collections.SelectionModel(_this.multiple);
|
668
|
-
return _this;
|
669
|
-
}
|
670
|
-
Object.defineProperty(McListSelection.prototype, "autoSelect", {
|
671
|
-
get: function () {
|
672
|
-
return this._autoSelect;
|
673
|
-
},
|
674
|
-
set: function (value) {
|
675
|
-
this._autoSelect = coercion.coerceBooleanProperty(value);
|
676
|
-
},
|
677
|
-
enumerable: false,
|
678
|
-
configurable: true
|
679
|
-
});
|
680
|
-
Object.defineProperty(McListSelection.prototype, "noUnselectLast", {
|
681
|
-
get: function () {
|
682
|
-
return this._noUnselectLast;
|
683
|
-
},
|
684
|
-
set: function (value) {
|
685
|
-
this._noUnselectLast = coercion.coerceBooleanProperty(value);
|
686
|
-
},
|
687
|
-
enumerable: false,
|
688
|
-
configurable: true
|
689
|
-
});
|
690
|
-
Object.defineProperty(McListSelection.prototype, "multiple", {
|
691
|
-
get: function () {
|
692
|
-
return !!this.multipleMode;
|
693
|
-
},
|
694
|
-
enumerable: false,
|
695
|
-
configurable: true
|
696
|
-
});
|
697
|
-
Object.defineProperty(McListSelection.prototype, "tabIndex", {
|
698
|
-
get: function () {
|
699
|
-
return this.disabled ? -1 : this._tabIndex;
|
700
|
-
},
|
701
|
-
set: function (value) {
|
702
|
-
this.userTabIndex = value;
|
703
|
-
this._tabIndex = value;
|
704
|
-
},
|
705
|
-
enumerable: false,
|
706
|
-
configurable: true
|
707
|
-
});
|
708
|
-
Object.defineProperty(McListSelection.prototype, "showCheckbox", {
|
709
|
-
get: function () {
|
710
|
-
return this.multipleMode === i1.MultipleMode.CHECKBOX;
|
711
|
-
},
|
712
|
-
enumerable: false,
|
713
|
-
configurable: true
|
714
|
-
});
|
715
|
-
Object.defineProperty(McListSelection.prototype, "optionFocusChanges", {
|
716
|
-
get: function () {
|
717
|
-
return rxjs.merge.apply(void 0, __spreadArray([], __read(this.options.map(function (option) { return option.onFocus; }))));
|
718
|
-
},
|
719
|
-
enumerable: false,
|
720
|
-
configurable: true
|
721
|
-
});
|
722
|
-
Object.defineProperty(McListSelection.prototype, "optionBlurChanges", {
|
723
|
-
get: function () {
|
724
|
-
return rxjs.merge.apply(void 0, __spreadArray([], __read(this.options.map(function (option) { return option.onBlur; }))));
|
725
|
-
},
|
726
|
-
enumerable: false,
|
727
|
-
configurable: true
|
728
|
-
});
|
729
|
-
McListSelection.prototype.ngAfterContentInit = function () {
|
730
|
-
var _this = this;
|
731
|
-
this.horizontal = i1.toBoolean(this.horizontal);
|
732
|
-
this.keyManager = new a11y.FocusKeyManager(this.options)
|
733
|
-
.withTypeAhead()
|
734
|
-
.withVerticalOrientation(!this.horizontal)
|
735
|
-
.withHorizontalOrientation(this.horizontal ? 'ltr' : null);
|
736
|
-
this.keyManager.tabOut
|
737
|
-
.pipe(operators.takeUntil(this.destroyed))
|
738
|
-
.subscribe(function () {
|
739
|
-
_this._tabIndex = -1;
|
740
|
-
setTimeout(function () {
|
741
|
-
_this._tabIndex = _this.userTabIndex || 0;
|
742
|
-
_this.changeDetectorRef.markForCheck();
|
743
|
-
});
|
744
|
-
});
|
745
|
-
if (this._value) {
|
746
|
-
this.setOptionsFromValues(this._value);
|
747
|
-
}
|
748
|
-
this.selectionModel.changed
|
749
|
-
.pipe(operators.takeUntil(this.destroyed))
|
750
|
-
.subscribe(function (event) {
|
751
|
-
var e_1, _b, e_2, _c;
|
752
|
-
try {
|
753
|
-
for (var _d = __values(event.added), _e = _d.next(); !_e.done; _e = _d.next()) {
|
754
|
-
var item = _e.value;
|
755
|
-
item.selected = true;
|
756
|
-
}
|
757
|
-
}
|
758
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
759
|
-
finally {
|
760
|
-
try {
|
761
|
-
if (_e && !_e.done && (_b = _d.return)) _b.call(_d);
|
762
|
-
}
|
763
|
-
finally { if (e_1) throw e_1.error; }
|
764
|
-
}
|
765
|
-
try {
|
766
|
-
for (var _f = __values(event.removed), _g = _f.next(); !_g.done; _g = _f.next()) {
|
767
|
-
var item = _g.value;
|
768
|
-
item.selected = false;
|
769
|
-
}
|
770
|
-
}
|
771
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
772
|
-
finally {
|
773
|
-
try {
|
774
|
-
if (_g && !_g.done && (_c = _f.return)) _c.call(_f);
|
775
|
-
}
|
776
|
-
finally { if (e_2) throw e_2.error; }
|
777
|
-
}
|
778
|
-
});
|
779
|
-
this.options.changes
|
780
|
-
.pipe(operators.startWith(null), operators.takeUntil(this.destroyed))
|
781
|
-
.subscribe(function () {
|
782
|
-
_this.resetOptions();
|
783
|
-
// Check to see if we need to update our tab index
|
784
|
-
_this.updateTabIndex();
|
785
|
-
});
|
786
|
-
this.updateScrollSize();
|
787
|
-
};
|
788
|
-
McListSelection.prototype.ngOnDestroy = function () {
|
789
|
-
this.destroyed.next();
|
790
|
-
this.destroyed.complete();
|
791
|
-
};
|
792
|
-
McListSelection.prototype.focus = function () {
|
793
|
-
if (this.options.length === 0) {
|
794
|
-
return;
|
795
|
-
}
|
796
|
-
this.keyManager.setFirstItemActive();
|
797
|
-
};
|
798
|
-
McListSelection.prototype.blur = function () {
|
799
|
-
if (!this.hasFocusedOption()) {
|
800
|
-
this.keyManager.setActiveItem(-1);
|
801
|
-
}
|
802
|
-
this.onTouched();
|
803
|
-
this.changeDetectorRef.markForCheck();
|
804
|
-
};
|
805
|
-
McListSelection.prototype.selectAll = function () {
|
806
|
-
this.options.forEach(function (option) { return option.setSelected(true); });
|
807
|
-
this.reportValueChange();
|
808
|
-
};
|
809
|
-
McListSelection.prototype.deselectAll = function () {
|
810
|
-
this.options.forEach(function (option) { return option.setSelected(false); });
|
811
|
-
this.reportValueChange();
|
812
|
-
};
|
813
|
-
McListSelection.prototype.updateScrollSize = function () {
|
814
|
-
if (this.horizontal || !this.options.first) {
|
815
|
-
return;
|
816
|
-
}
|
817
|
-
this.keyManager.withScrollSize(Math.floor(this.getHeight() / this.options.first.getHeight()));
|
818
|
-
};
|
819
|
-
McListSelection.prototype.setSelectedOptionsByClick = function (option, shiftKey, ctrlKey) {
|
820
|
-
if (shiftKey && this.multiple) {
|
821
|
-
this.setSelectedOptions(option);
|
822
|
-
}
|
823
|
-
else if (ctrlKey) {
|
824
|
-
if (!this.canDeselectLast(option)) {
|
825
|
-
return;
|
826
|
-
}
|
827
|
-
this.selectionModel.toggle(option);
|
828
|
-
}
|
829
|
-
else if (this.autoSelect) {
|
830
|
-
this.selectionModel.clear();
|
831
|
-
this.selectionModel.toggle(option);
|
832
|
-
}
|
833
|
-
else {
|
834
|
-
this.selectionModel.toggle(option);
|
835
|
-
}
|
836
|
-
this.emitChangeEvent(option);
|
837
|
-
this.reportValueChange();
|
838
|
-
};
|
839
|
-
McListSelection.prototype.setSelectedOptionsByKey = function (option, shiftKey, ctrlKey) {
|
840
|
-
if (shiftKey && this.multiple) {
|
841
|
-
this.setSelectedOptions(option);
|
842
|
-
}
|
843
|
-
else if (ctrlKey) {
|
844
|
-
if (!this.canDeselectLast(option)) {
|
845
|
-
return;
|
846
|
-
}
|
847
|
-
}
|
848
|
-
else if (this.autoSelect) {
|
849
|
-
this.options.forEach(function (item) { return item.setSelected(false); });
|
850
|
-
option.setSelected(true);
|
851
|
-
this.emitChangeEvent(option);
|
852
|
-
this.reportValueChange();
|
853
|
-
}
|
854
|
-
};
|
855
|
-
McListSelection.prototype.setSelectedOptions = function (option) {
|
856
|
-
var _b;
|
857
|
-
var _this = this;
|
858
|
-
var selectedOptionState = option.selected;
|
859
|
-
var fromIndex = this.keyManager.previousActiveItemIndex;
|
860
|
-
var toIndex = this.keyManager.previousActiveItemIndex = this.keyManager.activeItemIndex;
|
861
|
-
if (toIndex === fromIndex) {
|
862
|
-
return;
|
863
|
-
}
|
864
|
-
if (fromIndex > toIndex) {
|
865
|
-
_b = __read([toIndex, fromIndex], 2), fromIndex = _b[0], toIndex = _b[1];
|
866
|
-
}
|
867
|
-
this.options
|
868
|
-
.toArray()
|
869
|
-
.slice(fromIndex, toIndex + 1)
|
870
|
-
.filter(function (item) { return !item.disabled; })
|
871
|
-
.forEach(function (renderedOption) {
|
872
|
-
var isLastRenderedOption = renderedOption === _this.keyManager.activeItem;
|
873
|
-
if (isLastRenderedOption && renderedOption.selected && _this.noUnselectLast) {
|
874
|
-
return;
|
875
|
-
}
|
876
|
-
renderedOption.setSelected(!selectedOptionState);
|
877
|
-
});
|
878
|
-
};
|
879
|
-
// Implemented as part of ControlValueAccessor.
|
880
|
-
McListSelection.prototype.writeValue = function (values) {
|
881
|
-
this._value = values;
|
882
|
-
if (this.options) {
|
883
|
-
this.setOptionsFromValues(values || []);
|
884
|
-
}
|
885
|
-
};
|
886
|
-
// Implemented as part of ControlValueAccessor.
|
887
|
-
McListSelection.prototype.registerOnChange = function (fn) {
|
888
|
-
this.onChange = fn;
|
889
|
-
};
|
890
|
-
// Implemented as part of ControlValueAccessor.
|
891
|
-
McListSelection.prototype.registerOnTouched = function (fn) {
|
892
|
-
this.onTouched = fn;
|
893
|
-
};
|
894
|
-
// Implemented as a part of ControlValueAccessor.
|
895
|
-
McListSelection.prototype.setDisabledState = function (isDisabled) {
|
896
|
-
if (this.options) {
|
897
|
-
this.options.forEach(function (option) { return option.disabled = isDisabled; });
|
898
|
-
}
|
899
|
-
};
|
900
|
-
McListSelection.prototype.getSelectedOptionValues = function () {
|
901
|
-
return this.options.filter(function (option) { return option.selected; }).map(function (option) { return option.value; });
|
902
|
-
};
|
903
|
-
// Toggles the selected state of the currently focused option.
|
904
|
-
McListSelection.prototype.toggleFocusedOption = function () {
|
905
|
-
var focusedIndex = this.keyManager.activeItemIndex;
|
906
|
-
if (focusedIndex != null && this.isValidIndex(focusedIndex)) {
|
907
|
-
var focusedOption = this.options.toArray()[focusedIndex];
|
908
|
-
if (focusedOption && this.canDeselectLast(focusedOption)) {
|
909
|
-
focusedOption.toggle();
|
910
|
-
// Emit a change event because the focused option changed its state through user interaction.
|
911
|
-
this.emitChangeEvent(focusedOption);
|
912
|
-
}
|
913
|
-
}
|
914
|
-
};
|
915
|
-
McListSelection.prototype.canDeselectLast = function (listOption) {
|
916
|
-
return !(this.noUnselectLast && this.selectionModel.selected.length === 1 && listOption.selected);
|
917
|
-
};
|
918
|
-
McListSelection.prototype.getHeight = function () {
|
919
|
-
return this.elementRef.nativeElement.getClientRects()[0].height;
|
920
|
-
};
|
921
|
-
// Removes an option from the selection list and updates the active item.
|
922
|
-
McListSelection.prototype.removeOptionFromList = function (option) {
|
923
|
-
if (option.hasFocus) {
|
924
|
-
var optionIndex = this.getOptionIndex(option);
|
925
|
-
// Check whether the option is the last item
|
926
|
-
if (optionIndex > 0) {
|
927
|
-
this.keyManager.setPreviousItemActive();
|
928
|
-
}
|
929
|
-
else if (optionIndex === 0 && this.options.length > 1) {
|
930
|
-
this.keyManager.setNextItemActive();
|
931
|
-
}
|
932
|
-
}
|
933
|
-
};
|
934
|
-
McListSelection.prototype.onKeyDown = function (event) {
|
935
|
-
// tslint:disable-next-line: deprecation
|
936
|
-
var keyCode = event.keyCode;
|
937
|
-
if ([keycodes.SPACE, keycodes.ENTER, keycodes.LEFT_ARROW, keycodes.RIGHT_ARROW].includes(keyCode) || keycodes.isVerticalMovement(event)) {
|
938
|
-
event.preventDefault();
|
939
|
-
}
|
940
|
-
if (this.multiple && keycodes.isSelectAll(event)) {
|
941
|
-
this.selectAllOptions();
|
942
|
-
event.preventDefault();
|
943
|
-
return;
|
944
|
-
}
|
945
|
-
else if (keycodes.isCopy(event)) {
|
946
|
-
this.copyActiveOption();
|
947
|
-
event.preventDefault();
|
948
|
-
return;
|
949
|
-
}
|
950
|
-
else if ([keycodes.SPACE, keycodes.ENTER].includes(keyCode)) {
|
951
|
-
this.toggleFocusedOption();
|
952
|
-
return;
|
953
|
-
}
|
954
|
-
else if (keyCode === keycodes.TAB) {
|
955
|
-
this.keyManager.tabOut.next();
|
956
|
-
return;
|
957
|
-
}
|
958
|
-
else if (keyCode === keycodes.DOWN_ARROW) {
|
959
|
-
this.keyManager.setNextItemActive();
|
960
|
-
}
|
961
|
-
else if (keyCode === keycodes.UP_ARROW) {
|
962
|
-
this.keyManager.setPreviousItemActive();
|
963
|
-
}
|
964
|
-
else if (keyCode === keycodes.HOME) {
|
965
|
-
this.keyManager.setFirstItemActive();
|
966
|
-
}
|
967
|
-
else if (keyCode === keycodes.END) {
|
968
|
-
this.keyManager.setLastItemActive();
|
969
|
-
}
|
970
|
-
else if (keyCode === keycodes.PAGE_UP) {
|
971
|
-
this.keyManager.setPreviousPageItemActive();
|
972
|
-
}
|
973
|
-
else if (keyCode === keycodes.PAGE_DOWN) {
|
974
|
-
this.keyManager.setNextPageItemActive();
|
975
|
-
}
|
976
|
-
if (this.keyManager.activeItem) {
|
977
|
-
this.setSelectedOptionsByKey(this.keyManager.activeItem, keycodes.hasModifierKey(event, 'shiftKey'), keycodes.hasModifierKey(event, 'ctrlKey'));
|
978
|
-
}
|
979
|
-
};
|
980
|
-
// Reports a value change to the ControlValueAccessor
|
981
|
-
McListSelection.prototype.reportValueChange = function () {
|
982
|
-
if (this.options) {
|
983
|
-
var value = this.getSelectedOptionValues();
|
984
|
-
this.onChange(value);
|
985
|
-
this._value = value;
|
986
|
-
}
|
987
|
-
};
|
988
|
-
// Emits a change event if the selected state of an option changed.
|
989
|
-
McListSelection.prototype.emitChangeEvent = function (option) {
|
990
|
-
this.selectionChange.emit(new McListSelectionChange(this, option));
|
991
|
-
};
|
992
|
-
McListSelection.prototype.updateTabIndex = function () {
|
993
|
-
this._tabIndex = this.userTabIndex || (this.options.length === 0 ? -1 : 0);
|
994
|
-
};
|
995
|
-
McListSelection.prototype.onCopyDefaultHandler = function () {
|
996
|
-
var _a;
|
997
|
-
(_a = this.clipboard) === null || _a === void 0 ? void 0 : _a.copy(this.keyManager.activeItem.value);
|
998
|
-
};
|
999
|
-
McListSelection.prototype.resetOptions = function () {
|
1000
|
-
this.dropSubscriptions();
|
1001
|
-
this.listenToOptionsFocus();
|
1002
|
-
};
|
1003
|
-
McListSelection.prototype.dropSubscriptions = function () {
|
1004
|
-
if (this.optionFocusSubscription) {
|
1005
|
-
this.optionFocusSubscription.unsubscribe();
|
1006
|
-
this.optionFocusSubscription = null;
|
1007
|
-
}
|
1008
|
-
if (this.optionBlurSubscription) {
|
1009
|
-
this.optionBlurSubscription.unsubscribe();
|
1010
|
-
this.optionBlurSubscription = null;
|
1011
|
-
}
|
1012
|
-
};
|
1013
|
-
McListSelection.prototype.listenToOptionsFocus = function () {
|
1014
|
-
var _this = this;
|
1015
|
-
this.optionFocusSubscription = this.optionFocusChanges
|
1016
|
-
.subscribe(function (event) {
|
1017
|
-
var index = _this.options.toArray().indexOf(event.option);
|
1018
|
-
if (_this.isValidIndex(index)) {
|
1019
|
-
_this.keyManager.updateActiveItem(index);
|
1020
|
-
}
|
1021
|
-
});
|
1022
|
-
this.optionBlurSubscription = this.optionBlurChanges
|
1023
|
-
.subscribe(function () { return _this.blur(); });
|
1024
|
-
};
|
1025
|
-
/** Checks whether any of the options is focused. */
|
1026
|
-
McListSelection.prototype.hasFocusedOption = function () {
|
1027
|
-
return this.options.some(function (option) { return option.hasFocus; });
|
1028
|
-
};
|
1029
|
-
// Returns the option with the specified value.
|
1030
|
-
McListSelection.prototype.getOptionByValue = function (value) {
|
1031
|
-
return this.options.find(function (option) { return option.value === value; });
|
1032
|
-
};
|
1033
|
-
// Sets the selected options based on the specified values.
|
1034
|
-
McListSelection.prototype.setOptionsFromValues = function (values) {
|
1035
|
-
var _this = this;
|
1036
|
-
this.options.forEach(function (option) { return option.setSelected(false); });
|
1037
|
-
values
|
1038
|
-
.map(function (value) { return _this.getOptionByValue(value); })
|
1039
|
-
.filter(Boolean)
|
1040
|
-
.forEach(function (option) { return option.setSelected(true); });
|
1041
|
-
};
|
1042
|
-
/**
|
1043
|
-
* Utility to ensure all indexes are valid.
|
1044
|
-
* @param index The index to be checked.
|
1045
|
-
* @returns True if the index is valid for our list of options.
|
1046
|
-
*/
|
1047
|
-
McListSelection.prototype.isValidIndex = function (index) {
|
1048
|
-
return index >= 0 && index < this.options.length;
|
1049
|
-
};
|
1050
|
-
// Returns the index of the specified list option.
|
1051
|
-
McListSelection.prototype.getOptionIndex = function (option) {
|
1052
|
-
return this.options.toArray().indexOf(option);
|
1053
|
-
};
|
1054
|
-
McListSelection.prototype.selectAllOptions = function () {
|
1055
|
-
var optionsToSelect = this.options
|
1056
|
-
.filter(function (option) { return !option.disabled; });
|
1057
|
-
optionsToSelect
|
1058
|
-
.forEach(function (option) { return option.setSelected(true); });
|
1059
|
-
this.onSelectAll.emit(new McListSelectAllEvent(this, optionsToSelect));
|
1060
|
-
};
|
1061
|
-
McListSelection.prototype.copyActiveOption = function () {
|
1062
|
-
if (this.onCopy.observers.length) {
|
1063
|
-
this.onCopy.emit(new McListCopyEvent(this, this.keyManager.activeItem));
|
1064
|
-
}
|
1065
|
-
else {
|
1066
|
-
this.onCopyDefaultHandler();
|
1067
|
-
}
|
1068
|
-
};
|
1069
|
-
return McListSelection;
|
1070
|
-
}(McListSelectionMixinBase));
|
1071
|
-
/** @nocollapse */ McListSelection.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListSelection, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ChangeDetectorRef }, { token: 'multiple', attribute: true }, { token: i3__namespace.Clipboard, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1072
|
-
/** @nocollapse */ McListSelection.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: McListSelection, selector: "mc-list-selection", inputs: { disabled: "disabled", autoSelect: "autoSelect", noUnselectLast: "noUnselectLast", horizontal: "horizontal", tabIndex: "tabIndex", compareWith: "compareWith" }, outputs: { onSelectAll: "onSelectAll", onCopy: "onCopy", selectionChange: "selectionChange" }, host: { listeners: { "keydown": "onKeyDown($event)", "window:resize": "updateScrollSize()" }, properties: { "attr.tabindex": "-1", "attr.disabled": "disabled || null" }, classAttribute: "mc-list-selection" }, providers: [MC_SELECTION_LIST_VALUE_ACCESSOR], queries: [{ propertyName: "options", predicate: McListOption, descendants: true }], exportAs: ["mcListSelection"], usesInheritance: true, ngImport: i0__namespace, template: "\n <div [attr.tabindex]=\"tabIndex\"\n (focus)=\"focus()\"\n (blur)=\"blur()\">\n <ng-content></ng-content>\n </div>", isInline: true, styles: [".mc-divider{display:block;margin:0}.mc-divider.mc-divider_horizontal{border-top-width:1px;border-top-width:var(--mc-divider-size-width, 1px);border-top-style:solid}.mc-divider.mc-divider_vertical{height:100%;border-right-width:1px;border-right-width:var(--mc-divider-size-width, 1px);border-right-style:solid}.mc-divider.mc-divider_inset{margin-left:80px;margin-left:var(--mc-divider-size-inset-margin, 80px)}[dir=rtl] .mc-divider.mc-divider_inset{margin-left:auto;margin-right:80px;margin-right:var(--mc-divider-size-inset-margin, 80px)}.mc-no-select{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.mc-list,.mc-list-selection{display:block;outline:none}.mc-list-item,.mc-list-option{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:32px;height:var(--mc-list-size-item-height, 32px);border:2px solid transparent;padding-left:16px;padding-left:var(--mc-list-size-horizontal-padding, 16px)}.mc-list-item .mc-list-text,.mc-list-option .mc-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding-right:16px;padding-right:var(--mc-list-size-horizontal-padding, 16px)}.mc-list-item .mc-list-text>*,.mc-list-option .mc-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mc-list-item .mc-list-text:empty,.mc-list-option .mc-list-text:empty{display:none}.mc-list-item .mc-list-icon,.mc-list-option .mc-list-icon{box-sizing:content-box;flex-shrink:0;width:24px;width:var(--mc-list-size-icon-width, 24px);height:24px;height:var(--mc-list-size-icon-width, 24px);border-radius:50%;padding:4px;padding:var(--mc-list-size-icon-padding, 4px);font-size:24px;font-size:var(--mc-list-size-icon-width, 24px)}.mc-list-item .mc-list-icon~.mc-divider_inset,.mc-list-option .mc-list-icon~.mc-divider_inset{margin-left:32pxvar(--mc-list-size-icon-width,24px)8px;width:100%-32pxvar(--mc-list-size-icon-width,24px)8px}[dir=rtl] .mc-list-item .mc-list-icon~.mc-divider_inset,[dir=rtl] .mc-list-option .mc-list-icon~.mc-divider_inset{margin-left:auto;margin-right:32pxvar(--mc-list-size-icon-width,24px)8px}.mc-list-item .mc-divider,.mc-list-option .mc-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mc-list-item .mc-divider,[dir=rtl] .mc-list-option .mc-divider{margin-left:auto;margin-right:0}.mc-list-item .mc-divider.mc-divider_inset,.mc-list-option .mc-divider.mc-divider_inset{position:absolute}.mc-list-item.mc-progress:after,.mc-list-option.mc-progress:after{top:-2px;right:-2px;bottom:-2px;left:-2px}.mc-list-item .mc-pseudo-checkbox,.mc-list-option .mc-pseudo-checkbox{margin-right:8px}.mc-list-item .mc-option-action,.mc-list-option .mc-option-action{display:none}.mc-list-item:not([disabled]):hover .mc-option-action,.mc-list-item:not([disabled]).mc-focused .mc-option-action,.mc-list-item:not([disabled]).mc-action-button-focused .mc-option-action,.mc-list-option:not([disabled]):hover .mc-option-action,.mc-list-option:not([disabled]).mc-focused .mc-option-action,.mc-list-option:not([disabled]).mc-action-button-focused .mc-option-action{display:flex}.mc-list-option:not([disabled]):not(.mc-disabled){cursor:pointer}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
1073
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListSelection, decorators: [{
|
1074
|
-
type: i0.Component,
|
1075
|
-
args: [{
|
1076
|
-
exportAs: 'mcListSelection',
|
1077
|
-
selector: 'mc-list-selection',
|
1078
|
-
template: "\n <div [attr.tabindex]=\"tabIndex\"\n (focus)=\"focus()\"\n (blur)=\"blur()\">\n <ng-content></ng-content>\n </div>",
|
1079
|
-
styleUrls: ['./list.scss'],
|
1080
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1081
|
-
encapsulation: i0.ViewEncapsulation.None,
|
1082
|
-
inputs: ['disabled'],
|
1083
|
-
host: {
|
1084
|
-
class: 'mc-list-selection',
|
1085
|
-
'[attr.tabindex]': '-1',
|
1086
|
-
'[attr.disabled]': 'disabled || null',
|
1087
|
-
'(keydown)': 'onKeyDown($event)',
|
1088
|
-
'(window:resize)': 'updateScrollSize()'
|
1089
|
-
},
|
1090
|
-
providers: [MC_SELECTION_LIST_VALUE_ACCESSOR],
|
1091
|
-
preserveWhitespaces: false
|
1092
|
-
}]
|
1093
|
-
}], ctorParameters: function () {
|
1094
|
-
return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.MultipleMode, decorators: [{
|
1095
|
-
type: i0.Attribute,
|
1096
|
-
args: ['multiple']
|
1097
|
-
}] }, { type: i3__namespace.Clipboard, decorators: [{
|
1098
|
-
type: i0.Optional
|
1099
|
-
}] }];
|
1100
|
-
}, propDecorators: { options: [{
|
1101
|
-
type: i0.ContentChildren,
|
1102
|
-
args: [McListOption, { descendants: true }]
|
1103
|
-
}], onSelectAll: [{
|
1104
|
-
type: i0.Output
|
1105
|
-
}], onCopy: [{
|
1106
|
-
type: i0.Output
|
1107
|
-
}], autoSelect: [{
|
1108
|
-
type: i0.Input
|
1109
|
-
}], noUnselectLast: [{
|
1110
|
-
type: i0.Input
|
1111
|
-
}], horizontal: [{
|
1112
|
-
type: i0.Input
|
1113
|
-
}], tabIndex: [{
|
1114
|
-
type: i0.Input
|
1115
|
-
}], selectionChange: [{
|
1116
|
-
type: i0.Output
|
1117
|
-
}], compareWith: [{
|
1118
|
-
type: i0.Input
|
1119
|
-
}] } });
|
1120
|
-
|
1121
|
-
// todo пока не делаем, перенесено из материала, но у нас в доках таких простых списков нет.
|
1122
|
-
var McList = /** @class */ (function () {
|
1123
|
-
function McList() {
|
1124
|
-
}
|
1125
|
-
return McList;
|
1126
|
-
}());
|
1127
|
-
/** @nocollapse */ McList.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McList, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1128
|
-
/** @nocollapse */ McList.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: McList, selector: "mc-list", host: { classAttribute: "mc-list" }, ngImport: i0__namespace, template: '<ng-content></ng-content>', isInline: true, styles: [".mc-divider{display:block;margin:0}.mc-divider.mc-divider_horizontal{border-top-width:1px;border-top-width:var(--mc-divider-size-width, 1px);border-top-style:solid}.mc-divider.mc-divider_vertical{height:100%;border-right-width:1px;border-right-width:var(--mc-divider-size-width, 1px);border-right-style:solid}.mc-divider.mc-divider_inset{margin-left:80px;margin-left:var(--mc-divider-size-inset-margin, 80px)}[dir=rtl] .mc-divider.mc-divider_inset{margin-left:auto;margin-right:80px;margin-right:var(--mc-divider-size-inset-margin, 80px)}.mc-no-select{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.mc-list,.mc-list-selection{display:block;outline:none}.mc-list-item,.mc-list-option{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:32px;height:var(--mc-list-size-item-height, 32px);border:2px solid transparent;padding-left:16px;padding-left:var(--mc-list-size-horizontal-padding, 16px)}.mc-list-item .mc-list-text,.mc-list-option .mc-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding-right:16px;padding-right:var(--mc-list-size-horizontal-padding, 16px)}.mc-list-item .mc-list-text>*,.mc-list-option .mc-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mc-list-item .mc-list-text:empty,.mc-list-option .mc-list-text:empty{display:none}.mc-list-item .mc-list-icon,.mc-list-option .mc-list-icon{box-sizing:content-box;flex-shrink:0;width:24px;width:var(--mc-list-size-icon-width, 24px);height:24px;height:var(--mc-list-size-icon-width, 24px);border-radius:50%;padding:4px;padding:var(--mc-list-size-icon-padding, 4px);font-size:24px;font-size:var(--mc-list-size-icon-width, 24px)}.mc-list-item .mc-list-icon~.mc-divider_inset,.mc-list-option .mc-list-icon~.mc-divider_inset{margin-left:32pxvar(--mc-list-size-icon-width,24px)8px;width:100%-32pxvar(--mc-list-size-icon-width,24px)8px}[dir=rtl] .mc-list-item .mc-list-icon~.mc-divider_inset,[dir=rtl] .mc-list-option .mc-list-icon~.mc-divider_inset{margin-left:auto;margin-right:32pxvar(--mc-list-size-icon-width,24px)8px}.mc-list-item .mc-divider,.mc-list-option .mc-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mc-list-item .mc-divider,[dir=rtl] .mc-list-option .mc-divider{margin-left:auto;margin-right:0}.mc-list-item .mc-divider.mc-divider_inset,.mc-list-option .mc-divider.mc-divider_inset{position:absolute}.mc-list-item.mc-progress:after,.mc-list-option.mc-progress:after{top:-2px;right:-2px;bottom:-2px;left:-2px}.mc-list-item .mc-pseudo-checkbox,.mc-list-option .mc-pseudo-checkbox{margin-right:8px}.mc-list-item .mc-option-action,.mc-list-option .mc-option-action{display:none}.mc-list-item:not([disabled]):hover .mc-option-action,.mc-list-item:not([disabled]).mc-focused .mc-option-action,.mc-list-item:not([disabled]).mc-action-button-focused .mc-option-action,.mc-list-option:not([disabled]):hover .mc-option-action,.mc-list-option:not([disabled]).mc-focused .mc-option-action,.mc-list-option:not([disabled]).mc-action-button-focused .mc-option-action{display:flex}.mc-list-option:not([disabled]):not(.mc-disabled){cursor:pointer}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
1129
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McList, decorators: [{
|
1130
|
-
type: i0.Component,
|
1131
|
-
args: [{
|
1132
|
-
selector: 'mc-list',
|
1133
|
-
host: { class: 'mc-list' },
|
1134
|
-
template: '<ng-content></ng-content>',
|
1135
|
-
styleUrls: ['./list.scss'],
|
1136
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
1137
|
-
encapsulation: i0.ViewEncapsulation.None
|
1138
|
-
}]
|
1139
|
-
}] });
|
1140
|
-
var McListItem = /** @class */ (function () {
|
1141
|
-
function McListItem(elementRef) {
|
1142
|
-
this.elementRef = elementRef;
|
1143
|
-
}
|
1144
|
-
McListItem.prototype.ngAfterContentInit = function () {
|
1145
|
-
// tslint:disable-next-line:no-unused-expression
|
1146
|
-
new i1.McLineSetter(this.lines, this.elementRef);
|
1147
|
-
};
|
1148
|
-
McListItem.prototype.handleFocus = function () {
|
1149
|
-
this.elementRef.nativeElement.classList.add('mc-focused');
|
1150
|
-
};
|
1151
|
-
McListItem.prototype.handleBlur = function () {
|
1152
|
-
this.elementRef.nativeElement.classList.remove('mc-focused');
|
1153
|
-
};
|
1154
|
-
McListItem.prototype.getHostElement = function () {
|
1155
|
-
return this.elementRef.nativeElement;
|
1156
|
-
};
|
1157
|
-
return McListItem;
|
1158
|
-
}());
|
1159
|
-
/** @nocollapse */ McListItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListItem, deps: [{ token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
1160
|
-
/** @nocollapse */ McListItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.5", type: McListItem, selector: "mc-list-item, a[mc-list-item]", host: { listeners: { "focus": "handleFocus()", "blur": "handleBlur()" }, classAttribute: "mc-list-item" }, queries: [{ propertyName: "lines", predicate: i1.McLine }], ngImport: i0__namespace, template: "<ng-content select=\"[mc-list-icon], [mcListIcon]\"></ng-content>\n\n<div class=\"mc-list-text\">\n <ng-content select=\"[mc-line], [mcLine]\"></ng-content>\n</div>\n\n<ng-content></ng-content>\n", changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
1161
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListItem, decorators: [{
|
1162
|
-
type: i0.Component,
|
1163
|
-
args: [{
|
1164
|
-
selector: 'mc-list-item, a[mc-list-item]',
|
1165
|
-
host: {
|
1166
|
-
class: 'mc-list-item',
|
1167
|
-
'(focus)': 'handleFocus()',
|
1168
|
-
'(blur)': 'handleBlur()'
|
1169
|
-
},
|
1170
|
-
templateUrl: './list-item.html',
|
1171
|
-
encapsulation: i0.ViewEncapsulation.None,
|
1172
|
-
preserveWhitespaces: false,
|
1173
|
-
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
1174
|
-
}]
|
1175
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }]; }, propDecorators: { lines: [{
|
1176
|
-
type: i0.ContentChildren,
|
1177
|
-
args: [i1.McLine]
|
1178
|
-
}] } });
|
1179
|
-
|
1180
|
-
var McListModule = /** @class */ (function () {
|
1181
|
-
function McListModule() {
|
1182
|
-
}
|
1183
|
-
return McListModule;
|
1184
|
-
}());
|
1185
|
-
/** @nocollapse */ McListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
1186
|
-
/** @nocollapse */ McListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListModule, declarations: [McList,
|
1187
|
-
McListSelection,
|
1188
|
-
McListItem,
|
1189
|
-
McListOption], imports: [i2.CommonModule,
|
1190
|
-
a11y$1.A11yModule,
|
1191
|
-
i1.McPseudoCheckboxModule,
|
1192
|
-
i1.McLineModule,
|
1193
|
-
i1.McOptionModule], exports: [McList,
|
1194
|
-
McListSelection,
|
1195
|
-
McListItem,
|
1196
|
-
McListOption,
|
1197
|
-
i1.McOptionModule] });
|
1198
|
-
/** @nocollapse */ McListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListModule, imports: [[
|
1199
|
-
i2.CommonModule,
|
1200
|
-
a11y$1.A11yModule,
|
1201
|
-
i1.McPseudoCheckboxModule,
|
1202
|
-
i1.McLineModule,
|
1203
|
-
i1.McOptionModule
|
1204
|
-
], i1.McOptionModule] });
|
1205
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.5", ngImport: i0__namespace, type: McListModule, decorators: [{
|
1206
|
-
type: i0.NgModule,
|
1207
|
-
args: [{
|
1208
|
-
imports: [
|
1209
|
-
i2.CommonModule,
|
1210
|
-
a11y$1.A11yModule,
|
1211
|
-
i1.McPseudoCheckboxModule,
|
1212
|
-
i1.McLineModule,
|
1213
|
-
i1.McOptionModule
|
1214
|
-
],
|
1215
|
-
exports: [
|
1216
|
-
McList,
|
1217
|
-
McListSelection,
|
1218
|
-
McListItem,
|
1219
|
-
McListOption,
|
1220
|
-
i1.McOptionModule
|
1221
|
-
],
|
1222
|
-
declarations: [
|
1223
|
-
McList,
|
1224
|
-
McListSelection,
|
1225
|
-
McListItem,
|
1226
|
-
McListOption
|
1227
|
-
]
|
1228
|
-
}]
|
1229
|
-
}] });
|
1230
|
-
|
1231
|
-
/**
|
1232
|
-
* Generated bundle index. Do not edit.
|
1233
|
-
*/
|
1234
|
-
|
1235
|
-
exports.MC_SELECTION_LIST_VALUE_ACCESSOR = MC_SELECTION_LIST_VALUE_ACCESSOR;
|
1236
|
-
exports.McList = McList;
|
1237
|
-
exports.McListCopyEvent = McListCopyEvent;
|
1238
|
-
exports.McListItem = McListItem;
|
1239
|
-
exports.McListModule = McListModule;
|
1240
|
-
exports.McListOption = McListOption;
|
1241
|
-
exports.McListSelectAllEvent = McListSelectAllEvent;
|
1242
|
-
exports.McListSelection = McListSelection;
|
1243
|
-
exports.McListSelectionBase = McListSelectionBase;
|
1244
|
-
exports.McListSelectionChange = McListSelectionChange;
|
1245
|
-
exports.McListSelectionMixinBase = McListSelectionMixinBase;
|
1246
|
-
|
1247
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
1248
|
-
|
1249
|
-
})));
|
1250
|
-
//# sourceMappingURL=ptsecurity-mosaic-list.umd.js.map
|