genesys-spark-components 3.3.1 → 3.4.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 (244) hide show
  1. package/CHANGELOG.md +37 -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 +1 -1
  6. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  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 +1 -1
  10. package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +2 -2
  15. package/dist/cjs/gux-button.cjs.entry.js +2 -2
  16. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +65 -0
  26. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-disclosure-button.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-number.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-popover.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-tab-advanced-list.cjs.entry.js +6 -4
  63. package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  72. package/dist/cjs/gux-tooltip_2.cjs.entry.js +6 -2
  73. package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
  74. package/dist/cjs/loader.cjs.js +1 -1
  75. package/dist/cjs/{usage-tracking-c08b8c93.js → usage-tracking-a40657a6.js} +1 -1
  76. package/dist/collection/collection-manifest.json +1 -0
  77. package/dist/collection/components/beta/gux-button-slot/gux-button-slot.css +3 -1
  78. package/dist/collection/components/beta/gux-copy-to-clipboard/gux-copy-to-clipboard.css +63 -0
  79. package/dist/collection/components/beta/gux-copy-to-clipboard/gux-copy-to-clipboard.js +81 -0
  80. package/dist/collection/components/stable/gux-button/gux-button.css +3 -3
  81. package/dist/collection/components/stable/gux-icon/icons/badge-x.svg +1 -0
  82. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.css +25 -45
  83. package/dist/collection/components/stable/gux-tabs-advanced/gux-tab-advanced-list/gux-tab-advanced-list.js +6 -4
  84. package/dist/collection/components/stable/gux-tooltip/gux-tooltip.js +28 -1
  85. package/dist/collection/components/stable/gux-tooltip/gux-tooltip.types.js +1 -0
  86. package/dist/deploy-info.json +3 -3
  87. package/dist/esm/genesys-webcomponents.js +1 -1
  88. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  89. package/dist/esm/gux-accordion.entry.js +1 -1
  90. package/dist/esm/gux-action-button-legacy.entry.js +1 -1
  91. package/dist/esm/gux-action-button.entry.js +1 -1
  92. package/dist/esm/gux-action-list-legacy.entry.js +1 -1
  93. package/dist/esm/gux-action-toast.entry.js +1 -1
  94. package/dist/esm/gux-advanced-dropdown.entry.js +1 -1
  95. package/dist/esm/gux-badge-beta.entry.js +1 -1
  96. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  97. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  98. package/dist/esm/gux-button-multi.entry.js +1 -1
  99. package/dist/esm/gux-button-slot-beta.entry.js +2 -2
  100. package/dist/esm/gux-button.entry.js +2 -2
  101. package/dist/esm/gux-calendar.entry.js +1 -1
  102. package/dist/esm/gux-card-beta.entry.js +1 -1
  103. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  104. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  105. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  106. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  107. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  108. package/dist/esm/gux-command-palette-legacy.entry.js +1 -1
  109. package/dist/esm/gux-content-search.entry.js +1 -1
  110. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +61 -0
  111. package/dist/esm/gux-datepicker.entry.js +1 -1
  112. package/dist/esm/gux-disclosure-button.entry.js +1 -1
  113. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  114. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  115. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  116. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  117. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  118. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  119. package/dist/esm/gux-form-field-color.entry.js +1 -1
  120. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  121. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  122. package/dist/esm/gux-form-field-number.entry.js +1 -1
  123. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  124. package/dist/esm/gux-form-field-range.entry.js +1 -1
  125. package/dist/esm/gux-form-field-search.entry.js +1 -1
  126. package/dist/esm/gux-form-field-select.entry.js +1 -1
  127. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  128. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  129. package/dist/esm/gux-icon.entry.js +1 -1
  130. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  131. package/dist/esm/gux-list.entry.js +1 -1
  132. package/dist/esm/gux-modal.entry.js +1 -1
  133. package/dist/esm/gux-notification-toast.entry.js +1 -1
  134. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  135. package/dist/esm/gux-pagination-beta.entry.js +1 -1
  136. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  137. package/dist/esm/gux-pagination.entry.js +1 -1
  138. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  139. package/dist/esm/gux-popover-list.entry.js +1 -1
  140. package/dist/esm/gux-popover.entry.js +1 -1
  141. package/dist/esm/gux-radial-loading.entry.js +1 -1
  142. package/dist/esm/gux-radial-progress.entry.js +1 -1
  143. package/dist/esm/gux-rating.entry.js +1 -1
  144. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  145. package/dist/esm/gux-simple-toast.entry.js +1 -1
  146. package/dist/esm/gux-switch.entry.js +1 -1
  147. package/dist/esm/gux-tab-advanced-list.entry.js +6 -4
  148. package/dist/esm/gux-table-beta.entry.js +1 -1
  149. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  150. package/dist/esm/gux-tabs-legacy.entry.js +1 -1
  151. package/dist/esm/gux-tabs.entry.js +1 -1
  152. package/dist/esm/gux-tag-beta.entry.js +1 -1
  153. package/dist/esm/gux-text-highlight.entry.js +1 -1
  154. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  155. package/dist/esm/gux-time-picker-beta.entry.js +1 -1
  156. package/dist/esm/gux-toggle.entry.js +1 -1
  157. package/dist/esm/gux-tooltip_2.entry.js +6 -2
  158. package/dist/esm/gux-visualization-beta.entry.js +1 -1
  159. package/dist/esm/loader.js +1 -1
  160. package/dist/esm/{usage-tracking-5b27676e.js → usage-tracking-fc3b7ccb.js} +1 -1
  161. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  162. package/dist/genesys-webcomponents/i18n/genesys-webcomponents.i18n.en.json +1 -1
  163. package/dist/genesys-webcomponents/icons/badge-x.svg +1 -0
  164. package/dist/genesys-webcomponents/{p-5e34a377.entry.js → p-0020ae27.entry.js} +1 -1
  165. package/dist/genesys-webcomponents/{p-042ea81b.entry.js → p-01b93ec5.entry.js} +1 -1
  166. package/dist/genesys-webcomponents/{p-6161fb6b.entry.js → p-02ac1386.entry.js} +1 -1
  167. package/dist/genesys-webcomponents/{p-3c729ca9.entry.js → p-02f52d82.entry.js} +1 -1
  168. package/dist/genesys-webcomponents/{p-538f687e.entry.js → p-0695da48.entry.js} +1 -1
  169. package/dist/genesys-webcomponents/{p-d3651e84.entry.js → p-06f2a74c.entry.js} +1 -1
  170. package/dist/genesys-webcomponents/{p-cd39c76f.entry.js → p-08b608f1.entry.js} +1 -1
  171. package/dist/genesys-webcomponents/p-114ed2f0.entry.js +1 -0
  172. package/dist/genesys-webcomponents/{p-dd806ffa.entry.js → p-156d16ba.entry.js} +1 -1
  173. package/dist/genesys-webcomponents/{p-4b1d9b18.entry.js → p-1f96bc78.entry.js} +1 -1
  174. package/dist/genesys-webcomponents/{p-6b9d880b.entry.js → p-2522e113.entry.js} +1 -1
  175. package/dist/genesys-webcomponents/{p-abb24a99.entry.js → p-2786c706.entry.js} +1 -1
  176. package/dist/genesys-webcomponents/p-2abb1818.entry.js +1 -0
  177. package/dist/genesys-webcomponents/{p-641d81c3.entry.js → p-2caaa230.entry.js} +1 -1
  178. package/dist/genesys-webcomponents/{p-7cb2bd65.entry.js → p-2cc2a0a9.entry.js} +1 -1
  179. package/dist/genesys-webcomponents/{p-dee54219.entry.js → p-3107d26d.entry.js} +1 -1
  180. package/dist/genesys-webcomponents/{p-1d0ce251.entry.js → p-34ef7894.entry.js} +1 -1
  181. package/dist/genesys-webcomponents/{p-f3854894.entry.js → p-37c061b5.entry.js} +1 -1
  182. package/dist/genesys-webcomponents/{p-2fc188b2.entry.js → p-3a7b1680.entry.js} +1 -1
  183. package/dist/genesys-webcomponents/{p-850d8c38.entry.js → p-3b648997.entry.js} +1 -1
  184. package/dist/genesys-webcomponents/{p-c85b91cc.entry.js → p-3ce6bfda.entry.js} +1 -1
  185. package/dist/genesys-webcomponents/{p-7b1fe670.entry.js → p-3e7c0ef0.entry.js} +1 -1
  186. package/dist/genesys-webcomponents/{p-84f0007e.entry.js → p-442fb80a.entry.js} +1 -1
  187. package/dist/genesys-webcomponents/{p-9e1873f3.entry.js → p-45ac1865.entry.js} +1 -1
  188. package/dist/genesys-webcomponents/{p-96093683.entry.js → p-49f8000f.entry.js} +1 -1
  189. package/dist/genesys-webcomponents/{p-a2f068cc.entry.js → p-53e3f646.entry.js} +1 -1
  190. package/dist/genesys-webcomponents/{p-4fc18cd7.entry.js → p-592580db.entry.js} +1 -1
  191. package/dist/genesys-webcomponents/{p-f28fd9da.entry.js → p-59db5739.entry.js} +1 -1
  192. package/dist/genesys-webcomponents/{p-17aa8836.entry.js → p-5fb2823d.entry.js} +1 -1
  193. package/dist/genesys-webcomponents/{p-4c176aaa.entry.js → p-602bba4b.entry.js} +1 -1
  194. package/dist/genesys-webcomponents/{p-d3f977c0.entry.js → p-62ef8c82.entry.js} +1 -1
  195. package/dist/genesys-webcomponents/{p-5873abaa.entry.js → p-648ddc95.entry.js} +1 -1
  196. package/dist/genesys-webcomponents/{p-50b1124d.entry.js → p-64efe711.entry.js} +1 -1
  197. package/dist/genesys-webcomponents/{p-91148976.entry.js → p-73ae1708.entry.js} +1 -1
  198. package/dist/genesys-webcomponents/{p-c0ead48f.entry.js → p-757f2fcb.entry.js} +1 -1
  199. package/dist/genesys-webcomponents/{p-6a14cb5a.entry.js → p-75a775a7.entry.js} +1 -1
  200. package/dist/genesys-webcomponents/{p-3ca1d844.entry.js → p-794b05f8.entry.js} +1 -1
  201. package/dist/genesys-webcomponents/{p-6a9e83f1.entry.js → p-7a184824.entry.js} +1 -1
  202. package/dist/genesys-webcomponents/{p-8b69c3b0.entry.js → p-7a613c81.entry.js} +1 -1
  203. package/dist/genesys-webcomponents/{p-f2f1f9c7.entry.js → p-8170365b.entry.js} +1 -1
  204. package/dist/genesys-webcomponents/{p-e44794d5.entry.js → p-8221ed99.entry.js} +1 -1
  205. package/dist/genesys-webcomponents/{p-e82c31f8.entry.js → p-832df911.entry.js} +1 -1
  206. package/dist/genesys-webcomponents/{p-cbd959a8.entry.js → p-841cc81d.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-6ea72e49.entry.js → p-86691657.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-e06f89f3.entry.js → p-8723ed76.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-cdde04dd.entry.js → p-8b85c61d.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-23f9df2d.entry.js → p-8d1d6dc8.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/{p-06c90267.entry.js → p-9075c678.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-606912f0.entry.js → p-90adc7db.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-e69eecf5.entry.js → p-919cf5f2.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-33b5eeac.entry.js → p-9a9705c0.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-786e0bb7.entry.js → p-9c6c99aa.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-dbc6db91.entry.js → p-a01b1be1.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-109a4dcd.entry.js → p-a7764b6c.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-2a7779e5.entry.js → p-a8cb2f2f.entry.js} +1 -1
  219. package/dist/genesys-webcomponents/p-bfe6912e.entry.js +1 -0
  220. package/dist/genesys-webcomponents/{p-5965b7dd.entry.js → p-c0645739.entry.js} +1 -1
  221. package/dist/genesys-webcomponents/{p-5a8bc686.entry.js → p-c4ad952f.entry.js} +1 -1
  222. package/dist/genesys-webcomponents/p-c6eab0f6.entry.js +1 -0
  223. package/dist/genesys-webcomponents/{p-01e8bb8b.entry.js → p-c7845333.entry.js} +1 -1
  224. package/dist/genesys-webcomponents/{p-c0fe1fe7.js → p-c84c0715.js} +1 -1
  225. package/dist/genesys-webcomponents/{p-1d92e71b.entry.js → p-ca3d295b.entry.js} +1 -1
  226. package/dist/genesys-webcomponents/{p-54ef5854.entry.js → p-d1fa1f88.entry.js} +1 -1
  227. package/dist/genesys-webcomponents/{p-44c67fae.entry.js → p-d513fc90.entry.js} +1 -1
  228. package/dist/genesys-webcomponents/{p-d2f818bd.entry.js → p-da11be9f.entry.js} +1 -1
  229. package/dist/genesys-webcomponents/{p-a611b1dc.entry.js → p-e2152af7.entry.js} +1 -1
  230. package/dist/genesys-webcomponents/{p-29535a7f.entry.js → p-e555b70e.entry.js} +1 -1
  231. package/dist/genesys-webcomponents/{p-215a00f5.entry.js → p-eea66598.entry.js} +1 -1
  232. package/dist/genesys-webcomponents/{p-5ab45300.entry.js → p-f216d68d.entry.js} +1 -1
  233. package/dist/genesys-webcomponents/{p-4469ab71.entry.js → p-f3f89d6c.entry.js} +1 -1
  234. package/dist/genesys-webcomponents/{p-00061ef5.entry.js → p-f5a4ad18.entry.js} +1 -1
  235. package/dist/genesys-webcomponents/{p-2ded0069.entry.js → p-fafae79b.entry.js} +1 -1
  236. package/dist/stencil-wrapper.js +1 -1
  237. package/dist/types/components/beta/gux-copy-to-clipboard/gux-copy-to-clipboard.d.ts +13 -0
  238. package/dist/types/components/stable/gux-tooltip/gux-tooltip.d.ts +5 -0
  239. package/dist/types/components/stable/gux-tooltip/gux-tooltip.types.d.ts +1 -0
  240. package/dist/types/components.d.ts +22 -0
  241. package/package.json +1 -1
  242. package/dist/genesys-webcomponents/p-820ebbc3.entry.js +0 -1
  243. package/dist/genesys-webcomponents/p-8bcf179a.entry.js +0 -1
  244. package/dist/genesys-webcomponents/p-aa7bffbe.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as o,c as i,h as t,H as s,g as e}from"./p-a085b143.js";import{t as r}from"./p-c0fe1fe7.js";const a=class{constructor(t){o(this,t),this.guxdismiss=i(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return t(s,null,t("div",{class:`gux-icon gux-${this.accent}`},t("slot",{name:"icon"})),t("div",{class:"gux-message"},t("slot",{name:"message"})),t("gux-dismiss-button",{onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(o){o.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return e(this)}};a.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;width:286px;padding:8px 16px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid;border-color:#b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;margin:6px 0}.gux-icon.gux-alert{color:#ea0b0b}.gux-icon.gux-warning{color:#ffae00}.gux-icon.gux-positive{color:#3c8527}.gux-icon.gux-neutral{color:#203b73}.gux-icon gux-icon{width:12px;height:12px}.gux-message{flex:1 1 auto;align-self:auto;order:0;max-height:48px;margin:0 12px 0 8px;overflow:hidden;line-height:24px;text-overflow:ellipsis}";export{a as gux_simple_toast}
1
+ import{r as o,c as i,h as t,H as s,g as e}from"./p-a085b143.js";import{t as r}from"./p-c84c0715.js";const a=class{constructor(t){o(this,t),this.guxdismiss=i(this,"guxdismiss",7),this.accent="neutral"}componentWillLoad(){r(this.root,{variant:this.accent})}render(){return t(s,null,t("div",{class:`gux-icon gux-${this.accent}`},t("slot",{name:"icon"})),t("div",{class:"gux-message"},t("slot",{name:"message"})),t("gux-dismiss-button",{onClick:this.onDismissClickHandler.bind(this)}))}onDismissClickHandler(o){o.stopPropagation(),this.guxdismiss.emit().defaultPrevented||this.root.remove()}get root(){return e(this)}};a.style=":host{position:relative;display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;width:286px;padding:8px 16px;margin-bottom:4px;color:#2e394c;background:#f6f7f9;border:1px solid;border-color:#b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24)}.gux-icon{flex:0 1 auto;align-self:auto;order:0;margin:6px 0}.gux-icon.gux-alert{color:#ea0b0b}.gux-icon.gux-warning{color:#ffae00}.gux-icon.gux-positive{color:#3c8527}.gux-icon.gux-neutral{color:#203b73}.gux-icon gux-icon{width:12px;height:12px}.gux-message{flex:1 1 auto;align-self:auto;order:0;max-height:48px;margin:0 12px 0 8px;overflow:hidden;line-height:24px;text-overflow:ellipsis}";export{a as gux_simple_toast}
@@ -1 +1 @@
1
- import{r as t,h as e,g as i}from"./p-a085b143.js";import{b as o}from"./p-2548bdad.js";import{O as n}from"./p-4b7056b2.js";import{o as r,a as s}from"./p-e2bea786.js";import{p as a}from"./p-c10e41a9.js";import{t as l}from"./p-c0fe1fe7.js";import{s as u}from"./p-8fe7daff.js";import{s as p}from"./p-d176c2ae.js";import{G as c,a as x}from"./p-afb54d23.js";import{h as d,c as g,G as h,a as f,v as b,g as m}from"./p-08b07a2b.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";const w={increment:"Increment",decrement:"Decrement"};const v=class{constructor(e){t(this,e),this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1}onMutation(){this.hasError=d(this.root)}async componentWillLoad(){this.getI18nValue=await o(this.root,w),this.setInput(),this.setLabel(),this.hasError=d(this.root),l(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){const t=this.clearable&&this.hasContent&&!this.disabled;return e(x,{labelPosition:this.computedLabelPosition},e(c,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()})),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":t}},e("slot",{name:"input",onSlotchange:()=>this.setInput()}),t&&e("gux-form-field-input-clear-button",{onClick:()=>g(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),e(h,{hasError:this.hasError},e("slot",{name:"error"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${t}`}setInput(){this.input=this.root.querySelector('input[type="number"][slot="input"]'),this.hasContent=f(this.input),a(this.input),this.input.addEventListener("input",(()=>{this.hasContent=f(this.input)})),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=r(this.input,(t=>{this.disabled=t})),this.requiredObserver=s(this.input,(t=>{this.required=t})),b(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=m(this.label,this.labelPosition)}renderStepButtons(t,i,o){return e("div",{class:"gux-step-buttons-container"},e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:i("increment"),disabled:o,onClick:()=>this.stepUp(t)},e("gux-icon",{"icon-name":"chevron-small-up",decorative:!0})),e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:i("decrement"),disabled:o,onClick:()=>this.stepDown(t)},e("gux-icon",{"icon-name":"chevron-small-down",decorative:!0})))}stepDown(t){""===t.value?u(t,t.min||"0",!1):(t.stepDown(),this.simulateNativeInputAndChangeEvents(t))}stepUp(t){""===t.value?u(t,t.min||"0",!1):(t.stepUp(),this.simulateNativeInputAndChangeEvents(t))}simulateNativeInputAndChangeEvents(t){p(t,"input"),p(t,"change")}get root(){return i(this)}};(function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);r>3&&s&&Object.defineProperty(e,i,s)})([n({childList:!0,subtree:!0})],v.prototype,"onMutation",null),v.style=".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-align:right;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 12px;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-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container.gux-clear{padding-right:0}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input .gux-input-container.gux-input-error .gux-input-container{border-color:#ea0b0b}.gux-step-buttons-container{flex:0 1 16px;align-self:auto;order:0;margin:0 4px}.gux-step-buttons-container .gux-step-button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}.gux-step-buttons-container .gux-step-button:not(:disabled):focus,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{color:#2a60c8;cursor:pointer}.gux-step-buttons-container .gux-step-button gux-icon{width:10px;height:10px}";export{v as gux_form_field_number}
1
+ import{r as t,h as e,g as i}from"./p-a085b143.js";import{b as o}from"./p-2548bdad.js";import{O as n}from"./p-4b7056b2.js";import{o as r,a as s}from"./p-e2bea786.js";import{p as a}from"./p-c10e41a9.js";import{t as l}from"./p-c84c0715.js";import{s as u}from"./p-8fe7daff.js";import{s as p}from"./p-d176c2ae.js";import{G as c,a as x}from"./p-afb54d23.js";import{h as d,c as g,G as h,a as f,v as b,g as m}from"./p-08b07a2b.js";import"./p-8a133b9b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";const w={increment:"Increment",decrement:"Decrement"};const v=class{constructor(e){t(this,e),this.computedLabelPosition="above",this.hasContent=!1,this.hasError=!1}onMutation(){this.hasError=d(this.root)}async componentWillLoad(){this.getI18nValue=await o(this.root,w),this.setInput(),this.setLabel(),this.hasError=d(this.root),l(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){const t=this.clearable&&this.hasContent&&!this.disabled;return e(x,{labelPosition:this.computedLabelPosition},e(c,{position:this.computedLabelPosition,required:this.required},e("slot",{name:"label",onSlotchange:()=>this.setLabel()})),e("div",{class:"gux-input-and-error-container"},e("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},e("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled,"gux-clear":t}},e("slot",{name:"input",onSlotchange:()=>this.setInput()}),t&&e("gux-form-field-input-clear-button",{onClick:()=>g(this.input)})),this.renderStepButtons(this.input,this.getI18nValue,this.disabled)),e(h,{hasError:this.hasError},e("slot",{name:"error"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.clearable?"clearable":"unclearable"}-${t}`}setInput(){this.input=this.root.querySelector('input[type="number"][slot="input"]'),this.hasContent=f(this.input),a(this.input),this.input.addEventListener("input",(()=>{this.hasContent=f(this.input)})),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=r(this.input,(t=>{this.disabled=t})),this.requiredObserver=s(this.input,(t=>{this.required=t})),b(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=m(this.label,this.labelPosition)}renderStepButtons(t,i,o){return e("div",{class:"gux-step-buttons-container"},e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:i("increment"),disabled:o,onClick:()=>this.stepUp(t)},e("gux-icon",{"icon-name":"chevron-small-up",decorative:!0})),e("button",{class:"gux-step-button",tabIndex:-1,type:"button",title:i("decrement"),disabled:o,onClick:()=>this.stepDown(t)},e("gux-icon",{"icon-name":"chevron-small-down",decorative:!0})))}stepDown(t){""===t.value?u(t,t.min||"0",!1):(t.stepDown(),this.simulateNativeInputAndChangeEvents(t))}stepUp(t){""===t.value?u(t,t.min||"0",!1):(t.stepUp(),this.simulateNativeInputAndChangeEvents(t))}simulateNativeInputAndChangeEvents(t){p(t,"input"),p(t,"change")}get root(){return i(this)}};(function(t,e,i,o){var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);r>3&&s&&Object.defineProperty(e,i,s)})([n({childList:!0,subtree:!0})],v.prototype,"onMutation",null),v.style=".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-align:right;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 12px;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-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container.gux-clear{padding-right:0}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input .gux-input-container.gux-input-error .gux-input-container{border-color:#ea0b0b}.gux-step-buttons-container{flex:0 1 16px;align-self:auto;order:0;margin:0 4px}.gux-step-buttons-container .gux-step-button{flex:0 1 auto;align-self:auto;order:0;padding:2px;color:#596373;background:transparent;border:none}.gux-step-buttons-container .gux-step-button:not(:disabled):focus,.gux-step-buttons-container .gux-step-button:not(:disabled):hover{color:#2a60c8;cursor:pointer}.gux-step-buttons-container .gux-step-button gux-icon{width:10px;height:10px}";export{v as gux_form_field_number}
@@ -1 +1 @@
1
- import{r as t,h as s,g as i}from"./p-a085b143.js";import{m as r,g as n}from"./p-5ac4e2cf.js";import{t as h}from"./p-c0fe1fe7.js";const e=class{constructor(s){t(this,s),this.strategy="start"}componentWillLoad(){h(this.root)}render(){if(this.highlight&&this.text)switch(this.strategy){case"start":return this.renderStartsWith();case"contains":return this.renderContains();case"fuzzy":return this.renderFuzzy()}return s("span",null,this.text)}renderStartsWith(){if(this.text.toLowerCase().startsWith(this.highlight.toLowerCase())){const t=this.text.substring(0,this.highlight.length),i=this.text.substring(this.highlight.length);return s("span",null,s("mark",null,t),i)}return s("span",null,this.text)}renderContains(){const t={highlighted:"",remaining:this.text};for(;t.remaining.toLowerCase().includes(this.highlight.toLowerCase());){const s=t.remaining.toLowerCase().indexOf(this.highlight.toLowerCase()),i=t.remaining.substring(0,s),r=t.remaining.substring(s,s+this.highlight.length);t.highlighted+=i+`<mark>${r}</mark>`,t.remaining=t.remaining.substring(s+r.length)}return s("span",{innerHTML:t.highlighted+t.remaining})}renderFuzzy(){if(r(this.highlight,this.text)){const t=n(this.highlight).reduce(((t,s)=>{const{0:i,index:r,input:n}=t.remaining.match(s),h=n.substring(0,r);return{highlighted:`${t.highlighted+h}<mark>${i}</mark>`,remaining:n.substring(r+i.length)}}),{highlighted:"",remaining:this.text});return s("span",{innerHTML:t.highlighted+t.remaining})}return s("span",null,this.text)}get root(){return i(this)}};export{e as gux_text_highlight}
1
+ import{r as t,h as s,g as i}from"./p-a085b143.js";import{m as r,g as n}from"./p-5ac4e2cf.js";import{t as h}from"./p-c84c0715.js";const e=class{constructor(s){t(this,s),this.strategy="start"}componentWillLoad(){h(this.root)}render(){if(this.highlight&&this.text)switch(this.strategy){case"start":return this.renderStartsWith();case"contains":return this.renderContains();case"fuzzy":return this.renderFuzzy()}return s("span",null,this.text)}renderStartsWith(){if(this.text.toLowerCase().startsWith(this.highlight.toLowerCase())){const t=this.text.substring(0,this.highlight.length),i=this.text.substring(this.highlight.length);return s("span",null,s("mark",null,t),i)}return s("span",null,this.text)}renderContains(){const t={highlighted:"",remaining:this.text};for(;t.remaining.toLowerCase().includes(this.highlight.toLowerCase());){const s=t.remaining.toLowerCase().indexOf(this.highlight.toLowerCase()),i=t.remaining.substring(0,s),r=t.remaining.substring(s,s+this.highlight.length);t.highlighted+=i+`<mark>${r}</mark>`,t.remaining=t.remaining.substring(s+r.length)}return s("span",{innerHTML:t.highlighted+t.remaining})}renderFuzzy(){if(r(this.highlight,this.text)){const t=n(this.highlight).reduce(((t,s)=>{const{0:i,index:r,input:n}=t.remaining.match(s),h=n.substring(0,r);return{highlighted:`${t.highlighted+h}<mark>${i}</mark>`,remaining:n.substring(r+i.length)}}),{highlighted:"",remaining:this.text});return s("span",{innerHTML:t.highlighted+t.remaining})}return s("span",null,this.text)}get root(){return i(this)}};export{e as gux_text_highlight}
@@ -1 +1 @@
1
- import{r as t,h as e,g as i}from"./p-a085b143.js";import{t as a}from"./p-c0fe1fe7.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
+ import{r as t,h as e,g as i}from"./p-a085b143.js";import{t as a}from"./p-c84c0715.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 c=Object.assign(this.baseChartSpec,t);this.visualizationSpec=c}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 +1 @@
1
- import{r,h as s,g as t}from"./p-a085b143.js";import{t as e}from"./p-c0fe1fe7.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
+ import{r,h as s,g as t}from"./p-a085b143.js";import{t as e}from"./p-c84c0715.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}
@@ -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 = '/spark-components/build-assets/3.3.0-34/';
9
+ const CDN_URL = 'https://app.mypurecloud.com/spark-components/build-assets/3.4.0-40/genesys-webcomponents/';
10
10
  export function registerElements() {
11
11
  if (CDN_URL) {
12
12
  defineCustomElements(window, { resourcesUrl: CDN_URL });
@@ -0,0 +1,13 @@
1
+ import { JSX } from '../../../stencil-public-runtime';
2
+ export declare class GuxCopyToClipboard {
3
+ private i18n;
4
+ private root;
5
+ tooltipContent: string;
6
+ onMouseleave(): void;
7
+ onFocusout(): void;
8
+ onFocus(): void;
9
+ private resetTooltip;
10
+ private onCopyToClipboard;
11
+ componentWillLoad(): Promise<void>;
12
+ render(): JSX.Element;
13
+ }
@@ -1,4 +1,5 @@
1
1
  import { JSX } from '../../../stencil-public-runtime';
2
+ import { GuxTooltipPlacements } from './gux-tooltip.types';
2
3
  /**
3
4
  * @slot - Content of the tooltip
4
5
  */
@@ -16,6 +17,10 @@ export declare class GuxTooltip {
16
17
  * Indicates the id of the element the popover should anchor to. (If not supplied the parent element is used)
17
18
  */
18
19
  for: string;
20
+ /**
21
+ * Placement of the tooltip. Default is bottom-start
22
+ */
23
+ placement: GuxTooltipPlacements;
19
24
  /**
20
25
  * If tooltip is shown or not
21
26
  */
@@ -0,0 +1 @@
1
+ export declare type GuxTooltipPlacements = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end' | 'auto' | 'auto-start' | 'auto-end';
@@ -35,6 +35,7 @@ import { GuxTableSelectedState, GuxTableSortState } from "./components/beta/gux-
35
35
  import { GuxTabsAlignment, GuxTabsOrientation } from "./components/stable/gux-tabs/gux-tabs-types";
36
36
  import { GuxTagColor } from "./components/beta/gux-tag/gux-tag.types";
37
37
  import { GuxToggleLabelPosition } from "./components/stable/gux-toggle/gux-toggle.types";
38
+ import { GuxTooltipPlacements } from "./components/stable/gux-tooltip/gux-tooltip.types";
38
39
  export namespace Components {
39
40
  interface GuxAccordion {
40
41
  "singleOpenSection": boolean;
@@ -509,6 +510,8 @@ export namespace Components {
509
510
  */
510
511
  "matchCount": number;
511
512
  }
513
+ interface GuxCopyToClipboardBeta {
514
+ }
512
515
  interface GuxDatepicker {
513
516
  /**
514
517
  * Disable the input and prevent interactions.
@@ -1213,6 +1216,10 @@ export namespace Components {
1213
1216
  */
1214
1217
  "for": string;
1215
1218
  "hideTooltip": () => Promise<void>;
1219
+ /**
1220
+ * Placement of the tooltip. Default is bottom-start
1221
+ */
1222
+ "placement": GuxTooltipPlacements;
1216
1223
  "showTooltip": () => Promise<void>;
1217
1224
  }
1218
1225
  interface GuxTooltipTitle {
@@ -1583,6 +1590,12 @@ declare global {
1583
1590
  prototype: HTMLGuxContentSearchElement;
1584
1591
  new (): HTMLGuxContentSearchElement;
1585
1592
  };
1593
+ interface HTMLGuxCopyToClipboardBetaElement extends Components.GuxCopyToClipboardBeta, HTMLStencilElement {
1594
+ }
1595
+ var HTMLGuxCopyToClipboardBetaElement: {
1596
+ prototype: HTMLGuxCopyToClipboardBetaElement;
1597
+ new (): HTMLGuxCopyToClipboardBetaElement;
1598
+ };
1586
1599
  interface HTMLGuxDatepickerElement extends Components.GuxDatepicker, HTMLStencilElement {
1587
1600
  }
1588
1601
  var HTMLGuxDatepickerElement: {
@@ -2141,6 +2154,7 @@ declare global {
2141
2154
  "gux-command-action": HTMLGuxCommandActionElement;
2142
2155
  "gux-command-palette-legacy": HTMLGuxCommandPaletteLegacyElement;
2143
2156
  "gux-content-search": HTMLGuxContentSearchElement;
2157
+ "gux-copy-to-clipboard-beta": HTMLGuxCopyToClipboardBetaElement;
2144
2158
  "gux-datepicker": HTMLGuxDatepickerElement;
2145
2159
  "gux-disclosure-button": HTMLGuxDisclosureButtonElement;
2146
2160
  "gux-dismiss-button": HTMLGuxDismissButtonElement;
@@ -2712,6 +2726,8 @@ declare namespace LocalJSX {
2712
2726
  */
2713
2727
  "onGuxcurrentmatchchanged"?: (event: GuxContentSearchCustomEvent<number>) => void;
2714
2728
  }
2729
+ interface GuxCopyToClipboardBeta {
2730
+ }
2715
2731
  interface GuxDatepicker {
2716
2732
  /**
2717
2733
  * Disable the input and prevent interactions.
@@ -3465,6 +3481,10 @@ declare namespace LocalJSX {
3465
3481
  * Indicates the id of the element the popover should anchor to. (If not supplied the parent element is used)
3466
3482
  */
3467
3483
  "for"?: string;
3484
+ /**
3485
+ * Placement of the tooltip. Default is bottom-start
3486
+ */
3487
+ "placement"?: GuxTooltipPlacements;
3468
3488
  }
3469
3489
  interface GuxTooltipTitle {
3470
3490
  }
@@ -3504,6 +3524,7 @@ declare namespace LocalJSX {
3504
3524
  "gux-command-action": GuxCommandAction;
3505
3525
  "gux-command-palette-legacy": GuxCommandPaletteLegacy;
3506
3526
  "gux-content-search": GuxContentSearch;
3527
+ "gux-copy-to-clipboard-beta": GuxCopyToClipboardBeta;
3507
3528
  "gux-datepicker": GuxDatepicker;
3508
3529
  "gux-disclosure-button": GuxDisclosureButton;
3509
3530
  "gux-dismiss-button": GuxDismissButton;
@@ -3627,6 +3648,7 @@ declare module "@stencil/core" {
3627
3648
  "gux-command-action": LocalJSX.GuxCommandAction & JSXBase.HTMLAttributes<HTMLGuxCommandActionElement>;
3628
3649
  "gux-command-palette-legacy": LocalJSX.GuxCommandPaletteLegacy & JSXBase.HTMLAttributes<HTMLGuxCommandPaletteLegacyElement>;
3629
3650
  "gux-content-search": LocalJSX.GuxContentSearch & JSXBase.HTMLAttributes<HTMLGuxContentSearchElement>;
3651
+ "gux-copy-to-clipboard-beta": LocalJSX.GuxCopyToClipboardBeta & JSXBase.HTMLAttributes<HTMLGuxCopyToClipboardBetaElement>;
3630
3652
  "gux-datepicker": LocalJSX.GuxDatepicker & JSXBase.HTMLAttributes<HTMLGuxDatepickerElement>;
3631
3653
  "gux-disclosure-button": LocalJSX.GuxDisclosureButton & JSXBase.HTMLAttributes<HTMLGuxDisclosureButtonElement>;
3632
3654
  "gux-dismiss-button": LocalJSX.GuxDismissButton & JSXBase.HTMLAttributes<HTMLGuxDismissButtonElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-spark-components",
3
- "version": "3.3.1",
3
+ "version": "3.4.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 i,H as e,g as o}from"./p-a085b143.js";import{r as s}from"./p-cbcbd1bb.js";import{t as r}from"./p-c0fe1fe7.js";import{c as n}from"./p-4c66f794.js";import{l as h}from"./p-3184268e.js";import{O as l}from"./p-4b7056b2.js";const a=class{constructor(i){t(this,i),this.mouseenterHandler=()=>this.show(),this.mouseleaveHandler=()=>this.hide(),this.focusinHandler=()=>this.show(),this.focusoutHandler=()=>this.hide(),this.id=s("gux-tooltip"),this.isShown=!1}handleKeyDown(t){"Escape"===t.key&&this.isShown&&this.hide()}async showTooltip(){this.show()}async hideTooltip(){this.hide()}show(){this.popperInstance.forceUpdate(),this.delayTimeout=setTimeout((()=>{this.isShown=!0}),750)}hide(){clearTimeout(this.delayTimeout),this.isShown=!1}getForElement(){this.forElement=this.for?document.getElementById(this.for):this.root.parentElement}logForAttributeError(){console.error(`gux-tooltip: invalid element supplied to 'for': "${this.for}"`)}connectedCallback(){this.getForElement(),this.forElement?(this.forElement.setAttribute("aria-describedby",this.id),this.popperInstance=n(this.forElement,this.root,{modifiers:[{name:"offset",options:{offset:[0,16]}}],placement:"bottom-start",strategy:"fixed"}),this.forElement.addEventListener("mouseenter",this.mouseenterHandler),this.forElement.addEventListener("mouseleave",this.mouseleaveHandler),this.forElement.addEventListener("focusin",this.focusinHandler),this.forElement.addEventListener("focusout",this.focusoutHandler)):this.logForAttributeError()}componentWillLoad(){r(this.root)}disconnectedCallback(){this.forElement.removeAttribute("aria-describedby"),this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null),this.forElement.removeEventListener("mouseenter",this.mouseenterHandler),this.forElement.removeEventListener("mouseleave",this.mouseleaveHandler),this.forElement.removeEventListener("focusin",this.focusinHandler),this.forElement.removeEventListener("focusout",this.focusoutHandler)}render(){return i(e,{id:this.id,class:{"gux-show":this.isShown},role:"tooltip"},i("slot",null))}get root(){return o(this)}};a.style=":host{z-index:1;box-sizing:border-box;max-width:250px;padding:6px 12px;font-size:12px;color:#2e394c;pointer-events:none;visibility:hidden !important;background-color:#fdfdfd;border:1px solid #b4bccb;border-radius:4px;box-shadow:0 2px 4px rgba(32, 41, 55, 0.24);opacity:0;transition:opacity 0.25s ease-in-out}:host(.gux-show){visibility:visible !important;opacity:1}";const c=class{constructor(i){t(this,i),this.hasTooltip=!1,this.showTooltip=!1,this.iconOnly=!1,this.titleName=""}onmouseenter(t){t.buttons||(this.showTooltip=!0)}onmouseleave(){this.showTooltip=!1}onmousedown(){this.showTooltip=!1}async setShowTooltip(){this.tooltipElement&&(this.showTooltip=!0,await this.tooltipElement.showTooltip())}async setHideTooltip(){this.tooltipElement&&(this.showTooltip=!1,await this.tooltipElement.hideTooltip())}onMutation(){this.titleName=this.setTooltipTitleText(),this.checkForTooltipHideOrShow()}componentWillLoad(){this.titleName=this.setTooltipTitleText()}componentDidLoad(){this.logErrorNoIconSrText()}logErrorNoIconSrText(){this.iconOnly&&!this.titleName&&h("gux-tooltip-title","No screenreader-text provided. Provide a localized screenreader-text property for the gux-icon. The screenreader-text property is used for the icon screenreader text and the tooltip.")}addIconDecorative(){this.root.classList.add("gux-tooltip-icon-decorative")}getTitleElements(){var t;const i=this.root.querySelector("slot"),e=null===(t=this.root.querySelector(".gux-title-container span"))||void 0===t?void 0:t.children;return i?i.assignedElements():e?Array.from(e):[]}getTitleTextContent(){return this.root.querySelector("slot")?this.root.querySelector("slot").assignedNodes().map((t=>t.textContent)).join("").trim():this.root.querySelector(".gux-title-container")?this.root.querySelector(".gux-title-container").textContent.trim():""}setTooltipTitleText(){let t=this.getTitleTextContent();return this.getTitleElements().forEach((i=>{"GUX-ICON"!==i.tagName||this.getTitleTextContent()?"GUX-ICON"===i.tagName&&this.getTitleTextContent()&&this.addIconDecorative():(this.iconOnly=!0,t=i.getAttribute("screenreader-text"))})),t}checkForTooltipHideOrShow(){const t=this.root.querySelector(".gux-title-container");this.root.classList.remove("gux-overflow-hidden"),this.iconOnly&&this.titleName?this.hasTooltip=!0:(null==t?void 0:t.scrollWidth)>(null==t?void 0:t.offsetWidth)?(this.root.classList.add("gux-overflow-hidden"),this.hasTooltip=!0):this.hasTooltip=!1}render(){return[i("span",{class:"gux-title-container"},i("slot",null)),this.renderTooltip()]}renderTooltip(){if(this.hasTooltip)return i("gux-tooltip",{"aria-hidden":"true",ref:t=>this.tooltipElement=t,hidden:!this.showTooltip},this.titleName)}get root(){return o(this)}};(function(t,i,e,o){var s,r=arguments.length,n=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,o);else for(var h=t.length-1;h>=0;h--)(s=t[h])&&(n=(r<3?s(n):r>3?s(i,e,n):s(i,e))||n);r>3&&n&&Object.defineProperty(i,e,n)})([l({childList:!0,subtree:!0})],c.prototype,"onMutation",null),c.style="gux-tooltip-title{overflow:hidden;cursor:default}gux-tooltip{font-weight:normal;line-height:normal;text-align:left;overflow-wrap:break-word;white-space:normal}.gux-overflow-hidden .gux-title-container ::slotted(span){overflow:hidden;text-overflow:ellipsis}.gux-overflow-hidden .gux-title-container>*{overflow:hidden;text-overflow:ellipsis}.gux-title-container{display:flex;pointer-events:none}.gux-tooltip-icon-decorative .gux-title-container{position:relative;margin-left:calc(1rem + 4px)}.gux-tooltip-icon-decorative .gux-title-container gux-icon,.gux-tooltip-icon-decorative .gux-title-container ::slotted(gux-icon){position:absolute;left:calc(-1rem - 4px);flex-shrink:0}";export{a as gux_tooltip,c as gux_tooltip_title}
@@ -1 +0,0 @@
1
- import{r as t,c as i,d as a,w as o,h as s,g as n}from"./p-a085b143.js";import{S as e}from"./p-020b6498.js";import{O as c}from"./p-4b7056b2.js";import{b as r}from"./p-2548bdad.js";import{e as l}from"./p-29e8b184.js";import{t as d}from"./p-2c3d934a.js";import"./p-8a133b9b.js";const b=class{constructor(a){t(this,a),this.newTab=i(this,"newTab",7),this.sortChanged=i(this,"sortChanged",7),this.moveFocusDelay=100,this.showNewTabButton=!0,this.tabLimit=1/0,this.allowSort=!0,this.focused=0,this.disableAddTabButton=!1,this.hasScrollbar=!1,this.keyboardSort=!1,this.initialSortIndex=0,this.ariaLiveAlert=""}onFocusin(t){this.allowSort&&l(".gux-scrollable-section",t)&&!this.keyboardSort&&(this.ariaLiveAlert="toggleSort")}onFocusout(t){this.root.querySelector(".gux-scrollable-section").contains(t.relatedTarget)||this.tabTriggers.forEach((async(t,i)=>{await t.guxGetActive()?this.focused=i:(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))}))}onMutation(){this.setTabTriggers()}onKeydown(t){switch(t.key){case"ArrowRight":case"ArrowDown":if(t.preventDefault(),this.keyboardSort&&!l(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-scrollable-section"),i=t.querySelectorAll("gux-tab-advanced"),a=Array.prototype.indexOf.call(i,this.sortTarget);let o;o=a===i.length-1?i[0]:i[a+2],t.insertBefore(this.sortTarget,o),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var a;t.tabId===(null===(a=this.sortTarget)||void 0===a?void 0:a.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.focused)}else l(".gux-tab-options-button",t)||l(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("forward");break;case"ArrowLeft":case"ArrowUp":if(t.preventDefault(),this.keyboardSort&&!l(".gux-tab-options-button",t)){this.ariaLiveAlert="";const t=this.root.querySelector(".gux-scrollable-section"),i=t.querySelectorAll("gux-tab-advanced"),a=Array.prototype.indexOf.call(i,this.sortTarget);t.insertBefore(this.sortTarget,i[a-1]||null),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var a;t.tabId===(null===(a=this.sortTarget)||void 0===a?void 0:a.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.focused)}else l(".gux-tab-options-button",t)||l(".gux-dropdown-option-container",t)||this.handleKeyboardScroll("backward");break;case"Escape":t.preventDefault(),this.keyboardSort&&this.allowSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled",this.root.querySelector(".gux-scrollable-section").insertBefore(this.sortTarget,this.tabTriggers[this.initialSortIndex]||null)),this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var a;t.tabId===(null===(a=this.sortTarget)||void 0===a?void 0:a.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.initialSortIndex),setTimeout((()=>{this.focusTab(this.initialSortIndex)}),this.moveFocusDelay);break;case"Enter":this.keyboardSort&&(t.preventDefault(),this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var a;t.tabId===(null===(a=this.sortTarget)||void 0===a?void 0:a.getAttribute("tab-id"))&&(this.focused=i)})));break;case"Tab":this.keyboardSort&&(this.keyboardSort=!1,this.ariaLiveAlert="sortCancelled");break;case"Home":t.preventDefault(),this.focusTab(0);break;case"End":t.preventDefault(),this.focusTab(this.tabTriggers.length-1)}}onKeyup(t){switch(t.key){case" ":l(".gux-tab",t)&&!l(".gux-tab-options-button",t)&&!l("gux-popover-list",t)&&this.allowSort&&(t.preventDefault(),!0===this.keyboardSort?(this.keyboardSort=!1,this.ariaLiveAlert="sortComplete",this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.tabTriggers.forEach(((t,i)=>{var a;t.tabId===(null===(a=this.sortTarget)||void 0===a?void 0:a.getAttribute("tab-id"))&&(this.focused=i)})),this.focusTab(this.focused)):(this.keyboardSort=!0,this.sortTarget=t.target.parentNode.parentNode,this.tabTriggers.forEach(((t,i)=>{var a;t.tabId===(null===(a=this.sortTarget)||void 0===a?void 0:a.getAttribute("tab-id"))&&(this.initialSortIndex=i)})),this.ariaLiveAlert="sortModeOn"))}}async guxSetActive(t){this.tabTriggers.forEach(((i,a)=>{const o=i.tabId===t;i.guxSetActive(o),o&&(this.focused=a)}))}focusTab(t){this.focused=t,this.tabTriggers.forEach((async(t,i)=>{const a=await t.guxGetActive();this.focused===i||a||(t.querySelector(".gux-tab-button").setAttribute("tabindex","-1"),t.querySelector(".gux-tab-options-button")&&t.querySelector(".gux-tab-options-button").setAttribute("tabindex","-1"))})),this.tabTriggers[this.focused].querySelector("button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].querySelector(".gux-tab-options-button")&&this.tabTriggers[this.focused].querySelector(".gux-tab-options-button").setAttribute("tabindex","0"),this.tabTriggers[this.focused].guxFocus()}setTabTriggers(){this.tabTriggers=this.root.querySelectorAll("gux-tab-advanced"),this.triggerIds=this.tabTriggers?Array.from(this.tabTriggers).map((t=>`gux-${t.getAttribute("tab-id")}-tab`)).join(" "):""}createSortable(){this.sortableInstance=new e(this.root.querySelector(".gux-scrollable-section"),{animation:250,draggable:"gux-tab-advanced",filter:".ignore-sort",onMove:t=>!t.related.classList.contains("ignore-sort"),onUpdate:()=>{const t=Array.from(this.root.querySelectorAll("gux-tab-advanced")).map((t=>t.tabId));this.sortChanged.emit(t)}})}destroySortable(){this.sortableInstance&&(this.sortableInstance.destroy(),this.sortableInstance=null)}checkForScrollbarHideOrShow(){a((()=>{const t=this.root.querySelector(".gux-scrollable-section"),i=t.clientWidth<t.scrollWidth;i!==this.hasScrollbar&&(this.hasScrollbar=i)}))}handleKeyboardScroll(t){const i=this.root.querySelector(".gux-scrollable-section"),a=this.root.querySelectorAll("gux-tab-advanced")[this.focused];"forward"===t?this.focused<this.tabTriggers.length-1?(o((()=>{this.hasScrollbar&&i.scrollBy(a.clientWidth,0)})),this.focusTab(this.focused+1)):(o((()=>{this.hasScrollbar&&i.scrollBy(-i.scrollWidth,0)})),this.focusTab(0)):"backward"===t&&(this.focused>0?(o((()=>{this.hasScrollbar&&i.scrollBy(-a.clientWidth,0)})),this.focusTab(this.focused-1)):(o((()=>{this.hasScrollbar&&i.scrollBy(i.scrollWidth,0)})),this.focusTab(this.tabTriggers.length-1)))}disconnectedCallback(){this.sortableInstance&&this.destroySortable(),this.resizeObserver&&this.resizeObserver.unobserve(this.root.querySelector(".gux-tab-container")),this.domObserver&&this.domObserver.disconnect()}async componentWillLoad(){this.setTabTriggers(),this.i18n=await r(this.root,d,"gux-tabs-advanced")}componentDidLoad(){this.allowSort&&!this.sortableInstance&&this.createSortable(),!this.resizeObserver&&window.ResizeObserver&&(this.resizeObserver=new ResizeObserver((()=>this.checkForScrollbarHideOrShow()))),this.resizeObserver&&this.resizeObserver.observe(this.root.querySelector(".gux-scrollable-section")),!this.domObserver&&window.MutationObserver&&(this.domObserver=new MutationObserver((()=>this.checkForScrollbarHideOrShow()))),this.domObserver&&this.domObserver.observe(this.root,{childList:!0,attributes:!1,subtree:!0}),setTimeout((()=>{this.checkForScrollbarHideOrShow()}),500)}scrollLeft(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(-100,0)}))}scrollRight(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(100,0)}))}scrollUp(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,-100)}))}scrollDown(){o((()=>{this.root.querySelector(".gux-scrollable-section").scrollBy(0,100)}))}componentWillRender(){Array.from(this.root.querySelectorAll("gux-tab-advanced")).length>=this.tabLimit&&(this.disableAddTabButton=!0)}render(){const t=t=>s("button",{title:this.i18n(this.disableAddTabButton?"disableNewTab":"createNewTab"),class:"add-tab",onClick:()=>t.onClick(),disabled:this.disableAddTabButton},s("gux-icon",{"icon-name":"add",decorative:!0}));return[s("span",{class:"gux-sr-only gux-aria-live-region","aria-live":"polite"},this.ariaLiveAlert?this.i18n(this.ariaLiveAlert):""),s("div",{class:"gux-tab-container"},s("div",{class:"action-button-container"},this.renderScrollButton(this.hasScrollbar?"scrollLeft":"scrollUp")),s("div",{role:"tablist",class:"gux-scrollable-section "+(this.keyboardSort?"gux-tab-sorting":""),"aria-owns":this.triggerIds},s("slot",null)),s("div",{class:"new-tab"},this.showNewTabButton&&!this.hasScrollbar?s(t,{onClick:()=>this.newTab.emit()}):null),s("div",{class:"action-button-container"},this.renderScrollButton(this.hasScrollbar?"scrollRight":"scrollDown"),this.showNewTabButton&&this.hasScrollbar?s(t,{onClick:()=>this.newTab.emit()}):null))]}renderScrollButton(t){return s("div",{class:"gux-scroll-button-container"},this.hasScrollbar?s("button",{tabindex:"-1",title:this.i18n(t),"aria-label":this.i18n(t),class:"gux-scroll-button",onClick:()=>this.getScrollDirection(t)},s("gux-icon",{"icon-name":this.getChevronIconName(t),decorative:!0})):null)}getScrollDirection(t){switch(t){case"scrollLeft":this.scrollLeft();break;case"scrollRight":this.scrollRight();break;case"scrollUp":this.scrollUp();break;case"scrollDown":this.scrollDown()}}getChevronIconName(t){switch(t){case"scrollLeft":return"chevron-left";case"scrollRight":return"chevron-right";case"scrollUp":return"chevron-up";case"scrollDown":return"chevron-down"}}get root(){return n(this)}};(function(t,i,a,o){var s,n=arguments.length,e=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,i,a,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(e=(n<3?s(e):n>3?s(i,a,e):s(i,a))||e);n>3&&e&&Object.defineProperty(i,a,e)})([c({childList:!0,subtree:!0})],b.prototype,"onMutation",null),b.style="gux-tab-advanced-list .gux-tab-container{display:flex;align-items:flex-end;width:100%;height:50px;margin-bottom:16px;overflow-x:auto;overflow-y:hidden;background-color:#f6f7f9;border-bottom:1px solid #d7dce5;border-radius:4px 4px 0 0}gux-tab-advanced-list .gux-tab-container .action-button-container{display:flex;border-radius:4px}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab{display:flex;align-items:center;justify-content:center;width:35px;height:50px;margin-left:2px;color:#2e394c;background-color:#e2e6ee;border:none;border-radius:4px;transition:color 0.25s}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab:disabled{opacity:0.5}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab:hover{background-color:#d7dce5}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab:active{background-color:#c8cfda}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab:focus{border:3px solid #aac9ff;outline:none}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab:focus-visible{border:3px solid #aac9ff;border-radius:5px;outline:none}gux-tab-advanced-list .gux-tab-container .action-button-container .add-tab gux-icon{width:16px;height:16px}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container{display:flex;border-radius:4px}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button{display:flex;align-items:center;justify-content:center;width:28px;height:50px;padding:0;color:#2e394c;background-color:#e2e6ee;border:none;border-radius:4px;transition:color 0.25s}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:focus-visible{border:3px solid #aac9ff;border-radius:5px;outline:none}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button gux-icon{width:16px;height:16px}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:focus{border:3px solid #aac9ff;outline:none}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:hover{background-color:#d7dce5}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:active{background-color:#c8cfda}gux-tab-advanced-list .gux-tab-container .action-button-container .gux-scroll-button-container .gux-scroll-button:focus-visible{outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}gux-tab-advanced-list .gux-tab-container .new-tab .add-tab{display:flex;align-items:center;justify-content:center;width:35px;height:50px;padding:0;color:#2e394c;background-color:#e2e6ee;border:none;border-radius:4px;transition:color 0.25s}gux-tab-advanced-list .gux-tab-container .new-tab .add-tab:hover{background-color:#d7dce5}gux-tab-advanced-list .gux-tab-container .new-tab .add-tab:active{background-color:#c8cfda}gux-tab-advanced-list .gux-tab-container .new-tab .add-tab:focus{border:3px solid #aac9ff;outline:none}gux-tab-advanced-list .gux-tab-container .new-tab .add-tab:focus-visible{border:3px solid #aac9ff;border-radius:5px;outline:none}gux-tab-advanced-list .gux-tab-container .new-tab .add-tab gux-icon{width:16px;height:16px}gux-tab-advanced-list .gux-tab-container .gux-scrollable-section{display:flex;align-items:flex-end;height:50px;overflow-x:auto;scroll-behavior:smooth;scrollbar-width:none}gux-tab-advanced-list .gux-tab-container .gux-scrollable-section::-webkit-scrollbar{height:0}gux-tab-advanced-list .gux-sr-only{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}";export{b as gux_tab_advanced_list}
@@ -1 +0,0 @@
1
- import{r as t,h as i,g as e}from"./p-a085b143.js";import{O as o}from"./p-4b7056b2.js";import{o as r,a as n}from"./p-e2bea786.js";import{p as s}from"./p-c10e41a9.js";import{t as a}from"./p-c0fe1fe7.js";import{G as l,a as u}from"./p-afb54d23.js";import{h as p,c as x,G as c,a as f,v as h,g as d}from"./p-08b07a2b.js";import"./p-cbcbd1bb.js";import"./p-3184268e.js";import"./p-8fe7daff.js";import"./p-d176c2ae.js";const g=class{constructor(i){t(this,i),this.computedLabelPosition="above",this.clearable=!0,this.hasContent=!1,this.hasError=!1}onMutation(){this.hasError=p(this.root)}componentWillLoad(){this.setInput(),this.setLabel(),this.hasError=p(this.root),a(this.root,{variant:this.variant})}disconnectedCallback(){this.disabledObserver.disconnect(),this.requiredObserver.disconnect()}render(){return i(u,{labelPosition:this.computedLabelPosition},i(l,{position:this.computedLabelPosition,required:this.required},i("slot",{name:"label",onSlotchange:()=>this.setLabel()})),i("div",{class:"gux-input-and-error-container"},i("div",{class:{"gux-input":!0,"gux-input-error":this.hasError}},i("div",{class:{"gux-input-container":!0,"gux-disabled":this.disabled}},i("gux-icon",{"icon-name":"search",decorative:!0}),i("slot",{name:"input"}),this.clearable&&this.hasContent&&!this.disabled&&i("gux-form-field-input-clear-button",{onClick:()=>x(this.input)}))),i(c,{hasError:this.hasError},i("slot",{name:"error"}))))}get variant(){const t=this.labelPosition?this.labelPosition.toLowerCase():"none";return`${this.input.getAttribute("type")}-${t}`}setInput(){this.input=this.root.querySelector('input[type="search"][slot="input"]'),this.hasContent=f(this.input),s(this.input),this.input.addEventListener("input",(()=>{this.hasContent=f(this.input)})),this.disabled=this.input.disabled,this.required=this.input.required,this.disabledObserver=r(this.input,(t=>{this.disabled=t})),this.requiredObserver=n(this.input,(t=>{this.required=t})),h(this.root,this.input)}setLabel(){this.label=this.root.querySelector('label[slot="label"]'),this.computedLabelPosition=d(this.label,this.labelPosition)}get root(){return e(this)}};(function(t,i,e,o){var r,n=arguments.length,s=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,o);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(i,e,s):r(i,e))||s);n>3&&s&&Object.defineProperty(i,e,s)})([o({childList:!0,subtree:!0})],g.prototype,"onMutation",null),g.style=".gux-form-field-container{margin:16px 0}.gux-form-field-container.gux-beside{display:flex;flex-direction:row}.gux-form-field-error{display:none;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:flex-start;justify-content:flex-start;margin:4px 0;font-size:11px;color:#2e394c}.gux-form-field-error.gux-show{display:flex}.gux-form-field-error gux-icon{flex:0 1 auto;align-self:auto;order:0;width:16px;height:16px;margin:0 4px;color:#ea0b0b}.gux-form-field-error .gux-message{flex:0 1 auto;align-self:auto;order:0}.gux-form-field-label.gux-required::after{font-size:12px;color:#ea0b0b;content:' *'}.gux-form-field-label.gux-beside{position:relative;top:8px;width:fit-content;min-width:45px;margin-right:8px}.gux-form-field-label.gux-above{margin-bottom:8px}.gux-form-field-label.gux-screenreader{position:absolute;top:auto;left:-10000px;width:1px;height:1px;overflow:hidden}:host{display:block;color:#2e394c}::slotted(label){font-family:Roboto, sans-serif;font-weight:400;font-weight:700;font-size:12px;line-height:16px}::slotted(input){flex:1 1 auto;align-self:auto;order:0;width:100%;overflow:hidden;font-size:12px;color:#2e394c;text-overflow:ellipsis;background-color:#f6f7f9;border:none;outline:none}::slotted(input)::placeholder{color:#596373;opacity:1}.gux-input-and-error-container{flex-grow:1}.gux-input-and-error-container .gux-input{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center}.gux-input-and-error-container .gux-input .gux-input-container{box-sizing:border-box;display:flex;flex:1 1 auto;flex-direction:row;flex-wrap:nowrap;align-content:stretch;align-items:center;align-self:auto;justify-content:center;order:0;width:100%;height:32px;padding:4px 8px;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-and-error-container .gux-input .gux-input-container.gux-disabled{opacity:0.5}.gux-input-and-error-container .gux-input .gux-input-container gux-icon[icon-name='search']{flex:0 0 auto;align-self:auto;order:0;width:20px;height:20px;margin-right:4px;color:#596373}.gux-input-and-error-container .gux-input .gux-input-container:focus-within{border-color:#2a60c8;outline:none;box-shadow:0 0 0 1px #fdfdfd, 0 0 0 4px #aac9ff}.gux-input-and-error-container .gux-input.gux-input-error .gux-input-container{border-color:#ea0b0b}";export{g as gux_form_field_search}