genesys-spark-components 4.182.0 → 4.182.2

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.
Files changed (446) hide show
  1. package/dist/cjs/{get-closest-element-CIMI0Cx4.js → get-closest-element-BiXbQTqL.js} +0 -1
  2. package/dist/cjs/get-valid-timezone-wxrDYMmV.js +65 -0
  3. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-toast-legacy.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-advanced-dropdown-legacy.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-avatar-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-avatar-change-photo-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-avatar-group-add-item-beta_3.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-avatar-group-beta.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-avatar-group-item-beta.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-badge.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-blank-state.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-button-slot.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-button_2.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-calendar.cjs.entry.js +5 -5
  21. package/dist/cjs/gux-card.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-cloud-logo-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-cloud-logomark-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-column-manager.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-context-menu.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-copy-to-clipboard.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-date-beta.cjs.entry.js +7 -7
  29. package/dist/cjs/gux-date-time-beta.cjs.entry.js +7 -7
  30. package/dist/cjs/gux-datepicker.cjs.entry.js +6 -6
  31. package/dist/cjs/gux-day-beta.cjs.entry.js +4 -4
  32. package/dist/cjs/gux-disclosure-button-legacy.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-dropdown-multi.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-file-list-item.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-flag-icon-beta.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-flyout-menu.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-checkbox-group-beta.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-file-beta.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-file.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-label-indicator.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-number_2.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-radio-group-beta.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-form-field-time-zone-picker.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-form-footer.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-icon-tooltip-beta.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-illustration-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-inline-alert.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-inline-dropdown-beta.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-label-info-beta.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-link-beta.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-loading-message.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-logo-beta.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-logomark-beta.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-modal-legacy.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-modal-side-panel-beta.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-month-calendar.cjs.entry.js +5 -5
  75. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +6 -6
  76. package/dist/cjs/gux-notification-toast-legacy.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-pagination-legacy.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-prompt-input-beta.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-rich-highlight-list-item.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-rich-style-list-item_3.cjs.entry.js +3 -3
  91. package/dist/cjs/gux-rich-text-editor-action-link.cjs.entry.js +3 -3
  92. package/dist/cjs/gux-rich-text-editor-action-rich-style.cjs.entry.js +3 -3
  93. package/dist/cjs/gux-rich-text-editor-action-text-highlight.cjs.entry.js +3 -3
  94. package/dist/cjs/gux-rich-text-editor-action.cjs.entry.js +3 -3
  95. package/dist/cjs/gux-rich-text-editor-beta.cjs.entry.js +3 -3
  96. package/dist/cjs/gux-rich-text-editor-list.cjs.entry.js +1 -1
  97. package/dist/cjs/{gux-rich-text-editor.service-DvQrMYXi.js → gux-rich-text-editor.service-Czmja0Kl.js} +1 -1
  98. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  99. package/dist/cjs/gux-segmented-control-beta.cjs.entry.js +1 -1
  100. package/dist/cjs/gux-selector-card-beta.cjs.entry.js +1 -1
  101. package/dist/cjs/gux-selector-cards-beta.cjs.entry.js +1 -1
  102. package/dist/cjs/gux-side-panel-beta.cjs.entry.js +1 -1
  103. package/dist/cjs/gux-side-panel-header.cjs.entry.js +1 -1
  104. package/dist/cjs/gux-side-panel-heading.cjs.entry.js +1 -1
  105. package/dist/cjs/gux-simple-toast-legacy.cjs.entry.js +1 -1
  106. package/dist/cjs/gux-skip-navigation-list.cjs.entry.js +1 -1
  107. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  108. package/dist/cjs/gux-status-indicator-beta.cjs.entry.js +1 -1
  109. package/dist/cjs/gux-step-title.cjs.entry.js +1 -1
  110. package/dist/cjs/gux-step.cjs.entry.js +1 -1
  111. package/dist/cjs/gux-stepper-beta.cjs.entry.js +1 -1
  112. package/dist/cjs/gux-switch-legacy.cjs.entry.js +1 -1
  113. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  114. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +3 -3
  115. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  116. package/dist/cjs/gux-table-toolbar.cjs.entry.js +1 -1
  117. package/dist/cjs/gux-table.cjs.entry.js +1 -1
  118. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  119. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  120. package/dist/cjs/gux-tag.cjs.entry.js +1 -1
  121. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  122. package/dist/cjs/gux-time-beta.cjs.entry.js +7 -7
  123. package/dist/cjs/gux-time-picker.cjs.entry.js +9 -9
  124. package/dist/cjs/gux-time-zone-beta.cjs.entry.js +1 -1
  125. package/dist/cjs/gux-time-zone-picker-beta.cjs.entry.js +1 -1
  126. package/dist/cjs/gux-toast.cjs.entry.js +1 -1
  127. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  128. package/dist/cjs/gux-tooltip-base-beta_2.cjs.entry.js +1 -1
  129. package/dist/cjs/gux-tooltip-pointer-beta.cjs.entry.js +1 -1
  130. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  131. package/dist/cjs/{intl-CN825h6c.js → spark-intl-V9HYNeeC.js} +1 -1
  132. package/dist/cjs/{usage-ObFGxeV1.js → usage-BIGTSq_I.js} +1 -1
  133. package/dist/cjs/{use-regional-dates-qjhuD9Ak.js → use-regional-dates-5VnN03zC.js} +3 -3
  134. package/dist/collection/components/beta/gux-date/gux-date.js +4 -4
  135. package/dist/collection/components/beta/gux-date/tests/gux-date.common.js +16 -2
  136. package/dist/collection/components/beta/gux-date-time/gux-date-time.js +4 -4
  137. package/dist/collection/components/beta/gux-date-time/tests/gux-date-time.common.js +2 -2
  138. package/dist/collection/components/beta/gux-day/gux-day.js +2 -2
  139. package/dist/collection/components/beta/gux-flag-icon/gux-flag-icon.js +1 -1
  140. package/dist/collection/components/beta/gux-month-picker/gux-month-calendar/gux-month-calendar.js +3 -3
  141. package/dist/collection/components/beta/gux-month-picker/gux-month-picker.js +2 -2
  142. package/dist/collection/components/beta/gux-phone-input/gux-phone-input.js +2 -2
  143. package/dist/collection/components/beta/gux-rich-text-editor/gux-rich-text-editor.service.js +1 -1
  144. package/dist/collection/components/beta/gux-time/gux-time.js +4 -4
  145. package/dist/collection/components/beta/gux-time/tests/gux-time.common.js +2 -2
  146. package/dist/collection/components/beta/gux-time-zone/gux-time-zone.js +1 -1
  147. package/dist/collection/components/stable/gux-calendar/gux-calendar.service.js +2 -2
  148. package/dist/collection/components/stable/gux-datepicker/gux-datepicker.js +3 -3
  149. package/dist/collection/components/stable/gux-table-toolbar/gux-table-toolbar-custom-action/gux-table-toolbar-custom-action.js +2 -2
  150. package/dist/collection/components/stable/gux-time-picker/gux-time-picker.js +2 -3
  151. package/dist/collection/components/stable/gux-time-picker/gux-time-picker.service.js +2 -2
  152. package/dist/collection/i18n/read-regional-dates-cookie.js +1 -1
  153. package/dist/collection/i18n/read-regional-dates-var.js +1 -1
  154. package/dist/collection/i18n/time-zone/identifiers.js +146 -3
  155. package/dist/collection/i18n/use-regional-dates.js +1 -1
  156. package/dist/collection/utils/date/get-valid-timezone.js +9 -4
  157. package/dist/esm/{get-closest-element-BZb6pJEJ.js → get-closest-element-DCZG2J0G.js} +0 -1
  158. package/dist/esm/get-valid-timezone-DQH6wR2E.js +62 -0
  159. package/dist/esm/gux-accordion.entry.js +1 -1
  160. package/dist/esm/gux-action-button.entry.js +1 -1
  161. package/dist/esm/gux-action-toast-legacy.entry.js +1 -1
  162. package/dist/esm/gux-advanced-dropdown-legacy.entry.js +1 -1
  163. package/dist/esm/gux-announce-beta.entry.js +1 -1
  164. package/dist/esm/gux-avatar-beta.entry.js +1 -1
  165. package/dist/esm/gux-avatar-change-photo-beta.entry.js +1 -1
  166. package/dist/esm/gux-avatar-group-add-item-beta_3.entry.js +1 -1
  167. package/dist/esm/gux-avatar-group-beta.entry.js +1 -1
  168. package/dist/esm/gux-avatar-group-item-beta.entry.js +1 -1
  169. package/dist/esm/gux-badge.entry.js +1 -1
  170. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  171. package/dist/esm/gux-blank-state.entry.js +1 -1
  172. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  173. package/dist/esm/gux-button-multi.entry.js +1 -1
  174. package/dist/esm/gux-button-slot.entry.js +1 -1
  175. package/dist/esm/gux-button_2.entry.js +1 -1
  176. package/dist/esm/gux-calendar.entry.js +4 -4
  177. package/dist/esm/gux-card.entry.js +1 -1
  178. package/dist/esm/gux-cloud-logo-beta.entry.js +1 -1
  179. package/dist/esm/gux-cloud-logomark-beta.entry.js +1 -1
  180. package/dist/esm/gux-column-manager.entry.js +1 -1
  181. package/dist/esm/gux-content-search.entry.js +1 -1
  182. package/dist/esm/gux-context-menu.entry.js +1 -1
  183. package/dist/esm/gux-copy-to-clipboard.entry.js +1 -1
  184. package/dist/esm/gux-date-beta.entry.js +6 -6
  185. package/dist/esm/gux-date-time-beta.entry.js +6 -6
  186. package/dist/esm/gux-datepicker.entry.js +5 -5
  187. package/dist/esm/gux-day-beta.entry.js +3 -3
  188. package/dist/esm/gux-disclosure-button-legacy.entry.js +1 -1
  189. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  190. package/dist/esm/gux-dropdown-multi.entry.js +1 -1
  191. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  192. package/dist/esm/gux-file-list-item.entry.js +1 -1
  193. package/dist/esm/gux-flag-icon-beta.entry.js +1 -1
  194. package/dist/esm/gux-flyout-menu.entry.js +1 -1
  195. package/dist/esm/gux-form-field-checkbox-group-beta.entry.js +1 -1
  196. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  197. package/dist/esm/gux-form-field-color.entry.js +1 -1
  198. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  199. package/dist/esm/gux-form-field-file-beta.entry.js +1 -1
  200. package/dist/esm/gux-form-field-file.entry.js +1 -1
  201. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  202. package/dist/esm/gux-form-field-label-indicator.entry.js +1 -1
  203. package/dist/esm/gux-form-field-number_2.entry.js +1 -1
  204. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  205. package/dist/esm/gux-form-field-radio-group-beta.entry.js +1 -1
  206. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  207. package/dist/esm/gux-form-field-range.entry.js +1 -1
  208. package/dist/esm/gux-form-field-search.entry.js +1 -1
  209. package/dist/esm/gux-form-field-select.entry.js +1 -1
  210. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  211. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  212. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  213. package/dist/esm/gux-form-field-time-zone-picker.entry.js +1 -1
  214. package/dist/esm/gux-form-footer.entry.js +1 -1
  215. package/dist/esm/gux-icon-tooltip-beta.entry.js +1 -1
  216. package/dist/esm/gux-icon.entry.js +1 -1
  217. package/dist/esm/gux-illustration-beta.entry.js +1 -1
  218. package/dist/esm/gux-inline-alert.entry.js +1 -1
  219. package/dist/esm/gux-inline-dropdown-beta.entry.js +1 -1
  220. package/dist/esm/gux-label-info-beta.entry.js +1 -1
  221. package/dist/esm/gux-link-beta.entry.js +1 -1
  222. package/dist/esm/gux-list.entry.js +1 -1
  223. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  224. package/dist/esm/gux-loading-message.entry.js +1 -1
  225. package/dist/esm/gux-logo-beta.entry.js +1 -1
  226. package/dist/esm/gux-logomark-beta.entry.js +1 -1
  227. package/dist/esm/gux-modal-legacy.entry.js +1 -1
  228. package/dist/esm/gux-modal-side-panel-beta.entry.js +1 -1
  229. package/dist/esm/gux-modal.entry.js +1 -1
  230. package/dist/esm/gux-month-calendar.entry.js +4 -4
  231. package/dist/esm/gux-month-picker-beta.entry.js +5 -5
  232. package/dist/esm/gux-notification-toast-legacy.entry.js +1 -1
  233. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  234. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  235. package/dist/esm/gux-pagination-legacy.entry.js +1 -1
  236. package/dist/esm/gux-pagination.entry.js +1 -1
  237. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  238. package/dist/esm/gux-popover-beta.entry.js +1 -1
  239. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  240. package/dist/esm/gux-popover-list.entry.js +1 -1
  241. package/dist/esm/gux-prompt-input-beta.entry.js +1 -1
  242. package/dist/esm/gux-radial-loading.entry.js +1 -1
  243. package/dist/esm/gux-radial-progress.entry.js +1 -1
  244. package/dist/esm/gux-rating.entry.js +1 -1
  245. package/dist/esm/gux-rich-highlight-list-item.entry.js +1 -1
  246. package/dist/esm/gux-rich-style-list-item_3.entry.js +3 -3
  247. package/dist/esm/gux-rich-text-editor-action-link.entry.js +3 -3
  248. package/dist/esm/gux-rich-text-editor-action-rich-style.entry.js +3 -3
  249. package/dist/esm/gux-rich-text-editor-action-text-highlight.entry.js +3 -3
  250. package/dist/esm/gux-rich-text-editor-action.entry.js +3 -3
  251. package/dist/esm/gux-rich-text-editor-beta.entry.js +3 -3
  252. package/dist/esm/gux-rich-text-editor-list.entry.js +1 -1
  253. package/dist/esm/{gux-rich-text-editor.service-CJnB9AGA.js → gux-rich-text-editor.service-B2Ts-zZ9.js} +1 -1
  254. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  255. package/dist/esm/gux-segmented-control-beta.entry.js +1 -1
  256. package/dist/esm/gux-selector-card-beta.entry.js +1 -1
  257. package/dist/esm/gux-selector-cards-beta.entry.js +1 -1
  258. package/dist/esm/gux-side-panel-beta.entry.js +1 -1
  259. package/dist/esm/gux-side-panel-header.entry.js +1 -1
  260. package/dist/esm/gux-side-panel-heading.entry.js +1 -1
  261. package/dist/esm/gux-simple-toast-legacy.entry.js +1 -1
  262. package/dist/esm/gux-skip-navigation-list.entry.js +1 -1
  263. package/dist/esm/gux-sort-control.entry.js +1 -1
  264. package/dist/esm/gux-status-indicator-beta.entry.js +1 -1
  265. package/dist/esm/gux-step-title.entry.js +1 -1
  266. package/dist/esm/gux-step.entry.js +1 -1
  267. package/dist/esm/gux-stepper-beta.entry.js +1 -1
  268. package/dist/esm/gux-switch-legacy.entry.js +1 -1
  269. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  270. package/dist/esm/gux-table-toolbar-custom-action.entry.js +3 -3
  271. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  272. package/dist/esm/gux-table-toolbar.entry.js +1 -1
  273. package/dist/esm/gux-table.entry.js +1 -1
  274. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  275. package/dist/esm/gux-tabs.entry.js +1 -1
  276. package/dist/esm/gux-tag.entry.js +1 -1
  277. package/dist/esm/gux-text-highlight.entry.js +1 -1
  278. package/dist/esm/gux-time-beta.entry.js +6 -6
  279. package/dist/esm/gux-time-picker.entry.js +5 -5
  280. package/dist/esm/gux-time-zone-beta.entry.js +1 -1
  281. package/dist/esm/gux-time-zone-picker-beta.entry.js +1 -1
  282. package/dist/esm/gux-toast.entry.js +1 -1
  283. package/dist/esm/gux-toggle.entry.js +1 -1
  284. package/dist/esm/gux-tooltip-base-beta_2.entry.js +1 -1
  285. package/dist/esm/gux-tooltip-pointer-beta.entry.js +1 -1
  286. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  287. package/dist/esm/{intl-CpptOorV.js → spark-intl-BI0RT1yH.js} +1 -1
  288. package/dist/esm/{usage-Dfk0nYGa.js → usage-CCdqrX4v.js} +1 -1
  289. package/dist/esm/{use-regional-dates-ZuNZ-MBw.js → use-regional-dates-BgaA4g76.js} +3 -3
  290. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  291. package/dist/genesys-webcomponents/{p-95a055c6.entry.js → p-002d6150.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-b1339a99.entry.js → p-027e5b54.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-6502cd44.entry.js → p-02f823a3.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-43984609.entry.js → p-052a0108.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-69ad4339.entry.js → p-076f99f4.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-ecaa12ee.entry.js → p-07a2e569.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-bb1dea85.entry.js → p-0bbce045.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-2dd36587.entry.js → p-0cb94523.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-afd0ec1a.entry.js → p-0f3a7df0.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-40be5948.entry.js → p-0fa27ace.entry.js} +1 -1
  301. package/dist/genesys-webcomponents/{p-acb9d96d.entry.js → p-1185449b.entry.js} +1 -1
  302. package/dist/genesys-webcomponents/{p-482dc07d.entry.js → p-12c0d95a.entry.js} +1 -1
  303. package/dist/genesys-webcomponents/{p-485ddb95.entry.js → p-1330ad57.entry.js} +1 -1
  304. package/dist/genesys-webcomponents/{p-32a77c6f.entry.js → p-1392deaa.entry.js} +1 -1
  305. package/dist/genesys-webcomponents/{p-9000d7b5.entry.js → p-14a5696c.entry.js} +1 -1
  306. package/dist/genesys-webcomponents/{p-28d35aa7.entry.js → p-14e88134.entry.js} +1 -1
  307. package/dist/genesys-webcomponents/{p-aa7f4578.entry.js → p-15b196c8.entry.js} +1 -1
  308. package/dist/genesys-webcomponents/{p-872ca41a.entry.js → p-15e338cb.entry.js} +1 -1
  309. package/dist/genesys-webcomponents/{p-0982e88c.entry.js → p-1f5e49e2.entry.js} +1 -1
  310. package/dist/genesys-webcomponents/{p-c7174199.entry.js → p-1f99cb9b.entry.js} +1 -1
  311. package/dist/genesys-webcomponents/{p-2b0df652.entry.js → p-20b0baf1.entry.js} +1 -1
  312. package/dist/genesys-webcomponents/p-210bb6d0.entry.js +1 -0
  313. package/dist/genesys-webcomponents/{p-427f650e.entry.js → p-21f73b7a.entry.js} +1 -1
  314. package/dist/genesys-webcomponents/{p-fb27a8a9.entry.js → p-22803eb3.entry.js} +1 -1
  315. package/dist/genesys-webcomponents/{p-936987a3.entry.js → p-2371b70c.entry.js} +1 -1
  316. package/dist/genesys-webcomponents/{p-3c5a3cab.entry.js → p-23c1db09.entry.js} +1 -1
  317. package/dist/genesys-webcomponents/{p-059b42cf.entry.js → p-24135257.entry.js} +1 -1
  318. package/dist/genesys-webcomponents/{p-b7a5d81a.entry.js → p-24629c02.entry.js} +1 -1
  319. package/dist/genesys-webcomponents/{p-b779eb0d.entry.js → p-26ec1dcf.entry.js} +1 -1
  320. package/dist/genesys-webcomponents/p-2b6da0c5.entry.js +1 -0
  321. package/dist/genesys-webcomponents/{p-51b06281.entry.js → p-2baf3736.entry.js} +1 -1
  322. package/dist/genesys-webcomponents/{p-ac5123f5.entry.js → p-2e2b240c.entry.js} +1 -1
  323. package/dist/genesys-webcomponents/{p-dfb41cde.entry.js → p-32596e61.entry.js} +1 -1
  324. package/dist/genesys-webcomponents/{p-dc632df5.entry.js → p-32edbc1f.entry.js} +1 -1
  325. package/dist/genesys-webcomponents/{p-11efc4e8.entry.js → p-348158d9.entry.js} +1 -1
  326. package/dist/genesys-webcomponents/{p-af58914a.entry.js → p-34ece808.entry.js} +1 -1
  327. package/dist/genesys-webcomponents/{p-9509386b.entry.js → p-35180840.entry.js} +1 -1
  328. package/dist/genesys-webcomponents/{p-a864eb89.entry.js → p-3615d5e8.entry.js} +1 -1
  329. package/dist/genesys-webcomponents/{p-06219232.entry.js → p-3c869816.entry.js} +1 -1
  330. package/dist/genesys-webcomponents/{p-1d22ab52.entry.js → p-3d06d2a4.entry.js} +1 -1
  331. package/dist/genesys-webcomponents/{p-e20a9ad3.entry.js → p-3d3430b7.entry.js} +1 -1
  332. package/dist/genesys-webcomponents/{p-231359a9.entry.js → p-3fa76f5c.entry.js} +1 -1
  333. package/dist/genesys-webcomponents/{p-b8a96941.entry.js → p-450875f8.entry.js} +1 -1
  334. package/dist/genesys-webcomponents/p-48539f96.entry.js +1 -0
  335. package/dist/genesys-webcomponents/{p-6f52c5bb.entry.js → p-4be1c12a.entry.js} +1 -1
  336. package/dist/genesys-webcomponents/{p-6de3144d.entry.js → p-528a169b.entry.js} +1 -1
  337. package/dist/genesys-webcomponents/{p-4c0ca725.entry.js → p-5c769985.entry.js} +1 -1
  338. package/dist/genesys-webcomponents/{p-c5764d14.entry.js → p-5dd0e627.entry.js} +1 -1
  339. package/dist/genesys-webcomponents/{p-f47e1ba4.entry.js → p-5e73074b.entry.js} +1 -1
  340. package/dist/genesys-webcomponents/{p-4c951722.entry.js → p-5eaf48cd.entry.js} +1 -1
  341. package/dist/genesys-webcomponents/{p-550ea2a0.entry.js → p-5ef199b9.entry.js} +1 -1
  342. package/dist/genesys-webcomponents/{p-86dcafcc.entry.js → p-5facb329.entry.js} +1 -1
  343. package/dist/genesys-webcomponents/{p-501dac20.entry.js → p-5fe6cc12.entry.js} +1 -1
  344. package/dist/genesys-webcomponents/p-61d513b7.entry.js +1 -0
  345. package/dist/genesys-webcomponents/{p-7a31c7a8.entry.js → p-62f48bee.entry.js} +1 -1
  346. package/dist/genesys-webcomponents/{p-e1ca5955.entry.js → p-640ddd19.entry.js} +1 -1
  347. package/dist/genesys-webcomponents/{p-9a1577f7.entry.js → p-6531001f.entry.js} +1 -1
  348. package/dist/genesys-webcomponents/{p-a49cf4ec.entry.js → p-67817426.entry.js} +1 -1
  349. package/dist/genesys-webcomponents/{p-d78bbe94.entry.js → p-679fdf11.entry.js} +1 -1
  350. package/dist/genesys-webcomponents/{p-66254d9d.entry.js → p-69d7e9f2.entry.js} +1 -1
  351. package/dist/genesys-webcomponents/{p-0ff5c1bd.entry.js → p-6c9ec7ec.entry.js} +1 -1
  352. package/dist/genesys-webcomponents/{p-ff5b2f0a.entry.js → p-6da064d9.entry.js} +1 -1
  353. package/dist/genesys-webcomponents/p-6debf44c.entry.js +1 -0
  354. package/dist/genesys-webcomponents/{p-03feffbd.entry.js → p-6ff79225.entry.js} +1 -1
  355. package/dist/genesys-webcomponents/{p-d06ca25c.entry.js → p-73ffb994.entry.js} +1 -1
  356. package/dist/genesys-webcomponents/{p-2068833c.entry.js → p-74789915.entry.js} +1 -1
  357. package/dist/genesys-webcomponents/{p-2813b952.entry.js → p-7639cf9e.entry.js} +1 -1
  358. package/dist/genesys-webcomponents/{p-79882492.entry.js → p-79258623.entry.js} +1 -1
  359. package/dist/genesys-webcomponents/{p-0b30056f.entry.js → p-7c46cce0.entry.js} +1 -1
  360. package/dist/genesys-webcomponents/p-7ecc9067.entry.js +1 -0
  361. package/dist/genesys-webcomponents/{p-29762e90.entry.js → p-82045dea.entry.js} +1 -1
  362. package/dist/genesys-webcomponents/{p-a53ca97b.entry.js → p-883ddef9.entry.js} +1 -1
  363. package/dist/genesys-webcomponents/{p-da7b91f4.entry.js → p-894308f4.entry.js} +1 -1
  364. package/dist/genesys-webcomponents/{p-2b661701.entry.js → p-8b3e8745.entry.js} +1 -1
  365. package/dist/genesys-webcomponents/{p-7e5ecd9e.entry.js → p-8c1aaa00.entry.js} +1 -1
  366. package/dist/genesys-webcomponents/{p-9e6b9625.entry.js → p-91f4b8b2.entry.js} +1 -1
  367. package/dist/genesys-webcomponents/{p-42157ed1.entry.js → p-9270f9bb.entry.js} +1 -1
  368. package/dist/genesys-webcomponents/{p-acf1e0d2.entry.js → p-9639c170.entry.js} +1 -1
  369. package/dist/genesys-webcomponents/{p-c68e1b53.entry.js → p-974f66cc.entry.js} +1 -1
  370. package/dist/genesys-webcomponents/p-980fac9f.entry.js +1 -0
  371. package/dist/genesys-webcomponents/{p-a25122cc.entry.js → p-9b7d76e0.entry.js} +1 -1
  372. package/dist/genesys-webcomponents/{p-Dfk0nYGa.js → p-CCdqrX4v.js} +1 -1
  373. package/dist/genesys-webcomponents/p-CGSCz3OL.js +1 -0
  374. package/dist/genesys-webcomponents/{p-B0p1zRQq.js → p-Du774lsF.js} +1 -1
  375. package/dist/genesys-webcomponents/{p-a2e30859.entry.js → p-a0523a27.entry.js} +1 -1
  376. package/dist/genesys-webcomponents/{p-1c560362.entry.js → p-a5156efc.entry.js} +1 -1
  377. package/dist/genesys-webcomponents/{p-3fe6d842.entry.js → p-a75e298b.entry.js} +1 -1
  378. package/dist/genesys-webcomponents/{p-96ffbf9d.entry.js → p-a8310899.entry.js} +1 -1
  379. package/dist/genesys-webcomponents/{p-04508744.entry.js → p-a8e241d4.entry.js} +1 -1
  380. package/dist/genesys-webcomponents/{p-a439080d.entry.js → p-a992222c.entry.js} +1 -1
  381. package/dist/genesys-webcomponents/{p-5f35d9ce.entry.js → p-ac4c788a.entry.js} +1 -1
  382. package/dist/genesys-webcomponents/{p-834738c5.entry.js → p-aebd6de3.entry.js} +1 -1
  383. package/dist/genesys-webcomponents/{p-bddc87ee.entry.js → p-b1b97016.entry.js} +1 -1
  384. package/dist/genesys-webcomponents/{p-e8c17ba4.entry.js → p-b323f298.entry.js} +1 -1
  385. package/dist/genesys-webcomponents/{p-46c80988.entry.js → p-b70813e3.entry.js} +1 -1
  386. package/dist/genesys-webcomponents/{p-d5f88f22.entry.js → p-b7d4ba81.entry.js} +1 -1
  387. package/dist/genesys-webcomponents/{p-a83b76cd.entry.js → p-ba4f66be.entry.js} +1 -1
  388. package/dist/genesys-webcomponents/{p-d4076e9e.entry.js → p-bc45077b.entry.js} +1 -1
  389. package/dist/genesys-webcomponents/{p-609d8334.entry.js → p-bdfd75cf.entry.js} +1 -1
  390. package/dist/genesys-webcomponents/{p-20c236b6.entry.js → p-bf8c4f96.entry.js} +1 -1
  391. package/dist/genesys-webcomponents/{p-053bbf83.entry.js → p-c3f1db1f.entry.js} +1 -1
  392. package/dist/genesys-webcomponents/{p-88e2a5b5.entry.js → p-cb1a7c84.entry.js} +1 -1
  393. package/dist/genesys-webcomponents/{p-a3e57bbd.entry.js → p-ccb740ba.entry.js} +1 -1
  394. package/dist/genesys-webcomponents/{p-0891a8a0.entry.js → p-cedbaeb3.entry.js} +1 -1
  395. package/dist/genesys-webcomponents/{p-258c5578.entry.js → p-d4aff29a.entry.js} +1 -1
  396. package/dist/genesys-webcomponents/{p-2361fa2e.entry.js → p-d5994c02.entry.js} +1 -1
  397. package/dist/genesys-webcomponents/{p-429a6c87.entry.js → p-d835b4cb.entry.js} +1 -1
  398. package/dist/genesys-webcomponents/p-d8f145e2.entry.js +1 -0
  399. package/dist/genesys-webcomponents/{p-3f08402f.entry.js → p-dae77280.entry.js} +1 -1
  400. package/dist/genesys-webcomponents/{p-5720e044.entry.js → p-dbdc395b.entry.js} +1 -1
  401. package/dist/genesys-webcomponents/{p-f0d7d3fb.entry.js → p-dd417ee3.entry.js} +1 -1
  402. package/dist/genesys-webcomponents/{p-491a728e.entry.js → p-ddedb1d4.entry.js} +1 -1
  403. package/dist/genesys-webcomponents/{p-a23c6a51.entry.js → p-de1a7f1c.entry.js} +1 -1
  404. package/dist/genesys-webcomponents/{p-cc35276f.entry.js → p-dfe5daf4.entry.js} +1 -1
  405. package/dist/genesys-webcomponents/{p-ba78518e.entry.js → p-e00a1bcb.entry.js} +1 -1
  406. package/dist/genesys-webcomponents/{p-695056c0.entry.js → p-e2f38a31.entry.js} +1 -1
  407. package/dist/genesys-webcomponents/{p-003b5126.entry.js → p-e6bed664.entry.js} +1 -1
  408. package/dist/genesys-webcomponents/{p-df1842d9.entry.js → p-e6f2d1f0.entry.js} +1 -1
  409. package/dist/genesys-webcomponents/{p-c1b344ab.entry.js → p-e7c1a3fe.entry.js} +1 -1
  410. package/dist/genesys-webcomponents/{p-999ce9c9.entry.js → p-e85f8eae.entry.js} +1 -1
  411. package/dist/genesys-webcomponents/p-e8824406.entry.js +1 -0
  412. package/dist/genesys-webcomponents/{p-b4f13af4.entry.js → p-ea691ad9.entry.js} +1 -1
  413. package/dist/genesys-webcomponents/{p-b5b09d15.entry.js → p-eaa2b88b.entry.js} +1 -1
  414. package/dist/genesys-webcomponents/{p-320f0ec9.entry.js → p-eb11148f.entry.js} +1 -1
  415. package/dist/genesys-webcomponents/{p-6467a711.entry.js → p-eb64bb33.entry.js} +1 -1
  416. package/dist/genesys-webcomponents/{p-d3430e75.entry.js → p-eff18fef.entry.js} +1 -1
  417. package/dist/genesys-webcomponents/{p-d62265e9.entry.js → p-f0800fff.entry.js} +1 -1
  418. package/dist/genesys-webcomponents/{p-456fdc62.entry.js → p-f41d1ad6.entry.js} +1 -1
  419. package/dist/genesys-webcomponents/{p-79b58ed5.entry.js → p-f556a3bf.entry.js} +1 -1
  420. package/dist/genesys-webcomponents/{p-21e7f8f9.entry.js → p-f7519fcb.entry.js} +1 -1
  421. package/dist/genesys-webcomponents/{p-Bqbn0_rB.js → p-wqCHc7t7.js} +1 -1
  422. package/dist/stencil-wrapper.js +1 -1
  423. package/dist/types/components/beta/gux-date/tests/gux-date.common.d.ts +4 -0
  424. package/dist/types/i18n/time-zone/identifiers.d.ts +1 -1
  425. package/dist/types/i18n/time-zone/types.d.ts +2 -2
  426. package/dist/types/stencil-wrapper.d.ts +1 -1
  427. package/dist/types/utils/date/get-valid-timezone.d.ts +1 -2
  428. package/package.json +3 -3
  429. package/dist/cjs/get-valid-timezone-LnXg9Ygz.js +0 -520
  430. package/dist/collection/genesys-spark-utils/get-closest-element.js +0 -17
  431. package/dist/collection/genesys-spark-utils/intl.js +0 -131
  432. package/dist/esm/get-valid-timezone-DX5H3qid.js +0 -517
  433. package/dist/genesys-webcomponents/p-76b3af17.entry.js +0 -1
  434. package/dist/genesys-webcomponents/p-797484b6.entry.js +0 -1
  435. package/dist/genesys-webcomponents/p-804fec2f.entry.js +0 -1
  436. package/dist/genesys-webcomponents/p-8eed3de6.entry.js +0 -1
  437. package/dist/genesys-webcomponents/p-9131eecb.entry.js +0 -1
  438. package/dist/genesys-webcomponents/p-BxILAe-M.js +0 -1
  439. package/dist/genesys-webcomponents/p-a3d3ca07.entry.js +0 -1
  440. package/dist/genesys-webcomponents/p-c4f7d76a.entry.js +0 -1
  441. package/dist/genesys-webcomponents/p-fbb18f10.entry.js +0 -1
  442. package/dist/genesys-webcomponents/p-fd980cc8.entry.js +0 -1
  443. package/dist/types/genesys-spark-utils/get-closest-element.d.ts +0 -1
  444. package/dist/types/genesys-spark-utils/intl.d.ts +0 -30
  445. /package/dist/genesys-webcomponents/{p-ZuNZ-MBw.js → p-BgaA4g76.js} +0 -0
  446. /package/dist/genesys-webcomponents/{p-BZb6pJEJ.js → p-DCZG2J0G.js} +0 -0
