genesys-spark-components 4.0.0-beta.30 → 4.0.0-beta.31
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 +7 -10
- 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-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.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 +5 -4
- 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-flyout-menu-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-phone.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 +2 -2
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.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.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-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-region-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch.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-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.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-89e1afa4.js → usage-76088db2.js} +1 -1
- package/dist/collection/components/stable/gux-action-button/gux-action-button.js +5 -22
- package/dist/collection/components/stable/gux-context-menu/gux-context-menu.css +5 -0
- package/dist/collection/components/stable/gux-context-menu/gux-context-menu.js +28 -9
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.css +86 -30
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-dropdown/gux-form-field-dropdown.js +1 -1
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.css +84 -28
- package/dist/collection/components/stable/gux-form-field/components/gux-form-field-time-picker/gux-form-field-time-picker.js +1 -1
- package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.css +51 -14
- package/dist/collection/components/stable/gux-form-field/helper-components/gux-form-field-input-clear-button/gux-form-field-input-clear-button.js +1 -1
- package/dist/component-specs.json +1 -1
- package/dist/deploy-info.json +3 -3
- 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 +7 -10
- 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-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.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 +5 -4
- 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-flyout-menu-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +2 -2
- package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
- package/dist/esm/gux-form-field-number_3.entry.js +1 -1
- package/dist/esm/gux-form-field-phone.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 +2 -2
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-inline-alert.entry.js +1 -1
- package/dist/esm/gux-list.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.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-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-region-icon.entry.js +1 -1
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-switch.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-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.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-09e38ac3.js → usage-c2ef5c8c.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.css +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
- package/dist/genesys-webcomponents/{p-7037907d.js → p-03ca7264.js} +1 -1
- package/dist/genesys-webcomponents/{p-ef6a3e5c.entry.js → p-08550670.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f29679b2.entry.js → p-0bb5a6c0.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0f1f5051.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-ef02d456.entry.js → p-12ba6fa2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7229870f.entry.js → p-17db53b9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2401676.entry.js → p-19e7850a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b2932c8d.entry.js → p-1ae5933a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e48fe4a0.entry.js → p-1cd8bcb8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-290e81a8.entry.js → p-1f84c494.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fe5c99a1.entry.js → p-2627df9a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e0d0738a.entry.js → p-331ff0df.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9714c54b.entry.js → p-35546e82.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-97851d0d.entry.js → p-3752d5d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0cac78cf.entry.js → p-390053f7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-314075a7.entry.js → p-3cf16e5c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c3a2ac37.entry.js → p-4522538f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e34d132a.entry.js → p-4643a770.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a3f3562a.entry.js → p-4866bfb7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dbf341b2.entry.js → p-4a381edf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1d314f8d.entry.js → p-4a709c74.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4d57e936.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-99624b0e.entry.js → p-4ecdc2fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-299063d7.entry.js → p-5117cc64.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ed37740a.entry.js → p-540886e2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f508b954.entry.js → p-54ad79a3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2e8bfff9.entry.js → p-5557cd9a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1f225914.entry.js → p-569a9a76.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a00879eb.entry.js → p-56ab3858.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b277b403.entry.js → p-57ff8ad1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5c2bdb13.entry.js → p-5ae38ef8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f54b4919.entry.js → p-5d12bda1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-90ff863b.entry.js → p-5d6aeead.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c6522787.entry.js → p-604a0f7f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cdcadde4.entry.js → p-636ec7a9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fbfb797b.entry.js → p-65bb8272.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dd4dd851.entry.js → p-6667a454.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-26d85bc6.entry.js → p-6d897554.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-803427c0.entry.js → p-6e4adfca.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a0a97154.entry.js → p-7791b84e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2dbabd46.entry.js → p-78876057.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f9d1baff.entry.js → p-7ca16e75.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d38658e5.entry.js → p-7de1f390.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-716f776d.entry.js → p-7e1407ed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dbe0631c.entry.js → p-8378b1b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-715ee2ff.entry.js → p-86806c28.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34f1acb2.entry.js → p-89c5488e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-8e818335.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e50f9a83.entry.js → p-92fee962.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ec3c2e09.entry.js → p-994966b3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f84402f5.entry.js → p-a25f0a7d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a3ebf19e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e81db5bb.entry.js → p-a68abe9e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-57b7d2db.entry.js → p-a97fe690.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-380f6c4a.entry.js → p-aa4b0b25.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-aa0236c9.entry.js → p-ac02d254.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-213effa0.entry.js → p-ae84aca5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be6c1375.entry.js → p-b1d403e7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5f833125.entry.js → p-b2f2a7e1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6161680e.entry.js → p-bfe1e622.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-07bf7a4c.entry.js → p-c115f0b6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bc18ea3b.entry.js → p-c52c7e48.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8d5a4d79.entry.js → p-ca93f094.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-cc3dba82.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-4d87e663.entry.js → p-cddba5cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d1a899f9.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-580e3d1c.entry.js → p-d31b073e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1f18c382.entry.js → p-d380407a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6635a6ed.entry.js → p-d6c189be.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-825ac3ee.entry.js → p-d719b9b2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-567e91a2.entry.js → p-d871c56b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7b44bdd0.entry.js → p-dc81cdef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9bb6bb13.entry.js → p-e109ed01.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ec4835d4.entry.js → p-e29026d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-04151f21.entry.js → p-ef17b40f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e2bb64f4.entry.js → p-f1a4f5c9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-91184639.entry.js → p-f26771dc.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-action-button/gux-action-button.d.ts +3 -4
- package/dist/types/components/stable/gux-context-menu/gux-context-menu.d.ts +7 -3
- package/dist/types/components.d.ts +8 -8
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -1
- package/dist/genesys-webcomponents/p-2c12eaa2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-848ca0c0.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8c7108f3.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c9f7655e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ce376c15.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d6e7c0e1.entry.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
import{h as r,r as a,g as e}from"./p-7d26b2e1.js";import{b as s}from"./p-deee079e.js";import{t}from"./p-
|
1
|
+
import{h as r,r as a,g as e}from"./p-7d26b2e1.js";import{b as s}from"./p-deee079e.js";import{t}from"./p-03ca7264.js";import"./p-8a133b9b.js";const o=({context:a="modal",screenreaderText:e})=>{let s=48,t=22;return"input"===a&&(s=16,t=7),r("div",{class:`gux-${a}`,role:"progressbar","aria-label":e},r("svg",{class:"gux-svg-container",viewBox:`0 0 ${s} ${s}`,role:"presentation"},r("circle",{cx:"50%",cy:"50%",r:t,class:"gux-static-circle"}),r("circle",{cx:"50%",cy:"50%",r:t,class:"gux-dynamic-circle","stroke-linecap":"round"}),r("circle",{cx:"50%",cy:"50%",r:t,class:"gux-dynamic-circle-mask","stroke-linecap":"round"})))},n={loading:"Loading"},i=class{constructor(r){a(this,r),this.context="modal",this.screenreaderText=""}async componentWillLoad(){t(this.root,{variant:this.context}),this.getI18nValue=await s(this.root,n)}render(){return r(o,{context:this.context,screenreaderText:this.screenreaderText||this.getI18nValue("loading")})}get root(){return e(this)}};i.style="@keyframes largeSpin{0%{transform:rotate(0deg);stroke-dasharray:1 68.115038379}7.5%{transform:rotate(0deg);stroke-dasharray:1 68.115038379}20%{transform:rotate(90deg);stroke-dasharray:1 68.115038379}30%{transform:rotate(180deg);stroke-dasharray:34.5575191895}40%{stroke-dasharray:34.5575191895}50%{transform:rotate(450deg);stroke-dasharray:1 68.115038379}57.5%{transform:rotate(450deg);stroke-dasharray:1 68.115038379}70%{transform:rotate(540deg);stroke-dasharray:34.5575191895}80%{transform:rotate(630deg);stroke-dasharray:34.5575191895}90%{stroke-dasharray:34.5575191895}100%{transform:rotate(900deg);stroke-dasharray:1 68.115038379}}@keyframes smallSpin{0%{transform:rotate(0deg);stroke-dasharray:1 20.9911485751}7.5%{transform:rotate(0deg);stroke-dasharray:1 20.9911485751}20%{transform:rotate(90deg);stroke-dasharray:1 20.9911485751}30%{transform:rotate(180deg);stroke-dasharray:10.9955742876}40%{stroke-dasharray:10.9955742876}50%{transform:rotate(450deg);stroke-dasharray:1 20.9911485751}57.5%{transform:rotate(450deg);stroke-dasharray:1 20.9911485751}70%{transform:rotate(540deg);stroke-dasharray:10.9955742876}80%{transform:rotate(630deg);stroke-dasharray:10.9955742876}90%{stroke-dasharray:10.9955742876}100%{transform:rotate(900deg);stroke-dasharray:1 20.9911485751}}@keyframes largeThinSpin{0%{transform:rotate(0deg);stroke-dasharray:1 72.8274273594}7.5%{transform:rotate(0deg);stroke-dasharray:1 72.8274273594}20%{transform:rotate(90deg);stroke-dasharray:1 72.8274273594}30%{transform:rotate(180deg);stroke-dasharray:36.9137136797}40%{stroke-dasharray:36.9137136797}50%{transform:rotate(450deg);stroke-dasharray:1 72.8274273594}57.5%{transform:rotate(450deg);stroke-dasharray:1 72.8274273594}70%{transform:rotate(540deg);stroke-dasharray:36.9137136797}80%{transform:rotate(630deg);stroke-dasharray:36.9137136797}90%{stroke-dasharray:36.9137136797}100%{transform:rotate(900deg);stroke-dasharray:1 72.8274273594}}:host{display:inline-block}div[role=progressbar] .gux-svg-container{display:block;height:var(--gse-ui-progressAndLoading-spinner-large);width:var(--gse-ui-progressAndLoading-spinner-large)}div[role=progressbar] .gux-svg-container .gux-dynamic-circle,div[role=progressbar] .gux-svg-container .gux-dynamic-circle-mask{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:4;transform-origin:50% 50%;animation-name:largeSpin;animation-duration:2s;animation-iteration-count:infinite, infinite;animation-timing-function:linear}div[role=progressbar] .gux-svg-container .gux-dynamic-circle-mask{display:none;stroke:white;stroke-width:3}div[role=progressbar] .gux-svg-container .gux-static-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:4}div[role=progressbar].gux-full-page .gux-svg-container .gux-dynamic-circle-mask{display:initial}div[role=progressbar].gux-full-page .gux-svg-container .gux-static-circle{display:none}div[role=progressbar].gux-input .gux-svg-container{height:var(--gse-ui-progressAndLoading-spinner-small);width:var(--gse-ui-progressAndLoading-spinner-small)}div[role=progressbar].gux-input .gux-svg-container .gux-dynamic-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:2;transform-origin:50% 50%;animation-name:smallSpin;animation-duration:2s;animation-iteration-count:infinite, infinite;animation-timing-function:linear}div[role=progressbar].gux-input .gux-svg-container .gux-static-circle{stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:2}";export{i as gux_radial_loading}
|
@@ -1 +1 @@
|
|
1
|
-
import{r,h as e,g as i}from"./p-7d26b2e1.js";import{b as o}from"./p-deee079e.js";import{t as a}from"./p-
|
1
|
+
import{r,h as e,g as i}from"./p-7d26b2e1.js";import{b as o}from"./p-deee079e.js";import{t as a}from"./p-03ca7264.js";import"./p-8a133b9b.js";const t={info:"Information alert with message",success:"Success alert with message",warning:"Warning alert with message",error:"Error alert with message"},s=class{constructor(e){r(this,e),this.accent="info"}getIcon(r){switch(r){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(){a(this.root,{variant:this.accent}),this.i18n=await o(this.root,t)}render(){return e("div",{class:{"gux-inline-alert":!0,[`gux-${this.accent}`]:!0}},e("gux-icon",{"icon-name":this.getIcon(this.accent),decorative:!0}),e("div",{class:"gux-message-wrapper"},e("div",{class:"gux-sr-only"},this.i18n(this.accent)),e("slot",null)))}get root(){return i(this)}};s.style=":host{display:block}.gux-inline-alert{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-alert-gap);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;width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);margin-top:1px}.gux-inline-alert gux-tooltip-title{white-space:nowrap}.gux-inline-alert .gux-message-wrapper{display:flex;justify-content:flex-start;align-items:center;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-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.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{s as gux_inline_alert}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as o,H as t,g as r}from"./p-7d26b2e1.js";import{c as i,o as l}from"./p-3f5341ea.js";import{O as a}from"./p-f34ce7dc.js";import{p as s}from"./p-c10e41a9.js";import{h as n}from"./p-08bc2e6b.js";import{G as d,a as g,g as u,v as p}from"./p-b3c9fd06.js";import{t as f}from"./p-
|
1
|
+
import{r as e,h as o,H as t,g as r}from"./p-7d26b2e1.js";import{c as i,o as l}from"./p-3f5341ea.js";import{O as a}from"./p-f34ce7dc.js";import{p as s}from"./p-c10e41a9.js";import{h as n}from"./p-08bc2e6b.js";import{G as d,a as g,g as u,v as p}from"./p-b3c9fd06.js";import{t as f}from"./p-03ca7264.js";import"./p-cbcbd1bb.js";import"./p-d0805f56.js";import"./p-d176c2ae.js";const h=class{constructor(o){e(this,o),this.disabled=void 0,this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help")}componentWillLoad(){this.setInput(),this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help"),f(this.root)}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect()}render(){return o(t,{class:{"gux-input-error":this.hasError,"gux-disabled":this.disabled}},o("div",{class:"gux-form-field-container"},o("div",{class:"gux-input-label"},o("div",{class:"gux-input"},o("slot",{name:"input",onSlotchange:()=>this.setInput()})),o("div",{class:"gux-label"},o("slot",{name:"label"}),o(d,{show:this.hasError},o("slot",{name:"error"})),o(g,{show:!this.hasError&&this.hasHelp},o("slot",{name:"help"}))))))}setInput(){this.input=u(this.root,'input[type="radio"][slot="input"]'),s(this.input),this.disabled=i(this.input),this.disabledObserver=l(this.input,(e=>{this.disabled=e})),p(this.root,this.input)}get root(){return r(this)}};(function(e,o,t,r){var i,l=arguments.length,a=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,o,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(l<3?i(a):l>3?i(o,t,a):i(o,t))||a);l>3&&a&&Object.defineProperty(o,t,a)})([a({childList:!0,subtree:!0})],h.prototype,"onMutation",null),h.style=".gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:var(--gse-ui-icon-size-sm);min-height:var(--gse-ui-icon-size-sm);margin-right:var(--gse-ui-formControl-helper-gap);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-padding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}:host(.gux-disabled){cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}:host(.gux-disabled) ::slotted(label){cursor:not-allowed}:host(.gux-input-error) ::slotted(input[type=radio]:not(:checked))::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill='%23E22245'/%3E%3C/svg%3E\")}:host(.gux-input-error) ::slotted(input[type=radio]:checked)::before{background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' fill='%23E22245'/%3E%3C/svg%3E\")}:host(.gux-input-error) .gux-form-field-error{color:var(--gse-ui-radioButton-icon-error-foregroundColor);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily)}.gux-input-label{display:flex;flex-direction:row;padding-top:4px}.gux-input-label .gux-label{display:flex;flex-direction:column;line-height:var(--gse-ui-radioButton-label-text-lineHeight)}::slotted(input[type=radio]){display:inline-grid;width:var(--gse-ui-radioButton-icon-width);height:var(--gse-ui-radioButton-icon-height);margin:1px var(--gse-ui-radioButton-helper-gap) 0px 0px;text-align:center;vertical-align:middle;-webkit-appearance:none;appearance:none;cursor:pointer;border:0;outline:none;color:var(--gse-ui-radioButton-icon-default-unselectedForegroundColor)}::slotted(input[type=radio])::before{grid-area:1/1;content:\"\";border-radius:50%}::slotted(input[type=radio]:focus-visible){border-radius:var(--gse-ui-radioButton-focus-borderRadius);outline:var(--gse-ui-radioButton-focus-border-width) var(--gse-ui-radioButton-focus-border-style) var(--gse-ui-radioButton-focus-border-color);outline-offset:1px}::slotted(input[type=radio]:not(:checked))::before{background-image:\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' fill='%23767C8D'/%3E%3C/svg%3E\"}::slotted(input[type=radio]:not(:checked):not(:disabled):hover)::before{background-image:\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40937 1.5 1.5 4.40937 1.5 8C1.5 11.5906 4.40937 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40937 11.5906 1.5 8 1.5Z' fill-rule='evenodd' clip-rule='evenodd' fill='%233742A2'/%3E%3C/svg%3E\"}::slotted(input[type=radio]:checked:not(:disabled):hover)::before{background-image:\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' fill='%233742A2'/%3E%3C/svg%3E\"}::slotted(input[type=radio]:checked)::before{background-image:\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8C5 6.31563 6.31563 5 8 5C9.65625 5 11 6.31563 11 8C11 9.65625 9.65625 11 8 11C6.31563 11 5 9.65625 5 8ZM16 8C16 12.4187 12.4187 16 8 16C3.58125 16 0 12.4187 0 8C0 3.58125 3.58125 0 8 0C12.4187 0 16 3.58125 16 8ZM8 1.5C4.40938 1.5 1.5 4.40938 1.5 8C1.5 11.5906 4.40938 14.5 8 14.5C11.5906 14.5 14.5 11.5906 14.5 8C14.5 4.40938 11.5906 1.5 8 1.5Z' fill='%234856CB'/%3E%3C/svg%3E\"}::slotted(input[type=radio]:disabled)::before{cursor:not-allowed;opacity:var(--gse-ui-radioButton-disabled-opacity)}::slotted(label){display:inline-block;font-size:var(--gse-ui-formControl-label-text-fontSize);line-height:var(--gse-ui-radioButton-label-text-lineHeight);vertical-align:middle;font-weight:var(--gse-ui-radioButton-label-text-fontWeight);color:var(--gse-ui-radioButton-label-foregroundColor);font-family:var(--gse-ui-radioButton-label-text-fontFamily)}";export{h as gux_form_field_radio}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as o,h as a,g as i}from"./p-7d26b2e1.js";import{r as n}from"./p-cbcbd1bb.js";import{t as s}from"./p-
|
1
|
+
import{r as t,c as o,h as a,g as i}from"./p-7d26b2e1.js";import{r as n}from"./p-cbcbd1bb.js";import{t as s}from"./p-03ca7264.js";const e=class{constructor(a){t(this,a),this.guxdismiss=o(this,"guxdismiss",7),this.size="dynamic",this.trapFocus=!0,this.initialFocus=void 0}handleKeyEvent(t){"Escape"===t.key&&this.onDismissHandler(t)}connectedCallback(){this.triggerElement=document.activeElement}componentWillLoad(){s(this.root,{variant:`${this.size}-${this.trapFocus?"trapfocuson":"trapfocusoff"}`})}componentDidLoad(){var t,o,a;const i=this.getInitialFocusElement();i?null===(t=i.focus)||void 0===t||t.call(i):this.dismissButton&&(null===(a=(o=this.dismissButton).focus)||void 0===a||a.call(o))}render(){const t=this.hasModalTitleSlot(),o=this.hasFooterButtons(),i=n();return a("div",{class:"gux-modal",role:"dialog","aria-modal":"true","aria-labelledby":t?i:null},a("div",{class:`gux-modal-container gux-${this.size}`},this.renderModalTrapFocusEl(),t&&a("h1",{class:"gux-modal-header",id:i},a("slot",{name:"title"})),a("gux-dismiss-button",{onClick:this.onDismissHandler.bind(this),ref:t=>this.dismissButton=t}),a("div",{class:{"gux-modal-content":!0,"gux-no-buttons":!o}},a("p",null,a("slot",{name:"content"}))),o&&a("div",{class:"gux-button-footer"},a("div",{class:"gux-left-align-buttons"},a("slot",{name:"left-align-buttons"})),a("div",{class:"gux-right-align-buttons"},a("slot",{name:"right-align-buttons"}))),this.renderModalTrapFocusEl()))}renderModalTrapFocusEl(){if(this.trapFocus)return a("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(t){var o;t.stopPropagation(),this.guxdismiss.emit().defaultPrevented||(this.root.remove(),null===(o=this.triggerElement)||void 0===o||o.focus())}get root(){return i(this)}};e.style=":host .gux-modal{position:fixed;inset:0;z-index:var(--gux-zindex-modal, 1);display:flex;align-items:center;justify-content:center;color:#2e394c;background:rgba(32, 41, 55, 0.8)}:host .gux-modal .gux-modal-container{position:relative;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;padding:40px;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 8px 24px rgba(32, 41, 55, 0.4)}:host .gux-modal .gux-modal-container.gux-small{width:416px;max-height:min(368px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-medium{width:672px;max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-large{width:940px;max-height:min(640px, 100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-dynamic{max-width:calc(100vw - 2 * 24px);max-height:calc(100vh - 2 * 24px)}:host .gux-modal .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host .gux-modal .gux-modal-container .gux-modal-header{padding-bottom:24px;margin:0;font-family:sans-serif;font-weight:400;font-weight:300;font-size:24px;line-height:32px}:host .gux-modal .gux-modal-container .gux-modal-content{max-height:432px;margin:0 8px 24px;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}:host .gux-modal .gux-modal-container .gux-button-footer .gux-left-align-buttons gux-button{padding-right:5px}:host .gux-modal .gux-modal-container .gux-button-footer .gux-right-align-buttons gux-button{padding-left:5px}@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{e as gux_modal}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,d as e,h as i,H as a,g as o}from"./p-7d26b2e1.js";import{O as n}from"./p-13dd4c6b.js";import{O as r}from"./p-f34ce7dc.js";import{t as s}from"./p-
|
1
|
+
import{r as t,d as e,h as i,H as a,g as o}from"./p-7d26b2e1.js";import{O as n}from"./p-13dd4c6b.js";import{O as r}from"./p-f34ce7dc.js";import{t as s}from"./p-03ca7264.js";import{g as l}from"./p-3e6097e5.js";function u(t,e){[].concat(t).forEach((t=>{null!=t&&(t.accent=e)}))}function h(t,...e){e.flat().filter((t=>null!==t&&!t.hasAttribute("icon-only"))).forEach((e=>e.iconOnly=t))}var c=function(t,e,i,a){var o,n=arguments.length,r=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const d=class{constructor(e){t(this,e),this.minimumSizes={full:0,iconOnly:0,condensed:0},this.displayedLayout="full",this.hasContextDivider=!1}onMutation(){this.hasContextDivider=this.needsContextDivider()}recordLayoutMinSize(){e((()=>{var t,e;const i=0|(null===(t=this.filterSlot)||void 0===t?void 0:t.clientWidth),a=0|(null===(e=this.actionsContainer)||void 0===e?void 0:e.clientWidth);this.minimumSizes[this.displayedLayout]=i+a+72}))}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get filterSlot(){return l(this.root,"search-and-filter")}get menuActionSlot(){return l(this.root,"menu-actions")}get permanentSlot(){return l(this.root,"permanent-actions")}get contextualSlot(){return l(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,e;if(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.permanentSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get menuActionsItems(){var t,e;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.menuActionSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,e;if(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.contextualSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get filterActions(){var t,e;if(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(e=this.filterSlot)||void 0===e?void 0:e.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",h(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(t){this.displayedLayout="iconOnly",h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.iconOnlySectionWidth=t}renderIconOnlyLayoutScaleUp(){var t,e;this.displayedLayout="iconOnly",u(this.permanentActions,"secondary"),u(this.primaryAction,"primary"),h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.root)||void 0===e||e.appendChild(this.primaryAction))}renderCondensedLayout(){var t,e;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(e=this.menuActionSlot)||void 0===e||e.appendChild(this.primaryAction)),h(!0,...this.allFilterContextual),h(!1,...this.permanentActions),h(!1,this.primaryAction),u(this.menuActionsItems,"ghost")}componentWillLoad(){s(this.root),this.hasContextDivider=this.needsContextDivider()}componentDidLoad(){this.recordLayoutMinSize(),this.checkResponsiveLayout(),u(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){e((()=>{var t;const e=0|(null===(t=this.actionsContainer)||void 0===t?void 0:t.clientWidth),i=this.root.clientWidth;i<=this.minimumSizes.full&&i>=this.minimumSizes.iconOnly?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown(e):"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():i<=this.minimumSizes.iconOnly?this.renderCondensedLayout():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return i(a,{role:"toolbar","aria-orientation":"horizontal"},i("div",{class:"search-filter-container"},i("slot",{name:"search-and-filter"})),i("div",{class:"section-spacing"}),i("div",{class:"gux-contextual-permanent-primary"},i("div",{class:{"gux-contextual-wrapper":this.hasContextDivider}},i("slot",{name:"contextual-actions"})),i("div",{class:"gux-permanent-menu-primary-wrapper"},i("slot",{name:"permanent-actions"}),i("gux-table-toolbar-menu-button",{"show-menu":this.renderMenu()},i("slot",{name:"menu-actions"})),i("slot",{name:"primary-action"}))))}get root(){return o(this)}};c([r({childList:!0,subtree:!0})],d.prototype,"onMutation",null),c([n()],d.prototype,"checkResponsiveLayout",null),d.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;max-height:var(--gse-ui-dataTableItems-tableToolbar-height)}:host .search-filter-container{width:260px;min-width:260px;padding-right:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host slot[name=search-and-filter]::slotted(*){display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-width:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between;padding-left:var(--gse-ui-dataTableItems-tableToolbar-gap)}:host .gux-contextual-permanent-primary slot[name=permanent-actions]::slotted(*),:host .gux-contextual-permanent-primary slot[name=contextual-actions]::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-right:var(--gse-ui-dataTableItems-tableToolbar-gap);border-right:var(--gse-ui-dataTableItems-tableToolbar-divider-width) solid var(--gse-ui-dataTableItems-tableToolbar-dividerColor)}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tableToolbar-tableToolbarGroup-gap);margin-left:var(--gse-ui-dataTableItems-tableToolbar-gap)}";export{d as gux_table_toolbar}
|