genesys-spark-components 4.21.0 → 4.21.1
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/check-regional-dates-cookie-4bd0f650.js +67 -0
- package/dist/cjs/{get-valid-timezone-7b76b3df.js → get-valid-timezone-6bacb49d.js} +0 -65
- package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
- package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
- package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
- package/dist/cjs/gux-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 +5 -4
- package/dist/cjs/gux-date-time-beta.cjs.entry.js +5 -4
- 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 +5 -4
- package/dist/cjs/gux-time-picker.cjs.entry.js +10 -3
- 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-03c66c70.js → usage-774666e2.js} +11 -11
- package/dist/collection/components/stable/gux-time-picker/gux-time-picker.css +2 -2
- package/dist/collection/components/stable/gux-time-picker/gux-time-picker.service.js +9 -1
- package/dist/deploy-info.json +3 -3
- package/dist/esm/check-regional-dates-cookie-681b4814.js +63 -0
- package/dist/esm/{get-valid-timezone-eb98c51d.js → get-valid-timezone-b9060a4c.js} +1 -63
- package/dist/esm/gux-accordion.entry.js +1 -1
- package/dist/esm/gux-action-button.entry.js +1 -1
- package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
- package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
- package/dist/esm/gux-announce-beta.entry.js +1 -1
- package/dist/esm/gux-avatar-beta.entry.js +1 -1
- package/dist/esm/gux-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 +3 -2
- package/dist/esm/gux-date-time-beta.entry.js +3 -2
- 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 +3 -2
- package/dist/esm/gux-time-picker.entry.js +10 -3
- 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-4f584569.js → usage-6a2c2074.js} +11 -11
- package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
- package/dist/genesys-webcomponents/{p-efa3a841.entry.js → p-02f59ca7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-97cfdf51.entry.js → p-06247711.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-eec0e2b7.entry.js → p-09b8841e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-9296a350.entry.js → p-0c2015fe.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-a9b83a31.entry.js → p-145c6006.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f5f578d4.entry.js → p-14ade629.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ff20ab74.entry.js → p-166faa93.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4701e699.entry.js → p-197e9771.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-10493014.entry.js → p-1a04a1fc.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e1ed5bcf.entry.js → p-1aa93811.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d8607549.entry.js → p-1be0ddee.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-780eb038.entry.js → p-1c229e5f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b12378e8.entry.js → p-1c7bd10b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5cb5dea2.entry.js → p-237d2e26.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-72124262.entry.js → p-2585072f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-51263505.entry.js → p-2802f59c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c0d2a83d.entry.js → p-2a1d2d92.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3433e23e.entry.js → p-2a86fe25.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-2c2d953d.entry.js → p-2ad0af2a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3895f550.entry.js → p-2e1573c5.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-2ff630da.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-43c91eed.entry.js → p-32f7b9c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-63c75cdc.entry.js → p-3425ba3f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-31dedc9f.entry.js → p-3624248a.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7b4fb4ff.entry.js → p-3d540e8b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e62df470.entry.js → p-3efef14b.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6460838c.entry.js → p-419d21fd.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-4761d903.js +1 -0
- package/dist/genesys-webcomponents/{p-0f7dacb1.entry.js → p-49ee055e.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-46fe872b.entry.js → p-59d6ec63.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c4712061.entry.js → p-5d8b1d11.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3f3a3cdd.entry.js → p-60e64a43.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-63964f5e.entry.js → p-61c1dbeb.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-96e6ee1e.entry.js → p-6e615964.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-4671406a.entry.js → p-71477c53.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-d9e69742.entry.js → p-72007bb3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-34b6f5db.entry.js → p-74ee3fc5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-ce43e678.entry.js → p-78d11f94.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-86c232fc.entry.js → p-7b46de73.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f64ece78.entry.js → p-7d3db249.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-7d446c1f.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-46299055.entry.js → p-7da2ffd5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-71a4b067.entry.js → p-8584e612.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-6f8b6343.entry.js → p-894a1643.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b7353aaa.entry.js → p-8a65a1b7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0f5f1235.entry.js → p-8d3b975c.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8ff87ab3.entry.js → p-8f214229.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b299d190.entry.js → p-9b6d401f.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-1163eb45.entry.js → p-9b8b66c7.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-664c26ca.entry.js → p-9cc9ae09.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0c4631f1.entry.js → p-9e37fe52.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-c4b59958.entry.js → p-a143e9d1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-bfefbe2e.entry.js → p-a1442500.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-93805929.entry.js → p-a1dab951.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-260f10cb.entry.js → p-a3d79620.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-a6e27b79.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-98075e8d.entry.js → p-a7318495.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-0807934a.entry.js → p-aedda64e.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-b05b43c2.entry.js +1 -0
- package/dist/genesys-webcomponents/{p-dac520b2.entry.js → p-b18009f5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7d0e85db.entry.js → p-b42e80f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b00609a2.entry.js → p-bc07a2b3.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f0f6bfc5.entry.js → p-bd27a596.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-050032eb.entry.js → p-bfeed280.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3a88269f.entry.js → p-c0af8c4d.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8ca53665.entry.js → p-c3f2dc77.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-f461cce3.entry.js → p-cb7a8801.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3efeac02.entry.js → p-ceac4372.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8c2d7777.entry.js → p-cf6ce081.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-45d10cf0.entry.js → p-d58b6349.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-7f5e481a.entry.js → p-d7a093c1.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3fcc203c.entry.js → p-e08e20fa.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-e99dac91.entry.js → p-e3b6baf4.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-8d7fad23.entry.js → p-e76f9ad5.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-387b1c6d.js → p-eb9342c0.js} +1 -1
- package/dist/genesys-webcomponents/{p-c1f957a0.entry.js → p-eca397f2.entry.js} +1 -1
- package/dist/genesys-webcomponents/p-edf27a36.entry.js +1 -0
- package/dist/genesys-webcomponents/p-f19850ba.js +1 -0
- package/dist/genesys-webcomponents/{p-dca4ea41.entry.js → p-f366ce23.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3091bad3.entry.js → p-f40265a0.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-5b0e9063.entry.js → p-f9b4ec87.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-b9a238bb.entry.js → p-fb101b55.entry.js} +1 -1
- package/dist/genesys-webcomponents/{p-3aa9479f.entry.js → p-fe3578a5.entry.js} +1 -1
- package/dist/stencil-wrapper.js +1 -1
- package/dist/types/stencil-wrapper.d.ts +1 -1
- package/package.json +11 -11
- package/dist/genesys-webcomponents/p-0943bde2.entry.js +0 -1
- package/dist/genesys-webcomponents/p-3d6cde9d.entry.js +0 -1
- package/dist/genesys-webcomponents/p-52f9ddf1.entry.js +0 -1
- package/dist/genesys-webcomponents/p-8dc06e13.entry.js +0 -1
- package/dist/genesys-webcomponents/p-c27e5dc1.js +0 -1
- package/dist/genesys-webcomponents/p-c70c077e.entry.js +0 -1
@@ -0,0 +1,67 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* Provides an [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat)
|
5
|
+
* object for formatting dates and times. Unlike the native version, `locale` is
|
6
|
+
* an optional argument. If not provided, the function will try to determine the
|
7
|
+
* locale from the DOM, where it should be set for a11y reasons.
|
8
|
+
* @param locale optional locale to use for formatting
|
9
|
+
* @param options options to pass to the Intl.DateTimeFormat constructor
|
10
|
+
* @returns a new DateTimeFormat
|
11
|
+
*/
|
12
|
+
function dateTimeFormat(localeOrOptions, options) {
|
13
|
+
let locale = undefined;
|
14
|
+
if (typeof localeOrOptions === 'string') {
|
15
|
+
locale = localeOrOptions;
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
options = localeOrOptions;
|
19
|
+
}
|
20
|
+
if (locale != undefined) {
|
21
|
+
return new Intl.DateTimeFormat(locale, options);
|
22
|
+
}
|
23
|
+
else {
|
24
|
+
const userLocale = determineDisplayLocale();
|
25
|
+
return new Intl.DateTimeFormat(userLocale, options);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
/**
|
29
|
+
* Makes a best effort to return the locale that should be used for a given element
|
30
|
+
* by checking language tags on ancestors. If no element is provided, it will
|
31
|
+
* start with the document's <body> tag. If no locale can be found, it will use
|
32
|
+
* the browser's locale preference. It will also try to add a region to regionless
|
33
|
+
* locales when there is a partial match with the browser's locale.
|
34
|
+
* @returns a locale string (e.g. 'en-US', 'en', 'de-DE', etc)
|
35
|
+
*/
|
36
|
+
function determineDisplayLocale(element = document.body) {
|
37
|
+
var _a;
|
38
|
+
const domLocale = (_a = element.closest('[lang]')) === null || _a === void 0 ? void 0 : _a.lang;
|
39
|
+
if (!domLocale || browserHasRegionData(domLocale)) {
|
40
|
+
// If we can't find a locale in the DOM, or we find a locale without a region that matches the
|
41
|
+
// users's browser locale, use the browser locale.
|
42
|
+
return navigator.language;
|
43
|
+
}
|
44
|
+
else {
|
45
|
+
return domLocale;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* Returns true if the provided locale only has a language, but the user's
|
50
|
+
* browser settings have the same language with a locale.
|
51
|
+
* @param localeString The locale to check
|
52
|
+
* @returns true if the region can be guessed from the browser settings.
|
53
|
+
*/
|
54
|
+
function browserHasRegionData(localeString) {
|
55
|
+
return (localeString.length == 2 &&
|
56
|
+
navigator.language.startsWith(`${localeString}-`));
|
57
|
+
}
|
58
|
+
|
59
|
+
const readRegionalDatesCookie = () => {
|
60
|
+
return !!document.cookie
|
61
|
+
.split('; ')
|
62
|
+
.find(cookie => cookie.startsWith('spark-enable-regional-dates'));
|
63
|
+
};
|
64
|
+
|
65
|
+
exports.dateTimeFormat = dateTimeFormat;
|
66
|
+
exports.determineDisplayLocale = determineDisplayLocale;
|
67
|
+
exports.readRegionalDatesCookie = readRegionalDatesCookie;
|
@@ -48,68 +48,6 @@ class DateTimeFormatter {
|
|
48
48
|
}
|
49
49
|
}
|
50
50
|
|
51
|
-
/**
|
52
|
-
* Provides an [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat)
|
53
|
-
* object for formatting dates and times. Unlike the native version, `locale` is
|
54
|
-
* an optional argument. If not provided, the function will try to determine the
|
55
|
-
* locale from the DOM, where it should be set for a11y reasons.
|
56
|
-
* @param locale optional locale to use for formatting
|
57
|
-
* @param options options to pass to the Intl.DateTimeFormat constructor
|
58
|
-
* @returns a new DateTimeFormat
|
59
|
-
*/
|
60
|
-
function dateTimeFormat(localeOrOptions, options) {
|
61
|
-
let locale = undefined;
|
62
|
-
if (typeof localeOrOptions === 'string') {
|
63
|
-
locale = localeOrOptions;
|
64
|
-
}
|
65
|
-
else {
|
66
|
-
options = localeOrOptions;
|
67
|
-
}
|
68
|
-
if (locale != undefined) {
|
69
|
-
return new Intl.DateTimeFormat(locale, options);
|
70
|
-
}
|
71
|
-
else {
|
72
|
-
const userLocale = determineDisplayLocale();
|
73
|
-
return new Intl.DateTimeFormat(userLocale, options);
|
74
|
-
}
|
75
|
-
}
|
76
|
-
/**
|
77
|
-
* Makes a best effort to return the locale that should be used for a given element
|
78
|
-
* by checking language tags on ancestors. If no element is provided, it will
|
79
|
-
* start with the document's <body> tag. If no locale can be found, it will use
|
80
|
-
* the browser's locale preference. It will also try to add a region to regionless
|
81
|
-
* locales when there is a partial match with the browser's locale.
|
82
|
-
* @returns a locale string (e.g. 'en-US', 'en', 'de-DE', etc)
|
83
|
-
*/
|
84
|
-
function determineDisplayLocale(element = document.body) {
|
85
|
-
var _a;
|
86
|
-
const domLocale = (_a = element.closest('[lang]')) === null || _a === void 0 ? void 0 : _a.lang;
|
87
|
-
if (!domLocale || browserHasRegionData(domLocale)) {
|
88
|
-
// If we can't find a locale in the DOM, or we find a locale without a region that matches the
|
89
|
-
// users's browser locale, use the browser locale.
|
90
|
-
return navigator.language;
|
91
|
-
}
|
92
|
-
else {
|
93
|
-
return domLocale;
|
94
|
-
}
|
95
|
-
}
|
96
|
-
/**
|
97
|
-
* Returns true if the provided locale only has a language, but the user's
|
98
|
-
* browser settings have the same language with a locale.
|
99
|
-
* @param localeString The locale to check
|
100
|
-
* @returns true if the region can be guessed from the browser settings.
|
101
|
-
*/
|
102
|
-
function browserHasRegionData(localeString) {
|
103
|
-
return (localeString.length == 2 &&
|
104
|
-
navigator.language.startsWith(`${localeString}-`));
|
105
|
-
}
|
106
|
-
|
107
|
-
const readRegionalDatesCookie = () => {
|
108
|
-
return !!document.cookie
|
109
|
-
.split('; ')
|
110
|
-
.find(cookie => cookie.startsWith('spark-enable-regional-dates'));
|
111
|
-
};
|
112
|
-
|
113
51
|
const timeZoneIdentifiers = [
|
114
52
|
'Africa/Abidjan',
|
115
53
|
'Africa/Accra',
|
@@ -579,7 +517,4 @@ function getValidTimezone(input, fallback) {
|
|
579
517
|
}
|
580
518
|
|
581
519
|
exports.DateTimeFormatter = DateTimeFormatter;
|
582
|
-
exports.dateTimeFormat = dateTimeFormat;
|
583
|
-
exports.determineDisplayLocale = determineDisplayLocale;
|
584
520
|
exports.getValidTimezone = getValidTimezone;
|
585
|
-
exports.readRegionalDatesCookie = readRegionalDatesCookie;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
|
8
8
|
const guxAccordionCss = "gux-accordion{-custom-noop:noop}";
|
9
9
|
|
@@ -6,7 +6,7 @@ const index = require('./index-75c9f0d9.js');
|
|
6
6
|
const onClickOutside = require('./on-click-outside-3c0f8816.js');
|
7
7
|
const whenEventIsFrom = require('./when-event-is-from-20e89254.js');
|
8
8
|
const afterNextRender = require('./after-next-render-a023ef47.js');
|
9
|
-
const usage = require('./usage-
|
9
|
+
const usage = require('./usage-774666e2.js');
|
10
10
|
const index$1 = require('./index-dee802be.js');
|
11
11
|
require('./get-closest-element-26894e5a.js');
|
12
12
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
|
8
8
|
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}";
|
9
9
|
|
@@ -6,7 +6,7 @@ const index = require('./index-75c9f0d9.js');
|
|
6
6
|
const onMutation = require('./on-mutation-ef917473.js');
|
7
7
|
const onClickOutside = require('./on-click-outside-3c0f8816.js');
|
8
8
|
const afterNextRender = require('./after-next-render-a023ef47.js');
|
9
|
-
const usage = require('./usage-
|
9
|
+
const usage = require('./usage-774666e2.js');
|
10
10
|
const index$1 = require('./index-dee802be.js');
|
11
11
|
require('./get-closest-element-26894e5a.js');
|
12
12
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
const afterNextRender = require('./after-next-render-a023ef47.js');
|
8
8
|
|
9
9
|
const guxAnnounceCss = ":host{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
const logError = require('./log-error-8a92241e.js');
|
8
8
|
|
9
9
|
const guxAvatarCss = ":host{position:relative;display:inline-block}:host abbr{text-decoration:none}::slotted(img){width:100%;height:100%;object-fit:cover}.gux-avatar{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:var(--gse-ui-avatar-large-content-size);height:var(--gse-ui-avatar-large-content-size);overflow:hidden;font-family:var(--gse-ui-avatar-large-initials-fontFamily);font-size:var(--gse-ui-avatar-large-initials-fontSize);font-weight:var(--gse-ui-avatar-large-initials-fontWeight);line-height:var(--gse-core-lineHeight-matchFontSize);color:var(--gse-ui-avatar-media-initialsForeground-inverse);text-transform:uppercase;background-color:var(--gse-ui-avatar-media-initialsBackground-default);border-radius:50%}.gux-avatar.gux-accent-1{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent1)}.gux-avatar.gux-accent-2{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent2)}.gux-avatar.gux-accent-3{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent3)}.gux-avatar.gux-accent-4{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent4)}.gux-avatar.gux-accent-5{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent5)}.gux-avatar.gux-accent-6{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent6)}.gux-avatar.gux-accent-7{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent7)}.gux-avatar.gux-accent-8{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent8)}.gux-avatar.gux-accent-9{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent9)}.gux-avatar.gux-accent-10{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent10)}.gux-avatar.gux-accent-11{color:var(--gse-ui-avatar-media-initialsForeground-default);background-color:var(--gse-ui-avatar-media-initialsBackground-accent11)}.gux-avatar.gux-accent-12{color:var(--gse-ui-avatar-media-initialsForeground-inverse);background-color:var(--gse-ui-avatar-media-initialsBackground-accent12)}.gux-avatar.gux-accent-inherit{color:inherit;background-color:inherit}.gux-avatar.gux-medium{width:var(--gse-ui-avatar-medium-content-size);height:var(--gse-ui-avatar-medium-content-size);font-size:var(--gse-ui-avatar-medium-initials-fontSize);font-weight:var(--gse-ui-avatar-medium-initials-fontWeight)}.gux-avatar.gux-small{width:var(--gse-ui-avatar-small-content-size);height:var(--gse-ui-avatar-small-content-size);font-size:var(--gse-ui-avatar-small-initials-fontSize);font-weight:var(--gse-ui-avatar-small-initials-fontWeight)}.gux-avatar.gux-xsmall{width:var(--gse-ui-avatar-xsmall-content-size);height:var(--gse-ui-avatar-xsmall-content-size);font-size:var(--gse-ui-avatar-xsmall-initials-fontSize);font-weight:var(--gse-ui-avatar-xsmall-initials-fontWeight)}";
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
const index$1 = require('./index-dee802be.js');
|
8
8
|
require('./get-closest-element-26894e5a.js');
|
9
9
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
const onMutation = require('./on-mutation-ec5d23bd.js');
|
8
8
|
const hasSlot = require('./has-slot-429f8b9e.js');
|
9
9
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
6
|
const index$1 = require('./index-dee802be.js');
|
7
|
-
const usage = require('./usage-
|
7
|
+
const usage = require('./usage-774666e2.js');
|
8
8
|
require('./get-closest-element-26894e5a.js');
|
9
9
|
|
10
10
|
const breadcrumbs = "Breadcrumbs";
|
@@ -6,7 +6,7 @@ const index = require('./index-75c9f0d9.js');
|
|
6
6
|
const onClickOutside = require('./on-click-outside-3c0f8816.js');
|
7
7
|
const whenEventIsFrom = require('./when-event-is-from-20e89254.js');
|
8
8
|
const afterNextRender = require('./after-next-render-a023ef47.js');
|
9
|
-
const usage = require('./usage-
|
9
|
+
const usage = require('./usage-774666e2.js');
|
10
10
|
|
11
11
|
const guxButtonMultiAccent = ['primary', 'secondary', 'tertiary'];
|
12
12
|
function getGuxButtonMultiAccent(maybeGuxButtonMultiAccent) {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
const logError = require('./log-error-8a92241e.js');
|
8
8
|
|
9
9
|
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}";
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
|
8
8
|
const guxButtonCss = ":host{display:inline-block;pointer-events:none;-webkit-user-select:none;user-select:none}:host(:focus){outline:none}:host(:focus) button{outline:none}::slotted(gux-icon){inline-size:var(--gse-ui-button-icon-size);block-size:var(--gse-ui-button-icon-size)}::slotted(*){padding-inline-start: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}";
|
9
9
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
6
|
const afterNextRender = require('./after-next-render-a023ef47.js');
|
7
7
|
const isoDates = require('./iso-dates-d0cd4802.js');
|
8
|
-
const usage = require('./usage-
|
8
|
+
const usage = require('./usage-774666e2.js');
|
9
9
|
const index$1 = require('./index-dee802be.js');
|
10
10
|
const capitalizeFirstLetter = require('./capitalize-first-letter-251c82ed.js');
|
11
11
|
require('./get-closest-element-26894e5a.js');
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
|
8
8
|
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)}";
|
9
9
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
6
|
const index$1 = require('./index-dee802be.js');
|
7
|
-
const usage = require('./usage-
|
7
|
+
const usage = require('./usage-774666e2.js');
|
8
8
|
const guxColumnManager_service = require('./gux-column-manager.service-7f1cc862.js');
|
9
9
|
require('./get-closest-element-26894e5a.js');
|
10
10
|
require('./clamp-a9926a57.js');
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
const index$1 = require('./index-dee802be.js');
|
8
8
|
const onAttributeChange = require('./on-attribute-change-9b2d8c85.js');
|
9
9
|
require('./get-closest-element-26894e5a.js');
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
6
|
const randomHtmlId = require('./random-html-id-32ef8847.js');
|
7
|
-
const usage = require('./usage-
|
7
|
+
const usage = require('./usage-774666e2.js');
|
8
8
|
const index$1 = require('./index-dee802be.js');
|
9
9
|
const onClickOutside = require('./on-click-outside-3c0f8816.js');
|
10
10
|
const afterNextRender = require('./after-next-render-a023ef47.js');
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
const index$1 = require('./index-dee802be.js');
|
8
8
|
require('./get-closest-element-26894e5a.js');
|
9
9
|
|
@@ -3,8 +3,9 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
7
|
-
const getValidTimezone = require('./get-valid-timezone-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
|
+
const getValidTimezone = require('./get-valid-timezone-6bacb49d.js');
|
8
|
+
const checkRegionalDatesCookie = require('./check-regional-dates-cookie-4bd0f650.js');
|
8
9
|
const index$1 = require('./index-dee802be.js');
|
9
10
|
require('./get-closest-element-26894e5a.js');
|
10
11
|
|
@@ -18,7 +19,7 @@ const GuxDate = class {
|
|
18
19
|
}
|
19
20
|
componentWillLoad() {
|
20
21
|
usage.trackComponent(this.root);
|
21
|
-
if (
|
22
|
+
if (checkRegionalDatesCookie.readRegionalDatesCookie()) {
|
22
23
|
this.hasRegionalDatesCookie = true;
|
23
24
|
}
|
24
25
|
else {
|
@@ -27,7 +28,7 @@ const GuxDate = class {
|
|
27
28
|
}
|
28
29
|
renderDate() {
|
29
30
|
if (this.hasRegionalDatesCookie) {
|
30
|
-
return
|
31
|
+
return checkRegionalDatesCookie.dateTimeFormat(checkRegionalDatesCookie.determineDisplayLocale(this.root), {
|
31
32
|
dateStyle: this.format,
|
32
33
|
timeZone: getValidTimezone.getValidTimezone(this.timeZone)
|
33
34
|
})
|
@@ -3,8 +3,9 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
7
|
-
const getValidTimezone = require('./get-valid-timezone-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
|
+
const getValidTimezone = require('./get-valid-timezone-6bacb49d.js');
|
8
|
+
const checkRegionalDatesCookie = require('./check-regional-dates-cookie-4bd0f650.js');
|
8
9
|
const index$1 = require('./index-dee802be.js');
|
9
10
|
require('./get-closest-element-26894e5a.js');
|
10
11
|
|
@@ -18,7 +19,7 @@ const GuxDateTime = class {
|
|
18
19
|
}
|
19
20
|
componentWillLoad() {
|
20
21
|
usage.trackComponent(this.root);
|
21
|
-
if (
|
22
|
+
if (checkRegionalDatesCookie.readRegionalDatesCookie()) {
|
22
23
|
this.hasRegionalDatesCookie = true;
|
23
24
|
}
|
24
25
|
else {
|
@@ -27,7 +28,7 @@ const GuxDateTime = class {
|
|
27
28
|
}
|
28
29
|
renderDateTime() {
|
29
30
|
if (this.hasRegionalDatesCookie) {
|
30
|
-
return
|
31
|
+
return checkRegionalDatesCookie.dateTimeFormat(checkRegionalDatesCookie.determineDisplayLocale(this.root), {
|
31
32
|
dateStyle: this.format,
|
32
33
|
timeStyle: this.format,
|
33
34
|
timeZone: getValidTimezone.getValidTimezone(this.timeZone)
|
@@ -8,7 +8,7 @@ const randomHtmlId = require('./random-html-id-32ef8847.js');
|
|
8
8
|
const afterNextRender = require('./after-next-render-a023ef47.js');
|
9
9
|
const isoDates = require('./iso-dates-d0cd4802.js');
|
10
10
|
const onClickOutside = require('./on-click-outside-3c0f8816.js');
|
11
|
-
const usage = require('./usage-
|
11
|
+
const usage = require('./usage-774666e2.js');
|
12
12
|
const index$1 = require('./index-dee802be.js');
|
13
13
|
require('./get-closest-element-26894e5a.js');
|
14
14
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
6
|
const randomHtmlId = require('./random-html-id-32ef8847.js');
|
7
|
-
const usage = require('./usage-
|
7
|
+
const usage = require('./usage-774666e2.js');
|
8
8
|
const index$1 = require('./index-dee802be.js');
|
9
9
|
require('./get-closest-element-26894e5a.js');
|
10
10
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
const index = require('./index-75c9f0d9.js');
|
6
|
-
const usage = require('./usage-
|
6
|
+
const usage = require('./usage-774666e2.js');
|
7
7
|
const index$1 = require('./index-dee802be.js');
|
8
8
|
require('./get-closest-element-26894e5a.js');
|
9
9
|
|
@@ -8,7 +8,7 @@ const index$1 = require('./index-dee802be.js');
|
|
8
8
|
const simulateNativeEvent = require('./simulate-native-event-8209a457.js');
|
9
9
|
const afterNextRender = require('./after-next-render-a023ef47.js');
|
10
10
|
const onInputDisabledStateChange = require('./on-input-disabled-state-change-005e5b3e.js');
|
11
|
-
const usage = require('./usage-
|
11
|
+
const usage = require('./usage-774666e2.js');
|
12
12
|
const guxListbox_service = require('./gux-listbox.service-e1b0f291.js');
|
13
13
|
const onMutation = require('./on-mutation-ec5d23bd.js');
|
14
14
|
require('./get-closest-element-26894e5a.js');
|
@@ -8,7 +8,7 @@ const index$1 = require('./index-dee802be.js');
|
|
8
8
|
const simulateNativeEvent = require('./simulate-native-event-8209a457.js');
|
9
9
|
const onInputDisabledStateChange = require('./on-input-disabled-state-change-005e5b3e.js');
|
10
10
|
const afterNextRender = require('./after-next-render-a023ef47.js');
|
11
|
-
const usage = require('./usage-
|
11
|
+
const usage = require('./usage-774666e2.js');
|
12
12
|
const onMutation = require('./on-mutation-ec5d23bd.js');
|
13
13
|
const guxListbox_service = require('./gux-listbox.service-e1b0f291.js');
|
14
14
|
const whenEventIsFrom = require('./when-event-is-from-20e89254.js');
|