genesys-spark-components 4.154.6 → 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-1cc3f37c.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-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-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-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-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-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-b40a5ce2.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/{p-0a041ae0.entry.js → p-013bb7ff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9860992f.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-c33302a9.entry.js → p-044952be.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-06303fbe.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-25c0bb1b.entry.js → p-126bdd9d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cd886516.entry.js → p-127b9b26.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-da7871eb.entry.js → p-140b15fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a5f7e99.entry.js → p-14e6073f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f06bd9a0.entry.js → p-161a2943.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4a548454.entry.js → p-168a430e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2e37c074.entry.js → p-1942e9e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6d214a2a.entry.js → p-1a8b603b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7273fd52.entry.js → p-1c1a307d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a3363202.entry.js → p-1cc73ac6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-724fbfc1.entry.js → p-1e57262c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4c6b9794.entry.js → p-1fc1faca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7674bd92.entry.js → p-2177200b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b7b65079.entry.js → p-219fec9e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ee7ddf28.entry.js → p-24c04a05.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ca3f58b7.entry.js → p-2b9d4fcd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a370795b.entry.js → p-2c04c46a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3771446.entry.js → p-2c9e5f60.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1ee6564e.entry.js → p-2e7ef7cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a67faf1b.entry.js → p-32c82188.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d4ea968c.entry.js → p-34f196b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-caf9d334.entry.js → p-366c973f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8b165cea.entry.js → p-3b407ef0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-79ddd5e6.entry.js → p-3c8ba744.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b6699f54.entry.js → p-412dcd92.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-65f5e668.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-b3e5fe7a.entry.js → p-4641ec47.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-46a51611.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-a1c05f13.entry.js → p-475324bb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-433d9171.entry.js → p-47e49981.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a376d546.entry.js → p-48fe9f97.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-aa5a5d80.entry.js → p-4c0cf11b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4fa5d622.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-96306dad.entry.js → p-4ff9015f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-95243649.entry.js → p-52ae0dff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a972afa4.entry.js → p-5a71401f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0117591d.entry.js → p-5b161d99.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-de1fca25.entry.js → p-61492fb2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-082ed703.entry.js → p-6782bc47.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-6afffef6.entry.js +1 -0
- package/dist/genesys-webcomponents/p-6c62eb0b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-fcdad94f.js → p-6ec0040f.js} +1 -1
- package/dist/genesys-webcomponents/{p-794559b9.entry.js → p-71fd2223.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f99b7a11.entry.js → p-740d529f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-74b5b61f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9e8ce8bd.entry.js → p-7a7b2de6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6af79374.entry.js → p-7e15f786.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-78327b1b.entry.js → p-7f91639d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8148f973.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-2deae83a.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-a1d79a3e.entry.js → p-8d37d7b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-95a6efb2.entry.js → p-8e3d7685.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-df2bf3b1.entry.js → p-94b4c37b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-79f6404c.entry.js → p-9a3ea047.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2e4ee5a7.entry.js → p-9b85157f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-69483740.entry.js → p-a0021e01.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e775c55c.entry.js → p-a0670b52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fd5b6781.entry.js → p-a26a73f3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-28b6a488.entry.js → p-a2c3f918.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3fcda53f.entry.js → p-a4a9f97f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-765faf29.entry.js → p-a72683d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9c61429c.entry.js → p-a918c146.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-646eaa03.entry.js → p-abdd558b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-76a86917.entry.js → p-ac57fa66.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e2775836.entry.js → p-adbb4b08.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-41b068dd.entry.js → p-af1ef170.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-10da2337.entry.js → p-b0db67dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-818d9ede.entry.js → p-b12be976.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b1c93415.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7b310b54.entry.js → p-b1f9808a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cf041f4b.entry.js → p-b2448720.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6ca443d.entry.js → p-b2853f1b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0aa0d1e0.entry.js → p-b469c39e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-25f34f16.entry.js → p-b7734ee1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bebdca62.entry.js → p-b9c7b974.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-120cae91.entry.js → p-b9fd5655.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-28e6ab94.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-be89512a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c1b17e7a.entry.js → p-beb4e514.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-896781c6.entry.js → p-bf7a4f4c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c101041b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-58e748cf.entry.js → p-c129a55a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6feecc53.entry.js → p-c4171c65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f172e2aa.entry.js → p-c7b5a1e4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b10ba8c1.entry.js → p-ca672d6c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1f01408c.entry.js → p-cb461c35.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-43c190fb.entry.js → p-cbf8fe92.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5741f361.entry.js → p-ccb95948.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ccef859d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-305f8259.entry.js → p-cf7e1b57.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-cfdc652b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e1140ad7.entry.js → p-d0b48b5d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1cc4bfe8.entry.js → p-d452033d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7984e009.entry.js → p-d48345d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d06250ae.entry.js → p-d6032f56.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f3ca6491.entry.js → p-d75709aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-60896e89.entry.js → p-d7e0ae87.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0c2763a7.entry.js → p-dbd270c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b480e802.entry.js → p-dd4ce7cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b637957c.entry.js → p-ddc587da.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a213ad14.entry.js → p-debfd94a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fc8e2f2a.entry.js → p-e0a313e9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5731cc5f.entry.js → p-e13edf65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-370e5eaf.entry.js → p-e2777b62.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c7d6523f.entry.js → p-e5baff35.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ce82e394.entry.js → p-e7cce33f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bd9f8025.entry.js → p-ea7f7be3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-11a1d826.entry.js → p-ed0aff08.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-510e591f.entry.js → p-ee687f41.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-567954c5.entry.js → p-f5de3e06.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2f48bdb.entry.js → p-f9741506.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ac47a12d.entry.js → p-fa05ea7c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-65342506.entry.js → p-fcc941cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7fa9a1a7.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-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-3e5ab57f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-41bb6496.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-557c3e62.entry.js +0 -1
- package/dist/genesys-webcomponents/p-7d1ae2bd.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9ab9b09b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-baf50bbe.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c18dfe1b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c8bf3910.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d1e06e65.entry.js +0 -1
- package/dist/genesys-webcomponents/p-df67e0a0.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e234afde.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f62e0338.entry.js +0 -1
- package/dist/genesys-webcomponents/p-fbfcce82.entry.js +0 -1
- package/dist/genesys-webcomponents/p-fdd08d1b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ff96048b.entry.js +0 -1
- /package/dist/cjs/{index.umd-debc04ba.js → index.umd-aba93706.js} +0 -0
- /package/dist/esm/{index.umd-64d8c536.js → index.umd-ef564d94.js} +0 -0
- /package/dist/genesys-webcomponents/{p-5e1571a8.js → p-8073cd78.js} +0 -0
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,h as s,g as a}from"./p-cf74fd3d.js";import{b as i}from"./p-e5e644b3.js";import{t as n}from"./p-
|
1
|
+
import{r as t,c as e,h as s,g as a}from"./p-cf74fd3d.js";import{b as i}from"./p-e5e644b3.js";import{t as n}from"./p-6ec0040f.js";import{g as r}from"./p-4202e9f2.js";import{o}from"./p-0f60c7b5.js";import{t as c}from"./p-408d5857.js";const d=class{constructor(s){t(this,s),this.guxsortchanged=e(this,"guxsortchanged",7),this.includeUnsorted=!1,this.active=!1,this.sort="none",this.isLeftAlignIcon=!1}async componentWillLoad(){n(this.root),this.i18n=await i(this.root,c,"gux-table"),this.tableHeader=r("th",this.root),this.thObserver=o(this.tableHeader,(()=>{this.setState()}),{attributes:!0,childList:!1,subtree:!1}),this.setState()}disconnectedCallback(){this.thObserver&&this.thObserver.disconnect()}onClick(){this.guxsortchanged.emit({columnName:this.tableHeader.dataset.columnName,sortDirection:this.getNextSort(this.sort)})}setState(){this.headerContent=this.tableHeader.textContent,this.isLeftAlignIcon=this.tableHeader.hasAttribute("data-cell-numeric")||this.tableHeader.hasAttribute("data-cell-action");const t=this.tableHeader.getAttribute("aria-sort");switch(t){case"ascending":case"descending":this.active=!0,this.sort=t;break;default:this.active=!1,this.sort="none"}}getIconName(t){return"descending"===t?"fa/caret-down-solid":"fa/caret-up-solid"}getNextSort(t){switch(t){case"none":return"ascending";case"ascending":return"descending";default:return this.includeUnsorted?"none":"ascending"}}getSRText(t){switch(t){case"ascending":return this.i18n("ascendingColumnSort",{headerContent:this.headerContent});case"descending":return this.i18n(this.includeUnsorted?"descendingColumnSortIncludeUnsorted":"descendingColumnSort",{headerContent:this.headerContent});default:return this.i18n("noColumnSort",{headerContent:this.headerContent})}}render(){return s("div",{key:"0f5600eb337411de6716a01c9bb4d0825d41e141",class:"gux-container"},s("button",{key:"3f01fb4e9af4f0868be8d1037768c20289d0953d",class:{"gux-sort-button":!0,"gux-active":this.active},type:"button",onClick:()=>this.onClick(),"aria-label":this.getSRText(this.sort)},s("gux-icon",{key:"5ae3610d6302395fe219850288bba23623c72e2a",class:{"gux-sort-icon":!0,"gux-left":this.isLeftAlignIcon},size:"small","icon-name":this.getIconName(this.sort),decorative:!0})),s("div",{key:"e36588875ebbaa0b82bc6cc4df8f925b30a7c12c",class:"gux-resize-spacer"}))}static get delegatesFocus(){return!0}get root(){return a(this)}};d.style=".gux-container{position:absolute;inset:0;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:flex-start flex-start;align-items:center;border-block-start:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent;border-block-end:var(--gse-ui-dataTableItems-header-selectedBar-height) solid transparent}.gux-container:focus-within{border-block-end-color:var(--gse-ui-dataTableItems-header-selectedIndicatorColor)}.gux-container .gux-sort-button{all:unset;flex:1 1 auto;align-self:stretch;order:0;cursor:pointer}.gux-container .gux-sort-button .gux-sort-icon{float:inline-end;margin-block:0;margin-inline:var(--gse-ui-dataTableItems-header-gap);color:var(--gse-ui-dataTableItems-header-sort-foregroundColor)}.gux-container .gux-sort-button .gux-sort-icon.gux-left{float:inline-start;margin-inline-start:calc(2px + var(--gse-ui-dataTableItems-header-gap))}.gux-container .gux-resize-spacer{flex:0 1 auto;align-self:stretch;order:0;inline-size:2px}";export{d as gux_sort_control}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as
|
1
|
+
import{r as t,c as a,h as e,g as i}from"./p-cf74fd3d.js";import{t as n}from"./p-6ec0040f.js";const s=class{constructor(e){t(this,e),this.guxpaginationchange=a(this,"guxpaginationchange",7),this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.layout="full"}setPage(t){if(t<=0)return void this.setPage(1);const a=this.calculateTotalPages();t>a?this.setPage(a):(this.currentPage=t,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}calculateTotalPages(){return Math.max(1,Math.ceil(this.totalItems/this.itemsPerPage))}calculateCurrentPage(){return Math.max(this.totalPages>0?1:0,Math.min(this.currentPage,this.totalPages))}handleInternalitemsperpagechange(t){this.itemsPerPage=t.detail,this.setPage(1)}handleInternalcurrentpagechange(t){this.setPage(t.detail)}getPaginationInfoElement(t){if("expanded"===t)return null;const a=[e("gux-pagination-item-counts-legacy",{"total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage})];return"full"===t&&a.push(e("gux-pagination-items-per-page-legacy",{"items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),e("div",{class:"gux-pagination-info"},a)}componentWillLoad(){n(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(),this.currentPage=this.calculateCurrentPage()}render(){return e("div",{key:"b107dfd919c1e04795f6239de7b2c7f56ba61a83",class:"gux-pagination-container"},this.getPaginationInfoElement(this.layout),e("div",{key:"cdd5c4b9d60e291e732fa8d9058f0c0f3bdeb52d",class:"gux-pagination-change"},e("gux-pagination-buttons-legacy",{key:"6be7e5ce93f5b9ea10e54eb520df2667e2a8ffe8",layout:this.layout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return i(this)}};s.style=":host{display:block;border-top:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:center;height:var(--gse-ui-dataTableItems-cell-tablePagination-height);padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-start;align-items:center;align-self:auto;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}";export{s as gux_pagination_legacy}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,h as i,g as s}from"./p-cf74fd3d.js";import{O as
|
1
|
+
import{r as t,c as e,h as i,g as s}from"./p-cf74fd3d.js";import{O as n}from"./p-f3d844c7.js";import{w as a}from"./p-e97879b4.js";import{a as o}from"./p-cf0e7d3b.js";import{t as c}from"./p-6ec0040f.js";import{b as r}from"./p-e5e644b3.js";import"./p-4202e9f2.js";const d={moreOptions:"More options"},u=["primary","secondary","tertiary","danger"];function b(t){return u.find((e=>e===t))?t:"secondary"}const l=class{constructor(i){t(this,i),this.open=e(this,"open",7),this.close=e(this,"close",7),this.actionClick=e(this,"actionClick",7),this.type="button",this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const e=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,e.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":e.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():(this.listElement.blur(),this.close.emit())}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){o((()=>{var t;null===(t=this.listElement)||void 0===t||t.focus()}))}focusFirstItemInPopupList(){o((()=>{this.listElement.guxFocusFirstItem()}))}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}onListClick(t){a("gux-list-item",t,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}async componentWillLoad(){c(this.root,{variant:this.type}),this.i18n=await r(this.root,d)}render(){return i("div",{key:"4da7d8a0c914ab01fbf55648853e5395acc3fb9c",class:"gux-action-button-container"},i("gux-popup",{key:"2a31afb0fd3a4783296ad0ef4562f2ed9e56eabd",expanded:this.isOpen,disabled:this.disabled,placement:"bottom-end","exceed-target-width":!0},i("div",{key:"05b9e305486e9ec823a89649b2314e0439065576",slot:"target",class:"gux-action-button-container"},i("gux-button-slot",{key:"535b2aa6c8d28c5bcf80b1602751d7b76dc021f7",class:"gux-action-button",accent:b(this.accent)},i("button",{key:"bf41618e2f793b845a6401f9bd9e300554431fd9",type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick(),"data-testid":"action-button"},i("slot",{key:"5771cd844278554826511c97468d20bfb19564ca",name:"title"}))),i("gux-button-slot",{key:"2b045592818a8de2800fbea8c0e4280fa425584d",class:"gux-dropdown-button",accent:b(this.accent)},i("button",{key:"d187108586ac6a9208fe86259df51b88df87a475",type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("moreOptions"),"data-testid":"dropdown-button"},i("gux-icon",{key:"7f9a38457b9283ed91f7a15f6b238cce6351ff6f",decorative:!0,"icon-name":"custom/chevron-down-small-regular",size:"small"})))),i("div",{key:"2da7b1ecc8b1df98de2322c01160a8c3553e8db0",class:"gux-list-container",slot:"popup"},i("gux-list",{key:"5eeca955aee607c56fb03047b93230ab180dace8",onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},i("slot",{key:"8520dea29445f8ce384f072f5eb2cc9eabbc478e"})))))}static get delegatesFocus(){return!0}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,e,i,s){var n,a=arguments.length,o=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(o=(a<3?n(o):a>3?n(e,i,o):n(e,i))||o);a>3&&o&&Object.defineProperty(e,i,o)})([n({triggerEvents:"click"})],l.prototype,"onClickOutside",null),l.style=":host{display:block;-webkit-user-select:none;user-select:none}.gux-action-button-container{min-inline-size:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{inline-size:calc(100% - 33px);margin-inline-end:1px}.gux-action-button-container .gux-action-button button{inline-size:100%;max-inline-size:none;text-align:center;border-start-end-radius:0;border-end-end-radius:0}.gux-action-button-container .gux-action-button button:focus-visible:enabled{position:relative}.gux-action-button-container .gux-dropdown-button button{display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-button-iconOnly-width);padding:0;border-start-start-radius:0;border-end-start-radius:0}.gux-action-button-container .gux-list-container{max-inline-size:220px;max-block-size:var(--gse-ui-menu-maxHeight);margin:0;overflow-y:auto;background:var(--gse-ui-menu-backgroundColor);border-color:var(--gse-ui-menu-border-color);border-style:var(--gse-ui-menu-border-style);border-width:var(--gse-ui-menu-border-width);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}";export{l as gux_action_button}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as n,g as a}from"./p-cf74fd3d.js";import{t as i}from"./p-
|
1
|
+
import{r as e,h as n,g as a}from"./p-cf74fd3d.js";import{t as i}from"./p-6ec0040f.js";const g=class{constructor(n){e(this,n)}componentWillLoad(){i(this.root)}render(){return n("div",{key:"f1cc2ae7ad4adbba0585492ddb510d0c6e5eebec",class:"gux-container",role:"alert","aria-live":"assertive"},n("div",{key:"8e07c75e9ce20ed3b7791ed5896b37f10d8dfb88",class:"gux-progress"},n("slot",{key:"9ce54e9d0df89954603f7e627828eea749561c6d",name:"progress"})),n("div",{key:"ba6a1a0e4908946351fc63cf28b796cfe8cca4f1",class:"gux-primary-message"},n("slot",{key:"318a82e74471d776bb1421870fce0d51b1edd4b3",name:"primary-message"})),n("div",{key:"6b91b1dc2c3a6f6f0ed3ad096c47f75be7e3092c",class:"gux-additional-guidance"},n("slot",{key:"96564203a3f6aeea8255eb049a7c3ce8e70a6d2f",name:"additional-guidance"})))}get root(){return a(this)}};g.style=":host {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n container-type: inline-size;\n}\n\n.gux-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n max-inline-size: var(--gse-ui-progressAndLoading-loadingState-large-width);\n color: var(--gse-ui-progressAndLoading-textColor);\n text-align: center;\n}\n\n@container (width > 400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-large-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-large-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-large-subheader-lineHeight);\n }\n}\n@container (width > 200px) and (width <=400px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-medium-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-medium-subheader-lineHeight);\n }\n}\n@container (width <=200px) {\n .gux-container .gux-primary-message {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gap);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-header-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-header-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-header-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-header-lineHeight);\n }\n .gux-container .gux-additional-guidance {\n margin-block-start: var(--gse-ui-progressAndLoading-small-gapText);\n font-family: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontFamily);\n font-size: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontSize);\n font-weight: var(--gse-ui-progressAndLoading-loadingState-small-subheader-fontWeight);\n line-height: var(--gse-ui-progressAndLoading-loadingState-small-subheader-lineHeight);\n }\n}";export{g as gux_loading_message}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as o,g as t}from"./p-cf74fd3d.js";import{O as i}from"./p-946c70b7.js";import{h as r}from"./p-6d8b4027.js";import{t as l}from"./p-
|
1
|
+
import{r as e,h as o,g as t}from"./p-cf74fd3d.js";import{O as i}from"./p-946c70b7.js";import{h as r}from"./p-6d8b4027.js";import{t as l}from"./p-6ec0040f.js";import{a,G as s}from"./p-56b18d28.js";import{G as f,a as n}from"./p-bd1d4fac.js";import{a as h,g as d,v as p}from"./p-4aaf349e.js";import{p as u}from"./p-a11d5d42.js";import{o as c}from"./p-6b12dd16.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const m=class{constructor(o){e(this,o),this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.required=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help")}handleKeyup(e){var o,t;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),l(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}setInput(){this.input=d(this.root,'input[type="file"][slot="input"]'),u(this.input),this.required=this.input.required,this.requiredObserver=c(this.input,(e=>{this.required=e})),p(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return o(n,{key:"08511bf60b590f9a13ba6a7fb3561769eb0d3aa1",labelPosition:this.computedLabelPosition},o(f,{key:"04a5dfc249109bbe7fa2989d764a9ae58bc952b4",position:this.computedLabelPosition,required:this.required},o("slot",{key:"6953fc2d625acbf6e3b33da32647cb534c1864d1",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"51ec4246ee2079232ef350e6decf7dbf1dc91b04",variant:this.indicatorMark,required:this.required}),o("slot",{key:"b2f6397e827292e196516614dc72774bb9a80020",name:"label-info"})),o("div",{key:"4a1a487771bc384f433278cfe3ba63c23141fa8b",class:"gux-input-and-error-container"},o("slot",{key:"47d0d93b1ff6902dbb6fb17233455a6209f15698",name:"input",onSlotchange:()=>this.setInput()}),o(a,{key:"96b0f4cf4ccc15e6f42856c03ce0e109a30c7d72",show:this.hasError},o("slot",{key:"ae24a6c6a1ffbe31d576a946dd7e8d8c4574fb39",name:"error"})),o(s,{key:"2702e229e642c9e700b203f7fc20a15bc7c0fdc0",show:!this.hasError&&this.hasHelp},o("slot",{key:"da73bd0d3b3207bffdff1d0cbc6506c301cf8792",name:"help"}))))}get root(){return t(this)}};(function(e,o,t,i){var r,l=arguments.length,a=l<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,t,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(o,t,a):r(o,t))||a);l>3&&a&&Object.defineProperty(o,t,a)})([i({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;inset-block-start:var(--gse-ui-formControl-input-top);inline-size:fit-content;min-inline-size:var(--gse-ui-formControl-input-textfield-minWidth);max-inline-size:fit-content;margin-inline-end:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{m as gux_form_field_file}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as a,c as e,h as o,g as t}from"./p-cf74fd3d.js";import{r as i}from"./p-0934300e.js";import{t as n}from"./p-
|
1
|
+
import{r as a,c as e,h as o,g as t}from"./p-cf74fd3d.js";import{r as i}from"./p-0934300e.js";import{t as n}from"./p-6ec0040f.js";const d=class{constructor(o){a(this,o),this.guxdismiss=e(this,"guxdismiss",7),this.size="dynamic",this.trapFocus=!0}handleKeyEvent(a){"Escape"===a.key&&this.onDismissHandler(a)}connectedCallback(){this.triggerElement=document.activeElement}componentWillLoad(){n(this.root,{variant:`${this.size}-${this.trapFocus?"trapfocuson":"trapfocusoff"}`})}componentDidLoad(){var a,e,o;const t=this.getInitialFocusElement();t?null===(a=t.focus)||void 0===a||a.call(t):this.dismissButton&&(null===(o=(e=this.dismissButton).focus)||void 0===o||o.call(e))}render(){const a=this.hasModalTitleSlot(),e=this.hasFooterButtons(),t=i();return o("div",{key:"cf42f13044a776e9737d6e4eb116679e1f1def36",class:"gux-modal",role:"dialog","aria-modal":"true","aria-labelledby":a?t:null},o("div",{key:"f943a8f753e5a6543c81bafe7d6ed08ac9e63fa0",class:`gux-modal-container gux-${this.size}`},this.renderModalTrapFocusEl(),a&&o("h1",{key:"5f0b9552741d7a94eead287d580ba06a7090d941",class:"gux-modal-header",id:t},o("slot",{key:"15acab823d68f5c933a045beb99387105d07759f",name:"title"})),o("gux-dismiss-button",{key:"1781b8dea0a20bcb6a5882e7592b83fd47551292",onClick:this.onDismissHandler.bind(this),ref:a=>this.dismissButton=a}),o("div",{key:"12c81a0e0958952d89a55c17e9899e301e5b3bc2",class:{"gux-modal-content":!0,"gux-no-buttons":!e}},o("p",{key:"b8a99c68306f05cc843cf2569d6689a4eedc5e9b"},o("slot",{key:"5c88dabaea5f7ff2ce152907c41f41980474997d",name:"content"}))),e&&o("div",{key:"a57a2c1ec660b8e9b0e662bfed969f6696992772",class:"gux-button-footer"},o("div",{key:"67e3268b76c15ebec134a0881de4cdca4ef38ab2",class:"gux-left-align-buttons"},o("slot",{key:"d311983951eadfbb6028edfd1a92d682f746a378",name:"left-align-buttons"})),o("div",{key:"1ce03d9d93028232807f0dd6c5148e80fa98f3d3",class:"gux-right-align-buttons"},o("slot",{key:"3f4ffa188878a61224ba47701453cb298e0b5db7",name:"right-align-buttons"}))),this.renderModalTrapFocusEl()))}renderModalTrapFocusEl(){if(this.trapFocus)return o("span",{onFocus:()=>this.dismissButton.focus(),tabindex:"0"})}getInitialFocusElement(){return this.initialFocus?this.root.querySelector(this.initialFocus):void 0}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){return Boolean(this.root.querySelector('[slot="left-align-buttons"]'))||Boolean(this.root.querySelector('[slot="right-align-buttons"]'))}onDismissHandler(a){var e;a.stopPropagation(),this.guxdismiss.emit().defaultPrevented||(this.root.remove(),null===(e=this.triggerElement)||void 0===e||e.focus())}get root(){return t(this)}};d.style="::slotted(button:active:enabled){color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}slot[name=left-align-buttons]::slotted(:not(button,gux-button)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host .gux-modal{position:fixed;inset:0;z-index:var(--gse-semantic-zIndex-modal);display:flex;align-items:center;justify-content:center;color:var(--gse-semantic-foreground-container-highEmphasis);background:var(--gse-ui-modal-shroudColor)}:host .gux-modal .gux-modal-container{position:relative;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;padding:var(--gse-ui-modal-padding) 0;background:var(--gse-ui-modal-backgroundColor);border:1px solid var(--gse-semantic-border-container-edges-default);border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow)}:host .gux-modal .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-medium{width:var(--gse-ui-modal-medium-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-large{width:var(--gse-ui-modal-large-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host .gux-modal .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host .gux-modal .gux-modal-container .gux-modal-header{padding:0 var(--gse-ui-modal-padding);margin:0;font-family:var(--gse-ui-modal-heading-fontFamily);font-size:var(--gse-ui-modal-heading-fontSize);font-weight:var(--gse-ui-modal-heading-fontWeight);line-height:var(--gse-ui-modal-heading-fontFamily);color:var(--gse-ui-modal-headerColor);font-family:var(--gse-semantic-heading-xl-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-xl-bold-fontSize);line-height:var(--gse-semantic-heading-xl-bold-lineHeight);font-weight:var(--gse-semantic-heading-xl-bold-fontWeight)}:host .gux-modal .gux-modal-container .gux-modal-content{max-height:432px;padding:0 var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);margin-bottom:var(--gse-ui-modal-gap);overflow-y:auto}:host .gux-modal .gux-modal-container .gux-modal-content.gux-no-buttons{margin-bottom:0}:host .gux-modal .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding:0 var(--gse-ui-modal-padding)}@media (max-width: 416px){:host .gux-modal .gux-modal-container.gux-small,:host .gux-modal .gux-modal-container.gux-medium,:host .gux-modal .gux-modal-container.gux-large{width:100%;height:100%}}";export{d as gux_modal_legacy}
|
@@ -1 +1 @@
|
|
1
|
-
const t=["top","right","bottom","left"],n=Math.min,e=Math.max,r=Math.round,o=Math.floor,i=t=>({x:t,y:t}),a={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function l(t,r,o){return e(t,n(r,o))}function s(t,n){return"function"==typeof t?t(n):t}function u(t){return t.split("-")[0]}function f(t){return t.split("-")[1]}function d(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function h(t){return["top","bottom"].includes(u(t))?"y":"x"}function y(t){return d(h(t))}function p(t){return t.replace(/start|end/g,(t=>c[t]))}function w(t){return t.replace(/left|right|bottom|top/g,(t=>a[t]))}function g(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function x(t){const{x:n,y:e,width:r,height:o}=t;return{width:r,height:o,top:e,left:n,right:n+r,bottom:e+o,x:n,y:e}}function v(t,n,e){let{reference:r,floating:o}=t;const i=h(n),a=y(n),c=m(a),l=u(n),s="y"===i,d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,w=r[c]/2-o[c]/2;let g;switch(l){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(f(n)){case"start":g[a]-=w*(e&&s?-1:1);break;case"end":g[a]+=w*(e&&s?-1:1)}return g}async function b(t,n){var e;void 0===n&&(n={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=s(n,t),y=g(h),p=c[m?"floating"===d?"reference":"floating":d],w=x(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(p)))||e?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),A=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},R=x(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:b,strategy:l}):v);return{top:(w.top-R.top+y.top)/A.y,bottom:(R.bottom-w.bottom+y.bottom)/A.y,left:(w.left-R.left+y.left)/A.x,right:(R.right-w.right+y.right)/A.x}}function A(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function R(n){return t.some((t=>n[t]>=0))}function S(){return"undefined"!=typeof window}function O(t){return T(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function F(t){var n;return null==(n=(T(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function T(t){return!!S()&&(t instanceof Node||t instanceof k(t).Node)}function D(t){return!!S()&&(t instanceof Element||t instanceof k(t).Element)}function P(t){return!!S()&&(t instanceof HTMLElement||t instanceof k(t).HTMLElement)}function z(t){return!(!S()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof k(t).ShadowRoot)}function C(t){const{overflow:n,overflowX:e,overflowY:r,display:o}=I(t);return/auto|scroll|overlay|hidden|clip/.test(n+r+e)&&!["inline","contents"].includes(o)}function H(t){return["table","td","th"].includes(O(t))}function M(t){return[":popover-open",":modal"].some((n=>{try{return t.matches(n)}catch(t){return!1}}))}function B(t){const n=L(),e=D(t)?I(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!e[t]&&"none"!==e[t]))||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function L(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function E(t){return["html","body","#document"].includes(O(t))}function I(t){return k(t).getComputedStyle(t)}function N(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function j(t){if("html"===O(t))return t;const n=t.assignedSlot||t.parentNode||z(t)&&t.host||F(t);return z(n)?n.host:n}function q(t){const n=j(t);return E(n)?t.ownerDocument?t.ownerDocument.body:t.body:P(n)&&C(n)?n:q(n)}function W(t,n,e){var r;void 0===n&&(n=[]),void 0===e&&(e=!0);const o=q(t),i=o===(null==(r=t.ownerDocument)?void 0:r.body),a=k(o);if(i){const t=$(a);return n.concat(a,a.visualViewport||[],C(o)?o:[],t&&e?W(t):[])}return n.concat(o,W(o,[],e))}function $(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function V(t){const n=I(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const i=P(t),a=i?t.offsetWidth:e,c=i?t.offsetHeight:o,l=r(e)!==a||r(o)!==c;return l&&(e=a,o=c),{width:e,height:o,$:l}}function X(t){return D(t)?t:t.contextElement}function Y(t){const n=X(t);if(!P(n))return i(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:c}=V(n);let l=(c?r(e.width):e.width)/o,s=(c?r(e.height):e.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const _=i(0);function G(t){const n=k(t);return L()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:_}function J(t,n,e,r){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),a=X(t);let c=i(1);n&&(r?D(r)&&(c=Y(r)):c=Y(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==k(t))&&n}(a,e,r)?G(a):i(0);let s=(o.left+l.x)/c.x,u=(o.top+l.y)/c.y,f=o.width/c.x,d=o.height/c.y;if(a){const t=k(a),n=r&&D(r)?k(r):r;let e=t,o=$(e);for(;o&&r&&n!==e;){const t=Y(o),n=o.getBoundingClientRect(),r=I(o),i=n.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,a=n.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;s*=t.x,u*=t.y,f*=t.x,d*=t.y,s+=i,u+=a,e=k(o),o=$(e)}}return x({width:f,height:d,x:s,y:u})}function K(t,n){const e=N(t).scrollLeft;return n?n.left+e:J(F(t)).left+e}function Q(t,n,e){void 0===e&&(e=!1);const r=t.getBoundingClientRect();return{x:r.left+n.scrollLeft-(e?0:K(t,r)),y:r.top+n.scrollTop}}function U(t,n,r){let o;if("viewport"===n)o=function(t,n){const e=k(t),r=F(t),o=e.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;const t=L();(!t||t&&"fixed"===n)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c,y:l}}(t,r);else if("document"===n)o=function(t){const n=F(t),r=N(t),o=t.ownerDocument.body,i=e(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),a=e(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let c=-r.scrollLeft+K(t);const l=-r.scrollTop;return"rtl"===I(o).direction&&(c+=e(n.clientWidth,o.clientWidth)-i),{width:i,height:a,x:c,y:l}}(F(t));else if(D(n))o=function(t,n){const e=J(t,!0,"fixed"===n),r=e.top+t.clientTop,o=e.left+t.clientLeft,a=P(t)?Y(t):i(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:o*a.x,y:r*a.y}}(n,r);else{const e=G(t);o={x:n.x-e.x,y:n.y-e.y,width:n.width,height:n.height}}return x(o)}function Z(t,n){const e=j(t);return!(e===n||!D(e)||E(e))&&("fixed"===I(e).position||Z(e,n))}function tt(t,n,e){const r=P(n),o=F(n),a="fixed"===e,c=J(t,!0,a,n);let l={scrollLeft:0,scrollTop:0};const s=i(0);function u(){s.x=K(o)}if(r||!r&&!a)if(("body"!==O(n)||C(o))&&(l=N(n)),r){const t=J(n,!0,a,n);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}else o&&u();a&&!r&&o&&u();const f=!o||r||a?i(0):Q(o,l);return{x:c.left+l.scrollLeft-s.x-f.x,y:c.top+l.scrollTop-s.y-f.y,width:c.width,height:c.height}}function nt(t){return"static"===I(t).position}function et(t,n){if(!P(t)||"fixed"===I(t).position)return null;if(n)return n(t);let e=t.offsetParent;return F(t)===e&&(e=e.ownerDocument.body),e}function rt(t,n){const e=k(t);if(M(t))return e;if(!P(t)){let n=j(t);for(;n&&!E(n);){if(D(n)&&!nt(n))return n;n=j(n)}return e}let r=et(t,n);for(;r&&H(r)&&nt(r);)r=et(r,n);return r&&E(r)&&nt(r)&&!B(r)?e:r||function(t){let n=j(t);for(;P(n)&&!E(n);){if(B(n))return n;if(M(n))return null;n=j(n)}return null}(t)||e}const ot={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:r,strategy:o}=t;const a="fixed"===o,c=F(r),l=!!n&&M(n.floating);if(r===c||l&&a)return e;let s={scrollLeft:0,scrollTop:0},u=i(1);const f=i(0),d=P(r);if((d||!d&&!a)&&(("body"!==O(r)||C(c))&&(s=N(r)),P(r))){const t=J(r);u=Y(r),f.x=t.x+r.clientLeft,f.y=t.y+r.clientTop}const m=!c||d||a?i(0):Q(c,s,!0);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-s.scrollLeft*u.x+f.x+m.x,y:e.y*u.y-s.scrollTop*u.y+f.y+m.y}},getDocumentElement:F,getClippingRect:function(t){let{element:r,boundary:o,rootBoundary:i,strategy:a}=t;const c=[..."clippingAncestors"===o?M(r)?[]:function(t,n){const e=n.get(t);if(e)return e;let r=W(t,[],!1).filter((t=>D(t)&&"body"!==O(t))),o=null;const i="fixed"===I(t).position;let a=i?j(t):t;for(;D(a)&&!E(a);){const n=I(a),e=B(a);e||"fixed"!==n.position||(o=null),(i?!e&&!o:!e&&"static"===n.position&&o&&["absolute","fixed"].includes(o.position)||C(a)&&!e&&Z(t,a))?r=r.filter((t=>t!==a)):o=n,a=j(a)}return n.set(t,r),r}(r,this._c):[].concat(o),i],l=c.reduce(((t,o)=>{const i=U(r,o,a);return t.top=e(i.top,t.top),t.right=n(i.right,t.right),t.bottom=n(i.bottom,t.bottom),t.left=e(i.left,t.left),t}),U(r,c[0],a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:rt,getElementRects:async function(t){const n=this.getOffsetParent||rt,e=this.getDimensions,r=await e(t.floating);return{reference:tt(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=V(t);return{width:n,height:e}},getScale:Y,isElement:D,isRTL:function(t){return"rtl"===I(t).direction}};function it(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function at(t,r,i,a){void 0===a&&(a={});const{ancestorScroll:c=!0,ancestorResize:l=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=a,d=X(t),m=c||l?[...d?W(d):[],...W(r)]:[];m.forEach((t=>{c&&t.addEventListener("scroll",i,{passive:!0}),l&&t.addEventListener("resize",i)}));const h=d&&u?function(t,r){let i,a=null;const c=F(t);function l(){var t;clearTimeout(i),null==(t=a)||t.disconnect(),a=null}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),l();const d=t.getBoundingClientRect(),{left:m,top:h,width:y,height:p}=d;if(u||r(),!y||!p)return;const w={rootMargin:-o(h)+"px "+-o(c.clientWidth-(m+y))+"px "+-o(c.clientHeight-(h+p))+"px "+-o(m)+"px",threshold:e(0,n(1,f))||1};let g=!0;function x(n){const e=n[0].intersectionRatio;if(e!==f){if(!g)return s();e?s(!1,e):i=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==e||it(d,t.getBoundingClientRect())||s(),g=!1}try{a=new IntersectionObserver(x,{...w,root:c.ownerDocument})}catch(t){a=new IntersectionObserver(x,w)}a.observe(t)}(!0),l}(d,i):null;let y,p=-1,w=null;s&&(w=new ResizeObserver((t=>{let[n]=t;n&&n.target===d&&w&&(w.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(r)}))),i()})),d&&!f&&w.observe(d),w.observe(r));let g=f?J(t):null;return f&&function n(){const e=J(t);g&&!it(g,e)&&i(),g=e,y=requestAnimationFrame(n)}(),i(),()=>{var t;m.forEach((t=>{c&&t.removeEventListener("scroll",i),l&&t.removeEventListener("resize",i)})),null==h||h(),null==(t=w)||t.disconnect(),w=null,f&&cancelAnimationFrame(y)}}const ct=b,lt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,r;const{x:o,y:i,placement:a,middlewareData:c}=n,l=await async function(t,n){const{placement:e,platform:r,elements:o}=t,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=u(e),c=f(e),l="y"===h(e),d=["left","top"].includes(a)?-1:1,m=i&&l?-1:1,y=s(n,t);let{mainAxis:p,crossAxis:w,alignmentAxis:g}="number"==typeof y?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return c&&"number"==typeof g&&(w="end"===c?-1*g:g),l?{x:w*m,y:p*d}:{x:p*d,y:w*m}}(n,t);return a===(null==(e=c.offset)?void 0:e.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},st=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:r,placement:o}=n,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...f}=s(t,n),m={x:e,y:r},y=await b(n,f),p=h(u(o)),w=d(p);let g=m[w],x=m[p];i&&(g=l(g+y["y"===w?"top":"left"],g,g-y["y"===w?"bottom":"right"])),a&&(x=l(x+y["y"===p?"top":"left"],x,x-y["y"===p?"bottom":"right"]));const v=c.fn({...n,[w]:g,[p]:x});return{...v,data:{x:v.x-e,y:v.y-r,enabled:{[w]:i,[p]:a}}}}}},ut=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:l,elements:d}=n,{mainAxis:g=!0,crossAxis:x=!0,fallbackPlacements:v,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:S=!0,...O}=s(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const k=u(o),F=h(c),T=u(c)===c,D=await(null==l.isRTL?void 0:l.isRTL(d.floating)),P=v||(T||!S?[w(c)]:function(t){const n=w(t);return[p(t),n,p(n)]}(c)),z="none"!==R;!v&&z&&P.push(...function(t,n,e,r){const o=f(t);let i=function(t,n,e){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:r:n?r:o;case"left":case"right":return n?i:a;default:return[]}}(u(t),"start"===e,r);return o&&(i=i.map((t=>t+"-"+o)),n&&(i=i.concat(i.map(p)))),i}(c,S,R,D));const C=[c,...P],H=await b(n,O),M=[];let B=(null==(r=i.flip)?void 0:r.overflows)||[];if(g&&M.push(H[k]),x){const t=function(t,n,e){void 0===e&&(e=!1);const r=f(t),o=y(t),i=m(o);let a="x"===o?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=w(a)),[a,w(a)]}(o,a,D);M.push(H[t[0]],H[t[1]])}if(B=[...B,{placement:o,overflows:M}],!M.every((t=>t<=0))){var L,E;const t=((null==(L=i.flip)?void 0:L.index)||0)+1,n=C[t];if(n){var I;const e="alignment"===x&&F!==h(n),r=(null==(I=B[0])?void 0:I.overflows[0])>0;if(!e||r)return{data:{index:t,overflows:B},reset:{placement:n}}}let e=null==(E=B.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:E.placement;if(!e)switch(A){case"bestFit":{var N;const t=null==(N=B.filter((t=>{if(z){const n=h(t.placement);return n===F||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:N[0];t&&(e=t);break}case"initialPlacement":e=c}if(o!==e)return{reset:{placement:e}}}return{}}}},ft=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(r){var o,i;const{placement:a,rects:c,platform:l,elements:d}=r,{apply:m=(()=>{}),...y}=s(t,r),p=await b(r,y),w=u(a),g=f(a),x="y"===h(a),{width:v,height:A}=c.floating;let R,S;"top"===w||"bottom"===w?(R=w,S=g===(await(null==l.isRTL?void 0:l.isRTL(d.floating))?"start":"end")?"left":"right"):(S=w,R="end"===g?"top":"bottom");const O=A-p.top-p.bottom,k=v-p.left-p.right;let F=n(A-p[R],O),T=n(v-p[S],k);if(null!=(o=r.middlewareData.shift)&&o.enabled.x&&(T=k),null!=(i=r.middlewareData.shift)&&i.enabled.y&&(F=O),!r.middlewareData.shift&&!g){const t=e(p.left,0),n=e(p.right,0),r=e(p.top,0),o=e(p.bottom,0);x?T=v-2*(0!==t||0!==n?t+n:e(p.left,p.right)):F=A-2*(0!==r||0!==o?r+o:e(p.top,p.bottom))}await m({...r,availableWidth:T,availableHeight:F});const D=await l.getDimensions(d.floating);return v!==D.width||A!==D.height?{reset:{rects:!0}}:{}}}},dt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:r="referenceHidden",...o}=s(t,n);switch(r){case"referenceHidden":{const t=A(await b(n,{...o,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:R(t)}}}case"escaped":{const t=A(await b(n,{...o,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:R(t)}}}default:return{}}}}},mt=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:i,rects:a,platform:c,elements:u,middlewareData:d}=e,{element:h,padding:p=0}=s(t,e)||{};if(null==h)return{};const w=g(p),x={x:r,y:o},v=y(i),b=m(v),A=await c.getDimensions(h),R="y"===v,S=R?"top":"left",O=R?"bottom":"right",k=R?"clientHeight":"clientWidth",F=a.reference[b]+a.reference[v]-x[v]-a.floating[b],T=x[v]-a.reference[v],D=await(null==c.getOffsetParent?void 0:c.getOffsetParent(h));let P=D?D[k]:0;P&&await(null==c.isElement?void 0:c.isElement(D))||(P=u.floating[k]||a.floating[b]);const z=F/2-T/2,C=P/2-A[b]/2-1,H=n(w[S],C),M=n(w[O],C),B=H,L=P-A[b]-M,E=P/2-A[b]/2+z,I=l(B,E,L),N=!d.arrow&&null!=f(i)&&E!==I&&a.reference[b]/2-(E<B?H:M)-A[b]/2<0,j=N?E<B?E-B:E-L:0;return{[v]:x[v]+j,data:{[v]:I,centerOffset:E-I-j,...N&&{alignmentOffset:j}},reset:N}}}),ht=(t,n,e)=>{const r=new Map,o={platform:ot,...e},i={...o.platform,_c:r};return(async(t,n,e)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=e,c=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(n));let s=await a.getElementRects({reference:t,floating:n,strategy:o}),{x:u,y:f}=v(s,r,l),d=r,m={},h=0;for(let e=0;e<c.length;e++){const{name:i,fn:y}=c[e],{x:p,y:w,data:g,reset:x}=await y({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:s,platform:a,elements:{reference:t,floating:n}});u=null!=p?p:u,f=null!=w?w:f,m={...m,[i]:{...m[i],...g}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:t,floating:n,strategy:o}):x.rects),({x:u,y:f}=v(s,d,l))),e=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(t,n,{...o,platform:i})};export{at as a,mt as b,ht as c,ft as d,ct as e,ut as f,dt as h,lt as o,st as s}
|
1
|
+
const t=["top","right","bottom","left"],n=Math.min,e=Math.max,r=Math.round,o=Math.floor,i=t=>({x:t,y:t}),a={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function l(t,r,o){return e(t,n(r,o))}function s(t,n){return"function"==typeof t?t(n):t}function u(t){return t.split("-")[0]}function f(t){return t.split("-")[1]}function d(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function h(t){return["top","bottom"].includes(u(t))?"y":"x"}function y(t){return d(h(t))}function p(t){return t.replace(/start|end/g,(t=>c[t]))}function w(t){return t.replace(/left|right|bottom|top/g,(t=>a[t]))}function g(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function x(t){const{x:n,y:e,width:r,height:o}=t;return{width:r,height:o,top:e,left:n,right:n+r,bottom:e+o,x:n,y:e}}function v(t,n,e){let{reference:r,floating:o}=t;const i=h(n),a=y(n),c=m(a),l=u(n),s="y"===i,d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,w=r[c]/2-o[c]/2;let g;switch(l){case"top":g={x:d,y:r.y-o.height};break;case"bottom":g={x:d,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:p};break;case"left":g={x:r.x-o.width,y:p};break;default:g={x:r.x,y:r.y}}switch(f(n)){case"start":g[a]-=w*(e&&s?-1:1);break;case"end":g[a]+=w*(e&&s?-1:1)}return g}async function b(t,n){var e;void 0===n&&(n={});const{x:r,y:o,platform:i,rects:a,elements:c,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=s(n,t),y=g(h),p=c[m?"floating"===d?"reference":"floating":d],w=x(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(p)))||e?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),A=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},R=x(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:b,strategy:l}):v);return{top:(w.top-R.top+y.top)/A.y,bottom:(R.bottom-w.bottom+y.bottom)/A.y,left:(w.left-R.left+y.left)/A.x,right:(R.right-w.right+y.right)/A.x}}function A(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function R(n){return t.some((t=>n[t]>=0))}function S(){return"undefined"!=typeof window}function O(t){return T(t)?(t.nodeName||"").toLowerCase():"#document"}function k(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function F(t){var n;return null==(n=(T(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function T(t){return!!S()&&(t instanceof Node||t instanceof k(t).Node)}function D(t){return!!S()&&(t instanceof Element||t instanceof k(t).Element)}function P(t){return!!S()&&(t instanceof HTMLElement||t instanceof k(t).HTMLElement)}function z(t){return!(!S()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof k(t).ShadowRoot)}function C(t){const{overflow:n,overflowX:e,overflowY:r,display:o}=I(t);return/auto|scroll|overlay|hidden|clip/.test(n+r+e)&&!["inline","contents"].includes(o)}function H(t){return["table","td","th"].includes(O(t))}function M(t){return[":popover-open",":modal"].some((n=>{try{return t.matches(n)}catch(t){return!1}}))}function B(t){const n=L(),e=D(t)?I(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!e[t]&&"none"!==e[t]))||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function L(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function E(t){return["html","body","#document"].includes(O(t))}function I(t){return k(t).getComputedStyle(t)}function N(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function j(t){if("html"===O(t))return t;const n=t.assignedSlot||t.parentNode||z(t)&&t.host||F(t);return z(n)?n.host:n}function q(t){const n=j(t);return E(n)?t.ownerDocument?t.ownerDocument.body:t.body:P(n)&&C(n)?n:q(n)}function W(t,n,e){var r;void 0===n&&(n=[]),void 0===e&&(e=!0);const o=q(t),i=o===(null==(r=t.ownerDocument)?void 0:r.body),a=k(o);if(i){const t=$(a);return n.concat(a,a.visualViewport||[],C(o)?o:[],t&&e?W(t):[])}return n.concat(o,W(o,[],e))}function $(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function V(t){const n=I(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const i=P(t),a=i?t.offsetWidth:e,c=i?t.offsetHeight:o,l=r(e)!==a||r(o)!==c;return l&&(e=a,o=c),{width:e,height:o,$:l}}function X(t){return D(t)?t:t.contextElement}function Y(t){const n=X(t);if(!P(n))return i(1);const e=n.getBoundingClientRect(),{width:o,height:a,$:c}=V(n);let l=(c?r(e.width):e.width)/o,s=(c?r(e.height):e.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const _=i(0);function G(t){const n=k(t);return L()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:_}function J(t,n,e,r){void 0===n&&(n=!1),void 0===e&&(e=!1);const o=t.getBoundingClientRect(),a=X(t);let c=i(1);n&&(r?D(r)&&(c=Y(r)):c=Y(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==k(t))&&n}(a,e,r)?G(a):i(0);let s=(o.left+l.x)/c.x,u=(o.top+l.y)/c.y,f=o.width/c.x,d=o.height/c.y;if(a){const t=k(a),n=r&&D(r)?k(r):r;let e=t,o=$(e);for(;o&&r&&n!==e;){const t=Y(o),n=o.getBoundingClientRect(),r=I(o),i=n.left+(o.clientLeft+parseFloat(r.paddingLeft))*t.x,a=n.top+(o.clientTop+parseFloat(r.paddingTop))*t.y;s*=t.x,u*=t.y,f*=t.x,d*=t.y,s+=i,u+=a,e=k(o),o=$(e)}}return x({width:f,height:d,x:s,y:u})}function K(t,n){const e=N(t).scrollLeft;return n?n.left+e:J(F(t)).left+e}function Q(t,n,e){void 0===e&&(e=!1);const r=t.getBoundingClientRect();return{x:r.left+n.scrollLeft-(e?0:K(t,r)),y:r.top+n.scrollTop}}function U(t,n,r){let o;if("viewport"===n)o=function(t,n){const e=k(t),r=F(t),o=e.visualViewport;let i=r.clientWidth,a=r.clientHeight,c=0,l=0;if(o){i=o.width,a=o.height;const t=L();(!t||t&&"fixed"===n)&&(c=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:c,y:l}}(t,r);else if("document"===n)o=function(t){const n=F(t),r=N(t),o=t.ownerDocument.body,i=e(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),a=e(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let c=-r.scrollLeft+K(t);const l=-r.scrollTop;return"rtl"===I(o).direction&&(c+=e(n.clientWidth,o.clientWidth)-i),{width:i,height:a,x:c,y:l}}(F(t));else if(D(n))o=function(t,n){const e=J(t,!0,"fixed"===n),r=e.top+t.clientTop,o=e.left+t.clientLeft,a=P(t)?Y(t):i(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:o*a.x,y:r*a.y}}(n,r);else{const e=G(t);o={x:n.x-e.x,y:n.y-e.y,width:n.width,height:n.height}}return x(o)}function Z(t,n){const e=j(t);return!(e===n||!D(e)||E(e))&&("fixed"===I(e).position||Z(e,n))}function tt(t,n,e){const r=P(n),o=F(n),a="fixed"===e,c=J(t,!0,a,n);let l={scrollLeft:0,scrollTop:0};const s=i(0);function u(){s.x=K(o)}if(r||!r&&!a)if(("body"!==O(n)||C(o))&&(l=N(n)),r){const t=J(n,!0,a,n);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}else o&&u();a&&!r&&o&&u();const f=!o||r||a?i(0):Q(o,l);return{x:c.left+l.scrollLeft-s.x-f.x,y:c.top+l.scrollTop-s.y-f.y,width:c.width,height:c.height}}function nt(t){return"static"===I(t).position}function et(t,n){if(!P(t)||"fixed"===I(t).position)return null;if(n)return n(t);let e=t.offsetParent;return F(t)===e&&(e=e.ownerDocument.body),e}function rt(t,n){const e=k(t);if(M(t))return e;if(!P(t)){let n=j(t);for(;n&&!E(n);){if(D(n)&&!nt(n))return n;n=j(n)}return e}let r=et(t,n);for(;r&&H(r)&&nt(r);)r=et(r,n);return r&&E(r)&&nt(r)&&!B(r)?e:r||function(t){let n=j(t);for(;P(n)&&!E(n);){if(B(n))return n;if(M(n))return null;n=j(n)}return null}(t)||e}const ot={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:r,strategy:o}=t;const a="fixed"===o,c=F(r),l=!!n&&M(n.floating);if(r===c||l&&a)return e;let s={scrollLeft:0,scrollTop:0},u=i(1);const f=i(0),d=P(r);if((d||!d&&!a)&&(("body"!==O(r)||C(c))&&(s=N(r)),P(r))){const t=J(r);u=Y(r),f.x=t.x+r.clientLeft,f.y=t.y+r.clientTop}const m=!c||d||a?i(0):Q(c,s,!0);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-s.scrollLeft*u.x+f.x+m.x,y:e.y*u.y-s.scrollTop*u.y+f.y+m.y}},getDocumentElement:F,getClippingRect:function(t){let{element:r,boundary:o,rootBoundary:i,strategy:a}=t;const c=[..."clippingAncestors"===o?M(r)?[]:function(t,n){const e=n.get(t);if(e)return e;let r=W(t,[],!1).filter((t=>D(t)&&"body"!==O(t))),o=null;const i="fixed"===I(t).position;let a=i?j(t):t;for(;D(a)&&!E(a);){const n=I(a),e=B(a);e||"fixed"!==n.position||(o=null),(i?!e&&!o:!e&&"static"===n.position&&o&&["absolute","fixed"].includes(o.position)||C(a)&&!e&&Z(t,a))?r=r.filter((t=>t!==a)):o=n,a=j(a)}return n.set(t,r),r}(r,this._c):[].concat(o),i],l=c.reduce(((t,o)=>{const i=U(r,o,a);return t.top=e(i.top,t.top),t.right=n(i.right,t.right),t.bottom=n(i.bottom,t.bottom),t.left=e(i.left,t.left),t}),U(r,c[0],a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:rt,getElementRects:async function(t){const n=this.getOffsetParent||rt,e=this.getDimensions,r=await e(t.floating);return{reference:tt(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=V(t);return{width:n,height:e}},getScale:Y,isElement:D,isRTL:function(t){return"rtl"===I(t).direction}};function it(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function at(t,r,i,a){void 0===a&&(a={});const{ancestorScroll:c=!0,ancestorResize:l=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=a,d=X(t),m=c||l?[...d?W(d):[],...W(r)]:[];m.forEach((t=>{c&&t.addEventListener("scroll",i,{passive:!0}),l&&t.addEventListener("resize",i)}));const h=d&&u?function(t,r){let i,a=null;const c=F(t);function l(){var t;clearTimeout(i),null==(t=a)||t.disconnect(),a=null}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),l();const d=t.getBoundingClientRect(),{left:m,top:h,width:y,height:p}=d;if(u||r(),!y||!p)return;const w={rootMargin:-o(h)+"px "+-o(c.clientWidth-(m+y))+"px "+-o(c.clientHeight-(h+p))+"px "+-o(m)+"px",threshold:e(0,n(1,f))||1};let g=!0;function x(n){const e=n[0].intersectionRatio;if(e!==f){if(!g)return s();e?s(!1,e):i=setTimeout((()=>{s(!1,1e-7)}),1e3)}1!==e||it(d,t.getBoundingClientRect())||s(),g=!1}try{a=new IntersectionObserver(x,{...w,root:c.ownerDocument})}catch(t){a=new IntersectionObserver(x,w)}a.observe(t)}(!0),l}(d,i):null;let y,p=-1,w=null;s&&(w=new ResizeObserver((t=>{let[n]=t;n&&n.target===d&&w&&(w.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=w)||t.observe(r)}))),i()})),d&&!f&&w.observe(d),w.observe(r));let g=f?J(t):null;return f&&function n(){const e=J(t);g&&!it(g,e)&&i(),g=e,y=requestAnimationFrame(n)}(),i(),()=>{var t;m.forEach((t=>{c&&t.removeEventListener("scroll",i),l&&t.removeEventListener("resize",i)})),null==h||h(),null==(t=w)||t.disconnect(),w=null,f&&cancelAnimationFrame(y)}}const ct=b,lt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,r;const{x:o,y:i,placement:a,middlewareData:c}=n,l=await async function(t,n){const{placement:e,platform:r,elements:o}=t,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=u(e),c=f(e),l="y"===h(e),d=["left","top"].includes(a)?-1:1,m=i&&l?-1:1,y=s(n,t);let{mainAxis:p,crossAxis:w,alignmentAxis:g}="number"==typeof y?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return c&&"number"==typeof g&&(w="end"===c?-1*g:g),l?{x:w*m,y:p*d}:{x:p*d,y:w*m}}(n,t);return a===(null==(e=c.offset)?void 0:e.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},st=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:r,placement:o}=n,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...f}=s(t,n),m={x:e,y:r},y=await b(n,f),p=h(u(o)),w=d(p);let g=m[w],x=m[p];i&&(g=l(g+y["y"===w?"top":"left"],g,g-y["y"===w?"bottom":"right"])),a&&(x=l(x+y["y"===p?"top":"left"],x,x-y["y"===p?"bottom":"right"]));const v=c.fn({...n,[w]:g,[p]:x});return{...v,data:{x:v.x-e,y:v.y-r,enabled:{[w]:i,[p]:a}}}}}},ut=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:c,platform:l,elements:d}=n,{mainAxis:g=!0,crossAxis:x=!0,fallbackPlacements:v,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:S=!0,...O}=s(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const k=u(o),F=h(c),T=u(c)===c,D=await(null==l.isRTL?void 0:l.isRTL(d.floating)),P=v||(T||!S?[w(c)]:function(t){const n=w(t);return[p(t),n,p(n)]}(c)),z="none"!==R;!v&&z&&P.push(...function(t,n,e,r){const o=f(t);let i=function(t,n,e){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?o:r:n?r:o;case"left":case"right":return n?i:a;default:return[]}}(u(t),"start"===e,r);return o&&(i=i.map((t=>t+"-"+o)),n&&(i=i.concat(i.map(p)))),i}(c,S,R,D));const C=[c,...P],H=await b(n,O),M=[];let B=(null==(r=i.flip)?void 0:r.overflows)||[];if(g&&M.push(H[k]),x){const t=function(t,n,e){void 0===e&&(e=!1);const r=f(t),o=y(t),i=m(o);let a="x"===o?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=w(a)),[a,w(a)]}(o,a,D);M.push(H[t[0]],H[t[1]])}if(B=[...B,{placement:o,overflows:M}],!M.every((t=>t<=0))){var L,E;const t=((null==(L=i.flip)?void 0:L.index)||0)+1,n=C[t];if(n&&("alignment"!==x||F===h(n)||B.every((t=>t.overflows[0]>0&&h(t.placement)===F))))return{data:{index:t,overflows:B},reset:{placement:n}};let e=null==(E=B.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:E.placement;if(!e)switch(A){case"bestFit":{var I;const t=null==(I=B.filter((t=>{if(z){const n=h(t.placement);return n===F||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:I[0];t&&(e=t);break}case"initialPlacement":e=c}if(o!==e)return{reset:{placement:e}}}return{}}}},ft=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(r){var o,i;const{placement:a,rects:c,platform:l,elements:d}=r,{apply:m=(()=>{}),...y}=s(t,r),p=await b(r,y),w=u(a),g=f(a),x="y"===h(a),{width:v,height:A}=c.floating;let R,S;"top"===w||"bottom"===w?(R=w,S=g===(await(null==l.isRTL?void 0:l.isRTL(d.floating))?"start":"end")?"left":"right"):(S=w,R="end"===g?"top":"bottom");const O=A-p.top-p.bottom,k=v-p.left-p.right;let F=n(A-p[R],O),T=n(v-p[S],k);if(null!=(o=r.middlewareData.shift)&&o.enabled.x&&(T=k),null!=(i=r.middlewareData.shift)&&i.enabled.y&&(F=O),!r.middlewareData.shift&&!g){const t=e(p.left,0),n=e(p.right,0),r=e(p.top,0),o=e(p.bottom,0);x?T=v-2*(0!==t||0!==n?t+n:e(p.left,p.right)):F=A-2*(0!==r||0!==o?r+o:e(p.top,p.bottom))}await m({...r,availableWidth:T,availableHeight:F});const D=await l.getDimensions(d.floating);return v!==D.width||A!==D.height?{reset:{rects:!0}}:{}}}},dt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:r="referenceHidden",...o}=s(t,n);switch(r){case"referenceHidden":{const t=A(await b(n,{...o,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:R(t)}}}case"escaped":{const t=A(await b(n,{...o,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:R(t)}}}default:return{}}}}},mt=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:o,placement:i,rects:a,platform:c,elements:u,middlewareData:d}=e,{element:h,padding:p=0}=s(t,e)||{};if(null==h)return{};const w=g(p),x={x:r,y:o},v=y(i),b=m(v),A=await c.getDimensions(h),R="y"===v,S=R?"top":"left",O=R?"bottom":"right",k=R?"clientHeight":"clientWidth",F=a.reference[b]+a.reference[v]-x[v]-a.floating[b],T=x[v]-a.reference[v],D=await(null==c.getOffsetParent?void 0:c.getOffsetParent(h));let P=D?D[k]:0;P&&await(null==c.isElement?void 0:c.isElement(D))||(P=u.floating[k]||a.floating[b]);const z=F/2-T/2,C=P/2-A[b]/2-1,H=n(w[S],C),M=n(w[O],C),B=H,L=P-A[b]-M,E=P/2-A[b]/2+z,I=l(B,E,L),N=!d.arrow&&null!=f(i)&&E!==I&&a.reference[b]/2-(E<B?H:M)-A[b]/2<0,j=N?E<B?E-B:E-L:0;return{[v]:x[v]+j,data:{[v]:I,centerOffset:E-I-j,...N&&{alignmentOffset:j}},reset:N}}}),ht=(t,n,e)=>{const r=new Map,o={platform:ot,...e},i={...o.platform,_c:r};return(async(t,n,e)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=e,c=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(n));let s=await a.getElementRects({reference:t,floating:n,strategy:o}),{x:u,y:f}=v(s,r,l),d=r,m={},h=0;for(let e=0;e<c.length;e++){const{name:i,fn:y}=c[e],{x:p,y:w,data:g,reset:x}=await y({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:s,platform:a,elements:{reference:t,floating:n}});u=null!=p?p:u,f=null!=w?w:f,m={...m,[i]:{...m[i],...g}},x&&h<=50&&(h++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:t,floating:n,strategy:o}):x.rects),({x:u,y:f}=v(s,d,l))),e=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(t,n,{...o,platform:i})};export{at as a,mt as b,ht as c,ft as d,ct as e,ut as f,dt as h,lt as o,st as s}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,c as i,h as e}from"./p-cf74fd3d.js";import{a as s,c as a,o as n,f as o,d,s as h,h as p}from"./p-43db8808.js";const r=class{constructor(e){t(this,e),this.internalexpanded=i(this,"internalexpanded",7),this.internalcollapsed=i(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&&this.cleanupUpdatePosition(),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,i=this.inline;a(this.targetElementContainer,this.popupElementContainer,{strategy:"fixed",placement:this.placement,middleware:[n(this.offset),o(),d({apply({rects:e,elements:s}){t&&!i?Object.assign(s.floating.style,{minWidth:`${e.reference.width}px`}):i||Object.assign(s.floating.style,{width:`${e.reference.width}px`,overflow:"hidden"})}}),h(),p()]}).then((({x:t,y:i,middlewareData:e})=>{const{referenceHidden:s}=e.hide;isNaN(t)||Object.assign(this.popupElementContainer.style,{left:`${t}px`}),isNaN(i)||Object.assign(this.popupElementContainer.style,{top:`${i}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 e("div",{key:"b262551935468f41795301940324d9580d574934",class:{"gux-target-container":!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString(),ref:t=>this.targetElementContainer=t},e("slot",{key:"97138c571c2942fb7550d5b235e1ec339a3d185f",name:"target"}),e("div",{key:"f535d45ef7bf09155d7ebf48f3fb965ea89e72b9",class:{"gux-popup-container":!0,"gux-expanded":this.expanded&&!this.disabled},ref:t=>this.popupElementContainer=t},e("slot",{key:"7f65620b05398d25749f2ca2de56aaafd9832286",name:"popup"})))}static get watchers(){return{expanded:["onExpandedChange"]}}};r.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{r as gux_popup}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as o,H as t,g as r}from"./p-cf74fd3d.js";import{c as i,o as a}from"./p-f4751a15.js";import{O as l}from"./p-946c70b7.js";import{p as s}from"./p-a11d5d42.js";import{h as d}from"./p-6d8b4027.js";import{a as n,G as g}from"./p-56b18d28.js";import{g as u,v as C}from"./p-4aaf349e.js";import{t as f}from"./p-fcdad94f.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const p=class{constructor(o){e(this,o),this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help"),f(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"027a65529baac39c48426634b16e216de228e935",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"a368d94400ded63f97a91961c04c68e2b5458c36",class:"gux-form-field-container","aria-disabled":this.disabled?"true":"false"},o("div",{key:"54ffe9d74bd5b5f2763008ceb774d71b4cad744b",class:"gux-input-label"},o("div",{key:"4d32d3a82fa16d0ed6461b20779b76c8c6ee8692",class:"gux-input"},o("slot",{key:"2cc9b7db733a5845f2bd758ae25eea223cdd184d",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"d2e351035f0737fab0eab622148baa0e14bcdca7",class:"gux-label"},o("slot",{key:"1bcdee07bdd20ce7cb7c2f6905e82ed56611735d",name:"label"}))),o("div",{key:"662f53fba77fda4fd7067a5c255d9ecc6d66ebd7",class:"error-and-help-text"},o(n,{key:"1a2b4f3cdd0ef55638941da8a5f80b109aeea2b9",show:this.hasError},o("slot",{key:"ec9fab4a338961d884bf90ad30c61b50fbd1b866",name:"error"})),o(g,{key:"41e1975a1824c49330654cb7693d314cd765bb45",show:!this.hasError&&this.hasHelp},o("slot",{key:"47fbf0b55fea3fcbff967fec03a134b3dad95384",name:"help"})))))}setInput(){this.input=u(this.root,'input[type="radio"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),s(this.input),this.disabled=i(this.input),this.disabledObserver=a(this.input,(e=>{this.disabled=e})),C(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var i,a=arguments.length,l=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,o,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(o,t,l):i(o,t))||l);a>3&&l&&Object.defineProperty(o,t,l)})([l({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.style=".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;padding-block-start:4px}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}:host(.gux-input-error) input[type=radio]:checked::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) .gux-form-field-error{font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);color:var(--gse-ui-radioButton-icon-error-foregroundColor)}.gux-input-label{display:flex;flex-direction:row;gap:var(--gse-ui-radioButton-helper-gap)}.gux-input-label .gux-label{display:flex;flex-direction:column;line-height:var(--gse-ui-radioButton-label-text-lineHeight)}.gux-input-label .gux-input{line-height:16px}::slotted(input[type=radio]){display:inline-grid;inline-size:var(--gse-ui-radioButton-icon-width);block-size:var(--gse-ui-radioButton-icon-height);margin:0;vertical-align:middle;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;-webkit-appearance:none;appearance:none;cursor:pointer;outline:none;border:0}::slotted(input[type=radio])::before{grid-area:1/1;content:\"\";border-radius:50%}::slotted(input[type=radio]:focus-visible){outline:var(--gse-ui-radioButton-focus-border-width) var(--gse-ui-radioButton-focus-border-style) var(--gse-ui-radioButton-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-ui-radioButton-focus-borderRadius)}::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor)}::slotted(input[type=radio]:not(:checked):not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked:not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-selectedForegroundColor)}::slotted(input[type=radio]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-radioButton-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-radioButton-label-text-fontWeight);line-height:var(--gse-ui-radioButton-label-text-lineHeight);vertical-align:middle;color:var(--gse-ui-radioButton-label-foregroundColor)}";export{p as gux_form_field_radio}
|
1
|
+
import{r as e,h as o,H as t,g as r}from"./p-cf74fd3d.js";import{c as i,o as a}from"./p-f4751a15.js";import{O as l}from"./p-946c70b7.js";import{p as s}from"./p-a11d5d42.js";import{h as d}from"./p-6d8b4027.js";import{a as n,G as g}from"./p-56b18d28.js";import{g as u,v as C}from"./p-4aaf349e.js";import{t as f}from"./p-6ec0040f.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const p=class{constructor(o){e(this,o),this.hasHelp=!1,this.hasError=!1,this.hasGroupError=!1,this.hasGroupDisabled=!1}onMutation(){this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=d(this.root,"error"),this.hasHelp=d(this.root,"help"),f(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{key:"027a65529baac39c48426634b16e216de228e935",class:{"gux-input-error":this.hasError||this.hasGroupError,"gux-disabled":this.disabled}},o("div",{key:"a368d94400ded63f97a91961c04c68e2b5458c36",class:"gux-form-field-container","aria-disabled":this.disabled?"true":"false"},o("div",{key:"54ffe9d74bd5b5f2763008ceb774d71b4cad744b",class:"gux-input-label"},o("div",{key:"4d32d3a82fa16d0ed6461b20779b76c8c6ee8692",class:"gux-input"},o("slot",{key:"2cc9b7db733a5845f2bd758ae25eea223cdd184d",name:"input",onSlotchange:()=>this.setInput()})),o("div",{key:"d2e351035f0737fab0eab622148baa0e14bcdca7",class:"gux-label"},o("slot",{key:"1bcdee07bdd20ce7cb7c2f6905e82ed56611735d",name:"label"}))),o("div",{key:"662f53fba77fda4fd7067a5c255d9ecc6d66ebd7",class:"error-and-help-text"},o(n,{key:"1a2b4f3cdd0ef55638941da8a5f80b109aeea2b9",show:this.hasError},o("slot",{key:"ec9fab4a338961d884bf90ad30c61b50fbd1b866",name:"error"})),o(g,{key:"41e1975a1824c49330654cb7693d314cd765bb45",show:!this.hasError&&this.hasHelp},o("slot",{key:"47fbf0b55fea3fcbff967fec03a134b3dad95384",name:"help"})))))}setInput(){this.input=u(this.root,'input[type="radio"][slot="input"]'),this.hasGroupDisabled&&(this.input.disabled=!0),s(this.input),this.disabled=i(this.input),this.disabledObserver=a(this.input,(e=>{this.disabled=e})),C(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var i,a=arguments.length,l=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,o,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(a<3?i(l):a>3?i(o,t,l):i(o,t))||l);a>3&&l&&Object.defineProperty(o,t,l)})([l({childList:!0,subtree:!0})],p.prototype,"onMutation",null),p.style=".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-block-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block;padding-block-start:4px}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}:host(.gux-input-error) input[type=radio]:checked::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) ::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-error-foregroundColor)}:host(.gux-input-error) .gux-form-field-error{font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);color:var(--gse-ui-radioButton-icon-error-foregroundColor)}.gux-input-label{display:flex;flex-direction:row;gap:var(--gse-ui-radioButton-helper-gap)}.gux-input-label .gux-label{display:flex;flex-direction:column;line-height:var(--gse-ui-radioButton-label-text-lineHeight)}.gux-input-label .gux-input{line-height:16px}::slotted(input[type=radio]){display:inline-grid;inline-size:var(--gse-ui-radioButton-icon-width);block-size:var(--gse-ui-radioButton-icon-height);margin:0;vertical-align:middle;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;-webkit-appearance:none;appearance:none;cursor:pointer;outline:none;border:0}::slotted(input[type=radio])::before{grid-area:1/1;content:\"\";border-radius:50%}::slotted(input[type=radio]:focus-visible){outline:var(--gse-ui-radioButton-focus-border-width) var(--gse-ui-radioButton-focus-border-style) var(--gse-ui-radioButton-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-ui-radioButton-focus-borderRadius)}::slotted(input[type=radio]:not(:checked))::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor)}::slotted(input[type=radio]:not(:checked):not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked:not(:disabled):hover)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-hover-foregroundColor)}::slotted(input[type=radio]:checked)::before{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' /%3E%3C/svg%3E\");background:var(--gse-ui-radioButton-icon-default-selectedForegroundColor)}::slotted(input[type=radio]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(label){display:inline-block;font-family:var(--gse-ui-radioButton-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-radioButton-label-text-fontWeight);line-height:var(--gse-ui-radioButton-label-text-lineHeight);vertical-align:middle;color:var(--gse-ui-radioButton-label-foregroundColor)}";export{p as gux_form_field_radio}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as t,h as s,H as e,g as i}from"./p-cf74fd3d.js";import{t as r}from"./p-6ec0040f.js";import{D as o,g as a}from"./p-8e7bc8d5.js";import{d as h,a as p}from"./p-13d8a42a.js";import{u as m}from"./p-c36d332b.js";import{g as d}from"./p-e5e644b3.js";import"./p-43af726d.js";import"./p-4202e9f2.js";const n=class{constructor(s){t(this,s),this.hasRegionalDatesCookie=!1,this.datetime=(new Date).toISOString(),this.format="short"}componentWillLoad(){r(this.root),m()?this.hasRegionalDatesCookie=!0:this.formatter=new o(d(this.root))}renderDate(){return this.hasRegionalDatesCookie?h(p(this.root),{dateStyle:this.format,timeZone:a(this.timeZone)}).format(new Date(this.datetime)):this.formatter.formatDate(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)})}render(){return s(e,{key:"491e0809d9072e6cdddb2fbb18e9a19b0bb827f6"},this.renderDate())}get root(){return i(this)}};export{n as gux_date_beta}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as e,g as s}from"./p-cf74fd3d.js";import{g as o}from"./p-43af726d.js";import{t as i}from"./p-
|
1
|
+
import{r as t,h as e,g as s}from"./p-cf74fd3d.js";import{g as o}from"./p-43af726d.js";import{t as i}from"./p-6ec0040f.js";import{g as a}from"./p-0268a3e8.js";const n=class{constructor(e){t(this,e),this.iconOnly=!1,this.accent="secondary",this.disabled=!1}handleClick(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}hideText(){const t=o(this.root,"gux-table-toolbar"),e="condensed"!==(null==t?void 0:t.getAttribute("gs-layout"));return this.iconOnly&&e}renderTooltip(){if(this.hideText())return e("gux-tooltip",null,e("div",{slot:"content"},a(this.root,"text")))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"f9b1fb3d8a97cd2139eb5af4c426bdaa1ae44baa",accent:this.accent},e("button",{key:"d88f8eae437463c945ac7863bb97848db6480943",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"4ca4c537952d630182405e44f5d248da06ef8a3e",name:"icon"}),e("span",{key:"21c5073044bffa2e8214d18091dc2b8ea03b8d12",class:{"gux-sr-only":this.hideText()}},e("slot",{key:"6a6130c88cc98dc4e6fd234efb9415ae868803c5",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};n.style=":host([disabled]),button[disabled]{pointer-events:none;user-select:none}.gux-sr-only{display:flex}.gux-sr-only: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%)}.gux-action-title{display:flex;flex-direction:row;gap:var(--gse-ui-button-gap);align-items:center}.gux-action-title slot[name=icon]::slotted(gux-icon){inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}";export{n as gux_table_toolbar_custom_action}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as o,h as t,g as s}from"./p-cf74fd3d.js";import{t as c}from"./p-
|
1
|
+
import{r as o,h as t,g as s}from"./p-cf74fd3d.js";import{t as c}from"./p-6ec0040f.js";const r=class{constructor(t){o(this,t),this.singleOpenSection=!1}handleGuxopened(o){this.singleOpenSection&&this.getAccordionSections().forEach((t=>{t!==o.target&&this.closeSection(t)}))}componentWillLoad(){this.singleOpenSection&&this.getAccordionSections().reduceRight(((o,t)=>(o&&this.closeSection(t),o||t.open)),!1),c(this.root)}getAccordionSections(){return Array.from(this.root.children)}closeSection(o){o.disabled||(o.open=!1)}render(){return t("slot",{key:"eaaefcd1cca70e95575f2a04c632021ccc93787a"})}get root(){return s(this)}};r.style="gux-accordion{-custom-noop:noop}";export{r as gux_accordion}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as o,H as e,g as n}from"./p-cf74fd3d.js";import{t as r}from"./p-
|
1
|
+
import{r as t,h as o,H as e,g as n}from"./p-cf74fd3d.js";import{t as r}from"./p-6ec0040f.js";import{l as a}from"./p-8eaf8caf.js";const i=class{constructor(o){t(this,o),this.accent="secondary"}validateSlotContent(){let t=this.root.children[0],o=t.tagName;if("SLOT"===o&&(t=t.assignedNodes()[0],o=t.tagName),"BUTTON"!==o){if("INPUT"===o){const o=t.getAttribute("type");if("button"===o||"submit"===o)return}a(this.root,'You must slot a button, input[type="button"] or input[type="submit"] element.')}}componentWillLoad(){r(this.root),this.validateSlotContent()}render(){return o(e,{key:"2f0d21a41e3f692f1f5f64a096e69c2c39feac8f",accent:this.accent,"icon-only":this.iconOnly},o("slot",{key:"1f7173b22404bc2e7e56cd25873dac40d1c803a6"}))}get root(){return n(this)}};i.style=":host{display:inline-block;pointer-events:none}::slotted(input[type=button]),::slotted(input[type=submit]),::slotted(button){font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;text-overflow:ellipsis;color:var(--gse-ui-button-secondary-default-foregroundColor);white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}:host([icon-only]) ::slotted(input[type=button]),:host([icon-only]) ::slotted(input[type=submit]),:host([icon-only]) ::slotted(button){padding:var(--gse-ui-button-default-paddingIconOnly)}::slotted(input[type=button][disabled]),::slotted(input[type=submit][disabled]),::slotted(button[disabled]){cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}::slotted(input[type=button]:focus),::slotted(input[type=submit]:focus),::slotted(button:focus){outline:none}::slotted(input[type=button]:focus-visible:enabled),::slotted(input[type=submit]:focus-visible:enabled),::slotted(button:focus-visible:enabled){outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}::slotted(input[type=button]:hover:enabled),::slotted(input[type=submit]:hover:enabled),::slotted(button:hover:enabled){color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}::slotted(input[type=button]:active:enabled),::slotted(input[type=submit]:active:enabled),::slotted(button:active:enabled){color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]),:host([accent=primary]) ::slotted(input[type=submit]),:host([accent=primary]) ::slotted(button){color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:hover:enabled),:host([accent=primary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=primary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:active:enabled),:host([accent=primary]) ::slotted(input[type=submit]:active:enabled),:host([accent=primary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]),:host([accent=tertiary]) ::slotted(input[type=submit]),:host([accent=tertiary]) ::slotted(button){color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}:host([accent=tertiary]) ::slotted(input[type=button]:hover:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=tertiary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]:active:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:active:enabled),:host([accent=tertiary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]),:host([accent=ghost]) ::slotted(input[type=submit]),:host([accent=ghost]) ::slotted(button){color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:hover:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:hover:enabled),:host([accent=ghost]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:active:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:active:enabled),:host([accent=ghost]) ::slotted(button:active:enabled){color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]),:host([accent=danger]) ::slotted(input[type=submit]),:host([accent=danger]) ::slotted(button){color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:hover:enabled),:host([accent=danger]) ::slotted(input[type=submit]:hover:enabled),:host([accent=danger]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:active:enabled),:host([accent=danger]) ::slotted(input[type=submit]:active:enabled),:host([accent=danger]) ::slotted(button:active:enabled){color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}:host([accent=inline]){min-inline-size:initial}:host([accent=inline]) ::slotted(input[type=button]),:host([accent=inline]) ::slotted(input[type=submit]),:host([accent=inline]) ::slotted(button){block-size:initial;padding:0;color:var(--gse-ui-links-default-foregroundColor);background:none;border:none}:host([accent=inline]) ::slotted(input[type=button][disabled]),:host([accent=inline]) ::slotted(input[type=submit][disabled]),:host([accent=inline]) ::slotted(button[disabled]){color:var(--gse-ui-links-disabled-foregroundColor)}:host([accent=inline]) ::slotted(input[type=button]:hover:enabled),:host([accent=inline]) ::slotted(input[type=submit]:hover:enabled),:host([accent=inline]) ::slotted(button:hover:enabled){color:var(--gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}:host([accent=inline]) ::slotted(input[type=button]:active:enabled),:host([accent=inline]) ::slotted(input[type=submit]:active:enabled),:host([accent=inline]) ::slotted(button:active:enabled){color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";export{i as gux_button_slot}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as s,c as o,h as e,H as
|
1
|
+
import{r as s,c as o,h as e,H as i,g as a}from"./p-cf74fd3d.js";import{t as r}from"./p-6ec0040f.js";const t=class{constructor(e){s(this,e),this.guxdismiss=o(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return e(i,{key:"370cbfe91752486a47623dcad3cb690383c9be20"},e("div",{key:"9ee2b7c1de15d6cd522396d30890fb5273668e76",class:`gux-icon gux-${this.accent}`},e("slot",{key:"c07d623d41fbf26feba320240c89d44dc2b2ea70",name:"icon"})),e("gux-truncate",{key:"dca0b0fb9b1a20ef990ad89140418412f48224a9",class:"gux-message","max-lines":2},e("slot",{key:"bab604744d2170b0bf01d5a6f572c3aa05bc2f69",name:"message"})),e("gux-dismiss-button",{key:"f21ee0c87e36d92e9d0c6289da860112b2d94ddf",class:"gux-dismiss",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(s){s.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return a(this)}};t.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;width:286px;margin-bottom:4px;color:var(--gse-ui-toast-success-foregroundColor);background:var(--gse-ui-toast-success-backgroundColor);border:1px solid var(--gse-ui-card-default-border-color);border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;padding:8px 12px 8px 16px;margin:2px 0}.gux-icon.gux-alert{color:var(--gse-ui-toast-error-iconColor)}.gux-icon.gux-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-icon.gux-positive{color:var(--gse-ui-toast-success-iconColor)}.gux-icon.gux-neutral{color:var(--gse-ui-toast-info-iconColor)}.gux-icon ::slotted(gux-icon){width:16px;height:16px}.gux-message{flex:1 1 auto;align-self:center;order:0;margin:8px 0}.gux-dismiss{margin:4px 0}";export{t as gux_simple_toast_legacy}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,c as o,h as r,g as i}from"./p-cf74fd3d.js";import{r as t}from"./p-0934300e.js";import{l as a}from"./p-8eaf8caf.js";const n=class{constructor(r){e(this,r),this.guxopened=o(this,"guxopened",7),this.guxclosed=o(this,"guxclosed",7),this.sectionId=t("gux-accordion-section"),this.headerId=t("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 o=this.root.querySelector(`[slot="${e}"]`);o&&/^H[1-6]$/.test(o.nodeName)||a(this.root,`For accessibility reasons the ${e} slot should be filled with a HTML heading tag (h1 - h6).`),"header"==e&&(this.headingLevel=parseInt(o.nodeName.replace("H",""),10))}componentWillLoad(){this.hasIconSlot=!!this.root.querySelector('[slot="icon"]')}render(){return r("section",{key:"3765c4293ee1fdc5f75f07277d820ec9d5871967",class:{"gux-disabled":this.disabled}},r("div",{key:"9a9207383819bd0be449bf8104a31335545df575",id:this.headerId,role:"heading","aria-level":this.headingLevel},r("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&&r("slot",{key:"28230527d95c7eb843a6e1f33d2b264f9d495058",name:"icon"}),r("div",{key:"21d830d8af1d91bab939821d345b9bd8c6f061e4",class:{"gux-header-text":!0}},r("slot",{key:"c22fe63adf59baf9540879bc1cd5d2d03c02909d",onSlotchange:()=>this.handleSlotChange("header"),name:"header"}),r("slot",{key:"dcc41180d4e782545efac487fe313ea524373dc7",onSlotchange:()=>this.handleSlotChange("subheader"),name:"subheader"})),r("div",{key:"501aa97d9f8159cd80f485c223ec98a78cc17218",class:{"gux-header-icon":!0,"gux-expanded":this.open,"gux-arrow-position-start":this.isArrowPositionBeforeText()}},r("gux-icon",{key:"1dea926f1b7a8c099fe13da17ad40f713904faf0",decorative:!0,"icon-name":"custom/chevron-down-small-regular",size:"small"})))),r("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}},r("slot",{key:"3d7b3f85ddafde05e8f90e5e10ed08b786fb2e04",name:"content"})))}get root(){return i(this)}static get watchers(){return{open:["watchOpen"]}}};n.style=":host(:first-child) section{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}section.gux-disabled>*{pointer-events:none;opacity:0.5}section{border-block-end:var(--gse-ui-accordion-wrapper-dividerBorder-width) var(--gse-ui-accordion-wrapper-dividerBorder-style) var(--gse-ui-accordion-wrapper-dividerBorder-color)}section .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}section .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}section .gux-header.gux-reverse-headings .gux-header-text{display:flex;flex-direction:column-reverse}section .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)}section .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)}section .gux-header ::slotted([slot=subheader]) .gux-reverse-headings{margin-block:0 var(--gse-core-spacing-5xs);margin-inline:0}section .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)}section .gux-header ::slotted([slot=icon]) .gux-reverse-headings{align-self:flex-end}section .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}section .gux-header .gux-header-icon.gux-arrow-position-start{order:-1;margin-inline-end:var(--gse-ui-accordion-header-gap)}section .gux-header .gux-header-icon.gux-expanded{color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-open);transform:rotate(-180deg)}section .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)}section .gux-header:hover .gux-header-icon{color:var(--gse-ui-accordion-header-default-foreground-chevronIcon-hover)}section .gux-content{box-sizing:border-box;display:none}section .gux-content.gux-expanded{display:block}section .gux-content.gux-text-content-layout{padding:var(--gse-ui-accordion-contentItem-padding)}section .gux-content ::slotted([slot=content]){margin:0}";export{n as gux_accordion_section}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,c as t,h as
|
1
|
+
import{r as e,c as t,h as o,H as a,g as s}from"./p-cf74fd3d.js";import{t as i}from"./p-6ec0040f.js";const n=class{constructor(o){e(this,o),this.guxdismiss=t(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){i(this.root,{variant:this.accent})}render(){return o(a,{key:"1028ea02235e685a46434682add681629d81ed1c"},o("div",{key:"a9100ef51dbd153d3b93df43cfc45229da6d1b35",class:`gux-icon gux-${this.accent}`},o("slot",{key:"f83911f9ef15beecfe1efa5a445f571c6333df53",name:"icon"})),o("div",{key:"6b642b1effb289db65b2dabf3b684fddc5db0f52",class:"gux-content"},o("gux-truncate",{key:"aa35891a528aaa9d1fa20332fc3b7e1c153751e5",class:"gux-title","max-lines":1},o("slot",{key:"2ef932f47926407f0e0e6bdc2541494029926d0b",name:"title"})),o("gux-truncate",{key:"210594c7defbd0eadeef4b06c89aeb9f028e19e5",class:"gux-message","max-lines":2},o("slot",{key:"71778069ab9c775f1118628c27ffa5bf48e9f32e",name:"message"}))),o("gux-dismiss-button",{key:"ef00664ff6305872049296977a8092ae4b0c829d",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(e){e.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return s(this)}};n.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;width:294px;padding:16px 8px 16px 16px;margin-bottom:4px;color:var(--gse-ui-toast-success-foregroundColor);background:var(--gse-ui-toast-success-backgroundColor);border:1px solid var(--gse-ui-card-default-border-color);border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;margin:4px}.gux-icon ::slotted(gux-icon){width:24px !important;height:24px !important}.gux-icon.gux-alert{color:var(--gse-ui-toast-error-iconColor)}.gux-icon.gux-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-icon.gux-positive{color:var(--gse-ui-toast-success-iconColor)}.gux-icon.gux-neutral{color:var(--gse-ui-toast-info-iconColor)}.gux-content{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;align-self:auto;order:0;margin:0 12px 0 8px;color:var(--gse-ui-toast-success-foregroundColor)}.gux-content .gux-title,.gux-content .gux-message{flex:1 1 auto;align-self:auto;order:0}.gux-content .gux-title{font-family:var(--gse-semantic-heading-sm-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-sm-bold-fontSize);line-height:var(--gse-semantic-heading-sm-bold-lineHeight);font-weight:var(--gse-semantic-heading-sm-bold-fontWeight)}";export{n as gux_notification_toast_legacy}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,c as t,f as n,h as s,g as a}from"./p-cf74fd3d.js";import{b as o}from"./p-e5e644b3.js";import{t as c}from"./p-
|
1
|
+
import{r as e,c as t,f as n,h as s,g as a}from"./p-cf74fd3d.js";import{b as o}from"./p-e5e644b3.js";import{t as c}from"./p-6ec0040f.js";import{g as i,s as r,a as h,b as d,c as l,d as u,e as b,f as m,h as p}from"./p-db201bbc.js";import"./p-4202e9f2.js";import"./p-a43079c8.js";import"./p-2c25e2f2.js";const g={search:"Search",searchResults:"search results",selectedColumnCount:"{count} / {total} Columns Selected",selectAllColumnsScreenReader:"{count} of {total} columns selected: check checkbox to select all {total} columns",unselectAllColumnsScreenReader:"{count} of {total} columns selected: uncheck checkbox to unselect all {total} columns",movePositionPrompt:"Press space or enter to move the {columnName} column to position {newPositionNumber} from position {oldPositionNumber}.",reorderingModeActive:"Reordering mode active. Reposition the {columnName} column using the up arrow key, the down arrow key, the home key and the end key. Press Escape to deactivate reordering mode."},f=class{constructor(n){e(this,n),this.guxorderchange=t(this,"guxorderchange",7),this.highlightResults={matchCount:0,currentMatch:0},this.keyboardOrderChange=i()}watchKeyboardOrderChange(){r(this.root,this.keyboardOrderChange)}async componentWillLoad(){c(this.root),this.i18n=await o(this.root,g)}componentDidLoad(){h(this.root,this.mainCheckboxElement)}handleInternalorderchange(e){e.stopPropagation(),this.emitOrderChange(e.detail)}emitOrderChange(e){const{oldIndex:t,newIndex:n}=e;if(t!==n){const t=d(this.root,e);this.guxorderchange.emit(t)}}handleInternalkeyboardorderstart(e){e.stopPropagation();const t=e.detail,n=l(e.target);this.keyboardOrderChange={oldIndex:n,newIndex:n},this.announceElement.guxAnnounce(this.i18n("reorderingModeActive",{columnName:t}))}handleInternalkeyboardreordermove(e){e.stopPropagation();const{delta:t,column:n}=e.detail;this.keyboardOrderChange=u(this.root,this.keyboardOrderChange,t),this.announceElement.guxAnnounce(this.i18n("movePositionPrompt",{columnName:n,newPositionNumber:this.keyboardOrderChange.newIndex+1,oldPositionNumber:this.keyboardOrderChange.oldIndex+1}))}handleInternalkeyboarddoreorder(e){e.stopPropagation(),this.emitOrderChange(this.keyboardOrderChange),e.target.guxFocus()}handleInternalkeyboardorderfinish(e){e.stopPropagation(),this.keyboardOrderChange=i()}onSearchInput(){this.highlightResults=b(this.root,this.searchElement)}onGuxCurrentMatchChanged(e){this.highlightResults=b(this.root,this.searchElement,e.detail)}onMainCheckboxChange(){m(this.root,this.mainCheckboxElement.checked),n(this.root)}onListChange(){h(this.root,this.mainCheckboxElement),n(this.root)}onSlotChange(){this.onListChange()}renderSelectedColumnCount(){const{count:e,total:t}=p(this.root);return s("div",null,s("span",{"aria-hidden":"true"},this.i18n("selectedColumnCount",{count:e,total:t})),s("span",{class:"gux-sr-only"},s("span",null,": ",this.i18n(e===t?"unselectAllColumnsScreenReader":"selectAllColumnsScreenReader",{count:e,total:t}))))}render(){return s("div",{key:"62daef53138e926a9cbfae1719232de3f3e7f9b2",class:"gux-container"},s("div",{key:"e3a79e55e8cbe501bdb26935385ba313cd4927ee",class:"gux-sr-only","aria-live":"polite"},`${this.highlightResults.matchCount} ${this.i18n("searchResults")}`),s("div",{key:"76a55f638c25df7ceb4d38b53be63102889b9aa8",class:"gux-search"},s("gux-content-search",{key:"be60a7fdfe003135a386d313bd3fecbbd52c853f","match-count":this.highlightResults.matchCount,"current-match":this.highlightResults.currentMatch,onGuxcurrentmatchchanged:e=>this.onGuxCurrentMatchChanged(e)},s("input",{key:"19af360a04d7d4df522dc76676897363fe35c1a4",type:"search",placeholder:this.i18n("search"),onInput:()=>this.onSearchInput(),ref:e=>this.searchElement=e}))),s("div",{key:"261035c713eb6c548bf5cf3f0c2cfd8337446c4f",class:"gux-select"},s("gux-form-field-checkbox",{key:"7067d7cece7c16d05a45e6b01fa46c245a450eea"},s("input",{key:"bef6b7f2804bc0f8006901195a694f725dd6c14f",slot:"input",type:"checkbox",ref:e=>this.mainCheckboxElement=e,onChange:()=>this.onMainCheckboxChange()}),s("label",{key:"2135cd8bbc8421a4cae0fb46f93728245d5d670f",slot:"label"},this.renderSelectedColumnCount()))),s("div",{key:"58b6db75ebf6d37d15beabf2a6e572d863f01fd4",class:"gux-list",onChange:()=>this.onListChange()},s("slot",{key:"3e2cdf0655d9dfbd380495eccd7cdaf23470b7d3",onSlotchange:()=>this.onSlotChange()})),s("gux-announce-beta",{key:"da70374436f1c5fd2746e327a7eb7709efb770ef",ref:e=>this.announceElement=e}))}get root(){return a(this)}static get watchers(){return{keyboardOrderChange:["watchKeyboardOrderChange"]}}};f.style=".gux-container{inline-size:320px;min-inline-size:320px;padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding)}.gux-container .gux-search gux-content-search{inline-size:100%}.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-decoration,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-cancel-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-button,.gux-container .gux-search gux-content-search input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none}.gux-container .gux-select{padding:var(--gse-ui-dataTableItems-editColumn-editColumnContent-padding);margin-inline-start:24px}.gux-sr-only: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{f as gux_column_manager}
|