@ptsecurity/mosaic 13.9.0 → 14.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 +90 -7366
- package/_visual.scss +6 -2761
- package/autocomplete/autocomplete-origin.directive.d.ts +1 -1
- package/autocomplete/autocomplete-trigger.directive.d.ts +1 -1
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/button/button.component.d.ts +4 -4
- package/button-toggle/button-toggle.component.d.ts +2 -2
- package/card/card.component.d.ts +3 -3
- package/checkbox/checkbox-required-validator.d.ts +1 -1
- package/checkbox/checkbox.d.ts +3 -3
- package/core/common-behaviors/color.d.ts +4 -1
- package/core/common-behaviors/error-state.d.ts +7 -4
- package/core/error/error-options.d.ts +3 -3
- package/core/formatters/date/formatter.d.ts +6 -2
- package/core/formatters/number/formatter.d.ts +1 -1
- package/core/forms/forms.directive.d.ts +2 -2
- package/core/highlight/highlight.pipe.d.ts +1 -1
- package/core/line/line.d.ts +1 -1
- package/core/option/action.d.ts +2 -2
- package/core/option/optgroup.d.ts +2 -2
- package/core/option/option.d.ts +1 -1
- package/core/pop-up/pop-up-trigger.d.ts +2 -3
- package/core/pop-up/pop-up.d.ts +2 -2
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +3 -3
- package/datepicker/calendar-body.component.d.ts +1 -1
- package/datepicker/calendar.component.d.ts +30 -30
- package/datepicker/datepicker-input.directive.d.ts +2 -2
- package/datepicker/datepicker-toggle.component.d.ts +2 -2
- package/datepicker/datepicker.component.d.ts +2 -2
- package/datepicker/month-view.component.d.ts +1 -1
- package/datepicker/multi-year-view.component.d.ts +1 -1
- package/datepicker/year-view.component.d.ts +1 -1
- package/design-tokens/legacy-2017/tokens/components/checkbox.json5 +16 -15
- package/design-tokens/legacy-2017/tokens/components/form-field.json5 +2 -2
- package/design-tokens/legacy-2017/tokens/components/forms.json5 +0 -4
- package/design-tokens/legacy-2017/tokens/components/popover.json5 +1 -0
- package/design-tokens/legacy-2017/tokens/components/radio.json5 +1 -0
- package/design-tokens/legacy-2017/tokens/components/timezone.json5 +22 -0
- package/design-tokens/legacy-2017/tokens/properties/typography.json5 +42 -33
- package/design-tokens/legacy-2017/tokens.d.ts +55 -37
- package/design-tokens/pt-2022/tokens/components/checkbox.json5 +17 -16
- package/design-tokens/pt-2022/tokens/components/form-field.json5 +2 -2
- package/design-tokens/pt-2022/tokens/components/forms.json5 +0 -4
- package/design-tokens/pt-2022/tokens/components/link.json5 +2 -2
- package/design-tokens/pt-2022/tokens/components/popover.json5 +7 -6
- package/design-tokens/pt-2022/tokens/components/timezone.json5 +22 -0
- package/design-tokens/pt-2022/tokens/properties/typography.json5 +33 -24
- package/design-tokens/pt-2022/tokens.d.ts +47 -30
- package/design-tokens/style-dictionary/transforms/attribute/palette.js +1 -1
- package/design-tokens/style-dictionary/transforms/attribute/size.js +1 -1
- package/design-tokens/style-dictionary/transforms/attribute/typography.js +1 -1
- package/divider/divider.component.d.ts +1 -1
- package/dl/dl.component.d.ts +3 -3
- package/dropdown/dropdown-content.directive.d.ts +1 -1
- package/dropdown/dropdown-item.component.d.ts +1 -1
- package/dropdown/dropdown-trigger.directive.d.ts +1 -1
- package/dropdown/dropdown.component.d.ts +1 -1
- package/esm2020/autocomplete/autocomplete-origin.directive.mjs +4 -4
- package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +7 -7
- package/esm2020/autocomplete/autocomplete.component.mjs +6 -7
- package/esm2020/autocomplete/autocomplete.module.mjs +5 -5
- package/esm2020/button/button.component.mjs +13 -13
- package/esm2020/button/button.module.mjs +7 -9
- package/esm2020/button-toggle/button-toggle.component.mjs +9 -9
- package/esm2020/button-toggle/button-toggle.module.mjs +5 -5
- package/esm2020/card/card.component.mjs +10 -10
- package/esm2020/card/card.module.mjs +7 -9
- package/esm2020/checkbox/checkbox-module.mjs +5 -5
- package/esm2020/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2020/checkbox/checkbox.mjs +8 -9
- package/esm2020/core/common-behaviors/color.mjs +6 -3
- package/esm2020/core/common-behaviors/common-module.mjs +5 -5
- package/esm2020/core/common-behaviors/disabled.mjs +1 -1
- package/esm2020/core/common-behaviors/error-state.mjs +1 -11
- package/esm2020/core/error/error-options.mjs +7 -7
- package/esm2020/core/formatters/date/formatter.mjs +10 -6
- package/esm2020/core/formatters/index.mjs +5 -5
- package/esm2020/core/formatters/number/formatter.mjs +5 -5
- package/esm2020/core/forms/forms-module.mjs +5 -5
- package/esm2020/core/forms/forms.directive.mjs +7 -7
- package/esm2020/core/highlight/highlight.pipe.mjs +4 -4
- package/esm2020/core/highlight/index.mjs +5 -5
- package/esm2020/core/line/line.mjs +8 -8
- package/esm2020/core/option/action.mjs +7 -7
- package/esm2020/core/option/optgroup.mjs +6 -6
- package/esm2020/core/option/option-module.mjs +6 -6
- package/esm2020/core/option/option.mjs +7 -7
- package/esm2020/core/pop-up/pop-up-trigger.mjs +4 -4
- package/esm2020/core/pop-up/pop-up.mjs +4 -4
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +7 -8
- package/esm2020/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +5 -5
- package/esm2020/core/services/measure-scrollbar.service.mjs +4 -4
- package/esm2020/datepicker/calendar-body.component.mjs +5 -5
- package/esm2020/datepicker/calendar.component.mjs +126 -129
- package/esm2020/datepicker/datepicker-input.directive.mjs +8 -9
- package/esm2020/datepicker/datepicker-intl.mjs +4 -4
- package/esm2020/datepicker/datepicker-module.mjs +11 -17
- package/esm2020/datepicker/datepicker-toggle.component.mjs +11 -11
- package/esm2020/datepicker/datepicker.component.mjs +10 -10
- package/esm2020/datepicker/month-view.component.mjs +6 -6
- package/esm2020/datepicker/multi-year-view.component.mjs +4 -4
- package/esm2020/datepicker/year-view.component.mjs +4 -4
- package/esm2020/design-tokens/legacy-2017/tokens.mjs +56 -38
- package/esm2020/design-tokens/pt-2022/tokens.mjs +48 -31
- package/esm2020/divider/divider.component.mjs +5 -5
- package/esm2020/divider/divider.module.mjs +5 -5
- package/esm2020/dl/dl.component.mjs +12 -12
- package/esm2020/dl/dl.module.mjs +7 -9
- package/esm2020/dropdown/dropdown-content.directive.mjs +4 -4
- package/esm2020/dropdown/dropdown-item.component.mjs +7 -7
- package/esm2020/dropdown/dropdown-trigger.directive.mjs +4 -4
- package/esm2020/dropdown/dropdown.component.mjs +6 -6
- package/esm2020/dropdown/dropdown.module.mjs +7 -9
- package/esm2020/form-field/cleaner.mjs +4 -4
- package/esm2020/form-field/form-field.mjs +24 -21
- package/esm2020/form-field/form-field.module.mjs +5 -5
- package/esm2020/form-field/hint.mjs +6 -7
- package/esm2020/form-field/password-hint.mjs +11 -12
- package/esm2020/form-field/prefix.mjs +4 -4
- package/esm2020/form-field/stepper.mjs +4 -4
- package/esm2020/form-field/suffix.mjs +4 -4
- package/esm2020/icon/icon.component.mjs +10 -11
- package/esm2020/icon/icon.module.mjs +7 -9
- package/esm2020/input/input-number-validators.mjs +7 -7
- package/esm2020/input/input-number.mjs +4 -4
- package/esm2020/input/input-password.mjs +11 -11
- package/esm2020/input/input.mjs +13 -7
- package/esm2020/input/input.module.mjs +8 -10
- package/esm2020/link/link.component.mjs +4 -4
- package/esm2020/link/link.module.mjs +6 -8
- package/esm2020/list/list-selection.component.mjs +230 -220
- package/esm2020/list/list.component.mjs +8 -8
- package/esm2020/list/list.module.mjs +9 -11
- package/esm2020/loader-overlay/loader-overlay.component.mjs +16 -16
- package/esm2020/loader-overlay/loader-overlay.module.mjs +8 -10
- package/esm2020/modal/css-unit.pipe.mjs +4 -4
- package/esm2020/modal/modal-control.service.mjs +4 -4
- package/esm2020/modal/modal.component.mjs +9 -9
- package/esm2020/modal/modal.directive.mjs +13 -13
- package/esm2020/modal/modal.module.mjs +11 -14
- package/esm2020/modal/modal.service.mjs +5 -6
- package/esm2020/navbar/navbar-item.component.mjs +36 -36
- package/esm2020/navbar/navbar.component.mjs +11 -11
- package/esm2020/navbar/navbar.module.mjs +9 -11
- package/esm2020/navbar/vertical-navbar.component.mjs +6 -6
- package/esm2020/popover/popover-confirm.component.mjs +11 -11
- package/esm2020/popover/popover.component.mjs +10 -10
- package/esm2020/popover/popover.module.mjs +6 -7
- package/esm2020/progress-bar/progress-bar.component.mjs +7 -8
- package/esm2020/progress-bar/progress-bar.module.mjs +6 -8
- package/esm2020/progress-spinner/progress-spinner.component.mjs +7 -8
- package/esm2020/progress-spinner/progress-spinner.module.mjs +6 -8
- package/esm2020/radio/radio.component.mjs +14 -16
- package/esm2020/radio/radio.module.mjs +5 -5
- package/esm2020/select/select-option.directive.mjs +4 -4
- package/esm2020/select/select.component.mjs +26 -20
- package/esm2020/select/select.module.mjs +10 -12
- package/esm2020/sidebar/sidebar.component.mjs +10 -10
- package/esm2020/sidebar/sidebar.module.mjs +5 -5
- package/esm2020/sidepanel/sidepanel-container.component.mjs +7 -7
- package/esm2020/sidepanel/sidepanel-directives.mjs +22 -20
- package/esm2020/sidepanel/sidepanel.module.mjs +11 -14
- package/esm2020/sidepanel/sidepanel.service.mjs +32 -29
- package/esm2020/splitter/splitter.component.mjs +37 -37
- package/esm2020/splitter/splitter.module.mjs +6 -8
- package/esm2020/table/table.component.mjs +4 -4
- package/esm2020/table/table.module.mjs +7 -9
- package/esm2020/tabs/paginated-tab-header.mjs +4 -4
- package/esm2020/tabs/tab-body.component.mjs +7 -7
- package/esm2020/tabs/tab-content.directive.mjs +4 -4
- package/esm2020/tabs/tab-group.component.mjs +30 -31
- package/esm2020/tabs/tab-header.component.mjs +5 -5
- package/esm2020/tabs/tab-label-wrapper.directive.mjs +4 -4
- package/esm2020/tabs/tab-label.directive.mjs +4 -4
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +8 -8
- package/esm2020/tabs/tab.component.mjs +4 -4
- package/esm2020/tabs/tabs.module.mjs +11 -13
- package/esm2020/tags/tag-input.mjs +4 -4
- package/esm2020/tags/tag-list.component.mjs +12 -6
- package/esm2020/tags/tag.component.mjs +24 -22
- package/esm2020/tags/tag.module.mjs +6 -6
- package/esm2020/textarea/textarea.component.mjs +10 -4
- package/esm2020/textarea/textarea.module.mjs +5 -5
- package/esm2020/timepicker/timepicker.directive.mjs +4 -4
- package/esm2020/timepicker/timepicker.module.mjs +8 -10
- package/esm2020/timezone/cities-by-filter.pipe.mjs +17 -0
- package/esm2020/timezone/index.mjs +2 -0
- package/esm2020/timezone/ptsecurity-mosaic-timezone.mjs +5 -0
- package/esm2020/timezone/public-api.mjs +7 -0
- package/esm2020/timezone/timezone-option.component.mjs +48 -0
- package/esm2020/timezone/timezone-option.directive.mjs +58 -0
- package/esm2020/timezone/timezone-select.component.mjs +40 -0
- package/esm2020/timezone/timezone.models.mjs +3 -0
- package/esm2020/timezone/timezone.module.mjs +75 -0
- package/esm2020/timezone/timezone.utils.mjs +64 -0
- package/esm2020/timezone/utc-offset.pipe.mjs +17 -0
- package/esm2020/toast/toast-container.component.mjs +5 -5
- package/esm2020/toast/toast.component.mjs +14 -11
- package/esm2020/toast/toast.module.mjs +12 -12
- package/esm2020/toast/toast.service.mjs +12 -12
- package/esm2020/toggle/toggle.component.mjs +13 -16
- package/esm2020/toggle/toggle.module.mjs +5 -5
- package/esm2020/tooltip/tooltip.component.mjs +14 -14
- package/esm2020/tooltip/tooltip.module.mjs +7 -8
- package/esm2020/tree/control/flat-tree-control.mjs +1 -1
- package/esm2020/tree/data-source/nested-data-source.mjs +1 -1
- package/esm2020/tree/node.mjs +4 -4
- package/esm2020/tree/outlet.mjs +4 -4
- package/esm2020/tree/padding.directive.mjs +4 -4
- package/esm2020/tree/toggle.mjs +11 -11
- package/esm2020/tree/tree-base.mjs +7 -7
- package/esm2020/tree/tree-option.component.mjs +12 -8
- package/esm2020/tree/tree-selection.component.mjs +11 -5
- package/esm2020/tree/tree.mjs +4 -4
- package/esm2020/tree/tree.module.mjs +5 -5
- package/esm2020/tree-select/tree-select.component.mjs +20 -14
- package/esm2020/tree-select/tree-select.module.mjs +11 -13
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +18 -19
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +12 -12
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-button.mjs +18 -20
- package/fesm2015/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-card.mjs +15 -17
- package/fesm2015/ptsecurity-mosaic-card.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs +14 -15
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs +93 -96
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +174 -184
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs +123 -70
- package/fesm2015/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-divider.mjs +8 -8
- package/fesm2015/ptsecurity-mosaic-divider.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dl.mjs +17 -19
- package/fesm2015/ptsecurity-mosaic-dl.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs +23 -25
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +54 -52
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-icon.mjs +15 -18
- package/fesm2015/ptsecurity-mosaic-icon.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-input.mjs +38 -34
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-link.mjs +8 -10
- package/fesm2015/ptsecurity-mosaic-link.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-list.mjs +253 -245
- package/fesm2015/ptsecurity-mosaic-list.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +22 -24
- package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-modal.mjs +41 -45
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-navbar.mjs +58 -60
- package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-popover.mjs +22 -23
- package/fesm2015/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +11 -14
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +11 -14
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-radio.mjs +17 -19
- package/fesm2015/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-select.mjs +36 -32
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs +13 -13
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +68 -66
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-splitter.mjs +41 -43
- package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-table.mjs +9 -11
- package/fesm2015/ptsecurity-mosaic-table.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tabs.mjs +139 -142
- package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tags.mjs +42 -34
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-textarea.mjs +13 -7
- package/fesm2015/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs +10 -12
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-timezone.mjs +299 -0
- package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +1 -0
- package/fesm2015/ptsecurity-mosaic-toast.mjs +124 -118
- package/fesm2015/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-toggle.mjs +16 -19
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +19 -20
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +29 -25
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/fesm2015/ptsecurity-mosaic-tree.mjs +54 -44
- package/fesm2015/ptsecurity-mosaic-tree.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs +18 -19
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs +12 -12
- package/fesm2020/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-button.mjs +18 -20
- package/fesm2020/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-card.mjs +15 -17
- package/fesm2020/ptsecurity-mosaic-card.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs +14 -15
- package/fesm2020/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs +93 -96
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs +173 -183
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs +123 -70
- package/fesm2020/ptsecurity-mosaic-design-tokens.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-divider.mjs +8 -8
- package/fesm2020/ptsecurity-mosaic-divider.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-dl.mjs +17 -19
- package/fesm2020/ptsecurity-mosaic-dl.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs +23 -25
- package/fesm2020/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-form-field.mjs +54 -52
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-icon.mjs +15 -18
- package/fesm2020/ptsecurity-mosaic-icon.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-input.mjs +38 -34
- package/fesm2020/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-link.mjs +8 -10
- package/fesm2020/ptsecurity-mosaic-link.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-list.mjs +248 -240
- package/fesm2020/ptsecurity-mosaic-list.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +22 -24
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-modal.mjs +41 -45
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-navbar.mjs +58 -60
- package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-popover.mjs +22 -23
- package/fesm2020/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs +11 -14
- package/fesm2020/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs +11 -14
- package/fesm2020/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-radio.mjs +17 -19
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs +36 -32
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs +13 -13
- package/fesm2020/ptsecurity-mosaic-sidebar.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs +68 -66
- package/fesm2020/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-splitter.mjs +41 -43
- package/fesm2020/ptsecurity-mosaic-splitter.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-table.mjs +9 -11
- package/fesm2020/ptsecurity-mosaic-table.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tabs.mjs +68 -71
- package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tags.mjs +42 -34
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-textarea.mjs +13 -7
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs +10 -12
- package/fesm2020/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-timezone.mjs +298 -0
- package/fesm2020/ptsecurity-mosaic-timezone.mjs.map +1 -0
- package/fesm2020/ptsecurity-mosaic-toast.mjs +120 -116
- package/fesm2020/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-toggle.mjs +16 -19
- package/fesm2020/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs +19 -20
- package/fesm2020/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs +29 -25
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/fesm2020/ptsecurity-mosaic-tree.mjs +54 -44
- package/fesm2020/ptsecurity-mosaic-tree.mjs.map +1 -1
- package/form-field/cleaner.d.ts +1 -1
- package/form-field/form-field.d.ts +13 -7
- package/form-field/hint.d.ts +3 -3
- package/form-field/password-hint.d.ts +2 -3
- package/form-field/prefix.d.ts +1 -1
- package/form-field/stepper.d.ts +1 -1
- package/form-field/suffix.d.ts +1 -1
- package/icon/icon.component.d.ts +4 -4
- package/input/input-number-validators.d.ts +2 -2
- package/input/input-number.d.ts +1 -1
- package/input/input-password.d.ts +3 -3
- package/input/input.d.ts +8 -2
- package/link/link.component.d.ts +1 -1
- package/list/list-selection.component.d.ts +54 -53
- package/list/list.component.d.ts +2 -2
- package/loader-overlay/loader-overlay.component.d.ts +4 -4
- package/modal/css-unit.pipe.d.ts +1 -1
- package/modal/modal.component.d.ts +1 -1
- package/modal/modal.directive.d.ts +4 -4
- package/navbar/navbar-item.component.d.ts +11 -11
- package/navbar/navbar.component.d.ts +3 -3
- package/navbar/vertical-navbar.component.d.ts +1 -1
- package/package.json +56 -48
- package/popover/popover-confirm.component.d.ts +2 -2
- package/popover/popover.component.d.ts +4 -5
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/prebuilt-visual/default-visual.css +1 -1
- package/progress-bar/progress-bar.component.d.ts +3 -3
- package/progress-spinner/progress-spinner.component.d.ts +3 -3
- package/radio/radio.component.d.ts +6 -6
- package/select/select-option.directive.d.ts +1 -1
- package/select/select.component.d.ts +10 -4
- package/sidebar/sidebar.component.d.ts +3 -3
- package/sidepanel/sidepanel-container.component.d.ts +1 -1
- package/sidepanel/sidepanel-directives.d.ts +5 -5
- package/splitter/splitter.component.d.ts +4 -4
- package/table/table.component.d.ts +1 -1
- package/tabs/paginated-tab-header.d.ts +1 -1
- package/tabs/tab-body.component.d.ts +2 -2
- package/tabs/tab-content.directive.d.ts +1 -1
- package/tabs/tab-group.component.d.ts +8 -8
- package/tabs/tab-header.component.d.ts +1 -1
- package/tabs/tab-label-wrapper.directive.d.ts +1 -1
- package/tabs/tab-label.directive.d.ts +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +2 -2
- package/tabs/tab.component.d.ts +1 -1
- package/tags/tag-input.d.ts +1 -1
- package/tags/tag-list.component.d.ts +8 -2
- package/tags/tag.component.d.ts +8 -6
- package/textarea/textarea.component.d.ts +7 -1
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/timezone/README.md +0 -0
- package/timezone/cities-by-filter.pipe.d.ts +7 -0
- package/timezone/index.d.ts +1 -0
- package/timezone/public-api.d.ts +6 -0
- package/timezone/timezone-option.component.d.ts +15 -0
- package/timezone/timezone-option.directive.d.ts +20 -0
- package/timezone/timezone-select.component.d.ts +14 -0
- package/timezone/timezone.models.d.ts +16 -0
- package/timezone/timezone.module.d.ts +19 -0
- package/timezone/timezone.utils.d.ts +18 -0
- package/timezone/utc-offset.pipe.d.ts +7 -0
- package/toast/toast-container.component.d.ts +1 -1
- package/toast/toast.component.d.ts +1 -1
- package/toast/toast.service.d.ts +5 -4
- package/toggle/toggle.component.d.ts +5 -5
- package/tooltip/tooltip.component.d.ts +5 -6
- package/tree/control/flat-tree-control.d.ts +8 -8
- package/tree/node.d.ts +1 -1
- package/tree/outlet.d.ts +1 -1
- package/tree/padding.directive.d.ts +1 -1
- package/tree/toggle.d.ts +3 -3
- package/tree/tree-base.d.ts +2 -2
- package/tree/tree-option.component.d.ts +2 -1
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree/tree.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +10 -4
- package/autocomplete/package.json +0 -10
- package/autocomplete/ptsecurity-mosaic-autocomplete.d.ts +0 -5
- package/button/package.json +0 -10
- package/button/ptsecurity-mosaic-button.d.ts +0 -5
- package/button-toggle/package.json +0 -10
- package/button-toggle/ptsecurity-mosaic-button-toggle.d.ts +0 -5
- package/card/package.json +0 -10
- package/card/ptsecurity-mosaic-card.d.ts +0 -5
- package/checkbox/package.json +0 -10
- package/checkbox/ptsecurity-mosaic-checkbox.d.ts +0 -5
- package/core/package.json +0 -10
- package/core/ptsecurity-mosaic-core.d.ts +0 -5
- package/datepicker/package.json +0 -10
- package/datepicker/ptsecurity-mosaic-datepicker.d.ts +0 -5
- package/design-tokens/package.json +0 -10
- package/design-tokens/ptsecurity-mosaic-design-tokens.d.ts +0 -5
- package/divider/package.json +0 -10
- package/divider/ptsecurity-mosaic-divider.d.ts +0 -5
- package/dl/package.json +0 -10
- package/dl/ptsecurity-mosaic-dl.d.ts +0 -5
- package/dropdown/package.json +0 -10
- package/dropdown/ptsecurity-mosaic-dropdown.d.ts +0 -5
- package/form-field/package.json +0 -10
- package/form-field/ptsecurity-mosaic-form-field.d.ts +0 -5
- package/icon/package.json +0 -10
- package/icon/ptsecurity-mosaic-icon.d.ts +0 -5
- package/input/package.json +0 -10
- package/input/ptsecurity-mosaic-input.d.ts +0 -5
- package/link/package.json +0 -10
- package/link/ptsecurity-mosaic-link.d.ts +0 -5
- package/list/package.json +0 -10
- package/list/ptsecurity-mosaic-list.d.ts +0 -5
- package/loader-overlay/package.json +0 -10
- package/loader-overlay/ptsecurity-mosaic-loader-overlay.d.ts +0 -5
- package/modal/package.json +0 -10
- package/modal/ptsecurity-mosaic-modal.d.ts +0 -5
- package/navbar/package.json +0 -10
- package/navbar/ptsecurity-mosaic-navbar.d.ts +0 -5
- package/popover/package.json +0 -10
- package/popover/ptsecurity-mosaic-popover.d.ts +0 -5
- package/progress-bar/package.json +0 -10
- package/progress-bar/ptsecurity-mosaic-progress-bar.d.ts +0 -5
- package/progress-spinner/package.json +0 -10
- package/progress-spinner/ptsecurity-mosaic-progress-spinner.d.ts +0 -5
- package/ptsecurity-mosaic.d.ts +0 -5
- package/radio/package.json +0 -10
- package/radio/ptsecurity-mosaic-radio.d.ts +0 -5
- package/select/package.json +0 -10
- package/select/ptsecurity-mosaic-select.d.ts +0 -5
- package/sidebar/package.json +0 -10
- package/sidebar/ptsecurity-mosaic-sidebar.d.ts +0 -5
- package/sidepanel/package.json +0 -10
- package/sidepanel/ptsecurity-mosaic-sidepanel.d.ts +0 -5
- package/splitter/package.json +0 -10
- package/splitter/ptsecurity-mosaic-splitter.d.ts +0 -5
- package/table/package.json +0 -10
- package/table/ptsecurity-mosaic-table.d.ts +0 -5
- package/tabs/package.json +0 -10
- package/tabs/ptsecurity-mosaic-tabs.d.ts +0 -5
- package/tags/package.json +0 -10
- package/tags/ptsecurity-mosaic-tags.d.ts +0 -5
- package/textarea/package.json +0 -10
- package/textarea/ptsecurity-mosaic-textarea.d.ts +0 -5
- package/timepicker/package.json +0 -10
- package/timepicker/ptsecurity-mosaic-timepicker.d.ts +0 -5
- package/toast/package.json +0 -10
- package/toast/ptsecurity-mosaic-toast.d.ts +0 -5
- package/toggle/package.json +0 -10
- package/toggle/ptsecurity-mosaic-toggle.d.ts +0 -5
- package/tooltip/package.json +0 -10
- package/tooltip/ptsecurity-mosaic-tooltip.d.ts +0 -5
- package/tree/package.json +0 -10
- package/tree/ptsecurity-mosaic-tree.d.ts +0 -5
- package/tree-select/package.json +0 -10
- package/tree-select/ptsecurity-mosaic-tree-select.d.ts +0 -5
@@ -1,229 +1,22 @@
|
|
1
1
|
import { A11yModule } from '@angular/cdk/a11y';
|
2
|
-
import * as
|
2
|
+
import * as i3 from '@angular/common';
|
3
3
|
import { CommonModule } from '@angular/common';
|
4
4
|
import * as i0 from '@angular/core';
|
5
|
-
import { forwardRef,
|
6
|
-
import * as
|
7
|
-
import {
|
8
|
-
import * as
|
5
|
+
import { forwardRef, EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Attribute, Optional, ContentChildren, Output, Input, Inject, ContentChild, ViewChild, NgModule } from '@angular/core';
|
6
|
+
import * as i2 from '@ptsecurity/mosaic/core';
|
7
|
+
import { mixinTabIndex, mixinDisabled, MultipleMode, toBoolean, MC_OPTION_ACTION_PARENT, McOptionActionComponent, McLineSetter, McLine, McPseudoCheckboxModule, McLineModule, McOptionModule } from '@ptsecurity/mosaic/core';
|
8
|
+
import * as i1 from '@angular/cdk/clipboard';
|
9
9
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
10
10
|
import { SelectionModel } from '@angular/cdk/collections';
|
11
11
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
12
12
|
import { FocusKeyManager } from '@ptsecurity/cdk/a11y';
|
13
|
-
import {
|
13
|
+
import { SPACE, ENTER, LEFT_ARROW, RIGHT_ARROW, isVerticalMovement, isSelectAll, isCopy, TAB, DOWN_ARROW, UP_ARROW, HOME, END, PAGE_UP, PAGE_DOWN, hasModifierKey } from '@ptsecurity/cdk/keycodes';
|
14
14
|
import { McDropdownTrigger } from '@ptsecurity/mosaic/dropdown';
|
15
15
|
import { McTooltipTrigger } from '@ptsecurity/mosaic/tooltip';
|
16
16
|
import { Subject, merge } from 'rxjs';
|
17
|
-
import {
|
17
|
+
import { takeUntil, startWith, take } from 'rxjs/operators';
|
18
18
|
|
19
19
|
/* tslint:disable:no-empty */
|
20
|
-
/**
|
21
|
-
* Component for list-options of selection-list. Each list-option can automatically
|
22
|
-
* generate a checkbox and can put current item into the selectionModel of selection-list
|
23
|
-
* if the current item is selected.
|
24
|
-
*/
|
25
|
-
class McListOption {
|
26
|
-
constructor(elementRef, changeDetector, ngZone, listSelection, group) {
|
27
|
-
this.elementRef = elementRef;
|
28
|
-
this.changeDetector = changeDetector;
|
29
|
-
this.ngZone = ngZone;
|
30
|
-
this.listSelection = listSelection;
|
31
|
-
this.group = group;
|
32
|
-
this.hasFocus = false;
|
33
|
-
this.onFocus = new Subject();
|
34
|
-
this.onBlur = new Subject();
|
35
|
-
/**
|
36
|
-
* This is set to true after the first OnChanges cycle so we don't clear the value of `selected`
|
37
|
-
* in the first cycle.
|
38
|
-
*/
|
39
|
-
this.inputsInitialized = false;
|
40
|
-
this._disabled = false;
|
41
|
-
this._selected = false;
|
42
|
-
}
|
43
|
-
get value() { return this._value; }
|
44
|
-
set value(newValue) {
|
45
|
-
if (this.selected && newValue !== this.value && this.inputsInitialized) {
|
46
|
-
this.selected = false;
|
47
|
-
}
|
48
|
-
this._value = newValue;
|
49
|
-
}
|
50
|
-
get disabled() {
|
51
|
-
const listSelectionDisabled = this.listSelection && this.listSelection.disabled;
|
52
|
-
const groupDisabled = this.group && this.group.disabled;
|
53
|
-
return listSelectionDisabled || groupDisabled || this._disabled;
|
54
|
-
}
|
55
|
-
set disabled(value) {
|
56
|
-
const newValue = toBoolean(value);
|
57
|
-
if (newValue !== this._disabled) {
|
58
|
-
this._disabled = newValue;
|
59
|
-
this.changeDetector.markForCheck();
|
60
|
-
}
|
61
|
-
}
|
62
|
-
get showCheckbox() {
|
63
|
-
return this._showCheckbox !== undefined ? this._showCheckbox : this.listSelection.showCheckbox;
|
64
|
-
}
|
65
|
-
set showCheckbox(value) {
|
66
|
-
this._showCheckbox = coerceBooleanProperty(value);
|
67
|
-
}
|
68
|
-
get selected() {
|
69
|
-
return this.listSelection.selectionModel?.isSelected(this) || false;
|
70
|
-
}
|
71
|
-
set selected(value) {
|
72
|
-
const isSelected = toBoolean(value);
|
73
|
-
if (isSelected !== this._selected) {
|
74
|
-
this.setSelected(isSelected);
|
75
|
-
}
|
76
|
-
}
|
77
|
-
get tabIndex() {
|
78
|
-
return this.disabled ? null : -1;
|
79
|
-
}
|
80
|
-
ngOnInit() {
|
81
|
-
const list = this.listSelection;
|
82
|
-
if (list._value && list._value.some((value) => list.compareWith(value, this._value))) {
|
83
|
-
this.setSelected(true);
|
84
|
-
}
|
85
|
-
const wasSelected = this._selected;
|
86
|
-
// List options that are selected at initialization can't be reported properly to the form
|
87
|
-
// control. This is because it takes some time until the selection-list knows about all
|
88
|
-
// available options. Also it can happen that the ControlValueAccessor has an initial value
|
89
|
-
// that should be used instead. Deferring the value change report to the next tick ensures
|
90
|
-
// that the form control value is not being overwritten.
|
91
|
-
Promise.resolve().then(() => {
|
92
|
-
if (this._selected || wasSelected) {
|
93
|
-
this.selected = true;
|
94
|
-
this.changeDetector.markForCheck();
|
95
|
-
}
|
96
|
-
});
|
97
|
-
this.inputsInitialized = true;
|
98
|
-
}
|
99
|
-
ngOnDestroy() {
|
100
|
-
if (this.selected) {
|
101
|
-
// We have to delay this until the next tick in order
|
102
|
-
// to avoid changed after checked errors.
|
103
|
-
Promise.resolve().then(() => this.selected = false);
|
104
|
-
}
|
105
|
-
this.listSelection.removeOptionFromList(this);
|
106
|
-
}
|
107
|
-
toggle() {
|
108
|
-
this.selected = !this.selected;
|
109
|
-
}
|
110
|
-
getLabel() {
|
111
|
-
return this.text ? this.text.nativeElement.textContent : '';
|
112
|
-
}
|
113
|
-
setSelected(selected) {
|
114
|
-
if (this._selected === selected || !this.listSelection.selectionModel) {
|
115
|
-
return;
|
116
|
-
}
|
117
|
-
this._selected = selected;
|
118
|
-
if (selected) {
|
119
|
-
this.listSelection.selectionModel.select(this);
|
120
|
-
}
|
121
|
-
else {
|
122
|
-
this.listSelection.selectionModel.deselect(this);
|
123
|
-
}
|
124
|
-
this.changeDetector.markForCheck();
|
125
|
-
}
|
126
|
-
getHeight() {
|
127
|
-
const clientRects = this.elementRef.nativeElement.getClientRects();
|
128
|
-
return clientRects.length ? clientRects[0].height : 0;
|
129
|
-
}
|
130
|
-
handleClick($event) {
|
131
|
-
if (this.disabled) {
|
132
|
-
return;
|
133
|
-
}
|
134
|
-
this.listSelection.setSelectedOptionsByClick(this, hasModifierKey($event, 'shiftKey'), hasModifierKey($event, 'ctrlKey'));
|
135
|
-
}
|
136
|
-
onKeydown($event) {
|
137
|
-
if (!this.actionButton) {
|
138
|
-
return;
|
139
|
-
}
|
140
|
-
if ($event.keyCode === TAB && !$event.shiftKey && !this.actionButton.hasFocus) {
|
141
|
-
this.actionButton.focus();
|
142
|
-
$event.preventDefault();
|
143
|
-
}
|
144
|
-
}
|
145
|
-
focus() {
|
146
|
-
if (this.disabled || this.hasFocus || this.actionButton?.hasFocus) {
|
147
|
-
return;
|
148
|
-
}
|
149
|
-
this.elementRef.nativeElement.focus();
|
150
|
-
this.onFocus.next({ option: this });
|
151
|
-
Promise.resolve().then(() => {
|
152
|
-
this.hasFocus = true;
|
153
|
-
this.changeDetector.markForCheck();
|
154
|
-
});
|
155
|
-
}
|
156
|
-
blur() {
|
157
|
-
// When animations are enabled, Angular may end up removing the option from the DOM a little
|
158
|
-
// earlier than usual, causing it to be blurred and throwing off the logic in the list
|
159
|
-
// that moves focus not the next item. To work around the issue, we defer marking the option
|
160
|
-
// as not focused until the next time the zone stabilizes.
|
161
|
-
this.ngZone.onStable
|
162
|
-
.asObservable()
|
163
|
-
.pipe(take(1))
|
164
|
-
.subscribe(() => {
|
165
|
-
this.ngZone.run(() => {
|
166
|
-
this.hasFocus = false;
|
167
|
-
if (this.actionButton?.hasFocus) {
|
168
|
-
return;
|
169
|
-
}
|
170
|
-
this.onBlur.next({ option: this });
|
171
|
-
});
|
172
|
-
});
|
173
|
-
}
|
174
|
-
getHostElement() {
|
175
|
-
return this.elementRef.nativeElement;
|
176
|
-
}
|
177
|
-
}
|
178
|
-
/** @nocollapse */ /** @nocollapse */ McListOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McListOption, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: forwardRef(() => McListSelection) }, { token: i1.McOptgroup, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
179
|
-
/** @nocollapse */ /** @nocollapse */ McListOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", 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: [
|
180
|
-
{ provide: MC_OPTION_ACTION_PARENT, useExisting: McListOption }
|
181
|
-
], queries: [{ propertyName: "actionButton", first: true, predicate: McOptionActionComponent, descendants: true }, { propertyName: "tooltipTrigger", first: true, predicate: McTooltipTrigger, descendants: true }, { propertyName: "dropdownTrigger", first: true, predicate: McDropdownTrigger, descendants: true }], viewQueries: [{ propertyName: "text", first: true, predicate: ["text"], descendants: true }], exportAs: ["mcListOption"], ngImport: i0, template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<ng-content select=\"[mc-icon]\"></ng-content>\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.McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: ["color", "state", "disabled"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McListOption, decorators: [{
|
183
|
-
type: Component,
|
184
|
-
args: [{ exportAs: 'mcListOption', selector: 'mc-list-option', host: {
|
185
|
-
class: 'mc-list-option',
|
186
|
-
'[class.mc-selected]': 'selected',
|
187
|
-
'[class.mc-disabled]': 'disabled',
|
188
|
-
'[class.mc-focused]': 'hasFocus',
|
189
|
-
'[class.mc-action-button-focused]': 'actionButton?.active',
|
190
|
-
'[attr.tabindex]': 'tabIndex',
|
191
|
-
'[attr.disabled]': 'disabled || null',
|
192
|
-
'(focusin)': 'focus()',
|
193
|
-
'(blur)': 'blur()',
|
194
|
-
'(click)': 'handleClick($event)',
|
195
|
-
'(keydown)': 'onKeydown($event)'
|
196
|
-
}, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
197
|
-
{ provide: MC_OPTION_ACTION_PARENT, useExisting: McListOption }
|
198
|
-
], template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<ng-content select=\"[mc-icon]\"></ng-content>\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" }]
|
199
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: McListSelection, decorators: [{
|
200
|
-
type: Inject,
|
201
|
-
args: [forwardRef(() => McListSelection)]
|
202
|
-
}] }, { type: i1.McOptgroup, decorators: [{
|
203
|
-
type: Optional
|
204
|
-
}] }]; }, propDecorators: { actionButton: [{
|
205
|
-
type: ContentChild,
|
206
|
-
args: [McOptionActionComponent]
|
207
|
-
}], tooltipTrigger: [{
|
208
|
-
type: ContentChild,
|
209
|
-
args: [McTooltipTrigger]
|
210
|
-
}], dropdownTrigger: [{
|
211
|
-
type: ContentChild,
|
212
|
-
args: [McDropdownTrigger]
|
213
|
-
}], text: [{
|
214
|
-
type: ViewChild,
|
215
|
-
args: ['text', { static: false }]
|
216
|
-
}], checkboxPosition: [{
|
217
|
-
type: Input
|
218
|
-
}], value: [{
|
219
|
-
type: Input
|
220
|
-
}], disabled: [{
|
221
|
-
type: Input
|
222
|
-
}], showCheckbox: [{
|
223
|
-
type: Input
|
224
|
-
}], selected: [{
|
225
|
-
type: Input
|
226
|
-
}] } });
|
227
20
|
const MC_SELECTION_LIST_VALUE_ACCESSOR = {
|
228
21
|
provide: NG_VALUE_ACCESSOR,
|
229
22
|
useExisting: forwardRef(() => McListSelection),
|
@@ -634,22 +427,28 @@ class McListSelection extends McListSelectionMixinBase {
|
|
634
427
|
this.onSelectAll.emit(new McListSelectAllEvent(this, optionsToSelect));
|
635
428
|
}
|
636
429
|
copyActiveOption() {
|
430
|
+
if (!this.keyManager.activeItem) {
|
431
|
+
return;
|
432
|
+
}
|
433
|
+
const option = this.keyManager.activeItem;
|
434
|
+
option.preventBlur = true;
|
637
435
|
if (this.onCopy.observers.length) {
|
638
|
-
this.onCopy.emit(new McListCopyEvent(this,
|
436
|
+
this.onCopy.emit(new McListCopyEvent(this, option));
|
639
437
|
}
|
640
438
|
else {
|
641
439
|
this.onCopyDefaultHandler();
|
642
440
|
}
|
441
|
+
option.preventBlur = false;
|
643
442
|
}
|
644
443
|
}
|
645
|
-
/** @nocollapse */
|
646
|
-
/** @nocollapse */
|
444
|
+
/** @nocollapse */ McListSelection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McListSelection, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: 'multiple', attribute: true }, { token: i1.Clipboard, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
445
|
+
/** @nocollapse */ McListSelection.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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: i0.forwardRef(function () { return McListOption; }), descendants: true }], exportAs: ["mcListSelection"], usesInheritance: true, ngImport: i0, template: `
|
647
446
|
<div [attr.tabindex]="tabIndex"
|
648
447
|
(focus)="focus()"
|
649
448
|
(blur)="blur()">
|
650
449
|
<ng-content></ng-content>
|
651
|
-
</div>`, isInline: true, styles: [".mc-
|
652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
450
|
+
</div>`, isInline: true, styles: [".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:12px;padding-left:var(--mc-list-size-horizontal-padding, 12px)}.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:12px;padding-right:var(--mc-list-size-horizontal-padding, 12px)}.mc-list-item .mc-list-text>*,.mc-list-option .mc-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mc-list-item .mc-list-text:empty,.mc-list-option .mc-list-text:empty{display:none}.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-item .mc-icon,.mc-list-option .mc-pseudo-checkbox,.mc-list-option .mc-icon{margin-right:8px;margin-right:var(--mc-list-size-icon-right-margin, 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.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
451
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McListSelection, decorators: [{
|
653
452
|
type: Component,
|
654
453
|
args: [{ exportAs: 'mcListSelection', selector: 'mc-list-selection', template: `
|
655
454
|
<div [attr.tabindex]="tabIndex"
|
@@ -662,15 +461,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
662
461
|
'[attr.disabled]': 'disabled || null',
|
663
462
|
'(keydown)': 'onKeyDown($event)',
|
664
463
|
'(window:resize)': 'updateScrollSize()'
|
665
|
-
}, providers: [MC_SELECTION_LIST_VALUE_ACCESSOR], preserveWhitespaces: false, styles: [".mc-
|
666
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type:
|
464
|
+
}, providers: [MC_SELECTION_LIST_VALUE_ACCESSOR], preserveWhitespaces: false, styles: [".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:12px;padding-left:var(--mc-list-size-horizontal-padding, 12px)}.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:12px;padding-right:var(--mc-list-size-horizontal-padding, 12px)}.mc-list-item .mc-list-text>*,.mc-list-option .mc-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mc-list-item .mc-list-text:empty,.mc-list-option .mc-list-text:empty{display:none}.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-item .mc-icon,.mc-list-option .mc-pseudo-checkbox,.mc-list-option .mc-icon{margin-right:8px;margin-right:var(--mc-list-size-icon-right-margin, 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"] }]
|
465
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i2.MultipleMode, decorators: [{
|
667
466
|
type: Attribute,
|
668
467
|
args: ['multiple']
|
669
|
-
}] }, { type:
|
468
|
+
}] }, { type: i1.Clipboard, decorators: [{
|
670
469
|
type: Optional
|
671
470
|
}] }]; }, propDecorators: { options: [{
|
672
471
|
type: ContentChildren,
|
673
|
-
args: [McListOption, { descendants: true }]
|
472
|
+
args: [forwardRef(() => McListOption), { descendants: true }]
|
674
473
|
}], onSelectAll: [{
|
675
474
|
type: Output
|
676
475
|
}], onCopy: [{
|
@@ -688,15 +487,226 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
688
487
|
}], compareWith: [{
|
689
488
|
type: Input
|
690
489
|
}] } });
|
490
|
+
/**
|
491
|
+
* Component for list-options of selection-list. Each list-option can automatically
|
492
|
+
* generate a checkbox and can put current item into the selectionModel of selection-list
|
493
|
+
* if the current item is selected.
|
494
|
+
*/
|
495
|
+
class McListOption {
|
496
|
+
constructor(elementRef, changeDetector, ngZone, listSelection, group) {
|
497
|
+
this.elementRef = elementRef;
|
498
|
+
this.changeDetector = changeDetector;
|
499
|
+
this.ngZone = ngZone;
|
500
|
+
this.listSelection = listSelection;
|
501
|
+
this.group = group;
|
502
|
+
this.hasFocus = false;
|
503
|
+
this.preventBlur = false;
|
504
|
+
this.onFocus = new Subject();
|
505
|
+
this.onBlur = new Subject();
|
506
|
+
/**
|
507
|
+
* This is set to true after the first OnChanges cycle so we don't clear the value of `selected`
|
508
|
+
* in the first cycle.
|
509
|
+
*/
|
510
|
+
this.inputsInitialized = false;
|
511
|
+
this._disabled = false;
|
512
|
+
this._selected = false;
|
513
|
+
}
|
514
|
+
get value() { return this._value; }
|
515
|
+
set value(newValue) {
|
516
|
+
if (this.selected && newValue !== this.value && this.inputsInitialized) {
|
517
|
+
this.selected = false;
|
518
|
+
}
|
519
|
+
this._value = newValue;
|
520
|
+
}
|
521
|
+
get disabled() {
|
522
|
+
const listSelectionDisabled = this.listSelection && this.listSelection.disabled;
|
523
|
+
const groupDisabled = this.group && this.group.disabled;
|
524
|
+
return listSelectionDisabled || groupDisabled || this._disabled;
|
525
|
+
}
|
526
|
+
set disabled(value) {
|
527
|
+
const newValue = toBoolean(value);
|
528
|
+
if (newValue !== this._disabled) {
|
529
|
+
this._disabled = newValue;
|
530
|
+
this.changeDetector.markForCheck();
|
531
|
+
}
|
532
|
+
}
|
533
|
+
get showCheckbox() {
|
534
|
+
return this._showCheckbox !== undefined ? this._showCheckbox : this.listSelection.showCheckbox;
|
535
|
+
}
|
536
|
+
set showCheckbox(value) {
|
537
|
+
this._showCheckbox = coerceBooleanProperty(value);
|
538
|
+
}
|
539
|
+
get selected() {
|
540
|
+
return this.listSelection.selectionModel?.isSelected(this) || false;
|
541
|
+
}
|
542
|
+
set selected(value) {
|
543
|
+
const isSelected = toBoolean(value);
|
544
|
+
if (isSelected !== this._selected) {
|
545
|
+
this.setSelected(isSelected);
|
546
|
+
}
|
547
|
+
}
|
548
|
+
get tabIndex() {
|
549
|
+
return this.disabled ? null : -1;
|
550
|
+
}
|
551
|
+
ngOnInit() {
|
552
|
+
const list = this.listSelection;
|
553
|
+
if (list._value && list._value.some((value) => list.compareWith(value, this._value))) {
|
554
|
+
this.setSelected(true);
|
555
|
+
}
|
556
|
+
const wasSelected = this._selected;
|
557
|
+
// List options that are selected at initialization can't be reported properly to the form
|
558
|
+
// control. This is because it takes some time until the selection-list knows about all
|
559
|
+
// available options. Also it can happen that the ControlValueAccessor has an initial value
|
560
|
+
// that should be used instead. Deferring the value change report to the next tick ensures
|
561
|
+
// that the form control value is not being overwritten.
|
562
|
+
Promise.resolve().then(() => {
|
563
|
+
if (this._selected || wasSelected) {
|
564
|
+
this.selected = true;
|
565
|
+
this.changeDetector.markForCheck();
|
566
|
+
}
|
567
|
+
});
|
568
|
+
this.inputsInitialized = true;
|
569
|
+
}
|
570
|
+
ngOnDestroy() {
|
571
|
+
if (this.selected) {
|
572
|
+
// We have to delay this until the next tick in order
|
573
|
+
// to avoid changed after checked errors.
|
574
|
+
Promise.resolve().then(() => this.selected = false);
|
575
|
+
}
|
576
|
+
this.listSelection.removeOptionFromList(this);
|
577
|
+
}
|
578
|
+
toggle() {
|
579
|
+
this.selected = !this.selected;
|
580
|
+
}
|
581
|
+
getLabel() {
|
582
|
+
return this.text ? this.text.nativeElement.textContent : '';
|
583
|
+
}
|
584
|
+
setSelected(selected) {
|
585
|
+
if (this._selected === selected || !this.listSelection.selectionModel) {
|
586
|
+
return;
|
587
|
+
}
|
588
|
+
this._selected = selected;
|
589
|
+
if (selected) {
|
590
|
+
this.listSelection.selectionModel.select(this);
|
591
|
+
}
|
592
|
+
else {
|
593
|
+
this.listSelection.selectionModel.deselect(this);
|
594
|
+
}
|
595
|
+
this.changeDetector.markForCheck();
|
596
|
+
}
|
597
|
+
getHeight() {
|
598
|
+
const clientRects = this.elementRef.nativeElement.getClientRects();
|
599
|
+
return clientRects.length ? clientRects[0].height : 0;
|
600
|
+
}
|
601
|
+
handleClick($event) {
|
602
|
+
if (this.disabled) {
|
603
|
+
return;
|
604
|
+
}
|
605
|
+
this.listSelection.setSelectedOptionsByClick(this, hasModifierKey($event, 'shiftKey'), hasModifierKey($event, 'ctrlKey'));
|
606
|
+
}
|
607
|
+
onKeydown($event) {
|
608
|
+
if (!this.actionButton) {
|
609
|
+
return;
|
610
|
+
}
|
611
|
+
if ($event.keyCode === TAB && !$event.shiftKey && !this.actionButton.hasFocus) {
|
612
|
+
this.actionButton.focus();
|
613
|
+
$event.preventDefault();
|
614
|
+
}
|
615
|
+
}
|
616
|
+
focus() {
|
617
|
+
if (this.disabled || this.hasFocus || this.actionButton?.hasFocus) {
|
618
|
+
return;
|
619
|
+
}
|
620
|
+
this.elementRef.nativeElement.focus();
|
621
|
+
this.onFocus.next({ option: this });
|
622
|
+
Promise.resolve().then(() => {
|
623
|
+
this.hasFocus = true;
|
624
|
+
this.changeDetector.markForCheck();
|
625
|
+
});
|
626
|
+
}
|
627
|
+
blur() {
|
628
|
+
if (this.preventBlur) {
|
629
|
+
return;
|
630
|
+
}
|
631
|
+
// When animations are enabled, Angular may end up removing the option from the DOM a little
|
632
|
+
// earlier than usual, causing it to be blurred and throwing off the logic in the list
|
633
|
+
// that moves focus not the next item. To work around the issue, we defer marking the option
|
634
|
+
// as not focused until the next time the zone stabilizes.
|
635
|
+
this.ngZone.onStable
|
636
|
+
.asObservable()
|
637
|
+
.pipe(take(1))
|
638
|
+
.subscribe(() => {
|
639
|
+
this.ngZone.run(() => {
|
640
|
+
this.hasFocus = false;
|
641
|
+
if (this.actionButton?.hasFocus) {
|
642
|
+
return;
|
643
|
+
}
|
644
|
+
this.onBlur.next({ option: this });
|
645
|
+
});
|
646
|
+
});
|
647
|
+
}
|
648
|
+
getHostElement() {
|
649
|
+
return this.elementRef.nativeElement;
|
650
|
+
}
|
651
|
+
}
|
652
|
+
/** @nocollapse */ McListOption.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McListOption, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: forwardRef(() => McListSelection) }, { token: i2.McOptgroup, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
653
|
+
/** @nocollapse */ McListOption.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", 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: [
|
654
|
+
{ provide: MC_OPTION_ACTION_PARENT, useExisting: McListOption }
|
655
|
+
], queries: [{ propertyName: "actionButton", first: true, predicate: McOptionActionComponent, descendants: true }, { propertyName: "tooltipTrigger", first: true, predicate: McTooltipTrigger, descendants: true }, { propertyName: "dropdownTrigger", first: true, predicate: McDropdownTrigger, descendants: true }], viewQueries: [{ propertyName: "text", first: true, predicate: ["text"], descendants: true }], exportAs: ["mcListOption"], ngImport: i0, template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<ng-content select=\"[mc-icon]\"></ng-content>\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", dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.McPseudoCheckbox, selector: "mc-pseudo-checkbox", inputs: ["color", "state", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McListOption, decorators: [{
|
657
|
+
type: Component,
|
658
|
+
args: [{ exportAs: 'mcListOption', selector: 'mc-list-option', host: {
|
659
|
+
class: 'mc-list-option',
|
660
|
+
'[class.mc-selected]': 'selected',
|
661
|
+
'[class.mc-disabled]': 'disabled',
|
662
|
+
'[class.mc-focused]': 'hasFocus',
|
663
|
+
'[class.mc-action-button-focused]': 'actionButton?.active',
|
664
|
+
'[attr.tabindex]': 'tabIndex',
|
665
|
+
'[attr.disabled]': 'disabled || null',
|
666
|
+
'(focusin)': 'focus()',
|
667
|
+
'(blur)': 'blur()',
|
668
|
+
'(click)': 'handleClick($event)',
|
669
|
+
'(keydown)': 'onKeydown($event)'
|
670
|
+
}, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
671
|
+
{ provide: MC_OPTION_ACTION_PARENT, useExisting: McListOption }
|
672
|
+
], template: "<mc-pseudo-checkbox\n *ngIf=\"showCheckbox\"\n [state]=\"selected ? 'checked' : 'unchecked'\"\n [disabled]=\"disabled\">\n</mc-pseudo-checkbox>\n\n<ng-content select=\"[mc-icon]\"></ng-content>\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" }]
|
673
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: McListSelection, decorators: [{
|
674
|
+
type: Inject,
|
675
|
+
args: [forwardRef(() => McListSelection)]
|
676
|
+
}] }, { type: i2.McOptgroup, decorators: [{
|
677
|
+
type: Optional
|
678
|
+
}] }]; }, propDecorators: { actionButton: [{
|
679
|
+
type: ContentChild,
|
680
|
+
args: [McOptionActionComponent]
|
681
|
+
}], tooltipTrigger: [{
|
682
|
+
type: ContentChild,
|
683
|
+
args: [McTooltipTrigger]
|
684
|
+
}], dropdownTrigger: [{
|
685
|
+
type: ContentChild,
|
686
|
+
args: [McDropdownTrigger]
|
687
|
+
}], text: [{
|
688
|
+
type: ViewChild,
|
689
|
+
args: ['text', { static: false }]
|
690
|
+
}], checkboxPosition: [{
|
691
|
+
type: Input
|
692
|
+
}], value: [{
|
693
|
+
type: Input
|
694
|
+
}], disabled: [{
|
695
|
+
type: Input
|
696
|
+
}], showCheckbox: [{
|
697
|
+
type: Input
|
698
|
+
}], selected: [{
|
699
|
+
type: Input
|
700
|
+
}] } });
|
691
701
|
|
692
702
|
// todo пока не делаем, перенесено из материала, но у нас в доках таких простых списков нет.
|
693
703
|
class McList {
|
694
704
|
}
|
695
|
-
/** @nocollapse */
|
696
|
-
/** @nocollapse */
|
697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
705
|
+
/** @nocollapse */ McList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McList, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
706
|
+
/** @nocollapse */ McList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McList, selector: "mc-list", host: { classAttribute: "mc-list" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".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:12px;padding-left:var(--mc-list-size-horizontal-padding, 12px)}.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:12px;padding-right:var(--mc-list-size-horizontal-padding, 12px)}.mc-list-item .mc-list-text>*,.mc-list-option .mc-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mc-list-item .mc-list-text:empty,.mc-list-option .mc-list-text:empty{display:none}.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-item .mc-icon,.mc-list-option .mc-pseudo-checkbox,.mc-list-option .mc-icon{margin-right:8px;margin-right:var(--mc-list-size-icon-right-margin, 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.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McList, decorators: [{
|
698
708
|
type: Component,
|
699
|
-
args: [{ selector: 'mc-list', host: { class: 'mc-list' }, template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".mc-
|
709
|
+
args: [{ selector: 'mc-list', host: { class: 'mc-list' }, template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: [".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:12px;padding-left:var(--mc-list-size-horizontal-padding, 12px)}.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:12px;padding-right:var(--mc-list-size-horizontal-padding, 12px)}.mc-list-item .mc-list-text>*,.mc-list-option .mc-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mc-list-item .mc-list-text:empty,.mc-list-option .mc-list-text:empty{display:none}.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-item .mc-icon,.mc-list-option .mc-pseudo-checkbox,.mc-list-option .mc-icon{margin-right:8px;margin-right:var(--mc-list-size-icon-right-margin, 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"] }]
|
700
710
|
}] });
|
701
711
|
class McListItem {
|
702
712
|
constructor(elementRef) {
|
@@ -716,9 +726,9 @@ class McListItem {
|
|
716
726
|
return this.elementRef.nativeElement;
|
717
727
|
}
|
718
728
|
}
|
719
|
-
/** @nocollapse */
|
720
|
-
/** @nocollapse */
|
721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
729
|
+
/** @nocollapse */ McListItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McListItem, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
730
|
+
/** @nocollapse */ McListItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: McListItem, selector: "mc-list-item, a[mc-list-item]", host: { listeners: { "focus": "handleFocus()", "blur": "handleBlur()" }, classAttribute: "mc-list-item" }, queries: [{ propertyName: "lines", predicate: McLine }], ngImport: i0, 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.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McListItem, decorators: [{
|
722
732
|
type: Component,
|
723
733
|
args: [{ selector: 'mc-list-item, a[mc-list-item]', host: {
|
724
734
|
class: 'mc-list-item',
|
@@ -732,8 +742,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
732
742
|
|
733
743
|
class McListModule {
|
734
744
|
}
|
735
|
-
/** @nocollapse */
|
736
|
-
/** @nocollapse */
|
745
|
+
/** @nocollapse */ McListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
746
|
+
/** @nocollapse */ McListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: McListModule, declarations: [McList,
|
737
747
|
McListSelection,
|
738
748
|
McListItem,
|
739
749
|
McListOption], imports: [CommonModule,
|
@@ -745,14 +755,12 @@ class McListModule {
|
|
745
755
|
McListItem,
|
746
756
|
McListOption,
|
747
757
|
McOptionModule] });
|
748
|
-
/** @nocollapse */
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
], McOptionModule] });
|
755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: McListModule, decorators: [{
|
758
|
+
/** @nocollapse */ McListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McListModule, imports: [CommonModule,
|
759
|
+
A11yModule,
|
760
|
+
McPseudoCheckboxModule,
|
761
|
+
McLineModule,
|
762
|
+
McOptionModule, McOptionModule] });
|
763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: McListModule, decorators: [{
|
756
764
|
type: NgModule,
|
757
765
|
args: [{
|
758
766
|
imports: [
|