genesys-spark-components 4.0.0-beta.44 → 4.0.0-beta.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{floating-ui.dom.esm-793074c6.js → floating-ui.dom.esm-cae393e0.js} +22 -9
- package/dist/cjs/genesys-webcomponents.cjs.js +2 -2
- package/dist/cjs/{get-valid-timezone-5a9231d3.js → get-valid-timezone-7bb7bdc6.js} +1 -1
- package/dist/cjs/gux-accordion-section.cjs.entry.js +2 -2
- package/dist/cjs/gux-accordion.cjs.entry.js +2 -2
- package/dist/cjs/gux-action-button.cjs.entry.js +4 -4
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +4 -4
- package/dist/cjs/gux-all-row-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-announce-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-badge.cjs.entry.js +3 -3
- package/dist/cjs/gux-blank-state.cjs.entry.js +2 -2
- package/dist/cjs/gux-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +3 -3
- package/dist/cjs/gux-button-multi.cjs.entry.js +3 -3
- package/dist/cjs/gux-button-slot.cjs.entry.js +2 -2
- package/dist/cjs/gux-button.cjs.entry.js +2 -2
- package/dist/cjs/gux-calendar-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-calendar.cjs.entry.js +3 -3
- package/dist/cjs/gux-card.cjs.entry.js +2 -2
- package/dist/cjs/gux-column-manager-item.cjs.entry.js +2 -2
- package/dist/cjs/gux-column-manager.cjs.entry.js +3 -3
- package/dist/cjs/gux-content-search.cjs.entry.js +3 -3
- package/dist/cjs/gux-context-menu.cjs.entry.js +4 -4
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +3 -3
- package/dist/cjs/gux-create-option.cjs.entry.js +2 -2
- package/dist/cjs/gux-date-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-datepicker.cjs.entry.js +5 -5
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +3 -3
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +3 -3
- package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +2 -2
- package/dist/cjs/gux-dropdown-multi.cjs.entry.js +5 -5
- package/dist/cjs/gux-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +5 -5
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-color.cjs.entry.js +5 -5
- package/dist/cjs/{gux-form-field-container-48871f4b.js → gux-form-field-container-987b5820.js} +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +6 -6
- package/dist/cjs/{gux-form-field-fieldset-container-c0d39bed.js → gux-form-field-fieldset-container-af6f096e.js} +1 -1
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +3 -3
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +8 -8
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +4 -4
- package/dist/cjs/gux-form-field-range.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-search.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-select.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +5 -5
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +6 -6
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +6 -6
- package/dist/cjs/{gux-form-field.service-704c78c2.js → gux-form-field.service-d9598ea6.js} +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +2 -2
- package/dist/cjs/gux-inline-alert.cjs.entry.js +3 -3
- package/dist/cjs/gux-list-divider.cjs.entry.js +1 -1
- package/dist/cjs/gux-list-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +2 -2
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +3 -3
- package/dist/cjs/gux-loading-message.cjs.entry.js +2 -2
- package/dist/cjs/gux-menu-option.cjs.entry.js +1 -1
- package/dist/cjs/gux-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +2 -2
- package/dist/cjs/gux-month-calendar.cjs.entry.js +2 -2
- package/dist/cjs/gux-month-list_2.cjs.entry.js +1 -1
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-option-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-option-multi.cjs.entry.js +2 -2
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-buttons-legacy_3.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +3 -3
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-pagination.cjs.entry.js +2 -2
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +223 -216
- package/dist/cjs/gux-popover-list.cjs.entry.js +4 -4
- package/dist/cjs/gux-popup.cjs.entry.js +2 -2
- package/dist/cjs/gux-radial-loading.cjs.entry.js +3 -3
- package/dist/cjs/gux-radial-progress.cjs.entry.js +2 -2
- package/dist/cjs/gux-rating.cjs.entry.js +2 -2
- package/dist/cjs/gux-region-icon.cjs.entry.js +2 -2
- package/dist/cjs/gux-row-select.cjs.entry.js +2 -2
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +2 -2
- package/dist/cjs/gux-segmented-control-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-skip-navigation-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +3 -3
- package/dist/cjs/gux-sort-control.cjs.entry.js +3 -3
- package/dist/cjs/gux-submenu.cjs.entry.js +2 -2
- package/dist/cjs/gux-switch-item.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch-legacy.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +3 -3
- package/dist/cjs/gux-tab-advanced-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tab-list.cjs.entry.js +3 -3
- package/dist/cjs/gux-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/gux-tab.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-select-menu.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +3 -3
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +2 -2
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +4 -4
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +4 -4
- package/dist/cjs/gux-table.cjs.entry.js +3 -3
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +2 -2
- package/dist/cjs/gux-tabs.cjs.entry.js +2 -2
- package/dist/cjs/gux-tag.cjs.entry.js +3 -3
- package/dist/cjs/gux-text-highlight.cjs.entry.js +2 -2
- package/dist/cjs/gux-time-beta.cjs.entry.js +4 -4
- package/dist/cjs/gux-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +3 -3
- package/dist/cjs/gux-toast.cjs.entry.js +2 -2
- package/dist/cjs/gux-toggle-slider.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +3 -3
- package/dist/cjs/gux-tooltip-title.cjs.entry.js +2 -2
- package/dist/cjs/gux-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/gux-truncate.cjs.entry.js +3 -3
- package/dist/cjs/{index-39160f18.js → index-75c9f0d9.js} +142 -57
- package/dist/cjs/{index-ff762de3.js → index-788d733b.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{on-click-outside-a7d87c91.js → on-click-outside-3c0f8816.js} +1 -1
- package/dist/cjs/{on-mutation-f396cc0e.js → on-mutation-ec5d23bd.js} +1 -1
- package/dist/cjs/{on-resize-b4982908.js → on-resize-a136fc7f.js} +1 -1
- package/dist/cjs/{usage-c047742d.js → usage-c3a491a4.js} +25 -24
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/beta/gux-phone-input/services/region-map.service.js +3 -1
- package/dist/collection/components/stable/gux-accordion/gux-accordion-section/gux-accordion-section.css +7 -0
- package/dist/collection/components/stable/gux-blank-state/tests/gux-blank-state.spec.js +0 -4
- package/dist/collection/components/stable/gux-content-search/tests/gux-content-search.spec.js +0 -4
- package/dist/collection/components/stable/gux-copy-to-clipboard/tests/gux-copy-to-clipboard.spec.js +0 -4
- package/dist/collection/components/stable/gux-pagination/gux-pagination-items-per-page/tests/gux-pagination-items-per-page.spec.js +0 -4
- package/dist/collection/components/stable/gux-popover/gux-popover.js +1 -1
- package/dist/collection/components/stable/gux-popover/tests/gux-popover.spec.js +0 -4
- package/dist/collection/components/stable/gux-popover-list/gux-popover-list.js +1 -1
- package/dist/collection/components/stable/gux-popover-list/tests/gux-popover-list.spec.js +0 -4
- package/dist/collection/components/stable/gux-popup/tests/gux-popup.spec.js +0 -4
- package/dist/collection/components/stable/gux-rating/tests/gux-rating.spec.js +0 -3
- package/dist/collection/components/stable/gux-table/gux-sort-control/tests/gux-sort-control.spec.js +0 -4
- package/dist/collection/components/stable/gux-table/tests/gux-table.spec.js +0 -4
- package/dist/collection/components/stable/gux-table-toolbar/tests/gux-table-toolbar.spec.js +0 -4
- package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +1 -1
- package/dist/collection/components/stable/gux-truncate/tests/gux-truncate.spec.js +0 -4
- package/dist/collection/test/specTestUtils.js +2 -0
- package/dist/deploy-info.json +3 -3
- package/dist/esm/{floating-ui.dom.esm-813bb04f.js → floating-ui.dom.esm-393a5c50.js} +22 -9
- package/dist/esm/genesys-webcomponents.js +3 -3
- package/dist/esm/{get-valid-timezone-3781bfa2.js → get-valid-timezone-1cf3a777.js} +1 -1
- package/dist/esm/gux-accordion-section.entry.js +2 -2
- package/dist/esm/gux-accordion.entry.js +2 -2
- package/dist/esm/gux-action-button.entry.js +4 -4
- package/dist/esm/gux-action-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +4 -4
- package/dist/esm/gux-all-row-select.entry.js +2 -2
- package/dist/esm/gux-announce-beta.entry.js +2 -2
- package/dist/esm/gux-badge.entry.js +3 -3
- package/dist/esm/gux-blank-state.entry.js +2 -2
- package/dist/esm/gux-breadcrumb-item.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +3 -3
- package/dist/esm/gux-button-multi.entry.js +3 -3
- package/dist/esm/gux-button-slot.entry.js +2 -2
- package/dist/esm/gux-button.entry.js +2 -2
- package/dist/esm/gux-calendar-beta.entry.js +2 -2
- package/dist/esm/gux-calendar.entry.js +3 -3
- package/dist/esm/gux-card.entry.js +2 -2
- package/dist/esm/gux-column-manager-item.entry.js +2 -2
- package/dist/esm/gux-column-manager.entry.js +3 -3
- package/dist/esm/gux-content-search.entry.js +3 -3
- package/dist/esm/gux-context-menu.entry.js +4 -4
- package/dist/esm/gux-copy-to-clipboard.entry.js +3 -3
- package/dist/esm/gux-create-option.entry.js +2 -2
- package/dist/esm/gux-date-beta.entry.js +4 -4
- package/dist/esm/gux-date-time-beta.entry.js +4 -4
- package/dist/esm/gux-datepicker.entry.js +5 -5
- package/dist/esm/gux-disclosure-button-legacy.entry.js +3 -3
- package/dist/esm/gux-dismiss-button.entry.js +3 -3
- package/dist/esm/gux-dropdown-multi-tag.entry.js +2 -2
- package/dist/esm/gux-dropdown-multi.entry.js +5 -5
- package/dist/esm/gux-dropdown-option.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +5 -5
- package/dist/esm/gux-flyout-menu.entry.js +3 -3
- package/dist/esm/gux-form-field-checkbox.entry.js +4 -4
- package/dist/esm/gux-form-field-color.entry.js +5 -5
- package/dist/esm/{gux-form-field-container-0628b63c.js → gux-form-field-container-ac3eb96d.js} +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +6 -6
- package/dist/esm/{gux-form-field-fieldset-container-863690e1.js → gux-form-field-fieldset-container-050466a8.js} +1 -1
- package/dist/esm/gux-form-field-input-clear-button.entry.js +3 -3
- package/dist/esm/gux-form-field-number_3.entry.js +8 -8
- package/dist/esm/gux-form-field-phone.entry.js +6 -6
- package/dist/esm/gux-form-field-radio.entry.js +4 -4
- package/dist/esm/gux-form-field-range.entry.js +5 -5
- package/dist/esm/gux-form-field-search.entry.js +5 -5
- package/dist/esm/gux-form-field-select.entry.js +5 -5
- package/dist/esm/gux-form-field-text-like.entry.js +5 -5
- package/dist/esm/gux-form-field-textarea.entry.js +5 -5
- package/dist/esm/gux-form-field-time-picker.entry.js +6 -6
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +6 -6
- package/dist/esm/{gux-form-field.service-1b918b11.js → gux-form-field.service-6bc072f5.js} +1 -1
- package/dist/esm/gux-icon.entry.js +2 -2
- package/dist/esm/gux-inline-alert.entry.js +3 -3
- package/dist/esm/gux-list-divider.entry.js +1 -1
- package/dist/esm/gux-list-item.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +2 -2
- package/dist/esm/gux-listbox-multi.entry.js +3 -3
- package/dist/esm/gux-loading-message.entry.js +2 -2
- package/dist/esm/gux-menu-option.entry.js +1 -1
- package/dist/esm/gux-menu.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +2 -2
- package/dist/esm/gux-month-calendar.entry.js +2 -2
- package/dist/esm/gux-month-list_2.entry.js +1 -1
- package/dist/esm/gux-month-picker-beta.entry.js +4 -4
- package/dist/esm/gux-notification-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-option-icon.entry.js +1 -1
- package/dist/esm/gux-option-multi.entry.js +2 -2
- package/dist/esm/gux-page-loading-spinner.entry.js +2 -2
- package/dist/esm/gux-pagination-buttons-legacy_3.entry.js +2 -2
- package/dist/esm/gux-pagination-buttons_3.entry.js +2 -2
- package/dist/esm/gux-pagination-cursor.entry.js +3 -3
- package/dist/esm/gux-pagination-legacy.entry.js +2 -2
- package/dist/esm/gux-pagination.entry.js +2 -2
- package/dist/esm/gux-phone-input-beta.entry.js +223 -216
- package/dist/esm/gux-popover-list.entry.js +4 -4
- package/dist/esm/gux-popup.entry.js +2 -2
- package/dist/esm/gux-radial-loading.entry.js +3 -3
- package/dist/esm/gux-radial-progress.entry.js +2 -2
- package/dist/esm/gux-rating.entry.js +2 -2
- package/dist/esm/gux-region-icon.entry.js +2 -2
- package/dist/esm/gux-row-select.entry.js +2 -2
- package/dist/esm/gux-screen-reader-beta.entry.js +2 -2
- package/dist/esm/gux-segmented-control-beta.entry.js +2 -2
- package/dist/esm/gux-segmented-control-item.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +2 -2
- package/dist/esm/gux-skip-navigation-item.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +3 -3
- package/dist/esm/gux-sort-control.entry.js +3 -3
- package/dist/esm/gux-submenu.entry.js +2 -2
- package/dist/esm/gux-switch-item.entry.js +1 -1
- package/dist/esm/gux-switch-legacy.entry.js +2 -2
- package/dist/esm/gux-tab-advanced-list.entry.js +3 -3
- package/dist/esm/gux-tab-advanced-panel.entry.js +1 -1
- package/dist/esm/gux-tab-advanced.entry.js +2 -2
- package/dist/esm/gux-tab-list.entry.js +3 -3
- package/dist/esm/gux-tab-panel.entry.js +1 -1
- package/dist/esm/gux-tab.entry.js +1 -1
- package/dist/esm/gux-table-select-menu.entry.js +2 -2
- package/dist/esm/gux-table-toolbar-action.entry.js +3 -3
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +2 -2
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +4 -4
- package/dist/esm/gux-table-toolbar.entry.js +4 -4
- package/dist/esm/gux-table.entry.js +3 -3
- package/dist/esm/gux-tabs-advanced.entry.js +2 -2
- package/dist/esm/gux-tabs.entry.js +2 -2
- package/dist/esm/gux-tag.entry.js +3 -3
- package/dist/esm/gux-text-highlight.entry.js +2 -2
- package/dist/esm/gux-time-beta.entry.js +4 -4
- package/dist/esm/gux-time-picker.entry.js +4 -4
- package/dist/esm/gux-time-zone-picker-beta.entry.js +3 -3
- package/dist/esm/gux-toast.entry.js +2 -2
- package/dist/esm/gux-toggle-slider.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +3 -3
- package/dist/esm/gux-tooltip-title.entry.js +2 -2
- package/dist/esm/gux-tooltip.entry.js +3 -3
- package/dist/esm/gux-truncate.entry.js +3 -3
- package/dist/esm/{index-a0eec33a.js → index-39e65a0a.js} +142 -57
- package/dist/esm/{index-e5ccc024.js → index-df729b6a.js} +2 -2
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{on-click-outside-e696f632.js → on-click-outside-f15c5ac7.js} +1 -1
- package/dist/esm/{on-mutation-c1be3c74.js → on-mutation-c570b3ed.js} +1 -1
- package/dist/esm/{on-resize-c9e31879.js → on-resize-e2132936.js} +1 -1
- package/dist/esm/{usage-bd7f874e.js → usage-82907a65.js} +25 -24
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-61b492fd.entry.js → p-037a8164.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-977c732e.entry.js → p-09a9da63.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0a0752be.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b7ebf185.entry.js → p-0a460241.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bacf2b52.entry.js → p-0a557023.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b571f977.entry.js → p-139161c6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8734efef.entry.js → p-15d3baba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d57a7b00.entry.js → p-16bb762b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c9788b0b.entry.js → p-186362b5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-96e50323.entry.js → p-1b1b15b4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e9c3fdc1.entry.js → p-1b50175e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-1d35044a.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-05102bf4.entry.js → p-253f1213.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e71c94cc.entry.js → p-2607abdb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-456aeb14.entry.js → p-291a53ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b968dc26.entry.js → p-2a7519cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9383fa8e.js → p-2b468e4b.js} +1 -1
- package/dist/genesys-webcomponents/p-2ba7be7a.js +1 -0
- package/dist/genesys-webcomponents/{p-4338a137.entry.js → p-2c0fec5b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-37a6cf93.entry.js → p-2d34f76f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4585ee18.entry.js → p-3198ecce.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ba0ffd05.entry.js → p-31bd23d5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-93d5c18d.entry.js → p-35bff387.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7e22896f.entry.js → p-382f3127.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0da4d182.entry.js → p-39829b4e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-65cf4c58.entry.js → p-3bfb0bd6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-88e946b7.entry.js → p-3ec2684f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3fe16f20.entry.js → p-3fe2d366.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-15e52200.entry.js → p-44aca6cf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-29bdf7cb.entry.js → p-4599ed40.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4e3021de.entry.js → p-4eb5ee9d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-997059fc.entry.js → p-501079c3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2e2015da.entry.js → p-530395d9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8e607450.entry.js → p-537ee507.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3c1dae0b.entry.js → p-55d8bebc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c281b882.entry.js → p-5646d3e7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-550c0768.entry.js → p-5d48ef22.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-22eda19a.entry.js → p-5e2db611.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a96bc06c.entry.js → p-5e8f4d45.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3bf012bf.entry.js → p-65f12043.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-48cc8cf3.entry.js → p-6d0df7b9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-69d045af.entry.js → p-71802b6c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3284393b.entry.js → p-731229ce.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8a5f5e24.entry.js → p-7344d05f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4281155a.js → p-760e43cf.js} +1 -1
- package/dist/genesys-webcomponents/{p-e121f417.entry.js → p-774043ee.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4a579180.entry.js → p-7de6ca24.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9894c33e.entry.js → p-80512ea5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fd5e59f5.js → p-8324a0ac.js} +1 -1
- package/dist/genesys-webcomponents/{p-0ee87d12.entry.js → p-85190e50.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d07d1ea8.entry.js → p-8822579a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-78bed909.entry.js → p-8a529f84.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-87c75c0c.entry.js → p-8b213ee3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-06dd9db6.entry.js → p-8da77afa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2f6c2964.entry.js → p-92923aed.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4e890707.entry.js → p-9430252e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d804653a.entry.js → p-9431d863.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-252b2f3e.entry.js → p-944ebc5c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-acf34fec.entry.js → p-95d9dd21.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b1baefda.entry.js → p-964c6dae.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-81be94f1.entry.js → p-9da6900d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bf53d949.entry.js → p-9dc0570d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-41937598.entry.js → p-a1b7e099.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-39ff71f5.entry.js → p-a369c6cc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2a7f507d.entry.js → p-a44da61b.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a69a9910.js +1 -0
- package/dist/genesys-webcomponents/{p-e653b8d2.entry.js → p-a75f5094.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-478dd1ab.entry.js → p-a937eed2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ac85575f.entry.js → p-acaf927b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-351fffa0.entry.js → p-acb51582.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e0155299.entry.js → p-ae0dd216.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c183e212.entry.js → p-af30bcdf.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a95e7362.entry.js → p-afbf776e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b1ebae13.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-6222f166.entry.js → p-b29c7e72.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ff40c52.entry.js → p-b3f8bae5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6ebb9956.entry.js → p-b433daf1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b56fd34a.entry.js → p-b56bb677.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c5919f8b.entry.js → p-b87a4bc1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6d04e8cd.entry.js → p-bdc6ca65.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-74f3983c.entry.js → p-be5b66c4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1d923312.entry.js → p-c0074d04.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c1650aee.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-7e451037.entry.js → p-c3a04a6f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-51940542.entry.js → p-c3cd4db2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8c362857.js → p-c49670a7.js} +1 -1
- package/dist/genesys-webcomponents/{p-7cf47ab1.entry.js → p-c7246368.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c4f9d3c7.entry.js → p-c79b672c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7644382b.entry.js → p-c8033f35.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cc926821.entry.js → p-c9741796.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-88bcb21f.entry.js → p-cce0882e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7a6236bb.entry.js → p-cdd065c6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1b66b218.entry.js → p-d091861f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b48cf7fd.entry.js → p-d28a97a4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d967c7e7.entry.js → p-d3b1f679.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d453c288.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b80c59ad.entry.js → p-d5699513.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d6edbaeb.js +1 -0
- package/dist/genesys-webcomponents/{p-fabf5b32.entry.js → p-d850ba66.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5a9d8b61.entry.js → p-dbb72837.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b2660d51.entry.js → p-dce938df.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-469c3d5c.entry.js → p-dd25e9aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-deca7631.js +2 -0
- package/dist/genesys-webcomponents/{p-80d901b2.entry.js → p-e09b104f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5d15381f.entry.js → p-e1a289a7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-fc6593c8.entry.js → p-e458df40.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-72746e25.entry.js → p-e522bb12.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a3bc3236.js → p-e5766b80.js} +1 -1
- package/dist/genesys-webcomponents/{p-b6b983a5.entry.js → p-eca7b2c0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ea496c97.entry.js → p-ee401ac5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0848fc04.entry.js → p-f00aae03.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7af58473.entry.js → p-f03b7352.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b0451880.entry.js → p-f092a3b7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-54c88fd6.entry.js → p-f1c1c4fe.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-69a49ab3.entry.js → p-f2a12de0.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-f3521f3e.js +1 -0
- package/dist/genesys-webcomponents/{p-a7341016.entry.js → p-f35502ee.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-32a36f06.entry.js → p-f41e3c3a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bd29829e.entry.js → p-f70f5608.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-cd61dfee.entry.js → p-f8299225.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7a100b8c.js → p-f9c65a99.js} +1 -1
- package/dist/genesys-webcomponents/{p-511eb62e.entry.js → p-fb25f78d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e06674e3.entry.js → p-fd416b7c.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +25 -24
- package/dist/genesys-webcomponents/p-3d745319.js +0 -1
- package/dist/genesys-webcomponents/p-43522550.entry.js +0 -1
- package/dist/genesys-webcomponents/p-52e27c60.js +0 -1
- package/dist/genesys-webcomponents/p-5463e134.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8801741a.js +0 -1
- package/dist/genesys-webcomponents/p-8890c37a.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a5937ee9.js +0 -1
- package/dist/genesys-webcomponents/p-b4d7b703.entry.js +0 -1
- package/dist/genesys-webcomponents/p-ed724d66.js +0 -2
- package/dist/genesys-webcomponents/p-ee2ab42a.entry.js +0 -1
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as t,H as s,g as i}from"./p-
|
1
|
+
import{r as e,h as t,H as s,g as i}from"./p-deca7631.js";import{a as o}from"./p-ffaadf62.js";import{e as n}from"./p-dbb0ac25.js";import{r as a}from"./p-3ea0d493.js";import{b as r}from"./p-2ba7be7a.js";import{t as u}from"./p-408d5857.js";import"./p-0962dd7a.js";const l=class{constructor(t){e(this,t),this.dropdownOptionsButtonId=a("gux-table-select-menu"),this.hasSelectMenuOptions=!1,this.dropdownDisabled=!1,this.popoverHidden=!0}focusFirstItemInPopupList(){const e=this.root.querySelector("gux-list");o((()=>{null==e||e.guxFocusFirstItem()}))}async componentWillLoad(){this.hasSelectMenuOptions=!!this.root.querySelector('[slot="select-menu-options"]'),this.i18n=await r(this.root,u,"gux-table")}onKeydown(e){var t;switch(e.key){case"ArrowDown":n(".gux-select-menu-button",e)&&(this.toggleOptions(),this.focusFirstItemInPopupList());break;case"Enter":n(".gux-select-menu-button",e)&&this.focusFirstItemInPopupList();break;case"Escape":n("gux-list",e)&&(e.stopPropagation(),this.popoverHidden=!0,null===(t=this.tableSelectMenuButtonElement)||void 0===t||t.focus());break;case"Tab":this.popoverHidden=!0}}onKeyup(e){" "===e.key&&n(".gux-select-menu-button",e)&&this.focusFirstItemInPopupList()}toggleOptions(){this.popoverHidden=!this.popoverHidden}renderSelectDropdown(){if(this.hasSelectMenuOptions)return[t("button",{id:this.dropdownOptionsButtonId,"aria-haspopup":"listbox","aria-expanded":(!this.popoverHidden).toString(),type:"button",class:"gux-select-menu-button",ref:e=>this.tableSelectMenuButtonElement=e,onClick:()=>this.toggleOptions(),disabled:this.dropdownDisabled},t("gux-icon",{"icon-name":"chevron-small-down","screenreader-text":this.i18n("tableOptions")})),t("gux-popover-list",{for:this.dropdownOptionsButtonId,isOpen:!this.popoverHidden,closeOnClickOutside:!0,onGuxdismiss:()=>this.popoverHidden=!0},t("div",null,t("slot",{name:"select-menu-options"})))]}render(){return t(s,null,t("slot",null),this.renderSelectDropdown())}get root(){return i(this)}};l.style="gux-table-select-menu{display:inline-flex;font-family:var(--gse-ui-popover-body-text-fontFamily);font-size:var(--gse-ui-popover-body-text-fontSize);font-weight:var(--gse-ui-popover-body-text-fontWeight);line-height:var(--gse-ui-popover-body-text-lineHeight)}gux-table-select-menu .gux-select-menu-button{padding:0;margin-left:var(--gse-ui-dataTableItems-header-gap);color:var(--gse-ui-dataTableItems-cell-chevron-foregroundColor);background-color:inherit;border:none;outline:none}gux-table-select-menu .gux-select-menu-button:focus-visible gux-icon{border-radius:var(--gse-semantic-focusRing-cornerRadius);outline:var(--gse-semantic-focusRing-width) solid var(--gse-semantic-color-focus);outline-offset:var(--gse-semantic-focusRing-offset)}gux-table-select-menu .gux-select-menu-button gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm)}";export{l as gux_table_select_menu}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as o,g as t}from"./p-
|
1
|
+
import{r as e,h as o,g as t}from"./p-deca7631.js";import{g as r}from"./p-0962dd7a.js";import{g as n}from"./p-dd53013c.js";import{h as i}from"./p-324b23f3.js";const s=class{constructor(o){e(this,o),this.value=void 0,this.selected=!1,this.disabled=!1,this.iconOnly=!1,this.position=void 0}onClick(e){this.disabled&&e.stopPropagation()}isInStartPosition(e){const o=r("gux-segmented-control-beta",e);return 0===Array.from(o.children).findIndex((o=>o===e))}isInEndPosition(e){const o=r("gux-segmented-control-beta",e),t=Array.from(o.children);return t.findIndex((o=>o===e))===t.length-1}renderTooltip(){if(this.iconOnly)return o("gux-tooltip",null,n(this.root,"text"))}renderIconSlot(){if(i(this.root,"icon"))return o("div",{class:{"gux-icon":!0,"gux-icon-only":this.iconOnly}},o("slot",{name:"icon"}))}render(){return o("div",{class:{"gux-container":!0,"gux-start":this.isInStartPosition(this.root),"gux-end":this.isInEndPosition(this.root)}},o("button",{class:{"gux-segmented-control-item":!0,"gux-icon-only":this.iconOnly,"gux-selected":this.selected},type:"button",disabled:this.disabled},this.renderIconSlot(),o("div",{class:{"gux-text":!0,"gux-icon-only":this.iconOnly}},o("slot",{name:"text"}))),this.renderTooltip())}static get delegatesFocus(){return!0}get root(){return t(this)}};s.style="button{all:unset}.gux-container{height:var(--gse-ui-segmentedControl-height);border-color:#a3a7b0;border-style:var(--gse-ui-segmentedControl-border-style);border-width:var(--gse-ui-segmentedControl-border-width);border-right:none;border-left-color:var(--gse-ui-segmentedControl-button-active-backgroundColor);border-radius:var(--gse-ui-segmentedControl-button-middle-borderRadius)}.gux-container.gux-start{border-left-color:#a3a7b0;border-radius:var(--gse-ui-segmentedControl-button-start-borderRadius)}.gux-container.gux-end{border-right:var(--gse-ui-segmentedControl-border-width) var(--gse-ui-segmentedControl-border-style) #a3a7b0;border-radius:var(--gse-ui-segmentedControl-button-end-borderRadius)}.gux-container.gux-start.gux-end{border-radius:4px}.gux-container .gux-segmented-control-item{display:flex;flex-direction:row;flex-wrap:nowrap;gap:var(--gse-ui-segmentedControl-button-gap);align-content:stretch;align-items:center;justify-content:flex-start;height:100%;padding:var(--gse-ui-segmentedControl-button-padding);color:var(--gse-ui-segmentedControl-button-default-foregroundColor);background-color:var(--gse-ui-segmentedControl-button-default-backgroundColor)}.gux-container .gux-segmented-control-item.gux-icon-only{padding:0 8px}.gux-container .gux-segmented-control-item.gux-icon-only .gux-text.gux-icon-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-container .gux-segmented-control-item:hover{color:var(--gse-ui-segmentedControl-button-hover-foregroundColor);background-color:var(--gse-ui-segmentedControl-button-hover-backgroundColor)}.gux-container .gux-segmented-control-item[disabled]{color:var(--gse-ui-segmentedControl-button-disabled-foregroundColor);pointer-events:none;background-color:var(--gse-ui-segmentedControl-button-disabled-backgroundColor);opacity:var(--gse-ui-segmentedControl-button-disabled-opacity)}.gux-container .gux-segmented-control-item.gux-selected{color:var(--gse-ui-segmentedControl-button-active-foregroundColor);background-color:var(--gse-ui-segmentedControl-button-active-backgroundColor);border-color:var(--gse-ui-segmentedControl-button-active-backgroundColor)}.gux-container .gux-segmented-control-item:focus-visible{position:relative;z-index:1;border-radius:var(--gse-ui-segmentedControl-borderRadius);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);outline-offset:0}.gux-container .gux-segmented-control-item .gux-icon slot[name=icon]::slotted(gux-icon){width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm)}";export{s as gux_segmented_control_item}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,f as o,h as e,g as i,c as r,H as n}from"./p-ed724d66.js";import{b as s}from"./p-52e27c60.js";import{c as a,o as l}from"./p-16f3da0d.js";import{O as u}from"./p-8801741a.js";import{o as p}from"./p-37bfd195.js";import{p as h}from"./p-28f55159.js";import{h as g,d,G as c,a as f,g as m,v as x,b,e as v}from"./p-a3bc3236.js";import{s as C}from"./p-373c5d93.js";import{h as w}from"./p-324b23f3.js";import{G as y,a as j}from"./p-9383fa8e.js";import{t as k}from"./p-4281155a.js";import{t as z}from"./p-c7328d42.js";import{O as R}from"./p-8c362857.js";import{b as S}from"./p-ffaadf62.js";import{a as T,c as O,o as F,f as D,s as I,b as P}from"./p-a5937ee9.js";import{g as E}from"./p-693c1709.js";import{f as L}from"./p-5d7d5695.js";import"./p-0962dd7a.js";import"./p-3ea0d493.js";import"./p-9d734bbd.js";const _={increment:"Increment",decrement:"Decrement"};const H=class{constructor(o){t(this,o),this.clearable=void 0,this.labelPosition=void 0,this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=w(this.root,"error"),this.hasHelp=w(this.root,"help")}async guxForceUpdate(){this.hasContent=g(this.input),this.hasError=w(this.root,"error"),this.hasHelp=w(this.root,"help"),o(this.root)}async componentWillLoad(){this.getI18nValue=await s(this.root,_),this.setInput(),this.setLabel(),this.hasError=w(this.root,"error"),this.hasHelp=w(this.root,"help"),k(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){const t=this.clearable&&this.hasContent&&!this.disabled;return e(j,{labelPosition:this.computedLabelPosition},e(y,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()})),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError},part:"input-section"},e("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":t}},e("slot",{name:"input",onSlotchange:()=>this.setInput()}),t&&e("gux-form-field-input-clear-button",{onClick:()=>d(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),e(c,{show:this.hasError},e("slot",{name:"error"})),e(f,{show:!this.hasError&&this.hasHelp},e("slot",{name:"help"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${t}`}setInput(){this.input=m(this.root,'input[type="number"][slot="input"]'),this.hasContent=g(this.input),h(this.input),this.input.addEventListener("input",(()=>{this.hasContent=g(this.input)})),this.disabled=a(this.input),this.required=this.input.required,this.disabledObserver=l(this.input,(t=>{this.disabled=t})),this.requiredObserver=p(this.input,(t=>{this.required=t})),x(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=b(this.label,this.labelPosition)}renderStepButtons(t,o,i){return e("div",{class:"gux-step-buttons-container"},e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:o("increment"),disabled:i,onClick:()=>this.stepUp(t)},e("gux-icon",{"icon-name":"chevron-small-up",decorative:!0})),e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:o("decrement"),disabled:i,onClick:()=>this.stepDown(t)},e("gux-icon",{"icon-name":"chevron-small-down",decorative:!0})))}stepDown(t){""===t.value?v(t,t.min||"0",!1):(t.stepDown(),this.simulateNativeInputAndChangeEvents(t))}stepUp(t){""===t.value?v(t,t.min||"0",!1):(t.stepUp(),this.simulateNativeInputAndChangeEvents(t))}simulateNativeInputAndChangeEvents(t){C(t,"input"),C(t,"change")}static get delegatesFocus(){return!0}get root(){return i(this)}};(function(t,o,e,i){var r,n=arguments.length,s=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,e,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(o,e,s):r(o,e))||s);n>3&&s&&Object.defineProperty(o,e,s)})([u({childList:!0,subtree:!0})],H.prototype,"onMutation",null),H.style='.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:var(--gse-ui-icon-size-sm);min-height:var(--gse-ui-icon-size-sm);margin-right:var(--gse-ui-formControl-helper-gap);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{color:var(--gse-ui-formControl-label-indicator-requiredColor);content:" *"}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:var(--gse-ui-formControl-label-gap)}.gux-form-field-label.gux-above{padding:var(--gse-ui-formControl-label-padding)}.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;align-content:stretch;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-padding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;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);align-content:stretch;align-items:center;align-self:auto;justify-content:center;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);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.gux-clear{padding-right:0}.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)}.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:none}.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 $=class{constructor(o){t(this,o),this.goToPage=r(this,"goToPage",7),this.isOpen=!1,this.totalPages=void 0}handleKeyDown(t){const o=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,this.ellipsisButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":o.includes(this.ellipsisButton)&&(t.preventDefault(),this.isOpen=!0,this.focusInputElement())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.ellipsisButton)&&(this.isOpen=!0,this.focusInputElement())}toggle(){this.isOpen=!this.isOpen,this.isOpen&&this.focusInputElement()}onClickOutside(){this.isOpen=!1}focusInputElement(){S((()=>{this.inputElement.focus()}))}applyInputListener(){var t;null===(t=this.inputElement)||void 0===t||t.addEventListener("keydown",(t=>{"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),this.goToPage.emit(t.target.value),this.isOpen=!1)}))}async componentWillLoad(){this.i18n=await s(this.root,z),k(this.root)}componentDidLoad(){this.applyInputListener()}render(){return e(n,null,e("button",{id:"popover-target",type:"button",ref:t=>this.ellipsisButton=t,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},e("gux-icon",{screenreaderText:this.i18n("goToPage"),"icon-name":"menu-kebab-horizontal"})),e("gux-tooltip",{for:"popover-target"},this.i18n("goToPage")),e("gux-popover",{"is-open":this.isOpen,for:"popover-target"},e("span",{slot:"title"},this.i18n("goToPage")),e("gux-form-field-number",null,e("input",{slot:"input",type:"number",ref:t=>this.inputElement=t,min:"1",max:this.totalPages,value:"1"}),e("label",{slot:"label"}))))}get root(){return i(this)}};(function(t,o,e,i){var r,n=arguments.length,s=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,e,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(o,e,s):r(o,e))||s);n>3&&s&&Object.defineProperty(o,e,s)})([R({triggerEvents:"mousedown"})],$.prototype,"onClickOutside",null),$.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);outline-offset:var(--gse-semantic-focusRing-offset)}button gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);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 B=class{constructor(o){t(this,o),this.guxdismiss=r(this,"guxdismiss",7),this.for=void 0,this.position="bottom",this.displayDismissButton=void 0,this.closeOnClickOutside=!1,this.isOpen=!1}checkForClickOutside(t){const o=t.composedPath(),e=L(this.root,this.for),i=o.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||i||this.dismiss()}get titleSlot(){return E(this.root,"title")}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=T(L(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=L(this.root,this.for);this.popupElement&&O(t,this.popupElement,{placement:this.position,middleware:[F(7),D(),I(),P({element:this.arrowElement,padding:16})]}).then((({x:t,y:o,middlewareData:e,placement:i})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${o}px`});const r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(e.arrow){const{x:t,y:o}=e.arrow;this.popupElement.setAttribute("data-placement",i),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=o?`${o}px`:"",right:"",bottom:"",[r]:"-6.5px",transform:"rotate(45deg)"})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){k(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 e("gux-dismiss-button",{onClick:this.dismiss.bind(this),position:"inherit"})}render(){return e("div",{ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},e("div",{ref:t=>this.arrowElement=t,class:"gux-arrow"}),e("div",{class:{"gux-popover-header":Boolean(this.titleSlot)}},e("slot",{name:"title"}),this.renderDismissButton()),e("div",{class:"gux-popover-content"},e("slot",null)))}get root(){return i(this)}};(function(t,o,e,i){var r,n=arguments.length,s=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,e,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(o,e,s):r(o,e))||s);n>3&&s&&Object.defineProperty(o,e,s)})([R({triggerEvents:"mousedown"})],B.prototype,"checkForClickOutside",null),B.style=".gux-popover-wrapper{position:absolute;top:0;left:0;z-index:var(--gux-zindex-popover, 2);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) var(--gse-ui-popover-boxShadow-y) 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-width);background:var(--gse-ui-popover-backgroundColor)}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;align-content:center;align-items:center;justify-content:space-between;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:--gse-ui-popover-headercolor}.gux-popover-wrapper gux-dismiss-button{float:right}";export{H as gux_form_field_number,$ as gux_pagination_ellipsis_button,B as gux_popover}
|
1
|
+
import{r as t,f as o,h as e,g as i,c as r,H as n}from"./p-deca7631.js";import{b as s}from"./p-2ba7be7a.js";import{c as a,o as l}from"./p-16f3da0d.js";import{O as u}from"./p-d6edbaeb.js";import{o as p}from"./p-37bfd195.js";import{p as h}from"./p-28f55159.js";import{h as g,d,G as c,a as f,g as m,v as x,b,e as v}from"./p-e5766b80.js";import{s as C}from"./p-373c5d93.js";import{h as w}from"./p-324b23f3.js";import{G as y,a as j}from"./p-2b468e4b.js";import{t as k}from"./p-760e43cf.js";import{t as z}from"./p-c7328d42.js";import{O as R}from"./p-c49670a7.js";import{b as S}from"./p-ffaadf62.js";import{a as T,c as O,o as F,f as D,s as I,b as P}from"./p-f3521f3e.js";import{g as E}from"./p-693c1709.js";import{f as L}from"./p-5d7d5695.js";import"./p-0962dd7a.js";import"./p-3ea0d493.js";import"./p-9d734bbd.js";const _={increment:"Increment",decrement:"Decrement"};const H=class{constructor(o){t(this,o),this.clearable=void 0,this.labelPosition=void 0,this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasContent=!1,this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=w(this.root,"error"),this.hasHelp=w(this.root,"help")}async guxForceUpdate(){this.hasContent=g(this.input),this.hasError=w(this.root,"error"),this.hasHelp=w(this.root,"help"),o(this.root)}async componentWillLoad(){this.getI18nValue=await s(this.root,_),this.setInput(),this.setLabel(),this.hasError=w(this.root,"error"),this.hasHelp=w(this.root,"help"),k(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){const t=this.clearable&&this.hasContent&&!this.disabled;return e(j,{labelPosition:this.computedLabelPosition},e(y,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()})),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError},part:"input-section"},e("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":t}},e("slot",{name:"input",onSlotchange:()=>this.setInput()}),t&&e("gux-form-field-input-clear-button",{onClick:()=>d(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),e(c,{show:this.hasError},e("slot",{name:"error"})),e(f,{show:!this.hasError&&this.hasHelp},e("slot",{name:"help"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${t}`}setInput(){this.input=m(this.root,'input[type="number"][slot="input"]'),this.hasContent=g(this.input),h(this.input),this.input.addEventListener("input",(()=>{this.hasContent=g(this.input)})),this.disabled=a(this.input),this.required=this.input.required,this.disabledObserver=l(this.input,(t=>{this.disabled=t})),this.requiredObserver=p(this.input,(t=>{this.required=t})),x(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=b(this.label,this.labelPosition)}renderStepButtons(t,o,i){return e("div",{class:"gux-step-buttons-container"},e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:o("increment"),disabled:i,onClick:()=>this.stepUp(t)},e("gux-icon",{"icon-name":"chevron-small-up",decorative:!0})),e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:o("decrement"),disabled:i,onClick:()=>this.stepDown(t)},e("gux-icon",{"icon-name":"chevron-small-down",decorative:!0})))}stepDown(t){""===t.value?v(t,t.min||"0",!1):(t.stepDown(),this.simulateNativeInputAndChangeEvents(t))}stepUp(t){""===t.value?v(t,t.min||"0",!1):(t.stepUp(),this.simulateNativeInputAndChangeEvents(t))}simulateNativeInputAndChangeEvents(t){C(t,"input"),C(t,"change")}static get delegatesFocus(){return!0}get root(){return i(this)}};(function(t,o,e,i){var r,n=arguments.length,s=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,e,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(o,e,s):r(o,e))||s);n>3&&s&&Object.defineProperty(o,e,s)})([u({childList:!0,subtree:!0})],H.prototype,"onMutation",null),H.style='.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:var(--gse-ui-icon-size-sm);min-height:var(--gse-ui-icon-size-sm);margin-right:var(--gse-ui-formControl-helper-gap);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{color:var(--gse-ui-formControl-label-indicator-requiredColor);content:" *"}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:var(--gse-ui-formControl-label-gap)}.gux-form-field-label.gux-above{padding:var(--gse-ui-formControl-label-padding)}.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;align-content:stretch;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-padding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;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);align-content:stretch;align-items:center;align-self:auto;justify-content:center;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);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.gux-clear{padding-right:0}.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)}.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:none}.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 $=class{constructor(o){t(this,o),this.goToPage=r(this,"goToPage",7),this.isOpen=!1,this.totalPages=void 0}handleKeyDown(t){const o=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,this.ellipsisButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":o.includes(this.ellipsisButton)&&(t.preventDefault(),this.isOpen=!0,this.focusInputElement())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.ellipsisButton)&&(this.isOpen=!0,this.focusInputElement())}toggle(){this.isOpen=!this.isOpen,this.isOpen&&this.focusInputElement()}onClickOutside(){this.isOpen=!1}focusInputElement(){S((()=>{this.inputElement.focus()}))}applyInputListener(){var t;null===(t=this.inputElement)||void 0===t||t.addEventListener("keydown",(t=>{"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),this.goToPage.emit(t.target.value),this.isOpen=!1)}))}async componentWillLoad(){this.i18n=await s(this.root,z),k(this.root)}componentDidLoad(){this.applyInputListener()}render(){return e(n,null,e("button",{id:"popover-target",type:"button",ref:t=>this.ellipsisButton=t,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},e("gux-icon",{screenreaderText:this.i18n("goToPage"),"icon-name":"menu-kebab-horizontal"})),e("gux-tooltip",{for:"popover-target"},this.i18n("goToPage")),e("gux-popover",{"is-open":this.isOpen,for:"popover-target"},e("span",{slot:"title"},this.i18n("goToPage")),e("gux-form-field-number",null,e("input",{slot:"input",type:"number",ref:t=>this.inputElement=t,min:"1",max:this.totalPages,value:"1"}),e("label",{slot:"label"}))))}get root(){return i(this)}};(function(t,o,e,i){var r,n=arguments.length,s=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,e,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(o,e,s):r(o,e))||s);n>3&&s&&Object.defineProperty(o,e,s)})([R({triggerEvents:"mousedown"})],$.prototype,"onClickOutside",null),$.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);outline-offset:var(--gse-semantic-focusRing-offset)}button gux-icon{width:var(--gse-ui-icon-size-sm);height:var(--gse-ui-icon-size-sm);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 B=class{constructor(o){t(this,o),this.guxdismiss=r(this,"guxdismiss",7),this.for=void 0,this.position="bottom",this.displayDismissButton=void 0,this.closeOnClickOutside=!1,this.isOpen=!1}checkForClickOutside(t){const o=t.composedPath(),e=L(this.root,this.for),i=o.includes(e);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||i||this.dismiss()}get titleSlot(){return E(this.root,"title")}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=T(L(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=L(this.root,this.for);this.popupElement&&O(t,this.popupElement,{placement:this.position,middleware:[F(7),D(),I(),P({element:this.arrowElement,padding:16})]}).then((({x:t,y:o,middlewareData:e,placement:i})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${o}px`});const r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(e.arrow){const{x:t,y:o}=e.arrow;this.popupElement.setAttribute("data-placement",i),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=o?`${o}px`:"",right:"",bottom:"",[r]:"-6.5px",transform:"rotate(45deg)"})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){k(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 e("gux-dismiss-button",{onClick:this.dismiss.bind(this),position:"inherit"})}render(){return e("div",{ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},e("div",{ref:t=>this.arrowElement=t,class:"gux-arrow"}),e("div",{class:{"gux-popover-header":Boolean(this.titleSlot)}},e("slot",{name:"title"}),this.renderDismissButton()),e("div",{class:"gux-popover-content"},e("slot",null)))}get root(){return i(this)}};(function(t,o,e,i){var r,n=arguments.length,s=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,e,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(o,e,s):r(o,e))||s);n>3&&s&&Object.defineProperty(o,e,s)})([R({triggerEvents:"mousedown"})],B.prototype,"checkForClickOutside",null),B.style=".gux-popover-wrapper{position:absolute;top:0;left:0;z-index:var(--gux-zindex-popover, 2);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) var(--gse-ui-popover-boxShadow-y) 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-width);background:var(--gse-ui-popover-backgroundColor)}.gux-popover-wrapper .gux-popover-header{display:flex;flex-direction:row;align-content:center;align-items:center;justify-content:space-between;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:--gse-ui-popover-headercolor}.gux-popover-wrapper gux-dismiss-button{float:right}";export{H as gux_form_field_number,$ as gux_pagination_ellipsis_button,B as gux_popover}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as o,h as r,g as e}from"./p-
|
1
|
+
import{r as o,h as r,g as e}from"./p-deca7631.js";import{c as t,o as i}from"./p-16f3da0d.js";import{O as n}from"./p-d6edbaeb.js";import{o as l}from"./p-37bfd195.js";import{p as s}from"./p-28f55159.js";import{h as a}from"./p-324b23f3.js";import{G as u,a as f,g,v as p,b as d}from"./p-e5766b80.js";import{G as h,a as c}from"./p-2b468e4b.js";import{t as m}from"./p-760e43cf.js";import"./p-3ea0d493.js";import"./p-9d734bbd.js";import"./p-373c5d93.js";const x=class{constructor(r){o(this,r),this.labelPosition=void 0,this.computedLabelPosition=void 0,this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1}onMutation(){this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help")}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=a(this.root,"error"),this.hasHelp=a(this.root,"help"),m(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return r(c,{labelPosition:this.computedLabelPosition},r(h,{position:this.computedLabelPosition,required:this.required},r("slot",{name:"label",onSlotchange:()=>this.setLabel()})),r("div",{class:"gux-input-and-error-container"},r("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},r("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled}},r("slot",{name:"input",onSlotchange:()=>this.setInput()}))),r(u,{show:this.hasError},r("slot",{name:"error"})),r(f,{show:!this.hasError&&this.hasHelp},r("slot",{name:"help"}))))}get variant(){return this.labelPosition?this.labelPosition.toLowerCase():"none"}setInput(){this.input=g(this.root,'input[type="color"][slot="input"]'),s(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})),p(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=d(this.label,this.labelPosition)}get root(){return e(this)}};(function(o,r,e,t){var i,n=arguments.length,l=n<3?r:null===t?t=Object.getOwnPropertyDescriptor(r,e):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(o,r,e,t);else for(var s=o.length-1;s>=0;s--)(i=o[s])&&(l=(n<3?i(l):n>3?i(r,e,l):i(r,e))||l);n>3&&l&&Object.defineProperty(r,e,l)})([n({childList:!0,subtree:!0})],x.prototype,"onMutation",null),x.style='.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-errorPadding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:var(--gse-ui-icon-size-sm);min-height:var(--gse-ui-icon-size-sm);margin-right:var(--gse-ui-formControl-helper-gap);color:var(--gse-ui-formControl-helper-errorColor)}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{color:var(--gse-ui-formControl-label-indicator-requiredColor);content:" *"}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:var(--gse-ui-formControl-label-gap)}.gux-form-field-label.gux-above{padding:var(--gse-ui-formControl-label-padding)}.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;align-content:stretch;align-items:flex-start;justify-content:flex-start;padding:var(--gse-ui-formControl-helper-padding);font-family:var(--gse-ui-formControl-helper-helperText-fontFamily);font-size:var(--gse-ui-formControl-helper-helperText-fontSize);line-height:var(--gse-ui-formControl-helper-helperText-lineHeight);color:var(--gse-ui-formControl-helper-defaultColor)}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}:host{display:block}::slotted(label){font-family:var(--gse-ui-formControl-label-text-fontFamily);font-size:var(--gse-ui-formControl-label-text-fontSize);font-weight:var(--gse-ui-formControl-label-text-fontWeight);line-height:var(--gse-ui-formControl-label-text-lineHeight);color:var(--gse-ui-formControl-label-labelColor)}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:32px;height:var(--gse-ui-formControl-input-textfield-height);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;border-radius:var(--gse-ui-formControl-input-borderRadius);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);align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;height:var(--gse-ui-formControl-input-textfield-height);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-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)}.gux-input-and-error-container .gux-input .gux-input-container.gux-input-error .gux-input-container{border-color:var(--gse-ui-formControl-input-error-border-color)}';export{x as gux_form_field_color}
|
@@ -1 +1 @@
|
|
1
|
-
import{l as a}from"./p-
|
1
|
+
import{l as a}from"./p-2ba7be7a.js";class i{constructor(i){a.includes(i)?this.locale=i:(console.warn(`Locale "${i}" is not supported. Falling back to English translation.`),this.locale="en")}formatDate(a,i,r={}){return a.toLocaleDateString(this.locale,Object.assign({},r,{dateStyle:i}))}formatTime(a,i,r={}){return a.toLocaleTimeString(this.locale,Object.assign({},r,{timeStyle:i}))}formatDateTime(a,i,r={}){return a.toLocaleString(this.locale,Object.assign({},r,{dateStyle:i,timeStyle:i}))}}const r=["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montserrat","America/Nassau","America/New_York","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","CET","CST6CDT","EET","EST","EST5EDT","Etc/GMT","Etc/GMT+1","Etc/GMT+10","Etc/GMT+11","Etc/GMT+12","Etc/GMT+2","Etc/GMT+3","Etc/GMT+4","Etc/GMT+5","Etc/GMT+6","Etc/GMT+7","Etc/GMT+8","Etc/GMT+9","Etc/GMT-1","Etc/GMT-10","Etc/GMT-11","Etc/GMT-12","Etc/GMT-13","Etc/GMT-14","Etc/GMT-2","Etc/GMT-3","Etc/GMT-4","Etc/GMT-5","Etc/GMT-6","Etc/GMT-7","Etc/GMT-8","Etc/GMT-9","Etc/UTC","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zurich","HST","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","MET","MST","MST7MDT","PST8PDT","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kanton","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis","UTC","WET"];function e(a,i){return r.includes(a)?a:i}export{i as D,e as g}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as e,h as t,g as a}from"./p-ed724d66.js";import{f as n}from"./p-533d7842.js";import{c as r}from"./p-9125cc36.js";import{g as o,a as i,b as d}from"./p-52e27c60.js";import{a as s}from"./p-ffaadf62.js";import{l as u}from"./p-9d734bbd.js";import{s as l}from"./p-373c5d93.js";import"./p-0962dd7a.js";function c(e,t){return r(e.toLocaleDateString(t,{year:"numeric",month:"long"}))}const g={previousMonth:"Previous month: {localizedPreviousMonthAndYear}",nextMonth:"Next month: {localizedNextMonthAndYear}"},h=class{constructor(t){e(this,t),this.locale="en",this.MONTH_DATE_COUNT=42,this.focusedValue=void 0,this.minValue=void 0,this.maxValue=void 0}get slottedInput(){return this.root.querySelector('input[type="date"]')}async componentWillLoad(){this.slottedInput||u(this.root,'You must slot a date input element like so: input[type="date"].'),this.locale=o(this.root);const e=this.slottedInput.getAttribute("start-day-of-week");(null==e?void 0:e.length)&&(this.startDayOfWeek=parseInt(e,10)),this.startDayOfWeek=this.startDayOfWeek||i(this.locale),this.i18n=await d(this.root,g),this.slottedInput.value&&(this.focusedValue=n(this.slottedInput.value)),this.slottedInput.min&&(this.minValue=new Date(this.slottedInput.min),this.minValue.setHours(0,0,0,0)),this.slottedInput.max&&(this.maxValue=new Date(this.slottedInput.max),this.maxValue.setHours(0,0,0,0))}onDateClick(e){this.focusedValue=new Date(e.getTime()),this.slottedInput.value=e.toISOString().substring(0,10),l(this.root,"input")}setDateAfterArrowKeyPress(e,t){e.preventDefault(),this.focusedValue=new Date(this.getFocusedValue().getFullYear(),this.getFocusedValue().getMonth(),this.getFocusedValue().getDate()+t,0,0,0),s((()=>{this.focusDate()}))}focusDate(){const e=this.root.shadowRoot.querySelector(`.gux-content-date[data-date="${this.focusedValue.getTime()}"]`);e&&e.focus()}onKeyDown(e){switch(e.key){case" ":break;case"Enter":e.preventDefault(),this.onDateClick(this.getFocusedValue()),s((()=>{this.focusDate()}));break;case"ArrowDown":this.setDateAfterArrowKeyPress(e,7);break;case"ArrowUp":this.setDateAfterArrowKeyPress(e,-7);break;case"ArrowLeft":this.setDateAfterArrowKeyPress(e,-1);break;case"ArrowRight":this.setDateAfterArrowKeyPress(e,1);break;case"PageUp":e.preventDefault(),this.setNewFocusedMonth(1),s((()=>{this.focusDate()}));break;case"PageDown":e.preventDefault(),this.setNewFocusedMonth(-1),s((()=>{this.focusDate()}))}}getMonthDays(){var e,t;const a=(n=this.getFocusedValue(),new Date(n.getFullYear(),n.getMonth(),1,0,0,0));var n;const r=[];let o={dates:[]},i=0;const d=a.getMonth(),s=this.getSelectedValue(),u=function(e,t,a){const n=new Date(t,e,1,0,0,0,0),r=-1*(a-n.getDay()-7)%7;return new Date(n.getTime()-864e5*r)}(d,new Date(a.getTime()).getFullYear(),this.startDayOfWeek);for(let a=0;a<this.MONTH_DATE_COUNT+1;a+=1){const a=s.getTime()===u.getTime()&&void 0!==this.focusedValue;i>0&&i%7==0&&(r.push(o),o={dates:[]});const n=this.minValue&&u.getTime()<=this.minValue.getTime()||this.maxValue&&u.getTime()>this.maxValue.getTime(),l=(null===(e=this.getFocusedValue())||void 0===e?void 0:e.getTime())===u.getTime()&&(null===(t=this.getFocusedValue())||void 0===t?void 0:t.getTime())!==s.getTime(),c=new Date;o.dates.push({date:new Date(u),disabled:n,inCurrentMonth:d===u.getMonth()&&!n,selected:a&&s,focused:l,isCurrentDate:u.getDate()===c.getDate()&&u.getMonth()===c.getMonth()&&u.getFullYear()===c.getFullYear()}),i+=1,u.setDate(u.getDate()+1)}return r}getFocusedValue(){return this.focusedValue?this.focusedValue:this.getSelectedValue()}changeMonth(e){return new Date(this.getFocusedValue().getFullYear(),this.getFocusedValue().getMonth()+e,1,0,0,0)}setNewFocusedMonth(e){this.focusedValue=this.changeMonth(e)}getSelectedValue(){if(this.slottedInput.value)return n(this.slottedInput.value);const e=new Date;return e.setHours(0,0,0,0),e}renderHeader(){return t("div",{class:"gux-header"},t("button",{type:"button",class:"gux-left","aria-label":this.i18n("previousMonth",{localizedPreviousMonthAndYear:c(this.changeMonth(-1),this.locale)}),onClick:()=>this.setNewFocusedMonth(-1)},t("gux-icon",{decorative:!0,"icon-name":"chevron-small-left"})),t("span",{class:"gux-header-month-and-year"},c(this.getFocusedValue(),this.locale)),t("button",{type:"button",class:"gux-right","aria-label":this.i18n("nextMonth",{localizedNextMonthAndYear:c(this.changeMonth(1),this.locale)}),onClick:()=>this.setNewFocusedMonth(1)},t("gux-icon",{decorative:!0,"icon-name":"chevron-small-right"})))}renderContent(){return t("div",null,t("div",{class:"gux-week-days"},function(e,t){const a=[],n=new Date(1970,0,4);for(let t=0;t<7;t++){const t=n.toLocaleString(e,{weekday:"narrow"});a.push(t),n.setDate(n.getDate()+1)}return(r=a).concat(r.splice(0,t%r.length));var r}(this.locale,this.startDayOfWeek).map((e=>t("div",{class:"gux-week-day"},e)))),t("div",{class:"gux-content"},this.getMonthDays().map((e=>t("div",{class:"gux-content-week"},e.dates.map((e=>t("div",{"data-date":e.date.getTime(),onClick:()=>this.onDateClick(e.date),role:"button","aria-current":e.selected?"true":"false",tabindex:e.selected||e.focused?"0":"-1",onKeyDown:e=>{this.onKeyDown(e)},"aria-disabled":e.disabled?"true":"false",class:{"gux-content-date":!0,"gux-disabled":e.disabled,"gux-current-month":e.inCurrentMonth,"gux-selected":e.selected,"gux-current-date":e.isCurrentDate}},t("span",{class:"gux-non-sr","aria-hidden":"true"},e.date.getDate()),t("span",{class:"gux-sr-only"},t("gux-date-beta",{datetime:e.date.toISOString(),format:"long"}))))))))))}render(){return t("div",{class:"gux-calendar-beta"},t("slot",null),this.renderHeader(),this.renderContent())}get root(){return a(this)}};h.style=".gux-calendar-beta{box-sizing:border-box;display:inline-flex;flex-direction:column;font-family:var(--gse-ui-calendarMenu-month-defaultText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-defaultText-fontSize);background:var(--gse-ui-calendarMenu-date-selected-foregroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius);box-shadow:rgba(34, 37, 41, 0.24) 0 2px 4px}.gux-calendar-beta .gux-header{display:flex;align-items:center;justify-content:space-between;height:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-style:normal;font-weight:var(--gse-ui-calendarMenu-month-currentText-fontWeight);color:var(--gse-ui-calendarMenu-header-foregroundColor);text-align:center;background-color:var(--gse-ui-calendarMenu-header-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-header-borderRadius)}.gux-calendar-beta .gux-header .gux-header-month-and-year{width:var(--gse-ui-calendarMenu-month-single-header-textWidth);font-family:var(--gse-ui-calendarMenu-month-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-headerText-fontSize);line-height:var(--gse-ui-calendarMenu-month-headerText-lineHeight);color:var(--gse-ui-calendarMenu-month-selected-foregroundColor)}.gux-calendar-beta .gux-header .gux-left,.gux-calendar-beta .gux-header .gux-right{color:var(--gse-ui-calendarMenu-month-monthHeader-foregroundColor);cursor:pointer;background:none;border:none;outline:none}.gux-calendar-beta .gux-header .gux-left:focus-visible,.gux-calendar-beta .gux-header .gux-right:focus-visible{outline:2px solid #aac9ff;outline-offset:1px}.gux-calendar-beta .gux-header .gux-left gux-icon,.gux-calendar-beta .gux-header .gux-right gux-icon{width:16px;height:16px}.gux-calendar-beta .gux-week-days{padding-top:24px;padding-right:24px;padding-left:24px;font-family:var(--gse-ui-calendarMenu-day-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-day-headerText-fontSize);font-weight:var(--gse-ui-calendarMenu-day-headerText-fontWeight);color:var(--gse-ui-calendarMenu-day-dayHeader-foregroundColor);text-align:center}.gux-calendar-beta .gux-week-days .gux-week-day{display:inline-block;width:var(--gse-ui-calendarMenu-day-date-size);height:16px;font-weight:var(--gse-ui-calendarMenu-day-header-fontWeight)}.gux-calendar-beta .gux-content{padding:var(--gse-ui-calendarMenu-dateBody-padding);color:var(--gse-core-color-cornflower-900);background-color:var(--gse-ui-calendarMenu-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius)}.gux-calendar-beta .gux-content-week .gux-content-date{display:inline-block;width:var(--gse-ui-calendarMenu-day-date-size);height:var(--gse-ui-calendarMenu-day-input-height);font-family:var(--gse-ui-calendarMenu-date-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-defaultText-fontSize);font-style:normal;font-weight:var(--gse-ui-calendarMenu-date-defaultText-fontWeight);line-height:32px;color:var(--gse-core-color-cornflower-600);text-align:center;vertical-align:middle;border:none;outline:none;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar-beta .gux-content-week .gux-content-date.gux-current-month{color:var(--gse-ui-calendarMenu-month-default-foregroundColor);opacity:1}.gux-calendar-beta .gux-content-week .gux-content-date.gux-hidden{display:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-disabled{pointer-events:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-selected{color:var(--gse-ui-calendarMenu-date-selected-foregroundColor);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border:none;border-radius:var(--gse-ui-calendarMenu-month-borderRadius);outline:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-selected:hover{background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar-beta .gux-content-week .gux-content-date:hover{cursor:pointer;background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar-beta .gux-content-week .gux-content-date:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-focusBorderRadius);outline:1px solid #7b61ff}.gux-calendar-beta .gux-content-week .gux-content-date .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-calendar-beta .gux-content-week .gux-content-date.gux-current-date{font-family:var(--gse-ui-calendarMenu-month-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-currentText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-currentText-fontWeight)}";export{h as gux_calendar_beta}
|
1
|
+
import{r as e,h as t,g as a}from"./p-deca7631.js";import{f as n}from"./p-533d7842.js";import{c as r}from"./p-9125cc36.js";import{g as o,a as i,b as d}from"./p-2ba7be7a.js";import{a as s}from"./p-ffaadf62.js";import{l as u}from"./p-9d734bbd.js";import{s as l}from"./p-373c5d93.js";import"./p-0962dd7a.js";function c(e,t){return r(e.toLocaleDateString(t,{year:"numeric",month:"long"}))}const g={previousMonth:"Previous month: {localizedPreviousMonthAndYear}",nextMonth:"Next month: {localizedNextMonthAndYear}"},h=class{constructor(t){e(this,t),this.locale="en",this.MONTH_DATE_COUNT=42,this.focusedValue=void 0,this.minValue=void 0,this.maxValue=void 0}get slottedInput(){return this.root.querySelector('input[type="date"]')}async componentWillLoad(){this.slottedInput||u(this.root,'You must slot a date input element like so: input[type="date"].'),this.locale=o(this.root);const e=this.slottedInput.getAttribute("start-day-of-week");(null==e?void 0:e.length)&&(this.startDayOfWeek=parseInt(e,10)),this.startDayOfWeek=this.startDayOfWeek||i(this.locale),this.i18n=await d(this.root,g),this.slottedInput.value&&(this.focusedValue=n(this.slottedInput.value)),this.slottedInput.min&&(this.minValue=new Date(this.slottedInput.min),this.minValue.setHours(0,0,0,0)),this.slottedInput.max&&(this.maxValue=new Date(this.slottedInput.max),this.maxValue.setHours(0,0,0,0))}onDateClick(e){this.focusedValue=new Date(e.getTime()),this.slottedInput.value=e.toISOString().substring(0,10),l(this.root,"input")}setDateAfterArrowKeyPress(e,t){e.preventDefault(),this.focusedValue=new Date(this.getFocusedValue().getFullYear(),this.getFocusedValue().getMonth(),this.getFocusedValue().getDate()+t,0,0,0),s((()=>{this.focusDate()}))}focusDate(){const e=this.root.shadowRoot.querySelector(`.gux-content-date[data-date="${this.focusedValue.getTime()}"]`);e&&e.focus()}onKeyDown(e){switch(e.key){case" ":break;case"Enter":e.preventDefault(),this.onDateClick(this.getFocusedValue()),s((()=>{this.focusDate()}));break;case"ArrowDown":this.setDateAfterArrowKeyPress(e,7);break;case"ArrowUp":this.setDateAfterArrowKeyPress(e,-7);break;case"ArrowLeft":this.setDateAfterArrowKeyPress(e,-1);break;case"ArrowRight":this.setDateAfterArrowKeyPress(e,1);break;case"PageUp":e.preventDefault(),this.setNewFocusedMonth(1),s((()=>{this.focusDate()}));break;case"PageDown":e.preventDefault(),this.setNewFocusedMonth(-1),s((()=>{this.focusDate()}))}}getMonthDays(){var e,t;const a=(n=this.getFocusedValue(),new Date(n.getFullYear(),n.getMonth(),1,0,0,0));var n;const r=[];let o={dates:[]},i=0;const d=a.getMonth(),s=this.getSelectedValue(),u=function(e,t,a){const n=new Date(t,e,1,0,0,0,0),r=-1*(a-n.getDay()-7)%7;return new Date(n.getTime()-864e5*r)}(d,new Date(a.getTime()).getFullYear(),this.startDayOfWeek);for(let a=0;a<this.MONTH_DATE_COUNT+1;a+=1){const a=s.getTime()===u.getTime()&&void 0!==this.focusedValue;i>0&&i%7==0&&(r.push(o),o={dates:[]});const n=this.minValue&&u.getTime()<=this.minValue.getTime()||this.maxValue&&u.getTime()>this.maxValue.getTime(),l=(null===(e=this.getFocusedValue())||void 0===e?void 0:e.getTime())===u.getTime()&&(null===(t=this.getFocusedValue())||void 0===t?void 0:t.getTime())!==s.getTime(),c=new Date;o.dates.push({date:new Date(u),disabled:n,inCurrentMonth:d===u.getMonth()&&!n,selected:a&&s,focused:l,isCurrentDate:u.getDate()===c.getDate()&&u.getMonth()===c.getMonth()&&u.getFullYear()===c.getFullYear()}),i+=1,u.setDate(u.getDate()+1)}return r}getFocusedValue(){return this.focusedValue?this.focusedValue:this.getSelectedValue()}changeMonth(e){return new Date(this.getFocusedValue().getFullYear(),this.getFocusedValue().getMonth()+e,1,0,0,0)}setNewFocusedMonth(e){this.focusedValue=this.changeMonth(e)}getSelectedValue(){if(this.slottedInput.value)return n(this.slottedInput.value);const e=new Date;return e.setHours(0,0,0,0),e}renderHeader(){return t("div",{class:"gux-header"},t("button",{type:"button",class:"gux-left","aria-label":this.i18n("previousMonth",{localizedPreviousMonthAndYear:c(this.changeMonth(-1),this.locale)}),onClick:()=>this.setNewFocusedMonth(-1)},t("gux-icon",{decorative:!0,"icon-name":"chevron-small-left"})),t("span",{class:"gux-header-month-and-year"},c(this.getFocusedValue(),this.locale)),t("button",{type:"button",class:"gux-right","aria-label":this.i18n("nextMonth",{localizedNextMonthAndYear:c(this.changeMonth(1),this.locale)}),onClick:()=>this.setNewFocusedMonth(1)},t("gux-icon",{decorative:!0,"icon-name":"chevron-small-right"})))}renderContent(){return t("div",null,t("div",{class:"gux-week-days"},function(e,t){const a=[],n=new Date(1970,0,4);for(let t=0;t<7;t++){const t=n.toLocaleString(e,{weekday:"narrow"});a.push(t),n.setDate(n.getDate()+1)}return(r=a).concat(r.splice(0,t%r.length));var r}(this.locale,this.startDayOfWeek).map((e=>t("div",{class:"gux-week-day"},e)))),t("div",{class:"gux-content"},this.getMonthDays().map((e=>t("div",{class:"gux-content-week"},e.dates.map((e=>t("div",{"data-date":e.date.getTime(),onClick:()=>this.onDateClick(e.date),role:"button","aria-current":e.selected?"true":"false",tabindex:e.selected||e.focused?"0":"-1",onKeyDown:e=>{this.onKeyDown(e)},"aria-disabled":e.disabled?"true":"false",class:{"gux-content-date":!0,"gux-disabled":e.disabled,"gux-current-month":e.inCurrentMonth,"gux-selected":e.selected,"gux-current-date":e.isCurrentDate}},t("span",{class:"gux-non-sr","aria-hidden":"true"},e.date.getDate()),t("span",{class:"gux-sr-only"},t("gux-date-beta",{datetime:e.date.toISOString(),format:"long"}))))))))))}render(){return t("div",{class:"gux-calendar-beta"},t("slot",null),this.renderHeader(),this.renderContent())}get root(){return a(this)}};h.style=".gux-calendar-beta{box-sizing:border-box;display:inline-flex;flex-direction:column;font-family:var(--gse-ui-calendarMenu-month-defaultText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-defaultText-fontSize);background:var(--gse-ui-calendarMenu-date-selected-foregroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius);box-shadow:rgba(34, 37, 41, 0.24) 0 2px 4px}.gux-calendar-beta .gux-header{display:flex;align-items:center;justify-content:space-between;height:var(--gse-ui-calendarMenu-month-single-header-height);padding:var(--gse-ui-calendarMenu-header-padding);font-style:normal;font-weight:var(--gse-ui-calendarMenu-month-currentText-fontWeight);color:var(--gse-ui-calendarMenu-header-foregroundColor);text-align:center;background-color:var(--gse-ui-calendarMenu-header-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-header-borderRadius)}.gux-calendar-beta .gux-header .gux-header-month-and-year{width:var(--gse-ui-calendarMenu-month-single-header-textWidth);font-family:var(--gse-ui-calendarMenu-month-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-month-headerText-fontSize);line-height:var(--gse-ui-calendarMenu-month-headerText-lineHeight);color:var(--gse-ui-calendarMenu-month-selected-foregroundColor)}.gux-calendar-beta .gux-header .gux-left,.gux-calendar-beta .gux-header .gux-right{color:var(--gse-ui-calendarMenu-month-monthHeader-foregroundColor);cursor:pointer;background:none;border:none;outline:none}.gux-calendar-beta .gux-header .gux-left:focus-visible,.gux-calendar-beta .gux-header .gux-right:focus-visible{outline:2px solid #aac9ff;outline-offset:1px}.gux-calendar-beta .gux-header .gux-left gux-icon,.gux-calendar-beta .gux-header .gux-right gux-icon{width:16px;height:16px}.gux-calendar-beta .gux-week-days{padding-top:24px;padding-right:24px;padding-left:24px;font-family:var(--gse-ui-calendarMenu-day-headerText-fontFamily);font-size:var(--gse-ui-calendarMenu-day-headerText-fontSize);font-weight:var(--gse-ui-calendarMenu-day-headerText-fontWeight);color:var(--gse-ui-calendarMenu-day-dayHeader-foregroundColor);text-align:center}.gux-calendar-beta .gux-week-days .gux-week-day{display:inline-block;width:var(--gse-ui-calendarMenu-day-date-size);height:16px;font-weight:var(--gse-ui-calendarMenu-day-header-fontWeight)}.gux-calendar-beta .gux-content{padding:var(--gse-ui-calendarMenu-dateBody-padding);color:var(--gse-core-color-cornflower-900);background-color:var(--gse-ui-calendarMenu-backgroundColor);border-radius:var(--gse-ui-calendarMenu-single-body-borderRadius)}.gux-calendar-beta .gux-content-week .gux-content-date{display:inline-block;width:var(--gse-ui-calendarMenu-day-date-size);height:var(--gse-ui-calendarMenu-day-input-height);font-family:var(--gse-ui-calendarMenu-date-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-defaultText-fontSize);font-style:normal;font-weight:var(--gse-ui-calendarMenu-date-defaultText-fontWeight);line-height:32px;color:var(--gse-core-color-cornflower-600);text-align:center;vertical-align:middle;border:none;outline:none;opacity:var(--gse-ui-calendarMenu-disabled-opacity)}.gux-calendar-beta .gux-content-week .gux-content-date.gux-current-month{color:var(--gse-ui-calendarMenu-month-default-foregroundColor);opacity:1}.gux-calendar-beta .gux-content-week .gux-content-date.gux-hidden{display:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-disabled{pointer-events:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-selected{color:var(--gse-ui-calendarMenu-date-selected-foregroundColor);background-color:var(--gse-ui-calendarMenu-date-selected-backgroundColor);border:none;border-radius:var(--gse-ui-calendarMenu-month-borderRadius);outline:none}.gux-calendar-beta .gux-content-week .gux-content-date.gux-selected:hover{background-color:var(--gse-ui-calendarMenu-date-selected-hoverBackgroundColor)}.gux-calendar-beta .gux-content-week .gux-content-date:hover{cursor:pointer;background-color:var(--gse-ui-calendarMenu-date-hover-backgroundColor);border-radius:var(--gse-ui-calendarMenu-month-borderRadius)}.gux-calendar-beta .gux-content-week .gux-content-date:focus-visible{border-radius:var(--gse-ui-calendarMenu-month-focusBorderRadius);outline:1px solid #7b61ff}.gux-calendar-beta .gux-content-week .gux-content-date .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-calendar-beta .gux-content-week .gux-content-date.gux-current-date{font-family:var(--gse-ui-calendarMenu-month-currentText-fontFamily);font-size:var(--gse-ui-calendarMenu-date-currentText-fontSize);font-weight:var(--gse-ui-calendarMenu-date-currentText-fontWeight)}";export{h as gux_calendar_beta}
|
@@ -1 +1 @@
|
|
1
|
-
import{r as t,h as s,H as i,g as o}from"./p-
|
1
|
+
import{r as t,h as s,H as i,g as o}from"./p-deca7631.js";import{t as r}from"./p-760e43cf.js";import{D as e,g as a}from"./p-f9c65a99.js";import{g as h}from"./p-2ba7be7a.js";import"./p-0962dd7a.js";const m=class{constructor(s){t(this,s),this.datetime=(new Date).toISOString(),this.format="short",this.timeZone=void 0}componentWillLoad(){r(this.root),this.formatter=new e(h(this.root))}render(){return s(i,null,this.formatter.formatDateTime(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)}))}get root(){return o(this)}};export{m as gux_date_time_beta}
|
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.0.0-beta.
|
10
|
+
export const COMPONENT_ASSETS_PATH = '/spark-components/build-assets/4.0.0-beta.45-60/genesys-webcomponents/';
|
11
11
|
// Default domain to load assets from
|
12
12
|
const DEFAULT_DOMAIN = 'mypurecloud.com';
|
13
13
|
// List of Genesys UI domains
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.0.0-beta.
|
1
|
+
export declare const COMPONENT_ASSETS_PATH = "/spark-components/build-assets/4.0.0-beta.45-60/genesys-webcomponents/";
|
2
2
|
export declare function registerElements(): void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "genesys-spark-components",
|
3
|
-
"version": "4.0.0-beta.
|
3
|
+
"version": "4.0.0-beta.45",
|
4
4
|
"description": "Common webcomponents",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "dist/stencil-wrapper.js",
|
@@ -60,35 +60,35 @@
|
|
60
60
|
"dependencies": {
|
61
61
|
"@floating-ui/dom": "1.4.3",
|
62
62
|
"@vvo/tzdb": "^6.108.0",
|
63
|
-
"google-libphonenumber": "^3.2.
|
64
|
-
"intl-messageformat": "^10.3
|
63
|
+
"google-libphonenumber": "^3.2.33",
|
64
|
+
"intl-messageformat": "^10.5.3",
|
65
65
|
"requestanimationframe-timer": "^3.0.3",
|
66
66
|
"sortablejs": "^1.15.0"
|
67
67
|
},
|
68
68
|
"devDependencies": {
|
69
|
-
"@babel/core": "^7.
|
70
|
-
"@babel/preset-env": "^7.
|
71
|
-
"@stencil/core": "^4.
|
72
|
-
"@stencil/react-output-target": "^0.3
|
73
|
-
"@stencil/sass": "^3.0.
|
69
|
+
"@babel/core": "^7.23.2",
|
70
|
+
"@babel/preset-env": "^7.23.2",
|
71
|
+
"@stencil/core": "^4.4.1",
|
72
|
+
"@stencil/react-output-target": "^0.5.3",
|
73
|
+
"@stencil/sass": "^3.0.6",
|
74
74
|
"@stencil/utils": "0.0.5",
|
75
|
-
"@types/google-libphonenumber": "^7.4.
|
75
|
+
"@types/google-libphonenumber": "^7.4.28",
|
76
76
|
"@types/jest": "^27.5.2",
|
77
77
|
"@types/new-relic-browser": "^0.1118.2",
|
78
78
|
"@types/puppeteer": "^5.4.7",
|
79
|
-
"@types/resize-observer-browser": "^0.1.
|
80
|
-
"@types/sortablejs": "^1.15.
|
81
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
82
|
-
"@typescript-eslint/parser": "^6.
|
79
|
+
"@types/resize-observer-browser": "^0.1.8",
|
80
|
+
"@types/sortablejs": "^1.15.3",
|
81
|
+
"@typescript-eslint/eslint-plugin": "^6.7.5",
|
82
|
+
"@typescript-eslint/parser": "^6.7.5",
|
83
83
|
"axe-core": "4.4.2",
|
84
84
|
"axe-live": "^1.0.1",
|
85
|
-
"eslint": "^8.
|
85
|
+
"eslint": "^8.51.0",
|
86
86
|
"eslint-config-genesys-spark-components": "file:../../shared-configs/eslint-config-genesys-spark-components",
|
87
|
-
"eslint-config-prettier": "^8.
|
87
|
+
"eslint-config-prettier": "^8.10.0",
|
88
88
|
"file-loader": "^6.2.0",
|
89
89
|
"genesys-spark-tokens": "file:../genesys-spark-tokens",
|
90
90
|
"glob": "^10.3.0",
|
91
|
-
"handlebars": "^4.7.
|
91
|
+
"handlebars": "^4.7.8",
|
92
92
|
"inquirer": "^9.2.7",
|
93
93
|
"jest": "^27.5.1",
|
94
94
|
"jest-cli": "^27.5.1",
|
@@ -97,31 +97,32 @@
|
|
97
97
|
"jest-junit": "^13.2.0",
|
98
98
|
"jest-silent-reporter": "^0.5.0",
|
99
99
|
"jsdom": "^22.1.0",
|
100
|
-
"lint-staged": "^13.
|
100
|
+
"lint-staged": "^13.3.0",
|
101
101
|
"marked": "^4.3.0",
|
102
102
|
"mutation-observer": "^1.0.3",
|
103
|
-
"node-fetch": "^3.3.
|
103
|
+
"node-fetch": "^3.3.2",
|
104
104
|
"npm-run-all": "^4.1.5",
|
105
105
|
"postcss-html": "^1.5.0",
|
106
106
|
"postcss-less": "^6.0.0",
|
107
|
-
"postcss-scss": "^4.0.
|
108
|
-
"prettier": "^3.0.
|
107
|
+
"postcss-scss": "^4.0.9",
|
108
|
+
"prettier": "^3.0.3",
|
109
109
|
"prettier-config-genesys-spark-components": "file:../../shared-configs/prettier-config-genesys-spark-components",
|
110
110
|
"prettier-package-json": "^2.8.0",
|
111
111
|
"puppeteer": "^14.4.1",
|
112
|
-
"
|
112
|
+
"resize-observer-polyfill": "^1.5.1",
|
113
|
+
"rollup-plugin-copy": "^3.5.0",
|
113
114
|
"semver-sort": "^1.0.0",
|
114
115
|
"spritesheet-templates": "^10.5.2",
|
115
116
|
"spritesmith": "^3.4.1",
|
116
|
-
"stylelint": "^15.10.
|
117
|
+
"stylelint": "^15.10.3",
|
117
118
|
"stylelint-config-genesys-spark-components": "file:../../shared-configs/stylelint-config-genesys-spark-components",
|
118
119
|
"stylelint-config-html": "^1.1.0",
|
119
120
|
"stylelint-config-recess-order": "^4.3.0",
|
120
121
|
"stylelint-config-standard": "^34.0.0",
|
121
122
|
"stylelint-scss": "^5.2.1",
|
122
123
|
"svgo": "^3.0.2",
|
123
|
-
"ts-loader": "^9.
|
124
|
-
"typescript": "^4.9.
|
124
|
+
"ts-loader": "^9.5.0",
|
125
|
+
"typescript": "^4.9.5",
|
125
126
|
"weekstart": "^2.0.0",
|
126
127
|
"xmldom": "^0.6.0"
|
127
128
|
},
|
@@ -1 +0,0 @@
|
|
1
|
-
import{g as n}from"./p-ed724d66.js";function t(){return(t,e)=>{const{connectedCallback:i,disconnectedCallback:s}=t,c=new Map;t.connectedCallback=function(){const t=new ResizeObserver(this[e].bind(this));return function(t,e,i){t.has(e)&&t.get(e).disconnect(),t.set(e,i),i.observe(n(e))}(c,this,t),i&&i.call(this)},t.disconnectedCallback=function(){return function(n,t){n.has(t)&&n.get(t).disconnect(),n.delete(t)}(c,this),s&&s.call(this)}}}export{t as O}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,h as s,H as o,g as r}from"./p-ed724d66.js";import{t as i}from"./p-4281155a.js";import{D as e,g as a}from"./p-7a100b8c.js";import{g as h}from"./p-52e27c60.js";import"./p-0962dd7a.js";const n=class{constructor(s){t(this,s),this.datetime=(new Date).toISOString(),this.format="short",this.timeZone=void 0}componentWillLoad(){i(this.root),this.formatter=new e(h(this.root))}render(){return s(o,null,this.formatter.formatDate(new Date(this.datetime),this.format,{timeZone:a(this.timeZone)}))}get root(){return r(this)}};export{n as gux_date_beta}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{a as t}from"./p-ed724d66.js";import{g as r}from"./p-0962dd7a.js";var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])},e(t,r)};function n(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var h,i,s,a=function(){return a=Object.assign||function(t){for(var r,e=1,n=arguments.length;e<n;e++)for(var h in r=arguments[e])Object.prototype.hasOwnProperty.call(r,h)&&(t[h]=r[h]);return t},a.apply(this,arguments)};function o(t,r,e){if(e||2===arguments.length)for(var n,h=0,i=r.length;h<i;h++)!n&&h in r||(n||(n=Array.prototype.slice.call(r,0,h)),n[h]=r[h]);return t.concat(n||Array.prototype.slice.call(r))}function u(t){return t.type===i.literal}function c(t){return t.type===i.argument}function f(t){return t.type===i.number}function l(t){return t.type===i.date}function H(t){return t.type===i.time}function B(t){return t.type===i.select}function b(t){return t.type===i.plural}function v(t){return t.type===i.pound}function p(t){return t.type===i.tag}function E(t){return!(!t||"object"!=typeof t||t.type!==s.number)}function d(t){return!(!t||"object"!=typeof t||t.type!==s.dateTime)}"function"==typeof SuppressedError&&SuppressedError,function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(h||(h={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(i||(i={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(s||(s={}));var g=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,y=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function m(t){var r={};return t.replace(y,(function(t){var e=t.length;switch(t[0]){case"G":r.era=4===e?"long":5===e?"narrow":"short";break;case"y":r.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":r.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":r.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":r.weekday=4===e?"short":5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");r.weekday=["short","long","narrow","short"][e-4];break;case"a":r.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":r.hourCycle="h12",r.hour=["numeric","2-digit"][e-1];break;case"H":r.hourCycle="h23",r.hour=["numeric","2-digit"][e-1];break;case"K":r.hourCycle="h11",r.hour=["numeric","2-digit"][e-1];break;case"k":r.hourCycle="h24",r.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":r.minute=["numeric","2-digit"][e-1];break;case"s":r.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":r.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),r}var w=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,T=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,A=/^(@+)?(\+|#+)?[rs]?$/g,S=/(\*)(0+)|(#+)(0+)|(0+)/g,_=/^(0+)$/;function N(t){var r={};return"r"===t[t.length-1]?r.roundingPriority="morePrecision":"s"===t[t.length-1]&&(r.roundingPriority="lessPrecision"),t.replace(A,(function(t,e,n){return"string"!=typeof n?(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length):"+"===n?r.minimumSignificantDigits=e.length:"#"===e[0]?r.maximumSignificantDigits=e.length:(r.minimumSignificantDigits=e.length,r.maximumSignificantDigits=e.length+("string"==typeof n?n.length:0)),""})),r}function I(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function R(t){var r;if("E"===t[0]&&"E"===t[1]?(r={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(r={notation:"scientific"},t=t.slice(1)),r){var e=t.slice(0,2);if("+!"===e?(r.signDisplay="always",t=t.slice(2)):"+?"===e&&(r.signDisplay="exceptZero",t=t.slice(2)),!_.test(t))throw new Error("Malformed concise eng/scientific notation");r.minimumIntegerDigits=t.length}return r}function M(t){return I(t)||{}}function L(t){for(var r={},e=0,n=t;e<n.length;e++){var h=n[e];switch(h.stem){case"percent":case"%":r.style="percent";continue;case"%x100":r.style="percent",r.scale=100;continue;case"currency":r.style="currency",r.currency=h.options[0];continue;case"group-off":case",_":r.useGrouping=!1;continue;case"precision-integer":case".":r.maximumFractionDigits=0;continue;case"measure-unit":case"unit":r.style="unit",r.unit=h.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":r.notation="compact",r.compactDisplay="short";continue;case"compact-long":case"KK":r.notation="compact",r.compactDisplay="long";continue;case"scientific":r=a(a(a({},r),{notation:"scientific"}),h.options.reduce((function(t,r){return a(a({},t),M(r))}),{}));continue;case"engineering":r=a(a(a({},r),{notation:"engineering"}),h.options.reduce((function(t,r){return a(a({},t),M(r))}),{}));continue;case"notation-simple":r.notation="standard";continue;case"unit-width-narrow":r.currencyDisplay="narrowSymbol",r.unitDisplay="narrow";continue;case"unit-width-short":r.currencyDisplay="code",r.unitDisplay="short";continue;case"unit-width-full-name":r.currencyDisplay="name",r.unitDisplay="long";continue;case"unit-width-iso-code":r.currencyDisplay="symbol";continue;case"scale":r.scale=parseFloat(h.options[0]);continue;case"integer-width":if(h.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");h.options[0].replace(S,(function(t,e,n,h,i,s){if(e)r.minimumIntegerDigits=n.length;else{if(h&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(_.test(h.stem))r.minimumIntegerDigits=h.stem.length;else if(T.test(h.stem)){if(h.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");h.stem.replace(T,(function(t,e,n,h,i,s){return"*"===n?r.minimumFractionDigits=e.length:h&&"#"===h[0]?r.maximumFractionDigits=h.length:i&&s?(r.minimumFractionDigits=i.length,r.maximumFractionDigits=i.length+s.length):(r.minimumFractionDigits=e.length,r.maximumFractionDigits=e.length),""}));var i=h.options[0];"w"===i?r=a(a({},r),{trailingZeroDisplay:"stripIfInteger"}):i&&(r=a(a({},r),N(i)))}else if(A.test(h.stem))r=a(a({},r),N(h.stem));else{var s=I(h.stem);s&&(r=a(a({},r),s));var o=R(h.stem);o&&(r=a(a({},r),o))}}return r}var C,O={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function G(t){var r=t.hourCycle;if(void 0===r&&t.hourCycles&&t.hourCycles.length&&(r=t.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var e,n=t.language;return"root"!==n&&(e=t.maximize().region),(O[e||""]||O[n||""]||O["".concat(n,"-001")]||O["001"])[0]}var U=new RegExp("^".concat(g.source,"*")),P=new RegExp("".concat(g.source,"*$"));function k(t,r){return{start:t,end:r}}var D=!!String.prototype.startsWith,F=!!String.fromCodePoint,j=!!Object.fromEntries,K=!!String.prototype.codePointAt,V=!!String.prototype.trimStart,Z=!!String.prototype.trimEnd,x=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},X=!0;try{X="a"===(null===(C=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===C?void 0:C[0])}catch(t){X=!1}var Y,W=D?function(t,r,e){return t.startsWith(r,e)}:function(t,r,e){return t.slice(e,e+r.length)===r},z=F?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var e,n="",h=t.length,i=0;h>i;){if((e=t[i++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(55296+((e-=65536)>>10),e%1024+56320)}return n},J=j?Object.fromEntries:function(t){for(var r={},e=0,n=t;e<n.length;e++){var h=n[e];r[h[0]]=h[1]}return r},Q=K?function(t,r){return t.codePointAt(r)}:function(t,r){var e=t.length;if(!(r<0||r>=e)){var n,h=t.charCodeAt(r);return h<55296||h>56319||r+1===e||(n=t.charCodeAt(r+1))<56320||n>57343?h:n-56320+(h-55296<<10)+65536}},$=V?function(t){return t.trimStart()}:function(t){return t.replace(U,"")},q=Z?function(t){return t.trimEnd()}:function(t){return t.replace(P,"")};function tt(t,r){return new RegExp(t,r)}if(X){var rt=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Y=function(t,r){var e;return rt.lastIndex=r,null!==(e=rt.exec(t)[1])&&void 0!==e?e:""}}else Y=function(t,r){for(var e=[];;){var n=Q(t,r);if(void 0===n||ht(n)||it(n))break;e.push(n),r+=n>=65536?2:1}return z.apply(void 0,e)};var et=function(){function t(t,r){void 0===r&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,r,e){for(var n=[];!this.isEOF();){var s=this.char();if(123===s){if((a=this.parseArgument(t,e)).err)return a;n.push(a.val)}else{if(125===s&&t>0)break;if(35!==s||"plural"!==r&&"selectordinal"!==r){if(60===s&&!this.ignoreTag&&47===this.peek()){if(e)break;return this.error(h.UNMATCHED_CLOSING_TAG,k(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&nt(this.peek()||0)){if((a=this.parseTag(t,r)).err)return a;n.push(a.val)}else{var a;if((a=this.parseLiteral(t,r)).err)return a;n.push(a.val)}}else{var o=this.clonePosition();this.bump(),n.push({type:i.pound,location:k(o,this.clonePosition())})}}}return{val:n,err:null}},t.prototype.parseTag=function(t,r){var e=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:i.literal,value:"<".concat(n,"/>"),location:k(e,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!nt(this.char()))return this.error(h.INVALID_TAG,k(o,this.clonePosition()));var u=this.clonePosition();return n!==this.parseTagName()?this.error(h.UNMATCHED_CLOSING_TAG,k(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:i.tag,value:n,children:a,location:k(e,this.clonePosition())},err:null}:this.error(h.INVALID_TAG,k(o,this.clonePosition())))}return this.error(h.UNCLOSED_TAG,k(e,this.clonePosition()))}return this.error(h.INVALID_TAG,k(e,this.clonePosition()))},t.prototype.parseTagName=function(){var t,r=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(r,this.offset())},t.prototype.parseLiteral=function(t,r){for(var e=this.clonePosition(),n="";;){var h=this.tryParseQuote(r);if(h)n+=h;else{var s=this.tryParseUnquoted(t,r);if(s)n+=s;else{var a=this.tryParseLeftAngleBracket();if(!a)break;n+=a}}}var o=k(e,this.clonePosition());return{val:{type:i.literal,value:n,location:o},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(nt(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var e=this.char();if(39===e){if(39!==this.peek()){this.bump();break}r.push(39),this.bump()}else r.push(e);this.bump()}return z.apply(void 0,r)},t.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var e=this.char();return 60===e||123===e||35===e&&("plural"===r||"selectordinal"===r)||125===e&&t>0?null:(this.bump(),z(e))},t.prototype.parseArgument=function(t,r){var e=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,k(e,this.clonePosition()));if(125===this.char())return this.bump(),this.error(h.EMPTY_ARGUMENT,k(e,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(h.MALFORMED_ARGUMENT,k(e,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,k(e,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:i.argument,value:n,location:k(e,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,k(e,this.clonePosition())):this.parseArgumentOptions(t,r,n,e);default:return this.error(h.MALFORMED_ARGUMENT,k(e,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),e=Y(this.message,r);return this.bumpTo(r+e.length),{value:e,location:k(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,r,e,n){var o,u=this.clonePosition(),c=this.parseIdentifierIfPossible().value,f=this.clonePosition();switch(c){case"":return this.error(h.EXPECT_ARGUMENT_TYPE,k(u,f));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var H=this.clonePosition();if((y=this.parseSimpleArgStyleIfPossible()).err)return y;if(0===(p=q(y.val)).length)return this.error(h.EXPECT_ARGUMENT_STYLE,k(this.clonePosition(),this.clonePosition()));l={style:p,styleLocation:k(H,this.clonePosition())}}if((w=this.tryParseArgumentClose(n)).err)return w;var B=k(n,this.clonePosition());if(l&&W(null==l?void 0:l.style,"::",0)){var b=$(l.style.slice(2));if("number"===c)return(y=this.parseNumberSkeletonFromString(b,l.styleLocation)).err?y:{val:{type:i.number,value:e,location:B,style:y.val},err:null};if(0===b.length)return this.error(h.EXPECT_DATE_TIME_SKELETON,B);var v=b;this.locale&&(v=function(t,r){for(var e="",n=0;n<t.length;n++){var h=t.charAt(n);if("j"===h){for(var i=0;n+1<t.length&&t.charAt(n+1)===h;)i++,n++;var s=1+(1&i),a=i<2?1:3+(i>>1),o=G(r);for("H"!=o&&"k"!=o||(a=0);a-- >0;)e+="a";for(;s-- >0;)e=o+e}else e+="J"===h?"H":h}return e}(b,this.locale));var p={type:s.dateTime,pattern:v,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?m(v):{}};return{val:{type:"date"===c?i.date:i.time,value:e,location:B,style:p},err:null}}return{val:{type:"number"===c?i.number:"date"===c?i.date:i.time,value:e,location:B,style:null!==(o=null==l?void 0:l.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var E=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(h.EXPECT_SELECT_ARGUMENT_OPTIONS,k(E,a({},E)));this.bumpSpace();var d=this.parseIdentifierIfPossible(),g=0;if("select"!==c&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(h.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,k(this.clonePosition(),this.clonePosition()));var y;if(this.bumpSpace(),(y=this.tryParseDecimalInteger(h.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,h.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return y;this.bumpSpace(),d=this.parseIdentifierIfPossible(),g=y.val}var w,T=this.tryParsePluralOrSelectOptions(t,c,r,d);if(T.err)return T;if((w=this.tryParseArgumentClose(n)).err)return w;var A=k(n,this.clonePosition());return"select"===c?{val:{type:i.select,value:e,options:J(T.val),location:A},err:null}:{val:{type:i.plural,value:e,options:J(T.val),offset:g,pluralType:"plural"===c?"cardinal":"ordinal",location:A},err:null};default:return this.error(h.INVALID_ARGUMENT_TYPE,k(u,f))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,k(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(h.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,k(e,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(r.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(r.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,r){var e=[];try{e=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var r=[],e=0,n=t.split(w).filter((function(t){return t.length>0}));e<n.length;e++){var h=n[e].split("/");if(0===h.length)throw new Error("Invalid number skeleton");for(var i=h[0],s=h.slice(1),a=0,o=s;a<o.length;a++)if(0===o[a].length)throw new Error("Invalid number skeleton");r.push({stem:i,options:s})}return r}(t)}catch(t){return this.error(h.INVALID_NUMBER_SKELETON,r)}return{val:{type:s.number,tokens:e,location:r,parsedOptions:this.shouldParseSkeletons?L(e):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,r,e,n){for(var i,s=!1,a=[],o=new Set,u=n.value,c=n.location;;){if(0===u.length){var f=this.clonePosition();if("select"===r||!this.bumpIf("="))break;var l=this.tryParseDecimalInteger(h.EXPECT_PLURAL_ARGUMENT_SELECTOR,h.INVALID_PLURAL_ARGUMENT_SELECTOR);if(l.err)return l;c=k(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}if(o.has(u))return this.error("select"===r?h.DUPLICATE_SELECT_ARGUMENT_SELECTOR:h.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===u&&(s=!0),this.bumpSpace();var H=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===r?h.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:h.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,k(this.clonePosition(),this.clonePosition()));var B=this.parseMessage(t+1,r,e);if(B.err)return B;var b=this.tryParseArgumentClose(H);if(b.err)return b;a.push([u,{value:B.val,location:k(H,this.clonePosition())}]),o.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===a.length?this.error("select"===r?h.EXPECT_SELECT_ARGUMENT_SELECTOR:h.EXPECT_PLURAL_ARGUMENT_SELECTOR,k(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(h.MISSING_OTHER_CLAUSE,k(this.clonePosition(),this.clonePosition())):{val:a,err:null}},t.prototype.tryParseDecimalInteger=function(t,r){var e=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(e=-1);for(var h=!1,i=0;!this.isEOF();){var s=this.char();if(!(s>=48&&s<=57))break;h=!0,i=10*i+(s-48),this.bump()}var a=k(n,this.clonePosition());return h?x(i*=e)?{val:i,err:null}:this.error(r,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Q(this.message,t);if(void 0===r)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},t.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(W(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var r=this.offset(),e=this.message.indexOf(t,r);return e>=0?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ht(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),e=this.message.charCodeAt(r+(t>=65536?2:1));return null!=e?e:null},t}();function nt(t){return t>=97&&t<=122||t>=65&&t<=90}function ht(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function it(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function st(t){t.forEach((function(t){if(delete t.location,B(t)||b(t))for(var r in t.options)delete t.options[r].location,st(t.options[r].value);else f(t)&&E(t.style)||(l(t)||H(t))&&d(t.style)?delete t.style.location:p(t)&&st(t.children)}))}function at(t,r){void 0===r&&(r={}),r=a({shouldParseSkeletons:!0,requiresOtherClause:!0},r);var e=new et(t,r).parse();if(e.err){var n=SyntaxError(h[e.err.kind]);throw n.location=e.err.location,n.originalMessage=e.err.message,n}return(null==r?void 0:r.captureLocation)||st(e.val),e.val}function ot(t,r){return(r&&r.strategy?r.strategy:lt)(t,{cache:r&&r.cache?r.cache:vt,serializer:r&&r.serializer?r.serializer:Ht})}function ut(t,r,e,n){var h,i=null==(h=n)||"number"==typeof h||"boolean"==typeof h?n:e(n),s=r.get(i);return void 0===s&&(s=t.call(this,n),r.set(i,s)),s}function ct(t,r,e){var n=Array.prototype.slice.call(arguments,3),h=e(n),i=r.get(h);return void 0===i&&(i=t.apply(this,n),r.set(h,i)),i}function ft(t,r,e,n,h){return e.bind(r,t,n,h)}function lt(t,r){return ft(t,this,1===t.length?ut:ct,r.cache.create(),r.serializer)}var Ht=function(){return JSON.stringify(arguments)};function Bt(){this.cache=Object.create(null)}Bt.prototype.get=function(t){return this.cache[t]},Bt.prototype.set=function(t,r){this.cache[t]=r};var bt,vt={create:function(){return new Bt}},pt={variadic:function(t,r){return ft(t,this,ct,r.cache.create(),r.serializer)},monadic:function(t,r){return ft(t,this,ut,r.cache.create(),r.serializer)}};!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(bt||(bt={}));var Et,dt=function(t){function r(r,e,n){var h=t.call(this,r)||this;return h.code=e,h.originalMessage=n,h}return n(r,t),r.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},r}(Error),gt=function(t){function r(r,e,n,h){return t.call(this,'Invalid values for "'.concat(r,'": "').concat(e,'". Options are "').concat(Object.keys(n).join('", "'),'"'),bt.INVALID_VALUE,h)||this}return n(r,t),r}(dt),yt=function(t){function r(r,e,n){return t.call(this,'Value for "'.concat(r,'" must be of type ').concat(e),bt.INVALID_VALUE,n)||this}return n(r,t),r}(dt),mt=function(t){function r(r,e){return t.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(e,'"'),bt.MISSING_VALUE,e)||this}return n(r,t),r}(dt);function wt(t){return"function"==typeof t}function Tt(t,r,e,n,h,i,s){if(1===t.length&&u(t[0]))return[{type:Et.literal,value:t[0].value}];for(var a=[],o=0,g=t;o<g.length;o++){var y=g[o];if(u(y))a.push({type:Et.literal,value:y.value});else if(v(y))"number"==typeof i&&a.push({type:Et.literal,value:e.getNumberFormat(r).format(i)});else{var m=y.value;if(!h||!(m in h))throw new mt(m,s);var w=h[m];if(c(y))w&&"string"!=typeof w&&"number"!=typeof w||(w="string"==typeof w||"number"==typeof w?String(w):""),a.push({type:"string"==typeof w?Et.literal:Et.object,value:w});else if(l(y)){var T="string"==typeof y.style?n.date[y.style]:d(y.style)?y.style.parsedOptions:void 0;a.push({type:Et.literal,value:e.getDateTimeFormat(r,T).format(w)})}else if(H(y))T="string"==typeof y.style?n.time[y.style]:d(y.style)?y.style.parsedOptions:n.time.medium,a.push({type:Et.literal,value:e.getDateTimeFormat(r,T).format(w)});else if(f(y))(T="string"==typeof y.style?n.number[y.style]:E(y.style)?y.style.parsedOptions:void 0)&&T.scale&&(w*=T.scale||1),a.push({type:Et.literal,value:e.getNumberFormat(r,T).format(w)});else{if(p(y)){var A=y.children,S=y.value,_=h[S];if(!wt(_))throw new yt(S,"function",s);var N=_(Tt(A,r,e,n,h,i).map((function(t){return t.value})));Array.isArray(N)||(N=[N]),a.push.apply(a,N.map((function(t){return{type:"string"==typeof t?Et.literal:Et.object,value:t}})))}if(B(y)){if(!(I=y.options[w]||y.options.other))throw new gt(y.value,w,Object.keys(y.options),s);a.push.apply(a,Tt(I.value,r,e,n,h))}else if(b(y)){var I;if(!(I=y.options["=".concat(w)])){if(!Intl.PluralRules)throw new dt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',bt.MISSING_INTL_API,s);var R=e.getPluralRules(r,{type:y.pluralType}).select(w-(y.offset||0));I=y.options[R]||y.options.other}if(!I)throw new gt(y.value,w,Object.keys(y.options),s);a.push.apply(a,Tt(I.value,r,e,n,h,w-(y.offset||0)))}}}}return(M=a).length<2?M:M.reduce((function(t,r){var e=t[t.length-1];return e&&e.type===Et.literal&&r.type===Et.literal?e.value+=r.value:t.push(r),t}),[]);var M}function At(t){return{create:function(){return{get:function(r){return t[r]},set:function(r,e){t[r]=e}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Et||(Et={}));var St=function(){function t(r,e,n,h){void 0===e&&(e=t.defaultLocale);var i,s,u,c=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var r=c.formatToParts(t);if(1===r.length)return r[0].value;var e=r.reduce((function(t,r){return t.length&&r.type===Et.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=r.value:t.push(r.value),t}),[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(t){return Tt(c.ast,c.locales,c.formatters,c.formats,t,void 0,c.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=c.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(c.locales)[0]}},this.getAst=function(){return c.ast},this.locales=e,this.resolvedLocale=t.resolveLocale(e),"string"==typeof r){if(this.message=r,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var f=function(t,r){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.indexOf(n)<0&&(e[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var h=0;for(n=Object.getOwnPropertySymbols(t);h<n.length;h++)r.indexOf(n[h])<0&&Object.prototype.propertyIsEnumerable.call(t,n[h])&&(e[n[h]]=t[n[h]])}return e}(h||{},["formatters"]);this.ast=t.__parse(r,a(a({},f),{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(s=t.formats,(u=n)?Object.keys(s).reduce((function(t,r){var e,n;return t[r]=(e=s[r],(n=u[r])?a(a(a({},e||{}),n||{}),Object.keys(e).reduce((function(t,r){return t[r]=a(a({},e[r]),n[r]||{}),t}),{})):e),t}),a({},s)):s),this.formatters=h&&h.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ot((function(){for(var t,r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return new((t=Intl.NumberFormat).bind.apply(t,o([void 0],r,!1)))}),{cache:At(i.number),strategy:pt.variadic}),getDateTimeFormat:ot((function(){for(var t,r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return new((t=Intl.DateTimeFormat).bind.apply(t,o([void 0],r,!1)))}),{cache:At(i.dateTime),strategy:pt.variadic}),getPluralRules:ot((function(){for(var t,r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return new((t=Intl.PluralRules).bind.apply(t,o([void 0],r,!1)))}),{cache:At(i.pluralRules),strategy:pt.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(void 0!==Intl.Locale){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=at,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const _t={},Nt=["ar","cs","da","de","en","es-es","es","fi","fr-ca","fr","he","it","ja","ko","nl","no","pl","pt-br","pt-pt","ru","sv","th","tr","uk","zh-cn","zh-tw"],It={ar:6,cs:1,da:1,de:1,en:0,"es-es":1,es:1,fi:1,"fr-ca":0,fr:1,he:0,it:1,ja:0,ko:0,nl:1,no:1,pl:1,"pt-br":0,"pt-pt":0,ru:1,sv:1,th:0,tr:1,uk:1,"zh-cn":1,"zh-tw":0},Rt="en";async function Mt(r,e,n){let h=e,i="en";void 0!==r&&(i=Lt(r),h=await async function(r,e,n,h){const i=h||r.tagName.toLocaleLowerCase().replace(/-beta$/,"");let s;if(r["i18n-resources"])s=r["i18n-resources"];else if(n!==Rt)try{s=await(async(r,e)=>{if(!_t[e]){const r=((r="en")=>t(`i18n/genesys-webcomponents.i18n.${r}.json`))(e),n=await fetch(r),h=await n.json();_t[e]=h}return _t[e][r]})(i,n)}catch(t){s=null}return s||(s=e),s}(r,e,i,n));const s=Object.entries(h).reduce(((t,[r,e])=>(t.set(r,new St(e,i)),t)),new Map),a=Object.entries(e).reduce(((t,[r,e])=>(t.set(r,new St(e,Rt)),t)),new Map);return(t,r)=>{var e,n;let h=null===(e=s.get(t))||void 0===e?void 0:e.format(r);return h||(h=null===(n=a.get(t))||void 0===n?void 0:n.format(r),console.warn(`No localized string available for "${t}-${h}" for "${i}" locale. Falling back to English translation.`)),h}}function Lt(t){const e=function(t){const e=r("[lang]",t);return e&&e.lang?e.lang.toLowerCase():Rt}(t),n=e.split(/[_-]/)[0];return Nt.indexOf(e)>=0?e:Nt.indexOf(n)>=0?n:Rt}function Ct(t=Rt){return It[t]?It[t]:It[Rt]}export{Ct as a,Mt as b,Lt as g,Nt as l}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,c as s,h as e,g as o}from"./p-ed724d66.js";import{b as i}from"./p-52e27c60.js";import{r as l}from"./p-3ea0d493.js";import{t as r}from"./p-408d5857.js";import"./p-0962dd7a.js";const h=class{constructor(e){t(this,e),this.internalrowselectchange=s(this,"internalrowselectchange",7),this.id=l("gux-row-select"),this.selected=!1,this.disabled=void 0}onCheck(t){t.stopPropagation(),this.internalrowselectchange.emit(this.inputElement.checked)}async componentWillLoad(){this.i18n=await i(this.root,r,"gux-table")}render(){return e("gux-form-field-checkbox",null,e("input",{ref:t=>this.inputElement=t,slot:"input",id:this.id,type:"checkbox",checked:this.selected,disabled:this.disabled}),e("label",{slot:"label",htmlFor:this.id},"",e("span",{class:"gux-label-text"},this.i18n("selectTableRow"))))}get root(){return o(this)}};h.style=":host .gux-label-text{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{h as gux_row_select}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{g as n}from"./p-ed724d66.js";function t(t){return(i,c)=>{const{connectedCallback:e,disconnectedCallback:o}=i,s=new Map;i.connectedCallback=function(){const i=new MutationObserver(this[c].bind(this));return function(t,i,c,e){t.has(i)&&t.get(i).disconnect(),t.set(i,c),c.observe(n(i),e)}(s,this,i,t),e&&e.call(this)},i.disconnectedCallback=function(){return function(n,t){n.has(t)&&n.get(t).disconnect(),n.delete(t)}(s,this),o&&o.call(this)}}}export{t as O}
|
@@ -1 +0,0 @@
|
|
1
|
-
import{r as t,h as o,g as s}from"./p-ed724d66.js";import{t as r}from"./p-4281155a.js";const e=class{constructor(o){t(this,o)}componentWillLoad(){r(this.root)}render(){return o("span",{class:"gux-sr-only"},o("slot",null))}get root(){return s(this)}};e.style=".gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{e as gux_screen_reader_beta}
|