genesys-spark-components 3.4.2 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/cjs/gux-accordion-legacy.cjs.entry.js +1 -1
  3. package/dist/cjs/gux-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/gux-action-button-legacy.cjs.entry.js +1 -1
  5. package/dist/cjs/gux-action-button.cjs.entry.js +1 -1
  6. package/dist/cjs/gux-action-list-legacy.cjs.entry.js +1 -1
  7. package/dist/cjs/gux-action-toast.cjs.entry.js +1 -1
  8. package/dist/cjs/gux-advanced-dropdown.cjs.entry.js +1 -1
  9. package/dist/cjs/gux-badge-beta.cjs.entry.js +1 -1
  10. package/dist/cjs/gux-breadcrumbs.cjs.entry.js +1 -1
  11. package/dist/cjs/gux-button-multi-legacy.cjs.entry.js +1 -1
  12. package/dist/cjs/gux-button-multi.cjs.entry.js +1 -1
  13. package/dist/cjs/gux-button-slot-beta.cjs.entry.js +1 -1
  14. package/dist/cjs/gux-button.cjs.entry.js +1 -1
  15. package/dist/cjs/gux-calendar.cjs.entry.js +1 -1
  16. package/dist/cjs/gux-card-beta.cjs.entry.js +1 -1
  17. package/dist/cjs/gux-chart-column-beta.cjs.entry.js +1 -1
  18. package/dist/cjs/gux-chart-donut-beta.cjs.entry.js +1 -1
  19. package/dist/cjs/gux-chart-line-beta.cjs.entry.js +1 -1
  20. package/dist/cjs/gux-chart-pie-beta.cjs.entry.js +1 -1
  21. package/dist/cjs/gux-chart-scatter-plot-beta.cjs.entry.js +1 -1
  22. package/dist/cjs/gux-command-palette-legacy.cjs.entry.js +1 -1
  23. package/dist/cjs/gux-content-search.cjs.entry.js +1 -1
  24. package/dist/cjs/gux-copy-to-clipboard-beta.cjs.entry.js +1 -1
  25. package/dist/cjs/gux-datepicker.cjs.entry.js +1 -1
  26. package/dist/cjs/gux-disclosure-button.cjs.entry.js +1 -1
  27. package/dist/cjs/gux-dismiss-button.cjs.entry.js +1 -1
  28. package/dist/cjs/gux-dropdown-legacy.cjs.entry.js +1 -1
  29. package/dist/cjs/gux-dropdown_3.cjs.entry.js +1 -1
  30. package/dist/cjs/gux-error-message-beta.cjs.entry.js +1 -1
  31. package/dist/cjs/gux-flyout-menu-beta.cjs.entry.js +1 -1
  32. package/dist/cjs/gux-form-field-checkbox.cjs.entry.js +1 -1
  33. package/dist/cjs/gux-form-field-color.cjs.entry.js +1 -1
  34. package/dist/cjs/gux-form-field-input-clear-button.cjs.entry.js +1 -1
  35. package/dist/cjs/gux-form-field-legacy.cjs.entry.js +1 -1
  36. package/dist/cjs/gux-form-field-number.cjs.entry.js +1 -1
  37. package/dist/cjs/gux-form-field-radio.cjs.entry.js +1 -1
  38. package/dist/cjs/gux-form-field-range.cjs.entry.js +1 -1
  39. package/dist/cjs/gux-form-field-search.cjs.entry.js +1 -1
  40. package/dist/cjs/gux-form-field-select.cjs.entry.js +1 -1
  41. package/dist/cjs/gux-form-field-text-like.cjs.entry.js +1 -1
  42. package/dist/cjs/gux-form-field-textarea.cjs.entry.js +1 -1
  43. package/dist/cjs/gux-icon.cjs.entry.js +1 -1
  44. package/dist/cjs/gux-list-item-legacy_2.cjs.entry.js +1 -1
  45. package/dist/cjs/gux-list.cjs.entry.js +1 -1
  46. package/dist/cjs/gux-modal.cjs.entry.js +1 -1
  47. package/dist/cjs/gux-notification-toast.cjs.entry.js +1 -1
  48. package/dist/cjs/gux-page-loading-spinner.cjs.entry.js +1 -1
  49. package/dist/cjs/gux-pagination-beta.cjs.entry.js +1 -1
  50. package/dist/cjs/gux-pagination-cursor.cjs.entry.js +1 -1
  51. package/dist/cjs/gux-pagination.cjs.entry.js +1 -1
  52. package/dist/cjs/gux-panel-frame-legacy.cjs.entry.js +1 -1
  53. package/dist/cjs/gux-popover-list.cjs.entry.js +1 -1
  54. package/dist/cjs/gux-popover.cjs.entry.js +1 -1
  55. package/dist/cjs/gux-radial-loading.cjs.entry.js +1 -1
  56. package/dist/cjs/gux-radial-progress.cjs.entry.js +1 -1
  57. package/dist/cjs/gux-rating.cjs.entry.js +1 -1
  58. package/dist/cjs/gux-side-panel-legacy.cjs.entry.js +1 -1
  59. package/dist/cjs/gux-simple-toast.cjs.entry.js +1 -1
  60. package/dist/cjs/gux-switch.cjs.entry.js +1 -1
  61. package/dist/cjs/gux-table-beta.cjs.entry.js +1 -1
  62. package/dist/cjs/gux-tabs-advanced.cjs.entry.js +1 -1
  63. package/dist/cjs/gux-tabs-legacy.cjs.entry.js +1 -1
  64. package/dist/cjs/gux-tabs.cjs.entry.js +1 -1
  65. package/dist/cjs/gux-tag-beta.cjs.entry.js +1 -1
  66. package/dist/cjs/gux-text-highlight.cjs.entry.js +1 -1
  67. package/dist/cjs/gux-text-label-legacy.cjs.entry.js +1 -1
  68. package/dist/cjs/gux-time-picker-beta.cjs.entry.js +1 -1
  69. package/dist/cjs/gux-toggle.cjs.entry.js +1 -1
  70. package/dist/cjs/gux-tooltip_2.cjs.entry.js +1 -1
  71. package/dist/cjs/gux-visualization-beta.cjs.entry.js +1 -1
  72. package/dist/cjs/index-33b1b88e.js +422 -1
  73. package/dist/cjs/{usage-tracking-dad68b30.js → usage-tracking-615fea70.js} +1 -1
  74. package/dist/deploy-info.json +3 -3
  75. package/dist/esm/gux-accordion-legacy.entry.js +1 -1
  76. package/dist/esm/gux-accordion.entry.js +1 -1
  77. package/dist/esm/gux-action-button-legacy.entry.js +1 -1
  78. package/dist/esm/gux-action-button.entry.js +1 -1
  79. package/dist/esm/gux-action-list-legacy.entry.js +1 -1
  80. package/dist/esm/gux-action-toast.entry.js +1 -1
  81. package/dist/esm/gux-advanced-dropdown.entry.js +1 -1
  82. package/dist/esm/gux-badge-beta.entry.js +1 -1
  83. package/dist/esm/gux-breadcrumbs.entry.js +1 -1
  84. package/dist/esm/gux-button-multi-legacy.entry.js +1 -1
  85. package/dist/esm/gux-button-multi.entry.js +1 -1
  86. package/dist/esm/gux-button-slot-beta.entry.js +1 -1
  87. package/dist/esm/gux-button.entry.js +1 -1
  88. package/dist/esm/gux-calendar.entry.js +1 -1
  89. package/dist/esm/gux-card-beta.entry.js +1 -1
  90. package/dist/esm/gux-chart-column-beta.entry.js +1 -1
  91. package/dist/esm/gux-chart-donut-beta.entry.js +1 -1
  92. package/dist/esm/gux-chart-line-beta.entry.js +1 -1
  93. package/dist/esm/gux-chart-pie-beta.entry.js +1 -1
  94. package/dist/esm/gux-chart-scatter-plot-beta.entry.js +1 -1
  95. package/dist/esm/gux-command-palette-legacy.entry.js +1 -1
  96. package/dist/esm/gux-content-search.entry.js +1 -1
  97. package/dist/esm/gux-copy-to-clipboard-beta.entry.js +1 -1
  98. package/dist/esm/gux-datepicker.entry.js +1 -1
  99. package/dist/esm/gux-disclosure-button.entry.js +1 -1
  100. package/dist/esm/gux-dismiss-button.entry.js +1 -1
  101. package/dist/esm/gux-dropdown-legacy.entry.js +1 -1
  102. package/dist/esm/gux-dropdown_3.entry.js +1 -1
  103. package/dist/esm/gux-error-message-beta.entry.js +1 -1
  104. package/dist/esm/gux-flyout-menu-beta.entry.js +1 -1
  105. package/dist/esm/gux-form-field-checkbox.entry.js +1 -1
  106. package/dist/esm/gux-form-field-color.entry.js +1 -1
  107. package/dist/esm/gux-form-field-input-clear-button.entry.js +1 -1
  108. package/dist/esm/gux-form-field-legacy.entry.js +1 -1
  109. package/dist/esm/gux-form-field-number.entry.js +1 -1
  110. package/dist/esm/gux-form-field-radio.entry.js +1 -1
  111. package/dist/esm/gux-form-field-range.entry.js +1 -1
  112. package/dist/esm/gux-form-field-search.entry.js +1 -1
  113. package/dist/esm/gux-form-field-select.entry.js +1 -1
  114. package/dist/esm/gux-form-field-text-like.entry.js +1 -1
  115. package/dist/esm/gux-form-field-textarea.entry.js +1 -1
  116. package/dist/esm/gux-icon.entry.js +1 -1
  117. package/dist/esm/gux-list-item-legacy_2.entry.js +1 -1
  118. package/dist/esm/gux-list.entry.js +1 -1
  119. package/dist/esm/gux-modal.entry.js +1 -1
  120. package/dist/esm/gux-notification-toast.entry.js +1 -1
  121. package/dist/esm/gux-page-loading-spinner.entry.js +1 -1
  122. package/dist/esm/gux-pagination-beta.entry.js +1 -1
  123. package/dist/esm/gux-pagination-cursor.entry.js +1 -1
  124. package/dist/esm/gux-pagination.entry.js +1 -1
  125. package/dist/esm/gux-panel-frame-legacy.entry.js +1 -1
  126. package/dist/esm/gux-popover-list.entry.js +1 -1
  127. package/dist/esm/gux-popover.entry.js +1 -1
  128. package/dist/esm/gux-radial-loading.entry.js +1 -1
  129. package/dist/esm/gux-radial-progress.entry.js +1 -1
  130. package/dist/esm/gux-rating.entry.js +1 -1
  131. package/dist/esm/gux-side-panel-legacy.entry.js +1 -1
  132. package/dist/esm/gux-simple-toast.entry.js +1 -1
  133. package/dist/esm/gux-switch.entry.js +1 -1
  134. package/dist/esm/gux-table-beta.entry.js +1 -1
  135. package/dist/esm/gux-tabs-advanced.entry.js +1 -1
  136. package/dist/esm/gux-tabs-legacy.entry.js +1 -1
  137. package/dist/esm/gux-tabs.entry.js +1 -1
  138. package/dist/esm/gux-tag-beta.entry.js +1 -1
  139. package/dist/esm/gux-text-highlight.entry.js +1 -1
  140. package/dist/esm/gux-text-label-legacy.entry.js +1 -1
  141. package/dist/esm/gux-time-picker-beta.entry.js +1 -1
  142. package/dist/esm/gux-toggle.entry.js +1 -1
  143. package/dist/esm/gux-tooltip_2.entry.js +1 -1
  144. package/dist/esm/gux-visualization-beta.entry.js +1 -1
  145. package/dist/esm/index-76794476.js +422 -1
  146. package/dist/esm/{usage-tracking-e780a146.js → usage-tracking-d43351c0.js} +1 -1
  147. package/dist/genesys-webcomponents/genesys-webcomponents.esm.js +1 -1
  148. package/dist/genesys-webcomponents/{p-e8009e30.entry.js → p-0246b90a.entry.js} +1 -1
  149. package/dist/genesys-webcomponents/{p-7190ade6.entry.js → p-0b1201f8.entry.js} +1 -1
  150. package/dist/genesys-webcomponents/{p-648daaad.entry.js → p-138f5752.entry.js} +1 -1
  151. package/dist/genesys-webcomponents/{p-7cef90a5.entry.js → p-18bc0d49.entry.js} +1 -1
  152. package/dist/genesys-webcomponents/{p-1892eb76.entry.js → p-1dedbc02.entry.js} +1 -1
  153. package/dist/genesys-webcomponents/{p-b1662ae2.entry.js → p-1e5a7b93.entry.js} +1 -1
  154. package/dist/genesys-webcomponents/{p-5854940b.entry.js → p-2e0680ef.entry.js} +1 -1
  155. package/dist/genesys-webcomponents/{p-d19a7fb6.entry.js → p-2e1ecedf.entry.js} +1 -1
  156. package/dist/genesys-webcomponents/{p-e902c88f.entry.js → p-2e20a804.entry.js} +1 -1
  157. package/dist/genesys-webcomponents/{p-918a52ca.entry.js → p-33e039c8.entry.js} +1 -1
  158. package/dist/genesys-webcomponents/{p-65b6304c.entry.js → p-3674c2f1.entry.js} +1 -1
  159. package/dist/genesys-webcomponents/{p-c6588eae.entry.js → p-389324ee.entry.js} +1 -1
  160. package/dist/genesys-webcomponents/{p-32e65c1f.entry.js → p-3d613b08.entry.js} +1 -1
  161. package/dist/genesys-webcomponents/{p-6ae02bd1.entry.js → p-415f6c94.entry.js} +1 -1
  162. package/dist/genesys-webcomponents/{p-03f786bb.entry.js → p-46e6c443.entry.js} +1 -1
  163. package/dist/genesys-webcomponents/{p-22c63b2f.entry.js → p-476e998c.entry.js} +1 -1
  164. package/dist/genesys-webcomponents/{p-ceeb8e8b.entry.js → p-4a5922ba.entry.js} +1 -1
  165. package/dist/genesys-webcomponents/{p-7b189793.entry.js → p-4b3e8e83.entry.js} +1 -1
  166. package/dist/genesys-webcomponents/{p-1031b574.entry.js → p-4ecdb7bc.entry.js} +1 -1
  167. package/dist/genesys-webcomponents/{p-d230bf80.entry.js → p-56cf4de0.entry.js} +1 -1
  168. package/dist/genesys-webcomponents/{p-9268a785.entry.js → p-582b7a46.entry.js} +1 -1
  169. package/dist/genesys-webcomponents/{p-60556732.entry.js → p-63e85901.entry.js} +1 -1
  170. package/dist/genesys-webcomponents/{p-28c7f729.entry.js → p-65c97d28.entry.js} +1 -1
  171. package/dist/genesys-webcomponents/{p-0bccbc5e.entry.js → p-66c88faf.entry.js} +1 -1
  172. package/dist/genesys-webcomponents/{p-53b57303.entry.js → p-6835601a.entry.js} +1 -1
  173. package/dist/genesys-webcomponents/{p-378cd6cf.entry.js → p-6c3740b9.entry.js} +1 -1
  174. package/dist/genesys-webcomponents/{p-3c2622bb.entry.js → p-71684343.entry.js} +1 -1
  175. package/dist/genesys-webcomponents/{p-730b7824.entry.js → p-79e6d305.entry.js} +1 -1
  176. package/dist/genesys-webcomponents/{p-17d4a2ef.entry.js → p-7b5cfa36.entry.js} +1 -1
  177. package/dist/genesys-webcomponents/{p-6cba93cf.entry.js → p-7c2fde74.entry.js} +1 -1
  178. package/dist/genesys-webcomponents/{p-85e91ce9.entry.js → p-7ee9ea99.entry.js} +1 -1
  179. package/dist/genesys-webcomponents/{p-8582d04a.entry.js → p-860fb98c.entry.js} +1 -1
  180. package/dist/genesys-webcomponents/{p-be064568.entry.js → p-8f8cc114.entry.js} +1 -1
  181. package/dist/genesys-webcomponents/{p-80e8d129.entry.js → p-90f86b6f.entry.js} +1 -1
  182. package/dist/genesys-webcomponents/{p-18788841.entry.js → p-95bf6df8.entry.js} +1 -1
  183. package/dist/genesys-webcomponents/{p-5fa06e39.entry.js → p-98c2b858.entry.js} +1 -1
  184. package/dist/genesys-webcomponents/{p-ed5511fd.entry.js → p-991b2ddb.entry.js} +1 -1
  185. package/dist/genesys-webcomponents/{p-4ade0038.entry.js → p-9bea99f9.entry.js} +1 -1
  186. package/dist/genesys-webcomponents/{p-d7ea3dd5.entry.js → p-a60243d3.entry.js} +1 -1
  187. package/dist/genesys-webcomponents/{p-9e8e412b.entry.js → p-a9b797be.entry.js} +1 -1
  188. package/dist/genesys-webcomponents/{p-382be864.entry.js → p-adc5b8f9.entry.js} +1 -1
  189. package/dist/genesys-webcomponents/{p-d5da8ebb.entry.js → p-aeaa6fb5.entry.js} +1 -1
  190. package/dist/genesys-webcomponents/{p-c09846a5.entry.js → p-b39ba52b.entry.js} +1 -1
  191. package/dist/genesys-webcomponents/{p-2a39b40e.entry.js → p-b4797114.entry.js} +1 -1
  192. package/dist/genesys-webcomponents/{p-dc35acd6.entry.js → p-b6c2da3c.entry.js} +1 -1
  193. package/dist/genesys-webcomponents/{p-f2188fb8.entry.js → p-ba9b75d5.entry.js} +1 -1
  194. package/dist/genesys-webcomponents/{p-7009289e.entry.js → p-bb7ce26a.entry.js} +1 -1
  195. package/dist/genesys-webcomponents/{p-f6ee453e.entry.js → p-bd4ecc66.entry.js} +1 -1
  196. package/dist/genesys-webcomponents/{p-0749ddc0.js → p-be79f47d.js} +1 -1
  197. package/dist/genesys-webcomponents/{p-3095605b.entry.js → p-be9a43f8.entry.js} +1 -1
  198. package/dist/genesys-webcomponents/{p-e6759802.entry.js → p-c86cf183.entry.js} +1 -1
  199. package/dist/genesys-webcomponents/{p-155bb34f.entry.js → p-c917491c.entry.js} +1 -1
  200. package/dist/genesys-webcomponents/{p-636c54c6.entry.js → p-cb7ee59b.entry.js} +1 -1
  201. package/dist/genesys-webcomponents/{p-96011a34.entry.js → p-cbc180ef.entry.js} +1 -1
  202. package/dist/genesys-webcomponents/{p-6eea2eb5.entry.js → p-ce81614f.entry.js} +1 -1
  203. package/dist/genesys-webcomponents/{p-269963ec.entry.js → p-d565a701.entry.js} +1 -1
  204. package/dist/genesys-webcomponents/{p-c528cbba.entry.js → p-d5cd81ef.entry.js} +1 -1
  205. package/dist/genesys-webcomponents/{p-5e4a13fa.entry.js → p-d84f477d.entry.js} +1 -1
  206. package/dist/genesys-webcomponents/{p-266acba3.entry.js → p-d91b8ebc.entry.js} +1 -1
  207. package/dist/genesys-webcomponents/{p-29014d1e.entry.js → p-dbd5a915.entry.js} +1 -1
  208. package/dist/genesys-webcomponents/{p-bfd2effd.entry.js → p-dc4a2df0.entry.js} +1 -1
  209. package/dist/genesys-webcomponents/{p-0842e67c.entry.js → p-dc78875c.entry.js} +1 -1
  210. package/dist/genesys-webcomponents/{p-0ddd8d4f.entry.js → p-dd977705.entry.js} +1 -1
  211. package/dist/genesys-webcomponents/{p-34b626d1.entry.js → p-e08ae631.entry.js} +1 -1
  212. package/dist/genesys-webcomponents/{p-cd9ddc56.entry.js → p-e211d484.entry.js} +1 -1
  213. package/dist/genesys-webcomponents/{p-2cf45506.entry.js → p-e26127e1.entry.js} +1 -1
  214. package/dist/genesys-webcomponents/{p-c7b78b58.entry.js → p-e8b70c45.entry.js} +1 -1
  215. package/dist/genesys-webcomponents/{p-5238df29.entry.js → p-ecc80e4a.entry.js} +1 -1
  216. package/dist/genesys-webcomponents/{p-983933c0.entry.js → p-ed0b3496.entry.js} +1 -1
  217. package/dist/genesys-webcomponents/{p-2caf5f99.entry.js → p-fcc3ad28.entry.js} +1 -1
  218. package/dist/genesys-webcomponents/{p-1d011a81.entry.js → p-fdcd8958.entry.js} +1 -1
  219. package/dist/stencil-wrapper.js +1 -1
  220. package/package.json +1 -1
