genesys-spark-components 4.0.0-beta.27 → 4.0.0-beta.29
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/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion-section.cjs.entry.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge.cjs.entry.js +1 -1
- package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +2 -3
- package/dist/cjs/gux-button-slot.cjs.entry.js +2 -2
- package/dist/cjs/gux-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-calendar.cjs.entry.js +2 -2
- package/dist/cjs/gux-card.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
- package/dist/cjs/gux-create-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +5 -10
- package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-search.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +5 -5
- package/dist/cjs/gux-loading-message.cjs.entry.js +3 -47
- package/dist/cjs/gux-modal.cjs.entry.js +2 -2
- package/dist/cjs/gux-month-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-option-multi.cjs.entry.js +8 -2
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +22 -3
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +1 -1
- package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-select-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/gux-table.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-8d342ca0.js → usage-9037f66c.js} +2 -1
- package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.css +2 -2
- package/dist/collection/components/beta/gux-time-zone-picker/gux-time-zone-picker.css +3 -3
- package/dist/collection/components/beta/gux-time-zone-picker/gux-time-zone-picker.js +1 -1
- package/dist/collection/components/legacy/gux-action-toast-legacy/gux-action-toast.css +30 -134
- package/dist/collection/components/legacy/gux-advanced-dropdown-legacy/gux-advanced-dropdown.css +22 -125
- package/dist/collection/components/legacy/gux-notification-toast-legacy/gux-notification-toast.css +26 -129
- package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.css +43 -140
- package/dist/collection/components/stable/gux-button/gux-button.css +43 -3
- package/dist/collection/components/stable/gux-button-multi/gux-button-multi.js +1 -19
- package/dist/collection/components/stable/gux-button-slot/gux-button-slot.css +43 -3
- package/dist/collection/components/stable/gux-calendar/gux-calendar.css +3 -3
- package/dist/collection/components/stable/gux-column-manager/gux-column-manager-item/gux-column-manager-item.css +25 -127
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-color/gux-form-field-color.css +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.css +147 -50
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-number/gux-form-field-number.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-phone/gux-form-field-phone.css +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-range/gux-form-field-range.css +32 -135
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.css +147 -49
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-search/gux-form-field-search.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.css +109 -70
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-select/gux-form-field-select.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-text-like/gux-form-field-text-like.css +43 -140
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-textarea/gux-form-field-textarea.css +43 -140
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.css +1 -1
- package/dist/collection/components/stable/gux-list/gux-list-item/gux-list-item.css +1 -0
- package/dist/collection/components/stable/gux-listbox/gux-listbox.css +1 -8
- package/dist/collection/components/stable/gux-listbox/gux-listbox.js +1 -4
- package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.css +28 -21
- package/dist/collection/components/stable/gux-listbox-multi/gux-create-option/gux-create-option.js +2 -1
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.css +17 -13
- package/dist/collection/components/stable/gux-listbox-multi/gux-listbox-multi.js +8 -8
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.css +45 -31
- package/dist/collection/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.js +10 -3
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.css +87 -192
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message.js +2 -49
- package/dist/collection/components/stable/gux-modal/gux-modal.css +1 -1
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.css +188 -31
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.functional.js +11 -0
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.js +2 -1
- package/dist/collection/components/stable/gux-radial-loading/gux-radial-loading.service.js +4 -0
- package/dist/collection/components/stable/gux-switch/gux-switch-item/gux-switch-item.css +32 -136
- package/dist/collection/components/stable/gux-table/gux-table-select-menu/gux-table-select-menu.css +21 -15
- package/dist/collection/components/stable/gux-table/gux-table.css +26 -130
- package/dist/collection/components/stable/gux-tabs/gux-tab-panel/gux-tab-panel.css +25 -18
- package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.css +1 -1
- package/dist/collection/components/stable/gux-toggle/gux-toggle-slider/gux-toggle-slider.css +25 -18
- package/dist/component-specs.json +1 -2
- package/dist/deploy-info.json +3 -3
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion-section.entry.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +2 -2
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-badge.entry.js +1 -1
- package/dist/esm/gux-blank-state.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +2 -3
- package/dist/esm/gux-button-slot.entry.js +2 -2
- package/dist/esm/gux-button.entry.js +2 -2
- package/dist/esm/gux-calendar.entry.js +2 -2
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-column-manager-item.entry.js +1 -1
- package/dist/esm/gux-column-manager.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +1 -1
- package/dist/esm/gux-context-menu.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
- package/dist/esm/gux-create-option.entry.js +1 -1
- package/dist/esm/gux-date-beta.entry.js +1 -1
- package/dist/esm/gux-date-time-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +1 -1
- package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi-beta.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +5 -10
- package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +2 -2
- package/dist/esm/gux-form-field-dropdown.entry.js +2 -2
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-number_3.entry.js +2 -2
- package/dist/esm/gux-form-field-phone.entry.js +2 -2
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +2 -2
- package/dist/esm/gux-form-field-search.entry.js +2 -2
- package/dist/esm/gux-form-field-select.entry.js +2 -2
- package/dist/esm/gux-form-field-text-like.entry.js +2 -2
- package/dist/esm/gux-form-field-textarea.entry.js +2 -2
- package/dist/esm/gux-form-field-time-picker.entry.js +2 -2
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-inline-alert.entry.js +1 -1
- package/dist/esm/gux-list-item.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +5 -5
- package/dist/esm/gux-loading-message.entry.js +4 -48
- package/dist/esm/gux-modal.entry.js +2 -2
- package/dist/esm/gux-month-calendar.entry.js +1 -1
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-option-multi.entry.js +8 -2
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +1 -1
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +23 -4
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-region-icon.entry.js +1 -1
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-switch-item.entry.js +1 -1
- package/dist/esm/gux-switch.entry.js +1 -1
- package/dist/esm/gux-tab-advanced-list.entry.js +1 -1
- package/dist/esm/gux-tab-panel.entry.js +1 -1
- package/dist/esm/gux-table-select-menu.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
- package/dist/esm/gux-table-toolbar.entry.js +1 -1
- package/dist/esm/gux-table.entry.js +2 -2
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +1 -1
- package/dist/esm/gux-time-picker.entry.js +1 -1
- package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toast.entry.js +1 -1
- package/dist/esm/gux-toggle-slider.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +1 -1
- package/dist/esm/gux-tooltip.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-4e7ef844.js → usage-775c758f.js} +2 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.css +3 -3
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/p-00ee9185.entry.js +1 -0
- package/dist/genesys-webcomponents/p-0731b5ab.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-77f1232b.entry.js → p-096a8642.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-09830c56.entry.js +1 -0
- package/dist/genesys-webcomponents/p-0a6e80c8.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-0076f3f5.entry.js → p-0eb24603.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-46108dd5.entry.js → p-120ba166.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ceed21c7.entry.js → p-17fed5ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-1890b2d6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-adbed625.js → p-19a7df84.js} +1 -1
- package/dist/genesys-webcomponents/{p-b9a86ebe.entry.js → p-1accd06e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d253461a.entry.js → p-22dbcef7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-41f2ecb4.entry.js → p-237aa911.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-25cbbd7d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-213cdf2c.entry.js → p-2ac5f1ed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6fc2a5d.entry.js → p-2f6a16bc.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3031a578.entry.js +1 -0
- package/dist/genesys-webcomponents/p-31c644b4.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d91f695d.entry.js → p-3231101a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-391d2c94.entry.js +1 -0
- package/dist/genesys-webcomponents/p-39aef491.entry.js +1 -0
- package/dist/genesys-webcomponents/p-39e12286.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d3a0a97b.entry.js → p-3d6b25da.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-103ad753.entry.js → p-3eae9bb3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d339fb99.entry.js → p-41d752de.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6a31fb7e.entry.js → p-4a64f632.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c7631270.entry.js → p-4ada7287.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0f33f457.entry.js → p-4b538970.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ecb4b661.entry.js → p-4d0dd9f8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8e14e2ff.entry.js → p-4f070177.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4fc8b44e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c4547d4a.entry.js → p-5285168c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-5676eed0.entry.js +1 -0
- package/dist/genesys-webcomponents/p-57dce400.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9daee752.entry.js → p-5adbe8ab.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0a1cc254.entry.js → p-60208c67.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a22f1f6.entry.js → p-631fca69.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-68203e47.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-4d623f46.entry.js → p-7048200c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-642c5650.entry.js → p-741cf5fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-78159639.entry.js → p-75c58b14.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7a24829d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f5b1fc27.entry.js → p-7a470ab8.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7c5d3642.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8d5f3368.entry.js → p-7dd91f38.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ea2177b4.entry.js → p-7e8613ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-31082d48.entry.js → p-84322c12.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e01e8b11.entry.js → p-84b02f9a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8988c6ea.entry.js +1 -0
- package/dist/genesys-webcomponents/p-8e23c28c.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-3ef0a725.entry.js → p-90485aff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-68ebbf22.entry.js → p-90fce0e4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-83f11efa.entry.js → p-96f0be69.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-362129ec.entry.js → p-973325c9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2498b2e3.entry.js → p-9b5ec2bd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2afda1fa.entry.js → p-a26af641.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-924c1da2.entry.js → p-a70ecdb7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cb46759e.entry.js → p-a7112589.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-30a59436.entry.js → p-a865c24e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-287495ec.entry.js → p-b28635c6.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b365e09b.entry.js +1 -0
- package/dist/genesys-webcomponents/p-b36d383b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8b9f4bd0.entry.js → p-bbe6fe3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4412b9b1.entry.js → p-bcea8f49.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-777735a1.entry.js → p-bd0759a5.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-bd803de8.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-3e9d0c7b.entry.js → p-bdd7db66.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f4af5f6b.entry.js → p-beefc3de.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4d250c8c.entry.js → p-c1b368fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34b96434.entry.js → p-c909a96c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-501d06d9.entry.js → p-cd08cdda.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7b0db5cc.entry.js → p-d2e07ae1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b005c9ec.entry.js → p-d326ca91.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-40d1b7d6.entry.js → p-d4286397.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-11b420ed.entry.js → p-d48fa55a.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d5e44599.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-44aed7b3.entry.js → p-d77d2752.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1ce5509b.entry.js → p-d8b0b0d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-13b39caa.entry.js → p-d9afb24f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6002a77c.entry.js → p-e74ce003.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a06dceae.entry.js → p-e7fe9d85.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ef910e9b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9d2abb9e.entry.js → p-f2081d0c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f758da43.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-164fd006.entry.js → p-f9dbe1b4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-87093380.entry.js → p-fd11ab49.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-51c934c5.entry.js → p-fd1e28c6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-322710bc.entry.js → p-ff9e713f.entry.js} +1 -1
- package/dist/genesys-webcomponents/scss/focus.scss +48 -0
- package/dist/genesys-webcomponents/scss/style-reset-focusable.scss +23 -0
- package/dist/genesys-webcomponents/scss/style-reset-typography.scss +26 -0
- package/dist/genesys-webcomponents/scss/typography.scss +127 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-button-multi/gux-button-multi.d.ts +0 -4
- package/dist/types/components/stable/gux-listbox-multi/gux-listbox-multi.d.ts +1 -1
- package/dist/types/components/stable/gux-listbox-multi/gux-option-multi/gux-option-multi.d.ts +1 -0
- package/dist/types/components/stable/gux-loading-message/gux-loading-message.d.ts +0 -10
- package/dist/types/components/stable/gux-radial-loading/gux-radial-loading.functional.d.ts +8 -0
- package/dist/types/components/stable/gux-radial-loading/gux-radial-loading.service.d.ts +4 -0
- package/dist/types/components/stable/gux-radial-progress/gux-radial-progress.functional.d.ts +0 -3
- package/dist/types/components.d.ts +0 -8
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +2 -1
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message-constants.js +0 -5
- package/dist/collection/components/stable/gux-loading-message/gux-loading-message-size.types.js +0 -1
- package/dist/collection/style/fonts/roboto-v20-latin-300.svg +0 -1
- package/dist/collection/style/fonts/roboto-v20-latin-700.svg +0 -309
- package/dist/collection/style/fonts/roboto-v20-latin-italic.svg +0 -323
- package/dist/collection/style/fonts/roboto-v20-latin-regular.svg +0 -308
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.eot +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.svg +0 -1
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.ttf +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.woff +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-300.woff2 +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.eot +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.svg +0 -309
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.ttf +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.woff +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-700.woff2 +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.eot +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.svg +0 -323
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.ttf +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.woff +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-italic.woff2 +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.eot +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.svg +0 -308
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.ttf +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.woff +0 -0
- package/dist/genesys-webcomponents/fonts/roboto-v20-latin-regular.woff2 +0 -0
- package/dist/genesys-webcomponents/less/focus.less +0 -46
- package/dist/genesys-webcomponents/less/typography.less +0 -160
- package/dist/genesys-webcomponents/p-04e0fe86.entry.js +0 -1
- package/dist/genesys-webcomponents/p-12e01c6c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-1aab5a86.entry.js +0 -1
- package/dist/genesys-webcomponents/p-1be0f29e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-235edbf8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-24c0304b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-38d60100.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3dde3588.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6b929d2d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6e161af6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-71739e39.entry.js +0 -1
- package/dist/genesys-webcomponents/p-844dfb88.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8fcf1744.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9046d865.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9512246a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-99e5fc7e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a1795d44.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a81c0565.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ab3e0cf2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-bcba8202.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c1314b3a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d4bae794.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e1b518fb.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e82dbae5.entry.js +0 -1
- package/dist/genesys-webcomponents/p-fdc9e35c.entry.js +0 -1
- package/dist/types/components/stable/gux-loading-message/gux-loading-message-constants.d.ts +0 -5
- package/dist/types/components/stable/gux-loading-message/gux-loading-message-size.types.d.ts +0 -1
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,h as a,g as i}from"./p-7d26b2e1.js";import{t as n}from"./p-
|
1
|
+
import{r as t,c as e,h as a,g as i}from"./p-7d26b2e1.js";import{t as n}from"./p-19a7df84.js";import{b as o}from"./p-deee079e.js";import"./p-8a133b9b.js";const s={previous:"Previous",next:"Next"},r=class{constructor(a){t(this,a),this.guxPaginationCursorchange=e(this,"guxPaginationCursorchange",7),this.guxitemsperpagechange=e(this,"guxitemsperpagechange",7),this.hasPrevious=!1,this.hasNext=!1,this.itemsPerPage=void 0,this.layout="simple"}handleInternalitemsperpagechange(t){this.guxitemsperpagechange.emit(t.detail)}onButtonClick(t){("previous"===t&&this.hasPrevious||"next"===t&&this.hasNext)&&this.guxPaginationCursorchange.emit(t)}async componentWillLoad(){n(this.root),this.i18n=await o(this.root,s)}renderSimpleLayout(){return[a("div",{role:"navigation",class:"gux-pagination-button-container"},a("gux-button-slot",{accent:"ghost"},a("button",{class:"gux-simple-button",type:"button",disabled:!this.hasPrevious,onClick:()=>this.onButtonClick("previous")},a("gux-icon",{iconName:"chevron-small-left","screenreader-text":this.i18n("previous")}))),a("gux-button-slot",{accent:"ghost"},a("button",{class:"gux-simple-button",type:"button",disabled:!this.hasNext,onClick:()=>this.onButtonClick("next")},a("gux-icon",{iconName:"chevron-small-right","screenreader-text":this.i18n("next")}))))]}renderAdvancedLayout(){return[a("div",{role:"navigation",class:"gux-pagination-button-container"},a("gux-button-slot",{accent:"ghost"},a("button",{type:"button",disabled:!this.hasPrevious,onClick:()=>this.onButtonClick("previous")},a("div",{class:"gux-button-align-content"},a("gux-icon",{decorative:!0,iconName:"chevron-small-left"}),a("span",null,this.i18n("previous"))))),a("gux-button-slot",{accent:"ghost"},a("button",{type:"button",disabled:!this.hasNext,onClick:()=>this.onButtonClick("next")},a("div",{class:"gux-button-align-content"},a("span",null,this.i18n("next")),a("gux-icon",{decorative:!0,iconName:"chevron-small-right"}))))),this.renderItemsPerPage()]}renderItemsPerPage(){return this.itemsPerPage&&a("gux-pagination-items-per-page-beta",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})}render(){return"advanced"===this.layout?this.renderAdvancedLayout():this.renderSimpleLayout()}get root(){return i(this)}};r.style=":host{display:flex;flex-direction:row-reverse;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:space-between;padding:var(--gse-ui-dataTableItems-tablePagination-padding);border-top:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight)}:host .gux-pagination-button-container{display:flex;flex-wrap:nowrap;align-content:center;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}:host .gux-button-align-content{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;gap:var(--gse-ui-button-gap)}:host .gux-button-align-content>*{flex:0 1 auto;align-self:auto;order:0}:host gux-icon{width:var(--gse-ui-button-icon-size);height:var(--gse-ui-button-icon-size)}";export{r as gux_pagination_cursor}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as s,H as e,g as o}from"./p-7d26b2e1.js";import{t as r}from"./p-
|
1
|
+
import{r as t,h as s,H as e,g as o}from"./p-7d26b2e1.js";import{t as r}from"./p-19a7df84.js";import{D as i,g as a}from"./p-8920a5e5.js";import{g as h}from"./p-deee079e.js";import"./p-8a133b9b.js";const n=class{constructor(s){t(this,s),this.datetime=(new Date).toISOString(),this.format="short",this.timeZone=void 0}componentWillLoad(){r(this.root),this.formatter=new i(h(this.root))}render(){return s(e,null,this.formatter.formatDate(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)}))}get root(){return o(this)}};export{n as gux_date_beta}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,f as i,h as o,g as s,H as n}from"./p-7d26b2e1.js";import{O as r}from"./p-9d18d475.js";import{b as a}from"./p-deee079e.js";import{s as u}from"./p-d176c2ae.js";import{o as l,c as d}from"./p-3f5341ea.js";import{b as h}from"./p-091f51f6.js";import{t as g}from"./p-adbed625.js";import{O as c}from"./p-f34ce7dc.js";import{k as x,g as p,s as f,c as m,a as b,b as v,h as w,d as y,e as S,f as F,i as j,j as k,m as C,o as z}from"./p-55cf6d81.js";import{w as L}from"./p-76ff3e75.js";import{r as E}from"./p-cbcbd1bb.js";import"./p-8a133b9b.js";const R={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"};var O=function(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const T=class{constructor(i){t(this,i),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.value=void 0,this.disabled=!1,this.required=!1,this.loading=!1,this.placeholder=void 0,this.filterable=!1,this.filterType="none",this.hasError=!1,this.expanded=!1,this.filter=""}watchExpanded(t){t||(this.filter="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}onKeydown(t){switch(t.key){case"Escape":return this.isFilterable()&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit(),this.listboxElement&&h((()=>{this.listboxElement.focus(),this.isFilterable()&&this.filterElement&&this.filterElement.focus()}))}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.listboxElement&&this.validateValue(this.value,this.listboxElement)}async componentWillLoad(){g(this.root),this.i18n=await a(this.root,R),l(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.filter=this.filter)}showTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setShowTooltip()}hideTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setHideTooltip()}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)&&(e.value=t):e&&(e.value=t)}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}isFilterable(){return this.filterable||"starts-with"===this.filterType||"custom"===this.filterType}get optionElements(){return x(this.listboxElement)}getOptionElementByValue(t){return this.optionElements.find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.isFilterable()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.isFilterable()&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),void this.listboxElement.focus();case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,u(this.root,"input"),u(this.root,"change")),this.collapseListbox("focusFieldButton")}getTypeaheadText(t){const e=t.length;if(e>0&&!this.loading){const i=p(this.listboxElement,t);if(i&&"custom"!==this.filterType)return i.textContent.trim().substring(e)}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?o("div",{class:"gux-selected-option"},this.renderSelectedItem(t)):o("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderSelectedItem(t){const e=t.tagName.toLowerCase();switch(e){case"gux-option":return o("gux-truncate",{ref:t=>this.truncateElement=t},t.textContent);case"gux-option-icon":return this.renderIconOption(t);default:return e}}renderIconOption(t){let e=null;return null!==t.iconColor&&(e={color:t.iconColor}),o("span",{class:"gux-selected-icon"},o("gux-icon",{"icon-name":t.iconName,style:e,decorative:!0}),o("gux-truncate",{ref:t=>this.truncateElement=t},t.textContent))}renderFilterInputField(){if(this.expanded&&this.isFilterable())return o("div",{class:"gux-field gux-input-field"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.filter),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.filter))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonClick.bind(this),class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this)})))))}renderPopup(){return o("div",{slot:"popup",class:"gux-listbox-container"},o("slot",null))}renderTarget(){return o("div",{class:{"gux-target-container-expanded":this.expanded&&this.isFilterable(),"gux-target-container-collapsed":!(this.expanded&&this.isFilterable()),"gux-error":this.hasError},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:d(this.root),onClick:this.fieldButtonClick.bind(this),onFocusin:this.showTooltip.bind(this),onFocusout:this.hideTooltip.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),iconName:"chevron-small-down"})))}renderTargetContent(){if(!this.expanded||!this.isFilterable())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return o("gux-popup",{expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{expanded:["watchExpanded"],value:["watchValue"],filter:["handleFilter"]}}};O([r({triggerEvents:"mousedown"})],T.prototype,"onClickOutside",null),O([c({childList:!0,subtree:!0})],T.prototype,"onMutation",null),T.style=":host{color:#2e394c}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:6px 8px;font-family:inherit;font-size:12px;line-height:1.6667;cursor:pointer;background-color:#f6f7f9}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border-color:#ea0b0b}.gux-field.gux-input-field{height:30px}.gux-field .gux-field-content{--gux-zindex-tooltip:3;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;min-width:0;height:100%}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;height:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;width:100%;color:transparent;caret-color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:#596373}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:#596373}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;padding-left:8px;color:#596373}.gux-target-container-expanded{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-expanded:focus-visible,.gux-target-container-expanded:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{border:none;outline:none}.gux-target-container-expanded .gux-field-button{width:auto;height:30px;padding:0 0 0 8px;margin:0;background:inherit;border:none;outline:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-collapsed .gux-field-button:focus-visible,.gux-target-container-collapsed .gux-field-button:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-listbox-container{box-sizing:border-box;margin:0;color:#2e394c}gux-popup::part(gux-popup-container){width:inherit}.gux-selected-icon{display:flex;align-items:center}.gux-selected-icon gux-icon{width:16px;height:16px;padding-right:8px}";const A=["gux-option","gux-option-icon"].join(","),I={noMatchesHeader:"Sorry, this menu is empty right now.",noMatchesMessage:"Please try again later.",loading:"Loading..."},M=class{constructor(i){t(this,i),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.value=void 0,this.loading=!1,this.filter="",this.filterType="none",this.emptyMessage=void 0,this.selectedValues=[],this.listboxOptions=[],this.allListboxOptionsFiltered=void 0}onFocus(){f(this.root)}onBlur(){m(this.root)}onKeydown(t){switch(t.key){case"Enter":return t.preventDefault(),void j(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(S(this.root)?(t.stopPropagation(),F(this.root)):v(this.root));case"ArrowUp":return t.preventDefault(),void(w(this.root)?(t.stopPropagation(),y(this.root)):b(this.root));case"Home":return t.preventDefault(),void v(this.root);case"End":return t.preventDefault(),void b(this.root);case" ":return void t.preventDefault()}1!==t.key.length||k(this.root,t.key)}onKeyup(t){" "!==t.key||j(this.root,(t=>this.updateValue(t)))}onMousemove(){m(this.root)}onClick(t){L(A,t,(t=>{z(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){j(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.value&&(this.selectedValues=this.value.split(",")),this.listboxOptions=Array.from(this.root.children),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),u(this.root,"input"),u(this.root,"change")}async componentWillLoad(){g(this.root),this.i18n=await a(this.root,I),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,"custom"!==this.filterType&&(t.filtered=!C(t,this.filter))})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length,!this.allListboxOptionsFiltered&&this.filter?v(this.root):m(this.root)}renderHiddenSlot(){return o("div",{hidden:!0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[o("div",{class:"gux-message-container"},o("gux-radial-loading",{context:"modal"}),o("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){return[o("div",{class:"gux-message-container"},o("div",{class:"gux-no-matches"},this.emptyMessage||[o("div",{class:"gux-no-matches-header"},this.i18n("noMatchesHeader")),o("div",null,this.i18n("noMatchesMessage"))])),this.renderHiddenSlot()]}render(){return this.loading?this.renderLoading():this.allListboxOptionsFiltered?this.renderAllListboxOptionsFiltered():o(n,{role:"listbox",tabindex:0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}get root(){return s(this)}};M.style=":host{box-sizing:border-box;display:block;max-height:20rem;padding:var(--gse-ui-menu-padding);margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow-x) var(--gse-ui-menu-boxShadow-y) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color);outline:none}:host(:focus){outline:var(--gse-semantic-focusRing-width) solid var(--gse-semantic-color-focus);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;text-align:center}.gux-message-container .gux-no-matches{box-sizing:border-box;height:32px;font-family:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontFamily);font-weight:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontWeight);line-height:var(--gse-ui-dropdown-menu-emptyState-subheader-text-lineHeight);font-size:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontSize);color:var(--gse-ui-dropdown-menu-emptyState-subheader-foregroundColor)}.gux-message-container .gux-no-matches .gux-no-matches-header{font-family:var(--gse-ui-dropdown-menu-emptyState-header-text-fontFamily);font-weight:var(--gse-ui-dropdown-menu-emptyState-header-text-fontWeight);line-height:var(--gse-ui-dropdown-menu-emptyState-header-text-lineHeight);font-size:var(--gse-ui-dropdown-menu-emptyState-header-text-fontSize);color:var(--gse-ui-dropdown-menu-emptyState-header-foregroundColor)}";const H=class{constructor(e){t(this,e),this.value=void 0,this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}handleActive(t){var e,i;t?null===(e=this.truncateElement)||void 0===e||e.setShowTooltip():null===(i=this.truncateElement)||void 0===i||i.setHideTooltip()}componentWillLoad(){this.root.id=this.root.id||E("gux-option")}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}render(){return o(n,{role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled,"gux-filtered":this.filtered,"gux-hovered":this.hovered,"gux-selected":this.selected},"aria-selected":this.getAriaSelected(),"aria-disabled":this.disabled.toString()},o("gux-truncate",{ref:t=>this.truncateElement=t},o("slot",null)))}get root(){return s(this)}static get watchers(){return{active:["handleActive"]}}};H.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;height:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer;font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);gap:var(--gse-ui-menu-option-gap)}:host .gux-slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host(.gux-selected){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);background:var(--gse-ui-menu-option-selected-backgroundColor)}:host(.gux-active){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);border-radius:var(--gse-semantic-focusRing-cornerRadius)}:host(.gux-hovered:not(:disabled)){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host(.gux-filtered){display:none}";export{T as gux_dropdown,M as gux_listbox,H as gux_option}
|
1
|
+
import{r as t,c as e,f as i,h as o,g as s,H as n}from"./p-7d26b2e1.js";import{O as r}from"./p-9d18d475.js";import{b as a}from"./p-deee079e.js";import{s as u}from"./p-d176c2ae.js";import{o as l,c as d}from"./p-3f5341ea.js";import{b as h}from"./p-091f51f6.js";import{t as c}from"./p-19a7df84.js";import{O as g}from"./p-f34ce7dc.js";import{k as x,g as p,s as f,c as b,a as v,b as m,h as w,d as y,e as F,f as S,i as j,j as k,m as C,o as L}from"./p-55cf6d81.js";import{w as E}from"./p-76ff3e75.js";import{r as z}from"./p-cbcbd1bb.js";import"./p-8a133b9b.js";const R={filterResults:"Type to filter dropdown results",noSelection:"Select...",dropdown:"Dropdown"};var O=function(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const T=class{constructor(i){t(this,i),this.guxexpanded=e(this,"guxexpanded",7),this.guxcollapsed=e(this,"guxcollapsed",7),this.guxfilter=e(this,"guxfilter",7),this.value=void 0,this.disabled=!1,this.required=!1,this.loading=!1,this.placeholder=void 0,this.filterable=!1,this.filterType="none",this.hasError=!1,this.expanded=!1,this.filter=""}watchExpanded(t){t||(this.filter="")}watchValue(t){this.validateValue(t,this.listboxElement)}handleFilter(t){this.guxfilter.emit(t)}onKeydown(t){switch(t.key){case"Escape":return this.isFilterable()&&document.activeElement===this.listboxElement?this.filterElement.focus():void this.collapseListbox("focusFieldButton");case"Tab":return this.shiftTabFromFilterListbox(t)?(t.preventDefault(),this.filterElement.focus()):this.shiftTabFromExpandedFilterInput(t)?(t.preventDefault(),this.collapseListbox("focusFieldButton")):void this.collapseListbox("noFocusChange");case"ArrowDown":return void(this.activeElementNotListbox()&&(t.preventDefault(),this.expanded=!0))}}onInternallistboxoptionsupdated(t){t.stopPropagation(),i(this.root)}onBlur(t){this.stopPropagationOfInternalFocusEvents(t)}onFocus(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusout(t){this.stopPropagationOfInternalFocusEvents(t)}onFocusin(t){this.stopPropagationOfInternalFocusEvents(t)}onClickOutside(){this.collapseListbox("noFocusChange")}onMutation(){var t;this.listboxElement||(this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.applyListboxEventListeners())}onInternalExpanded(t){t.stopPropagation(),this.guxexpanded.emit(),this.listboxElement&&h((()=>{this.listboxElement.focus(),this.isFilterable()&&this.filterElement&&this.filterElement.focus()}))}onInternalCollapsed(t){t.stopPropagation(),this.guxcollapsed.emit()}connectedCallback(){var t;this.listboxElement=null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-listbox"),this.listboxElement&&this.validateValue(this.value,this.listboxElement)}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,R),l(this.root,(()=>{i(this.root)}))}componentDidLoad(){this.applyListboxEventListeners()}componentWillRender(){this.listboxElement&&(this.validateValue(this.value,this.listboxElement),this.listboxElement.loading=this.loading,this.listboxElement.filterType=this.filterType,this.listboxElement.filter=this.filter)}showTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setShowTooltip()}hideTooltip(){var t;null===(t=this.truncateElement)||void 0===t||t.setHideTooltip()}validateValue(t,e){void 0!==t?this.getOptionElementByValue(t)&&(e.value=t):e&&(e.value=t)}applyListboxEventListeners(){var t,e;null===(t=this.listboxElement)||void 0===t||t.addEventListener("input",(t=>{t.stopPropagation(),this.updateValue(t.target.value)})),null===(e=this.listboxElement)||void 0===e||e.addEventListener("change",(t=>{t.stopPropagation()}))}stopPropagationOfInternalFocusEvents(t){if(this.root.contains(t.relatedTarget))return t.stopImmediatePropagation()}isFilterable(){return this.filterable||"starts-with"===this.filterType||"custom"===this.filterType}get optionElements(){return x(this.listboxElement)}getOptionElementByValue(t){return this.optionElements.find((e=>e.value===t))}fieldButtonClick(){this.expanded=!this.expanded}filterInput(t){t.stopPropagation(),this.filter=this.filterElement.value}shiftTabFromExpandedFilterInput(t){return t.shiftKey&&this.isFilterable()&&this.expanded&&!(document.activeElement===this.listboxElement)}shiftTabFromFilterListbox(t){return t.shiftKey&&this.isFilterable()&&document.activeElement===this.listboxElement}activeElementNotListbox(){return document.activeElement!==this.listboxElement}filterKeydown(t){switch(t.key){case"ArrowDown":return t.stopImmediatePropagation(),void this.listboxElement.focus();case"Enter":return this.listboxElement.guxSelectActive(),void t.preventDefault()}}filterKeyup(t){" "!==t.key||t.preventDefault()}collapseListbox(t){this.expanded&&(this.expanded=!1),"focusFieldButton"===t&&this.fieldButtonElement.focus()}updateValue(t){this.value!==t&&(this.value=t,u(this.root,"input"),u(this.root,"change")),this.collapseListbox("focusFieldButton")}getTypeaheadText(t){const e=t.length;if(e>0&&!this.loading){const i=p(this.listboxElement,t);if(i&&"custom"!==this.filterType)return i.textContent.trim().substring(e)}return""}renderTargetDisplay(){const t=this.getOptionElementByValue(this.value);return t?o("div",{class:"gux-selected-option"},this.renderSelectedItem(t)):o("div",{class:"gux-placeholder"},this.placeholder||this.i18n("noSelection"))}renderSelectedItem(t){const e=t.tagName.toLowerCase();switch(e){case"gux-option":return o("gux-truncate",{ref:t=>this.truncateElement=t},t.textContent);case"gux-option-icon":return this.renderIconOption(t);default:return e}}renderIconOption(t){let e=null;return null!==t.iconColor&&(e={color:t.iconColor}),o("span",{class:"gux-selected-icon"},o("gux-icon",{"icon-name":t.iconName,style:e,decorative:!0}),o("gux-truncate",{ref:t=>this.truncateElement=t},t.textContent))}renderFilterInputField(){if(this.expanded&&this.isFilterable())return o("div",{class:"gux-field gux-input-field"},o("div",{class:"gux-field-content"},o("div",{class:"gux-filter"},o("div",{class:"gux-filter-display"},o("span",{class:"gux-filter-text"},this.filter),o("span",{class:"gux-filter-suggestion"},this.getTypeaheadText(this.filter))),o("div",{class:"input-and-dropdown-button"},o("input",{onClick:this.fieldButtonClick.bind(this),class:"gux-filter-input",type:"text","aria-label":this.i18n("filterResults"),ref:t=>this.filterElement=t,onInput:this.filterInput.bind(this),onKeyDown:this.filterKeydown.bind(this),onKeyUp:this.filterKeyup.bind(this)})))))}renderPopup(){return o("div",{slot:"popup",class:"gux-listbox-container"},o("slot",null))}renderTarget(){return o("div",{class:{"gux-target-container-expanded":this.expanded&&this.isFilterable(),"gux-target-container-collapsed":!(this.expanded&&this.isFilterable()),"gux-error":this.hasError},slot:"target"},this.renderFilterInputField(),o("button",{type:"button",class:"gux-field gux-field-button",disabled:d(this.root),onClick:this.fieldButtonClick.bind(this),onFocusin:this.showTooltip.bind(this),onFocusout:this.hideTooltip.bind(this),ref:t=>this.fieldButtonElement=t,"aria-haspopup":"listbox","aria-expanded":this.expanded.toString()},this.renderTargetContent(),this.renderRadialLoading(),o("gux-icon",{class:{"gux-expand-icon":!0},"screenreader-text":this.i18n("dropdown"),iconName:"chevron-small-down"})))}renderTargetContent(){if(!this.expanded||!this.isFilterable())return o("div",{class:"gux-field-content"},this.renderTargetDisplay())}renderRadialLoading(){if(this.loading&&!this.expanded)return o("gux-radial-loading",{context:"input"})}render(){return o("gux-popup",{expanded:this.expanded&&(!this.loading||this.isFilterable()),disabled:this.disabled},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{expanded:["watchExpanded"],value:["watchValue"],filter:["handleFilter"]}}};O([r({triggerEvents:"mousedown"})],T.prototype,"onClickOutside",null),O([g({childList:!0,subtree:!0})],T.prototype,"onMutation",null),T.style=":host{color:#2e394c}.gux-field,.gux-target-container-expanded{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:6px 8px;font-family:inherit;font-size:12px;line-height:1.6667;cursor:pointer;background-color:#f6f7f9}.gux-error.gux-target-container-collapsed .gux-field-button,.gux-error.gux-target-container-expanded{border-color:#ea0b0b}.gux-field.gux-input-field{height:30px}.gux-field .gux-field-content{--gux-zindex-tooltip:3;display:flex;flex:1 1 0;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;min-width:0;height:100%}.gux-field .gux-field-content .gux-filter,.gux-field .gux-field-content .gux-selected-option,.gux-field .gux-field-content .gux-placeholder{flex:1 1 auto;align-self:auto;order:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gux-field .gux-field-content .gux-filter{position:relative;height:100%}.gux-field .gux-field-content .gux-filter .gux-filter-input{all:unset;width:100%;color:transparent;caret-color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display{white-space:pre}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-text{color:#2e394c}.gux-field .gux-field-content .gux-filter .gux-filter-display .gux-filter-suggestion{color:#596373}.gux-field .gux-field-content .gux-filter .gux-filter-input,.gux-field .gux-field-content .gux-filter .gux-filter-display{position:absolute}.gux-field .gux-field-content .gux-placeholder{color:#596373}.gux-field .gux-expand-icon{flex:0 0 auto;align-self:auto;order:0;width:16px;height:16px;padding-left:8px;color:#596373}.gux-target-container-expanded{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-expanded:focus-visible,.gux-target-container-expanded:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-target-container-expanded .gux-filter-input{background-color:inherit;border:none}.gux-target-container-expanded .gux-filter-input:focus{border:none;outline:none}.gux-target-container-expanded .gux-field-button{width:auto;height:30px;padding:0 0 0 8px;margin:0;background:inherit;border:none;outline:none;box-shadow:none}.gux-target-container-expanded .gux-field-button:focus{outline:none}.gux-target-container-collapsed .gux-field-button{border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}.gux-target-container-collapsed .gux-field-button:focus-visible,.gux-target-container-collapsed .gux-field-button:focus-within{outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-listbox-container{box-sizing:border-box;margin:0;color:#2e394c}gux-popup::part(gux-popup-container){width:inherit}.gux-selected-icon{display:flex;align-items:center}.gux-selected-icon gux-icon{width:16px;height:16px;padding-right:8px}";const A=["gux-option","gux-option-icon"].join(","),I={noMatches:"No matches",loading:"Loading..."},B=class{constructor(i){t(this,i),this.internallistboxoptionsupdated=e(this,"internallistboxoptionsupdated",7),this.value=void 0,this.loading=!1,this.filter="",this.filterType="none",this.emptyMessage=void 0,this.selectedValues=[],this.listboxOptions=[],this.allListboxOptionsFiltered=void 0}onFocus(){f(this.root)}onBlur(){b(this.root)}onKeydown(t){switch(t.key){case"Enter":return t.preventDefault(),void j(this.root,(t=>this.updateValue(t)));case"ArrowDown":return t.preventDefault(),void(F(this.root)?(t.stopPropagation(),S(this.root)):m(this.root));case"ArrowUp":return t.preventDefault(),void(w(this.root)?(t.stopPropagation(),y(this.root)):v(this.root));case"Home":return t.preventDefault(),void m(this.root);case"End":return t.preventDefault(),void v(this.root);case" ":return void t.preventDefault()}1!==t.key.length||k(this.root,t.key)}onKeyup(t){" "!==t.key||j(this.root,(t=>this.updateValue(t)))}onMousemove(){b(this.root)}onClick(t){E(A,t,(t=>{L(t,(t=>this.updateValue(t)))}))}async guxSelectActive(){j(this.root,(t=>this.updateValue(t)))}setListboxOptions(){this.value&&(this.selectedValues=this.value.split(",")),this.listboxOptions=Array.from(this.root.children),this.internallistboxoptionsupdated.emit()}updateValue(t){this.value!==t&&(this.value=t),u(this.root,"input"),u(this.root,"change")}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,I),this.setListboxOptions()}componentWillRender(){this.listboxOptions.forEach((t=>{t.selected=t.value===this.value,"custom"!==this.filterType&&(t.filtered=!C(t,this.filter))})),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length,!this.allListboxOptionsFiltered&&this.filter?m(this.root):b(this.root)}renderHiddenSlot(){return o("div",{hidden:!0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[o("div",{class:"gux-message-container"},o("gux-radial-loading",{context:"modal"}),o("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){return[o("div",{class:"gux-message-container"},o("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}render(){return this.loading?this.renderLoading():this.allListboxOptionsFiltered?this.renderAllListboxOptionsFiltered():o(n,{role:"listbox",tabindex:0},o("slot",{onSlotchange:()=>this.setListboxOptions()}))}get root(){return s(this)}};B.style=":host{box-sizing:border-box;display:block;max-height:20rem;padding:var(--gse-ui-menu-padding);margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow-x) var(--gse-ui-menu-boxShadow-y) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color);outline:none}:host(:focus){outline:var(--gse-semantic-focusRing-width) solid var(--gse-semantic-color-focus);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;text-align:center}.gux-message-container .gux-no-matches{box-sizing:border-box;height:var(--gse-ui-menu-option-height);font-family:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontFamily);font-weight:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontWeight);line-height:var(--gse-ui-dropdown-menu-emptyState-subheader-text-lineHeight);font-size:var(--gse-ui-dropdown-menu-emptyState-subheader-text-fontSize);color:var(--gse-ui-dropdown-menu-emptyState-subheader-foregroundColor)}";const W=class{constructor(e){t(this,e),this.value=void 0,this.active=!1,this.selected=!1,this.disabled=!1,this.filtered=!1,this.hovered=!1}onmouseenter(){this.hovered=!0}onMouseleave(){this.hovered=!1}handleActive(t){var e,i;t?null===(e=this.truncateElement)||void 0===e||e.setShowTooltip():null===(i=this.truncateElement)||void 0===i||i.setHideTooltip()}componentWillLoad(){this.root.id=this.root.id||z("gux-option")}getAriaSelected(){return!this.disabled&&(this.selected?"true":"false")}render(){return o(n,{role:"option",class:{"gux-active":this.active,"gux-disabled":this.disabled,"gux-filtered":this.filtered,"gux-hovered":this.hovered,"gux-selected":this.selected},"aria-selected":this.getAriaSelected(),"aria-disabled":this.disabled.toString()},o("gux-truncate",{ref:t=>this.truncateElement=t},o("slot",null)))}get root(){return s(this)}static get watchers(){return{active:["handleActive"]}}};W.style=":host{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:center;height:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer;font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);gap:var(--gse-ui-menu-option-gap)}:host .gux-slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.gux-disabled){pointer-events:none;cursor:default;opacity:var(--gse-ui-menu-option-disabled-opacity)}:host(.gux-selected){font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);background:var(--gse-ui-menu-option-selected-backgroundColor)}:host(.gux-active){outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);border-radius:var(--gse-semantic-focusRing-cornerRadius)}:host(.gux-hovered:not(:disabled)){background:var(--gse-ui-menu-option-hover-backgroundColor)}:host(.gux-filtered){display:none}";export{T as gux_dropdown,B as gux_listbox,W as gux_option}
|