genesys-spark-components 4.11.0 → 4.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{get-valid-timezone-6bacb49d.js → get-valid-timezone-7b76b3df.js} +65 -0
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-badge.cjs.entry.js +1 -1
- package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
- package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
- package/dist/cjs/gux-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
- package/dist/cjs/gux-card.cjs.entry.js +1 -1
- package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
- package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
- package/dist/cjs/gux-date-beta.cjs.entry.js +24 -6
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +25 -6
- package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-number_3.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-icon.cjs.entry.js +1 -1
- package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
- package/dist/cjs/gux-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
- package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-modal.cjs.entry.js +1 -1
- package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
- package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
- package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
- package/dist/cjs/gux-rating.cjs.entry.js +1 -1
- package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
- package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
- package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/gux-table.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
- package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gux-tag.cjs.entry.js +1 -1
- package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-beta.cjs.entry.js +24 -6
- package/dist/cjs/gux-time-picker.cjs.entry.js +1 -1
- package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-toast.cjs.entry.js +1 -1
- package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
- package/dist/cjs/gux-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/{usage-f48ab811.js → usage-e6a30d60.js} +3 -2
- package/dist/collection/components/beta/gux-date/gux-date.js +25 -4
- package/dist/collection/components/beta/gux-date-time/gux-date-time.js +26 -4
- package/dist/collection/components/beta/gux-time/gux-time.js +25 -4
- package/dist/collection/genesys-spark-utils/intl.js +80 -0
- package/dist/collection/i18n/check-regional-dates-cookie.js +5 -0
- package/dist/deploy-info.json +3 -3
- package/dist/esm/{get-valid-timezone-b9060a4c.js → get-valid-timezone-eb98c51d.js} +63 -1
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-badge.entry.js +1 -1
- package/dist/esm/gux-blank-state.entry.js +1 -1
- package/dist/esm/gux-breadcrumbs.entry.js +1 -1
- package/dist/esm/gux-button-multi.entry.js +1 -1
- package/dist/esm/gux-button-slot.entry.js +1 -1
- package/dist/esm/gux-button.entry.js +1 -1
- package/dist/esm/gux-calendar.entry.js +1 -1
- package/dist/esm/gux-card.entry.js +1 -1
- package/dist/esm/gux-column-manager.entry.js +1 -1
- package/dist/esm/gux-content-search.entry.js +1 -1
- package/dist/esm/gux-context-menu.entry.js +1 -1
- package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
- package/dist/esm/gux-date-beta.entry.js +24 -6
- package/dist/esm/gux-date-time-beta.entry.js +25 -6
- package/dist/esm/gux-datepicker.entry.js +1 -1
- package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
- package/dist/esm/gux-dismiss-button.entry.js +1 -1
- package/dist/esm/gux-dropdown-multi.entry.js +1 -1
- package/dist/esm/gux-dropdown_3.entry.js +1 -1
- package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
- package/dist/esm/gux-flyout-menu.entry.js +1 -1
- package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
- package/dist/esm/gux-form-field-color.entry.js +1 -1
- package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
- package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
- package/dist/esm/gux-form-field-number_3.entry.js +1 -1
- package/dist/esm/gux-form-field-phone.entry.js +1 -1
- package/dist/esm/gux-form-field-radio.entry.js +1 -1
- package/dist/esm/gux-form-field-range.entry.js +1 -1
- package/dist/esm/gux-form-field-search.entry.js +1 -1
- package/dist/esm/gux-form-field-select.entry.js +1 -1
- package/dist/esm/gux-form-field-text-like.entry.js +1 -1
- package/dist/esm/gux-form-field-textarea.entry.js +1 -1
- package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
- package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
- package/dist/esm/gux-icon.entry.js +1 -1
- package/dist/esm/gux-inline-alert.entry.js +1 -1
- package/dist/esm/gux-list.entry.js +1 -1
- package/dist/esm/gux-listbox-multi.entry.js +1 -1
- package/dist/esm/gux-loading-message.entry.js +1 -1
- package/dist/esm/gux-modal-legacy.entry.js +1 -1
- package/dist/esm/gux-modal.entry.js +1 -1
- package/dist/esm/gux-month-picker-beta.entry.js +1 -1
- package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
- package/dist/esm/gux-pagination-cursor.entry.js +1 -1
- package/dist/esm/gux-pagination-legacy.entry.js +1 -1
- package/dist/esm/gux-pagination.entry.js +1 -1
- package/dist/esm/gux-phone-input-beta.entry.js +1 -1
- package/dist/esm/gux-popover-list.entry.js +1 -1
- package/dist/esm/gux-radial-loading.entry.js +1 -1
- package/dist/esm/gux-radial-progress.entry.js +1 -1
- package/dist/esm/gux-rating.entry.js +1 -1
- package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
- package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
- package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
- package/dist/esm/gux-sort-control.entry.js +1 -1
- package/dist/esm/gux-switch-legacy.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
- package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
- package/dist/esm/gux-table-toolbar.entry.js +1 -1
- package/dist/esm/gux-table.entry.js +1 -1
- package/dist/esm/gux-tabs-advanced.entry.js +1 -1
- package/dist/esm/gux-tabs.entry.js +1 -1
- package/dist/esm/gux-tag.entry.js +1 -1
- package/dist/esm/gux-text-highlight.entry.js +1 -1
- package/dist/esm/gux-time-beta.entry.js +24 -6
- package/dist/esm/gux-time-picker.entry.js +1 -1
- package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
- package/dist/esm/gux-toast.entry.js +1 -1
- package/dist/esm/gux-toggle.entry.js +1 -1
- package/dist/esm/gux-tooltip.entry.js +1 -1
- package/dist/esm/{usage-5cd5d07c.js → usage-d5e34af8.js} +3 -2
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-25f7e034.entry.js → p-017fc656.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bdc61c5d.entry.js → p-04d09ddd.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-0b10b006.entry.js +1 -0
- package/dist/genesys-webcomponents/p-0ba9ddca.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-2b6ea144.entry.js → p-0d818ff1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-334b44e2.entry.js → p-0f6dbee6.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-705bf87c.entry.js → p-0f96aa9c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1eff7c2b.entry.js → p-11c3eb77.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-65d42af8.entry.js → p-15b186ef.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4be71fca.entry.js → p-16994bf5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-096a84e0.entry.js → p-1eb57ca9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d6b7e2d1.entry.js → p-210e28aa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ad4bf364.entry.js → p-292a5ef7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8f9a7a31.entry.js → p-292ff770.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e36ea3e5.entry.js → p-29ceca28.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-2c9eae58.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-63eccb05.entry.js → p-3033cd01.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f52d3445.entry.js → p-33f65c90.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-80b3d787.entry.js → p-38cf7ff5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8ba11e49.entry.js → p-39d7c064.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0a728685.entry.js → p-43b95c5f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-237ebd2f.entry.js → p-493636ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0e366a60.entry.js → p-4d35ccd8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c4a16836.entry.js → p-5351cde8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7b44b6e6.entry.js → p-5369f04c.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-53968d5e.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-b6869cba.entry.js → p-5672c9c4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1cfd779f.entry.js → p-5e72d094.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-615e6966.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-316bc39d.entry.js → p-66fe1c3e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-04fc9217.entry.js → p-67671413.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2c9afcca.entry.js → p-69487fc5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-086cd6ae.entry.js → p-6de80fba.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9ccdb4b5.entry.js → p-7272801f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-786b1f9b.js → p-75e3aeda.js} +1 -1
- package/dist/genesys-webcomponents/{p-9cbe53f1.entry.js → p-79b106f5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6c3b7f82.entry.js → p-7de5c93a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0281c041.entry.js → p-807bbeda.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-433ce012.entry.js → p-851ed48c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ee9fc1f9.entry.js → p-857b9d95.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d14be308.entry.js → p-8586a081.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f1f3a7ad.entry.js → p-86b2ab34.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8e264a1d.entry.js → p-881481d0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ca3c670c.entry.js → p-8dbf02f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bd568e75.entry.js → p-9612ab3a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-21437132.entry.js → p-9656d044.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5721064e.entry.js → p-965e1fc8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a17204ac.entry.js → p-9e30caf9.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ea9cb10f.entry.js → p-9f348758.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9e2d0f43.entry.js → p-a1384a94.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-11b37ec5.entry.js → p-a17dc7ad.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c83f0a2a.entry.js → p-a2dcefce.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3fd2a666.entry.js → p-a3f82c25.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d4308ff2.entry.js → p-a86f5b7a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-68a4065d.entry.js → p-b0d6e837.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9ebb2336.entry.js → p-b6469dcb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-639d4572.entry.js → p-b6ac37c5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a8b90657.entry.js → p-be6dc29b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-14d10893.entry.js → p-bff2a880.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-c0460452.entry.js +1 -0
- package/dist/genesys-webcomponents/p-c27e5dc1.js +1 -0
- package/dist/genesys-webcomponents/{p-c2501814.entry.js → p-c40b0d99.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bfd14d10.entry.js → p-c4be60af.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4091fd2f.entry.js → p-c4df4226.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-37b9b15b.entry.js → p-c58d6a91.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0b31d2e0.entry.js → p-ccef9d5d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f9e18fda.entry.js → p-d346007f.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-d45bbb98.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-1a6727b3.entry.js → p-d49fe3de.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6fcc5da4.entry.js → p-d6d11609.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0914c078.entry.js → p-d7aa6336.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7316a5e9.entry.js → p-db0a65a7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9de5db83.entry.js → p-dd8747a5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-542ba12d.entry.js → p-e057f1d8.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-75f2a561.entry.js → p-e6e6d74d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7b6c5379.entry.js → p-f02cc75a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0050c8a3.entry.js → p-f3056f8e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b2f2511d.entry.js → p-f6a8a85f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-04ad6d88.entry.js → p-f6c19016.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9f0c5cf4.entry.js → p-f765491c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-488129d0.entry.js → p-faf1c497.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/components/beta/gux-date/gux-date.d.ts +2 -0
- package/dist/types/components/beta/gux-date-time/gux-date-time.d.ts +2 -0
- package/dist/types/components/beta/gux-time/gux-time.d.ts +2 -0
- package/dist/types/genesys-spark-utils/intl.d.ts +29 -0
- package/dist/types/i18n/check-regional-dates-cookie.d.ts +1 -0
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +3 -2
- package/dist/genesys-webcomponents/p-1712765e.entry.js +0 -1
- package/dist/genesys-webcomponents/p-2169f089.entry.js +0 -1
- package/dist/genesys-webcomponents/p-6bec2573.entry.js +0 -1
- package/dist/genesys-webcomponents/p-784898d1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-a86d1d61.entry.js +0 -1
- package/dist/genesys-webcomponents/p-cf2f0097.entry.js +0 -1
- package/dist/genesys-webcomponents/p-cf790f95.entry.js +0 -1
- package/dist/genesys-webcomponents/p-f19850ba.js +0 -1
@@ -46,6 +46,68 @@ class DateTimeFormatter {
|
|
46
46
|
}
|
47
47
|
}
|
48
48
|
|
49
|
+
/**
|
50
|
+
* Provides an [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat)
|
51
|
+
* object for formatting dates and times. Unlike the native version, `locale` is
|
52
|
+
* an optional argument. If not provided, the function will try to determine the
|
53
|
+
* locale from the DOM, where it should be set for a11y reasons.
|
54
|
+
* @param locale optional locale to use for formatting
|
55
|
+
* @param options options to pass to the Intl.DateTimeFormat constructor
|
56
|
+
* @returns a new DateTimeFormat
|
57
|
+
*/
|
58
|
+
function dateTimeFormat(localeOrOptions, options) {
|
59
|
+
let locale = undefined;
|
60
|
+
if (typeof localeOrOptions === 'string') {
|
61
|
+
locale = localeOrOptions;
|
62
|
+
}
|
63
|
+
else {
|
64
|
+
options = localeOrOptions;
|
65
|
+
}
|
66
|
+
if (locale != undefined) {
|
67
|
+
return new Intl.DateTimeFormat(locale, options);
|
68
|
+
}
|
69
|
+
else {
|
70
|
+
const userLocale = determineDisplayLocale();
|
71
|
+
return new Intl.DateTimeFormat(userLocale, options);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
/**
|
75
|
+
* Makes a best effort to return the locale that should be used for a given element
|
76
|
+
* by checking language tags on ancestors. If no element is provided, it will
|
77
|
+
* start with the document's <body> tag. If no locale can be found, it will use
|
78
|
+
* the browser's locale preference. It will also try to add a region to regionless
|
79
|
+
* locales when there is a partial match with the browser's locale.
|
80
|
+
* @returns a locale string (e.g. 'en-US', 'en', 'de-DE', etc)
|
81
|
+
*/
|
82
|
+
function determineDisplayLocale(element = document.body) {
|
83
|
+
var _a;
|
84
|
+
const domLocale = (_a = element.closest('[lang]')) === null || _a === void 0 ? void 0 : _a.lang;
|
85
|
+
if (!domLocale || browserHasRegionData(domLocale)) {
|
86
|
+
// If we can't find a locale in the DOM, or we find a locale without a region that matches the
|
87
|
+
// users's browser locale, use the browser locale.
|
88
|
+
return navigator.language;
|
89
|
+
}
|
90
|
+
else {
|
91
|
+
return domLocale;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
/**
|
95
|
+
* Returns true if the provided locale only has a language, but the user's
|
96
|
+
* browser settings have the same language with a locale.
|
97
|
+
* @param localeString The locale to check
|
98
|
+
* @returns true if the region can be guessed from the browser settings.
|
99
|
+
*/
|
100
|
+
function browserHasRegionData(localeString) {
|
101
|
+
return (localeString.length == 2 &&
|
102
|
+
navigator.language.startsWith(`${localeString}-`));
|
103
|
+
}
|
104
|
+
|
105
|
+
const readRegionalDatesCookie = () => {
|
106
|
+
return !!document.cookie
|
107
|
+
.split('; ')
|
108
|
+
.find(cookie => cookie.startsWith('spark-enable-regional-dates'));
|
109
|
+
};
|
110
|
+
|
49
111
|
const timeZoneIdentifiers = [
|
50
112
|
'Africa/Abidjan',
|
51
113
|
'Africa/Accra',
|
@@ -514,4 +576,4 @@ function getValidTimezone(input, fallback) {
|
|
514
576
|
return fallback;
|
515
577
|
}
|
516
578
|
|
517
|
-
export { DateTimeFormatter as D, getValidTimezone as g };
|
579
|
+
export { DateTimeFormatter as D, determineDisplayLocale as a, dateTimeFormat as d, getValidTimezone as g, readRegionalDatesCookie as r };
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, g as getElement } from './i
|
|
2
2
|
import { O as OnClickOutside } from './on-click-outside-f15c5ac7.js';
|
3
3
|
import { w as whenEventIsFrom } from './when-event-is-from-6154bd60.js';
|
4
4
|
import { a as afterNextRenderTimeout } from './after-next-render-84ec18ad.js';
|
5
|
-
import { t as trackComponent } from './usage-
|
5
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
6
6
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
7
7
|
import './get-closest-element-66f63212.js';
|
8
8
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
|
4
4
|
const guxActionToastCss = ":host{display:flex;flex-direction:column;flex-wrap:nowrap;place-content:stretch flex-start;align-items:stretch;width:270px;padding:20px 24px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-header{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch flex-start;align-items:center;align-self:auto;order:0;font-family:var(--gse-core-typography-heading-lg-fontFamily), var(--gse-core-fontFamily-heading), sans-serif;font-size:var(--gse-core-typography-heading-lg-fontSize);line-height:var(--gse-core-typography-heading-lg-lineHeight);font-weight:var(--gse-core-fontWeight-bold)}.gux-header .gux-icon{flex:0 1 auto;align-self:auto;order:0;color:#1da8b3}.gux-header .gux-icon ::slotted(gux-icon){width:32px !important;height:32px !important}.gux-header .gux-title{flex:1 1 auto;align-self:auto;order:0;margin:0 0 0 8px}.gux-message{flex:0 1 auto;align-self:auto;order:0;margin:16px 0;font-family:var(--gse-core-typography-body-sm-fontFamily), var(--gse-core-fontFamily-body), sans-serif;font-size:var(--gse-core-typography-body-sm-fontSize);line-height:var(--gse-core-typography-body-sm-lineHeight);font-weight:var(--gse-core-fontWeight-regular)}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;place-content:stretch flex-start;align-items:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;place-content:stretch space-between;align-items:flex-start;align-self:auto;order:0}.gux-action-buttons .gux-negative-button{flex:0 1 auto;align-self:auto;order:0}.gux-action-buttons .gux-positive-button{flex:0 1 auto;align-self:auto;order:0}";
|
5
5
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, g as getElement } from './i
|
|
2
2
|
import { o as onMutation } from './on-mutation-a2b7cdad.js';
|
3
3
|
import { O as OnClickOutside } from './on-click-outside-f15c5ac7.js';
|
4
4
|
import { a as afterNextRenderTimeout } from './after-next-render-84ec18ad.js';
|
5
|
-
import { t as trackComponent } from './usage-
|
5
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
6
6
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
7
7
|
import './get-closest-element-66f63212.js';
|
8
8
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
import { b as afterNextRender } from './after-next-render-84ec18ad.js';
|
4
4
|
|
5
5
|
const guxAnnounceCss = ":host{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
4
4
|
import './get-closest-element-66f63212.js';
|
5
5
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
import { O as OnMutation } from './on-mutation-c570b3ed.js';
|
4
4
|
import { h as hasSlot } from './has-slot-d06c74d9.js';
|
5
5
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, f as forceUpdate, h, g as getElement } from './index-39e65a0a.js';
|
2
2
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
3
|
-
import { t as trackComponent } from './usage-
|
3
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
4
4
|
import './get-closest-element-66f63212.js';
|
5
5
|
|
6
6
|
const breadcrumbs = "Breadcrumbs";
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, g as getElement } from './i
|
|
2
2
|
import { O as OnClickOutside } from './on-click-outside-f15c5ac7.js';
|
3
3
|
import { w as whenEventIsFrom } from './when-event-is-from-6154bd60.js';
|
4
4
|
import { a as afterNextRenderTimeout } from './after-next-render-84ec18ad.js';
|
5
|
-
import { t as trackComponent } from './usage-
|
5
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
6
6
|
|
7
7
|
const guxButtonMultiAccent = ['primary', 'secondary', 'tertiary'];
|
8
8
|
function getGuxButtonMultiAccent(maybeGuxButtonMultiAccent) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
import { l as logError } from './log-error-0b15023e.js';
|
4
4
|
|
5
5
|
const guxButtonSlotCss = ":host{display:inline-block;pointer-events:none}::slotted(input[type=button]),::slotted(input[type=submit]),::slotted(button){font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-icon-only-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}:host([icon-only]) ::slotted(input[type=button]),:host([icon-only]) ::slotted(input[type=submit]),:host([icon-only]) ::slotted(button){padding:var(--gse-ui-button-default-paddingIconOnly)}::slotted(input[type=button][disabled]),::slotted(input[type=submit][disabled]),::slotted(button[disabled]){cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}::slotted(input[type=button]:focus),::slotted(input[type=submit]:focus),::slotted(button:focus){outline:none}::slotted(input[type=button]:focus-visible:enabled),::slotted(input[type=submit]:focus-visible:enabled),::slotted(button:focus-visible:enabled){outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}::slotted(input[type=button]:hover:enabled),::slotted(input[type=submit]:hover:enabled),::slotted(button:hover:enabled){color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}::slotted(input[type=button]:active:enabled),::slotted(input[type=submit]:active:enabled),::slotted(button:active:enabled){color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]),:host([accent=primary]) ::slotted(input[type=submit]),:host([accent=primary]) ::slotted(button){color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:hover:enabled),:host([accent=primary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=primary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}:host([accent=primary]) ::slotted(input[type=button]:active:enabled),:host([accent=primary]) ::slotted(input[type=submit]:active:enabled),:host([accent=primary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]),:host([accent=tertiary]) ::slotted(input[type=submit]),:host([accent=tertiary]) ::slotted(button){color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}:host([accent=tertiary]) ::slotted(input[type=button]:hover:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:hover:enabled),:host([accent=tertiary]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}:host([accent=tertiary]) ::slotted(input[type=button]:active:enabled),:host([accent=tertiary]) ::slotted(input[type=submit]:active:enabled),:host([accent=tertiary]) ::slotted(button:active:enabled){color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]),:host([accent=ghost]) ::slotted(input[type=submit]),:host([accent=ghost]) ::slotted(button){color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:hover:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:hover:enabled),:host([accent=ghost]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}:host([accent=ghost]) ::slotted(input[type=button]:active:enabled),:host([accent=ghost]) ::slotted(input[type=submit]:active:enabled),:host([accent=ghost]) ::slotted(button:active:enabled){color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]),:host([accent=danger]) ::slotted(input[type=submit]),:host([accent=danger]) ::slotted(button){color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:hover:enabled),:host([accent=danger]) ::slotted(input[type=submit]:hover:enabled),:host([accent=danger]) ::slotted(button:hover:enabled){color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}:host([accent=danger]) ::slotted(input[type=button]:active:enabled),:host([accent=danger]) ::slotted(input[type=submit]:active:enabled),:host([accent=danger]) ::slotted(button:active:enabled){color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}:host([accent=inline]){min-inline-size:initial}:host([accent=inline]) ::slotted(input[type=button]),:host([accent=inline]) ::slotted(input[type=submit]),:host([accent=inline]) ::slotted(button){block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor);background:none;border:none}:host([accent=inline]) ::slotted(input[type=button][disabled]),:host([accent=inline]) ::slotted(input[type=submit][disabled]),:host([accent=inline]) ::slotted(button[disabled]){color:var(--gse-ui-link-disabled-foregroundColor)}:host([accent=inline]) ::slotted(input[type=button]:hover:enabled),:host([accent=inline]) ::slotted(input[type=submit]:hover:enabled),:host([accent=inline]) ::slotted(button:hover:enabled){color:var(--gse-ui-link-hover-foregroundColor);text-decoration:underline;background:none}:host([accent=inline]) ::slotted(input[type=button]:active:enabled),:host([accent=inline]) ::slotted(input[type=submit]:active:enabled),:host([accent=inline]) ::slotted(button:active:enabled){color:var(--gse-ui-link-active-foregroundColor);text-decoration:underline;background:none}";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
|
4
4
|
const guxButtonCss = ":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start:var(--gse-core-spacing-3xs);vertical-align:middle}::slotted(*:first-child){padding:0}button{font-family:var(--gse-ui-button-text-fontFamily);font-size:var(--gse-ui-button-text-fontSize);font-weight:var(--gse-ui-button-text-fontWeight);line-height:var(--gse-ui-button-text-lineHeight);inline-size:100%;min-inline-size:var(--gse-ui-button-icon-only-width);block-size:var(--gse-ui-button-default-height);padding:var(--gse-ui-button-default-padding);overflow:hidden;color:var(--gse-ui-button-secondary-default-foregroundColor);text-overflow:ellipsis;white-space:nowrap;pointer-events:auto;cursor:pointer;background-color:var(--gse-ui-button-secondary-default-backgroundColor);border:none;border-radius:var(--gse-ui-button-borderRadius)}button.gux-icon-only{display:inline-flex;padding:var(--gse-ui-button-default-paddingIconOnly)}button[disabled]{cursor:default;opacity:var(--gse-ui-button-disabled-opacity)}button:hover:enabled{color:var(--gse-ui-button-secondary-hover-foregroundColor);background-color:var(--gse-ui-button-secondary-hover-backgroundColor)}button:active:enabled{color:var(--gse-ui-button-secondary-active-foregroundColor);background-color:var(--gse-ui-button-secondary-active-backgroundColor)}button:focus-visible:enabled{outline:var(--gse-semantic-focusRing-default-border-color) var(--gse-semantic-focusRing-default-border-style) var(--gse-semantic-focusRing-default-border-width);outline-offset:var(--gse-semantic-focusRing-offset)}button.gux-primary{color:var(--gse-ui-button-primary-default-foregroundColor);background-color:var(--gse-ui-button-primary-default-backgroundColor)}button.gux-primary:hover:enabled{color:var(--gse-ui-button-primary-hover-foregroundColor);background-color:var(--gse-ui-button-primary-hover-backgroundColor)}button.gux-primary:active:enabled{color:var(--gse-ui-button-primary-active-foregroundColor);background-color:var(--gse-ui-button-primary-active-backgroundColor)}button.gux-tertiary{color:var(--gse-ui-button-tertiary-default-foregroundColor);background-color:var(--gse-ui-button-tertiary-default-backgroundColor);border-color:var(--gse-ui-button-tertiary-default-border-color);border-style:var(--gse-ui-button-tertiary-default-border-style);border-width:var(--gse-ui-button-tertiary-default-border-width)}button.gux-tertiary.gux-icon-only{padding:calc(var(--gse-ui-button-default-paddingIconOnly) - var(--gse-ui-button-tertiary-default-border-width))}button.gux-tertiary:hover:enabled{color:var(--gse-ui-button-tertiary-hover-foregroundColor);background-color:var(--gse-ui-button-tertiary-hover-backgroundColor)}button.gux-tertiary:active:enabled{color:var(--gse-ui-button-tertiary-active-foregroundColor);background-color:var(--gse-ui-button-tertiary-active-backgroundColor)}button.gux-ghost{color:var(--gse-ui-button-ghost-default-foregroundColor);background-color:var(--gse-ui-button-ghost-default-backgroundColor)}button.gux-ghost:hover:enabled{color:var(--gse-ui-button-ghost-hover-foregroundColor);background-color:var(--gse-ui-button-ghost-hover-backgroundColor)}button.gux-ghost:active:enabled{color:var(--gse-ui-button-ghost-active-foregroundColor);background-color:var(--gse-ui-button-ghost-active-backgroundColor)}button.gux-danger{color:var(--gse-ui-button-danger-default-foregroundColor);background-color:var(--gse-ui-button-danger-default-backgroundColor)}button.gux-danger:hover:enabled{color:var(--gse-ui-button-danger-hover-foregroundColor);background-color:var(--gse-ui-button-danger-hover-backgroundColor)}button.gux-danger:active:enabled{color:var(--gse-ui-button-danger-active-foregroundColor);background-color:var(--gse-ui-button-danger-active-backgroundColor)}button.gux-inline{min-inline-size:initial;block-size:initial;padding:0;color:var(--gse-ui-link-default-foregroundColor);background:none;border:none}button.gux-inline[disabled]{color:var(--gse-ui-link-disabled-foregroundColor)}button.gux-inline:hover:enabled{color:var(--gse-ui-link-hover-foregroundColor);text-decoration:underline;background:none}button.gux-inline:active:enabled{color:var(--gse-ui-link-active-foregroundColor);text-decoration:underline;background:none}";
|
5
5
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-39e65a0a.js';
|
2
2
|
import { a as afterNextRenderTimeout } from './after-next-render-84ec18ad.js';
|
3
3
|
import { a as asIsoDateRange, c as fromIsoDateRange, b as asIsoDate, f as fromIsoDate } from './iso-dates-5bcd3209.js';
|
4
|
-
import { t as trackComponent } from './usage-
|
4
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
5
5
|
import { g as getDesiredLocale, a as getStartOfWeek } from './index-39266f37.js';
|
6
6
|
import { c as capitalizeFirstLetter } from './capitalize-first-letter-45fad3db.js';
|
7
7
|
import './get-closest-element-66f63212.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
|
4
4
|
const guxCardCss = ":host{display:block;width:fit-content}.gux-card{box-sizing:border-box;padding:var(--gse-ui-card-padding);background-color:var(--gse-ui-card-backgroundColor);border:var(--gse-ui-card-default-border-width) var(--gse-ui-card-default-border-style) var(--gse-ui-card-default-border-color);border-radius:var(--gse-ui-card-borderRadius)}.gux-card.gux-bordered{border:var(--gse-ui-card-default-border-width) var(--gse-ui-card-default-border-style) var(--gse-ui-card-default-border-color)}.gux-card.gux-raised{border:var(--gse-ui-card-raised-border-width) var(--gse-ui-card-raised-border-style) var(--gse-ui-card-raised-border-color);box-shadow:var(--gse-ui-card-raised-boxShadow-x) var(--gse-ui-card-raised-boxShadow-y) var(--gse-ui-card-raised-boxShadow-blur) var(--gse-ui-card-raised-boxShadow-spread) var(--gse-ui-card-raised-boxShadow-color)}.gux-card.gux-borderless{border:var(--gse-ui-card-borderless-border-width) var(--gse-ui-card-borderless-border-style) var(--gse-ui-card-borderless-border-color)}";
|
5
5
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-39e65a0a.js';
|
2
2
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
3
|
-
import { t as trackComponent } from './usage-
|
3
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
4
4
|
import { g as getEmptyKeyboardOrderChange, s as setKeyboardReorderPositionIndicator, a as setMainCheckboxElementCheckedState, b as getNewOrder, c as getIndexInParent, d as getNewKeyboardOrderChange, e as setHighlights, f as setAllCheckboxInputs, h as getSelectedColumnCount } from './gux-column-manager.service-4f5bf4c4.js';
|
5
5
|
import './get-closest-element-66f63212.js';
|
6
6
|
import './clamp-51db64df.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
4
4
|
import { a as onDisabledChange } from './on-attribute-change-42a46627.js';
|
5
5
|
import './get-closest-element-66f63212.js';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-39e65a0a.js';
|
2
2
|
import { r as randomHTMLId } from './random-html-id-3354d85c.js';
|
3
|
-
import { t as trackComponent } from './usage-
|
3
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
4
4
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
5
5
|
import { O as OnClickOutside } from './on-click-outside-f15c5ac7.js';
|
6
6
|
import { b as afterNextRender } from './after-next-render-84ec18ad.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
4
4
|
import './get-closest-element-66f63212.js';
|
5
5
|
|
@@ -1,24 +1,42 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
3
|
-
import { D as DateTimeFormatter, g as getValidTimezone } from './get-valid-timezone-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
|
+
import { r as readRegionalDatesCookie, D as DateTimeFormatter, d as dateTimeFormat, a as determineDisplayLocale, g as getValidTimezone } from './get-valid-timezone-eb98c51d.js';
|
4
4
|
import { g as getDesiredLocale } from './index-39266f37.js';
|
5
5
|
import './get-closest-element-66f63212.js';
|
6
6
|
|
7
7
|
const GuxDate = class {
|
8
8
|
constructor(hostRef) {
|
9
9
|
registerInstance(this, hostRef);
|
10
|
+
this.hasRegionalDatesCookie = false;
|
10
11
|
this.datetime = new Date().toISOString();
|
11
12
|
this.format = 'short';
|
12
13
|
this.timeZone = undefined;
|
13
14
|
}
|
14
15
|
componentWillLoad() {
|
15
16
|
trackComponent(this.root);
|
16
|
-
|
17
|
+
if (readRegionalDatesCookie()) {
|
18
|
+
this.hasRegionalDatesCookie = true;
|
19
|
+
}
|
20
|
+
else {
|
21
|
+
this.formatter = new DateTimeFormatter(getDesiredLocale(this.root));
|
22
|
+
}
|
23
|
+
}
|
24
|
+
renderDate() {
|
25
|
+
if (this.hasRegionalDatesCookie) {
|
26
|
+
return dateTimeFormat(determineDisplayLocale(this.root), {
|
27
|
+
dateStyle: this.format,
|
28
|
+
timeZone: getValidTimezone(this.timeZone)
|
29
|
+
})
|
30
|
+
.format(new Date(this.datetime));
|
31
|
+
}
|
32
|
+
else {
|
33
|
+
return this.formatter.formatDate(new Date(this.datetime), this.format, {
|
34
|
+
timeZone: getValidTimezone(this.timeZone)
|
35
|
+
});
|
36
|
+
}
|
17
37
|
}
|
18
38
|
render() {
|
19
|
-
return (h(Host, null, this.
|
20
|
-
timeZone: getValidTimezone(this.timeZone)
|
21
|
-
})));
|
39
|
+
return (h(Host, null, this.renderDate()));
|
22
40
|
}
|
23
41
|
get root() { return getElement(this); }
|
24
42
|
};
|
@@ -1,24 +1,43 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
3
|
-
import { D as DateTimeFormatter, g as getValidTimezone } from './get-valid-timezone-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
|
+
import { r as readRegionalDatesCookie, D as DateTimeFormatter, d as dateTimeFormat, a as determineDisplayLocale, g as getValidTimezone } from './get-valid-timezone-eb98c51d.js';
|
4
4
|
import { g as getDesiredLocale } from './index-39266f37.js';
|
5
5
|
import './get-closest-element-66f63212.js';
|
6
6
|
|
7
7
|
const GuxDateTime = class {
|
8
8
|
constructor(hostRef) {
|
9
9
|
registerInstance(this, hostRef);
|
10
|
+
this.hasRegionalDatesCookie = false;
|
10
11
|
this.datetime = new Date().toISOString();
|
11
12
|
this.format = 'short';
|
12
13
|
this.timeZone = undefined;
|
13
14
|
}
|
14
15
|
componentWillLoad() {
|
15
16
|
trackComponent(this.root);
|
16
|
-
|
17
|
+
if (readRegionalDatesCookie()) {
|
18
|
+
this.hasRegionalDatesCookie = true;
|
19
|
+
}
|
20
|
+
else {
|
21
|
+
this.formatter = new DateTimeFormatter(getDesiredLocale(this.root));
|
22
|
+
}
|
23
|
+
}
|
24
|
+
renderDateTime() {
|
25
|
+
if (this.hasRegionalDatesCookie) {
|
26
|
+
return dateTimeFormat(determineDisplayLocale(this.root), {
|
27
|
+
dateStyle: this.format,
|
28
|
+
timeStyle: this.format,
|
29
|
+
timeZone: getValidTimezone(this.timeZone)
|
30
|
+
})
|
31
|
+
.format(new Date(this.datetime));
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
return this.formatter.formatDateTime(new Date(this.datetime), this.format, {
|
35
|
+
timeZone: getValidTimezone(this.timeZone)
|
36
|
+
});
|
37
|
+
}
|
17
38
|
}
|
18
39
|
render() {
|
19
|
-
return (h(Host, null, this.
|
20
|
-
timeZone: getValidTimezone(this.timeZone)
|
21
|
-
})));
|
40
|
+
return (h(Host, null, this.renderDateTime()));
|
22
41
|
}
|
23
42
|
get root() { return getElement(this); }
|
24
43
|
};
|
@@ -4,7 +4,7 @@ import { r as randomHTMLId } from './random-html-id-3354d85c.js';
|
|
4
4
|
import { a as afterNextRenderTimeout } from './after-next-render-84ec18ad.js';
|
5
5
|
import { f as fromIsoDate, a as asIsoDateRange, b as asIsoDate, c as fromIsoDateRange } from './iso-dates-5bcd3209.js';
|
6
6
|
import { O as OnClickOutside } from './on-click-outside-f15c5ac7.js';
|
7
|
-
import { t as trackComponent } from './usage-
|
7
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
8
8
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
9
9
|
import './get-closest-element-66f63212.js';
|
10
10
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-39e65a0a.js';
|
2
2
|
import { r as randomHTMLId } from './random-html-id-3354d85c.js';
|
3
|
-
import { t as trackComponent } from './usage-
|
3
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
4
4
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
5
5
|
import './get-closest-element-66f63212.js';
|
6
6
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { r as registerInstance, h, g as getElement } from './index-39e65a0a.js';
|
2
|
-
import { t as trackComponent } from './usage-
|
2
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
3
3
|
import { b as buildI18nForComponent } from './index-39266f37.js';
|
4
4
|
import './get-closest-element-66f63212.js';
|
5
5
|
|
@@ -4,7 +4,7 @@ import { b as buildI18nForComponent } from './index-39266f37.js';
|
|
4
4
|
import { s as simulateNativeEvent } from './simulate-native-event-bca7a1c9.js';
|
5
5
|
import { b as afterNextRender } from './after-next-render-84ec18ad.js';
|
6
6
|
import { o as onInputDisabledStateChange } from './on-input-disabled-state-change-e6bc912f.js';
|
7
|
-
import { t as trackComponent } from './usage-
|
7
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
8
8
|
import { s as setInitialActiveOption, g as getSearchOption } from './gux-listbox.service-8ccb2f73.js';
|
9
9
|
import { O as OnMutation } from './on-mutation-c570b3ed.js';
|
10
10
|
import './get-closest-element-66f63212.js';
|
@@ -4,7 +4,7 @@ import { b as buildI18nForComponent } from './index-39266f37.js';
|
|
4
4
|
import { s as simulateNativeEvent } from './simulate-native-event-bca7a1c9.js';
|
5
5
|
import { o as onInputDisabledStateChange, c as calculateInputDisabledState } from './on-input-disabled-state-change-e6bc912f.js';
|
6
6
|
import { b as afterNextRender } from './after-next-render-84ec18ad.js';
|
7
|
-
import { t as trackComponent } from './usage-
|
7
|
+
import { t as trackComponent } from './usage-d5e34af8.js';
|
8
8
|
import { O as OnMutation } from './on-mutation-c570b3ed.js';
|
9
9
|
import { s as setInitialActiveOption, l as getListOptions, g as getSearchOption, c as clearActiveOptions, h as hasActiveOption, a as setLastOptionActive, b as setFirstOptionActive, d as hasPreviousOption, e as setPreviousOptionActive, f as hasNextOption, i as setNextOptionActive, j as actOnActiveOption, k as goToOption, m as matchOption, o as onClickedOption } from './gux-listbox.service-8ccb2f73.js';
|
10
10
|
import { w as whenEventIsFrom } from './when-event-is-from-6154bd60.js';
|