genesys-spark-components 4.86.0 → 4.87.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/genesys-webcomponents.cjs.js +1 -1
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-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-form-field-number_3.cjs.entry.js → gux-button_4.cjs.entry.js} +74 -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 +1 -1
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-file.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 +1 -1
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-buttons_2.cjs.entry.js +11 -10
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-items-per-page.cjs.entry.js +4 -3
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +4 -3
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +1 -1
- package/dist/cjs/gux-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-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-switch-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/gux-table.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
- 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/index-79505d14.js +2 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{usage-ca6a2ac1.js → usage-f6008488.js} +1 -1
- package/dist/collection/components/beta/gux-tooltip-base/gux-tooltip-base.css +1 -1
- package/dist/collection/components/stable/gux-button/gux-button.css +1 -0
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.css +1 -30
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.js +25 -6
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.css +1 -15
- package/dist/collection/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.js +37 -3
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.css +8 -0
- package/dist/collection/components/stable/gux-pagination/gux-pagination-item-counts/gux-pagination-item-counts.js +2 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.css +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.js +21 -2
- package/dist/collection/components/stable/gux-pagination/gux-pagination.css +1 -1
- package/dist/collection/components/stable/gux-pagination/gux-pagination.js +20 -1
- package/dist/collection/components/stable/gux-toggle/gux-toggle.css +2 -2
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.css +1 -1
- package/dist/esm/genesys-webcomponents.js +1 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
- package/dist/esm/gux-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-form-field-number_3.entry.js → gux-button_4.entry.js} +75 -6
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-column-manager.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +1 -1
- package/dist/esm/gux-context-menu.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
- package/dist/esm/gux-date-beta.entry.js +1 -1
- package/dist/esm/gux-date-time-beta.entry.js +1 -1
- package/dist/esm/gux-datepicker.entry.js +1 -1
- package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +1 -1
- package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
- package/dist/esm/gux-form-field-file.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 +1 -1
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-buttons_2.entry.js +11 -10
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-items-per-page.entry.js +4 -3
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +4 -3
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +1 -1
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-screen-reader-beta_2.entry.js +1 -1
- package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
- package/dist/esm/gux-selector-card-beta.entry.js +1 -1
- package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-switch-legacy.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
- package/dist/esm/gux-table-toolbar.entry.js +1 -1
- package/dist/esm/gux-table.entry.js +1 -1
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +1 -1
- package/dist/esm/gux-time-picker.entry.js +1 -1
- package/dist/esm/gux-time-zone-beta.entry.js +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 +2 -2
- package/dist/esm/gux-tooltip-base-beta.entry.js +2 -2
- package/dist/esm/gux-tooltip.entry.js +2 -2
- package/dist/esm/index-b6ca2adc.js +2 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{usage-314a86a5.js → usage-af3ab5a4.js} +1 -1
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-9b0e79bf.entry.js → p-029f3043.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d8606277.entry.js → p-03aa55fd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e6441f87.entry.js → p-0839d3fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b2cd015.entry.js → p-08b9754c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-932f503b.entry.js → p-0d2bb386.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7100acc7.entry.js → p-0e048076.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0e20282f.entry.js → p-0e0780d5.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0f2a054e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1b52e07a.entry.js → p-0f934306.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2cd83454.entry.js → p-1216908e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-49bfac28.entry.js → p-136a1057.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-13fec0b6.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-f767b24e.entry.js → p-19643d0d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e595a4ae.entry.js → p-1e49e51c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a8d2e345.entry.js → p-1ea8adc9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a319e563.entry.js → p-27ad20e6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-89ab288f.entry.js → p-287192e1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e82517aa.entry.js → p-2da7cc13.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-de491a06.entry.js → p-30e95c8a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7114b5f0.entry.js → p-34c3386c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d86f4401.entry.js → p-35030ecd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f205b05a.entry.js → p-3e70d2f5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e107e55b.entry.js → p-3e78b207.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-72d58a7c.entry.js → p-3f706e89.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-397dd95c.entry.js → p-41621bb2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e63b42b7.entry.js → p-48489e01.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4ae471a9.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-8906f885.entry.js → p-54201737.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9345ce78.entry.js → p-56bd9ef5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f9c55d70.entry.js → p-5afea7df.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a82d92eb.entry.js → p-5f13c893.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-86b424da.entry.js → p-60028dc5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f2c01cc6.entry.js → p-619a36c3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fc794e61.entry.js → p-6fca3896.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b3aa1c65.js → p-71505972.js} +1 -1
- package/dist/genesys-webcomponents/{p-b31c510a.entry.js → p-71581953.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-643b2a31.entry.js → p-752b7b5d.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-75cff56b.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-76c41bbc.entry.js → p-763ee328.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c090adc6.entry.js → p-764e7275.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8d5aa3a8.entry.js → p-767a3580.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0f5f0eaf.entry.js → p-7a259f6a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8bb73f67.entry.js → p-7c6533ab.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-87b9cb05.entry.js → p-7d3532dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-04ad4baa.entry.js → p-84256892.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c5002bc8.entry.js → p-861cf4c3.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-876a3a6f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-e9140df1.entry.js → p-8acd1cf0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-dcb4f025.entry.js → p-91fe2cd0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3deaf5f3.entry.js → p-93f81ef5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2663c1c2.entry.js → p-945920f5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1313b8e7.entry.js → p-984fc8ff.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5fed3f9e.entry.js → p-9aa13c2e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4f9e7ed1.entry.js → p-9b772d52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2a416742.entry.js → p-9bba9ab7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f1979efe.entry.js → p-9cfbf33b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e2d8b3be.entry.js → p-a0d3725d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ef6a83b2.entry.js → p-a2145aba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-834b25ff.entry.js → p-a314769f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-72ce4065.entry.js → p-a56fcd2d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-52cc6e3c.entry.js → p-a7660ad2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a0ae947a.entry.js → p-ab1b2d7f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8ca099f7.entry.js → p-ab709ce1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-68cd67ab.entry.js → p-ac07f44e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-56ddc0b8.entry.js → p-acdb0b6b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4e1aa968.entry.js → p-bd4c098b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0beb321f.entry.js → p-bdc4fce7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-20a11f00.entry.js → p-bf2fd444.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e0119f64.entry.js → p-c1d21c27.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7e48b341.entry.js → p-c1d9a930.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-be043353.entry.js → p-c271c2e2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-57c94d3e.entry.js → p-c58266dc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-77f63bce.entry.js → p-c67a55ec.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9995e2f8.entry.js → p-c7e74650.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c0ad5ad.entry.js → p-cafce82f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3ce8f192.entry.js → p-ce2e05eb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-58660aab.entry.js → p-cf5ad07c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2ee00f75.entry.js → p-d6d75e5e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c89e64c0.entry.js → p-d80b2240.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fa61a1db.entry.js → p-d9502635.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7ed4a8bc.entry.js → p-da35b6fe.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fb54b40d.entry.js → p-daf51e53.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d5bce7e6.entry.js → p-e424acbf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c817c1e4.entry.js → p-e43e04c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-55ce8489.entry.js → p-e5696e14.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-15c95502.entry.js → p-e67af2fd.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bcc92c7d.entry.js → p-e86f4ac4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1073b3e1.entry.js → p-ebb5ed99.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fab45806.entry.js → p-ec23cefc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a1e1658d.entry.js → p-ecf57224.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-82294c7c.entry.js → p-f26919ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-162c765c.entry.js → p-f3fbe97d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-12d7c68d.entry.js → p-f4e70ec1.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f686137f.entry.js +1 -0
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-buttons.d.ts +1 -0
- package/dist/types/components/stable/gux-pagination/gux-pagination-buttons/gux-pagination-ellipsis-button/gux-pagination-ellipsis-button.d.ts +2 -0
- package/dist/types/components/stable/gux-pagination/gux-pagination-items-per-page/gux-pagination-items-per-page.d.ts +1 -0
- package/dist/types/components/stable/gux-pagination/gux-pagination.d.ts +1 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/gux-button.cjs.entry.js +0 -64
- package/dist/esm/gux-button.entry.js +0 -60
- package/dist/genesys-webcomponents/p-104a45e0.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3695b61e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-64d9cad6.entry.js +0 -1
- package/dist/genesys-webcomponents/p-71539043.entry.js +0 -1
- package/dist/genesys-webcomponents/p-9758fbb1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a249eb71.entry.js +0 -1
- package/dist/genesys-webcomponents/p-b136ff52.entry.js +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
import{r as e,c as a,h as t,g as i}from"./p-6e010355.js";import{b as n}from"./p-18eb7333.js";import"./p-4202e9f2.js";const g={perPage:"per page",itemsPerPage:"Items per page",rangeSelected:"Items per page dropdown, {range} items per page selected"},o=class{constructor(t){e(this,t),this.internalitemsperpagechange=a(this,"internalitemsperpagechange",3),this.itemsPerPage=25,this.disabled=!1}handleChange(e){e.stopPropagation();const a=parseInt(this.dropdownElement.value,10);this.internalitemsperpagechange.emit(a)}async componentWillLoad(){this.i18n=await n(this.root,g)}getDropdown(){return t("gux-dropdown",{ref:e=>this.dropdownElement=e,value:`${this.itemsPerPage}`,disabled:this.disabled,"aria-label":this.i18n("rangeSelected",{range:this.itemsPerPage})},t("gux-listbox",{"aria-label":this.i18n("itemsPerPage")},t("gux-option",{value:"25"},"25"),t("gux-option",{value:"50"},"50"),t("gux-option",{value:"75"},"75"),t("gux-option",{value:"100"},"100")))}render(){return t("div",{key:"c74146a000de3473c1a0c0dbf0b3d2776d18dd45",class:"gux-pagination-items-per-page-container"},t("div",{key:"66fd783332da103db8137dcb0df267e1966149b5",class:"gux-pagination-items-per-page-picker"},this.getDropdown()),t("div",{key:"654f5b271953bbb2f7b04a3a038a389f911f64fc",class:"gux-pagination-per-page"},this.i18n("perPage")))}get root(){return i(this)}};o.style="gux-pagination-items-per-page .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-items-per-page .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;width:fit-content}gux-pagination-items-per-page .gux-pagination-items-per-page-container gux-dropdown div.gux-dropdown .gux-options.gux-opened{bottom:100%;display:flex;flex-direction:column-reverse}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor)}";export{o as gux_pagination_items_per_page}
|
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.87.0-370/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
|
@@ -6,9 +6,11 @@ export declare class GuxPaginationEllipsisButton {
|
|
6
6
|
private root;
|
7
7
|
isOpen: boolean;
|
8
8
|
totalPages: number;
|
9
|
+
disabled: boolean;
|
9
10
|
goToPage: EventEmitter<string>;
|
10
11
|
handleKeyDown(event: KeyboardEvent): void;
|
11
12
|
handleKeyup(event: KeyboardEvent): void;
|
13
|
+
watchIsDisabled(newValue: boolean): void;
|
12
14
|
private toggle;
|
13
15
|
onClickOutside(): void;
|
14
16
|
private focusInputElement;
|
@@ -5,6 +5,7 @@ export declare class GuxPaginationItemsPerPage implements ComponentInterface {
|
|
5
5
|
private dropdownElement;
|
6
6
|
private root;
|
7
7
|
itemsPerPage: GuxItemsPerPage;
|
8
|
+
disabled: boolean;
|
8
9
|
private internalitemsperpagechange;
|
9
10
|
handleChange(event: CustomEvent): void;
|
10
11
|
componentWillLoad(): Promise<void>;
|
@@ -20,6 +20,7 @@ export declare class GuxPagination implements ComponentInterface {
|
|
20
20
|
* The max number of items on a page. Used to calculate total page count
|
21
21
|
*/
|
22
22
|
itemsPerPage: GuxItemsPerPage;
|
23
|
+
disabled: boolean;
|
23
24
|
/**
|
24
25
|
* The total number of pages needed for the the data set.
|
25
26
|
*/
|
@@ -846,6 +846,7 @@ export namespace Components {
|
|
846
846
|
* The currently select page. Changes are watched by the component.
|
847
847
|
*/
|
848
848
|
"currentPage": number;
|
849
|
+
"disabled": boolean;
|
849
850
|
/**
|
850
851
|
* The max number of items on a page. Used to calculate total page count
|
851
852
|
*/
|
@@ -861,6 +862,7 @@ export namespace Components {
|
|
861
862
|
}
|
862
863
|
interface GuxPaginationButtons {
|
863
864
|
"currentPage": number;
|
865
|
+
"disabled": boolean;
|
864
866
|
"layout": GuxPaginationLayout;
|
865
867
|
"totalPages": number;
|
866
868
|
}
|
@@ -880,6 +882,7 @@ export namespace Components {
|
|
880
882
|
"layout": 'simple' | 'advanced';
|
881
883
|
}
|
882
884
|
interface GuxPaginationEllipsisButton {
|
885
|
+
"disabled": boolean;
|
883
886
|
"totalPages": number;
|
884
887
|
}
|
885
888
|
interface GuxPaginationItemCounts {
|
@@ -893,6 +896,7 @@ export namespace Components {
|
|
893
896
|
"totalItems": number;
|
894
897
|
}
|
895
898
|
interface GuxPaginationItemsPerPage {
|
899
|
+
"disabled": boolean;
|
896
900
|
"itemsPerPage": GuxItemsPerPage;
|
897
901
|
}
|
898
902
|
interface GuxPaginationItemsPerPageLegacy {
|
@@ -3882,6 +3886,7 @@ declare namespace LocalJSX {
|
|
3882
3886
|
* The currently select page. Changes are watched by the component.
|
3883
3887
|
*/
|
3884
3888
|
"currentPage"?: number;
|
3889
|
+
"disabled"?: boolean;
|
3885
3890
|
/**
|
3886
3891
|
* The max number of items on a page. Used to calculate total page count
|
3887
3892
|
*/
|
@@ -3898,6 +3903,7 @@ declare namespace LocalJSX {
|
|
3898
3903
|
}
|
3899
3904
|
interface GuxPaginationButtons {
|
3900
3905
|
"currentPage"?: number;
|
3906
|
+
"disabled"?: boolean;
|
3901
3907
|
"layout"?: GuxPaginationLayout;
|
3902
3908
|
"onInternalcurrentpagechange"?: (event: GuxPaginationButtonsCustomEvent<number>) => void;
|
3903
3909
|
"totalPages"?: number;
|
@@ -3921,6 +3927,7 @@ declare namespace LocalJSX {
|
|
3921
3927
|
"onGuxitemsperpagechange"?: (event: GuxPaginationCursorCustomEvent<number>) => void;
|
3922
3928
|
}
|
3923
3929
|
interface GuxPaginationEllipsisButton {
|
3930
|
+
"disabled"?: boolean;
|
3924
3931
|
"onGoToPage"?: (event: GuxPaginationEllipsisButtonCustomEvent<string>) => void;
|
3925
3932
|
"totalPages"?: number;
|
3926
3933
|
}
|
@@ -3935,6 +3942,7 @@ declare namespace LocalJSX {
|
|
3935
3942
|
"totalItems"?: number;
|
3936
3943
|
}
|
3937
3944
|
interface GuxPaginationItemsPerPage {
|
3945
|
+
"disabled"?: boolean;
|
3938
3946
|
"itemsPerPage"?: GuxItemsPerPage;
|
3939
3947
|
"onInternalitemsperpagechange"?: (event: GuxPaginationItemsPerPageCustomEvent<number>) => void;
|
3940
3948
|
}
|
@@ -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.87.0-370/genesys-webcomponents/";
|
2
2
|
export declare function registerElements(): void;
|
package/package.json
CHANGED
@@ -1,64 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
-
|
5
|
-
const index = require('./index-79505d14.js');
|
6
|
-
const usage = require('./usage-ca6a2ac1.js');
|
7
|
-
|
8
|
-
const guxButtonCss = ":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:8px;vertical-align:middle}::slotted(*:first-child){padding:0}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)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:var(--gse-semantic-focusRing-cornerRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{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)}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor, --gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-link-disabled-foregroundColor, --gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-link-hover-foregroundColor, --gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-link-active-foregroundColor, --gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";
|
9
|
-
const GuxButtonStyle0 = guxButtonCss;
|
10
|
-
|
11
|
-
const GuxButton = class {
|
12
|
-
constructor(hostRef) {
|
13
|
-
index.registerInstance(this, hostRef);
|
14
|
-
this.type = 'button';
|
15
|
-
this.guxTitle = undefined;
|
16
|
-
this.disabled = false;
|
17
|
-
this.accent = 'secondary';
|
18
|
-
this.iconOnly = undefined;
|
19
|
-
}
|
20
|
-
connectedCallback() {
|
21
|
-
this.slotChanged();
|
22
|
-
}
|
23
|
-
componentWillLoad() {
|
24
|
-
usage.trackComponent(this.root, { variant: this.accent });
|
25
|
-
}
|
26
|
-
render() {
|
27
|
-
return (index.h("button", { key: '3040bad442f39bc2809fe0cf4d65b321a3d80e56', type: this.type, title: this.guxTitle, disabled: this.disabled, class: {
|
28
|
-
[`gux-${this.accent}`]: true,
|
29
|
-
'gux-icon-only': this.iconOnly
|
30
|
-
} }, index.h("slot", { key: '59907df8032ac3ee4fa0021e80511c62d63fc755', onSlotchange: this.slotChanged.bind(this) })));
|
31
|
-
}
|
32
|
-
stopEventIfDisabled(event) {
|
33
|
-
if (this.disabled) {
|
34
|
-
event.stopImmediatePropagation();
|
35
|
-
event.stopPropagation();
|
36
|
-
event.preventDefault();
|
37
|
-
}
|
38
|
-
}
|
39
|
-
makeSlotContentDisableable() {
|
40
|
-
this.root.shadowRoot.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
41
|
-
Array.from(this.root.children).forEach(slotElement => {
|
42
|
-
slotElement.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
43
|
-
});
|
44
|
-
}
|
45
|
-
hasIconOnly() {
|
46
|
-
const children = Array.from(this.root.children);
|
47
|
-
if (children.length === 1) {
|
48
|
-
const child = children[0];
|
49
|
-
if (child.tagName === 'GUX-ICON') {
|
50
|
-
return true;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
return false;
|
54
|
-
}
|
55
|
-
slotChanged() {
|
56
|
-
this.makeSlotContentDisableable();
|
57
|
-
this.iconOnly = this.hasIconOnly();
|
58
|
-
}
|
59
|
-
static get delegatesFocus() { return true; }
|
60
|
-
get root() { return index.getElement(this); }
|
61
|
-
};
|
62
|
-
GuxButton.style = GuxButtonStyle0;
|
63
|
-
|
64
|
-
exports.gux_button = GuxButton;
|
@@ -1,60 +0,0 @@
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-b6ca2adc.js';
|
2
|
-
import { t as trackComponent } from './usage-314a86a5.js';
|
3
|
-
|
4
|
-
const guxButtonCss = ":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:8px;vertical-align:middle}::slotted(*:first-child){padding:0}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)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:var(--gse-semantic-focusRing-cornerRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{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)}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor, --gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-link-disabled-foregroundColor, --gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-link-hover-foregroundColor, --gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-link-active-foregroundColor, --gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";
|
5
|
-
const GuxButtonStyle0 = guxButtonCss;
|
6
|
-
|
7
|
-
const GuxButton = class {
|
8
|
-
constructor(hostRef) {
|
9
|
-
registerInstance(this, hostRef);
|
10
|
-
this.type = 'button';
|
11
|
-
this.guxTitle = undefined;
|
12
|
-
this.disabled = false;
|
13
|
-
this.accent = 'secondary';
|
14
|
-
this.iconOnly = undefined;
|
15
|
-
}
|
16
|
-
connectedCallback() {
|
17
|
-
this.slotChanged();
|
18
|
-
}
|
19
|
-
componentWillLoad() {
|
20
|
-
trackComponent(this.root, { variant: this.accent });
|
21
|
-
}
|
22
|
-
render() {
|
23
|
-
return (h("button", { key: '3040bad442f39bc2809fe0cf4d65b321a3d80e56', type: this.type, title: this.guxTitle, disabled: this.disabled, class: {
|
24
|
-
[`gux-${this.accent}`]: true,
|
25
|
-
'gux-icon-only': this.iconOnly
|
26
|
-
} }, h("slot", { key: '59907df8032ac3ee4fa0021e80511c62d63fc755', onSlotchange: this.slotChanged.bind(this) })));
|
27
|
-
}
|
28
|
-
stopEventIfDisabled(event) {
|
29
|
-
if (this.disabled) {
|
30
|
-
event.stopImmediatePropagation();
|
31
|
-
event.stopPropagation();
|
32
|
-
event.preventDefault();
|
33
|
-
}
|
34
|
-
}
|
35
|
-
makeSlotContentDisableable() {
|
36
|
-
this.root.shadowRoot.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
37
|
-
Array.from(this.root.children).forEach(slotElement => {
|
38
|
-
slotElement.addEventListener('click', (event) => this.stopEventIfDisabled(event));
|
39
|
-
});
|
40
|
-
}
|
41
|
-
hasIconOnly() {
|
42
|
-
const children = Array.from(this.root.children);
|
43
|
-
if (children.length === 1) {
|
44
|
-
const child = children[0];
|
45
|
-
if (child.tagName === 'GUX-ICON') {
|
46
|
-
return true;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
return false;
|
50
|
-
}
|
51
|
-
slotChanged() {
|
52
|
-
this.makeSlotContentDisableable();
|
53
|
-
this.iconOnly = this.hasIconOnly();
|
54
|
-
}
|
55
|
-
static get delegatesFocus() { return true; }
|
56
|
-
get root() { return getElement(this); }
|
57
|
-
};
|
58
|
-
GuxButton.style = GuxButtonStyle0;
|
59
|
-
|
60
|
-
export { GuxButton as gux_button };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as o,h as e,g as r}from"./p-6e010355.js";import{c as t,o as i}from"./p-f4751a15.js";import{O as n}from"./p-e720c07a.js";import{o as l}from"./p-e5b1cffc.js";import{p as a}from"./p-a11d5d42.js";import{h as s}from"./p-6d8b4027.js";import{a as u,G as f}from"./p-b8c3ecdc.js";import{G as d,a as p}from"./p-7e76ac06.js";import{g as c,v as g,a as h}from"./p-42f2e889.js";import{t as m}from"./p-b3aa1c65.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";import"./p-2c25e2f2.js";const b=class{constructor(e){o(this,e),this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition=void 0,this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help")}handleKeyup(o){var e,r;"Tab"===o.key?this.input.matches(":focus-visible")&&(null===(e=this.labelInfo)||void 0===e||e.showTooltip(),this.hideLabelInfoTimeout=setTimeout((()=>{var o;null===(o=this.labelInfo)||void 0===o||o.hideTooltip()}),6e3)):this.input.matches(":focus-visible")&&(null===(r=this.labelInfo)||void 0===r||r.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout))}onFocusout(){var o;null===(o=this.labelInfo)||void 0===o||o.hideTooltip(),clearTimeout(this.hideLabelInfoTimeout)}componentWillLoad(){this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=s(this.root,"error"),this.hasHelp=s(this.root,"help"),m(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return e(p,{key:"bffb48ffc891f5ee3f946aaa98ebc113e455911c",labelPosition:this.computedLabelPosition},e(d,{key:"d797d8a95fb9746131a5a30ca8697a3496d3840e",required:this.required,position:this.computedLabelPosition},e("slot",{key:"8a87981c5ae36338bcf92223f781d9381d4d3435",name:"label",onSlotchange:()=>this.setLabel()}),e("gux-form-field-label-indicator",{key:"d88e939341d482a4550268a421cf2dec8325beb2",variant:this.indicatorMark,required:this.required}),e("slot",{key:"f8e5c7fe81d2a0b7931d781c107959851e9d0c56",name:"label-info"})),e("div",{key:"0fc3b7df8694740a7f8fd56969034a8e8a8c89f7",class:"gux-input-and-error-container"},e("div",{key:"bfafbb89e81b05187f7ef5228f9d8d9a22472509",class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{key:"6287062f02784c6999acb35c9c4bd7bb9e097a17",class:{"gux-input-container":!0,"gux-disabled":this.disabled}},e("slot",{key:"db22af17d7e9f8b094773d94aff017cd0725ce53",name:"input",onSlotchange:()=>this.setInput()}))),e(u,{key:"c8222e8eba56fb15ba02f359253bef24fbc02c6f",show:this.hasError},e("slot",{key:"c39e694244391d5480058c97b61539db03ec29fe",name:"error"})),e(f,{key:"5038c1d3b848f41a69b1293731b5c2e91576de41",show:!this.hasError&&this.hasHelp},e("slot",{key:"d310790e690634a236e014c7beae3ec7f14204db",name:"help"}))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=c(this.root,'input[type="color"][slot="input"]'),a(this.input),this.disabled=t(this.input),this.required=this.input.required,this.disabledObserver=i(this.input,(o=>{this.disabled=o})),this.requiredObserver=l(this.input,(o=>{this.required=o})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=h(this.label,this.labelPosition)}get root(){return r(this)}};(function(o,e,r,t){var i,n=arguments.length,l=n<3?e:null===t?t=Object.getOwnPropertyDescriptor(e,r):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(o,e,r,t);else for(var a=o.length-1;a>=0;a--)(i=o[a])&&(l=(n<3?i(l):n>3?i(e,r,l):i(e,r))||l);n>3&&l&&Object.defineProperty(e,r,l)})([n({childList:!0,subtree:!0})],b.prototype,"onMutation",null),b.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, --gse-ui-icon-small-size);min-height:var(--gse-ui-icon-size-sm, --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)}::slotted(input){flex:0 1 auto;align-self:auto;order:0;width:var(--gse-ui-colorPicker-input-swatchSizing);min-width:var(--gse-ui-colorPicker-input-swatchSizing);height:var(--gse-ui-colorPicker-input-swatchSizing);padding:0;overflow:hidden;font-size:var(--gse-ui-formControl-input-contentText-fontSize);color:var(--gse-ui-formControl-input-populatedColor);text-align:right;text-overflow:ellipsis;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;outline:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;width:var(--gse-ui-formControl-input-colorPicker-size);height:var(--gse-ui-formControl-input-colorPicker-size);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-input-and-error-container .gux-input .gux-input-container:hover{cursor:pointer;border-color:var(--gse-ui-formControl-input-hover-border-color)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}";export{b as gux_form_field_color}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as a,c as t,d as i,h as e,g as n}from"./p-6e010355.js";import{a as s}from"./p-cf0e7d3b.js";import{t as o}from"./p-b3aa1c65.js";const r=class{constructor(i){a(this,i),this.guxpaginationchange=t(this,"guxpaginationchange",7),this.reinstateLayoutBreakpoint=0,this.layout="advanced",this.currentPage=1,this.totalItems=0,this.itemsPerPage=25,this.totalPages=void 0,this.displayedLayout=void 0}setPage(a){if(a<=0)return void this.setPage(1);const t=this.calculateTotalPages(this.totalItems,this.itemsPerPage);a>t?this.setPage(t):(this.currentPage=a,this.guxpaginationchange.emit({currentPage:this.currentPage,itemsPerPage:this.itemsPerPage}))}handleInternalitemsperpagechange(a){this.itemsPerPage=a.detail,this.setPage(1)}handleInternalcurrentpagechange(a){this.setPage(a.detail)}calculateTotalPages(a,t){return Math.max(1,Math.ceil(a/t))}calculateCurrentPage(a,t){return Math.max(a>0?1:0,Math.min(t,a))}checkPaginationContainerWidthForLayout(){i((()=>{const a=this.root.shadowRoot.querySelector(".gux-pagination-container"),t=this.root.shadowRoot.querySelector(".gux-pagination-spacer"),i=a.clientWidth;t.clientWidth<24&&"simple"!==this.displayedLayout?(this.reinstateLayoutBreakpoint=i,this.displayedLayout="simple"):i>this.reinstateLayoutBreakpoint&&(this.reinstateLayoutBreakpoint=0,this.displayedLayout=this.layout)}))}componentWillLoad(){o(this.root,{variant:this.layout})}componentWillRender(){this.totalPages=this.calculateTotalPages(this.totalItems,this.itemsPerPage),this.currentPage=this.calculateCurrentPage(this.totalPages,this.currentPage)}disconnectedCallback(){this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-pagination-container"))}componentDidLoad(){!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkPaginationContainerWidthForLayout()))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-pagination-container")),s((()=>{this.checkPaginationContainerWidthForLayout()}),500)}render(){return e("div",{key:"89660a5d070ac526d5f9903778590d1bd270a9b5",class:"gux-pagination-container"},e("div",{key:"593ced162d399ccbd4251d5e5c02fa2369cebc29",class:"gux-pagination-info"},e("gux-pagination-item-counts",{key:"442f13f3c0def8cff466bb6293c9f725078c9d05","total-items":this.totalItems,"current-page":this.currentPage,"items-per-page":this.itemsPerPage}),"advanced"===this.displayedLayout&&e("gux-pagination-items-per-page",{key:"9ed771112644dcc21473b9058d64fd9602a11ee5","items-per-page":this.itemsPerPage,onInternalitemsperpagechange:this.handleInternalitemsperpagechange.bind(this)})),e("div",{key:"697f99f72bdea4b8eb4505e38a38c65b93b37c11",class:"gux-pagination-spacer"}),e("div",{key:"1023bf7bc4026afc7bd367d28acffffc30644f37",class:"gux-pagination-change"},e("gux-pagination-buttons",{key:"3bd7c8768f9a38465528806b7849f14b690c3069",layout:this.displayedLayout,"current-page":this.currentPage,"total-pages":this.totalPages,onInternalcurrentpagechange:this.handleInternalcurrentpagechange.bind(this)})))}get root(){return n(this)}};r.style=":host{display:block;border-top:var(--gse-ui-dataTableItems-tablePagination-divider-width) var(--gse-ui-dataTableItems-tablePagination-divider-style) var(--gse-ui-dataTableItems-tablePagination-divider-color)}.gux-pagination-container{display:flex;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:center;height:var(--gse-ui-dataTableItems-cell-tablePagination-height);padding:var(--gse-ui-dataTableItems-tablePagination-padding);background-color:var(--gse-ui-dataTableItems-tablePagination-defaultBackgroundColor)}.gux-pagination-container .gux-pagination-info{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-start;align-items:center;align-self:auto;order:0}.gux-pagination-container .gux-pagination-info>*{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-spacer{flex:1 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change{flex:0 1 auto;align-self:auto;order:0}.gux-pagination-container .gux-pagination-change:first-child{margin-left:0}";export{r as gux_pagination}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,c as a,h as t,g as i}from"./p-6e010355.js";import{b as n}from"./p-18eb7333.js";import"./p-4202e9f2.js";const g={perPage:"per page",itemsPerPage:"Items per page",rangeSelected:"Items per page dropdown, {range} items per page selected"},o=class{constructor(t){e(this,t),this.internalitemsperpagechange=a(this,"internalitemsperpagechange",3),this.itemsPerPage=25}handleChange(e){e.stopPropagation();const a=parseInt(this.dropdownElement.value,10);this.internalitemsperpagechange.emit(a)}async componentWillLoad(){this.i18n=await n(this.root,g)}getDropdown(){return t("gux-dropdown",{ref:e=>this.dropdownElement=e,value:`${this.itemsPerPage}`,"aria-label":this.i18n("rangeSelected",{range:this.itemsPerPage})},t("gux-listbox",{"aria-label":this.i18n("itemsPerPage")},t("gux-option",{value:"25"},"25"),t("gux-option",{value:"50"},"50"),t("gux-option",{value:"75"},"75"),t("gux-option",{value:"100"},"100")))}render(){return t("div",{key:"d7cedc7c5a23c0af6f2d9fb7b726cf6ac367d9ac",class:"gux-pagination-items-per-page-container"},t("div",{key:"41b0844523937600c5a0df9029665c0d4b5f459b",class:"gux-pagination-items-per-page-picker"},this.getDropdown()),t("div",{key:"6af4475c060ebf2b9942ed6b6dcb0a527b132c44",class:"gux-pagination-per-page"},this.i18n("perPage")))}get root(){return i(this)}};o.style="gux-pagination-items-per-page .gux-pagination-items-per-page-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-items-per-page .gux-pagination-items-per-page-container>div{flex:0 1 auto;align-self:auto;order:0;white-space:nowrap}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-items-per-page-picker gux-dropdown{display:inline-block;width:fit-content}gux-pagination-items-per-page .gux-pagination-items-per-page-container gux-dropdown div.gux-dropdown .gux-options.gux-opened{bottom:100%;display:flex;flex-direction:column-reverse}gux-pagination-items-per-page .gux-pagination-items-per-page-container .gux-pagination-per-page{font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor)}";export{o as gux_pagination_items_per_page}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as o,h as r,g as t}from"./p-6e010355.js";import{t as e}from"./p-b3aa1c65.js";const n=class{constructor(r){o(this,r),this.type="button",this.guxTitle=void 0,this.disabled=!1,this.accent="secondary",this.iconOnly=void 0}connectedCallback(){this.slotChanged()}componentWillLoad(){e(this.root,{variant:this.accent})}render(){return r("button",{key:"3040bad442f39bc2809fe0cf4d65b321a3d80e56",type:this.type,title:this.guxTitle,disabled:this.disabled,class:{[`gux-${this.accent}`]:!0,"gux-icon-only":this.iconOnly}},r("slot",{key:"59907df8032ac3ee4fa0021e80511c62d63fc755",onSlotchange:this.slotChanged.bind(this)}))}stopEventIfDisabled(o){this.disabled&&(o.stopImmediatePropagation(),o.stopPropagation(),o.preventDefault())}makeSlotContentDisableable(){this.root.shadowRoot.addEventListener("click",(o=>this.stopEventIfDisabled(o))),Array.from(this.root.children).forEach((o=>{o.addEventListener("click",(o=>this.stopEventIfDisabled(o)))}))}hasIconOnly(){const o=Array.from(this.root.children);return 1===o.length&&"GUX-ICON"===o[0].tagName}slotChanged(){this.makeSlotContentDisableable(),this.iconOnly=this.hasIconOnly()}static get delegatesFocus(){return!0}get root(){return t(this)}};n.style=":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:8px;vertical-align:middle}::slotted(*:first-child){padding:0}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)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset);border-radius:var(--gse-semantic-focusRing-cornerRadius)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{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)}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor, --gse-ui-links-default-foregroundColor);background:none;border:none;border-radius:0}button.gux-inline[disabled]{color:var(--gse-ui-link-disabled-foregroundColor, --gse-ui-links-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-link-hover-foregroundColor, --gse-ui-links-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-link-active-foregroundColor, --gse-ui-links-active-foregroundColor);text-decoration:underline;background:none}";export{n as gux_button}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as a,h as e,g as i}from"./p-6e010355.js";import{b as n}from"./p-18eb7333.js";import{t as o}from"./p-20fbe34f.js";import{b as s}from"./p-cf0e7d3b.js";import"./p-4202e9f2.js";class r{static displayAllPageButtons(t,a,e){switch(e){case"advanced":return function(t,a){if(a<=7)return[...Array(a).keys()].map((a=>{const e=a+1;return{pageNumber:e,display:String(e),current:e===t}}));if(t<=3)return[...[...Array(5).keys()].map((a=>{const e=a+1;return{pageNumber:e,display:String(e),current:e===t}})),{pageNumber:6,display:"...",current:!1},{pageNumber:a,display:String(a),current:!1}];if(t>a-3){const e=[...Array(5).keys()].map((e=>{const i=e+a-4;return{pageNumber:i,display:String(i),current:i===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:a-6,display:"...",current:!1},...e]}const e=[...Array(3).keys()].map((a=>{const e=a+t-1;return{pageNumber:e,display:String(e),current:e===t}}));return[{pageNumber:1,display:"1",current:!1},{pageNumber:t-3,display:"...",current:!1},...e,{pageNumber:t+3,display:"...",current:!1},{pageNumber:a,display:String(a),current:!1}]}(t,a);case"simple":return function(t,a){return a<=3?[...Array(a).keys()].map((a=>{const e=a+1;return{pageNumber:e,display:String(e),current:e===t}})):a===t?[{pageNumber:1,display:"1",current:!1},{pageNumber:t,display:"...",current:!1},{pageNumber:a,display:String(a),current:!0}]:a>=4?[...[...Array(1).keys()].map((e=>{const i=e+t;return{pageNumber:i,display:String(i),current:i!==a}})),{pageNumber:t,display:"...",current:!1},{pageNumber:a,display:String(a),current:a==t}]:void 0}(t,a)}}}const g=class{constructor(e){t(this,e),this.internalcurrentpagechange=a(this,"internalcurrentpagechange",3),this.currentPage=void 0,this.totalPages=void 0,this.layout="advanced"}goToPageHandler(t){this.currentPage=t.detail,this.handlePageChange(this.currentPage),s((()=>{this.currentElement.focus()}))}get onFirstPage(){return this.currentPage<=1}get onLastPage(){return this.currentPage>=this.totalPages}handleClickFirst(){this.internalcurrentpagechange.emit(1)}handleClickPrevious(){this.internalcurrentpagechange.emit(this.currentPage-1)}handleClickNext(){this.internalcurrentpagechange.emit(this.currentPage+1)}handleClickLast(){this.internalcurrentpagechange.emit(this.totalPages)}handlePageChange(t){this.internalcurrentpagechange.emit(t)}getPageListEnteries(t,a,i){return r.displayAllPageButtons(t,a,i).reduce(((t,a)=>t.concat(a.current?e("button",{ref:t=>this.currentElement=t,class:"gux-pagination-buttons-list-current","aria-label":this.i18n("pageSelected",{pageSelected:a.pageNumber})},a.display):"..."==a.display?e("gux-pagination-ellipsis-button",{totalPages:this.totalPages}):e("button",{class:"gux-pagination-buttons-list-target",onClick:()=>this.handlePageChange(a.pageNumber),"aria-label":this.i18n("pageNumber",{pageNumber:a.pageNumber})},a.display))),[])}getPageNavigation(){return e("div",{class:"gux-pagination-buttons-list-container"},this.getPageListEnteries(this.currentPage,this.totalPages,this.layout))}async componentWillLoad(){this.i18n=await n(this.root,o)}render(){return e("div",{key:"30ab0439083726cb3615c1a18ff0ab97efe798b6",class:`gux-pagination-buttons-container gux-${this.layout}`},e("div",{key:"fbc5a8b8d13116a7767d1085a208c15b7bb1a5da",class:"gux-pagination-buttons-group"},e("gux-button-slot",{key:"b9cfd4b0a994657d168d1aa0614e2176efb9f380",accent:"ghost"},e("button",{key:"0ecd32936b67dc25c6b303af460831f0f877e3e4",title:this.i18n("firstPage"),disabled:this.onFirstPage,onClick:this.handleClickFirst.bind(this)},e("gux-icon",{key:"3de8cc8df38797524373af310e3e542afcdddc81",decorative:!0,"icon-name":"fa/chevrons-left-regular"}))),e("gux-button-slot",{key:"75f193385cbbdbe7a56272f1fde64019068b4592",accent:"ghost"},e("button",{key:"8318f0b70e9361263261b4fc5bc53a1f2a877bd8",title:this.i18n("previousPage"),disabled:this.onFirstPage,onClick:this.handleClickPrevious.bind(this)},e("gux-icon",{key:"0267d317badb9079f6bba6cafd838655fc057f93",decorative:!0,"icon-name":"custom/chevron-left-small-regular"})))),this.getPageNavigation(),e("div",{key:"0b526166b2f78226369144ce59649e99ec078fe6",class:"gux-pagination-buttons-group"},e("gux-button-slot",{key:"830556222e1c9bdfa307acc84c9ea5b73aa64715",accent:"ghost"},e("button",{key:"dcb89968a1cc1e6a7d7ba4e45764d609c7da1d57",title:this.i18n("nextPage"),disabled:this.onLastPage,onClick:this.handleClickNext.bind(this)},e("gux-icon",{key:"e68bb86ec3e2f310a8c7866fc0f2d073061992c6",decorative:!0,"icon-name":"custom/chevron-right-small-regular"}))),e("gux-button-slot",{key:"6570459811668de2a760b6fc91edba3860bd6939",accent:"ghost"},e("button",{key:"d1a17d0c343b0fb8cd293280a2c41e6f2cffc726",title:this.i18n("lastPage"),disabled:this.onLastPage,onClick:this.handleClickLast.bind(this)},e("gux-icon",{key:"f0a7f421dffeab5366a1d8c26ba08b5aa66e64ff",decorative:!0,"icon-name":"fa/chevrons-right-regular"})))))}get root(){return i(this)}};g.style="gux-pagination-buttons .gux-pagination-buttons-container{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch flex-end;align-items:center;margin-left:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap)}gux-pagination-buttons .gux-pagination-buttons-container>div{flex:0 1 auto;align-self:auto;order:0}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-group{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);white-space:nowrap}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container{display:flex;flex-shrink:0;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-dataTableItems-tablePagination-recordsetControls-gap);place-content:stretch center;align-items:center}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current,gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target{min-width:28px;min-height:24px;padding-right:var(--gse-ui-dataTableItems-tablePagination-padding);padding-left:var(--gse-ui-dataTableItems-tablePagination-padding);margin:0;font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);background:inherit;border:none}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current:focus-visible,gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target:focus-visible{border-radius:calc(var(--gse-semantic-focusRing-cornerRadius) - var(--gse-semantic-focusRing-offset));outline:var(--gse-semantic-focusRing-width) solid var(--gse-semantic-color-focus, --gse-ui-color-focus);outline-offset:var(--gse-semantic-focusRing-offset)}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-current{background-color:var(--gse-ui-button-ghost-active-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target{color:var(--gse-ui-button-ghost-default-foregroundColor);cursor:pointer}gux-pagination-buttons .gux-pagination-buttons-container .gux-pagination-buttons-list-container .gux-pagination-buttons-list-target:hover{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor);border-radius:var(--gse-ui-button-borderRadius)}";const u={itemCountDisplay:"{firstItem, number} - {lastItem, number}",totalItems:" of {totalItems, number}"},c=class{constructor(a){t(this,a),this.totalItems=0,this.currentPage=0,this.itemsPerPage=25}get firstItem(){return this.totalItems<1?0:(this.currentPage-1)*this.itemsPerPage+1}get lastItem(){return this.totalItems<1?0:Math.min(this.currentPage*this.itemsPerPage,this.totalItems)}async componentWillLoad(){this.i18n=await n(this.root,u)}getPaginationItemCountsRange(){if(this.totalItems)return e("span",null,this.i18n("totalItems",{totalItems:this.totalItems}))}render(){return e("div",{key:"993e166ead4f89df64c6c5be303215dce3bd70ae",class:"gux-pagination-item-counts-container"},e("span",{key:"0a1088435f50e30ba9e34b27b16270252a861fef",class:"gux-pagination-item-counts-range"},this.i18n("itemCountDisplay",{firstItem:this.firstItem,lastItem:this.lastItem})),this.getPaginationItemCountsRange())}get root(){return i(this)}};c.style="gux-pagination-item-counts .gux-pagination-item-counts-container{display:flex;flex-direction:row;gap:var(--gse-ui-dataTableItems-tablePagination-countDisplay-gap);font-family:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontFamily);font-size:var(--gse-ui-dataTableItems-tablePagination-defaultText-fontSize);font-weight:var(--gse-ui-dataTableItems-tablePagination-currentResultText-fontWeight);line-height:var(--gse-ui-dataTableItems-tablePagination-defaultText-lineHeight);color:var(--gse-ui-dataTableItems-tablePagination-foregroundColor);white-space:nowrap}";export{g as gux_pagination_buttons,c as gux_pagination_item_counts}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as e,f as t,h as o,g as i,c as r,H as s}from"./p-6e010355.js";import{b as a}from"./p-18eb7333.js";import{c as n,o as l}from"./p-f4751a15.js";import{O as u}from"./p-e720c07a.js";import{o as d}from"./p-e5b1cffc.js";import{p}from"./p-a11d5d42.js";import{h as c,c as f,g as h,v as g,a as b,d as m}from"./p-42f2e889.js";import{s as v}from"./p-2c25e2f2.js";import{h as x}from"./p-6d8b4027.js";import{a as w,G as y}from"./p-b8c3ecdc.js";import{G as C,a as k}from"./p-7e76ac06.js";import{t as j}from"./p-b3aa1c65.js";import{f as z}from"./p-54822e3b.js";import{t as S}from"./p-20fbe34f.js";import{O as R}from"./p-b0758688.js";import{b as T}from"./p-cf0e7d3b.js";import{a as F,c as O,o as D,f as I,s as E,b as B}from"./p-d8ba5b01.js";import{g as P}from"./p-1ccc4961.js";import{f as L}from"./p-9b0d3713.js";import"./p-4202e9f2.js";import"./p-0934300e.js";import"./p-8eaf8caf.js";const $={increment:"Increment",decrement:"Decrement"};const _=class{constructor(t){e(this,t),this.clearable=void 0,this.labelPosition=void 0,this.indicatorMark="required",this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=x(this.root,"error"),this.hasHelp=x(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)}async guxForceUpdate(){this.hasContent=c(this.input),this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help"),t(this.root)}async componentWillLoad(){this.getI18nValue=await a(this.root,$),this.setInput(),this.setLabel(),this.labelInfo=this.root.querySelector("[slot=label-info]"),this.hasError=x(this.root,"error"),this.hasHelp=x(this.root,"help"),j(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){const e=this.clearable&&this.hasContent&&!this.disabled;return o(k,{key:"1404ed256b0c59730a6b52a8eb8511b966697af3",labelPosition:this.computedLabelPosition},o(C,{key:"06b4f7b5550e608958e6c097c619f2afe6c614ac",required:this.required,position:this.computedLabelPosition},o("slot",{key:"b7315fb4f8498f5308d39dfe0e70eaad42644108",name:"label",onSlotchange:()=>this.setLabel()}),o("gux-form-field-label-indicator",{key:"4fb64e295f6a03dc874ef4844c3fecac10d09fb9",variant:this.indicatorMark,required:this.required}),o("slot",{key:"6655ae39155c1c790b90f6d93afcd2bd6d0bbcf9",name:"label-info"})),o("div",{key:"70790da5948a776ce78c951933c3f8cffb1e9a68",class:"gux-input-and-error-container"},o("div",{key:"e4bfd871ccb296f87dc618db9fa317122475b41e",class:{"gux-input":!0,"gux-input-error":this.hasError},part:"input-section"},o("div",{key:"34b340aab242ec746ccd7a2484f7c76e2914b5c0",class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":e},onClick:()=>z(this.input)},o("slot",{key:"8facf47db9e586d88ec222feeb973c220dd583b0",name:"input",onSlotchange:()=>this.setInput()}),e&&o("gux-form-field-input-clear-button",{key:"de94c88e51c29f0f237f12b033b13fed44c34289",onClick:()=>f(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),o(w,{key:"c92070f61573177f3b516eafa60f579eeaca0a05",show:this.hasError},o("slot",{key:"a3aece9dae599c68abedb58ed692f5d0fafdac4b",name:"error"})),o(y,{key:"0bbc8260400e4c3b0b9bffbca5526a931c3416b2",show:!this.hasError&&this.hasHelp},o("slot",{key:"0dbba9e894f1653ac359293d2a6e109828ca63ea",name:"help"}))))}get variant(){const e=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${e}`}setInput(){this.input=h(this.root,'input[type="number"][slot="input"]'),this.hasContent=c(this.input),p(this.input),this.input.addEventListener("input",(()=>{this.hasContent=c(this.input)})),this.disabled=n(this.input),this.required=this.input.required,this.disabledObserver=l(this.input,(e=>{this.disabled=e})),this.requiredObserver=d(this.input,(e=>{this.required=e})),g(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=b(this.label,this.labelPosition)}renderStepButtons(e,t,i){return o("div",{class:"gux-step-buttons-container"},o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("increment"),disabled:i,onClick:()=>this.stepUp(e)},o("gux-icon",{"icon-name":"custom/chevron-up-small-regular",decorative:!0})),o("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:t("decrement"),disabled:i,onClick:()=>this.stepDown(e)},o("gux-icon",{"icon-name":"custom/chevron-down-small-regular",decorative:!0})))}stepDown(e){""===e.value?m(e,e.min||"0",!1):(e.stepDown(),this.simulateNativeInputAndChangeEvents(e))}stepUp(e){""===e.value?m(e,e.min||"0",!1):(e.stepUp(),this.simulateNativeInputAndChangeEvents(e))}simulateNativeInputAndChangeEvents(e){v(e,"input"),v(e,"change")}static get delegatesFocus(){return!0}get root(){return i(this)}};(function(e,t,o,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(a=(s<3?r(a):s>3?r(t,o,a):r(t,o))||a);s>3&&a&&Object.defineProperty(t,o,a)})([u({childList:!0,subtree:!0})],_.prototype,"onMutation",null),_.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, --gse-ui-icon-small-size);min-height:var(--gse-ui-icon-size-sm, --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)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;padding-bottom:0;overflow:hidden;font-size:var(--gse-ui-formControl-input-contentText-fontSize);text-align:right;text-overflow:ellipsis;background-color:var(--gse-ui-formControl-input-backgroundColor);border:none;outline:none}::slotted(input)::placeholder{color:var(--gse-ui-formControl-input-placeholderColor);opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;width:100%}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-formControl-input-gap);place-content:stretch center;align-items:center;align-self:auto;order:0;width:100%;height:var(--gse-ui-formControl-input-textfield-height);padding:var(--gse-ui-formControl-input-padding);font-family:var(--gse-ui-formControl-input-contentText-fontFamily);font-size:var(--gse-ui-formControl-input-contentText-fontSize);line-height:var(--gse-ui-formControl-input-contentText-lineHeight);color:var(--gse-ui-formControl-input-populatedColor);cursor:text;background-color:var(--gse-ui-formControl-input-backgroundColor);background-image:none;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) var(--gse-ui-formControl-input-default-border-color);border-radius:var(--gse-ui-formControl-input-borderRadius)}.gux-input-and-error-container .gux-input .gux-input-container.gux-disabled{cursor:default;opacity:var(--gse-ui-formControl-input-disabled-opacity)}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border:var(--gse-ui-formControl-input-active-border-width) var(--gse-ui-formControl-input-active-border-style) var(--gse-ui-formControl-input-active-border-color);border-radius:var(--gse-ui-formControl-focusRing-borderRadius);outline:var(--gse-ui-formControl-input-focus-border-width) var(--gse-ui-formControl-input-focus-border-style) var(--gse-ui-formControl-input-focus-border-color);outline-offset:var(--gse-semantic-focusRing-offset)}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}.gux-step-buttons-container{flex:0 1 14px;align-self:auto;order:0;margin-left:var(--gse-ui-formControl-spinButton-gap)}.gux-step-buttons-container .gux-step-button{display:flex;flex:0 1 auto;align-items:center;align-self:auto;justify-content:center;order:0;padding:0;color:var(--gse-ui-formControl-input-inputIcon-defaultColor);background:transparent;border:var(--gse-ui-formControl-input-default-border-width) var(--gse-ui-formControl-input-default-border-style) transparent}.gux-step-buttons-container .gux-step-button:not(:disabled):focus-visible,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{cursor:pointer;border:var(--gse-ui-formControl-input-hover-border-width) var(--gse-ui-formControl-input-hover-border-style) var(--gse-ui-formControl-input-hover-border-color)}.gux-step-buttons-container .gux-step-button gux-icon{flex:0 0 auto;width:14px;height:14px}";const H=class{constructor(t){e(this,t),this.goToPage=r(this,"goToPage",7),this.isOpen=!1,this.totalPages=void 0}handleKeyDown(e){const t=e.composedPath();switch(e.key){case"Escape":this.isOpen=!1,this.ellipsisButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":t.includes(this.ellipsisButton)&&(e.preventDefault(),this.isOpen=!0,this.focusInputElement())}}handleKeyup(e){if(" "===e.key)e.composedPath().includes(this.ellipsisButton)&&(this.isOpen=!0,this.focusInputElement())}toggle(){this.isOpen=!this.isOpen,this.isOpen&&this.focusInputElement()}onClickOutside(){this.isOpen=!1}focusInputElement(){T((()=>{this.inputElement.focus()}))}applyInputListener(){var e;null===(e=this.inputElement)||void 0===e||e.addEventListener("keydown",(e=>{const t=e.target.value.trim();"Enter"!=e.key&&" "!=e.key||(""==t?e.preventDefault():(e.preventDefault(),this.goToPage.emit(e.target.value),this.isOpen=!1))}))}async componentWillLoad(){this.i18n=await a(this.root,S,"gux-pagination-buttons"),j(this.root)}componentDidLoad(){this.applyInputListener()}render(){return o(s,{key:"d67656590fd27501ecb370e04ac52c664f1dd3ce"},o("button",{key:"31d3e0d7ab9cd9dd62dc2042317570d28844e61f",id:"popover-target",type:"button",ref:e=>this.ellipsisButton=e,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},o("gux-icon",{key:"f7d035afd8a59b8cefc9135d7f61d10822fa92cd",screenreaderText:this.i18n("goToPage"),"icon-name":"fa/ellipsis-regular"})),o("gux-tooltip",{key:"2260d37618cef3d5f6067d25ad7d73a6371f5049",for:"popover-target"},o("div",{key:"4798e5a26335091f2672b63a2f5b4457091ab139",slot:"content"},this.i18n("goToPage"))),o("gux-popover",{key:"cf9998908d7b833a05f7adf123f38da37a6b7a4c","is-open":this.isOpen,for:"popover-target"},o("span",{key:"4e80deda4ccfe376eafbae647f3fbe47cc86d2e9",slot:"title"},this.i18n("goToPage")),o("gux-form-field-number",{key:"567095f938f1573e1d72e04d4450a9107ce69af6"},o("input",{key:"e069dec55bae481a4d72b584aca7a90c116b9333",slot:"input",type:"number",ref:e=>this.inputElement=e,min:"1",max:this.totalPages,value:"1",onKeyDown:e=>["e","E","+","-","."].includes(e.key)&&e.preventDefault()}),o("label",{key:"d9ddc391f609511b1dbca8d6897132eed61e5cb5",slot:"label"}))))}get root(){return i(this)}};(function(e,t,o,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(a=(s<3?r(a):s>3?r(t,o,a):r(t,o))||a);s>3&&a&&Object.defineProperty(t,o,a)})([R({triggerEvents:"mousedown"})],H.prototype,"onClickOutside",null),H.style="button{color:var(--gse-ui-button-ghost-default-foregroundColor);cursor:pointer;background:none;border:none}button:hover{color:var(--gse-ui-button-ghost-hover-foregroundColor)}button:focus-visible{border-radius:calc(var(--gse-semantic-focusRing-cornerRadius) - var(--gse-semantic-focusRing-offset));outline:var(--gse-semantic-focusRing-width) solid var(--gse-semantic-color-focus, --gse-ui-color-focus);outline-offset:var(--gse-semantic-focusRing-offset)}button gux-icon{width:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size);height:var(--gse-ui-icon-size-sm, --gse-ui-icon-small-size);padding-top:4px}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}";const K=class{constructor(t){e(this,t),this.guxdismiss=r(this,"guxdismiss",7),this.for=void 0,this.position="bottom",this.displayDismissButton=void 0,this.closeOnClickOutside=!1,this.isOpen=!1}onKeyDown(e){"Escape"===e.key&&this.dismiss()}onFocusout(e){!this.closeOnClickOutside&&this.displayDismissButton||e.relatedTarget&&!this.root.contains(e.relatedTarget)&&this.dismiss()}checkForClickOutside(e){const t=e.composedPath(),o=L(this.root,this.for),i=t.includes(o);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||i||this.dismiss()}get titleSlot(){return P(this.root,"title")}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=F(L(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const e=L(this.root,this.for);this.popupElement&&e&&O(e,this.popupElement,{placement:this.position,middleware:[D(7),I(),E(),B({element:this.arrowElement,padding:16})]}).then((({x:e,y:t,middlewareData:o,placement:i})=>{Object.assign(this.popupElement.style,{left:`${e}px`,top:`${t}px`});const r=i.split("-")[0],s={top:"bottom",right:"left",bottom:"top",left:"right"}[r],a={top:0,right:90,bottom:180,left:-90}[r],n="left"===r||"right"===r?15:13;if(o.arrow){let e=o.arrow.x;const t=o.arrow.y;"left"!==r&&"right"!==r||(e+=4),this.popupElement.setAttribute("data-placement",i),Object.assign(this.arrowElement.style,{left:null!=e?`${e}px`:"",top:null!=t?`${t}px`:"",right:"",bottom:"",[s]:-n+"px",transform:`rotate(${a}deg)`})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){j(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}renderDismissButton(){if(this.displayDismissButton)return o("gux-dismiss-button",{onClick:this.dismiss.bind(this),position:"inherit"})}render(){return o("div",{key:"11b255fd5fde0289e031a87b9c73a99c38d6454e",ref:e=>this.popupElement=e,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},o("div",{key:"b83972a6509b0f6cbfe5d87d7b055a3061ff4f9c",ref:e=>this.arrowElement=e,class:"gux-arrow"},o("div",{key:"745b6208ce6d44dd8e99ad52e66b6c3f02053596",class:"gux-arrow-caret"})),o("div",{key:"f41ba145dc0c95de2f1cf8df0dab470098124703",class:{"gux-popover-header":Boolean(this.titleSlot)}},o("slot",{key:"33bb5d4901bc3df83add552affe43f593d11d660",name:"title"}),this.renderDismissButton()),o("div",{key:"4a0ab32e8be3bc3e7acc64b2a2ddd1a191ba7ce2",class:"gux-popover-content"},o("slot",{key:"2390fb874bb70060ea69f9e222111b1545559c15"})))}get root(){return i(this)}};(function(e,t,o,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(a=(s<3?r(a):s>3?r(t,o,a):r(t,o))||a);s>3&&a&&Object.defineProperty(t,o,a)})([R({triggerEvents:"mousedown"})],K.prototype,"checkForClickOutside",null),K.style=".gux-popover-wrapper{position:absolute;top:0;left:0;z-index:var(--gse-semantic-zIndex-popover);display:inline-block;min-width:280px;padding:var(--gse-ui-popover-gap);background-color:var(--gse-ui-popover-backgroundColor);border-radius:var(--gse-ui-popover-borderRadius);box-shadow:var(--gse-ui-popover-boxShadow-x, --gse-ui-popover-boxShadow-offsetX) var(--gse-ui-popover-boxShadow-y, --gse-ui-popover-boxShadow-offsetY) var(--gse-ui-popover-boxShadow-blur) var(--gse-ui-popover-boxShadow-spread) var(--gse-ui-tooltip-boxShadow-color)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;width:var(--gse-ui-popover-anchor-width);height:var(--gse-ui-popover-anchor-height);padding-bottom:4px;overflow:hidden}.gux-popover-wrapper .gux-arrow-caret{width:0;height:0;filter:drop-shadow(var(--gse-ui-popover-boxShadow-x, --gse-ui-popover-boxShadow-offsetX) var(--gse-ui-popover-boxShadow-y, --gse-ui-popover-boxShadow-offsetY) calc(var(--gse-ui-popover-boxShadow-blur) / 2) var(--gse-ui-tooltip-boxShadow-color));border-top:calc(var(--gse-ui-popover-anchor-width) / 2) solid var(--gse-ui-popover-backgroundColor);border-right:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent;border-left:calc(var(--gse-ui-popover-anchor-width) / 2) solid transparent}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;place-content:center space-between;align-items:center;padding-bottom:var(--gse-ui-popover-gap);font-family:var(--gse-ui-popover-title-text-fontFamily);font-size:var(--gse-ui-popover-title-text-fontSize);font-weight:var(--gse-ui-popover-title-text-fontWeight);line-height:var(--gse-ui-popover-title-text-lineHeight);color:var(--gse-ui-popover-headerColor)}.gux-popover-wrapper gux-dismiss-button{float:right}";export{_ as gux_form_field_number,H as gux_pagination_ellipsis_button,K as gux_popover}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{h as e,r,g as s}from"./p-6e010355.js";import{t as i}from"./p-b3aa1c65.js";import{a}from"./p-8eaf8caf.js";const t=2*Math.PI*22;function n(e,r){return!(isNaN(e)||isNaN(r)||e>r||e<0||0===r)}const o=({value:r,max:s,screenreaderText:i})=>e("div",{role:"progressbar","aria-valuenow":r,"aria-valuemin":"0","aria-valuemax":s,"aria-label":i},e("svg",{class:"gux-svg-container",viewBox:"0 0 48 48",role:"presentation"},e("circle",{cx:"50%",cy:"50%",r:22,class:"gux-static-circle"}),e("circle",{cx:"50%",cy:"50%",r:22,class:"gux-dynamic-circle","stroke-dashoffset":t*(1-r/s),"stroke-dasharray":t,"stroke-linecap":"round"}),e("text",{x:"50%",y:"50%","dominant-baseline":"central",class:"gux-percentage"},function(e,r){return`${Math.round((e+Number.EPSILON)/r*100)}%`}(r,s)))),g=({screenreaderText:r})=>e("gux-radial-loading",{"screenreader-text":r,context:"modal"}),c=class{constructor(e){r(this,e),this.value=void 0,this.max=100,this.screenreaderText=""}componentWillLoad(){i(this.root)}componentDidLoad(){!this.screenreaderText&&n(this.value,this.max)&&a(this.root,"No screenreader-text provided. Provide a localized screenreader-text property for the component.")}render(){return n(this.value,this.max)?e(o,{value:this.value,max:this.max,screenreaderText:this.screenreaderText}):e(g,{screenreaderText:this.screenreaderText})}get root(){return s(this)}};c.style=":host{display:inline-block}div[role=progressbar] .gux-svg-container{display:block;width:calc(var(--gse-ui-progressAndLoading-spinner-large) * 1px);height:calc(var(--gse-ui-progressAndLoading-spinner-large) * 1px)}div[role=progressbar] .gux-svg-container .gux-dynamic-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-foreground);stroke-width:4;transform:rotate(-90deg);transform-origin:50% 50%}div[role=progressbar] .gux-svg-container .gux-static-circle{fill:none;stroke:var(--gse-ui-progressAndLoading-spinner-base);stroke-width:4}div[role=progressbar] .gux-svg-container .gux-percentage{font-family:var(--gse-ui-progressAndLoading-spinner-text-fontFamily);font-size:var(--gse-ui-progressAndLoading-spinner-text-fontSize);font-weight:var(--gse-ui-progressAndLoading-spinner-text-fontWeight);line-height:var(--gse-ui-progressAndLoading-spinner-text-lineHeight);text-anchor:middle;fill:var(--gse-ui-progressAndLoading-textColor)}";export{c as gux_radial_progress}
|