@@ -1,520 +0,0 @@
1
- 'use strict';
2
-
3
- var index = require('./index-B_c_3UUK.js');
4
-
5
- /**
6
- * @class A class that implements the method needed to format dates and times depending on locales
7
- */
8
- class DateTimeFormatter {
9
- /**
10
- * @constructor
11
- * @param locale A locale string is required to initialize a DateTimeFormatter class instance
12
- */
13
- constructor(locale) {
14
- if (index.locales.includes(locale)) {
15
- this.locale = locale;
16
- }
17
- else {
18
- console.warn(`Locale "${locale}" is not supported. Falling back to English translation.`);
19
- this.locale = 'en';
20
- }
21
- }
22
- /**
23
- *
24
- * @param {Date} datetime A Date object that requires formatting
25
- * @param {GuxDateTimeFormat} format An allowed format string
26
- * @returns {string} Formatted date string
27
- */
28
- formatDate(datetime, format, options = {}) {
29
- return datetime.toLocaleDateString(this.locale, Object.assign({}, options, { dateStyle: format }));
30
- }
31
- /**
32
- *
33
- * @param {Date} datetime A Date object that requires formatting
34
- * @param {GuxDateTimeFormat} format An allowed format string
35
- * @returns {string} Formatted time string
36
- */
37
- formatTime(datetime, format, options = {}) {
38
- return datetime.toLocaleTimeString(this.locale, Object.assign({}, options, { timeStyle: format }));
39
- }
40
- /**
41
- *
42
- * @param {Date} datetime A Date object that requires formatting
43
- * @param {GuxDateTimeFormat} format An allowed format string
44
- * @returns {string} Formatted datetime string
45
- */
46
- formatDateTime(datetime, format, options = {}) {
47
- return datetime.toLocaleString(this.locale, Object.assign({}, options, { dateStyle: format, timeStyle: format }));
48
- }
49
- }
50
-
51
- const timeZoneIdentifiers = [
52
- 'Africa/Abidjan',
53
- 'Africa/Accra',
54
- 'Africa/Addis_Ababa',
55
- 'Africa/Algiers',
56
- 'Africa/Asmara',
57
- 'Africa/Bamako',
58
- 'Africa/Bangui',
59
- 'Africa/Banjul',
60
- 'Africa/Bissau',
61
- 'Africa/Blantyre',
62
- 'Africa/Brazzaville',
63
- 'Africa/Bujumbura',
64
- 'Africa/Cairo',
65
- 'Africa/Casablanca',
66
- 'Africa/Ceuta',
67
- 'Africa/Conakry',
68
- 'Africa/Dakar',
69
- 'Africa/Dar_es_Salaam',
70
- 'Africa/Djibouti',
71
- 'Africa/Douala',
72
- 'Africa/El_Aaiun',
73
- 'Africa/Freetown',
74
- 'Africa/Gaborone',
75
- 'Africa/Harare',
76
- 'Africa/Johannesburg',
77
- 'Africa/Juba',
78
- 'Africa/Kampala',
79
- 'Africa/Khartoum',
80
- 'Africa/Kigali',
81
- 'Africa/Kinshasa',
82
- 'Africa/Lagos',
83
- 'Africa/Libreville',
84
- 'Africa/Lome',
85
- 'Africa/Luanda',
86
- 'Africa/Lubumbashi',
87
- 'Africa/Lusaka',
88
- 'Africa/Malabo',
89
- 'Africa/Maputo',
90
- 'Africa/Maseru',
91
- 'Africa/Mbabane',
92
- 'Africa/Mogadishu',
93
- 'Africa/Monrovia',
94
- 'Africa/Nairobi',
95
- 'Africa/Ndjamena',
96
- 'Africa/Niamey',
97
- 'Africa/Nouakchott',
98
- 'Africa/Ouagadougou',
99
- 'Africa/Porto-Novo',
100
- 'Africa/Sao_Tome',
101
- 'Africa/Tripoli',
102
- 'Africa/Tunis',
103
- 'Africa/Windhoek',
104
- 'America/Adak',
105
- 'America/Anchorage',
106
- 'America/Anguilla',
107
- 'America/Antigua',
108
- 'America/Araguaina',
109
- 'America/Argentina/Buenos_Aires',
110
- 'America/Argentina/Catamarca',
111
- 'America/Argentina/Cordoba',
112
- 'America/Argentina/Jujuy',
113
- 'America/Argentina/La_Rioja',
114
- 'America/Argentina/Mendoza',
115
- 'America/Argentina/Rio_Gallegos',
116
- 'America/Argentina/Salta',
117
- 'America/Argentina/San_Juan',
118
- 'America/Argentina/San_Luis',
119
- 'America/Argentina/Tucuman',
120
- 'America/Argentina/Ushuaia',
121
- 'America/Aruba',
122
- 'America/Asuncion',
123
- 'America/Atikokan',
124
- 'America/Bahia',
125
- 'America/Bahia_Banderas',
126
- 'America/Barbados',
127
- 'America/Belem',
128
- 'America/Belize',
129
- 'America/Blanc-Sablon',
130
- 'America/Boa_Vista',
131
- 'America/Bogota',
132
- 'America/Boise',
133
- 'America/Cambridge_Bay',
134
- 'America/Campo_Grande',
135
- 'America/Cancun',
136
- 'America/Caracas',
137
- 'America/Cayenne',
138
- 'America/Cayman',
139
- 'America/Chicago',
140
- 'America/Chihuahua',
141
- // 'America/Ciudad_Juarez', https://stackoverflow.com/questions/74820972/chrome-intl-cant-handle-america-ciudad-juarez
142
- 'America/Costa_Rica',
143
- 'America/Creston',
144
- 'America/Cuiaba',
145
- 'America/Curacao',
146
- 'America/Danmarkshavn',
147
- 'America/Dawson',
148
- 'America/Dawson_Creek',
149
- 'America/Denver',
150
- 'America/Detroit',
151
- 'America/Dominica',
152
- 'America/Edmonton',
153
- 'America/Eirunepe',
154
- 'America/El_Salvador',
155
- 'America/Fort_Nelson',
156
- 'America/Fortaleza',
157
- 'America/Glace_Bay',
158
- 'America/Goose_Bay',
159
- 'America/Grand_Turk',
160
- 'America/Grenada',
161
- 'America/Guadeloupe',
162
- 'America/Guatemala',
163
- 'America/Guayaquil',
164
- 'America/Guyana',
165
- 'America/Halifax',
166
- 'America/Havana',
167
- 'America/Hermosillo',
168
- 'America/Indiana/Indianapolis',
169
- 'America/Indiana/Knox',
170
- 'America/Indiana/Marengo',
171
- 'America/Indiana/Petersburg',
172
- 'America/Indiana/Tell_City',
173
- 'America/Indiana/Vevay',
174
- 'America/Indiana/Vincennes',
175
- 'America/Indiana/Winamac',
176
- 'America/Inuvik',
177
- 'America/Iqaluit',
178
- 'America/Jamaica',
179
- 'America/Juneau',
180
- 'America/Kentucky/Louisville',
181
- 'America/Kentucky/Monticello',
182
- 'America/Kralendijk',
183
- 'America/La_Paz',
184
- 'America/Lima',
185
- 'America/Los_Angeles',
186
- 'America/Lower_Princes',
187
- 'America/Maceio',
188
- 'America/Managua',
189
- 'America/Manaus',
190
- 'America/Marigot',
191
- 'America/Martinique',
192
- 'America/Matamoros',
193
- 'America/Mazatlan',
194
- 'America/Menominee',
195
- 'America/Merida',
196
- 'America/Metlakatla',
197
- 'America/Mexico_City',
198
- 'America/Miquelon',
199
- 'America/Moncton',
200
- 'America/Monterrey',
201
- 'America/Montevideo',
202
- 'America/Montserrat',
203
- 'America/Nassau',
204
- 'America/New_York',
205
- 'America/Nome',
206
- 'America/Noronha',
207
- 'America/North_Dakota/Beulah',
208
- 'America/North_Dakota/Center',
209
- 'America/North_Dakota/New_Salem',
210
- 'America/Nuuk',
211
- 'America/Ojinaga',
212
- 'America/Panama',
213
- 'America/Paramaribo',
214
- 'America/Phoenix',
215
- 'America/Port-au-Prince',
216
- 'America/Port_of_Spain',
217
- 'America/Porto_Velho',
218
- 'America/Puerto_Rico',
219
- 'America/Punta_Arenas',
220
- 'America/Rankin_Inlet',
221
- 'America/Recife',
222
- 'America/Regina',
223
- 'America/Resolute',
224
- 'America/Rio_Branco',
225
- 'America/Santarem',
226
- 'America/Santiago',
227
- 'America/Santo_Domingo',
228
- 'America/Sao_Paulo',
229
- 'America/Scoresbysund',
230
- 'America/Sitka',
231
- 'America/St_Barthelemy',
232
- 'America/St_Johns',
233
- 'America/St_Kitts',
234
- 'America/St_Lucia',
235
- 'America/St_Thomas',
236
- 'America/St_Vincent',
237
- 'America/Swift_Current',
238
- 'America/Tegucigalpa',
239
- 'America/Thule',
240
- 'America/Tijuana',
241
- 'America/Toronto',
242
- 'America/Tortola',
243
- 'America/Vancouver',
244
- 'America/Whitehorse',
245
- 'America/Winnipeg',
246
- 'America/Yakutat',
247
- 'Antarctica/Casey',
248
- 'Antarctica/Davis',
249
- 'Antarctica/DumontDUrville',
250
- 'Antarctica/Macquarie',
251
- 'Antarctica/Mawson',
252
- 'Antarctica/McMurdo',
253
- 'Antarctica/Palmer',
254
- 'Antarctica/Rothera',
255
- 'Antarctica/Syowa',
256
- 'Antarctica/Troll',
257
- 'Antarctica/Vostok',
258
- 'Arctic/Longyearbyen',
259
- 'Asia/Aden',
260
- 'Asia/Almaty',
261
- 'Asia/Amman',
262
- 'Asia/Anadyr',
263
- 'Asia/Aqtau',
264
- 'Asia/Aqtobe',
265
- 'Asia/Ashgabat',
266
- 'Asia/Atyrau',
267
- 'Asia/Baghdad',
268
- 'Asia/Bahrain',
269
- 'Asia/Baku',
270
- 'Asia/Bangkok',
271
- 'Asia/Barnaul',
272
- 'Asia/Beirut',
273
- 'Asia/Bishkek',
274
- 'Asia/Brunei',
275
- 'Asia/Chita',
276
- 'Asia/Choibalsan',
277
- 'Asia/Colombo',
278
- 'Asia/Damascus',
279
- 'Asia/Dhaka',
280
- 'Asia/Dili',
281
- 'Asia/Dubai',
282
- 'Asia/Dushanbe',
283
- 'Asia/Famagusta',
284
- 'Asia/Gaza',
285
- 'Asia/Hebron',
286
- 'Asia/Ho_Chi_Minh',
287
- 'Asia/Hong_Kong',
288
- 'Asia/Hovd',
289
- 'Asia/Irkutsk',
290
- 'Asia/Jakarta',
291
- 'Asia/Jayapura',
292
- 'Asia/Jerusalem',
293
- 'Asia/Kabul',
294
- 'Asia/Kamchatka',
295
- 'Asia/Karachi',
296
- 'Asia/Kathmandu',
297
- 'Asia/Khandyga',
298
- 'Asia/Kolkata',
299
- 'Asia/Krasnoyarsk',
300
- 'Asia/Kuala_Lumpur',
301
- 'Asia/Kuching',
302
- 'Asia/Kuwait',
303
- 'Asia/Macau',
304
- 'Asia/Magadan',
305
- 'Asia/Makassar',
306
- 'Asia/Manila',
307
- 'Asia/Muscat',
308
- 'Asia/Nicosia',
309
- 'Asia/Novokuznetsk',
310
- 'Asia/Novosibirsk',
311
- 'Asia/Omsk',
312
- 'Asia/Oral',
313
- 'Asia/Phnom_Penh',
314
- 'Asia/Pontianak',
315
- 'Asia/Pyongyang',
316
- 'Asia/Qatar',
317
- 'Asia/Qostanay',
318
- 'Asia/Qyzylorda',
319
- 'Asia/Riyadh',
320
- 'Asia/Sakhalin',
321
- 'Asia/Samarkand',
322
- 'Asia/Seoul',
323
- 'Asia/Shanghai',
324
- 'Asia/Singapore',
325
- 'Asia/Srednekolymsk',
326
- 'Asia/Taipei',
327
- 'Asia/Tashkent',
328
- 'Asia/Tbilisi',
329
- 'Asia/Tehran',
330
- 'Asia/Thimphu',
331
- 'Asia/Tokyo',
332
- 'Asia/Tomsk',
333
- 'Asia/Ulaanbaatar',
334
- 'Asia/Urumqi',
335
- 'Asia/Ust-Nera',
336
- 'Asia/Vientiane',
337
- 'Asia/Vladivostok',
338
- 'Asia/Yakutsk',
339
- 'Asia/Yangon',
340
- 'Asia/Yekaterinburg',
341
- 'Asia/Yerevan',
342
- 'Atlantic/Azores',
343
- 'Atlantic/Bermuda',
344
- 'Atlantic/Canary',
345
- 'Atlantic/Cape_Verde',
346
- 'Atlantic/Faroe',
347
- 'Atlantic/Madeira',
348
- 'Atlantic/Reykjavik',
349
- 'Atlantic/South_Georgia',
350
- 'Atlantic/St_Helena',
351
- 'Atlantic/Stanley',
352
- 'Australia/Adelaide',
353
- 'Australia/Brisbane',
354
- 'Australia/Broken_Hill',
355
- 'Australia/Darwin',
356
- 'Australia/Eucla',
357
- 'Australia/Hobart',
358
- 'Australia/Lindeman',
359
- 'Australia/Lord_Howe',
360
- 'Australia/Melbourne',
361
- 'Australia/Perth',
362
- 'Australia/Sydney',
363
- 'CET',
364
- 'CST6CDT',
365
- 'EET',
366
- 'EST',
367
- 'EST5EDT',
368
- 'Etc/GMT',
369
- 'Etc/GMT+1',
370
- 'Etc/GMT+10',
371
- 'Etc/GMT+11',
372
- 'Etc/GMT+12',
373
- 'Etc/GMT+2',
374
- 'Etc/GMT+3',
375
- 'Etc/GMT+4',
376
- 'Etc/GMT+5',
377
- 'Etc/GMT+6',
378
- 'Etc/GMT+7',
379
- 'Etc/GMT+8',
380
- 'Etc/GMT+9',
381
- 'Etc/GMT-1',
382
- 'Etc/GMT-10',
383
- 'Etc/GMT-11',
384
- 'Etc/GMT-12',
385
- 'Etc/GMT-13',
386
- 'Etc/GMT-14',
387
- 'Etc/GMT-2',
388
- 'Etc/GMT-3',
389
- 'Etc/GMT-4',
390
- 'Etc/GMT-5',
391
- 'Etc/GMT-6',
392
- 'Etc/GMT-7',
393
- 'Etc/GMT-8',
394
- 'Etc/GMT-9',
395
- 'Etc/UTC',
396
- 'Europe/Amsterdam',
397
- 'Europe/Andorra',
398
- 'Europe/Astrakhan',
399
- 'Europe/Athens',
400
- 'Europe/Belgrade',
401
- 'Europe/Berlin',
402
- 'Europe/Bratislava',
403
- 'Europe/Brussels',
404
- 'Europe/Bucharest',
405
- 'Europe/Budapest',
406
- 'Europe/Busingen',
407
- 'Europe/Chisinau',
408
- 'Europe/Copenhagen',
409
- 'Europe/Dublin',
410
- 'Europe/Gibraltar',
411
- 'Europe/Guernsey',
412
- 'Europe/Helsinki',
413
- 'Europe/Isle_of_Man',
414
- 'Europe/Istanbul',
415
- 'Europe/Jersey',
416
- 'Europe/Kaliningrad',
417
- 'Europe/Kirov',
418
- 'Europe/Kyiv',
419
- 'Europe/Lisbon',
420
- 'Europe/Ljubljana',
421
- 'Europe/London',
422
- 'Europe/Luxembourg',
423
- 'Europe/Madrid',
424
- 'Europe/Malta',
425
- 'Europe/Mariehamn',
426
- 'Europe/Minsk',
427
- 'Europe/Monaco',
428
- 'Europe/Moscow',
429
- 'Europe/Oslo',
430
- 'Europe/Paris',
431
- 'Europe/Podgorica',
432
- 'Europe/Prague',
433
- 'Europe/Riga',
434
- 'Europe/Rome',
435
- 'Europe/Samara',
436
- 'Europe/San_Marino',
437
- 'Europe/Sarajevo',
438
- 'Europe/Saratov',
439
- 'Europe/Simferopol',
440
- 'Europe/Skopje',
441
- 'Europe/Sofia',
442
- 'Europe/Stockholm',
443
- 'Europe/Tallinn',
444
- 'Europe/Tirane',
445
- 'Europe/Ulyanovsk',
446
- 'Europe/Vaduz',
447
- 'Europe/Vatican',
448
- 'Europe/Vienna',
449
- 'Europe/Vilnius',
450
- 'Europe/Volgograd',
451
- 'Europe/Warsaw',
452
- 'Europe/Zagreb',
453
- 'Europe/Zurich',
454
- 'HST',
455
- 'Indian/Antananarivo',
456
- 'Indian/Chagos',
457
- 'Indian/Christmas',
458
- 'Indian/Cocos',
459
- 'Indian/Comoro',
460
- 'Indian/Kerguelen',
461
- 'Indian/Mahe',
462
- 'Indian/Maldives',
463
- 'Indian/Mauritius',
464
- 'Indian/Mayotte',
465
- 'Indian/Reunion',
466
- 'MET',
467
- 'MST',
468
- 'MST7MDT',
469
- 'PST8PDT',
470
- 'Pacific/Apia',
471
- 'Pacific/Auckland',
472
- 'Pacific/Bougainville',
473
- 'Pacific/Chatham',
474
- 'Pacific/Chuuk',
475
- 'Pacific/Easter',
476
- 'Pacific/Efate',
477
- 'Pacific/Fakaofo',
478
- 'Pacific/Fiji',
479
- 'Pacific/Funafuti',
480
- 'Pacific/Galapagos',
481
- 'Pacific/Gambier',
482
- 'Pacific/Guadalcanal',
483
- 'Pacific/Guam',
484
- 'Pacific/Honolulu',
485
- 'Pacific/Kanton',
486
- 'Pacific/Kiritimati',
487
- 'Pacific/Kosrae',
488
- 'Pacific/Kwajalein',
489
- 'Pacific/Majuro',
490
- 'Pacific/Marquesas',
491
- 'Pacific/Midway',
492
- 'Pacific/Nauru',
493
- 'Pacific/Niue',
494
- 'Pacific/Norfolk',
495
- 'Pacific/Noumea',
496
- 'Pacific/Pago_Pago',
497
- 'Pacific/Palau',
498
- 'Pacific/Pitcairn',
499
- 'Pacific/Pohnpei',
500
- 'Pacific/Port_Moresby',
501
- 'Pacific/Rarotonga',
502
- 'Pacific/Saipan',
503
- 'Pacific/Tahiti',
504
- 'Pacific/Tarawa',
505
- 'Pacific/Tongatapu',
506
- 'Pacific/Wake',
507
- 'Pacific/Wallis',
508
- 'UTC',
509
- 'WET'
510
- ];
511
-
512
- function getValidTimezone(input, fallback) {
513
- if (timeZoneIdentifiers.includes(input)) {
514
- return input;
515
- }
516
- return fallback;
517
- }
518
-
519
- exports.DateTimeFormatter = DateTimeFormatter;
520
- exports.getValidTimezone = getValidTimezone;
@@ -1,17 +0,0 @@
1
- //https://inindca.atlassian.net/browse/COMUI-2673
2
- // utility to get the closest element passing shadow dom boundaries
3
- export function getClosestElement(baseElement, selector) {
4
- function closest(element) {
5
- if (!element || element === document || element === window) {
6
- return null;
7
- }
8
- if (element.assignedSlot) {
9
- element = element.assignedSlot;
10
- }
11
- const found = element.closest(selector);
12
- return found
13
- ? found
14
- : closest(element.getRootNode().host);
15
- }
16
- return closest(baseElement);
17
- }
@@ -1,131 +0,0 @@
1
- import { getClosestElement } from "./get-closest-element";
2
- /**
3
- * Provides an [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat)
4
- * object for formatting dates and times. Unlike the native version, `locale` is
5
- * an optional argument. If not provided, the function will try to determine the
6
- * locale from the DOM, where it should be set for a11y reasons.
7
- * @param locale optional locale to use for formatting
8
- * @param options options to pass to the Intl.DateTimeFormat constructor
9
- * @returns a new DateTimeFormat
10
- */
11
- export function dateTimeFormat(localeOrOptions, options) {
12
- let locale = undefined;
13
- if (typeof localeOrOptions === 'string') {
14
- locale = localeOrOptions;
15
- }
16
- else {
17
- options = localeOrOptions;
18
- }
19
- if (locale != undefined) {
20
- return new Intl.DateTimeFormat(locale, options);
21
- }
22
- else {
23
- const userLocale = determineDisplayLocale();
24
- return new Intl.DateTimeFormat(userLocale, options);
25
- }
26
- }
27
- /**
28
- * Provides an [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat)
29
- * object for formatting dates and times. Unlike the native version, `locale` is
30
- * an optional argument. If not provided, the function will try to determine the
31
- * locale from the DOM, where it should be set for a11y reasons.
32
- * @param locale optional locale to use for formatting
33
- * @param options options to pass to the Intl.RelativeTimeFormat constructor
34
- * @returns a new RelativeTimeFormat
35
- */
36
- export function relativeTimeFormat(localeOrOptions, options) {
37
- let locale = undefined;
38
- if (typeof localeOrOptions === 'string') {
39
- locale = localeOrOptions;
40
- }
41
- else {
42
- options = localeOrOptions;
43
- }
44
- if (locale != undefined) {
45
- return new Intl.RelativeTimeFormat(locale, options);
46
- }
47
- else {
48
- const userLocale = determineDisplayLocale();
49
- return new Intl.RelativeTimeFormat(userLocale, options);
50
- }
51
- }
52
- /**
53
- * Makes a best effort to return the locale that should be used for a given element
54
- * by checking language tags on ancestors. If no element is provided, it will
55
- * start with the document's <body> tag. If no locale can be found, it will use
56
- * the browser's locale preference. It will also try to add a region to regionless
57
- * locales when there is a partial match with the browser's locale.
58
- * @returns a locale string (e.g. 'en-US', 'en', 'de-DE', etc)
59
- */
60
- export function determineDisplayLocale(element = document.body) {
61
- var _a;
62
- const domLocale = (_a = getClosestElement(element, '*[lang]')) === null || _a === void 0 ? void 0 : _a.lang;
63
- const domLocaleWithOverride = domLocaleOverride(domLocale);
64
- if (!domLocaleWithOverride || browserHasRegionData(domLocaleWithOverride)) {
65
- // If we can't find a locale in the DOM, or we find a locale without a region that matches the
66
- // users's browser locale, use the browser locale.
67
- return navigator.language;
68
- }
69
- else {
70
- return domLocaleWithOverride;
71
- }
72
- }
73
- /**
74
- * Returns true if the provided locale only has a language, but the user's
75
- * browser settings have the same language with a locale.
76
- * @param localeString The locale to check
77
- * @returns true if the region can be guessed from the browser settings.
78
- */
79
- function browserHasRegionData(localeString) {
80
- var _a;
81
- return (browserLocaleOverride(localeString) ||
82
- (localeString.length == 2 &&
83
- ((_a = navigator.language) === null || _a === void 0 ? void 0 : _a.startsWith(`${localeString}-`))));
84
- }
85
- // Currently, login page and web-directory store the English user selection as `en-us`.
86
- // We will remove this override once those apps migrate from using en-us to en as part of a future epic.
87
- function domLocaleOverride(localeString) {
88
- if ((localeString === null || localeString === void 0 ? void 0 : localeString.toLowerCase()) === 'en-us') {
89
- return 'en';
90
- }
91
- else {
92
- return localeString;
93
- }
94
- }
95
- function browserLocaleOverride(localeString) {
96
- var _a, _b;
97
- switch (localeString.toLowerCase()) {
98
- case 'zh-cn':
99
- return Boolean((_a = navigator.language) === null || _a === void 0 ? void 0 : _a.toLowerCase().startsWith('zh-sg'));
100
- case 'zh-tw':
101
- return Boolean((_b = navigator.language) === null || _b === void 0 ? void 0 : _b.toLowerCase().startsWith('zh-hk'));
102
- default:
103
- return false;
104
- }
105
- }
106
- export function getFormat(locale) {
107
- const date = new Date('July 5, 2000 15:00:00 UTC+00:00');
108
- const options = {
109
- year: 'numeric',
110
- month: 'numeric',
111
- day: 'numeric'
112
- };
113
- const dateTimeFormat = new Intl.DateTimeFormat(locale, options);
114
- const parts = dateTimeFormat.formatToParts(date);
115
- const dateString = parts
116
- .map(({ type, value }) => {
117
- switch (type) {
118
- case 'day':
119
- return `dd`;
120
- case 'month':
121
- return `mm`;
122
- case 'year':
123
- return `yyyy`;
124
- default:
125
- return value;
126
- }
127
- })
128
- .join('');
129
- // review locales with two character date delimiters https://inindca.atlassian.net/browse/COMUI-2679
130
- return dateString.replace(/\s/g, '').replace(/‏/g, '');
131
- }