genesys-spark-components 3.86.2 → 3.86.3

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 (312) hide show
  1. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
  2. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-list-legacy_2.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-announce-beta.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-blank-state-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-column-manager-beta.cjs.entry.js +2 -2
  24. package/dist/cjs/gux-column-manager-item.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-context-menu-beta.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-date-beta.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-date-time-beta.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-disclosure-button.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-number.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-phone.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-form-field-time-picker.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-inline-alert-beta.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-list.cjs.entry.js +2 -2
  57. package/dist/cjs/gux-listbox-multi.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-loading-message-beta.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-month-list_2.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-month-picker-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-phone-input-beta.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-popover-beta.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-popover-list-beta.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-popover.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-region-icon.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-screen-reader-beta.cjs.entry.js +1 -1
  78. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  80. package/dist/cjs/gux-skip-navigation-list-beta.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  82. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-table-toolbar-action.cjs.entry.js +1 -1
  85. package/dist/cjs/gux-table-toolbar-beta.cjs.entry.js +1 -1
  86. package/dist/cjs/gux-table-toolbar-custom-action.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-table-toolbar-menu-button.cjs.entry.js +1 -1
  88. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  89. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
  90. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  91. package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
  92. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  93. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  94. package/dist/cjs/gux-time-beta.cjs.entry.js +1 -1
  95. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +1 -1
  96. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  97. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  98. package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
  99. package/dist/cjs/{usage-81e90293.js → usage-1779cda2.js} +1 -1
  100. package/dist/deploy-info.json +3 -3
  101. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  102. package/dist/esm/gux-accordion.entry.js +1 -1
  103. package/dist/esm/gux-action-button-legacy.entry.js +1 -1
  104. package/dist/esm/gux-action-button.entry.js +1 -1
  105. package/dist/esm/gux-action-list-legacy_2.entry.js +1 -1
  106. package/dist/esm/gux-action-toast.entry.js +1 -1
  107. package/dist/esm/gux-advanced-dropdown.entry.js +1 -1
  108. package/dist/esm/gux-announce-beta.entry.js +1 -1
  109. package/dist/esm/gux-badge-beta.entry.js +1 -1
  110. package/dist/esm/gux-blank-state-beta.entry.js +1 -1
  111. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  112. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  113. package/dist/esm/gux-button-multi.entry.js +1 -1
  114. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  115. package/dist/esm/gux-button.entry.js +1 -1
  116. package/dist/esm/gux-calendar.entry.js +1 -1
  117. package/dist/esm/gux-card-beta.entry.js +1 -1
  118. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  119. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  120. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  121. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  122. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  123. package/dist/esm/gux-column-manager-beta.entry.js +2 -2
  124. package/dist/esm/gux-column-manager-item.entry.js +1 -1
  125. package/dist/esm/gux-command-palette-legacy.entry.js +1 -1
  126. package/dist/esm/gux-content-search.entry.js +1 -1
  127. package/dist/esm/gux-context-menu-beta.entry.js +1 -1
  128. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +1 -1
  129. package/dist/esm/gux-date-beta.entry.js +1 -1
  130. package/dist/esm/gux-date-time-beta.entry.js +1 -1
  131. package/dist/esm/gux-datepicker.entry.js +1 -1
  132. package/dist/esm/gux-disclosure-button.entry.js +1 -1
  133. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  134. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  135. package/dist/esm/gux-dropdown-multi-beta.entry.js +1 -1
  136. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  137. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  138. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  139. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  140. package/dist/esm/gux-form-field-color.entry.js +1 -1
  141. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  142. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  143. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  144. package/dist/esm/gux-form-field-number.entry.js +1 -1
  145. package/dist/esm/gux-form-field-phone.entry.js +1 -1
  146. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  147. package/dist/esm/gux-form-field-range.entry.js +1 -1
  148. package/dist/esm/gux-form-field-search.entry.js +1 -1
  149. package/dist/esm/gux-form-field-select.entry.js +1 -1
  150. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  151. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  152. package/dist/esm/gux-form-field-time-picker.entry.js +1 -1
  153. package/dist/esm/gux-icon.entry.js +1 -1
  154. package/dist/esm/gux-inline-alert-beta.entry.js +1 -1
  155. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  156. package/dist/esm/gux-list.entry.js +2 -2
  157. package/dist/esm/gux-listbox-multi.entry.js +1 -1
  158. package/dist/esm/gux-loading-message-beta.entry.js +1 -1
  159. package/dist/esm/gux-modal.entry.js +1 -1
  160. package/dist/esm/gux-month-list_2.entry.js +1 -1
  161. package/dist/esm/gux-month-picker-beta.entry.js +1 -1
  162. package/dist/esm/gux-notification-toast.entry.js +1 -1
  163. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  164. package/dist/esm/gux-pagination-beta.entry.js +1 -1
  165. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  166. package/dist/esm/gux-pagination.entry.js +1 -1
  167. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  168. package/dist/esm/gux-phone-input-beta.entry.js +1 -1
  169. package/dist/esm/gux-popover-beta.entry.js +1 -1
  170. package/dist/esm/gux-popover-list-beta.entry.js +1 -1
  171. package/dist/esm/gux-popover-list.entry.js +1 -1
  172. package/dist/esm/gux-popover.entry.js +1 -1
  173. package/dist/esm/gux-radial-loading.entry.js +1 -1
  174. package/dist/esm/gux-radial-progress.entry.js +1 -1
  175. package/dist/esm/gux-rating.entry.js +1 -1
  176. package/dist/esm/gux-region-icon.entry.js +1 -1
  177. package/dist/esm/gux-screen-reader-beta.entry.js +1 -1
  178. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  179. package/dist/esm/gux-simple-toast.entry.js +1 -1
  180. package/dist/esm/gux-skip-navigation-list-beta.entry.js +1 -1
  181. package/dist/esm/gux-sort-control.entry.js +1 -1
  182. package/dist/esm/gux-switch.entry.js +1 -1
  183. package/dist/esm/gux-table-beta.entry.js +1 -1
  184. package/dist/esm/gux-table-toolbar-action.entry.js +1 -1
  185. package/dist/esm/gux-table-toolbar-beta.entry.js +1 -1
  186. package/dist/esm/gux-table-toolbar-custom-action.entry.js +1 -1
  187. package/dist/esm/gux-table-toolbar-menu-button.entry.js +1 -1
  188. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  189. package/dist/esm/gux-tabs-legacy.entry.js +1 -1
  190. package/dist/esm/gux-tabs.entry.js +1 -1
  191. package/dist/esm/gux-tag-beta.entry.js +1 -1
  192. package/dist/esm/gux-text-highlight.entry.js +1 -1
  193. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  194. package/dist/esm/gux-time-beta.entry.js +1 -1
  195. package/dist/esm/gux-time-picker-beta.entry.js +1 -1
  196. package/dist/esm/gux-toggle.entry.js +1 -1
  197. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  198. package/dist/esm/gux-visualization-beta.entry.js +1 -1
  199. package/dist/esm/{usage-321d1ef2.js → usage-5987014a.js} +1 -1
  200. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  201. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.da.json +1 -1
  202. package/dist/genesys-webcomponents/{p-146befeb.entry.js → p-0089b88d.entry.js} +1 -1
  203. package/dist/genesys-webcomponents/{p-5232d012.entry.js → p-01f17ba1.entry.js} +1 -1
  204. package/dist/genesys-webcomponents/{p-ded68767.entry.js → p-0564bccd.entry.js} +1 -1
  205. package/dist/genesys-webcomponents/{p-ad78e006.entry.js → p-0733950d.entry.js} +1 -1
  206. package/dist/genesys-webcomponents/{p-d7b8ed23.entry.js → p-09bbec6e.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-2ae98905.entry.js → p-0c4c2b48.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-3fdd06ef.entry.js → p-0e7f71be.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-7f04465a.entry.js → p-0ea1826b.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-e32ad2d1.entry.js → p-0fb68c45.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/{p-f8f7e5e4.entry.js → p-159d2b15.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-0c977a35.entry.js → p-18850db9.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-c1693442.entry.js → p-1c05d1bd.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-50cb26aa.entry.js → p-1edfd785.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-77174916.entry.js → p-21a25c6f.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-d6170cb5.entry.js → p-235fe1d0.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-5b0ee53b.entry.js → p-245b4633.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-895182f3.entry.js → p-25c0206a.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-318d0ad5.entry.js → p-28276d8c.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/{p-561130c0.entry.js → p-2923e651.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-a549345f.entry.js → p-2a9e39d7.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-ac817a4c.entry.js → p-35439f5f.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-122a9a80.entry.js → p-37cc43e3.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/p-37e5be66.entry.js +1 -0
  225. package/dist/genesys-webcomponents/{p-66987a08.entry.js → p-38e74aa7.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-9b812f49.entry.js → p-3b693004.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-8256ccb0.entry.js → p-3bb503a4.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-3cca48f8.entry.js → p-3e57f447.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-365aaf93.entry.js → p-402c1842.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-c9c6e4d6.entry.js → p-417ddcb8.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-9d4e8be7.entry.js → p-41f8f0c6.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-7a20a93d.entry.js → p-422e14c1.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-64ea8786.entry.js → p-42537806.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-deac5e25.entry.js → p-49b86971.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-158a45ee.entry.js → p-4ae58241.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-99f07de4.entry.js → p-4c37a89b.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-09281437.entry.js → p-4c3f10dc.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-3ac68b16.entry.js → p-4d555b2a.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-4c5fbffa.entry.js → p-5f48a4c7.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-baff6849.entry.js → p-6151af2c.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-b76f0cae.entry.js → p-624844c9.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-e9ede418.entry.js → p-63ffc0c0.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-c3dad5b3.entry.js → p-695adc92.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-bc381ffe.entry.js → p-6a7cdbfa.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-f967773f.entry.js → p-6b2b19ee.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-3a406201.entry.js → p-6d1078d6.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-35581577.entry.js → p-74e820b8.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-64d5f1c5.entry.js → p-795c96ac.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-9540b72a.entry.js → p-7b5259f8.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-5a0e4957.entry.js → p-7e6ceaff.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-8d712bab.entry.js → p-8068acab.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-9b728f66.entry.js → p-8412d2a7.entry.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-490feba6.entry.js → p-86945085.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-db770136.entry.js → p-8fa9d2d7.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-42940f29.entry.js → p-9342544c.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-ffb1bb70.js → p-93d8e3c7.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-6ae052f4.entry.js → p-952a106c.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-a905e7c4.entry.js → p-95bf864f.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-ea3d3090.entry.js → p-993cebc8.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-632d5de2.entry.js → p-9b532714.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-591ca5ec.entry.js → p-9b84804a.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-d99efc1c.entry.js → p-9f9c220b.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-e43b6c85.entry.js → p-9fb28f3d.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-c0708eaa.entry.js → p-a0225b5a.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-1ed1421b.entry.js → p-a1a380a1.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-15f25ffe.entry.js → p-b14d75eb.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-0bffa89d.entry.js → p-b3431919.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-ad3bf7c8.entry.js → p-b43d5041.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-1510b43f.entry.js → p-be06a9a4.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-4ce496f1.entry.js → p-bebcb818.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-65c21206.entry.js → p-c0ad67c3.entry.js} +1 -1
  272. package/dist/genesys-webcomponents/{p-bbaa6081.entry.js → p-c0c2bd22.entry.js} +1 -1
  273. package/dist/genesys-webcomponents/{p-c3c96c2d.entry.js → p-c21db1b9.entry.js} +1 -1
  274. package/dist/genesys-webcomponents/{p-fac9212d.entry.js → p-c3c2aed9.entry.js} +1 -1
  275. package/dist/genesys-webcomponents/{p-f2bc1ec9.entry.js → p-c8cbd7a4.entry.js} +1 -1
  276. package/dist/genesys-webcomponents/{p-f8bdfffd.entry.js → p-c9a1fd61.entry.js} +1 -1
  277. package/dist/genesys-webcomponents/{p-f07b5d23.entry.js → p-cc2b7152.entry.js} +1 -1
  278. package/dist/genesys-webcomponents/{p-6b5ca388.entry.js → p-d0b21d4e.entry.js} +1 -1
  279. package/dist/genesys-webcomponents/{p-3b31b1a9.entry.js → p-d1bd1531.entry.js} +1 -1
  280. package/dist/genesys-webcomponents/p-d21fae9f.entry.js +1 -0
  281. package/dist/genesys-webcomponents/{p-e957bac2.entry.js → p-d2a5dc1c.entry.js} +1 -1
  282. package/dist/genesys-webcomponents/{p-c952f6a1.entry.js → p-d887e365.entry.js} +1 -1
  283. package/dist/genesys-webcomponents/{p-e8eaf997.entry.js → p-da47a534.entry.js} +1 -1
  284. package/dist/genesys-webcomponents/p-dc4ac0c9.entry.js +1 -0
  285. package/dist/genesys-webcomponents/{p-6db9bd7e.entry.js → p-e15f5b1d.entry.js} +1 -1
  286. package/dist/genesys-webcomponents/{p-d235b327.entry.js → p-e302397b.entry.js} +1 -1
  287. package/dist/genesys-webcomponents/{p-3ab8e418.entry.js → p-e32551cc.entry.js} +1 -1
  288. package/dist/genesys-webcomponents/{p-4ce642d8.entry.js → p-e4a25c16.entry.js} +1 -1
  289. package/dist/genesys-webcomponents/{p-c1f24f66.entry.js → p-e5d8cc86.entry.js} +1 -1
  290. package/dist/genesys-webcomponents/{p-5aff6a68.entry.js → p-eb45cfab.entry.js} +1 -1
  291. package/dist/genesys-webcomponents/{p-a8510173.entry.js → p-ebe9df11.entry.js} +1 -1
  292. package/dist/genesys-webcomponents/{p-dd515eb0.entry.js → p-ebf4283e.entry.js} +1 -1
  293. package/dist/genesys-webcomponents/{p-84a05cad.entry.js → p-ed22071c.entry.js} +1 -1
  294. package/dist/genesys-webcomponents/{p-97afe8f4.entry.js → p-ed459365.entry.js} +1 -1
  295. package/dist/genesys-webcomponents/{p-cbc740df.entry.js → p-f037dc0e.entry.js} +1 -1
  296. package/dist/genesys-webcomponents/{p-16ae4ad3.entry.js → p-f2e977e0.entry.js} +1 -1
  297. package/dist/genesys-webcomponents/{p-1410b096.entry.js → p-f3e97a52.entry.js} +1 -1
  298. package/dist/genesys-webcomponents/{p-c929e426.entry.js → p-f72b2690.entry.js} +1 -1
  299. package/dist/genesys-webcomponents/{p-e6eb3d28.entry.js → p-f9058904.entry.js} +1 -1
  300. package/dist/genesys-webcomponents/{p-99172328.entry.js → p-fa6d8833.entry.js} +1 -1
  301. package/dist/stencil-wrapper.js +1 -1
  302. package/dist/types/stencil-wrapper.d.ts +1 -1
  303. package/package.json +1 -1
  304. package/dist/genesys-webcomponents/p-4bc4ce64.entry.js +0 -1
  305. package/dist/genesys-webcomponents/p-4befd5bf.entry.js +0 -1
  306. package/dist/genesys-webcomponents/p-d2ddb348.entry.js +0 -1
  307. /package/dist/cjs/{gux-column-manager.service-80a241dd.js → gux-column-manager.service-94f84964.js} +0 -0
  308. /package/dist/cjs/{gux-list.service-abbcfc17.js → gux-list.service-763539a2.js} +0 -0
  309. /package/dist/esm/{gux-column-manager.service-f7f0f044.js → gux-column-manager.service-07ddccf5.js} +0 -0
  310. /package/dist/esm/{gux-list.service-d61fe8f6.js → gux-list.service-a878b7e3.js} +0 -0
  311. /package/dist/genesys-webcomponents/{p-d61cf750.js → p-417354e9.js} +0 -0
  312. /package/dist/genesys-webcomponents/{p-b94e871d.js → p-62913396.js} +0 -0
@@ -1 +1 @@
1
- {"gux-alert":{"info":"Informationsbesked med meddelelse","success":"Gennemførelsesbesked med meddelelse","warning":"Advarselsbesked med meddelelse","error":"Fejlbesked med meddelelse"},"gux-badge":{"neutral":"badge med etiket: {label}, farve: neutral","neutral-bold":"badge med etiket: {label}, farve: neutral fed","green":"badge med etiket: {label}, farve: grøn","green-bold":"badge med etiket: {label}, farve: grøn fed","yellow":"badge med etiket: {label}, farve: gul","yellow-bold":"badge med etiket: {label}, farve: gul fed","red":"badge med etiket: {label}, farve: rød","red-bold":"badge med etiket: {label}, farve: rød fed","inherit":"badge med etiket: {label}"},"gux-column-manager-item":{"activateReordering":"Aktivér omarrangeringstilstand for {columnName} kolonne"},"gux-column-manager":{"search":"Søg efter kolonne","selectedColumnCount":"{count}/{total} kolonner valgt","selectAllColumnsScreenReader":"{count} af {total} kolonner valgt: Markér afkrydsningsfeltet for at markere alle {total} kolonner","unselectAllColumnsScreenReader":"{count} af {total} kolonner valgt: Fjern markeringen fra afkrydsningsfeltet for at fjerne markeringen fra alle {total} kolonner","movePositionPrompt":"Tryk på mellemrum eller Enter for at flytte kolonnen {columnName} til positionen {newPositionNumber} fra positionen {oldPositionNumber}.","reorderingModeActive":"Omarrangeringstilstand aktiv. Omplacer kolonnen {columnName} ved hjælp af pil op-tasten, pil ned-tasten, Home-tasten og End-tasten. Tryk på Escape for at deaktivere omarrangeringstilstand."},"gux-context-menu":{"contextMenuScreenreaderText":"Genvejsmenu"},"gux-copy-to-clipboard":{"clickToCopy":"Klik for at kopiere","enterToCopy":"Tryk på Enter for at kopiere","copySuccess":"Kopieret til Udklipsholder","copyFailure":"Fejl. Prøv igen."},"gux-dropdown-multi-tag":{"clearSelection":"Ryd {numberSelected} valgte elementer"},"gux-dropdown-multi":{"textInputResults":"Indtast for at filtrere rullelisteresultater","noSelection":"Vælg...","dropdown":"Rullemenu","numberSelected":"{numberSelected} valgt","pressEnterToCreate":"Tryk på Enter for at oprette en ny valgmulighed, {textInputValue}"},"gux-month-calendar":{"changeYear":"Det aktuelle år er {currentYear}. Klik for at ændre året til {changeYear}"},"gux-month-picker":{"toggleCalendar":"Slå månedskalendervisning til/fra","month":"Måned","year":"År","unset":"Ikke indstillet"},"gux-pagination-buttons-beta":{"page":"Side","totalPages":" af {totalPages, number}","first":"Første","previous":"Forrige","next":"Næste","last":"Sidste","pageInputLabel":"Side {currentPage, number} af {totalPages, number}"},"gux-pagination-item-counts-beta":{"itemCountDisplay":"{firstItem, number} - {lastItem, number}","totalItems":" af {totalItems, number}"},"gux-pagination-items-per-page-beta":{"perPage":"pr. side","itemsPerPage":"Elementer pr. side","rangeSelected":"Elementer pr. siderulleliste, {range} valgt"},"gux-phone-input":{"AD":"Andorra","AE":"Forenede Arabiske Emirater","AF":"Afghanistan","AG":"Antigua og Barbuda","AI":"Anguilla","AL":"Albanien","AM":"Armenien","AO":"Angola","AR":"Argentina","AS":"Amerikansk Samoa","AT":"Østrig","AU":"Australien","AW":"Aruba","AX":"Ålandsøerne","AZ":"Aserbajdsjan","BA":"Bosnien-Hercegovina","BB":"Barbados","BD":"Bangladesh","BE":"Belgien","BF":"Burkina Faso","BG":"Bulgarien","BH":"Bahrain","BI":"Burundi","BJ":"Benin","BL":"Saint Barthelemy","BM":"Bermuda","BN":"Brunei","BO":"Bolivia","BQ":"Caribisk Nederlandene","BR":"Brasilien","BS":"Bahamas","BT":"Bhutan","BV":"Bouvetøen","BW":"Botswana","BY":"Hviderusland","BZ":"Belize","CA":"Canada","CC":"Cocosøerne","CD":"Den Demokratiske Republik Congo","CF":"Centralafrikanske Republik","CG":"Republikken Congo","CH":"Schweiz","CI":"Elfenbenskysten","CK":"Cookøerne","CL":"Chile","CM":"Cameroon","CN":"Kina","CO":"Colombia","CR":"Costa Rica","CU":"Cuba","CV":"Kap Verde","CW":"Curaçao","CX":"Juleøen","CY":"Cypern","CZ":"Tjekkiet","DE":"Tyskland","DJ":"Djibouti","DK":"Danmark","DM":"Dominica","DO":"Den Dominikanske Republik","DZ":"Algeriet","EC":"Ecuador","EE":"Estland","EG":"Egypten","EH":"Vestsahara","ER":"Eritrea","ES":"Spanien","ET":"Etiopien","FI":"Finland","FJ":"Fiji","FK":"Falklandsøerne","FM":"Mikronesien","FO":"Færøerne","FR":"Frankrig","GA":"Gabon","GB":"Storbritannien","GD":"Grenada","GE":"Georgia","GF":"Fransk Guyana","GG":"Guernsey","GH":"Ghana","GI":"Gibraltar","GL":"Grønland","GM":"Gambia","GN":"Guinea","GP":"Guadeloupe","GQ":"Ækvatorialguinea","GR":"Grækenland","GS":"South Georgia og De Sydlige Sandwichøer","GT":"Guatemala","GU":"Guam","GW":"Guinea-Bissau","GY":"Guyana","HK":"Hongkong","HN":"Honduras","HR":"Kroatien","HT":"Haiti","HU":"Ungarn","ID":"Indonesien","IE":"Irland","IL":"Israel","IM":"Isle of Man","IN":"Indien","IO":"Britiske Territorium i Det Indiske Ocean","IQ":"Irak","IR":"Iran","IS":"Island","IT":"Italien","JE":"Jersey","JM":"Jamaica","JO":"Jordan","JP":"Japan","KE":"Kenya","KG":"Kirgisistan","KH":"Cambodja","KI":"Kiribati","KM":"Comorerne","KN":"Saint Kitts og Nevis","KP":"Nordkorea","KR":"Sydkorea","KW":"Kuwait","KY":"Caymanøerne","KZ":"Kasakhstan","LA":"Laos","LB":"Libanon","LC":"Saint Lucia","LI":"Liechtenstein","LK":"Sri Lanka","LR":"Liberia","LS":"Lesotho","LT":"Litauen","LU":"Luxembourg","LV":"Letland","LY":"Libyen","MA":"Marocco","MC":"Monaco","MD":"Moldova","ME":"Montenegro","MF":"Saint Martin","MG":"Madagaskar","MH":"Marshalløerne","MK":"Makedonien","ML":"Mali","MM":"Myanmar","MN":"Mongoliet","MO":"Macao","MP":"Nordmarianerne","MQ":"Martinique","MR":"Mauretanien","MS":"Montserrat","MT":"Malta","MU":"Mauritius","MV":"Maldiverne","MW":"Malawi","MX":"Mexico","MY":"Malaysia","MZ":"Mozambique","NA":"Namibia","NC":"Ny Caledonien","NE":"Niger","NF":"Norfolk Island","NG":"Nigeria","NI":"Nicaragua","NL":"Holland","NO":"Norge","NP":"Nepal","NR":"Nauru","NU":"Niue","NZ":"New Zealand","OM":"Oman","PA":"Panama","PE":"Peru","PF":"Fransk Polynesien","PG":"Papua Ny Guinea","PH":"Filippinerne","PK":"Pakistan","PL":"Polen","PM":"Saint Pierre og Miquelon","PN":"Pitcairn","PR":"Puerto Rico","PS":"Palæstina","PT":"Portugal","PW":"Palau","PY":"Paraguay","QA":"Qatar","RE":"Reunion","RO":"Rumænien","RS":"Serbien","RU":"Rusland","RW":"Rwanda","SA":"Saudi-Arabien","SB":"Salomonøerne","SC":"Seychellerne","SD":"Sudan","SE":"Sverige","SG":"Singapore","SH":"Saint Helena","SI":"Slovenien","SJ":"Svalbard og Jan Mayen","SK":"Slovakiet","SL":"Sierra Leone","SM":"San Marino","SN":"Senegal","SO":"Somalia","SR":"Suriname","SS":"Sydsudan","ST":"Sao Tome og Principe","SV":"El Salvador","SX":"Sint Maarten","SY":"Syrien","SZ":"Swaziland","TC":"Turks- og Caicosøerne","TD":"Chad","TG":"Togo","TH":"Thailand","TJ":"Tadsjikistan","TK":"Tokelau","TL":"Østtimor","TM":"Turkmenistan","TN":"Tunesien","TO":"Tonga","TR":"Tyrkiet","TT":"Trinidad og Tobago","TV":"Tuvalu","TW":"Taiwan","TZ":"Tanzania","UA":"Ukraine","UG":"Uganda","US":"USA","UY":"Uruguay","UZ":"Usbekistan","VA":"Vatikanet","VC":"Saint Vincent og Grenadinerne","VE":"Venezuela","VG":"De Britiske Jomfruøer","VI":"De Amerikanske Jomfruøer","VN":"Vietnam","VU":"Vanuatu","WF":"Wallis og Futuna","WS":"Samoa","XK":"Kosovo","YE":"Yemen","YT":"Mayotte","ZA":"Sydafrika","ZM":"Zambia","ZW":"Zimbabwe"},"gux-skip-navigation-list":{"navigationName":"Spring linknavigation over"},"gux-table-toolbar-action":{"actionRefresh":"Opdater","actionDelete":"Slet","actionExport":"Eksportér","actionImport":"Importér","actionRevert":"Gendan","actionAdd":"Tilføj"},"gux-table-toolbar-menu-button":{"additionalActions":"Yderligere handlinger"},"gux-table":{"emptyMessage":"Ingen tilgængelige data","scrollLeft":"Rul til venstre","scrollRight":"Rul til højre","selectAllTableRows":"Vælg alle tabelrækker","selectTableRow":"Vælg tabelrække","sortAsc":"Sorteret stigende","sortDesc":"Sorteret faldende","tableOptions":"Tabelvalgmuligheder","noColumnSort":"{headerContent}. Tabellen er ikke sorteret efter denne kolonne i øjeblikket. Klik på kolonneoverskriften for at sortere tabellen efter denne kolonne i stigende rækkefølge","ascendingColumnSort":"{headerContent}. Tabellen er i øjeblikket sorteret efter denne kolonne i stigende rækkefølge. Klik på kolonneoverskriften for at sortere tabellen efter denne kolonne i faldende rækkefølge","descendingColumnSort":"{headerContent}. Tabellen er i øjeblikket sorteret efter denne kolonne i faldende rækkefølge. Klik på kolonneoverskriften for at sortere tabellen efter denne kolonne i stigende rækkefølge","descendingColumnSortIncludeUnsorted":"{headerContent}. Tabellen er i øjeblikket sorteret efter denne kolonne i faldende rækkefølge. Klik på kolonneoverskriften for ikke at sortere tabellen efter denne kolonne"},"gux-tag":{"tag":"tag med etiket: {label}","tag-disabled":"deaktiveret tag med etiket: {label}","remove-tag":"Fjern tag med etiket: {label}"},"gux-time-picker":{"am":"AM","time-separator":":","clockButton":"Skift mellem foreslåede tider","hoursInput":"Indtast timer","minutesInput":"Indtast minutter","pm":"PM","timeOptionsState":"Åbne tidsmuligheder: {state}","toggleAmPM":"{amOrPm} valgt, klik for at skifte"},"gux-action-button-legacy":{"actionButtonDropdown":"Rullemenu for {buttonTitle}"},"gux-command-palette-legacy":{"recentSearch":"Seneste søgninger:","commonSearch":"Almindelige søgninger:","limited":"Resultater begrænset. Præciser din søgning for at se flere kommandoer.","search":"Søg efter kommandoer.","title":"Kommandopalet"},"gux-input-color":{"required":"Påkrævet"},"gux-input-number":{"clear":"Ryd","increment":"Stigning","decrement":"Reduktion"},"gux-input-search":{"clear":"Ryd"},"gux-input-text-like":{"clear":"Ryd"},"gux-tabs-legacy":{"createNewTab":"Opret ny fane","scrollLeft":"Rul til venstre","scrollRight":"Rul til højre","disableNewTab":"Det maksimale antal oprettede faner er nået"},"gux-action-button":{"actionButtonDropdown":"Rullemenu for {buttonTitle}"},"gux-advanced-dropdown":{"searchAria":"Søg"},"gux-breadcrumbs":{"breadcrumbs":"Brødkrummer"},"gux-content-search":{"eraseBtnAria":"Ryd","navigateNextBtn":"Næste","navigatePreviousBtn":"Forrige","totalMatches":"{currentMatch, number} af {matchCount, number}"},"gux-datepicker":{"start":"Start","end":"Slut","date":"Dato","toggleCalendar":"Slå kalendervisning til/fra"},"gux-disclosure-button":{"defaultLabel":"Afsløring-knap"},"gux-dismiss-button":{"dismiss":"Luk"},"gux-dropdown":{"filterResults":"Indtast for at filtrere rullelisteresultater","noSelection":"Vælg...","dropdown":"Rullemenu"},"gux-form-field-number":{"increment":"Stigning","decrement":"Reduktion"},"gux-form-field-phone":{"required":"Påkrævet","invalidPhoneNumber":"Tallet er ikke gyldigt"},"gux-form-field-time-picker":{"required":"Påkrævet"},"gux-form-field-input-clear-button":{"clear":"Ryd"},"gux-create-option":{"createCustomOptionInstructions":", vælg for at oprette en ny brugerdefineret valgmulighed","createOption":"Tilføj \"{optionValue}\""},"gux-option-multi":{"removeCustomElementInstructions":", hvis denne brugerdefinerede valgmulighed fravælges, fjernes den fra listen"},"gux-listbox-multi":{"add":"Tilføj {name}","noMatches":"Ingen matches","loading":"Indlæser..."},"gux-listbox":{"noMatches":"Ingen matches","loading":"Indlæser..."},"gux-pagination-cursor":{"previous":"Forrige","next":"Næste"},"gux-pagination-buttons":{"page":"Side","totalPages":" af {totalPages, number}","first":"Første","previous":"Forrige","next":"Næste","last":"Sidste","pageInputLabel":"Side {currentPage, number} af {totalPages, number}"},"gux-pagination-item-counts":{"itemCountDisplay":"{firstItem, number} - {lastItem, number}","totalItems":" af {totalItems, number}"},"gux-pagination-items-per-page":{"perPage":"pr. side","itemsPerPage":"Elementer pr. side","rangeSelected":"Elementer pr. siderulleliste, {range} valgt"},"gux-radial-loading":{"loading":"Indlæser"},"gux-tabs-advanced":{"createNewTab":"Opret ny fane","scrollLeft":"Rul til venstre","scrollRight":"Rul til højre","options":"Faneindstillinger for {tabTitle}","disableNewTab":"Det maksimale antal oprettede faner er nået","toggleSort":"Slå sorteringstilstand til/fra ved hjælp af mellemrum","sortModeOn":"Sorteringstilstand til, brug venstre og højre piletast til at omarrangere faner. Tryk på mellemrums- eller Enter-tasten for at gennemføre sortering. Tryk på Esc-tasten for at annullere sortering","sortComplete":"Sortering gennemført","sortCancelled":"Sortering annulleret"},"gux-tabs":{"scrollLeft":"Rul til venstre","scrollRight":"Rul til højre","scrollUp":"Rul op","scrollDown":"Rul ned"},"gux-toggle":{"defaultAriaLabel":"Til/fra-knap","toggleIsLoading":"Til/fra indlæses","toggleIsFinishedLoading":"Indlæsning af Til/fra er gennemført"}}
1
+ {"gux-alert":{"info":"Informationsbesked med meddelelse","success":"Gennemførelsesbesked med meddelelse","warning":"Advarselsbesked med meddelelse","error":"Fejlbesked med meddelelse"},"gux-badge":{"neutral":"badge med etiket: {label}, farve: neutral","neutral-bold":"badge med etiket: {label}, farve: neutral fed","green":"badge med etiket: {label}, farve: grøn","green-bold":"badge med etiket: {label}, farve: grøn fed","yellow":"badge med etiket: {label}, farve: gul","yellow-bold":"badge med etiket: {label}, farve: gul fed","red":"badge med etiket: {label}, farve: rød","red-bold":"badge med etiket: {label}, farve: rød fed","inherit":"badge med etiket: {label}"},"gux-column-manager-item":{"activateReordering":"Aktivér omarrangeringstilstand for {columnName} kolonne"},"gux-column-manager":{"search":"Søg efter kolonne","selectedColumnCount":"{count}/{total} kolonner valgt","selectAllColumnsScreenReader":"{count} af {total} kolonner valgt: Markér afkrydsningsfeltet for at markere alle {total} kolonner","unselectAllColumnsScreenReader":"{count} af {total} kolonner valgt: Fjern markeringen fra afkrydsningsfeltet for at fjerne markeringen fra alle {total} kolonner","movePositionPrompt":"Tryk på mellemrum eller Enter for at flytte kolonnen {columnName} til positionen {newPositionNumber} fra positionen {oldPositionNumber}.","reorderingModeActive":"Omarrangeringstilstand aktiv. Omplacer kolonnen {columnName} ved hjælp af pil op-tasten, pil ned-tasten, Home-tasten og End-tasten. Tryk på Escape for at deaktivere omarrangeringstilstand."},"gux-context-menu":{"contextMenuScreenreaderText":"Genvejsmenu"},"gux-copy-to-clipboard":{"clickToCopy":"Klik for at kopiere","enterToCopy":"Tryk på Enter for at kopiere","copySuccess":"Kopieret til Udklipsholder","copyFailure":"Fejl. Prøv igen."},"gux-dropdown-multi-tag":{"clearSelection":"Ryd {numberSelected} valgte elementer"},"gux-dropdown-multi":{"textInputResults":"Indtast for at filtrere rullelisteresultater","noSelection":"Vælg...","dropdown":"Rullemenu","numberSelected":"{numberSelected} valgt","pressEnterToCreate":"Tryk på Enter for at oprette en ny valgmulighed, {textInputValue}"},"gux-month-calendar":{"changeYear":"Det aktuelle år er {currentYear}. Klik for at ændre året til {changeYear}"},"gux-month-picker":{"toggleCalendar":"Slå månedskalendervisning til/fra","month":"Måned","year":"År","unset":"Ikke indstillet"},"gux-pagination-buttons-beta":{"page":"Side","totalPages":" af {totalPages, number}","first":"Første","previous":"Forrige","next":"Næste","last":"Sidste","pageInputLabel":"Side {currentPage, number} af {totalPages, number}"},"gux-pagination-item-counts-beta":{"itemCountDisplay":"{firstItem, number} - {lastItem, number}","totalItems":" af {totalItems, number}"},"gux-pagination-items-per-page-beta":{"perPage":"pr. side","itemsPerPage":"Elementer pr. side","rangeSelected":"Elementer pr. siderulleliste, {range} valgt"},"gux-phone-input":{"AD":"Andorra","AE":"Forenede Arabiske Emirater","AF":"Afghanistan","AG":"Antigua og Barbuda","AI":"Anguilla","AL":"Albanien","AM":"Armenien","AO":"Angola","AR":"Argentina","AS":"Amerikansk Samoa","AT":"Østrig","AU":"Australien","AW":"Aruba","AX":"Ålandsøerne","AZ":"Aserbajdsjan","BA":"Bosnien-Hercegovina","BB":"Barbados","BD":"Bangladesh","BE":"Belgien","BF":"Burkina Faso","BG":"Bulgarien","BH":"Bahrain","BI":"Burundi","BJ":"Benin","BL":"Saint Barthelemy","BM":"Bermuda","BN":"Brunei","BO":"Bolivia","BQ":"Caribisk Nederlandene","BR":"Brasilien","BS":"Bahamas","BT":"Bhutan","BV":"Bouvetøen","BW":"Botswana","BY":"Hviderusland","BZ":"Belize","CA":"Canada","CC":"Cocosøerne","CD":"Den Demokratiske Republik Congo","CF":"Centralafrikanske Republik","CG":"Republikken Congo","CH":"Schweiz","CI":"Elfenbenskysten","CK":"Cookøerne","CL":"Chile","CM":"Cameroon","CN":"Kina","CO":"Colombia","CR":"Costa Rica","CU":"Cuba","CV":"Kap Verde","CW":"Curaçao","CX":"Juleøen","CY":"Cypern","CZ":"Tjekkiet","DE":"Tyskland","DJ":"Djibouti","DK":"Danmark","DM":"Dominica","DO":"Den Dominikanske Republik","DZ":"Algeriet","EC":"Ecuador","EE":"Estland","EG":"Egypten","EH":"Vestsahara","ER":"Eritrea","ES":"Spanien","ET":"Etiopien","FI":"Finland","FJ":"Fiji","FK":"Falklandsøerne","FM":"Mikronesien","FO":"Færøerne","FR":"Frankrig","GA":"Gabon","GB":"Storbritannien","GD":"Grenada","GE":"Georgia","GF":"Fransk Guyana","GG":"Guernsey","GH":"Ghana","GI":"Gibraltar","GL":"Grønland","GM":"Gambia","GN":"Guinea","GP":"Guadeloupe","GQ":"Ækvatorialguinea","GR":"Grækenland","GS":"South Georgia og De Sydlige Sandwichøer","GT":"Guatemala","GU":"Guam","GW":"Guinea-Bissau","GY":"Guyana","HK":"Hongkong","HN":"Honduras","HR":"Kroatien","HT":"Haiti","HU":"Ungarn","ID":"Indonesien","IE":"Irland","IL":"Israel","IM":"Isle of Man","IN":"Indien","IO":"Britiske Territorium i Det Indiske Ocean","IQ":"Irak","IR":"Iran","IS":"Island","IT":"Italien","JE":"Jersey","JM":"Jamaica","JO":"Jordan","JP":"Japan","KE":"Kenya","KG":"Kirgisistan","KH":"Cambodja","KI":"Kiribati","KM":"Comorerne","KN":"Saint Kitts og Nevis","KP":"Nordkorea","KR":"Sydkorea","KW":"Kuwait","KY":"Caymanøerne","KZ":"Kasakhstan","LA":"Laos","LB":"Libanon","LC":"Saint Lucia","LI":"Liechtenstein","LK":"Sri Lanka","LR":"Liberia","LS":"Lesotho","LT":"Litauen","LU":"Luxembourg","LV":"Letland","LY":"Libyen","MA":"Marocco","MC":"Monaco","MD":"Moldova","ME":"Montenegro","MF":"Saint Martin","MG":"Madagaskar","MH":"Marshalløerne","MK":"Makedonien","ML":"Mali","MM":"Myanmar","MN":"Mongoliet","MO":"Macao","MP":"Nordmarianerne","MQ":"Martinique","MR":"Mauretanien","MS":"Montserrat","MT":"Malta","MU":"Mauritius","MV":"Maldiverne","MW":"Malawi","MX":"Mexico","MY":"Malaysia","MZ":"Mozambique","NA":"Namibia","NC":"Ny Caledonien","NE":"Niger","NF":"Norfolk Island","NG":"Nigeria","NI":"Nicaragua","NL":"Holland","NO":"Norge","NP":"Nepal","NR":"Nauru","NU":"Niue","NZ":"New Zealand","OM":"Oman","PA":"Panama","PE":"Peru","PF":"Fransk Polynesien","PG":"Papua Ny Guinea","PH":"Filippinerne","PK":"Pakistan","PL":"Polen","PM":"Saint Pierre og Miquelon","PN":"Pitcairn","PR":"Puerto Rico","PS":"Palæstina","PT":"Portugal","PW":"Palau","PY":"Paraguay","QA":"Qatar","RE":"Reunion","RO":"Rumænien","RS":"Serbien","RU":"Rusland","RW":"Rwanda","SA":"Saudi-Arabien","SB":"Salomonøerne","SC":"Seychellerne","SD":"Sudan","SE":"Sverige","SG":"Singapore","SH":"Saint Helena","SI":"Slovenien","SJ":"Svalbard og Jan Mayen","SK":"Slovakiet","SL":"Sierra Leone","SM":"San Marino","SN":"Senegal","SO":"Somalia","SR":"Suriname","SS":"Sydsudan","ST":"Sao Tome og Principe","SV":"El Salvador","SX":"Sint Maarten","SY":"Syrien","SZ":"Swaziland","TC":"Turks- og Caicosøerne","TD":"Chad","TG":"Togo","TH":"Thailand","TJ":"Tadsjikistan","TK":"Tokelau","TL":"Østtimor","TM":"Turkmenistan","TN":"Tunesien","TO":"Tonga","TR":"Tyrkiet","TT":"Trinidad og Tobago","TV":"Tuvalu","TW":"Taiwan","TZ":"Tanzania","UA":"Ukraine","UG":"Uganda","US":"USA","UY":"Uruguay","UZ":"Usbekistan","VA":"Vatikanet","VC":"Saint Vincent og Grenadinerne","VE":"Venezuela","VG":"De Britiske Jomfruøer","VI":"De Amerikanske Jomfruøer","VN":"Vietnam","VU":"Vanuatu","WF":"Wallis og Futuna","WS":"Samoa","XK":"Kosovo","YE":"Yemen","YT":"Mayotte","ZA":"Sydafrika","ZM":"Zambia","ZW":"Zimbabwe"},"gux-skip-navigation-list":{"navigationName":"Spring linknavigation over"},"gux-table-toolbar-action":{"actionRefresh":"Opdater","actionDelete":"Slet","actionExport":"Eksportér","actionImport":"Importér","actionRevert":"Gendan","actionAdd":"Tilføj"},"gux-table-toolbar-menu-button":{"additionalActions":"Yderligere handlinger"},"gux-table":{"emptyMessage":"Ingen tilgængelige data","scrollLeft":"Rul til venstre","scrollRight":"Rul til højre","selectAllTableRows":"Vælg alle tabelrækker","selectTableRow":"Vælg tabelrække","sortAsc":"Sorteret stigende","sortDesc":"Sorteret faldende","tableOptions":"Tabelvalgmuligheder","noColumnSort":"{headerContent}. Tabellen er ikke sorteret efter denne kolonne i øjeblikket. Klik på kolonneoverskriften for at sortere tabellen efter denne kolonne i stigende rækkefølge","ascendingColumnSort":"{headerContent}. Tabellen er i øjeblikket sorteret efter denne kolonne i stigende rækkefølge. Klik på kolonneoverskriften for at sortere tabellen efter denne kolonne i faldende rækkefølge","descendingColumnSort":"{headerContent}. Tabellen er i øjeblikket sorteret efter denne kolonne i faldende rækkefølge. Klik på kolonneoverskriften for at sortere tabellen efter denne kolonne i stigende rækkefølge","descendingColumnSortIncludeUnsorted":"{headerContent}. Tabellen er i øjeblikket sorteret efter denne kolonne i faldende rækkefølge. Klik på kolonneoverskriften for ikke at sortere tabellen efter denne kolonne"},"gux-tag":{"tag":"tag med etiket: {label}","tag-disabled":"deaktiveret tag med etiket: {label}","remove-tag":"Fjern tag med etiket: {label}"},"gux-time-picker":{"am":"AM","time-separator":":","clockButton":"Skift mellem foreslåede tider","hoursInput":"Indtast timer","minutesInput":"Indtast minutter","pm":"PM","timeOptionsState":"Åbne tidsmuligheder: {state}","toggleAmPM":"{amOrPm} valgt, klik for at skifte"},"gux-action-button-legacy":{"actionButtonDropdown":"Rullemenu for {buttonTitle}"},"gux-command-palette-legacy":{"recentSearch":"Seneste søgninger:","commonSearch":"Almindelige søgninger:","limited":"Resultater begrænset. Præciser din søgning for at se flere kommandoer.","search":"Søg efter kommandoer.","title":"Kommandopalet"},"gux-input-color":{"required":"Påkrævet"},"gux-input-number":{"clear":"Ryd","increment":"Stigning","decrement":"Reduktion"},"gux-input-search":{"clear":"Ryd"},"gux-input-text-like":{"clear":"Ryd"},"gux-tabs-legacy":{"createNewTab":"Opret ny fane","scrollLeft":"Rul til venstre","scrollRight":"Rul til højre","disableNewTab":"Det maksimale antal oprettede faner er nået"},"gux-action-button":{"actionButtonDropdown":"Rullemenu for {buttonTitle}"},"gux-advanced-dropdown":{"searchAria":"Søg"},"gux-breadcrumbs":{"breadcrumbs":"Brødkrummer"},"gux-content-search":{"eraseBtnAria":"Ryd","navigateNextBtn":"Næste","navigatePreviousBtn":"Forrige","totalMatches":"{currentMatch, number} af {matchCount, number}"},"gux-datepicker":{"start":"Start","end":"Slut","date":"Dato","toggleCalendar":"Slå kalendervisning til/fra"},"gux-disclosure-button":{"defaultLabel":"Afsløring-knap"},"gux-dismiss-button":{"dismiss":"Luk"},"gux-dropdown":{"filterResults":"Indtast for at filtrere rullelisteresultater","noSelection":"Vælg...","dropdown":"Rullemenu"},"gux-form-field-dropdown":{"required":"Påkrævet"},"gux-form-field-number":{"increment":"Stigning","decrement":"Reduktion"},"gux-form-field-phone":{"required":"Påkrævet","invalidPhoneNumber":"Tallet er ikke gyldigt"},"gux-form-field-time-picker":{"required":"Påkrævet"},"gux-form-field-input-clear-button":{"clear":"Ryd"},"gux-create-option":{"createCustomOptionInstructions":", vælg for at oprette en ny brugerdefineret valgmulighed","createOption":"Tilføj \"{optionValue}\""},"gux-option-multi":{"removeCustomElementInstructions":", hvis denne brugerdefinerede valgmulighed fravælges, fjernes den fra listen"},"gux-listbox-multi":{"add":"Tilføj {name}","noMatches":"Ingen matches","loading":"Indlæser..."},"gux-listbox":{"noMatches":"Ingen matches","loading":"Indlæser..."},"gux-pagination-cursor":{"previous":"Forrige","next":"Næste"},"gux-pagination-buttons":{"page":"Side","totalPages":" af {totalPages, number}","first":"Første","previous":"Forrige","next":"Næste","last":"Sidste","pageInputLabel":"Side {currentPage, number} af {totalPages, number}"},"gux-pagination-item-counts":{"itemCountDisplay":"{firstItem, number} - {lastItem, number}","totalItems":" af {totalItems, number}"},"gux-pagination-items-per-page":{"perPage":"pr. side","itemsPerPage":"Elementer pr. side","rangeSelected":"Elementer pr. siderulleliste, {range} valgt"},"gux-radial-loading":{"loading":"Indlæser"},"gux-tabs-advanced":{"createNewTab":"Opret ny fane","scrollLeft":"Rul til venstre","scrollRight":"Rul til højre","options":"Faneindstillinger for {tabTitle}","disableNewTab":"Det maksimale antal oprettede faner er nået","toggleSort":"Slå sorteringstilstand til/fra ved hjælp af mellemrum","sortModeOn":"Sorteringstilstand til, brug venstre og højre piletast til at omarrangere faner. Tryk på mellemrums- eller Enter-tasten for at gennemføre sortering. Tryk på Esc-tasten for at annullere sortering","sortComplete":"Sortering gennemført","sortCancelled":"Sortering annulleret"},"gux-tabs":{"scrollLeft":"Rul til venstre","scrollRight":"Rul til højre","scrollUp":"Rul op","scrollDown":"Rul ned"},"gux-toggle":{"defaultAriaLabel":"Til/fra-knap","toggleIsLoading":"Til/fra indlæses","toggleIsFinishedLoading":"Indlæsning af Til/fra er gennemført"}}
@@ -1 +1 @@
1
- import{r as t,h as e,g as i}from"./p-9031eb6a.js";import{b as r}from"./p-2b58afeb.js";import{O as s}from"./p-09124c44.js";import{a as o,o as a}from"./p-3701eff0.js";import{h as n}from"./p-08bc2e6b.js";import{G as l,g as h,a as f}from"./p-b4dbf6f0.js";import{G as p,a as d,v as g,b as x}from"./p-31f48d0b.js";import{t as u}from"./p-ffb1bb70.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-45fec011.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const m={required:"Required"};const c=class{constructor(e){t(this,e),this.labelPosition=void 0,this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1}watchValue(t){const e=this.root.querySelector("gux-time-picker-beta");e&&(e.hasError=t)}onMutation(){this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help")}async componentWillLoad(){this.getI18nValue=await r(this.root,m),this.setInput(),this.setLabel(),this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help"),u(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return e(f,{labelPosition:this.computedLabelPosition},e(l,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()}),this.renderScreenReaderText(this.getI18nValue("required"),this.required),this.renderScreenReaderText(h(this.root,"error"),this.hasError)),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{class:{"gux-time-picker-container":!0,"gux-disabled":this.disabled}},e("slot",null))),e(p,{show:this.hasError},e("slot",{name:"error"})),e(d,{show:!this.hasError&&this.hasHelp},e("slot",{name:"help"}))))}renderScreenReaderText(t,i=!0){if(i)return e("gux-screen-reader-beta",null,t)}get variant(){return`timePicker-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.timePickerElement=this.root.querySelector("gux-time-picker-beta"),this.disabled=this.timePickerElement.disabled,this.required=this.timePickerElement.required,this.disabledObserver=o(this.timePickerElement,(t=>{this.disabled=t})),this.requiredObserver=a(this.timePickerElement,(t=>{this.required=t})),g(this.root,this.timePickerElement)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=x(this.label,this.labelPosition)}get root(){return i(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(t,e,i,r){var s,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)})([s({childList:!0,subtree:!0})],c.prototype,"onMutation",null),c.style=".gux-form-field-fieldset-container{display:flex;min-width:0;padding:0;margin:var(--gux-form-field-fieldset-container-margin-top, 16px) 0 var(--gux-form-field-fieldset-container-margin-bottom, 16px) 0;border:none}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;line-height:20px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:16px;min-height:16px;margin:2px 4px 0 0;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-legend-label{padding:0}.gux-form-field-legend-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-legend-label.gux-beside{position:relative;top:8px;float:left;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-legend-label.gux-above{margin-bottom:8px}.gux-form-field-legend-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-input-and-error-container{flex-grow:1}";export{c as gux_form_field_time_picker}
1
+ import{r as t,h as e,g as i}from"./p-9031eb6a.js";import{b as r}from"./p-2b58afeb.js";import{O as s}from"./p-09124c44.js";import{a as o,o as a}from"./p-3701eff0.js";import{h as n}from"./p-08bc2e6b.js";import{G as l,g as h,a as f}from"./p-b4dbf6f0.js";import{G as p,a as d,v as g,b as x}from"./p-31f48d0b.js";import{t as u}from"./p-93d8e3c7.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-45fec011.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const c={required:"Required"};const m=class{constructor(e){t(this,e),this.labelPosition=void 0,this.computedLabelPosition="above",this.disabled=void 0,this.required=void 0,this.hasError=!1,this.hasHelp=!1}watchValue(t){const e=this.root.querySelector("gux-time-picker-beta");e&&(e.hasError=t)}onMutation(){this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help")}async componentWillLoad(){this.getI18nValue=await r(this.root,c),this.setInput(),this.setLabel(),this.hasError=n(this.root,"error"),this.hasHelp=n(this.root,"help"),u(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver&&this.disabledObserver.disconnect(),this.requiredObserver&&this.requiredObserver.disconnect()}render(){return e(f,{labelPosition:this.computedLabelPosition},e(l,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()}),this.renderScreenReaderText(this.getI18nValue("required"),this.required),this.renderScreenReaderText(h(this.root,"error"),this.hasError)),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{class:{"gux-time-picker-container":!0,"gux-disabled":this.disabled}},e("slot",null))),e(p,{show:this.hasError},e("slot",{name:"error"})),e(d,{show:!this.hasError&&this.hasHelp},e("slot",{name:"help"}))))}renderScreenReaderText(t,i=!0){if(i)return e("gux-screen-reader-beta",null,t)}get variant(){return`timePicker-${this.labelPosition?this.labelPosition.toLowerCase():"none"}`}setInput(){this.timePickerElement=this.root.querySelector("gux-time-picker-beta"),this.disabled=this.timePickerElement.disabled,this.required=this.timePickerElement.required,this.disabledObserver=o(this.timePickerElement,(t=>{this.disabled=t})),this.requiredObserver=a(this.timePickerElement,(t=>{this.required=t})),g(this.root,this.timePickerElement)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=x(this.label,this.labelPosition)}get root(){return i(this)}static get watchers(){return{hasError:["watchValue"]}}};(function(t,e,i,r){var s,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(o<3?s(a):o>3?s(e,i,a):s(e,i))||a);o>3&&a&&Object.defineProperty(e,i,a)})([s({childList:!0,subtree:!0})],m.prototype,"onMutation",null),m.style=".gux-form-field-fieldset-container{display:flex;min-width:0;padding:0;margin:var(--gux-form-field-fieldset-container-margin-top, 16px) 0 var(--gux-form-field-fieldset-container-margin-bottom, 16px) 0;border:none}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;line-height:20px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;min-width:16px;min-height:16px;margin:2px 4px 0 0;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-legend-label{padding:0}.gux-form-field-legend-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-legend-label.gux-beside{position:relative;top:8px;float:left;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-legend-label.gux-above{margin-bottom:8px}.gux-form-field-legend-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}.gux-form-field-help{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:12px;font-weight:400;line-height:20px;color:#6b7585}.gux-form-field-help.gux-show{display:flex}.gux-form-field-help .gux-message{flex:0 1 auto;align-self:none;order:0}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-input-and-error-container{flex-grow:1}";export{m as gux_form_field_time_picker}
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,g as s}from"./p-9031eb6a.js";import{t as n}from"./p-ffb1bb70.js";import{O as e}from"./p-23975bfb.js";import{b as a}from"./p-2b58afeb.js";import"./p-8a133b9b.js";const c={actionButtonDropdown:"Dropdown for {buttonTitle}"};const h=class{constructor(o){t(this,o),this.open=i(this,"open",7),this.close=i(this,"close",7),this.actionClick=i(this,"actionClick",7),this.moveFocusDelay=100,this.type="button",this.text=void 0,this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const i=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,i.includes(this.actionListElement)&&this.dropdownButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":t.preventDefault(),i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay));break;case"Enter":i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}handleKeyup(t){const i=t.composedPath();" "===t.key&&i.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen)}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}async componentWillLoad(){n(this.root,{variant:this.type}),this.i18n=await a(this.root,c)}render(){return o("div",{class:"gux-action-button-container"},o("gux-popup",{expanded:this.isOpen,disabled:this.disabled},o("div",{slot:"target",class:"gux-action-button-container"},o("gux-button-slot-beta",{class:"gux-action-button",accent:this.accent},o("button",{type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick()},this.text)),o("gux-button-slot-beta",{class:"gux-dropdown-button",accent:this.accent},o("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("actionButtonDropdown",{buttonTitle:this.text})},o("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),o("gux-action-list-legacy",{slot:"popup",ref:t=>this.actionListElement=t},o("slot",null))))}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,i,o,s){var n,e=arguments.length,a=e<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,s);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(e<3?n(a):e>3?n(i,o,a):n(i,o))||a);e>3&&a&&Object.defineProperty(i,o,a)})([e({triggerEvents:"click"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-action-button-container{min-width:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{width:calc(100% - 33px);margin-right:1px}.gux-action-button-container .gux-action-button button{width:100%;max-width:none;text-align:center;border-top-right-radius:0;border-bottom-right-radius:0}.gux-action-button-container .gux-dropdown-button button{width:32px;min-width:0;padding:0;border-top-left-radius:0;border-bottom-left-radius:0}.gux-action-button-container .gux-dropdown-button button gux-icon{width:16px;height:16px}";export{h as gux_action_button_legacy}
1
+ import{r as t,c as i,h as o,g as s}from"./p-9031eb6a.js";import{t as n}from"./p-93d8e3c7.js";import{O as e}from"./p-23975bfb.js";import{b as a}from"./p-2b58afeb.js";import"./p-8a133b9b.js";const c={actionButtonDropdown:"Dropdown for {buttonTitle}"};const h=class{constructor(o){t(this,o),this.open=i(this,"open",7),this.close=i(this,"close",7),this.actionClick=i(this,"actionClick",7),this.moveFocusDelay=100,this.type="button",this.text=void 0,this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const i=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,i.includes(this.actionListElement)&&this.dropdownButton.focus();break;case"Tab":this.isOpen=!1;break;case"ArrowDown":t.preventDefault(),i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay));break;case"Enter":i.includes(this.dropdownButton)&&(this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}}handleKeyup(t){const i=t.composedPath();" "===t.key&&i.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,setTimeout((()=>{this.actionListElement.setFocusOnFirstItem()}),this.moveFocusDelay))}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(t){null===t.relatedTarget&&(this.isOpen=!1)}toggle(){this.disabled||(this.isOpen=!this.isOpen)}onActionClick(){this.disabled||(this.isOpen=!1,this.actionClick.emit())}async componentWillLoad(){n(this.root,{variant:this.type}),this.i18n=await a(this.root,c)}render(){return o("div",{class:"gux-action-button-container"},o("gux-popup",{expanded:this.isOpen,disabled:this.disabled},o("div",{slot:"target",class:"gux-action-button-container"},o("gux-button-slot-beta",{class:"gux-action-button",accent:this.accent},o("button",{type:this.type,disabled:this.disabled,onClick:()=>this.onActionClick()},this.text)),o("gux-button-slot-beta",{class:"gux-dropdown-button",accent:this.accent},o("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onClick:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString(),"aria-label":this.i18n("actionButtonDropdown",{buttonTitle:this.text})},o("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),o("gux-action-list-legacy",{slot:"popup",ref:t=>this.actionListElement=t},o("slot",null))))}get root(){return s(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,i,o,s){var n,e=arguments.length,a=e<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,s);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(e<3?n(a):e>3?n(i,o,a):n(i,o))||a);e>3&&a&&Object.defineProperty(i,o,a)})([e({triggerEvents:"click"})],h.prototype,"onClickOutside",null),h.style=":host{display:block;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-action-button-container{min-width:128px}.gux-action-button-container>*{vertical-align:middle}.gux-action-button-container .gux-action-button{width:calc(100% - 33px);margin-right:1px}.gux-action-button-container .gux-action-button button{width:100%;max-width:none;text-align:center;border-top-right-radius:0;border-bottom-right-radius:0}.gux-action-button-container .gux-dropdown-button button{width:32px;min-width:0;padding:0;border-top-left-radius:0;border-bottom-left-radius:0}.gux-action-button-container .gux-dropdown-button button gux-icon{width:16px;height:16px}";export{h as gux_action_button_legacy}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e,g as i}from"./p-9031eb6a.js";import{b as o}from"./p-2b58afeb.js";import{t as n}from"./p-ffb1bb70.js";import{g as r}from"./p-8a133b9b.js";import{o as a}from"./p-93904222.js";import{t as c}from"./p-e310debb.js";const h=class{constructor(e){t(this,e),this.guxsortchanged=s(this,"guxsortchanged",7),this.includeUnsorted=!1,this.headerContent=void 0,this.active=!1,this.sort="none",this.isLeftAlignIcon=!1}async componentWillLoad(){n(this.root),this.i18n=await o(this.root,c,"gux-table"),this.tableHeader=r("th",this.root),this.thObserver=a(this.tableHeader,(()=>{this.setState()}),{attributes:!0,childList:!1,subtree:!1}),this.setState()}disconnectedCallback(){this.thObserver&&this.thObserver.disconnect()}onClick(){this.guxsortchanged.emit({columnName:this.tableHeader.dataset.columnName,sortDirection:this.getNextSort(this.sort)})}setState(){this.headerContent=this.tableHeader.textContent,this.isLeftAlignIcon=this.tableHeader.hasAttribute("data-cell-numeric")||this.tableHeader.hasAttribute("data-cell-action");const t=this.tableHeader.getAttribute("aria-sort");switch(t){case"ascending":case"descending":this.active=!0,this.sort=t;break;default:this.active=!1,this.sort="none"}}getIconName(t){return"descending"===t?"arrow-solid-up":"arrow-solid-down"}getNextSort(t){switch(t){case"none":return"ascending";case"ascending":return"descending";default:return this.includeUnsorted?"none":"ascending"}}getSRText(t){switch(t){case"ascending":return this.i18n("ascendingColumnSort",{headerContent:this.headerContent});case"descending":return this.i18n(this.includeUnsorted?"descendingColumnSortIncludeUnsorted":"descendingColumnSort",{headerContent:this.headerContent});default:return this.i18n("noColumnSort",{headerContent:this.headerContent})}}render(){return e("div",{class:"gux-container"},e("button",{class:{"gux-sort-button":!0,"gux-active":this.active},type:"button",onClick:()=>this.onClick()},e("span",{class:"gux-sr-only"},this.getSRText(this.sort)),e("gux-icon",{class:{"gux-sort-icon":!0,"gux-left":this.isLeftAlignIcon},"icon-name":this.getIconName(this.sort),decorative:!0})),e("div",{class:"gux-resize-spacer"}))}static get delegatesFocus(){return!0}get root(){return i(this)}};h.style=".gux-container{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:flex-start;align-items:center;justify-content:flex-start;border-top:3px solid transparent;border-bottom:3px solid transparent}.gux-container:focus-within{border-bottom-color:#75a8ff}.gux-container .gux-sort-button{all:unset;flex:1 1 auto;align-self:stretch;order:0;cursor:pointer}.gux-container .gux-sort-button .gux-sort-icon{float:right;width:16px;height:16px;margin:8px;color:#d7dce5}.gux-container .gux-sort-button .gux-sort-icon.gux-left{float:left}.gux-container .gux-sort-button.gux-active .gux-sort-icon{color:#2e394c}.gux-container .gux-resize-spacer{flex:0 1 auto;align-self:stretch;order:0;width:2px}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{h as gux_sort_control}
1
+ import{r as t,c as s,h as e,g as i}from"./p-9031eb6a.js";import{b as o}from"./p-2b58afeb.js";import{t as n}from"./p-93d8e3c7.js";import{g as r}from"./p-8a133b9b.js";import{o as a}from"./p-93904222.js";import{t as c}from"./p-e310debb.js";const h=class{constructor(e){t(this,e),this.guxsortchanged=s(this,"guxsortchanged",7),this.includeUnsorted=!1,this.headerContent=void 0,this.active=!1,this.sort="none",this.isLeftAlignIcon=!1}async componentWillLoad(){n(this.root),this.i18n=await o(this.root,c,"gux-table"),this.tableHeader=r("th",this.root),this.thObserver=a(this.tableHeader,(()=>{this.setState()}),{attributes:!0,childList:!1,subtree:!1}),this.setState()}disconnectedCallback(){this.thObserver&&this.thObserver.disconnect()}onClick(){this.guxsortchanged.emit({columnName:this.tableHeader.dataset.columnName,sortDirection:this.getNextSort(this.sort)})}setState(){this.headerContent=this.tableHeader.textContent,this.isLeftAlignIcon=this.tableHeader.hasAttribute("data-cell-numeric")||this.tableHeader.hasAttribute("data-cell-action");const t=this.tableHeader.getAttribute("aria-sort");switch(t){case"ascending":case"descending":this.active=!0,this.sort=t;break;default:this.active=!1,this.sort="none"}}getIconName(t){return"descending"===t?"arrow-solid-up":"arrow-solid-down"}getNextSort(t){switch(t){case"none":return"ascending";case"ascending":return"descending";default:return this.includeUnsorted?"none":"ascending"}}getSRText(t){switch(t){case"ascending":return this.i18n("ascendingColumnSort",{headerContent:this.headerContent});case"descending":return this.i18n(this.includeUnsorted?"descendingColumnSortIncludeUnsorted":"descendingColumnSort",{headerContent:this.headerContent});default:return this.i18n("noColumnSort",{headerContent:this.headerContent})}}render(){return e("div",{class:"gux-container"},e("button",{class:{"gux-sort-button":!0,"gux-active":this.active},type:"button",onClick:()=>this.onClick()},e("span",{class:"gux-sr-only"},this.getSRText(this.sort)),e("gux-icon",{class:{"gux-sort-icon":!0,"gux-left":this.isLeftAlignIcon},"icon-name":this.getIconName(this.sort),decorative:!0})),e("div",{class:"gux-resize-spacer"}))}static get delegatesFocus(){return!0}get root(){return i(this)}};h.style=".gux-container{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:flex-start;align-items:center;justify-content:flex-start;border-top:3px solid transparent;border-bottom:3px solid transparent}.gux-container:focus-within{border-bottom-color:#75a8ff}.gux-container .gux-sort-button{all:unset;flex:1 1 auto;align-self:stretch;order:0;cursor:pointer}.gux-container .gux-sort-button .gux-sort-icon{float:right;width:16px;height:16px;margin:8px;color:#d7dce5}.gux-container .gux-sort-button .gux-sort-icon.gux-left{float:left}.gux-container .gux-sort-button.gux-active .gux-sort-icon{color:#2e394c}.gux-container .gux-resize-spacer{flex:0 1 auto;align-self:stretch;order:0;width:2px}.gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}";export{h as gux_sort_control}
@@ -1 +1 @@
1
- import{r,h as s,g as t}from"./p-9031eb6a.js";import{t as e}from"./p-ffb1bb70.js";const o=class{constructor(s){r(this,s),this.screenreaderText=void 0}componentWillLoad(){e(this.root)}render(){return s("gux-radial-loading",{class:"gux-spinner","screenreader-text":this.screenreaderText,context:"full-page"})}get root(){return t(this)}};o.style=":host{display:flex}.gux-spinner{margin:auto}";export{o as gux_page_loading_spinner}
1
+ import{r,h as s,g as t}from"./p-9031eb6a.js";import{t as e}from"./p-93d8e3c7.js";const o=class{constructor(s){r(this,s),this.screenreaderText=void 0}componentWillLoad(){e(this.root)}render(){return s("gux-radial-loading",{class:"gux-spinner","screenreader-text":this.screenreaderText,context:"full-page"})}get root(){return t(this)}};o.style=":host{display:flex}.gux-spinner{margin:auto}";export{o as gux_page_loading_spinner}
@@ -1 +1 @@
1
- import{r as t,h as o,H as e,g as s}from"./p-9031eb6a.js";import{l as r,f as n,n as i,p as a,a as d}from"./p-d61cf750.js";import{g as c}from"./p-8a133b9b.js";const l=["gux-month-list-item"],u=class{constructor(o){t(this,o)}onKeyDown(t){switch(t.key){case"ArrowUp":t.preventDefault(),d(this.root,l,-3);break;case"ArrowDown":t.preventDefault(),d(this.root,l,3);break;case"ArrowLeft":t.preventDefault(),a(this.root,l);break;case"ArrowRight":t.preventDefault(),i(this.root,l);break;case"Home":t.preventDefault(),n(this.root,l);break;case"End":t.preventDefault(),r(this.root,l)}}async guxFocusFirstItem(){n(this.root,l)}renderFocusTarget(){return o("span",{tabindex:"1"})}render(){return o(e,{role:"list"},this.renderFocusTarget(),o("slot",null))}static get delegatesFocus(){return!0}get root(){return s(this)}};u.style=":host{display:flex;flex-direction:row;flex-wrap:wrap;padding:12px 16px;background-color:#fdfdfd;border:1px solid #b4bccb}";const b=class{constructor(o){t(this,o),this.value=void 0,this.disabled=!1,this.selected=!1}onMouseup(){this.focusParentList()}onMouseover(){this.focusParentList()}focusParentList(){const t=c("gux-month-list",this.root);t&&null===t.shadowRoot.activeElement&&(this.root.blur(),t.focus())}render(){return o(e,{role:"listitem",value:this.value},o("div",{class:"gux-container"},o("button",{class:{"gux-selected":this.selected},type:"button",tabIndex:-1,disabled:this.disabled},o("slot",null))))}static get delegatesFocus(){return!0}get root(){return s(this)}};b.style=":host{flex:0 0 33.3%}:host([disabled]){pointer-events:none}:host([disabled='false']){pointer-events:auto}::slotted(gux-icon){width:16px;height:16px;margin-right:8px;vertical-align:middle}.gux-container{padding:4px}.gux-container button{all:unset;box-sizing:border-box;width:100%;height:49px;padding:8px 0;color:#2e394c;text-align:center;word-wrap:break-word;cursor:pointer;border:none;border-radius:4px;outline:none}.gux-container button.gux-selected{color:#fdfdfd;background:#2a60c8}.gux-container button:focus-visible:not(:disabled){outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-container button:hover:not(:disabled){color:#fdfdfd;background:#2a60c8}.gux-container button:active:not(:disabled){color:#fdfdfd;background:#2a60c8}.gux-container button:disabled{color:rgba(46, 57, 76, 0.5);cursor:default}";export{u as gux_month_list,b as gux_month_list_item}
1
+ import{r as t,h as e,H as o,g as s}from"./p-9031eb6a.js";import{l as r,f as n,n as i,p as a,a as d}from"./p-417354e9.js";import{g as c}from"./p-8a133b9b.js";const l=["gux-month-list-item"],u=class{constructor(e){t(this,e)}onKeyDown(t){switch(t.key){case"ArrowUp":t.preventDefault(),d(this.root,l,-3);break;case"ArrowDown":t.preventDefault(),d(this.root,l,3);break;case"ArrowLeft":t.preventDefault(),a(this.root,l);break;case"ArrowRight":t.preventDefault(),i(this.root,l);break;case"Home":t.preventDefault(),n(this.root,l);break;case"End":t.preventDefault(),r(this.root,l)}}async guxFocusFirstItem(){n(this.root,l)}renderFocusTarget(){return e("span",{tabindex:"1"})}render(){return e(o,{role:"list"},this.renderFocusTarget(),e("slot",null))}static get delegatesFocus(){return!0}get root(){return s(this)}};u.style=":host{display:flex;flex-direction:row;flex-wrap:wrap;padding:12px 16px;background-color:#fdfdfd;border:1px solid #b4bccb}";const b=class{constructor(e){t(this,e),this.value=void 0,this.disabled=!1,this.selected=!1}onMouseup(){this.focusParentList()}onMouseover(){this.focusParentList()}focusParentList(){const t=c("gux-month-list",this.root);t&&null===t.shadowRoot.activeElement&&(this.root.blur(),t.focus())}render(){return e(o,{role:"listitem",value:this.value},e("div",{class:"gux-container"},e("button",{class:{"gux-selected":this.selected},type:"button",tabIndex:-1,disabled:this.disabled},e("slot",null))))}static get delegatesFocus(){return!0}get root(){return s(this)}};b.style=":host{flex:0 0 33.3%}:host([disabled]){pointer-events:none}:host([disabled='false']){pointer-events:auto}::slotted(gux-icon){width:16px;height:16px;margin-right:8px;vertical-align:middle}.gux-container{padding:4px}.gux-container button{all:unset;box-sizing:border-box;width:100%;height:49px;padding:8px 0;color:#2e394c;text-align:center;word-wrap:break-word;cursor:pointer;border:none;border-radius:4px;outline:none}.gux-container button.gux-selected{color:#fdfdfd;background:#2a60c8}.gux-container button:focus-visible:not(:disabled){outline:3px solid #aac9ff;outline-offset:1px;box-shadow:0 0 0 1px #fdfdfd}.gux-container button:hover:not(:disabled){color:#fdfdfd;background:#2a60c8}.gux-container button:active:not(:disabled){color:#fdfdfd;background:#2a60c8}.gux-container button:disabled{color:rgba(46, 57, 76, 0.5);cursor:default}";export{u as gux_month_list,b as gux_month_list_item}
@@ -1 +1 @@
1
- import{r as t,h as e,H as o,g as a}from"./p-9031eb6a.js";import{t as n}from"./p-ffb1bb70.js";const i=class{constructor(e){t(this,e)}componentWillLoad(){n(this.root)}render(){return e(o,null,e("div",{class:"gux-header"},e("div",{class:"gux-icon"},e("slot",{name:"icon"})),e("div",{class:"gux-title"},e("slot",{name:"title"}))),e("div",{class:"gux-message"},e("slot",{name:"message"})),e("div",{class:"gux-action-buttons"},e("div",{class:"gux-positive-button"},e("slot",{name:"positive-button"})),e("div",{class:"gux-negative-button"},e("slot",{name:"negative-button"}))))}get root(){return a(this)}};i.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start;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;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}.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:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;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;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;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}";export{i as gux_action_toast}
1
+ import{r as t,h as e,H as o,g as a}from"./p-9031eb6a.js";import{t as n}from"./p-93d8e3c7.js";const i=class{constructor(e){t(this,e)}componentWillLoad(){n(this.root)}render(){return e(o,null,e("div",{class:"gux-header"},e("div",{class:"gux-icon"},e("slot",{name:"icon"})),e("div",{class:"gux-title"},e("slot",{name:"title"}))),e("div",{class:"gux-message"},e("slot",{name:"message"})),e("div",{class:"gux-action-buttons"},e("div",{class:"gux-positive-button"},e("slot",{name:"positive-button"})),e("div",{class:"gux-negative-button"},e("slot",{name:"negative-button"}))))}get root(){return a(this)}};i.style=":host{display:flex;flex-direction:column;flex-wrap:nowrap;align-content:stretch;align-items:stretch;justify-content:flex-start;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;align-content:stretch;align-items:center;align-self:auto;justify-content:flex-start;order:0;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}.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:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-message ::slotted(dl){display:flex;flex-direction:row;flex-wrap:wrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:0}.gux-action-buttons{display:flex;flex:0 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;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;align-content:stretch;align-items:flex-start;align-self:auto;justify-content:space-between;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}";export{i as gux_action_toast}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,g as e}from"./p-9031eb6a.js";import{O as o}from"./p-23975bfb.js";import{w as n}from"./p-76ff3e75.js";import{a}from"./p-091f51f6.js";import{t as r}from"./p-ffb1bb70.js";const h=["primary","secondary","tertiary"];const c=class{constructor(i){t(this,i),this.open=s(this,"open",7),this.close=s(this,"close",7),this.text=void 0,this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const s=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,s.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":s.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(){this.isOpen=!1}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){a((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){a((()=>{this.listElement.guxFocusFirstItem()}))}onListClick(t){n("gux-list-item",t,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return i("gux-popup-beta",{expanded:this.isOpen},i("div",{slot:"target",class:"gux-button-multi-container"},i("gux-button-slot-beta",{class:"gux-dropdown-button",accent:(t=this.accent,h.find((s=>s===t))?t:"secondary")},i("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},i("slot",{name:"title"},this.text),i("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),i("div",{class:"gux-list-container",slot:"popup"},i("gux-list",{onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},i("slot",null))));var t}get root(){return e(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,s,i,e){var o,n=arguments.length,a=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(s,i,a):o(s,i))||a);n>3&&a&&Object.defineProperty(s,i,a)})([o({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:block;-webkit-user-select:none;user-select:none;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-button-multi-container .gux-dropdown-button button{display:inline-flex;align-items:center}.gux-button-multi-container .gux-dropdown-button button gux-icon{width:16px;height:16px;margin-left:8px}.gux-list-container{max-width:220px;padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{c as gux_button_multi}
1
+ import{r as t,c as s,h as i,g as e}from"./p-9031eb6a.js";import{O as o}from"./p-23975bfb.js";import{w as n}from"./p-76ff3e75.js";import{a}from"./p-091f51f6.js";import{t as r}from"./p-93d8e3c7.js";const h=["primary","secondary","tertiary"];const c=class{constructor(i){t(this,i),this.open=s(this,"open",7),this.close=s(this,"close",7),this.text=void 0,this.disabled=!1,this.accent="secondary",this.isOpen=!1}handleKeydown(t){const s=t.composedPath();switch(t.key){case"Escape":this.isOpen=!1,s.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":s.includes(this.dropdownButton)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.isOpen=!0,this.focusFirstItemInPopupList())}watchDisabled(t){t&&(this.isOpen=!1)}watchValue(t){t?this.open.emit():this.close.emit()}onClickOutside(){this.isOpen=!1}toggle(){this.disabled||(this.isOpen=!this.isOpen,this.isOpen&&this.focusPopupList())}focusPopupList(){a((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){a((()=>{this.listElement.guxFocusFirstItem()}))}onListClick(t){n("gux-list-item",t,(()=>{this.isOpen=!1,this.dropdownButton.focus()}))}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return i("gux-popup-beta",{expanded:this.isOpen},i("div",{slot:"target",class:"gux-button-multi-container"},i("gux-button-slot-beta",{class:"gux-dropdown-button",accent:(t=this.accent,h.find((s=>s===t))?t:"secondary")},i("button",{type:"button",disabled:this.disabled,ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},i("slot",{name:"title"},this.text),i("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),i("div",{class:"gux-list-container",slot:"popup"},i("gux-list",{onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},i("slot",null))));var t}get root(){return e(this)}static get watchers(){return{disabled:["watchDisabled"],isOpen:["watchValue"]}}};(function(t,s,i,e){var o,n=arguments.length,a=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(s,i,a):o(s,i))||a);n>3&&a&&Object.defineProperty(s,i,a)})([o({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:block;-webkit-user-select:none;user-select:none;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-button-multi-container .gux-dropdown-button button{display:inline-flex;align-items:center}.gux-button-multi-container .gux-dropdown-button button gux-icon{width:16px;height:16px;margin-left:8px}.gux-list-container{max-width:220px;padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{c as gux_button_multi}
@@ -1 +1 @@
1
- import{r as t,h as s,H as e,g as i}from"./p-9031eb6a.js";import{r as o}from"./p-cbcbd1bb.js";import{t as r}from"./p-ffb1bb70.js";import{b as n}from"./p-2b58afeb.js";import{O as a}from"./p-23975bfb.js";import{b as c}from"./p-091f51f6.js";import{w as h}from"./p-76ff3e75.js";import"./p-8a133b9b.js";const l={contextMenuScreenreaderText:"Context menu"};const p=class{constructor(s){t(this,s),this.buttonId=o(),this.screenreaderText="",this.isOpen=!1}onClickOutside(){this.isOpen=!1}handleKeyDown(t){const s=t.composedPath().includes(this.listElement),e=t.composedPath().includes(this.button);switch(t.key){case"Escape":s&&(t.preventDefault(),this.isOpen=!1,this.button.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":e&&!this.isOpen&&(t.preventDefault(),this.isOpen=!0,this.focusFirstListItem());break;case"ArrowUp":e&&!this.isOpen&&(t.preventDefault(),this.isOpen=!0,this.focusLastListItem())}}handleKeyup(t){" "===t.key&&t.composedPath().includes(this.button)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstListItem())}focusFirstListItem(){c((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){c((()=>{this.listElement.guxFocusLastItem()}))}onButtonClick(){this.isOpen=!this.isOpen,this.isOpen&&this.focusFirstListItem()}onListClick(t){h("gux-list-item",t,(()=>{this.isOpen=!1,this.button.focus()}))}async componentWillLoad(){r(this.root),this.i18n=await n(this.root,l)}render(){return s(e,null,s("gux-popup-beta",{expanded:this.isOpen},s("div",{slot:"target",class:"gux-button-container"},s("gux-button-slot-beta",{accent:"ghost"},s("button",{type:"button",onClick:()=>this.onButtonClick(),id:this.buttonId,ref:t=>this.button=t,"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},s("gux-icon",{"icon-name":"menu-kebab-vertical","screenreader-text":this.screenreaderText||this.i18n("contextMenuScreenreaderText")})))),s("div",{slot:"popup",class:"gux-list-container"},s("gux-list",{onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},s("slot",null)))))}static get delegatesFocus(){return!0}get root(){return i(this)}};(function(t,s,e,i){var o,r=arguments.length,n=r<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(s,e,n):o(s,e))||n);r>3&&n&&Object.defineProperty(s,e,n)})([a({triggerEvents:"click"})],p.prototype,"onClickOutside",null),p.style=":host{display:block;max-width:fit-content}gux-icon{width:16px;height:16px;color:#6b7585}.gux-list-container{width:128px;padding:8px 0;margin:0;text-align:left;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{p as gux_context_menu_beta}
1
+ import{r as t,h as s,H as e,g as i}from"./p-9031eb6a.js";import{r as o}from"./p-cbcbd1bb.js";import{t as r}from"./p-93d8e3c7.js";import{b as n}from"./p-2b58afeb.js";import{O as a}from"./p-23975bfb.js";import{b as c}from"./p-091f51f6.js";import{w as h}from"./p-76ff3e75.js";import"./p-8a133b9b.js";const l={contextMenuScreenreaderText:"Context menu"};const p=class{constructor(s){t(this,s),this.buttonId=o(),this.screenreaderText="",this.isOpen=!1}onClickOutside(){this.isOpen=!1}handleKeyDown(t){const s=t.composedPath().includes(this.listElement),e=t.composedPath().includes(this.button);switch(t.key){case"Escape":s&&(t.preventDefault(),this.isOpen=!1,this.button.focus());break;case"Tab":this.isOpen=!1;break;case"ArrowDown":case"Enter":e&&!this.isOpen&&(t.preventDefault(),this.isOpen=!0,this.focusFirstListItem());break;case"ArrowUp":e&&!this.isOpen&&(t.preventDefault(),this.isOpen=!0,this.focusLastListItem())}}handleKeyup(t){" "===t.key&&t.composedPath().includes(this.button)&&(t.preventDefault(),this.isOpen=!0,this.focusFirstListItem())}focusFirstListItem(){c((()=>{this.listElement.guxFocusFirstItem()}))}focusLastListItem(){c((()=>{this.listElement.guxFocusLastItem()}))}onButtonClick(){this.isOpen=!this.isOpen,this.isOpen&&this.focusFirstListItem()}onListClick(t){h("gux-list-item",t,(()=>{this.isOpen=!1,this.button.focus()}))}async componentWillLoad(){r(this.root),this.i18n=await n(this.root,l)}render(){return s(e,null,s("gux-popup-beta",{expanded:this.isOpen},s("div",{slot:"target",class:"gux-button-container"},s("gux-button-slot-beta",{accent:"ghost"},s("button",{type:"button",onClick:()=>this.onButtonClick(),id:this.buttonId,ref:t=>this.button=t,"aria-haspopup":"true","aria-expanded":this.isOpen.toString()},s("gux-icon",{"icon-name":"menu-kebab-vertical","screenreader-text":this.screenreaderText||this.i18n("contextMenuScreenreaderText")})))),s("div",{slot:"popup",class:"gux-list-container"},s("gux-list",{onClick:t=>this.onListClick(t),ref:t=>this.listElement=t},s("slot",null)))))}static get delegatesFocus(){return!0}get root(){return i(this)}};(function(t,s,e,i){var o,r=arguments.length,n=r<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(s,e,n):o(s,e))||n);r>3&&n&&Object.defineProperty(s,e,n)})([a({triggerEvents:"click"})],p.prototype,"onClickOutside",null),p.style=":host{display:block;max-width:fit-content}gux-icon{width:16px;height:16px;color:#6b7585}.gux-list-container{width:128px;padding:8px 0;margin:0;text-align:left;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{p as gux_context_menu_beta}
@@ -1 +1 @@
1
- import{r as t,c as s,f as i,d as e,h,H as o,g as l}from"./p-9031eb6a.js";import{b as a}from"./p-2b58afeb.js";import{w as r}from"./p-76ff3e75.js";import{r as n}from"./p-cbcbd1bb.js";import{t as c}from"./p-ffb1bb70.js";import{t as b}from"./p-e310debb.js";import"./p-8a133b9b.js";const u=class{constructor(e){t(this,e),this.guxselectionchanged=s(this,"guxselectionchanged",7),this.guxsortchanged=s(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>i(this))),this.tableId=n("gux-table"),this.columnsWidths={},this.tableWidth=this.getElementComputedWidth(this.slottedTable),this.isVerticalScroll=!1,this.isHorizontalScroll=!1,this.isScrolledToFirstCell=!0,this.isScrolledToLastCell=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,b)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkHorizontalScroll(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{e((()=>{this.checkHorizontalScroll(),this.checkVerticalScroll(),this.updateScrollState(),this.scaleColumnWidths()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onScroll(){this.updateScrollState()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows()}onInternalRowSelectChange(t){t.stopPropagation(),this.handleRowSelection(t.target)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const s=this.rowCheckboxes,i=s.filter((t=>0==t.hasAttribute("disabled"))),e=i.filter((t=>t.selected)),h=Boolean(s.length),o=e.length===i.length,l=0===e.length;t.selected=h&&o,t.setIndeterminate(h&&!o&&!l)}}handleSelectAllRows(){const t=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{s.hasAttribute("disabled")||(s.selected=t.selected,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const s=t.closest("tr");t.selected?s.setAttribute("data-selected-row",""):s.removeAttribute("data-selected-row")}nextColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect();let i=(t.find((t=>t.getBoundingClientRect().right>s.right))||t[t.length-1]).getBoundingClientRect().right-s.right;i>s.width&&(i=.9*s.width),this.tableContainer.scrollLeft+=Math.ceil(i),this.updateScrollState()}previousColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect(),i=(t.reverse().find((t=>t.getBoundingClientRect().left<s.left))||t[0]).getBoundingClientRect();let e=s.left-i.left;e>s.width&&(e=.9*s.width),this.tableContainer.scrollLeft+=-Math.ceil(e),this.updateScrollState()}updateScrollState(){const t=this.tableContainer.scrollLeft,s=this.tableContainer.scrollWidth-this.tableContainer.clientWidth;this.isScrolledToFirstCell=0===t,this.isScrolledToLastCell=s-t-this.tableScrollbarConstant<=0}checkHorizontalScroll(){const t=this.slottedTable.getBoundingClientRect().width,s=this.root.getBoundingClientRect().width;this.isHorizontalScroll=t>s}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}get tableScrollbarConstant(){const t=this.tableContainer;return t?t.offsetWidth-t.clientWidth:0}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t);const s=this.calculateColumnWidths(this.tableColumns);this.tableWidth=this.getElementComputedWidth(this.slottedTable),s.slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}scaleColumnWidths(){if(!this.columnResizeState&&this.resizableColumns&&!this.isHorizontalScroll){const t=this.calculateColumnWidths(this.tableColumns),s=this.tableWidth,i=this.getElementComputedWidth(this.slottedTable);t.map((t=>Object.assign(Object.assign({},t),{width:this.calcScaledColWidth(t.width,s,i)}))).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.tableWidth=i,this.setResizableColumnsStyles()}}calcScaledColWidth(t,s,i){const e=Math.round(t/s*i);return Math.max(e,1)}updateResizeState(t){if(this.columnResizeState){const s=this.columnResizeState.resizableColumn.dataset.columnName,i=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),e=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===s?Object.assign(Object.assign({},t),{width:i}):t));this.columnsWidths[s]=e.find((t=>t.name===s)).width,this.setResizableColumnsStyles(),this.tableWidth=this.getElementComputedWidth(this.slottedTable)}else this.columnResizeHover=!1,r("th",t,(s=>{this.tableColumns.length-1!==s.cellIndex&&this.isInResizeZone(t,s)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){r("th",t,(s=>{this.isInResizeZone(t,s)&&(this.columnResizeState={resizableColumn:s,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:this.getElementComputedWidth(s)})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,s){return s.getBoundingClientRect().right-t.clientX<3}getElementComputedWidth(t){return t.clientWidth-parseInt(window.getComputedStyle(t).paddingLeft)-parseInt(window.getComputedStyle(t).paddingRight)}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:this.getElementComputedWidth(t)})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let s="";Object.keys(this.columnsWidths).forEach((t=>{s+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=s}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return h(o,{"gs-table-id":this.tableId,"gs-v-scroll":this.isVerticalScroll,"gs-h-scroll":this.isHorizontalScroll,"gs-obj-table":this.objectTable,"gs-compact":this.compact},h("div",{class:"gux-table"},h("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},h("slot",{name:"data"})),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary"},h("button",{class:"gux-table-scroll-left",disabled:this.isScrolledToFirstCell,onClick:!this.isScrolledToFirstCell&&this.previousColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-left","screenreader-text":this.i18n("scrollLeft")}))),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary",style:{marginRight:`${this.tableScrollbarConstant}px`}},h("button",{class:"gux-table-scroll-right",disabled:this.isScrolledToLastCell,style:{marginRight:`${this.tableScrollbarConstant}px`},onClick:!this.isScrolledToLastCell&&this.nextColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-right","screenreader-text":this.i18n("scrollRight")}))),this.isTableEmpty&&h("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return l(this)}};u.style=":host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-scroll-left,:host .gux-table .gux-table-scroll-right{position:absolute;top:0;z-index:1;display:flex;align-items:center;justify-content:center;width:24px;min-width:0;height:40px;padding:0;color:#2e394c;cursor:pointer;border-radius:4px}:host .gux-table .gux-table-scroll-left gux-icon,:host .gux-table .gux-table-scroll-right gux-icon{width:8px;height:8px}:host .gux-table .gux-table-scroll-left{border-top-left-radius:0;border-bottom-left-radius:0}:host .gux-table .gux-table-scroll-right{right:0;border-top-right-radius:0;border-bottom-right-radius:0}:host .gux-table .gux-table-container{width:100%;max-height:100%;overflow-x:hidden;scrollbar-color:rgba(32, 41, 55, 0.24) #fdfdfd;scrollbar-width:thin}:host .gux-table .gux-table-container::-webkit-scrollbar{width:4px}:host .gux-table .gux-table-container::-webkit-scrollbar-track{background:#fdfdfd}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb{background:rgba(32, 41, 55, 0.24)}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb:hover{background:rgba(32, 41, 55, 0.48)}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:150px;color:#596373;background:#fdfdfd;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}";export{u as gux_table_beta}
1
+ import{r as t,c as s,f as i,d as e,h,H as o,g as l}from"./p-9031eb6a.js";import{b as a}from"./p-2b58afeb.js";import{w as r}from"./p-76ff3e75.js";import{r as n}from"./p-cbcbd1bb.js";import{t as c}from"./p-93d8e3c7.js";import{t as b}from"./p-e310debb.js";import"./p-8a133b9b.js";const u=class{constructor(e){t(this,e),this.guxselectionchanged=s(this,"guxselectionchanged",7),this.guxsortchanged=s(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>i(this))),this.tableId=n("gux-table"),this.columnsWidths={},this.tableWidth=this.getElementComputedWidth(this.slottedTable),this.isVerticalScroll=!1,this.isHorizontalScroll=!1,this.isScrolledToFirstCell=!0,this.isScrolledToLastCell=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1,this.emptyMessage=void 0,this.resizableColumns=void 0}async componentWillLoad(){c(this.root),this.i18n=await a(this.root,b)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSelectableRows(),this.checkHorizontalScroll(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{e((()=>{this.checkHorizontalScroll(),this.checkVerticalScroll(),this.updateScrollState(),this.scaleColumnWidths()}))}))),this.resizeObserver&&(this.resizeObserver.observe(this.tableContainer),this.resizeObserver.observe(this.slottedTable)),this.slotObserver.observe(this.slottedTable,{subtree:!0,childList:!0})}disconnectedCallback(){this.resizeObserver&&(this.resizeObserver.unobserve(this.tableContainer),this.resizeObserver.unobserve(this.slottedTable)),this.resizableColumns&&document.getElementById(`${this.tableId}-resizable-styles`).remove()}onScroll(){this.updateScrollState()}onInternalAllRowSelectChange(t){t.stopPropagation(),this.handleSelectAllRows()}onInternalRowSelectChange(t){t.stopPropagation(),this.handleRowSelection(t.target)}onMouseMove(t){this.resizableColumns&&this.updateResizeState(t)}onMouseDown(t){this.resizableColumns&&this.maybeStartResizing(t)}onMouseUp(){this.resizableColumns&&this.stopResizing()}get tableContainer(){return this.root.shadowRoot.querySelector(".gux-table-container")}get slottedTable(){return this.root.querySelector('table[slot="data"]')}get tableRows(){return Array.from(this.slottedTable.querySelectorAll("tbody tr"))}get tableColumns(){return Array.from(this.slottedTable.querySelectorAll("thead th"))}get rowCheckboxes(){return Array.from(this.slottedTable.querySelectorAll("tbody tr td gux-row-select"))}get selectAllCheckbox(){return this.slottedTable.querySelector("thead tr th gux-all-row-select")}async getSelected(){return this.getSelectedInternal()}getSelectedInternal(){return{selectedRowIds:Array.from(this.rowCheckboxes).filter((t=>t.selected)).map((t=>t.closest("tr").getAttribute("data-row-id")))}}prepareSelectableRows(){this.rowCheckboxes.forEach((t=>{this.updateRowSelection(t)})),this.updateSelectAllBoxState()}updateSelectAllBoxState(){const t=this.selectAllCheckbox;if(t){const s=this.rowCheckboxes,i=s.filter((t=>0==t.hasAttribute("disabled"))),e=i.filter((t=>t.selected)),h=Boolean(s.length),o=e.length===i.length,l=0===e.length;t.selected=h&&o,t.setIndeterminate(h&&!o&&!l)}}handleSelectAllRows(){const t=this.selectAllCheckbox;this.rowCheckboxes.forEach((s=>{s.hasAttribute("disabled")||(s.selected=t.selected,this.updateRowSelection(s))})),this.emitSelectionEvent()}handleRowSelection(t){this.updateRowSelection(t),this.updateSelectAllBoxState(),this.emitSelectionEvent()}emitSelectionEvent(){this.guxselectionchanged.emit(this.getSelectedInternal())}updateRowSelection(t){const s=t.closest("tr");t.selected?s.setAttribute("data-selected-row",""):s.removeAttribute("data-selected-row")}nextColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect();let i=(t.find((t=>t.getBoundingClientRect().right>s.right))||t[t.length-1]).getBoundingClientRect().right-s.right;i>s.width&&(i=.9*s.width),this.tableContainer.scrollLeft+=Math.ceil(i),this.updateScrollState()}previousColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect(),i=(t.reverse().find((t=>t.getBoundingClientRect().left<s.left))||t[0]).getBoundingClientRect();let e=s.left-i.left;e>s.width&&(e=.9*s.width),this.tableContainer.scrollLeft+=-Math.ceil(e),this.updateScrollState()}updateScrollState(){const t=this.tableContainer.scrollLeft,s=this.tableContainer.scrollWidth-this.tableContainer.clientWidth;this.isScrolledToFirstCell=0===t,this.isScrolledToLastCell=s-t-this.tableScrollbarConstant<=0}checkHorizontalScroll(){const t=this.slottedTable.getBoundingClientRect().width,s=this.root.getBoundingClientRect().width;this.isHorizontalScroll=t>s}checkVerticalScroll(){const t=this.tableContainer;this.isVerticalScroll=t.scrollHeight>t.clientHeight}get tableScrollbarConstant(){const t=this.tableContainer;return t?t.offsetWidth-t.clientWidth:0}prepareResizableColumns(){const t=document.createElement("style");t.id=`${this.tableId}-resizable-styles`,document.querySelector("head").appendChild(t);const s=this.calculateColumnWidths(this.tableColumns);this.tableWidth=this.getElementComputedWidth(this.slottedTable),s.slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.setResizableColumnsStyles()}scaleColumnWidths(){if(!this.columnResizeState&&this.resizableColumns&&!this.isHorizontalScroll){const t=this.calculateColumnWidths(this.tableColumns),s=this.tableWidth,i=this.getElementComputedWidth(this.slottedTable);t.map((t=>Object.assign(Object.assign({},t),{width:this.calcScaledColWidth(t.width,s,i)}))).slice(0,-1).forEach((t=>this.columnsWidths[t.name]=t.width)),this.tableWidth=i,this.setResizableColumnsStyles()}}calcScaledColWidth(t,s,i){const e=Math.round(t/s*i);return Math.max(e,1)}updateResizeState(t){if(this.columnResizeState){const s=this.columnResizeState.resizableColumn.dataset.columnName,i=Math.max(this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX),1),e=this.calculateColumnWidths(this.tableColumns).map((t=>t.name===s?Object.assign(Object.assign({},t),{width:i}):t));this.columnsWidths[s]=e.find((t=>t.name===s)).width,this.setResizableColumnsStyles(),this.tableWidth=this.getElementComputedWidth(this.slottedTable)}else this.columnResizeHover=!1,r("th",t,(s=>{this.tableColumns.length-1!==s.cellIndex&&this.isInResizeZone(t,s)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){r("th",t,(s=>{this.isInResizeZone(t,s)&&(this.columnResizeState={resizableColumn:s,columnResizeMouseStartX:t.pageX,resizableColumnInitialWidth:this.getElementComputedWidth(s)})}))}stopResizing(){this.columnResizeState&&(this.columnResizeState=null)}isInResizeZone(t,s){return s.getBoundingClientRect().right-t.clientX<3}getElementComputedWidth(t){return t.clientWidth-parseInt(window.getComputedStyle(t).paddingLeft)-parseInt(window.getComputedStyle(t).paddingRight)}calculateColumnWidths(t){return t.map((t=>({name:t.dataset.columnName,width:this.getElementComputedWidth(t)})))}setResizableColumnsStyles(){const t=document.getElementById(`${this.tableId}-resizable-styles`);let s="";Object.keys(this.columnsWidths).forEach((t=>{s+=`[gs-table-id=${this.tableId}] th[data-column-name="${t}"]{\n width:${String(this.columnsWidths[t])}px;\n min-width:${String(this.columnsWidths[t])}px;\n }`})),t.innerHTML=s}get isTableEmpty(){return!this.root.children[0]||this.tableRows.length<1}get tableContainerClasses(){return{"gux-table-container":!0,"gux-column-resizing":Boolean(this.columnResizeState),"gux-column-resizing-hover":this.columnResizeHover}}render(){return h(o,{"gs-table-id":this.tableId,"gs-v-scroll":this.isVerticalScroll,"gs-h-scroll":this.isHorizontalScroll,"gs-obj-table":this.objectTable,"gs-compact":this.compact},h("div",{class:"gux-table"},h("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},h("slot",{name:"data"})),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary"},h("button",{class:"gux-table-scroll-left",disabled:this.isScrolledToFirstCell,onClick:!this.isScrolledToFirstCell&&this.previousColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-left","screenreader-text":this.i18n("scrollLeft")}))),this.isHorizontalScroll&&h("gux-button-slot-beta",{accent:"secondary",style:{marginRight:`${this.tableScrollbarConstant}px`}},h("button",{class:"gux-table-scroll-right",disabled:this.isScrolledToLastCell,style:{marginRight:`${this.tableScrollbarConstant}px`},onClick:!this.isScrolledToLastCell&&this.nextColumn.bind(this)},h("gux-icon",{"icon-name":"chevron-right","screenreader-text":this.i18n("scrollRight")}))),this.isTableEmpty&&h("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return l(this)}};u.style=":host{display:block;isolation:isolate}:host .gux-table{position:relative;height:inherit}:host .gux-table .gux-table-scroll-left,:host .gux-table .gux-table-scroll-right{position:absolute;top:0;z-index:1;display:flex;align-items:center;justify-content:center;width:24px;min-width:0;height:40px;padding:0;color:#2e394c;cursor:pointer;border-radius:4px}:host .gux-table .gux-table-scroll-left gux-icon,:host .gux-table .gux-table-scroll-right gux-icon{width:8px;height:8px}:host .gux-table .gux-table-scroll-left{border-top-left-radius:0;border-bottom-left-radius:0}:host .gux-table .gux-table-scroll-right{right:0;border-top-right-radius:0;border-bottom-right-radius:0}:host .gux-table .gux-table-container{width:100%;max-height:100%;overflow-x:hidden;scrollbar-color:rgba(32, 41, 55, 0.24) #fdfdfd;scrollbar-width:thin}:host .gux-table .gux-table-container::-webkit-scrollbar{width:4px}:host .gux-table .gux-table-container::-webkit-scrollbar-track{background:#fdfdfd}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb{background:rgba(32, 41, 55, 0.24)}:host .gux-table .gux-table-container::-webkit-scrollbar-thumb:hover{background:rgba(32, 41, 55, 0.48)}:host .gux-table .gux-table-container.gux-column-resizing-hover,:host .gux-table .gux-table-container.gux-column-resizing{cursor:col-resize}:host .gux-empty-table{display:flex;align-items:center;justify-content:center;height:150px;color:#596373;background:#fdfdfd;font-family:Roboto, sans-serif;font-weight:400;font-weight:300;font-size:18px;line-height:24px}";export{u as gux_table_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,g as s}from"./p-9031eb6a.js";import{t as e}from"./p-ffb1bb70.js";import{V as h}from"./p-5cacdfc9.js";import{l as a}from"./p-45fec011.js";const o="category",n=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"line",interpolate:"linear",point:!1},config:{axis:{ticks:!1,titlePadding:8},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:o,type:"nominal",scale:{range:h},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},this.chartData=void 0,this.xTickLabelSlant=void 0,this.includeLegend=void 0,this.legendPosition="right",this.includeDataPointMarkers=void 0,this.xFieldName=void 0,this.xAxisTitle=void 0,this.yFieldName=void 0,this.yAxisTitle=void 0,this.legendTitle=void 0,this.colorFieldName=void 0,this.strokeDash=void 0,this.interpolation=void 0,this.embedOptions=void 0}parseData(){this.xFieldName&&this.yFieldName||a("gux-chart-line","[gux-chart-line] requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,s=this.xAxisTitle,e=this.yFieldName,h=this.yAxisTitle,n=this.legendTitle,r=this.colorFieldName||o,l=this.interpolation,c=this.strokeDash,d=this.includeDataPointMarkers;i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.field=e),h&&(this.baseChartSpec.encoding.y.title=h),r&&(this.baseChartSpec.encoding.color.field=r),n&&(this.baseChartSpec.encoding.color.title=n),c&&(this.baseChartSpec.encoding.strokeDash={field:r,type:"nominal"}),l&&(this.baseChartSpec.mark.interpolate=l),d&&(this.baseChartSpec.mark.point=d);const g=Object.assign(this.baseChartSpec,t);this.visualizationSpec=g}componentWillLoad(){e(this.root),this.parseData()}render(){return i("gux-visualization-beta",{visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_line_beta}
1
+ import{r as t,h as i,g as s}from"./p-9031eb6a.js";import{t as e}from"./p-93d8e3c7.js";import{V as h}from"./p-5cacdfc9.js";import{l as a}from"./p-45fec011.js";const o="category",n=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",mark:{type:"line",interpolate:"linear",point:!1},config:{axis:{ticks:!1,titlePadding:8},axisX:{labelAngle:0},legend:{symbolType:"circle"}},encoding:{x:{type:"nominal"},y:{type:"quantitative"},color:{field:o,type:"nominal",scale:{range:h},legend:null},tooltip:{aggregate:"count",type:"quantitative"}}},this.chartData=void 0,this.xTickLabelSlant=void 0,this.includeLegend=void 0,this.legendPosition="right",this.includeDataPointMarkers=void 0,this.xFieldName=void 0,this.xAxisTitle=void 0,this.yFieldName=void 0,this.yAxisTitle=void 0,this.legendTitle=void 0,this.colorFieldName=void 0,this.strokeDash=void 0,this.interpolation=void 0,this.embedOptions=void 0}parseData(){this.xFieldName&&this.yFieldName||a("gux-chart-line","[gux-chart-line] requires x-field-name and y-field-name");let t={};this.chartData&&(t={data:this.chartData}),this.xTickLabelSlant&&(this.baseChartSpec.config.axisX.labelAngle=45),this.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const i=this.xFieldName,s=this.xAxisTitle,e=this.yFieldName,h=this.yAxisTitle,n=this.legendTitle,r=this.colorFieldName||o,l=this.interpolation,c=this.strokeDash,d=this.includeDataPointMarkers;i&&(this.baseChartSpec.encoding.x.field=i),s&&(this.baseChartSpec.encoding.x.title=s),e&&(this.baseChartSpec.encoding.y.field=e),h&&(this.baseChartSpec.encoding.y.title=h),r&&(this.baseChartSpec.encoding.color.field=r),n&&(this.baseChartSpec.encoding.color.title=n),c&&(this.baseChartSpec.encoding.strokeDash={field:r,type:"nominal"}),l&&(this.baseChartSpec.mark.interpolate=l),d&&(this.baseChartSpec.mark.point=d);const g=Object.assign(this.baseChartSpec,t);this.visualizationSpec=g}componentWillLoad(){e(this.root),this.parseData()}render(){return i("gux-visualization-beta",{visualizationSpec:this.visualizationSpec})}get root(){return s(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_line_beta}
@@ -1 +1 @@
1
- import{r as o,h as i,g as t}from"./p-9031eb6a.js";import{t as e}from"./p-ffb1bb70.js";import{b as c}from"./p-2b58afeb.js";import"./p-8a133b9b.js";const p={clickToCopy:"Click to Copy",enterToCopy:"Press Enter to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Error. Please Try Again."},r=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}onFocus(){this.copyButton.matches(":focus-visible")&&(this.tooltipContent="enterToCopy")}resetTooltip(){this.tooltipContent="clickToCopy"}onCopyToClipboard(){navigator.clipboard.writeText(this.root.innerText).then((()=>{this.tooltipContent="copySuccess"})).catch((()=>{this.tooltipContent="copyFailure"}))}getIconName(o){switch(o){case"copyFailure":return"badge-x";case"copySuccess":return"badge-check"}}renderTooltipIcon(){const o=this.getIconName(this.tooltipContent);if(o)return i("gux-icon",{"icon-name":o,decorative:!0})}renderTooltip(){return i("gux-tooltip",{placement:"bottom-end"},i("div",{class:"gux-tooltip-content"},this.renderTooltipIcon(),i("span",null,this.i18n(this.tooltipContent))))}async componentWillLoad(){e(this.root),this.i18n=await c(this.root,p)}render(){return i("button",{class:"gux-copy-to-clipboard-wrapper",ref:o=>this.copyButton=o,onClick:this.onCopyToClipboard.bind(this)},i("div",{class:"gux-copy-content"},i("slot",{name:"content"}),i("gux-icon",{"icon-name":"copy",decorative:!0})),this.renderTooltip())}get root(){return t(this)}};r.style="button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;align-items:inherit;cursor:pointer}.gux-copy-to-clipboard-wrapper .gux-copy-content ::slotted(*){padding:0 2px;margin-right:4px}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover ::slotted(*){background-color:#deeaff;border-radius:4px}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover gux-icon[icon-name='copy']{visibility:visible}.gux-copy-to-clipboard-wrapper .gux-copy-content gux-icon[icon-name='copy']{width:16px;height:16px;padding:2px;visibility:hidden;background-color:#deeaff;border-radius:4px}.gux-copy-to-clipboard-wrapper:focus-visible{outline:none}.gux-copy-to-clipboard-wrapper:focus-visible ::slotted(*){background-color:#deeaff;border-radius:4px}.gux-copy-to-clipboard-wrapper:focus-visible gux-icon[icon-name='copy']{visibility:visible}.gux-copy-to-clipboard-wrapper gux-tooltip{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper gux-tooltip .gux-tooltip-content>*{vertical-align:middle}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon{width:16px;height:16px;padding-right:8px}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name='badge-check']{color:#3c8527}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name='badge-x']{color:#ea0b0b}.focus-and-hover-copy-content ::slotted(*){background-color:#deeaff;border-radius:4px}.focus-and-hover-copy-content gux-icon[icon-name='copy']{visibility:visible}";export{r as gux_copy_to_clipboard_beta}
1
+ import{r as o,h as i,g as t}from"./p-9031eb6a.js";import{t as e}from"./p-93d8e3c7.js";import{b as c}from"./p-2b58afeb.js";import"./p-8a133b9b.js";const p={clickToCopy:"Click to Copy",enterToCopy:"Press Enter to Copy",copySuccess:"Copied to Clipboard",copyFailure:"Error. Please Try Again."},r=class{constructor(i){o(this,i),this.tooltipContent="clickToCopy"}onMouseleave(){this.resetTooltip()}onFocusout(){this.resetTooltip()}onFocus(){this.copyButton.matches(":focus-visible")&&(this.tooltipContent="enterToCopy")}resetTooltip(){this.tooltipContent="clickToCopy"}onCopyToClipboard(){navigator.clipboard.writeText(this.root.innerText).then((()=>{this.tooltipContent="copySuccess"})).catch((()=>{this.tooltipContent="copyFailure"}))}getIconName(o){switch(o){case"copyFailure":return"badge-x";case"copySuccess":return"badge-check"}}renderTooltipIcon(){const o=this.getIconName(this.tooltipContent);if(o)return i("gux-icon",{"icon-name":o,decorative:!0})}renderTooltip(){return i("gux-tooltip",{placement:"bottom-end"},i("div",{class:"gux-tooltip-content"},this.renderTooltipIcon(),i("span",null,this.i18n(this.tooltipContent))))}async componentWillLoad(){e(this.root),this.i18n=await c(this.root,p)}render(){return i("button",{class:"gux-copy-to-clipboard-wrapper",ref:o=>this.copyButton=o,onClick:this.onCopyToClipboard.bind(this)},i("div",{class:"gux-copy-content"},i("slot",{name:"content"}),i("gux-icon",{"icon-name":"copy",decorative:!0})),this.renderTooltip())}get root(){return t(this)}};r.style="button{all:unset}.gux-copy-to-clipboard-wrapper{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper .gux-copy-content{display:inherit;align-items:inherit;cursor:pointer}.gux-copy-to-clipboard-wrapper .gux-copy-content ::slotted(*){padding:0 2px;margin-right:4px}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover ::slotted(*){background-color:#deeaff;border-radius:4px}.gux-copy-to-clipboard-wrapper .gux-copy-content:hover gux-icon[icon-name='copy']{visibility:visible}.gux-copy-to-clipboard-wrapper .gux-copy-content gux-icon[icon-name='copy']{width:16px;height:16px;padding:2px;visibility:hidden;background-color:#deeaff;border-radius:4px}.gux-copy-to-clipboard-wrapper:focus-visible{outline:none}.gux-copy-to-clipboard-wrapper:focus-visible ::slotted(*){background-color:#deeaff;border-radius:4px}.gux-copy-to-clipboard-wrapper:focus-visible gux-icon[icon-name='copy']{visibility:visible}.gux-copy-to-clipboard-wrapper gux-tooltip{display:inline-flex;align-items:center}.gux-copy-to-clipboard-wrapper gux-tooltip .gux-tooltip-content>*{vertical-align:middle}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon{width:16px;height:16px;padding-right:8px}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name='badge-check']{color:#3c8527}.gux-copy-to-clipboard-wrapper gux-tooltip gux-icon[icon-name='badge-x']{color:#ea0b0b}.focus-and-hover-copy-content ::slotted(*){background-color:#deeaff;border-radius:4px}.focus-and-hover-copy-content gux-icon[icon-name='copy']{visibility:visible}";export{r as gux_copy_to_clipboard_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,g as e}from"./p-9031eb6a.js";import{t as s}from"./p-ffb1bb70.js";import{l as a}from"./p-45fec011.js";import{V as h}from"./p-5cacdfc9.js";const o="category",r="value",n=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:o,type:"nominal",scale:{range:h},legend:null}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:r,type:"quantitative"}}}],view:{stroke:null}},this.chartData=void 0,this.includeLegend=void 0,this.legendPosition="right",this.legendTitle=void 0,this.colorFieldName=void 0,this.outerRadius=void 0,this.innerRadius=void 0,this.labelRadius=void 0,this.labelField=void 0,this.gauge=void 0,this.centerText=void 0,this.centerSubText=void 0,this.showTooltip=!0,this.tooltipOptions=void 0,this.legendX=void 0,this.legendY=void 0,this.legendFontSize=void 0,this.legendSymbolSize=void 0,this.embedOptions=void 0}parseData(){this.outerRadius||this.innerRadius||a("gux-chart-donut","[gux-chart-donut] requires at least one of outer-radius or inner-radius");let t={};this.chartData&&(t={data:this.chartData}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition),this.includeLegend?(this.baseChartSpec.encoding.color.legend={},(this.legendX||this.legendY)&&(this.baseChartSpec.config.legend.orient="none",this.legendX&&(this.baseChartSpec.encoding.color.legend.legendX=this.legendX),this.legendY&&(this.baseChartSpec.encoding.color.legend.legendY=this.legendY)),this.legendFontSize&&(this.baseChartSpec.encoding.color.legend.labelFontSize=this.legendFontSize),this.legendSymbolSize&&(this.baseChartSpec.encoding.color.legend.symbolSize=this.legendSymbolSize)):this.baseChartSpec.encoding.color.legend=null;const i=this.colorFieldName||o;i&&(this.baseChartSpec.encoding.color.field=i);this.baseChartSpec.encoding.color.title=this.legendTitle||"";let e=this.outerRadius,s=this.innerRadius;e||(e=s+32),s||(s=e-32);let h=1;this.gauge?(this.baseChartSpec.layer=[{data:{values:[{progress:"default",value:100}]},mark:{type:"arc",innerRadius:s},encoding:{theta:{field:"value",type:"quantitative"},color:{value:"#E4E9F0"},tooltip:null}},{mark:{type:"arc",outerRadius:e,innerRadius:s,padAngle:.01}},{mark:{type:"arc",innerRadius:s,padAngle:.01}}],h=2):this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:e,innerRadius:s}},{mark:{type:"arc",innerRadius:s,stroke:"#fff"}}];const n=this.centerText;n&&this.baseChartSpec.layer.push({data:{values:[{centerText:n,value:0}]},mark:{align:"center",type:"text",baseline:"middle"},encoding:{color:{value:"#4C5054"},text:{field:"centerText"},size:{value:{expr:"height * 0.09"}},tooltip:null}});const l=this.centerSubText;l&&this.baseChartSpec.layer.push({data:{values:[{centerSubText:l,value:0}]},mark:{align:"center",type:"text",baseline:"middle",y:{expr:"height/2 + 20"}},encoding:{color:{value:"#6A6D70"},text:{field:"centerSubText"},size:{value:{expr:"height * 0.06"}},tooltip:null}});const d=this.labelRadius,u=this.labelField||r;d&&this.baseChartSpec.layer.push({mark:{type:"text",radius:d},encoding:{text:{field:u,type:"quantitative"}}}),this.showTooltip&&(this.tooltipOptions?(this.baseChartSpec.layer[h].mark.tooltip={content:"data"},this.tooltipSpec={actions:!1,tooltip:this.tooltipOptions}):this.baseChartSpec.encoding.tooltip={field:u,aggregate:"count",type:"quantitative"});const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}componentWillLoad(){s(this.root),this.parseData()}render(){return i("gux-visualization-beta",{visualizationSpec:this.visualizationSpec,embedOptions:this.tooltipSpec})}get root(){return e(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_donut_beta}
1
+ import{r as t,h as i,g as e}from"./p-9031eb6a.js";import{t as s}from"./p-93d8e3c7.js";import{l as a}from"./p-45fec011.js";import{V as h}from"./p-5cacdfc9.js";const o="category",r="value",n=class{constructor(i){t(this,i),this.baseChartSpec={$schema:"https://vega.github.io/schema/vega-lite/v5.json",config:{legend:{symbolType:"circle"}},encoding:{theta:{field:"value",type:"quantitative",stack:!0},color:{field:o,type:"nominal",scale:{range:h},legend:null}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:r,type:"quantitative"}}}],view:{stroke:null}},this.chartData=void 0,this.includeLegend=void 0,this.legendPosition="right",this.legendTitle=void 0,this.colorFieldName=void 0,this.outerRadius=void 0,this.innerRadius=void 0,this.labelRadius=void 0,this.labelField=void 0,this.gauge=void 0,this.centerText=void 0,this.centerSubText=void 0,this.showTooltip=!0,this.tooltipOptions=void 0,this.legendX=void 0,this.legendY=void 0,this.legendFontSize=void 0,this.legendSymbolSize=void 0,this.embedOptions=void 0}parseData(){this.outerRadius||this.innerRadius||a("gux-chart-donut","[gux-chart-donut] requires at least one of outer-radius or inner-radius");let t={};this.chartData&&(t={data:this.chartData}),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition),this.includeLegend?(this.baseChartSpec.encoding.color.legend={},(this.legendX||this.legendY)&&(this.baseChartSpec.config.legend.orient="none",this.legendX&&(this.baseChartSpec.encoding.color.legend.legendX=this.legendX),this.legendY&&(this.baseChartSpec.encoding.color.legend.legendY=this.legendY)),this.legendFontSize&&(this.baseChartSpec.encoding.color.legend.labelFontSize=this.legendFontSize),this.legendSymbolSize&&(this.baseChartSpec.encoding.color.legend.symbolSize=this.legendSymbolSize)):this.baseChartSpec.encoding.color.legend=null;const i=this.colorFieldName||o;i&&(this.baseChartSpec.encoding.color.field=i);this.baseChartSpec.encoding.color.title=this.legendTitle||"";let e=this.outerRadius,s=this.innerRadius;e||(e=s+32),s||(s=e-32);let h=1;this.gauge?(this.baseChartSpec.layer=[{data:{values:[{progress:"default",value:100}]},mark:{type:"arc",innerRadius:s},encoding:{theta:{field:"value",type:"quantitative"},color:{value:"#E4E9F0"},tooltip:null}},{mark:{type:"arc",outerRadius:e,innerRadius:s,padAngle:.01}},{mark:{type:"arc",innerRadius:s,padAngle:.01}}],h=2):this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:e,innerRadius:s}},{mark:{type:"arc",innerRadius:s,stroke:"#fff"}}];const n=this.centerText;n&&this.baseChartSpec.layer.push({data:{values:[{centerText:n,value:0}]},mark:{align:"center",type:"text",baseline:"middle"},encoding:{color:{value:"#4C5054"},text:{field:"centerText"},size:{value:{expr:"height * 0.09"}},tooltip:null}});const l=this.centerSubText;l&&this.baseChartSpec.layer.push({data:{values:[{centerSubText:l,value:0}]},mark:{align:"center",type:"text",baseline:"middle",y:{expr:"height/2 + 20"}},encoding:{color:{value:"#6A6D70"},text:{field:"centerSubText"},size:{value:{expr:"height * 0.06"}},tooltip:null}});const d=this.labelRadius,u=this.labelField||r;d&&this.baseChartSpec.layer.push({mark:{type:"text",radius:d},encoding:{text:{field:u,type:"quantitative"}}}),this.showTooltip&&(this.tooltipOptions?(this.baseChartSpec.layer[h].mark.tooltip={content:"data"},this.tooltipSpec={actions:!1,tooltip:this.tooltipOptions}):this.baseChartSpec.encoding.tooltip={field:u,aggregate:"count",type:"quantitative"});const c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}componentWillLoad(){s(this.root),this.parseData()}render(){return i("gux-visualization-beta",{visualizationSpec:this.visualizationSpec,embedOptions:this.tooltipSpec})}get root(){return e(this)}static get watchers(){return{chartData:["parseData"]}}};n.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{n as gux_chart_donut_beta}
@@ -1 +1 @@
1
- import{r as t,h as i,H as o,g as s,f as e}from"./p-9031eb6a.js";import{a as n,c as r,o as a,f as l,s as h}from"./p-9149b16e.js";import{r as c}from"./p-cbcbd1bb.js";import{t as d}from"./p-ffb1bb70.js";import{f as u}from"./p-e526bdc0.js";import{b as p}from"./p-091f51f6.js";import{O as f}from"./p-09124c44.js";import{O as m}from"./p-8957ab46.js";const b=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.id=c("gux-tooltip"),this.for=void 0,this.placement="bottom-start",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition=n(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){r(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:[a(16),l(),h()]}).then((({x:t,y:i,placement:o})=>{Object.assign(this.root.style,{left:`${t}px`,top:`${i}px`}),this.root.setAttribute("data-placement",o)}))}show(){this.isShown=!0,p((()=>{this.runUpdatePosition()}))}hide(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}getForElement(){this.forElement=this.for?u(this.root,this.for):this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}connectedCallback(){this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.forElement.addEventListener("pointerenter",this.pointerenterHandler),this.forElement.addEventListener("pointerleave",this.pointerleaveHandler),this.forElement.addEventListener("focusin",this.focusinHandler),this.forElement.addEventListener("focusout",this.focusoutHandler)):this.logForAttributeError()}componentWillLoad(){d(this.root)}disconnectedCallback(){var t,i,o,s,e;this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),null===(t=this.forElement)||void 0===t||t.removeAttribute("aria-describedby"),null===(i=this.forElement)||void 0===i||i.removeEventListener("pointerenter",this.pointerenterHandler),null===(o=this.forElement)||void 0===o||o.removeEventListener("pointerleave",this.pointerleaveHandler),null===(s=this.forElement)||void 0===s||s.removeEventListener("focusin",this.focusinHandler),null===(e=this.forElement)||void 0===e||e.removeEventListener("focusout",this.focusoutHandler)}render(){return i(o,{id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("div",{class:"gux-container"},i("slot",null)))}get root(){return s(this)}};function x(t){return t.reduce(((t,i)=>{if("SLOT"===i.nodeName){const o=i.assignedNodes();return t.concat(x(o))}return t.concat(i.textContent)}),[]).map((t=>t.trim())).join(" ")}b.style=":host{position:fixed;z-index:var(--gux-zindex-tooltip, 1);display:none;width:max-content;max-width:250px;overflow:hidden;opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:1s;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;padding:6px 12px;color:#2e394c;pointer-events:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";var v=function(t,i,o,s){var e,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,o,s);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(r=(n<3?e(r):n>3?e(i,o,r):e(i,o))||r);return n>3&&r&&Object.defineProperty(i,o,r),r};const g=class{constructor(i){t(this,i),this.maxLines=void 0}async setShowTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.showTooltip())}async setHideTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.hideTooltip())}onMutation(){e(this.root)}onResize(){e(this.root)}getTooltipContent(){return x(Array.from(this.root.childNodes))||""}needsTruncation(){const t=this.root.shadowRoot.querySelector(".gux-truncate-slot-container");return(null==t?void 0:t.scrollWidth)>(null==t?void 0:t.offsetWidth)||(null==t?void 0:t.scrollHeight)>(null==t?void 0:t.offsetHeight)}renderTooltip(){return this.needsTruncation()?i("gux-tooltip",{"aria-hidden":"true",ref:t=>this.tooltipElement=t},this.getTooltipContent()):null}render(){var t;return i("div",{class:{"gux-truncate-multi-line":Boolean(this.maxLines)}},i("span",{class:"gux-truncate-slot-container",style:{webkitLineClamp:null===(t=this.maxLines)||void 0===t?void 0:t.toString()}},i("slot",null)),this.renderTooltip())}get root(){return s(this)}};v([f({childList:!0,subtree:!0,characterData:!0})],g.prototype,"onMutation",null),v([m()],g.prototype,"onResize",null),g.style=":host{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:inherit}::slotted(*){display:inline}.gux-truncate-multi-line{white-space:normal}.gux-truncate-multi-line .gux-truncate-slot-container{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}gux-tooltip{font-weight:normal;line-height:normal;text-align:left;overflow-wrap:break-word;white-space:normal}.gux-truncate-slot-container>*{display:inline}.gux-truncate-slot-container{display:block;overflow:hidden;text-overflow:ellipsis}";export{b as gux_tooltip,g as gux_truncate_beta}
1
+ import{r as t,h as i,H as o,g as s,f as e}from"./p-9031eb6a.js";import{a as n,c as r,o as a,f as l,s as h}from"./p-9149b16e.js";import{r as c}from"./p-cbcbd1bb.js";import{t as d}from"./p-93d8e3c7.js";import{f as u}from"./p-e526bdc0.js";import{b as p}from"./p-091f51f6.js";import{O as f}from"./p-09124c44.js";import{O as m}from"./p-8957ab46.js";const b=class{constructor(i){t(this,i),this.pointerenterHandler=()=>this.show(),this.pointerleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.id=c("gux-tooltip"),this.for=void 0,this.placement="bottom-start",this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}runUpdatePosition(){this.cleanupUpdatePosition=n(this.forElement,this.root,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!1,ancestorResize:!0})}updatePosition(){r(this.forElement,this.root,{placement:this.placement,strategy:"fixed",middleware:[a(16),l(),h()]}).then((({x:t,y:i,placement:o})=>{Object.assign(this.root.style,{left:`${t}px`,top:`${i}px`}),this.root.setAttribute("data-placement",o)}))}show(){this.isShown=!0,p((()=>{this.runUpdatePosition()}))}hide(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),this.isShown=!1}getForElement(){this.forElement=this.for?u(this.root,this.for):this.root.parentElement}logForAttributeError(){this.root.isConnected&&console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}connectedCallback(){this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.forElement.addEventListener("pointerenter",this.pointerenterHandler),this.forElement.addEventListener("pointerleave",this.pointerleaveHandler),this.forElement.addEventListener("focusin",this.focusinHandler),this.forElement.addEventListener("focusout",this.focusoutHandler)):this.logForAttributeError()}componentWillLoad(){d(this.root)}disconnectedCallback(){var t,i,o,s,e;this.cleanupUpdatePosition&&this.cleanupUpdatePosition(),null===(t=this.forElement)||void 0===t||t.removeAttribute("aria-describedby"),null===(i=this.forElement)||void 0===i||i.removeEventListener("pointerenter",this.pointerenterHandler),null===(o=this.forElement)||void 0===o||o.removeEventListener("pointerleave",this.pointerleaveHandler),null===(s=this.forElement)||void 0===s||s.removeEventListener("focusin",this.focusinHandler),null===(e=this.forElement)||void 0===e||e.removeEventListener("focusout",this.focusoutHandler)}render(){return i(o,{id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("div",{class:"gux-container"},i("slot",null)))}get root(){return s(this)}};function x(t){return t.reduce(((t,i)=>{if("SLOT"===i.nodeName){const o=i.assignedNodes();return t.concat(x(o))}return t.concat(i.textContent)}),[]).map((t=>t.trim())).join(" ")}b.style=":host{position:fixed;z-index:var(--gux-zindex-tooltip, 1);display:none;width:max-content;max-width:250px;overflow:hidden;opacity:0}:host(.gux-show){display:block;animation-name:fade-in;animation-duration:250ms;animation-delay:1s;animation-fill-mode:forwards}.gux-container{box-sizing:border-box;padding:6px 12px;color:#2e394c;pointer-events:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}";var v=function(t,i,o,s){var e,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,o,s);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(r=(n<3?e(r):n>3?e(i,o,r):e(i,o))||r);return n>3&&r&&Object.defineProperty(i,o,r),r};const g=class{constructor(i){t(this,i),this.maxLines=void 0}async setShowTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.showTooltip())}async setHideTooltip(){var t;await(null===(t=this.tooltipElement)||void 0===t?void 0:t.hideTooltip())}onMutation(){e(this.root)}onResize(){e(this.root)}getTooltipContent(){return x(Array.from(this.root.childNodes))||""}needsTruncation(){const t=this.root.shadowRoot.querySelector(".gux-truncate-slot-container");return(null==t?void 0:t.scrollWidth)>(null==t?void 0:t.offsetWidth)||(null==t?void 0:t.scrollHeight)>(null==t?void 0:t.offsetHeight)}renderTooltip(){return this.needsTruncation()?i("gux-tooltip",{"aria-hidden":"true",ref:t=>this.tooltipElement=t},this.getTooltipContent()):null}render(){var t;return i("div",{class:{"gux-truncate-multi-line":Boolean(this.maxLines)}},i("span",{class:"gux-truncate-slot-container",style:{webkitLineClamp:null===(t=this.maxLines)||void 0===t?void 0:t.toString()}},i("slot",null)),this.renderTooltip())}get root(){return s(this)}};v([f({childList:!0,subtree:!0,characterData:!0})],g.prototype,"onMutation",null),v([m()],g.prototype,"onResize",null),g.style=":host{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:inherit}::slotted(*){display:inline}.gux-truncate-multi-line{white-space:normal}.gux-truncate-multi-line .gux-truncate-slot-container{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}gux-tooltip{font-weight:normal;line-height:normal;text-align:left;overflow-wrap:break-word;white-space:normal}.gux-truncate-slot-container>*{display:inline}.gux-truncate-slot-container{display:block;overflow:hidden;text-overflow:ellipsis}";export{b as gux_tooltip,g as gux_truncate_beta}
@@ -1 +1 @@
1
- import{r as t,c as e,h as o,g as r}from"./p-9031eb6a.js";import{a as p,c as i,o as a,f as s,s as n,b as d}from"./p-9149b16e.js";import{O as l}from"./p-23975bfb.js";import{t as c}from"./p-ffb1bb70.js";import{g as h}from"./p-3e6097e5.js";import{f as x}from"./p-e526bdc0.js";const b=class{constructor(o){t(this,o),this.guxdismiss=e(this,"guxdismiss",7),this.for=void 0,this.position="bottom",this.displayDismissButton=void 0,this.closeOnClickOutside=!1,this.isOpen=!1}checkForClickOutside(t){const e=t.composedPath(),o=x(this.root,this.for),r=e.includes(o);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||r||this.dismiss()}get titleSlot(){return h(this.root,"title")}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=p(x(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=x(this.root,this.for);this.popupElement&&i(t,this.popupElement,{placement:this.position,middleware:[a(7),s(),n(),d({element:this.arrowElement,padding:16})]}).then((({x:t,y:e,middlewareData:o,placement:r})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${e}px`});const p={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]];if(o.arrow){const{x:t,y:e}=o.arrow;this.popupElement.setAttribute("data-placement",r),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[p]:"-6.5px",transform:"rotate(45deg)"})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){c(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}renderDismissButton(){if(this.displayDismissButton)return o("gux-dismiss-button",{onClick:this.dismiss.bind(this),position:"inherit"})}render(){return o("div",{ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},o("div",{ref:t=>this.arrowElement=t,class:"gux-arrow"}),o("div",{class:{"gux-popover-header":Boolean(this.titleSlot)}},o("slot",{name:"title"}),this.renderDismissButton()),o("div",{class:"gux-popover-content"},o("slot",null)))}get root(){return r(this)}};(function(t,e,o,r){var p,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var s=t.length-1;s>=0;s--)(p=t[s])&&(a=(i<3?p(a):i>3?p(e,o,a):p(e,o))||a);i>3&&a&&Object.defineProperty(e,o,a)})([l({triggerEvents:"mousedown"})],b.prototype,"checkForClickOutside",null),b.style=".gux-popover-wrapper{position:absolute;top:0;left:0;z-index:var(--gux-zindex-popover, 2);display:inline-block;padding:16px;color:#2e394c;background-color:#fdfdfd;border-radius:4px;box-shadow:0 3px 14px rgba(46, 57, 76, 0.22)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;width:10px;height:10px;background:inherit}.gux-popover-wrapper[data-placement='bottom'] .gux-arrow,.gux-popover-wrapper[data-placement='bottom-start'] .gux-arrow,.gux-popover-wrapper[data-placement='bottom-end'] .gux-arrow{border-top:1px solid #b4bccb;border-left:1px solid #b4bccb}.gux-popover-wrapper[data-placement='top'] .gux-arrow,.gux-popover-wrapper[data-placement='top-start'] .gux-arrow,.gux-popover-wrapper[data-placement='top-end'] .gux-arrow{border-right:1px solid #b4bccb;border-bottom:1px solid #b4bccb}.gux-popover-wrapper[data-placement='left'] .gux-arrow,.gux-popover-wrapper[data-placement='left-start'] .gux-arrow,.gux-popover-wrapper[data-placement='left-end'] .gux-arrow{border-top:1px solid #b4bccb;border-right:1px solid #b4bccb}.gux-popover-wrapper[data-placement='right'] .gux-arrow,.gux-popover-wrapper[data-placement='right-start'] .gux-arrow,.gux-popover-wrapper[data-placement='right-end'] .gux-arrow{border-bottom:1px solid #b4bccb;border-left:1px solid #b4bccb}.gux-popover-wrapper .gux-popover-header{font-size:12px;line-height:20px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700;display:flex;flex-direction:row;align-content:center;align-items:center;justify-content:space-between;padding-bottom:16px}.gux-popover-wrapper gux-dismiss-button{float:right}";export{b as gux_popover_beta}
1
+ import{r as t,c as e,h as o,g as r}from"./p-9031eb6a.js";import{a as p,c as i,o as a,f as s,s as n,b as d}from"./p-9149b16e.js";import{O as c}from"./p-23975bfb.js";import{t as l}from"./p-93d8e3c7.js";import{g as h}from"./p-3e6097e5.js";import{f as x}from"./p-e526bdc0.js";const g=class{constructor(o){t(this,o),this.guxdismiss=e(this,"guxdismiss",7),this.for=void 0,this.position="bottom",this.displayDismissButton=void 0,this.closeOnClickOutside=!1,this.isOpen=!1}checkForClickOutside(t){const e=t.composedPath(),o=x(this.root,this.for),r=e.includes(o);!this.closeOnClickOutside&&this.displayDismissButton||!this.isOpen||r||this.dismiss()}get titleSlot(){return h(this.root,"title")}runUpdatePosition(){this.root.isConnected?this.cleanupUpdatePosition=p(x(this.root,this.for),this.popupElement,(()=>this.updatePosition()),{ancestorScroll:!0,elementResize:!0,animationFrame:!0,ancestorResize:!0}):this.disconnectedCallback()}updatePosition(){const t=x(this.root,this.for);this.popupElement&&i(t,this.popupElement,{placement:this.position,middleware:[a(7),s(),n(),d({element:this.arrowElement,padding:16})]}).then((({x:t,y:e,middlewareData:o,placement:r})=>{Object.assign(this.popupElement.style,{left:`${t}px`,top:`${e}px`});const p={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]];if(o.arrow){const{x:t,y:e}=o.arrow;this.popupElement.setAttribute("data-placement",r),Object.assign(this.arrowElement.style,{left:null!=t?`${t}px`:"",top:null!=e?`${e}px`:"",right:"",bottom:"",[p]:"-6.5px",transform:"rotate(45deg)"})}}))}dismiss(){this.guxdismiss.emit().defaultPrevented||(this.isOpen=!1)}connectedCallback(){l(this.root,{variant:this.position})}componentDidLoad(){this.isOpen&&this.runUpdatePosition()}componentDidUpdate(){this.isOpen?this.runUpdatePosition():this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}disconnectedCallback(){this.cleanupUpdatePosition&&this.cleanupUpdatePosition()}renderDismissButton(){if(this.displayDismissButton)return o("gux-dismiss-button",{onClick:this.dismiss.bind(this),position:"inherit"})}render(){return o("div",{ref:t=>this.popupElement=t,class:{"gux-hidden":!this.isOpen,"gux-popover-wrapper":!0},"data-placement":!0},o("div",{ref:t=>this.arrowElement=t,class:"gux-arrow"}),o("div",{class:{"gux-popover-header":Boolean(this.titleSlot)}},o("slot",{name:"title"}),this.renderDismissButton()),o("div",{class:"gux-popover-content"},o("slot",null)))}get root(){return r(this)}};(function(t,e,o,r){var p,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var s=t.length-1;s>=0;s--)(p=t[s])&&(a=(i<3?p(a):i>3?p(e,o,a):p(e,o))||a);i>3&&a&&Object.defineProperty(e,o,a)})([c({triggerEvents:"mousedown"})],g.prototype,"checkForClickOutside",null),g.style=".gux-popover-wrapper{position:absolute;top:0;left:0;z-index:var(--gux-zindex-popover, 2);display:inline-block;padding:16px;color:#2e394c;background-color:#fdfdfd;border-radius:4px;box-shadow:0 3px 14px rgba(46, 57, 76, 0.22)}.gux-popover-wrapper.gux-hidden{display:none}.gux-popover-wrapper .gux-arrow{position:absolute;width:10px;height:10px;background:inherit}.gux-popover-wrapper[data-placement='bottom'] .gux-arrow,.gux-popover-wrapper[data-placement='bottom-start'] .gux-arrow,.gux-popover-wrapper[data-placement='bottom-end'] .gux-arrow{border-top:1px solid #b4bccb;border-left:1px solid #b4bccb}.gux-popover-wrapper[data-placement='top'] .gux-arrow,.gux-popover-wrapper[data-placement='top-start'] .gux-arrow,.gux-popover-wrapper[data-placement='top-end'] .gux-arrow{border-right:1px solid #b4bccb;border-bottom:1px solid #b4bccb}.gux-popover-wrapper[data-placement='left'] .gux-arrow,.gux-popover-wrapper[data-placement='left-start'] .gux-arrow,.gux-popover-wrapper[data-placement='left-end'] .gux-arrow{border-top:1px solid #b4bccb;border-right:1px solid #b4bccb}.gux-popover-wrapper[data-placement='right'] .gux-arrow,.gux-popover-wrapper[data-placement='right-start'] .gux-arrow,.gux-popover-wrapper[data-placement='right-end'] .gux-arrow{border-bottom:1px solid #b4bccb;border-left:1px solid #b4bccb}.gux-popover-wrapper .gux-popover-header{font-size:12px;line-height:20px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700;display:flex;flex-direction:row;align-content:center;align-items:center;justify-content:space-between;padding-bottom:16px}.gux-popover-wrapper gux-dismiss-button{float:right}";export{g as gux_popover_beta}
@@ -1 +1 @@
1
- import{r as t,d as i,h as e,H as n,g as o}from"./p-9031eb6a.js";import{O as s}from"./p-8957ab46.js";import{O as r}from"./p-09124c44.js";import{t as a}from"./p-ffb1bb70.js";import{g as l}from"./p-3e6097e5.js";function c(t,i){[].concat(t).forEach((t=>{null!=t&&(t.accent=i)}))}function h(t,...i){i.flat().filter((t=>null!==t&&!t.hasAttribute("icon-only"))).forEach((i=>i.iconOnly=t))}var u=function(t,i,e,n){var o,s=arguments.length,r=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(i,e,r):o(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const d=class{constructor(i){t(this,i),this.minimumSizes={full:0,iconOnly:0,condensed:0},this.displayedLayout="full",this.hasContextDivider=!1}onMutation(){this.hasContextDivider=this.needsContextDivider()}recordLayoutMinSize(){i((()=>{var t,i;const e=0|(null===(t=this.filterSlot)||void 0===t?void 0:t.clientWidth),n=0|(null===(i=this.actionsContainer)||void 0===i?void 0:i.clientWidth);this.minimumSizes[this.displayedLayout]=e+n+72}))}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get filterSlot(){return l(this.root,"search-and-filter")}get menuActionSlot(){return l(this.root,"menu-actions")}get permanentSlot(){return l(this.root,"permanent-actions")}get contextualSlot(){return l(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,i;if(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(i=this.permanentSlot)||void 0===i?void 0:i.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get menuActionsItems(){var t,i;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(i=this.menuActionSlot)||void 0===i?void 0:i.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,i;if(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(i=this.contextualSlot)||void 0===i?void 0:i.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get filterActions(){var t,i;if(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(i=this.filterSlot)||void 0===i?void 0:i.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",h(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(t){this.displayedLayout="iconOnly",h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.iconOnlySectionWidth=t}renderIconOnlyLayoutScaleUp(){var t,i;this.displayedLayout="iconOnly",c(this.permanentActions,"secondary"),c(this.primaryAction,"primary"),h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(i=this.root)||void 0===i||i.appendChild(this.primaryAction))}renderCondensedLayout(){var t,i;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(i=this.menuActionSlot)||void 0===i||i.appendChild(this.primaryAction)),h(!0,...this.allFilterContextual),h(!1,...this.permanentActions),h(!1,this.primaryAction),c(this.menuActionsItems,"ghost")}componentWillLoad(){a(this.root),this.hasContextDivider=this.needsContextDivider()}componentDidLoad(){this.recordLayoutMinSize(),this.checkResponsiveLayout(),c(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){i((()=>{var t;const i=0|(null===(t=this.actionsContainer)||void 0===t?void 0:t.clientWidth),e=this.root.clientWidth;e<=this.minimumSizes.full&&e>=this.minimumSizes.iconOnly?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown(i):"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():e<=this.minimumSizes.iconOnly?this.renderCondensedLayout():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return e(n,{role:"toolbar","aria-orientation":"horizontal"},e("div",{class:"search-filter-container"},e("slot",{name:"search-and-filter"})),e("div",{class:"section-spacing"}),e("div",{class:"gux-contextual-permanent-primary"},e("div",{class:{"gux-contextual-wrapper":this.hasContextDivider}},e("slot",{name:"contextual-actions"})),e("div",{class:"gux-permanent-menu-primary-wrapper"},e("slot",{name:"permanent-actions"}),e("gux-table-toolbar-menu-button",{"show-menu":this.renderMenu()},e("slot",{name:"menu-actions"})),e("slot",{name:"primary-action"}))))}get root(){return o(this)}};u([r({childList:!0,subtree:!0})],d.prototype,"onMutation",null),u([s()],d.prototype,"checkResponsiveLayout",null),d.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;max-height:48px;padding:0 8px 16px 8px;background-color:#fdfdfd;border-radius:4px}:host .search-filter-container{width:260px;min-width:260px}:host slot[name='search-and-filter']::slotted(*){display:flex;flex-direction:row;gap:4px;align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-width:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between}:host .gux-contextual-permanent-primary slot[name='permanent-actions']::slotted(*),:host .gux-contextual-permanent-primary slot[name='contextual-actions']::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-right:8px;border-right:1px solid #d7dce5}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;margin-left:8px}";export{d as gux_table_toolbar_beta}
1
+ import{r as t,d as i,h as e,H as n,g as o}from"./p-9031eb6a.js";import{O as s}from"./p-8957ab46.js";import{O as r}from"./p-09124c44.js";import{t as a}from"./p-93d8e3c7.js";import{g as l}from"./p-3e6097e5.js";function c(t,i){[].concat(t).forEach((t=>{null!=t&&(t.accent=i)}))}function h(t,...i){i.flat().filter((t=>null!==t&&!t.hasAttribute("icon-only"))).forEach((i=>i.iconOnly=t))}var u=function(t,i,e,n){var o,s=arguments.length,r=s<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,e):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(i,e,r):o(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const d=class{constructor(i){t(this,i),this.minimumSizes={full:0,iconOnly:0,condensed:0},this.displayedLayout="full",this.hasContextDivider=!1}onMutation(){this.hasContextDivider=this.needsContextDivider()}recordLayoutMinSize(){i((()=>{var t,i;const e=0|(null===(t=this.filterSlot)||void 0===t?void 0:t.clientWidth),n=0|(null===(i=this.actionsContainer)||void 0===i?void 0:i.clientWidth);this.minimumSizes[this.displayedLayout]=e+n+72}))}get actionsContainer(){return this.root.shadowRoot.querySelector(".gux-contextual-permanent-primary")}get filterSlot(){return l(this.root,"search-and-filter")}get menuActionSlot(){return l(this.root,"menu-actions")}get permanentSlot(){return l(this.root,"permanent-actions")}get contextualSlot(){return l(this.root,"contextual-actions")}get primaryAction(){var t;return null===(t=this.root)||void 0===t?void 0:t.querySelector("gux-table-toolbar-custom-action[slot]")}get permanentActions(){var t,i;if(null===(t=this.permanentSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(i=this.permanentSlot)||void 0===i?void 0:i.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get menuActionsItems(){var t,i;if(null===(t=this.menuActionSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(i=this.menuActionSlot)||void 0===i?void 0:i.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get contextualActions(){var t,i;if(null===(t=this.contextualSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(i=this.contextualSlot)||void 0===i?void 0:i.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get filterActions(){var t,i;if(null===(t=this.filterSlot)||void 0===t?void 0:t.hasChildNodes)return Array.from(null===(i=this.filterSlot)||void 0===i?void 0:i.querySelectorAll("gux-table-toolbar-action, gux-table-toolbar-custom-action"))}get allFilterContextual(){var t;return null===(t=this.filterActions)||void 0===t?void 0:t.concat(this.contextualActions)}needsContextDivider(){var t;return(null===(t=this.contextualActions)||void 0===t?void 0:t.length)&&this.contextualSlot!==this.root.lastElementChild}renderMenu(){var t;return Boolean((null===(t=this.menuActionsItems)||void 0===t?void 0:t.length)||"condensed"==this.displayedLayout)}renderFullLayout(){this.displayedLayout="full",h(!1,this.primaryAction,...this.allFilterContextual,...this.permanentActions)}renderIconOnlyLayoutScaleDown(t){this.displayedLayout="iconOnly",h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.iconOnlySectionWidth=t}renderIconOnlyLayoutScaleUp(){var t,i;this.displayedLayout="iconOnly",c(this.permanentActions,"secondary"),c(this.primaryAction,"primary"),h(!0,this.primaryAction,...this.allFilterContextual,...this.permanentActions),this.permanentActions&&(null===(t=this.root)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(i=this.root)||void 0===i||i.appendChild(this.primaryAction))}renderCondensedLayout(){var t,i;this.displayedLayout="condensed",this.permanentActions&&(null===(t=this.menuActionSlot)||void 0===t||t.appendChild(this.permanentSlot)),this.primaryAction&&(null===(i=this.menuActionSlot)||void 0===i||i.appendChild(this.primaryAction)),h(!0,...this.allFilterContextual),h(!1,...this.permanentActions),h(!1,this.primaryAction),c(this.menuActionsItems,"ghost")}componentWillLoad(){a(this.root),this.hasContextDivider=this.needsContextDivider()}componentDidLoad(){this.recordLayoutMinSize(),this.checkResponsiveLayout(),c(this.menuActionsItems,"ghost")}componentDidUpdate(){this.recordLayoutMinSize(),this.checkResponsiveLayout()}checkResponsiveLayout(){i((()=>{var t;const i=0|(null===(t=this.actionsContainer)||void 0===t?void 0:t.clientWidth),e=this.root.clientWidth;e<=this.minimumSizes.full&&e>=this.minimumSizes.iconOnly?"full"==this.displayedLayout?this.renderIconOnlyLayoutScaleDown(i):"condensed"==this.displayedLayout&&this.renderIconOnlyLayoutScaleUp():e<=this.minimumSizes.iconOnly?this.renderCondensedLayout():this.minimumSizes.iconOnly>this.minimumSizes.full?this.renderIconOnlyLayoutScaleUp():this.renderFullLayout()}))}render(){return e(n,{role:"toolbar","aria-orientation":"horizontal"},e("div",{class:"search-filter-container"},e("slot",{name:"search-and-filter"})),e("div",{class:"section-spacing"}),e("div",{class:"gux-contextual-permanent-primary"},e("div",{class:{"gux-contextual-wrapper":this.hasContextDivider}},e("slot",{name:"contextual-actions"})),e("div",{class:"gux-permanent-menu-primary-wrapper"},e("slot",{name:"permanent-actions"}),e("gux-table-toolbar-menu-button",{"show-menu":this.renderMenu()},e("slot",{name:"menu-actions"})),e("slot",{name:"primary-action"}))))}get root(){return o(this)}};u([r({childList:!0,subtree:!0})],d.prototype,"onMutation",null),u([s()],d.prototype,"checkResponsiveLayout",null),d.style=":host{display:flex;flex-direction:row;align-items:center;justify-content:space-between;width:100%;max-height:48px;padding:0 8px 16px 8px;background-color:#fdfdfd;border-radius:4px}:host .search-filter-container{width:260px;min-width:260px}:host slot[name='search-and-filter']::slotted(*){display:flex;flex-direction:row;gap:4px;align-content:flex-start;align-items:center}:host .section-spacing{display:flex;flex-direction:row;min-width:72px}:host .gux-contextual-permanent-primary{display:flex;flex-direction:row;justify-content:space-between}:host .gux-contextual-permanent-primary slot[name='permanent-actions']::slotted(*),:host .gux-contextual-permanent-primary slot[name='contextual-actions']::slotted(*){display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-content:flex-end;align-items:center}:host .gux-contextual-permanent-primary .gux-contextual-wrapper{padding-right:8px;border-right:1px solid #d7dce5}:host .gux-contextual-permanent-primary .gux-permanent-menu-primary-wrapper{display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;margin-left:8px}";export{d as gux_table_toolbar_beta}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,g as o}from"./p-9031eb6a.js";import{t as h}from"./p-ffb1bb70.js";const r=class{constructor(i){t(this,i),this.press=s(this,"press",7),this.text=void 0,this.value=void 0,this.strategy=void 0}handleClick(){this.onItemClicked()}handleKeyDown(t){"Enter"!==t.key&&" "!==t.key||this.onItemClicked()}render(){return i(e,{role:"listitem"},i("span",{class:"gux-list-item"},this.text&&i("gux-text-highlight",{class:"gux-text",text:this.text,strategy:this.strategy}),i("slot",null)))}onItemClicked(){this.emitPress()}emitPress(){this.press.emit(this.value)}};r.style=":host:focus-visible .gux-list-item,:host:active .gux-list-item,:host:hover:not([disabled]) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host(:focus-visible) .gux-list-item,:host(:active) .gux-list-item,:host(:hover:not([disabled])) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host([disabled]) .gux-list-item{pointer-events:none;cursor:default;opacity:0.5}.gux-list-item{display:flex;height:max-content;padding:0 16px;line-height:32px;word-wrap:break-word;cursor:pointer}.gux-list-item .gux-text{width:100%}";const n=["gux-list-item-legacy:not([disabled])","gux-action-item:not([disabled])"].join(","),a=class{constructor(i){t(this,i),this.changed=s(this,"changed",7),this.observer=new MutationObserver((()=>{this.performHighlight(this.highlight)})),this.value=void 0,this.highlight=void 0,this.selectedIndex=-1}emitChanged(t){this.changed.emit(t)}itemSelected(t){t.detail&&(this.value=t.detail)}valueHandler(t){this.emitChanged(t)}async setFocusOnFirstItem(){this.selectedIndex=0,this.updateTabIndexes()}async setFocusOnLastItem(){const t=this.getFilteredList();this.selectedIndex=t.length-1,this.updateTabIndexes()}async isLastItemSelected(){const t=this.getFilteredList();return this.selectedIndex===t.length-1}async isFirstItemSelected(){return this.selectedIndex<=0}componentWillLoad(){h(this.root)}componentDidLoad(){this.performHighlight(this.highlight),this.observer.observe(this.root,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer&&this.observer.disconnect()}render(){return this.performHighlight(this.highlight),this.updateTabIndexes(),i("div",{class:"gux-list-items-container",role:"list",tabindex:0,onKeyDown:t=>this.onKeyDown(t)},i("slot",null))}onKeyDown(t){if(!["ArrowUp","ArrowDown","End","Home"].includes(t.key))return;const s=this.getFilteredList();let i=-1;switch(t.key){case"ArrowUp":0!==this.selectedIndex?(t.preventDefault(),i=this.selectedIndex-1,t.stopPropagation()):this.isCommandPaletteList()||(t.preventDefault(),i=s.length-1);break;case"Home":this.selectedIndex&&(i=0);break;case"ArrowDown":this.selectedIndex!==s.length-1?(t.preventDefault(),i=this.selectedIndex+1,t.stopPropagation()):this.isCommandPaletteList()||(t.preventDefault(),i=0,t.stopPropagation());break;case"End":this.selectedIndex!==s.length-1&&(i=s.length-1)}-1!==i&&(this.selectedIndex=i)}isCommandPaletteList(){return Boolean(this.root.closest("gux-command-palette-legacy"))}updateTabIndexes(){const t=this.getFilteredList();t&&-1!==this.selectedIndex&&t.forEach(((t,s)=>{s!==this.selectedIndex?t.setAttribute("tabindex","-1"):(t.setAttribute("tabindex","0"),t.focus(),setTimeout((()=>{this.value=t.value})))}))}performHighlight(t){const s=this.root.querySelectorAll("gux-text-highlight");s&&s.forEach((s=>{s.highlight=t}))}getFilteredList(){const t=this.root.querySelector("slot");return t?t.assignedElements().filter((t=>t.matches(n))):Array.from(this.root.querySelectorAll(n))}get root(){return o(this)}static get watchers(){return{value:["valueHandler"]}}};a.style=".gux-list-items-container{padding:8px 0;margin:0;list-style:none;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{r as gux_list_item_legacy,a as gux_list_legacy}
1
+ import{r as t,c as s,h as i,H as e,g as o}from"./p-9031eb6a.js";import{t as h}from"./p-93d8e3c7.js";const r=class{constructor(i){t(this,i),this.press=s(this,"press",7),this.text=void 0,this.value=void 0,this.strategy=void 0}handleClick(){this.onItemClicked()}handleKeyDown(t){"Enter"!==t.key&&" "!==t.key||this.onItemClicked()}render(){return i(e,{role:"listitem"},i("span",{class:"gux-list-item"},this.text&&i("gux-text-highlight",{class:"gux-text",text:this.text,strategy:this.strategy}),i("slot",null)))}onItemClicked(){this.emitPress()}emitPress(){this.press.emit(this.value)}};r.style=":host:focus-visible .gux-list-item,:host:active .gux-list-item,:host:hover:not([disabled]) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host(:focus-visible) .gux-list-item,:host(:active) .gux-list-item,:host(:hover:not([disabled])) .gux-list-item{color:#fdfdfd;background:#2a60c8}:host([disabled]) .gux-list-item{pointer-events:none;cursor:default;opacity:0.5}.gux-list-item{display:flex;height:max-content;padding:0 16px;line-height:32px;word-wrap:break-word;cursor:pointer}.gux-list-item .gux-text{width:100%}";const n=["gux-list-item-legacy:not([disabled])","gux-action-item:not([disabled])"].join(","),a=class{constructor(i){t(this,i),this.changed=s(this,"changed",7),this.observer=new MutationObserver((()=>{this.performHighlight(this.highlight)})),this.value=void 0,this.highlight=void 0,this.selectedIndex=-1}emitChanged(t){this.changed.emit(t)}itemSelected(t){t.detail&&(this.value=t.detail)}valueHandler(t){this.emitChanged(t)}async setFocusOnFirstItem(){this.selectedIndex=0,this.updateTabIndexes()}async setFocusOnLastItem(){const t=this.getFilteredList();this.selectedIndex=t.length-1,this.updateTabIndexes()}async isLastItemSelected(){const t=this.getFilteredList();return this.selectedIndex===t.length-1}async isFirstItemSelected(){return this.selectedIndex<=0}componentWillLoad(){h(this.root)}componentDidLoad(){this.performHighlight(this.highlight),this.observer.observe(this.root,{childList:!0,subtree:!0})}disconnectedCallback(){this.observer&&this.observer.disconnect()}render(){return this.performHighlight(this.highlight),this.updateTabIndexes(),i("div",{class:"gux-list-items-container",role:"list",tabindex:0,onKeyDown:t=>this.onKeyDown(t)},i("slot",null))}onKeyDown(t){if(!["ArrowUp","ArrowDown","End","Home"].includes(t.key))return;const s=this.getFilteredList();let i=-1;switch(t.key){case"ArrowUp":0!==this.selectedIndex?(t.preventDefault(),i=this.selectedIndex-1,t.stopPropagation()):this.isCommandPaletteList()||(t.preventDefault(),i=s.length-1);break;case"Home":this.selectedIndex&&(i=0);break;case"ArrowDown":this.selectedIndex!==s.length-1?(t.preventDefault(),i=this.selectedIndex+1,t.stopPropagation()):this.isCommandPaletteList()||(t.preventDefault(),i=0,t.stopPropagation());break;case"End":this.selectedIndex!==s.length-1&&(i=s.length-1)}-1!==i&&(this.selectedIndex=i)}isCommandPaletteList(){return Boolean(this.root.closest("gux-command-palette-legacy"))}updateTabIndexes(){const t=this.getFilteredList();t&&-1!==this.selectedIndex&&t.forEach(((t,s)=>{s!==this.selectedIndex?t.setAttribute("tabindex","-1"):(t.setAttribute("tabindex","0"),t.focus(),setTimeout((()=>{this.value=t.value})))}))}performHighlight(t){const s=this.root.querySelectorAll("gux-text-highlight");s&&s.forEach((s=>{s.highlight=t}))}getFilteredList(){const t=this.root.querySelector("slot");return t?t.assignedElements().filter((t=>t.matches(n))):Array.from(this.root.querySelectorAll(n))}get root(){return o(this)}static get watchers(){return{value:["valueHandler"]}}};a.style=".gux-list-items-container{padding:8px 0;margin:0;list-style:none;background:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{r as gux_list_item_legacy,a as gux_list_legacy}
@@ -1 +1 @@
1
- import{r as e,h as o,g as l}from"./p-9031eb6a.js";import{t}from"./p-ffb1bb70.js";import{b as r}from"./p-2b58afeb.js";import"./p-8a133b9b.js";const a={neutral:"badge with label: {label}, color: neutral","neutral-bold":"badge with label: {label}, color: neutral bold",green:"badge with label: {label}, color: green","green-bold":"badge with label: {label}, color: green bold",yellow:"badge with label: {label}, color: yellow","yellow-bold":"badge with label: {label}, color: yellow bold",red:"badge with label: {label}, color: red","red-bold":"badge with label: {label}, color: red bold",inherit:"badge with label: {label}"},i=class{constructor(o){e(this,o),this.color="neutral",this.bold=!1,this.label=void 0}onSlotChange(e){const o=e.composedPath()[0].assignedNodes();this.label=o.map((e=>e.textContent)).join("")}renderBadgeTitle(){return o("gux-tooltip-title",null,o("span",null,o("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return o("div",{class:"gux-sr-only"},this.i18n(this.getVariant(),{label:this.label}))}getVariant(){return`${this.color}${this.bold?"-bold":""}`}async componentWillLoad(){t(this.root),this.i18n=await r(this.root,a)}render(){return o("div",{class:{"gux-badge":!0,[`gux-${this.color}`]:!0,"gux-bold":this.bold}},this.renderBadgeTitle(),this.renderSrText())}get root(){return l(this)}};i.style=":host{display:inline-block;height:fit-content;border-radius:100%}.gux-badge{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;height:20px;padding:2px 8px;color:#fdfdfd;background-color:#2e394c;border-radius:4px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-badge gux-tooltip-title{white-space:nowrap}.gux-badge gux-tooltip-title ::slotted(gux-icon){height:16px;font-size:16px}.gux-badge .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-badge.gux-neutral{color:#2e394c;background-color:#e2e6ee}.gux-badge.gux-neutral.gux-bold{color:#fdfdfd;background-color:#2e394c}.gux-badge.gux-red{color:#8f0707;background-color:#fceaea}.gux-badge.gux-red.gux-bold{color:#fdfdfd;background-color:#ea0b0b}.gux-badge.gux-yellow{color:#976700;background-color:#fdf8ec}.gux-badge.gux-yellow.gux-bold{color:#2e394c;background-color:#ffae00}.gux-badge.gux-green{color:#205a10;background-color:#eefcea}.gux-badge.gux-green.gux-bold{color:#fdfdfd;background-color:#3c8527}.gux-badge.gux-inherit{color:inherit;background-color:inherit}";export{i as gux_badge_beta}
1
+ import{r as e,h as o,g as l}from"./p-9031eb6a.js";import{t}from"./p-93d8e3c7.js";import{b as r}from"./p-2b58afeb.js";import"./p-8a133b9b.js";const a={neutral:"badge with label: {label}, color: neutral","neutral-bold":"badge with label: {label}, color: neutral bold",green:"badge with label: {label}, color: green","green-bold":"badge with label: {label}, color: green bold",yellow:"badge with label: {label}, color: yellow","yellow-bold":"badge with label: {label}, color: yellow bold",red:"badge with label: {label}, color: red","red-bold":"badge with label: {label}, color: red bold",inherit:"badge with label: {label}"},i=class{constructor(o){e(this,o),this.color="neutral",this.bold=!1,this.label=void 0}onSlotChange(e){const o=e.composedPath()[0].assignedNodes();this.label=o.map((e=>e.textContent)).join("")}renderBadgeTitle(){return o("gux-tooltip-title",null,o("span",null,o("slot",{"aria-hidden":"true",onSlotchange:this.onSlotChange.bind(this)})))}renderSrText(){return o("div",{class:"gux-sr-only"},this.i18n(this.getVariant(),{label:this.label}))}getVariant(){return`${this.color}${this.bold?"-bold":""}`}async componentWillLoad(){t(this.root),this.i18n=await r(this.root,a)}render(){return o("div",{class:{"gux-badge":!0,[`gux-${this.color}`]:!0,"gux-bold":this.bold}},this.renderBadgeTitle(),this.renderSrText())}get root(){return l(this)}};i.style=":host{display:inline-block;height:fit-content;border-radius:100%}.gux-badge{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;justify-content:flex-start;height:20px;padding:2px 8px;color:#fdfdfd;background-color:#2e394c;border-radius:4px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}.gux-badge gux-tooltip-title{white-space:nowrap}.gux-badge gux-tooltip-title ::slotted(gux-icon){height:16px;font-size:16px}.gux-badge .gux-sr-only:not(:focus):not(:active){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}.gux-badge.gux-neutral{color:#2e394c;background-color:#e2e6ee}.gux-badge.gux-neutral.gux-bold{color:#fdfdfd;background-color:#2e394c}.gux-badge.gux-red{color:#8f0707;background-color:#fceaea}.gux-badge.gux-red.gux-bold{color:#fdfdfd;background-color:#ea0b0b}.gux-badge.gux-yellow{color:#976700;background-color:#fdf8ec}.gux-badge.gux-yellow.gux-bold{color:#2e394c;background-color:#ffae00}.gux-badge.gux-green{color:#205a10;background-color:#eefcea}.gux-badge.gux-green.gux-bold{color:#fdfdfd;background-color:#3c8527}.gux-badge.gux-inherit{color:inherit;background-color:inherit}";export{i as gux_badge_beta}
@@ -1 +1 @@
1
- import{r as t,h as s,H as o,g as e}from"./p-9031eb6a.js";import{t as i}from"./p-ffb1bb70.js";import{O as n}from"./p-23975bfb.js";import{b as a}from"./p-2b58afeb.js";import{b as r}from"./p-091f51f6.js";import"./p-8a133b9b.js";const u={additionalActions:"Additional Actions"};const c=class{constructor(s){t(this,s),this.showMenu=void 0,this.expanded=!1}handleKeyDown(t){const s=t.composedPath();switch(t.key){case"Escape":this.expanded=!1,s.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.expanded=!1;break;case"ArrowDown":case"Enter":s.includes(this.dropdownButton)&&(t.preventDefault(),this.expanded=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.expanded=!0,this.focusFirstItemInPopupList())}toggle(){this.expanded=!this.expanded,this.expanded&&this.focusPopupList()}onClickOutside(){this.expanded=!1}focusPopupList(){r((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){r((()=>{this.listElement.guxFocusFirstItem()}))}async componentWillLoad(){this.i18n=await a(this.root,u),i(this.root)}render(){return s(o,{class:{"gux-show-menu":this.showMenu}},s("gux-popup-beta",{expanded:this.expanded},s("div",{slot:"target",class:"gux-toolbar-menu-container"},s("gux-button-slot-beta",{class:"gux-menu-button"},s("button",{type:"button",ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},s("gux-icon",{"screenreader-text":this.i18n("additionalActions"),"icon-name":"menu-kebab-horizontal"})))),s("div",{class:"gux-list-container",slot:"popup"},s("gux-list",{ref:t=>this.listElement=t},s("slot",null)))))}static get delegatesFocus(){return!0}get root(){return e(this)}};(function(t,s,o,e){var i,n=arguments.length,a=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,o,e);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(a=(n<3?i(a):n>3?i(s,o,a):i(s,o))||a);n>3&&a&&Object.defineProperty(s,o,a)})([n({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:none;-webkit-user-select:none;user-select:none;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}:host(.gux-show-menu){display:block}>*{vertical-align:middle}.gux-menu-button button{color:#2e394c;cursor:grab;background-color:#e2e6ee;border:none}.gux-menu-button button gux-icon{width:16px;height:16px}.gux-list-container{width:min-content;padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{c as gux_table_toolbar_menu_button}
1
+ import{r as t,h as s,H as o,g as e}from"./p-9031eb6a.js";import{t as i}from"./p-93d8e3c7.js";import{O as n}from"./p-23975bfb.js";import{b as a}from"./p-2b58afeb.js";import{b as r}from"./p-091f51f6.js";import"./p-8a133b9b.js";const u={additionalActions:"Additional Actions"};const c=class{constructor(s){t(this,s),this.showMenu=void 0,this.expanded=!1}handleKeyDown(t){const s=t.composedPath();switch(t.key){case"Escape":this.expanded=!1,s.includes(this.listElement)&&(t.preventDefault(),this.dropdownButton.focus());break;case"Tab":this.expanded=!1;break;case"ArrowDown":case"Enter":s.includes(this.dropdownButton)&&(t.preventDefault(),this.expanded=!0,this.focusFirstItemInPopupList())}}handleKeyup(t){if(" "===t.key)t.composedPath().includes(this.dropdownButton)&&(this.expanded=!0,this.focusFirstItemInPopupList())}toggle(){this.expanded=!this.expanded,this.expanded&&this.focusPopupList()}onClickOutside(){this.expanded=!1}focusPopupList(){r((()=>{this.listElement.focus()}))}focusFirstItemInPopupList(){r((()=>{this.listElement.guxFocusFirstItem()}))}async componentWillLoad(){this.i18n=await a(this.root,u),i(this.root)}render(){return s(o,{class:{"gux-show-menu":this.showMenu}},s("gux-popup-beta",{expanded:this.expanded},s("div",{slot:"target",class:"gux-toolbar-menu-container"},s("gux-button-slot-beta",{class:"gux-menu-button"},s("button",{type:"button",ref:t=>this.dropdownButton=t,onMouseUp:()=>this.toggle(),"aria-haspopup":"true","aria-expanded":this.expanded.toString()},s("gux-icon",{"screenreader-text":this.i18n("additionalActions"),"icon-name":"menu-kebab-horizontal"})))),s("div",{class:"gux-list-container",slot:"popup"},s("gux-list",{ref:t=>this.listElement=t},s("slot",null)))))}static get delegatesFocus(){return!0}get root(){return e(this)}};(function(t,s,o,e){var i,n=arguments.length,a=n<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,o,e);else for(var r=t.length-1;r>=0;r--)(i=t[r])&&(a=(n<3?i(a):n>3?i(s,o,a):i(s,o))||a);n>3&&a&&Object.defineProperty(s,o,a)})([n({triggerEvents:"mousedown"})],c.prototype,"onClickOutside",null),c.style=":host{display:none;-webkit-user-select:none;user-select:none;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}:host(.gux-show-menu){display:block}>*{vertical-align:middle}.gux-menu-button button{color:#2e394c;cursor:grab;background-color:#e2e6ee;border:none}.gux-menu-button button gux-icon{width:16px;height:16px}.gux-list-container{width:min-content;padding:8px 0;margin:0;list-style:none;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}";export{c as gux_table_toolbar_menu_button}
@@ -1 +1 @@
1
- import{r as t,c as e,h as n,g as a}from"./p-9031eb6a.js";import{a as s}from"./p-091f51f6.js";import{a as i,c as r,b as o,f as d}from"./p-4f26144b.js";import{t as h}from"./p-ffb1bb70.js";import{g as l,a as c}from"./p-2b58afeb.js";import{c as u}from"./p-251befef.js";import"./p-8a133b9b.js";function g(t,e){x(t,"remove",e)}function x(t=[],e,n){const a=[].concat(t);for(const t of a)t.classList[e](n)}function b(t,e){return u(t.toLocaleDateString(e,{year:"numeric",month:"long"}))}const f=class{constructor(n){t(this,n),this.input=e(this,"input",7),this.locale="en",this.value="",this.minDate="",this.maxDate="",this.mode="single",this.numberOfMonths=1,this.startDayOfWeek=void 0,this.previewValue=new Date,this.selectingDate=null}emitInput(){this.input.emit(this.value)}async setValue(t){if("range"===this.mode&&t instanceof Array){const[e,n]=t;this.value=i(e,n),this.previewValue=r(this.value)[0]}else{const e=t;this.value=o(e),this.previewValue=e}}async focusPreviewDate(){const t=this.root.shadowRoot.querySelector(`td[data-date="${this.previewValue.getTime()}"]`);t&&t.focus()}async resetCalendarView(t){this.previewValue=t}incrementPreviewDateByMonth(t){this.previewValue=new Date(this.previewValue.getFullYear(),this.previewValue.getMonth()+t,15,0,0,0),s((()=>{this.focusPreviewDate()}))}async setValueAndEmit(t){await this.setValue(t),this.emitInput()}outOfBounds(t){return""!==this.maxDate&&d(this.maxDate)<t||""!==this.minDate&&d(this.minDate)>t}generateDatesFrom(t,e,n){const a=[],s=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0);for(let e=0;e<n;e++){const e=new Date(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0,0),n=[];let i=!1,o=!1;e.getMonth()!==t&&(n.push("gux-not-in-month"),i=!0,"range"===this.mode&&(n.push("gux-hidden"),o=!0)),this.outOfBounds(e)&&(n.push("gux-disabled"),i=!0);let h=!1;if("range"===this.mode){const[t,a]=r(this.value),s=t.getTime(),i=a.getTime();e.getTime()===s?(h=!0,n.push("gux-selected"),n.push("gux-start-date")):e.getTime()===i&&(h=!0,n.push("gux-selected"),n.push("gux-end-date"))}else{const t=d(this.value).getTime();e.getTime()===t&&(h=!0,n.push("gux-selected"))}a.push({class:n.join(" "),date:e,hidden:o,disabled:i,selected:h}),s.setDate(s.getDate()+1)}return a}create2DArray(t,e){const n=[];for(let a=0;a<e-1;a++){const s=t.slice(a*e,a*e+e);this.weekShouldBeDisplayed(s)&&n.push(s)}return n}isFocusableDate(t){return t.selected||this.previewValue.getTime()===t.date.getTime()}weekShouldBeDisplayed(t){const e=t.find((t=>!t.hidden));return t.length&&!!e}getMonthDays(t){const e=new Date(this.previewValue.getTime());e.setDate(1),e.setMonth(e.getMonth()+t);const n=e.getMonth(),a=function(t,e,n){const a=new Date(e,t,1,1,0,0,0),s=-1*(n-a.getDay()-7)%7;return new Date(a.getTime()-864e5*s)}(n,e.getFullYear(),this.startDayOfWeek),s=this.generateDatesFrom(n,a,42);return this.create2DArray(s,7)}addDays(t,e){const n=new Date(t.valueOf());return n.setDate(n.getDate()+e),n}getAllDatesElements(){const t=this.root.shadowRoot.querySelectorAll("td");return Array.from(t)}getAllSelectableDatesElements(){const t=this.root.shadowRoot.querySelectorAll('td[tabindex="0"]');return Array.from(t)}getRangeDatesElements(t,e){const n=[];let a;a=e<t?this.getRangeDates(e,t):this.getRangeDates(t,e);for(const t of a){const e=this.root.shadowRoot.querySelector(`td[data-date="${t.getTime()}"]:not(.gux-hidden)`);e&&n.push(e)}return n}getRangeDates(t,e){const n=[];let a=t;for(;a<=e;)n.push(new Date(a)),a=this.addDays(a,1);return n}async onDateClick(t){if(!this.outOfBounds(t))if("range"!==this.mode)await this.setValueAndEmit(t);else if(null===this.selectingDate)g(this.getAllDatesElements(),"gux-hovered"),this.selectingDate=new Date(t.valueOf()),this.value=i(t,t);else{const e=this.root.shadowRoot.querySelector(`td[data-date="${t.getTime()}"]`);e&&e.classList.add("gux-selected"),this.updateRangeElements(),await this.setValueAndEmit([this.selectingDate,t]),this.previewValue=t,this.selectingDate=null}}onDateMouseEnter(t){"range"===this.mode&&null!==this.selectingDate&&(this.value=i(t,this.selectingDate),this.updateRangeElements())}updateRangeElements(){if("range"===this.mode){g(this.getAllDatesElements(),"gux-hovered");const[t,e]=r(this.value);x(this.getRangeDatesElements(t,e),"add","gux-hovered")}}async onKeyDown(t){switch(t.key){case" ":case"Enter":t.preventDefault(),await this.onDateClick(this.previewValue);break;case"ArrowDown":t.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+7)),this.onDateMouseEnter(this.previewValue),s((()=>{this.focusPreviewDate()}));break;case"ArrowUp":t.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-7)),this.onDateMouseEnter(this.previewValue),s((()=>{this.focusPreviewDate()}));break;case"ArrowLeft":t.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-1)),this.onDateMouseEnter(this.previewValue),s((()=>{this.focusPreviewDate()}));break;case"ArrowRight":t.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+1)),this.onDateMouseEnter(this.previewValue),s((()=>{this.focusPreviewDate()}));break;case"PageUp":this.incrementPreviewDateByMonth(1),this.onDateMouseEnter(this.previewValue);break;case"PageDown":this.incrementPreviewDateByMonth(-1),this.onDateMouseEnter(this.previewValue)}}componentWillLoad(){if(h(this.root,{variant:this.mode}),this.locale=l(this.root),this.startDayOfWeek=this.startDayOfWeek||c(this.locale),!this.value){const t=new Date;t.setHours(0,0,0,0),this.value="range"===this.mode?i(t,t):o(t)}this.previewValue=d(this.value)}componentDidRender(){this.updateRangeElements()}renderMonthHeader(){return n("div",{class:"gux-month-list"},Array.from(Array(this.numberOfMonths).keys()).map((t=>{const e=function(t,e){const n=new Date(t);return n.setDate(1),n.setMonth(n.getMonth()+e),n}(this.previewValue,t);return n("label",null,b(e,this.locale))})))}renderCalendarTable(t){return n("table",null,n("tr",null,function(t,e){const n=[],a=new Date(1970,0,4);for(let e=0;e<7;e++){const e=a.toLocaleString(t,{weekday:"narrow"});n.push(e),a.setDate(a.getDate()+1)}return(s=n).concat(s.splice(0,(i=e)>s.length?i%s.length:i));var s,i}(this.locale,this.startDayOfWeek).map((t=>n("th",null,t)))),this.getMonthDays(t).map((t=>n("tr",null,t.map((t=>n("td",{tabindex:this.isFocusableDate(t)?"0":"-1",class:t.class,"aria-hidden":t.hidden?"true":"false","aria-disabled":t.disabled?"true":"false","data-date":t.date.getTime(),onClick:()=>{this.onDateClick(t.date)},onMouseEnter:()=>this.onDateMouseEnter(t.date),onKeyDown:t=>{this.onKeyDown(t)}},t.date.getDate(),n("span",{class:"gux-sr-only"},b(t.date,this.locale)))))))))}render(){return n("div",{class:"gux-calendar"},n("div",{class:"gux-header"},n("button",{type:"button",class:"gux-left",onClick:()=>this.incrementPreviewDateByMonth(-1),tabindex:"-1","aria-hidden":"true"},n("gux-icon",{decorative:!0,"icon-name":"chevron-small-left"})),this.renderMonthHeader(),n("button",{type:"button",class:"gux-right",onClick:()=>this.incrementPreviewDateByMonth(1),tabindex:"-1","aria-hidden":"true"},n("gux-icon",{decorative:!0,"icon-name":"chevron-small-right"}))),n("div",{class:"gux-content"},Array.from(Array(this.numberOfMonths).keys()).map((t=>this.renderCalendarTable(t)))))}get root(){return a(this)}};f.style=":host{display:inline-block}.gux-calendar{margin-top:2px;border:1px solid #b4bccb;border-radius:4px}.gux-calendar .gux-header{position:relative;display:flex;align-items:center;justify-content:space-between;height:16px;padding:16px;color:#fdfdfd;background-color:#2a60c8;border-top-left-radius:3px;border-top-right-radius:3px}.gux-calendar .gux-header button{position:absolute;padding:5px;color:#fdfdfd;cursor:pointer;background:none;border:none;outline:none}.gux-calendar .gux-header button:focus-visible{outline:#75a8ff auto 5px}.gux-calendar .gux-header button.gux-left{left:18px}.gux-calendar .gux-header button.gux-right{right:18px}.gux-calendar .gux-header button gux-icon{width:16px;height:16px;pointer-events:none}.gux-calendar .gux-header .gux-month-list{display:flex;justify-content:space-between;width:100%}.gux-calendar .gux-header .gux-month-list label{width:100%;text-align:center;font-size:12px;line-height:20px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700}.gux-calendar .gux-content{display:flex;align-items:flex-start;padding:20px 24px;color:#2e394c;background-color:#fdfdfd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.gux-calendar .gux-content table{width:168px;text-align:left;table-layout:fixed;border-spacing:0;-ms-user-select:none;user-select:none}.gux-calendar .gux-content table:not(:last-child){padding-right:24px}.gux-calendar .gux-content table tr{height:28px}.gux-calendar .gux-content table tr:empty{display:none}.gux-calendar .gux-content table tr th,.gux-calendar .gux-content table tr td{width:28px;height:28px;padding:0;margin:0;text-align:center;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-calendar .gux-content table tr th{font-family:Roboto, sans-serif;font-weight:400;font-weight:700}.gux-calendar .gux-content table tr td{cursor:pointer}.gux-calendar .gux-content table tr td.gux-hovered{background-color:#deeaff}.gux-calendar .gux-content table tr td.gux-selected{color:#fdfdfd;background-color:#2a60c8;border-radius:4px}.gux-calendar .gux-content table tr td.gux-selected.gux-start-date{border-radius:4px 0 0 4px}.gux-calendar .gux-content table tr td.gux-selected.gux-end-date{border-radius:0 4px 4px 0}.gux-calendar .gux-content table tr td:hover:not(.gux-calendar .gux-content table tr td.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-end-date){color:#fdfdfd;background-color:#2a60c8;border-radius:4px}.gux-calendar .gux-content table tr td.gux-disabled{color:rgba(46, 57, 76, 0.5);pointer-events:none}.gux-calendar .gux-content table tr td.gux-not-in-month{color:rgba(107, 117, 133, 0.5)}.gux-calendar .gux-content table tr td.gux-not-in-month:hover{color:#2e394c;background-color:#e2e6ee}.gux-calendar .gux-content table tr td.gux-not-in-month.gux-hidden{visibility:hidden}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{f as gux_calendar}
1
+ import{r as t,c as e,h as n,g as a}from"./p-9031eb6a.js";import{a as s}from"./p-091f51f6.js";import{a as i,c as r,b as o,f as d}from"./p-4f26144b.js";import{t as h}from"./p-93d8e3c7.js";import{g as l,a as c}from"./p-2b58afeb.js";import{c as u}from"./p-251befef.js";import"./p-8a133b9b.js";function g(t,e){x(t,"remove",e)}function x(t=[],e,n){const a=[].concat(t);for(const t of a)t.classList[e](n)}function b(t,e){return u(t.toLocaleDateString(e,{year:"numeric",month:"long"}))}const f=class{constructor(n){t(this,n),this.input=e(this,"input",7),this.locale="en",this.value="",this.minDate="",this.maxDate="",this.mode="single",this.numberOfMonths=1,this.startDayOfWeek=void 0,this.previewValue=new Date,this.selectingDate=null}emitInput(){this.input.emit(this.value)}async setValue(t){if("range"===this.mode&&t instanceof Array){const[e,n]=t;this.value=i(e,n),this.previewValue=r(this.value)[0]}else{const e=t;this.value=o(e),this.previewValue=e}}async focusPreviewDate(){const t=this.root.shadowRoot.querySelector(`td[data-date="${this.previewValue.getTime()}"]`);t&&t.focus()}async resetCalendarView(t){this.previewValue=t}incrementPreviewDateByMonth(t){this.previewValue=new Date(this.previewValue.getFullYear(),this.previewValue.getMonth()+t,15,0,0,0),s((()=>{this.focusPreviewDate()}))}async setValueAndEmit(t){await this.setValue(t),this.emitInput()}outOfBounds(t){return""!==this.maxDate&&d(this.maxDate)<t||""!==this.minDate&&d(this.minDate)>t}generateDatesFrom(t,e,n){const a=[],s=new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0);for(let e=0;e<n;e++){const e=new Date(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0,0),n=[];let i=!1,o=!1;e.getMonth()!==t&&(n.push("gux-not-in-month"),i=!0,"range"===this.mode&&(n.push("gux-hidden"),o=!0)),this.outOfBounds(e)&&(n.push("gux-disabled"),i=!0);let h=!1;if("range"===this.mode){const[t,a]=r(this.value),s=t.getTime(),i=a.getTime();e.getTime()===s?(h=!0,n.push("gux-selected"),n.push("gux-start-date")):e.getTime()===i&&(h=!0,n.push("gux-selected"),n.push("gux-end-date"))}else{const t=d(this.value).getTime();e.getTime()===t&&(h=!0,n.push("gux-selected"))}a.push({class:n.join(" "),date:e,hidden:o,disabled:i,selected:h}),s.setDate(s.getDate()+1)}return a}create2DArray(t,e){const n=[];for(let a=0;a<e-1;a++){const s=t.slice(a*e,a*e+e);this.weekShouldBeDisplayed(s)&&n.push(s)}return n}isFocusableDate(t){return t.selected||this.previewValue.getTime()===t.date.getTime()}weekShouldBeDisplayed(t){const e=t.find((t=>!t.hidden));return t.length&&!!e}getMonthDays(t){const e=new Date(this.previewValue.getTime());e.setDate(1),e.setMonth(e.getMonth()+t);const n=e.getMonth(),a=function(t,e,n){const a=new Date(e,t,1,1,0,0,0),s=-1*(n-a.getDay()-7)%7;return new Date(a.getTime()-864e5*s)}(n,e.getFullYear(),this.startDayOfWeek),s=this.generateDatesFrom(n,a,42);return this.create2DArray(s,7)}addDays(t,e){const n=new Date(t.valueOf());return n.setDate(n.getDate()+e),n}getAllDatesElements(){const t=this.root.shadowRoot.querySelectorAll("td");return Array.from(t)}getAllSelectableDatesElements(){const t=this.root.shadowRoot.querySelectorAll('td[tabindex="0"]');return Array.from(t)}getRangeDatesElements(t,e){const n=[];let a;a=e<t?this.getRangeDates(e,t):this.getRangeDates(t,e);for(const t of a){const e=this.root.shadowRoot.querySelector(`td[data-date="${t.getTime()}"]:not(.gux-hidden)`);e&&n.push(e)}return n}getRangeDates(t,e){const n=[];let a=t;for(;a<=e;)n.push(new Date(a)),a=this.addDays(a,1);return n}async onDateClick(t){if(!this.outOfBounds(t))if("range"!==this.mode)await this.setValueAndEmit(t);else if(null===this.selectingDate)g(this.getAllDatesElements(),"gux-hovered"),this.selectingDate=new Date(t.valueOf()),this.value=i(t,t);else{const e=this.root.shadowRoot.querySelector(`td[data-date="${t.getTime()}"]`);e&&e.classList.add("gux-selected"),this.updateRangeElements(),await this.setValueAndEmit([this.selectingDate,t]),this.previewValue=t,this.selectingDate=null}}onDateMouseEnter(t){"range"===this.mode&&null!==this.selectingDate&&(this.value=i(t,this.selectingDate),this.updateRangeElements())}updateRangeElements(){if("range"===this.mode){g(this.getAllDatesElements(),"gux-hovered");const[t,e]=r(this.value);x(this.getRangeDatesElements(t,e),"add","gux-hovered")}}async onKeyDown(t){switch(t.key){case" ":case"Enter":t.preventDefault(),await this.onDateClick(this.previewValue);break;case"ArrowDown":t.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+7)),this.onDateMouseEnter(this.previewValue),s((()=>{this.focusPreviewDate()}));break;case"ArrowUp":t.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-7)),this.onDateMouseEnter(this.previewValue),s((()=>{this.focusPreviewDate()}));break;case"ArrowLeft":t.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()-1)),this.onDateMouseEnter(this.previewValue),s((()=>{this.focusPreviewDate()}));break;case"ArrowRight":t.preventDefault(),this.previewValue=new Date(this.previewValue.setDate(this.previewValue.getDate()+1)),this.onDateMouseEnter(this.previewValue),s((()=>{this.focusPreviewDate()}));break;case"PageUp":this.incrementPreviewDateByMonth(1),this.onDateMouseEnter(this.previewValue);break;case"PageDown":this.incrementPreviewDateByMonth(-1),this.onDateMouseEnter(this.previewValue)}}componentWillLoad(){if(h(this.root,{variant:this.mode}),this.locale=l(this.root),this.startDayOfWeek=this.startDayOfWeek||c(this.locale),!this.value){const t=new Date;t.setHours(0,0,0,0),this.value="range"===this.mode?i(t,t):o(t)}this.previewValue=d(this.value)}componentDidRender(){this.updateRangeElements()}renderMonthHeader(){return n("div",{class:"gux-month-list"},Array.from(Array(this.numberOfMonths).keys()).map((t=>{const e=function(t,e){const n=new Date(t);return n.setDate(1),n.setMonth(n.getMonth()+e),n}(this.previewValue,t);return n("label",null,b(e,this.locale))})))}renderCalendarTable(t){return n("table",null,n("tr",null,function(t,e){const n=[],a=new Date(1970,0,4);for(let e=0;e<7;e++){const e=a.toLocaleString(t,{weekday:"narrow"});n.push(e),a.setDate(a.getDate()+1)}return(s=n).concat(s.splice(0,(i=e)>s.length?i%s.length:i));var s,i}(this.locale,this.startDayOfWeek).map((t=>n("th",null,t)))),this.getMonthDays(t).map((t=>n("tr",null,t.map((t=>n("td",{tabindex:this.isFocusableDate(t)?"0":"-1",class:t.class,"aria-hidden":t.hidden?"true":"false","aria-disabled":t.disabled?"true":"false","data-date":t.date.getTime(),onClick:()=>{this.onDateClick(t.date)},onMouseEnter:()=>this.onDateMouseEnter(t.date),onKeyDown:t=>{this.onKeyDown(t)}},t.date.getDate(),n("span",{class:"gux-sr-only"},b(t.date,this.locale)))))))))}render(){return n("div",{class:"gux-calendar"},n("div",{class:"gux-header"},n("button",{type:"button",class:"gux-left",onClick:()=>this.incrementPreviewDateByMonth(-1),tabindex:"-1","aria-hidden":"true"},n("gux-icon",{decorative:!0,"icon-name":"chevron-small-left"})),this.renderMonthHeader(),n("button",{type:"button",class:"gux-right",onClick:()=>this.incrementPreviewDateByMonth(1),tabindex:"-1","aria-hidden":"true"},n("gux-icon",{decorative:!0,"icon-name":"chevron-small-right"}))),n("div",{class:"gux-content"},Array.from(Array(this.numberOfMonths).keys()).map((t=>this.renderCalendarTable(t)))))}get root(){return a(this)}};f.style=":host{display:inline-block}.gux-calendar{margin-top:2px;border:1px solid #b4bccb;border-radius:4px}.gux-calendar .gux-header{position:relative;display:flex;align-items:center;justify-content:space-between;height:16px;padding:16px;color:#fdfdfd;background-color:#2a60c8;border-top-left-radius:3px;border-top-right-radius:3px}.gux-calendar .gux-header button{position:absolute;padding:5px;color:#fdfdfd;cursor:pointer;background:none;border:none;outline:none}.gux-calendar .gux-header button:focus-visible{outline:#75a8ff auto 5px}.gux-calendar .gux-header button.gux-left{left:18px}.gux-calendar .gux-header button.gux-right{right:18px}.gux-calendar .gux-header button gux-icon{width:16px;height:16px;pointer-events:none}.gux-calendar .gux-header .gux-month-list{display:flex;justify-content:space-between;width:100%}.gux-calendar .gux-header .gux-month-list label{width:100%;text-align:center;font-size:12px;line-height:20px;font-family:Roboto, sans-serif;font-weight:400;font-weight:700}.gux-calendar .gux-content{display:flex;align-items:flex-start;padding:20px 24px;color:#2e394c;background-color:#fdfdfd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.gux-calendar .gux-content table{width:168px;text-align:left;table-layout:fixed;border-spacing:0;-ms-user-select:none;user-select:none}.gux-calendar .gux-content table:not(:last-child){padding-right:24px}.gux-calendar .gux-content table tr{height:28px}.gux-calendar .gux-content table tr:empty{display:none}.gux-calendar .gux-content table tr th,.gux-calendar .gux-content table tr td{width:28px;height:28px;padding:0;margin:0;text-align:center;font-family:Roboto, sans-serif;font-weight:400;font-size:12px;line-height:20px}.gux-calendar .gux-content table tr th{font-family:Roboto, sans-serif;font-weight:400;font-weight:700}.gux-calendar .gux-content table tr td{cursor:pointer}.gux-calendar .gux-content table tr td.gux-hovered{background-color:#deeaff}.gux-calendar .gux-content table tr td.gux-selected{color:#fdfdfd;background-color:#2a60c8;border-radius:4px}.gux-calendar .gux-content table tr td.gux-selected.gux-start-date{border-radius:4px 0 0 4px}.gux-calendar .gux-content table tr td.gux-selected.gux-end-date{border-radius:0 4px 4px 0}.gux-calendar .gux-content table tr td:hover:not(.gux-calendar .gux-content table tr td.gux-start-date):not(.gux-calendar .gux-content table tr td.gux-end-date){color:#fdfdfd;background-color:#2a60c8;border-radius:4px}.gux-calendar .gux-content table tr td.gux-disabled{color:rgba(46, 57, 76, 0.5);pointer-events:none}.gux-calendar .gux-content table tr td.gux-not-in-month{color:rgba(107, 117, 133, 0.5)}.gux-calendar .gux-content table tr td.gux-not-in-month:hover{color:#2e394c;background-color:#e2e6ee}.gux-calendar .gux-content table tr td.gux-not-in-month.gux-hidden{visibility:hidden}.gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{f as gux_calendar}