@ptsecurity/mosaic 15.5.0 → 16.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 +29 -6
- package/_visual.scss +6 -4
- package/autocomplete/autocomplete-trigger.directive.d.ts +6 -16
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/button/_button-theme.scss +2 -5
- package/button/button.component.d.ts +1 -1
- package/button-toggle/_button-toggle-theme.scss +2 -5
- package/button-toggle/button-toggle.component.d.ts +3 -3
- package/card/card.component.d.ts +1 -1
- package/checkbox/_checkbox-theme.scss +6 -5
- package/checkbox/checkbox-config.d.ts +1 -1
- package/checkbox/checkbox.d.ts +1 -1
- package/code-block/_code-block-theme.scss +2 -6
- package/code-block/actionbar.component.d.ts +1 -1
- package/code-block/code-block.component.d.ts +1 -1
- package/core/common-behaviors/color.d.ts +1 -1
- package/core/common-behaviors/constructor.d.ts +2 -2
- package/core/common-behaviors/disabled.d.ts +1 -1
- package/core/common-behaviors/error-state.d.ts +1 -1
- package/core/common-behaviors/tabindex.d.ts +1 -1
- package/core/datetime/date-formats.d.ts +1 -1
- package/core/formatters/index.d.ts +1 -1
- package/core/formatters/number/formatter.d.ts +55 -0
- package/core/forms/_forms-theme.scss +2 -4
- package/core/label/label-options.d.ts +1 -1
- package/core/locales/en-US.d.ts +13 -2
- package/core/locales/es-LA.d.ts +21 -0
- package/core/locales/fa-IR.d.ts +22 -0
- package/core/locales/locale-service.d.ts +111 -5
- package/core/locales/pt-BR.d.ts +21 -0
- package/core/locales/ru-RU.d.ts +13 -2
- package/core/locales/zh-CN.d.ts +20 -0
- package/core/option/_optgroup-theme.scss +2 -4
- package/core/option/_option-theme.scss +2 -5
- package/core/option/action.d.ts +1 -1
- package/core/option/optgroup.d.ts +1 -1
- package/core/option/option.d.ts +37 -8
- package/core/overlay/overlay-position-map.d.ts +7 -1
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +2 -2
- package/core/styles/_variables.scss +1 -0
- package/core/styles/theming/_badges.scss +2 -1
- package/core/styles/theming/_theming.scss +1 -0
- package/datepicker/_datepicker-theme.scss +2 -5
- package/datepicker/calendar-body.component.d.ts +2 -2
- package/datepicker/calendar-header.component.d.ts +9 -3
- package/datepicker/calendar.component.d.ts +4 -5
- package/datepicker/datepicker-input.directive.d.ts +1 -1
- package/datepicker/datepicker-toggle.component.d.ts +1 -1
- package/datepicker/datepicker.component.d.ts +1 -1
- package/datepicker/month-view.component.d.ts +4 -5
- package/divider/divider.component.d.ts +1 -1
- package/dl/_dl-theme.scss +2 -5
- package/dl/dl.component.d.ts +1 -1
- package/dropdown/_dropdown-theme.scss +2 -5
- 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/dropdown/dropdown.types.d.ts +3 -3
- package/ellipsis-center/ellipsis-center.directive.d.ts +1 -1
- package/{esm2020 → esm2022}/autocomplete/autocomplete-origin.directive.mjs +4 -4
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +555 -0
- package/{esm2020 → esm2022}/autocomplete/autocomplete.component.mjs +26 -26
- package/{esm2020 → esm2022}/autocomplete/autocomplete.module.mjs +10 -10
- package/esm2022/button/button.component.mjs +148 -0
- package/{esm2020 → esm2022}/button/button.module.mjs +13 -13
- package/esm2022/button-toggle/button-toggle.component.mjs +381 -0
- package/{esm2020 → esm2022}/button-toggle/button-toggle.module.mjs +5 -5
- package/esm2022/card/card.component.mjs +80 -0
- package/{esm2020 → esm2022}/card/card.module.mjs +9 -9
- package/{esm2020 → esm2022}/checkbox/checkbox-module.mjs +5 -5
- package/{esm2020 → esm2022}/checkbox/checkbox-required-validator.mjs +4 -4
- package/esm2022/checkbox/checkbox.mjs +300 -0
- package/{esm2020 → esm2022}/code-block/actionbar.component.mjs +4 -4
- package/esm2022/code-block/code-block.component.mjs +157 -0
- package/esm2022/code-block/code-block.module.mjs +60 -0
- package/esm2022/core/common-behaviors/color.mjs +33 -0
- package/{esm2020 → esm2022}/core/common-behaviors/common-module.mjs +5 -5
- package/{esm2020 → esm2022}/core/common-behaviors/disabled.mjs +6 -6
- package/{esm2020 → esm2022}/core/common-behaviors/tabindex.mjs +6 -6
- package/{esm2020 → esm2022}/core/error/error-options.mjs +7 -7
- package/{esm2020 → esm2022}/core/formatters/date/formatter.mjs +4 -4
- package/{esm2020 → esm2022}/core/formatters/date/formatter.pipe.mjs +40 -40
- package/esm2022/core/formatters/index.mjs +86 -0
- package/esm2022/core/formatters/number/formatter.mjs +350 -0
- package/{esm2020 → esm2022}/core/forms/forms-module.mjs +7 -7
- package/{esm2020 → esm2022}/core/forms/forms.directive.mjs +7 -7
- package/{esm2020 → esm2022}/core/highlight/highlight.pipe.mjs +4 -4
- package/{esm2020 → esm2022}/core/highlight/index.mjs +5 -5
- package/{esm2020 → esm2022}/core/line/line.mjs +8 -8
- package/esm2022/core/locales/en-US.mjs +21 -0
- package/esm2022/core/locales/es-LA.mjs +27 -0
- package/esm2022/core/locales/fa-IR.mjs +28 -0
- package/{esm2020 → esm2022}/core/locales/locale-service.mjs +7 -7
- package/{esm2020 → esm2022}/core/locales/locale-service.module.mjs +7 -7
- package/esm2022/core/locales/pt-BR.mjs +27 -0
- package/esm2022/core/locales/ru-RU.mjs +21 -0
- package/esm2022/core/locales/zh-CN.mjs +26 -0
- package/{esm2020 → esm2022}/core/option/action.mjs +9 -9
- package/{esm2020 → esm2022}/core/option/optgroup.mjs +5 -5
- package/{esm2020 → esm2022}/core/option/option-module.mjs +5 -5
- package/esm2022/core/option/option.mjs +298 -0
- package/esm2022/core/overlay/overlay-position-map.mjs +251 -0
- package/{esm2020 → esm2022}/core/pop-up/pop-up-trigger.mjs +4 -4
- package/{esm2020 → esm2022}/core/pop-up/pop-up.mjs +4 -4
- package/{esm2020 → esm2022}/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +4 -4
- package/{esm2020 → esm2022}/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +5 -5
- package/esm2022/core/services/measure-scrollbar.service.mjs +48 -0
- package/{esm2020 → esm2022}/core/utils/data-size/data-size.pipe.mjs +8 -8
- package/{esm2020 → esm2022}/core/version.mjs +2 -2
- package/{esm2020 → esm2022}/datepicker/calendar-body.component.mjs +4 -4
- package/esm2022/datepicker/calendar-header.component.mjs +135 -0
- package/esm2022/datepicker/calendar.component.mjs +166 -0
- package/esm2022/datepicker/datepicker-input.directive.mjs +955 -0
- package/{esm2020 → esm2022}/datepicker/datepicker-intl.mjs +4 -4
- package/{esm2020 → esm2022}/datepicker/datepicker-module.mjs +38 -38
- package/esm2022/datepicker/datepicker-toggle.component.mjs +86 -0
- package/esm2022/datepicker/datepicker.component.mjs +393 -0
- package/esm2022/datepicker/month-view.component.mjs +149 -0
- package/{esm2020 → esm2022}/divider/divider.component.mjs +4 -4
- package/{esm2020 → esm2022}/divider/divider.module.mjs +5 -5
- package/{esm2020 → esm2022}/dl/dl.component.mjs +10 -10
- package/{esm2020 → esm2022}/dl/dl.module.mjs +13 -13
- package/{esm2020 → esm2022}/dropdown/dropdown-content.directive.mjs +4 -4
- package/{esm2020 → esm2022}/dropdown/dropdown-item.component.mjs +6 -6
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +489 -0
- package/esm2022/dropdown/dropdown.component.mjs +292 -0
- package/{esm2020 → esm2022}/dropdown/dropdown.module.mjs +15 -15
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +106 -0
- package/{esm2020 → esm2022}/file-upload/file-drop.mjs +4 -4
- package/{esm2020 → esm2022}/file-upload/file-upload.module.mjs +25 -25
- package/esm2022/file-upload/multiple-file-upload.component.mjs +165 -0
- package/esm2022/file-upload/single-file-upload.component.mjs +134 -0
- package/{esm2020 → esm2022}/form-field/cleaner.mjs +4 -4
- package/esm2022/form-field/form-field.mjs +267 -0
- package/{esm2020 → esm2022}/form-field/form-field.module.mjs +23 -23
- package/{esm2020 → esm2022}/form-field/hint.mjs +4 -4
- package/esm2022/form-field/password-hint.mjs +146 -0
- package/{esm2020 → esm2022}/form-field/prefix.mjs +4 -4
- package/{esm2020 → esm2022}/form-field/stepper.mjs +6 -6
- package/{esm2020 → esm2022}/form-field/suffix.mjs +4 -4
- package/esm2022/form-field/validate.directive.mjs +158 -0
- package/{esm2020 → esm2022}/icon/icon.component.mjs +7 -7
- package/{esm2020 → esm2022}/icon/icon.module.mjs +11 -11
- package/{esm2020 → esm2022}/input/input-number-validators.mjs +7 -7
- package/esm2022/input/input-number.mjs +168 -0
- package/esm2022/input/input-password.mjs +343 -0
- package/esm2022/input/input.mjs +297 -0
- package/{esm2020 → esm2022}/input/input.module.mjs +23 -23
- package/esm2022/link/link.component.mjs +122 -0
- package/{esm2020 → esm2022}/link/link.module.mjs +7 -7
- package/esm2022/list/list-selection.component.mjs +705 -0
- package/{esm2020 → esm2022}/list/list.component.mjs +8 -8
- package/{esm2020 → esm2022}/list/list.module.mjs +20 -20
- package/esm2022/loader-overlay/loader-overlay.component.mjs +103 -0
- package/{esm2020 → esm2022}/loader-overlay/loader-overlay.module.mjs +17 -17
- package/{esm2020 → esm2022}/markdown/markdown.component.mjs +13 -13
- package/{esm2020 → esm2022}/markdown/markdown.module.mjs +5 -5
- package/{esm2020 → esm2022}/markdown/markdown.service.mjs +4 -4
- package/{esm2020 → esm2022}/modal/css-unit.pipe.mjs +4 -4
- package/esm2022/modal/modal-control.service.mjs +85 -0
- package/esm2022/modal/modal.component.mjs +520 -0
- package/{esm2020 → esm2022}/modal/modal.directive.mjs +13 -13
- package/esm2022/modal/modal.module.mjs +75 -0
- package/{esm2020 → esm2022}/modal/modal.service.mjs +8 -8
- package/esm2022/navbar/navbar-item.component.mjs +606 -0
- package/esm2022/navbar/navbar.component.mjs +248 -0
- package/{esm2020 → esm2022}/navbar/navbar.module.mjs +37 -37
- package/{esm2020 → esm2022}/navbar/vertical-navbar.component.mjs +20 -17
- package/esm2022/popover/popover-confirm.component.mjs +108 -0
- package/esm2022/popover/popover.component.mjs +266 -0
- package/{esm2020 → esm2022}/popover/popover.module.mjs +8 -8
- package/{esm2020 → esm2022}/progress-bar/progress-bar.component.mjs +4 -4
- package/{esm2020 → esm2022}/progress-bar/progress-bar.module.mjs +7 -7
- package/{esm2020 → esm2022}/progress-spinner/progress-spinner.component.mjs +12 -12
- package/{esm2020 → esm2022}/progress-spinner/progress-spinner.module.mjs +7 -7
- package/esm2022/radio/radio.component.mjs +457 -0
- package/{esm2020 → esm2022}/radio/radio.module.mjs +5 -5
- package/esm2022/select/select-option.directive.mjs +65 -0
- package/esm2022/select/select.component.mjs +1160 -0
- package/{esm2020 → esm2022}/select/select.module.mjs +32 -32
- package/esm2022/sidebar/sidebar.component.mjs +146 -0
- package/{esm2020 → esm2022}/sidebar/sidebar.module.mjs +9 -9
- package/esm2022/sidepanel/sidepanel-container.component.mjs +110 -0
- package/{esm2020 → esm2022}/sidepanel/sidepanel-directives.mjs +18 -18
- package/{esm2020 → esm2022}/sidepanel/sidepanel.module.mjs +32 -32
- package/{esm2020 → esm2022}/sidepanel/sidepanel.service.mjs +10 -10
- package/esm2022/splitter/splitter.component.mjs +482 -0
- package/{esm2020 → esm2022}/splitter/splitter.module.mjs +12 -12
- package/{esm2020 → esm2022}/table/table.component.mjs +4 -4
- package/{esm2020 → esm2022}/table/table.module.mjs +9 -9
- package/esm2022/tabs/paginated-tab-header.mjs +488 -0
- package/esm2022/tabs/tab-body.component.mjs +179 -0
- package/{esm2020 → esm2022}/tabs/tab-content.directive.mjs +4 -4
- package/esm2022/tabs/tab-group.component.mjs +349 -0
- package/{esm2020 → esm2022}/tabs/tab-header.component.mjs +4 -4
- package/{esm2020 → esm2022}/tabs/tab-label-wrapper.directive.mjs +4 -4
- package/{esm2020 → esm2022}/tabs/tab-label.directive.mjs +4 -4
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +111 -0
- package/{esm2020 → esm2022}/tabs/tab.component.mjs +43 -34
- package/{esm2020 → esm2022}/tabs/tabs.module.mjs +42 -42
- package/esm2022/tags/tag-default-options.mjs +4 -0
- package/esm2022/tags/tag-input.mjs +250 -0
- package/esm2022/tags/tag-list.component.mjs +718 -0
- package/esm2022/tags/tag.component.mjs +381 -0
- package/esm2022/tags/tag.module.mjs +56 -0
- package/esm2022/textarea/textarea.component.mjs +254 -0
- package/{esm2020 → esm2022}/textarea/textarea.module.mjs +5 -5
- package/esm2022/timepicker/timepicker.directive.mjs +647 -0
- package/{esm2020 → esm2022}/timepicker/timepicker.module.mjs +11 -11
- package/{esm2020 → esm2022}/timezone/cities-by-filter.pipe.mjs +4 -4
- package/esm2022/timezone/timezone-option.component.mjs +48 -0
- package/{esm2020 → esm2022}/timezone/timezone-option.directive.mjs +4 -4
- package/{esm2020 → esm2022}/timezone/timezone-select.component.mjs +11 -11
- package/{esm2020 → esm2022}/timezone/timezone.module.mjs +29 -29
- package/{esm2020 → esm2022}/timezone/utc-offset.pipe.mjs +4 -4
- package/esm2022/title/title.directive.mjs +107 -0
- package/{esm2020 → esm2022}/title/title.module.mjs +5 -5
- package/{esm2020 → esm2022}/toast/toast-container.component.mjs +4 -4
- package/esm2022/toast/toast.component.mjs +92 -0
- package/esm2022/toast/toast.module.mjs +48 -0
- package/esm2022/toast/toast.service.mjs +188 -0
- package/esm2022/toggle/toggle.component.mjs +156 -0
- package/{esm2020 → esm2022}/toggle/toggle.module.mjs +5 -5
- package/esm2022/tooltip/tooltip.component.mjs +299 -0
- package/{esm2020 → esm2022}/tooltip/tooltip.module.mjs +14 -14
- package/esm2022/tree/data-source/flat-data-source.mjs +162 -0
- package/{esm2020 → esm2022}/tree/node.mjs +4 -4
- package/{esm2020 → esm2022}/tree/outlet.mjs +4 -4
- package/esm2022/tree/padding.directive.mjs +113 -0
- package/esm2022/tree/toggle.mjs +81 -0
- package/esm2022/tree/tree-base.mjs +243 -0
- package/esm2022/tree/tree-option.component.mjs +303 -0
- package/esm2022/tree/tree-selection.component.mjs +558 -0
- package/{esm2020 → esm2022}/tree/tree.mjs +4 -4
- package/{esm2020 → esm2022}/tree/tree.module.mjs +21 -21
- package/esm2022/tree-select/tree-select.component.mjs +936 -0
- package/{esm2020 → esm2022}/tree-select/tree-select.module.mjs +17 -17
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-autocomplete.mjs +80 -77
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button-toggle.mjs +47 -47
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button.mjs +25 -25
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-button.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-card.mjs +17 -17
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-card.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-checkbox.mjs +39 -39
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-checkbox.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-code-block.mjs +34 -34
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-code-block.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-core.mjs +600 -224
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-datepicker.mjs +335 -351
- package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-divider.mjs +7 -7
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-divider.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dl.mjs +21 -21
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dl.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dropdown.mjs +89 -89
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-ellipsis-center.mjs +11 -11
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-file-upload.mjs +55 -47
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-form-field.mjs +92 -87
- package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-icon.mjs +16 -16
- package/fesm2022/ptsecurity-mosaic-icon.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-input.mjs +128 -128
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-input.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-link.mjs +22 -22
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-link.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-list.mjs +88 -88
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-list.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +155 -0
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-markdown.mjs +19 -19
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-markdown.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-modal.mjs +157 -144
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-navbar.mjs +196 -187
- package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-popover.mjs +37 -37
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-popover.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-bar.mjs +9 -9
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-bar.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-spinner.mjs +18 -18
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-radio.mjs +80 -79
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-select.mjs +188 -174
- package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidebar.mjs +29 -29
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidebar.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidepanel.mjs +63 -63
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-sidepanel.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-splitter.mjs +55 -55
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-splitter.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-table.mjs +45 -0
- package/fesm2022/ptsecurity-mosaic-table.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tabs.mjs +188 -179
- package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tags.mjs +150 -144
- package/fesm2022/ptsecurity-mosaic-tags.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-textarea.mjs +41 -41
- package/{fesm2015 → fesm2022}/ptsecurity-mosaic-textarea.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timepicker.mjs +95 -95
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-timezone.mjs +314 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-title.mjs +18 -18
- package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toast.mjs +47 -41
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toggle.mjs +35 -35
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-toggle.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tooltip.mjs +47 -47
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tree-select.mjs +123 -123
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ptsecurity-mosaic-tree.mjs +203 -198
- package/fesm2022/ptsecurity-mosaic-tree.mjs.map +1 -0
- package/file-upload/_file-upload-theme.scss +2 -4
- package/file-upload/file-upload.d.ts +1 -1
- package/file-upload/multiple-file-upload.component.d.ts +5 -4
- package/file-upload/single-file-upload.component.d.ts +5 -4
- package/form-field/_form-field-theme.scss +7 -5
- package/form-field/form-field.d.ts +1 -2
- package/form-field/form-field.scss +1 -3
- package/form-field/hint.d.ts +1 -1
- package/form-field/password-hint.d.ts +6 -3
- package/icon/icon.component.d.ts +1 -1
- package/input/_input-theme.scss +7 -6
- package/input/input-number-validators.d.ts +2 -2
- package/input/input-number.d.ts +1 -1
- package/input/input-password.d.ts +2 -2
- package/input/input.d.ts +1 -1
- package/link/_link-theme.scss +7 -8
- package/link/link.component.d.ts +1 -1
- package/list/_list-theme.scss +2 -5
- package/list/list-selection.component.d.ts +2 -2
- package/loader-overlay/_loader-overlay-theme.scss +2 -5
- package/loader-overlay/loader-overlay.component.d.ts +1 -1
- package/loader-overlay/loader-overlay.scss +3 -0
- package/markdown/_markdown-theme.scss +3 -6
- package/markdown/markdown.component.d.ts +1 -1
- package/modal/_modal-theme.scss +3 -5
- package/modal/modal.component.d.ts +5 -2
- package/modal/modal.module.d.ts +2 -1
- package/modal/modal.scss +14 -2
- package/modal/modal.type.d.ts +3 -3
- package/navbar/_navbar-theme.scss +2 -6
- package/navbar/navbar-item.component.d.ts +5 -4
- package/navbar/navbar.component.d.ts +7 -4
- package/navbar/vertical-navbar.component.d.ts +5 -3
- package/package.json +156 -246
- package/popover/_popover-theme.scss +2 -6
- package/popover/popover-confirm.component.d.ts +1 -1
- package/popover/popover.component.d.ts +1 -1
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/progress-bar/progress-bar.component.d.ts +2 -2
- package/progress-spinner/progress-spinner.component.d.ts +3 -3
- package/radio/_radio-theme.scss +6 -6
- package/radio/radio.component.d.ts +2 -2
- package/select/_select-theme.scss +2 -5
- package/select/select.component.d.ts +12 -9
- package/select/select.scss +3 -1
- package/sidebar/sidebar.component.d.ts +3 -3
- package/sidepanel/_sidepanel-theme.scss +2 -5
- package/sidepanel/sidepanel-directives.d.ts +2 -2
- package/splitter/splitter.component.d.ts +3 -3
- package/table/_table-theme.scss +2 -5
- package/tabs/_tabs-theme.scss +2 -5
- package/tabs/paginated-tab-header.d.ts +3 -3
- package/tabs/tab-body.component.d.ts +3 -3
- package/tabs/tab-group.component.d.ts +2 -2
- package/tabs/tab-header.component.d.ts +2 -2
- package/tabs/tab-label-wrapper.directive.d.ts +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +1 -1
- package/tabs/tab.component.d.ts +1 -1
- package/tags/_tag-theme.scss +2 -5
- package/tags/tag-default-options.d.ts +4 -0
- package/tags/tag-input.d.ts +1 -1
- package/tags/tag-list.component.d.ts +2 -1
- package/tags/tag-list.scss +6 -2
- package/tags/tag.component.d.ts +2 -2
- package/textarea/_textarea-theme.scss +2 -5
- package/textarea/textarea.component.d.ts +1 -1
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/timezone/_timezone-option-theme.scss +2 -5
- package/timezone/timezone-option.component.d.ts +1 -1
- package/toast/_toast-theme.scss +2 -5
- package/toast/toast.type.d.ts +1 -1
- package/toggle/_toggle-theme.scss +2 -5
- package/toggle/toggle.component.d.ts +2 -2
- package/tooltip/_tooltip-theme.scss +2 -5
- package/tooltip/tooltip.component.d.ts +3 -3
- package/tree/_tree-theme.scss +2 -4
- package/tree/node.d.ts +1 -1
- package/tree/padding.directive.d.ts +1 -1
- package/tree/toggle.d.ts +2 -2
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.component.d.ts +1 -1
- package/tree/tree-option.scss +4 -2
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree-select/_tree-select-theme.scss +2 -5
- package/tree-select/tree-select.component.d.ts +1 -1
- package/esm2020/autocomplete/autocomplete-trigger.directive.mjs +0 -552
- package/esm2020/button/button.component.mjs +0 -148
- package/esm2020/button-toggle/button-toggle.component.mjs +0 -381
- package/esm2020/card/card.component.mjs +0 -80
- package/esm2020/checkbox/checkbox.mjs +0 -300
- package/esm2020/code-block/code-block.component.mjs +0 -157
- package/esm2020/code-block/code-block.module.mjs +0 -60
- package/esm2020/core/common-behaviors/color.mjs +0 -33
- package/esm2020/core/formatters/index.mjs +0 -78
- package/esm2020/core/formatters/number/formatter.mjs +0 -129
- package/esm2020/core/locales/en-US.mjs +0 -10
- package/esm2020/core/locales/es-LA.mjs +0 -6
- package/esm2020/core/locales/fa-IR.mjs +0 -6
- package/esm2020/core/locales/pt-BR.mjs +0 -6
- package/esm2020/core/locales/ru-RU.mjs +0 -10
- package/esm2020/core/locales/zh-CN.mjs +0 -6
- package/esm2020/core/option/option.mjs +0 -262
- package/esm2020/core/overlay/overlay-position-map.mjs +0 -245
- package/esm2020/core/services/measure-scrollbar.service.mjs +0 -48
- package/esm2020/datepicker/calendar-header.component.mjs +0 -134
- package/esm2020/datepicker/calendar.component.mjs +0 -175
- package/esm2020/datepicker/datepicker-input.directive.mjs +0 -954
- package/esm2020/datepicker/datepicker-toggle.component.mjs +0 -86
- package/esm2020/datepicker/datepicker.component.mjs +0 -393
- package/esm2020/datepicker/month-view.component.mjs +0 -158
- package/esm2020/dropdown/dropdown-trigger.directive.mjs +0 -489
- package/esm2020/dropdown/dropdown.component.mjs +0 -292
- package/esm2020/ellipsis-center/ellipsis-center.directive.mjs +0 -106
- package/esm2020/file-upload/multiple-file-upload.component.mjs +0 -161
- package/esm2020/file-upload/single-file-upload.component.mjs +0 -130
- package/esm2020/form-field/form-field.mjs +0 -270
- package/esm2020/form-field/password-hint.mjs +0 -138
- package/esm2020/form-field/validate.directive.mjs +0 -158
- package/esm2020/input/input-number.mjs +0 -168
- package/esm2020/input/input-password.mjs +0 -343
- package/esm2020/input/input.mjs +0 -297
- package/esm2020/link/link.component.mjs +0 -122
- package/esm2020/list/list-selection.component.mjs +0 -705
- package/esm2020/loader-overlay/loader-overlay.component.mjs +0 -103
- package/esm2020/modal/modal-control.service.mjs +0 -85
- package/esm2020/modal/modal.component.mjs +0 -510
- package/esm2020/modal/modal.module.mjs +0 -71
- package/esm2020/navbar/navbar-item.component.mjs +0 -605
- package/esm2020/navbar/navbar.component.mjs +0 -239
- package/esm2020/popover/popover-confirm.component.mjs +0 -108
- package/esm2020/popover/popover.component.mjs +0 -266
- package/esm2020/radio/radio.component.mjs +0 -456
- package/esm2020/select/select-option.directive.mjs +0 -65
- package/esm2020/select/select.component.mjs +0 -1146
- package/esm2020/sidebar/sidebar.component.mjs +0 -146
- package/esm2020/sidepanel/sidepanel-container.component.mjs +0 -110
- package/esm2020/splitter/splitter.component.mjs +0 -482
- package/esm2020/tabs/paginated-tab-header.mjs +0 -488
- package/esm2020/tabs/tab-body.component.mjs +0 -179
- package/esm2020/tabs/tab-group.component.mjs +0 -349
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +0 -111
- package/esm2020/tags/tag-default-options.mjs +0 -4
- package/esm2020/tags/tag-input.mjs +0 -248
- package/esm2020/tags/tag-list.component.mjs +0 -714
- package/esm2020/tags/tag.component.mjs +0 -381
- package/esm2020/tags/tag.module.mjs +0 -56
- package/esm2020/textarea/textarea.component.mjs +0 -254
- package/esm2020/timepicker/timepicker.directive.mjs +0 -647
- package/esm2020/timezone/timezone-option.component.mjs +0 -48
- package/esm2020/title/title.directive.mjs +0 -107
- package/esm2020/toast/toast.component.mjs +0 -92
- package/esm2020/toast/toast.module.mjs +0 -42
- package/esm2020/toast/toast.service.mjs +0 -188
- package/esm2020/toggle/toggle.component.mjs +0 -156
- package/esm2020/tooltip/tooltip.component.mjs +0 -299
- package/esm2020/tree/data-source/flat-data-source.mjs +0 -162
- package/esm2020/tree/padding.directive.mjs +0 -113
- package/esm2020/tree/toggle.mjs +0 -81
- package/esm2020/tree/tree-base.mjs +0 -243
- package/esm2020/tree/tree-option.component.mjs +0 -299
- package/esm2020/tree/tree-selection.component.mjs +0 -557
- package/esm2020/tree-select/tree-select.component.mjs +0 -936
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs +0 -753
- package/fesm2015/ptsecurity-mosaic-autocomplete.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs +0 -405
- package/fesm2015/ptsecurity-mosaic-button-toggle.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-button.mjs +0 -193
- package/fesm2015/ptsecurity-mosaic-button.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-card.mjs +0 -111
- package/fesm2015/ptsecurity-mosaic-card.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs +0 -351
- package/fesm2015/ptsecurity-mosaic-checkbox.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-code-block.mjs +0 -280
- package/fesm2015/ptsecurity-mosaic-code-block.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-core.mjs +0 -2314
- package/fesm2015/ptsecurity-mosaic-core.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs +0 -2112
- package/fesm2015/ptsecurity-mosaic-datepicker.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-divider.mjs +0 -61
- package/fesm2015/ptsecurity-mosaic-divider.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-dl.mjs +0 -126
- package/fesm2015/ptsecurity-mosaic-dl.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs +0 -1115
- package/fesm2015/ptsecurity-mosaic-dropdown.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-ellipsis-center.mjs +0 -113
- package/fesm2015/ptsecurity-mosaic-ellipsis-center.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-file-upload.mjs +0 -392
- package/fesm2015/ptsecurity-mosaic-file-upload.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-form-field.mjs +0 -768
- package/fesm2015/ptsecurity-mosaic-form-field.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-icon.mjs +0 -86
- package/fesm2015/ptsecurity-mosaic-icon.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-input.mjs +0 -951
- package/fesm2015/ptsecurity-mosaic-input.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-link.mjs +0 -150
- package/fesm2015/ptsecurity-mosaic-link.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-list.mjs +0 -807
- package/fesm2015/ptsecurity-mosaic-list.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-loader-overlay.mjs +0 -157
- package/fesm2015/ptsecurity-mosaic-markdown.mjs +0 -128
- package/fesm2015/ptsecurity-mosaic-markdown.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-modal.mjs +0 -875
- package/fesm2015/ptsecurity-mosaic-modal.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-navbar.mjs +0 -1054
- package/fesm2015/ptsecurity-mosaic-navbar.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-popover.mjs +0 -411
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs +0 -74
- package/fesm2015/ptsecurity-mosaic-progress-bar.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs +0 -93
- package/fesm2015/ptsecurity-mosaic-progress-spinner.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-radio.mjs +0 -480
- package/fesm2015/ptsecurity-mosaic-select.mjs +0 -1286
- package/fesm2015/ptsecurity-mosaic-select.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs +0 -202
- package/fesm2015/ptsecurity-mosaic-sidebar.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs +0 -622
- package/fesm2015/ptsecurity-mosaic-sidepanel.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-splitter.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-table.mjs +0 -45
- package/fesm2015/ptsecurity-mosaic-table.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tabs.mjs +0 -1523
- package/fesm2015/ptsecurity-mosaic-tabs.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tags.mjs +0 -1391
- package/fesm2015/ptsecurity-mosaic-tags.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-textarea.mjs +0 -280
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs +0 -708
- package/fesm2015/ptsecurity-mosaic-timepicker.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-timezone.mjs +0 -316
- package/fesm2015/ptsecurity-mosaic-timezone.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-title.mjs +0 -128
- package/fesm2015/ptsecurity-mosaic-title.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-toast.mjs +0 -379
- package/fesm2015/ptsecurity-mosaic-toast.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-toggle.mjs +0 -178
- package/fesm2015/ptsecurity-mosaic-toggle.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs +0 -369
- package/fesm2015/ptsecurity-mosaic-tooltip.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs +0 -983
- package/fesm2015/ptsecurity-mosaic-tree-select.mjs.map +0 -1
- package/fesm2015/ptsecurity-mosaic-tree.mjs +0 -1815
- package/fesm2015/ptsecurity-mosaic-tree.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-autocomplete.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-core.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-datepicker.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-file-upload.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-form-field.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-icon.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs +0 -155
- package/fesm2020/ptsecurity-mosaic-loader-overlay.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-modal.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-navbar.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-popover.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-radio.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-select.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-splitter.mjs +0 -524
- package/fesm2020/ptsecurity-mosaic-table.mjs +0 -45
- package/fesm2020/ptsecurity-mosaic-table.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-tabs.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-tags.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-textarea.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-timezone.mjs +0 -314
- package/fesm2020/ptsecurity-mosaic-title.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-tree-select.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic-tree.mjs.map +0 -1
- package/fesm2020/ptsecurity-mosaic.mjs +0 -4
- package/fesm2020/ptsecurity-mosaic.mjs.map +0 -1
- /package/{esm2020 → esm2022}/autocomplete/index.mjs +0 -0
- /package/{esm2020 → esm2022}/autocomplete/ptsecurity-mosaic-autocomplete.mjs +0 -0
- /package/{esm2020 → esm2022}/autocomplete/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/button/index.mjs +0 -0
- /package/{esm2020 → esm2022}/button/ptsecurity-mosaic-button.mjs +0 -0
- /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/button-toggle/index.mjs +0 -0
- /package/{esm2020 → esm2022}/button-toggle/ptsecurity-mosaic-button-toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/button-toggle/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/card/index.mjs +0 -0
- /package/{esm2020 → esm2022}/card/ptsecurity-mosaic-card.mjs +0 -0
- /package/{esm2020 → esm2022}/card/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/checkbox-config.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/ptsecurity-mosaic-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/code-block/code-block.types.mjs +0 -0
- /package/{esm2020 → esm2022}/code-block/index.mjs +0 -0
- /package/{esm2020 → esm2022}/code-block/ptsecurity-mosaic-code-block.mjs +0 -0
- /package/{esm2020 → esm2022}/code-block/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/animation.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/fade-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/animation/select-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common-behaviors/constructor.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common-behaviors/error-state.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common-behaviors/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/datetime/date-adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/core/datetime/date-formats.mjs +0 -0
- /package/{esm2020 → esm2022}/core/datetime/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/forms/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/label/label-options.mjs +0 -0
- /package/{esm2020 → esm2022}/core/locales/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/option/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/pop-up/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/core/pop-up/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/ptsecurity-mosaic-core.mjs +0 -0
- /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/select/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/core/select/errors.mjs +0 -0
- /package/{esm2020 → esm2022}/core/select/events.mjs +0 -0
- /package/{esm2020 → esm2022}/core/select/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/selection/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/core/selection/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/title/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/title/title-text-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/data-size/config.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/data-size/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/data-size/size.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/utils/utils.mjs +0 -0
- /package/{esm2020 → esm2022}/core/validation/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/validation/validation.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/datepicker-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/datepicker-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/ptsecurity-mosaic-datepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/datepicker/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/divider/index.mjs +0 -0
- /package/{esm2020 → esm2022}/divider/ptsecurity-mosaic-divider.mjs +0 -0
- /package/{esm2020 → esm2022}/divider/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/dl/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dl/ptsecurity-mosaic-dl.mjs +0 -0
- /package/{esm2020 → esm2022}/dl/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/dropdown-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/dropdown-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/dropdown.types.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/ptsecurity-mosaic-dropdown.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/ellipsis-center/index.mjs +0 -0
- /package/{esm2020 → esm2022}/ellipsis-center/ptsecurity-mosaic-ellipsis-center.mjs +0 -0
- /package/{esm2020 → esm2022}/ellipsis-center/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/file-upload/file-upload.mjs +0 -0
- /package/{esm2020 → esm2022}/file-upload/index.mjs +0 -0
- /package/{esm2020 → esm2022}/file-upload/ptsecurity-mosaic-file-upload.mjs +0 -0
- /package/{esm2020 → esm2022}/file-upload/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/form-field-control.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/form-field-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/index.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/ptsecurity-mosaic-form-field.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/index.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/ptsecurity-mosaic-icon.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/index.mjs +0 -0
- /package/{esm2020 → esm2022}/input/input-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/input/input-value-accessor.mjs +0 -0
- /package/{esm2020 → esm2022}/input/ptsecurity-mosaic-input.mjs +0 -0
- /package/{esm2020 → esm2022}/input/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/link/index.mjs +0 -0
- /package/{esm2020 → esm2022}/link/ptsecurity-mosaic-link.mjs +0 -0
- /package/{esm2020 → esm2022}/link/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/list/index.mjs +0 -0
- /package/{esm2020 → esm2022}/list/ptsecurity-mosaic-list.mjs +0 -0
- /package/{esm2020 → esm2022}/list/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/loader-overlay/index.mjs +0 -0
- /package/{esm2020 → esm2022}/loader-overlay/ptsecurity-mosaic-loader-overlay.mjs +0 -0
- /package/{esm2020 → esm2022}/loader-overlay/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/markdown/index.mjs +0 -0
- /package/{esm2020 → esm2022}/markdown/markdown.values.mjs +0 -0
- /package/{esm2020 → esm2022}/markdown/ptsecurity-mosaic-markdown.mjs +0 -0
- /package/{esm2020 → esm2022}/markdown/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/index.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/modal-ref.class.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/modal-util.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/modal.type.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/ptsecurity-mosaic-modal.mjs +0 -0
- /package/{esm2020 → esm2022}/modal/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/ptsecurity-mosaic-navbar.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/navbar/vertical-navbar.animation.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/index.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/popover-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/ptsecurity-mosaic-popover.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-bar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-bar/ptsecurity-mosaic-progress-bar.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-bar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-spinner/index.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-spinner/ptsecurity-mosaic-progress-spinner.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-spinner/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/ptsecurity-mosaic.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/index.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/ptsecurity-mosaic-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/select/index.mjs +0 -0
- /package/{esm2020 → esm2022}/select/ptsecurity-mosaic-select.mjs +0 -0
- /package/{esm2020 → esm2022}/select/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/ptsecurity-mosaic-sidebar.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/sidebar/sidebar-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/index.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/ptsecurity-mosaic-sidepanel.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/sidepanel-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/sidepanel-config.mjs +0 -0
- /package/{esm2020 → esm2022}/sidepanel/sidepanel-ref.mjs +0 -0
- /package/{esm2020 → esm2022}/splitter/index.mjs +0 -0
- /package/{esm2020 → esm2022}/splitter/ptsecurity-mosaic-splitter.mjs +0 -0
- /package/{esm2020 → esm2022}/splitter/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/table/index.mjs +0 -0
- /package/{esm2020 → esm2022}/table/ptsecurity-mosaic-table.mjs +0 -0
- /package/{esm2020 → esm2022}/table/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/ptsecurity-mosaic-tabs.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/tab-nav-bar/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/tabs-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/tags/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tags/ptsecurity-mosaic-tags.mjs +0 -0
- /package/{esm2020 → esm2022}/tags/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tags/tag-text-control.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/index.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/ptsecurity-mosaic-textarea.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/index.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/ptsecurity-mosaic-timepicker.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/timepicker/timepicker.constants.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/index.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/ptsecurity-mosaic-timezone.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/timezone.models.mjs +0 -0
- /package/{esm2020 → esm2022}/timezone/timezone.utils.mjs +0 -0
- /package/{esm2020 → esm2022}/title/index.mjs +0 -0
- /package/{esm2020 → esm2022}/title/ptsecurity-mosaic-title.mjs +0 -0
- /package/{esm2020 → esm2022}/title/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/index.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/ptsecurity-mosaic-toast.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/toast-animations.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/toast.type.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/index.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/ptsecurity-mosaic-toggle.mjs +0 -0
- /package/{esm2020 → esm2022}/toggle/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/ptsecurity-mosaic-tooltip.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/tooltip.animations.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/control/base-tree-control.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/control/flat-tree-control.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/control/nested-tree-control.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/control/tree-control.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/data-source/nested-data-source.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/ptsecurity-mosaic-tree.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tree/tree-errors.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/index.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/ptsecurity-mosaic-tree-select.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-select/public-api.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ptsecurity-mosaic.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ptsecurity-mosaic.mjs.map +0 -0
@@ -1,753 +0,0 @@
|
|
1
|
-
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
2
|
-
import * as i0 from '@angular/core';
|
3
|
-
import { InjectionToken, EventEmitter, TemplateRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Inject, ViewChild, ContentChildren, Input, Output, Directive, forwardRef, Optional, Host, NgModule } from '@angular/core';
|
4
|
-
import { ActiveDescendantKeyManager } from '@ptsecurity/cdk/a11y';
|
5
|
-
import { MC_OPTION_PARENT_COMPONENT, McOption, McOptgroup, McOptionSelectionChange, countGroupLabelsBeforeOption, getOptionScrollPosition, McOptionModule, McCommonModule } from '@ptsecurity/mosaic/core';
|
6
|
-
import * as i1 from '@angular/common';
|
7
|
-
import { DOCUMENT, CommonModule } from '@angular/common';
|
8
|
-
import * as i1$1 from '@angular/cdk/overlay';
|
9
|
-
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
10
|
-
import { TemplatePortal } from '@angular/cdk/portal';
|
11
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
12
|
-
import { ESCAPE, ENTER, TAB, DOWN_ARROW, UP_ARROW } from '@ptsecurity/cdk/keycodes';
|
13
|
-
import { defer, merge, Subscription, Subject, of, fromEvent } from 'rxjs';
|
14
|
-
import { take, switchMap, filter, map, tap, delay } from 'rxjs/operators';
|
15
|
-
import * as i2 from '@angular/cdk/bidi';
|
16
|
-
import * as i3 from '@ptsecurity/mosaic/form-field';
|
17
|
-
import * as i4 from '@angular/cdk/scrolling';
|
18
|
-
|
19
|
-
/**
|
20
|
-
* Autocomplete IDs need to be unique across components, so this counter exists outside of
|
21
|
-
* the component definition.
|
22
|
-
*/
|
23
|
-
let uniqueAutocompleteIdCounter = 0;
|
24
|
-
class McAutocompleteSelectedEvent {
|
25
|
-
constructor(source, option) {
|
26
|
-
this.source = source;
|
27
|
-
this.option = option;
|
28
|
-
}
|
29
|
-
}
|
30
|
-
/** Injection token to be used to override the default options for `mc-autocomplete`. */
|
31
|
-
const MC_AUTOCOMPLETE_DEFAULT_OPTIONS = new InjectionToken('mc-autocomplete-default-options', {
|
32
|
-
providedIn: 'root',
|
33
|
-
factory: MC_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY
|
34
|
-
});
|
35
|
-
function MC_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY() {
|
36
|
-
return { autoActiveFirstOption: true };
|
37
|
-
}
|
38
|
-
class McAutocomplete {
|
39
|
-
constructor(changeDetectorRef, elementRef, defaults) {
|
40
|
-
this.changeDetectorRef = changeDetectorRef;
|
41
|
-
this.elementRef = elementRef;
|
42
|
-
/** Unique ID to be used by autocomplete trigger's "aria-owns" property. */
|
43
|
-
this.id = `mc-autocomplete-${uniqueAutocompleteIdCounter++}`;
|
44
|
-
/** Whether the autocomplete panel should be visible, depending on option length. */
|
45
|
-
this.showPanel = false;
|
46
|
-
/** Function that maps an option's control value to its display value in the trigger. */
|
47
|
-
this.displayWith = null;
|
48
|
-
/** Event that is emitted whenever an option from the list is selected. */
|
49
|
-
this.optionSelected = new EventEmitter();
|
50
|
-
/** Event that is emitted when the autocomplete panel is opened. */
|
51
|
-
this.opened = new EventEmitter();
|
52
|
-
/** Event that is emitted when the autocomplete panel is closed. */
|
53
|
-
this.closed = new EventEmitter();
|
54
|
-
this._classList = {};
|
55
|
-
this._isOpen = false;
|
56
|
-
this._openOnFocus = true;
|
57
|
-
this._autoActiveFirstOption = !!defaults.autoActiveFirstOption;
|
58
|
-
}
|
59
|
-
/**
|
60
|
-
* Takes classes set on the host mc-autocomplete element and applies them to the panel
|
61
|
-
* inside the overlay container to allow for easy styling.
|
62
|
-
*/
|
63
|
-
get classList() {
|
64
|
-
return this._classList;
|
65
|
-
}
|
66
|
-
set classList(value) {
|
67
|
-
if (value && value.length) {
|
68
|
-
value.split(' ')
|
69
|
-
.forEach((className) => this._classList[className.trim()] = true);
|
70
|
-
this.elementRef.nativeElement.className = '';
|
71
|
-
}
|
72
|
-
}
|
73
|
-
/**
|
74
|
-
* Whether the first option should be highlighted when the autocomplete panel is opened.
|
75
|
-
* Can be configured globally through the `MC_AUTOCOMPLETE_DEFAULT_OPTIONS` token.
|
76
|
-
*/
|
77
|
-
get autoActiveFirstOption() {
|
78
|
-
return this._autoActiveFirstOption;
|
79
|
-
}
|
80
|
-
set autoActiveFirstOption(value) {
|
81
|
-
this._autoActiveFirstOption = coerceBooleanProperty(value);
|
82
|
-
}
|
83
|
-
get isOpen() {
|
84
|
-
return this._isOpen && this.showPanel;
|
85
|
-
}
|
86
|
-
set isOpen(value) {
|
87
|
-
this._isOpen = value;
|
88
|
-
}
|
89
|
-
get openOnFocus() {
|
90
|
-
return this._openOnFocus;
|
91
|
-
}
|
92
|
-
set openOnFocus(value) {
|
93
|
-
this._openOnFocus = value;
|
94
|
-
}
|
95
|
-
ngAfterContentInit() {
|
96
|
-
this.keyManager = new ActiveDescendantKeyManager(this.options);
|
97
|
-
this.setVisibility();
|
98
|
-
}
|
99
|
-
setScrollTop(scrollTop) {
|
100
|
-
if (this.panel) {
|
101
|
-
this.panel.nativeElement.scrollTop = scrollTop;
|
102
|
-
}
|
103
|
-
}
|
104
|
-
getScrollTop() {
|
105
|
-
return this.panel ? this.panel.nativeElement.scrollTop : 0;
|
106
|
-
}
|
107
|
-
setVisibility() {
|
108
|
-
this.showPanel = !!this.options.length;
|
109
|
-
this._classList['mc-autocomplete_visible'] = this.showPanel;
|
110
|
-
this._classList['mc-autocomplete_hidden'] = !this.showPanel;
|
111
|
-
this.changeDetectorRef.markForCheck();
|
112
|
-
}
|
113
|
-
emitSelectEvent(option) {
|
114
|
-
const event = new McAutocompleteSelectedEvent(this, option);
|
115
|
-
this.optionSelected.emit(event);
|
116
|
-
}
|
117
|
-
onKeydown(event) {
|
118
|
-
this.keyManager.onKeydown(event);
|
119
|
-
}
|
120
|
-
}
|
121
|
-
/** @nocollapse */ McAutocomplete.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAutocomplete, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: MC_AUTOCOMPLETE_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
|
122
|
-
/** @nocollapse */ McAutocomplete.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: McAutocomplete, selector: "mc-autocomplete", inputs: { displayWith: "displayWith", panelWidth: "panelWidth", classList: ["class", "classList"], autoActiveFirstOption: "autoActiveFirstOption", openOnFocus: "openOnFocus" }, outputs: { optionSelected: "optionSelected", opened: "opened", closed: "closed" }, host: { classAttribute: "mc-autocomplete" }, providers: [{
|
123
|
-
provide: MC_OPTION_PARENT_COMPONENT, useExisting: McAutocomplete
|
124
|
-
}], queries: [{ propertyName: "options", predicate: McOption, descendants: true }, { propertyName: "optionGroups", predicate: McOptgroup }], viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }, { propertyName: "panel", first: true, predicate: ["panel"], descendants: true }], exportAs: ["mcAutocomplete"], ngImport: i0, template: "<ng-template>\n <div class=\"mc-autocomplete-panel mc-scrollbar\" role=\"listbox\" [id]=\"id\" [ngClass]=\"classList\" #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".mc-autocomplete-trigger{text-overflow:ellipsis}.mc-autocomplete-panel{visibility:hidden;position:relative;overflow:hidden auto;-webkit-overflow-scrolling:touch;margin-top:-1px;min-width:100%;width:100%;max-width:none;max-height:var(--mc-autocomplete-size-panel-max-height, 256px);border-width:1px;border-style:solid;border-bottom-left-radius:var(--mc-autocomplete-size-panel-border-radius, 4px);border-bottom-right-radius:var(--mc-autocomplete-size-panel-border-radius, 4px);padding:var(--mc-autocomplete-size-panel-padding, 4px 0)}.mc-autocomplete-panel.mc-autocomplete_visible{visibility:visible}.mc-autocomplete-panel.mc-autocomplete_hidden{visibility:hidden}.mc-autocomplete-panel-above .mc-autocomplete-panel{border-radius:var(--mc-autocomplete-size-panel-border-radius, 4px) var(--mc-autocomplete-size-panel-border-radius, 4px) 0 0}.mc-autocomplete-panel .mc-divider-horizontal{margin-top:-1px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAutocomplete, decorators: [{
|
126
|
-
type: Component,
|
127
|
-
args: [{ selector: 'mc-autocomplete', exportAs: 'mcAutocomplete', host: {
|
128
|
-
class: 'mc-autocomplete'
|
129
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
|
130
|
-
provide: MC_OPTION_PARENT_COMPONENT, useExisting: McAutocomplete
|
131
|
-
}], template: "<ng-template>\n <div class=\"mc-autocomplete-panel mc-scrollbar\" role=\"listbox\" [id]=\"id\" [ngClass]=\"classList\" #panel>\n <ng-content></ng-content>\n </div>\n</ng-template>\n", styles: [".mc-autocomplete-trigger{text-overflow:ellipsis}.mc-autocomplete-panel{visibility:hidden;position:relative;overflow:hidden auto;-webkit-overflow-scrolling:touch;margin-top:-1px;min-width:100%;width:100%;max-width:none;max-height:var(--mc-autocomplete-size-panel-max-height, 256px);border-width:1px;border-style:solid;border-bottom-left-radius:var(--mc-autocomplete-size-panel-border-radius, 4px);border-bottom-right-radius:var(--mc-autocomplete-size-panel-border-radius, 4px);padding:var(--mc-autocomplete-size-panel-padding, 4px 0)}.mc-autocomplete-panel.mc-autocomplete_visible{visibility:visible}.mc-autocomplete-panel.mc-autocomplete_hidden{visibility:hidden}.mc-autocomplete-panel-above .mc-autocomplete-panel{border-radius:var(--mc-autocomplete-size-panel-border-radius, 4px) var(--mc-autocomplete-size-panel-border-radius, 4px) 0 0}.mc-autocomplete-panel .mc-divider-horizontal{margin-top:-1px}\n"] }]
|
132
|
-
}], ctorParameters: function () {
|
133
|
-
return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
134
|
-
type: Inject,
|
135
|
-
args: [MC_AUTOCOMPLETE_DEFAULT_OPTIONS]
|
136
|
-
}] }];
|
137
|
-
}, propDecorators: { template: [{
|
138
|
-
type: ViewChild,
|
139
|
-
args: [TemplateRef, { static: true }]
|
140
|
-
}], panel: [{
|
141
|
-
type: ViewChild,
|
142
|
-
args: ['panel', { static: false }]
|
143
|
-
}], options: [{
|
144
|
-
type: ContentChildren,
|
145
|
-
args: [McOption, { descendants: true }]
|
146
|
-
}], optionGroups: [{
|
147
|
-
type: ContentChildren,
|
148
|
-
args: [McOptgroup]
|
149
|
-
}], displayWith: [{
|
150
|
-
type: Input
|
151
|
-
}], panelWidth: [{
|
152
|
-
type: Input
|
153
|
-
}], optionSelected: [{
|
154
|
-
type: Output
|
155
|
-
}], opened: [{
|
156
|
-
type: Output
|
157
|
-
}], closed: [{
|
158
|
-
type: Output
|
159
|
-
}], classList: [{
|
160
|
-
type: Input,
|
161
|
-
args: ['class']
|
162
|
-
}], autoActiveFirstOption: [{
|
163
|
-
type: Input
|
164
|
-
}], openOnFocus: [{
|
165
|
-
type: Input
|
166
|
-
}] } });
|
167
|
-
|
168
|
-
/**
|
169
|
-
* Directive applied to an element to make it usable
|
170
|
-
* as a connection point for an autocomplete panel.
|
171
|
-
*/
|
172
|
-
class McAutocompleteOrigin {
|
173
|
-
constructor(elementRef) {
|
174
|
-
this.elementRef = elementRef;
|
175
|
-
}
|
176
|
-
}
|
177
|
-
/** @nocollapse */ McAutocompleteOrigin.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAutocompleteOrigin, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
178
|
-
/** @nocollapse */ McAutocompleteOrigin.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McAutocompleteOrigin, selector: "[mcAutocompleteOrigin]", exportAs: ["mcAutocompleteOrigin"], ngImport: i0 });
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAutocompleteOrigin, decorators: [{
|
180
|
-
type: Directive,
|
181
|
-
args: [{
|
182
|
-
selector: '[mcAutocompleteOrigin]',
|
183
|
-
exportAs: 'mcAutocompleteOrigin'
|
184
|
-
}]
|
185
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
186
|
-
|
187
|
-
/**
|
188
|
-
* The following style constants are necessary to save here in order
|
189
|
-
* to properly calculate the scrollTop of the panel. Because we are not
|
190
|
-
* actually focusing the active item, scroll must be handled manually.
|
191
|
-
*/
|
192
|
-
/** The height of each autocomplete option. */
|
193
|
-
const AUTOCOMPLETE_OPTION_HEIGHT = 32;
|
194
|
-
/** The total height of the autocomplete panel. */
|
195
|
-
const AUTOCOMPLETE_PANEL_HEIGHT = 256;
|
196
|
-
const AUTOCOMPLETE_BORDER_WIDTH = 2;
|
197
|
-
/** Injection token that determines the scroll handling while the autocomplete panel is open. */
|
198
|
-
const MC_AUTOCOMPLETE_SCROLL_STRATEGY = new InjectionToken('mc-autocomplete-scroll-strategy');
|
199
|
-
function MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY(overlay) {
|
200
|
-
return () => overlay.scrollStrategies.reposition();
|
201
|
-
}
|
202
|
-
const MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
203
|
-
provide: MC_AUTOCOMPLETE_SCROLL_STRATEGY,
|
204
|
-
deps: [Overlay],
|
205
|
-
useFactory: MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY
|
206
|
-
};
|
207
|
-
/**
|
208
|
-
* Provider that allows the autocomplete to register as a ControlValueAccessor.
|
209
|
-
* @docs-private
|
210
|
-
*/
|
211
|
-
const MAT_AUTOCOMPLETE_VALUE_ACCESSOR = {
|
212
|
-
provide: NG_VALUE_ACCESSOR,
|
213
|
-
useExisting: forwardRef(() => McAutocompleteTrigger),
|
214
|
-
multi: true
|
215
|
-
};
|
216
|
-
/**
|
217
|
-
* Creates an error to be thrown when attempting to use an autocomplete trigger without a panel.
|
218
|
-
* @docs-private
|
219
|
-
*/
|
220
|
-
function getMcAutocompleteMissingPanelError() {
|
221
|
-
return Error('Attempting to open an undefined instance of `mc-autocomplete`. ' +
|
222
|
-
'Make sure that the id passed to the `mcAutocomplete` is correct and that ' +
|
223
|
-
'you\'re attempting to open it after the ngAfterContentInit hook.');
|
224
|
-
}
|
225
|
-
class McAutocompleteTrigger {
|
226
|
-
constructor(elementRef, viewContainerRef, changeDetectorRef, overlay, zone, scrollStrategy, dir, formField, document,
|
227
|
-
// @breaking-change 8.0.0 Make `_viewportRuler` required.
|
228
|
-
viewportRuler) {
|
229
|
-
this.elementRef = elementRef;
|
230
|
-
this.viewContainerRef = viewContainerRef;
|
231
|
-
this.changeDetectorRef = changeDetectorRef;
|
232
|
-
this.overlay = overlay;
|
233
|
-
this.zone = zone;
|
234
|
-
this.dir = dir;
|
235
|
-
this.formField = formField;
|
236
|
-
this.document = document;
|
237
|
-
this.viewportRuler = viewportRuler;
|
238
|
-
// @ts-ignore
|
239
|
-
this.optionSelections = defer(() => {
|
240
|
-
if (this.autocomplete && this.autocomplete.options) {
|
241
|
-
return merge(...this.autocomplete.options.map((option) => option.onSelectionChange));
|
242
|
-
}
|
243
|
-
// If there are any subscribers before `ngAfterViewInit`, the `autocomplete` will be undefined.
|
244
|
-
// Return a stream that we'll replace with the real one once everything is in place.
|
245
|
-
return this.zone.onStable
|
246
|
-
.asObservable()
|
247
|
-
.pipe(take(1), switchMap(() => this.optionSelections));
|
248
|
-
});
|
249
|
-
/**
|
250
|
-
* `autocomplete` attribute to be set on the input element.
|
251
|
-
* @docs-private
|
252
|
-
*/
|
253
|
-
this.autocompleteAttribute = 'off';
|
254
|
-
this._autocompleteDisabled = false;
|
255
|
-
this.overlayAttached = false;
|
256
|
-
this.componentDestroyed = false;
|
257
|
-
/** Subscription to viewport size changes. */
|
258
|
-
this.viewportSubscription = Subscription.EMPTY;
|
259
|
-
/**
|
260
|
-
* Whether the autocomplete can open the next time it is focused. Used to prevent a focused,
|
261
|
-
* closed autocomplete from being reopened if the user switches to another browser tab and then
|
262
|
-
* comes back.
|
263
|
-
*/
|
264
|
-
this.canOpenOnNextFocus = true;
|
265
|
-
/** Stream of keyboard events that can close the panel. */
|
266
|
-
this.closeKeyEventStream = new Subject();
|
267
|
-
/** `View -> model callback called when value changes` */
|
268
|
-
// tslint:disable-next-line no-empty
|
269
|
-
this.onChange = () => { };
|
270
|
-
/** `View -> model callback called when autocomplete has been touched` */
|
271
|
-
// tslint:disable-next-line no-empty
|
272
|
-
this.onTouched = () => { };
|
273
|
-
/**
|
274
|
-
* Event handler for when the window is blurred. Needs to be an
|
275
|
-
* arrow function in order to preserve the context.
|
276
|
-
*/
|
277
|
-
this.windowBlurHandler = () => {
|
278
|
-
// If the user blurred the window while the autocomplete is focused, it means that it'll be
|
279
|
-
// refocused when they come back. In this case we want to skip the first focus event, if the
|
280
|
-
// pane was closed, in order to avoid reopening it unintentionally.
|
281
|
-
this.canOpenOnNextFocus = this.document.activeElement !== this.elementRef.nativeElement || this.panelOpen;
|
282
|
-
};
|
283
|
-
// tslint:disable-next-line no-typeof-undefined
|
284
|
-
if (typeof window !== 'undefined') {
|
285
|
-
zone.runOutsideAngular(() => {
|
286
|
-
window.addEventListener('blur', this.windowBlurHandler);
|
287
|
-
});
|
288
|
-
}
|
289
|
-
this.scrollStrategy = scrollStrategy;
|
290
|
-
}
|
291
|
-
/** The currently active option, coerced to MatOption type. */
|
292
|
-
get activeOption() {
|
293
|
-
var _a, _b;
|
294
|
-
return (_b = (_a = this.autocomplete) === null || _a === void 0 ? void 0 : _a.keyManager) === null || _b === void 0 ? void 0 : _b.activeItem;
|
295
|
-
}
|
296
|
-
get panelOpen() {
|
297
|
-
return this.overlayAttached && this.autocomplete.showPanel;
|
298
|
-
}
|
299
|
-
/**
|
300
|
-
* Whether the autocomplete is disabled. When disabled, the element will
|
301
|
-
* act as a regular input and the user won't be able to open the panel.
|
302
|
-
*/
|
303
|
-
get autocompleteDisabled() {
|
304
|
-
return this._autocompleteDisabled;
|
305
|
-
}
|
306
|
-
set autocompleteDisabled(value) {
|
307
|
-
this._autocompleteDisabled = coerceBooleanProperty(value);
|
308
|
-
}
|
309
|
-
ngOnDestroy() {
|
310
|
-
// tslint:disable-next-line no-typeof-undefined
|
311
|
-
if (typeof window !== 'undefined') {
|
312
|
-
window.removeEventListener('blur', this.windowBlurHandler);
|
313
|
-
}
|
314
|
-
this.viewportSubscription.unsubscribe();
|
315
|
-
this.componentDestroyed = true;
|
316
|
-
this.destroyPanel();
|
317
|
-
this.closeKeyEventStream.complete();
|
318
|
-
}
|
319
|
-
/** Opens the autocomplete suggestion panel. */
|
320
|
-
openPanel() {
|
321
|
-
this.attachOverlay();
|
322
|
-
}
|
323
|
-
closePanel() {
|
324
|
-
if (!this.overlayAttached) {
|
325
|
-
return;
|
326
|
-
}
|
327
|
-
if (this.panelOpen) {
|
328
|
-
this.autocomplete.closed.emit();
|
329
|
-
}
|
330
|
-
this.autocomplete.isOpen = this.overlayAttached = false;
|
331
|
-
if (this.overlayRef && this.overlayRef.hasAttached()) {
|
332
|
-
this.overlayRef.detach();
|
333
|
-
this.closingActionsSubscription.unsubscribe();
|
334
|
-
}
|
335
|
-
// Note that in some cases this can end up being called after the component is destroyed.
|
336
|
-
// Add a check to ensure that we don't try to run change detection on a destroyed view.
|
337
|
-
if (!this.componentDestroyed) {
|
338
|
-
// We need to trigger change detection manually, because
|
339
|
-
// `fromEvent` doesn't seem to do it at the proper time.
|
340
|
-
// This ensures that the label is reset when the
|
341
|
-
// user clicks outside.
|
342
|
-
this.changeDetectorRef.detectChanges();
|
343
|
-
}
|
344
|
-
}
|
345
|
-
/**
|
346
|
-
* Updates the position of the autocomplete suggestion panel to ensure that it fits all options
|
347
|
-
* within the viewport.
|
348
|
-
*/
|
349
|
-
updatePosition() {
|
350
|
-
if (this.overlayAttached) {
|
351
|
-
this.overlayRef.updatePosition();
|
352
|
-
}
|
353
|
-
}
|
354
|
-
/**
|
355
|
-
* A stream of actions that should close the autocomplete panel, including
|
356
|
-
* when an option is selected, on blur, and when TAB is pressed.
|
357
|
-
*/
|
358
|
-
get panelClosingActions() {
|
359
|
-
return merge(this.optionSelections, this.autocomplete.keyManager.tabOut.pipe(filter(() => this.overlayAttached)), this.closeKeyEventStream, this.getOutsideClickStream(), this.overlayRef ?
|
360
|
-
this.overlayRef.detachments().pipe(filter(() => this.overlayAttached)) :
|
361
|
-
of()).pipe(
|
362
|
-
// Normalize the output so we return a consistent type.
|
363
|
-
map((event) => event instanceof McOptionSelectionChange ? event : null));
|
364
|
-
}
|
365
|
-
// Implemented as part of ControlValueAccessor.
|
366
|
-
writeValue(value) {
|
367
|
-
Promise.resolve(null)
|
368
|
-
.then(() => this.setTriggerValue(value));
|
369
|
-
}
|
370
|
-
// Implemented as part of ControlValueAccessor.
|
371
|
-
registerOnChange(fn) {
|
372
|
-
this.onChange = fn;
|
373
|
-
}
|
374
|
-
// Implemented as part of ControlValueAccessor.
|
375
|
-
registerOnTouched(fn) {
|
376
|
-
this.onTouched = fn;
|
377
|
-
}
|
378
|
-
// Implemented as part of ControlValueAccessor.
|
379
|
-
setDisabledState(isDisabled) {
|
380
|
-
this.elementRef.nativeElement.disabled = isDisabled;
|
381
|
-
}
|
382
|
-
handleKeydown(event) {
|
383
|
-
// tslint:disable-next-line deprecation
|
384
|
-
const keyCode = event.keyCode;
|
385
|
-
// Prevent the default action on all escape key presses. This is here primarily to bring IE
|
386
|
-
// in line with other browsers. By default, pressing escape on IE will cause it to revert
|
387
|
-
// the input value to the one that it had on focus, however it won't dispatch any events
|
388
|
-
// which means that the model value will be out of sync with the view.
|
389
|
-
if (keyCode === ESCAPE) {
|
390
|
-
event.preventDefault();
|
391
|
-
}
|
392
|
-
if (this.activeOption && keyCode === ENTER && this.panelOpen) {
|
393
|
-
this.activeOption.selectViaInteraction();
|
394
|
-
this.resetActiveItem();
|
395
|
-
event.preventDefault();
|
396
|
-
}
|
397
|
-
else if (this.autocomplete) {
|
398
|
-
const prevActiveItem = this.autocomplete.keyManager.activeItem;
|
399
|
-
if (this.panelOpen || keyCode === TAB) {
|
400
|
-
this.autocomplete.onKeydown(event);
|
401
|
-
}
|
402
|
-
else if (keyCode === DOWN_ARROW && this.canOpen()) {
|
403
|
-
this.openPanel();
|
404
|
-
}
|
405
|
-
const isArrowKey = keyCode === UP_ARROW || keyCode === DOWN_ARROW;
|
406
|
-
if (isArrowKey || this.autocomplete.keyManager.activeItem !== prevActiveItem) {
|
407
|
-
this.scrollToOption();
|
408
|
-
}
|
409
|
-
}
|
410
|
-
}
|
411
|
-
handleInput(event) {
|
412
|
-
const target = event.target;
|
413
|
-
let value = target.value;
|
414
|
-
// Based on `NumberValueAccessor` from forms.
|
415
|
-
if (target.type === 'number') {
|
416
|
-
value = value === '' ? null : parseFloat(value);
|
417
|
-
}
|
418
|
-
// If the input has a placeholder, IE will fire the `input` event on page load,
|
419
|
-
// focus and blur, in addition to when the user actually changed the value. To
|
420
|
-
// filter out all of the extra events, we save the value on focus and between
|
421
|
-
// `input` events, and we check whether it changed.
|
422
|
-
// See: https://connect.microsoft.com/IE/feedback/details/885747/
|
423
|
-
if (this.previousValue !== value) {
|
424
|
-
this.previousValue = value;
|
425
|
-
this.onChange(value);
|
426
|
-
if (this.canOpen() && this.document.activeElement === event.target) {
|
427
|
-
this.openPanel();
|
428
|
-
}
|
429
|
-
}
|
430
|
-
}
|
431
|
-
handleFocus() {
|
432
|
-
if (!this.canOpenOnNextFocus) {
|
433
|
-
this.canOpenOnNextFocus = true;
|
434
|
-
}
|
435
|
-
else if (this.canOpen() && this.autocomplete.openOnFocus) {
|
436
|
-
this.previousValue = this.elementRef.nativeElement.value;
|
437
|
-
this.attachOverlay();
|
438
|
-
}
|
439
|
-
}
|
440
|
-
handleClick($event) {
|
441
|
-
if (this.canOpen() && this.document.activeElement === $event.target) {
|
442
|
-
this.openPanel();
|
443
|
-
}
|
444
|
-
}
|
445
|
-
/** Stream of clicks outside of the autocomplete panel. */
|
446
|
-
getOutsideClickStream() {
|
447
|
-
return merge(
|
448
|
-
// tslint:disable-next-line: no-unnecessary-type-assertion
|
449
|
-
fromEvent(this.document, 'click'),
|
450
|
-
// tslint:disable-next-line: no-unnecessary-type-assertion
|
451
|
-
fromEvent(this.document, 'touchend'))
|
452
|
-
.pipe(filter((event) => {
|
453
|
-
const clickTarget = event.target;
|
454
|
-
const formField = this.formField ? this.formField.elementRef.nativeElement : null;
|
455
|
-
const customOrigin = this.connectedTo ? this.connectedTo.elementRef.nativeElement : null;
|
456
|
-
return this.overlayAttached &&
|
457
|
-
clickTarget !== this.elementRef.nativeElement &&
|
458
|
-
(!formField || !formField.contains(clickTarget)) &&
|
459
|
-
(!customOrigin || !customOrigin.contains(clickTarget)) &&
|
460
|
-
(!!this.overlayRef && !this.overlayRef.overlayElement.contains(clickTarget));
|
461
|
-
}));
|
462
|
-
}
|
463
|
-
/**
|
464
|
-
* Given that we are not actually focusing active options, we must manually adjust scroll
|
465
|
-
* to reveal options below the fold. First, we find the offset of the option from the top
|
466
|
-
* of the panel. If that offset is below the fold, the new scrollTop will be the offset -
|
467
|
-
* the panel height + the option height, so the active option will be just visible at the
|
468
|
-
* bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
|
469
|
-
* will become the offset. If that offset is visible within the panel already, the scrollTop is
|
470
|
-
* not adjusted.
|
471
|
-
*/
|
472
|
-
scrollToOption() {
|
473
|
-
const index = this.autocomplete.keyManager.activeItemIndex || 0;
|
474
|
-
const labelCount = countGroupLabelsBeforeOption(index, this.autocomplete.options, this.autocomplete.optionGroups);
|
475
|
-
const newScrollPosition = getOptionScrollPosition(index + labelCount, AUTOCOMPLETE_OPTION_HEIGHT, this.autocomplete.getScrollTop(), AUTOCOMPLETE_PANEL_HEIGHT);
|
476
|
-
this.autocomplete.setScrollTop(newScrollPosition);
|
477
|
-
}
|
478
|
-
/**
|
479
|
-
* This method listens to a stream of panel closing actions and resets the
|
480
|
-
* stream every time the option list changes.
|
481
|
-
*/
|
482
|
-
subscribeToClosingActions() {
|
483
|
-
const firstStable = this.zone.onStable.asObservable()
|
484
|
-
.pipe(take(1));
|
485
|
-
const optionChanges = this.autocomplete.options.changes
|
486
|
-
.pipe(tap(() => this.positionStrategy.reapplyLastPosition()),
|
487
|
-
// Defer emitting to the stream until the next tick, because changing
|
488
|
-
// bindings in here will cause "changed after checked" errors.
|
489
|
-
delay(0));
|
490
|
-
// When the zone is stable initially, and when the option list changes...
|
491
|
-
return merge(firstStable, optionChanges)
|
492
|
-
.pipe(
|
493
|
-
// create a new stream of panelClosingActions, replacing any previous streams
|
494
|
-
// that were created, and flatten it so our stream only emits closing events...
|
495
|
-
switchMap(() => {
|
496
|
-
const wasOpen = this.panelOpen;
|
497
|
-
this.resetActiveItem();
|
498
|
-
this.autocomplete.setVisibility();
|
499
|
-
if (this.panelOpen) {
|
500
|
-
this.overlayRef.updatePosition();
|
501
|
-
// If the `panelOpen` state changed, we need to make sure to emit the `opened`
|
502
|
-
// event, because we may not have emitted it when the panel was attached. This
|
503
|
-
// can happen if the users opens the panel and there are no options, but the
|
504
|
-
// options come in slightly later or as a result of the value changing.
|
505
|
-
if (wasOpen !== this.panelOpen) {
|
506
|
-
this.autocomplete.opened.emit();
|
507
|
-
}
|
508
|
-
}
|
509
|
-
return this.panelClosingActions;
|
510
|
-
}),
|
511
|
-
// when the first closing event occurs...
|
512
|
-
take(1))
|
513
|
-
// set the value, close the panel, and complete.
|
514
|
-
.subscribe((event) => this.setValueAndClose(event));
|
515
|
-
}
|
516
|
-
/** Destroys the autocomplete suggestion panel. */
|
517
|
-
destroyPanel() {
|
518
|
-
if (this.overlayRef) {
|
519
|
-
this.closePanel();
|
520
|
-
this.overlayRef.dispose();
|
521
|
-
this.overlayRef = null;
|
522
|
-
}
|
523
|
-
}
|
524
|
-
setTriggerValue(value) {
|
525
|
-
const toDisplay = this.autocomplete && this.autocomplete.displayWith ?
|
526
|
-
this.autocomplete.displayWith(value) :
|
527
|
-
value;
|
528
|
-
// Simply falling back to an empty string if the display value is falsy does not work properly.
|
529
|
-
// The display value can also be the number zero and shouldn't fall back to an empty string.
|
530
|
-
const inputValue = toDisplay != null ? toDisplay : '';
|
531
|
-
// If it's used within a `MatFormField`, we should set it through the property so it can go
|
532
|
-
// through change detection.
|
533
|
-
if (this.formField) {
|
534
|
-
this.formField.control.value = inputValue;
|
535
|
-
}
|
536
|
-
else {
|
537
|
-
this.elementRef.nativeElement.value = inputValue;
|
538
|
-
}
|
539
|
-
this.previousValue = inputValue;
|
540
|
-
}
|
541
|
-
/** This method closes the panel, and if a value is specified, also sets the associated
|
542
|
-
* control to that value. It will also mark the control as dirty if this interaction
|
543
|
-
* stemmed from the user.
|
544
|
-
*/
|
545
|
-
setValueAndClose(event) {
|
546
|
-
if (event === null || event === void 0 ? void 0 : event.source) {
|
547
|
-
this.clearPreviousSelectedOption(event.source);
|
548
|
-
this.setTriggerValue(event.source.value);
|
549
|
-
this.onChange(event.source.value);
|
550
|
-
this.elementRef.nativeElement.focus();
|
551
|
-
this.autocomplete.emitSelectEvent(event.source);
|
552
|
-
}
|
553
|
-
this.closePanel();
|
554
|
-
}
|
555
|
-
/** Clear any previous selected option and emit a selection change event for this option */
|
556
|
-
clearPreviousSelectedOption(skip) {
|
557
|
-
this.autocomplete.options.forEach((option) => {
|
558
|
-
if (option !== skip && option.selected) {
|
559
|
-
option.deselect();
|
560
|
-
}
|
561
|
-
});
|
562
|
-
}
|
563
|
-
attachOverlay() {
|
564
|
-
if (!this.autocomplete) {
|
565
|
-
throw getMcAutocompleteMissingPanelError();
|
566
|
-
}
|
567
|
-
let overlayRef = this.overlayRef;
|
568
|
-
if (!overlayRef) {
|
569
|
-
this.portal = new TemplatePortal(this.autocomplete.template, this.viewContainerRef);
|
570
|
-
overlayRef = this.overlay.create(this.getOverlayConfig());
|
571
|
-
this.overlayRef = overlayRef;
|
572
|
-
// Use the `keydownEvents` in order to take advantage of
|
573
|
-
// the overlay event targeting provided by the CDK overlay.
|
574
|
-
overlayRef.keydownEvents().subscribe((event) => {
|
575
|
-
// Close when pressing ESCAPE or ALT + UP_ARROW, based on the a11y guidelines.
|
576
|
-
// See: https://www.w3.org/TR/wai-aria-practices-1.1/#textbox-keyboard-interaction
|
577
|
-
// tslint:disable-next-line deprecation
|
578
|
-
if (event.keyCode === ESCAPE || (event.keyCode === UP_ARROW && event.altKey)) {
|
579
|
-
this.resetActiveItem();
|
580
|
-
this.closeKeyEventStream.next();
|
581
|
-
}
|
582
|
-
});
|
583
|
-
if (this.viewportRuler) {
|
584
|
-
this.viewportSubscription = this.viewportRuler.change().subscribe(() => {
|
585
|
-
if (this.panelOpen && overlayRef) {
|
586
|
-
overlayRef.updateSize({ width: this.getPanelWidth() });
|
587
|
-
}
|
588
|
-
});
|
589
|
-
}
|
590
|
-
}
|
591
|
-
else {
|
592
|
-
const position = overlayRef.getConfig().positionStrategy;
|
593
|
-
// Update the trigger, panel width and direction, in case anything has changed.
|
594
|
-
position.setOrigin(this.getConnectedElement());
|
595
|
-
overlayRef.updateSize({ width: this.getPanelWidth() });
|
596
|
-
}
|
597
|
-
if (overlayRef && !overlayRef.hasAttached()) {
|
598
|
-
overlayRef.attach(this.portal);
|
599
|
-
this.closingActionsSubscription = this.subscribeToClosingActions();
|
600
|
-
}
|
601
|
-
const wasOpen = this.panelOpen;
|
602
|
-
this.autocomplete.setVisibility();
|
603
|
-
this.autocomplete.isOpen = this.overlayAttached = true;
|
604
|
-
// We need to do an extra `panelOpen` check in here, because the
|
605
|
-
// autocomplete won't be shown if there are no options.
|
606
|
-
if (this.panelOpen && wasOpen !== this.panelOpen) {
|
607
|
-
this.autocomplete.opened.emit();
|
608
|
-
}
|
609
|
-
}
|
610
|
-
getOverlayConfig() {
|
611
|
-
return new OverlayConfig({
|
612
|
-
positionStrategy: this.getOverlayPosition(),
|
613
|
-
scrollStrategy: this.scrollStrategy(),
|
614
|
-
width: this.getPanelWidth(),
|
615
|
-
direction: this.dir
|
616
|
-
});
|
617
|
-
}
|
618
|
-
getOverlayPosition() {
|
619
|
-
this.positionStrategy = this.overlay.position()
|
620
|
-
.flexibleConnectedTo(this.getConnectedElement())
|
621
|
-
.withFlexibleDimensions(false)
|
622
|
-
.withPush(false)
|
623
|
-
.withPositions([
|
624
|
-
{
|
625
|
-
originX: 'start',
|
626
|
-
originY: 'bottom',
|
627
|
-
overlayX: 'start',
|
628
|
-
overlayY: 'top'
|
629
|
-
},
|
630
|
-
{
|
631
|
-
originX: 'start',
|
632
|
-
originY: 'top',
|
633
|
-
overlayX: 'start',
|
634
|
-
overlayY: 'bottom',
|
635
|
-
// The overlay edge connected to the trigger should have squared corners, while
|
636
|
-
// the opposite end has rounded corners. We apply a CSS class to swap the
|
637
|
-
// border-radius based on the overlay position.
|
638
|
-
panelClass: 'mc-autocomplete-panel-above'
|
639
|
-
}
|
640
|
-
]);
|
641
|
-
return this.positionStrategy;
|
642
|
-
}
|
643
|
-
getConnectedElement() {
|
644
|
-
if (this.connectedTo) {
|
645
|
-
return this.connectedTo.elementRef;
|
646
|
-
}
|
647
|
-
return this.formField ? this.formField.getConnectedOverlayOrigin() : this.elementRef;
|
648
|
-
}
|
649
|
-
getPanelWidth() {
|
650
|
-
return this.autocomplete.panelWidth || this.getHostWidth() - AUTOCOMPLETE_BORDER_WIDTH;
|
651
|
-
}
|
652
|
-
getHostWidth() {
|
653
|
-
return this.getConnectedElement().nativeElement.getBoundingClientRect().width;
|
654
|
-
}
|
655
|
-
/**
|
656
|
-
* Resets the active item to -1 so arrow events will activate the
|
657
|
-
* correct options, or to 0 if the consumer opted into it.
|
658
|
-
*/
|
659
|
-
resetActiveItem() {
|
660
|
-
if (this.autocomplete.autoActiveFirstOption) {
|
661
|
-
this.autocomplete.keyManager.setFirstItemActive();
|
662
|
-
}
|
663
|
-
else {
|
664
|
-
this.autocomplete.keyManager.setActiveItem(-1);
|
665
|
-
}
|
666
|
-
}
|
667
|
-
canOpen() {
|
668
|
-
const element = this.elementRef.nativeElement;
|
669
|
-
return !element.readOnly && !element.disabled && !this._autocompleteDisabled;
|
670
|
-
}
|
671
|
-
}
|
672
|
-
/** @nocollapse */ McAutocompleteTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAutocompleteTrigger, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }, { token: i1$1.Overlay }, { token: i0.NgZone }, { token: MC_AUTOCOMPLETE_SCROLL_STRATEGY }, { token: i2.Directionality, optional: true }, { token: i3.McFormField, host: true, optional: true }, { token: DOCUMENT, optional: true }, { token: i4.ViewportRuler }], target: i0.ɵɵFactoryTarget.Directive });
|
673
|
-
/** @nocollapse */ McAutocompleteTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: McAutocompleteTrigger, selector: "input[mcAutocomplete], textarea[mcAutocomplete]", inputs: { autocomplete: ["mcAutocomplete", "autocomplete"], connectedTo: ["mcAutocompleteConnectedTo", "connectedTo"], autocompleteAttribute: ["autocomplete", "autocompleteAttribute"], autocompleteDisabled: ["mcAutocompleteDisabled", "autocompleteDisabled"] }, host: { listeners: { "focusin": "handleFocus()", "blur": "onTouched()", "input": "handleInput($event)", "keydown": "handleKeydown($event)", "click": "handleClick($event)" }, properties: { "attr.autocomplete": "autocompleteAttribute" }, classAttribute: "mc-autocomplete-trigger" }, providers: [MAT_AUTOCOMPLETE_VALUE_ACCESSOR], exportAs: ["mcAutocompleteTrigger"], ngImport: i0 });
|
674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAutocompleteTrigger, decorators: [{
|
675
|
-
type: Directive,
|
676
|
-
args: [{
|
677
|
-
selector: `input[mcAutocomplete], textarea[mcAutocomplete]`,
|
678
|
-
host: {
|
679
|
-
class: 'mc-autocomplete-trigger',
|
680
|
-
'[attr.autocomplete]': 'autocompleteAttribute',
|
681
|
-
// Note: we use `focusin`, as opposed to `focus`, in order to open the panel
|
682
|
-
// a little earlier. This avoids issues where IE delays the focusing of the input.
|
683
|
-
'(focusin)': 'handleFocus()',
|
684
|
-
'(blur)': 'onTouched()',
|
685
|
-
'(input)': 'handleInput($event)',
|
686
|
-
'(keydown)': 'handleKeydown($event)',
|
687
|
-
'(click)': 'handleClick($event)'
|
688
|
-
},
|
689
|
-
exportAs: 'mcAutocompleteTrigger',
|
690
|
-
providers: [MAT_AUTOCOMPLETE_VALUE_ACCESSOR]
|
691
|
-
}]
|
692
|
-
}], ctorParameters: function () {
|
693
|
-
return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.Overlay }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
694
|
-
type: Inject,
|
695
|
-
args: [MC_AUTOCOMPLETE_SCROLL_STRATEGY]
|
696
|
-
}] }, { type: i2.Directionality, decorators: [{
|
697
|
-
type: Optional
|
698
|
-
}] }, { type: i3.McFormField, decorators: [{
|
699
|
-
type: Optional
|
700
|
-
}, {
|
701
|
-
type: Host
|
702
|
-
}] }, { type: undefined, decorators: [{
|
703
|
-
type: Optional
|
704
|
-
}, {
|
705
|
-
type: Inject,
|
706
|
-
args: [DOCUMENT]
|
707
|
-
}] }, { type: i4.ViewportRuler }];
|
708
|
-
}, propDecorators: { autocomplete: [{
|
709
|
-
type: Input,
|
710
|
-
args: ['mcAutocomplete']
|
711
|
-
}], connectedTo: [{
|
712
|
-
type: Input,
|
713
|
-
args: ['mcAutocompleteConnectedTo']
|
714
|
-
}], autocompleteAttribute: [{
|
715
|
-
type: Input,
|
716
|
-
args: ['autocomplete']
|
717
|
-
}], autocompleteDisabled: [{
|
718
|
-
type: Input,
|
719
|
-
args: ['mcAutocompleteDisabled']
|
720
|
-
}] } });
|
721
|
-
|
722
|
-
class McAutocompleteModule {
|
723
|
-
}
|
724
|
-
/** @nocollapse */ McAutocompleteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
725
|
-
/** @nocollapse */ McAutocompleteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: McAutocompleteModule, declarations: [McAutocomplete, McAutocompleteTrigger, McAutocompleteOrigin], imports: [McOptionModule, OverlayModule, McCommonModule, CommonModule], exports: [McAutocomplete,
|
726
|
-
McOptionModule,
|
727
|
-
McAutocompleteTrigger,
|
728
|
-
McAutocompleteOrigin,
|
729
|
-
McCommonModule] });
|
730
|
-
/** @nocollapse */ McAutocompleteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAutocompleteModule, providers: [MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [McOptionModule, OverlayModule, McCommonModule, CommonModule, McOptionModule,
|
731
|
-
McCommonModule] });
|
732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: McAutocompleteModule, decorators: [{
|
733
|
-
type: NgModule,
|
734
|
-
args: [{
|
735
|
-
imports: [McOptionModule, OverlayModule, McCommonModule, CommonModule],
|
736
|
-
exports: [
|
737
|
-
McAutocomplete,
|
738
|
-
McOptionModule,
|
739
|
-
McAutocompleteTrigger,
|
740
|
-
McAutocompleteOrigin,
|
741
|
-
McCommonModule
|
742
|
-
],
|
743
|
-
declarations: [McAutocomplete, McAutocompleteTrigger, McAutocompleteOrigin],
|
744
|
-
providers: [MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER]
|
745
|
-
}]
|
746
|
-
}] });
|
747
|
-
|
748
|
-
/**
|
749
|
-
* Generated bundle index. Do not edit.
|
750
|
-
*/
|
751
|
-
|
752
|
-
export { AUTOCOMPLETE_BORDER_WIDTH, AUTOCOMPLETE_OPTION_HEIGHT, AUTOCOMPLETE_PANEL_HEIGHT, MAT_AUTOCOMPLETE_VALUE_ACCESSOR, MC_AUTOCOMPLETE_DEFAULT_OPTIONS, MC_AUTOCOMPLETE_DEFAULT_OPTIONS_FACTORY, MC_AUTOCOMPLETE_SCROLL_STRATEGY, MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY, MC_AUTOCOMPLETE_SCROLL_STRATEGY_FACTORY_PROVIDER, McAutocomplete, McAutocompleteModule, McAutocompleteOrigin, McAutocompleteSelectedEvent, McAutocompleteTrigger, getMcAutocompleteMissingPanelError };
|
753
|
-
//# sourceMappingURL=ptsecurity-mosaic-autocomplete.mjs.map
|