genesys-spark-components 3.7.1 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/cjs/genesys-webcomponents.cjs.js +1 -1
  3. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +2 -2
  6. package/dist/cjs/gux-action-button.cjs.entry.js +2 -2
  7. package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +2 -2
  10. package/dist/cjs/gux-all-row-select.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-badge-beta.cjs.entry.js +2 -2
  12. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +2 -2
  13. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-calendar.cjs.entry.js +2 -2
  18. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +108 -16
  21. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +2 -2
  25. package/dist/cjs/gux-content-search.cjs.entry.js +2 -2
  26. package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +2 -2
  27. package/dist/cjs/gux-datepicker.cjs.entry.js +2 -2
  28. package/dist/cjs/gux-disclosure-button.cjs.entry.js +2 -2
  29. package/dist/cjs/gux-dismiss-button.cjs.entry.js +2 -2
  30. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-dropdown-multi-beta.cjs.entry.js +2 -2
  32. package/dist/cjs/gux-dropdown-multi-tag.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-dropdown_3.cjs.entry.js +2 -2
  34. package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-dropdown.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +2 -2
  40. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-number.cjs.entry.js +2 -2
  42. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-input-checkbox_7.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-input-search.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-input-text-like.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-listbox-multi.cjs.entry.js +2 -2
  55. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-pagination-buttons-beta_3.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-pagination-buttons_3.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +2 -2
  62. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-popover.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-radial-loading.cjs.entry.js +2 -2
  67. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-row-select.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-sort-control.cjs.entry.js +1 -1
  73. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  74. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +1 -1
  75. package/dist/cjs/gux-tab-advanced.cjs.entry.js +1 -1
  76. package/dist/cjs/gux-tab-list.cjs.entry.js +1 -1
  77. package/dist/cjs/gux-table-beta.cjs.entry.js +2 -2
  78. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  79. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +2 -2
  80. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  81. package/dist/cjs/gux-tag-beta.cjs.entry.js +2 -2
  82. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  83. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  84. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +2 -2
  85. package/dist/cjs/gux-toggle.cjs.entry.js +2 -2
  86. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  87. package/dist/cjs/gux-visualization-beta.cjs.entry.js +2 -2
  88. package/dist/cjs/{index-57ec1998.js → index-d83bf15a.js} +6 -0
  89. package/dist/cjs/loader.cjs.js +1 -1
  90. package/dist/cjs/{usage-tracking-39a72be3.js → usage-tracking-fc8f0621.js} +1 -1
  91. package/dist/collection/components/beta/gux-chart-donut/gux-chart-donut.js +246 -15
  92. package/dist/deploy-info.json +3 -3
  93. package/dist/esm/genesys-webcomponents.js +1 -1
  94. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  95. package/dist/esm/gux-accordion.entry.js +1 -1
  96. package/dist/esm/gux-action-button-legacy.entry.js +2 -2
  97. package/dist/esm/gux-action-button.entry.js +2 -2
  98. package/dist/esm/gux-action-list-legacy.entry.js +1 -1
  99. package/dist/esm/gux-action-toast.entry.js +1 -1
  100. package/dist/esm/gux-advanced-dropdown.entry.js +2 -2
  101. package/dist/esm/gux-all-row-select.entry.js +1 -1
  102. package/dist/esm/gux-badge-beta.entry.js +2 -2
  103. package/dist/esm/gux-breadcrumbs.entry.js +2 -2
  104. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  105. package/dist/esm/gux-button-multi.entry.js +1 -1
  106. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  107. package/dist/esm/gux-button.entry.js +1 -1
  108. package/dist/esm/gux-calendar.entry.js +2 -2
  109. package/dist/esm/gux-card-beta.entry.js +1 -1
  110. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  111. package/dist/esm/gux-chart-donut-beta.entry.js +108 -16
  112. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  113. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  114. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  115. package/dist/esm/gux-command-palette-legacy.entry.js +2 -2
  116. package/dist/esm/gux-content-search.entry.js +2 -2
  117. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +2 -2
  118. package/dist/esm/gux-datepicker.entry.js +2 -2
  119. package/dist/esm/gux-disclosure-button.entry.js +2 -2
  120. package/dist/esm/gux-dismiss-button.entry.js +2 -2
  121. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  122. package/dist/esm/gux-dropdown-multi-beta.entry.js +2 -2
  123. package/dist/esm/gux-dropdown-multi-tag.entry.js +1 -1
  124. package/dist/esm/gux-dropdown_3.entry.js +2 -2
  125. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  126. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  127. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  128. package/dist/esm/gux-form-field-color.entry.js +1 -1
  129. package/dist/esm/gux-form-field-dropdown.entry.js +1 -1
  130. package/dist/esm/gux-form-field-input-clear-button.entry.js +2 -2
  131. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  132. package/dist/esm/gux-form-field-number.entry.js +2 -2
  133. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  134. package/dist/esm/gux-form-field-range.entry.js +1 -1
  135. package/dist/esm/gux-form-field-search.entry.js +1 -1
  136. package/dist/esm/gux-form-field-select.entry.js +1 -1
  137. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  138. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  139. package/dist/esm/gux-icon.entry.js +1 -1
  140. package/dist/esm/gux-input-checkbox_7.entry.js +1 -1
  141. package/dist/esm/gux-input-search.entry.js +1 -1
  142. package/dist/esm/gux-input-text-like.entry.js +1 -1
  143. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  144. package/dist/esm/gux-list.entry.js +1 -1
  145. package/dist/esm/gux-listbox-multi.entry.js +2 -2
  146. package/dist/esm/gux-modal.entry.js +1 -1
  147. package/dist/esm/gux-notification-toast.entry.js +1 -1
  148. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  149. package/dist/esm/gux-pagination-beta.entry.js +1 -1
  150. package/dist/esm/gux-pagination-buttons-beta_3.entry.js +1 -1
  151. package/dist/esm/gux-pagination-buttons_3.entry.js +1 -1
  152. package/dist/esm/gux-pagination-cursor.entry.js +2 -2
  153. package/dist/esm/gux-pagination.entry.js +1 -1
  154. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  155. package/dist/esm/gux-popover-list.entry.js +1 -1
  156. package/dist/esm/gux-popover.entry.js +1 -1
  157. package/dist/esm/gux-radial-loading.entry.js +2 -2
  158. package/dist/esm/gux-radial-progress.entry.js +1 -1
  159. package/dist/esm/gux-rating.entry.js +1 -1
  160. package/dist/esm/gux-row-select.entry.js +1 -1
  161. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  162. package/dist/esm/gux-simple-toast.entry.js +1 -1
  163. package/dist/esm/gux-sort-control.entry.js +1 -1
  164. package/dist/esm/gux-switch.entry.js +1 -1
  165. package/dist/esm/gux-tab-advanced-list.entry.js +1 -1
  166. package/dist/esm/gux-tab-advanced.entry.js +1 -1
  167. package/dist/esm/gux-tab-list.entry.js +1 -1
  168. package/dist/esm/gux-table-beta.entry.js +2 -2
  169. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  170. package/dist/esm/gux-tabs-legacy.entry.js +2 -2
  171. package/dist/esm/gux-tabs.entry.js +1 -1
  172. package/dist/esm/gux-tag-beta.entry.js +2 -2
  173. package/dist/esm/gux-text-highlight.entry.js +1 -1
  174. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  175. package/dist/esm/gux-time-picker-beta.entry.js +2 -2
  176. package/dist/esm/gux-toggle.entry.js +2 -2
  177. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  178. package/dist/esm/gux-visualization-beta.entry.js +2 -2
  179. package/dist/esm/{index-16dc4871.js → index-8fe81fcb.js} +6 -0
  180. package/dist/esm/loader.js +1 -1
  181. package/dist/esm/{usage-tracking-9ae70c67.js → usage-tracking-685e66d8.js} +1 -1
  182. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  183. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.he.json +1 -0
  184. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.pt-pt.json +1 -0
  185. package/dist/genesys-webcomponents/{p-9869e6f4.entry.js → p-08149b75.entry.js} +1 -1
  186. package/dist/genesys-webcomponents/{p-b5867962.entry.js → p-08916658.entry.js} +1 -1
  187. package/dist/genesys-webcomponents/{p-7e8a517b.entry.js → p-09e45f58.entry.js} +1 -1
  188. package/dist/genesys-webcomponents/{p-16e8f471.entry.js → p-0d40f07c.entry.js} +1 -1
  189. package/dist/genesys-webcomponents/{p-1d09f345.entry.js → p-0e532979.entry.js} +1 -1
  190. package/dist/genesys-webcomponents/{p-a0a0d12d.entry.js → p-11c81c59.entry.js} +1 -1
  191. package/dist/genesys-webcomponents/{p-e122b070.entry.js → p-153939f8.entry.js} +1 -1
  192. package/dist/genesys-webcomponents/{p-90d3e8af.entry.js → p-1c516c64.entry.js} +1 -1
  193. package/dist/genesys-webcomponents/{p-717c426f.entry.js → p-1d0af54a.entry.js} +1 -1
  194. package/dist/genesys-webcomponents/{p-8a1b9201.entry.js → p-1db90137.entry.js} +1 -1
  195. package/dist/genesys-webcomponents/{p-fca55791.entry.js → p-1f1d594c.entry.js} +1 -1
  196. package/dist/genesys-webcomponents/{p-0c38f51c.entry.js → p-219ae25e.entry.js} +1 -1
  197. package/dist/genesys-webcomponents/{p-33c27a48.entry.js → p-237252d6.entry.js} +1 -1
  198. package/dist/genesys-webcomponents/{p-2092557f.entry.js → p-23a98827.entry.js} +1 -1
  199. package/dist/genesys-webcomponents/{p-5ebb0e5e.entry.js → p-244b490c.entry.js} +1 -1
  200. package/dist/genesys-webcomponents/{p-0dfa8f9f.entry.js → p-287eb532.entry.js} +1 -1
  201. package/dist/genesys-webcomponents/{p-bf05f0be.entry.js → p-2b588707.entry.js} +1 -1
  202. package/dist/genesys-webcomponents/{p-ddbe5e3d.entry.js → p-2b90afaa.entry.js} +1 -1
  203. package/dist/genesys-webcomponents/{p-050ab2cb.entry.js → p-3673e271.entry.js} +1 -1
  204. package/dist/genesys-webcomponents/{p-1d83549a.entry.js → p-371ed5df.entry.js} +1 -1
  205. package/dist/genesys-webcomponents/{p-2b24dcb6.entry.js → p-37c9b3fa.entry.js} +1 -1
  206. package/dist/genesys-webcomponents/{p-d820f160.entry.js → p-3944c1b3.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-78035895.entry.js → p-39e47544.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-523a0237.js → p-4154675a.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-469eea38.entry.js → p-44234c4a.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/p-44d85cb7.entry.js +1 -0
  211. package/dist/genesys-webcomponents/{p-c251e266.entry.js → p-47402638.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-8bc4b382.entry.js → p-4941466b.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-dbad07cb.entry.js → p-4b47b9a4.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/p-5104c53b.entry.js +1 -0
  215. package/dist/genesys-webcomponents/{p-b98f76af.entry.js → p-5337e902.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-00519483.entry.js → p-54b9459a.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-84bc8565.entry.js → p-58bda5cc.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-646c8c96.entry.js → p-6144d461.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/{p-d5939eb4.entry.js → p-61ce5baf.entry.js} +1 -1
  220. package/dist/genesys-webcomponents/p-645e56af.entry.js +1 -0
  221. package/dist/genesys-webcomponents/{p-013eb64c.entry.js → p-6486a070.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/{p-e996ed62.entry.js → p-64cc92ae.entry.js} +1 -1
  223. package/dist/genesys-webcomponents/{p-480ffa9e.entry.js → p-66c6e687.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-c6715c5a.entry.js → p-691014ea.entry.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-e3aa0165.entry.js → p-6ccc7e05.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-eafca6fd.entry.js → p-6d1efc28.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-398cbe65.entry.js → p-6dcf7bdf.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-d30142cc.entry.js → p-75bf6f63.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-b0205823.entry.js → p-7971221c.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-5453b69f.entry.js → p-7a9a5e22.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-6c8e24ef.entry.js → p-84e6bd3b.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-659e0050.entry.js → p-8a39f50c.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-9d36ee95.entry.js → p-8b235c66.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-3308c20e.entry.js → p-94b290da.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-2b7d8c71.entry.js → p-9597d043.entry.js} +1 -1
  236. package/dist/genesys-webcomponents/{p-166e7535.entry.js → p-95e403ce.entry.js} +1 -1
  237. package/dist/genesys-webcomponents/{p-b695ac46.entry.js → p-96163c8e.entry.js} +1 -1
  238. package/dist/genesys-webcomponents/{p-ccaedc78.entry.js → p-9f06be0e.entry.js} +1 -1
  239. package/dist/genesys-webcomponents/{p-44ac7dd3.entry.js → p-9f81f359.entry.js} +1 -1
  240. package/dist/genesys-webcomponents/{p-c66803cf.entry.js → p-9ff6cdf6.entry.js} +1 -1
  241. package/dist/genesys-webcomponents/{p-1255480b.entry.js → p-9ffef09d.entry.js} +1 -1
  242. package/dist/genesys-webcomponents/{p-3e72de53.entry.js → p-a48f4a99.entry.js} +1 -1
  243. package/dist/genesys-webcomponents/{p-448d6c60.entry.js → p-a81c4219.entry.js} +1 -1
  244. package/dist/genesys-webcomponents/{p-371cffc7.entry.js → p-add04063.entry.js} +1 -1
  245. package/dist/genesys-webcomponents/{p-7454d082.entry.js → p-b0aeb870.entry.js} +1 -1
  246. package/dist/genesys-webcomponents/{p-603a557b.entry.js → p-b60c1c22.entry.js} +1 -1
  247. package/dist/genesys-webcomponents/{p-54866ea0.entry.js → p-ba8a662f.entry.js} +1 -1
  248. package/dist/genesys-webcomponents/{p-3d888c4f.entry.js → p-bb51a260.entry.js} +1 -1
  249. package/dist/genesys-webcomponents/{p-5baa156e.entry.js → p-bead3d6f.entry.js} +1 -1
  250. package/dist/genesys-webcomponents/{p-92e0518f.entry.js → p-c0d6c8af.entry.js} +1 -1
  251. package/dist/genesys-webcomponents/{p-3a830867.entry.js → p-c36eb82d.entry.js} +1 -1
  252. package/dist/genesys-webcomponents/{p-440657a8.js → p-c4dce34e.js} +1 -1
  253. package/dist/genesys-webcomponents/{p-98dd850d.entry.js → p-c54a51c4.entry.js} +1 -1
  254. package/dist/genesys-webcomponents/{p-a13ff6ec.entry.js → p-ca85d33a.entry.js} +1 -1
  255. package/dist/genesys-webcomponents/{p-98229921.entry.js → p-ccec7f45.entry.js} +1 -1
  256. package/dist/genesys-webcomponents/{p-647dd4a5.entry.js → p-d06f88d4.entry.js} +1 -1
  257. package/dist/genesys-webcomponents/{p-9df54194.entry.js → p-d2caa510.entry.js} +1 -1
  258. package/dist/genesys-webcomponents/{p-573f5ff0.entry.js → p-d60e2cf7.entry.js} +1 -1
  259. package/dist/genesys-webcomponents/{p-b41cc336.entry.js → p-d7ead098.entry.js} +1 -1
  260. package/dist/genesys-webcomponents/{p-a2f34941.entry.js → p-d861df0b.entry.js} +1 -1
  261. package/dist/genesys-webcomponents/{p-9fe46900.entry.js → p-db597b21.entry.js} +1 -1
  262. package/dist/genesys-webcomponents/{p-cd9decab.entry.js → p-e4bd0fc4.entry.js} +1 -1
  263. package/dist/genesys-webcomponents/{p-9b6e59f2.entry.js → p-e4d6c92a.entry.js} +1 -1
  264. package/dist/genesys-webcomponents/{p-d8fb93d1.entry.js → p-e533777c.entry.js} +1 -1
  265. package/dist/genesys-webcomponents/{p-bb1431b6.entry.js → p-e7c4b37c.entry.js} +1 -1
  266. package/dist/genesys-webcomponents/{p-45517975.entry.js → p-e7e6f626.entry.js} +1 -1
  267. package/dist/genesys-webcomponents/{p-a09cb82d.entry.js → p-eb19e642.entry.js} +1 -1
  268. package/dist/genesys-webcomponents/{p-4b58fc7e.entry.js → p-eece2df4.entry.js} +1 -1
  269. package/dist/genesys-webcomponents/{p-2aac6bab.entry.js → p-f1080449.entry.js} +1 -1
  270. package/dist/genesys-webcomponents/{p-cb3d0262.entry.js → p-f8b31a6e.entry.js} +1 -1
  271. package/dist/genesys-webcomponents/{p-c13e9b91.entry.js → p-f9bef089.entry.js} +1 -1
  272. package/dist/stencil-wrapper.js +1 -1
  273. package/dist/types/components/beta/gux-chart-donut/gux-chart-donut.d.ts +9 -0
  274. package/dist/types/components.d.ts +16 -0
  275. package/package.json +1 -1
  276. package/dist/genesys-webcomponents/p-99b858d1.entry.js +0 -1
  277. package/dist/genesys-webcomponents/p-b1bffdc0.entry.js +0 -1
  278. package/dist/genesys-webcomponents/p-b1cb1a31.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as i,h as o,g as s}from"./p-e571f861.js";import{t as n}from"./p-440657a8.js";import{O as e}from"./p-49b1912a.js";import{b as a}from"./p-523a0237.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.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();switch(t.key){case" ":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-e571f861.js";import{t as n}from"./p-c4dce34e.js";import{O as e}from"./p-49b1912a.js";import{b as a}from"./p-4154675a.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.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();switch(t.key){case" ":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 e,h as t,g as l}from"./p-e571f861.js";import{t as a}from"./p-440657a8.js";let o=1;const x=class{constructor(t){e(this,t),this.position="above",this.id=this.generateId()}componentWillLoad(){a(this.root,{variant:this.position})}componentDidLoad(){const e=this.labeledComponent.querySelector("*");"function"==typeof e.componentOnReady&&"function"==typeof e.setLabelledBy?e.componentOnReady().then((()=>{e.setLabelledBy(this.id)})):e.setAttribute("aria-labelledby",this.id)}render(){return t("div",{class:`gux-text-label-container gux-${this.position}`},t("label",{class:"gux-label",id:this.id},t("slot",{name:"label"},this.label)),t("div",{class:"gux-labeled-component",ref:e=>this.labeledComponent=e},t("slot",null)))}generateId(){return"gux-text-label-"+o++}get root(){return l(this)}};x.style="gux-text-label-legacy .gux-label{margin-right:8px}gux-text-label-legacy .gux-text-label-container.gux-beside{display:flex;flex-direction:row;align-items:baseline}gux-text-label-legacy .gux-text-label-container.gux-beside .gux-labeled-component{flex:1 1 auto}.gux-text-label-dark-theme{color:#fdfdfd}.gux-dark-theme gux-text-label-legacy{color:#fdfdfd}gux-text-label-legacy.gux-dark-theme{color:#fdfdfd}.gux-text-label-light-theme{color:#2e394c}.gux-light-theme gux-text-label-legacy{color:#2e394c}gux-text-label-legacy.gux-light-theme{color:#2e394c}gux-text-label-legacy{color:#2e394c}";export{x as gux_text_label_legacy}
1
+ import{r as e,h as t,g as l}from"./p-e571f861.js";import{t as a}from"./p-c4dce34e.js";let o=1;const x=class{constructor(t){e(this,t),this.position="above",this.id=this.generateId()}componentWillLoad(){a(this.root,{variant:this.position})}componentDidLoad(){const e=this.labeledComponent.querySelector("*");"function"==typeof e.componentOnReady&&"function"==typeof e.setLabelledBy?e.componentOnReady().then((()=>{e.setLabelledBy(this.id)})):e.setAttribute("aria-labelledby",this.id)}render(){return t("div",{class:`gux-text-label-container gux-${this.position}`},t("label",{class:"gux-label",id:this.id},t("slot",{name:"label"},this.label)),t("div",{class:"gux-labeled-component",ref:e=>this.labeledComponent=e},t("slot",null)))}generateId(){return"gux-text-label-"+o++}get root(){return l(this)}};x.style="gux-text-label-legacy .gux-label{margin-right:8px}gux-text-label-legacy .gux-text-label-container.gux-beside{display:flex;flex-direction:row;align-items:baseline}gux-text-label-legacy .gux-text-label-container.gux-beside .gux-labeled-component{flex:1 1 auto}.gux-text-label-dark-theme{color:#fdfdfd}.gux-dark-theme gux-text-label-legacy{color:#fdfdfd}gux-text-label-legacy.gux-dark-theme{color:#fdfdfd}.gux-text-label-light-theme{color:#2e394c}.gux-light-theme gux-text-label-legacy{color:#2e394c}gux-text-label-legacy.gux-light-theme{color:#2e394c}gux-text-label-legacy{color:#2e394c}";export{x as gux_text_label_legacy}
@@ -1 +1 @@
1
- import{r as t,h as n,g as e}from"./p-e571f861.js";import{b as i}from"./p-523a0237.js";import{s as o}from"./p-8fe7daff.js";import{o as r}from"./p-e2bea786.js";import"./p-8a133b9b.js";import"./p-d176c2ae.js";const a={clear:"Clear"},u=class{constructor(n){t(this,n),this.hasContent=!1}clearInput(){o(this.input,"",!0)}setHasContent(){this.hasContent=Boolean(this.input.value)}renderSearchIcon(){return n("gux-icon",{class:"gux-search-icon","icon-name":"search",decorative:!0})}renderClearButton(){return this.hasContent&&!this.disabled?n("button",{class:"gux-clear-button",tabIndex:-1,type:"button",title:this.getI18nValue("clear"),disabled:this.disabled,onClick:this.clearInput.bind(this)},n("gux-icon",{"icon-name":"close",decorative:!0})):null}async componentWillLoad(){this.getI18nValue=await i(this.root,a),this.input=this.root.querySelector('input[type="search"]'),this.setHasContent(),this.disabled=this.input.disabled,this.input.addEventListener("input",(()=>{this.setHasContent()})),this.disabledObserver=r(this.input,(t=>{this.disabled=t}))}disconnectedCallback(){this.disabledObserver.disconnect()}render(){return n("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled}},this.renderSearchIcon(),n("slot",null),this.renderClearButton())}get root(){return e(this)}};u.style="gux-input-search{position:relative;display:block}gux-input-search .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:4px 8px 4px 8px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}gux-input-search .gux-input-container.gux-disabled{opacity:0.5}gux-input-search .gux-input-container .gux-search-icon{flex:0 0 auto;align-self:auto;order:0;width:20px;height:20px;color:#596373}gux-input-search .gux-input-container input{flex:1 1 auto;align-self:auto;order:0;overflow:hidden;color:#2e394c;background-color:#f6f7f9;border:none;outline:none}gux-input-search .gux-input-container input::placeholder{color:#596373;opacity:1}gux-input-search .gux-input-container input::-webkit-search-cancel-button,gux-input-search .gux-input-container input::-webkit-search-results-button,gux-input-search .gux-input-container input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}gux-input-search .gux-input-container .gux-clear-button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}gux-input-search .gux-input-container .gux-clear-button:not(:disabled):focus,gux-input-search .gux-input-container .gux-clear-button:not(:disabled):hover{color:#2e394c;cursor:pointer}gux-input-search .gux-input-container .gux-clear-button gux-icon{width:12px;height:12px;border-radius:4px}gux-input-search .gux-input-container .gux-clear-button:focus{outline:none}gux-input-search .gux-input-container .gux-clear-button:focus:enabled gux-icon{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}gux-input-search .gux-input-container:focus-within{border:1px solid #2a60c8;outline:none;box-shadow:0 0 4px #75a8ff}";export{u as gux_input_search}
1
+ import{r as t,h as n,g as e}from"./p-e571f861.js";import{b as i}from"./p-4154675a.js";import{s as o}from"./p-8fe7daff.js";import{o as r}from"./p-e2bea786.js";import"./p-8a133b9b.js";import"./p-d176c2ae.js";const a={clear:"Clear"},u=class{constructor(n){t(this,n),this.hasContent=!1}clearInput(){o(this.input,"",!0)}setHasContent(){this.hasContent=Boolean(this.input.value)}renderSearchIcon(){return n("gux-icon",{class:"gux-search-icon","icon-name":"search",decorative:!0})}renderClearButton(){return this.hasContent&&!this.disabled?n("button",{class:"gux-clear-button",tabIndex:-1,type:"button",title:this.getI18nValue("clear"),disabled:this.disabled,onClick:this.clearInput.bind(this)},n("gux-icon",{"icon-name":"close",decorative:!0})):null}async componentWillLoad(){this.getI18nValue=await i(this.root,a),this.input=this.root.querySelector('input[type="search"]'),this.setHasContent(),this.disabled=this.input.disabled,this.input.addEventListener("input",(()=>{this.setHasContent()})),this.disabledObserver=r(this.input,(t=>{this.disabled=t}))}disconnectedCallback(){this.disabledObserver.disconnect()}render(){return n("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled}},this.renderSearchIcon(),n("slot",null),this.renderClearButton())}get root(){return e(this)}};u.style="gux-input-search{position:relative;display:block}gux-input-search .gux-input-container{box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;align-content:stretch;align-items:center;justify-content:center;width:100%;height:32px;padding:4px 8px 4px 8px;font-family:inherit;font-size:12px;line-height:1.6667;color:#2e394c;background-color:#f6f7f9;background-image:none;border:1px solid #6b7585;border-radius:4px;box-shadow:inset 0 0 4px rgba(32, 41, 55, 0.16)}gux-input-search .gux-input-container.gux-disabled{opacity:0.5}gux-input-search .gux-input-container .gux-search-icon{flex:0 0 auto;align-self:auto;order:0;width:20px;height:20px;color:#596373}gux-input-search .gux-input-container input{flex:1 1 auto;align-self:auto;order:0;overflow:hidden;color:#2e394c;background-color:#f6f7f9;border:none;outline:none}gux-input-search .gux-input-container input::placeholder{color:#596373;opacity:1}gux-input-search .gux-input-container input::-webkit-search-cancel-button,gux-input-search .gux-input-container input::-webkit-search-results-button,gux-input-search .gux-input-container input::-webkit-calendar-picker-indicator{display:none;-webkit-appearance:none}gux-input-search .gux-input-container .gux-clear-button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}gux-input-search .gux-input-container .gux-clear-button:not(:disabled):focus,gux-input-search .gux-input-container .gux-clear-button:not(:disabled):hover{color:#2e394c;cursor:pointer}gux-input-search .gux-input-container .gux-clear-button gux-icon{width:12px;height:12px;border-radius:4px}gux-input-search .gux-input-container .gux-clear-button:focus{outline:none}gux-input-search .gux-input-container .gux-clear-button:focus:enabled gux-icon{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}gux-input-search .gux-input-container:focus-within{border:1px solid #2a60c8;outline:none;box-shadow:0 0 4px #75a8ff}";export{u as gux_input_search}
@@ -1 +1 @@
1
- import{r as t,c as o,d as a,w as e,h as c,g as r}from"./p-e571f861.js";import{S as i}from"./p-020b6498.js";import{t as n}from"./p-440657a8.js";import{b as l}from"./p-523a0237.js";import{w as b}from"./p-76ff3e75.js";import"./p-8a133b9b.js";const s={createNewTab:"Create New Tab",scrollLeft:"Scroll Left",scrollRight:"Scroll Right",disableNewTab:"Maximum number of tabs created has been reached"},d=class{constructor(a){t(this,a),this.newTab=o(this,"newTab",7),this.input=o(this,"input",7),this.sortChanged=o(this,"sortChanged",7),this.allowSort=!1,this.showNewTabButton=!1,this.value="",this.tabLimit=1/0,this.disableAddTabButton=!1,this.hasScrollbar=!1}watchHandler(t){const o=Array.from(this.root.querySelectorAll("gux-tab-legacy"));for(const a of o)a.active=a.tabId===t}internaltabselectedHandler(t){b("gux-tab-legacy",t,(t=>{t.active||(this.value=t.tabId,this.input.emit())}))}createSortable(){this.sortableInstance=new i(this.root,{animation:250,draggable:"gux-tab-legacy",filter:".ignore-sort",onMove:t=>!t.related.classList.contains("ignore-sort"),onUpdate:()=>{const t=Array.from(this.root.querySelectorAll("gux-tab-legacy")).map((t=>t.tabId));this.sortChanged.emit(t)}})}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}disconnectedCallback(){this.sortableInstance&&this.destroySortable(),this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-tabs")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){n(this.root),this.i18n=await l(this.root,s)}componentWillRender(){Array.from(this.root.querySelectorAll("gux-tab-legacy")).length>=this.tabLimit&&(this.disableAddTabButton=!0)}checkForScrollbarHideOrShow(){a((()=>{const t=this.root.shadowRoot.querySelector(".scrollable-section"),o=t.clientWidth!==t.scrollWidth;o!==this.hasScrollbar&&(this.hasScrollbar=o)}))}componentDidLoad(){this.allowSort&&!this.sortableInstance&&this.createSortable(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.checkForScrollbarHideOrShow.bind(this))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-tabs")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver(this.checkForScrollbarHideOrShow.bind(this))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),setTimeout((()=>{this.checkForScrollbarHideOrShow()}),500)}componentDidRender(){setTimeout((()=>{a((()=>{if(this.value){const t=this.root.querySelector(`gux-tab-legacy[tab-id='${this.value}']`);t&&(t.active=!0)}}))}),500)}scrollLeft(){e((()=>{this.root.shadowRoot.querySelector(".scrollable-section").scrollBy(-100,0)}))}scrollRight(){e((()=>{this.root.shadowRoot.querySelector(".scrollable-section").scrollBy(100,0)}))}render(){const t=t=>c("button",{title:this.i18n(this.disableAddTabButton?"disableNewTab":"createNewTab"),class:"add-tab",onClick:()=>t.onClick(),disabled:this.disableAddTabButton},c("gux-icon",{"icon-name":"add",decorative:!0}));return c("div",{class:"gux-tabs"},c("div",{class:"action-button-container"},this.hasScrollbar?c("button",{title:this.i18n("scrollLeft"),class:"arrow-button",onClick:()=>this.scrollLeft()},c("gux-icon",{"icon-name":"chevron-left",decorative:!0})):null),c("div",{class:"scrollable-section"},c("slot",null),this.showNewTabButton&&!this.hasScrollbar?c(t,{onClick:()=>this.newTab.emit()}):null),c("div",{class:"action-button-container"},this.hasScrollbar?c("button",{title:this.i18n("scrollRight"),class:"arrow-button",onClick:()=>this.scrollRight()},c("gux-icon",{"icon-name":"chevron-right",decorative:!0})):null,this.showNewTabButton&&this.hasScrollbar?c(t,{onClick:()=>this.newTab.emit()}):null))}get root(){return r(this)}static get watchers(){return{value:["watchHandler"]}}};d.style=".gux-tabs{display:flex;align-items:flex-end;width:100%;height:40px;overflow-x:hidden}.gux-tabs .action-button-container{display:flex;border-radius:2px}.gux-tabs .action-button-container .arrow-button{display:flex;align-items:center;justify-content:center;width:24px;height:40px;padding:0;border:none;border-style:solid;border-width:1px;border-radius:2px;transition:color 0.25s}.gux-tabs .action-button-container .arrow-button gux-icon{width:10px;height:10px}.gux-tabs .action-button-container .add-tab{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:none;border-style:solid;border-width:1px;border-radius:2px;transition:color 0.25s}.gux-tabs .action-button-container .add-tab:disabled{opacity:0.5}.gux-tabs .action-button-container .add-tab:disabled:hover{color:#202937}.gux-tabs .action-button-container .add-tab:disabled:active{background-color:#e2e6ee}.gux-tabs .action-button-container .add-tab gux-icon{width:16px;height:16px}.gux-tabs .scrollable-section{display:flex;flex:1 1 auto;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none}.gux-tabs .scrollable-section::-webkit-scrollbar{height:0}.gux-tabs .scrollable-section .add-tab{display:flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;padding:0;margin-left:4px;border:none;transition:color 0.25s}.gux-tabs .scrollable-section .add-tab gux-icon{width:16px;height:16px}.gux-tabs-light-theme{background-color:#e2e6ee}.gux-tabs-light-theme .action-button-container{background-color:#c8cfda}.gux-tabs-light-theme .action-button-container .arrow-button{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs-light-theme .action-button-container .arrow-button:hover{color:#2a60c8}.gux-tabs-light-theme .action-button-container .arrow-button:active{background-color:#d2d8e5}.gux-tabs-light-theme .action-button-container .add-tab{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs-light-theme .action-button-container .add-tab:hover{color:#2a60c8}.gux-tabs-light-theme .action-button-container .add-tab:active{background-color:#d2d8e5}.gux-tabs-light-theme .scrollable-section::-webkit-scrollbar-track{background:#fdfdfd}.gux-tabs-light-theme .scrollable-section::-webkit-scrollbar-thumb{background:#202937}.gux-tabs-light-theme .scrollable-section::-webkit-scrollbar-thumb:hover{background:#202937}.gux-tabs-light-theme .scrollable-section .add-tab{color:#202937;background-color:#c8cfda}.gux-tabs-light-theme .scrollable-section .add-tab:hover{color:#2a60c8}.gux-tabs-light-theme .scrollable-section .add-tab:active{background-color:#b9c2d0}.gux-light-theme .gux-tabs{background-color:#e2e6ee}.gux-light-theme .gux-tabs .action-button-container{background-color:#c8cfda}.gux-light-theme .gux-tabs .action-button-container .arrow-button{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-light-theme .gux-tabs .action-button-container .arrow-button:hover{color:#2a60c8}.gux-light-theme .gux-tabs .action-button-container .arrow-button:active{background-color:#d2d8e5}.gux-light-theme .gux-tabs .action-button-container .add-tab{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-light-theme .gux-tabs .action-button-container .add-tab:hover{color:#2a60c8}.gux-light-theme .gux-tabs .action-button-container .add-tab:active{background-color:#d2d8e5}.gux-light-theme .gux-tabs .scrollable-section::-webkit-scrollbar-track{background:#fdfdfd}.gux-light-theme .gux-tabs .scrollable-section::-webkit-scrollbar-thumb{background:#202937}.gux-light-theme .gux-tabs .scrollable-section::-webkit-scrollbar-thumb:hover{background:#202937}.gux-light-theme .gux-tabs .scrollable-section .add-tab{color:#202937;background-color:#c8cfda}.gux-light-theme .gux-tabs .scrollable-section .add-tab:hover{color:#2a60c8}.gux-light-theme .gux-tabs .scrollable-section .add-tab:active{background-color:#b9c2d0}.gux-tabs.gux-light-theme{background-color:#e2e6ee}.gux-tabs.gux-light-theme .action-button-container{background-color:#c8cfda}.gux-tabs.gux-light-theme .action-button-container .arrow-button{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs.gux-light-theme .action-button-container .arrow-button:hover{color:#2a60c8}.gux-tabs.gux-light-theme .action-button-container .arrow-button:active{background-color:#d2d8e5}.gux-tabs.gux-light-theme .action-button-container .add-tab{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs.gux-light-theme .action-button-container .add-tab:hover{color:#2a60c8}.gux-tabs.gux-light-theme .action-button-container .add-tab:active{background-color:#d2d8e5}.gux-tabs.gux-light-theme .scrollable-section::-webkit-scrollbar-track{background:#fdfdfd}.gux-tabs.gux-light-theme .scrollable-section::-webkit-scrollbar-thumb{background:#202937}.gux-tabs.gux-light-theme .scrollable-section::-webkit-scrollbar-thumb:hover{background:#202937}.gux-tabs.gux-light-theme .scrollable-section .add-tab{color:#202937;background-color:#c8cfda}.gux-tabs.gux-light-theme .scrollable-section .add-tab:hover{color:#2a60c8}.gux-tabs.gux-light-theme .scrollable-section .add-tab:active{background-color:#b9c2d0}.gux-tabs{background-color:#e2e6ee}.gux-tabs .action-button-container{background-color:#c8cfda}.gux-tabs .action-button-container .arrow-button{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs .action-button-container .arrow-button:hover{color:#2a60c8}.gux-tabs .action-button-container .arrow-button:active{background-color:#d2d8e5}.gux-tabs .action-button-container .add-tab{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs .action-button-container .add-tab:hover{color:#2a60c8}.gux-tabs .action-button-container .add-tab:active{background-color:#d2d8e5}.gux-tabs .scrollable-section::-webkit-scrollbar-track{background:#fdfdfd}.gux-tabs .scrollable-section::-webkit-scrollbar-thumb{background:#202937}.gux-tabs .scrollable-section::-webkit-scrollbar-thumb:hover{background:#202937}.gux-tabs .scrollable-section .add-tab{color:#202937;background-color:#c8cfda}.gux-tabs .scrollable-section .add-tab:hover{color:#2a60c8}.gux-tabs .scrollable-section .add-tab:active{background-color:#b9c2d0}";export{d as gux_tabs_legacy}
1
+ import{r as t,c as o,d as a,w as e,h as c,g as r}from"./p-e571f861.js";import{S as i}from"./p-020b6498.js";import{t as n}from"./p-c4dce34e.js";import{b as l}from"./p-4154675a.js";import{w as b}from"./p-76ff3e75.js";import"./p-8a133b9b.js";const s={createNewTab:"Create New Tab",scrollLeft:"Scroll Left",scrollRight:"Scroll Right",disableNewTab:"Maximum number of tabs created has been reached"},d=class{constructor(a){t(this,a),this.newTab=o(this,"newTab",7),this.input=o(this,"input",7),this.sortChanged=o(this,"sortChanged",7),this.allowSort=!1,this.showNewTabButton=!1,this.value="",this.tabLimit=1/0,this.disableAddTabButton=!1,this.hasScrollbar=!1}watchHandler(t){const o=Array.from(this.root.querySelectorAll("gux-tab-legacy"));for(const a of o)a.active=a.tabId===t}internaltabselectedHandler(t){b("gux-tab-legacy",t,(t=>{t.active||(this.value=t.tabId,this.input.emit())}))}createSortable(){this.sortableInstance=new i(this.root,{animation:250,draggable:"gux-tab-legacy",filter:".ignore-sort",onMove:t=>!t.related.classList.contains("ignore-sort"),onUpdate:()=>{const t=Array.from(this.root.querySelectorAll("gux-tab-legacy")).map((t=>t.tabId));this.sortChanged.emit(t)}})}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}disconnectedCallback(){this.sortableInstance&&this.destroySortable(),this.resizeObserver&&this.resizeObserver.unobserve(this.root.shadowRoot.querySelector(".gux-tabs")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){n(this.root),this.i18n=await l(this.root,s)}componentWillRender(){Array.from(this.root.querySelectorAll("gux-tab-legacy")).length>=this.tabLimit&&(this.disableAddTabButton=!0)}checkForScrollbarHideOrShow(){a((()=>{const t=this.root.shadowRoot.querySelector(".scrollable-section"),o=t.clientWidth!==t.scrollWidth;o!==this.hasScrollbar&&(this.hasScrollbar=o)}))}componentDidLoad(){this.allowSort&&!this.sortableInstance&&this.createSortable(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(this.checkForScrollbarHideOrShow.bind(this))),this.resizeObserver&&this.resizeObserver.observe(this.root.shadowRoot.querySelector(".gux-tabs")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver(this.checkForScrollbarHideOrShow.bind(this))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),setTimeout((()=>{this.checkForScrollbarHideOrShow()}),500)}componentDidRender(){setTimeout((()=>{a((()=>{if(this.value){const t=this.root.querySelector(`gux-tab-legacy[tab-id='${this.value}']`);t&&(t.active=!0)}}))}),500)}scrollLeft(){e((()=>{this.root.shadowRoot.querySelector(".scrollable-section").scrollBy(-100,0)}))}scrollRight(){e((()=>{this.root.shadowRoot.querySelector(".scrollable-section").scrollBy(100,0)}))}render(){const t=t=>c("button",{title:this.i18n(this.disableAddTabButton?"disableNewTab":"createNewTab"),class:"add-tab",onClick:()=>t.onClick(),disabled:this.disableAddTabButton},c("gux-icon",{"icon-name":"add",decorative:!0}));return c("div",{class:"gux-tabs"},c("div",{class:"action-button-container"},this.hasScrollbar?c("button",{title:this.i18n("scrollLeft"),class:"arrow-button",onClick:()=>this.scrollLeft()},c("gux-icon",{"icon-name":"chevron-left",decorative:!0})):null),c("div",{class:"scrollable-section"},c("slot",null),this.showNewTabButton&&!this.hasScrollbar?c(t,{onClick:()=>this.newTab.emit()}):null),c("div",{class:"action-button-container"},this.hasScrollbar?c("button",{title:this.i18n("scrollRight"),class:"arrow-button",onClick:()=>this.scrollRight()},c("gux-icon",{"icon-name":"chevron-right",decorative:!0})):null,this.showNewTabButton&&this.hasScrollbar?c(t,{onClick:()=>this.newTab.emit()}):null))}get root(){return r(this)}static get watchers(){return{value:["watchHandler"]}}};d.style=".gux-tabs{display:flex;align-items:flex-end;width:100%;height:40px;overflow-x:hidden}.gux-tabs .action-button-container{display:flex;border-radius:2px}.gux-tabs .action-button-container .arrow-button{display:flex;align-items:center;justify-content:center;width:24px;height:40px;padding:0;border:none;border-style:solid;border-width:1px;border-radius:2px;transition:color 0.25s}.gux-tabs .action-button-container .arrow-button gux-icon{width:10px;height:10px}.gux-tabs .action-button-container .add-tab{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:none;border-style:solid;border-width:1px;border-radius:2px;transition:color 0.25s}.gux-tabs .action-button-container .add-tab:disabled{opacity:0.5}.gux-tabs .action-button-container .add-tab:disabled:hover{color:#202937}.gux-tabs .action-button-container .add-tab:disabled:active{background-color:#e2e6ee}.gux-tabs .action-button-container .add-tab gux-icon{width:16px;height:16px}.gux-tabs .scrollable-section{display:flex;flex:1 1 auto;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none}.gux-tabs .scrollable-section::-webkit-scrollbar{height:0}.gux-tabs .scrollable-section .add-tab{display:flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;padding:0;margin-left:4px;border:none;transition:color 0.25s}.gux-tabs .scrollable-section .add-tab gux-icon{width:16px;height:16px}.gux-tabs-light-theme{background-color:#e2e6ee}.gux-tabs-light-theme .action-button-container{background-color:#c8cfda}.gux-tabs-light-theme .action-button-container .arrow-button{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs-light-theme .action-button-container .arrow-button:hover{color:#2a60c8}.gux-tabs-light-theme .action-button-container .arrow-button:active{background-color:#d2d8e5}.gux-tabs-light-theme .action-button-container .add-tab{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs-light-theme .action-button-container .add-tab:hover{color:#2a60c8}.gux-tabs-light-theme .action-button-container .add-tab:active{background-color:#d2d8e5}.gux-tabs-light-theme .scrollable-section::-webkit-scrollbar-track{background:#fdfdfd}.gux-tabs-light-theme .scrollable-section::-webkit-scrollbar-thumb{background:#202937}.gux-tabs-light-theme .scrollable-section::-webkit-scrollbar-thumb:hover{background:#202937}.gux-tabs-light-theme .scrollable-section .add-tab{color:#202937;background-color:#c8cfda}.gux-tabs-light-theme .scrollable-section .add-tab:hover{color:#2a60c8}.gux-tabs-light-theme .scrollable-section .add-tab:active{background-color:#b9c2d0}.gux-light-theme .gux-tabs{background-color:#e2e6ee}.gux-light-theme .gux-tabs .action-button-container{background-color:#c8cfda}.gux-light-theme .gux-tabs .action-button-container .arrow-button{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-light-theme .gux-tabs .action-button-container .arrow-button:hover{color:#2a60c8}.gux-light-theme .gux-tabs .action-button-container .arrow-button:active{background-color:#d2d8e5}.gux-light-theme .gux-tabs .action-button-container .add-tab{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-light-theme .gux-tabs .action-button-container .add-tab:hover{color:#2a60c8}.gux-light-theme .gux-tabs .action-button-container .add-tab:active{background-color:#d2d8e5}.gux-light-theme .gux-tabs .scrollable-section::-webkit-scrollbar-track{background:#fdfdfd}.gux-light-theme .gux-tabs .scrollable-section::-webkit-scrollbar-thumb{background:#202937}.gux-light-theme .gux-tabs .scrollable-section::-webkit-scrollbar-thumb:hover{background:#202937}.gux-light-theme .gux-tabs .scrollable-section .add-tab{color:#202937;background-color:#c8cfda}.gux-light-theme .gux-tabs .scrollable-section .add-tab:hover{color:#2a60c8}.gux-light-theme .gux-tabs .scrollable-section .add-tab:active{background-color:#b9c2d0}.gux-tabs.gux-light-theme{background-color:#e2e6ee}.gux-tabs.gux-light-theme .action-button-container{background-color:#c8cfda}.gux-tabs.gux-light-theme .action-button-container .arrow-button{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs.gux-light-theme .action-button-container .arrow-button:hover{color:#2a60c8}.gux-tabs.gux-light-theme .action-button-container .arrow-button:active{background-color:#d2d8e5}.gux-tabs.gux-light-theme .action-button-container .add-tab{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs.gux-light-theme .action-button-container .add-tab:hover{color:#2a60c8}.gux-tabs.gux-light-theme .action-button-container .add-tab:active{background-color:#d2d8e5}.gux-tabs.gux-light-theme .scrollable-section::-webkit-scrollbar-track{background:#fdfdfd}.gux-tabs.gux-light-theme .scrollable-section::-webkit-scrollbar-thumb{background:#202937}.gux-tabs.gux-light-theme .scrollable-section::-webkit-scrollbar-thumb:hover{background:#202937}.gux-tabs.gux-light-theme .scrollable-section .add-tab{color:#202937;background-color:#c8cfda}.gux-tabs.gux-light-theme .scrollable-section .add-tab:hover{color:#2a60c8}.gux-tabs.gux-light-theme .scrollable-section .add-tab:active{background-color:#b9c2d0}.gux-tabs{background-color:#e2e6ee}.gux-tabs .action-button-container{background-color:#c8cfda}.gux-tabs .action-button-container .arrow-button{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs .action-button-container .arrow-button:hover{color:#2a60c8}.gux-tabs .action-button-container .arrow-button:active{background-color:#d2d8e5}.gux-tabs .action-button-container .add-tab{color:#202937;background-color:#e2e6ee;border-color:#c8cfda}.gux-tabs .action-button-container .add-tab:hover{color:#2a60c8}.gux-tabs .action-button-container .add-tab:active{background-color:#d2d8e5}.gux-tabs .scrollable-section::-webkit-scrollbar-track{background:#fdfdfd}.gux-tabs .scrollable-section::-webkit-scrollbar-thumb{background:#202937}.gux-tabs .scrollable-section::-webkit-scrollbar-thumb:hover{background:#202937}.gux-tabs .scrollable-section .add-tab{color:#202937;background-color:#c8cfda}.gux-tabs .scrollable-section .add-tab:hover{color:#2a60c8}.gux-tabs .scrollable-section .add-tab:active{background-color:#b9c2d0}";export{d as gux_tabs_legacy}
@@ -1 +1 @@
1
- import{a as i,r as c,h as e,g as a}from"./p-e571f861.js";import{t as o}from"./p-440657a8.js";import{l as t}from"./p-3184268e.js";const r={"ic-agent":"agent",consultant:"agent","ic-agent-group":"agent-group","pc-user":"user","ic-person":"user",customer:"user",interactions:"user-interactions","interaction-sound":"user-interactions","add-user":"user-add","ic-contact-add":"user-add","pc-group":"user-group","ic-people":"user-group","ic-group":"user-group",users:"user-group","ic-contact-id":"user-contact-id",contact:"user-contact-id","person-circle":"user-circle",directory:"user-directory","multi-agent-lines":"user-directory","ic-cobrowse":"cobrowse",screenshare:"cobrowse","ic-face-happy":"face-happy","ic-face-neutral":"face-neutral","ic-face-sad":"face-sad","ic-face-happy-solid":"face-happy-solid","ic-face-sad-solid":"face-sad-solid","cc-custom-default":"cjv-custom-default","cc-web-session":"cjv-web-session","cc-delivery":"cjv-delivery","cc-policy-contract":"cjv-policy-contract","cc-generic-application":"cjv-generic-application","cc-finance-invoice":"cjv-finance-invoice","beyond-logo":"product-logo-beyond","ic-special-g-brandmark":"product-logo-g","logo-genesys":"product-logo-g","interactions-alpha":"toolbar-interactions","interactions-off-alpha":"toolbar-interactions-disable",assist:"toolbar-assist","assist-off":"toolbar-assist-disable","chat-alpha":"toolbar-chat","chat-off-alpha":"toolbar-chat-disable","phone-alpha":"toolbar-phone","phone-off-alpha":"toolbar-phone-disable","phone-active-1":"toolbar-phone-active-1","phone-active-2":"toolbar-phone-active-2","phone-active-3":"toolbar-phone-active-3","video-alpha":"toolbar-video","video-off-alpha":"toolbar-video-disable","apps-alpha":"toolbar-apps",apps:"toolbar-apps-disable","favs-alpha":"toolbar-favourite","inbox-alpha":"toolbar-inbox",question:"toolbar-help","ic-phone":"phone","notification-phone":"phone","ic-phone-forward":"phone-forward","call-forward":"phone-forward","call-forward-alpha":"phone-forward","ic-phone-bell":"phone-bell","phone-ring":"phone-bell","ic-phone-voice":"phone-voice","call-volume":"phone-voice","ic-phone-disabled":"phone-disable","ic-phone-disable":"phone-disable","phone-off":"phone-disable","cc-disconnected-system":"phone-disable","cc-disconnected":"phone-disable","ic-phone-hold":"phone-hold","call-history":"phone-call-history","outbound-call":"phone-outbound","cc-outbound-call":"phone-outbound","missed-call":"phone-missed-call","cc-missed-inbound":"phone-missed-call",callback:"phone-callback",hangup:"phone-hangup","ic-phone-hang-up":"phone-hangup","ic-voicemail":"voicemail","ic-dialpad":"phone-dialpad","ic-phone-dail":"phone-dialpad",dialpad:"phone-dialpad","ic-status-call-dialing":"phone-dialpad","ic-status-chat":"chat","ic-chat":"chat","ic-chat-oval":"chat","notification-chat":"chat","cc-webchat-bot":"chat","cc-webchat-missed":"chat","ic-text-detail":"chat","iic-chat-oval-close":"chat-close","iic-chat-end":"chat-close","ic-chat-disable":"chat-disable","chat-off":"chat-disable","ic-chat-oval-multi":"chat-multi","ic-chat-multi":"chat-multi","chat-alert":"chat-bell","ic-email":"message-email","ic-status-email":"message-email","ic-cx-24-flat-mail":"message-email",envelope:"message-email","notification-email":"message-email","reply-standard":"message-reply","forward-standard":"message-forward","ic-attach":"attachment",paperclip:"attachment","ic-video":"video","ic-video-disable":"video-disable","video-off":"video-disable","ic-audio-rec":"microphone",mic:"microphone","ic-audio-rec-disable":"microphone-disable","mic-off":"microphone-disable","mic-talking":"microphone-talking","ic-audio-yes":"volume-up","ic-audio-no":"volume-none","volume-off-alt":"volume-none","ic-audio-disable":"volume-disable","volume-off":"volume-disable","ic-audio-music":"music","ic-control-skip-left":"control-skip-left",backward:"control-skip-left","ic-control-skip-right":"control-skip-right",forward:"control-skip-right","ic-control-backward":"control-start","fast-backward":"control-start","ic-control-forward":"control-end","fast-forward":"control-end","ic-slide-fwd":"control-slide-forward","step-forward":"control-slide-forward","ic-slide-back":"control-slide-back","step-backward":"control-slide-back",play:"control-play","ic-24-control-play-solid":"control-play","ic-control-stop":"control-stop",stop:"control-stop",pause:"control-pause","ic-24-control=pause-solid":"control-pause","ic-generic-pc":"device-pc",monitor:"device-pc","ic-video-cam-1":"webcam","ic-videocam-2":"webcam","ic-video-cam-1-disable":"webcam-disable","ic-videocam-2-disable":"webcam-disable","ic-sms-cancel":"sms-close","sms-cancel":"sms-close","ic-sms-message":"sms","sms-message":"sms","ic-generic-laptop":"device-laptop","ic-generic-tablet":"device-tablet","ic-camera":"device-camera","ic-host":"device-server","ic-phones":"device-cellphone","ic-generic-mobile-phone":"device-headphones","ic-folder":"folder","ic-folder-open":"folder-open","ic-folder-add":"folder-add","file-o":"file","ic-page-single":"file","ic-doc-list":"file","ic-doc-generic":"file","files-o":"file-all","ic-page-multi":"file-all","ic-doc-all":"file-all","ic-doc-report-b":"file-report",image:"file-image-landscape","ic-picture":"file-image-landscape","ic-doc-detail":"file-text",preview:"file-preview","ic-page-search":"file-preview",unassign:"upload","ic-upload":"upload","ic-download":"download",feedback:"comments","comment-ellipsis":"comments","comment-ellipsis-off":"comments-disable","ic-thumbs-up":"thumbs-up","ic-thumbs-down":"thumbs-down","ic-24-graph-edit":"edit","ic-graph-edit":"edit","ic-pencil":"edit","ic-multiples":"clone","ic-clone":"clone","ic-copy":"copy","ic-paste":"paste","ic-clipboard":"clipboard",scissors:"cut","ic-cut":"cut","ic-trash":"delete","ic-refresh-with-feedback":"refresh","ic-reload":"refresh","ic-refresh":"refresh","ic-reset":"reset","pop-out":"window-popout","ic-outbound":"window-popout","ic-exit-full-screen":"window-contract","screen-small":"window-contract","ic-window-contract":"window-contract","ic-full-screen":"window-fullscreen","screen-full":"window-fullscreen","ic-window-expand":"window-fullscreen","ic-drag-out":"window-drag-out","ic-actual-size":"actual-size","ic-app-generic":"app-generic","ic-app-chart":"app-chart","ic-app-layout":"app-layout",template:"app-layout","ic-biz-attribute":"app-table","ic-app-table":"app-table","ic-circle-add":"add-circle","plus-circle":"add-circle","ic-timeline":"timeline",history:"timeline","ic-clock":"clock-outline","ic-clock-b":"clock","ic-quotes":"quote-right","robot-head":"bot","robot-circle":"bot",education:"skills","ic-skills":"skills","ic-campaign":"campaign","ic-actionable":"bolt","ic-palette":"palette","ic-tenant":"tenant",cube:"tenant","ic-lunch":"lunch",cubes:"configuration","ic-configuration":"configuration","ic-stamp":"stamp","ic-ivr":"record","ic-follow":"follow","paint-bucket":"paint","ic-dash":"dash","ic-generic":"generic",signal:"low-bandwidth","ic-settings-gear":"settings","ic-settings-gears":"settings",cog:"settings","reset-view":"settings","ic-dashtab-settings":"settings",cogs:"settings","ic-locked":"lock","ic-secure":"lock","pause-secure":"lock","ic-link":"link","ic-unlocked":"unlock","ic-unlinked":"unlink","link-broken":"unlink","ic-certificate":"certificate","ic-access":"key","ic-sun-default":"sun","ic-moon-default":"moon","ic-app-all":"view-all","ic-cells":"view-cells","customize-columns":"view-cells","ic-view-lists":"view-lists","ic-view-list":"view-list",list:"view-list","ic-view-stacked":"view-stacked","stacked-mode":"view-stacked","ic-view-grid":"view-grid","grid-mode":"view-grid","ic-video-roster":"view-roster","ic-inspect":"inspect",eye:"inspect","ic-status-monitored-yes":"inspect","ic-inspect-disable":"inspect-disable",hide:"inspect-disable",whistle:"coaching","ic-rss":"rss","ic-rss-square":"rss","ic-twitter":"twitter","ic-twitter-square":"twitter","twitter-white-on-blue":"twitter","ic-facebook-square":"facebook","ic-linkedin-square":"linkedin","ic-share":"share","ic-sharethis":"share","viber-icon":"viber","at-thin":"at","ic-arrow-up":"arrow-up","long-up-arrow":"arrow-up","ic-arrow-down":"arrow-down","ic-arrow-left":"arrow-left","ic-arrow-right":"arrow-right","ic-escalate":"arrow-up-right","ic-out-small":"arrow-up-left","ic-in-small":"arrow-down-right","ic-iw-arrow-outline-in":"arrow-down-right","ic-chevron-left":"chevron-left","ic-chevron-right":"chevron-right","ic-transfer":"transfer",exchange:"transfer","ic-bar-graph-variable-1":"graph-bar-horizontal","ic-graph-barline":"graph-bar-horizontal","ic-24-graph-bar":"graph-bar-horizontal","ic-graph-bar":"graph-bar-horizontal","ic-graph-stack":"graph-bar-horizontal","ic-24-graph-stack":"graph-bar-horizontal","ic-bar-graph-variable-2":"graph-bar-vertical","ic-24-graph-bar-verticalertical":"graph-bar-vertical","ic-24-graph-stack-vertical":"graph-bar-vertical","ic-graph-line":"graph-line","ic-graph-chart":"graph-chart","ic-graph-spark":"graph-spark","ic-pie-chart":"graph-pie","ic-pin-time":"pin-location","ic-pin":"pin-location",marker:"pin-location","thumbtack-on":"pin","ic-pinned":"pin","ic-server":"server","ic-globe":"globe","ic-home":"home",house:"home","ic-cloud-b":"cloud","up-cloud":"cloud","ic-cloud-a":"cloud-outline","ic-site":"site",building:"site","ic-search":"search","magnifying-glass":"search","ic-calendar-generic":"calendar","ic-calendar-month":"calendar","ic-calendar-month-highlight":"calendar","ic-calendar-day":"calendar","calendar-days":"calendar","calendar-range":"calendar","ic-select-no":"checkbox","ic-checkbox":"checkbox","ic-checkbox-tick":"checkbox-active","ic-checkbox-tick-lock":"checkbox-active","ic-checklist-tick-lock":"checkbox-active","check-square":"checkbox-active","ic-select-yes":"checkbox-partial","ic-radio":"radio","ic-radio-active":"radio-active","radio-button":"radio-active","ic-add":"add",plus:"add","ic-iw-circle-no-add":"add","ic-close":"close","close-x":"close",remove:"close","ic-arrow-solid-up":"arrow-solid-up","ic-expand-up":"arrow-solid-up","caret-up":"arrow-solid-up","ic-search-previous":"arrow-solid-up","chevron-circle-up":"arrow-solid-up","ic-arrow-solid-down":"arrow-solid-down","ic-expand-down":"arrow-solid-down","caret-down":"arrow-solid-down","ic-search-next":"arrow-solid-down","chevron-circle-down":"arrow-solid-down","ic-arrow-solid-left":"arrow-solid-left","ic-expand-left":"arrow-solid-left","caret-left":"arrow-solid-left","ic-control-left":"arrow-solid-left","chevron-circle-left":"arrow-solid-left","ic-arrow-solid-right":"arrow-solid-right","ic-expand-right":"arrow-solid-right","caret-right":"arrow-solid-right","ic-control-right":"arrow-solid-right","chevron-circle-right":"arrow-solid-right","ic-dropdown-arrow":"chevron-small-down","ic-iw-circle-no-chevron-down":"chevron-small-down","ic-arrow-accordian":"chevron-small-down","ic-iw-circle-no-chevron-up":"chevron-small-up","ic-chevron-small-left":"chevron-small-left","angle-left":"chevron-small-left","ic-chevron-small-right":"chevron-small-right","angle-right":"chevron-small-right","ic-arrow-left-dbl":"chevron-double-left","ic-disclosure-left":"chevron-double-left","ic-arrow-right-dbl":"chevron-double-right","ic-arrow-disclosure":"chevron-double-right","ic-stars":"rating-active","favs-full":"rating-active",favs:"rating-active",star:"rating-active","ic-star-outline":"rating","ic-star-half":"rating-partial","ic-tick":"checkmark","ic-small-checkmark":"checkmark",check:"checkmark","ic-campaign-done":"checkmark","ic-more":"menu-kebab-vertical","ellipsis-v":"menu-kebab-vertical","ellipsis-h":"manu-kebab-h","ic-filter":"filter","ic-menu-hamburger":"menu",bars:"menu","ic-alert-checkmark":"alert-success","ic-login-checkmark":"alert-success","check-circle":"alert-success","ic-alert-triangle":"alert-warning-triangle","ic-alert-octo":"alert-warning-octogon","ic-alert-circle":"alert-warning-octogon","ic-iw-done-and-stop":"alert-warning-octogon",warning:"alert-warning-octogon","ic-tag":"tag","ic-tag-stat-remove":"tag-remove","ic-tag-stat-add":"tag-add","chevron-circle-collapse-double":"collapse","chevron-circle-expand-double":"expand","ic-grip-horizontal":"grab-horizontal","ic-grab":"grab-horizontal","ic-grip-vertical":"grab-vertical","ic-grab-verticalertical":"grab-vertical","sign-out":"logout","ic-out":"logout","ic-export":"logout","ic-status-call-ringing":"bell",bell2:"bell","ic-bell":"bell","ic-bug":"bug","ic-alert-info":"alert-info","ic-login-info":"alert-info","info-thick":"alert-info","ic-zoom-in":"zoom-in","magnifying-glass-plus":"zoom-in","ic-zoom-out":"zoom-out","magnifying-glass-minus":"zoom-out"},l=["add-user","align-center","align-left","align-right","angle-down","angle-left","angle-right","angle-up","apps-alpha","apps","arrow-s","arrows-h","arrows-v","assist-off","assist","backward","bandage","bars","bell2","beyond-logo","bold","border-dashed","border-dotted","border-solid","btmleft","btmright","btn-group-choose","building","button","calendar-days","calendar-dots-day","calendar-dots-month","calendar-dots-week","calendar-range","call-forward-alpha","call-forward","call-history","call-volume","callback","caret-down","caret-left","caret-right","caret-up","cc-custom-default","cc-delivery","cc-disconnected-system","cc-disconnected","cc-finance-invoice","cc-generic-application","cc-inbound-queue","cc-inbound","cc-missed-inbound","cc-outbound-call","cc-policy-contract","cc-web-session","cc-webchat-bot","cc-webchat-missed","chat-alert-muted","chat-alert","chat-alpha","chat-off-alpha","chat-off","check-circle","check-square","check","chevron-circle-collapse-double","chevron-circle-down","chevron-circle-expand-double","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-down","chevron-up","circle","close-preview","close-x","cog","comet","comment-ellipsis-off","comment-ellipsis","consultant","contact","cube","cubes","customer","customize-columns","dialpad","diamond","directory","drop-down","ellipsis-h","ellipsis-v","envelope","eye","fast-backward","fast-forward","favs-alpha","favs-full","favs","feedback","file-o","files-o","forward","genesys-logo-full","hangup","history","horz-container","house","ic-24-control-pause-solid","ic-24-control-pause","ic-24-control-play-solid","ic-24-control-play","ic-24-control-stop","ic-24-graph-bar-stack-vertical","ic-24-graph-bar-verticalertical","ic-24-graph-bar","ic-24-graph-edit","ic-24-graph-grid-cell","ic-24-graph-grid","ic-24-graph-line","ic-24-graph-stack","ic-24-graph-variable-2","ic-48-adjacent","ic-48-all","ic-48-control-pause","ic-48-control-play","ic-48-incoming","ic-48-outgoing","ic-access","ic-actionable-disable","ic-actionable-notset","ic-actionable","ic-add-bold","ic-add","ic-adjust","ic-agent-add","ic-agent-edit","ic-agent-group","ic-agent-like","ic-agent-offline","ic-agent-ready-partial","ic-agent-ready","ic-agent-search","ic-agent-time","ic-agent-unavailable","ic-agent","ic-aix","ic-alert-checkmark","ic-alert-circle","ic-alert-info","ic-alert-octo","ic-alert-triangle","ic-app-all","ic-app-chart","ic-app-generic","ic-app-layout","ic-app-table","ic-archive","ic-arrow-accordion","ic-arrow-disclosure","ic-arrow-down","ic-arrow-left-dbl","ic-arrow-left","ic-arrow-popover","ic-arrow-right-dbl","ic-arrow-right","ic-arrow-solid-down","ic-arrow-solid-left","ic-arrow-solid-right","ic-arrow-solid-up","ic-arrow-up","ic-attach","ic-audio-disable","ic-audio-music","ic-audio-no","ic-audio-rec-disable","ic-audio-rec","ic-audio-voice-disable","ic-audio-voice","ic-audio-yes","ic-autoscroll-off","ic-bar-graph-variable-1","ic-bar-graph-variable-2","ic-bell","ic-bezier","ic-biz-attribute-disable","ic-biz-attribute","ic-blocks","ic-book-address","ic-book-open-details","ic-break","ic-briefcase","ic-budget","ic-bug","ic-calculator","ic-calendar-day","ic-calendar-generic","ic-calendar-media-voice","ic-calendar-month-highlight","ic-calendar-month","ic-camera","ic-campaign-disable","ic-campaign-done","ic-campaign-schedule","ic-campaign-stop","ic-campaign","ic-cart","ic-cells","ic-certificate","ic-chat-add","ic-chat-disable","ic-chat-edit-disable","ic-chat-edit","ic-chat-end","ic-chat-forward","ic-chat-frown","ic-chat-multi","ic-chat-oval-close","ic-chat-oval-multi","ic-chat-oval-transfer","ic-chat-oval","ic-chat-smile","ic-chat-video","ic-chat","ic-checkbox-tick-lock","ic-checkbox-tick","ic-checkbox","ic-checklist-tick-lock","ic-checkmark-bold","ic-chevron-left","ic-chevron-right","ic-chevron-small-collapse-all","ic-chevron-small-expand-all","ic-chevron-small-left","ic-chevron-small-right","ic-circle-add","ic-circle-arrow-down","ic-circle-arrow-left","ic-circle-arrow-right","ic-circle-arrow-up","ic-circle-close","ic-circle-expand-down","ic-circle-expand-left","ic-circle-expand-right","ic-circle-expand-up","ic-cleanup","ic-clip-approve","ic-clip-exchange","ic-clip-list","ic-clipboard","ic-clock-b","ic-clock-stopwatch","ic-clock-timezone","ic-clock","ic-clone","ic-close-bold","ic-close","ic-cloud-a","ic-cloud-b","ic-cm-96-cloud","ic-cm-96-desktop","ic-cm-96-network","ic-cm-96-outbound","ic-cm-96-server-add","ic-cm-96-server","ic-cm-96-tenant","ic-cm-96-user","ic-cm-96-voice","ic-cobrowse-chat","ic-cobrowse-disable","ic-cobrowse-end","ic-cobrowse","ic-code","ic-collapse","ic-column-direction-active","ic-column-direction","ic-comment-corner","ic-conference-all-channels","ic-configuration-disable","ic-configuration","ic-contact-add","ic-contact-assign","ic-contact-delete","ic-contact-id-fetch","ic-contact-id","ic-contact-switch","ic-contract-a","ic-contract-b","ic-contract-c","ic-contract-d","ic-control-backward","ic-control-forward","ic-control-left","ic-control-right","ic-control-skip-left","ic-control-skip-next","ic-control-skip-previous","ic-control-skip-right","ic-control-stop","ic-copy","ic-credit-card","ic-cs-mobile","ic-cs-social","ic-cs-web","ic-currency-dollar-sign","ic-cut","ic-cx-24-flat-agent","ic-cx-24-flat-avatar","ic-cx-24-flat-cal","ic-cx-24-flat-chat","ic-cx-24-flat-cobrowse","ic-cx-24-flat-consult","ic-cx-24-flat-inbound","ic-cx-24-flat-lock","ic-cx-24-flat-mail","ic-cx-24-flat-offer","ic-cx-24-flat-outbound","ic-cx-24-flat-pref","ic-cx-24-flat-search","ic-cx-24-flat-survey","ic-cx-24-flat-vid","ic-cx-24-flat-vm","ic-dash","ic-dashtab-dash","ic-dashtab-settings","ic-dashtab-xwidget","ic-dialpad","ic-disclosure-left","ic-doc-add","ic-doc-alert-b","ic-doc-all-save","ic-doc-all","ic-doc-detail-add","ic-doc-detail","ic-doc-form-b","ic-doc-forward","ic-doc-generic-b","ic-doc-generic","ic-doc-list-b","ic-doc-list","ic-doc-no","ic-doc-phone-call","ic-doc-report-b","ic-doc-save","ic-doc-segmentation-b","ic-doc-yes-b","ic-doc-yes","ic-document-scenario","ic-double-down","ic-double-up","ic-download","ic-drag-out","ic-dropdown-arrow","ic-email-delete","ic-email-forward","ic-email-move-to-folder","ic-email-reply-all","ic-email-reply","ic-email-resend","ic-email-send","ic-email-transfer","ic-email","ic-enterprise-extension","ic-error-bold","ic-escalate-from","ic-escalate-to","ic-escalate","ic-event-cluster-mini","ic-event-cluster","ic-exit-full-screen","ic-expand-down","ic-expand-left","ic-expand-right","ic-expand-up","ic-expand","ic-export","ic-face-happy","ic-face-neutral","ic-face-sad","ic-face-solid-happy","ic-face-solid-sad","ic-face-unknown","ic-facebook-square","ic-file-folder-drawer","ic-files","ic-film-broadcast","ic-film","ic-filter","ic-finger-pointing","ic-folder-add","ic-folder-disabled","ic-folder-media","ic-folder-move","ic-folder-open-in","ic-folder-open-out","ic-folder-open","ic-folder-progress","ic-folder","ic-follow-disable","ic-follow","ic-font-bold","ic-font-decrease","ic-font-increase","ic-font-italic","ic-font-style","ic-font-underline","ic-full-screen","ic-gear-add","ic-gear-remove","ic-generic-disable","ic-generic-laptop","ic-generic-mobile-phone","ic-generic-pc","ic-generic-tablet","ic-generic","ic-globe","ic-google-plus-circle","ic-grab-verticalertical","ic-grab","ic-graph-bar","ic-graph-barline","ic-graph-bubble","ic-graph-chart","ic-graph-column","ic-graph-edit","ic-graph-grid","ic-graph-line","ic-graph-spark","ic-graph-stack","ic-grip-horizontal","ic-grip-vertical","ic-group","ic-help","ic-home","ic-host","ic-hp","ic-import","ic-in-small","ic-in","ic-inbound","ic-insert-block-left","ic-insert-block-right","ic-inspect-chat-disable","ic-inspect-chat","ic-inspect-disable","ic-inspect-phone-disable","ic-inspect-phone","ic-inspect-star","ic-inspect","ic-ivr-disable","ic-ivr","ic-iw-24-line-help","ic-iw-24-line-notification","ic-iw-24-line-teamcommunicator","ic-iw-24-line-voicemail","ic-iw-active-circle-callback","ic-iw-active-circle-campaign","ic-iw-active-circle-chat-round","ic-iw-active-circle-chat-square","ic-iw-active-circle-doc","ic-iw-active-circle-email","ic-iw-active-circle-facebook","ic-iw-active-circle-globe","ic-iw-active-circle-media","ic-iw-active-circle-phone-cancel","ic-iw-active-circle-phone-conf-susp","ic-iw-active-circle-phone-conf","ic-iw-active-circle-phone-dial","ic-iw-active-circle-phone-pause","ic-iw-active-circle-phone-play","ic-iw-active-circle-phone-susp","ic-iw-active-circle-phone-voice","ic-iw-active-circle-question","ic-iw-active-circle-rss","ic-iw-active-circle-twitter","ic-iw-active-circle-voice-chat","ic-iw-active-circle-voice","ic-iw-active-square-view","ic-iw-arrow-outline-in","ic-iw-circle-no-add","ic-iw-circle-no-chevron-down","ic-iw-circle-no-chevron-up","ic-iw-circle-yes-add","ic-iw-circle-yes-chevron-down","ic-iw-circle-yes-chevron-up","ic-iw-control-circle-back","ic-iw-control-circle-fwd","ic-iw-control-circle-home","ic-iw-control-circle-play","ic-iw-control-circle-stop","ic-iw-done-and-stop","ic-iw-history","ic-iw-in-progress","ic-iw-inspect-email","ic-iw-inspect-voice-cancel","ic-iw-inspect-voice","ic-iw-monitor-chat","ic-iw-monitor-voice","ic-iw-queue","ic-iw-routing-point","ic-iw-save-as","ic-iw-save","ic-iw-square-facebook-email","ic-iw-square-facebook-no","ic-iw-square-facebook-transfer","ic-iw-square-facebook-workbin","ic-iw-square-rss-transfer","ic-iw-square-rss-workbin","ic-iw-square-twitter-follow","ic-iw-square-twitter-no","ic-iw-square-twitter-transfer","ic-iw-square-twitter-workbin","ic-iw-video-suspend","ic-iw-video-thumb-cancel","ic-iw-video-thumb-show","ic-iw-video-thumb-swap","ic-iw-voice-inspect-cancel","ic-iw-voice-inspect","ic-key-dot-dashed","ic-link","ic-linkedin-square","ic-linux","ic-list-bullets","ic-list-numbers","ic-locked","ic-login-checkmark","ic-login-error","ic-login-info","ic-lunch","ic-measure-growing","ic-measure-point-in-time","ic-measure-sliding","ic-measure-today","ic-menu-hamburger","ic-merge","ic-mini-close","ic-minimize","ic-moon-default","ic-more","ic-ms","ic-multiples","ic-network","ic-note-add","ic-note","ic-notebook","ic-number-sign","ic-open-book","ic-out-small","ic-out","ic-outbound","ic-page-multi","ic-page-search","ic-page-single","ic-palette","ic-parameter-group","ic-parameter","ic-paste","ic-pc-mobile-phone","ic-pencil","ic-people-chat","ic-people","ic-person","ic-phone-add","ic-phone-bell","ic-phone-chat-media","ic-phone-conference","ic-phone-decline","ic-phone-dial","ic-phone-disabled","ic-phone-forward","ic-phone-hang-up","ic-phone-hold","ic-phone-incoming","ic-phone-pause","ic-phone-rec-pause","ic-phone-rec-resume","ic-phone-rec-stop","ic-phone-rec","ic-phone-voice-retrieve","ic-phone-voice","ic-phone","ic-phones","ic-picture","ic-pie-chart","ic-pin-alert","ic-pin-check","ic-pin-solid-add","ic-pin-solid-remove","ic-pin-solid","ic-pin-text","ic-pin-time","ic-pin-zoom-in","ic-pin-zoom-out","ic-pin","ic-pinned","ic-pinterest-circle","ic-play-list","ic-pointing-in-hand","ic-printer","ic-progress-bar","ic-quotes","ic-radio-active","ic-radio","ic-rebuild","ic-redo","ic-refresh-with-feedback","ic-refresh","ic-reload","ic-remember","ic-reset","ic-rewind-five-seconds","ic-routing","ic-rss-square","ic-rss","ic-screen-rec-pause","ic-screen-rec-record","ic-screen-rec-resume","ic-screen-rec-stop","ic-scrubber","ic-search-next","ic-search-previous","ic-search","ic-searched-term","ic-secure","ic-segmentation","ic-select-no","ic-select-yes","ic-select","ic-server-add","ic-server","ic-settings-gear","ic-settings-gears","ic-settings-sliders","ic-share","ic-sharethis","ic-shrinkage","ic-shuffle","ic-site-disable","ic-site","ic-skills","ic-slide-back","ic-slide-fwd","ic-small-checkmark","ic-small-close","ic-small-plus","ic-sms-cancel","ic-sms-message","ic-sms-reply","ic-sms-transfer","ic-solaris","ic-sort-left-right","ic-sort-up-down","ic-special-g-brandmark","ic-stamp","ic-star-edit","ic-star-half","ic-star-outline","ic-stars-add","ic-stars-lock","ic-stars-remove","ic-stars","ic-status-aftercallwork","ic-status-available-no","ic-status-available-yes","ic-status-bad","ic-status-call-dialing","ic-status-call-inbound","ic-status-call-internal","ic-status-call-outbound","ic-status-call-ringing","ic-status-chat","ic-status-email","ic-status-good","ic-status-hook-off","ic-status-hook-on","ic-status-interaction","ic-status-logged-off","ic-status-logged-on","ic-status-monitored-no","ic-status-monitored-yes","ic-status-onhold","ic-status-queue-empty","ic-status-queue-full","ic-status-queue-part-full","ic-status-ready-blocked","ic-status-ready-no","ic-status-ready-partial","ic-status-ready-yes","ic-status-unknown","ic-sun-default","ic-superviser-chat-cancel","ic-supervisor-cancel","ic-supervisor-chat","ic-supervisor-voice-cancel","ic-supervisor-voice","ic-supervisor","ic-swap","ic-switch-disable","ic-switch","ic-symbol-man","ic-symbol-woman","ic-tag-stat-add","ic-tag-stat-remove","ic-tag","ic-target","ic-team-communicator-team-communicator","ic-team-communicator","ic-tenant-disable","ic-tenant","ic-text-centered","ic-text-detail","ic-text-generic","ic-text-indent-left","ic-text-indent-right","ic-text-justify-center","ic-text-justify-full","ic-text-justify-left","ic-text-justify-right","ic-text-spelling","ic-thumbs-down","ic-thumbs-up","ic-tick","ic-timeline","ic-toggle-off","ic-toggle-on","ic-toggle","ic-training","ic-transfer-all-channels","ic-transfer-common","ic-transfer","ic-trash","ic-tree-branch","ic-twitter-square","ic-twitter","ic-undo","ic-unlocked","ic-unmerge","ic-upload","ic-video-add","ic-video-disable","ic-video-end","ic-video-forward","ic-video-pause","ic-video-roster","ic-video-voice","ic-video","ic-videocam-1-disable","ic-videocam-1","ic-videocam-2-disable","ic-videocam-2","ic-view-details-bottom","ic-view-details-right","ic-view-grid","ic-view-list","ic-view-lists","ic-view-stacked","ic-view-tree","ic-voicemail","ic-window-contract","ic-window-expand","ic-zoom-in","ic-zoom-out","image","inbox-alpha","input","interaction-sound","interactions-alpha","interactions-off-alpha","interactions","italic","justify-center","justify-left","justify-right","layers","link-broken","list-square","listbox","logo-genesys","magnifying-glass-minus","magnifying-glass-plus","magnifying-glass","marker","mic-off","mic-talking","mic","minus-circle","missed-call","mixer","monitor","move-file","multi-agent-lines","notification-chat","notification-email","notification-phone","notification-score-chat","notification-score-email","notification-score-phone","numeric-spinner","organization","outbound-call","paint-bucket","paperclip","pause-secure","pause","pc-group","pc-user","pencil-square","person-circle","phone-active-1","phone-active-2","phone-active-3","phone-alpha","phone-off-alpha","phone-off","phone-picker","phone-ring-muted","phone-ring","pixel-unit","play","plus-circle","plus","pop-out","preview","progress-pie","puzzle","question-with-screen","question","radio-button","repeat","reset-view","resize-handle","robot-circle","robot-head","scissors","screen-full","screen-small","screenshare","scripter-inverse","sign-out","sitemap","sms-message","sort-numeric-asc","star","steal","step-backward","step-forward","stop","template","text","thumbtack-off","thumbtack-on","topleft","topright","trashcan","triangle","twitter-white-on-blue","underline","undo","vert-container","viber-icon","video-alpha","video-off-alpha","video-off","volume-off-alt","volume-off","warning","whistle","wrap-up-code"],n=new Map;function s(i){return r[i]?r[i]:l.includes(i)?`legacy/${i}`:i}async function d(c){const e=function(i){return i.replace("/","-")}(c),a=await n.get(e);if(a)return a;const o=async function(c){const e=await fetch(i(`./icons/${c}.svg`));if(200===e.status)return e.text();throw new Error(`[gux-icon] fetching failed for icon "${c}" with status "${e.statusText} (${e.status})".`)}(c).then((i=>i)).catch((i=>(setTimeout((()=>{throw i}),0),d("unknown"))));return n.set(e,o),o}function p(i,c){i||c||t("gux-icon","No screenreader-text provided. Either provide a localized screenreader-text property or set `decorative` to true.")}const h=class{constructor(i){c(this,i),this.decorative=!1,this.screenreaderText=""}async prepIcon(i){if(i){const c=s(i);this.baseSvgHtml=await d(c),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}}watchDecorative(i){p(i,this.screenreaderText),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}watchScreenreaderText(i){p(this.decorative,i),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}async componentWillLoad(){o(this.root,{variant:s(this.iconName)}),await this.prepIcon(this.iconName)}componentDidLoad(){p(this.decorative,this.screenreaderText)}getSvgWithAriaAttributes(i){const c=(new DOMParser).parseFromString(i,"image/svg+xml").firstChild;return c.setAttribute("aria-hidden",this.decorative?String(this.decorative):"false"),this.screenreaderText?c.setAttribute("aria-label",this.screenreaderText):c.removeAttribute("aria-label"),c.outerHTML}render(){return this.svgHtml&&e("div",{class:"gux-icon-container",innerHTML:this.svgHtml})}static get assetsDirs(){return["icons"]}get root(){return a(this)}static get watchers(){return{iconName:["prepIcon"],decorative:["watchDecorative"],screenreaderText:["watchScreenreaderText"]}}};h.style=":host{display:inline-flex;width:1em;height:1em}.gux-icon-container{display:flex;align-items:center;justify-content:center;width:100%}.gux-icon-container svg{width:100%;max-width:100%;height:100%;max-height:100%;fill:currentcolor}";export{h as gux_icon}
1
+ import{a as i,r as c,h as e,g as a}from"./p-e571f861.js";import{t as o}from"./p-c4dce34e.js";import{l as t}from"./p-3184268e.js";const r={"ic-agent":"agent",consultant:"agent","ic-agent-group":"agent-group","pc-user":"user","ic-person":"user",customer:"user",interactions:"user-interactions","interaction-sound":"user-interactions","add-user":"user-add","ic-contact-add":"user-add","pc-group":"user-group","ic-people":"user-group","ic-group":"user-group",users:"user-group","ic-contact-id":"user-contact-id",contact:"user-contact-id","person-circle":"user-circle",directory:"user-directory","multi-agent-lines":"user-directory","ic-cobrowse":"cobrowse",screenshare:"cobrowse","ic-face-happy":"face-happy","ic-face-neutral":"face-neutral","ic-face-sad":"face-sad","ic-face-happy-solid":"face-happy-solid","ic-face-sad-solid":"face-sad-solid","cc-custom-default":"cjv-custom-default","cc-web-session":"cjv-web-session","cc-delivery":"cjv-delivery","cc-policy-contract":"cjv-policy-contract","cc-generic-application":"cjv-generic-application","cc-finance-invoice":"cjv-finance-invoice","beyond-logo":"product-logo-beyond","ic-special-g-brandmark":"product-logo-g","logo-genesys":"product-logo-g","interactions-alpha":"toolbar-interactions","interactions-off-alpha":"toolbar-interactions-disable",assist:"toolbar-assist","assist-off":"toolbar-assist-disable","chat-alpha":"toolbar-chat","chat-off-alpha":"toolbar-chat-disable","phone-alpha":"toolbar-phone","phone-off-alpha":"toolbar-phone-disable","phone-active-1":"toolbar-phone-active-1","phone-active-2":"toolbar-phone-active-2","phone-active-3":"toolbar-phone-active-3","video-alpha":"toolbar-video","video-off-alpha":"toolbar-video-disable","apps-alpha":"toolbar-apps",apps:"toolbar-apps-disable","favs-alpha":"toolbar-favourite","inbox-alpha":"toolbar-inbox",question:"toolbar-help","ic-phone":"phone","notification-phone":"phone","ic-phone-forward":"phone-forward","call-forward":"phone-forward","call-forward-alpha":"phone-forward","ic-phone-bell":"phone-bell","phone-ring":"phone-bell","ic-phone-voice":"phone-voice","call-volume":"phone-voice","ic-phone-disabled":"phone-disable","ic-phone-disable":"phone-disable","phone-off":"phone-disable","cc-disconnected-system":"phone-disable","cc-disconnected":"phone-disable","ic-phone-hold":"phone-hold","call-history":"phone-call-history","outbound-call":"phone-outbound","cc-outbound-call":"phone-outbound","missed-call":"phone-missed-call","cc-missed-inbound":"phone-missed-call",callback:"phone-callback",hangup:"phone-hangup","ic-phone-hang-up":"phone-hangup","ic-voicemail":"voicemail","ic-dialpad":"phone-dialpad","ic-phone-dail":"phone-dialpad",dialpad:"phone-dialpad","ic-status-call-dialing":"phone-dialpad","ic-status-chat":"chat","ic-chat":"chat","ic-chat-oval":"chat","notification-chat":"chat","cc-webchat-bot":"chat","cc-webchat-missed":"chat","ic-text-detail":"chat","iic-chat-oval-close":"chat-close","iic-chat-end":"chat-close","ic-chat-disable":"chat-disable","chat-off":"chat-disable","ic-chat-oval-multi":"chat-multi","ic-chat-multi":"chat-multi","chat-alert":"chat-bell","ic-email":"message-email","ic-status-email":"message-email","ic-cx-24-flat-mail":"message-email",envelope:"message-email","notification-email":"message-email","reply-standard":"message-reply","forward-standard":"message-forward","ic-attach":"attachment",paperclip:"attachment","ic-video":"video","ic-video-disable":"video-disable","video-off":"video-disable","ic-audio-rec":"microphone",mic:"microphone","ic-audio-rec-disable":"microphone-disable","mic-off":"microphone-disable","mic-talking":"microphone-talking","ic-audio-yes":"volume-up","ic-audio-no":"volume-none","volume-off-alt":"volume-none","ic-audio-disable":"volume-disable","volume-off":"volume-disable","ic-audio-music":"music","ic-control-skip-left":"control-skip-left",backward:"control-skip-left","ic-control-skip-right":"control-skip-right",forward:"control-skip-right","ic-control-backward":"control-start","fast-backward":"control-start","ic-control-forward":"control-end","fast-forward":"control-end","ic-slide-fwd":"control-slide-forward","step-forward":"control-slide-forward","ic-slide-back":"control-slide-back","step-backward":"control-slide-back",play:"control-play","ic-24-control-play-solid":"control-play","ic-control-stop":"control-stop",stop:"control-stop",pause:"control-pause","ic-24-control=pause-solid":"control-pause","ic-generic-pc":"device-pc",monitor:"device-pc","ic-video-cam-1":"webcam","ic-videocam-2":"webcam","ic-video-cam-1-disable":"webcam-disable","ic-videocam-2-disable":"webcam-disable","ic-sms-cancel":"sms-close","sms-cancel":"sms-close","ic-sms-message":"sms","sms-message":"sms","ic-generic-laptop":"device-laptop","ic-generic-tablet":"device-tablet","ic-camera":"device-camera","ic-host":"device-server","ic-phones":"device-cellphone","ic-generic-mobile-phone":"device-headphones","ic-folder":"folder","ic-folder-open":"folder-open","ic-folder-add":"folder-add","file-o":"file","ic-page-single":"file","ic-doc-list":"file","ic-doc-generic":"file","files-o":"file-all","ic-page-multi":"file-all","ic-doc-all":"file-all","ic-doc-report-b":"file-report",image:"file-image-landscape","ic-picture":"file-image-landscape","ic-doc-detail":"file-text",preview:"file-preview","ic-page-search":"file-preview",unassign:"upload","ic-upload":"upload","ic-download":"download",feedback:"comments","comment-ellipsis":"comments","comment-ellipsis-off":"comments-disable","ic-thumbs-up":"thumbs-up","ic-thumbs-down":"thumbs-down","ic-24-graph-edit":"edit","ic-graph-edit":"edit","ic-pencil":"edit","ic-multiples":"clone","ic-clone":"clone","ic-copy":"copy","ic-paste":"paste","ic-clipboard":"clipboard",scissors:"cut","ic-cut":"cut","ic-trash":"delete","ic-refresh-with-feedback":"refresh","ic-reload":"refresh","ic-refresh":"refresh","ic-reset":"reset","pop-out":"window-popout","ic-outbound":"window-popout","ic-exit-full-screen":"window-contract","screen-small":"window-contract","ic-window-contract":"window-contract","ic-full-screen":"window-fullscreen","screen-full":"window-fullscreen","ic-window-expand":"window-fullscreen","ic-drag-out":"window-drag-out","ic-actual-size":"actual-size","ic-app-generic":"app-generic","ic-app-chart":"app-chart","ic-app-layout":"app-layout",template:"app-layout","ic-biz-attribute":"app-table","ic-app-table":"app-table","ic-circle-add":"add-circle","plus-circle":"add-circle","ic-timeline":"timeline",history:"timeline","ic-clock":"clock-outline","ic-clock-b":"clock","ic-quotes":"quote-right","robot-head":"bot","robot-circle":"bot",education:"skills","ic-skills":"skills","ic-campaign":"campaign","ic-actionable":"bolt","ic-palette":"palette","ic-tenant":"tenant",cube:"tenant","ic-lunch":"lunch",cubes:"configuration","ic-configuration":"configuration","ic-stamp":"stamp","ic-ivr":"record","ic-follow":"follow","paint-bucket":"paint","ic-dash":"dash","ic-generic":"generic",signal:"low-bandwidth","ic-settings-gear":"settings","ic-settings-gears":"settings",cog:"settings","reset-view":"settings","ic-dashtab-settings":"settings",cogs:"settings","ic-locked":"lock","ic-secure":"lock","pause-secure":"lock","ic-link":"link","ic-unlocked":"unlock","ic-unlinked":"unlink","link-broken":"unlink","ic-certificate":"certificate","ic-access":"key","ic-sun-default":"sun","ic-moon-default":"moon","ic-app-all":"view-all","ic-cells":"view-cells","customize-columns":"view-cells","ic-view-lists":"view-lists","ic-view-list":"view-list",list:"view-list","ic-view-stacked":"view-stacked","stacked-mode":"view-stacked","ic-view-grid":"view-grid","grid-mode":"view-grid","ic-video-roster":"view-roster","ic-inspect":"inspect",eye:"inspect","ic-status-monitored-yes":"inspect","ic-inspect-disable":"inspect-disable",hide:"inspect-disable",whistle:"coaching","ic-rss":"rss","ic-rss-square":"rss","ic-twitter":"twitter","ic-twitter-square":"twitter","twitter-white-on-blue":"twitter","ic-facebook-square":"facebook","ic-linkedin-square":"linkedin","ic-share":"share","ic-sharethis":"share","viber-icon":"viber","at-thin":"at","ic-arrow-up":"arrow-up","long-up-arrow":"arrow-up","ic-arrow-down":"arrow-down","ic-arrow-left":"arrow-left","ic-arrow-right":"arrow-right","ic-escalate":"arrow-up-right","ic-out-small":"arrow-up-left","ic-in-small":"arrow-down-right","ic-iw-arrow-outline-in":"arrow-down-right","ic-chevron-left":"chevron-left","ic-chevron-right":"chevron-right","ic-transfer":"transfer",exchange:"transfer","ic-bar-graph-variable-1":"graph-bar-horizontal","ic-graph-barline":"graph-bar-horizontal","ic-24-graph-bar":"graph-bar-horizontal","ic-graph-bar":"graph-bar-horizontal","ic-graph-stack":"graph-bar-horizontal","ic-24-graph-stack":"graph-bar-horizontal","ic-bar-graph-variable-2":"graph-bar-vertical","ic-24-graph-bar-verticalertical":"graph-bar-vertical","ic-24-graph-stack-vertical":"graph-bar-vertical","ic-graph-line":"graph-line","ic-graph-chart":"graph-chart","ic-graph-spark":"graph-spark","ic-pie-chart":"graph-pie","ic-pin-time":"pin-location","ic-pin":"pin-location",marker:"pin-location","thumbtack-on":"pin","ic-pinned":"pin","ic-server":"server","ic-globe":"globe","ic-home":"home",house:"home","ic-cloud-b":"cloud","up-cloud":"cloud","ic-cloud-a":"cloud-outline","ic-site":"site",building:"site","ic-search":"search","magnifying-glass":"search","ic-calendar-generic":"calendar","ic-calendar-month":"calendar","ic-calendar-month-highlight":"calendar","ic-calendar-day":"calendar","calendar-days":"calendar","calendar-range":"calendar","ic-select-no":"checkbox","ic-checkbox":"checkbox","ic-checkbox-tick":"checkbox-active","ic-checkbox-tick-lock":"checkbox-active","ic-checklist-tick-lock":"checkbox-active","check-square":"checkbox-active","ic-select-yes":"checkbox-partial","ic-radio":"radio","ic-radio-active":"radio-active","radio-button":"radio-active","ic-add":"add",plus:"add","ic-iw-circle-no-add":"add","ic-close":"close","close-x":"close",remove:"close","ic-arrow-solid-up":"arrow-solid-up","ic-expand-up":"arrow-solid-up","caret-up":"arrow-solid-up","ic-search-previous":"arrow-solid-up","chevron-circle-up":"arrow-solid-up","ic-arrow-solid-down":"arrow-solid-down","ic-expand-down":"arrow-solid-down","caret-down":"arrow-solid-down","ic-search-next":"arrow-solid-down","chevron-circle-down":"arrow-solid-down","ic-arrow-solid-left":"arrow-solid-left","ic-expand-left":"arrow-solid-left","caret-left":"arrow-solid-left","ic-control-left":"arrow-solid-left","chevron-circle-left":"arrow-solid-left","ic-arrow-solid-right":"arrow-solid-right","ic-expand-right":"arrow-solid-right","caret-right":"arrow-solid-right","ic-control-right":"arrow-solid-right","chevron-circle-right":"arrow-solid-right","ic-dropdown-arrow":"chevron-small-down","ic-iw-circle-no-chevron-down":"chevron-small-down","ic-arrow-accordian":"chevron-small-down","ic-iw-circle-no-chevron-up":"chevron-small-up","ic-chevron-small-left":"chevron-small-left","angle-left":"chevron-small-left","ic-chevron-small-right":"chevron-small-right","angle-right":"chevron-small-right","ic-arrow-left-dbl":"chevron-double-left","ic-disclosure-left":"chevron-double-left","ic-arrow-right-dbl":"chevron-double-right","ic-arrow-disclosure":"chevron-double-right","ic-stars":"rating-active","favs-full":"rating-active",favs:"rating-active",star:"rating-active","ic-star-outline":"rating","ic-star-half":"rating-partial","ic-tick":"checkmark","ic-small-checkmark":"checkmark",check:"checkmark","ic-campaign-done":"checkmark","ic-more":"menu-kebab-vertical","ellipsis-v":"menu-kebab-vertical","ellipsis-h":"manu-kebab-h","ic-filter":"filter","ic-menu-hamburger":"menu",bars:"menu","ic-alert-checkmark":"alert-success","ic-login-checkmark":"alert-success","check-circle":"alert-success","ic-alert-triangle":"alert-warning-triangle","ic-alert-octo":"alert-warning-octogon","ic-alert-circle":"alert-warning-octogon","ic-iw-done-and-stop":"alert-warning-octogon",warning:"alert-warning-octogon","ic-tag":"tag","ic-tag-stat-remove":"tag-remove","ic-tag-stat-add":"tag-add","chevron-circle-collapse-double":"collapse","chevron-circle-expand-double":"expand","ic-grip-horizontal":"grab-horizontal","ic-grab":"grab-horizontal","ic-grip-vertical":"grab-vertical","ic-grab-verticalertical":"grab-vertical","sign-out":"logout","ic-out":"logout","ic-export":"logout","ic-status-call-ringing":"bell",bell2:"bell","ic-bell":"bell","ic-bug":"bug","ic-alert-info":"alert-info","ic-login-info":"alert-info","info-thick":"alert-info","ic-zoom-in":"zoom-in","magnifying-glass-plus":"zoom-in","ic-zoom-out":"zoom-out","magnifying-glass-minus":"zoom-out"},l=["add-user","align-center","align-left","align-right","angle-down","angle-left","angle-right","angle-up","apps-alpha","apps","arrow-s","arrows-h","arrows-v","assist-off","assist","backward","bandage","bars","bell2","beyond-logo","bold","border-dashed","border-dotted","border-solid","btmleft","btmright","btn-group-choose","building","button","calendar-days","calendar-dots-day","calendar-dots-month","calendar-dots-week","calendar-range","call-forward-alpha","call-forward","call-history","call-volume","callback","caret-down","caret-left","caret-right","caret-up","cc-custom-default","cc-delivery","cc-disconnected-system","cc-disconnected","cc-finance-invoice","cc-generic-application","cc-inbound-queue","cc-inbound","cc-missed-inbound","cc-outbound-call","cc-policy-contract","cc-web-session","cc-webchat-bot","cc-webchat-missed","chat-alert-muted","chat-alert","chat-alpha","chat-off-alpha","chat-off","check-circle","check-square","check","chevron-circle-collapse-double","chevron-circle-down","chevron-circle-expand-double","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-down","chevron-up","circle","close-preview","close-x","cog","comet","comment-ellipsis-off","comment-ellipsis","consultant","contact","cube","cubes","customer","customize-columns","dialpad","diamond","directory","drop-down","ellipsis-h","ellipsis-v","envelope","eye","fast-backward","fast-forward","favs-alpha","favs-full","favs","feedback","file-o","files-o","forward","genesys-logo-full","hangup","history","horz-container","house","ic-24-control-pause-solid","ic-24-control-pause","ic-24-control-play-solid","ic-24-control-play","ic-24-control-stop","ic-24-graph-bar-stack-vertical","ic-24-graph-bar-verticalertical","ic-24-graph-bar","ic-24-graph-edit","ic-24-graph-grid-cell","ic-24-graph-grid","ic-24-graph-line","ic-24-graph-stack","ic-24-graph-variable-2","ic-48-adjacent","ic-48-all","ic-48-control-pause","ic-48-control-play","ic-48-incoming","ic-48-outgoing","ic-access","ic-actionable-disable","ic-actionable-notset","ic-actionable","ic-add-bold","ic-add","ic-adjust","ic-agent-add","ic-agent-edit","ic-agent-group","ic-agent-like","ic-agent-offline","ic-agent-ready-partial","ic-agent-ready","ic-agent-search","ic-agent-time","ic-agent-unavailable","ic-agent","ic-aix","ic-alert-checkmark","ic-alert-circle","ic-alert-info","ic-alert-octo","ic-alert-triangle","ic-app-all","ic-app-chart","ic-app-generic","ic-app-layout","ic-app-table","ic-archive","ic-arrow-accordion","ic-arrow-disclosure","ic-arrow-down","ic-arrow-left-dbl","ic-arrow-left","ic-arrow-popover","ic-arrow-right-dbl","ic-arrow-right","ic-arrow-solid-down","ic-arrow-solid-left","ic-arrow-solid-right","ic-arrow-solid-up","ic-arrow-up","ic-attach","ic-audio-disable","ic-audio-music","ic-audio-no","ic-audio-rec-disable","ic-audio-rec","ic-audio-voice-disable","ic-audio-voice","ic-audio-yes","ic-autoscroll-off","ic-bar-graph-variable-1","ic-bar-graph-variable-2","ic-bell","ic-bezier","ic-biz-attribute-disable","ic-biz-attribute","ic-blocks","ic-book-address","ic-book-open-details","ic-break","ic-briefcase","ic-budget","ic-bug","ic-calculator","ic-calendar-day","ic-calendar-generic","ic-calendar-media-voice","ic-calendar-month-highlight","ic-calendar-month","ic-camera","ic-campaign-disable","ic-campaign-done","ic-campaign-schedule","ic-campaign-stop","ic-campaign","ic-cart","ic-cells","ic-certificate","ic-chat-add","ic-chat-disable","ic-chat-edit-disable","ic-chat-edit","ic-chat-end","ic-chat-forward","ic-chat-frown","ic-chat-multi","ic-chat-oval-close","ic-chat-oval-multi","ic-chat-oval-transfer","ic-chat-oval","ic-chat-smile","ic-chat-video","ic-chat","ic-checkbox-tick-lock","ic-checkbox-tick","ic-checkbox","ic-checklist-tick-lock","ic-checkmark-bold","ic-chevron-left","ic-chevron-right","ic-chevron-small-collapse-all","ic-chevron-small-expand-all","ic-chevron-small-left","ic-chevron-small-right","ic-circle-add","ic-circle-arrow-down","ic-circle-arrow-left","ic-circle-arrow-right","ic-circle-arrow-up","ic-circle-close","ic-circle-expand-down","ic-circle-expand-left","ic-circle-expand-right","ic-circle-expand-up","ic-cleanup","ic-clip-approve","ic-clip-exchange","ic-clip-list","ic-clipboard","ic-clock-b","ic-clock-stopwatch","ic-clock-timezone","ic-clock","ic-clone","ic-close-bold","ic-close","ic-cloud-a","ic-cloud-b","ic-cm-96-cloud","ic-cm-96-desktop","ic-cm-96-network","ic-cm-96-outbound","ic-cm-96-server-add","ic-cm-96-server","ic-cm-96-tenant","ic-cm-96-user","ic-cm-96-voice","ic-cobrowse-chat","ic-cobrowse-disable","ic-cobrowse-end","ic-cobrowse","ic-code","ic-collapse","ic-column-direction-active","ic-column-direction","ic-comment-corner","ic-conference-all-channels","ic-configuration-disable","ic-configuration","ic-contact-add","ic-contact-assign","ic-contact-delete","ic-contact-id-fetch","ic-contact-id","ic-contact-switch","ic-contract-a","ic-contract-b","ic-contract-c","ic-contract-d","ic-control-backward","ic-control-forward","ic-control-left","ic-control-right","ic-control-skip-left","ic-control-skip-next","ic-control-skip-previous","ic-control-skip-right","ic-control-stop","ic-copy","ic-credit-card","ic-cs-mobile","ic-cs-social","ic-cs-web","ic-currency-dollar-sign","ic-cut","ic-cx-24-flat-agent","ic-cx-24-flat-avatar","ic-cx-24-flat-cal","ic-cx-24-flat-chat","ic-cx-24-flat-cobrowse","ic-cx-24-flat-consult","ic-cx-24-flat-inbound","ic-cx-24-flat-lock","ic-cx-24-flat-mail","ic-cx-24-flat-offer","ic-cx-24-flat-outbound","ic-cx-24-flat-pref","ic-cx-24-flat-search","ic-cx-24-flat-survey","ic-cx-24-flat-vid","ic-cx-24-flat-vm","ic-dash","ic-dashtab-dash","ic-dashtab-settings","ic-dashtab-xwidget","ic-dialpad","ic-disclosure-left","ic-doc-add","ic-doc-alert-b","ic-doc-all-save","ic-doc-all","ic-doc-detail-add","ic-doc-detail","ic-doc-form-b","ic-doc-forward","ic-doc-generic-b","ic-doc-generic","ic-doc-list-b","ic-doc-list","ic-doc-no","ic-doc-phone-call","ic-doc-report-b","ic-doc-save","ic-doc-segmentation-b","ic-doc-yes-b","ic-doc-yes","ic-document-scenario","ic-double-down","ic-double-up","ic-download","ic-drag-out","ic-dropdown-arrow","ic-email-delete","ic-email-forward","ic-email-move-to-folder","ic-email-reply-all","ic-email-reply","ic-email-resend","ic-email-send","ic-email-transfer","ic-email","ic-enterprise-extension","ic-error-bold","ic-escalate-from","ic-escalate-to","ic-escalate","ic-event-cluster-mini","ic-event-cluster","ic-exit-full-screen","ic-expand-down","ic-expand-left","ic-expand-right","ic-expand-up","ic-expand","ic-export","ic-face-happy","ic-face-neutral","ic-face-sad","ic-face-solid-happy","ic-face-solid-sad","ic-face-unknown","ic-facebook-square","ic-file-folder-drawer","ic-files","ic-film-broadcast","ic-film","ic-filter","ic-finger-pointing","ic-folder-add","ic-folder-disabled","ic-folder-media","ic-folder-move","ic-folder-open-in","ic-folder-open-out","ic-folder-open","ic-folder-progress","ic-folder","ic-follow-disable","ic-follow","ic-font-bold","ic-font-decrease","ic-font-increase","ic-font-italic","ic-font-style","ic-font-underline","ic-full-screen","ic-gear-add","ic-gear-remove","ic-generic-disable","ic-generic-laptop","ic-generic-mobile-phone","ic-generic-pc","ic-generic-tablet","ic-generic","ic-globe","ic-google-plus-circle","ic-grab-verticalertical","ic-grab","ic-graph-bar","ic-graph-barline","ic-graph-bubble","ic-graph-chart","ic-graph-column","ic-graph-edit","ic-graph-grid","ic-graph-line","ic-graph-spark","ic-graph-stack","ic-grip-horizontal","ic-grip-vertical","ic-group","ic-help","ic-home","ic-host","ic-hp","ic-import","ic-in-small","ic-in","ic-inbound","ic-insert-block-left","ic-insert-block-right","ic-inspect-chat-disable","ic-inspect-chat","ic-inspect-disable","ic-inspect-phone-disable","ic-inspect-phone","ic-inspect-star","ic-inspect","ic-ivr-disable","ic-ivr","ic-iw-24-line-help","ic-iw-24-line-notification","ic-iw-24-line-teamcommunicator","ic-iw-24-line-voicemail","ic-iw-active-circle-callback","ic-iw-active-circle-campaign","ic-iw-active-circle-chat-round","ic-iw-active-circle-chat-square","ic-iw-active-circle-doc","ic-iw-active-circle-email","ic-iw-active-circle-facebook","ic-iw-active-circle-globe","ic-iw-active-circle-media","ic-iw-active-circle-phone-cancel","ic-iw-active-circle-phone-conf-susp","ic-iw-active-circle-phone-conf","ic-iw-active-circle-phone-dial","ic-iw-active-circle-phone-pause","ic-iw-active-circle-phone-play","ic-iw-active-circle-phone-susp","ic-iw-active-circle-phone-voice","ic-iw-active-circle-question","ic-iw-active-circle-rss","ic-iw-active-circle-twitter","ic-iw-active-circle-voice-chat","ic-iw-active-circle-voice","ic-iw-active-square-view","ic-iw-arrow-outline-in","ic-iw-circle-no-add","ic-iw-circle-no-chevron-down","ic-iw-circle-no-chevron-up","ic-iw-circle-yes-add","ic-iw-circle-yes-chevron-down","ic-iw-circle-yes-chevron-up","ic-iw-control-circle-back","ic-iw-control-circle-fwd","ic-iw-control-circle-home","ic-iw-control-circle-play","ic-iw-control-circle-stop","ic-iw-done-and-stop","ic-iw-history","ic-iw-in-progress","ic-iw-inspect-email","ic-iw-inspect-voice-cancel","ic-iw-inspect-voice","ic-iw-monitor-chat","ic-iw-monitor-voice","ic-iw-queue","ic-iw-routing-point","ic-iw-save-as","ic-iw-save","ic-iw-square-facebook-email","ic-iw-square-facebook-no","ic-iw-square-facebook-transfer","ic-iw-square-facebook-workbin","ic-iw-square-rss-transfer","ic-iw-square-rss-workbin","ic-iw-square-twitter-follow","ic-iw-square-twitter-no","ic-iw-square-twitter-transfer","ic-iw-square-twitter-workbin","ic-iw-video-suspend","ic-iw-video-thumb-cancel","ic-iw-video-thumb-show","ic-iw-video-thumb-swap","ic-iw-voice-inspect-cancel","ic-iw-voice-inspect","ic-key-dot-dashed","ic-link","ic-linkedin-square","ic-linux","ic-list-bullets","ic-list-numbers","ic-locked","ic-login-checkmark","ic-login-error","ic-login-info","ic-lunch","ic-measure-growing","ic-measure-point-in-time","ic-measure-sliding","ic-measure-today","ic-menu-hamburger","ic-merge","ic-mini-close","ic-minimize","ic-moon-default","ic-more","ic-ms","ic-multiples","ic-network","ic-note-add","ic-note","ic-notebook","ic-number-sign","ic-open-book","ic-out-small","ic-out","ic-outbound","ic-page-multi","ic-page-search","ic-page-single","ic-palette","ic-parameter-group","ic-parameter","ic-paste","ic-pc-mobile-phone","ic-pencil","ic-people-chat","ic-people","ic-person","ic-phone-add","ic-phone-bell","ic-phone-chat-media","ic-phone-conference","ic-phone-decline","ic-phone-dial","ic-phone-disabled","ic-phone-forward","ic-phone-hang-up","ic-phone-hold","ic-phone-incoming","ic-phone-pause","ic-phone-rec-pause","ic-phone-rec-resume","ic-phone-rec-stop","ic-phone-rec","ic-phone-voice-retrieve","ic-phone-voice","ic-phone","ic-phones","ic-picture","ic-pie-chart","ic-pin-alert","ic-pin-check","ic-pin-solid-add","ic-pin-solid-remove","ic-pin-solid","ic-pin-text","ic-pin-time","ic-pin-zoom-in","ic-pin-zoom-out","ic-pin","ic-pinned","ic-pinterest-circle","ic-play-list","ic-pointing-in-hand","ic-printer","ic-progress-bar","ic-quotes","ic-radio-active","ic-radio","ic-rebuild","ic-redo","ic-refresh-with-feedback","ic-refresh","ic-reload","ic-remember","ic-reset","ic-rewind-five-seconds","ic-routing","ic-rss-square","ic-rss","ic-screen-rec-pause","ic-screen-rec-record","ic-screen-rec-resume","ic-screen-rec-stop","ic-scrubber","ic-search-next","ic-search-previous","ic-search","ic-searched-term","ic-secure","ic-segmentation","ic-select-no","ic-select-yes","ic-select","ic-server-add","ic-server","ic-settings-gear","ic-settings-gears","ic-settings-sliders","ic-share","ic-sharethis","ic-shrinkage","ic-shuffle","ic-site-disable","ic-site","ic-skills","ic-slide-back","ic-slide-fwd","ic-small-checkmark","ic-small-close","ic-small-plus","ic-sms-cancel","ic-sms-message","ic-sms-reply","ic-sms-transfer","ic-solaris","ic-sort-left-right","ic-sort-up-down","ic-special-g-brandmark","ic-stamp","ic-star-edit","ic-star-half","ic-star-outline","ic-stars-add","ic-stars-lock","ic-stars-remove","ic-stars","ic-status-aftercallwork","ic-status-available-no","ic-status-available-yes","ic-status-bad","ic-status-call-dialing","ic-status-call-inbound","ic-status-call-internal","ic-status-call-outbound","ic-status-call-ringing","ic-status-chat","ic-status-email","ic-status-good","ic-status-hook-off","ic-status-hook-on","ic-status-interaction","ic-status-logged-off","ic-status-logged-on","ic-status-monitored-no","ic-status-monitored-yes","ic-status-onhold","ic-status-queue-empty","ic-status-queue-full","ic-status-queue-part-full","ic-status-ready-blocked","ic-status-ready-no","ic-status-ready-partial","ic-status-ready-yes","ic-status-unknown","ic-sun-default","ic-superviser-chat-cancel","ic-supervisor-cancel","ic-supervisor-chat","ic-supervisor-voice-cancel","ic-supervisor-voice","ic-supervisor","ic-swap","ic-switch-disable","ic-switch","ic-symbol-man","ic-symbol-woman","ic-tag-stat-add","ic-tag-stat-remove","ic-tag","ic-target","ic-team-communicator-team-communicator","ic-team-communicator","ic-tenant-disable","ic-tenant","ic-text-centered","ic-text-detail","ic-text-generic","ic-text-indent-left","ic-text-indent-right","ic-text-justify-center","ic-text-justify-full","ic-text-justify-left","ic-text-justify-right","ic-text-spelling","ic-thumbs-down","ic-thumbs-up","ic-tick","ic-timeline","ic-toggle-off","ic-toggle-on","ic-toggle","ic-training","ic-transfer-all-channels","ic-transfer-common","ic-transfer","ic-trash","ic-tree-branch","ic-twitter-square","ic-twitter","ic-undo","ic-unlocked","ic-unmerge","ic-upload","ic-video-add","ic-video-disable","ic-video-end","ic-video-forward","ic-video-pause","ic-video-roster","ic-video-voice","ic-video","ic-videocam-1-disable","ic-videocam-1","ic-videocam-2-disable","ic-videocam-2","ic-view-details-bottom","ic-view-details-right","ic-view-grid","ic-view-list","ic-view-lists","ic-view-stacked","ic-view-tree","ic-voicemail","ic-window-contract","ic-window-expand","ic-zoom-in","ic-zoom-out","image","inbox-alpha","input","interaction-sound","interactions-alpha","interactions-off-alpha","interactions","italic","justify-center","justify-left","justify-right","layers","link-broken","list-square","listbox","logo-genesys","magnifying-glass-minus","magnifying-glass-plus","magnifying-glass","marker","mic-off","mic-talking","mic","minus-circle","missed-call","mixer","monitor","move-file","multi-agent-lines","notification-chat","notification-email","notification-phone","notification-score-chat","notification-score-email","notification-score-phone","numeric-spinner","organization","outbound-call","paint-bucket","paperclip","pause-secure","pause","pc-group","pc-user","pencil-square","person-circle","phone-active-1","phone-active-2","phone-active-3","phone-alpha","phone-off-alpha","phone-off","phone-picker","phone-ring-muted","phone-ring","pixel-unit","play","plus-circle","plus","pop-out","preview","progress-pie","puzzle","question-with-screen","question","radio-button","repeat","reset-view","resize-handle","robot-circle","robot-head","scissors","screen-full","screen-small","screenshare","scripter-inverse","sign-out","sitemap","sms-message","sort-numeric-asc","star","steal","step-backward","step-forward","stop","template","text","thumbtack-off","thumbtack-on","topleft","topright","trashcan","triangle","twitter-white-on-blue","underline","undo","vert-container","viber-icon","video-alpha","video-off-alpha","video-off","volume-off-alt","volume-off","warning","whistle","wrap-up-code"],n=new Map;function s(i){return r[i]?r[i]:l.includes(i)?`legacy/${i}`:i}async function d(c){const e=function(i){return i.replace("/","-")}(c),a=await n.get(e);if(a)return a;const o=async function(c){const e=await fetch(i(`./icons/${c}.svg`));if(200===e.status)return e.text();throw new Error(`[gux-icon] fetching failed for icon "${c}" with status "${e.statusText} (${e.status})".`)}(c).then((i=>i)).catch((i=>(setTimeout((()=>{throw i}),0),d("unknown"))));return n.set(e,o),o}function p(i,c){i||c||t("gux-icon","No screenreader-text provided. Either provide a localized screenreader-text property or set `decorative` to true.")}const h=class{constructor(i){c(this,i),this.decorative=!1,this.screenreaderText=""}async prepIcon(i){if(i){const c=s(i);this.baseSvgHtml=await d(c),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}}watchDecorative(i){p(i,this.screenreaderText),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}watchScreenreaderText(i){p(this.decorative,i),this.svgHtml=this.getSvgWithAriaAttributes(this.baseSvgHtml)}async componentWillLoad(){o(this.root,{variant:s(this.iconName)}),await this.prepIcon(this.iconName)}componentDidLoad(){p(this.decorative,this.screenreaderText)}getSvgWithAriaAttributes(i){const c=(new DOMParser).parseFromString(i,"image/svg+xml").firstChild;return c.setAttribute("aria-hidden",this.decorative?String(this.decorative):"false"),this.screenreaderText?c.setAttribute("aria-label",this.screenreaderText):c.removeAttribute("aria-label"),c.outerHTML}render(){return this.svgHtml&&e("div",{class:"gux-icon-container",innerHTML:this.svgHtml})}static get assetsDirs(){return["icons"]}get root(){return a(this)}static get watchers(){return{iconName:["prepIcon"],decorative:["watchDecorative"],screenreaderText:["watchScreenreaderText"]}}};h.style=":host{display:inline-flex;width:1em;height:1em}.gux-icon-container{display:flex;align-items:center;justify-content:center;width:100%}.gux-icon-container svg{width:100%;max-width:100%;height:100%;max-height:100%;fill:currentcolor}";export{h as gux_icon}
@@ -1 +1 @@
1
- import{r as e,h as t,g as r}from"./p-e571f861.js";import{O as i}from"./p-35578249.js";import{r as n}from"./p-cbcbd1bb.js";import{l as a}from"./p-3184268e.js";import{a as s}from"./p-e2bea786.js";import{p as o}from"./p-c10e41a9.js";import{t as l}from"./p-440657a8.js";const u=class{constructor(t){e(this,t),this.errorId=n("gux-form-field-error"),this.labelId=n("gux-form-field-label"),this.defaultInputId=n("gux-form-field"),this.computedLabelPosition="above",this.required=!0,this.hasError=!1}onMutation(){this.hasError=Boolean(this.root.querySelector('[slot="error"]'))}componentWillLoad(){this.input=this.root.querySelector('input[slot="input"], select[slot="input"], textarea[slot="input"]'),this.label=this.root.querySelector('label[slot="label"]'),this.slottedElementType=this.input.tagName.toLowerCase(),this.required=this.input.required,this.requiredObserver=s(this.input,(e=>{this.required=e})),o(this.input);const e=this.labelPosition?this.labelPosition.toLowerCase():"none";if("input"===this.slottedElementType){const t=this.input.getAttribute("type");l(this.root,{variant:`${this.slottedElementType}-${t}-${e}`})}else l(this.root,{variant:`${this.slottedElementType}-${e}`})}componentWillRender(){this.computedLabelPosition=this.getComputedLabelPosition(this.label,this.labelPosition),this.validateFormIds()}disconnectedCallback(){this.requiredObserver.disconnect()}renderInputCheckbox(e){return t("div",null,t("gux-input-checkbox",{class:{"gux-input-error":e}},t("slot",{name:"input"}),t("slot",{name:"label"})),this.renderError(e))}renderInputRadio(){return t("gux-input-radio",null,t("slot",{name:"input"}),t("slot",{name:"label"}))}renderInputColor(e){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-color",{"gux-label-describedby":this.labelId,"gux-error-describedby":this.errorId,"gux-required":this.required,class:{"gux-input-error":e}},t("slot",{name:"input"})),this.renderError(e)))}renderInputRange(e,r){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("gux-input-range",{"display-units":e,"value-in-tooltip":r},t("slot",{name:"input"})))}renderInputNumber(e,r){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-number",{class:{"gux-input-error":r},slot:"input",clearable:e},t("slot",{name:"input"})),this.renderError(r)))}renderInputSelect(e){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-select",{slot:"input",class:{"gux-input-error":e}},t("slot",{name:"input"})),this.renderError(e)))}renderInputTextLike(e,r){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-text-like",{class:{"gux-input-error":r},slot:"input",clearable:e},t("slot",{name:"input"})),this.renderError(r)))}renderInputSearch(e){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-search",null,t("slot",{name:"input"})),this.renderError(e)))}renderInputTextArea(e){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-textarea",{class:{"gux-input-error":e},slot:"input",resize:this.resize},t("slot",{name:"input"})),this.renderError(e)))}render(){const e=this.input.getAttribute("type");switch(this.slottedElementType){case"input":switch(e){case"checkbox":return this.renderInputCheckbox(this.hasError);case"radio":return this.renderInputRadio();case"color":return this.renderInputColor(this.hasError);case"range":return this.renderInputRange(this.displayUnits,this.valueInTooltip);case"email":case"password":case"text":return this.renderInputTextLike(this.clearable,this.hasError);case"number":return this.renderInputNumber(this.clearable,this.hasError);case"search":return this.renderInputSearch(this.hasError);default:return t("div",null,t("slot",{name:"label"}),t("slot",{name:"input"}),t("slot",{name:"error"}))}case"select":return this.renderInputSelect(this.hasError);case"textarea":return this.renderInputTextArea(this.hasError);default:return t("div",null,t("slot",{name:"label"}),t("slot",{name:"input"}),t("slot",{name:"error"}))}}validateFormIds(){if(this.label){if("color"===this.input.getAttribute("type"))return this.label.getAttribute("id")&&(this.labelId=this.label.getAttribute("id")),void this.label.setAttribute("id",this.labelId);const e=!!this.input.hasAttribute("id"),t=!!this.label.hasAttribute("for");if(!e&&t)a("gux-form-field",'A "for" attribute has been provided on the label but there is no corresponding id on the input. Either provide an id on the input or omit the "for" attribute from the label. If there is no input id and no "for" attribute provided, the component will automatically generate an id and link it to the "for" attribute.');else if(e)if(e&&!t){const e=this.input.getAttribute("id");this.label.setAttribute("for",e)}else e&&t&&this.input.getAttribute("id")!==this.label.getAttribute("for")&&a("gux-form-field","The input id and label for attribute should match.");else this.input.setAttribute("id",this.defaultInputId),this.label.setAttribute("for",this.defaultInputId)}else a("gux-form-field",'A label is required for this component. If a visual label is not needed for this use case, please add localized text for a screenreader and set the label-position attribute to "screenreader" to visually hide the label.');this.hasErrorSlot()?this.input.setAttribute("aria-describedby",this.errorId):this.input.getAttribute("aria-describedby")&&this.input.getAttribute("aria-describedby").startsWith("gux-form-field-error")&&this.input.removeAttribute("aria-describedby")}getComputedLabelPosition(e,t){if(e)return["above","beside","screenreader"].includes(t)?t:e.offsetWidth>1&&e.offsetWidth<40?"beside":"above"}hasErrorSlot(){return!!this.root.querySelector('[slot="error"]')}renderLabel(e){return t("div",{class:{"gux-label-container":!0,"gux-required":e}},t("slot",{name:"label",slot:"label"}))}renderError(e){return t("div",{id:this.errorId,class:{"gux-error":!0,"gux-show":e}},t("gux-error-message-beta",null,t("slot",{name:"error"})))}get root(){return r(this)}};(function(e,t,r,i){var n,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(s=(a<3?n(s):a>3?n(t,r,s):n(t,r))||s);a>3&&s&&Object.defineProperty(t,r,s)})([i({childList:!0,subtree:!0})],u.prototype,"onMutation",null),u.style="gux-form-field-legacy{display:block;color:#2e394c}gux-form-field-legacy .gux-label-and-input-and-error-container{margin:16px 0}gux-form-field-legacy .gux-label-and-input-and-error-container label{font-size:12px;font-weight:bold;line-height:20px}gux-form-field-legacy .gux-label-and-input-and-error-container input,gux-form-field-legacy .gux-label-and-input-and-error-container select{width:100%;font-size:12px}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-container input{overflow:hidden;text-overflow:ellipsis}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-container{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error textarea{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-color-main-element{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-and-error-container{flex-grow:1}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside{display:flex;flex-direction:row}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside .gux-label-container{position:relative;top:7px;width:fit-content;min-width:45px;margin-right:8px}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-range,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-select,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-text-like,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-search{flex:1 1 auto}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-screenreader label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}gux-form-field-legacy .gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}gux-form-field-legacy .gux-error{display:none;margin:4px 0}gux-form-field-legacy .gux-error.gux-show{display:block}";export{u as gux_form_field_legacy}
1
+ import{r as e,h as t,g as r}from"./p-e571f861.js";import{O as i}from"./p-35578249.js";import{r as n}from"./p-cbcbd1bb.js";import{l as a}from"./p-3184268e.js";import{a as s}from"./p-e2bea786.js";import{p as o}from"./p-c10e41a9.js";import{t as l}from"./p-c4dce34e.js";const u=class{constructor(t){e(this,t),this.errorId=n("gux-form-field-error"),this.labelId=n("gux-form-field-label"),this.defaultInputId=n("gux-form-field"),this.computedLabelPosition="above",this.required=!0,this.hasError=!1}onMutation(){this.hasError=Boolean(this.root.querySelector('[slot="error"]'))}componentWillLoad(){this.input=this.root.querySelector('input[slot="input"], select[slot="input"], textarea[slot="input"]'),this.label=this.root.querySelector('label[slot="label"]'),this.slottedElementType=this.input.tagName.toLowerCase(),this.required=this.input.required,this.requiredObserver=s(this.input,(e=>{this.required=e})),o(this.input);const e=this.labelPosition?this.labelPosition.toLowerCase():"none";if("input"===this.slottedElementType){const t=this.input.getAttribute("type");l(this.root,{variant:`${this.slottedElementType}-${t}-${e}`})}else l(this.root,{variant:`${this.slottedElementType}-${e}`})}componentWillRender(){this.computedLabelPosition=this.getComputedLabelPosition(this.label,this.labelPosition),this.validateFormIds()}disconnectedCallback(){this.requiredObserver.disconnect()}renderInputCheckbox(e){return t("div",null,t("gux-input-checkbox",{class:{"gux-input-error":e}},t("slot",{name:"input"}),t("slot",{name:"label"})),this.renderError(e))}renderInputRadio(){return t("gux-input-radio",null,t("slot",{name:"input"}),t("slot",{name:"label"}))}renderInputColor(e){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-color",{"gux-label-describedby":this.labelId,"gux-error-describedby":this.errorId,"gux-required":this.required,class:{"gux-input-error":e}},t("slot",{name:"input"})),this.renderError(e)))}renderInputRange(e,r){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("gux-input-range",{"display-units":e,"value-in-tooltip":r},t("slot",{name:"input"})))}renderInputNumber(e,r){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-number",{class:{"gux-input-error":r},slot:"input",clearable:e},t("slot",{name:"input"})),this.renderError(r)))}renderInputSelect(e){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-select",{slot:"input",class:{"gux-input-error":e}},t("slot",{name:"input"})),this.renderError(e)))}renderInputTextLike(e,r){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-text-like",{class:{"gux-input-error":r},slot:"input",clearable:e},t("slot",{name:"input"})),this.renderError(r)))}renderInputSearch(e){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-search",null,t("slot",{name:"input"})),this.renderError(e)))}renderInputTextArea(e){return t("div",{class:`gux-label-and-input-and-error-container gux-${this.computedLabelPosition}`},this.renderLabel(this.required),t("div",{class:"gux-input-and-error-container"},t("gux-input-textarea",{class:{"gux-input-error":e},slot:"input",resize:this.resize},t("slot",{name:"input"})),this.renderError(e)))}render(){const e=this.input.getAttribute("type");switch(this.slottedElementType){case"input":switch(e){case"checkbox":return this.renderInputCheckbox(this.hasError);case"radio":return this.renderInputRadio();case"color":return this.renderInputColor(this.hasError);case"range":return this.renderInputRange(this.displayUnits,this.valueInTooltip);case"email":case"password":case"text":return this.renderInputTextLike(this.clearable,this.hasError);case"number":return this.renderInputNumber(this.clearable,this.hasError);case"search":return this.renderInputSearch(this.hasError);default:return t("div",null,t("slot",{name:"label"}),t("slot",{name:"input"}),t("slot",{name:"error"}))}case"select":return this.renderInputSelect(this.hasError);case"textarea":return this.renderInputTextArea(this.hasError);default:return t("div",null,t("slot",{name:"label"}),t("slot",{name:"input"}),t("slot",{name:"error"}))}}validateFormIds(){if(this.label){if("color"===this.input.getAttribute("type"))return this.label.getAttribute("id")&&(this.labelId=this.label.getAttribute("id")),void this.label.setAttribute("id",this.labelId);const e=!!this.input.hasAttribute("id"),t=!!this.label.hasAttribute("for");if(!e&&t)a("gux-form-field",'A "for" attribute has been provided on the label but there is no corresponding id on the input. Either provide an id on the input or omit the "for" attribute from the label. If there is no input id and no "for" attribute provided, the component will automatically generate an id and link it to the "for" attribute.');else if(e)if(e&&!t){const e=this.input.getAttribute("id");this.label.setAttribute("for",e)}else e&&t&&this.input.getAttribute("id")!==this.label.getAttribute("for")&&a("gux-form-field","The input id and label for attribute should match.");else this.input.setAttribute("id",this.defaultInputId),this.label.setAttribute("for",this.defaultInputId)}else a("gux-form-field",'A label is required for this component. If a visual label is not needed for this use case, please add localized text for a screenreader and set the label-position attribute to "screenreader" to visually hide the label.');this.hasErrorSlot()?this.input.setAttribute("aria-describedby",this.errorId):this.input.getAttribute("aria-describedby")&&this.input.getAttribute("aria-describedby").startsWith("gux-form-field-error")&&this.input.removeAttribute("aria-describedby")}getComputedLabelPosition(e,t){if(e)return["above","beside","screenreader"].includes(t)?t:e.offsetWidth>1&&e.offsetWidth<40?"beside":"above"}hasErrorSlot(){return!!this.root.querySelector('[slot="error"]')}renderLabel(e){return t("div",{class:{"gux-label-container":!0,"gux-required":e}},t("slot",{name:"label",slot:"label"}))}renderError(e){return t("div",{id:this.errorId,class:{"gux-error":!0,"gux-show":e}},t("gux-error-message-beta",null,t("slot",{name:"error"})))}get root(){return r(this)}};(function(e,t,r,i){var n,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,i);else for(var o=e.length-1;o>=0;o--)(n=e[o])&&(s=(a<3?n(s):a>3?n(t,r,s):n(t,r))||s);a>3&&s&&Object.defineProperty(t,r,s)})([i({childList:!0,subtree:!0})],u.prototype,"onMutation",null),u.style="gux-form-field-legacy{display:block;color:#2e394c}gux-form-field-legacy .gux-label-and-input-and-error-container{margin:16px 0}gux-form-field-legacy .gux-label-and-input-and-error-container label{font-size:12px;font-weight:bold;line-height:20px}gux-form-field-legacy .gux-label-and-input-and-error-container input,gux-form-field-legacy .gux-label-and-input-and-error-container select{width:100%;font-size:12px}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-container input{overflow:hidden;text-overflow:ellipsis}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-container{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error textarea{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-error .gux-input-color-main-element{border-color:#ea0b0b}gux-form-field-legacy .gux-label-and-input-and-error-container .gux-input-and-error-container{flex-grow:1}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside{display:flex;flex-direction:row}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside .gux-label-container{position:relative;top:7px;width:fit-content;min-width:45px;margin-right:8px}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-range,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-select,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-text-like,gux-form-field-legacy .gux-label-and-input-and-error-container.gux-beside gux-input-search{flex:1 1 auto}gux-form-field-legacy .gux-label-and-input-and-error-container.gux-screenreader label{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}gux-form-field-legacy .gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}gux-form-field-legacy .gux-error{display:none;margin:4px 0}gux-form-field-legacy .gux-error.gux-show{display:block}";export{u as gux_form_field_legacy}
@@ -1 +1 @@
1
- import{r as t,c as s,f as e,d as i,a as o,h as a,H as r,g as h}from"./p-e571f861.js";import{b as l}from"./p-523a0237.js";import{w as n}from"./p-76ff3e75.js";import{r as c}from"./p-cbcbd1bb.js";import{t as u}from"./p-440657a8.js";import{t as g}from"./p-451a9239.js";import"./p-8a133b9b.js";const d=class{constructor(i){t(this,i),this.guxselectionchanged=s(this,"guxselectionchanged",7),this.guxsortchanged=s(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>e(this))),this.tableId=c("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.isHorizontalScroll=!1,this.isScrolledToFirstCell=!0,this.isScrolledToLastCell=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1}async componentWillLoad(){u(this.root),this.i18n=await l(this.root,g)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSortableColumns(),this.prepareSelectableRows(),this.checkHorizontalScroll(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkHorizontalScroll(),this.checkVerticalScroll(),this.updateScrollState()}))}))),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 tableColumnsDataSortable(){return Array.from(this.slottedTable.querySelectorAll("thead th[data-sortable]"))}get sortControlCol(){return Array.from(this.slottedTable.querySelectorAll("thead th gux-sort-control"))}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,e=s.filter((t=>0==t.hasAttribute("disabled"))),i=e.filter((t=>t.selected)),o=Boolean(s.length),a=i.length===e.length,r=0===i.length;t.selected=o&&a,t.setIndeterminate(o&&!a&&!r)}}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 e=(t.find((t=>t.getBoundingClientRect().right>s.right))||t[t.length-1]).getBoundingClientRect().right-s.right;e>s.width&&(e=.9*s.width),this.tableContainer.scrollLeft+=Math.ceil(e),this.updateScrollState()}previousColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect(),e=(t.reverse().find((t=>t.getBoundingClientRect().left<s.left))||t[0]).getBoundingClientRect();let i=s.left-e.left;i>s.width&&(i=.9*s.width),this.tableContainer.scrollLeft+=-Math.ceil(i),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.tableColumns;s.pop(),s.forEach((t=>{this.columnsWidths[t.dataset.columnName]=`${this.getElementComputedWidth(t)}px`})),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const s=this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX);this.columnsWidths[this.columnResizeState.resizableColumn.dataset.columnName]=`${s>1?s:1}px`,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,n("th",t,(s=>{this.tableColumns.length-1!==s.cellIndex&&this.isInResizeZone(t,s)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){n("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 parseInt(window.getComputedStyle(t).getPropertyValue("width").split("px")[0],10)}prepareSortableColumns(){let t=[];t=document.querySelector("gux-sort-control")?this.sortControlCol:this.tableColumnsDataSortable,this.tableColumnsDataSortable.forEach((t=>{t.hasAttribute("data-sortable")&&this.prepareSortableColumnsStyles()})),t.forEach((t=>{t.onclick=s=>{if(!this.columnResizeHover){const e=s.target,i=t.hasAttribute("data-sortable")?s.currentTarget:e.parentElement;let o=null;switch(i.getAttribute("aria-sort")||""){case"":case"descending":o="ascending";break;case"ascending":o="descending"}this.guxsortchanged.emit({columnName:i.dataset.columnName,sortDirection:o})}}}))}prepareSortableColumnsStyles(){const t="gux-table-sortable-styles";if(null==document.getElementById(t)){const s=document.createElement("style");s.id=t;const e=o("./icons/arrow-solid-down.svg"),i=o("./icons/arrow-solid-up.svg"),a=this.i18n("sortAsc"),r=this.i18n("sortDesc");s.innerHTML=`\n th[data-sortable]:focus-within:after{content: "${a}";background-image: url("${e}");}\n th[aria-sort="ascending"]:after{background-image:url("${e}")!important;content:"${a}"!important;}\n th[aria-sort="descending"]:after{background-image:url("${i}")!important;content:"${r}"!important;}\n `,document.querySelector("head").appendChild(s)}}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])};\n min-width:${String(this.columnsWidths[t])};\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 a(r,{"gs-table-id":this.tableId,"gs-v-scroll":this.isVerticalScroll,"gs-h-scroll":this.isHorizontalScroll,"gs-obj-table":this.objectTable,"gs-compact":this.compact},a("div",{class:"gux-table"},a("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},a("slot",{name:"data"})),this.isHorizontalScroll&&a("gux-button-slot-beta",{accent:"secondary"},a("button",{class:"gux-table-scroll-left",disabled:this.isScrolledToFirstCell,onClick:!this.isScrolledToFirstCell&&this.previousColumn.bind(this)},a("gux-icon",{"icon-name":"chevron-left","screenreader-text":this.i18n("scrollLeft")}))),this.isHorizontalScroll&&a("gux-button-slot-beta",{accent:"secondary",style:{marginRight:`${this.tableScrollbarConstant}px`}},a("button",{class:"gux-table-scroll-right",disabled:this.isScrolledToLastCell,style:{marginRight:`${this.tableScrollbarConstant}px`},onClick:!this.isScrolledToLastCell&&this.nextColumn.bind(this)},a("gux-icon",{"icon-name":"chevron-right","screenreader-text":this.i18n("scrollRight")}))),this.isTableEmpty&&a("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return h(this)}};d.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;overflow-y:auto;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{d as gux_table_beta}
1
+ import{r as t,c as s,f as e,d as i,a as o,h as a,H as r,g as h}from"./p-e571f861.js";import{b as l}from"./p-4154675a.js";import{w as n}from"./p-76ff3e75.js";import{r as c}from"./p-cbcbd1bb.js";import{t as u}from"./p-c4dce34e.js";import{t as g}from"./p-451a9239.js";import"./p-8a133b9b.js";const d=class{constructor(i){t(this,i),this.guxselectionchanged=s(this,"guxselectionchanged",7),this.guxsortchanged=s(this,"guxsortchanged",7),this.slotObserver=new MutationObserver((()=>e(this))),this.tableId=c("gux-table"),this.columnsWidths={},this.isVerticalScroll=!1,this.isHorizontalScroll=!1,this.isScrolledToFirstCell=!0,this.isScrolledToLastCell=!1,this.columnResizeHover=!1,this.compact=!1,this.objectTable=!1}async componentWillLoad(){u(this.root),this.i18n=await l(this.root,g)}componentDidLoad(){this.resizableColumns&&this.prepareResizableColumns(),this.prepareSortableColumns(),this.prepareSelectableRows(),this.checkHorizontalScroll(),this.checkVerticalScroll(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>{i((()=>{this.checkHorizontalScroll(),this.checkVerticalScroll(),this.updateScrollState()}))}))),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 tableColumnsDataSortable(){return Array.from(this.slottedTable.querySelectorAll("thead th[data-sortable]"))}get sortControlCol(){return Array.from(this.slottedTable.querySelectorAll("thead th gux-sort-control"))}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,e=s.filter((t=>0==t.hasAttribute("disabled"))),i=e.filter((t=>t.selected)),o=Boolean(s.length),a=i.length===e.length,r=0===i.length;t.selected=o&&a,t.setIndeterminate(o&&!a&&!r)}}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 e=(t.find((t=>t.getBoundingClientRect().right>s.right))||t[t.length-1]).getBoundingClientRect().right-s.right;e>s.width&&(e=.9*s.width),this.tableContainer.scrollLeft+=Math.ceil(e),this.updateScrollState()}previousColumn(){const t=this.tableColumns,s=this.tableContainer.getBoundingClientRect(),e=(t.reverse().find((t=>t.getBoundingClientRect().left<s.left))||t[0]).getBoundingClientRect();let i=s.left-e.left;i>s.width&&(i=.9*s.width),this.tableContainer.scrollLeft+=-Math.ceil(i),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.tableColumns;s.pop(),s.forEach((t=>{this.columnsWidths[t.dataset.columnName]=`${this.getElementComputedWidth(t)}px`})),this.setResizableColumnsStyles()}updateResizeState(t){if(this.columnResizeState){const s=this.columnResizeState.resizableColumnInitialWidth+(t.pageX-this.columnResizeState.columnResizeMouseStartX);this.columnsWidths[this.columnResizeState.resizableColumn.dataset.columnName]=`${s>1?s:1}px`,this.setResizableColumnsStyles()}else this.columnResizeHover=!1,n("th",t,(s=>{this.tableColumns.length-1!==s.cellIndex&&this.isInResizeZone(t,s)&&(this.columnResizeHover=!0)}))}maybeStartResizing(t){n("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 parseInt(window.getComputedStyle(t).getPropertyValue("width").split("px")[0],10)}prepareSortableColumns(){let t=[];t=document.querySelector("gux-sort-control")?this.sortControlCol:this.tableColumnsDataSortable,this.tableColumnsDataSortable.forEach((t=>{t.hasAttribute("data-sortable")&&this.prepareSortableColumnsStyles()})),t.forEach((t=>{t.onclick=s=>{if(!this.columnResizeHover){const e=s.target,i=t.hasAttribute("data-sortable")?s.currentTarget:e.parentElement;let o=null;switch(i.getAttribute("aria-sort")||""){case"":case"descending":o="ascending";break;case"ascending":o="descending"}this.guxsortchanged.emit({columnName:i.dataset.columnName,sortDirection:o})}}}))}prepareSortableColumnsStyles(){const t="gux-table-sortable-styles";if(null==document.getElementById(t)){const s=document.createElement("style");s.id=t;const e=o("./icons/arrow-solid-down.svg"),i=o("./icons/arrow-solid-up.svg"),a=this.i18n("sortAsc"),r=this.i18n("sortDesc");s.innerHTML=`\n th[data-sortable]:focus-within:after{content: "${a}";background-image: url("${e}");}\n th[aria-sort="ascending"]:after{background-image:url("${e}")!important;content:"${a}"!important;}\n th[aria-sort="descending"]:after{background-image:url("${i}")!important;content:"${r}"!important;}\n `,document.querySelector("head").appendChild(s)}}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])};\n min-width:${String(this.columnsWidths[t])};\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 a(r,{"gs-table-id":this.tableId,"gs-v-scroll":this.isVerticalScroll,"gs-h-scroll":this.isHorizontalScroll,"gs-obj-table":this.objectTable,"gs-compact":this.compact},a("div",{class:"gux-table"},a("div",{tabindex:this.isVerticalScroll?"0":"-1",id:this.tableId,class:this.tableContainerClasses},a("slot",{name:"data"})),this.isHorizontalScroll&&a("gux-button-slot-beta",{accent:"secondary"},a("button",{class:"gux-table-scroll-left",disabled:this.isScrolledToFirstCell,onClick:!this.isScrolledToFirstCell&&this.previousColumn.bind(this)},a("gux-icon",{"icon-name":"chevron-left","screenreader-text":this.i18n("scrollLeft")}))),this.isHorizontalScroll&&a("gux-button-slot-beta",{accent:"secondary",style:{marginRight:`${this.tableScrollbarConstant}px`}},a("button",{class:"gux-table-scroll-right",disabled:this.isScrolledToLastCell,style:{marginRight:`${this.tableScrollbarConstant}px`},onClick:!this.isScrolledToLastCell&&this.nextColumn.bind(this)},a("gux-icon",{"icon-name":"chevron-right","screenreader-text":this.i18n("scrollRight")}))),this.isTableEmpty&&a("div",{class:"gux-empty-table"},this.emptyMessage||this.i18n("emptyMessage"))))}get root(){return h(this)}};d.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;overflow-y:auto;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{d as gux_table_beta}
@@ -1 +1 @@
1
- import{r as e,h as o,g as n}from"./p-e571f861.js";import{t as r}from"./p-440657a8.js";const a=class{constructor(o){e(this,o)}componentWillLoad(){r(this.root)}renderOptionalSlot(e){if(function(e,o){return Boolean(e.querySelector(`[slot=${o}]`))}(this.root,e))switch(e){case"header":return o("header",{class:"gux-panel-header"},o("slot",{name:`${e}`}));case"body":return o("div",{class:"gux-panel-body"},o("slot",{name:`${e}`}));case"footer":return o("footer",{class:"gux-panel-footer"},o("slot",{name:`${e}`}))}}render(){return o("section",{class:"gux-panel-container"},this.renderOptionalSlot("header"),this.renderOptionalSlot("body"),this.renderOptionalSlot("footer"))}get root(){return n(this)}};a.style=".gux-panel-container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:8px 15px;color:#2e394c;background-color:#fdfdfd;border:1px solid #e2e6ee}.gux-panel-container .gux-panel-header,.gux-panel-container .gux-panel-body,.gux-panel-container .gux-panel-footer{box-sizing:border-box;width:100%}.gux-panel-container .gux-panel-header{flex-shrink:0;padding:0 8px;border-bottom:1px solid #e2e6ee}.gux-panel-container .gux-panel-body{flex-grow:1;padding:8px;overflow-y:auto}.gux-panel-container .gux-panel-footer{flex-shrink:0;padding:12px 8px;border-top:1px solid #e2e6ee}";export{a as gux_panel_frame_legacy}
1
+ import{r as e,h as o,g as n}from"./p-e571f861.js";import{t as r}from"./p-c4dce34e.js";const a=class{constructor(o){e(this,o)}componentWillLoad(){r(this.root)}renderOptionalSlot(e){if(function(e,o){return Boolean(e.querySelector(`[slot=${o}]`))}(this.root,e))switch(e){case"header":return o("header",{class:"gux-panel-header"},o("slot",{name:`${e}`}));case"body":return o("div",{class:"gux-panel-body"},o("slot",{name:`${e}`}));case"footer":return o("footer",{class:"gux-panel-footer"},o("slot",{name:`${e}`}))}}render(){return o("section",{class:"gux-panel-container"},this.renderOptionalSlot("header"),this.renderOptionalSlot("body"),this.renderOptionalSlot("footer"))}get root(){return n(this)}};a.style=".gux-panel-container{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:8px 15px;color:#2e394c;background-color:#fdfdfd;border:1px solid #e2e6ee}.gux-panel-container .gux-panel-header,.gux-panel-container .gux-panel-body,.gux-panel-container .gux-panel-footer{box-sizing:border-box;width:100%}.gux-panel-container .gux-panel-header{flex-shrink:0;padding:0 8px;border-bottom:1px solid #e2e6ee}.gux-panel-container .gux-panel-body{flex-grow:1;padding:8px;overflow-y:auto}.gux-panel-container .gux-panel-footer{flex-shrink:0;padding:12px 8px;border-top:1px solid #e2e6ee}";export{a as gux_panel_frame_legacy}
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { defineCustomElements } from '../dist/loader';
8
8
  // Value templated out during build process (see scripts/wrap-stencil.js)
9
- const CDN_URL = 'https://app.mypurecloud.com/spark-components/build-assets/3.7.0-51/genesys-webcomponents/';
9
+ const CDN_URL = 'https://app.mypurecloud.com/spark-components/build-assets/3.8.0-57/genesys-webcomponents/';
10
10
  export function registerElements() {
11
11
  if (CDN_URL) {
12
12
  defineCustomElements(window, { resourcesUrl: CDN_URL });
@@ -3,6 +3,7 @@ import { EmbedOptions } from 'vega-embed';
3
3
  export declare class GuxDonutChart {
4
4
  root: HTMLElement;
5
5
  private visualizationSpec;
6
+ private tooltipSpec;
6
7
  private baseChartSpec;
7
8
  /**
8
9
  * Data to be rendered in the chart.
@@ -17,6 +18,14 @@ export declare class GuxDonutChart {
17
18
  innerRadius: number;
18
19
  labelRadius: number;
19
20
  labelField: string;
21
+ gauge: boolean;
22
+ centerText: string;
23
+ centerSubText: string;
24
+ tooltipOptions: EmbedOptions;
25
+ legendX: number;
26
+ legendY: number;
27
+ legendFontSize: number;
28
+ legendSymbolSize: number;
20
29
  embedOptions: EmbedOptions;
21
30
  parseData(): void;
22
31
  componentWillLoad(): void;
@@ -323,16 +323,20 @@ export namespace Components {
323
323
  "yFieldName": string;
324
324
  }
325
325
  interface GuxChartDonutBeta {
326
+ "centerSubText": string;
327
+ "centerText": string;
326
328
  /**
327
329
  * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
328
330
  */
329
331
  "chartData": Record<string, any>;
330
332
  "colorFieldName": string;
331
333
  "embedOptions": EmbedOptions;
334
+ "gauge": boolean;
332
335
  "includeLegend": boolean;
333
336
  "innerRadius": number;
334
337
  "labelField": string;
335
338
  "labelRadius": number;
339
+ "legendFontSize": number;
336
340
  "legendPosition": | 'left'
337
341
  | 'right'
338
342
  | 'top'
@@ -342,8 +346,12 @@ export namespace Components {
342
346
  | 'bottom-left'
343
347
  | 'bottom-right'
344
348
  | 'none';
349
+ "legendSymbolSize": number;
345
350
  "legendTitle": string;
351
+ "legendX": number;
352
+ "legendY": number;
346
353
  "outerRadius": number;
354
+ "tooltipOptions": EmbedOptions;
347
355
  }
348
356
  interface GuxChartLineBeta {
349
357
  /**
@@ -2627,16 +2635,20 @@ declare namespace LocalJSX {
2627
2635
  "yFieldName"?: string;
2628
2636
  }
2629
2637
  interface GuxChartDonutBeta {
2638
+ "centerSubText"?: string;
2639
+ "centerText"?: string;
2630
2640
  /**
2631
2641
  * Data to be rendered in the chart. Data field names must match the values you set in xFieldName and yFieldName
2632
2642
  */
2633
2643
  "chartData"?: Record<string, any>;
2634
2644
  "colorFieldName"?: string;
2635
2645
  "embedOptions"?: EmbedOptions;
2646
+ "gauge"?: boolean;
2636
2647
  "includeLegend"?: boolean;
2637
2648
  "innerRadius"?: number;
2638
2649
  "labelField"?: string;
2639
2650
  "labelRadius"?: number;
2651
+ "legendFontSize"?: number;
2640
2652
  "legendPosition"?: | 'left'
2641
2653
  | 'right'
2642
2654
  | 'top'
@@ -2646,8 +2658,12 @@ declare namespace LocalJSX {
2646
2658
  | 'bottom-left'
2647
2659
  | 'bottom-right'
2648
2660
  | 'none';
2661
+ "legendSymbolSize"?: number;
2649
2662
  "legendTitle"?: string;
2663
+ "legendX"?: number;
2664
+ "legendY"?: number;
2650
2665
  "outerRadius"?: number;
2666
+ "tooltipOptions"?: EmbedOptions;
2651
2667
  }
2652
2668
  interface GuxChartLineBeta {
2653
2669
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark-components",
3
- "version": "3.7.1",
3
+ "version": "3.8.1",
4
4
  "description": "Common webcomponents",
5
5
  "license": "MIT",
6
6
  "main": "dist/stencil-wrapper.js",
@@ -1 +0,0 @@
1
- import{r as t,h as e,g as i}from"./p-e571f861.js";import{t as a}from"./p-440657a8.js";import{l as s}from"./p-3184268e.js";import{V as r}from"./p-5cacdfc9.js";const o=class{constructor(e){t(this,e),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:"category",type:"nominal",scale:{range:r},legend:null},tooltip:{aggregate:"count",type:"quantitative"}},layer:[{mark:{type:"arc",outerRadius:80}},{mark:{type:"text",radius:90},encoding:{text:{field:"value",type:"quantitative"}}}],view:{stroke:null}},this.legendPosition="right"}parseData(){this.outerRadius||this.innerRadius||s("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.includeLegend&&(this.baseChartSpec.encoding.color.legend=!0),this.legendPosition&&(this.baseChartSpec.config.legend.orient=this.legendPosition);const e=this.colorFieldName||"category";e&&(this.baseChartSpec.encoding.color.field=e);const i=this.legendTitle;i&&(this.baseChartSpec.encoding.color.title=i);let a=this.outerRadius,r=this.innerRadius;a||(a=r+32),r||(r=a-32),this.baseChartSpec.layer=[{mark:{type:"arc",outerRadius:a,innerRadius:r}},{mark:{type:"arc",innerRadius:r,stroke:"#fff"}}];const o=this.labelRadius,n=this.labelField||"value";o&&this.baseChartSpec.layer.push({mark:{type:"text",radius:o},encoding:{text:{field:n,type:"quantitative"}}}),this.baseChartSpec.encoding.tooltip.field=n;const h=Object.assign(this.baseChartSpec,t);this.visualizationSpec=h}componentWillLoad(){a(this.root),this.parseData()}render(){return e("gux-visualization-beta",{visualizationSpec:this.visualizationSpec})}get root(){return i(this)}static get watchers(){return{chartData:["parseData"]}}};o.style="gux-visualization-beta{height:fit-content;color:#2e394c}";export{o as gux_chart_donut_beta}
@@ -1 +0,0 @@
1
- import{r,h as s,g as t}from"./p-e571f861.js";import{t as e}from"./p-440657a8.js";const a=class{constructor(s){r(this,s)}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)}};a.style=":host{display:flex}.gux-spinner{margin:auto}";export{a as gux_page_loading_spinner}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,g as e}from"./p-e571f861.js";import{t as o}from"./p-440657a8.js";import{b as n}from"./p-523a0237.js";import"./p-8a133b9b.js";const a={previous:"Previous",next:"Next"},r=class{constructor(s){t(this,s),this.guxPaginationCursorchange=i(this,"guxPaginationCursorchange",7),this.hasPrevious=!1,this.hasNext=!1}onButtonClick(t){("previous"===t&&this.hasPrevious||"next"===t&&this.hasNext)&&this.guxPaginationCursorchange.emit(t)}async componentWillLoad(){o(this.root),this.i18n=await n(this.root,a)}render(){return[s("gux-button-slot-beta",{accent:"secondary"},s("button",{type:"button",title:this.i18n("previous"),disabled:!this.hasPrevious,onClick:()=>this.onButtonClick("previous")},s("gux-icon",{decorative:!0,iconName:"ic-chevron-small-left"}))),s("gux-button-slot-beta",{accent:"secondary"},s("button",{type:"button",title:this.i18n("next"),disabled:!this.hasNext,onClick:()=>this.onButtonClick("next")},s("gux-icon",{decorative:!0,iconName:"ic-chevron-small-right"})))]}get root(){return e(this)}};r.style=":host{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:space-between}";export{r as gux_pagination_cursor}