genesys-spark-components 4.188.1 → 4.188.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion.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-actionable-inline-alert-beta.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 +1 -1
- 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-beta.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 +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-cloud-logo-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-cloud-logomark-beta.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 +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 +1 -1
- 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-illustration-beta.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-logo-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-logomark-beta.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 +1 -1
- package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-prompt-input-beta.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +15 -3
- 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 +16 -4
- package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +22 -3
- 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-header.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-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 +1 -1
- package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-tree-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-tree-multi-beta.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-sB4wE0Xu.js → usage-BJgNelfU.js} +1 -1
- package/dist/collection/components/beta/gux-icon-tooltip/gux-icon-tooltip.js +1 -1
- package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-link/gux-rich-text-editor-action-link.js +43 -5
- package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-text-highlight/gux-rich-text-editor-action-text-highlight.js +44 -6
- package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action.js +50 -5
- package/dist/collection/components/stable/gux-icon/gux-icon.js +1 -1
- package/dist/collection/components/stable/gux-icon/icons/custom/glassdoor.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/kakaotalk.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/servicenow.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/trustpilot.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/custom/zendesk.svg +1 -0
- package/dist/collection/components/stable/gux-icon/icons/fa/greater-than-regular.svg +1 -1
- package/dist/collection/components/stable/gux-icon/icons/fa/weibo.svg +1 -0
- package/dist/esm/genesys-webcomponents.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-actionable-inline-alert-beta.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 +1 -1
- 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-beta.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 +1 -1
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-cloud-logo-beta.entry.js +1 -1
- package/dist/esm/gux-cloud-logomark-beta.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 +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 +1 -1
- 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-illustration-beta.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-logo-beta.entry.js +1 -1
- package/dist/esm/gux-logomark-beta.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 +1 -1
- package/dist/esm/gux-popover-list-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-prompt-input-beta.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/gux-rich-text-editor-action-link.entry.js +15 -3
- 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 +16 -4
- package/dist/esm/gux-rich-text-editor-action.entry.js +22 -3
- 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-header.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-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 +1 -1
- package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
- package/dist/esm/gux-tooltip_2.entry.js +1 -1
- package/dist/esm/gux-tree-beta.entry.js +1 -1
- package/dist/esm/gux-tree-multi-beta.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-B6h1eXrW.js → usage-CyMJvvXZ.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/icons/custom/glassdoor.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/kakaotalk.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/servicenow.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/trustpilot.svg +1 -0
- package/dist/genesys-webcomponents/icons/custom/zendesk.svg +1 -0
- package/dist/genesys-webcomponents/icons/fa/greater-than-regular.svg +1 -1
- package/dist/genesys-webcomponents/icons/fa/weibo.svg +1 -0
- package/dist/genesys-webcomponents/{p-85546f7b.entry.js → p-0176180e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-017a352b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-d294c8ec.entry.js → p-02b7d6fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-44ee63db.entry.js → p-03ad79ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5148f891.entry.js → p-04306f05.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a6f07953.entry.js → p-0693ec26.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5622da88.entry.js → p-081b8e7d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ab56c5a3.entry.js → p-0d1ff8d5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6f40c523.entry.js → p-0e89d5c0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1687884f.entry.js → p-10d99921.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8108bda2.entry.js → p-13a947e5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c366d66b.entry.js → p-142e2ade.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9a973106.entry.js → p-15091f57.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-96d5bf32.entry.js → p-15f8246f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-1621bc97.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8eab6c7e.entry.js → p-164fbaed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5c57de61.entry.js → p-17ce50d3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1695394a.entry.js → p-18c052ed.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-18fb0250.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-41577f70.entry.js → p-1b97282d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-07372e52.entry.js → p-1e8b3457.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9561ec21.entry.js → p-2422d553.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4827fa85.entry.js → p-279d91f7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-99d7e93e.entry.js → p-29b0ce5c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-026b9834.entry.js → p-29ff7cda.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b7ebc161.entry.js → p-2c46e8b5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-83c99eb7.entry.js → p-2cd35cd3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-43a5a349.entry.js → p-31314c33.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ed0ad2a.entry.js → p-32f0dca5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-10005b05.entry.js → p-332aecfe.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-50741c53.entry.js → p-33e05442.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c39c2e09.entry.js → p-3404ac41.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-af192665.entry.js → p-359f0807.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c4f7f1b.entry.js → p-38bbac31.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-3c15ca0d.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9f133169.entry.js → p-3c57b576.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8006d315.entry.js → p-3e80711f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a4f41025.entry.js → p-41366673.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c62c2e2c.entry.js → p-4330bb8d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7f0495e3.entry.js → p-4361b612.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d99db562.entry.js → p-440d9e4c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-75a276b4.entry.js → p-44bedb7c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0a13e985.entry.js → p-458bf41b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5ba624d5.entry.js → p-473bafec.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d4373510.entry.js → p-4942fff1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-96d5b1bf.entry.js → p-495883fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ea7e0c91.entry.js → p-532cc6bc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a359e4da.entry.js → p-5376699a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f928754d.entry.js → p-546b39f9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-49b9817b.entry.js → p-54d38c9f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-77cb31a4.entry.js → p-56e6235a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f5d7a04e.entry.js → p-5e53e0ca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dfa33656.entry.js → p-615fa50c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c26b24f9.entry.js → p-6647082b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7a5ad8ae.entry.js → p-69ec8603.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-78d92139.entry.js → p-70439ac2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1ceab2bf.entry.js → p-7c749d36.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4315cd6b.entry.js → p-7de8ae97.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f1c4d29d.entry.js → p-8056877a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-713c8d1b.entry.js → p-810a79c5.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-82c72554.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-67d1b365.entry.js → p-82d7b51c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f8ef5895.entry.js → p-836e38d0.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-85ba6a46.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-ef202b5f.entry.js → p-8687b616.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-22ed9a7d.entry.js → p-87572456.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a6df8ad.entry.js → p-88631676.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5de2444c.entry.js → p-8b4e9262.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4ea10f94.entry.js → p-8bb6c091.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2ef87d07.entry.js → p-8bcd54d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c9cc9783.entry.js → p-8d14f6dd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3953c668.entry.js → p-8eb3936e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-25c8dea4.entry.js → p-8ee8a328.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fd39807a.entry.js → p-9056483a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-015617e9.entry.js → p-90e415a0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-00766124.entry.js → p-94dd3891.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-925f6f1b.entry.js → p-94df9949.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2701831d.entry.js → p-96e1edf9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-92eaff46.entry.js → p-99db1012.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0453c00e.entry.js → p-99e8ceac.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-127778a4.entry.js → p-9b33572a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0e7ac2ed.entry.js → p-9d212482.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-66663066.entry.js → p-9d74752b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-9ec88984.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c7add5b0.entry.js → p-9f8f2fde.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-B6h1eXrW.js → p-CyMJvvXZ.js} +1 -1
- package/dist/genesys-webcomponents/{p-70bc2301.entry.js → p-a0aab805.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-63769174.entry.js → p-a30fd4d1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5411edc5.entry.js → p-a590e831.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-538eed2f.entry.js → p-a933c2a7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-346a5b78.entry.js → p-ac9bf07f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b6971ca1.entry.js → p-b250f711.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a7d7cc18.entry.js → p-b28c37e3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-64575c8f.entry.js → p-b3babc0d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2904e896.entry.js → p-b3c3bf98.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b40c5571.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1d53a2a3.entry.js → p-b5cac19b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b6e4090a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-5b22714c.entry.js → p-b83d5895.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-345239d6.entry.js → p-bce5dac9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-77b653f2.entry.js → p-be8bd652.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f9adc076.entry.js → p-bf65206c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4409c7fc.entry.js → p-c11f8385.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8d9cc87b.entry.js → p-c7e2b6fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3150ad33.entry.js → p-c82016c8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-004aee53.entry.js → p-c827df74.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-64bc09ce.entry.js → p-caf2e77d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ba57dfae.entry.js → p-cd6ee212.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cc37b3d5.entry.js → p-cf84a50f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6b94d745.entry.js → p-cfad0362.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a8a5f644.entry.js → p-d7376bde.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9a74205e.entry.js → p-d9b18255.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d9f3699e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-ec1cb91d.entry.js → p-dbb83b90.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3e108263.entry.js → p-de02b19a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d2beb3b2.entry.js → p-e1d8dc07.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3fd1a55e.entry.js → p-e94eaef7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-140fbae9.entry.js → p-ea8cb29e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eaf56162.entry.js → p-ebae6208.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-939c80f9.entry.js → p-ef11dec4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-700fd593.entry.js → p-f083a149.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-62ba27e4.entry.js → p-f194cd6c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-77d60ed3.entry.js → p-f239128e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5495bd0b.entry.js → p-f60983c6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6a92146a.entry.js → p-f688ce8d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9faa698d.entry.js → p-f7064d44.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f74a20b7.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-c70756c3.entry.js → p-f7a90a68.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8bede258.entry.js → p-f9035e5e.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-link/gux-rich-text-editor-action-link.d.ts +7 -1
- package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action-text-highlight/gux-rich-text-editor-action-text-highlight.d.ts +7 -1
- package/dist/types/components/beta/gux-rich-text-editor/gux-rich-text-editor-action/gux-rich-text-editor-action.d.ts +8 -1
- package/dist/types/components/stable/gux-icon/gux-icon.types.d.ts +1 -1
- package/dist/types/components.d.ts +36 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-02069f7f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2860c165.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3584993f.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3da28db9.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3ebcd9be.entry.js +0 -1
- package/dist/genesys-webcomponents/p-415c4843.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6730939b.entry.js +0 -1
- package/dist/genesys-webcomponents/p-951cde88.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9fcdd9b4.entry.js +0 -1
- package/dist/genesys-webcomponents/p-bd7bfefc.entry.js +0 -1
- package/dist/genesys-webcomponents/p-e21d0219.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as i,a as t}from"./p-mm833MRp.js";import{b as o}from"./p-D_8CR3cJ.js";import{O as r}from"./p-1mmdDpx8.js";import{a as l,o as a}from"./p-De1NnCmO.js";import{t as s}from"./p-
|
|
1
|
+
import{r as e,h as i,a as t}from"./p-mm833MRp.js";import{b as o}from"./p-D_8CR3cJ.js";import{O as r}from"./p-1mmdDpx8.js";import{a as l,o as a}from"./p-De1NnCmO.js";import{t as s}from"./p-CyMJvvXZ.js";import{G as n,a as f}from"./p-BkM3RdTO.js";import{G as h,a as d,b as u}from"./p-DR1RHELj.js";import{h as c}from"./p-qzV3vtOw.js";import{g as p}from"./p-MAoEg4ig.js";import{v as m,a as g}from"./p-DHLxhscH.js";import"./p-Cd4R0amv.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";var b={required:"Required"};const x=class{constructor(i){e(this,i),this.indicatorMark="required",this.computedLabelPosition="above",this.required=!1,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const i=this.root.querySelector("gux-phone-input-beta");i&&(i.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=c(this.root,"error"),this.hasHelp=c(this.root,"help"),this.hasLabelInfo=c(this.root,"label-info")}handleKeyup(e){var i,t;switch(e.key){case"Tab":this.input.matches(":focus-within")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3));break;case"Shift":break;default:this.input.matches(":focus-within")&&(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)}async componentWillLoad(){this.getI18nValue=await o(this.root,b),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=c(this.root,"error"),this.hasHelp=c(this.root,"help"),this.hasLabelInfo=c(this.root,"label-info"),s(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){var e;return i(u,{key:"613378ec2b9693daa0d18c873bd38194adcc8d4a",labelPosition:this.computedLabelPosition},i(d,{key:"714b94c9baea910a5557478a175af7b484d419f4"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(p(this.root,"error"),this.hasError),this.renderText(p(this.root,"label-info"),this.hasLabelInfo)),i(h,{key:"f5cd6e7de34d23b88af5a5c28d7249e1d3cc9ca5",position:this.computedLabelPosition,required:this.required},i("slot",{key:"dd43169118d9b259d1e264393e00d25ea21345f9",name:"label",onSlotchange:()=>this.setLabel()}),i("gux-form-field-label-indicator",{key:"61b7d9650aa32bc485eec34b7b2c96dca71bbc39",variant:this.indicatorMark,required:this.required}),i("slot",{key:"3f159b032cc9ac1a8592d1e8c7a46c8f01a02ed4",name:"label-info"})),i("div",{key:"a255777cea26f2ebc3584c008fdef471470979b7",class:"gux-input-and-error-container"},i("div",{key:"a3efa67c24b78802d2eda00d5d18e19104c537aa",class:{"gux-input":!0,"gux-input-error":this.hasError}},i("div",{key:"24f51dd5ce104bba05b99dbec535787f38605e9c",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},i("slot",{key:"b113dede3ddca50431087a10f334a68fa42c3705"}))),i(n,{key:"6257297b31c53af850adb599dbda8a79678055fe",show:this.hasError},i("slot",{key:"53a58ab2005a598ffa97ab16f894e642e8dc6884",name:"error"})),i(f,{key:"34abd49c63cc0617f0f940be16dad10525a8f42f",show:!this.hasError&&this.hasHelp},i("slot",{key:"ac6905a7b49d47dab653ce3ad3d0c5899f2ca5f1",name:"help"}))))}renderText(e,i=!1){if(i)return" "+e}get variant(){return`phoneInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.input=this.root.querySelector("gux-phone-input-beta"),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=l(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),m(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=g(this.label,this.labelPosition)}get root(){return t(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(e,i,t,o){var r,l=arguments.length,a=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,i,t,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(l<3?r(a):l>3?r(i,t,a):r(i,t))||a);l>3&&a&&Object.defineProperty(i,t,a)})([r({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=".gux-form-field-fieldset-container{display:flex;min-inline-size:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.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 0 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}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(label){min-inline-size:0}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-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-visual-label.gux-above{padding-block-end:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}::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{x as gux_form_field_phone}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,a as i}from"./p-mm833MRp.js";import{t as r}from"./p-B6h1eXrW.js";import{g as s,s as o,v as a}from"./p-DHLxhscH.js";import{c as d,o as l}from"./p-Cb3FOYGS.js";import{p as c}from"./p-PYfNAK8p.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";import"./p-qzV3vtOw.js";const n=class{constructor(t){e(this,t),this.variant="simple"}componentWillLoad(){this.setInput(),r(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}setInput(){this.input=s(this.root,'input[type="radio"][slot="input"], input[type="checkbox"][slot="input"]'),c(this.input),o(this.root,this.input,"description"),this.disabled=d(this.input),this.disabledObserver=l(this.input,(e=>{this.disabled=e})),a(this.root,this.input)}renderDescription(){return"simple"===this.variant?t("gux-screen-reader-beta",null,t("slot",{name:"description"})):t("div",{class:"gux-description-container"},t("slot",{name:"description"}))}renderBadge(){if("descriptive"===this.variant)return t("slot",{name:"badge"})}render(){return t("div",{key:"628b290b36f27f11a5851adcdf7dcfcdcd76e246",class:{"gux-selector-card":!0,[`gux-${this.variant}`]:!0,"gux-disabled":this.disabled}},t("div",{key:"3f95ed9d103d8cf7766fd441d476c3c3f86a2f2c",class:"gux-content"},t("div",{key:"d6cb7b6937cccca4456bf94c1c2fcb92b08a7924",class:"gux-icon"},t("slot",{key:"c2a2a0f7f8f6680694582f7fd61157d5d8d6be70",name:"icon"})),t("div",{key:"2a87beb05bbb012f0f3e932dc1d75b2088af8c44",class:"gux-label-container"},t("slot",{key:"3fb1ef09c29d2b94119fc13ed584bed880059bc3",name:"label"})),t("slot",{key:"09436179cc660457f5b9d5bfbc43469a887cb7a3",name:"input"}),this.renderDescription(),this.renderBadge()))}get root(){return i(this)}};n.style=":host{display:flex;min-inline-size:var(--gse-ui-selectorCard-simple-minWidth);max-inline-size:var(--gse-ui-selectorCard-simple-maxWidth);min-block-size:var(--gse-ui-selectorCard-simple-minHeight);max-block-size:var(--gse-ui-selectorCard-simple-maxHeight)}:host([variant=descriptive]){min-inline-size:var(--gse-ui-selectorCard-descriptive-minWidth);max-inline-size:var(--gse-ui-selectorCard-descriptive-maxWidth);min-block-size:var(--gse-ui-selectorCard-descriptive-minHeight);max-block-size:var(--gse-ui-selectorCard-descriptive-maxHeight)}::slotted(*){cursor:pointer}::slotted(gux-icon){inline-size:var(--gse-ui-icon-medium-size);block-size:var(--gse-ui-icon-medium-size);color:var(--gse-ui-selectorCard-ilustrativeIcon-foregroundColor)}::slotted(label){inline-size:100%;font-family:var(--gse-ui-selectorCard-simple-label-fontFamily);font-size:var(--gse-ui-selectorCard-simple-label-fontSize);font-weight:var(--gse-ui-selectorCard-simple-label-fontWeight);line-height:var(--gse-ui-selectorCard-simple-label-lineHeight);color:var(--gse-ui-selectorCard-text-foregroundColor)}::slotted(input[type=radio]),::slotted(input[type=checkbox]){position:absolute;inset-block-start:0;inline-size:100%;block-size:100%;margin:0;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);-webkit-appearance:none;appearance:none;outline:none;border:var(--gse-ui-selectorCard-unselected-border-width) var(--gse-ui-selectorCard-unselected-border-style) var(--gse-ui-selectorCard-unselected-border-color);border-radius:var(--gse-ui-selectorCard-simple-borderRadius)}::slotted(input[type=radio])::before,::slotted(input[type=checkbox])::before{position:absolute;inset-block-start:var(--gse-ui-selectorCard-descriptive-text-gap);inset-inline-end:var(--gse-ui-selectorCard-descriptive-text-gap);display:inline-grid;grid-area:1/1;inline-size:var(--gse-ui-radioButton-icon-width);block-size:var(--gse-ui-radioButton-icon-height);vertical-align:middle;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;content:\"\"}::slotted(input[type=radio])::before{border-radius:50%}::slotted(input[type=radio]:checked),::slotted(input[type=checkbox]:checked){border:var(--gse-ui-selectorCard-selected-border-width) var(--gse-ui-selectorCard-selected-border-style) var(--gse-ui-selectorCard-selected-border-color)}::slotted(input[type=radio]:checked)::before,::slotted(input[type=checkbox]:checked)::before{background-color:var(--gse-ui-selectorCard-default-selectedIndicator-selected-foregroundColor)}::slotted(input[type=radio]:not(:checked))::before,::slotted(input[type=checkbox]:not(:checked))::before{background-color:var(--gse-ui-selectorCard-default-selectedIndicator-unselected-foregroundColor)}::slotted(input[type=radio]:disabled),::slotted(input[type=checkbox]:disabled){pointer-events:none;cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(input[type=radio])::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\")}::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\")}::slotted(input[type=checkbox])::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='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%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='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\")}::slotted(input[type=checkbox]: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='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%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='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\")}.gux-selector-card{display:flex;flex:1 1 auto;inline-size:inherit}.gux-selector-card .gux-content{position:relative;box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--gse-ui-selectorCard-descriptive-text-gap);align-items:center;inline-size:inherit;min-inline-size:var(--gse-ui-selectorCard-simple-minWidth);max-inline-size:var(--gse-ui-selectorCard-simple-maxWidth);min-block-size:var(--gse-ui-selectorCard-simple-minHeight);max-block-size:var(--gse-ui-selectorCard-simple-maxHeight);padding:var(--gse-ui-selectorCard-simple-padding);text-align:center;background-color:var(--gse-ui-selectorCard-default-backgroundColor);border-radius:var(--gse-ui-selectorCard-simple-borderRadius)}.gux-selector-card .gux-content .gux-label-container{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.gux-selector-card .gux-content .gux-icon{line-height:0}.gux-selector-card .gux-content:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-selector-card.gux-descriptive .gux-content{align-items:flex-start;min-inline-size:var(--gse-ui-selectorCard-descriptive-minWidth);max-inline-size:var(--gse-ui-selectorCard-descriptive-maxWidth);min-block-size:var(--gse-ui-selectorCard-descriptive-minHeight);max-block-size:var(--gse-ui-selectorCard-descriptive-maxHeight);padding:var(--gse-ui-selectorCard-descriptive-padding);text-align:start;white-space:normal;border-radius:var(--gse-ui-selectorCard-descriptive-borderRadius)}.gux-selector-card.gux-descriptive .gux-content .gux-description-container{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}.gux-selector-card.gux-descriptive .gux-content ::slotted(gux-badge){margin-block-start:var(--gse-ui-selectorCard-descriptive-badge-marginTop)}.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=radio]),.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=checkbox]){inset-inline-start:0;border-radius:var(--gse-ui-selectorCard-descriptive-borderRadius)}.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=radio])::before,.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=checkbox])::before{inset-block-start:var(--gse-ui-selectorCard-descriptive-gap);inset-inline-end:var(--gse-ui-selectorCard-descriptive-padding);inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}.gux-selector-card.gux-descriptive .gux-content ::slotted(label){display:block;margin-block-end:var(--gse-ui-selectorCard-descriptive-text-gap);font-family:var(--gse-ui-selectorCard-descriptive-label-fontFamily);font-size:var(--gse-ui-selectorCard-descriptive-label-fontSize);font-weight:var(--gse-ui-selectorCard-descriptive-label-fontWeight);line-height:var(--gse-ui-selectorCard-descriptive-label-lineHeight)}.gux-selector-card.gux-descriptive .gux-content ::slotted(gux-icon){inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size);margin-block-end:var(--gse-ui-selectorCard-descriptive-gap)}.gux-selector-card.gux-disabled{pointer-events:none;cursor:not-allowed}.gux-selector-card.gux-disabled .gux-content{pointer-events:none;-webkit-user-select:none;user-select:none;background-color:var(--gse-ui-selectorCard-disabled-backgroundColor);opacity:var(--gse-ui-selectorCard-disabled-opacity)}.gux-selector-card:hover:not(:disabled) .gux-content{cursor:pointer;background-color:var(--gse-ui-selectorCard-hover-backgroundColor)}.gux-selector-card:hover:not(:disabled) .gux-content ::slotted(input[type=radio])::before,.gux-selector-card:hover:not(:disabled) .gux-content ::slotted(input[type=checkbox])::before{background-color:var(--gse-ui-selectorCard-hover-selectedIndicator-foregroundColor)}.gux-selector-card:active:not(:disabled) .gux-content{background-color:var(--gse-ui-selectorCard-active-backgroundColor)}.gux-selector-card:active:not(:disabled) .gux-content ::slotted(input[type=radio])::before,.gux-selector-card:active:not(:disabled) .gux-content ::slotted(input[type=checkbox])::before{background-color:var(--gse-ui-selectorCard-active-selectedIndicator-foregroundColor)}";export{n as gux_selector_card_beta}
|
|
1
|
+
import{r as e,h as t,a as i}from"./p-mm833MRp.js";import{t as r}from"./p-CyMJvvXZ.js";import{g as s,s as o,v as a}from"./p-DHLxhscH.js";import{c as d,o as l}from"./p-Cb3FOYGS.js";import{p as c}from"./p-PYfNAK8p.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";import"./p-qzV3vtOw.js";const n=class{constructor(t){e(this,t),this.variant="simple"}componentWillLoad(){this.setInput(),r(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}setInput(){this.input=s(this.root,'input[type="radio"][slot="input"], input[type="checkbox"][slot="input"]'),c(this.input),o(this.root,this.input,"description"),this.disabled=d(this.input),this.disabledObserver=l(this.input,(e=>{this.disabled=e})),a(this.root,this.input)}renderDescription(){return"simple"===this.variant?t("gux-screen-reader-beta",null,t("slot",{name:"description"})):t("div",{class:"gux-description-container"},t("slot",{name:"description"}))}renderBadge(){if("descriptive"===this.variant)return t("slot",{name:"badge"})}render(){return t("div",{key:"628b290b36f27f11a5851adcdf7dcfcdcd76e246",class:{"gux-selector-card":!0,[`gux-${this.variant}`]:!0,"gux-disabled":this.disabled}},t("div",{key:"3f95ed9d103d8cf7766fd441d476c3c3f86a2f2c",class:"gux-content"},t("div",{key:"d6cb7b6937cccca4456bf94c1c2fcb92b08a7924",class:"gux-icon"},t("slot",{key:"c2a2a0f7f8f6680694582f7fd61157d5d8d6be70",name:"icon"})),t("div",{key:"2a87beb05bbb012f0f3e932dc1d75b2088af8c44",class:"gux-label-container"},t("slot",{key:"3fb1ef09c29d2b94119fc13ed584bed880059bc3",name:"label"})),t("slot",{key:"09436179cc660457f5b9d5bfbc43469a887cb7a3",name:"input"}),this.renderDescription(),this.renderBadge()))}get root(){return i(this)}};n.style=":host{display:flex;min-inline-size:var(--gse-ui-selectorCard-simple-minWidth);max-inline-size:var(--gse-ui-selectorCard-simple-maxWidth);min-block-size:var(--gse-ui-selectorCard-simple-minHeight);max-block-size:var(--gse-ui-selectorCard-simple-maxHeight)}:host([variant=descriptive]){min-inline-size:var(--gse-ui-selectorCard-descriptive-minWidth);max-inline-size:var(--gse-ui-selectorCard-descriptive-maxWidth);min-block-size:var(--gse-ui-selectorCard-descriptive-minHeight);max-block-size:var(--gse-ui-selectorCard-descriptive-maxHeight)}::slotted(*){cursor:pointer}::slotted(gux-icon){inline-size:var(--gse-ui-icon-medium-size);block-size:var(--gse-ui-icon-medium-size);color:var(--gse-ui-selectorCard-ilustrativeIcon-foregroundColor)}::slotted(label){inline-size:100%;font-family:var(--gse-ui-selectorCard-simple-label-fontFamily);font-size:var(--gse-ui-selectorCard-simple-label-fontSize);font-weight:var(--gse-ui-selectorCard-simple-label-fontWeight);line-height:var(--gse-ui-selectorCard-simple-label-lineHeight);color:var(--gse-ui-selectorCard-text-foregroundColor)}::slotted(input[type=radio]),::slotted(input[type=checkbox]){position:absolute;inset-block-start:0;inline-size:100%;block-size:100%;margin:0;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);-webkit-appearance:none;appearance:none;outline:none;border:var(--gse-ui-selectorCard-unselected-border-width) var(--gse-ui-selectorCard-unselected-border-style) var(--gse-ui-selectorCard-unselected-border-color);border-radius:var(--gse-ui-selectorCard-simple-borderRadius)}::slotted(input[type=radio])::before,::slotted(input[type=checkbox])::before{position:absolute;inset-block-start:var(--gse-ui-selectorCard-descriptive-text-gap);inset-inline-end:var(--gse-ui-selectorCard-descriptive-text-gap);display:inline-grid;grid-area:1/1;inline-size:var(--gse-ui-radioButton-icon-width);block-size:var(--gse-ui-radioButton-icon-height);vertical-align:middle;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor);text-align:center;content:\"\"}::slotted(input[type=radio])::before{border-radius:50%}::slotted(input[type=radio]:checked),::slotted(input[type=checkbox]:checked){border:var(--gse-ui-selectorCard-selected-border-width) var(--gse-ui-selectorCard-selected-border-style) var(--gse-ui-selectorCard-selected-border-color)}::slotted(input[type=radio]:checked)::before,::slotted(input[type=checkbox]:checked)::before{background-color:var(--gse-ui-selectorCard-default-selectedIndicator-selected-foregroundColor)}::slotted(input[type=radio]:not(:checked))::before,::slotted(input[type=checkbox]:not(:checked))::before{background-color:var(--gse-ui-selectorCard-default-selectedIndicator-unselected-foregroundColor)}::slotted(input[type=radio]:disabled),::slotted(input[type=checkbox]:disabled){pointer-events:none;cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(input[type=radio])::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\")}::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\")}::slotted(input[type=checkbox])::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='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%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='M13.7143 0C14.975 0 16 1.02321 16 2.28571V13.7143C16 14.975 14.975 16 13.7143 16H2.28571C1.02321 16 0 14.975 0 13.7143V2.28571C0 1.02321 1.02321 0 2.28571 0H13.7143ZM13.7143 1.71429H2.28571C1.97 1.71429 1.71429 1.97 1.71429 2.28571V13.7143C1.71429 14.0286 1.97 14.2857 2.28571 14.2857H13.7143C14.0286 14.2857 14.2857 14.0286 14.2857 13.7143V2.28571C14.2857 1.97 14.0286 1.71429 13.7143 1.71429Z' /%3E%3C/svg%3E\")}::slotted(input[type=checkbox]: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='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%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='M2.28571 0C1.025 0 0 1.025 0 2.28571V13.7143C0 14.975 1.025 16 2.28571 16H13.7143C14.975 16 16 14.975 16 13.7143V2.28571C16 1.025 14.975 0 13.7143 0H2.28571ZM12.0357 6.32143L7.46429 10.8929C7.12857 11.2286 6.58571 11.2286 6.25357 10.8929L3.96786 8.60714C3.63214 8.27143 3.63214 7.72857 3.96786 7.39643C4.30357 7.06429 4.84643 7.06071 5.17857 7.39643L6.85714 9.075L10.8214 5.10714C11.1571 4.77143 11.7 4.77143 12.0321 5.10714C12.3643 5.44286 12.3679 5.98571 12.0321 6.31786L12.0357 6.32143Z' /%3E%3C/svg%3E\")}.gux-selector-card{display:flex;flex:1 1 auto;inline-size:inherit}.gux-selector-card .gux-content{position:relative;box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:column;gap:var(--gse-ui-selectorCard-descriptive-text-gap);align-items:center;inline-size:inherit;min-inline-size:var(--gse-ui-selectorCard-simple-minWidth);max-inline-size:var(--gse-ui-selectorCard-simple-maxWidth);min-block-size:var(--gse-ui-selectorCard-simple-minHeight);max-block-size:var(--gse-ui-selectorCard-simple-maxHeight);padding:var(--gse-ui-selectorCard-simple-padding);text-align:center;background-color:var(--gse-ui-selectorCard-default-backgroundColor);border-radius:var(--gse-ui-selectorCard-simple-borderRadius)}.gux-selector-card .gux-content .gux-label-container{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.gux-selector-card .gux-content .gux-icon{line-height:0}.gux-selector-card .gux-content:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-selector-card.gux-descriptive .gux-content{align-items:flex-start;min-inline-size:var(--gse-ui-selectorCard-descriptive-minWidth);max-inline-size:var(--gse-ui-selectorCard-descriptive-maxWidth);min-block-size:var(--gse-ui-selectorCard-descriptive-minHeight);max-block-size:var(--gse-ui-selectorCard-descriptive-maxHeight);padding:var(--gse-ui-selectorCard-descriptive-padding);text-align:start;white-space:normal;border-radius:var(--gse-ui-selectorCard-descriptive-borderRadius)}.gux-selector-card.gux-descriptive .gux-content .gux-description-container{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3}.gux-selector-card.gux-descriptive .gux-content ::slotted(gux-badge){margin-block-start:var(--gse-ui-selectorCard-descriptive-badge-marginTop)}.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=radio]),.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=checkbox]){inset-inline-start:0;border-radius:var(--gse-ui-selectorCard-descriptive-borderRadius)}.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=radio])::before,.gux-selector-card.gux-descriptive .gux-content ::slotted(input[type=checkbox])::before{inset-block-start:var(--gse-ui-selectorCard-descriptive-gap);inset-inline-end:var(--gse-ui-selectorCard-descriptive-padding);inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}.gux-selector-card.gux-descriptive .gux-content ::slotted(label){display:block;margin-block-end:var(--gse-ui-selectorCard-descriptive-text-gap);font-family:var(--gse-ui-selectorCard-descriptive-label-fontFamily);font-size:var(--gse-ui-selectorCard-descriptive-label-fontSize);font-weight:var(--gse-ui-selectorCard-descriptive-label-fontWeight);line-height:var(--gse-ui-selectorCard-descriptive-label-lineHeight)}.gux-selector-card.gux-descriptive .gux-content ::slotted(gux-icon){inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size);margin-block-end:var(--gse-ui-selectorCard-descriptive-gap)}.gux-selector-card.gux-disabled{pointer-events:none;cursor:not-allowed}.gux-selector-card.gux-disabled .gux-content{pointer-events:none;-webkit-user-select:none;user-select:none;background-color:var(--gse-ui-selectorCard-disabled-backgroundColor);opacity:var(--gse-ui-selectorCard-disabled-opacity)}.gux-selector-card:hover:not(:disabled) .gux-content{cursor:pointer;background-color:var(--gse-ui-selectorCard-hover-backgroundColor)}.gux-selector-card:hover:not(:disabled) .gux-content ::slotted(input[type=radio])::before,.gux-selector-card:hover:not(:disabled) .gux-content ::slotted(input[type=checkbox])::before{background-color:var(--gse-ui-selectorCard-hover-selectedIndicator-foregroundColor)}.gux-selector-card:active:not(:disabled) .gux-content{background-color:var(--gse-ui-selectorCard-active-backgroundColor)}.gux-selector-card:active:not(:disabled) .gux-content ::slotted(input[type=radio])::before,.gux-selector-card:active:not(:disabled) .gux-content ::slotted(input[type=checkbox])::before{background-color:var(--gse-ui-selectorCard-active-selectedIndicator-foregroundColor)}";export{n as gux_selector_card_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as a,h as e,H as t,a as i}from"./p-mm833MRp.js";import{t as o}from"./p-B6h1eXrW.js";import{g as r}from"./p-vciQk5kR.js";import{b as n}from"./p-D_8CR3cJ.js";import{a as s,c as u,o as c}from"./p-C8aV-TzO.js";import{O as l}from"./p-CuMZPTZF.js";import{l as d}from"./p-DxtJDeL9.js";import{a as g}from"./p-Bg4q97BS.js";import{g as v,a as f}from"./p-BV03_Ljp.js";import"./p-Cd4R0amv.js";var b={addToGroup:"Add more items to group"};const m=class{constructor(e){a(this,e)}async componentWillLoad(){o(this.root),this.i18n=await n(this.root,b)}async hideTooltip(){return await this.tooltip.hideTooltip()}onKeydown(a){r(a,this.root)}render(){return e(t,{key:"e3c797d9189deca186a63d94dfe8e47546aafb93",role:"menuitem"},e("button",{key:"9ba6102cf8c149d91120d20e8f722a8eab8c1682",type:"button","aria-label":this.i18n("addToGroup"),tabIndex:-1,class:"gux-avatar"},e("span",{key:"d20afaafda88a92ab2cb77e567c4fa83d4f7d251","aria-hidden":"true"},"+"),e("gux-tooltip-beta",{key:"99c295a40eba04b4038773f39ccbfa4a6bd35e5e","aria-hidden":"true","visual-only":!0,placement:"top",ref:a=>this.tooltip=a},e("div",{key:"79554aab23080111c36090aaf8c299c63929fd29",slot:"content"},this.i18n("addToGroup")))))}static get delegatesFocus(){return!0}get root(){return i(this)}};m.style="button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);padding:0;margin:0;overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);color:var(--gse-ui-avatar-media-initialsForeground-add);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-add);border:none;border-radius:50%}button:focus-visible,button:hover{position:relative;z-index:var(--gse-semantic-zIndex-showFocus)}button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}";const h=class{constructor(e){a(this,e),this.delayTime=250,this.count=0,this.expanded=!1}async componentWillLoad(){o(this.root)}componentDidLoad(){this.expanded&&this.runUpdatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){clearTimeout(this.focusDelayTimeout),clearTimeout(this.hideDelayTimeout),this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}onClickOutside(){this.expanded=!1}onKeydown(a){switch(r(a,this.root),a.key){case"Escape":this.hide(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.focusDelayTimeout=g((()=>{var a;null===(a=this.overflowButtonElement)||void 0===a||a.focus()})));break;case"Tab":this.hide()}}onClick(a){a.stopPropagation(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.menuElement.scrollTop=0,this.expanded=!1)}async guxClose(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=s(this.overflowButtonElement,this.menuElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&u(this.overflowButtonElement,this.menuElement,{placement:"bottom-start",strategy:"fixed",middleware:[c({mainAxis:4,crossAxis:4})]}).then((({x:a,y:e})=>{Object.assign(this.menuElement.style,{left:`${a}px`,top:`${e}px`})}))}getCount(){const a=Array.from(this.root.children);if(a.some((a=>"GUX-AVATAR-OVERFLOW-ITEM-BETA"!==a.tagName))&&d(this.root,"Only gux-avatar-overflow-item-beta elements are allowed as children."),a)return a.length}toggleOverflowMenu(){this.expanded?this.hide():this.show()}show(){clearTimeout(this.hideDelayTimeout),this.expanded=!0,this.hideDelayTimeout=g((()=>{this.focusOnMenu()}))}hide(){this.expanded&&(this.hideDelayTimeout=setTimeout((()=>{this.expanded=!1}),this.delayTime))}focusOnMenu(){Array.from(this.root.children)[0].focus()}render(){return e(t,{key:"64b5c8b7f33da69fb393fc5060374075ab571d21",role:"menuitem"},e("button",{key:"81e46738d19ef28e4ed939a5389b82fa892c890b",class:"gux-avatar-overflow",ref:a=>this.overflowButtonElement=a,onClick:()=>this.toggleOverflowMenu(),tabIndex:-1,"aria-haspopup":"true","aria-expanded":this.expanded.toString()},e("span",{key:"6cbc0b04551b65d83ed84210f83a3e6eae9dbf93",class:"gux-avatar-overflow-wrapper"},e("span",{key:"b9d61a4d1bdc45a0c44512a6003552200115266f",class:"gux-avatar-overflow-content"}," +",this.getCount()))),e("div",{key:"93862a7c0d0c3ae0f07184df81a1d0db18c0d044",class:{"gux-menu-wrapper":!0,"gux-shown":this.expanded},ref:a=>this.menuElement=a},e("div",{key:"5731a29a40bb26bc52f8efd6871aecce758bec55",role:"menu",class:"gux-menu-content"},e("slot",{key:"e681cd6c3b21ba2274890d0e2f0d1ac4d7f4173e"}))))}static get delegatesFocus(){return!0}get root(){return i(this)}};function p(a){const e=function(a){let e=a;for(;null!==e.previousElementSibling;)e=e.previousElementSibling;return e}(a);e&&e.focus()}function x(a){const e=function(a){let e=a;for(;null!==e.nextElementSibling;)e=e.nextElementSibling;return e}(a);e&&e.focus()}(function(a,e,t,i){var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(a,e,t,i);else for(var s=a.length-1;s>=0;s--)(o=a[s])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);r>3&&n&&Object.defineProperty(e,t,n)})([l({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;margin-inline-end:var(--gse-ui-avatar-groupSet-gap)}.gux-avatar-overflow{position:relative;box-sizing:border-box;inline-size:100%;padding:0;margin:0;line-height:0px;cursor:pointer;background:none;border:none;border-radius:50%}.gux-avatar-overflow:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-avatar-overflow:hover,.gux-avatar-overflow:focus{z-index:var(--gse-semantic-zIndex-showFocus)}.gux-avatar-overflow .gux-avatar-overflow-wrapper{position:relative;display:flex}.gux-avatar-overflow .gux-avatar-overflow-wrapper .gux-avatar-overflow-content{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-core-lineHeight-matchFontSize);color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-overflowCount);border-radius:50%}.gux-menu-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popup);visibility:hidden;flex-direction:column;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow-y:auto;background-color:var(--gse-ui-menu-backgroundColor);border:none;border:var(--gse-semantic-container-edges-borderWidth) solid var(--gse-semantic-border-container-edges-default);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-menu-wrapper.gux-shown{visibility:visible}";const k=class{constructor(e){a(this,e),this.accent="auto"}async componentWillLoad(){o(this.root)}componentDidLoad(){this.validatingInputs()}onKeydown(a){!function(a,e){switch(a.key){case"ArrowUp":case"ArrowLeft":a.stopPropagation(),a.preventDefault(),function(a){const e=a.previousElementSibling;e?e.focus():x(a)}(e);break;case"ArrowDown":case"ArrowRight":a.stopPropagation(),a.preventDefault(),function(a){const e=a.nextElementSibling;e?e.focus():p(a)}(e);break;case"Home":a.stopPropagation(),a.preventDefault(),p(e);break;case"End":a.stopPropagation(),a.preventDefault(),x(e)}}(a,this.root)}validatingInputs(){const a=this.root.querySelector("img");this.name||d(this.root,"Name prop is required"),a&&!a.getAttribute("alt")&&d(this.root,"Alt attribute is required for slotted image.")}render(){return e(t,{key:"aa5e1c3e0bf1ea5c907196cd9ceb4fedb4fcfcff",role:"menuitem"},e("button",{key:"04f8491d0f32f11a9a9f00b558e7dd8617ef7a99",type:"button","aria-label":this.name,tabIndex:-1},e("span",{key:"f324c2224168d2727604dd6beaf5257428306776",class:{"gux-avatar":!0,[v(this.accent,this.name)]:!0}},e("slot",{key:"c149c671110081ae7c11e7f2ac36f7f796943b06",name:"image"},e("span",{key:"7ae1f845a1a9847937ae10450dab800f08b74d71",class:"gux-avatar-initials","aria-hidden":"true"},f(this.name)))),e("span",{key:"bdd42952e6bc0114c41d473962436860428c28cb"},this.name)))}static get delegatesFocus(){return!0}get root(){return i(this)}};k.style="::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}button{all:unset;box-sizing:border-box;display:flex;gap:var(--gse-ui-menu-option-gap);align-items:center;inline-size:100%;min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);overflow-wrap:break-word;cursor:pointer;outline:none;outline-offset:calc(var(--gse-ui-menu-option-focus-border-width) * -1);background-color:var(--gse-ui-menu-option-default-backgroundColor);border:none}button:focus-visible{outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button:hover{background:var(--gse-ui-menu-option-hover-backgroundColor)}button:active{font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}button .gux-avatar{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-xsmall-content-size);block-size:var(--gse-ui-avatar-xsmall-content-size);padding:0;margin:0;overflow:hidden;color:var(--gse-ui-avatar-media-initialsForeground-inverse);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:none;border-radius:50%}button .gux-avatar .gux-avatar-initials{font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-xsmall-initials-fontSize);font-weight:var(--gse-ui-avatar-xsmall-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);text-transform:uppercase}button .gux-avatar.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}button .gux-avatar.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}button .gux-avatar.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}button .gux-avatar.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}button .gux-avatar.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}button .gux-avatar.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}button .gux-avatar.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}button .gux-avatar.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}button .gux-avatar.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}button .gux-avatar.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}button .gux-avatar.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}button .gux-avatar.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}button .gux-avatar.gux-accent-inherit{color:inherit;background-color:inherit}";export{m as gux_avatar_group_add_item_beta,h as gux_avatar_overflow_beta,k as gux_avatar_overflow_item_beta}
|
|
1
|
+
import{r as a,h as e,H as t,a as i}from"./p-mm833MRp.js";import{t as o}from"./p-CyMJvvXZ.js";import{g as r}from"./p-vciQk5kR.js";import{b as n}from"./p-D_8CR3cJ.js";import{a as s,c as u,o as c}from"./p-C8aV-TzO.js";import{O as l}from"./p-CuMZPTZF.js";import{l as d}from"./p-DxtJDeL9.js";import{a as g}from"./p-Bg4q97BS.js";import{g as v,a as f}from"./p-BV03_Ljp.js";import"./p-Cd4R0amv.js";var b={addToGroup:"Add more items to group"};const m=class{constructor(e){a(this,e)}async componentWillLoad(){o(this.root),this.i18n=await n(this.root,b)}async hideTooltip(){return await this.tooltip.hideTooltip()}onKeydown(a){r(a,this.root)}render(){return e(t,{key:"e3c797d9189deca186a63d94dfe8e47546aafb93",role:"menuitem"},e("button",{key:"9ba6102cf8c149d91120d20e8f722a8eab8c1682",type:"button","aria-label":this.i18n("addToGroup"),tabIndex:-1,class:"gux-avatar"},e("span",{key:"d20afaafda88a92ab2cb77e567c4fa83d4f7d251","aria-hidden":"true"},"+"),e("gux-tooltip-beta",{key:"99c295a40eba04b4038773f39ccbfa4a6bd35e5e","aria-hidden":"true","visual-only":!0,placement:"top",ref:a=>this.tooltip=a},e("div",{key:"79554aab23080111c36090aaf8c299c63929fd29",slot:"content"},this.i18n("addToGroup")))))}static get delegatesFocus(){return!0}get root(){return i(this)}};m.style="button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);padding:0;margin:0;overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);color:var(--gse-ui-avatar-media-initialsForeground-add);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-add);border:none;border-radius:50%}button:focus-visible,button:hover{position:relative;z-index:var(--gse-semantic-zIndex-showFocus)}button:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}";const h=class{constructor(e){a(this,e),this.delayTime=250,this.count=0,this.expanded=!1}async componentWillLoad(){o(this.root)}componentDidLoad(){this.expanded&&this.runUpdatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){clearTimeout(this.focusDelayTimeout),clearTimeout(this.hideDelayTimeout),this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}onClickOutside(){this.expanded=!1}onKeydown(a){switch(r(a,this.root),a.key){case"Escape":this.hide(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.focusDelayTimeout=g((()=>{var a;null===(a=this.overflowButtonElement)||void 0===a||a.focus()})));break;case"Tab":this.hide()}}onClick(a){a.stopPropagation(),"GUX-AVATAR-OVERFLOW-ITEM-BETA"===a.target.tagName&&(this.menuElement.scrollTop=0,this.expanded=!1)}async guxClose(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=s(this.overflowButtonElement,this.menuElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.root&&u(this.overflowButtonElement,this.menuElement,{placement:"bottom-start",strategy:"fixed",middleware:[c({mainAxis:4,crossAxis:4})]}).then((({x:a,y:e})=>{Object.assign(this.menuElement.style,{left:`${a}px`,top:`${e}px`})}))}getCount(){const a=Array.from(this.root.children);if(a.some((a=>"GUX-AVATAR-OVERFLOW-ITEM-BETA"!==a.tagName))&&d(this.root,"Only gux-avatar-overflow-item-beta elements are allowed as children."),a)return a.length}toggleOverflowMenu(){this.expanded?this.hide():this.show()}show(){clearTimeout(this.hideDelayTimeout),this.expanded=!0,this.hideDelayTimeout=g((()=>{this.focusOnMenu()}))}hide(){this.expanded&&(this.hideDelayTimeout=setTimeout((()=>{this.expanded=!1}),this.delayTime))}focusOnMenu(){Array.from(this.root.children)[0].focus()}render(){return e(t,{key:"64b5c8b7f33da69fb393fc5060374075ab571d21",role:"menuitem"},e("button",{key:"81e46738d19ef28e4ed939a5389b82fa892c890b",class:"gux-avatar-overflow",ref:a=>this.overflowButtonElement=a,onClick:()=>this.toggleOverflowMenu(),tabIndex:-1,"aria-haspopup":"true","aria-expanded":this.expanded.toString()},e("span",{key:"6cbc0b04551b65d83ed84210f83a3e6eae9dbf93",class:"gux-avatar-overflow-wrapper"},e("span",{key:"b9d61a4d1bdc45a0c44512a6003552200115266f",class:"gux-avatar-overflow-content"}," +",this.getCount()))),e("div",{key:"93862a7c0d0c3ae0f07184df81a1d0db18c0d044",class:{"gux-menu-wrapper":!0,"gux-shown":this.expanded},ref:a=>this.menuElement=a},e("div",{key:"5731a29a40bb26bc52f8efd6871aecce758bec55",role:"menu",class:"gux-menu-content"},e("slot",{key:"e681cd6c3b21ba2274890d0e2f0d1ac4d7f4173e"}))))}static get delegatesFocus(){return!0}get root(){return i(this)}};function p(a){const e=function(a){let e=a;for(;null!==e.previousElementSibling;)e=e.previousElementSibling;return e}(a);e&&e.focus()}function x(a){const e=function(a){let e=a;for(;null!==e.nextElementSibling;)e=e.nextElementSibling;return e}(a);e&&e.focus()}(function(a,e,t,i){var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(a,e,t,i);else for(var s=a.length-1;s>=0;s--)(o=a[s])&&(n=(r<3?o(n):r>3?o(e,t,n):o(e,t))||n);r>3&&n&&Object.defineProperty(e,t,n)})([l({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;margin-inline-end:var(--gse-ui-avatar-groupSet-gap)}.gux-avatar-overflow{position:relative;box-sizing:border-box;inline-size:100%;padding:0;margin:0;line-height:0px;cursor:pointer;background:none;border:none;border-radius:50%}.gux-avatar-overflow:focus-visible{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-avatar-overflow:hover,.gux-avatar-overflow:focus{z-index:var(--gse-semantic-zIndex-showFocus)}.gux-avatar-overflow .gux-avatar-overflow-wrapper{position:relative;display:flex}.gux-avatar-overflow .gux-avatar-overflow-wrapper .gux-avatar-overflow-content{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-small-content-size);block-size:var(--gse-ui-avatar-small-content-size);overflow:hidden;font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight);line-height:var(--gse-core-lineHeight-matchFontSize);color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-overflowCount);border-radius:50%}.gux-menu-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popup);visibility:hidden;flex-direction:column;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);margin:0;overflow-y:auto;background-color:var(--gse-ui-menu-backgroundColor);border:none;border:var(--gse-semantic-container-edges-borderWidth) solid var(--gse-semantic-border-container-edges-default);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}.gux-menu-wrapper.gux-shown{visibility:visible}";const k=class{constructor(e){a(this,e),this.accent="auto"}async componentWillLoad(){o(this.root)}componentDidLoad(){this.validatingInputs()}onKeydown(a){!function(a,e){switch(a.key){case"ArrowUp":case"ArrowLeft":a.stopPropagation(),a.preventDefault(),function(a){const e=a.previousElementSibling;e?e.focus():x(a)}(e);break;case"ArrowDown":case"ArrowRight":a.stopPropagation(),a.preventDefault(),function(a){const e=a.nextElementSibling;e?e.focus():p(a)}(e);break;case"Home":a.stopPropagation(),a.preventDefault(),p(e);break;case"End":a.stopPropagation(),a.preventDefault(),x(e)}}(a,this.root)}validatingInputs(){const a=this.root.querySelector("img");this.name||d(this.root,"Name prop is required"),a&&!a.getAttribute("alt")&&d(this.root,"Alt attribute is required for slotted image.")}render(){return e(t,{key:"aa5e1c3e0bf1ea5c907196cd9ceb4fedb4fcfcff",role:"menuitem"},e("button",{key:"04f8491d0f32f11a9a9f00b558e7dd8617ef7a99",type:"button","aria-label":this.name,tabIndex:-1},e("span",{key:"f324c2224168d2727604dd6beaf5257428306776",class:{"gux-avatar":!0,[v(this.accent,this.name)]:!0}},e("slot",{key:"c149c671110081ae7c11e7f2ac36f7f796943b06",name:"image"},e("span",{key:"7ae1f845a1a9847937ae10450dab800f08b74d71",class:"gux-avatar-initials","aria-hidden":"true"},f(this.name)))),e("span",{key:"bdd42952e6bc0114c41d473962436860428c28cb"},this.name)))}static get delegatesFocus(){return!0}get root(){return i(this)}};k.style="::slotted(img){inline-size:100%;block-size:100%;object-fit:cover}button{all:unset;box-sizing:border-box;display:flex;gap:var(--gse-ui-menu-option-gap);align-items:center;inline-size:100%;min-block-size:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);font-family:var(--gse-ui-menu-option-label-default-text-fontFamily);font-size:var(--gse-ui-menu-option-label-default-text-fontSize);font-weight:var(--gse-ui-menu-option-label-default-text-fontWeight);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);overflow-wrap:break-word;cursor:pointer;outline:none;outline-offset:calc(var(--gse-ui-menu-option-focus-border-width) * -1);background-color:var(--gse-ui-menu-option-default-backgroundColor);border:none}button:focus-visible{outline:var(--gse-ui-menu-option-focus-border-width) var(--gse-ui-menu-option-focus-border-style) var(--gse-ui-menu-option-focus-border-color);border-radius:var(--gse-semantic-focusOutline-sm-borderRadius)}button:hover{background:var(--gse-ui-menu-option-hover-backgroundColor)}button:active{font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);background:var(--gse-ui-menu-option-selected-backgroundColor)}button .gux-avatar{box-sizing:border-box;display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-avatar-xsmall-content-size);block-size:var(--gse-ui-avatar-xsmall-content-size);padding:0;margin:0;overflow:hidden;color:var(--gse-ui-avatar-media-initialsForeground-inverse);cursor:pointer;background:none;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border:none;border-radius:50%}button .gux-avatar .gux-avatar-initials{font-family:var(--gse-ui-avatar-small-initials-fontFamily);font-size:var(--gse-ui-avatar-xsmall-initials-fontSize);font-weight:var(--gse-ui-avatar-xsmall-initials-fontWeight);line-height:var(--gse-ui-avatar-small-initials-lineHeight);text-transform:uppercase}button .gux-avatar.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}button .gux-avatar.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}button .gux-avatar.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}button .gux-avatar.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}button .gux-avatar.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}button .gux-avatar.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}button .gux-avatar.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}button .gux-avatar.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}button .gux-avatar.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}button .gux-avatar.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}button .gux-avatar.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}button .gux-avatar.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}button .gux-avatar.gux-accent-inherit{color:inherit;background-color:inherit}";export{m as gux_avatar_group_add_item_beta,h as gux_avatar_overflow_beta,k as gux_avatar_overflow_item_beta}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s,H as i,a}from"./p-mm833MRp.js";import{s as e}from"./p-BMRf5pjV.js";import{t as o}from"./p-CyMJvvXZ.js";const h=class{constructor(s){t(this,s),this.layout="default",this.switchItems=[]}onClick(t){t.stopPropagation();const s=t.target.closest("gux-switch-item");s&&this.value!==s.value&&(this.value=s.value,e(this.root,"input"),e(this.root,"change"))}slotChanged(){this.switchItems=Array.from(this.root.children)}componentWillLoad(){o(this.root,{variant:this.layout})}componentWillRender(){this.switchItems.forEach((t=>{t.selected=t.value===this.value}))}render(){return s(i,{key:"b1a6caaac5bdfb42f1016a8d77e5cb9e2e05edc4",role:"group",class:`gux-${this.layout}`},s("slot",{key:"a08e30d37e0a9f01d18111bd128ba318ff1ffafd",onSlotchange:this.slotChanged.bind(this)}))}get root(){return a(this)}};h.style=":host{display:flex;align-items:flex-end}";export{h as gux_switch_legacy}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as
|
|
1
|
+
import{r as e,h as o,a as r}from"./p-mm833MRp.js";import{c as t,o as i}from"./p-Cb3FOYGS.js";import{O as n}from"./p-1mmdDpx8.js";import{o as a}from"./p-De1NnCmO.js";import{p as l}from"./p-PYfNAK8p.js";import{h as s}from"./p-qzV3vtOw.js";import{G as u,a as f}from"./p-BkM3RdTO.js";import{G as d,a as p}from"./p-Bxg2lxW0.js";import{v as g,a as h}from"./p-DHLxhscH.js";import{t as c}from"./p-CyMJvvXZ.js";import"./p-D9jKBqIb.js";import"./p-DxtJDeL9.js";import"./p-BMRf5pjV.js";const m=class{constructor(o){e(this,o),this.indicatorMark="required",this.computedLabelPosition="above",this.required=!0,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var o,r;switch(e.key){case"Tab":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));break;case"Shift":break;default:this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.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.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),c(this.root,{variant:this.variant})}componentDidLoad(){this.updateHeight(this.textareaContainerElement,this.input,this.resize)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return o(p,{key:"96e4bb7f50b658ba71f58eef6364a7b4c40b5c14",labelPosition:this.computedLabelPosition},o(d,{key:"f589df9755a80ba802a9a27956148e445c6c2c4a",required:this.required,position:this.computedLabelPosition},o("slot",{key:"ca92d6a1d0c292bb767b702155efd18cf71eadfe",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"d9489ab61733ea7e7ccab22236b559beaeb94b15",variant:this.indicatorMark,required:this.required}),o("slot",{key:"6d5f591c954a9a0cfff971d818edd1c3377c996e",name:"label-info"})),o("div",{key:"70638e7f09f965fca80fcd6f67ef75786456f0d0",class:"gux-input-and-error-container"},o("div",{key:"ecb2ba7cb6308ecd0b2bfc76114843fa4b2dd43a",ref:e=>this.textareaContainerElement=e,class:{"gux-input":!0,[`gux-resize-${this.resize}`]:!0,"gux-disabled":this.disabled,"gux-input-error":this.hasError}},o("slot",{key:"145743ba9567e5db383883e7983e26bf3d5dff68",name:"input"})),o(u,{key:"5b129317959e6ba6efe7ca779974f8c5fd22fdab",show:this.hasError},o("slot",{key:"d75956631a0c7ff0cb1b3b373803e717141f5bb1",name:"error"})),o(f,{key:"2ec0ca5ea4d3bb33587e020ed7d68d8ba276159a",show:!this.hasError&&this.hasHelp},o("slot",{key:"f747f9e35e0270ee3eb330507cd4de4e589253e4",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.resize}-${e}`}setInput(){this.input=this.root.querySelector('textarea[slot="input"]'),l(this.input),this.updateHeight(this.textareaContainerElement,this.input,this.resize),this.input.addEventListener("input",(()=>{this.updateHeight(this.textareaContainerElement,this.input,this.resize)})),this.disabled=t(this.input),this.required=this.input.required,this.disabledObserver=i(this.input,(e=>{this.disabled=e})),this.requiredObserver=a(this.input,(e=>{this.required=e})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}updateHeight(e,o,r){"auto"===r&&e&&(e.dataset.replicatedValue=o.value,e.style.maxHeight=o.style.maxHeight)}get root(){return r(this)}};(function(e,o,r,t){var i,n=arguments.length,a=n<3?o:null===t?t=Object.getOwnPropertyDescriptor(o,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,r,t);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(a=(n<3?i(a):n>3?i(o,r,a):i(o,r))||a);n>3&&a&&Object.defineProperty(o,r,a)})([n({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style='.gux-form-field-container{display:flex;flex-direction:column}.gux-form-field-container.gux-beside{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 0 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(label){min-inline-size:0}.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)}::slotted(textarea){flex:1 1 auto;align-self:auto;order:0;font-family:inherit;font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);font-weight:var(--gse-ui-formControl-input-contentText-fontWeight);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);resize:vertical;outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:none;border-radius:var(--gse-ui-formControl-input-borderRadius);padding:var(--gse-ui-formControl-textarea-padding);margin:0}::slotted(textarea)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}::slotted(textarea)[disabled]{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{position:relative;display:flex;outline:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-input-and-error-container .gux-input:hover:not(.gux-disabled){border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-input-and-error-container .gux-input.gux-input-error{border-color:var(--gse-ui-formControl-input-error-border-color)}.gux-input-and-error-container .gux-input.gux-disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input.gux-resize-none ::slotted(textarea){resize:none}.gux-input-and-error-container .gux-input.gux-resize-auto{display:grid;overflow:hidden;word-break:normal;word-break:break-word;overflow-wrap:anywhere}.gux-input-and-error-container .gux-input.gux-resize-auto::after{visibility:hidden;grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:2;white-space:pre-wrap;content:attr(data-replicated-value) " ";padding:var(--gse-ui-formControl-textarea-padding);margin:0}.gux-input-and-error-container .gux-input.gux-resize-auto ::slotted(textarea){grid-row-start:1;grid-row-end:2;grid-column-start:1;grid-column-end:2;overflow-x:hidden;resize:none}';export{m as gux_form_field_textarea}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,c as a,h as i,a as t}from"./p-mm833MRp.js";import{r as e}from"./p-D9jKBqIb.js";import{t as n}from"./p-
|
|
1
|
+
import{r as o,c as a,h as i,a as t}from"./p-mm833MRp.js";import{r as e}from"./p-D9jKBqIb.js";import{t as n}from"./p-CyMJvvXZ.js";import{h as s}from"./p-qzV3vtOw.js";const d=class{constructor(i){o(this,i),this.guxdismiss=a(this,"guxdismiss",7),this.size="dynamic",this.open=!1}syncOpenState(){this.open?this.dialogElement.showModal():this.dialogElement.close()}async showModal(){this.open=!0}async close(){this.open=!1}onKeydown(o){if("Escape"===o.key)return o.preventDefault(),void this.onDismissHandler()}componentWillLoad(){n(this.root,{variant:`${this.size}`})}componentDidLoad(){this.syncOpenState()}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){var o,a;const i=this.root.querySelector('[slot="start-align-buttons"]'),t=this.root.querySelector('[slot="end-align-buttons"]');return Boolean(null===(o=null==i?void 0:i.textContent)||void 0===o?void 0:o.trim())||Boolean(null===(a=null==t?void 0:t.textContent)||void 0===a?void 0:a.trim())}renderFooter(){return s(this.root,"footer")?i("footer",null,i("slot",{name:"footer"})):this.renderButtonFooter()}render(){const o=this.hasModalTitleSlot(),a=e();return i("dialog",{key:"d3b4a073cb42940e2b36c9fac49556d16908d651",onClose:this.onCloseHandler.bind(this),ref:o=>this.dialogElement=o,"aria-labelledby":o?a:null},i("div",{key:"0890cd6f19431c4d56563ea6d94c1ffdc0b16ef3",class:`gux-modal-container gux-${this.size}`},i("gux-dismiss-button",{key:"368f38b56091ebb6cb0ec1b1ea8a73ccb2fe5fe1",onClick:this.onDismissHandler.bind(this)}),o&&this.renderTitle(a),i("div",{key:"c1ed78b59faa9a6e3c4d28247c7ef87bb0099c70",class:"gux-modal-content"},i("p",{key:"ffd1bfd295afeeda7e4ef4f523cb4d0ba8619398"},i("slot",{key:"a630b9a638f057a545ec6f9a492839c962f4dbbe",name:"content"}))),this.renderFooter()))}renderTitle(o){return i("h1",{class:"gux-modal-header",id:o},i("slot",{name:"title"}))}renderButtonFooter(){const o=this.hasFooterButtons();return i("div",{class:{"gux-button-footer":!0,"gux-no-buttons":!o}},i("div",{class:"gux-start-align-buttons"},i("slot",{name:"start-align-buttons"})),i("div",{class:"gux-end-align-buttons"},i("slot",{name:"end-align-buttons"})))}onCloseHandler(){this.guxdismiss.emit()}onDismissHandler(){this.open=!1}static get delegatesFocus(){return!0}get root(){return t(this)}static get watchers(){return{open:["syncOpenState"]}}};d.style="::slotted(button:active:enabled){color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}slot[name=start-align-buttons]::slotted(:not(button,gux-button-slot)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host dialog{box-sizing:border-box;justify-content:space-between;padding:0;overflow:hidden;background-color:var(--gse-ui-modal-backgroundColor);border:none;border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow)}:host dialog::backdrop{background:var(--gse-ui-modal-shroudColor)}:host dialog .gux-modal-container{display:flex;flex-direction:column}:host dialog .gux-modal-container.gux-small{inline-size:var(--gse-ui-modal-small-width);max-block-size:min(368px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-medium{inline-size:min(var(--gse-ui-modal-medium-width), 100vw - 48px);max-block-size:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-large{inline-size:min(var(--gse-ui-modal-large-width), 100vw - 48px);max-block-size:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-dynamic{max-inline-size:calc(100vw - 48px);max-block-size:calc(100vh - 48px)}:host dialog .gux-modal-container.gux-dynamic .gux-modal-content{max-block-size:none}:host dialog .gux-modal-container .gux-modal-header{padding-block-start:var(--gse-ui-modal-padding);padding-inline: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-lineHeight);color:var(--gse-ui-modal-headerColor)}:host dialog .gux-modal-container .gux-modal-content{max-block-size:432px;padding-inline:var(--gse-ui-modal-padding);margin-block-start:var(--gse-ui-modal-gap);overflow-y:auto;color:var(--gse-semantic-foreground-container-highEmphasis)}:host dialog .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding-block-end:var(--gse-ui-modal-padding);padding-inline:var(--gse-ui-modal-padding);margin-block-start:var(--gse-ui-modal-gap)}:host dialog .gux-modal-container .gux-button-footer.gux-no-buttons{display:none}:host dialog .gux-modal-container footer{padding-block-end:var(--gse-ui-modal-padding);padding-inline:var(--gse-ui-modal-padding);margin-block-start:var(--gse-ui-modal-gap)}@media (max-width: 416px){:host dialog .gux-modal-container.gux-small,:host dialog .gux-modal-container.gux-medium,:host dialog .gux-modal-container.gux-large{inline-size:100%;block-size:100%}}";export{d as gux_modal}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,a as o}from"./p-mm833MRp.js";import{d as n,h as a,s as r,e as h,f as l,i as u,j as d,k as c,l as p,m as g,n as m,o as v,c as b,a as x}from"./p-zrBw_m7x.js";import{b as f}from"./p-D_8CR3cJ.js";import{w}from"./p-kLXvN2m9.js";import{s as j}from"./p-BMRf5pjV.js";import{t as
|
|
1
|
+
import{r as t,c as i,h as s,H as e,a as o}from"./p-mm833MRp.js";import{d as n,h as a,s as r,e as h,f as l,i as u,j as d,k as c,l as p,m as g,n as m,o as v,c as b,a as x}from"./p-zrBw_m7x.js";import{b as f}from"./p-D_8CR3cJ.js";import{w}from"./p-kLXvN2m9.js";import{s as j}from"./p-BMRf5pjV.js";import{t as y}from"./p-CyMJvvXZ.js";import{b as O}from"./p-Bg4q97BS.js";import{O as S}from"./p-1mmdDpx8.js";import"./p-DjLdmWVU.js";import"./p-Cd4R0amv.js";var C={add:"Add {name}",noMatches:"No matches",loading:"Loading..."};const M=class{constructor(s){t(this,s),this.internallistboxoptionsupdated=i(this,"internallistboxoptionsupdated",7),this.loading=!1,this.filter="",this.textInput="",this.filterType="none",this.disabled=!1,this.listboxOptions=[],this.hasExactMatch=!1}onMutation(){O((()=>{this.updateOnSlotChange()}))}onBlur(){n(this.root)}selectNewCustomOption(t){this.updateValue(t.detail)}onKeydown(t){var i,s;if(!a(this.root))return t.preventDefault(),void r(this.root);switch(t.key){case"Enter":return t.preventDefault(),void((null===(i=this.optionCreateElement)||void 0===i?void 0:i.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),O((()=>{r(this.root)}))):(null===(s=this.selectAllElement)||void 0===s?void 0:s.active)?this.updateSelectAllState(!0):g(this.root,(t=>this.updateValue(t))));case"ArrowDown":return t.preventDefault(),void(c(this.root)?(t.stopPropagation(),p(this.root)):l(this.root));case"ArrowUp":return t.preventDefault(),void(u(this.root)?(t.stopPropagation(),d(this.root)):h(this.root));case"Home":return t.preventDefault(),void l(this.root);case"End":return t.preventDefault(),void h(this.root);case" ":return void t.preventDefault()}1!==t.key.length||m(this.root,t.key)}onKeyup(t){var i,s;" "!==t.key||((null===(i=this.optionCreateElement)||void 0===i?void 0:i.active)?(this.optionCreateElement.guxEmitInternalCreateNewOption(),O((()=>{r(this.root)}))):(null===(s=this.selectAllElement)||void 0===s?void 0:s.active)?this.updateSelectAllState(!0):g(this.root,(t=>this.updateValue(t))))}onMousemove(){n(this.root)}onClick(t){w("gux-option-multi",t,(t=>{v(t,(t=>this.updateValue(t)))})),w("gux-select-all",t,(()=>{this.updateSelectAllState(!0)}))}async guxSelectActive(){g(this.root,(t=>this.updateValue(t)))}getHasExactMatch(){let t=!1;return this.hasExactMatch=!1,this.listboxOptions.forEach((i=>{var s,e;(null===(e=null===(s=i.textContent)||void 0===s?void 0:s.toLowerCase())||void 0===e?void 0:e.trim())==this.textInput.toLowerCase().trim()&&(t=!0,this.hasExactMatch=!0)})),t}updateOptionMultiCreateValue(){this.optionCreateElement&&(this.optionCreateElement.value=this.textInput,this.optionCreateElement.filtered=!this.textInput||this.getHasExactMatch())}getSelectedValues(){return b(this.value)}updateOnSlotChange(){this.setListboxOptions(),this.updateListboxOptions()}getOptionCreateElement(){this.optionCreateElement=this.root.querySelector("gux-create-option")}getSelectAllElement(){this.selectAllElement=this.root.querySelector("gux-select-all")}setListboxOptions(){this.listboxOptions=Array.from(this.root.children).filter((t=>"GUX-OPTION-MULTI"===t.tagName)),this.internallistboxoptionsupdated.emit()}updateListboxOptions(){this.listboxOptions.forEach((t=>{t.selected=this.getSelectedValues().includes(t.value),"custom"!==this.filterType&&"none"!==this.filterType&&(t.filtered=!x(t).toLowerCase().startsWith(this.textInput.toLowerCase()))}))}updateSelectAllState(t=!1){const i=this.root.querySelector("gux-select-all");if(!i)return;const s=this.listboxOptions.filter((t=>!t.filtered)).map((t=>t.value));this.optionCreateElement&&!this.optionCreateElement.filtered&&s.push(this.optionCreateElement.value),t&&(this.value=i.selected?void 0:s.join(","),j(this.root,"input"),j(this.root,"change"));const e=this.getSelectedValues(),o=s.length>0&&s.every((t=>e.includes(t))),n=s.some((t=>e.includes(t)));i.selected=o,i.indeterminate=!o&&n}updateValue(t){if(this.getSelectedValues().includes(t)){const i=this.getSelectedValues().filter((i=>i!==t));this.value=i.length?i.join(","):void 0}else{const i=[...this.getSelectedValues(),t];this.value=i.join(",")}j(this.root,"input"),j(this.root,"change"),this.updateSelectAllState()}async componentWillLoad(){y(this.root),this.i18n=await f(this.root,C),this.setListboxOptions(),this.getOptionCreateElement(),this.getSelectAllElement()}componentWillRender(){this.setListboxOptions(),this.updateListboxOptions(),this.allListboxOptionsFiltered=0===this.listboxOptions.filter((t=>!t.filtered)).length,this.updateSelectAllState()}renderHiddenSlot(){return s("div",{hidden:!0},s("slot",{onSlotchange:()=>this.setListboxOptions()}))}renderLoading(){return[s("div",{class:"gux-message-container"},s("gux-radial-loading",{context:"modal"}),s("span",null,this.i18n("loading"))),this.renderHiddenSlot()]}renderAllListboxOptionsFiltered(){if(this.allListboxOptionsFiltered)return[s("div",{class:"gux-message-container"},s("div",{class:"gux-no-matches"},this.emptyMessage||this.i18n("noMatches"))),this.renderHiddenSlot()]}renderCreateOptionSlot(){return s("slot",{name:"create"})}render(){return this.loading?this.renderLoading():s(e,{role:"listbox","aria-multiselectable":"true",tabindex:0,class:{"has-select-all":!!this.selectAllElement}},s("slot",{onSlotchange:()=>this.updateOnSlotChange()}),this.renderAllListboxOptionsFiltered(),this.renderCreateOptionSlot())}get root(){return o(this)}static get watchers(){return{textInput:["updateOptionMultiCreateValue"]}}};(function(t,i,s,e){var o,n=arguments.length,a=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(i,s,a):o(i,s))||a);n>3&&a&&Object.defineProperty(i,s,a)})([S({childList:!0,subtree:!0})],M.prototype,"onMutation",null),M.style=":host{scrollbar-color:var(--gse-ui-menu-border-color) transparent;scrollbar-width:thin;box-sizing:border-box;display:block;max-block-size:var(--gse-ui-menu-maxHeight);padding:var(--gse-ui-menu-padding);overflow:hidden auto;outline:none;background:var(--gse-ui-menu-backgroundColor);border:var(--gse-ui-menu-border-width) var(--gse-ui-menu-border-style) var(--gse-ui-menu-border-color);border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow)}:host ::slotted(gux-select-all){position:sticky;inset-block-start:0}:host(.has-select-all){padding:0}.gux-message-container{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch center;align-items:center}.gux-message-container .gux-no-matches{box-sizing:border-box;block-size:var(--gse-ui-menu-option-height);padding-block:var(--gse-ui-dropdown-gap);font-family:var(--gse-ui-menu-option-label-active-text-fontFamily);font-size:var(--gse-ui-menu-option-label-active-text-fontSize);font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);line-height:var(--gse-ui-menu-option-label-active-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor)}";export{M as gux_listbox_multi}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as a,a as r}from"./p-mm833MRp.js";import{t as g}from"./p-
|
|
1
|
+
import{r as o,h as a,a as r}from"./p-mm833MRp.js";import{t as g}from"./p-CyMJvvXZ.js";import{b as s}from"./p-D_8CR3cJ.js";import"./p-Cd4R0amv.js";var e={genesysCloudLogomark:"Genesys Cloud Logomark"};const l=class{constructor(a){o(this,a),this.variant="primary"}async componentWillLoad(){this.i18n=await s(this.root,e),g(this.root,{variant:this.variant})}render(){return a("svg",{key:"d2c2057600102be47a85e682d95f82403ea686ea",class:`gux-${this.variant}`,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50","aria-label":this.i18n("genesysCloudLogomark"),role:"img"},a("path",{key:"8697da907019db7169a3bad2fa329e5342d31282",class:"gux-background",d:"M50 0H0V50H50V0Z"}),a("path",{key:"45f0aa77b5c31209999b3aeb17ac6aa22d1c13ba",class:"gux-foreground",d:"M29.283 11.5234H20.6388C17.1517 11.5234 14.325 14.3502 14.325 17.8372V17.8967C14.325 21.3838 17.1517 24.2105 20.6388 24.2105H29.283C32.77 24.2105 35.5968 21.3838 35.5968 17.8967V17.8372C35.5968 14.3502 32.77 11.5234 29.283 11.5234Z"}),a("path",{key:"a227b99fa5eb369ddbf784f23f8c419f850f4d67",class:"gux-foreground",d:"M23.4827 32.6137C23.4827 29.3995 26.0884 26.7937 29.3027 26.7937H39.878C43.0922 26.7937 45.698 29.3995 45.698 32.6137C45.698 35.828 43.0922 38.4337 39.878 38.4337H29.3027C26.0884 38.4337 23.4827 35.828 23.4827 32.6137Z"}),a("path",{key:"9f255614575d7fd2d40a750e8344b1c6fefb0547",class:"gux-foreground",d:"M4.29688 32.6137C4.29688 29.3995 6.90258 26.7937 10.1168 26.7937H15.0798C18.2942 26.7937 20.8999 29.3995 20.8999 32.6137C20.8999 35.828 18.2942 38.4337 15.0798 38.4337H10.1168C6.90258 38.4337 4.29688 35.828 4.29688 32.6137Z"}))}get root(){return r(this)}};l.style=":host{display:inline-block}svg{inline-size:100%;block-size:100%;fill:var(--gse-core-color-transparent)}svg .gux-background{fill:var(--gse-core-color-transparent)}svg .gux-foreground{fill:var(--gse-ui-logo-cloud-logomark-primary)}svg.gux-neutral .gux-foreground{fill:var(--gse-ui-logo-cloud-logomark-neutral)}svg.gux-on-background .gux-background{fill:var(--gse-ui-logo-cloud-logomark-onBackground-backgroundColor)}svg.gux-on-background .gux-foreground{fill:var(--gse-ui-logo-cloud-logomark-onBackground-foregroundColor)}";export{l as gux_cloud_logomark_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as t,r as a,h as s,a as i}from"./p-mm833MRp.js";import{t as l}from"./p-
|
|
1
|
+
import{e as t,r as a,h as s,a as i}from"./p-mm833MRp.js";import{t as l}from"./p-CyMJvvXZ.js";const n=new Map;async function r(a,s){const i=function(t,a){return`${a}-${t}`}(a,s);if(n.has(i))return n.get(i);const l=async function(a,s){const i=await fetch(t(function(t,a){return"background-shapes"===a?`./illustrations/${a}/${t.includes("narrow")?"narrow":"wide"}.svg`:`./illustrations/${a}/${t}.svg`}(a,s)));if(200===i.status)return i.text();throw new Error(`[gux-illustration] fetching failed for illustration "${a}" with status "${i.statusText} (${i.status})".`)}(a,s).then((t=>t)).catch((t=>(setTimeout((()=>{throw t}),0),r({variants:"add",status:"success","background-shapes":"solid-wide"}[s],s))));return n.set(i,l),l}const u=class{constructor(t){a(this,t),this.backgroundShape="solid-wide"}async prepVariant(t){t&&(this.variantSvgHtml=await r(t,"variants"),this.variantHtml=this.variantSvgHtml)}async prepStatus(t){t&&(this.statusSvgHtml=await r(t,"status"),this.statusHtml=this.statusSvgHtml)}async prepBackgroundShape(t){t&&(this.backgroundShapeSvgHtml=await r(t,"background-shapes"),this.backgroundShapeHtml=this.backgroundShapeSvgHtml)}async componentWillLoad(){l(this.root,{variant:this.variant}),await Promise.all([this.prepVariant(this.variant),this.prepStatus(this.status),this.prepBackgroundShape(this.backgroundShape)])}render(){return s("div",{key:"cfaa332255722b58769c0408127059846ba915b2",class:"gux-illustration"},this.backgroundShapeHtml&&s("div",{key:"f87994eda35ec34fc440bff789229fadddfd194d",class:{"gux-background-shape":!0,[`gux-background-shape-${this.backgroundShape}`]:!0},innerHTML:this.backgroundShapeHtml}),this.variantHtml&&s("div",{key:"a79320612864946568e9781ca388ed12f5d06ce4",class:"gux-illustration-variant",innerHTML:this.variantHtml}),this.statusHtml&&s("div",{key:"cac2fa1133509442928112b71a9620647b406d3b",class:{"gux-illustration-status":!0,[`gux-illustration-status-${this.status}`]:!0},innerHTML:this.statusHtml}))}static get assetsDirs(){return["illustrations"]}get root(){return i(this)}static get watchers(){return{variant:["prepVariant"],status:["prepStatus"],backgroundShape:["prepBackgroundShape"]}}};u.style='.gux-illustration{position:relative;display:grid;place-items:center;inline-size:var(--gse-ui-blankState-mainIllustration-width);block-size:var(--gse-ui-blankState-mainIllustration-height)}.gux-background-shape{grid-area:1/1;inline-size:var(--gse-ui-blankState-mainIllustration-background-width);block-size:var(--gse-ui-blankState-mainIllustration-background-height)}.gux-background-shape.gux-background-shape-solid-wide,.gux-background-shape.gux-background-shape-solid-narrow,.gux-background-shape svg{fill:var(--gse-ui-blankState-mainIllustration-background-solidColor)}.gux-background-shape.gux-background-shape-gradient-wide svg,.gux-background-shape.gux-background-shape-gradient-narrow svg{fill:url("#gux-background-gradient");--gradient-start:#ffffff0d;--gradient-end:#bfc6d933}.gux-illustration-variant{display:flex;grid-area:1/1;place-items:center}.gux-illustration-variant svg{inline-size:var(--gse-ui-blankState-mainIllustration-illustration-height);block-size:var(--gse-ui-blankState-mainIllustration-illustration-height);fill:var(--gse-ui-blankState-mainIllustration-illustrationColor)}.gux-illustration-status{position:absolute;inset-block-start:var(--gse-ui-blankState-mainIllustration-smallIcon-position-left);inset-inline-start:var(--gse-ui-blankState-mainIllustration-smallIcon-position-top)}.gux-illustration-status svg{inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size)}.gux-illustration-status.gux-illustration-status-success svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-successBaseColor)}.gux-illustration-status.gux-illustration-status-success svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-successSymbolColor)}.gux-illustration-status.gux-illustration-status-error svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-errorBaseColor)}.gux-illustration-status.gux-illustration-status-error svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-errorSymbolColor)}.gux-illustration-status.gux-illustration-status-info svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-infoBaseColor)}.gux-illustration-status.gux-illustration-status-info svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-infoSymbolColor)}.gux-illustration-status.gux-illustration-status-add svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-operationBaseColor)}.gux-illustration-status.gux-illustration-status-add svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-operationSymbolColor)}.gux-illustration-status.gux-illustration-status-warning svg path:first-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-warningBaseColor)}.gux-illustration-status.gux-illustration-status-warning svg path:last-child{fill:var(--gse-ui-blankState-mainIllustration-smallIcon-warningSymbolColor)}';export{u as gux_illustration_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,a as s}from"./p-mm833MRp.js";import{g as o}from"./p-DCZG2J0G.js";import{t as i}from"./p-
|
|
1
|
+
import{r as t,h as e,a as s}from"./p-mm833MRp.js";import{g as o}from"./p-DCZG2J0G.js";import{t as i}from"./p-CyMJvvXZ.js";import{g as n}from"./p-MAoEg4ig.js";const a=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"},n(this.root,"text")))}componentWillLoad(){i(this.root)}render(){return e("gux-button-slot",{key:"70b6467bfb3cff5e88001f6c30d589f14180314c",accent:this.accent},e("button",{key:"b243241147676daf6ef8f4c0ff81cd9c788936e1",disabled:this.disabled,type:"button",class:"gux-action-title"},e("slot",{key:"e543a3b16147cbdd4e567dc49d1c74d3565de417",name:"icon"}),e("span",{key:"489a071b2221339a7d017bce150eae14c8132055",class:{"gux-sr-only":this.hideText()}},e("slot",{key:"7d3edf4fabbbb253540ea8fa4b49951e22d13ec0",name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return s(this)}};a.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-path:inset(50%)}gux-button-slot{inline-size:100%}.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{a as gux_table_toolbar_custom_action}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,a as
|
|
1
|
+
import{r as t,h as o,a as i}from"./p-mm833MRp.js";import{t as e}from"./p-CyMJvvXZ.js";import{g as a}from"./p-MAoEg4ig.js";const r=class{constructor(o){t(this,o),this.placement="right"}componentWillLoad(){e(this.root)}async showTooltip(){return await this.tooltip.showTooltip()}async hideTooltip(){return await this.tooltip.hideTooltip()}render(){return o("div",{key:"23c6fe983cd72d7381d795b0a405aa8b15121fd1",class:"gux-icon-tooltip"},o("gux-screen-reader-beta",{key:"2a6f04c4a1017274b4a5380f3cdb40812227bdd1"},o("slot",{key:"28df2a8995dbe7b34b0c40f88c870386ab1e259b",name:"content"})),o("gux-icon",{key:"5ea0762dc793afd2d641fb354c2b454718f0b21e","icon-name":this.iconName,size:"small",decorative:!0}),o("gux-tooltip-beta",{key:"87d0f229baf485d6070b59438b19d6fc6704a558",placement:this.placement,ref:t=>this.tooltip=t},o("div",{key:"a2240542b5b893fd34a6bc2c4b7c902a4beb6cbe",slot:"content"},a(this.root,"content"))))}get root(){return i(this)}};r.style=".gux-icon-tooltip{inline-size:fit-content;padding:0;line-height:0;background-color:transparent;border:none;border-radius:var(--gse-ui-formControl-label-tooltipTrigger-borderRadius)}.gux-icon-tooltip gux-tooltip{padding-inline-start:0}.gux-icon-tooltip gux-icon{vertical-align:bottom;color:var(--gse-ui-formControl-label-tooltipTrigger-color)}";export{r as gux_icon_tooltip_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as s,h as t,a}from"./p-mm833MRp.js";import{r as i}from"./p-D9jKBqIb.js";import{t as o}from"./p-
|
|
1
|
+
import{r as e,c as s,h as t,a}from"./p-mm833MRp.js";import{r as i}from"./p-D9jKBqIb.js";import{t as o}from"./p-CyMJvvXZ.js";const d=class{constructor(t){e(this,t),this.modalSidePanelDismiss=s(this,"modalSidePanelDismiss",7),this.open=!1,this.size="medium",this.dialogElement=null}syncOpenState(){this.open?this.dialogElement.showModal():(this.dialogElement.close(),this.modalSidePanelDismiss.emit())}sidepaneldismissHandler(){this.open=!1}onKeydown(e){if("Escape"===e.key)return e.preventDefault(),void(this.open=!1)}async showModal(){this.open=!0}async close(){this.open=!1}componentWillLoad(){o(this.root,{variant:this.size})}componentDidLoad(){this.open&&this.dialogElement.showModal()}render(){const e=i();return t("dialog",{key:"31a9427be666b9726a34d5cfa56cc273e471bcd9",ref:e=>this.dialogElement=e,"aria-labelledby":e,class:{"gux-open":this.open}},t("gux-side-panel-beta",{key:"f4b5efc109a334c41de0c225a9883c2893b9c656",size:this.size},t("div",{key:"1f057ec4560b8778511eccffff587207c4e4f1f0",slot:"header",id:e},t("slot",{key:"b158d4672d7490356c80be7884fc544ce35189a7",name:"header"})),t("div",{key:"436cf84e5268e6a43314de695f9862c9756a7900",slot:"content"},t("slot",{key:"d336c0518132476b0660d3c90ba222698cb09b99",name:"content"})),t("div",{key:"29e1b9c7df89c76d460c8e744b0679aabbbbf4dc",slot:"footer"},t("slot",{key:"831e3ce9c7099bdcd3d6b8c6ae00dbd47d3389f8",name:"footer"}))))}get root(){return a(this)}static get watchers(){return{open:["syncOpenState"]}}};d.style="dialog{inset-inline-start:auto;block-size:100%;min-block-size:100%;padding:0;margin:unset;border:none;transform:translateX(100%);transition:transform 0.2s ease-in-out}dialog.gux-open{transform:translateX(0%)}dialog::backdrop{background:var(--gse-ui-sidePanel-shroudColor);opacity:var(--gse-ui-sidePanel-shroud-opacity)}::slotted(footer){flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}::slotted(gux-side-panel-header){border-block-end:none}";export{d as gux_modal_side_panel_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,f as s,h as e,a as i}from"./p-mm833MRp.js";import{t as r}from"./p-
|
|
1
|
+
import{r as t,f as s,h as e,a as i}from"./p-mm833MRp.js";import{t as r}from"./p-CyMJvvXZ.js";import{h as o}from"./p-wqCHc7t7.js";import{O as a}from"./p-CuMZPTZF.js";import{b as n}from"./p-Bg4q97BS.js";import{b as u}from"./p-D_8CR3cJ.js";import{t as l}from"./p-DN3YAdAX.js";import"./p-DCZG2J0G.js";import"./p-Cd4R0amv.js";const h=class{constructor(s){t(this,s),this.expanded=!1,this.disabled=!1}onClickOutside(){this.expanded=!1}watchValue(t){this.validateValue(t,this.listElement)}watchDisabled(t){t&&(this.expanded=!1)}onInternallistitemsupdated(t){t.stopPropagation(),s(this.root)}handleKeydown(t){const s=t.composedPath().includes(this.actionButton),e=t.composedPath().includes(this.listElement);switch(t.key){case"Escape":e&&(t.preventDefault(),this.expanded=!1,this.actionButton.focus());break;case"ArrowDown":case"Enter":s&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem());break;case"Tab":this.expanded=!1;break;case"ArrowUp":s&&!this.expanded&&(t.preventDefault(),this.expanded=!0,this.focusLastListItem())}}handleKeyup(t){" "===t.key&&t.composedPath().includes(this.actionButton)&&(t.preventDefault(),this.expanded=!0,this.focusFirstListItem())}focusFirstListItem(){n((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){n((()=>{this.listElement.guxFocusLastItem()}))}async componentWillLoad(){r(this.root),this.i18n=await u(this.root,l)}componentWillRender(){(null==this?void 0:this.listElement)&&this.validateValue(this.value,this.listElement)}validateValue(t,s){void 0!==t?this.getListItemElementByValue(t)&&(s.value=t):s.value=t}get listItemElements(){const t=this.listElement.querySelector("slot");if(t)return Array.from(t.assignedElements())}getListItemElementByValue(t){return this.listItemElements.find((s=>s.value===t))}renderTargetDisplay(){if(null==this?void 0:this.listElement){const t=this.getListItemElementByValue(this.value);if(t)return e("span",null,this.renderListItem(t))}}renderMenu(){return e("div",{class:"gux-target-display"},this.renderTargetDisplay(),e("gux-icon",{"icon-name":this.expanded?"custom/chevron-up-small-regular":"custom/chevron-down-small-regular","screenreader-text":this.i18n("richStyleDropdown")}))}renderListItem(t){return e("gux-truncate",{"max-lines":1},t.textContent)}renderTooltip(){if(!this.disabled&&!this.expanded)return e("gux-tooltip-beta",null,e("div",{slot:"content"},this.i18n("richStyle")))}onActionButtonClick(){this.expanded=!this.expanded,this.expanded&&this.focusFirstListItem()}updateValue(t){this.value!==t&&(this.value=t)}onListClick(t){const s=t.target.closest("gux-rich-style-list-item");s&&(this.expanded=!1,this.updateValue(s.value),this.actionButton.focus())}renderPopup(){return e("div",{class:"gux-list-container",slot:"popup"},e("gux-rich-text-editor-list",{ref:t=>this.listElement=t,onClick:t=>this.onListClick(t)},e("slot",null)))}renderTarget(){return e("gux-button-slot",{accent:"ghost",slot:"target","icon-only":!0},e("button",{type:"button",ref:t=>this.actionButton=t,class:{"gux-is-pressed":this.expanded},onClick:()=>this.onActionButtonClick(),disabled:this.disabled||o(this.root),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},this.renderMenu()),this.renderTooltip())}render(){return e("gux-popup",{key:"8078201a5694a781fa6e911352494d6d67c52505",expanded:this.expanded,exceedTargetWidth:!0,placement:"bottom-start"},this.renderTarget(),this.renderPopup())}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{value:["watchValue"],disabled:["watchDisabled"]}}};(function(t,s,e,i){var r,o=arguments.length,a=o<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,e,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(o<3?r(a):o>3?r(s,e,a):r(s,e))||a);o>3&&a&&Object.defineProperty(s,e,a)})([a({triggerEvents:"mousedown"})],h.prototype,"onClickOutside",null),h.style=":host{display:block}gux-button-slot button .gux-target-display{display:flex;flex-direction:row;gap:4px;align-items:center;justify-content:center}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}.gux-list-container{inline-size:214px;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{h as gux_rich_text_editor_action_rich_style}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,a as e}from"./p-mm833MRp.js";import{a as o,c as a,o as r,f as h,s as p,h as n,b as c}from"./p-C8aV-TzO.js";import{a as d}from"./p-Bg4q97BS.js";import{O as l}from"./p-CuMZPTZF.js";import{t as u}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,a as e}from"./p-mm833MRp.js";import{a as o,c as a,o as r,f as h,s as p,h as n,b as c}from"./p-C8aV-TzO.js";import{a as d}from"./p-Bg4q97BS.js";import{O as l}from"./p-CuMZPTZF.js";import{t as u}from"./p-CyMJvvXZ.js";import{f as b}from"./p-Cr5bTKWF.js";const m=class{constructor(i){t(this,i),this.guxdismiss=s(this,"guxdismiss",7),this.position="bottom",this.closeOnClickOutside=!1,this.isOpen=!1,this.disconnect=void 0}onKeyDown(t){switch(t.key){case"Tab":this.dismiss();break;case"Escape":this.dismiss(),this.forElement.focus()}}checkForClickOutside(t){const s=t.composedPath(),i=b(this.root,this.for),e=s.includes(i);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||e||this.dismiss()}runUpdatePosition(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.root.isConnected?this.cleanupUpdatePosition=o(b(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=b(this.root,this.for);this.popupElement&&a(t,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[r(2),h(),p(),n(),c({element:this.arrowElement,padding:16})]}).then((({x:t,y:s,middlewareData:i,placement:e})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${s}px`});const o={top:"bottom",right:"left",bottom:"top",left:"right"}[e.split("-")[0]];if(i.arrow){const{x:t,y:s}=i.arrow;this.popupElement.setAttribute("data-placement",e),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[o]:"-6.5px",transform:"rotate(45deg)"})}i.hide&&Object.assign(this.popupElement.style,{visibility:i.hide.referenceHidden?"hidden":"visible"})}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1,this.popupElement.togglePopover())}focusFirstItemInPopupList(){d((()=>{this.listElement.guxFocusFirstItem()}))}onKeydown(t){switch(t.key){case"Enter":case" ":this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition(),this.focusFirstItemInPopupList()}}onMouseup(){this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition()}connectedCallback(){u(this.root,{variant:this.position}),this.listElement=this.root.querySelector("gux-list"),this.forElement=b(this.root,this.for),this.forElement.setAttribute("aria-haspopup","true");const t=this.onKeydown.bind(this);this.forElement.addEventListener("keydown",t);const s=this.onMouseup.bind(this);this.forElement.addEventListener("mouseup",s),this.disconnect=()=>{this.forElement.removeEventListener("keydown",t),this.forElement.removeEventListener("mouseup",s)}}componentDidLoad(){this.isOpen&&(this.popupElement.togglePopover(),this.runUpdatePosition())}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnect()}render(){return i("div",{key:"fc036d673469aa079a28c536d9b2934807963555",ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0,popover:"manual"},i("div",{key:"b4047e549d67eafec25bd1868d381c809428e583",ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&i("gux-dismiss-button",{key:"4c5dee22f6bc75255629376b82d8163d607c01da",onClick:this.dismiss.bind(this)}),i("div",{key:"c18958af813c886526d29d1a3a0d3c22e45a8ada",class:"gux-popover-content"},i("slot",{key:"2e2e37291ef5df4275c8e40970040d7cbf8c2987"})))}get root(){return e(this)}};(function(t,s,i,e){var o,a=arguments.length,r=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(r=(a<3?o(r):a>3?o(s,i,r):o(s,i))||r);a>3&&r&&Object.defineProperty(s,i,r)})([l({triggerEvents:"mousedown"})],m.prototype,"checkForClickOutside",null),m.style=":popover-open{position:absolute;inset:unset}.gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;overflow-y:hidden;background-color:var(--gse-ui-popover-backgroundColor);border:none;border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper{}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}";export{m as gux_popover_list_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as i,h as s,a}from"./p-mm833MRp.js";import{t as n}from"./p-
|
|
1
|
+
import{r as e,c as i,h as s,a}from"./p-mm833MRp.js";import{t as n}from"./p-CyMJvvXZ.js";import{h as t}from"./p-qzV3vtOw.js";const d=class{constructor(s){e(this,s),this.sidePanelDismiss=i(this,"sidePanelDismiss",7),this.size="small"}onDismissHandler(){this.sidePanelDismiss.emit()}componentWillLoad(){n(this.root,{variant:this.size})}componentDidRender(){this.validateDescriptionSlotUsage()}validateDescriptionSlotUsage(){const e=this.root.querySelectorAll('[slot="description"]');Array.from(e).some((e=>e.parentElement===this.root))&&console.warn('gux-side-panel-beta: The description slot has been moved to gux-side-panel-header component. Please move your description content inside the header slot like this: <gux-side-panel-header slot="header"><div slot="description">Your description</div></gux-side-panel-header>')}renderHeader(){return t(this.root,"header")?s("slot",{name:"header"}):null}renderTabs(){return t(this.root,"tabs")?s("div",{class:"gux-side-panel-tabs"},s("slot",{name:"tabs"})):null}renderContent(){return t(this.root,"content")?s("div",{class:"gux-side-panel-content"},s("slot",{name:"content"})):null}renderFooter(){return t(this.root,"footer")?s("slot",{name:"footer"}):null}render(){return s("section",{key:"702c3c5880d4e25a87d51b977c14d51170ddff1b",class:{"gux-side-panel":!0,[`gux-side-panel-${this.size}`]:!0}},this.renderHeader(),s("gux-dismiss-button",{key:"90237cbc7c473f35acb23776eac8e614a3922e3b",onClick:this.onDismissHandler.bind(this)}),s("div",{key:"566600dd2685c05554af422b91f575a17f2142bf",class:"gux-side-panel-content-wrapper"},this.renderTabs(),this.renderContent()),this.renderFooter())}get root(){return a(this)}};d.style=":host{display:block;inline-size:fit-content;block-size:100%}:host([size=large]){max-inline-size:50%}.gux-side-panel{position:relative;display:flex;flex-direction:column;inline-size:calc(100vw - var(--gse-ui-sidePanel-shoud-minWidth));block-size:inherit;background-color:var(--gse-ui-sidePanel-backgroundColor);box-shadow:var(--gse-ui-sidePanel-boxShadow)}.gux-side-panel.gux-side-panel-small{max-inline-size:var(--gse-ui-sidePanel-widthSize-sm)}.gux-side-panel.gux-side-panel-medium{max-inline-size:var(--gse-ui-sidePanel-widthSize-md)}.gux-side-panel.gux-side-panel-large{max-inline-size:var(--gse-ui-sidePanel-widthSize-lg)}.gux-side-panel .gux-side-panel-content-wrapper{flex:1 1 100%;overflow-y:auto}.gux-side-panel .gux-side-panel-content{padding:var(--gse-ui-sidePanel-body-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}::slotted(footer){flex:0 0 auto;padding:var(--gse-ui-sidePanel-footer-padding);border-block-start:var(--gse-ui-sidePanel-divider-width) var(--gse-ui-sidePanel-divider-style) var(--gse-ui-sidePanel-divider-color)}";export{d as gux_side_panel_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as i,a as s}from"./p-mm833MRp.js";import{t as o}from"./p-
|
|
1
|
+
import{r as t,h as e,H as i,a as s}from"./p-mm833MRp.js";import{t as o}from"./p-CyMJvvXZ.js";import{f as r}from"./p-Cr5bTKWF.js";import{r as a}from"./p-D9jKBqIb.js";const n=class{constructor(e){t(this,e),this.id=a("gux-tooltip-pointer"),this.accent="light",this.placement="bottom-start",this.visualOnly=!1}async showTooltip(){return await this.baseTooltip.showTooltip()}async hideTooltip(){return await this.baseTooltip.hideTooltip()}updateForElement(){this.forElement=this.getForElement()}componentWillLoad(){o(this.root,{variant:this.placement})}componentDidLoad(){this.baseTooltip&&(this.tooltipObserver=new MutationObserver((()=>{var t;this.role=null===(t=this.baseTooltip)||void 0===t?void 0:t.role})),this.tooltipObserver.observe(this.baseTooltip,{childList:!0,attributes:!0,attributeFilter:["role"]}))}connectedCallback(){this.updateForElement()}disconnectedCallback(){this.tooltipObserver&&this.tooltipObserver.disconnect()}getForElement(){if(this.for){const t=r(this.root,this.for);return t||this.logForAttributeError(),t}return this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip-pointer: invalid element supplied to 'for': "${this.for}"`)}render(){return e(i,{key:"b1b8cd4c5b07b0033e488e415b64c75114053c3d",id:this.id,role:this.role},e("gux-tooltip-base-beta",{key:"3e198db92d2408372dcf1fbdcea10469b60590fc",forElement:this.forElement,placement:this.placement,accent:this.accent,tooltipId:this.id,visualOnly:this.visualOnly,ref:t=>this.baseTooltip=t,followMouse:!0},e("span",{key:"4c822de2b6c7f346aba56203dc403264f31cfb8d",slot:"content"},e("slot",{key:"443b7d7e236c19fd390abb43a2d8747b2f528ae2",name:"content"},e("slot",{key:"f0e9d0e884225aac6d11b94535c61c9ce0e4e6c0"})))))}get root(){return s(this)}static get watchers(){return{for:["updateForElement"]}}};export{n as gux_tooltip_pointer_beta}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,a as r}from"./p-mm833MRp.js";import{t as i}from"./p-
|
|
1
|
+
import{r as t,h as e,a as r}from"./p-mm833MRp.js";import{t as i}from"./p-CyMJvvXZ.js";import{O as o}from"./p-CuMZPTZF.js";import{b as s,g as a}from"./p-D_8CR3cJ.js";import{a as n}from"./p-DvPw3gUX.js";import{u}from"./p-BgaA4g76.js";import{s as l}from"./p-BMRf5pjV.js";import{b as h}from"./p-Bg4q97BS.js";import{g,a as c,b as d}from"./p-Dwrcabgx.js";import"./p-Cd4R0amv.js";import"./p-DCZG2J0G.js";var p={toggleCalendar:"Toggle month calendar view",month:"Month",year:"Year",unset:"Unset"};const f={calendar:"gregory",year:"numeric",month:"long"},m=["ar","he","ja","ko","zh-cn","zh-tw"],b=class{constructor(e){t(this,e),this.disabled=!1,this.expanded=!1}onKeyDown(t){"Escape"===t.key&&(this.expanded=!1,this.calendarToggleButtonElement.focus())}onValueUpdate(t){this.value=this.isOutOfBounds(t)?this.isBeforeMin(t)?this.min:this.max:t,l(this.root,"input"),l(this.root,"change")}onClickOutside(){this.expanded=!1}async componentWillLoad(){i(this.root),this.i18n=await s(this.root,p),this.locale=u()?n(this.root):a(this.root)}onFocusout(t){t.relatedTarget&&!this.root.contains(t.relatedTarget)&&(this.expanded=!1)}isOutOfBounds(t){return this.isBeforeMin(t)||this.isAfterMax(t)}isBeforeMin(t){return this.min&&this.min>t}isAfterMax(t){return this.max&&this.max<t}toggleCalendar(){this.expanded=!this.expanded,this.expanded&&h((()=>{this.monthCalendarElement.guxFocus(this.value)}))}onMonthCalendarInput(){this.value=this.monthCalendarElement.value,this.expanded=!1,this.calendarToggleButtonElement.focus()}incrementMonth(t){if(this.value){const{year:e,month:r}=g(this.value),i=((parseInt(r)+11+t)%12+1).toString().padStart(2,"0");this.value=c(e,i)}else this.value=d()}incrementYear(t){if(this.value){const{year:e,month:r}=g(this.value),i=Math.max(Number(e)+t,0).toString();this.value=c(i,r)}else this.value=d()}onSpinnerKeyDown(t,e,r){switch(t.key){case"ArrowDown":t.preventDefault(),e(-1);break;case"ArrowUp":t.preventDefault(),e(1);break;case"ArrowLeft":case"ArrowRight":t.preventDefault(),r.focus();break;case"Enter":t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)}));break;case" ":t.preventDefault()}}onSpinnerKeyUp(t){t.stopPropagation()," "===t.key&&(t.preventDefault(),this.expanded=!0,h((()=>{this.monthCalendarElement.guxFocus(this.value)})))}onSpinnerClick(){this.expanded=!0}getSpinnerLabel(t){if(this.value){const{year:e,month:r}=g(this.value);return new Date(Number(e),Number(r)-1).toLocaleDateString(this.locale,{calendar:"gregory",[t]:f[t]})}return this.i18n(t)}getSpinnerValueNow(t){return this.value?g(this.value)[t]:"0"}getSpinnerValueText(){if(this.value){const{year:t,month:e}=g(this.value);return new Date(Number(t),Number(e)-1).toLocaleDateString(this.locale,{calendar:"gregory",year:"numeric",month:"long"})}return this.i18n("unset")}renderMonthSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementMonth(t)),this.yearSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.monthSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("month"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"1","aria-valuemax":"12","aria-label":this.i18n("month")},this.getSpinnerLabel("month"))}renderYearSpinnerButton(){return e("div",{role:"spinbutton",class:"gux-spinner",tabIndex:this.disabled?-1:0,onKeyDown:t=>this.onSpinnerKeyDown(t,(t=>this.incrementYear(t)),this.monthSpinnerElement),onKeyUp:t=>this.onSpinnerKeyUp(t),onClick:()=>this.onSpinnerClick(),ref:t=>this.yearSpinnerElement=t,"aria-valuenow":this.getSpinnerValueNow("year"),"aria-valuetext":this.getSpinnerValueText(),"aria-valuemin":"0","aria-label":this.i18n("year")},this.getSpinnerLabel("year"))}renderSpinnerButtons(){return m.includes(this.locale)?e("span",{class:"gux-display"},this.renderYearSpinnerButton(),this.renderMonthSpinnerButton()):e("span",{class:"gux-display"},this.renderMonthSpinnerButton(),this.renderYearSpinnerButton())}renderCalendarToggleButton(){return e("button",{class:{"gux-popup-toggle":!0,"gux-expanded":this.expanded},ref:t=>this.calendarToggleButtonElement=t,type:"button",onClick:()=>this.toggleCalendar(),disabled:this.disabled},e("gux-icon",{"icon-name":"fa/calendar-regular",decorative:!0,size:"small"}),e("gux-screen-reader-beta",null,this.i18n("toggleCalendar")))}renderTarget(){return e("div",{class:"gux-target",slot:"target"},this.renderSpinnerButtons(),this.renderCalendarToggleButton())}renderPopup(){return e("gux-month-calendar",{slot:"popup",ref:t=>this.monthCalendarElement=t,onInput:()=>this.onMonthCalendarInput(),value:this.value,min:this.min,max:this.max})}render(){return e("gux-popup",{key:"dc77a8eddba2e1ba1dd8834f63387f24b02fcfff",expanded:this.expanded,disabled:this.disabled,"exceed-target-width":!0},this.renderTarget(),this.renderPopup())}get root(){return r(this)}static get watchers(){return{value:["onValueUpdate"]}}};(function(t,e,r,i){var o,s=arguments.length,a=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,i);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(s<3?o(a):s>3?o(e,r,a):o(e,r))||a);s>3&&a&&Object.defineProperty(e,r,a)})([o({triggerEvents:"mousedown"})],b.prototype,"onClickOutside",null),b.style=":host{display:inline-block}.gux-target{display:inline-flex;gap:var(--gse-ui-formControl-input-gap);padding:var(--gse-ui-formControl-textarea-padding);cursor:pointer;background-color:var(--gse-ui-calendarMenu-backgroundColor);border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-target:focus-within{outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius)}.gux-target .gux-display{display:inline-flex;align-items:center;min-inline-size:100px;padding-inline-end:var(--gse-ui-formControl-input-gap);font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-target .gux-display .gux-spinner{outline:none}.gux-target .gux-display .gux-spinner:not(:first-child){margin-inline-start:4px}.gux-target .gux-display .gux-spinner:focus-visible{background:var(--gse-ui-calendarMenu-month-hover-backgroundColor)}.gux-target .gux-popup-toggle{justify-content:right;color:var(--gse-ui-monthPicker-calendarStates-defaultColor);background:transparent;border:none}.gux-target .gux-popup-toggle:focus-visible{outline:var(--gse-ui-monthPicker-calendarStates-focus-border-width) var(--gse-ui-monthPicker-calendarStates-focus-border-style) var(--gse-ui-monthPicker-calendarStates-focus-border-color);outline-offset:var(--gse-semantic-focusOutline-offset);border-radius:var(--gse-ui-calendarMenu-month-calendarButton-focusBorderRadius)}.gux-target .gux-popup-toggle:not(:disabled):hover{color:var(--gse-ui-monthPicker-calendarStates-hoverColor);cursor:pointer}.gux-target .gux-popup-toggle:not(:disabled):focus{color:var(--gse-ui-monthPicker-calendarStates-activeColor);cursor:pointer}.gux-target .gux-popup-toggle:disabled{color:var(--gse-ui-monthPicker-calendarStates-disabledColor)}.gux-target .gux-popup-toggle.gux-expanded{color:var(--gse-ui-monthPicker-calendarStates-activeColor)}";export{b as gux_month_picker_beta}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s,a as o}from"./p-mm833MRp.js";import{t as i}from"./p-CyMJvvXZ.js";import{b as r}from"./p-D_8CR3cJ.js";import{t as e}from"./p-DN3YAdAX.js";import{h as n,r as a}from"./p-wqCHc7t7.js";import"./p-Cd4R0amv.js";import"./p-DCZG2J0G.js";const u=class{constructor(s){t(this,s),this.disabled=!1,this.active=!1}get isActive(){return this.active}set isActive(t){this.active=t}async componentWillLoad(){i(this.root,{variant:this.action}),this.i18n=await r(this.root,e)}renderTooltip(){if(!this.disabled)return s("gux-tooltip-beta",null,s("div",{slot:"content"},this.i18n(this.action)))}isToggleAction(){return!["clearFormatting","delete","undo","redo"].includes(this.action)}renderActionButton(){return s("gux-button-slot",{accent:"ghost","icon-only":!0},s("button",{type:"button",disabled:this.disabled||n(this.root),class:{"gux-is-pressed":this.active},"aria-pressed":this.isToggleAction()&&this.active.toString()},s("gux-icon",{"icon-name":a(this.action),decorative:!0,size:"small"}),s("gux-screen-reader-beta",null,this.i18n(this.action))),this.renderTooltip())}render(){return this.renderActionButton()}get root(){return o(this)}};u.style=":host{display:block}gux-button-slot{inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height)}gux-button-slot button.gux-is-pressed{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}";export{u as gux_rich_text_editor_action}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as s,a as o}from"./p-mm833MRp.js";import{t as a}from"./p-
|
|
1
|
+
import{r as e,h as t,H as s,a as o}from"./p-mm833MRp.js";import{t as a}from"./p-CyMJvvXZ.js";import{O as i}from"./p-CuMZPTZF.js";import{b as r}from"./p-D_8CR3cJ.js";import{b as n}from"./p-Bg4q97BS.js";import"./p-Cd4R0amv.js";var c={additionalActions:"Additional Actions"};const u=class{constructor(t){e(this,t),this.expanded=!1}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.expanded=!1,t.includes(this.listElement)&&(e.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.expanded=!1;break;case"ArrowDown":case"Enter":t.includes(this.dropdownButton)&&(e.preventDefault(),this.expanded=!0,this.focusFirstItemInPopupList())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.dropdownButton)&&(this.expanded=!0,this.focusFirstItemInPopupList())}toggle(){this.expanded=!this.expanded,this.expanded&&this.focusPopupList()}onClickOutside(){this.expanded=!1}focusPopupList(){n((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){n((()=>{this.listElement.guxFocusFirstItem()}))}renderTooltip(){if(!this.expanded)return t("gux-tooltip-beta",null,t("div",{slot:"content"},this.i18n("additionalActions")))}async componentWillLoad(){this.i18n=await r(this.root,c),a(this.root)}render(){return t(s,{key:"12861791318251f71861d2a7f7665847802997f4",class:{"gux-show-menu":this.showMenu}},t("gux-popup",{key:"b476cde8e861d869b55d380019fc893a8d5e6e84",expanded:this.expanded,"exceed-target-width":!0},t("div",{key:"d781c931d7781ffe773ac9097a784c8efc02991a",slot:"target",class:"gux-toolbar-menu-container"},t("gux-button-slot",{key:"1074238be4f136d82a85bd87641335eaad8b0775",accent:"secondary"},t("button",{key:"133dc0fc88709a184ac7212270bbd20c77346406",class:"gux-menu-button",type:"button",ref:e=>this.dropdownButton=e,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},t("gux-icon",{key:"dbc033778cf901d980efe318be80cd0708dda8f2","icon-name":"fa/ellipsis-regular",size:"small",decorative:!0}),t("gux-screen-reader-beta",{key:"5afbacb800da33077be077bb6481537ec2dc4a0f"},this.i18n("additionalActions"))),this.renderTooltip())),t("div",{key:"44d64461b2dc6ca9b8f0a8448ba0a41548fea0a4",class:"gux-list-container",slot:"popup"},t("gux-list",{key:"ce74f7ea28ab01e4ad8c1a35d74fbbf2b783f9f0",ref:e=>this.listElement=e},t("slot",{key:"90587f596c875f6968eecbc15dc5c9b2d8a9babf"})))))}static get delegatesFocus(){return!0}get root(){return o(this)}};(function(e,t,s,o){var a,i=arguments.length,r=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(a=e[n])&&(r=(i<3?a(r):i>3?a(t,s,r):a(t,s))||r);i>3&&r&&Object.defineProperty(t,s,r)})([i({triggerEvents:"mousedown"})],u.prototype,"onClickOutside",null),u.style=":host{display:none;-webkit-user-select:none;user-select:none}:host(.gux-show-menu){display:block}.gux-menu-button{display:flex;color:var(--gse-ui-button-secondary-default-foregroundColor);cursor:pointer;border:none}.gux-menu-button gux-icon{align-self:center}.gux-list-container{inline-size:min-content;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{u as gux_table_toolbar_menu_button}
|