genesys-spark-components 4.154.5 → 4.154.7
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/{floating-ui.dom.esm-a0754e1a.js → floating-ui.dom.esm-ec8cb051.js} +4 -3
- 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 +1 -1
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +7 -4
- package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-group-item-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 +1 -1
- package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
- package/dist/cjs/gux-button_2.cjs.entry.js +7 -4
- package/dist/cjs/gux-calendar-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-card.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-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 +6 -3
- package/dist/cjs/gux-day-beta.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.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +7 -4
- package/dist/cjs/gux-form-field-checkbox-group-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 +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
- 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-inline-dropdown-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.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 +1 -1
- 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-beta.cjs.entry.js +7 -4
- package/dist/cjs/gux-popover-list-beta.cjs.entry.js +7 -4
- package/dist/cjs/gux-popover-list.cjs.entry.js +7 -4
- package/dist/cjs/gux-popup.cjs.entry.js +7 -4
- package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
- 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-rich-highlight-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +8 -5
- package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-heading.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-status-indicator-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
- package/dist/cjs/gux-step.cjs.entry.js +1 -1
- package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-submenu.cjs.entry.js +7 -4
- package/dist/cjs/gux-switch-legacy.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 +1 -1
- 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-beta.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.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +8 -5
- package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip_2.cjs.entry.js +8 -5
- package/dist/cjs/{overflow-detection-1bdbc2f1.js → overflow-detection-0adae101.js} +1 -1
- package/dist/cjs/{usage-4a70e9e3.js → usage-f2e0032a.js} +19 -18
- package/dist/collection/components/beta/gux-avatar-group/gux-avatar-overflow/gux-avatar-overflow.js +5 -2
- package/dist/collection/components/beta/gux-form/tests/gux-form.common.js +56 -0
- package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.js +1 -1
- package/dist/collection/components/beta/gux-popover-beta/gux-popover.js +5 -2
- package/dist/collection/components/beta/gux-popover-list-beta/gux-popover-list.js +5 -2
- package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-list/gux-rich-text-editor-sub-list/gux-rich-text-editor-sub-list.js +6 -3
- package/dist/collection/components/beta/gux-selector-cards/gux-selector-card/tests/gux-selector-card.common.js +15 -0
- package/dist/collection/components/beta/gux-side-panel/components/gux-side-panel-heading/gux-side-panel-heading.js +1 -1
- package/dist/collection/components/beta/gux-tooltip-base/gux-tooltip-base.js +5 -2
- package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.css +22 -22
- package/dist/collection/components/stable/gux-calendar/tests/gux-calendar.common.js +18 -0
- package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +4 -1
- package/dist/collection/components/stable/gux-flyout-menu/gux-flyout-menu.js +5 -2
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +6 -3
- package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
- package/dist/collection/components/stable/gux-icon/icons/custom/panel-extra-large-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/circle-dashed-regular.svg +1 -1
- package/dist/collection/components/stable/gux-icon/icons/fa/circle-half-stroke-regular.svg +1 -1
- package/dist/collection/components/stable/gux-icon/icons/fa/compress-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/download-regular.svg +1 -1
- package/dist/collection/components/stable/gux-icon/icons/fa/expand-regular.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/keyboard-brightness-solid.svg +1 -1
- package/dist/collection/components/stable/gux-icon/icons/fa/print-regular.svg +1 -1
- package/dist/collection/components/stable/gux-icon/icons/fa/rectangle-history-circle-plus-regular.svg +1 -1
- package/dist/collection/components/stable/gux-icon/icons/fa/rectangle-history-regular.svg +1 -1
- package/dist/collection/components/stable/gux-page-loading-spinner/tests/gux-page-loading-spinner.common.js +6 -0
- package/dist/collection/components/stable/gux-popover/gux-popover.js +5 -2
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +5 -2
- package/dist/collection/components/stable/gux-popup/gux-popup.js +6 -3
- package/dist/collection/components/stable/gux-table-toolbar/tests/gux-table-toolbar.common.js +1 -1
- package/dist/collection/components/stable/gux-toggle/tests/gux-toggle.common.js +58 -0
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +5 -2
- package/dist/collection/test/playwrightTestUtils.js +2 -2
- package/dist/esm/{floating-ui.dom.esm-a44d7688.js → floating-ui.dom.esm-ea64ef12.js} +4 -3
- 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 +1 -1
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +7 -4
- package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-group-item-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 +1 -1
- package/dist/esm/gux-button-slot.entry.js +1 -1
- package/dist/esm/gux-button_2.entry.js +7 -4
- package/dist/esm/gux-calendar-beta.entry.js +1 -1
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card.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-date-beta.entry.js +1 -1
- package/dist/esm/gux-date-time-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +6 -3
- package/dist/esm/gux-day-beta.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.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +1 -1
- package/dist/esm/gux-file-list-item.entry.js +1 -1
- package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +7 -4
- package/dist/esm/gux-form-field-checkbox-group-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 +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
- package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-file.entry.js +1 -1
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
- package/dist/esm/gux-form-field-number_2.entry.js +1 -1
- package/dist/esm/gux-form-field-phone.entry.js +1 -1
- package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +1 -1
- package/dist/esm/gux-form-field-search.entry.js +1 -1
- package/dist/esm/gux-form-field-select.entry.js +1 -1
- package/dist/esm/gux-form-field-text-like.entry.js +1 -1
- package/dist/esm/gux-form-field-textarea.entry.js +1 -1
- package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
- package/dist/esm/gux-form-footer.entry.js +1 -1
- package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-inline-alert.entry.js +1 -1
- package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
- package/dist/esm/gux-label-info-beta.entry.js +1 -1
- package/dist/esm/gux-link-beta.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +1 -1
- package/dist/esm/gux-loading-message.entry.js +1 -1
- package/dist/esm/gux-modal-legacy.entry.js +1 -1
- package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +1 -1
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
- 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-beta.entry.js +7 -4
- package/dist/esm/gux-popover-list-beta.entry.js +7 -4
- package/dist/esm/gux-popover-list.entry.js +7 -4
- package/dist/esm/gux-popup.entry.js +7 -4
- package/dist/esm/gux-radial-loading.entry.js +1 -1
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
- package/dist/esm/gux-rich-style-list-item_3.entry.js +8 -5
- package/dist/esm/gux-rich-text-editor-action-link.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
- package/dist/esm/gux-selector-card-beta.entry.js +1 -1
- package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
- package/dist/esm/gux-side-panel-beta.entry.js +1 -1
- package/dist/esm/gux-side-panel-heading.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-status-indicator-beta.entry.js +1 -1
- package/dist/esm/gux-step-title.entry.js +1 -1
- package/dist/esm/gux-step.entry.js +1 -1
- package/dist/esm/gux-stepper-beta.entry.js +1 -1
- package/dist/esm/gux-submenu.entry.js +7 -4
- package/dist/esm/gux-switch-legacy.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 +1 -1
- 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-beta.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.entry.js +1 -1
- package/dist/esm/gux-tooltip-base-beta_2.entry.js +8 -5
- package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
- package/dist/esm/gux-tooltip_2.entry.js +8 -5
- package/dist/esm/{overflow-detection-0d8bae71.js → overflow-detection-478d9aa8.js} +1 -1
- package/dist/esm/{usage-336f9256.js → usage-1868c7ac.js} +19 -18
- package/dist/genesys-webcomponents/genesys-webcomponents-legacy.css +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.css +2 -2
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/icons/custom/panel-extra-large-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/circle-dashed-regular.svg +1 -1
- package/dist/genesys-webcomponents/icons/fa/circle-half-stroke-regular.svg +1 -1
- package/dist/genesys-webcomponents/icons/fa/compress-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/download-regular.svg +1 -1
- package/dist/genesys-webcomponents/icons/fa/expand-regular.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/keyboard-brightness-solid.svg +1 -1
- package/dist/genesys-webcomponents/icons/fa/print-regular.svg +1 -1
- package/dist/genesys-webcomponents/icons/fa/rectangle-history-circle-plus-regular.svg +1 -1
- package/dist/genesys-webcomponents/icons/fa/rectangle-history-regular.svg +1 -1
- package/dist/genesys-webcomponents/{p-fb7e0c6d.entry.js → p-013bb7ff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d1f8ab1b.entry.js → p-01be2de5.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-03618cd4.entry.js +1 -0
- package/dist/genesys-webcomponents/p-04191ca3.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5656eb08.entry.js → p-044952be.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-06303fbe.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-2bd2ea17.entry.js → p-126bdd9d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b5b03666.entry.js → p-127b9b26.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7164f14e.entry.js → p-140b15fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b572438f.entry.js → p-14e6073f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ba9858c.entry.js → p-161a2943.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5e70d836.entry.js → p-168a430e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dab188bc.entry.js → p-1942e9e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f9768619.entry.js → p-1a8b603b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-59cc0280.entry.js → p-1c1a307d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b88cd272.entry.js → p-1cc73ac6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3b4d7070.entry.js → p-1e57262c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bf2cb7bc.entry.js → p-1fc1faca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b68d79d2.entry.js → p-2177200b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cea982b2.entry.js → p-219fec9e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6a121237.entry.js → p-24c04a05.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-60acfa6d.entry.js → p-2b9d4fcd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a9247895.entry.js → p-2c04c46a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-98c85ab4.entry.js → p-2c9e5f60.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a6b12794.entry.js → p-2e7ef7cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ab0b7ca7.entry.js → p-32c82188.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-18797302.entry.js → p-34f196b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-61af6910.entry.js → p-366c973f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ee39d6d6.entry.js → p-3b407ef0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-93050a09.entry.js → p-3c8ba744.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4174f658.entry.js → p-412dcd92.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fe59a170.entry.js → p-4255f033.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-04c85b3b.js → p-43db8808.js} +1 -1
- package/dist/genesys-webcomponents/p-4578bdc6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7ed3421c.entry.js → p-4641ec47.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b9b3a5a4.entry.js → p-46a51611.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eb0e5ad7.entry.js → p-475324bb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3706f5a5.entry.js → p-47e49981.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-934d83cb.entry.js → p-48fe9f97.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f5f24c49.entry.js → p-4c0cf11b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4fa5d622.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b26e6a50.entry.js → p-4ff9015f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-21ca768f.entry.js → p-52ae0dff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e7544692.entry.js → p-5a71401f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8592146d.entry.js → p-5b161d99.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-037ad1a6.entry.js → p-61492fb2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9e0c8e78.entry.js → p-6782bc47.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9ccf6a2c.entry.js → p-6afffef6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-84452845.entry.js → p-6c62eb0b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-14333ed8.js → p-6ec0040f.js} +1 -1
- package/dist/genesys-webcomponents/{p-44af1eac.entry.js → p-71fd2223.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-68fecbc6.entry.js → p-740d529f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-15003b2c.entry.js → p-74b5b61f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-988c9edc.entry.js → p-7a7b2de6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7d6fc89e.entry.js → p-7e15f786.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ecdaf31d.entry.js → p-7f91639d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8148f973.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-0a6a1d40.entry.js → p-8348fb28.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8557f62c.entry.js +1 -0
- package/dist/genesys-webcomponents/p-893e7fdf.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-87d621e0.entry.js → p-8d37d7b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e417d9c6.entry.js → p-8e3d7685.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4196c251.entry.js → p-94b4c37b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ad584581.entry.js → p-9a3ea047.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4bd05274.entry.js → p-9b85157f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b85eb3da.entry.js → p-a0021e01.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-202257ea.entry.js → p-a0670b52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-af1a99b1.entry.js → p-a26a73f3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3ba839e4.entry.js → p-a2c3f918.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-57a894b0.entry.js → p-a4a9f97f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b52ee4ac.entry.js → p-a72683d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cf7942d3.entry.js → p-a918c146.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fe1714c0.entry.js → p-abdd558b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e5341f4e.entry.js → p-ac57fa66.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a27d6bb8.entry.js → p-adbb4b08.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-99fd4543.entry.js → p-af1ef170.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d60e0050.entry.js → p-b0db67dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1baaebdc.entry.js → p-b12be976.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b1c93415.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d1fb906d.entry.js → p-b1f9808a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-43d8e302.entry.js → p-b2448720.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-83ee0863.entry.js → p-b2853f1b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0d20dccb.entry.js → p-b469c39e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e7351eb0.entry.js → p-b7734ee1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bb41579f.entry.js → p-b9c7b974.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8e83bad8.entry.js → p-b9fd5655.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-26292963.entry.js → p-bcefa6a2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-16f74ec0.js → p-be142c81.js} +1 -1
- package/dist/genesys-webcomponents/{p-e21dc9ba.entry.js → p-be89512a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fcf2a975.entry.js → p-beb4e514.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d2808041.entry.js → p-bf7a4f4c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c101041b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-ac0aaf37.entry.js → p-c129a55a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-20784afd.entry.js → p-c4171c65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-14539d11.entry.js → p-c7b5a1e4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-975f0d33.entry.js → p-ca672d6c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3b15add0.entry.js → p-cb461c35.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6903a7a0.entry.js → p-cbf8fe92.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-93cd22be.entry.js → p-ccb95948.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ccef859d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-30ecf4bc.entry.js → p-cf7e1b57.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-cfdc652b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-3ef08423.entry.js → p-d0b48b5d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-71369b32.entry.js → p-d452033d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-10b393fc.entry.js → p-d48345d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-06db406c.entry.js → p-d6032f56.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ea47448f.entry.js → p-d75709aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1d7f5917.entry.js → p-d7e0ae87.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7e1cead5.entry.js → p-dbd270c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9f618d68.entry.js → p-dd4ce7cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ddc587da.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d71676b8.entry.js → p-debfd94a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-63297dd3.entry.js → p-e0a313e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-651f5799.entry.js → p-e13edf65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e5c2c14d.entry.js → p-e2777b62.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d103e267.entry.js → p-e5baff35.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cd177c9b.entry.js → p-e7cce33f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d1aea7f0.entry.js → p-ea7f7be3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c19cdfca.entry.js → p-ed0aff08.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fbc24fd4.entry.js → p-ee687f41.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-485e5649.entry.js → p-f5de3e06.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c52c96ee.entry.js → p-f9741506.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4b9ecc81.entry.js → p-fa05ea7c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7d3df01d.entry.js → p-fcc941cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-06a0291e.entry.js → p-fd7cd766.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-form/tests/gux-form.common.d.ts +4 -0
- package/dist/types/components/beta/gux-selector-cards/gux-selector-card/tests/gux-selector-card.common.d.ts +4 -0
- package/dist/types/components/stable/gux-calendar/tests/gux-calendar.common.d.ts +4 -0
- package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
- package/dist/types/components/stable/gux-page-loading-spinner/tests/gux-page-loading-spinner.common.d.ts +4 -0
- package/dist/types/components/stable/gux-toggle/tests/gux-toggle.common.d.ts +4 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/dist/types/test/playwrightTestUtils.d.ts +2 -1
- package/package.json +19 -18
- package/dist/genesys-webcomponents/p-0c82d6a1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3fb9459a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-479efefb.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4c2ed418.entry.js +0 -1
- package/dist/genesys-webcomponents/p-4ce005e3.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6eea0f76.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7eb7776c.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9123cb52.entry.js +0 -1
- package/dist/genesys-webcomponents/p-92cb0a16.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b4c148d5.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b68a44c8.entry.js +0 -1
- package/dist/genesys-webcomponents/p-de8f77f7.entry.js +0 -1
- package/dist/genesys-webcomponents/p-fdd08d1b.entry.js +0 -1
- /package/dist/cjs/{index.umd-1b3084ed.js → index.umd-aba93706.js} +0 -0
- /package/dist/esm/{index.umd-4fa3c748.js → index.umd-ef564d94.js} +0 -0
- /package/dist/genesys-webcomponents/{p-c3c1cdc3.js → p-8073cd78.js} +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,h as t,H as o,g as s}from"./p-cf74fd3d.js";import{a as i,c as n,o as a,f as u,s as r}from"./p-04c85b3b.js";import{a as c}from"./p-cf0e7d3b.js";import{m as d,h}from"./p-ac18cbbe.js";const l=class{constructor(t){e(this,t),this.isShown=!1}async guxFocus(){this.buttonElement.focus()}onKeydown(e){switch(d(e,this.root),e.key){case"Enter":e.stopPropagation(),this.hideDelayTimeout=c((()=>{this.focusOnSubmenu()})),this.guxFocus();break;case"ArrowRight":e.stopPropagation(),this.show(),this.hideDelayTimeout=c((()=>{this.focusOnSubmenu()}));break;case"ArrowLeft":case"Escape":this.root!==e.target&&e.stopPropagation(),this.guxFocus()}}onKeyup(e){" "===e.key&&(this.hideDelayTimeout=c((()=>{this.focusOnSubmenu()})),this.guxFocus())}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){"GUX-MENU-OPTION"!==e.target.nodeName?e.stopPropagation():this.hide()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),h))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=i(this.buttonElement,this.submenuElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.submenuElement&&n(this.buttonElement,this.submenuElement,{placement:"right-start",strategy:"fixed",middleware:[a(4),u(),r()]}).then((({x:e,y:t})=>{Object.assign(this.submenuElement.style,{left:`${e}px`,top:t-8+"px"})}))}focusOnSubmenu(){this.submenuContentElement.contains(document.activeElement)||Array.from(this.root.children)[0].guxFocus()}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t(o,{key:"7634739a4d3f51c08717c166facc866713eee2dc"},t("button",{key:"17328b96f6103fcc7a52c3881fcc91b404f5d521",type:"button",class:{"gux-submenu-button":!0,"gux-submenu-button-active":this.isShown},role:"menuitem",tabIndex:-1,ref:e=>this.buttonElement=e,"aria-haspopup":"true","aria-expanded":this.isShown.toString()},t("span",{key:"4317bb32b28f96ddfdadaa80dd0b27bc6b0e08d8",class:"gux-submenu-button-text"},this.label),t("gux-icon",{key:"85fc6ed75d07e86096587525f01bc7539264f5b0",class:"gux-submenu-open-icon","icon-name":"custom/chevron-right-small-regular",decorative:!0,size:"small"})),t("div",{key:"18493a4105564036e99417a2bad67b46235a0aac",ref:e=>this.submenuElement=e,class:{"gux-submenu-wrapper":!0,"gux-shown":this.isShown}},t("div",{key:"f287026af238a24a6479d2a6557ef526d57f8832",role:"menu",class:"gux-submenu-content",ref:e=>this.submenuContentElement=e},t("slot",{key:"2c35a489718ca4d33fd6d427d8bfff26e5762ecf"}))))}get root(){return s(this)}};l.style=":host{display:block;flex:1 1 auto;align-self:auto}:host .gux-submenu-button{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;inline-size:var(--gse-ui-flyoutMenu-width);block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);background-color:var(--gse-ui-menu-option-default-backgroundColor)}:host .gux-submenu-button:focus-within,:host .gux-submenu-button:hover{background-color:var(--gse-ui-menu-option-hover-backgroundColor)}:host .gux-submenu-button.gux-submenu-button-active{font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);color:var(--gse-ui-menu-option-shortcut-selected-foregroundColor);background-color:var(--gse-ui-menu-option-selected-backgroundColor)}:host .gux-submenu-button .gux-submenu-button-text{flex:1 1 auto;align-self:auto;order:0;margin-inline-end:var(--gse-ui-menu-option-gap);overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}:host .gux-submenu-button .gux-submenu-open-icon{flex:0 0 auto;align-self:auto;order:0}:host .gux-submenu-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;visibility:hidden;flex-direction:column;padding:var(--gse-ui-menu-padding);margin:0;background-color:var(--gse-ui-menu-backgroundColor);border:none;border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow);opacity:0}:host .gux-submenu-wrapper.gux-shown{visibility:visible;animation-name:fade-in;animation-duration:100ms;animation-delay:350ms;animation-fill-mode:forwards}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{l as gux_submenu}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,c as r,h as o,g as a}from"./p-cf74fd3d.js";import{r as i}from"./p-0934300e.js";import{l as t}from"./p-8eaf8caf.js";const d=class{constructor(o){e(this,o),this.guxopened=r(this,"guxopened",7),this.guxclosed=r(this,"guxclosed",7),this.sectionId=i("gux-accordion-section"),this.headerId=i("gux-accordion-header"),this.arrowPosition="end",this.contentLayout="text",this.open=!1,this.disabled=!1,this.reverseHeadings=!1}watchOpen(e){e?this.guxopened.emit():this.guxclosed.emit()}toggle(){this.open=!this.open}isArrowPositionBeforeText(){return"start"===this.arrowPosition}handleSlotChange(e){const r=this.root.querySelector(`[slot="${e}"]`);r&&/^H[1-6]$/.test(r.nodeName)||t(this.root,`For accessibility reasons the ${e} slot should be filled with a HTML heading tag (h1 - h6).`),"header"==e&&(this.headingLevel=parseInt(r.nodeName.replace("H",""),10))}componentWillLoad(){this.hasIconSlot=!!this.root.querySelector('[slot="icon"]')}render(){return o("section",{key:"3765c4293ee1fdc5f75f07277d820ec9d5871967",class:{"gux-disabled":this.disabled}},o("div",{key:"9a9207383819bd0be449bf8104a31335545df575",id:this.headerId,role:"heading","aria-level":this.headingLevel},o("button",{key:"77d207e1acb954fa2c387dfdd4b9b8492387e500",class:{"gux-header":!0,"gux-reverse-headings":this.reverseHeadings},type:"button","aria-expanded":this.open.toString(),"aria-controls":this.sectionId,disabled:this.disabled,onClick:this.toggle.bind(this)},this.hasIconSlot&&o("slot",{key:"28230527d95c7eb843a6e1f33d2b264f9d495058",name:"icon"}),o("div",{key:"21d830d8af1d91bab939821d345b9bd8c6f061e4",class:{"gux-header-text":!0}},o("slot",{key:"c22fe63adf59baf9540879bc1cd5d2d03c02909d",onSlotchange:()=>this.handleSlotChange("header"),name:"header"}),o("slot",{key:"dcc41180d4e782545efac487fe313ea524373dc7",onSlotchange:()=>this.handleSlotChange("subheader"),name:"subheader"})),o("div",{key:"501aa97d9f8159cd80f485c223ec98a78cc17218",class:{"gux-header-icon":!0,"gux-expanded":this.open,"gux-arrow-position-start":this.isArrowPositionBeforeText()}},o("gux-icon",{key:"1dea926f1b7a8c099fe13da17ad40f713904faf0",decorative:!0,"icon-name":"custom/chevron-down-small-regular",size:"small"})))),o("div",{key:"229552d710d8ffcc922a197d84adbb84e0bb14a6",id:this.sectionId,role:"region","aria-labelledby":this.headerId,class:{"gux-content":!0,"gux-expanded":this.open,"gux-text-content-layout":"text"===this.contentLayout}},o("slot",{key:"3d7b3f85ddafde05e8f90e5e10ed08b786fb2e04",name:"content"})))}get root(){return a(this)}static get watchers(){return{open:["watchOpen"]}}};d.style=":host:first-child .gux-header{border-block-start:var(--gse-ui-accordion-wrapper-dividerBorder-width) var(--gse-ui-accordion-wrapper-dividerBorder-style) var(--gse-ui-accordion-wrapper-dividerBorder-color)}section.gux-disabled{cursor:default;opacity:0.5}section.gux-disabled>*{pointer-events:none}.gux-header{all:unset;box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:center flex-start;align-items:center;inline-size:100%;padding:var(--gse-ui-accordion-header-padding);margin:0;cursor:pointer;border-block-end:var(--gse-ui-accordion-wrapper-dividerBorder-width) var(--gse-ui-accordion-wrapper-dividerBorder-style) var(--gse-ui-accordion-wrapper-dividerBorder-color)}.gux-header .gux-header-text{flex:1 1 auto;align-self:auto;font-weight:var(--gse-ui-accordion-header-label-defaultText-fontWeight);color:var(--gse-ui-accordion-header-default-foreground-labelColor);text-align:start}.gux-header.gux-reverse-headings .gux-header-text{display:flex;flex-direction:column-reverse}.gux-header ::slotted([slot=header]){padding:0;margin:0;font-family:var(--gse-ui-accordion-header-label-defaultText-fontFamily) !important;font-size:var(--gse-ui-accordion-header-label-defaultText-fontSize) !important;font-weight:var(--gse-ui-accordion-header-label-defaultText-fontWeight) !important;line-height:var(--gse-ui-accordion-header-label-defaultText-lineHeight) !important;color:var(--gse-ui-accordion-header-default-foreground-labelColor)}.gux-header ::slotted([slot=subheader]){padding:0;margin-block:var(--gse-core-spacing-5xs) 0;margin-inline:0;font-family:var(--gse-ui-accordion-contentItem-defaultText-fontFamily) !important;font-size:var(--gse-ui-accordion-contentItem-defaultText-fontSize) !important;font-weight:var(--gse-ui-accordion-contentItem-defaultText-fontWeight) !important;line-height:var(--gse-ui-accordion-contentItem-defaultText-lineHeight) !important;color:var(--gse-ui-accordion-contentItem-foregroundColor)}.gux-header ::slotted([slot=subheader]) .gux-reverse-headings{margin-block:0 var(--gse-core-spacing-5xs);margin-inline:0}.gux-header ::slotted([slot=icon]){flex:0 0 auto;align-self:flex-start;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);margin-inline-end:var(--gse-ui-accordion-header-gap);color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-closed)}.gux-header ::slotted([slot=icon]) .gux-reverse-headings{align-self:flex-end}.gux-header .gux-header-icon{flex:0 1 auto;align-items:center;align-self:auto;margin-inline-start:var(--gse-ui-accordion-header-gap);line-height:0;color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-closed);transform-origin:center;transition:transform 0.5s ease}.gux-header .gux-header-icon.gux-arrow-position-start{order:-1;margin-inline-end:var(--gse-ui-accordion-header-gap)}.gux-header .gux-header-icon.gux-expanded{color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-open);transform:rotate(-180deg)}.gux-header:focus-visible{outline:var(--gse-ui-accordion-focusBorder-width) var(--gse-ui-accordion-focusBorder-style) var(--gse-ui-accordion-focusBorder-color);outline-offset:var(--gse-ui-accordion-focus-offset-gap);border-radius:var(--gse-ui-accordion-menuItem-focus-borderRadius)}.gux-header:hover .gux-header-icon{color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-hover)}.gux-content{box-sizing:border-box;display:none;border-block-end:var(--gse-ui-accordion-wrapper-dividerBorder-width) var(--gse-ui-accordion-wrapper-dividerBorder-style) var(--gse-ui-accordion-wrapper-dividerBorder-color)}.gux-content.gux-expanded{display:block}.gux-content.gux-text-content-layout{padding:var(--gse-ui-accordion-contentItem-padding)}.gux-content ::slotted([slot=content]){margin:0}";export{d as gux_accordion_section}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as s,h as i,g as e}from"./p-cf74fd3d.js";import{a as o,c as a,o as r,f as h,s as n,h as p,b as c}from"./p-04c85b3b.js";import{a as d}from"./p-cf0e7d3b.js";import{O as l}from"./p-f3d844c7.js";import{t as f}from"./p-14333ed8.js";import{f as u}from"./p-9b0d3713.js";const b=class{constructor(i){t(this,i),this.guxdismiss=s(this,"guxdismiss",7),this.position="bottom",this.closeOnClickOutside=!1,this.isOpen=!1,this.disconnect=void 0}onKeyDown(t){switch(t.key){case"Tab":this.dismiss();break;case"Escape":this.dismiss(),this.forElement.focus()}}checkForClickOutside(t){const s=t.composedPath(),i=u(this.root,this.for),e=s.includes(i);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||e||this.dismiss()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=o(u(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=u(this.root,this.for);this.popupElement&&a(t,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[r(2),h(),n(),p(),c({element:this.arrowElement,padding:16})]}).then((({x:t,y:s,middlewareData:i,placement:e})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${s}px`});const o={top:"bottom",right:"left",bottom:"top",left:"right"}[e.split("-")[0]];if(i.arrow){const{x:t,y:s}=i.arrow;this.popupElement.setAttribute("data-placement",e),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[o]:"-6.5px",transform:"rotate(45deg)"})}i.hide&&Object.assign(this.popupElement.style,{visibility:i.hide.referenceHidden?"hidden":"visible"})}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1,this.popupElement.togglePopover())}focusFirstItemInPopupList(){d((()=>{this.listElement.guxFocusFirstItem()}))}onKeydown(t){switch(t.key){case"Enter":case" ":this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition(),this.focusFirstItemInPopupList()}}onMouseup(){this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition()}connectedCallback(){f(this.root,{variant:this.position}),this.listElement=this.root.querySelector("gux-list"),this.forElement=u(this.root,this.for),this.forElement.setAttribute("aria-haspopup","true");const t=this.onKeydown.bind(this);this.forElement.addEventListener("keydown",t);const s=this.onMouseup.bind(this);this.forElement.addEventListener("mouseup",s),this.disconnect=()=>{this.forElement.removeEventListener("keydown",t),this.forElement.removeEventListener("mouseup",s)}}componentDidLoad(){this.isOpen&&(this.popupElement.togglePopover(),this.runUpdatePosition())}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnect()}render(){return i("div",{key:"cd9b2fff6f3e1ef94c9264cc15e5e4a4bd4b9e5e",ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0,popover:"manual"},i("div",{key:"ce18a01f5a480ba20721f8b66fc23999f0e5bf5b",ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&i("gux-dismiss-button",{key:"ae8652aee94f000e8f3fd11873a58efa671fced2",onClick:this.dismiss.bind(this)}),i("div",{key:"92912743edf979dc23808a584310e1508ffa7393",class:"gux-popover-content"},i("slot",{key:"66aac2d941ef4194a1e0b2c74baf985a48911f24"})))}get root(){return e(this)}};(function(t,s,i,e){var o,a=arguments.length,r=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(r=(a<3?o(r):a>3?o(s,i,r):o(s,i))||r);a>3&&r&&Object.defineProperty(s,i,r)})([l({triggerEvents:"mousedown"})],b.prototype,"checkForClickOutside",null),b.style=":popover-open{position:absolute;inset:unset}.gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;overflow-y:hidden;background-color:var(--gse-ui-popover-backgroundColor);border:none;border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow);}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}";export{b as gux_popover_list_beta}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,h as i,H as e,g as o,f as s}from"./p-cf74fd3d.js";import{a as r,o as a,f as n,s as l,h as c,c as d}from"./p-04c85b3b.js";import{r as h}from"./p-0934300e.js";import{t as u}from"./p-14333ed8.js";import{f as p}from"./p-9b0d3713.js";import{b as g}from"./p-cf0e7d3b.js";import{o as f}from"./p-16f74ec0.js";import{O as b}from"./p-946c70b7.js";import{O as m}from"./p-832c080d.js";const v=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.forElementListeners=new Map([["pointerenter",this.pointerenterHandler],["pointerleave",this.pointerleaveHandler],["focusin",this.focusinHandler],["focusout",this.focusoutHandler]]),this.id=h("gux-tooltip"),this.placement="bottom-start",this.accent="light",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}handlePointerenter(){this.show()}handlePointerleave(){this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition=r(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){const t=[a(12),n({fallbackAxisSideDirection:"start",crossAxis:!1}),l(),c(),f()];d(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:t}).then((({x:t,y:i,middlewareData:e})=>{var o;Object.assign(this.root.style,{left:`${t}px`,top:`${i}px`,visibility:(null===(o=e.hide)||void 0===o?void 0:o.referenceHidden)?"hidden":"visible"}),this.root.setAttribute("data-placement",this.placement)}))}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0,g((()=>{this.runUpdatePosition()}))}hide(){this.hideDelayTimeout=setTimeout((()=>{this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}),350)}getForElement(){return this.for?p(this.root,this.for):this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}setForElement(){this.forElement=this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.forElementListeners.forEach(((t,i)=>this.forElement.addEventListener(i,t)))):this.logForAttributeError()}disconnectForElement(){this.forElement&&(this.forElement.removeAttribute("aria-describedby"),this.forElementListeners.forEach(((t,i)=>this.forElement.removeEventListener(i,t))))}updateForElement(){this.disconnectForElement(),this.setForElement()}connectedCallback(){this.setForElement()}componentWillLoad(){u(this.root,{variant:this.placement})}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnectForElement()}render(){return i(e,{key:"0bbfeb1beaf8e1eba01cc147e7c5643d5289cb4e",id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("div",{key:"2cd76e1e3a98d0dbd84308daa8f1131983e60cc2",class:{"gux-container":!0,[`gux-${this.accent}`]:!0},"data-placement":this.placement},i("slot",{key:"423bc7ccb11e4f029c0bab16514b57099c2ec234",name:"content"},i("slot",{key:"8d0be32652b2f2b1e68a2d80a2f32cb69d812354"}))))}get root(){return o(this)}static get watchers(){return{for:["updateForElement"]}}};function x(t){return t.reduce(((t,i)=>{if("SLOT"===i.nodeName){const e=i.assignedNodes();return t.concat(x(e))}return t.concat(i.textContent)}),[]).map((t=>t.trim())).join(" ")}v.style=":host{position:fixed;z-index:var(--gse-semantic-zIndex-tooltip);display:none;inline-size:max-content;max-inline-size:250px;border-radius:var(--gse-ui-tooltip-borderRadius);box-shadow:var(--gse-ui-tooltip-boxShadow);opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-tooltip-gap);place-content:center flex-start;padding:var(--gse-ui-tooltip-padding);font-family:var(--gse-ui-tooltip-text-fontFamily);font-size:var(--gse-ui-tooltip-text-fontSize);font-weight:var(--gse-ui-tooltip-text-fontWeight);line-height:var(--gse-ui-tooltip-text-lineHeight);color:var(--gse-ui-tooltip-light-foregroundColor);pointer-events:none;background-color:var(--gse-ui-tooltip-light-backgroundColor);border:var(--gse-ui-tooltip-light-border-width) var(--gse-ui-tooltip-light-border-style) var(--gse-ui-tooltip-light-border-color);border-radius:var(--gse-ui-tooltip-borderRadius)}.gux-container ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-light-foregroundColor)}.gux-container ::slotted(*){inline-size:100%;overflow-wrap:break-word;white-space:normal}.gux-container.gux-dark{color:var(--gse-ui-tooltip-dark-foregroundColor);background-color:var(--gse-ui-tooltip-dark-backgroundColor);border:var(--gse-ui-tooltip-dark-border-width) var(--gse-ui-tooltip-dark-border-style) var(--gse-ui-tooltip-dark-border-color)}.gux-container.gux-dark ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-dark-iconColor)}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";var w=function(t,i,e,o){var s,r=arguments.length,a=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(i,e,a):s(i,e))||a);return r>3&&a&&Object.defineProperty(i,e,a),a};const y=class{constructor(i){t(this,i),this.tooltipPlacement="bottom-start"}async setShowTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.showTooltip())}async setHideTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.hideTooltip())}onMutation(){s(this.root)}onResize(){s(this.root)}getTooltipContent(){return x(Array.from(this.root.childNodes))||""}needsTruncation(){const t=this.root.shadowRoot.querySelector(".gux-truncate-slot-container");return(null==t?void 0:t.scrollWidth)>(null==t?void 0:t.offsetWidth)||(null==t?void 0:t.scrollHeight)>(null==t?void 0:t.offsetHeight)}renderTooltip(){return this.needsTruncation()?i("gux-tooltip",{placement:this.tooltipPlacement,"aria-hidden":"true",ref:t=>this.tooltipElement=t},i("div",{slot:"content"},this.getTooltipContent())):null}render(){var t;return i("div",{key:"1627eab2dfd3db37f15e7f38c4a85a88998ae0ea",class:{"gux-truncate-multi-line":Boolean(this.maxLines)}},i("span",{key:"58dbe94274931cf894e009ddf208e6fca81627c3",class:{"gux-overflow-hidden":this.needsTruncation(),"gux-truncate-slot-container":!0},style:{webkitLineClamp:null===(t=this.maxLines)||void 0===t?void 0:t.toString()}},i("slot",{key:"bcb6a3d6887a50159d5f28fa775a98866e808848"})),this.renderTooltip())}get root(){return o(this)}};w([b({childList:!0,subtree:!0,characterData:!0})],y.prototype,"onMutation",null),w([m()],y.prototype,"onResize",null),y.style=":host{display:block;inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:inherit}::slotted(*){display:inline}.gux-truncate-multi-line{white-space:normal}.gux-truncate-multi-line .gux-truncate-slot-container{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1}gux-tooltip{font-weight:normal;line-height:normal;text-align:start;overflow-wrap:break-word;white-space:normal}.gux-truncate-slot-container>*{display:inline}.gux-truncate-slot-container{display:block;text-overflow:ellipsis}.gux-overflow-hidden{overflow:hidden}";export{v as gux_tooltip,y as gux_truncate}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as a,h as e,H as t,g as i}from"./p-cf74fd3d.js";import{t as o}from"./p-14333ed8.js";import{g as r}from"./p-cc3c3c56.js";import{b as n}from"./p-e5e644b3.js";import{a as s,c as u,o as c}from"./p-04c85b3b.js";import{O as l}from"./p-f3d844c7.js";import{a as d}from"./p-8eaf8caf.js";import{a as g}from"./p-cf0e7d3b.js";import{a as v,g as b}from"./p-5fcdcbfd.js";import"./p-4202e9f2.js";const f={addToGroup:"Add more items to group"},m=class{constructor(e){a(this,e)}async componentWillLoad(){o(this.root),this.i18n=await n(this.root,f)}async hideTooltip(){return await this.tooltip.hideTooltip()}onKeydown(a){r(a,this.root)}render(){return e(t,{key:"c2208087a0df24f9930d65f5cc0b4e33e9365f3d",role:"menuitem"},e("button",{key:"c84beab4ccbf57c154859e7bd16ba4de69705ffa",type:"button","aria-label":this.i18n("addToGroup"),tabIndex:-1,class:"gux-avatar"},e("span",{key:"de3cafb76d43b51a17d80d825a1902662e55585c","aria-hidden":"true"},"+"),e("gux-tooltip-beta",{key:"02843211a8a4cedfbaafa6b650ddc29d77802a7d","aria-hidden":"true","visual-only":!0,placement:"top",ref:a=>this.tooltip=a},e("div",{key:"a5c8e606aa2cbb12517bf295d26520ca5358aeff",slot:"content"},this.i18n("addToGroup")))))}static get delegatesFocus(){return!0}get root(){return i(this)}};m.style="button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);padding:0;margin:0;overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);color:var(--gse-ui-avatar-media-initialsForeground-add);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-add);border:none;border-radius:50%}button:focus-visible,button:hover{position:relative;z-index:var(--gse-semantic-zIndex-showFocus)}button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}";const h=class{constructor(e){a(this,e),this.delayTime=250,this.count=0,this.expanded=!1}async componentWillLoad(){o(this.root)}componentDidLoad(){this.expanded&&this.runUpdatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){clearTimeout(this.focusDelayTimeout),clearTimeout(this.hideDelayTimeout),this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}onClickOutside(){this.expanded=!1}onKeydown(a){switch(r(a,this.root),a.key){case"Escape":this.hide(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.focusDelayTimeout=g((()=>{var a;null===(a=this.overflowButtonElement)||void 0===a||a.focus()})));break;case"Tab":this.hide()}}onClick(a){a.stopPropagation(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.menuElement.scrollTop=0,this.expanded=!1)}async guxClose(){this.hide()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=s(this.overflowButtonElement,this.menuElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&u(this.overflowButtonElement,this.menuElement,{placement:"bottom-start",strategy:"fixed",middleware:[c({mainAxis:4,crossAxis:4})]}).then((({x:a,y:e})=>{Object.assign(this.menuElement.style,{left:`${a}px`,top:`${e}px`})}))}getCount(){const a=Array.from(this.root.children);if(a.some((a=>"GUX-AVATAR-OVERFLOW-ITEM-BETA"!==a.tagName))&&d(this.root,"Only gux-avatar-overflow-item-beta elements are allowed as children."),a)return a.length}toggleOverflowMenu(){this.expanded?this.hide():this.show()}show(){clearTimeout(this.hideDelayTimeout),this.expanded=!0,this.hideDelayTimeout=g((()=>{this.focusOnMenu()}))}hide(){this.expanded&&(this.hideDelayTimeout=setTimeout((()=>{this.expanded=!1}),this.delayTime))}focusOnMenu(){Array.from(this.root.children)[0].focus()}render(){return e(t,{key:"56dc6348cc414fa170fa0ee06fe064f3450882bc",role:"menuitem"},e("button",{key:"5b73425d77f78fce9d87b33487cea1abef6cb0a3",class:"gux-avatar-overflow",ref:a=>this.overflowButtonElement=a,onClick:()=>this.toggleOverflowMenu(),tabIndex:-1,"aria-haspopup":"true","aria-expanded":this.expanded.toString()},e("span",{key:"a23023d03fb1b759e35f06dea6be0114ba5873db",class:"gux-avatar-overflow-wrapper"},e("span",{key:"ae083e3bbf584b59f5a00eac3585b79fa916a712",class:"gux-avatar-overflow-content"}," +",this.getCount()))),e("div",{key:"cab97c98d994f16c09b24f8545b8cd7200388892",class:{"gux-menu-wrapper":!0,"gux-shown":this.expanded},ref:a=>this.menuElement=a},e("div",{key:"715af9beb5866644e7524b641ce2206b6b1b86d3",role:"menu",class:"gux-menu-content"},e("slot",{key:"fd5723c2b0f9bb1039e043d505ff7dff3ba70a18"}))))}static get delegatesFocus(){return!0}get root(){return i(this)}};function p(a){const e=function(a){let e=a;for(;null!==e.previousElementSibling;)e=e.previousElementSibling;return e}(a);e&&e.focus()}function x(a){const e=function(a){let e=a;for(;null!==e.nextElementSibling;)e=e.nextElementSibling;return e}(a);e&&e.focus()}(function(a,e,t,i){var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(a,e,t,i);else for(var s=a.length-1;s>=0;s--)(o=a[s])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);r>3&&n&&Object.defineProperty(e,t,n)})([l({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;margin-inline-end:var(--gse-ui-avatar-groupSet-gap)}.gux-avatar-overflow{position:relative;box-sizing:border-box;inline-size:100%;padding:0;margin:0;line-height:0px;cursor:pointer;background:none;border:none;border-radius:50%}.gux-avatar-overflow:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-avatar-overflow:hover,.gux-avatar-overflow:focus{z-index:var(--gse-semantic-zIndex-showFocus)}.gux-avatar-overflow .gux-avatar-overflow-wrapper{position:relative;display:flex}.gux-avatar-overflow .gux-avatar-overflow-wrapper .gux-avatar-overflow-content{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-core-lineHeight-matchFontSize);color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-overflowCount);border-radius:50%}.gux-menu-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popup);visibility:hidden;flex-direction:column;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow-y:auto;background-color:var(--gse-ui-menu-backgroundColor);border:none;border:var(--gse-semantic-container-edges-borderWidth) solid var(--gse-semantic-border-container-edges-default);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-menu-wrapper.gux-shown{visibility:visible}";const k=class{constructor(e){a(this,e),this.accent="auto"}async componentWillLoad(){o(this.root)}componentDidLoad(){this.validatingInputs()}onKeydown(a){!function(a,e){switch(a.key){case"ArrowUp":case"ArrowLeft":a.stopPropagation(),a.preventDefault(),function(a){const e=a.previousElementSibling;e?e.focus():x(a)}(e);break;case"ArrowDown":case"ArrowRight":a.stopPropagation(),a.preventDefault(),function(a){const e=a.nextElementSibling;e?e.focus():p(a)}(e);break;case"Home":a.stopPropagation(),a.preventDefault(),p(e);break;case"End":a.stopPropagation(),a.preventDefault(),x(e)}}(a,this.root)}validatingInputs(){const a=this.root.querySelector("img");this.name||d(this.root,"Name prop is required"),a&&!a.getAttribute("alt")&&d(this.root,"Alt attribute is required for slotted image.")}render(){return e(t,{key:"34b0e018d662b7536da4a91d6ccc055c8cc730d7",role:"menuitem"},e("button",{key:"c59be9f70bc25dce8bc62dfc8739f93d6006e68e",type:"button","aria-label":this.name,tabIndex:-1},e("span",{key:"024aae64707578c490f8fb2d2c2aa809e65ffefe",class:{"gux-avatar":!0,[v(this.accent,this.name)]:!0}},e("slot",{key:"1e657ac3badc1a73c283d82f0e0b6381033e179e",name:"image"},e("span",{key:"b63a8cce36637908e4c07f532fdf27e97831e019",class:"gux-avatar-initials","aria-hidden":"true"},b(this.name)))),e("span",{key:"67247e6254beaa1b31374653ace95300a8e029a4"},this.name)))}static get delegatesFocus(){return!0}get root(){return i(this)}};k.style="::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}button{all:unset;box-sizing:border-box;display:flex;gap:var(--gse-ui-menu-option-gap);align-items:center;inline-size:100%;min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);word-wrap:break-word;cursor:pointer;outline:none;outline-offset:calc(var(--gse-ui-menu-option-focus-border-width) * -1);background-color:var(--gse-ui-menu-option-default-backgroundColor);border:none}button:focus-visible{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-focusOutline-sm-borderRadius)}button:hover{background:var(--gse-ui-menu-option-hover-backgroundColor)}button:active{font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}button .gux-avatar{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-xsmall-content-size);block-size:var(--gse-ui-avatar-xsmall-content-size);padding:0;margin:0;overflow:hidden;color:var(--gse-ui-avatar-media-initialsForeground-inverse);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:none;border-radius:50%}button .gux-avatar .gux-avatar-initials{font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-xsmall-initials-fontSize);font-weight:var(--gse-ui-avatar-xsmall-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);text-transform:uppercase}button .gux-avatar.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}button .gux-avatar.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}button .gux-avatar.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}button .gux-avatar.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}button .gux-avatar.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}button .gux-avatar.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}button .gux-avatar.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}button .gux-avatar.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}button .gux-avatar.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}button .gux-avatar.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}button .gux-avatar.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}button .gux-avatar.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}button .gux-avatar.gux-accent-inherit{color:inherit;background-color:inherit}";export{m as gux_avatar_group_add_item_beta,h as gux_avatar_overflow_beta,k as gux_avatar_overflow_item_beta}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as s,h as i,H as e,g as r}from"./p-cf74fd3d.js";import{t as o}from"./p-14333ed8.js";import{p as h,n,f as c,l as a}from"./p-8d73b418.js";const l=["gux-rich-style-list-item","gux-rich-highlight-list-item","gux-rich-text-editor-sub-list"],g=class{constructor(i){t(this,i),this.internallistitemsupdated=s(this,"internallistitemsupdated",7),this.listItems=[]}get listItemsSlot(){return this.root.querySelector("slot")}get listItemElements(){var t;const s=null===(t=this.listItemsSlot)||void 0===t?void 0:t.assignedElements();return s?Array.from(s):[]}handleHighlighItemsNavigation(){if(this.listItemsSlot){const t=this.listItemsSlot.assignedElements().find((t=>"gux-rich-highlight-list-item"===t.tagName.toLowerCase()));t&&(t.shadowRoot.querySelector("button").tabIndex=0)}}setListItems(){this.listItems=this.listItemElements,this.internallistitemsupdated.emit()}async componentWillLoad(){o(this.root),this.setListItems(),this.handleHighlighItemsNavigation()}onKeyDown(t){const s=t.target;if(!s)return;const i={ArrowUp:()=>h(this.root,l),ArrowDown:()=>n(this.root,l),Home:()=>c(this.root,l),End:()=>a(this.root,l)};s.matches("gux-rich-highlight-list-item")&&Object.assign(i,{ArrowLeft:()=>h(this.root,l),ArrowRight:()=>n(this.root,l)});const e=i[t.key];e&&(t.preventDefault(),e())}async guxFocusFirstItem(){c(this.root,l)}async guxFocusLastItem(){a(this.root,l)}render(){return i(e,{key:"dcaebbf922cf039c160624d3302df8072c263886",role:"list"},i("slot",{key:"54d82523fe3ac04394f7d2a7718015acec745c4c",onSlotchange:()=>this.setListItems()}))}static get delegatesFocus(){return!0}get root(){return r(this)}};g.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;padding:var(--gse-ui-menu-padding)}";export{g as gux_rich_text_editor_list}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,h as t,H as o,g as s}from"./p-cf74fd3d.js";import{a as i,c as a,o as r,f as n,s as c,b as d}from"./p-04c85b3b.js";import{a as u}from"./p-cf0e7d3b.js";import{t as h}from"./p-14333ed8.js";import{h as f}from"./p-ac18cbbe.js";const l=class{constructor(t){e(this,t),this.isShown=!1}onKeydown(e){if(e.stopPropagation(),this.isShown)switch(e.key){case"Escape":case"ArrowLeft":case"ArrowUp":return void this.root.focus();case"ArrowDown":return e.preventDefault(),void this.focusOnMenu();case"Enter":return void(this.hideDelayTimeout=u((()=>{this.focusOnMenu()})))}}onKeyup(e){e.stopPropagation()," "!==e.key||(this.root===e.target?this.focusOnMenu():this.hideDelayTimeout=u((()=>{this.root.focus()})))}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){0!==e.detail&&this.hide(),this.root.focus()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),f))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=i(this.targetElement,this.menuContentElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&a(this.targetElement,this.menuContentElement,{placement:"bottom-start",strategy:"fixed",middleware:[r(16),n(),c(),d({element:this.arrowElement,padding:16})]}).then((({x:e,y:t,middlewareData:o,placement:s})=>{var i;Object.assign(this.menuContentElement.style,{left:`${e}px`,top:`${t}px`});const a=s.split("-")[0],r={top:"bottom",right:"left",bottom:"top",left:"right"}[a],n={top:0,right:90,bottom:180,left:-90}[a];if(o.arrow){const{x:e,y:t}=o.arrow;Object.assign(null===(i=this.arrowElement)||void 0===i?void 0:i.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[r]:"-13px",transform:`rotate(${n}deg)`})}}))}focusOnMenu(){if(this.menuContentElement.contains(document.activeElement))return;const e=this.root.querySelector("gux-menu");Array.from(e.children)[0].guxFocus()}componentWillLoad(){h(this.root)}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t(o,{key:"c5c84e99ea3294192a198c02e15c469d462f4513",tabIndex:0,"aria-haspopup":"true"},t("span",{key:"167f018586ec86c5fffcec46d21e7dae68b78857",ref:e=>this.targetElement=e},t("slot",{key:"cb675622f4400180090210192b7159724fb120b8",name:"target"})),t("div",{key:"67e553bafdcb8d3fefbb0f8a6c3fbf4a7029426d",class:{"gux-flyout-menu-content":!0,"gux-shown":this.isShown},ref:e=>this.menuContentElement=e},t("div",{key:"53ef18570bd6ca8c086f993a5d4901b8619d94d0",ref:e=>this.arrowElement=e,class:"gux-arrow"},t("div",{key:"fd6bafab02455a7f0007cdbbb860dec625b2a5c2",class:"gux-arrow-caret"})),t("slot",{key:"fe9427b13c803d1cddb97b0f5cbaadbbcfef08c4",name:"menu"})))}get root(){return s(this)}};l.style=":host{z-index:var(--gse-semantic-zIndex-popover);color:var(--gse-ui-menu-option-label-foregroundColor);cursor:default}:host(:focus){outline:none}:host(:focus-visible){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-flyout-menu-content{position:fixed;display:none;border:none;border-radius:var(--gse-ui-menu-borderRadius);opacity:0}.gux-flyout-menu-content.gux-shown{display:flex;animation-name:fade-in;animation-duration:100ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-flyout-menu-content .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-height);padding-block-end:4px;overflow:hidden}.gux-flyout-menu-content .gux-arrow-caret{inline-size:0;block-size:0;border-block-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-inline-start:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-inline-end:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;filter:drop-shadow(0 0 4px var(--gse-semantic-effects-boxShadow))}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";export{l as gux_flyout_menu}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as s,h as e,g as i}from"./p-cf74fd3d.js";import{a as o,c as a,o as r,f as c,s as n,b as p}from"./p-04c85b3b.js";import{O as d}from"./p-f3d844c7.js";import{t as h}from"./p-14333ed8.js";import{f as l}from"./p-9b0d3713.js";const b=class{constructor(e){t(this,e),this.guxdismiss=s(this,"guxdismiss",7),this.position="bottom",this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(t){switch(t.key){case"Tab":case"Escape":this.dismiss()}}checkForClickOutside(t){const s=t.composedPath(),e=l(this.root,this.for),i=s.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||i||this.dismiss()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=o(l(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=l(this.root,this.for);this.popupElement&&a(t,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[r(7),c(),n(),p({element:this.arrowElement,padding:16})]}).then((({x:t,y:s,middlewareData:e,placement:i})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${s}px`});const o={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(e.arrow){const{x:t,y:s}=e.arrow;this.popupElement.setAttribute("data-placement",i),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[o]:"-6.5px",transform:"rotate(45deg)"})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){h(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return e("div",{key:"06027493c41f6307c87a1fbdd356e5b0bb3cd4ef",ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},e("div",{key:"bbd4037c60d7d4b83ca8d5ac4a371f0f607f1c1a",ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&e("gux-dismiss-button",{key:"5cc31a0d2193f99acc41136cc86d485f0decff8b",onClick:this.dismiss.bind(this)}),e("div",{key:"8eeb6788c5e65b7c6bd44b8a79d7271532816db4",class:"gux-popover-content"},e("slot",{key:"272d95c0af2160f0ab06c489cfa91c641451a2c5"})))}get root(){return i(this)}};(function(t,s,e,i){var o,a=arguments.length,r=a<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,e,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(r=(a<3?o(r):a>3?o(s,e,r):o(s,e))||r);a>3&&r&&Object.defineProperty(s,e,r)})([d({triggerEvents:"mousedown"})],b.prototype,"checkForClickOutside",null),b.style=".gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}";export{b as gux_popover_list}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,c as t,h as s,g as i}from"./p-cf74fd3d.js";import{o}from"./p-0f60c7b5.js";import{O as a}from"./p-f3d844c7.js";import{a as c}from"./p-cf0e7d3b.js";import{t as n}from"./p-14333ed8.js";import{b as r}from"./p-e5e644b3.js";import"./p-4202e9f2.js";const d={searchAria:"Search"};const p=class{constructor(s){e(this,s),this.input=t(this,"input",7),this.filter=t(this,"filter",7),this.disabled=!1,this.noFilter=!1,this.filterDebounceTimeout=500,this.dropdownHeight="320px"}watchValue(e){this.opened&&e&&this.closeDropdown(!1)}get value(){var e;return null===(e=this.currentlySelectedOption)||void 0===e?void 0:e.text}getSelectedValues(){return Promise.resolve([this.value])}async setLabeledBy(e){this.srLabelledby=e}onClickOutside(){this.closeDropdown(!1)}async componentWillLoad(){n(this.root),this.i18n=await r(this.root,d),this.handleSelectionChange=this.handleSelectionChange.bind(this),this.updateSelectionState(),this.addOptionListener(),this.slotObserver=o(this.root,(()=>this.updateSelectionState()))}disconnectedCallback(){this.slotObserver&&this.slotObserver.disconnect()}render(){return s("gux-popup",{key:"d41f1a7e46667e03d7aea00cf76e41f0bc5cea80",expanded:this.opened,disabled:this.disabled},s("div",{key:"244e5e3fc340a4d1d7e901589dd979e2349a8490",slot:"target",class:"gux-select-field",onMouseDown:()=>this.inputMouseDown()},s("a",{key:"10d8b3ffc2b8fb20657a787e9ad4279ea4c827ff",ref:e=>this.inputBox=e,class:"gux-select-input","aria-labelledby":this.srLabelledby,tabindex:"0",onKeyDown:e=>this.inputKeyDown(e)},this.placeholder&&!this.value&&s("span",{key:"5b1f9d9730c645274f78c873005bd348e13ec915",class:"gux-select-placeholder",title:this.placeholder},this.placeholder),this.value&&s("span",{key:"737e474d88c6d6e1784d7ddb09c6bc4767d93f21",class:"gux-select-value",title:this.value},this.value)),s("div",{key:"ba4e4c852695a8de28c01e68fb433c5458372e1b",class:"gux-icon-wrapper"},s("gux-icon",{key:"baebb260e06c027a8966d8e9d4f1a9e363389348",decorative:!0,"icon-name":"custom/chevron-down-small-regular"}))),s("div",{key:"20f5635cc8b7cbe68154fa756f493ae4f555bf03",slot:"popup",class:"gux-advanced-dropdown-menu"},s("div",{key:"b4bfdd196c7a46161d084ebb350ed2709fcee346",class:"gux-dropdown-menu-container"},s("gux-form-field-search",{key:"9f3a8c05391065246fd0f58c1245fd7a2cec7b0d","label-position":"screenreader"},s("label",{key:"68908618c59e9f4bf27ffc46f263c5468e5f10fb",slot:"label"},this.i18n("searchAria")),s("input",{key:"c8ca819f3bbeb8daadc46795fbb6a0745d9e6591",slot:"input",type:"search",onInput:e=>{this.handleSearchInput(e)},ref:e=>this.searchInput=e})),s("div",{key:"dfc60a1e40be71ce841d33bf24fb587d89d6d648",class:"gux-dropdown-options",style:{maxHeight:this.dropdownHeight},onKeyDown:e=>this.optionsKeyDown(e)},s("slot",{key:"0f51073ffc5e046975d74902fb4bff45a05a3352"})))))}updateSelectionState(){this.selectionOptions=this.getSelectionOptions(),this.currentlySelectedOption=this.selectionOptions.find((e=>e.selected))}addOptionListener(){this.root.addEventListener("selectedChanged",(e=>this.handleSelectionChange(e)))}handleSelectionChange({target:e}){const t=e;this.closeDropdown(!0),this.currentlySelectedOption!==t&&(this.currentlySelectedOption&&(this.currentlySelectedOption.selected=!1),this.currentlySelectedOption=t,this.input.emit(t.value))}getSelectionOptions(){const e=this.root.querySelectorAll("gux-dropdown-option");return Array.from(e)}inputMouseDown(){this.disabled||(this.opened?this.closeDropdown(!0):this.openDropdown(!1))}getFocusIndex(){return this.selectionOptions.findIndex((e=>e.matches(":focus")))}optionsKeyDown(e){switch(e.key){case"ArrowUp":{e.preventDefault();const t=this.getFocusIndex();t>0&&this.selectionOptions[t-1].focus();break}case"ArrowDown":{e.preventDefault();const t=this.getFocusIndex();t<this.selectionOptions.length-1&&this.selectionOptions[t+1].focus();break}case"Home":if(!this.selectionOptions.length)return;this.selectionOptions[0].focus();break;case"End":if(!this.selectionOptions.length)return;this.selectionOptions[this.selectionOptions.length-1].focus()}}inputKeyDown(e){switch(e.key){case"ArrowUp":case"ArrowDown":case" ":this.openDropdown(!0)}}handleSearchInput(e){e.stopPropagation(),clearTimeout(this.filterDebounceTimer),this.filterDebounceTimer=setTimeout((()=>this.searchRequested()),this.filterDebounceTimeout)}searchRequested(){this.filter.emit(this.searchInput.value),this.setFilteredOptions()}setFilteredOptions(){const e=this.searchInput.value;if(!this.noFilter)for(const t of this.selectionOptions)t.shouldFilter(e).then((e=>{t.filtered=e}))}changeFocusToSearch(){c((()=>{this.searchInput.focus()}))}openDropdown(e){this.opened=!0,e&&this.changeFocusToSearch()}closeDropdown(e){this.opened=!1,this.searchInput.value="",this.setFilteredOptions(),e&&this.inputBox.focus()}get root(){return i(this)}static get watchers(){return{disabled:["watchValue"]}}};(function(e,t,s,i){var o,a=arguments.length,c=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(c=(a<3?o(c):a>3?o(t,s,c):o(t,s))||c);a>3&&c&&Object.defineProperty(t,s,c)})([a({triggerEvents:"mousedown"})],p.prototype,"onClickOutside",null),p.style=":host{color:#2e394c}gux-popup{display:block;margin:4px 0}gux-popup .gux-select-field{position:relative;width:100%;height:32px}gux-popup .gux-select-field a.gux-select-input{position:absolute;inset:0;padding:6px 24px 6px 12px;overflow:hidden;text-overflow:ellipsis;color:#2e394c;white-space:nowrap;text-decoration:none;cursor:pointer;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder,gux-popup .gux-select-field a.gux-select-input .gux-select-value{line-height:20px}gux-popup .gux-select-field a.gux-select-input .gux-select-placeholder{color:#596373}gux-popup .gux-select-field a.gux-select-input:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}gux-popup .gux-select-field .gux-icon-wrapper{position:absolute;top:1px;right:8px;bottom:0;display:flex;align-items:center;overflow:hidden;cursor:pointer}gux-popup .gux-select-field .gux-icon-wrapper gux-icon{width:16px;height:16px;color:#596373}gux-popup .gux-select-field:hover .gux-icon-wrapper gux-icon{color:#2e394c}gux-popup .gux-advanced-dropdown-menu{background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 0 2px 0 rgba(32, 41, 55, 0.24)}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search{margin:8px 16px}gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-cancel-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-search-results-button,gux-popup .gux-advanced-dropdown-menu .gux-dropdown-menu-container gux-form-field-search input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}gux-popup .gux-dropdown-options{padding:8px 0;margin:0;overflow-y:auto;color:#2e394c;background:#fdfdfd;border-radius:4px;box-shadow:none}";export{p as gux_advanced_dropdown_legacy}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-cf74fd3d.js";import{a as s,c as a,o as n,f as o,d,s as c,h}from"./p-04c85b3b.js";const p=class{constructor(i){t(this,i),this.internalexpanded=e(this,"internalexpanded",7),this.internalcollapsed=e(this,"internalcollapsed",7),this.placement="bottom-start",this.expanded=!1,this.disabled=!1,this.offset=2,this.exceedTargetWidth=!1,this.inline=!1}runUpdatePosition(){this.cleanupUpdatePosition=s(this.targetElementContainer,this.popupElementContainer,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0})}updatePosition(){if(this.targetElementContainer&&this.popupElementContainer){const t=this.exceedTargetWidth,e=this.inline;a(this.targetElementContainer,this.popupElementContainer,{strategy:"fixed",placement:this.placement,middleware:[n(this.offset),o(),d({apply({rects:i,elements:s}){t&&!e?Object.assign(s.floating.style,{minWidth:`${i.reference.width}px`}):e||Object.assign(s.floating.style,{width:`${i.reference.width}px`,overflow:"hidden"})}}),c(),h()]}).then((({x:t,y:e,middlewareData:i})=>{const{referenceHidden:s}=i.hide;isNaN(t)||Object.assign(this.popupElementContainer.style,{left:`${t}px`}),isNaN(e)||Object.assign(this.popupElementContainer.style,{top:`${e}px`}),s?this.popupElementContainer.classList.add("gux-sr-only-clip"):this.popupElementContainer.classList.remove("gux-sr-only-clip")}))}}onExpandedChange(t){t?this.internalexpanded.emit():this.internalcollapsed.emit()}componentDidLoad(){this.expanded&&this.runUpdatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return i("div",{key:"425c3fe4d308bc7a405c855fd339a079e9d05d06",class:{"gux-target-container":!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString(),ref:t=>this.targetElementContainer=t},i("slot",{key:"538bd99671e2f1a66e6b77f559f284d82353d9ca",name:"target"}),i("div",{key:"9dd4b9ce304c79b243c0e1f0a1a10b6993e7c162",class:{"gux-popup-container":!0,"gux-expanded":this.expanded&&!this.disabled},ref:t=>this.popupElementContainer=t},i("slot",{key:"bf99c8e91bde2cecb2a86e7baa030fa3b3bcfcb5",name:"popup"})))}static get watchers(){return{expanded:["onExpandedChange"]}}};p.style=".gux-target-container.gux-disabled{pointer-events:none;cursor:default;opacity:0.5}.gux-popup-container{position:fixed;z-index:var(--gse-semantic-zIndex-popup);visibility:hidden;inline-size:max-content;background-color:var(--gse-ui-menu-backgroundColor)}.gux-popup-container.gux-expanded{visibility:visible}.gux-sr-only-clip:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0 0 0 0);clip-path:inset(50%)}";export{p as gux_popup}
|
File without changes
|
File without changes
|
File without changes
|