genesys-spark-components 4.88.1 → 4.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{floating-ui.dom.esm-0f6207f9.js → floating-ui.dom.esm-139d92fc.js} +44 -9
- 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-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_4.cjs.entry.js +25 -4
- 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 +2 -2
- 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-flag-icon-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +2 -2
- 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.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-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-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.cjs.entry.js +12 -3
- 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 +2 -2
- package/dist/cjs/gux-popup.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-screen-reader-beta_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-segmented-control-item.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-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-submenu.cjs.entry.js +5 -5
- 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 +9 -4
- package/dist/cjs/gux-table.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip-base-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/{usage-17013e9f.js → usage-07398a5d.js} +7 -7
- package/dist/collection/components/beta/gux-segmented-control/gux-segmented-control-item/gux-segmented-control-item.css +1 -0
- package/dist/collection/components/stable/gux-flyout-menu/gux-menu/gux-submenu/gux-submenu.js +5 -5
- package/dist/collection/components/stable/gux-modal/gux-modal.css +6 -0
- package/dist/collection/components/stable/gux-modal/gux-modal.js +10 -1
- package/dist/collection/components/stable/gux-popover/gux-popover.js +6 -2
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.js +5 -2
- package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar.service.js +3 -1
- package/dist/collection/utils/decorator/throttle-method.js +17 -0
- package/dist/esm/{floating-ui.dom.esm-3320b3cf.js → floating-ui.dom.esm-92d89cdf.js} +44 -9
- 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-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_4.entry.js +25 -4
- 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 +2 -2
- 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-flag-icon-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +2 -2
- 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.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-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-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.entry.js +12 -3
- 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 +2 -2
- package/dist/esm/gux-popup.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-screen-reader-beta_2.entry.js +1 -1
- package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
- package/dist/esm/gux-segmented-control-item.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-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-submenu.entry.js +5 -5
- 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 +9 -4
- package/dist/esm/gux-table.entry.js +1 -1
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +1 -1
- package/dist/esm/gux-time-picker.entry.js +1 -1
- package/dist/esm/gux-time-zone-beta.entry.js +1 -1
- package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toast.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +1 -1
- package/dist/esm/gux-tooltip-base-beta.entry.js +2 -2
- package/dist/esm/gux-tooltip.entry.js +2 -2
- package/dist/esm/{usage-f3c56324.js → usage-b48efd4d.js} +7 -7
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-85bb3d60.entry.js → p-07b66775.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c7981577.entry.js → p-08169ab4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4841357a.entry.js → p-0a36f9de.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f7d247d1.entry.js → p-0a5d32a8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bc49184d.entry.js → p-0cfc86b5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2aa1b7d2.entry.js → p-1462fb5a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c57a8d7c.entry.js → p-19c84469.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1c3dc7ff.entry.js → p-1b1cc927.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dcdc0784.entry.js → p-1f7f294d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bf49fd5e.entry.js → p-1fa89336.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-79364b85.entry.js → p-1fbb2ef7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3f3342c9.entry.js → p-21581e59.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d48f9443.entry.js → p-219b4619.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-06f242be.entry.js → p-239d8278.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1d9e875.entry.js → p-2ea71849.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a3106d08.entry.js → p-2fea8d5d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-159427df.entry.js → p-31367786.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b378ca06.entry.js → p-339a688f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-390d6f42.js +1 -0
- package/dist/genesys-webcomponents/{p-1c280d77.js → p-3c1caab7.js} +1 -1
- package/dist/genesys-webcomponents/{p-0cbb3dde.entry.js → p-3d9623d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d2be6c87.entry.js → p-3db2f508.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-79062c61.entry.js → p-402d1a00.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4d934841.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-9e1e3aee.entry.js → p-4e9e0716.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4f0b3aa9.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f8325d77.entry.js → p-503ee6d4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1d651c17.entry.js → p-523e2503.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b8d22f80.entry.js → p-53f2bdd3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-368f91f0.entry.js → p-578855dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e6b18dbb.entry.js → p-5917654e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b052a568.entry.js → p-5a635fc2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-19a49b26.entry.js → p-5a863561.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9edb30c8.entry.js → p-5b9eda9d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-df10c0d4.entry.js → p-5cabdf08.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-88417e4f.entry.js → p-5dd8997c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ece7a939.entry.js → p-5f819204.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dd8c9445.entry.js → p-60973a34.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-633acb66.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-92ca3417.entry.js → p-69921618.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b6a15275.entry.js → p-6b2dacad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0f61ba5d.entry.js → p-6c3ef60d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8e649f3b.entry.js → p-6d84d369.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a5299515.entry.js → p-6db8268a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2c2e4b71.entry.js → p-70d6bd1e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8d75b61a.entry.js → p-740c2594.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2cc90e41.entry.js → p-806f6047.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ab702d8c.entry.js → p-840b109e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2f44cf12.entry.js → p-8473d210.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8c3e5d1e.entry.js → p-89985685.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d8bce86b.entry.js → p-8c1f9ca1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a91241b7.entry.js → p-8d1fe113.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a39441ad.entry.js → p-8dedd02d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-53c97289.entry.js → p-92cc1ea3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-97b8c815.entry.js → p-93ba3098.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-558af16c.entry.js → p-940b6362.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-268cc987.entry.js → p-982ffcee.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-017f2525.entry.js → p-9a6ad5cb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6d27eb1d.entry.js → p-9bc81b4b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3c3c9515.entry.js → p-9be6d60d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e05041da.entry.js → p-9fed3f39.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3a7b2f84.entry.js → p-a1088f12.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3fea003.entry.js → p-a3b4c7ed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-794e39eb.entry.js → p-a43961b7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4734148f.entry.js → p-a8f21ed2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e06e58de.entry.js → p-aa172845.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fe286f05.entry.js → p-ad2c1014.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b0c22216.entry.js → p-ae782851.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e3dc29cc.entry.js → p-befc1b57.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-11170953.entry.js → p-c24590d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ccb16778.entry.js → p-c2f7ec9f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6728ebdf.entry.js → p-c3767a65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-11b3bd60.entry.js → p-c4bef29a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ac3a3f7f.entry.js → p-c542b464.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e36ebb67.entry.js → p-c63be97e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c96b7cba.entry.js → p-c7f9e75a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-53279918.entry.js → p-cb5f2819.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-52cb76b5.entry.js → p-ce6de406.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-494880c5.entry.js → p-cf71c242.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fee4b2e4.entry.js → p-cfd583ac.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-721ceb98.entry.js → p-d0dbda7d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3e4694d.entry.js → p-d4a057c0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c54736c8.entry.js → p-d88aaaba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1f4c3cae.entry.js → p-daf4fdce.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34e31988.entry.js → p-db52ab2d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7d6b60ee.entry.js → p-e1620ace.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f39cb250.entry.js → p-e20749dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e16fb61d.entry.js → p-e808d20a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-59baba82.entry.js → p-e811c8f3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-75afcd0c.entry.js → p-e8726049.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-78c40009.entry.js → p-ee85e74b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-30eaa093.entry.js → p-f3584a21.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e4e731ef.entry.js → p-f49aec09.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4b90a640.entry.js → p-fa619e47.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d8907f76.entry.js → p-fb9c7976.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-ff84a631.entry.js +1 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-modal/gux-modal.d.ts +1 -0
- package/dist/types/components/stable/gux-table-toolbar/gux-table-toolbar.d.ts +4 -4
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/dist/types/utils/decorator/throttle-method.d.ts +4 -0
- package/package.json +7 -7
- package/dist/genesys-webcomponents/p-159537f2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-40b7d7c2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-774f0328.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d1ffff8e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-d8ba5b01.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
import{r as e,c as t,h as a,g as n}from"./p-6e010355.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-1c280d77.js";import{g as l,a as c}from"./p-18eb7333.js";import{c as g}from"./p-267e2aed.js";import{u as h,d as x}from"./p-7f923c19.js";import"./p-4202e9f2.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:"50e4c8fa12b58729f64382043e68142b2a6bff39",class:"gux-calendar"},a("div",{key:"79524dce607d1a2d8e63cd9ab85d688493afb547",class:"gux-header"},a("button",{key:"a09787131208775edcb9e670f2c0aa1ed6ccdf1c",type:"button",class:"gux-left",onClick:()=>this.incrementPreviewDateByMonth(-1),tabindex:"-1","aria-hidden":"true"},a("gux-icon",{key:"217f95a36e44378abaec97921f2851708be77648",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})),this.renderMonthHeader(),a("button",{key:"4b484360c1d4c905d6c24f1eeee2a201e72e6fe5",type:"button",class:"gux-right",onClick:()=>this.incrementPreviewDateByMonth(1),tabindex:"-1","aria-hidden":"true"},a("gux-icon",{key:"ee922f97949c7a2897bca65fd7093eb1224d2082",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("div",{key:"7b3c7da612a2aa066ffed6425c982502dededaa2",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-top:2px;border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius);box-shadow:var(--gse-ui-calendarMenu-boxShadow-x, var(--gse-ui-calendarMenu-boxShadow-offsetX)) var(--gse-ui-calendarMenu-boxShadow-y, var(--gse-ui-calendarMenu-boxShadow-offsetY)) var(--gse-ui-calendarMenu-boxShadow-blur) var(--gse-ui-calendarMenu-boxShadow-spread) var(--gse-ui-calendarMenu-boxShadow-color)}.gux-calendar .gux-header{position:relative;display:flex;gap:var(--gse-ui-calendarMenu-header-gap);align-items:center;justify-content:space-between;height:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-weight:var(--gse-ui-calendarMenu-month-currentText-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;background:none;border:none;outline: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{left:18px}.gux-calendar .gux-header button.gux-right{right:18px}.gux-calendar .gux-header button gux-icon{width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));pointer-events:none}.gux-calendar .gux-header .gux-month-list{display:flex;justify-content:space-between;width: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{width:100%;text-align:center}.gux-calendar .gux-content{display:flex;align-items:flex-start;height: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{width:var(--gse-ui-calendarMenu-day-input-width);text-align:left;table-layout:fixed;border-spacing:0;-ms-user-select:none;user-select:none}.gux-calendar .gux-content table:not(:last-child){padding-right:24px}.gux-calendar .gux-content table tr{height: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{width:var(--gse-ui-calendarMenu-day-date-size);height: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;width:var(--gse-ui-calendarMenu-day-date-size);height: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:16px 0 0 16px}.gux-calendar .gux-content table tr td.gux-end-date{border-radius:0 16px 16px 0}.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-focusRing-default-border-width, var(--gse-semantic-focusOutline-md-borderWidth)) solid var(--gse-semantic-focusRing-default-border-color, var(--gse-semantic-border-focus))}.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-6e010355.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-3c1caab7.js";import{g as l,a as c}from"./p-18eb7333.js";import{c as g}from"./p-267e2aed.js";import{u as h,d as x}from"./p-7f923c19.js";import"./p-4202e9f2.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:"50e4c8fa12b58729f64382043e68142b2a6bff39",class:"gux-calendar"},a("div",{key:"79524dce607d1a2d8e63cd9ab85d688493afb547",class:"gux-header"},a("button",{key:"a09787131208775edcb9e670f2c0aa1ed6ccdf1c",type:"button",class:"gux-left",onClick:()=>this.incrementPreviewDateByMonth(-1),tabindex:"-1","aria-hidden":"true"},a("gux-icon",{key:"217f95a36e44378abaec97921f2851708be77648",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})),this.renderMonthHeader(),a("button",{key:"4b484360c1d4c905d6c24f1eeee2a201e72e6fe5",type:"button",class:"gux-right",onClick:()=>this.incrementPreviewDateByMonth(1),tabindex:"-1","aria-hidden":"true"},a("gux-icon",{key:"ee922f97949c7a2897bca65fd7093eb1224d2082",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),a("div",{key:"7b3c7da612a2aa066ffed6425c982502dededaa2",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-top:2px;border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius);box-shadow:var(--gse-ui-calendarMenu-boxShadow-x, var(--gse-ui-calendarMenu-boxShadow-offsetX)) var(--gse-ui-calendarMenu-boxShadow-y, var(--gse-ui-calendarMenu-boxShadow-offsetY)) var(--gse-ui-calendarMenu-boxShadow-blur) var(--gse-ui-calendarMenu-boxShadow-spread) var(--gse-ui-calendarMenu-boxShadow-color)}.gux-calendar .gux-header{position:relative;display:flex;gap:var(--gse-ui-calendarMenu-header-gap);align-items:center;justify-content:space-between;height:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-weight:var(--gse-ui-calendarMenu-month-currentText-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;background:none;border:none;outline: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{left:18px}.gux-calendar .gux-header button.gux-right{right:18px}.gux-calendar .gux-header button gux-icon{width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));pointer-events:none}.gux-calendar .gux-header .gux-month-list{display:flex;justify-content:space-between;width: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{width:100%;text-align:center}.gux-calendar .gux-content{display:flex;align-items:flex-start;height: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{width:var(--gse-ui-calendarMenu-day-input-width);text-align:left;table-layout:fixed;border-spacing:0;-ms-user-select:none;user-select:none}.gux-calendar .gux-content table:not(:last-child){padding-right:24px}.gux-calendar .gux-content table tr{height: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{width:var(--gse-ui-calendarMenu-day-date-size);height: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;width:var(--gse-ui-calendarMenu-day-date-size);height: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:16px 0 0 16px}.gux-calendar .gux-content table tr td.gux-end-date{border-radius:0 16px 16px 0}.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-focusRing-default-border-width, var(--gse-semantic-focusOutline-md-borderWidth)) solid var(--gse-semantic-focusRing-default-border-color, var(--gse-semantic-border-focus))}.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,h as o,H as e,g as n}from"./p-6e010355.js";import{t as r}from"./p-
|
1
|
+
import{r as t,h as o,H as e,g as n}from"./p-6e010355.js";import{t as r}from"./p-3c1caab7.js";import{l as a}from"./p-8eaf8caf.js";const i=class{constructor(o){t(this,o),this.accent="secondary",this.iconOnly=void 0}validateSlotContent(){let t=this.root.children[0],o=t.tagName;if("SLOT"===o&&(t=t.assignedNodes()[0],o=t.tagName),"BUTTON"!==o){if("INPUT"===o){const o=t.getAttribute("type");if("button"===o||"submit"===o)return}a(this.root,'You must slot a button, input[type="button"] or input[type="submit"] element.')}}componentWillLoad(){r(this.root),this.validateSlotContent()}render(){return o(e,{key:"97327f6adb2afbf3f3964ac7088fe5144252f852",accent:this.accent,"icon-only":this.iconOnly},o("slot",{key:"38f6916560f245944646846aa9e9e2cf78a9fb1e"}))}get root(){return n(this)}};i.style=":host{display:inline-block;pointer-events:none}::slotted(input[type=button]),::slotted(input[type=submit]),::slotted(button){font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-iconOnly-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}:host([icon-only]) ::slotted(input[type=button]),:host([icon-only]) ::slotted(input[type=submit]),:host([icon-only]) ::slotted(button){padding:var(--gse-ui-button-default-paddingIconOnly)}::slotted(input[type=button][disabled]),::slotted(input[type=submit][disabled]),::slotted(button[disabled]){cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}::slotted(input[type=button]:focus),::slotted(input[type=submit]:focus),::slotted(button:focus){outline:none}::slotted(input[type=button]:focus-visible:enabled),::slotted(input[type=submit]:focus-visible:enabled),::slotted(button:focus-visible:enabled){outline:var(--gse-semantic-focusRing-default-border-color, var(--gse-semantic-border-focus)) solid var(--gse-semantic-focusRing-default-border-width, var(--gse-semantic-focusOutline-md-borderWidth));outline-offset:var(--gse-semantic-focusRing-offset, var(--gse-semantic-focusOutline-offset))}::slotted(input[type=button]:hover:enabled),::slotted(input[type=submit]:hover:enabled),::slotted(button:hover:enabled){color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}::slotted(input[type=button]:active:enabled),::slotted(input[type=submit]:active:enabled),::slotted(button:active:enabled){color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]),:host([accent=primary]) ::slotted(input[type=submit]),:host([accent=primary]) ::slotted(button){color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:hover:enabled),:host([accent=primary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=primary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:active:enabled),:host([accent=primary]) ::slotted(input[type=submit]:active:enabled),:host([accent=primary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]),:host([accent=tertiary]) ::slotted(input[type=submit]),:host([accent=tertiary]) ::slotted(button){color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}:host([accent=tertiary]) ::slotted(input[type=button]:hover:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=tertiary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]:active:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:active:enabled),:host([accent=tertiary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]),:host([accent=ghost]) ::slotted(input[type=submit]),:host([accent=ghost]) ::slotted(button){color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:hover:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:hover:enabled),:host([accent=ghost]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:active:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:active:enabled),:host([accent=ghost]) ::slotted(button:active:enabled){color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]),:host([accent=danger]) ::slotted(input[type=submit]),:host([accent=danger]) ::slotted(button){color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:hover:enabled),:host([accent=danger]) ::slotted(input[type=submit]:hover:enabled),:host([accent=danger]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:active:enabled),:host([accent=danger]) ::slotted(input[type=submit]:active:enabled),:host([accent=danger]) ::slotted(button:active:enabled){color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}:host([accent=inline]){min-inline-size:initial}:host([accent=inline]) ::slotted(input[type=button]),:host([accent=inline]) ::slotted(input[type=submit]),:host([accent=inline]) ::slotted(button){block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor, var(--gse-ui-links-default-foregroundColor));background:none;border:none}:host([accent=inline]) ::slotted(input[type=button][disabled]),:host([accent=inline]) ::slotted(input[type=submit][disabled]),:host([accent=inline]) ::slotted(button[disabled]){color:var(--gse-ui-link-disabled-foregroundColor, var(--gse-ui-links-disabled-foregroundColor))}:host([accent=inline]) ::slotted(input[type=button]:hover:enabled),:host([accent=inline]) ::slotted(input[type=submit]:hover:enabled),:host([accent=inline]) ::slotted(button:hover:enabled){color:var(--gse-ui-link-hover-foregroundColor, var(--gse-ui-links-hover-foregroundColor));text-decoration:underline;background:none}:host([accent=inline]) ::slotted(input[type=button]:active:enabled),:host([accent=inline]) ::slotted(input[type=submit]:active:enabled),:host([accent=inline]) ::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor, var(--gse-ui-links-active-foregroundColor));text-decoration:underline;background:none}";export{i as gux_button_slot}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as a,c as o,h as e,g as t}from"./p-6e010355.js";import{r as i}from"./p-0934300e.js";import{t as d}from"./p-
|
1
|
+
import{r as a,c as o,h as e,g as t}from"./p-6e010355.js";import{r as i}from"./p-0934300e.js";import{t as d}from"./p-3c1caab7.js";const n=class{constructor(e){a(this,e),this.guxdismiss=o(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(){d(this.root,{variant:`${this.size}-${this.trapFocus?"trapfocuson":"trapfocusoff"}`})}componentDidLoad(){var a,o,e;const t=this.getInitialFocusElement();t?null===(a=t.focus)||void 0===a||a.call(t):this.dismissButton&&(null===(e=(o=this.dismissButton).focus)||void 0===e||e.call(o))}render(){const a=this.hasModalTitleSlot(),o=this.hasFooterButtons(),t=i();return e("div",{key:"54ee2ee20bdc7eb565ec7c301846fe95c0701b70",class:"gux-modal",role:"dialog","aria-modal":"true","aria-labelledby":a?t:null},e("div",{key:"ebcde8e545160eef0fe351691e414de7d1fe1de4",class:`gux-modal-container gux-${this.size}`},this.renderModalTrapFocusEl(),a&&e("h1",{key:"bd6f5052a0086079dab553f44fbd4e616191b1e9",class:"gux-modal-header",id:t},e("slot",{key:"79b0d5ef17b1f21dbfcef0c2afb5c04f1cd4decb",name:"title"})),e("gux-dismiss-button",{key:"f1baf7b60b9be89ac70bee95945241d1bc268c45",onClick:this.onDismissHandler.bind(this),ref:a=>this.dismissButton=a}),e("div",{key:"de367243bc1c73bbb4f118a8609a6caa735e7924",class:{"gux-modal-content":!0,"gux-no-buttons":!o}},e("p",{key:"1ce53978aa345c27ced2b8593fda10633c17fb72"},e("slot",{key:"a88703c6156de6438eb9f744a1f08b27f5a70df8",name:"content"}))),o&&e("div",{key:"c113dbfb5cda799baa88b4897447349986ced875",class:"gux-button-footer"},e("div",{key:"ffbf55412737f83baa35b8c6be7ff494bf5a2026",class:"gux-left-align-buttons"},e("slot",{key:"d3a7dce0768d19319bbd60e97c22e54fd8538dd9",name:"left-align-buttons"})),e("div",{key:"8f53d0ac415ee4d21496f377c251d4a729fd4daa",class:"gux-right-align-buttons"},e("slot",{key:"3008447b6e0e490bf1d008cdf87197a021cb4239",name:"right-align-buttons"}))),this.renderModalTrapFocusEl()))}renderModalTrapFocusEl(){if(this.trapFocus)return e("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 o;a.stopPropagation(),this.guxdismiss.emit().defaultPrevented||(this.root.remove(),null===(o=this.triggerElement)||void 0===o||o.focus())}get root(){return t(this)}};n.style="::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor, 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-x, var(--gse-ui-modal-boxShadow-offsetX)) var(--gse-ui-modal-boxShadow-y, var(--gse-ui-modal-boxShadow-offsetY)) var(--gse-ui-modal-boxShadow-blur) var(--gse-ui-modal-boxShadow-spread) var(--gse-ui-modal-boxShadow-color)}: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-core-typography-heading-xl-fontFamily, var(--gse-semantic-heading-xl-bold-fontFamily)), var(--gse-core-fontFamily-heading, var(--gse-semantic-theme-fontFamily-headings)), sans-serif;font-size:var(--gse-core-typography-heading-xl-fontSize, var(--gse-semantic-heading-xl-bold-fontSize));line-height:var(--gse-core-typography-heading-xl-lineHeight, var(--gse-semantic-heading-xl-bold-lineHeight));font-weight:var(--gse-core-fontWeight-bold, 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{n as gux_modal_legacy}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as r,g as i}from"./p-6e010355.js";import{b as a}from"./p-18eb7333.js";import{t as o}from"./p-
|
1
|
+
import{r as e,h as r,g as i}from"./p-6e010355.js";import{b as a}from"./p-18eb7333.js";import{t as o}from"./p-3c1caab7.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"},s=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(){o(this.root,{variant:this.accent}),this.i18n=await a(this.root,t)}render(){return r("div",{key:"fde2dfb461f4f9cca557bba7cc7c26e68e089bf2",class:{"gux-inline-alert":!0,[`gux-${this.accent}`]:!0}},r("div",{key:"f605755387c01f481873d88b47ae005d4d8ff45f",class:"gux-message-wrapper"},r("gux-icon",{key:"351c47da96232211a4ffca7a924dee89cda1ff62","icon-name":this.getIcon(this.accent),decorative:!0}),r("div",{key:"0f7d7dd6f360e3ba2d1049b389b4a689f22dca18",class:"gux-sr-only"},this.i18n(this.accent)),r("div",{key:"8adedf88e6c7858b894b587dd15514f8efeb66a6",class:"gux-content"},r("slot",{key:"6fbd601f20f23b7d5d75e8a0ad8afd7d6be65297",name:"content"},r("slot",{key:"944f478762d7dd9f71009816c26560734de2bbf3"})))))}get root(){return i(this)}};s.style=":host{display:flex;width: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;width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));margin-top: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-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 i,g as t}from"./p-6e010355.js";import{b as o}from"./p-18eb7333.js";import{O as r}from"./p-e720c07a.js";import{o as l}from"./p-e5b1cffc.js";import{h as s}from"./p-6d8b4027.js";import{a,G as n}from"./p-b8c3ecdc.js";import{G as f,a as h,b as d}from"./p-d413b7e2.js";import{g as u}from"./p-0268a3e8.js";import{s as c,b as p,a as g}from"./p-42f2e889.js";import{t as m}from"./p-
|
1
|
+
import{r as e,h as i,g as t}from"./p-6e010355.js";import{b as o}from"./p-18eb7333.js";import{O as r}from"./p-e720c07a.js";import{o as l}from"./p-e5b1cffc.js";import{h as s}from"./p-6d8b4027.js";import{a,G as n}from"./p-b8c3ecdc.js";import{G as f,a as h,b as d}from"./p-d413b7e2.js";import{g as u}from"./p-0268a3e8.js";import{s as c,b as p,a as g}from"./p-42f2e889.js";import{t as m}from"./p-3c1caab7.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const b={required:"Required"};const x=class{constructor(i){e(this,i),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.required=void 0,this.hasError=!1,this.hasHelp=!1,this.hasLabelInfo=!1}watchValue(e){const i=this.root.querySelector("gux-dropdown")||this.root.querySelector("gux-dropdown-multi");i&&(i.hasError=e)}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(e){var i,t;"Tab"===e.key?this.dropdownElement.matches(":focus-within")&&(null===(i=this.labelInfo)||void 0===i||i.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.dropdownElement.matches(":focus-within")&&(null===(t=this.labelInfo)||void 0===t||t.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}async componentWillLoad(){this.getI18nValue=await o(this.root,b),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),this.hasLabelInfo=s(this.root,"label-info"),m(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}renderText(e,i=!1){if(i)return" "+e}render(){var e;return i(d,{key:"05f743f8b31c5f7be63ce04a1af696019f62230c",labelPosition:this.computedLabelPosition},i(h,{key:"96a4f9f605ee7a9349d5903195ac8e19de101a84"},null===(e=this.label)||void 0===e?void 0:e.textContent,this.renderText(this.getI18nValue("required"),this.required),this.renderText(u(this.root,"error"),this.hasError),this.renderText(u(this.root,"help"),this.hasHelp),this.renderText(u(this.root,"label-info"),this.hasLabelInfo)),i(f,{key:"e5bded99855de379d8c87aba28981fcf10047a1e",position:this.computedLabelPosition,required:this.required},i("slot",{key:"d4b9025dd894cd533f1a8a1534b4c467c1c7aae9",name:"label",onSlotchange:()=>this.setLabel()}),i("gux-form-field-label-indicator",{key:"17817b36c0761e616b63ab59ab317dc6342d7ccd",variant:this.indicatorMark,required:this.required}),i("slot",{key:"bbcdfb344232f625f7e6c029b2b3412ff28162f6",name:"label-info"})),i("div",{key:"35666437eb110b95d8ca01b3c727241aa98c827c",class:"gux-input-and-error-container"},i("div",{key:"4ea57170359c454f33b394d4a6afe7f486b922e8",class:{"gux-input":!0,"gux-input-error":this.hasError}},i("slot",{key:"94ac4b6cf8a9282454ac19adfa04261fe670d1ce"})),i(a,{key:"cf4bdfb6bcfd6edd214b65fef47900460c199b4e",show:this.hasError},i("slot",{key:"4196d3ca2b92e3c6b08ac7f745b335b5fd0fe0a6",name:"error"})),i(n,{key:"faab07493e51e3736d2fdd51c0e42109efc42411",show:!this.hasError&&this.hasHelp},i("slot",{key:"3ae9f6495a12c782c29cc255a76c66d3697390a5",name:"help"}))))}get variant(){return`dropdown-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.dropdownElement=this.root.querySelector("gux-dropdown")||this.root.querySelector("gux-dropdown-multi"),this.listboxElement=this.root.querySelector("gux-listbox")||this.root.querySelector("gux-listbox-multi"),this.required=this.dropdownElement.required,this.requiredObserver=l(this.dropdownElement,(e=>{this.required=e})),c(this.root,this.listboxElement,"label"),p(this.root,this.listboxElement,"error"),p(this.root,this.listboxElement,"help")}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=g(this.label,this.labelPosition)}get root(){return t(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(e,i,t,o){var r,l=arguments.length,s=l<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,i,t,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(l<3?r(s):l>3?r(i,t,s):r(i,t))||s);l>3&&s&&Object.defineProperty(i,t,s)})([r({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style=".gux-form-field-fieldset-container{display:flex;min-width:0;padding:0;margin:0;border:none}.gux-form-field-fieldset-container.gux-beside{flex-direction:row}.gux-form-field-fieldset-container.gux-above{flex-direction:column}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));min-height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-top:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}.gux-form-field-visual-label{display:inline-flex;flex:1 0 auto}.gux-form-field-visual-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-beside{position:relative;top:var(--gse-ui-formControl-input-top);width:fit-content;min-width:var(--gse-ui-formControl-input-textfield-minWidth);max-width:fit-content;margin-right:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-visual-label.gux-above{padding-bottom:var(--gse-ui-formControl-formField-gap)}.gux-form-field-visual-label.gux-screenreader{display:none}.gux-form-field-screenreader-label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1;width:100%}";export{x as gux_form_field_dropdown}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-6e010355.js";import{a as s,c as a,o as n,f as o,d,s as p,h as c}from"./p-
|
1
|
+
import{r as t,c as e,h as i}from"./p-6e010355.js";import{a as s,c as a,o as n,f as o,d,s as p,h as c}from"./p-390d6f42.js";const r=class{constructor(i){t(this,i),this.internalexpanded=e(this,"internalexpanded",7),this.internalcollapsed=e(this,"internalcollapsed",7),this.placement="bottom-start",this.expanded=!1,this.disabled=!1,this.offset=2,this.exceedTargetWidth=!1}runUpdatePosition(){this.cleanupUpdatePosition=s(this.targetElementContainer,this.popupElementContainer,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0})}updatePosition(){if(this.targetElementContainer&&this.popupElementContainer){const t=this.exceedTargetWidth;a(this.targetElementContainer,this.popupElementContainer,{strategy:"fixed",placement:this.placement,middleware:[n(this.offset),o(),d({apply({rects:e,elements:i}){Object.assign(i.floating.style,t?{minWidth:`${e.reference.width}px`}:{width:`${e.reference.width}px`,overflow:"hidden"})}}),p(),c()]}).then((({x:t,y:e,middlewareData:i})=>{const{referenceHidden:s}=i.hide;Object.assign(this.popupElementContainer.style,{left:`${t}px`,top:`${e}px`}),s?this.popupElementContainer.classList.add("gux-sr-only-clip"):this.popupElementContainer.classList.remove("gux-sr-only-clip")}))}}onExpandedChange(t){t?this.internalexpanded.emit():this.internalcollapsed.emit()}componentDidLoad(){this.runUpdatePosition()}componentDidUpdate(){this.expanded?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return i("div",{key:"c30aa8c47a37f2f526d9849770f557a411235295",class:{"gux-target-container":!0,"gux-disabled":this.disabled},"aria-disabled":this.disabled.toString(),ref:t=>this.targetElementContainer=t},i("slot",{key:"1a766a7d3d83520eb01343bf32c5501ce53865c3",name:"target"}),i("div",{key:"74592d9a227e71da3f5368fca02aabda71f5557b",class:{"gux-popup-container":!0,"gux-expanded":this.expanded&&!this.disabled},ref:t=>this.popupElementContainer=t},i("slot",{key:"32f147115740e271fdfe988e7911a7cb2fc1c4db",name:"popup"})))}static get watchers(){return{expanded:["onExpandedChange"]}}};r.style=".gux-target-container.gux-disabled{pointer-events:none;cursor:default;opacity:0.5}.gux-popup-container{position:fixed;z-index:var(--gse-semantic-zIndex-popup);width:max-content;visibility:hidden;background-color:var(--gse-ui-menu-backgroundColor)}.gux-popup-container.gux-expanded{visibility:visible}.gux-sr-only-clip:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{r as gux_popup}
|
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,h as t,H as o,g as s}from"./p-6e010355.js";import{a as i,c as u,o as n,f as a,s as r}from"./p-390d6f42.js";import{a as h}from"./p-cf0e7d3b.js";import{m as d,h as b}from"./p-67d20704.js";const c=class{constructor(t){e(this,t),this.label=void 0,this.isShown=!1}async guxFocus(){this.buttonElement.focus()}onKeydown(e){switch(d(e,this.root),e.key){case"Enter":e.stopPropagation(),this.hideDelayTimeout=h((()=>{this.focusOnSubmenu()})),this.guxFocus();break;case"ArrowRight":e.stopPropagation(),this.show(),this.hideDelayTimeout=h((()=>{this.focusOnSubmenu()}));break;case"ArrowLeft":case"Escape":this.root!==e.target&&e.stopPropagation(),this.guxFocus()}}onKeyup(e){" "===e.key&&(this.hideDelayTimeout=h((()=>{this.focusOnSubmenu()})),this.guxFocus())}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){"GUX-MENU-OPTION"!==e.target.nodeName?e.stopPropagation():this.hide()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),b))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=i(this.buttonElement,this.submenuElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.submenuElement&&u(this.buttonElement,this.submenuElement,{placement:"right-start",strategy:"fixed",middleware:[n(4),a(),r()]}).then((({x:e,y:t})=>{Object.assign(this.submenuElement.style,{left:`${e}px`,top:t-8+"px"})}))}focusOnSubmenu(){this.submenuContentElement.contains(document.activeElement)||Array.from(this.root.children)[0].guxFocus()}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t(o,{key:"53c90da1a2ff67dd9adac2793b2d8e7415fb8968"},t("button",{key:"d3b0e3c853c907921653f077de1466414c605eab",type:"button",class:{"gux-submenu-button":!0,"gux-submenu-button-active":this.isShown},role:"menuitem",tabIndex:-1,ref:e=>this.buttonElement=e,"aria-haspopup":"true","aria-expanded":this.isShown.toString()},t("span",{key:"cabe95d17b34c8b3614e684219f3491951e1203e",class:"gux-submenu-button-text"},this.label),t("gux-icon",{key:"d9c43c088229efaff2089df39e6949d0451c335c",class:"gux-submenu-open-icon","icon-name":"custom/chevron-right-small-regular",decorative:!0})),t("div",{key:"b87bb5adfab410d1ff3665fb172984fe1b6ae820",ref:e=>this.submenuElement=e,class:{"gux-submenu-wrapper":!0,"gux-shown":this.isShown}},t("div",{key:"fbaff62b6b8122b8c7547f11e3569753285071b2",role:"menu",class:"gux-submenu-content",ref:e=>this.submenuContentElement=e},t("slot",{key:"89e8db8baea2429b691a37f8a8f1873b63bae4bf"}))))}get root(){return s(this)}};c.style=":host{display:block;flex:1 1 auto;align-self:auto}:host .gux-submenu-button{all:unset;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;width:var(--gse-ui-flyoutMenu-width);height:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);background-color:var(--gse-ui-menu-option-default-backgroundColor)}:host .gux-submenu-button:focus-within,:host .gux-submenu-button:hover{background-color:var(--gse-ui-menu-option-hover-backgroundColor)}:host .gux-submenu-button.gux-submenu-button-active{font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);color:var(--gse-ui-menu-option-shortcut-selected-foregroundColor);background-color:var(--gse-ui-menu-option-selected-backgroundColor)}:host .gux-submenu-button .gux-submenu-button-text{flex:1 1 auto;align-self:auto;order:0;margin-right:var(--gse-ui-menu-option-gap);overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}:host .gux-submenu-button .gux-submenu-open-icon{flex:0 0 auto;align-self:auto;order:0;width:var(--gse-ui-menu-option-startIcon-width);height:var(--gse-ui-menu-option-startIcon-height)}:host .gux-submenu-wrapper{position:fixed;top:0;left:0;flex-direction:column;padding:var(--gse-ui-menu-padding);margin:0;visibility:hidden;background-color:var(--gse-ui-menu-backgroundColor);border:none;border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow-x, var(--gse-ui-menu-boxShadow-offsetX)) var(--gse-ui-menu-boxShadow-y, var(--gse-ui-menu-boxShadow-offsetY)) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color)}:host .gux-submenu-wrapper.gux-shown{visibility:visible}";export{c as gux_submenu}
|
package/dist/stencil-wrapper.js
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
*/
|
8
8
|
import { defineCustomElements } from '../dist/loader';
|
9
9
|
// Value templated out during build process (see scripts/wrap-stencil.js)
|
10
|
-
export const COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.
|
10
|
+
export const COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.89.0-389/genesys-webcomponents/';
|
11
11
|
// Default domain to load assets from
|
12
12
|
const DEFAULT_DOMAIN = 'app.mypurecloud.com';
|
13
13
|
// List of Genesys UI domains
|
@@ -29,11 +29,11 @@ export declare class GuxTableToolbar {
|
|
29
29
|
get permanentSlot(): HTMLSlotElement | null;
|
30
30
|
get contextualSlot(): HTMLSlotElement | null;
|
31
31
|
get primaryAction(): HTMLGuxTableToolbarCustomActionElement | null;
|
32
|
-
get permanentActions(): HTMLGuxTableToolbarCustomActionElement[]
|
32
|
+
get permanentActions(): HTMLGuxTableToolbarCustomActionElement[];
|
33
33
|
get menuActionsItems(): HTMLGuxTableToolbarCustomActionElement[] | null;
|
34
|
-
get contextualActions(): HTMLGuxTableToolbarCustomActionElement[]
|
35
|
-
get filterActions(): HTMLGuxTableToolbarCustomActionElement[]
|
36
|
-
get allFilterContextual(): HTMLGuxTableToolbarCustomActionElement[]
|
34
|
+
get contextualActions(): HTMLGuxTableToolbarCustomActionElement[];
|
35
|
+
get filterActions(): HTMLGuxTableToolbarCustomActionElement[];
|
36
|
+
get allFilterContextual(): HTMLGuxTableToolbarCustomActionElement[];
|
37
37
|
private needsContextDivider;
|
38
38
|
private renderMenu;
|
39
39
|
private renderFullLayout;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.
|
1
|
+
export declare const COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.89.0-389/genesys-webcomponents/";
|
2
2
|
export declare function registerElements(): void;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { ComponentInterface } from '../../stencil-public-runtime';
|
2
|
+
declare type ThrottleMethodDecorator = (target: ComponentInterface, propertyKey: string, descriptor: PropertyDescriptor) => void;
|
3
|
+
export declare function ThrottleMethod(duration: number): ThrottleMethodDecorator;
|
4
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "genesys-spark-components",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.89.0",
|
4
4
|
"description": "Common webcomponents",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "dist/stencil-wrapper.js",
|
@@ -60,7 +60,7 @@
|
|
60
60
|
},
|
61
61
|
"types": "dist/types/index.d.ts",
|
62
62
|
"dependencies": {
|
63
|
-
"@floating-ui/dom": "1.6.
|
63
|
+
"@floating-ui/dom": "^1.6.11",
|
64
64
|
"@vvo/tzdb": "6.145.0",
|
65
65
|
"google-libphonenumber": "3.2.38",
|
66
66
|
"intl-messageformat": "10.5.14",
|
@@ -68,8 +68,8 @@
|
|
68
68
|
"sortablejs": "1.15.3"
|
69
69
|
},
|
70
70
|
"devDependencies": {
|
71
|
-
"@babel/core": "^7.25.
|
72
|
-
"@babel/preset-env": "^7.25.
|
71
|
+
"@babel/core": "^7.25.7",
|
72
|
+
"@babel/preset-env": "^7.25.7",
|
73
73
|
"@stencil/core": "4.20.0",
|
74
74
|
"@stencil/react-output-target": "^0.5.3",
|
75
75
|
"@stencil/sass": "^3.0.12",
|
@@ -81,14 +81,14 @@
|
|
81
81
|
"@types/sortablejs": "^1.15.8",
|
82
82
|
"axe-core": "^4.10.0",
|
83
83
|
"axe-live": "^1.0.1",
|
84
|
-
"eslint": "^9.
|
84
|
+
"eslint": "^9.12.0",
|
85
85
|
"eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
|
86
86
|
"file-loader": "^6.2.0",
|
87
87
|
"genesys-spark-tokens": "file:../genesys-spark-tokens",
|
88
88
|
"glob": "^11.0.0",
|
89
|
-
"globals": "^15.
|
89
|
+
"globals": "^15.11.0",
|
90
90
|
"handlebars": "^4.7.8",
|
91
|
-
"inquirer": "^
|
91
|
+
"inquirer": "^12.0.0",
|
92
92
|
"jest": "^29.7.0",
|
93
93
|
"jest-cli": "^29.7.0",
|
94
94
|
"jest-config": "^29.7.0",
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as a,c as o,h as t,g as i}from"./p-6e010355.js";import{r as e}from"./p-0934300e.js";import{t as d}from"./p-1c280d77.js";const n=class{constructor(t){a(this,t),this.guxdismiss=o(this,"guxdismiss",7),this.size="dynamic",this.open=!1}syncOpenState(){this.open?this.dialogElement.showModal():this.dialogElement.close()}async showModal(){this.open=!0}async close(){this.open=!1}onKeydown(a){if("Escape"===a.key)return a.preventDefault(),void this.onDismissHandler()}componentWillLoad(){d(this.root,{variant:`${this.size}`})}componentDidLoad(){this.syncOpenState()}hasModalTitleSlot(){return Boolean(this.root.querySelector('[slot="title"]'))}hasFooterButtons(){var a,o;const t=this.root.querySelector('[slot="start-align-buttons"]'),i=this.root.querySelector('[slot="end-align-buttons"]');return Boolean(null===(a=null==t?void 0:t.textContent)||void 0===a?void 0:a.trim())||Boolean(null===(o=null==i?void 0:i.textContent)||void 0===o?void 0:o.trim())}render(){const a=this.hasModalTitleSlot(),o=e();return t("dialog",{key:"d61c0af8c16688f59fc94baa9f9b6877c9b4d458",onClose:this.onCloseHandler.bind(this),ref:a=>this.dialogElement=a,"aria-labelledby":a?o:null},t("div",{key:"42db255cfcc1b0fa32800cd1644a47008eba58aa",class:`gux-modal-container gux-${this.size}`},t("gux-dismiss-button",{key:"385bd49a967d7b3065262fe40bb6a813c47f60d6",onClick:this.onDismissHandler.bind(this)}),a&&this.renderTitle(o),t("div",{key:"e488467418f269190cd77c5771ebd1045beb2b34",class:"gux-modal-content"},t("p",{key:"abf1fcb7c0e98678bd350d9f88524c182a6d4a66"},t("slot",{key:"c4cbfd8dd959736829e60587aaabbb823f794449",name:"content"}))),this.renderButtonFooter()))}renderTitle(a){return t("h1",{class:"gux-modal-header",id:a},t("slot",{name:"title"}))}renderButtonFooter(){const a=this.hasFooterButtons();return t("div",{class:{"gux-button-footer":!0,"gux-no-buttons":!a}},t("div",{class:"gux-start-align-buttons"},t("slot",{name:"start-align-buttons"})),t("div",{class:"gux-end-align-buttons"},t("slot",{name:"end-align-buttons"})))}onCloseHandler(){this.guxdismiss.emit()}onDismissHandler(){this.open=!1}static get delegatesFocus(){return!0}get root(){return i(this)}static get watchers(){return{open:["syncOpenState"]}}};n.style="::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor, var(--gse-ui-links-active-foregroundColor));text-decoration:underline;background:none}slot[name=start-align-buttons]::slotted(:not(button,gux-button-slot)){display:flex;flex-direction:row;gap:var(--gse-ui-modal-buttonBar-gap);align-content:flex-start;align-items:center}:host dialog{box-sizing:border-box;justify-content:space-between;padding:0;overflow:hidden;border:none;border-radius:var(--gse-ui-modal-borderRadius);box-shadow:var(--gse-ui-modal-boxShadow-x, var(--gse-ui-modal-boxShadow-offsetX)) var(--gse-ui-modal-boxShadow-y, var(--gse-ui-modal-boxShadow-offsetY)) var(--gse-ui-modal-boxShadow-blur) var(--gse-ui-modal-boxShadow-spread) var(--gse-ui-modal-boxShadow-color)}:host dialog::backdrop{background:rgba(77, 97, 130, 0.8)}:host dialog .gux-modal-container{display:flex;flex-direction:column}:host dialog .gux-modal-container.gux-small{width:var(--gse-ui-modal-small-width);max-height:min(368px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-medium{width:min(var(--gse-ui-modal-medium-width), 100vw - 48px);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-large{width:min(var(--gse-ui-modal-large-width), 100vw - 48px);max-height:min(640px, 100vh - 2 * 24px)}:host dialog .gux-modal-container.gux-dynamic{max-width:calc(100vw - 48px);max-height:calc(100vh - 48px)}:host dialog .gux-modal-container.gux-dynamic .gux-modal-content{max-height:none}:host dialog .gux-modal-container .gux-modal-header{padding-top:var(--gse-ui-modal-padding);padding-right:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin:0;font-family:var(--gse-ui-modal-heading-fontFamily);font-size:var(--gse-ui-modal-heading-fontSize);font-weight:var(--gse-ui-modal-heading-fontWeight);line-height:var(--gse-ui-modal-heading-lineHeight);color:var(--gse-ui-modal-headerColor)}:host dialog .gux-modal-container .gux-modal-content{max-height:432px;padding-right:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap);overflow-y:auto}:host dialog .gux-modal-container .gux-button-footer{display:flex;justify-content:space-between;padding-right:var(--gse-ui-modal-padding);padding-bottom:var(--gse-ui-modal-padding);padding-left:var(--gse-ui-modal-padding);margin-top:var(--gse-ui-modal-gap)}:host dialog .gux-modal-container .gux-button-footer.gux-no-buttons{display:none}@media (max-width: 416px){:host dialog .gux-modal-container.gux-small,:host dialog .gux-modal-container.gux-medium,:host dialog .gux-modal-container.gux-large{width:100%;height:100%}}";export{n as gux_modal}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,h as t,H as o,g as s}from"./p-6e010355.js";import{a as i,c as u,o as n}from"./p-d8ba5b01.js";import{a}from"./p-cf0e7d3b.js";import{m as r,h}from"./p-67d20704.js";const c=class{constructor(t){e(this,t),this.label=void 0,this.isShown=!1}async guxFocus(){this.buttonElement.focus()}onKeydown(e){switch(r(e,this.root),e.key){case"Enter":e.stopPropagation(),this.hideDelayTimeout=a((()=>{this.focusOnSubmenu()})),this.guxFocus();break;case"ArrowRight":e.stopPropagation(),this.show(),this.hideDelayTimeout=a((()=>{this.focusOnSubmenu()}));break;case"ArrowLeft":case"Escape":this.root!==e.target&&e.stopPropagation(),this.guxFocus()}}onKeyup(e){" "===e.key&&(this.hideDelayTimeout=a((()=>{this.focusOnSubmenu()})),this.guxFocus())}onmouseenter(){this.show()}onMouseleave(){this.hide()}onClick(e){"GUX-MENU-OPTION"!==e.target.nodeName?e.stopPropagation():this.hide()}onFocusin(){this.show()}onFocusout(){this.hide()}show(){clearTimeout(this.hideDelayTimeout),this.isShown=!0}hide(){this.isShown&&(this.hideDelayTimeout=setTimeout((()=>{this.isShown=!1}),h))}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=i(this.buttonElement,this.submenuElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){this.submenuElement&&u(this.buttonElement,this.submenuElement,{placement:"right-start",strategy:"fixed",middleware:[n(4)]}).then((({x:e,y:t})=>{Object.assign(this.submenuElement.style,{left:`${e}px`,top:t-8+"px"})}))}focusOnSubmenu(){this.submenuContentElement.contains(document.activeElement)||Array.from(this.root.children)[0].guxFocus()}componentDidLoad(){this.isShown&&this.runUpdatePosition()}componentDidUpdate(){this.isShown?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}render(){return t(o,{key:"60ffacb6efa8bd471369be0f5b56a9f9a8e59d10"},t("button",{key:"57cfa9e70d5f9f9a23cf9caa5c6cee1172879cac",type:"button",class:{"gux-submenu-button":!0,"gux-submenu-button-active":this.isShown},role:"menuitem",tabIndex:-1,ref:e=>this.buttonElement=e,"aria-haspopup":"true","aria-expanded":this.isShown.toString()},t("span",{key:"026be3ad33cc8fdef5091ad3ae29e50db46552f0",class:"gux-submenu-button-text"},this.label),t("gux-icon",{key:"a758c574032419801685c806330cc71cc7b72b06",class:"gux-submenu-open-icon","icon-name":"custom/chevron-right-small-regular",decorative:!0})),t("div",{key:"11bf82ac8147d7c060c0901f12a12d1ec7fc4a59",ref:e=>this.submenuElement=e,class:{"gux-submenu-wrapper":!0,"gux-shown":this.isShown}},t("div",{key:"b7e9829f0803496eb71f992fece9f6661d21f015",role:"menu",class:"gux-submenu-content",ref:e=>this.submenuContentElement=e},t("slot",{key:"c3c69ab551f09b0ddb05c39786cd2caf2ed90c5e"}))))}get root(){return s(this)}};c.style=":host{display:block;flex:1 1 auto;align-self:auto}:host .gux-submenu-button{all:unset;display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;width:var(--gse-ui-flyoutMenu-width);height:var(--gse-ui-menu-option-height);padding:var(--gse-ui-menu-option-padding);line-height:var(--gse-ui-menu-option-label-default-text-lineHeight);color:var(--gse-ui-menu-option-label-foregroundColor);background-color:var(--gse-ui-menu-option-default-backgroundColor)}:host .gux-submenu-button:focus-within,:host .gux-submenu-button:hover{background-color:var(--gse-ui-menu-option-hover-backgroundColor)}:host .gux-submenu-button.gux-submenu-button-active{font-weight:var(--gse-ui-menu-option-label-active-text-fontWeight);color:var(--gse-ui-menu-option-shortcut-selected-foregroundColor);background-color:var(--gse-ui-menu-option-selected-backgroundColor)}:host .gux-submenu-button .gux-submenu-button-text{flex:1 1 auto;align-self:auto;order:0;margin-right:var(--gse-ui-menu-option-gap);overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}:host .gux-submenu-button .gux-submenu-open-icon{flex:0 0 auto;align-self:auto;order:0;width:var(--gse-ui-menu-option-startIcon-width);height:var(--gse-ui-menu-option-startIcon-height)}:host .gux-submenu-wrapper{position:fixed;top:0;left:0;flex-direction:column;padding:var(--gse-ui-menu-padding);margin:0;visibility:hidden;background-color:var(--gse-ui-menu-backgroundColor);border:none;border-radius:var(--gse-ui-menu-borderRadius);box-shadow:var(--gse-ui-menu-boxShadow-x, var(--gse-ui-menu-boxShadow-offsetX)) var(--gse-ui-menu-boxShadow-y, var(--gse-ui-menu-boxShadow-offsetY)) var(--gse-ui-menu-boxShadow-blur) var(--gse-ui-menu-boxShadow-spread) var(--gse-ui-menu-boxShadow-color)}:host .gux-submenu-wrapper.gux-shown{visibility:visible}";export{c as gux_submenu}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,h as t,g as o}from"./p-6e010355.js";import{O as i}from"./p-e720c07a.js";import{h as r}from"./p-6d8b4027.js";import{t as l}from"./p-1c280d77.js";import{a as s,G as a}from"./p-b8c3ecdc.js";import{G as f,a as n}from"./p-7e76ac06.js";import{a as h,g as d,v as u}from"./p-42f2e889.js";import{p}from"./p-a11d5d42.js";import{o as m}from"./p-e5b1cffc.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const g=class{constructor(t){e(this,t),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.hasError=!1,this.hasHelp=!1,this.required=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help")}handleKeyup(e){var t,o;"Tab"===e.key?this.input.matches(":focus-visible")&&(null===(t=this.labelInfo)||void 0===t||t.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var e;null===(e=this.labelInfo)||void 0===e||e.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=r(this.root,"error"),this.hasHelp=r(this.root,"help"),this.labelInfo=this.root.querySelector("[slot=label-info]"),l(this.root,{variant:this.variant})}disconnectedCallback(){this.requiredObserver&&this.requiredObserver.disconnect()}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}setInput(){this.input=d(this.root,'input[type="file"][slot="input"]'),p(this.input),this.required=this.input.required,this.requiredObserver=m(this.input,(e=>{this.required=e})),u(this.root,this.input)}get variant(){return`fileInput-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}render(){return t(n,{key:"7e0dc0beaa1fa180d4b8a59d9dfe00b4e0653d34",labelPosition:this.computedLabelPosition},t(f,{key:"75a05ef6673d3c547cc60859b5f87f82dd980915",position:this.computedLabelPosition,required:this.required},t("slot",{key:"5004592368bc828d63d236db313b4683d9e2ab60",name:"label",onSlotchange:()=>this.setLabel()}),t("gux-form-field-label-indicator",{key:"e27c8b29a246528c3982de11d17f1fd7d64c5f41",variant:this.indicatorMark,required:this.required}),t("slot",{key:"36570c844c35f6636c7c2f83dca491b2c00f3033",name:"label-info"})),t("div",{key:"50414e470aa19d81ad392073246e1e2089edd488",class:"gux-input-and-error-container"},t("slot",{key:"d6bd9fe4e908c75d9d63605e7c3eaf2d45982951",name:"input",onSlotchange:()=>this.setInput()}),t(s,{key:"120319afc4826e7c212008967af9899dea298acb",show:this.hasError},t("slot",{key:"fba07ff53d46d3561942dbb88a42b5afb6c4fbd1",name:"error"})),t(a,{key:"51a1f46d7920b826b528fb38161915faa5eda096",show:!this.hasError&&this.hasHelp},t("slot",{key:"7e262e73e07aeb3fb8665acb7f306dba65ad90c1",name:"help"}))))}get root(){return o(this)}};(function(e,t,o,i){var r,l=arguments.length,s=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(l<3?r(s):l>3?r(t,o,s):r(t,o))||s);l>3&&s&&Object.defineProperty(t,o,s)})([i({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-helper-gap);place-content:stretch flex-start;align-items:center;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;order:0;min-width:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));min-height:var(--gse-ui-icon-size-sm, var(--gse-ui-icon-small-size));color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label{display:inline-flex;flex:1 0 auto}.gux-form-field-label ::slotted(gux-label-info-beta){padding-inline-start:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-beside{position:relative;top:var(--gse-ui-formControl-input-top);width:fit-content;min-width:var(--gse-ui-formControl-input-textfield-minWidth);max-width:fit-content;margin-right:var(--gse-ui-formControl-group-gapItems)}.gux-form-field-label.gux-above{padding-bottom:var(--gse-ui-formControl-formField-gap)}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:flex-start;justify-content:flex-start;padding-top:var(--gse-ui-formControl-formField-gap);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-textBold-fontFamily);font-size:var(--gse-ui-formControl-label-textBold-fontSize);font-weight:var(--gse-ui-formControl-label-textBold-fontWeight);line-height:var(--gse-ui-formControl-label-textBold-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}.gux-input-and-error-container{flex-grow:1}";export{g as gux_form_field_file}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,f as e,d as i,h as a,H as o,g as n}from"./p-6e010355.js";import{O as s}from"./p-526740db.js";import{O as r}from"./p-e720c07a.js";import{t as l}from"./p-1c280d77.js";import{g as c}from"./p-1ccc4961.js";import{a as d}from"./p-cf0e7d3b.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 b=function(t,e,i,a){var o,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const p=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(),e(this.root)}recordLayoutMinSize(){i((()=>{var t,e,i;const a=0|(null===(t=this.searchAndFilterContainer)||void 0===t?void 0:t.clientWidth),o=0|(null===(e=this.actionsContainer)||void 0===e?void 0:e.clientWidth),n=0|(null===(i=this.minControlSize)||void 0===i?void 0:i.clientWidth);this.minimumSizes[this.displayedLayout]=a+o+n}))}get minControlSize(){return this.root.shadowRoot.querySelector(".section-spacing")}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get searchAndFilterContainer(){return this.root.shadowRoot.querySelector(".search-filter-container")}get filterSlot(){return c(this.root,"search-and-filter")}get menuActionSlot(){return c(this.root,"menu-actions")}get permanentSlot(){return c(this.root,"permanent-actions")}get contextualSlot(){return c(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(){this.displayedLayout="iconOnly",h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}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")}componentWillRender(){l(this.root),this.hasContextDivider=this.needsContextDivider()}componentDidLoad(){d((()=>{this.recordLayoutMinSize(),this.checkResponsiveLayout()})),u(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){i((()=>{const t=this.root.clientWidth;t<=this.minimumSizes.iconOnly?"iconOnly"==this.displayedLayout&&this.renderCondensedLayout():t<=this.minimumSizes.full?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown():"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return a(o,{key:"a6e14d167d1490135ce03a95fb868935edba393f",role:"toolbar","aria-orientation":"horizontal"},a("div",{key:"4b53a5a4c732bed1b350aec667346ac636b70954",class:"search-filter-container"},a("slot",{key:"5c89ce2c9479033bb920a65147e967116d3f5043",name:"search-and-filter"})),a("div",{key:"95679462cd2c79994f5b5364b011f951d1e2be65",class:"section-spacing"}),a("div",{key:"1dea4227faf0d1fec9a84706ed9cd1621334a7a0",class:"gux-contextual-permanent-primary"},a("div",{key:"992e15611af97c5c879e4c1553bb2f965c566328",class:{"gux-contextual-wrapper":this.hasContextDivider}},a("slot",{key:"bd128e930f1c084184ee10f9a60df2d1e8803d7f",name:"contextual-actions"})),a("div",{key:"0c76f0861db3e6c9a647e183529c65c2a5859a9f",class:"gux-permanent-menu-primary-wrapper"},a("slot",{key:"a590b7d7b253361477134a663b426b0330bf08ed",name:"permanent-actions"}),a("gux-table-toolbar-menu-button",{key:"4d55217ca6826ae79fae883ba73acf833dda0298","show-menu":this.renderMenu()},a("slot",{key:"68fb7795e5e70492b24c9dfb666cfeb9e7236d7f",name:"menu-actions"})),a("slot",{key:"41aef9a95e497f404ebddb37d61a23f8fc5d1833",name:"primary-action"}))))}get root(){return n(this)}};b([r({childList:!0,subtree:!0})],p.prototype,"onMutation",null),b([s()],p.prototype,"checkResponsiveLayout",null),p.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;max-height:var(--gse-ui-dataTableItems-tableToolbar-height);visibility:hidden;transition:visibility 0s 0.5s;}@keyframes show-toolbar{to{visibility:visible}}:host .search-filter-container{min-width:260px;padding-inline-end: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{p as gux_table_toolbar}
|
@@ -1 +0,0 @@
|
|
1
|
-
const t=["top","right","bottom","left"],n=Math.min,e=Math.max,o=Math.round,r=Math.floor,i=t=>({x:t,y:t}),a={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function l(t,o,r){return e(t,n(o,r))}function s(t,n){return"function"==typeof t?t(n):t}function u(t){return t.split("-")[0]}function f(t){return t.split("-")[1]}function d(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function y(t){return["top","bottom"].includes(u(t))?"y":"x"}function h(t){return d(y(t))}function p(t){return t.replace(/start|end/g,(t=>c[t]))}function g(t){return t.replace(/left|right|bottom|top/g,(t=>a[t]))}function w(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function x(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function v(t,n,e){let{reference:o,floating:r}=t;const i=y(n),a=h(n),c=m(a),l=u(n),s="y"===i,d=o.x+o.width/2-r.width/2,p=o.y+o.height/2-r.height/2,g=o[c]/2-r[c]/2;let w;switch(l){case"top":w={x:d,y:o.y-r.height};break;case"bottom":w={x:d,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:p};break;case"left":w={x:o.x-r.width,y:p};break;default:w={x:o.x,y:o.y}}switch(f(n)){case"start":w[a]-=g*(e&&s?-1:1);break;case"end":w[a]+=g*(e&&s?-1:1)}return w}async function b(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:c,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:y=0}=s(n,t),h=w(y),p=c[m?"floating"===d?"reference":"floating":d],g=x(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(p)))||e?p:p.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),v="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),A=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},R=x(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-R.top+h.top)/A.y,bottom:(R.bottom-g.bottom+h.bottom)/A.y,left:(g.left-R.left+h.left)/A.x,right:(R.right-g.right+h.right)/A.x}}function A(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function R(n){return t.some((t=>n[t]>=0))}function S(t){return F(t)?(t.nodeName||"").toLowerCase():"#document"}function O(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function k(t){var n;return null==(n=(F(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function F(t){return t instanceof Node||t instanceof O(t).Node}function T(t){return t instanceof Element||t instanceof O(t).Element}function D(t){return t instanceof HTMLElement||t instanceof O(t).HTMLElement}function P(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof O(t).ShadowRoot)}function z(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=E(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&!["inline","contents"].includes(r)}function C(t){return["table","td","th"].includes(S(t))}function H(t){return[":popover-open",":modal"].some((n=>{try{return t.matches(n)}catch(t){return!1}}))}function M(t){const n=B(),e=T(t)?E(t):t;return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!n&&!!e.backdropFilter&&"none"!==e.backdropFilter||!n&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function B(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function L(t){return["html","body","#document"].includes(S(t))}function E(t){return O(t).getComputedStyle(t)}function I(t){return T(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function N(t){if("html"===S(t))return t;const n=t.assignedSlot||t.parentNode||P(t)&&t.host||k(t);return P(n)?n.host:n}function j(t){const n=N(t);return L(n)?t.ownerDocument?t.ownerDocument.body:t.body:D(n)&&z(n)?n:j(n)}function q(t,n,e){var o;void 0===n&&(n=[]),void 0===e&&(e=!0);const r=j(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=O(r);if(i){const t=W(a);return n.concat(a,a.visualViewport||[],z(r)?r:[],t&&e?q(t):[])}return n.concat(r,q(r,[],e))}function W(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function $(t){const n=E(t);let e=parseFloat(n.width)||0,r=parseFloat(n.height)||0;const i=D(t),a=i?t.offsetWidth:e,c=i?t.offsetHeight:r,l=o(e)!==a||o(r)!==c;return l&&(e=a,r=c),{width:e,height:r,$:l}}function V(t){return T(t)?t:t.contextElement}function X(t){const n=V(t);if(!D(n))return i(1);const e=n.getBoundingClientRect(),{width:r,height:a,$:c}=$(n);let l=(c?o(e.width):e.width)/r,s=(c?o(e.height):e.height)/a;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const Y=i(0);function _(t){const n=O(t);return B()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:Y}function G(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),a=V(t);let c=i(1);n&&(o?T(o)&&(c=X(o)):c=X(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==O(t))&&n}(a,e,o)?_(a):i(0);let s=(r.left+l.x)/c.x,u=(r.top+l.y)/c.y,f=r.width/c.x,d=r.height/c.y;if(a){const t=O(a),n=o&&T(o)?O(o):o;let e=t,r=W(e);for(;r&&o&&n!==e;){const t=X(r),n=r.getBoundingClientRect(),o=E(r),i=n.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=n.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,u*=t.y,f*=t.x,d*=t.y,s+=i,u+=a,e=O(r),r=W(e)}}return x({width:f,height:d,x:s,y:u})}function J(t){return G(k(t)).left+I(t).scrollLeft}function K(t,n,o){let r;if("viewport"===n)r=function(t,n){const e=O(t),o=k(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,c=0,l=0;if(r){i=r.width,a=r.height;const t=B();(!t||t&&"fixed"===n)&&(c=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:c,y:l}}(t,o);else if("document"===n)r=function(t){const n=k(t),o=I(t),r=t.ownerDocument.body,i=e(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),a=e(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let c=-o.scrollLeft+J(t);const l=-o.scrollTop;return"rtl"===E(r).direction&&(c+=e(n.clientWidth,r.clientWidth)-i),{width:i,height:a,x:c,y:l}}(k(t));else if(T(n))r=function(t,n){const e=G(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,a=D(t)?X(t):i(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:o*a.y}}(n,o);else{const e=_(t);r={...n,x:n.x-e.x,y:n.y-e.y}}return x(r)}function Q(t,n){const e=N(t);return!(e===n||!T(e)||L(e))&&("fixed"===E(e).position||Q(e,n))}function U(t,n,e){const o=D(n),r=k(n),a="fixed"===e,c=G(t,!0,a,n);let l={scrollLeft:0,scrollTop:0};const s=i(0);if(o||!o&&!a)if(("body"!==S(n)||z(r))&&(l=I(n)),o){const t=G(n,!0,a,n);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}else r&&(s.x=J(r));return{x:c.left+l.scrollLeft-s.x,y:c.top+l.scrollTop-s.y,width:c.width,height:c.height}}function Z(t){return"static"===E(t).position}function tt(t,n){return D(t)&&"fixed"!==E(t).position?n?n(t):t.offsetParent:null}function nt(t,n){const e=O(t);if(H(t))return e;if(!D(t)){let n=N(t);for(;n&&!L(n);){if(T(n)&&!Z(n))return n;n=N(n)}return e}let o=tt(t,n);for(;o&&C(o)&&Z(o);)o=tt(o,n);return o&&L(o)&&Z(o)&&!M(o)?e:o||function(t){let n=N(t);for(;D(n)&&!L(n);){if(M(n))return n;if(H(n))return null;n=N(n)}return null}(t)||e}const et={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:r}=t;const a="fixed"===r,c=k(o),l=!!n&&H(n.floating);if(o===c||l&&a)return e;let s={scrollLeft:0,scrollTop:0},u=i(1);const f=i(0),d=D(o);if((d||!d&&!a)&&(("body"!==S(o)||z(c))&&(s=I(o)),D(o))){const t=G(o);u=X(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-s.scrollLeft*u.x+f.x,y:e.y*u.y-s.scrollTop*u.y+f.y}},getDocumentElement:k,getClippingRect:function(t){let{element:o,boundary:r,rootBoundary:i,strategy:a}=t;const c=[..."clippingAncestors"===r?H(o)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=q(t,[],!1).filter((t=>T(t)&&"body"!==S(t))),r=null;const i="fixed"===E(t).position;let a=i?N(t):t;for(;T(a)&&!L(a);){const n=E(a),e=M(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&["absolute","fixed"].includes(r.position)||z(a)&&!e&&Q(t,a))?o=o.filter((t=>t!==a)):r=n,a=N(a)}return n.set(t,o),o}(o,this._c):[].concat(r),i],l=c.reduce(((t,r)=>{const i=K(o,r,a);return t.top=e(i.top,t.top),t.right=n(i.right,t.right),t.bottom=n(i.bottom,t.bottom),t.left=e(i.left,t.left),t}),K(o,c[0],a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:nt,getElementRects:async function(t){const n=this.getOffsetParent||nt,e=this.getDimensions,o=await e(t.floating);return{reference:U(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=$(t);return{width:n,height:e}},getScale:X,isElement:T,isRTL:function(t){return"rtl"===E(t).direction}};function ot(t,o,i,a){void 0===a&&(a={});const{ancestorScroll:c=!0,ancestorResize:l=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=a,d=V(t),m=c||l?[...d?q(d):[],...q(o)]:[];m.forEach((t=>{c&&t.addEventListener("scroll",i,{passive:!0}),l&&t.addEventListener("resize",i)}));const y=d&&u?function(t,o){let i,a=null;const c=k(t);function l(){var t;clearTimeout(i),null==(t=a)||t.disconnect(),a=null}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),l();const{left:d,top:m,width:y,height:h}=t.getBoundingClientRect();if(u||o(),!y||!h)return;const p={rootMargin:-r(m)+"px "+-r(c.clientWidth-(d+y))+"px "+-r(c.clientHeight-(m+h))+"px "+-r(d)+"px",threshold:e(0,n(1,f))||1};let g=!0;function w(t){const n=t[0].intersectionRatio;if(n!==f){if(!g)return s();n?s(!1,n):i=setTimeout((()=>{s(!1,1e-7)}),1e3)}g=!1}try{a=new IntersectionObserver(w,{...p,root:c.ownerDocument})}catch(t){a=new IntersectionObserver(w,p)}a.observe(t)}(!0),l}(d,i):null;let h,p=-1,g=null;s&&(g=new ResizeObserver((t=>{let[n]=t;n&&n.target===d&&g&&(g.unobserve(o),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(o)}))),i()})),d&&!f&&g.observe(d),g.observe(o));let w=f?G(t):null;return f&&function n(){const e=G(t);!w||e.x===w.x&&e.y===w.y&&e.width===w.width&&e.height===w.height||i(),w=e,h=requestAnimationFrame(n)}(),i(),()=>{var t;m.forEach((t=>{c&&t.removeEventListener("scroll",i),l&&t.removeEventListener("resize",i)})),null==y||y(),null==(t=g)||t.disconnect(),g=null,f&&cancelAnimationFrame(h)}}const rt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:i,placement:a,middlewareData:c}=n,l=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=u(e),c=f(e),l="y"===y(e),d=["left","top"].includes(a)?-1:1,m=i&&l?-1:1,h=s(n,t);let{mainAxis:p,crossAxis:g,alignmentAxis:w}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return c&&"number"==typeof w&&(g="end"===c?-1*w:w),l?{x:g*m,y:p*d}:{x:p*d,y:g*m}}(n,t);return a===(null==(e=c.offset)?void 0:e.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},it=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:r}=n,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...f}=s(t,n),m={x:e,y:o},h=await b(n,f),p=y(u(r)),g=d(p);let w=m[g],x=m[p];i&&(w=l(w+h["y"===g?"top":"left"],w,w-h["y"===g?"bottom":"right"])),a&&(x=l(x+h["y"===p?"top":"left"],x,x-h["y"===p?"bottom":"right"]));const v=c.fn({...n,[g]:w,[p]:x});return{...v,data:{x:v.x-e,y:v.y-o}}}}},at=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:c,platform:l,elements:d}=n,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:v,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:S=!0,...O}=s(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const k=u(r),F=y(c),T=u(c)===c,D=await(null==l.isRTL?void 0:l.isRTL(d.floating)),P=v||(T||!S?[g(c)]:function(t){const n=g(t);return[p(t),n,p(n)]}(c)),z="none"!==R;!v&&z&&P.push(...function(t,n,e,o){const r=f(t);let i=function(t,n,e){const o=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return e?n?r:o:n?o:r;case"left":case"right":return n?i:a;default:return[]}}(u(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(p)))),i}(c,S,R,D));const C=[c,...P],H=await b(n,O),M=[];let B=(null==(o=i.flip)?void 0:o.overflows)||[];if(w&&M.push(H[k]),x){const t=function(t,n,e){void 0===e&&(e=!1);const o=f(t),r=h(t),i=m(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=g(a)),[a,g(a)]}(r,a,D);M.push(H[t[0]],H[t[1]])}if(B=[...B,{placement:r,overflows:M}],!M.every((t=>t<=0))){var L,E;const t=((null==(L=i.flip)?void 0:L.index)||0)+1,n=C[t];if(n)return{data:{index:t,overflows:B},reset:{placement:n}};let e=null==(E=B.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:E.placement;if(!e)switch(A){case"bestFit":{var I;const t=null==(I=B.filter((t=>{if(z){const n=y(t.placement);return n===F||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:I[0];t&&(e=t);break}case"initialPlacement":e=c}if(r!==e)return{reset:{placement:e}}}return{}}}},ct=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(o){const{placement:r,rects:i,platform:a,elements:c}=o,{apply:l=(()=>{}),...d}=s(t,o),m=await b(o,d),h=u(r),p=f(r),g="y"===y(r),{width:w,height:x}=i.floating;let v,A;"top"===h||"bottom"===h?(v=h,A=p===(await(null==a.isRTL?void 0:a.isRTL(c.floating))?"start":"end")?"left":"right"):(A=h,v="end"===p?"top":"bottom");const R=x-m.top-m.bottom,S=w-m.left-m.right,O=n(x-m[v],R),k=n(w-m[A],S),F=!o.middlewareData.shift;let T=O,D=k;if(g?D=p||F?n(k,S):S:T=p||F?n(O,R):R,F&&!p){const t=e(m.left,0),n=e(m.right,0),o=e(m.top,0),r=e(m.bottom,0);g?D=w-2*(0!==t||0!==n?t+n:e(m.left,m.right)):T=x-2*(0!==o||0!==r?o+r:e(m.top,m.bottom))}await l({...o,availableWidth:D,availableHeight:T});const P=await a.getDimensions(c.floating);return w!==P.width||x!==P.height?{reset:{rects:!0}}:{}}}},lt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e}=n,{strategy:o="referenceHidden",...r}=s(t,n);switch(o){case"referenceHidden":{const t=A(await b(n,{...r,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:R(t)}}}case"escaped":{const t=A(await b(n,{...r,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:R(t)}}}default:return{}}}}},st=t=>({name:"arrow",options:t,async fn(e){const{x:o,y:r,placement:i,rects:a,platform:c,elements:u,middlewareData:d}=e,{element:y,padding:p=0}=s(t,e)||{};if(null==y)return{};const g=w(p),x={x:o,y:r},v=h(i),b=m(v),A=await c.getDimensions(y),R="y"===v,S=R?"top":"left",O=R?"bottom":"right",k=R?"clientHeight":"clientWidth",F=a.reference[b]+a.reference[v]-x[v]-a.floating[b],T=x[v]-a.reference[v],D=await(null==c.getOffsetParent?void 0:c.getOffsetParent(y));let P=D?D[k]:0;P&&await(null==c.isElement?void 0:c.isElement(D))||(P=u.floating[k]||a.floating[b]);const z=F/2-T/2,C=P/2-A[b]/2-1,H=n(g[S],C),M=n(g[O],C),B=H,L=P-A[b]-M,E=P/2-A[b]/2+z,I=l(B,E,L),N=!d.arrow&&null!=f(i)&&E!==I&&a.reference[b]/2-(E<B?H:M)-A[b]/2<0,j=N?E<B?E-B:E-L:0;return{[v]:x[v]+j,data:{[v]:I,centerOffset:E-I-j,...N&&{alignmentOffset:j}},reset:N}}}),ut=(t,n,e)=>{const o=new Map,r={platform:et,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=e,c=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(n));let s=await a.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=v(s,o,l),d=o,m={},y=0;for(let e=0;e<c.length;e++){const{name:i,fn:h}=c[e],{x:p,y:g,data:w,reset:x}=await h({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:m,rects:s,platform:a,elements:{reference:t,floating:n}});u=null!=p?p:u,f=null!=g?g:f,m={...m,[i]:{...m[i],...w}},x&&y<=50&&(y++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(s=!0===x.rects?await a.getElementRects({reference:t,floating:n,strategy:r}):x.rects),({x:u,y:f}=v(s,d,l))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:m}})(t,n,{...r,platform:i})};export{ot as a,st as b,ut as c,ct as d,at as f,lt as h,rt as o,it as s}
|