@@ -1 +1 @@
1
- import{r as o,h as e,g as n}from"./p-a085b143.js";import{t}from"./p-0749ddc0.js";function c(o,e,n){const t=function(o,e){return e.find((e=>e.slotName===o))}(o,n);null==t||t.ref.classList[e]("gux-opened")}const r=class{constructor(e){o(this,e),this.sections=[],this.headingLevel=null,this.arrowPosition="default"}async open(o){c(o,"add",this.sections)}async close(o){c(o,"remove",this.sections)}async toggle(o){c(o,"toggle",this.sections)}componentWillLoad(){t(this.root),this.sections=function(o){const e=Array.from(o.children),n=[];return e.forEach((o=>{const e=o.getAttribute("slot");o.hidden=!Boolean(e),e&&n.push({slotName:e,ref:null})})),n}(this.root)}render(){return e("div",{class:"gux-accordion"},this.sections.map((o=>e("section",{class:"gux-section",onKeyDown:e=>function(o,e,n){let t;switch(o.key){case"ArrowUp":t=function(o,e){const n=e.findIndex((e=>e.slotName===o));return n<=0?e[e.length-1].ref:e[n-1].ref}(e,n);break;case"ArrowDown":t=function(o,e){const n=e.findIndex((e=>e.slotName===o));return n>=e.length-1?e[0].ref:e[n+1].ref}(e,n);break;case"End":t=function(o){return o[this.sections.length-1].ref}(n);break;case"Home":t=function(o){return o[0].ref}(n)}var c;t&&(c=t,c.querySelector(".gux-header-button")).focus()}(e,o.slotName,this.sections),ref:e=>o.ref=e},e("div",{"aria-role":"heading","aria-level":this.headingLevel,class:"gux-header"},e("button",{class:"gux-header-button",type:"button",onClick:()=>this.toggle(o.slotName)},e("div",{class:"gux-text"},o.slotName),"beside-text"===this.arrowPosition?null:e("div",{class:"gux-spacer"}),e("div",{class:"gux-toggle-arrow"},e("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),e("div",{class:"gux-content"},e("slot",{name:o.slotName}))))))}get root(){return n(this)}};r.style="gux-accordion-legacy .gux-accordion{padding:0;margin:0;background-color:#fdfdfd}gux-accordion-legacy .gux-accordion .gux-section{color:#2e394c}gux-accordion-legacy .gux-accordion .gux-section .gux-header{box-sizing:border-box;height:40px;border-top:1px solid #e2e6ee}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:0 16px;margin:0;color:#2e394c;cursor:pointer;background:none;border:none}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-text{flex:0 1 auto;align-self:auto;padding-right:8px;font-family:inherit;font-size:inherit;font-weight:bold;text-align:left}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-spacer{flex:1 1 auto;align-self:auto}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-toggle-arrow{flex:0 1 auto;align-items:center;align-self:auto;color:#6b7585;transition:transform 0.5s ease;transform-origin:center}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-toggle-arrow gux-icon{width:20px;height:20px}gux-accordion-legacy .gux-accordion .gux-section .gux-header:hover .gux-toggle-arrow{color:#2e394c}gux-accordion-legacy .gux-accordion .gux-section .gux-content{box-sizing:border-box;display:none;padding:16px}gux-accordion-legacy .gux-accordion .gux-section.gux-opened .gux-header{border-bottom:1px solid #e2e6ee}gux-accordion-legacy .gux-accordion .gux-section.gux-opened .gux-header .gux-toggle-arrow{transform:rotate(-180deg)}gux-accordion-legacy .gux-accordion .gux-section.gux-opened .gux-content{display:block}gux-accordion-legacy .gux-accordion .gux-section:last-of-type .gux-header{border-bottom:1px solid #e2e6ee}gux-accordion-legacy .gux-accordion .gux-section:last-of-type .gux-content{border-bottom:1px solid #e2e6ee}";export{r as gux_accordion_legacy}
1
+ import{r as o,h as e,g as n}from"./p-a085b143.js";import{t}from"./p-be79f47d.js";function c(o,e,n){const t=function(o,e){return e.find((e=>e.slotName===o))}(o,n);null==t||t.ref.classList[e]("gux-opened")}const r=class{constructor(e){o(this,e),this.sections=[],this.headingLevel=null,this.arrowPosition="default"}async open(o){c(o,"add",this.sections)}async close(o){c(o,"remove",this.sections)}async toggle(o){c(o,"toggle",this.sections)}componentWillLoad(){t(this.root),this.sections=function(o){const e=Array.from(o.children),n=[];return e.forEach((o=>{const e=o.getAttribute("slot");o.hidden=!Boolean(e),e&&n.push({slotName:e,ref:null})})),n}(this.root)}render(){return e("div",{class:"gux-accordion"},this.sections.map((o=>e("section",{class:"gux-section",onKeyDown:e=>function(o,e,n){let t;switch(o.key){case"ArrowUp":t=function(o,e){const n=e.findIndex((e=>e.slotName===o));return n<=0?e[e.length-1].ref:e[n-1].ref}(e,n);break;case"ArrowDown":t=function(o,e){const n=e.findIndex((e=>e.slotName===o));return n>=e.length-1?e[0].ref:e[n+1].ref}(e,n);break;case"End":t=function(o){return o[this.sections.length-1].ref}(n);break;case"Home":t=function(o){return o[0].ref}(n)}var c;t&&(c=t,c.querySelector(".gux-header-button")).focus()}(e,o.slotName,this.sections),ref:e=>o.ref=e},e("div",{"aria-role":"heading","aria-level":this.headingLevel,class:"gux-header"},e("button",{class:"gux-header-button",type:"button",onClick:()=>this.toggle(o.slotName)},e("div",{class:"gux-text"},o.slotName),"beside-text"===this.arrowPosition?null:e("div",{class:"gux-spacer"}),e("div",{class:"gux-toggle-arrow"},e("gux-icon",{decorative:!0,"icon-name":"chevron-small-down"})))),e("div",{class:"gux-content"},e("slot",{name:o.slotName}))))))}get root(){return n(this)}};r.style="gux-accordion-legacy .gux-accordion{padding:0;margin:0;background-color:#fdfdfd}gux-accordion-legacy .gux-accordion .gux-section{color:#2e394c}gux-accordion-legacy .gux-accordion .gux-section .gux-header{box-sizing:border-box;height:40px;border-top:1px solid #e2e6ee}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;align-items:center;justify-content:flex-start;width:100%;height:100%;padding:0 16px;margin:0;color:#2e394c;cursor:pointer;background:none;border:none}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-text{flex:0 1 auto;align-self:auto;padding-right:8px;font-family:inherit;font-size:inherit;font-weight:bold;text-align:left}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-spacer{flex:1 1 auto;align-self:auto}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-toggle-arrow{flex:0 1 auto;align-items:center;align-self:auto;color:#6b7585;transition:transform 0.5s ease;transform-origin:center}gux-accordion-legacy .gux-accordion .gux-section .gux-header .gux-header-button .gux-toggle-arrow gux-icon{width:20px;height:20px}gux-accordion-legacy .gux-accordion .gux-section .gux-header:hover .gux-toggle-arrow{color:#2e394c}gux-accordion-legacy .gux-accordion .gux-section .gux-content{box-sizing:border-box;display:none;padding:16px}gux-accordion-legacy .gux-accordion .gux-section.gux-opened .gux-header{border-bottom:1px solid #e2e6ee}gux-accordion-legacy .gux-accordion .gux-section.gux-opened .gux-header .gux-toggle-arrow{transform:rotate(-180deg)}gux-accordion-legacy .gux-accordion .gux-section.gux-opened .gux-content{display:block}gux-accordion-legacy .gux-accordion .gux-section:last-of-type .gux-header{border-bottom:1px solid #e2e6ee}gux-accordion-legacy .gux-accordion .gux-section:last-of-type .gux-content{border-bottom:1px solid #e2e6ee}";export{r as gux_accordion_legacy}