genesys-spark-components 4.134.0 → 4.134.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-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.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-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 +16 -9
- package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
- package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +1 -1
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-beta.cjs.entry.js +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-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 +1 -1
- package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
- package/dist/cjs/gux-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 +3 -3
- 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_2.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-8d08c296.js → usage-adb1db46.js} +1 -1
- package/dist/collection/components/beta/gux-time-zone/gux-time-zone.js +2 -2
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/gux-form-field-file.css +3 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-file-beta/gux-form-field-file.js +16 -8
- 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-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.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-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 +16 -9
- package/dist/esm/gux-form-field-file.entry.js +1 -1
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
- package/dist/esm/gux-form-field-number_2.entry.js +1 -1
- package/dist/esm/gux-form-field-phone.entry.js +1 -1
- package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +1 -1
- package/dist/esm/gux-form-field-search.entry.js +1 -1
- package/dist/esm/gux-form-field-select.entry.js +1 -1
- package/dist/esm/gux-form-field-text-like.entry.js +1 -1
- package/dist/esm/gux-form-field-textarea.entry.js +1 -1
- package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
- package/dist/esm/gux-form-footer.entry.js +1 -1
- package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-inline-alert.entry.js +1 -1
- package/dist/esm/gux-label-info-beta.entry.js +1 -1
- package/dist/esm/gux-link-beta.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +1 -1
- package/dist/esm/gux-loading-message.entry.js +1 -1
- package/dist/esm/gux-modal-legacy.entry.js +1 -1
- package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +1 -1
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +1 -1
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-beta.entry.js +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-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 +1 -1
- package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-action.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-beta.entry.js +1 -1
- package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
- package/dist/esm/gux-selector-card-beta.entry.js +1 -1
- package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
- package/dist/esm/gux-side-panel-beta.entry.js +1 -1
- package/dist/esm/gux-side-panel-heading.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-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 +3 -3
- 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_2.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-7656a480.js → usage-1d2a8745.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.hi.json +1 -1
- package/dist/genesys-webcomponents/{p-6424c3ff.entry.js → p-01491d0f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e7558716.entry.js → p-01f4929f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7400143a.entry.js → p-03c08bb8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c760133.entry.js → p-068af466.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-07cde8b0.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7dc94aaf.entry.js → p-0dbea75f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-38ba743c.entry.js → p-1039fb27.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-efffb3e4.entry.js → p-1266b336.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7650ddeb.entry.js → p-1a972c60.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5057950e.entry.js → p-23062479.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-77804fa6.entry.js → p-26d4bb8f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-378589e7.entry.js → p-2902f03a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b932a49a.entry.js → p-2a296d31.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1aa7419a.entry.js → p-2ef049ac.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-da402bc8.js → p-331098f4.js} +1 -1
- package/dist/genesys-webcomponents/{p-8034435f.entry.js → p-336bcb98.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-74d618b8.entry.js → p-39fc49ac.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4f9d41d8.entry.js → p-3aa06f0d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ce497775.entry.js → p-3afce8d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be5f4c85.entry.js → p-3d4cfb3d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4333e57f.entry.js → p-3e2bdd96.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-60468ac8.entry.js → p-42cd7396.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7d50247e.entry.js → p-48a98b59.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7500f528.entry.js → p-498ee9d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-126e2718.entry.js → p-499130eb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9b1b3884.entry.js → p-4a69416c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d0c4f359.entry.js → p-4b5ada8f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-47dc8432.entry.js → p-4bacc96f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-43d178ed.entry.js → p-4df7dcaa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8a076513.entry.js → p-4e667b92.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8a123162.entry.js → p-506ecb82.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-54b0eb36.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-2c58b22d.entry.js → p-5678d358.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-33fa4085.entry.js → p-56cbeb1f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cc10cfd6.entry.js → p-57895ad4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d175ec0a.entry.js → p-5a703d9e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e7c250fd.entry.js → p-61a0f193.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a6fd9277.entry.js → p-66751da9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d4dcb041.entry.js → p-66916506.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1a35c553.entry.js → p-66d9ad90.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f601e763.entry.js → p-67503b42.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3fdf4b27.entry.js → p-6a70f276.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0d926ad5.entry.js → p-702b1a4c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5c2b05cc.entry.js → p-708436c0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-85956c10.entry.js → p-71093890.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-37459e5a.entry.js → p-727b950d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3f6f5b41.entry.js → p-7817ad83.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9a745d1b.entry.js → p-79b7e8b0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d280fa3b.entry.js → p-7c66a93e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-04dd018f.entry.js → p-7cd230e4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7040fd8a.entry.js → p-89a8d7b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2237f785.entry.js → p-8a4a9e33.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-54c5687b.entry.js → p-8a89d137.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e342f7ca.entry.js → p-8cf481b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-17a420b1.entry.js → p-8e1b57a0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2c14cebf.entry.js → p-906a4f46.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-875877ed.entry.js → p-90ae0b02.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-47a97e63.entry.js → p-91135d32.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ea9bf33e.entry.js → p-93030bf7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2119994c.entry.js → p-96ce28fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c420ddb1.entry.js → p-9769fc13.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e34dc4fc.entry.js → p-9a653ed9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fc11a944.entry.js → p-9ce635fe.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9db83dcb.entry.js → p-9f927946.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-111a3cd5.entry.js → p-a291a0a7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a9c76de3.entry.js → p-a3cb9a4a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9e8f02da.entry.js → p-a6d919b3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5d5f830f.entry.js → p-a807618f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a85d3dd8.entry.js → p-a87a93fd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c402968.entry.js → p-a8998966.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e8ee9920.entry.js → p-aaeee5cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-79dd999e.entry.js → p-ad8923f3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8c4cdad9.entry.js → p-b13e11d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3995f782.entry.js → p-b3243c16.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a90aae15.entry.js → p-b44150e3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dc4e4023.entry.js → p-b48d6266.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-424a102a.entry.js → p-b5467993.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4a5c193e.entry.js → p-b703ff74.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d83a9be4.entry.js → p-b9ab3112.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-988efaf5.entry.js → p-bd3cbfd4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d92c43d2.entry.js → p-c0c6b185.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-25a84713.entry.js → p-c1181b9e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-45377e92.entry.js → p-c5b94ebc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ba132e0.entry.js → p-c7fb941a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1addf3d.entry.js → p-c882c6d2.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c94abda8.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b7ec0b48.entry.js → p-cad4c97f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bd100a56.entry.js → p-d02fc33c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a3e8ac76.entry.js → p-d07abee3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-560c351e.entry.js → p-d3926b6c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-95cfe62c.entry.js → p-d5aedbf8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9176a4c1.entry.js → p-d6734e5e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8fa27291.entry.js → p-d88c5e52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-748ef36e.entry.js → p-d90f0f3c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-41593d00.entry.js → p-d933d0f6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0028cfd7.entry.js → p-d9a0f6a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b5c92196.entry.js → p-deec890f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7e1c3ae5.entry.js → p-dfa377a7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2049a095.entry.js → p-e00add78.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d767bb22.entry.js → p-e1101cce.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-41da09de.entry.js → p-e1722381.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f17fd725.entry.js → p-e327e5f0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3ebb9c74.entry.js → p-e3337707.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e4b41307.entry.js → p-ed25cc74.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6d3381a.entry.js → p-ee134311.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-819f9535.entry.js → p-f25caf23.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a9361312.entry.js → p-f267b60c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8b4b8771.entry.js → p-f2a60af1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0eec1c84.entry.js → p-f35f3502.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-75fac2e1.entry.js → p-f9ce9928.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7f7ebeeb.entry.js → p-faa47b8a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4d7e0454.entry.js → p-fea91bf5.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-form-field/components/gux-form-field-file-beta/gux-form-field-file.d.ts +1 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-a1403ad6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b038cc90.entry.js +0 -1
- package/dist/genesys-webcomponents/p-caa36f98.entry.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
import{r as e,c as t,h as a,g as n}from"./p-c2a62a18.js";import{a as r}from"./p-cf0e7d3b.js";import{b as i,c as s,a as d,f as o}from"./p-9349b5e4.js";import{t as u}from"./p-da402bc8.js";import{g as l,a as c}from"./p-16feb2a1.js";import{c as g}from"./p-267e2aed.js";import{u as h,d as x}from"./p-f36036e8.js";import"./p-4202e9f2.js";import"./p-43af726d.js";function b(e,t){f(e,"remove",t)}function f(e=[],t,a){const n=[].concat(e);for(const e of n)e.classList[t](a)}function v(e,t){return h()?g(x(t,{year:"numeric",month:"long"}).format(e)):g(e.toLocaleDateString(t,{year:"numeric",month:"long"}))}const m=class{constructor(a){e(this,a),this.calendarSelect=t(this,"calendarSelect",7),this.locale="en",this.value="",this.minDate="",this.maxDate="",this.mode="single",this.numberOfMonths=1,this.startDayOfWeek=void 0,this.previewValue=new Date,this.selectingDate=null}emitCalendarSelect(){this.calendarSelect.emit(this.value)}async setValue(e){if("range"===this.mode&&e instanceof Array){const[t,a]=e;this.value=i(t,a),this.previewValue=s(this.value)[0]}else{const t=e;this.value=d(t),this.previewValue=t}}async focusPreviewDate(){const e=this.root.shadowRoot.querySelector(`td[data-date="${this.previewValue.getTime()}"]`);e&&e.focus()}async resetCalendarView(e){this.previewValue=e}incrementPreviewDateByMonth(e){this.previewValue=new Date(this.previewValue.getFullYear(),this.previewValue.getMonth()+e,15,0,0,0),r((()=>{this.focusPreviewDate()}))}async setValueAndEmit(e){await this.setValue(e),this.emitCalendarSelect()}outOfBounds(e){return""!==this.maxDate&&o(this.maxDate)<e||""!==this.minDate&&o(this.minDate)>e}generateDatesFrom(e,t,a){const n=[],r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0);for(let t=0;t<a;t++){const t=new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0),a=[],i=new Date,d=r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()&&r.getDate()===i.getDate();let u=!1,l=!1;t.getMonth()!==e&&(a.push("gux-not-in-month"),u=!0,"range"===this.mode&&(a.push("gux-hidden"),l=!0)),this.outOfBounds(t)&&(a.push("gux-disabled"),u=!0);let c=!1;if(d&&a.push("gux-current-date"),"range"===this.mode){const[e,n]=s(this.value),r=e.getTime(),i=n.getTime();t.getTime()===r&&t.getTime()===i?(c=!0,a.push("gux-selected")):t.getTime()===r?(c=!0,a.push("gux-selected"),a.push("gux-start-date")):t.getTime()===i&&(c=!0,a.push("gux-selected"),a.push("gux-end-date"))}else{const e=o(this.value).getTime();t.getTime()===e&&(c=!0,a.push("gux-selected"))}n.push({class:a.join(" "),date:t,hidden:l,disabled:u,selected:c,isToday:d}),r.setDate(r.getDate()+1)}return n}create2DArray(e,t){const a=[];for(let n=0;n<t-1;n++){const r=e.slice(n*t,n*t+t);this.weekShouldBeDisplayed(r)&&a.push(r)}return a}isFocusableDate(e){return e.selected||this.previewValue.getTime()===e.date.getTime()}weekShouldBeDisplayed(e){const t=e.find((e=>!e.hidden));return e.length&&!!t}getMonthDays(e){const t=new Date(this.previewValue.getTime());t.setDate(1),t.setMonth(t.getMonth()+e);const a=t.getMonth(),n=function(e,t,a){const n=new Date(t,e,1,1,0,0,0),r=-1*(a-n.getDay()-7)%7;return new Date(n.getTime()-864e5*r)}(a,t.getFullYear(),this.startDayOfWeek),r=this.generateDatesFrom(a,n,42);return this.create2DArray(r,7)}addDays(e,t){const a=new Date(e.valueOf());return a.setDate(a.getDate()+t),a}getAllDatesElements(){const e=this.root.shadowRoot.querySelectorAll("td");return Array.from(e)}getAllSelectableDatesElements(){const e=this.root.shadowRoot.querySelectorAll('td[tabindex="0"]');return Array.from(e)}getRangeDatesElements(e,t){const a=[];let n;n=t<e?this.getRangeDates(t,e):this.getRangeDates(e,t);for(const e of n){const t=this.root.shadowRoot.querySelector(`td[data-date="${e.getTime()}"]:not(.gux-hidden)`);t&&a.push(t)}return a}getRangeDates(e,t){const a=[];let n=e;for(;n<=t;)a.push(new Date(n)),n=this.addDays(n,1);return a}async onDateClick(e){if(!this.outOfBounds(e))if("range"!==this.mode)await this.setValueAndEmit(e);else if(null===this.selectingDate)b(this.getAllDatesElements(),"gux-hovered"),this.selectingDate=new Date(e.valueOf()),this.value=i(e,e);else{const t=this.root.shadowRoot.querySelector(`td[data-date="${e.getTime()}"]`);t&&t.classList.add("gux-selected"),this.updateRangeElements(),await this.setValueAndEmit([this.selectingDate,e]),this.previewValue=e,this.selectingDate=null}}onDateMouseEnter(e){"range"===this.mode&&null!==this.selectingDate&&(this.value=i(e,this.selectingDate),this.updateRangeElements())}updateRangeElements(){if("range"===this.mode){b(this.getAllDatesElements(),"gux-hovered");const[e,t]=s(this.value);f(this.getRangeDatesElements(e,t),"add","gux-hovered")}}async onKeyDown(e){switch(e.key){case" ":case"Enter":e.preventDefault(),await this.onDateClick(this.previewValue);break;case"ArrowDown":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+7)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowUp":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-7)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowLeft":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-1)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowRight":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+1)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"PageUp":this.incrementPreviewDateByMonth(1),this.onDateMouseEnter(this.previewValue);break;case"PageDown":this.incrementPreviewDateByMonth(-1),this.onDateMouseEnter(this.previewValue)}}componentWillLoad(){if(u(this.root,{variant:this.mode}),this.locale=l(this.root),this.startDayOfWeek=this.startDayOfWeek||c(this.locale),!this.value){const e=new Date;e.setHours(0,0,0,0),this.value="range"===this.mode?i(e,e):d(e)}this.previewValue=o(this.value)}componentDidRender(){this.updateRangeElements()}renderMonthHeader(){return a("div",{class:"gux-month-list"},Array.from(Array(this.numberOfMonths).keys()).map((e=>{const t=function(e,t){const a=new Date(e);return a.setDate(1),a.setMonth(a.getMonth()+t),a}(this.previewValue,e);return a("label",null,v(t,this.locale))})))}renderCalendarTable(e){return a("table",null,a("tr",null,function(e,t){const a=[],n=new Date(1970,0,4);for(let t=0;t<7;t++){const t=n.toLocaleString(e,{weekday:"narrow"});a.push(t),n.setDate(n.getDate()+1)}return(r=a).concat(r.splice(0,(i=t)>r.length?i%r.length:i));var r,i}(this.locale,this.startDayOfWeek).map((e=>a("th",null,e)))),this.getMonthDays(e).map((e=>a("tr",null,e.map((e=>a("td",{tabindex:this.isFocusableDate(e)?"0":"-1",class:e.class,"aria-hidden":e.hidden?"true":"false","aria-disabled":e.disabled?"true":"false","data-date":e.date.getTime(),onClick:()=>{this.onDateClick(e.date)},onMouseEnter:()=>this.onDateMouseEnter(e.date),onKeyDown:e=>{this.onKeyDown(e)}},a("div",{class:"gux-date"},e.date.getDate(),a("span",{class:"gux-sr-only"},v(e.date,this.locale))))))))))}render(){return a("div",{key:"8c2735faadd06a9810b3b0f48abc0d2be8c29c6f",class:"gux-calendar"},a("div",{key:"ded34ebeead1c0a4df65cf51906e9c7d514fa93e",class:"gux-header"},a("button",{key:"cedfad47d44db1003806ed47a32b9fd4327751fc",type:"button",class:"gux-left",onClick:()=>this.incrementPreviewDateByMonth(-1),tabindex:"-1","aria-hidden":"true"},a("gux-icon",{key:"36e0f9d505339ae11bbb6b7f2548cde68abc7741",size:"small",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})),this.renderMonthHeader(),a("button",{key:"f56e6ff0c1261e7c51e0639b26680a70f5205e3d",type:"button",class:"gux-right",onClick:()=>this.incrementPreviewDateByMonth(1),tabindex:"-1","aria-hidden":"true"},a("gux-icon",{key:"959ebaa13f1a7e435782d38bdde87e4e4f56a2c0",size:"small",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("div",{key:"4c63e229090bcd6eab870ea8dac3bead564744a5",class:"gux-content"},Array.from(Array(this.numberOfMonths).keys()).map((e=>this.renderCalendarTable(e)))))}get root(){return n(this)}};m.style=":host{display:inline-block}.gux-calendar{margin-block-start:2px;border-radius:8px;box-shadow:var(--gse-ui-calendarMenu-boxShadow)}.gux-calendar .gux-header{position:relative;display:flex;gap:var(--gse-ui-calendarMenu-header-gap);align-items:center;justify-content:space-between;block-size:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-weight:var(--gse-ui-calendarMenu-month-headerText-fontWeight);color:var(--gse-ui-calendarMenu-header-foregroundColor);background-color:var(--gse-ui-calendarMenu-header-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-header-borderRadius)}.gux-calendar .gux-header button{position:absolute;color:var(--gse-ui-calendarMenu-header-foregroundColor);cursor:pointer;outline:none;background:none;border:none}.gux-calendar .gux-header button:focus-visible{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)}.gux-calendar .gux-header button.gux-left{inset-inline-start:18px}.gux-calendar .gux-header button.gux-right{inset-inline-end:18px}.gux-calendar .gux-header button gux-icon{pointer-events:none}.gux-calendar .gux-header .gux-month-list{display:flex;justify-content:space-between;inline-size:100%;font-family:var(--gse-ui-calendarMenu-month-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-headerText-fontSize);line-height:var(--gse-ui-calendarMenu-month-headerText-lineHeight)}.gux-calendar .gux-header .gux-month-list label{inline-size:100%;text-align:center}.gux-calendar .gux-content{display:flex;align-items:flex-start;block-size:var(--gse-ui-calendarMenu-height);padding:var(--gse-ui-calendarMenu-dateBody-padding);color:var(--gse-ui-calendarMenu-month-default-foregroundColor);background-color:var(--gse-ui-calendarMenu-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius)}.gux-calendar .gux-content table{inline-size:var(--gse-ui-calendarMenu-day-input-width);text-align:start;-ms-user-select:none;user-select:none;table-layout:fixed;border-spacing:0}.gux-calendar .gux-content table:not(:last-child){padding-inline-end:24px}.gux-calendar .gux-content table tr{block-size:var(--gse-ui-calendarMenu-day-input-height)}.gux-calendar .gux-content table tr:empty{display:none}.gux-calendar .gux-content table tr th,.gux-calendar .gux-content table tr td{inline-size:var(--gse-ui-calendarMenu-day-date-size);block-size:var(--gse-ui-calendarMenu-day-date-size);padding:0;margin:0;text-align:center}.gux-calendar .gux-content table tr th{font-family:var(--gse-ui-calendarMenu-day-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-day-headerText-fontSize);font-weight:var(--gse-ui-calendarMenu-day-headerText-fontWeight);line-height:var(--gse-ui-calendarMenu-day-headerText-lineHeight)}.gux-calendar .gux-content table tr td{font-family:var(--gse-ui-calendarMenu-date-defaultText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-defaultText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-defaultText-fontWeight);line-height:var(--gse-ui-calendarMenu-date-defaultText-lineHeight);color:var(--gse-ui-calendarMenu-date-default-foregroundColor);cursor:pointer}.gux-calendar .gux-content table tr td.gux-hovered{background-color:var(--gse-ui-calendarMenu-date-range-backgroundColor)}.gux-calendar .gux-content table tr td.gux-selected{color:var(--gse-ui-calendarMenu-date-selected-foregroundColor);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-selected:hover:not(.gux-calendar .gux-content table tr td.gux-selected.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-selected.gux-end-date){background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date,.gux-calendar .gux-content table tr td.gux-end-date{background-color:var(--gse-ui-calendarMenu-date-range-backgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date .gux-date,.gux-calendar .gux-content table tr td.gux-end-date .gux-date{display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-calendarMenu-day-date-size);block-size:var(--gse-ui-calendarMenu-day-date-size);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-start-date .gux-date:hover,.gux-calendar .gux-content table tr td.gux-end-date .gux-date:hover{background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date{border-radius:var(--gse-ui-calendarMenu-range-date-startDate-borderRadius)}.gux-calendar .gux-content table tr td.gux-end-date{border-radius:var(--gse-ui-calendarMenu-range-date-endDate-borderRadius)}.gux-calendar .gux-content table tr td:hover:not(.gux-calendar .gux-content table tr td.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-end-date):not(.gux-calendar .gux-content table tr td.gux-hovered):not(.gux-calendar .gux-content table tr td.gux-selected){background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-disabled{pointer-events:none;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar .gux-content table tr td.gux-not-in-month{opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar .gux-content table tr td.gux-not-in-month:hover{background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor)}.gux-calendar .gux-content table tr td.gux-not-in-month.gux-hidden{visibility:hidden}.gux-calendar .gux-content table tr td.gux-current-date{font-family:var(--gse-ui-calendarMenu-date-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-currentText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-currentText-fontWeight);line-height:var(--gse-ui-calendarMenu-date-currentText-lineHeight)}.gux-calendar .gux-content table tr td:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-focusBorderRadius);outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{m as gux_calendar}
|
1
|
+
import{r as e,c as t,h as a,g as n}from"./p-c2a62a18.js";import{a as r}from"./p-cf0e7d3b.js";import{b as i,c as s,a as d,f as o}from"./p-9349b5e4.js";import{t as u}from"./p-331098f4.js";import{g as l,a as c}from"./p-16feb2a1.js";import{c as g}from"./p-267e2aed.js";import{u as h,d as x}from"./p-f36036e8.js";import"./p-4202e9f2.js";import"./p-43af726d.js";function b(e,t){f(e,"remove",t)}function f(e=[],t,a){const n=[].concat(e);for(const e of n)e.classList[t](a)}function v(e,t){return h()?g(x(t,{year:"numeric",month:"long"}).format(e)):g(e.toLocaleDateString(t,{year:"numeric",month:"long"}))}const m=class{constructor(a){e(this,a),this.calendarSelect=t(this,"calendarSelect",7),this.locale="en",this.value="",this.minDate="",this.maxDate="",this.mode="single",this.numberOfMonths=1,this.startDayOfWeek=void 0,this.previewValue=new Date,this.selectingDate=null}emitCalendarSelect(){this.calendarSelect.emit(this.value)}async setValue(e){if("range"===this.mode&&e instanceof Array){const[t,a]=e;this.value=i(t,a),this.previewValue=s(this.value)[0]}else{const t=e;this.value=d(t),this.previewValue=t}}async focusPreviewDate(){const e=this.root.shadowRoot.querySelector(`td[data-date="${this.previewValue.getTime()}"]`);e&&e.focus()}async resetCalendarView(e){this.previewValue=e}incrementPreviewDateByMonth(e){this.previewValue=new Date(this.previewValue.getFullYear(),this.previewValue.getMonth()+e,15,0,0,0),r((()=>{this.focusPreviewDate()}))}async setValueAndEmit(e){await this.setValue(e),this.emitCalendarSelect()}outOfBounds(e){return""!==this.maxDate&&o(this.maxDate)<e||""!==this.minDate&&o(this.minDate)>e}generateDatesFrom(e,t,a){const n=[],r=new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0);for(let t=0;t<a;t++){const t=new Date(r.getFullYear(),r.getMonth(),r.getDate(),0,0,0,0),a=[],i=new Date,d=r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()&&r.getDate()===i.getDate();let u=!1,l=!1;t.getMonth()!==e&&(a.push("gux-not-in-month"),u=!0,"range"===this.mode&&(a.push("gux-hidden"),l=!0)),this.outOfBounds(t)&&(a.push("gux-disabled"),u=!0);let c=!1;if(d&&a.push("gux-current-date"),"range"===this.mode){const[e,n]=s(this.value),r=e.getTime(),i=n.getTime();t.getTime()===r&&t.getTime()===i?(c=!0,a.push("gux-selected")):t.getTime()===r?(c=!0,a.push("gux-selected"),a.push("gux-start-date")):t.getTime()===i&&(c=!0,a.push("gux-selected"),a.push("gux-end-date"))}else{const e=o(this.value).getTime();t.getTime()===e&&(c=!0,a.push("gux-selected"))}n.push({class:a.join(" "),date:t,hidden:l,disabled:u,selected:c,isToday:d}),r.setDate(r.getDate()+1)}return n}create2DArray(e,t){const a=[];for(let n=0;n<t-1;n++){const r=e.slice(n*t,n*t+t);this.weekShouldBeDisplayed(r)&&a.push(r)}return a}isFocusableDate(e){return e.selected||this.previewValue.getTime()===e.date.getTime()}weekShouldBeDisplayed(e){const t=e.find((e=>!e.hidden));return e.length&&!!t}getMonthDays(e){const t=new Date(this.previewValue.getTime());t.setDate(1),t.setMonth(t.getMonth()+e);const a=t.getMonth(),n=function(e,t,a){const n=new Date(t,e,1,1,0,0,0),r=-1*(a-n.getDay()-7)%7;return new Date(n.getTime()-864e5*r)}(a,t.getFullYear(),this.startDayOfWeek),r=this.generateDatesFrom(a,n,42);return this.create2DArray(r,7)}addDays(e,t){const a=new Date(e.valueOf());return a.setDate(a.getDate()+t),a}getAllDatesElements(){const e=this.root.shadowRoot.querySelectorAll("td");return Array.from(e)}getAllSelectableDatesElements(){const e=this.root.shadowRoot.querySelectorAll('td[tabindex="0"]');return Array.from(e)}getRangeDatesElements(e,t){const a=[];let n;n=t<e?this.getRangeDates(t,e):this.getRangeDates(e,t);for(const e of n){const t=this.root.shadowRoot.querySelector(`td[data-date="${e.getTime()}"]:not(.gux-hidden)`);t&&a.push(t)}return a}getRangeDates(e,t){const a=[];let n=e;for(;n<=t;)a.push(new Date(n)),n=this.addDays(n,1);return a}async onDateClick(e){if(!this.outOfBounds(e))if("range"!==this.mode)await this.setValueAndEmit(e);else if(null===this.selectingDate)b(this.getAllDatesElements(),"gux-hovered"),this.selectingDate=new Date(e.valueOf()),this.value=i(e,e);else{const t=this.root.shadowRoot.querySelector(`td[data-date="${e.getTime()}"]`);t&&t.classList.add("gux-selected"),this.updateRangeElements(),await this.setValueAndEmit([this.selectingDate,e]),this.previewValue=e,this.selectingDate=null}}onDateMouseEnter(e){"range"===this.mode&&null!==this.selectingDate&&(this.value=i(e,this.selectingDate),this.updateRangeElements())}updateRangeElements(){if("range"===this.mode){b(this.getAllDatesElements(),"gux-hovered");const[e,t]=s(this.value);f(this.getRangeDatesElements(e,t),"add","gux-hovered")}}async onKeyDown(e){switch(e.key){case" ":case"Enter":e.preventDefault(),await this.onDateClick(this.previewValue);break;case"ArrowDown":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+7)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowUp":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-7)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowLeft":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-1)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"ArrowRight":e.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+1)),this.onDateMouseEnter(this.previewValue),r((()=>{this.focusPreviewDate()}));break;case"PageUp":this.incrementPreviewDateByMonth(1),this.onDateMouseEnter(this.previewValue);break;case"PageDown":this.incrementPreviewDateByMonth(-1),this.onDateMouseEnter(this.previewValue)}}componentWillLoad(){if(u(this.root,{variant:this.mode}),this.locale=l(this.root),this.startDayOfWeek=this.startDayOfWeek||c(this.locale),!this.value){const e=new Date;e.setHours(0,0,0,0),this.value="range"===this.mode?i(e,e):d(e)}this.previewValue=o(this.value)}componentDidRender(){this.updateRangeElements()}renderMonthHeader(){return a("div",{class:"gux-month-list"},Array.from(Array(this.numberOfMonths).keys()).map((e=>{const t=function(e,t){const a=new Date(e);return a.setDate(1),a.setMonth(a.getMonth()+t),a}(this.previewValue,e);return a("label",null,v(t,this.locale))})))}renderCalendarTable(e){return a("table",null,a("tr",null,function(e,t){const a=[],n=new Date(1970,0,4);for(let t=0;t<7;t++){const t=n.toLocaleString(e,{weekday:"narrow"});a.push(t),n.setDate(n.getDate()+1)}return(r=a).concat(r.splice(0,(i=t)>r.length?i%r.length:i));var r,i}(this.locale,this.startDayOfWeek).map((e=>a("th",null,e)))),this.getMonthDays(e).map((e=>a("tr",null,e.map((e=>a("td",{tabindex:this.isFocusableDate(e)?"0":"-1",class:e.class,"aria-hidden":e.hidden?"true":"false","aria-disabled":e.disabled?"true":"false","data-date":e.date.getTime(),onClick:()=>{this.onDateClick(e.date)},onMouseEnter:()=>this.onDateMouseEnter(e.date),onKeyDown:e=>{this.onKeyDown(e)}},a("div",{class:"gux-date"},e.date.getDate(),a("span",{class:"gux-sr-only"},v(e.date,this.locale))))))))))}render(){return a("div",{key:"8c2735faadd06a9810b3b0f48abc0d2be8c29c6f",class:"gux-calendar"},a("div",{key:"ded34ebeead1c0a4df65cf51906e9c7d514fa93e",class:"gux-header"},a("button",{key:"cedfad47d44db1003806ed47a32b9fd4327751fc",type:"button",class:"gux-left",onClick:()=>this.incrementPreviewDateByMonth(-1),tabindex:"-1","aria-hidden":"true"},a("gux-icon",{key:"36e0f9d505339ae11bbb6b7f2548cde68abc7741",size:"small",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})),this.renderMonthHeader(),a("button",{key:"f56e6ff0c1261e7c51e0639b26680a70f5205e3d",type:"button",class:"gux-right",onClick:()=>this.incrementPreviewDateByMonth(1),tabindex:"-1","aria-hidden":"true"},a("gux-icon",{key:"959ebaa13f1a7e435782d38bdde87e4e4f56a2c0",size:"small",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("div",{key:"4c63e229090bcd6eab870ea8dac3bead564744a5",class:"gux-content"},Array.from(Array(this.numberOfMonths).keys()).map((e=>this.renderCalendarTable(e)))))}get root(){return n(this)}};m.style=":host{display:inline-block}.gux-calendar{margin-block-start:2px;border-radius:8px;box-shadow:var(--gse-ui-calendarMenu-boxShadow)}.gux-calendar .gux-header{position:relative;display:flex;gap:var(--gse-ui-calendarMenu-header-gap);align-items:center;justify-content:space-between;block-size:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-weight:var(--gse-ui-calendarMenu-month-headerText-fontWeight);color:var(--gse-ui-calendarMenu-header-foregroundColor);background-color:var(--gse-ui-calendarMenu-header-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-header-borderRadius)}.gux-calendar .gux-header button{position:absolute;color:var(--gse-ui-calendarMenu-header-foregroundColor);cursor:pointer;outline:none;background:none;border:none}.gux-calendar .gux-header button:focus-visible{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)}.gux-calendar .gux-header button.gux-left{inset-inline-start:18px}.gux-calendar .gux-header button.gux-right{inset-inline-end:18px}.gux-calendar .gux-header button gux-icon{pointer-events:none}.gux-calendar .gux-header .gux-month-list{display:flex;justify-content:space-between;inline-size:100%;font-family:var(--gse-ui-calendarMenu-month-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-headerText-fontSize);line-height:var(--gse-ui-calendarMenu-month-headerText-lineHeight)}.gux-calendar .gux-header .gux-month-list label{inline-size:100%;text-align:center}.gux-calendar .gux-content{display:flex;align-items:flex-start;block-size:var(--gse-ui-calendarMenu-height);padding:var(--gse-ui-calendarMenu-dateBody-padding);color:var(--gse-ui-calendarMenu-month-default-foregroundColor);background-color:var(--gse-ui-calendarMenu-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius)}.gux-calendar .gux-content table{inline-size:var(--gse-ui-calendarMenu-day-input-width);text-align:start;-ms-user-select:none;user-select:none;table-layout:fixed;border-spacing:0}.gux-calendar .gux-content table:not(:last-child){padding-inline-end:24px}.gux-calendar .gux-content table tr{block-size:var(--gse-ui-calendarMenu-day-input-height)}.gux-calendar .gux-content table tr:empty{display:none}.gux-calendar .gux-content table tr th,.gux-calendar .gux-content table tr td{inline-size:var(--gse-ui-calendarMenu-day-date-size);block-size:var(--gse-ui-calendarMenu-day-date-size);padding:0;margin:0;text-align:center}.gux-calendar .gux-content table tr th{font-family:var(--gse-ui-calendarMenu-day-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-day-headerText-fontSize);font-weight:var(--gse-ui-calendarMenu-day-headerText-fontWeight);line-height:var(--gse-ui-calendarMenu-day-headerText-lineHeight)}.gux-calendar .gux-content table tr td{font-family:var(--gse-ui-calendarMenu-date-defaultText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-defaultText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-defaultText-fontWeight);line-height:var(--gse-ui-calendarMenu-date-defaultText-lineHeight);color:var(--gse-ui-calendarMenu-date-default-foregroundColor);cursor:pointer}.gux-calendar .gux-content table tr td.gux-hovered{background-color:var(--gse-ui-calendarMenu-date-range-backgroundColor)}.gux-calendar .gux-content table tr td.gux-selected{color:var(--gse-ui-calendarMenu-date-selected-foregroundColor);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-selected:hover:not(.gux-calendar .gux-content table tr td.gux-selected.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-selected.gux-end-date){background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date,.gux-calendar .gux-content table tr td.gux-end-date{background-color:var(--gse-ui-calendarMenu-date-range-backgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date .gux-date,.gux-calendar .gux-content table tr td.gux-end-date .gux-date{display:flex;align-items:center;justify-content:center;inline-size:var(--gse-ui-calendarMenu-day-date-size);block-size:var(--gse-ui-calendarMenu-day-date-size);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-start-date .gux-date:hover,.gux-calendar .gux-content table tr td.gux-end-date .gux-date:hover{background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar .gux-content table tr td.gux-start-date{border-radius:var(--gse-ui-calendarMenu-range-date-startDate-borderRadius)}.gux-calendar .gux-content table tr td.gux-end-date{border-radius:var(--gse-ui-calendarMenu-range-date-endDate-borderRadius)}.gux-calendar .gux-content table tr td:hover:not(.gux-calendar .gux-content table tr td.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-end-date):not(.gux-calendar .gux-content table tr td.gux-hovered):not(.gux-calendar .gux-content table tr td.gux-selected){background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar .gux-content table tr td.gux-disabled{pointer-events:none;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar .gux-content table tr td.gux-not-in-month{opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar .gux-content table tr td.gux-not-in-month:hover{background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor)}.gux-calendar .gux-content table tr td.gux-not-in-month.gux-hidden{visibility:hidden}.gux-calendar .gux-content table tr td.gux-current-date{font-family:var(--gse-ui-calendarMenu-date-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-currentText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-currentText-fontWeight);line-height:var(--gse-ui-calendarMenu-date-currentText-lineHeight)}.gux-calendar .gux-content table tr td:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-focusBorderRadius);outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{m as gux_calendar}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as s,h as i,g as e}from"./p-c2a62a18.js";import{a as o,c as a,o as r,f as h,s as n,h as p,b as c}from"./p-864af39c.js";import{a as d}from"./p-cf0e7d3b.js";import{O as l}from"./p-6a2b1013.js";import{t as
|
1
|
+
import{r as t,c as s,h as i,g as e}from"./p-c2a62a18.js";import{a as o,c as a,o as r,f as h,s as n,h as p,b as c}from"./p-864af39c.js";import{a as d}from"./p-cf0e7d3b.js";import{O as l}from"./p-6a2b1013.js";import{t as u}from"./p-331098f4.js";import{f as b}from"./p-9b0d3713.js";const f=class{constructor(i){t(this,i),this.guxdismiss=s(this,"guxdismiss",7),this.disconnect=void 0,this.for=void 0,this.position="bottom",this.displayDismissButton=void 0,this.closeOnClickOutside=!1,this.isOpen=!1}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.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(),n(),p(),c({element:this.arrowElement,padding:16})]}).then((({x:t,y:s,middlewareData:i,placement:e})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${s}px`});const o={top:"bottom",right:"left",bottom:"top",left:"right"}[e.split("-")[0]];if(i.arrow){const{x:t,y:s}=i.arrow;this.popupElement.setAttribute("data-placement",e),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=s?`${s}px`:"",right:"",bottom:"",[o]:"-6.5px",transform:"rotate(45deg)"})}i.hide&&Object.assign(this.popupElement.style,{visibility:i.hide.referenceHidden?"hidden":"visible"})}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1,this.popupElement.togglePopover())}focusFirstItemInPopupList(){d((()=>{this.listElement.guxFocusFirstItem()}))}onKeydown(t){switch(t.key){case"Enter":case" ":this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition(),this.focusFirstItemInPopupList()}}onMouseup(){this.popupElement.togglePopover(),this.isOpen=!this.isOpen,this.runUpdatePosition()}connectedCallback(){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:"cdea9ebee6b85deab6bbcfc44ca8a9626e8ef8f2",ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0,popover:"manual"},i("div",{key:"6e59da2b8f942a46f41b6d57b7ea2b393d881571",ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&i("gux-dismiss-button",{key:"6ded178ca872ba0fab15967d4eb2583191e2632b",onClick:this.dismiss.bind(this)}),i("div",{key:"cb33cdb1975874d5d4cfd069357ec2129965ee06",class:"gux-popover-content"},i("slot",{key:"3398bff040d97a76c937f259872652f869e76469"})))}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"})],f.prototype,"checkForClickOutside",null),f.style=":popover-open{position:absolute;inset:unset}.gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;overflow-y:hidden;background-color:var(--gse-ui-popover-backgroundColor);border:none;border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow);}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}";export{f as gux_popover_list_beta}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as t,g as
|
1
|
+
import{r as e,h as t,g as o}from"./p-c2a62a18.js";import{t as a}from"./p-331098f4.js";import{g as i}from"./p-0268a3e8.js";const r=class{constructor(t){e(this,t),this.variant="info",this.placement="right"}componentWillLoad(){a(this.root,{variant:this.variant})}getVariantIcon(e){return"question"===e?"fa/circle-question-regular":"fa/circle-info-regular"}async showTooltip(){return await this.tooltipElement.showTooltip()}async hideTooltip(){return await this.tooltipElement.hideTooltip()}render(){return t("div",{key:"61c9218e6577b4836f5326dbe1810e38bd326ed3",class:"gux-label-info"},t("gux-screen-reader-beta",{key:"3cf9c2a55b8c7999a929cdb779d8b788f3963c89"},i(this.root,"content")),t("gux-icon",{key:"59597212b0fedcab0229cfcaabe25aa4dca7f20c","icon-name":this.getVariantIcon(this.variant),size:"small",decorative:!0}),t("gux-tooltip-beta",{key:"6e853294fdca7244a480d7cf9bbe5a9c9d67dbd5",placement:this.placement,ref:e=>this.tooltipElement=e},t("slot",{key:"b30c8327689ef3db24ec6192f05b4222358b5ed1",name:"content"})))}get root(){return o(this)}};r.style=".gux-label-info{inline-size:fit-content;padding:0;line-height:0;background-color:transparent;border:none;border-radius:var(--gse-ui-formControl-label-tooltipTrigger-borderRadius)}.gux-label-info gux-tooltip{padding-inline-start:0}.gux-label-info gux-icon{vertical-align:bottom;color:var(--gse-ui-formControl-label-tooltipTrigger-color)}";export{r as gux_label_info_beta}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as o,h as a,g as s}from"./p-c2a62a18.js";import{t as e}from"./p-
|
1
|
+
import{r as t,c as o,h as a,g as s}from"./p-c2a62a18.js";import{t as e}from"./p-331098f4.js";import{h as i}from"./p-6d8b4027.js";import{a as n}from"./p-8eaf8caf.js";const r=class{constructor(a){t(this,a),this.guxdismiss=o(this,"guxdismiss",7),this.toastType="success",this.hasLink=!1,this.hasPrimaryButton=!1,this.hasSecondaryButton=!1}componentWillLoad(){e(this.root,{variant:this.toastType}),this.hasPrimaryButton=i(this.root,"primary-button"),this.hasSecondaryButton=i(this.root,"secondary-button"),this.hasLink=i(this.root,"link")}componentDidLoad(){this.checkAriaLive()}checkAriaLive(){let t=this.root.parentElement;for(;t;){if(t.hasAttribute("aria-live"))return;t=t.parentElement}n(this.root,"gux-toast must have a parent element with an `aria-live` attribute")}renderToastIcon(){switch(this.toastType){case"success":return a("gux-icon",{"icon-name":"fa/circle-check-solid",decorative:!0});case"warning":return a("gux-icon",{"icon-name":"fa/triangle-exclamation-solid",decorative:!0});case"error":return a("gux-icon",{"icon-name":"fa/hexagon-exclamation-solid",decorative:!0});case"info":return a("gux-icon",{"icon-name":"fa/circle-info-solid",decorative:!0});case"action":return a("slot",{name:"icon"})}}renderLink(){return a("div",{class:"gux-buttons-bar"},a("gux-link-beta",{standalone:!0},a("slot",{name:"link"})))}renderActions(){return a("gux-cta-group",{class:"gux-buttons-bar",align:"end"},this.hasSecondaryButton&&a("gux-button-slot",{slot:"secondary"},a("slot",{name:"secondary-button"})),a("gux-button-slot",{slot:"primary"},a("slot",{name:"primary-button"})))}render(){return a("div",{key:"ce0bcc99ac3578cb3e3699cd09f41fb5749cba47",class:`gux-toast gux-toast-${this.toastType}`},a("div",{key:"68204dff3bbef05163347f17a738072fb3aa7297",class:`gux-icon gux-icon-${this.toastType}`},this.renderToastIcon()),a("div",{key:"046d719d4f620e59a4de75e6be15045b59acd3dd",class:"gux-content"},a("div",{key:"748c8736d3ba84d90b2aea7b67cd7ce174c64729",class:"gux-message"},a("gux-truncate",{key:"e92fe7024f0f7e265aff213c4e7313d40c1a084b",class:"gux-message-title","max-lines":1},a("slot",{key:"2933d8e8b3ccb95d95fc84969e20e57a86afe92a",name:"title"})),a("gux-truncate",{key:"6ca1eb9c458e97c20b5d8a607358c39440f1a975",class:"gux-message-body","max-lines":2},a("slot",{key:"b2c5ab195271e1122144b750dcc8eeec939d2365",name:"message"}))),"action"!==this.toastType&&this.hasLink&&this.renderLink(),"action"===this.toastType&&this.hasPrimaryButton&&this.renderActions()),a("gux-dismiss-button",{key:"1819f59f0930eb56ec8adf56684def7009ab514e",position:"inherit",onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(t){t.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return s(this)}};r.style=".gux-toast{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-toast-gap);place-content:stretch flex-start;align-items:flex-start;inline-size:var(--gse-ui-toast-wrappingWidth);padding:var(--gse-ui-toast-margin);margin-block-end:var(--gse-ui-toast-stacking-gap);border-radius:var(--gse-ui-toast-borderRadius);box-shadow:var(--gse-ui-toast-boxShadow)}.gux-toast .gux-icon ::slotted(gux-icon){inline-size:var(--gse-ui-toast-icon) !important;block-size:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon gux-icon{inline-size:var(--gse-ui-toast-icon) !important;block-size:var(--gse-ui-toast-icon) !important}.gux-toast .gux-icon.gux-icon-error{color:var(--gse-ui-toast-error-iconColor)}.gux-toast .gux-icon.gux-icon-warning{color:var(--gse-ui-toast-warning-iconColor)}.gux-toast .gux-icon.gux-icon-success{color:var(--gse-ui-toast-success-iconColor)}.gux-toast .gux-icon.gux-icon-info{color:var(--gse-ui-toast-info-iconColor)}.gux-toast .gux-icon.gux-icon-action{color:var(--gse-ui-toast-action-iconColor)}.gux-toast .gux-content{display:flex;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;gap:var(--gse-ui-toast-gapButton);place-content:stretch flex-start;align-items:flex-start;align-self:auto;order:0}.gux-toast .gux-content .gux-message{display:flex;flex-direction:column;gap:var(--gse-ui-toast-gapText)}.gux-toast .gux-content .gux-message .gux-message-title{font-family:var(--gse-ui-toast-heading-fontFamily);font-size:var(--gse-ui-toast-heading-fontSize);font-weight:var(--gse-ui-toast-heading-fontWeight);line-height:var(--gse-ui-toast-heading-lineHeight)}.gux-toast .gux-content .gux-message .gux-message-body{font-family:var(--gse-ui-toast-text-fontFamily);font-size:var(--gse-ui-toast-text-fontSize);line-height:var(--gse-ui-toast-text-lineHeight)}.gux-toast .gux-content .gux-buttons-bar{inline-size:100%}.gux-toast.gux-toast-success{background-color:var(--gse-ui-toast-success-backgroundColor)}.gux-toast.gux-toast-success .gux-message{color:var(--gse-ui-toast-success-foregroundColor)}.gux-toast.gux-toast-warning{background-color:var(--gse-ui-toast-warning-backgroundColor)}.gux-toast.gux-toast-warning .gux-message{color:var(--gse-ui-toast-warning-foregroundColor)}.gux-toast.gux-toast-error{background-color:var(--gse-ui-toast-error-backgroundColor)}.gux-toast.gux-toast-error .gux-message{color:var(--gse-ui-toast-error-foregroundColor)}.gux-toast.gux-toast-info{background-color:var(--gse-ui-toast-info-backgroundColor)}.gux-toast.gux-toast-info .gux-message{color:var(--gse-ui-toast-info-foregroundColor)}.gux-toast.gux-toast-action{background-color:var(--gse-ui-toast-action-backgroundColor)}.gux-toast.gux-toast-action .gux-message{color:var(--gse-ui-toast-action-foregroundColor)}";export{r as gux_toast}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as s,H as i,g as o}from"./p-c2a62a18.js";import{t as r}from"./p-
|
1
|
+
import{r as t,h as s,H as i,g as o}from"./p-c2a62a18.js";import{t as r}from"./p-331098f4.js";import{b as e}from"./p-16feb2a1.js";import{g as n,f as a,t as c}from"./p-bd48b8c8.js";import"./p-4202e9f2.js";const h=class{constructor(s){t(this,s),this.timeZoneId=void 0,this.offset=void 0,this.surroundOffset=void 0,this.shorten=void 0}renderZoneDisplay(){let t=this.i18n(this.timeZoneId);this.shorten&&(t=function(t){const s=t.split("/");return(null==s?void 0:s.pop())||t}(t));let i=t;if(this.offset){const s=function(t,s){const i=n().find((t=>t.name===s));return`${t}${a(null==i?void 0:i.currentTimeOffsetInMinutes)}`}(this.i18n("UTC"),this.timeZoneId);i=`${t} ${s}`,this.surroundOffset&&(i=`${t} (${s})`)}return s("span",null,i)}async componentWillLoad(){r(this.root),this.i18n=await e(this.root,c,"gux-time-zone-picker")}render(){return s(i,{key:"1022ccbeea3f4883dd1426de0746cfc839e343f3"},this.renderZoneDisplay())}get root(){return o(this)}};export{h as gux_time_zone_beta}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,h as r,g as s}from"./p-c2a62a18.js";import{t}from"./p-331098f4.js";const a=class{constructor(r){e(this,r),this.screenreaderText=void 0}componentWillLoad(){t(this.root)}render(){return r("gux-radial-loading",{key:"0d4ca2add38e62428137de8b072523da164e620f",class:"gux-spinner","screenreader-text":this.screenreaderText,context:"full-page"})}get root(){return s(this)}};a.style=":host{display:flex}.gux-spinner{margin:auto}";export{a as gux_page_loading_spinner}
|
@@ -1 +1 @@
|
|
1
|
-
import{a as e,r,h as a,g as l}from"./p-c2a62a18.js";import{t as o}from"./p-da402bc8.js";import{l as s}from"./p-8eaf8caf.js";const t=["fa/arrow-left-to-line-solid","fa/arrow-right-to-line-solid"],i={"8x8":"custom/8x8","8x8-alt":"custom/8x8-solid",add:"fa/plus-regular","add-circle":"fa/circle-plus-regular",agent:"fa/head-side-headphones-regular","agent-circle":"custom/circle-head-side-headphones-regular","agent-group":"fa/people-group-regular","alert-info":"fa/circle-info-regular","alert-success":"deprecated/fa/circle-check-regular","alert-warning-octogon":"fa/hexagon-exclamation-regular","alert-warning-triangle":"fa/triangle-exclamation-regular",android:"fa/android","app-chart":"fa/square-poll-vertical-regular","app-generic":"fa/browser-regular","app-layout":"fa/table-layout-regular","app-table":"fa/table-regular",apple:"fa/apple",archive:"fa/box-archive-regular","arrow-down":"fa/arrow-down-regular","arrow-down-left":"fa/arrow-down-left-regular","arrow-down-right":"fa/arrow-down-right-regular","arrow-left":"fa/arrow-left-regular","arrow-right":"fa/arrow-right-regular","arrow-solid-down":"fa/caret-down-solid","arrow-solid-left":"fa/caret-left-solid","arrow-solid-right":"fa/caret-right-solid","arrow-solid-up":"fa/caret-up-solid","arrow-up":"fa/arrow-up-regular","arrow-up-left":"fa/arrow-up-left-regular","arrow-up-right":"fa/arrow-up-right-regular",at:"fa/at-regular",attachment:"fa/paperclip-regular",backspace:"fa/delete-left-regular","badge-amount":"fa/circle-0-solid","badge-check":"fa/circle-check-solid","badge-edit":"fa/pen-circle-regular","badge-file":"deprecated/badge-file","badge-pause":"fa/circle-pause-solid","badge-x":"fa/circle-xmark-solid","ban-outline":"deprecated/fa/ban-regular",bell:"fa/bell-regular",bolt:"fa/bolt-regular",bot:"fa/robot-regular",branch:"fa/code-branch-regular",bug:"fa/bug-regular",bus:"fa/bus-simple-regular",calendar:"fa/calendar-regular","calendar-add":"fa/calendar-plus-regular","calendar-clock":"fa/calendar-clock-regular",campaign:"fa/bullhorn-regular",certificate:"fa/file-certificate-regular",chat:"fa/message-lines-regular","chat-bell":"custom/message-bell-regular","chat-close":"fa/message-xmark-regular","chat-disable":"fa/message-slash-regular","chat-multi":"fa/messages-regular","chat-notification-score":"custom/message-bell-regular",checkbox:"fa/square-regular","checkbox-active":"fa/square-check-solid","checkbox-partial":"fa/square-minus-regular",checkmark:"custom/check-small-regular","chevron-double-down":"fa/chevrons-down-regular","chevron-double-left":"fa/chevrons-left-regular","chevron-double-right":"fa/chevrons-right-regular","chevron-double-up":"fa/chevrons-up-regular","chevron-left":"fa/chevron-left-regular","chevron-right":"fa/chevron-right-regular","chevron-small-down":"custom/chevron-down-small-regular","chevron-small-left":"custom/chevron-left-small-regular","chevron-small-right":"custom/chevron-right-small-regular","chevron-small-up":"custom/chevron-up-small-regular",chrome:"fa/chrome","cjv-badge-file":"fa/file-regular","cjv-calendar-clock":"fa/calendar-clock-regular","cjv-custom-default":"deprecated/cjv-custom-default","cjv-custom-event":"fa/circle-star-solid","cjv-custom-session":"custom/rectangules-arrow-left-to-right-regular","cjv-default-event":"fa/circle-star-solid","cjv-delivery":"fa/truck-regular","cjv-finance-invoice":"fa/file-invoice-dollar-regular","cjv-form-abandoned":"fa/file-circle-xmark-regular","cjv-form-submitted":"custom/file-arrow-up-regular","cjv-generic-application":"fa/file-user-regular","cjv-offer-closed":"fa/circle-xmark-solid","cjv-offer-ignored":"fa/subtract-circle-solid","cjv-offer-offered":"fa/circle-chevron-right-solid","cjv-offer-opened":"fa/badge-check-solid","cjv-outcome-achieved":"fa/circle-check-solid","cjv-page-view":"fa/circle-dot-regular","cjv-policy-contract":"fa/file-contract-regular","cjv-product-added":"fa/cart-circle-plus-regular","cjv-product-purchased":"fa/cart-circle-check-regular","cjv-product-removed":"fa/cart-circle-xmark-regular","cjv-search":"fa/magnifying-glass-regular","cjv-segment":"fa/chart-pie-simple-regular","cjv-segment-assigned":"fa/circle-quarter-regular","cjv-web-session":"fa/globe-regular","cjv-webchat-accepted":"fa/message-check-solid","cjv-webchat-error":"fa/message-xmark-solid","cjv-webchat-ignored":"fa/message-minus-solid","cjv-webchat-offered":"fa/message-arrow-up-right-solid","cjv-webchat-rejected":"fa/message-xmark-solid","cjv-webchat-requested":"fa/message-plus-solid","cjv-webchat-submitted":"fa/message-arrow-up-solid","cjv-webchat-timeout":"fa/timer-regular",clipboard:"fa/clipboard-regular","clipboard-error":"fa/clipboard-question-regular","clipboard-success":"fa/clipboard-check-regular",clock:"fa/clock-regular","clock-outline":"fa/clock-regular",clone:"fa/clone-regular",close:"fa/xmark-large-regular","close-circle":"deprecated/fa/circle-xmark-regular",cloud:"fa/cloud-regular","cloud-outline":"fa/cloud-regular",coaching:"fa/whistle-regular",cobrowse:"deprecated/cobrowse",collapse:"fa/arrow-down-left-and-arrow-up-right-to-center-regular",comments:"fa/message-lines-regular","comments-disable":"fa/message-slash-regular",configuration:"fa/block-brick-regular","control-end":"fa/forward-fast-regular","control-pause":"fa/pause-regular","control-play":"fa/play-regular","control-skip-left":"fa/backward-regular","control-skip-right":"fa/forward-regular","control-slide-back":"fa/backward-step-regular","control-slide-forward":"fa/forward-step-regular","control-start":"fa/backward-fast-regular","control-stop":"fa/stop-regular",copy:"fa/copy-regular","custom/add-column-after":"custom/table-column-plus-right-regular","custom/add-column-before":"custom/table-column-plus-left-regular","custom/add-row-after":"custom/table-row-plus-bottom-regular","custom/add-row-before":"custom/table-row-plus-top-regular","custom/binoculars-slash-regular":"custom/regular-binoculars-slash","custom/carousel":"custom/rectangle-carousel-regular","custom/clipboard-list-slash-regular":"custom/regular-clipboard-list-slash","custom/co-browse":"custom/screen-monitor-regular","custom/delete-column":"custom/table-column-xmark-regular","custom/delete-row":"custom/table-row-xmark-regular","custom/delete-table":"custom/table-xmark-regular","custom/file-pen-question":"custom/file-pen-question-regular","custom/filter-notification":"custom/filter-dot-regular","custom/font-regular-highlight":"custom/font-underline-regular","custom/one-button":"custom/mobiles-one-button-regular","custom/person-running":"fa/person-running-solid","custom/quick-reply":"custom/circle-buttons-regular","custom/three-button":"custom/mobile-three-button-regular","custom/wrap-text-inline":"custom/wrap-text-inline-regular","custom/wrap-text-tight":"custom/wrap-text-tight-regular","custom/wrap-text-top-bottom":"custom/wrap-text-top-bottom-regular","customer-journey":"fa/map-location-dot-regular",cut:"fa/scissors-regular",dash:"fa/gauge-simple-high-regular",delete:"fa/trash-regular","device-camera":"fa/camera-regular","device-cellphone":"fa/mobile-regular","device-headphones":"fa/headphones-regular","device-laptop":"fa/laptop-regular","device-pc":"deprecated/device-pc","device-server":"fa/server-regular","device-tablet":"fa/tablet-regular",download:"fa/arrow-down-to-line-regular",edge:"fa/edge-legacy",edit:"fa/pen-regular","email-notification-score":"fa/envelope-dot-regular",expand:"fa/arrow-up-right-and-arrow-down-left-from-center-regular",export:"fa/arrow-up-from-line-regular","external-link":"fa/arrow-up-right-from-square-regular","fa/00-solid":"fa/00-regular","fa/arrows-rotate-solid":"fa/arrows-rotate-regular","fa/ban-regular":"deprecated/fa/ban-regular","fa/check-solid":"custom/check-small-regular","fa/circle-check-regular":"deprecated/fa/circle-check-regular","fa/circle-xmark-regular":"deprecated/fa/circle-xmark-regular","fa/clock-outline":"fa/clock-regular","fa/comment-dots-regular":"fa/message-dots-regular","fa/comments-regular":"fa/messages-regular","fa/diagram-project-gear-regular":"fa/regular-diagram-project-gear","fa/eye-regular":"deprecated/fa/eye-regular","fa/eye-slash-regular":"deprecated/fa/eye-slash-regular","fa/life-ring-regular":"deprecated/fa/life-ring-regular","fa/link-horizontal-slash-regular":"fa/link-slash-regular","fa/link-horizontal-solid":"fa/link-regular","fa/list-radio-clean-regular":"fa/list-ul-regular","fa/list-radio-regular":"fa/list-ul-regular","fa/list-regular":"fa/list-ul-regular","fa/rectangle-list-regular":"fa/square-list-regular","fa/reply-regular":"custom/reply-regular","fa/right-to-bracket-regular":"fa/arrow-right-to-bracket-regular","fa/share-regular":"custom/share-regular","fa/volume-regular":"deprecated/fa/volume-regular","face-empathy":"deprecated/face-empathy","face-happy":"fa/face-smile-regular","face-happy-solid":"fa/face-smile-solid","face-neutral":"fa/face-meh-regular","face-neutral-solid":"fa/face-meh-solid","face-sad":"fa/face-frown-regular","face-sad-solid":"fa/face-frown-solid",facebook:"fa/facebook","facebook-messenger":"fa/facebook-messenger",fax:"fa/fax-regular",file:"fa/file-regular","file-all":"fa/files-regular","file-audio":"deprecated/fa/volume-regular","file-image-landscape":"fa/image-regular","file-image-portrait":"fa/image-portrait-regular","file-pdf":"fa/file-pdf-regular","file-preview":"fa/file-magnifying-glass-regular","file-report":"fa/file-chart-column-regular","file-text":"fa/file-lines-regular","file-video":"fa/video-regular",filter:"fa/filter-regular",fire:"fa/fire-regular",firefox:"fa/firefox",flag:"fa/flag-regular",folder:"fa/folder-regular","folder-add":"fa/folder-plus-regular","folder-open":"fa/folder-open-regular",follow:"fa/binoculars-regular",generic:"fa/shapes-regular",globe:"fa/earth-africa-regular","grab-horizontal":"fa/grip-solid","grab-vertical":"fa/grip-vertical-solid","graph-bar-horizontal":"fa/chart-bar-regular","graph-bar-vertical":"fa/chart-column-regular","graph-bubble":"fa/chart-scatter-bubble-regular","graph-chart":"fa/chart-area-regular","graph-line":"fa/chart-line-regular","graph-pie":"fa/chart-pie-regular","graph-spark":"custom/chart-line-spark-regular","group-standard":"custom/users-light",help:"fa/circle-question-regular",home:"fa/home-regular",hourglass:"fa/hourglass-half-regular",import:"fa/file-import-regular",inbox:"fa/inbox-regular",inspect:"deprecated/fa/eye-regular","inspect-disable":"deprecated/fa/eye-slash-regular",instagram:"fa/instagram","internet-explorer":"fa/internet-explorer",key:"fa/key-regular",lightbulb:"fa/lightbulb-regular","line-messenger":"fa/line",link:"fa/link-regular",linkedin:"fa/linkedin",linux:"fa/linux",lock:"fa/lock-regular","lock-hold":"custom/lock-keyholes-regular",logout:"fa/arrow-right-from-bracket-regular","low-bandwidth":"fa/wifi-slash-regular",lunch:"fa/utensils-regular",menu:"fa/bars-regular","menu-kebab-horizontal":"fa/ellipsis-regular","menu-kebab-vertical":"fa/ellipsis-vertical-regular","message-email":"fa/envelope-regular","message-email-outbound":"custom/envelope-arrow-up-right-regular","message-forward":"custom/share-regular","message-reply":"custom/reply-regular","message-reply-all":"custom/reply-all-regular",microphone:"fa/microphone-regular","microphone-disable":"fa/microphone-slash-regular","microphone-talking":"custom/microphone-line-on-regular",microsoft:"fa/microsoft","microsoft-teams":"custom/microsoft-teams",moon:"fa/moon-regular",music:"fa/music-regular",notes:"fa/memo-regular",notification:"fa/circle-solid",opera:"fa/opera","operator-pair":"custom/users-headset-regular",paint:"fa/fill-drip-regular",palette:"fa/palette-regular","parking-sign-regular":"fa/square-parking-regular",paste:"fa/paste-regular",people:"fa/people-pants-simple-regular",phone:"fa/phone-regular","phone-bell":"custom/phone-bell-regular","phone-call-directory":"deprecated/phone-call-directory","phone-call-history":"custom/phone-bars-regular","phone-callback":"custom/phone-arrow-left-regular","phone-close":"fa/phone-xmark-regular","phone-conference":"custom/phone-big-small-regular","phone-dialpad":"fa/grid-regular","phone-disable":"fa/phone-slash-regular","phone-forward":"fa/phone-arrow-right-regular","phone-hangup":"fa/phone-hangup-regular","phone-hold":"custom/phone-clock-regular","phone-inbound":"fa/phone-arrow-down-left-regular","phone-missed-call":"fa/phone-missed-regular","phone-notification-score":"custom/phone-star-regular","phone-outbound":"fa/phone-arrow-up-right-regular","phone-success":"custom/phone-check-regular","phone-voice":"custom/phone-high-volume-regular",pin:"fa/thumbtack-regular","pin-location":"fa/location-dot-regular",post:"fa/newspaper-regular","product-logo-beyond":"custom/genesys-beyond","product-logo-g":"custom/genesys","quote-left":"fa/quote-left-regular","quote-right":"fa/quote-right-regular",radio:"fa/circle-regular","radio-active":"fa/circle-dot-regular",rating:"fa/star-regular","rating-active":"fa/star-solid","rating-partial":"fa/star-sharp-half-stroke-regular",record:"fa/waveform-lines-regular",refresh:"fa/arrows-rotate-regular",reset:"fa/arrow-rotate-left-regular",resource:"fa/notebook-regular",retweet:"custom/arrows-retweet-regular","roster-chat":"fa/message-lines-regular","roster-chat-disable":"fa/message-slash-regular","roster-email":"fa/envelope-regular","roster-email-disable":"fa/regular-envelope-slash","roster-instagram":"fa/instagram","roster-instagram-disable":"custom/instagram-slash","roster-line":"fa/line","roster-line-disable":"custom/line-slash","roster-message":"fa/message-lines-regular","roster-message-disable":"fa/message-xmark-regular","roster-messenger":"fa/facebook-messenger","roster-messenger-disable":"custom/facebook-messenger-slash","roster-phone":"fa/phone-regular","roster-phone-disable":"fa/phone-slash-regular","roster-sms":"fa/message-dots-regular","roster-sms-disable":"fa/message-slash-regular","roster-twitter":"fa/twitter","roster-twitter-disable":"custom/twitter-slash","roster-wechat":"fa/weixin","roster-wechat-disable":"deprecated/roster-wechat-disable","roster-whatsapp":"fa/whatsapp","roster-whatsapp-disable":"fa/custon-whatsapp-slash",rss:"fa/square-rss-solid",run:"fa/person-running-solid",safari:"fa/safari",save:"fa/floppy-disk-regular","screen-share-regular":"custom/display-arrow-right-regular","screen-share-slash":"custom/display-arrow-right-slash-regular",scripter:"fa/scroll-regular",search:"fa/magnifying-glass-regular",send:"fa/paper-plane-top-regular",server:"fa/server-regular",settings:"fa/gear-regular",share:"fa/share-nodes-regular","shield-lock":"fa/shield-keyhole-regular","shield-outline":"fa/shield-check-regular","shield-solid":"fa/shield-check-solid",site:"fa/building-regular",skills:"fa/graduation-cap-regular",slideshare:"fa/slideshare",sms:"fa/message-dots-regular","sms-cancel":"fa/message-xmark-regular","sms-close":"fa/message-xmark-regular",stamp:"fa/stamp-regular",subtract:"fa/minus-regular","subtract-circle":"fa/subtract-circle-regular",sun:"fa/sun-bright-regular",tag:"fa/tag-regular","tag-add":"deprecated/tag-add","tag-remove":"deprecated/tag-remove",telegram:"fa/telegram",tenant:"fa/box-regular","thumbs-down":"fa/thumb-down-regular","thumbs-up":"fa/thumb-up-regular",timeline:"custom/arrow-turn-left-clock-regular","toolbar-apps":"custom/squares-big-small-regular","toolbar-apps-disable":"custom/squares-big-small-slash-regular","toolbar-assist":"deprecated/fa/life-ring-regular","toolbar-assist-disable":"custom/life-ring-slash-regular","toolbar-chat":"fa/message-regular","toolbar-chat-disable":"fa/message-slash-regular","toolbar-favorite":"deprecated/toolbar-favorite","toolbar-favourite":"fa/star-regular","toolbar-help":"fa/circle-question-regular","toolbar-inbox":"fa/inbox-regular","toolbar-interactions":"custom/user-talking-regular","toolbar-interactions-disable":"custom/user-talking-slash-regular","toolbar-notification":"fa/circle-solid","toolbar-phone":"fa/phone-regular","toolbar-phone-active-1":"custom/phone-low-volume-regular","toolbar-phone-active-2":"custom/phone-volume-regular","toolbar-phone-active-3":"custom/phone-high-volume-regular","toolbar-phone-disable":"fa/phone-slash-regular","toolbar-video":"fa/video-regular","toolbar-video-disable":"fa/video-slash-regular",trade:"fa/handshake-regular",transfer:"fa/arrow-right-arrow-left-regular",twitter:"fa/twitter",unknown:"fa/square-x-regular",unlink:"fa/link-slash-regular",unlock:"fa/unlock-regular",upload:"fa/upload-regular",user:"fa/user-regular","user-add":"fa/user-plus-regular","user-circle":"fa/circle-user-regular","user-contact-id":"fa/address-card-regular","user-directory":"fa/address-book-regular","user-group":"fa/users-regular","user-interactions":"custom/user-talking-regular","user-interactions-disable":"custom/user-talking-slash-regular",viber:"fa/viber",video:"fa/video-regular","video-disable":"fa/video-slash-regular","view-all":"fa/grid-4-regular","view-cells":"custom/columns-3-regular","view-grid":"fa/border-all-regular","view-list":"fa/square-list-regular","view-lists":"custom/columns-3-regular","view-roster":"fa/table-list-regular","view-stacked":"fa/table-rows-regular",voicemail:"fa/voicemail-regular","volume-disable":"fa/volume-slash-regular","volume-down":"fa/volume-low-regular","volume-none":"fa/volume-off-regular","volume-up":"deprecated/fa/volume-regular",web:"fa/globe-regular",webcam:"fa/camera-web-regular","webcam-disable":"fa/camera-web-slash-regular",wechat:"fa/weixin",whatsapp:"fa/whatsapp","window-actual-size":"fa/brackets-square-regular","window-contract":"fa/arrows-minimize-regular","window-drag-out":"fa/arrow-up-right-from-square-regular","window-expand":"fa/arrows-maximize-regular","window-fullscreen":"fa/arrows-maximize-regular","window-popout":"fa/square-arrow-up-right-regular",wordpress:"fa/wordpress",youtube:"fa/youtube","zoom-in":"fa/magnifying-glass-plus-regular","zoom-out":"fa/magnifying-glass-minus-regular"},u=Object.keys(i),c=new Map;function g(e){return t.includes(e)?`legacy/${e}`:u.includes(e)?i[e]:e}async function f(r){const a=function(e){return e.replace("/","-")}(r);if(c.has(a))return c.get(a);const l=async function(r){const a=await fetch(e(`./icons/${r}.svg`));if(200===a.status)return a.text();throw new Error(`[gux-icon] fetching failed for icon "${r}" with status "${a.statusText} (${a.status})".`)}(r).then((e=>e)).catch((e=>(setTimeout((()=>{throw e}),0),f("fa/square-x-regular"))));return c.set(a,l),l}const n=class{constructor(e){r(this,e),this.iconName=void 0,this.decorative=!1,this.screenreaderText="",this.size="inherit",this.svgHtml=void 0}async prepIcon(e){if(e){const r=g(e);this.baseSvgHtml=await f(r),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}}watchDecorative(e){this.validateProps(e,this.screenreaderText),this.baseSvgHtml&&(this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml))}watchScreenreaderText(e){this.validateProps(this.decorative,e),this.baseSvgHtml&&(this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml))}async componentWillLoad(){o(this.root,{variant:g(this.iconName)}),await this.prepIcon(this.iconName)}componentDidLoad(){this.validateProps(this.decorative,this.screenreaderText)}validateProps(e,r){this.root.isConnected&&(e||r||s(this.root,"No screenreader-text provided. Either provide a localized screenreader-text property or set `decorative` to true."))}getSvgWithAriaAttributes(e){const r=(new DOMParser).parseFromString(e,"image/svg+xml").firstChild;return r.setAttribute("role","img"),r.setAttribute("aria-hidden",this.decorative?String(this.decorative):"false"),this.screenreaderText?r.setAttribute("aria-label",this.screenreaderText):r.removeAttribute("aria-label"),r.outerHTML}render(){return this.svgHtml&&a("div",{key:"0a7b50082c3341de766e28cec4ff94917493139f",class:"gux-icon-container",innerHTML:this.svgHtml})}static get assetsDirs(){return["icons"]}get root(){return l(this)}static get watchers(){return{iconName:["prepIcon"],decorative:["watchDecorative"],screenreaderText:["watchScreenreaderText"]}}};n.style=":host{display:inline-flex;inline-size:1em;block-size:1em}:host([size=small]){inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}:host([size=medium]){inline-size:var(--gse-ui-icon-medium-size);block-size:var(--gse-ui-icon-medium-size)}:host([size=large]){inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size)}.gux-icon-container{display:flex;align-items:center;justify-content:center;inline-size:100%}.gux-icon-container svg{inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;fill:currentcolor}";export{n as gux_icon}
|
1
|
+
import{a as e,r,h as a,g as l}from"./p-c2a62a18.js";import{t as o}from"./p-331098f4.js";import{l as s}from"./p-8eaf8caf.js";const t=["fa/arrow-left-to-line-solid","fa/arrow-right-to-line-solid"],i={"8x8":"custom/8x8","8x8-alt":"custom/8x8-solid",add:"fa/plus-regular","add-circle":"fa/circle-plus-regular",agent:"fa/head-side-headphones-regular","agent-circle":"custom/circle-head-side-headphones-regular","agent-group":"fa/people-group-regular","alert-info":"fa/circle-info-regular","alert-success":"deprecated/fa/circle-check-regular","alert-warning-octogon":"fa/hexagon-exclamation-regular","alert-warning-triangle":"fa/triangle-exclamation-regular",android:"fa/android","app-chart":"fa/square-poll-vertical-regular","app-generic":"fa/browser-regular","app-layout":"fa/table-layout-regular","app-table":"fa/table-regular",apple:"fa/apple",archive:"fa/box-archive-regular","arrow-down":"fa/arrow-down-regular","arrow-down-left":"fa/arrow-down-left-regular","arrow-down-right":"fa/arrow-down-right-regular","arrow-left":"fa/arrow-left-regular","arrow-right":"fa/arrow-right-regular","arrow-solid-down":"fa/caret-down-solid","arrow-solid-left":"fa/caret-left-solid","arrow-solid-right":"fa/caret-right-solid","arrow-solid-up":"fa/caret-up-solid","arrow-up":"fa/arrow-up-regular","arrow-up-left":"fa/arrow-up-left-regular","arrow-up-right":"fa/arrow-up-right-regular",at:"fa/at-regular",attachment:"fa/paperclip-regular",backspace:"fa/delete-left-regular","badge-amount":"fa/circle-0-solid","badge-check":"fa/circle-check-solid","badge-edit":"fa/pen-circle-regular","badge-file":"deprecated/badge-file","badge-pause":"fa/circle-pause-solid","badge-x":"fa/circle-xmark-solid","ban-outline":"deprecated/fa/ban-regular",bell:"fa/bell-regular",bolt:"fa/bolt-regular",bot:"fa/robot-regular",branch:"fa/code-branch-regular",bug:"fa/bug-regular",bus:"fa/bus-simple-regular",calendar:"fa/calendar-regular","calendar-add":"fa/calendar-plus-regular","calendar-clock":"fa/calendar-clock-regular",campaign:"fa/bullhorn-regular",certificate:"fa/file-certificate-regular",chat:"fa/message-lines-regular","chat-bell":"custom/message-bell-regular","chat-close":"fa/message-xmark-regular","chat-disable":"fa/message-slash-regular","chat-multi":"fa/messages-regular","chat-notification-score":"custom/message-bell-regular",checkbox:"fa/square-regular","checkbox-active":"fa/square-check-solid","checkbox-partial":"fa/square-minus-regular",checkmark:"custom/check-small-regular","chevron-double-down":"fa/chevrons-down-regular","chevron-double-left":"fa/chevrons-left-regular","chevron-double-right":"fa/chevrons-right-regular","chevron-double-up":"fa/chevrons-up-regular","chevron-left":"fa/chevron-left-regular","chevron-right":"fa/chevron-right-regular","chevron-small-down":"custom/chevron-down-small-regular","chevron-small-left":"custom/chevron-left-small-regular","chevron-small-right":"custom/chevron-right-small-regular","chevron-small-up":"custom/chevron-up-small-regular",chrome:"fa/chrome","cjv-badge-file":"fa/file-regular","cjv-calendar-clock":"fa/calendar-clock-regular","cjv-custom-default":"deprecated/cjv-custom-default","cjv-custom-event":"fa/circle-star-solid","cjv-custom-session":"custom/rectangules-arrow-left-to-right-regular","cjv-default-event":"fa/circle-star-solid","cjv-delivery":"fa/truck-regular","cjv-finance-invoice":"fa/file-invoice-dollar-regular","cjv-form-abandoned":"fa/file-circle-xmark-regular","cjv-form-submitted":"custom/file-arrow-up-regular","cjv-generic-application":"fa/file-user-regular","cjv-offer-closed":"fa/circle-xmark-solid","cjv-offer-ignored":"fa/subtract-circle-solid","cjv-offer-offered":"fa/circle-chevron-right-solid","cjv-offer-opened":"fa/badge-check-solid","cjv-outcome-achieved":"fa/circle-check-solid","cjv-page-view":"fa/circle-dot-regular","cjv-policy-contract":"fa/file-contract-regular","cjv-product-added":"fa/cart-circle-plus-regular","cjv-product-purchased":"fa/cart-circle-check-regular","cjv-product-removed":"fa/cart-circle-xmark-regular","cjv-search":"fa/magnifying-glass-regular","cjv-segment":"fa/chart-pie-simple-regular","cjv-segment-assigned":"fa/circle-quarter-regular","cjv-web-session":"fa/globe-regular","cjv-webchat-accepted":"fa/message-check-solid","cjv-webchat-error":"fa/message-xmark-solid","cjv-webchat-ignored":"fa/message-minus-solid","cjv-webchat-offered":"fa/message-arrow-up-right-solid","cjv-webchat-rejected":"fa/message-xmark-solid","cjv-webchat-requested":"fa/message-plus-solid","cjv-webchat-submitted":"fa/message-arrow-up-solid","cjv-webchat-timeout":"fa/timer-regular",clipboard:"fa/clipboard-regular","clipboard-error":"fa/clipboard-question-regular","clipboard-success":"fa/clipboard-check-regular",clock:"fa/clock-regular","clock-outline":"fa/clock-regular",clone:"fa/clone-regular",close:"fa/xmark-large-regular","close-circle":"deprecated/fa/circle-xmark-regular",cloud:"fa/cloud-regular","cloud-outline":"fa/cloud-regular",coaching:"fa/whistle-regular",cobrowse:"deprecated/cobrowse",collapse:"fa/arrow-down-left-and-arrow-up-right-to-center-regular",comments:"fa/message-lines-regular","comments-disable":"fa/message-slash-regular",configuration:"fa/block-brick-regular","control-end":"fa/forward-fast-regular","control-pause":"fa/pause-regular","control-play":"fa/play-regular","control-skip-left":"fa/backward-regular","control-skip-right":"fa/forward-regular","control-slide-back":"fa/backward-step-regular","control-slide-forward":"fa/forward-step-regular","control-start":"fa/backward-fast-regular","control-stop":"fa/stop-regular",copy:"fa/copy-regular","custom/add-column-after":"custom/table-column-plus-right-regular","custom/add-column-before":"custom/table-column-plus-left-regular","custom/add-row-after":"custom/table-row-plus-bottom-regular","custom/add-row-before":"custom/table-row-plus-top-regular","custom/binoculars-slash-regular":"custom/regular-binoculars-slash","custom/carousel":"custom/rectangle-carousel-regular","custom/clipboard-list-slash-regular":"custom/regular-clipboard-list-slash","custom/co-browse":"custom/screen-monitor-regular","custom/delete-column":"custom/table-column-xmark-regular","custom/delete-row":"custom/table-row-xmark-regular","custom/delete-table":"custom/table-xmark-regular","custom/file-pen-question":"custom/file-pen-question-regular","custom/filter-notification":"custom/filter-dot-regular","custom/font-regular-highlight":"custom/font-underline-regular","custom/one-button":"custom/mobiles-one-button-regular","custom/person-running":"fa/person-running-solid","custom/quick-reply":"custom/circle-buttons-regular","custom/three-button":"custom/mobile-three-button-regular","custom/wrap-text-inline":"custom/wrap-text-inline-regular","custom/wrap-text-tight":"custom/wrap-text-tight-regular","custom/wrap-text-top-bottom":"custom/wrap-text-top-bottom-regular","customer-journey":"fa/map-location-dot-regular",cut:"fa/scissors-regular",dash:"fa/gauge-simple-high-regular",delete:"fa/trash-regular","device-camera":"fa/camera-regular","device-cellphone":"fa/mobile-regular","device-headphones":"fa/headphones-regular","device-laptop":"fa/laptop-regular","device-pc":"deprecated/device-pc","device-server":"fa/server-regular","device-tablet":"fa/tablet-regular",download:"fa/arrow-down-to-line-regular",edge:"fa/edge-legacy",edit:"fa/pen-regular","email-notification-score":"fa/envelope-dot-regular",expand:"fa/arrow-up-right-and-arrow-down-left-from-center-regular",export:"fa/arrow-up-from-line-regular","external-link":"fa/arrow-up-right-from-square-regular","fa/00-solid":"fa/00-regular","fa/arrows-rotate-solid":"fa/arrows-rotate-regular","fa/ban-regular":"deprecated/fa/ban-regular","fa/check-solid":"custom/check-small-regular","fa/circle-check-regular":"deprecated/fa/circle-check-regular","fa/circle-xmark-regular":"deprecated/fa/circle-xmark-regular","fa/clock-outline":"fa/clock-regular","fa/comment-dots-regular":"fa/message-dots-regular","fa/comments-regular":"fa/messages-regular","fa/diagram-project-gear-regular":"fa/regular-diagram-project-gear","fa/eye-regular":"deprecated/fa/eye-regular","fa/eye-slash-regular":"deprecated/fa/eye-slash-regular","fa/life-ring-regular":"deprecated/fa/life-ring-regular","fa/link-horizontal-slash-regular":"fa/link-slash-regular","fa/link-horizontal-solid":"fa/link-regular","fa/list-radio-clean-regular":"fa/list-ul-regular","fa/list-radio-regular":"fa/list-ul-regular","fa/list-regular":"fa/list-ul-regular","fa/rectangle-list-regular":"fa/square-list-regular","fa/reply-regular":"custom/reply-regular","fa/right-to-bracket-regular":"fa/arrow-right-to-bracket-regular","fa/share-regular":"custom/share-regular","fa/volume-regular":"deprecated/fa/volume-regular","face-empathy":"deprecated/face-empathy","face-happy":"fa/face-smile-regular","face-happy-solid":"fa/face-smile-solid","face-neutral":"fa/face-meh-regular","face-neutral-solid":"fa/face-meh-solid","face-sad":"fa/face-frown-regular","face-sad-solid":"fa/face-frown-solid",facebook:"fa/facebook","facebook-messenger":"fa/facebook-messenger",fax:"fa/fax-regular",file:"fa/file-regular","file-all":"fa/files-regular","file-audio":"deprecated/fa/volume-regular","file-image-landscape":"fa/image-regular","file-image-portrait":"fa/image-portrait-regular","file-pdf":"fa/file-pdf-regular","file-preview":"fa/file-magnifying-glass-regular","file-report":"fa/file-chart-column-regular","file-text":"fa/file-lines-regular","file-video":"fa/video-regular",filter:"fa/filter-regular",fire:"fa/fire-regular",firefox:"fa/firefox",flag:"fa/flag-regular",folder:"fa/folder-regular","folder-add":"fa/folder-plus-regular","folder-open":"fa/folder-open-regular",follow:"fa/binoculars-regular",generic:"fa/shapes-regular",globe:"fa/earth-africa-regular","grab-horizontal":"fa/grip-solid","grab-vertical":"fa/grip-vertical-solid","graph-bar-horizontal":"fa/chart-bar-regular","graph-bar-vertical":"fa/chart-column-regular","graph-bubble":"fa/chart-scatter-bubble-regular","graph-chart":"fa/chart-area-regular","graph-line":"fa/chart-line-regular","graph-pie":"fa/chart-pie-regular","graph-spark":"custom/chart-line-spark-regular","group-standard":"custom/users-light",help:"fa/circle-question-regular",home:"fa/home-regular",hourglass:"fa/hourglass-half-regular",import:"fa/file-import-regular",inbox:"fa/inbox-regular",inspect:"deprecated/fa/eye-regular","inspect-disable":"deprecated/fa/eye-slash-regular",instagram:"fa/instagram","internet-explorer":"fa/internet-explorer",key:"fa/key-regular",lightbulb:"fa/lightbulb-regular","line-messenger":"fa/line",link:"fa/link-regular",linkedin:"fa/linkedin",linux:"fa/linux",lock:"fa/lock-regular","lock-hold":"custom/lock-keyholes-regular",logout:"fa/arrow-right-from-bracket-regular","low-bandwidth":"fa/wifi-slash-regular",lunch:"fa/utensils-regular",menu:"fa/bars-regular","menu-kebab-horizontal":"fa/ellipsis-regular","menu-kebab-vertical":"fa/ellipsis-vertical-regular","message-email":"fa/envelope-regular","message-email-outbound":"custom/envelope-arrow-up-right-regular","message-forward":"custom/share-regular","message-reply":"custom/reply-regular","message-reply-all":"custom/reply-all-regular",microphone:"fa/microphone-regular","microphone-disable":"fa/microphone-slash-regular","microphone-talking":"custom/microphone-line-on-regular",microsoft:"fa/microsoft","microsoft-teams":"custom/microsoft-teams",moon:"fa/moon-regular",music:"fa/music-regular",notes:"fa/memo-regular",notification:"fa/circle-solid",opera:"fa/opera","operator-pair":"custom/users-headset-regular",paint:"fa/fill-drip-regular",palette:"fa/palette-regular","parking-sign-regular":"fa/square-parking-regular",paste:"fa/paste-regular",people:"fa/people-pants-simple-regular",phone:"fa/phone-regular","phone-bell":"custom/phone-bell-regular","phone-call-directory":"deprecated/phone-call-directory","phone-call-history":"custom/phone-bars-regular","phone-callback":"custom/phone-arrow-left-regular","phone-close":"fa/phone-xmark-regular","phone-conference":"custom/phone-big-small-regular","phone-dialpad":"fa/grid-regular","phone-disable":"fa/phone-slash-regular","phone-forward":"fa/phone-arrow-right-regular","phone-hangup":"fa/phone-hangup-regular","phone-hold":"custom/phone-clock-regular","phone-inbound":"fa/phone-arrow-down-left-regular","phone-missed-call":"fa/phone-missed-regular","phone-notification-score":"custom/phone-star-regular","phone-outbound":"fa/phone-arrow-up-right-regular","phone-success":"custom/phone-check-regular","phone-voice":"custom/phone-high-volume-regular",pin:"fa/thumbtack-regular","pin-location":"fa/location-dot-regular",post:"fa/newspaper-regular","product-logo-beyond":"custom/genesys-beyond","product-logo-g":"custom/genesys","quote-left":"fa/quote-left-regular","quote-right":"fa/quote-right-regular",radio:"fa/circle-regular","radio-active":"fa/circle-dot-regular",rating:"fa/star-regular","rating-active":"fa/star-solid","rating-partial":"fa/star-sharp-half-stroke-regular",record:"fa/waveform-lines-regular",refresh:"fa/arrows-rotate-regular",reset:"fa/arrow-rotate-left-regular",resource:"fa/notebook-regular",retweet:"custom/arrows-retweet-regular","roster-chat":"fa/message-lines-regular","roster-chat-disable":"fa/message-slash-regular","roster-email":"fa/envelope-regular","roster-email-disable":"fa/regular-envelope-slash","roster-instagram":"fa/instagram","roster-instagram-disable":"custom/instagram-slash","roster-line":"fa/line","roster-line-disable":"custom/line-slash","roster-message":"fa/message-lines-regular","roster-message-disable":"fa/message-xmark-regular","roster-messenger":"fa/facebook-messenger","roster-messenger-disable":"custom/facebook-messenger-slash","roster-phone":"fa/phone-regular","roster-phone-disable":"fa/phone-slash-regular","roster-sms":"fa/message-dots-regular","roster-sms-disable":"fa/message-slash-regular","roster-twitter":"fa/twitter","roster-twitter-disable":"custom/twitter-slash","roster-wechat":"fa/weixin","roster-wechat-disable":"deprecated/roster-wechat-disable","roster-whatsapp":"fa/whatsapp","roster-whatsapp-disable":"fa/custon-whatsapp-slash",rss:"fa/square-rss-solid",run:"fa/person-running-solid",safari:"fa/safari",save:"fa/floppy-disk-regular","screen-share-regular":"custom/display-arrow-right-regular","screen-share-slash":"custom/display-arrow-right-slash-regular",scripter:"fa/scroll-regular",search:"fa/magnifying-glass-regular",send:"fa/paper-plane-top-regular",server:"fa/server-regular",settings:"fa/gear-regular",share:"fa/share-nodes-regular","shield-lock":"fa/shield-keyhole-regular","shield-outline":"fa/shield-check-regular","shield-solid":"fa/shield-check-solid",site:"fa/building-regular",skills:"fa/graduation-cap-regular",slideshare:"fa/slideshare",sms:"fa/message-dots-regular","sms-cancel":"fa/message-xmark-regular","sms-close":"fa/message-xmark-regular",stamp:"fa/stamp-regular",subtract:"fa/minus-regular","subtract-circle":"fa/subtract-circle-regular",sun:"fa/sun-bright-regular",tag:"fa/tag-regular","tag-add":"deprecated/tag-add","tag-remove":"deprecated/tag-remove",telegram:"fa/telegram",tenant:"fa/box-regular","thumbs-down":"fa/thumb-down-regular","thumbs-up":"fa/thumb-up-regular",timeline:"custom/arrow-turn-left-clock-regular","toolbar-apps":"custom/squares-big-small-regular","toolbar-apps-disable":"custom/squares-big-small-slash-regular","toolbar-assist":"deprecated/fa/life-ring-regular","toolbar-assist-disable":"custom/life-ring-slash-regular","toolbar-chat":"fa/message-regular","toolbar-chat-disable":"fa/message-slash-regular","toolbar-favorite":"deprecated/toolbar-favorite","toolbar-favourite":"fa/star-regular","toolbar-help":"fa/circle-question-regular","toolbar-inbox":"fa/inbox-regular","toolbar-interactions":"custom/user-talking-regular","toolbar-interactions-disable":"custom/user-talking-slash-regular","toolbar-notification":"fa/circle-solid","toolbar-phone":"fa/phone-regular","toolbar-phone-active-1":"custom/phone-low-volume-regular","toolbar-phone-active-2":"custom/phone-volume-regular","toolbar-phone-active-3":"custom/phone-high-volume-regular","toolbar-phone-disable":"fa/phone-slash-regular","toolbar-video":"fa/video-regular","toolbar-video-disable":"fa/video-slash-regular",trade:"fa/handshake-regular",transfer:"fa/arrow-right-arrow-left-regular",twitter:"fa/twitter",unknown:"fa/square-x-regular",unlink:"fa/link-slash-regular",unlock:"fa/unlock-regular",upload:"fa/upload-regular",user:"fa/user-regular","user-add":"fa/user-plus-regular","user-circle":"fa/circle-user-regular","user-contact-id":"fa/address-card-regular","user-directory":"fa/address-book-regular","user-group":"fa/users-regular","user-interactions":"custom/user-talking-regular","user-interactions-disable":"custom/user-talking-slash-regular",viber:"fa/viber",video:"fa/video-regular","video-disable":"fa/video-slash-regular","view-all":"fa/grid-4-regular","view-cells":"custom/columns-3-regular","view-grid":"fa/border-all-regular","view-list":"fa/square-list-regular","view-lists":"custom/columns-3-regular","view-roster":"fa/table-list-regular","view-stacked":"fa/table-rows-regular",voicemail:"fa/voicemail-regular","volume-disable":"fa/volume-slash-regular","volume-down":"fa/volume-low-regular","volume-none":"fa/volume-off-regular","volume-up":"deprecated/fa/volume-regular",web:"fa/globe-regular",webcam:"fa/camera-web-regular","webcam-disable":"fa/camera-web-slash-regular",wechat:"fa/weixin",whatsapp:"fa/whatsapp","window-actual-size":"fa/brackets-square-regular","window-contract":"fa/arrows-minimize-regular","window-drag-out":"fa/arrow-up-right-from-square-regular","window-expand":"fa/arrows-maximize-regular","window-fullscreen":"fa/arrows-maximize-regular","window-popout":"fa/square-arrow-up-right-regular",wordpress:"fa/wordpress",youtube:"fa/youtube","zoom-in":"fa/magnifying-glass-plus-regular","zoom-out":"fa/magnifying-glass-minus-regular"},u=Object.keys(i),c=new Map;function g(e){return t.includes(e)?`legacy/${e}`:u.includes(e)?i[e]:e}async function f(r){const a=function(e){return e.replace("/","-")}(r);if(c.has(a))return c.get(a);const l=async function(r){const a=await fetch(e(`./icons/${r}.svg`));if(200===a.status)return a.text();throw new Error(`[gux-icon] fetching failed for icon "${r}" with status "${a.statusText} (${a.status})".`)}(r).then((e=>e)).catch((e=>(setTimeout((()=>{throw e}),0),f("fa/square-x-regular"))));return c.set(a,l),l}const n=class{constructor(e){r(this,e),this.iconName=void 0,this.decorative=!1,this.screenreaderText="",this.size="inherit",this.svgHtml=void 0}async prepIcon(e){if(e){const r=g(e);this.baseSvgHtml=await f(r),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}}watchDecorative(e){this.validateProps(e,this.screenreaderText),this.baseSvgHtml&&(this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml))}watchScreenreaderText(e){this.validateProps(this.decorative,e),this.baseSvgHtml&&(this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml))}async componentWillLoad(){o(this.root,{variant:g(this.iconName)}),await this.prepIcon(this.iconName)}componentDidLoad(){this.validateProps(this.decorative,this.screenreaderText)}validateProps(e,r){this.root.isConnected&&(e||r||s(this.root,"No screenreader-text provided. Either provide a localized screenreader-text property or set `decorative` to true."))}getSvgWithAriaAttributes(e){const r=(new DOMParser).parseFromString(e,"image/svg+xml").firstChild;return r.setAttribute("role","img"),r.setAttribute("aria-hidden",this.decorative?String(this.decorative):"false"),this.screenreaderText?r.setAttribute("aria-label",this.screenreaderText):r.removeAttribute("aria-label"),r.outerHTML}render(){return this.svgHtml&&a("div",{key:"0a7b50082c3341de766e28cec4ff94917493139f",class:"gux-icon-container",innerHTML:this.svgHtml})}static get assetsDirs(){return["icons"]}get root(){return l(this)}static get watchers(){return{iconName:["prepIcon"],decorative:["watchDecorative"],screenreaderText:["watchScreenreaderText"]}}};n.style=":host{display:inline-flex;inline-size:1em;block-size:1em}:host([size=small]){inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size)}:host([size=medium]){inline-size:var(--gse-ui-icon-medium-size);block-size:var(--gse-ui-icon-medium-size)}:host([size=large]){inline-size:var(--gse-ui-icon-large-size);block-size:var(--gse-ui-icon-large-size)}.gux-icon-container{display:flex;align-items:center;justify-content:center;inline-size:100%}.gux-icon-container svg{inline-size:100%;max-inline-size:100%;block-size:100%;max-block-size:100%;fill:currentcolor}";export{n as gux_icon}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as i,H as e,g as o,f as s}from"./p-c2a62a18.js";import{a as r,o as a,f as n,s as l,h as d,c}from"./p-864af39c.js";import{r as h}from"./p-0934300e.js";import{t as u}from"./p-
|
1
|
+
import{r as t,h as i,H as e,g as o,f as s}from"./p-c2a62a18.js";import{a as r,o as a,f as n,s as l,h as d,c}from"./p-864af39c.js";import{r as h}from"./p-0934300e.js";import{t as u}from"./p-331098f4.js";import{f as p}from"./p-9b0d3713.js";import{b as g}from"./p-cf0e7d3b.js";import{o as f}from"./p-52d53e47.js";import{O as v}from"./p-9df4dd07.js";import{O as m}from"./p-26772091.js";const b=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.forElementListeners=new Map([["pointerenter",this.pointerenterHandler],["pointerleave",this.pointerleaveHandler],["focusin",this.focusinHandler],["focusout",this.focusoutHandler]]),this.id=h("gux-tooltip"),this.for=void 0,this.placement="bottom-start",this.accent="light",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}handlePointerenter(){this.show()}handlePointerleave(){this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition=r(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){const t=[a(16),n(),l(),d(),f()];c(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:t}).then((({x:t,y:i,middlewareData:e})=>{var o;Object.assign(this.root.style,{left:`${t}px`,top:`${i}px`,visibility:(null===(o=e.hide)||void 0===o?void 0:o.referenceHidden)?"hidden":"visible"}),this.root.setAttribute("data-placement",this.placement)}))}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0,g((()=>{this.runUpdatePosition()}))}hide(){this.hideDelayTimeout=setTimeout((()=>{this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}),350)}getForElement(){return this.for?p(this.root,this.for):this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}setForElement(){this.forElement=this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.forElementListeners.forEach(((t,i)=>this.forElement.addEventListener(i,t)))):this.logForAttributeError()}disconnectForElement(){this.forElement&&(this.forElement.removeAttribute("aria-describedby"),this.forElementListeners.forEach(((t,i)=>this.forElement.removeEventListener(i,t))))}updateForElement(){this.disconnectForElement(),this.setForElement()}connectedCallback(){this.setForElement()}componentWillLoad(){u(this.root,{variant:this.placement})}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.disconnectForElement()}render(){return i(e,{key:"04a3d0e77731166a8af670fb883866719d375c3b",id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("div",{key:"da7d047292ad63a023014be99c58ca6082b73bc1",class:{"gux-container":!0,[`gux-${this.accent}`]:!0},"data-placement":this.placement},i("slot",{key:"fa7d1794cde83d266851e8342eec4d2186813cef",name:"content"},i("slot",{key:"4f3ada5741f7e946db1d247e02d71b2e122469e5"}))))}get root(){return o(this)}static get watchers(){return{for:["updateForElement"]}}};function x(t){return t.reduce(((t,i)=>{if("SLOT"===i.nodeName){const e=i.assignedNodes();return t.concat(x(e))}return t.concat(i.textContent)}),[]).map((t=>t.trim())).join(" ")}b.style=":host{position:fixed;z-index:var(--gse-semantic-zIndex-tooltip);display:none;inline-size:max-content;max-inline-size:250px;border-radius:var(--gse-ui-tooltip-borderRadius);box-shadow:var(--gse-ui-tooltip-boxShadow);opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:350ms;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--gse-ui-tooltip-gap);place-content:center flex-start;padding:var(--gse-ui-tooltip-padding);font-family:var(--gse-ui-tooltip-text-fontFamily);font-size:var(--gse-ui-tooltip-text-fontSize);font-weight:var(--gse-ui-tooltip-text-fontWeight);line-height:var(--gse-ui-tooltip-text-lineHeight);color:var(--gse-ui-tooltip-light-foregroundColor);pointer-events:none;background-color:var(--gse-ui-tooltip-light-backgroundColor);border:var(--gse-ui-tooltip-light-border-width) var(--gse-ui-tooltip-light-border-style) var(--gse-ui-tooltip-light-border-color);border-radius:var(--gse-ui-tooltip-borderRadius)}.gux-container ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-light-foregroundColor)}.gux-container ::slotted(*){inline-size:100%;overflow-wrap:break-word;white-space:normal}.gux-container.gux-dark{color:var(--gse-ui-tooltip-dark-foregroundColor);background-color:var(--gse-ui-tooltip-dark-backgroundColor);border:var(--gse-ui-tooltip-dark-border-width) var(--gse-ui-tooltip-dark-border-style) var(--gse-ui-tooltip-dark-border-color)}.gux-container.gux-dark ::slotted(gux-icon){align-self:center;inline-size:var(--gse-ui-icon-small-size);block-size:var(--gse-ui-icon-small-size);color:var(--gse-ui-tooltip-dark-iconColor)}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";var w=function(t,i,e,o){var s,r=arguments.length,a=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(r<3?s(a):r>3?s(i,e,a):s(i,e))||a);return r>3&&a&&Object.defineProperty(i,e,a),a};const y=class{constructor(i){t(this,i),this.maxLines=void 0}async setShowTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.showTooltip())}async setHideTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.hideTooltip())}onMutation(){s(this.root)}onResize(){s(this.root)}getTooltipContent(){return x(Array.from(this.root.childNodes))||""}needsTruncation(){const t=this.root.shadowRoot.querySelector(".gux-truncate-slot-container");return(null==t?void 0:t.scrollWidth)>(null==t?void 0:t.offsetWidth)||(null==t?void 0:t.scrollHeight)>(null==t?void 0:t.offsetHeight)}renderTooltip(){return this.needsTruncation()?i("gux-tooltip",{"aria-hidden":"true",ref:t=>this.tooltipElement=t},i("div",{slot:"content"},this.getTooltipContent())):null}render(){var t;return i("div",{key:"0dca2c40ddc3d395335974a04999ac0a675a5834",class:{"gux-truncate-multi-line":Boolean(this.maxLines)}},i("span",{key:"04381fb28f65143eb98fde91c5b2f06e646e791e",class:{"gux-overflow-hidden":this.needsTruncation(),"gux-truncate-slot-container":!0},style:{webkitLineClamp:null===(t=this.maxLines)||void 0===t?void 0:t.toString()}},i("slot",{key:"077f91482bfa44c515fee450317723d70f5d5f16"})),this.renderTooltip())}get root(){return o(this)}};w([v({childList:!0,subtree:!0,characterData:!0})],y.prototype,"onMutation",null),w([m()],y.prototype,"onResize",null),y.style=":host{display:block;inline-size:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:inherit}::slotted(*){display:inline}.gux-truncate-multi-line{white-space:normal}.gux-truncate-multi-line .gux-truncate-slot-container{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}gux-tooltip{font-weight:normal;line-height:normal;text-align:start;overflow-wrap:break-word;white-space:normal}.gux-truncate-slot-container>*{display:inline}.gux-truncate-slot-container{display:block;text-overflow:ellipsis}.gux-overflow-hidden{overflow:hidden}";export{b as gux_tooltip,y as gux_truncate}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as e,g as i}from"./p-c2a62a18.js";import{O as r}from"./p-6a2b1013.js";import{s as o}from"./p-2c25e2f2.js";import{b as s}from"./p-cf0e7d3b.js";import{g as n,b as a}from"./p-16feb2a1.js";import{t as u}from"./p-da402bc8.js";import{l as c}from"./p-8eaf8caf.js";import{u as l,a as p}from"./p-f36036e8.js";import"./p-4202e9f2.js";import"./p-43af726d.js";const h={am:"AM","time-separator":":",clockButton:"Toggle suggested times",hoursInput:"Input hours",minutesInput:"Input minutes",pm:"PM",timeOptionsState:"Time options open: {state}",toggleAmPM:"{amOrPm} selected, click to toggle"};function m(t){const e=new Date,[i,r]=t.split(":");return e.setHours(parseFloat(i)),e.setMinutes(parseFloat(r)),e.setSeconds(0),e.getTime()}function g(t,e){const[i,r]=t.split(":");return`${((parseInt(i,10)+e+24)%24).toString().padStart(2,"0")}:${r}`}function d(t,e,i){const[r,o]=t.split(":");let s=(parseInt(o,10)+e+60)%60;for(;s%i!=0;)s=(s+e+60)%60;return`${r}:${s.toString().padStart(2,"0")}`}function f(t,e){const[i,r]=t.split(":");return"12h"===e?`${(parseInt(i,10)%12||12).toString().padStart(2,"0")}:${r}`:`${i}:${r}`}function x(t,e,i){const[r,o]=t.split(":");return"12h"===e?i?`${(parseInt(r,10)%12).toString().padStart(2,"0")}:${o}`:`${(parseInt(r,10)%12+12).toString().padStart(2,"0")}:${o}`:`${r}:${o}`}function b(t,e){const[i]=f(t,e).split(":");return i}function v(t){const[,e]=t.split(":");return e}function k(t){const[e]=t.split(":");return parseInt(e,10)<12}function w(t){return"12h"===t?"^(0?[1-9]|1[012])$":"^([01]?[0-9]|2[0-3])$"}const C=class{constructor(e){t(this,e),this.value="00:00",this.interval=60,this.step=1,this.disabled=!1,this.required=!1,this.hasError=!1,this.clockType=void 0,this.min=void 0,this.max=void 0,this.expanded=!1}onFocus(){this.valueLastChange=this.value}onBlur(){this.valueLastChange!==this.value&&o(this.root,"change")}onClickOutside(){this.expanded=!1}handleKeydown(t){switch(t.key){case"Escape":case"Tab":this.expanded=!1}}async componentWillLoad(){u(this.root),this.i18n=await a(this.root,h),this.clockType=this.clockType||function(t){let e;e=l()?p(t).toLowerCase():n(t).toLowerCase();const i=new Date("January 19, 1975 15:00:00 UTC+00:00"),r=new Intl.DateTimeFormat(e,{timeStyle:"short",timeZone:"UTC"}).format(i);return!l()&&["ar","ko","zh-cn","zh-tw"].some((t=>e.startsWith(t)))||new RegExp(".*15.*").test(r)?"24h":"12h"}(this.root),this.validateValueFormat(this.value,"00:00"),"12h"==this.clockType&&(this.min||this.max)&&c(this.root,'clock type must be "24h" when using min/max props')}validateValueFormat(t,e){this.isValidTimeFormat(t)||(c(this.root,`"${t}" is not a valid value format. Format must be "hh:mm" or "h:mm". Falling back to previous value: "${e}"`),this.value=e)}isValidTimeFormat(t){return"string"==typeof t&&/^\d{1,2}:\d{2}$/.test(t)}updateValue(t,e=!1){t!==this.value&&(this.value=t,o(this.root,"input"),e&&this.valueLastChange!==this.value&&(o(this.root,"change"),this.valueLastChange=this.value))}valueToId(t){return`gux-id-${t.replace(":","-")}`}focusRelevantItemInPopupList(){s((()=>{this.listElement.guxFocusItemByClosestId(this.valueToId(this.value))}))}toggleDropdown(){this.expanded=!this.expanded,this.expanded&&this.focusRelevantItemInPopupList()}onTargetClick(t){const e=t.composedPath(),i=e.includes(this.clockButton),r=e.includes(this.amPmElement),o=e.includes(this.hourInputElement),s=e.includes(this.minuteInputElement);i||r||s||o||this.toggleDropdown()}handleClickDropdownValue(t){const e=x(t,this.clockType,k(this.value));this.updateValue(e,!0),this.clockButton.focus(),this.expanded=!1}onHourKeyDown(t){switch(t.key){case"Tab":case"ArrowLeft":case"ArrowRight":case"Escape":break;case"ArrowDown":t.preventDefault(),this.updateValue(g(this.value,-1));break;case"ArrowUp":t.preventDefault(),this.updateValue(g(this.value,1));break;case"Backspace":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":t.preventDefault(),this.hourInputElement.setSelectionRange(2,2),this.updateValue(function(t,e,i,r,o){const[s,n]=f(t,e).split(":");let a=s;return a="Backspace"===i?"12h"==e&&1==o?a.split("").filter(((t,e)=>e==r-1)).join(""):a.split("").filter(((t,e)=>e!==r-1)).join("").padStart(2,"0"):parseInt(a.slice(0,r)+i+a.slice(r+1),10).toString().slice(-2).padStart(2,"0"),new RegExp(w(e)).test(a)||(a="12h"===e?i:i.padStart(2,"0")),x(`${a}:${n}`,e,k(t))}(this.value,this.clockType,t.key,this.hourInputElement.selectionStart,this.hourInputElement.value.length));break;default:t.preventDefault()}}onMinuteKeyDown(t){switch(t.key){case"Tab":case"ArrowLeft":case"ArrowRight":case"Escape":break;case"ArrowDown":t.preventDefault(),this.updateValue(d(this.value,-1,this.step));break;case"ArrowUp":t.preventDefault(),this.updateValue(d(this.value,1,this.step));break;case"Backspace":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":t.preventDefault(),this.minuteInputElement.setSelectionRange(2,2),this.updateValue(function(t,e,i){const[r,o]=t.split(":");let s=o;return s="Backspace"===e?s.split("").filter(((t,e)=>e!==i-1)).join("").padStart(2,"0"):(s.slice(0,i)+e+s.slice(i+1)).slice(-2).padStart(2,"0"),new RegExp("^[0-5][0-9]$").test(s)||(s=e.padStart(2,"0")),`${r}:${s}`}(this.value,t.key,this.minuteInputElement.selectionStart));break;default:t.preventDefault()}}onAmPmButtonKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":this.toggleAmPm(t)}}onListKeyDown(t){"Escape"===t.key&&(this.expanded=!1,this.clockButton.focus())}toggleAmPm(t){t.preventDefault(),this.updateValue(g(this.value,12),!0)}getAmPmString(){return k(this.value)?this.i18n("am"):this.i18n("pm")}renderNumberInput(){return e("div",{class:"gux-input-time-container"},e("input",{class:"gux-input-time-hours",type:"text",disabled:this.disabled,value:b(this.value,this.clockType),onKeyDown:t=>this.onHourKeyDown(t),"aria-label":this.i18n("hoursInput"),pattern:w(this.clockType),ref:t=>this.hourInputElement=t}),e("span",{class:"gux-time-separator"},this.i18n("time-separator")),e("input",{class:"gux-input-time-minutes",type:"text",disabled:this.disabled,value:v(this.value),onKeyDown:t=>this.onMinuteKeyDown(t),"aria-label":this.i18n("minutesInput"),pattern:"^[0-5][0-9]$",ref:t=>this.minuteInputElement=t}))}renderAmPmSelector(){if("12h"===this.clockType)return e("button",{class:"gux-input-time-am-pm-selector",type:"button",disabled:this.disabled,"aria-label":this.i18n("toggleAmPM",{amOrPm:this.getAmPmString()}),onClick:t=>this.toggleAmPm(t),onKeyDown:t=>this.onAmPmButtonKeyDown(t),ref:t=>this.amPmElement=t},e("div",{class:{"gux-meridiem":!0,"gux-visible":k(this.value)}},this.i18n("am")),e("div",{class:{"gux-meridiem":!0,"gux-visible":!k(this.value)}},this.i18n("pm")))}renderClockButton(){return e("button",{class:{"gux-clock-button":!0,"gux-active":this.expanded},type:"button",disabled:this.disabled,"aria-label":this.i18n("clockButton"),"aria-expanded":this.expanded.toString(),onClick:this.toggleDropdown.bind(this),ref:t=>this.clockButton=t},e("gux-icon",{decorative:!0,"icon-name":"fa/clock-regular",size:"small"}))}renderTimeListItems(){return function(t,e,i,r){const o=[0,15,30,45].filter((e=>Number.isInteger(e/t))).map((t=>String(t).padStart(2,"0"))),s=("12h"===e?["12","01","02","03","04","05","06","07","08","09","10","11"]:Array.from(Array(24).keys()).map((t=>String(t).padStart(2,"0")))).reduce(((t,e)=>t.concat(o.map((t=>`${e}:${t}`)))),[]);return"24h"===e?function(t,e,i){return e&&i&&m(e)>m(i)?t=t.filter((t=>{const r=m(t),o=m(e),s=m(i),n=m("23:59");return r>=o&&r<n||r<=s})):(e&&(t=t.filter((t=>m(t)>=m(e)))),i&&(t=t.filter((t=>m(t)<=m(i))))),t}(s,i,r):s}(this.interval,this.clockType,this.min,this.max).map((t=>{const i=x(t,this.clockType,k(this.value));return e("gux-list-item",{id:this.valueToId(i),onClick:()=>this.handleClickDropdownValue(t)},t)}))}renderTarget(){return e("div",{class:"gux-input-time",slot:"target",onClick:this.onTargetClick.bind(this)},this.renderNumberInput(),this.renderAmPmSelector(),this.renderClockButton())}renderPopup(){return e("div",{slot:"popup",class:"gux-list-container",onKeyDown:t=>this.onListKeyDown(t)},e("gux-list",{ref:t=>this.listElement=t},this.renderTimeListItems()))}render(){return e("gux-popup",{key:"eb0da39af4e3257b5aa996fd2c88cc7bf4952843",class:{"gux-time-picker":!0,"gux-error":this.hasError},expanded:this.expanded,disabled:this.disabled},this.renderTarget(),this.renderPopup())}get root(){return i(this)}static get watchers(){return{value:["validateValueFormat"]}}};(function(t,e,i,r){var o,s=arguments.length,n=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,i,n):o(e,i))||n);s>3&&n&&Object.defineProperty(e,i,n)})([r({triggerEvents:"mousedown"})],C.prototype,"onClickOutside",null),C.style=".gux-time-picker{position:relative;display:inline-block}.gux-time-picker.gux-error .gux-input-time{border-color:var(--gse-ui-formControl-input-error-border-color)}.gux-time-picker .gux-input-time{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);white-space:nowrap;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image: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-time-picker .gux-input-time:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-time-picker .gux-input-time:hover:not(: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-time-picker .gux-input-time input{flex:1 1 auto;align-self:auto;order:0;inline-size:2ch;padding:0;font-size:var(--gse-ui-formControl-label-text-fontSize);color:var(--gse-ui-formControl-input-populatedColor);outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}.gux-time-picker .gux-input-time input.gux-input-time-hours{text-align:end}.gux-time-picker .gux-input-time input::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector{display:grid;grid-template:auto 1fr/auto 1fr auto;place-items:flex-end;padding:0;font-family:var(--gse-ui-formControl-input-prefixSufix-text-fontFamily);font-size:var(--gse-ui-formControl-input-prefixSufix-text-fontSize);font-weight:var(--gse-ui-formControl-input-prefixSufix-text-fontWeight);line-height:var(--gse-ui-formControl-input-prefixSufix-text-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);outline:none;background:transparent;border:none}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-ui-timePicker-focusAmpm-borderRadius)}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector .gux-meridiem{display:none;grid-row:1/1;grid-column:1/1}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector .gux-meridiem.gux-visible{display:inline-block}.gux-time-picker .gux-input-time .gux-clock-button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-iconEndColor);outline:none;background:transparent;border:none}.gux-time-picker .gux-input-time .gux-clock-button.gux-active:not(:disabled){color:var(--gse-ui-timePicker-clockStates-activeColor);cursor:pointer}.gux-time-picker .gux-input-time .gux-clock-button:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-ui-timePicker-focusClock-borderRadius)}.gux-time-picker .gux-input-time .gux-clock-button gux-icon{padding:var(--gse-ui-timePicker-clock-padding)}.gux-time-picker .gux-time-separator{padding-block:0;padding-inline:1ch}.gux-time-picker .gux-list-container{max-block-size:150px;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{C as gux_time_picker}
|
1
|
+
import{r as t,h as e,g as i}from"./p-c2a62a18.js";import{O as r}from"./p-6a2b1013.js";import{s as o}from"./p-2c25e2f2.js";import{b as s}from"./p-cf0e7d3b.js";import{g as n,b as a}from"./p-16feb2a1.js";import{t as u}from"./p-331098f4.js";import{l as c}from"./p-8eaf8caf.js";import{u as l,a as p}from"./p-f36036e8.js";import"./p-4202e9f2.js";import"./p-43af726d.js";const h={am:"AM","time-separator":":",clockButton:"Toggle suggested times",hoursInput:"Input hours",minutesInput:"Input minutes",pm:"PM",timeOptionsState:"Time options open: {state}",toggleAmPM:"{amOrPm} selected, click to toggle"};function m(t){const e=new Date,[i,r]=t.split(":");return e.setHours(parseFloat(i)),e.setMinutes(parseFloat(r)),e.setSeconds(0),e.getTime()}function g(t,e){const[i,r]=t.split(":");return`${((parseInt(i,10)+e+24)%24).toString().padStart(2,"0")}:${r}`}function d(t,e,i){const[r,o]=t.split(":");let s=(parseInt(o,10)+e+60)%60;for(;s%i!=0;)s=(s+e+60)%60;return`${r}:${s.toString().padStart(2,"0")}`}function f(t,e){const[i,r]=t.split(":");return"12h"===e?`${(parseInt(i,10)%12||12).toString().padStart(2,"0")}:${r}`:`${i}:${r}`}function x(t,e,i){const[r,o]=t.split(":");return"12h"===e?i?`${(parseInt(r,10)%12).toString().padStart(2,"0")}:${o}`:`${(parseInt(r,10)%12+12).toString().padStart(2,"0")}:${o}`:`${r}:${o}`}function b(t,e){const[i]=f(t,e).split(":");return i}function v(t){const[,e]=t.split(":");return e}function k(t){const[e]=t.split(":");return parseInt(e,10)<12}function w(t){return"12h"===t?"^(0?[1-9]|1[012])$":"^([01]?[0-9]|2[0-3])$"}const C=class{constructor(e){t(this,e),this.value="00:00",this.interval=60,this.step=1,this.disabled=!1,this.required=!1,this.hasError=!1,this.clockType=void 0,this.min=void 0,this.max=void 0,this.expanded=!1}onFocus(){this.valueLastChange=this.value}onBlur(){this.valueLastChange!==this.value&&o(this.root,"change")}onClickOutside(){this.expanded=!1}handleKeydown(t){switch(t.key){case"Escape":case"Tab":this.expanded=!1}}async componentWillLoad(){u(this.root),this.i18n=await a(this.root,h),this.clockType=this.clockType||function(t){let e;e=l()?p(t).toLowerCase():n(t).toLowerCase();const i=new Date("January 19, 1975 15:00:00 UTC+00:00"),r=new Intl.DateTimeFormat(e,{timeStyle:"short",timeZone:"UTC"}).format(i);return!l()&&["ar","ko","zh-cn","zh-tw"].some((t=>e.startsWith(t)))||new RegExp(".*15.*").test(r)?"24h":"12h"}(this.root),this.validateValueFormat(this.value,"00:00"),"12h"==this.clockType&&(this.min||this.max)&&c(this.root,'clock type must be "24h" when using min/max props')}validateValueFormat(t,e){this.isValidTimeFormat(t)||(c(this.root,`"${t}" is not a valid value format. Format must be "hh:mm" or "h:mm". Falling back to previous value: "${e}"`),this.value=e)}isValidTimeFormat(t){return"string"==typeof t&&/^\d{1,2}:\d{2}$/.test(t)}updateValue(t,e=!1){t!==this.value&&(this.value=t,o(this.root,"input"),e&&this.valueLastChange!==this.value&&(o(this.root,"change"),this.valueLastChange=this.value))}valueToId(t){return`gux-id-${t.replace(":","-")}`}focusRelevantItemInPopupList(){s((()=>{this.listElement.guxFocusItemByClosestId(this.valueToId(this.value))}))}toggleDropdown(){this.expanded=!this.expanded,this.expanded&&this.focusRelevantItemInPopupList()}onTargetClick(t){const e=t.composedPath(),i=e.includes(this.clockButton),r=e.includes(this.amPmElement),o=e.includes(this.hourInputElement),s=e.includes(this.minuteInputElement);i||r||s||o||this.toggleDropdown()}handleClickDropdownValue(t){const e=x(t,this.clockType,k(this.value));this.updateValue(e,!0),this.clockButton.focus(),this.expanded=!1}onHourKeyDown(t){switch(t.key){case"Tab":case"ArrowLeft":case"ArrowRight":case"Escape":break;case"ArrowDown":t.preventDefault(),this.updateValue(g(this.value,-1));break;case"ArrowUp":t.preventDefault(),this.updateValue(g(this.value,1));break;case"Backspace":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":t.preventDefault(),this.hourInputElement.setSelectionRange(2,2),this.updateValue(function(t,e,i,r,o){const[s,n]=f(t,e).split(":");let a=s;return a="Backspace"===i?"12h"==e&&1==o?a.split("").filter(((t,e)=>e==r-1)).join(""):a.split("").filter(((t,e)=>e!==r-1)).join("").padStart(2,"0"):parseInt(a.slice(0,r)+i+a.slice(r+1),10).toString().slice(-2).padStart(2,"0"),new RegExp(w(e)).test(a)||(a="12h"===e?i:i.padStart(2,"0")),x(`${a}:${n}`,e,k(t))}(this.value,this.clockType,t.key,this.hourInputElement.selectionStart,this.hourInputElement.value.length));break;default:t.preventDefault()}}onMinuteKeyDown(t){switch(t.key){case"Tab":case"ArrowLeft":case"ArrowRight":case"Escape":break;case"ArrowDown":t.preventDefault(),this.updateValue(d(this.value,-1,this.step));break;case"ArrowUp":t.preventDefault(),this.updateValue(d(this.value,1,this.step));break;case"Backspace":case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":t.preventDefault(),this.minuteInputElement.setSelectionRange(2,2),this.updateValue(function(t,e,i){const[r,o]=t.split(":");let s=o;return s="Backspace"===e?s.split("").filter(((t,e)=>e!==i-1)).join("").padStart(2,"0"):(s.slice(0,i)+e+s.slice(i+1)).slice(-2).padStart(2,"0"),new RegExp("^[0-5][0-9]$").test(s)||(s=e.padStart(2,"0")),`${r}:${s}`}(this.value,t.key,this.minuteInputElement.selectionStart));break;default:t.preventDefault()}}onAmPmButtonKeyDown(t){switch(t.key){case"ArrowDown":case"ArrowUp":this.toggleAmPm(t)}}onListKeyDown(t){"Escape"===t.key&&(this.expanded=!1,this.clockButton.focus())}toggleAmPm(t){t.preventDefault(),this.updateValue(g(this.value,12),!0)}getAmPmString(){return k(this.value)?this.i18n("am"):this.i18n("pm")}renderNumberInput(){return e("div",{class:"gux-input-time-container"},e("input",{class:"gux-input-time-hours",type:"text",disabled:this.disabled,value:b(this.value,this.clockType),onKeyDown:t=>this.onHourKeyDown(t),"aria-label":this.i18n("hoursInput"),pattern:w(this.clockType),ref:t=>this.hourInputElement=t}),e("span",{class:"gux-time-separator"},this.i18n("time-separator")),e("input",{class:"gux-input-time-minutes",type:"text",disabled:this.disabled,value:v(this.value),onKeyDown:t=>this.onMinuteKeyDown(t),"aria-label":this.i18n("minutesInput"),pattern:"^[0-5][0-9]$",ref:t=>this.minuteInputElement=t}))}renderAmPmSelector(){if("12h"===this.clockType)return e("button",{class:"gux-input-time-am-pm-selector",type:"button",disabled:this.disabled,"aria-label":this.i18n("toggleAmPM",{amOrPm:this.getAmPmString()}),onClick:t=>this.toggleAmPm(t),onKeyDown:t=>this.onAmPmButtonKeyDown(t),ref:t=>this.amPmElement=t},e("div",{class:{"gux-meridiem":!0,"gux-visible":k(this.value)}},this.i18n("am")),e("div",{class:{"gux-meridiem":!0,"gux-visible":!k(this.value)}},this.i18n("pm")))}renderClockButton(){return e("button",{class:{"gux-clock-button":!0,"gux-active":this.expanded},type:"button",disabled:this.disabled,"aria-label":this.i18n("clockButton"),"aria-expanded":this.expanded.toString(),onClick:this.toggleDropdown.bind(this),ref:t=>this.clockButton=t},e("gux-icon",{decorative:!0,"icon-name":"fa/clock-regular",size:"small"}))}renderTimeListItems(){return function(t,e,i,r){const o=[0,15,30,45].filter((e=>Number.isInteger(e/t))).map((t=>String(t).padStart(2,"0"))),s=("12h"===e?["12","01","02","03","04","05","06","07","08","09","10","11"]:Array.from(Array(24).keys()).map((t=>String(t).padStart(2,"0")))).reduce(((t,e)=>t.concat(o.map((t=>`${e}:${t}`)))),[]);return"24h"===e?function(t,e,i){return e&&i&&m(e)>m(i)?t=t.filter((t=>{const r=m(t),o=m(e),s=m(i),n=m("23:59");return r>=o&&r<n||r<=s})):(e&&(t=t.filter((t=>m(t)>=m(e)))),i&&(t=t.filter((t=>m(t)<=m(i))))),t}(s,i,r):s}(this.interval,this.clockType,this.min,this.max).map((t=>{const i=x(t,this.clockType,k(this.value));return e("gux-list-item",{id:this.valueToId(i),onClick:()=>this.handleClickDropdownValue(t)},t)}))}renderTarget(){return e("div",{class:"gux-input-time",slot:"target",onClick:this.onTargetClick.bind(this)},this.renderNumberInput(),this.renderAmPmSelector(),this.renderClockButton())}renderPopup(){return e("div",{slot:"popup",class:"gux-list-container",onKeyDown:t=>this.onListKeyDown(t)},e("gux-list",{ref:t=>this.listElement=t},this.renderTimeListItems()))}render(){return e("gux-popup",{key:"eb0da39af4e3257b5aa996fd2c88cc7bf4952843",class:{"gux-time-picker":!0,"gux-error":this.hasError},expanded:this.expanded,disabled:this.disabled},this.renderTarget(),this.renderPopup())}get root(){return i(this)}static get watchers(){return{value:["validateValueFormat"]}}};(function(t,e,i,r){var o,s=arguments.length,n=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,i,n):o(e,i))||n);s>3&&n&&Object.defineProperty(e,i,n)})([r({triggerEvents:"mousedown"})],C.prototype,"onClickOutside",null),C.style=".gux-time-picker{position:relative;display:inline-block}.gux-time-picker.gux-error .gux-input-time{border-color:var(--gse-ui-formControl-input-error-border-color)}.gux-time-picker .gux-input-time{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;inline-size:100%;block-size:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);white-space:nowrap;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image: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-time-picker .gux-input-time:focus-within{outline:var(--gse-semantic-focusOutline-md-borderWidth) solid var(--gse-semantic-border-focus);outline-offset:var(--gse-semantic-focusOutline-offset)}.gux-time-picker .gux-input-time:hover:not(: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-time-picker .gux-input-time input{flex:1 1 auto;align-self:auto;order:0;inline-size:2ch;padding:0;font-size:var(--gse-ui-formControl-label-text-fontSize);color:var(--gse-ui-formControl-input-populatedColor);outline:none;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none}.gux-time-picker .gux-input-time input.gux-input-time-hours{text-align:end}.gux-time-picker .gux-input-time input::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector{display:grid;grid-template:auto 1fr/auto 1fr auto;place-items:flex-end;padding:0;font-family:var(--gse-ui-formControl-input-prefixSufix-text-fontFamily);font-size:var(--gse-ui-formControl-input-prefixSufix-text-fontSize);font-weight:var(--gse-ui-formControl-input-prefixSufix-text-fontWeight);line-height:var(--gse-ui-formControl-input-prefixSufix-text-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);outline:none;background:transparent;border:none}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-ui-timePicker-focusAmpm-borderRadius)}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector .gux-meridiem{display:none;grid-row:1/1;grid-column:1/1}.gux-time-picker .gux-input-time .gux-input-time-am-pm-selector .gux-meridiem.gux-visible{display:inline-block}.gux-time-picker .gux-input-time .gux-clock-button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-iconEndColor);outline:none;background:transparent;border:none}.gux-time-picker .gux-input-time .gux-clock-button.gux-active:not(:disabled){color:var(--gse-ui-timePicker-clockStates-activeColor);cursor:pointer}.gux-time-picker .gux-input-time .gux-clock-button:focus-visible{outline:var(--gse-semantic-focusOutline-sm-borderWidth) solid var(--gse-semantic-border-focus);border-radius:var(--gse-ui-timePicker-focusClock-borderRadius)}.gux-time-picker .gux-input-time .gux-clock-button gux-icon{padding:var(--gse-ui-timePicker-clock-padding)}.gux-time-picker .gux-time-separator{padding-block:0;padding-inline:1ch}.gux-time-picker .gux-list-container{max-block-size:150px;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{C as gux_time_picker}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as t,H as a,g as o}from"./p-c2a62a18.js";import{t as i}from"./p-
|
1
|
+
import{r as e,h as t,H as a,g as o}from"./p-c2a62a18.js";import{t as i}from"./p-331098f4.js";const s=class{constructor(t){e(this,t)}componentWillLoad(){i(this.root)}render(){return t(a,{key:"1f9a024e9fc7311a9d17fbc3051f9bf2ab08957f"},t("div",{key:"12d1d8ab1554c18fb61a931ddb32f0273623474f",class:"gux-header"},t("div",{key:"e3941013e1fda705b9162f63ea0fa67d5117cada",class:"gux-icon"},t("slot",{key:"f762f1093279049d338e159c6ea51e08c1e1bf26",name:"icon"})),t("div",{key:"74240e60cc41fc5549a049bfab1973ee46b1278b",class:"gux-title"},t("slot",{key:"1962c619bd581b82d00b8ba2f3c6fa1c690737db",name:"title"}))),t("div",{key:"e306de45dcde9134177a891164164f6fc2447901",class:"gux-message"},t("slot",{key:"bfb3755509c0b3132c011a90ea6c96f18690e3b6",name:"message"})),t("div",{key:"cf20ae80e0d9f4299ef4f39b8be946fb44029860",class:"gux-action-buttons"},t("div",{key:"46c0363d0c4214696966cc2196c2f121c6052aa7",class:"gux-positive-button"},t("slot",{key:"d78dad51eba1a86386fd9f21bf3957a03f941c37",name:"positive-button"})),t("div",{key:"0e573f2ce2510d8c1d2b05d1944066b22207725f",class:"gux-negative-button"},t("slot",{key:"37acf4eef3aec626ede337826179adb629523b00",name:"negative-button"}))))}get root(){return o(this)}};s.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:stretch;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;align-self:auto;order:0;font-family:var(--gse-semantic-heading-lg-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-lg-bold-fontSize);line-height:var(--gse-semantic-heading-lg-bold-lineHeight);font-weight:var(--gse-semantic-heading-lg-bold-fontWeight)}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:var(--gse-semantic-body-sm-regular-fontFamily), var(--gse-semantic-theme-fontFamily-body), sans-serif;font-size:var(--gse-semantic-body-sm-regular-fontSize);line-height:var(--gse-semantic-body-sm-regular-lineHeight);font-weight:var(--gse-semantic-body-sm-regular-fontWeight)}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;place-content:stretch flex-start;align-items:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";export{s as gux_action_toast_legacy}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as r,g as a}from"./p-c2a62a18.js";import{b as o}from"./p-16feb2a1.js";import{t as i}from"./p-
|
1
|
+
import{r as e,h as r,g as a}from"./p-c2a62a18.js";import{b as o}from"./p-16feb2a1.js";import{t as i}from"./p-331098f4.js";import"./p-4202e9f2.js";const t={info:"Information alert with message",success:"Success alert with message",warning:"Warning alert with message",error:"Error alert with message"},l=class{constructor(r){e(this,r),this.accent="info"}getIcon(e){switch(e){case"info":default:return"fa/circle-info-solid";case"success":return"fa/circle-check-solid";case"warning":return"fa/triangle-exclamation-solid";case"error":return"fa/hexagon-exclamation-solid"}}async componentWillLoad(){i(this.root,{variant:this.accent}),this.i18n=await o(this.root,t)}render(){return r("div",{key:"ae8a4947967cdb2140eb1285ec4269afab370756",class:{"gux-inline-alert":!0,[`gux-${this.accent}`]:!0}},r("div",{key:"4c555a26efb77f38c09afcca25ede1941ff51db0",class:"gux-message-wrapper"},r("gux-icon",{key:"d01f370b7fc66cff9d135875ba3f04177e11017b","icon-name":this.getIcon(this.accent),decorative:!0,size:"small"}),r("gux-screen-reader-beta",{key:"ded0d6add0be2281ea86fa902a61a36436172138"},this.i18n(this.accent)),r("div",{key:"74c216d76bc3f03e40307f9ffb418427804701a0",class:"gux-content"},r("slot",{key:"0152bf0132965ebdb8e70f1d0d550ed4440832b1",name:"content"},r("slot",{key:"efa26adc0f8320b8e218992a34e6ed6417ae8b14"})))))}get root(){return a(this)}};l.style=":host{display:flex;inline-size:fit-content}.gux-inline-alert{display:inline-flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;padding:var(--gse-ui-alert-padding);border:1px solid;border-radius:var(--gse-ui-alert-borderRadius)}.gux-inline-alert gux-icon{flex-shrink:0;align-self:flex-start;margin-block-start:1px}.gux-inline-alert gux-tooltip-title{white-space:nowrap}.gux-inline-alert .gux-message-wrapper{display:flex;gap:var(--gse-ui-alert-gap);font-family:var(--gse-ui-alert-text-fontFamily);font-size:var(--gse-ui-alert-text-fontSize);font-weight:var(--gse-ui-alert-text-fontWeight);line-height:var(--gse-ui-alert-text-lineHeight)}.gux-inline-alert .gux-content{flex:1 1 auto}.gux-inline-alert.gux-info{color:var(--gse-ui-alert-info-foregroundColor);background-color:var(--gse-ui-alert-info-backgroundColor);border:var(--gse-ui-alert-info-border-width) var(--gse-ui-alert-info-border-style) var(--gse-ui-alert-info-border-color)}.gux-inline-alert.gux-info gux-icon{color:var(--gse-ui-alert-info-iconColor)}.gux-inline-alert.gux-error{color:var(--gse-ui-alert-error-foregroundColor);background-color:var(--gse-ui-alert-error-backgroundColor);border:var(--gse-ui-alert-error-border-width) var(--gse-ui-alert-error-border-style) var(--gse-ui-alert-error-border-color)}.gux-inline-alert.gux-error gux-icon{color:var(--gse-ui-alert-error-iconColor)}.gux-inline-alert.gux-warning{color:var(--gse-ui-alert-warning-foregroundColor);background-color:var(--gse-ui-alert-warning-backgroundColor);border:var(--gse-ui-alert-warning-border-width) var(--gse-ui-alert-warning-border-style) var(--gse-ui-alert-warning-border-color)}.gux-inline-alert.gux-warning gux-icon{color:var(--gse-ui-alert-warning-iconColor)}.gux-inline-alert.gux-success{color:var(--gse-ui-alert-success-foregroundColor);background-color:var(--gse-ui-alert-success-backgroundColor);border:var(--gse-ui-alert-success-border-width) var(--gse-ui-alert-success-border-style) var(--gse-ui-alert-success-border-color)}.gux-inline-alert.gux-success gux-icon{color:var(--gse-ui-alert-success-iconColor)}";export{l as gux_inline_alert}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,c as i,h as a,g as r}from"./p-c2a62a18.js";import{b as l}from"./p-16feb2a1.js";import{t as o}from"./p-
|
1
|
+
import{r as e,c as i,h as a,g as r}from"./p-c2a62a18.js";import{b as l}from"./p-16feb2a1.js";import{t as o}from"./p-331098f4.js";import"./p-4202e9f2.js";const t={removeFile:"Remove {filename} file",uploadingFile:"Uploading {filename} file",success:"{filename} file uploaded successfully",error:"{filename} file has an error"},d=class{constructor(a){e(this,a),this.guxremovefile=i(this,"guxremovefile",7),this.name=void 0,this.index=void 0,this.disabled=!1,this.status=void 0}async componentWillLoad(){this.getI18nValue=await l(this.root,t),o(this.root)}render(){return a("div",{key:"32750112acc6a02b04ea5c0caf00c3a519f0315d",class:{"gux-file-list-item":!0,[`gux-${this.status}`]:!0,"gux-disabled":this.disabled}},a("div",{key:"d39565238f275c009daa29c42bcf01e1d3e18a2b",class:"gux-info"},a("gux-truncate",{key:"7fbce9dfeb303ba05edcddd9869c75d52fa9ac5b"},a("span",{key:"5e7f18d0efd6a33696a515f299714e7d55bf0530",class:"gux-file-name"},this.name)),this.renderStatusIndicator(),this.renderFileRemoveButton()),this.renderAdditionalInfo())}renderStatusIndicator(){switch(this.status){case"loading":return a("gux-radial-loading",{context:"input","screenreader-text":this.getI18nValue("uploadingFile",{filename:this.name})});case"success":return a("gux-icon-tooltip-beta",{"icon-name":"fa/circle-check-solid",class:"gux-indicator"},a("span",{slot:"content"},this.getI18nValue("success",{filename:this.name})));case"error":return a("gux-icon-tooltip-beta",{"icon-name":"fa/hexagon-exclamation-solid",class:"gux-indicator"},a("span",{slot:"content"},this.getI18nValue("error",{filename:this.name})));default:return null}}renderFileRemoveButton(){return this.disabled?null:a("gux-button-slot",{accent:"ghost","icon-only":!0},a("button",{type:"button",onClick:()=>this.guxremovefile.emit(this.index)},a("gux-icon",{"icon-name":"fa/xmark-large-regular",size:"small",decorative:!0}),a("gux-screen-reader-beta",null,this.getI18nValue("removeFile",{filename:this.name}))))}renderAdditionalInfo(){return"error"===this.status?a("div",{class:"gux-additional-info"},a("div",{class:"gux-additional-info-header"},a("slot",{name:"additional-info-header"})),a("div",{class:"gux-additional-info-content"},a("slot",{name:"additional-info-content"}))):null}get root(){return r(this)}};d.style=':host{display:block}.gux-file-list-item{display:flex;flex-direction:column;align-items:flex-start;background-color:var(--gse-ui-fileUpload-fileCard-foregroundColor);border:var(--gse-ui-fileUpload-fileCard-mainContainer-default-border-width) var(--gse-ui-fileUpload-fileCard-mainContainer-default-border-style) var(--gse-ui-fileUpload-fileCard-mainContainer-default-border-color);border-radius:var(--gse-ui-fileUpload-fileCard-borderRadius);box-shadow:var(--gse-ui-fileUpload-fileCard-boxShadow)}.gux-file-list-item.gux-disabled{opacity:0.5}.gux-file-list-item.gux-error{padding-block-start:0;border:var(--gse-ui-fileUpload-fileCard-mainContainer-error-border-width) var(--gse-ui-fileUpload-fileCard-mainContainer-error-border-style) var(--gse-ui-fileUpload-fileCard-mainContainer-error-border-color)}.gux-file-list-item .gux-info{box-sizing:border-box;display:flex;gap:var(--gse-ui-fileUpload-fileCard-card-gap);align-items:center;inline-size:100%;block-size:32px;padding:var(--gse-ui-fileUpload-fileCard-card-padding)}.gux-file-list-item .gux-info .gux-file-name{font-family:var(--gse-ui-fileUpload-fileCard-fileName-text-fontFamily);font-size:var(--gse-ui-fileUpload-fileCard-fileName-text-fontSize);font-weight:var(--gse-ui-fileUpload-fileCard-fileName-text-fontWeight);line-height:var(--gse-ui-fileUpload-fileCard-fileName-text-lineHeight);color:var(--gse-ui-fileUpload-fileCard-fileName-default)}.gux-file-list-item .gux-info .gux-indicator[icon-name="fa/circle-check-solid"]{--gse-ui-formControl-label-tooltipTrigger-color:var(\n --gse-ui-fileUpload-fileCard-statusIcon-success\n )}.gux-file-list-item .gux-info .gux-indicator[icon-name="fa/hexagon-exclamation-solid"]{--gse-ui-formControl-label-tooltipTrigger-color:var(\n --gse-ui-fileUpload-fileCard-statusIcon-error\n )}.gux-file-list-item .gux-additional-info{display:flex;flex-direction:column;gap:var(--gse-ui-fileUpload-fileCard-card-errorCard-errorTextSection-gap);inline-size:100%;padding:var(--gse-ui-fileUpload-fileCard-card-errorCard-mainContainer-padding);font-family:var(--gse-ui-fileUpload-fileCard-error-text-fontFamily);font-size:var(--gse-ui-fileUpload-fileCard-error-text-fontSize);font-weight:var(--gse-ui-fileUpload-fileCard-error-text-fontWeight);line-height:var(--gse-ui-fileUpload-fileCard-error-text-lineHeight);border-block-start:var(--gse-ui-fileUpload-fileCard-mainContainer-default-border-width) var(--gse-ui-fileUpload-fileCard-mainContainer-default-border-style) var(--gse-ui-fileUpload-fileCard-mainContainer-default-border-color)}.gux-file-list-item .gux-additional-info .gux-additional-info-header{padding:var(--gse-ui-fileUpload-fileCard-card-padding);color:var(--gse-ui-fileUpload-fileCard-error-errorMessage)}.gux-file-list-item .gux-additional-info .gux-additional-info-content{padding:var(--gse-ui-fileUpload-fileCard-card-padding);color:var(--gse-ui-fileUpload-fileCard-error-errorHelper)}';export{d as gux_file_list_item}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as a,c as e,h as o,g as t}from"./p-c2a62a18.js";import{r as i}from"./p-0934300e.js";import{t as n}from"./p-
|
1
|
+
import{r as a,c as e,h as o,g as t}from"./p-c2a62a18.js";import{r as i}from"./p-0934300e.js";import{t as n}from"./p-331098f4.js";const d=class{constructor(o){a(this,o),this.guxdismiss=e(this,"guxdismiss",7),this.size="dynamic",this.trapFocus=!0,this.initialFocus=void 0}handleKeyEvent(a){"Escape"===a.key&&this.onDismissHandler(a)}connectedCallback(){this.triggerElement=document.activeElement}componentWillLoad(){n(this.root,{variant:`${this.size}-${this.trapFocus?"trapfocuson":"trapfocusoff"}`})}componentDidLoad(){var a,e,o;const t=this.getInitialFocusElement();t?null===(a=t.focus)||void 0===a||a.call(t):this.dismissButton&&(null===(o=(e=this.dismissButton).focus)||void 0===o||o.call(e))}render(){const a=this.hasModalTitleSlot(),e=this.hasFooterButtons(),t=i();return o("div",{key:"cbb7033a32fc4731d29fd53c5fbdda9841eb62bd",class:"gux-modal",role:"dialog","aria-modal":"true","aria-labelledby":a?t:null},o("div",{key:"a04bb4a942a82d5510d80e19c0f0bbcbda3a2e4a",class:`gux-modal-container gux-${this.size}`},this.renderModalTrapFocusEl(),a&&o("h1",{key:"7187978e04360410ce75cb03992344e8608078c5",class:"gux-modal-header",id:t},o("slot",{key:"62807294a0c5e6a87921768b6e8ba37c1e745902",name:"title"})),o("gux-dismiss-button",{key:"4f9ef794e1eab16baf2ed2d24e83c2b24dbb7e7f",onClick:this.onDismissHandler.bind(this),ref:a=>this.dismissButton=a}),o("div",{key:"d533e1e8919ce49002e241e6c412061e8a0e9816",class:{"gux-modal-content":!0,"gux-no-buttons":!e}},o("p",{key:"aba93cee1b1827c8931efa8fcef277343ee943b9"},o("slot",{key:"74f8e6920f16eba66ffd2d7030893207410e02b0",name:"content"}))),e&&o("div",{key:"8afe0581fa777708dd8daa1576797c4bc79db659",class:"gux-button-footer"},o("div",{key:"3997fa6457bce071b70e2a3869c5dd1d2f616afd",class:"gux-left-align-buttons"},o("slot",{key:"c2796e0fe34c961aec79139c315f08733ccd7c79",name:"left-align-buttons"})),o("div",{key:"0d4f0e75cfe8c06f6bc81d077902de7b7d78b3c1",class:"gux-right-align-buttons"},o("slot",{key:"82f39a85ce86c9b60931429e056b09940e11a998",name:"right-align-buttons"}))),this.renderModalTrapFocusEl()))}renderModalTrapFocusEl(){if(this.trapFocus)return o("span",{onFocus:()=>this.dismissButton.focus(),tabindex:"0"})}getInitialFocusElement(){return this.initialFocus?this.root.querySelector(this.initialFocus):void 0}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){return Boolean(this.root.querySelector('[slot="left-align-buttons"]'))||Boolean(this.root.querySelector('[slot="right-align-buttons"]'))}onDismissHandler(a){var e;a.stopPropagation(),this.guxdismiss.emit().defaultPrevented||(this.root.remove(),null===(e=this.triggerElement)||void 0===e||e.focus())}get root(){return t(this)}};d.style="::slotted(button:active:enabled){color:var(--gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}slot[name=left-align-buttons]::slotted(:not(button,gux-button)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host .gux-modal{position:fixed;inset:0;z-index:var(--gse-semantic-zIndex-modal);display:flex;align-items:center;justify-content:center;color:#2e394c;background:var(--gse-ui-modal-shroudColor)}:host .gux-modal .gux-modal-container{position:relative;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;padding:var(--gse-ui-modal-padding) 0;background:var(--gse-ui-modal-backgroundColor);border:1px solid #b4bccb;border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow)}:host .gux-modal .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-medium{width:var(--gse-ui-modal-medium-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-large{width:var(--gse-ui-modal-large-width);max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host .gux-modal .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host .gux-modal .gux-modal-container .gux-modal-header{padding:0 var(--gse-ui-modal-padding);margin:0;font-family:var(--gse-ui-modal-heading-fontFamily);font-size:var(--gse-ui-modal-heading-fontSize);font-weight:var(--gse-ui-modal-heading-fontWeight);line-height:var(--gse-ui-modal-heading-fontFamily);color:var(--gse-ui-modal-headerColor);font-family:var(--gse-semantic-heading-xl-bold-fontFamily), var(--gse-semantic-theme-fontFamily-headings), sans-serif;font-size:var(--gse-semantic-heading-xl-bold-fontSize);line-height:var(--gse-semantic-heading-xl-bold-lineHeight);font-weight:var(--gse-semantic-heading-xl-bold-fontWeight)}:host .gux-modal .gux-modal-container .gux-modal-content{max-height:432px;padding:0 var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);margin-bottom:var(--gse-ui-modal-gap);overflow-y:auto}:host .gux-modal .gux-modal-container .gux-modal-content.gux-no-buttons{margin-bottom:0}:host .gux-modal .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding:0 var(--gse-ui-modal-padding)}@media (max-width: 416px){:host .gux-modal .gux-modal-container.gux-small,:host .gux-modal .gux-modal-container.gux-medium,:host .gux-modal .gux-modal-container.gux-large{width:100%;height:100%}}";export{d as gux_modal_legacy}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as s,H as i,g as e}from"./p-c2a62a18.js";import{s as o}from"./p-2c25e2f2.js";import{t as a}from"./p-
|
1
|
+
import{r as t,h as s,H as i,g as e}from"./p-c2a62a18.js";import{s as o}from"./p-2c25e2f2.js";import{t as a}from"./p-331098f4.js";const h=class{constructor(s){t(this,s),this.value=void 0,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,o(this.root,"input"),o(this.root,"change"))}slotChanged(){this.switchItems=Array.from(this.root.children)}componentWillLoad(){a(this.root,{variant:this.layout})}componentWillRender(){this.switchItems.forEach((t=>{t.selected=t.value===this.value}))}render(){return s(i,{key:"26364b85e73b59ada54be43698464e4d74f43290",role:"group",class:`gux-${this.layout}`},s("slot",{key:"86f3b7ffc611620911a5bbc63cc1ee3efe30cc7b",onSlotchange:this.slotChanged.bind(this)}))}get root(){return e(this)}};h.style=":host{display:flex;align-items:flex-end}";export{h as gux_switch_legacy}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as i,h as o,g as r}from"./p-c2a62a18.js";import{t}from"./p-
|
1
|
+
import{r as i,h as o,g as r}from"./p-c2a62a18.js";import{t}from"./p-331098f4.js";import{b as a}from"./p-16feb2a1.js";import"./p-4202e9f2.js";const e={optional:"optional"},l=class{constructor(o){i(this,o),this.variant="required",this.required=!1}async componentWillLoad(){t(this.root,{variant:this.variant}),this.i18n=await a(this.root,e)}render(){return"optional"!==this.variant||this.required?"required"===this.variant&&this.required?o("span",{class:"gux-form-field-label-indicator-required","aria-hidden":"true"},"*"):null:o("span",{class:"gux-form-field-label-indicator-optional"},"(",this.i18n("optional"),")")}get root(){return r(this)}};l.style=".gux-form-field-label-indicator-required{padding-inline-start:var(--gse-ui-formControl-formField-gap);color:var(--gse-ui-formControl-label-indicator-requiredColor)}.gux-form-field-label-indicator-optional{margin-inline-start:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-label-indicator-text-fontFamily);font-size:var(--gse-ui-formControl-label-indicator-text-fontSize);font-weight:var(--gse-ui-formControl-label-indicator-text-fontWeight);line-height:var(--gse-ui-formControl-label-indicator-text-lineHeight);color:var(--gse-ui-formControl-label-indicator-optionalColor)}";export{l as gux_form_field_label_indicator}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,h as s,g as i}from"./p-c2a62a18.js";import{a as o,c as a,o as r,f as n,s as c,b as d}from"./p-864af39c.js";import{O as p}from"./p-6a2b1013.js";import{t as h}from"./p-
|
1
|
+
import{r as t,c as e,h as s,g as i}from"./p-c2a62a18.js";import{a as o,c as a,o as r,f as n,s as c,b as d}from"./p-864af39c.js";import{O as p}from"./p-6a2b1013.js";import{t as h}from"./p-331098f4.js";import{f as l}from"./p-9b0d3713.js";const b=class{constructor(s){t(this,s),this.guxdismiss=e(this,"guxdismiss",7),this.for=void 0,this.position="bottom",this.displayDismissButton=void 0,this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(t){switch(t.key){case"Tab":case"Escape":this.dismiss()}}checkForClickOutside(t){const e=t.composedPath(),s=l(this.root,this.for),i=e.includes(s);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||i||this.dismiss()}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=o(l(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=l(this.root,this.for);this.popupElement&&a(t,this.popupElement,{strategy:"fixed",placement:this.position,middleware:[r(7),n(),c(),d({element:this.arrowElement,padding:16})]}).then((({x:t,y:e,middlewareData:s,placement:i})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${e}px`});const o={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(s.arrow){const{x:t,y:e}=s.arrow;this.popupElement.setAttribute("data-placement",i),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[o]:"-6.5px",transform:"rotate(45deg)"})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){h(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return s("div",{key:"d6ee47cae973e3e1ba99d60c9a4a85743d605173",ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},s("div",{key:"b820ee3f645654ab71151507d26c005163cb5555",ref:t=>this.arrowElement=t,class:"gux-arrow"}),this.displayDismissButton&&s("gux-dismiss-button",{key:"965025fc250ddde80494b5b40fd9aa539deaec04",onClick:this.dismiss.bind(this)}),s("div",{key:"2bc3f9e2bdbdb47a1fdeeb6e2b2c6c706699a2d3",class:"gux-popover-content"},s("slot",{key:"ffd8067e481b81120f57ad89c22e54092dd5b0f4"})))}get root(){return i(this)}};(function(t,e,s,i){var o,a=arguments.length,r=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,s,r):o(e,s))||r);a>3&&r&&Object.defineProperty(e,s,r)})([p({triggerEvents:"mousedown"})],b.prototype,"checkForClickOutside",null),b.style=".gux-popover-wrapper{position:fixed;inset-block-start:0;inset-inline-start:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;padding-block:8px;padding-inline:0;background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;inline-size:var(--gse-ui-popover-anchor-width);block-size:var(--gse-ui-popover-anchor-width);background:var(--gse-ui-popover-backgroundColor)}";export{b as gux_popover_list}
|