@xplortech/apollo-core 3.2.1 → 3.3.0

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 (494) hide show
  1. package/README.md +1 -1
  2. package/build/components/accordion.css +1 -1
  3. package/build/components/badge.css +1 -1
  4. package/build/components/banner.css +1 -1
  5. package/build/components/breadcrumbs.css +1 -1
  6. package/build/components/button.css +1 -1
  7. package/build/components/choicelist.css +1 -1
  8. package/build/components/data-card.css +1 -1
  9. package/build/components/divider.css +1 -1
  10. package/build/components/dropdown.css +1 -1
  11. package/build/components/dynamic-table-cell.css +1 -1
  12. package/build/components/header-accordion.css +1 -1
  13. package/build/components/input-color.css +1 -1
  14. package/build/components/input-file.css +1 -1
  15. package/build/components/input-search.css +1 -1
  16. package/build/components/input.css +1 -1
  17. package/build/components/label.css +1 -1
  18. package/build/components/large-card.css +1 -1
  19. package/build/components/list-item.css +1 -1
  20. package/build/components/main-nav.css +1 -1
  21. package/build/components/modal.css +1 -1
  22. package/build/components/pagination.css +1 -1
  23. package/build/components/secondary-nav.css +1 -1
  24. package/build/components/select.css +1 -1
  25. package/build/components/side-nav.css +1 -1
  26. package/build/components/slideout.css +1 -1
  27. package/build/components/spotlight.css +1 -1
  28. package/build/components/table-cell-base.css +1 -1
  29. package/build/components/table-header-cell.css +1 -1
  30. package/build/components/table.css +1 -1
  31. package/build/components/tag.css +1 -1
  32. package/build/components/toast.css +1 -1
  33. package/build/components/toggle.css +1 -1
  34. package/build/components/toolbar.css +1 -1
  35. package/build/components/tooltip.css +1 -1
  36. package/build/components/top-nav.css +1 -1
  37. package/build/core.css +1 -1
  38. package/build/style.css +1 -1
  39. package/build/typography.css +1 -1
  40. package/build/variables/apollo.css +30 -19
  41. package/build/variables/field-edge.css +32 -19
  42. package/dist/apollo-core/apollo-core.css +1 -1
  43. package/dist/apollo-core/apollo-core.esm.js +1 -1
  44. package/dist/apollo-core/p-01c55c74.entry.js +1 -0
  45. package/dist/apollo-core/{p-050a8bf2.entry.js → p-01ed2bb5.entry.js} +1 -1
  46. package/dist/apollo-core/{p-b3b4678b.entry.js → p-08ea8939.entry.js} +1 -1
  47. package/dist/apollo-core/{p-256ece8b.entry.js → p-0a7d57ab.entry.js} +1 -1
  48. package/dist/apollo-core/p-13253d8f.entry.js +1 -0
  49. package/dist/apollo-core/{p-8845106f.entry.js → p-14f5d98a.entry.js} +1 -1
  50. package/dist/apollo-core/{p-5c3be343.entry.js → p-17e38eaf.entry.js} +1 -1
  51. package/dist/apollo-core/{p-a0d3b7f8.entry.js → p-18486aba.entry.js} +1 -1
  52. package/dist/apollo-core/{p-49531864.entry.js → p-19fb0e5f.entry.js} +1 -1
  53. package/dist/apollo-core/p-1c2135e3.entry.js +1 -0
  54. package/dist/apollo-core/{p-7d70e089.entry.js → p-2111cc38.entry.js} +1 -1
  55. package/dist/apollo-core/p-2b813212.entry.js +1 -0
  56. package/dist/apollo-core/p-325a3b43.entry.js +1 -0
  57. package/dist/apollo-core/p-38a6a53d.entry.js +1 -0
  58. package/dist/apollo-core/{p-808f3d9c.entry.js → p-38fa8398.entry.js} +1 -1
  59. package/dist/apollo-core/{p-b64ed46d.entry.js → p-3d4a6de1.entry.js} +1 -1
  60. package/dist/apollo-core/{p-3713cd77.entry.js → p-3e3ab332.entry.js} +1 -1
  61. package/dist/apollo-core/p-3f8dc5b9.entry.js +1 -0
  62. package/dist/apollo-core/{p-ff16f574.entry.js → p-4249ee9b.entry.js} +1 -1
  63. package/dist/apollo-core/{p-715baae0.entry.js → p-439d5cdd.entry.js} +1 -1
  64. package/dist/apollo-core/{p-f384a990.entry.js → p-4b949aeb.entry.js} +1 -1
  65. package/dist/apollo-core/{p-eba654a3.entry.js → p-54053547.entry.js} +1 -1
  66. package/dist/apollo-core/p-620fc472.entry.js +1 -0
  67. package/dist/apollo-core/{p-9feaa8be.entry.js → p-651b49c3.entry.js} +1 -1
  68. package/dist/apollo-core/{p-9d731673.entry.js → p-6aee7d6b.entry.js} +1 -1
  69. package/dist/apollo-core/{p-d469bf5d.entry.js → p-6de10879.entry.js} +1 -1
  70. package/dist/apollo-core/p-73a1c68d.entry.js +1 -0
  71. package/dist/apollo-core/{p-8f8f4759.entry.js → p-79d306a2.entry.js} +1 -1
  72. package/dist/apollo-core/{p-f579e4b0.entry.js → p-7f00b542.entry.js} +1 -1
  73. package/dist/apollo-core/{p-bc821e69.entry.js → p-7fd3da3a.entry.js} +1 -1
  74. package/dist/apollo-core/p-890c641b.entry.js +1 -0
  75. package/dist/apollo-core/p-9832bc63.entry.js +1 -0
  76. package/dist/apollo-core/{p-7eb02cf3.entry.js → p-9955c4f2.entry.js} +1 -1
  77. package/dist/apollo-core/p-9b757459.entry.js +1 -0
  78. package/dist/apollo-core/p-9c41d07f.entry.js +1 -0
  79. package/dist/apollo-core/{p-ee68bed6.entry.js → p-9c7a0229.entry.js} +1 -1
  80. package/dist/apollo-core/{p-24fa8a03.entry.js → p-9d091b05.entry.js} +1 -1
  81. package/dist/apollo-core/p-CJABLO_1.js +3 -0
  82. package/dist/apollo-core/{p-14e86de8.entry.js → p-a149351a.entry.js} +1 -1
  83. package/dist/apollo-core/p-a2c3a38a.entry.js +1 -0
  84. package/dist/apollo-core/p-a5ddb3c4.entry.js +1 -0
  85. package/dist/apollo-core/{p-3417c1ce.entry.js → p-a73b0ca4.entry.js} +1 -1
  86. package/dist/apollo-core/{p-fcb17ff9.entry.js → p-aece2c3d.entry.js} +1 -1
  87. package/dist/apollo-core/{p-aeb2bcb8.entry.js → p-af188297.entry.js} +1 -1
  88. package/dist/apollo-core/{p-ca83003e.entry.js → p-b2dcdb19.entry.js} +1 -1
  89. package/dist/apollo-core/p-b55951a2.entry.js +1 -0
  90. package/dist/apollo-core/p-b7b91f27.entry.js +1 -0
  91. package/dist/apollo-core/{p-11914cd4.entry.js → p-b9c85394.entry.js} +1 -1
  92. package/dist/apollo-core/{p-64f5c129.entry.js → p-ba85f686.entry.js} +1 -1
  93. package/dist/apollo-core/p-c4fd031e.entry.js +1 -0
  94. package/dist/apollo-core/p-cab7d816.entry.js +1 -0
  95. package/dist/apollo-core/{p-45c872d2.entry.js → p-cca0f1a2.entry.js} +1 -1
  96. package/dist/apollo-core/{p-2971e2ec.entry.js → p-cd2d73ee.entry.js} +1 -1
  97. package/dist/apollo-core/p-cfb00d23.entry.js +1 -0
  98. package/dist/apollo-core/p-d060572b.entry.js +1 -0
  99. package/dist/apollo-core/p-d13a07ea.entry.js +1 -0
  100. package/dist/apollo-core/p-d1571245.entry.js +1 -0
  101. package/dist/apollo-core/p-d204ed1a.entry.js +1 -0
  102. package/dist/apollo-core/{p-9905c77c.entry.js → p-d3720611.entry.js} +1 -1
  103. package/dist/apollo-core/p-d9f78325.entry.js +1 -0
  104. package/dist/apollo-core/{p-df257cbf.entry.js → p-dad5d377.entry.js} +1 -1
  105. package/dist/apollo-core/{p-d3ada7d0.entry.js → p-e21af3d1.entry.js} +1 -1
  106. package/dist/apollo-core/{p-c5bc3b2c.entry.js → p-e7145461.entry.js} +1 -1
  107. package/dist/apollo-core/p-e99503a2.entry.js +1 -0
  108. package/dist/apollo-core/{p-e4d50301.entry.js → p-ec99c433.entry.js} +1 -1
  109. package/dist/apollo-core/{p-e09d8beb.entry.js → p-fc73497e.entry.js} +1 -1
  110. package/dist/apollo-core/{p-907bc21e.entry.js → p-fdd1b7da.entry.js} +1 -1
  111. package/dist/cjs/apollo-core.cjs.js +2 -2
  112. package/dist/cjs/{index-3cBvw409.js → index-EdmnG7t8.js} +52 -11
  113. package/dist/cjs/loader.cjs.js +1 -1
  114. package/dist/cjs/xpl-accordion.cjs.entry.js +3 -3
  115. package/dist/cjs/xpl-application-shell.cjs.entry.js +2 -2
  116. package/dist/cjs/xpl-avatar_3.cjs.entry.js +5 -5
  117. package/dist/cjs/xpl-backdrop.cjs.entry.js +2 -2
  118. package/dist/cjs/xpl-badge.cjs.entry.js +2 -2
  119. package/dist/cjs/xpl-banner.cjs.entry.js +3 -3
  120. package/dist/cjs/xpl-breadcrumb-item.cjs.entry.js +2 -2
  121. package/dist/cjs/xpl-breadcrumbs.cjs.entry.js +2 -2
  122. package/dist/cjs/xpl-button-row.cjs.entry.js +2 -2
  123. package/dist/cjs/xpl-button.cjs.entry.js +3 -3
  124. package/dist/cjs/xpl-calendar.cjs.entry.js +2 -2
  125. package/dist/cjs/xpl-checkbox.cjs.entry.js +4 -4
  126. package/dist/cjs/xpl-choicelist.cjs.entry.js +2 -2
  127. package/dist/cjs/xpl-content-area.cjs.entry.js +2 -2
  128. package/dist/cjs/xpl-dashboard.cjs.entry.js +2 -2
  129. package/dist/cjs/xpl-data-card.cjs.entry.js +3 -3
  130. package/dist/cjs/xpl-dropdown_4.cjs.entry.js +9 -9
  131. package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +3 -3
  132. package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +3 -3
  133. package/dist/cjs/xpl-dynamic-table.cjs.entry.js +3 -3
  134. package/dist/cjs/xpl-grid-item.cjs.entry.js +2 -2
  135. package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
  136. package/dist/cjs/xpl-header-accordion.cjs.entry.js +2 -2
  137. package/dist/cjs/xpl-icon.cjs.entry.js +1 -1
  138. package/dist/cjs/xpl-input-color.cjs.entry.js +1 -1
  139. package/dist/cjs/xpl-input-phone.cjs.entry.js +1 -1
  140. package/dist/cjs/xpl-input-time.cjs.entry.js +1 -1
  141. package/dist/cjs/xpl-input_4.cjs.entry.js +3 -3
  142. package/dist/cjs/xpl-large-card.cjs.entry.js +1 -1
  143. package/dist/cjs/xpl-list-item.cjs.entry.js +1 -1
  144. package/dist/cjs/xpl-list.cjs.entry.js +3 -3
  145. package/dist/cjs/xpl-main-nav.cjs.entry.js +2 -2
  146. package/dist/cjs/xpl-modal.cjs.entry.js +1 -1
  147. package/dist/cjs/xpl-nav-header-menu.cjs.entry.js +3 -3
  148. package/dist/cjs/xpl-nav-item.cjs.entry.js +3 -3
  149. package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
  150. package/dist/cjs/xpl-panel.cjs.entry.js +1 -1
  151. package/dist/cjs/xpl-popover.cjs.entry.js +5 -5
  152. package/dist/cjs/xpl-progress-bar.cjs.entry.js +1 -1
  153. package/dist/cjs/xpl-progress-indicator.cjs.entry.js +1 -1
  154. package/dist/cjs/xpl-secondary-nav.cjs.entry.js +2 -2
  155. package/dist/cjs/xpl-select_2.cjs.entry.js +10 -10
  156. package/dist/cjs/xpl-side-nav-header-item.cjs.entry.js +1 -1
  157. package/dist/cjs/xpl-side-nav-item.cjs.entry.js +3 -3
  158. package/dist/cjs/xpl-side-nav-section.cjs.entry.js +6 -6
  159. package/dist/cjs/xpl-side-nav.cjs.entry.js +1 -1
  160. package/dist/cjs/xpl-skeleton.cjs.entry.js +1 -1
  161. package/dist/cjs/xpl-slideout.cjs.entry.js +2 -2
  162. package/dist/cjs/xpl-spotlight.cjs.entry.js +1 -1
  163. package/dist/cjs/xpl-tab-panel.cjs.entry.js +1 -1
  164. package/dist/cjs/xpl-tab.cjs.entry.js +1 -1
  165. package/dist/cjs/xpl-table-body.cjs.entry.js +2 -2
  166. package/dist/cjs/xpl-table-cell_3.cjs.entry.js +5 -5
  167. package/dist/cjs/xpl-table-footer.cjs.entry.js +2 -2
  168. package/dist/cjs/xpl-table-header.cjs.entry.js +2 -2
  169. package/dist/cjs/xpl-table-row.cjs.entry.js +3 -3
  170. package/dist/cjs/xpl-table.cjs.entry.js +1 -1
  171. package/dist/cjs/xpl-tabs.cjs.entry.js +1 -1
  172. package/dist/cjs/xpl-toast.cjs.entry.js +3 -3
  173. package/dist/cjs/xpl-toggle.cjs.entry.js +1 -1
  174. package/dist/cjs/xpl-toolbar.cjs.entry.js +3 -3
  175. package/dist/cjs/xpl-tooltip.cjs.entry.js +2 -2
  176. package/dist/cjs/xpl-top-nav-item.cjs.entry.js +3 -3
  177. package/dist/cjs/xpl-top-nav-menu.cjs.entry.js +1 -1
  178. package/dist/cjs/xpl-top-nav.cjs.entry.js +1 -1
  179. package/dist/cjs/xpl-utility-bar.cjs.entry.js +2 -2
  180. package/dist/collection/collection-manifest.json +1 -1
  181. package/dist/collection/components/xpl-accordion/xpl-accordion.js +2 -2
  182. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
  183. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
  184. package/dist/collection/components/xpl-badge/xpl-badge.js +1 -1
  185. package/dist/collection/components/xpl-banner/xpl-banner.js +2 -2
  186. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
  187. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
  188. package/dist/collection/components/xpl-button/xpl-button.js +2 -2
  189. package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
  190. package/dist/collection/components/xpl-calendar/xpl-calendar.js +1 -1
  191. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +3 -3
  192. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +1 -1
  193. package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
  194. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
  195. package/dist/collection/components/xpl-data-card/xpl-data-card.js +2 -2
  196. package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
  197. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -1
  198. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
  199. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +2 -2
  200. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +7 -6
  201. package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +2 -2
  202. package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
  203. package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
  204. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
  205. package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +1 -1
  206. package/dist/collection/components/xpl-input/xpl-input.js +2 -2
  207. package/dist/collection/components/xpl-list/xpl-list.js +2 -2
  208. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
  209. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
  210. package/dist/collection/components/xpl-popover/xpl-popover.js +4 -4
  211. package/dist/collection/components/xpl-radio/xpl-radio.js +3 -3
  212. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
  213. package/dist/collection/components/xpl-select/xpl-select.js +7 -7
  214. package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +2 -2
  215. package/dist/collection/components/xpl-side-nav/xpl-side-nav-section/xpl-side-nav-section.js +5 -5
  216. package/dist/collection/components/xpl-slideout/xpl-slideout.js +1 -1
  217. package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +1 -1
  218. package/dist/collection/components/xpl-table/xpl-table-cell/xpl-table-cell.js +2 -2
  219. package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +1 -1
  220. package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +2 -2
  221. package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +2 -2
  222. package/dist/collection/components/xpl-table-header/xpl-table-header.js +1 -1
  223. package/dist/collection/components/xpl-tag/xpl-tag.js +2 -2
  224. package/dist/collection/components/xpl-toast/xpl-toast.js +2 -2
  225. package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
  226. package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
  227. package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +2 -2
  228. package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +2 -2
  229. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
  230. package/dist/components/index.js +1 -1
  231. package/dist/components/p-2XxO7M15.js +1 -0
  232. package/dist/components/{p-D09sGbzs.js → p-3R1VKKds.js} +1 -1
  233. package/dist/components/p-BNOkHymY.js +1 -0
  234. package/dist/components/p-BWAytJnz.js +1 -0
  235. package/dist/components/{p-B7aaJikj.js → p-BZrSTAV1.js} +1 -1
  236. package/dist/components/{p-CQjJIHK6.js → p-Bh-U2qmp.js} +1 -1
  237. package/dist/components/{p-BOm_p_mz.js → p-BowQ58XR.js} +1 -1
  238. package/dist/components/p-BqhTjJWq.js +1 -0
  239. package/dist/components/{p-CFXvQqUO.js → p-CWXfIUHo.js} +1 -1
  240. package/dist/components/{p-CdRmVtIN.js → p-CZg3Gb0I.js} +1 -1
  241. package/dist/components/{p-ohy3NrgH.js → p-CcPrBo53.js} +1 -1
  242. package/dist/components/p-CetimlcM.js +1 -0
  243. package/dist/components/{p-CV5nn1zR.js → p-CfZI7bBe.js} +1 -1
  244. package/dist/components/{p-2cJsJK3-.js → p-CjzUVpyd.js} +1 -1
  245. package/dist/components/{p-DoVubWyd.js → p-ClLyaOG7.js} +1 -1
  246. package/dist/components/{p-rLxtqgsy.js → p-Cop4KmAG.js} +1 -1
  247. package/dist/components/{p-C0AbGd4t.js → p-DHxDWgLP.js} +1 -1
  248. package/dist/components/{p-CuVYRPvz.js → p-DORBnmT4.js} +1 -1
  249. package/dist/components/{p-CmbpWpb0.js → p-DbN9vTl7.js} +1 -1
  250. package/dist/components/{p-DTh_zemx.js → p-Dl__XgUD.js} +1 -1
  251. package/dist/components/{p-8zrW9vEC.js → p-JjlTuq8d.js} +1 -1
  252. package/dist/components/p-d4i2Qqvl.js +1 -0
  253. package/dist/components/{p-Btb2UkLz.js → p-n-yq7lf4.js} +1 -1
  254. package/dist/components/{p-1D7CWIJ-.js → p-rQFFXcXl.js} +1 -1
  255. package/dist/components/p-sjDW_E4p.js +1 -0
  256. package/dist/components/{p-B56GeUtW.js → p-yc1qXhah.js} +1 -1
  257. package/dist/components/xpl-accordion.js +1 -1
  258. package/dist/components/xpl-application-shell.js +1 -1
  259. package/dist/components/xpl-avatar.js +1 -1
  260. package/dist/components/xpl-backdrop.js +1 -1
  261. package/dist/components/xpl-badge.js +1 -1
  262. package/dist/components/xpl-banner.js +1 -1
  263. package/dist/components/xpl-breadcrumb-item.js +1 -1
  264. package/dist/components/xpl-breadcrumbs.js +1 -1
  265. package/dist/components/xpl-button-row.js +1 -1
  266. package/dist/components/xpl-button.js +1 -1
  267. package/dist/components/xpl-calendar.js +1 -1
  268. package/dist/components/xpl-checkbox.js +1 -1
  269. package/dist/components/xpl-choicelist.js +1 -1
  270. package/dist/components/xpl-content-area.js +1 -1
  271. package/dist/components/xpl-dashboard.js +1 -1
  272. package/dist/components/xpl-data-card.js +1 -1
  273. package/dist/components/xpl-divider.js +1 -1
  274. package/dist/components/xpl-dropdown-group.js +1 -1
  275. package/dist/components/xpl-dropdown-heading.js +1 -1
  276. package/dist/components/xpl-dropdown-option.js +1 -1
  277. package/dist/components/xpl-dropdown.js +1 -1
  278. package/dist/components/xpl-dynamic-table-cell.js +1 -1
  279. package/dist/components/xpl-dynamic-table-row.js +1 -1
  280. package/dist/components/xpl-dynamic-table.js +1 -1
  281. package/dist/components/xpl-grid-item.js +1 -1
  282. package/dist/components/xpl-grid.js +1 -1
  283. package/dist/components/xpl-header-accordion.js +1 -1
  284. package/dist/components/xpl-icon.js +1 -1
  285. package/dist/components/xpl-input-color.js +1 -1
  286. package/dist/components/xpl-input-date.js +1 -1
  287. package/dist/components/xpl-input-file.js +1 -1
  288. package/dist/components/xpl-input-phone.js +1 -1
  289. package/dist/components/xpl-input-search.js +1 -1
  290. package/dist/components/xpl-input-time.js +1 -1
  291. package/dist/components/xpl-input.js +1 -1
  292. package/dist/components/xpl-large-card.js +1 -1
  293. package/dist/components/xpl-list-item.js +1 -1
  294. package/dist/components/xpl-list.js +1 -1
  295. package/dist/components/xpl-main-nav.js +1 -1
  296. package/dist/components/xpl-modal.js +1 -1
  297. package/dist/components/xpl-nav-header-menu.js +1 -1
  298. package/dist/components/xpl-nav-item.js +1 -1
  299. package/dist/components/xpl-pagination.js +1 -1
  300. package/dist/components/xpl-panel.js +1 -1
  301. package/dist/components/xpl-popover.js +1 -1
  302. package/dist/components/xpl-progress-bar.js +1 -1
  303. package/dist/components/xpl-progress-indicator.js +1 -1
  304. package/dist/components/xpl-radio.js +1 -1
  305. package/dist/components/xpl-secondary-nav.js +1 -1
  306. package/dist/components/xpl-select.js +1 -1
  307. package/dist/components/xpl-side-nav-header-item.js +1 -1
  308. package/dist/components/xpl-side-nav-item.js +1 -1
  309. package/dist/components/xpl-side-nav-section.js +1 -1
  310. package/dist/components/xpl-side-nav.js +1 -1
  311. package/dist/components/xpl-skeleton.js +1 -1
  312. package/dist/components/xpl-slideout.js +1 -1
  313. package/dist/components/xpl-spotlight.js +1 -1
  314. package/dist/components/xpl-tab-panel.js +1 -1
  315. package/dist/components/xpl-tab.js +1 -1
  316. package/dist/components/xpl-table-body.js +1 -1
  317. package/dist/components/xpl-table-cell.js +1 -1
  318. package/dist/components/xpl-table-footer-cell.js +1 -1
  319. package/dist/components/xpl-table-footer.js +1 -1
  320. package/dist/components/xpl-table-header-cell.js +1 -1
  321. package/dist/components/xpl-table-header.js +1 -1
  322. package/dist/components/xpl-table-row.js +1 -1
  323. package/dist/components/xpl-table.js +1 -1
  324. package/dist/components/xpl-tabs.js +1 -1
  325. package/dist/components/xpl-tag.js +1 -1
  326. package/dist/components/xpl-toast.js +1 -1
  327. package/dist/components/xpl-toggle.js +1 -1
  328. package/dist/components/xpl-toolbar.js +1 -1
  329. package/dist/components/xpl-tooltip.js +1 -1
  330. package/dist/components/xpl-top-nav-item.js +1 -1
  331. package/dist/components/xpl-top-nav-menu.js +1 -1
  332. package/dist/components/xpl-top-nav.js +1 -1
  333. package/dist/components/xpl-utility-bar.js +1 -1
  334. package/dist/docs/xpl-accordion/readme.md +5 -4
  335. package/dist/docs/xpl-application-shell/readme.md +10 -0
  336. package/dist/docs/xpl-avatar/readme.md +7 -0
  337. package/dist/docs/xpl-badge/readme.md +7 -0
  338. package/dist/docs/xpl-breadcrumbs/xpl-breadcrumb-item/readme.md +1 -0
  339. package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +1 -0
  340. package/dist/docs/xpl-button/readme.md +7 -0
  341. package/dist/docs/xpl-checkbox/readme.md +7 -0
  342. package/dist/docs/xpl-content-area/readme.md +7 -0
  343. package/dist/docs/xpl-dashboard/readme.md +7 -0
  344. package/dist/docs/xpl-data-card/readme.md +1 -0
  345. package/dist/docs/xpl-divider/readme.md +7 -0
  346. package/dist/docs/xpl-dropdown/readme.md +8 -0
  347. package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +7 -0
  348. package/dist/docs/xpl-dropdown/xpl-dropdown-heading/readme.md +7 -0
  349. package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +7 -0
  350. package/dist/docs/xpl-dynamic-table/readme.md +8 -0
  351. package/dist/docs/xpl-dynamic-table-cell/readme.md +7 -0
  352. package/dist/docs/xpl-dynamic-table-row/readme.md +7 -0
  353. package/dist/docs/xpl-grid-item/readme.md +7 -0
  354. package/dist/docs/xpl-header-accordion/readme.md +8 -0
  355. package/dist/docs/xpl-icon/readme.md +1 -1
  356. package/dist/docs/xpl-input/readme.md +8 -0
  357. package/dist/docs/xpl-list/readme.md +7 -0
  358. package/dist/docs/xpl-list/xpl-list-item/readme.md +16 -0
  359. package/dist/docs/xpl-main-nav/readme.md +12 -0
  360. package/dist/docs/xpl-nav-item/readme.md +9 -0
  361. package/dist/docs/xpl-popover/readme.md +1 -0
  362. package/dist/docs/xpl-radio/readme.md +7 -0
  363. package/dist/docs/xpl-secondary-nav/readme.md +7 -0
  364. package/dist/docs/xpl-select/readme.md +7 -0
  365. package/dist/docs/xpl-side-nav/xpl-side-nav-item/readme.md +9 -0
  366. package/dist/docs/xpl-side-nav/xpl-side-nav-section/readme.md +8 -0
  367. package/dist/docs/xpl-slideout/readme.md +13 -0
  368. package/dist/docs/xpl-spotlight/readme.md +1 -0
  369. package/dist/docs/xpl-table/readme.md +12 -0
  370. package/dist/docs/xpl-table/xpl-table-body/readme.md +7 -0
  371. package/dist/docs/xpl-table/xpl-table-cell/readme.md +7 -0
  372. package/dist/docs/xpl-table/xpl-table-footer/readme.md +7 -0
  373. package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +7 -0
  374. package/dist/docs/xpl-table/xpl-table-header-cell/readme.md +59 -52
  375. package/dist/docs/xpl-table/xpl-table-row/readme.md +7 -0
  376. package/dist/docs/xpl-table-header/readme.md +7 -0
  377. package/dist/docs/xpl-tag/readme.md +9 -2
  378. package/dist/docs/xpl-toast/readme.md +8 -0
  379. package/dist/docs/xpl-toolbar/readme.md +8 -0
  380. package/dist/docs/xpl-tooltip/readme.md +7 -0
  381. package/dist/docs/xpl-top-nav/xpl-nav-header-menu/readme.md +1 -0
  382. package/dist/docs/xpl-top-nav/xpl-top-nav-item/readme.md +1 -0
  383. package/dist/docs/xpl-top-nav/xpl-top-nav-menu/readme.md +1 -0
  384. package/dist/docs/xpl-utility-bar/readme.md +8 -0
  385. package/dist/docs.json +770 -88
  386. package/dist/esm/apollo-core.js +3 -3
  387. package/dist/esm/{index-ukZKsqqq.js → index-CJABLO_1.js} +52 -11
  388. package/dist/esm/loader.js +2 -2
  389. package/dist/esm/xpl-accordion.entry.js +3 -3
  390. package/dist/esm/xpl-application-shell.entry.js +2 -2
  391. package/dist/esm/xpl-avatar_3.entry.js +5 -5
  392. package/dist/esm/xpl-backdrop.entry.js +2 -2
  393. package/dist/esm/xpl-badge.entry.js +2 -2
  394. package/dist/esm/xpl-banner.entry.js +3 -3
  395. package/dist/esm/xpl-breadcrumb-item.entry.js +2 -2
  396. package/dist/esm/xpl-breadcrumbs.entry.js +2 -2
  397. package/dist/esm/xpl-button-row.entry.js +2 -2
  398. package/dist/esm/xpl-button.entry.js +3 -3
  399. package/dist/esm/xpl-calendar.entry.js +2 -2
  400. package/dist/esm/xpl-checkbox.entry.js +4 -4
  401. package/dist/esm/xpl-choicelist.entry.js +2 -2
  402. package/dist/esm/xpl-content-area.entry.js +2 -2
  403. package/dist/esm/xpl-dashboard.entry.js +2 -2
  404. package/dist/esm/xpl-data-card.entry.js +3 -3
  405. package/dist/esm/xpl-dropdown_4.entry.js +9 -9
  406. package/dist/esm/xpl-dynamic-table-cell.entry.js +3 -3
  407. package/dist/esm/xpl-dynamic-table-row.entry.js +3 -3
  408. package/dist/esm/xpl-dynamic-table.entry.js +3 -3
  409. package/dist/esm/xpl-grid-item.entry.js +2 -2
  410. package/dist/esm/xpl-grid.entry.js +1 -1
  411. package/dist/esm/xpl-header-accordion.entry.js +2 -2
  412. package/dist/esm/xpl-icon.entry.js +1 -1
  413. package/dist/esm/xpl-input-color.entry.js +1 -1
  414. package/dist/esm/xpl-input-phone.entry.js +1 -1
  415. package/dist/esm/xpl-input-time.entry.js +1 -1
  416. package/dist/esm/xpl-input_4.entry.js +3 -3
  417. package/dist/esm/xpl-large-card.entry.js +1 -1
  418. package/dist/esm/xpl-list-item.entry.js +1 -1
  419. package/dist/esm/xpl-list.entry.js +3 -3
  420. package/dist/esm/xpl-main-nav.entry.js +2 -2
  421. package/dist/esm/xpl-modal.entry.js +1 -1
  422. package/dist/esm/xpl-nav-header-menu.entry.js +3 -3
  423. package/dist/esm/xpl-nav-item.entry.js +3 -3
  424. package/dist/esm/xpl-pagination.entry.js +1 -1
  425. package/dist/esm/xpl-panel.entry.js +1 -1
  426. package/dist/esm/xpl-popover.entry.js +5 -5
  427. package/dist/esm/xpl-progress-bar.entry.js +1 -1
  428. package/dist/esm/xpl-progress-indicator.entry.js +1 -1
  429. package/dist/esm/xpl-secondary-nav.entry.js +2 -2
  430. package/dist/esm/xpl-select_2.entry.js +10 -10
  431. package/dist/esm/xpl-side-nav-header-item.entry.js +1 -1
  432. package/dist/esm/xpl-side-nav-item.entry.js +3 -3
  433. package/dist/esm/xpl-side-nav-section.entry.js +6 -6
  434. package/dist/esm/xpl-side-nav.entry.js +1 -1
  435. package/dist/esm/xpl-skeleton.entry.js +1 -1
  436. package/dist/esm/xpl-slideout.entry.js +2 -2
  437. package/dist/esm/xpl-spotlight.entry.js +1 -1
  438. package/dist/esm/xpl-tab-panel.entry.js +1 -1
  439. package/dist/esm/xpl-tab.entry.js +1 -1
  440. package/dist/esm/xpl-table-body.entry.js +2 -2
  441. package/dist/esm/xpl-table-cell_3.entry.js +5 -5
  442. package/dist/esm/xpl-table-footer.entry.js +2 -2
  443. package/dist/esm/xpl-table-header.entry.js +2 -2
  444. package/dist/esm/xpl-table-row.entry.js +3 -3
  445. package/dist/esm/xpl-table.entry.js +1 -1
  446. package/dist/esm/xpl-tabs.entry.js +1 -1
  447. package/dist/esm/xpl-toast.entry.js +3 -3
  448. package/dist/esm/xpl-toggle.entry.js +1 -1
  449. package/dist/esm/xpl-toolbar.entry.js +3 -3
  450. package/dist/esm/xpl-tooltip.entry.js +2 -2
  451. package/dist/esm/xpl-top-nav-item.entry.js +3 -3
  452. package/dist/esm/xpl-top-nav-menu.entry.js +1 -1
  453. package/dist/esm/xpl-top-nav.entry.js +1 -1
  454. package/dist/esm/xpl-utility-bar.entry.js +2 -2
  455. package/dist/types/components.d.ts +3 -1
  456. package/dist/types/stencil-public-runtime.d.ts +12 -0
  457. package/hydrate/index.js +117 -98
  458. package/hydrate/index.mjs +117 -98
  459. package/loader/index.d.ts +1 -1
  460. package/package.json +13 -13
  461. package/dist/apollo-core/p-045a4538.entry.js +0 -1
  462. package/dist/apollo-core/p-08767607.entry.js +0 -1
  463. package/dist/apollo-core/p-194c0ccd.entry.js +0 -1
  464. package/dist/apollo-core/p-1c031055.entry.js +0 -1
  465. package/dist/apollo-core/p-24f7280a.entry.js +0 -1
  466. package/dist/apollo-core/p-386851a2.entry.js +0 -1
  467. package/dist/apollo-core/p-3cd1238b.entry.js +0 -1
  468. package/dist/apollo-core/p-4e3c6616.entry.js +0 -1
  469. package/dist/apollo-core/p-5b9fd96e.entry.js +0 -1
  470. package/dist/apollo-core/p-5cbf5d42.entry.js +0 -1
  471. package/dist/apollo-core/p-5ec2b180.entry.js +0 -1
  472. package/dist/apollo-core/p-65f6b66c.entry.js +0 -1
  473. package/dist/apollo-core/p-72e0455f.entry.js +0 -1
  474. package/dist/apollo-core/p-7ac7fbc0.entry.js +0 -1
  475. package/dist/apollo-core/p-7f4463ff.entry.js +0 -1
  476. package/dist/apollo-core/p-87582346.entry.js +0 -1
  477. package/dist/apollo-core/p-a6ecca68.entry.js +0 -1
  478. package/dist/apollo-core/p-a789c272.entry.js +0 -1
  479. package/dist/apollo-core/p-bd493c4a.entry.js +0 -1
  480. package/dist/apollo-core/p-bdcece21.entry.js +0 -1
  481. package/dist/apollo-core/p-bfb7a83a.entry.js +0 -1
  482. package/dist/apollo-core/p-c22f70f4.entry.js +0 -1
  483. package/dist/apollo-core/p-d3230277.entry.js +0 -1
  484. package/dist/apollo-core/p-d7f8ee34.entry.js +0 -1
  485. package/dist/apollo-core/p-d879c349.entry.js +0 -1
  486. package/dist/apollo-core/p-ea9cdd65.entry.js +0 -1
  487. package/dist/apollo-core/p-ukZKsqqq.js +0 -2
  488. package/dist/components/p-B6YLKDUX.js +0 -1
  489. package/dist/components/p-BSHdGbmH.js +0 -1
  490. package/dist/components/p-BZIZSovL.js +0 -1
  491. package/dist/components/p-CgemLtmL.js +0 -1
  492. package/dist/components/p-Dp62sBqX.js +0 -1
  493. package/dist/components/p-DqgnC_vS.js +0 -1
  494. package/dist/components/p-DtV4i45B.js +0 -1
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,F as e,H as h,g as a}from"./p-ukZKsqqq.js";import{t as n}from"./p-CzwViN3U.js";import{i as l}from"./p-Dqb1pIRo.js";import{v as o}from"./p-CK3_k8jD.js";import"./p-BFTU3MAI.js";let c;function r(t){return t.label||t.value||""}function d(t){return t.value||t.label||""}function p(t){return t.flatMap((t=>t.groupName&&t.options?t.options:[t]))}const g=class{constructor(i){t(this,i),this.selectChange=s(this,"selectChange",7),this.changeEvent=s(this,"changeEvent",7),this.dropdownStateChange=s(this,"dropdownStateChange",7),this.triggerDropdown=s(this,"triggerDropdown",7),this.choices=[],this.selectIcon="chevron-down",this.dropdownPlacement="bottom-start",this.mode="single",this.truncate=!0,this.active=!1,this.id=o(),this.keepFocus=!1,this.visibleChoices=1/0,this.choicesState=[],this.value=this.calculateValue(),this.dropdownOpenState=!1,this.container=null,this.dropdown=null,this.handleResizeThrottled=n((()=>{this.maybeTruncateChoices()}),250),this.handleTabKeyDown=t=>{"Tab"===t.key&&(this.keepFocus=!0)},this.handleTagRemove=t=>{const s=s=>t?.value&&s.value===t.value||t?.label&&s.label===t.label;this.choicesState=this.choicesState.map((t=>({...t,isSelected:!s(t)&&t.isSelected,options:t.options?.map((t=>({...t,isSelected:!s(t)&&t.isSelected})))})))},this.handleDropdownScroll=t=>{const s=this.dropdown?.querySelector(".xpl-dropdown-list");if(!s)return;const{scrollTop:i,scrollHeight:e,clientHeight:h}=s;(0===i&&t.deltaY<0||i+h>=e&&t.deltaY>0)&&t.preventDefault()}}onChoicesPropChanged(t){this.choicesState=this.initializeChoicesState()}onSelectedValuesPropChanged(){this.choicesState=this.initializeChoicesState()}onChoicesStateChanged(){this.update()}handleValueStateChange(t){this.selectChange.emit(t),this.changeEvent.emit("single"===this.mode?t:t?.length?t.split("|"):[]),this.customDisplayValue&&null!==this.container&&(this.container.querySelectorAll(".custom-display-value").forEach((s=>{s.classList.toggle("display-active",t.length>0),s.classList.toggle("display-inactive",0===t.length)})),this.container.querySelectorAll(".placeholder").forEach((s=>{s.classList.toggle("placeholder-hidden",t.length>0)})))}onDropdownOpenStateChanged(t){this.dropdownStateChange.emit(t)}initializeChoicesState(){return(this.choices??[]).map((t=>{const s="string"==typeof this.selectedValues?[this.selectedValues]:this.selectedValues;return{...t,isSelected:t.isSelected||!0===s?.includes(d(t)),options:t.options?.map((t=>({...t,isSelected:t.isSelected||!0===s?.includes(d(t))})))}}))}maybeTruncateChoices(){if(!l())return;if("single"===this.mode||!this.truncate)return;const t=this.container?.getBoundingClientRect().width;let s=0,i=0;const e=p(this.choicesState)?.filter((t=>t.isSelected));if(!e.length)return;const h=e.length;e.forEach(((h,a)=>(i+=function(t){const s=l()?(void 0===c&&(c=document.createElement("canvas").getContext("2d"),c&&(c.font="14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif")),c):null;return s?s.measureText(t).width+44:0}(r(e[a])),i>(t??0)-140||(s+=1),null))),s>=h&&(s=1/0),s<1&&(s=1),this.visibleChoices=s}closeDropdown(){this.dropdown?.isOpen&&(this.dropdown.isOpen=!1,this.active=!1)}calculateValue(){const t=p(this.choicesState).filter((t=>t.isSelected));return t.length?"single"===this.mode?d(t[0]):t.map((t=>d(t))).join("|"):""}update(){this.value=this.calculateValue(),this.maybeTruncateChoices()}renderLabel(){return this.label||this.description?i("label",{class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},this.label,this.description&&i("small",{class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)):null}renderSelectedTags(){let t=0;const s=p(this.choicesState).filter((t=>t.isSelected));return s.length?s.map(((e,h)=>t>=this.visibleChoices?null:(t+=1,i("xpl-tag",{disabled:this.disabled,onClose:()=>this.handleTagRemove(s[h])},r(s[h]))))):null}renderError(){return this.error?i("label",{class:"xpl-input-error",htmlFor:this.id},i("xpl-icon",{icon:"circle-warning"}),this.error):null}componentWillLoad(){this.choicesState=this.initializeChoicesState()}handleClickEvent(t){const s=t.target.closest(".xpl-select");null!==s&&s===this.container||this.closeDropdown()}handleKeyDown(t){"Escape"===t.key&&(this.active||this.container?.contains(document.activeElement))&&this.closeDropdown()}handleResize(){this.handleResizeThrottled()}componentDidLoad(){void 0!==this.truncateRafId&&cancelAnimationFrame(this.truncateRafId),this.truncateRafId=requestAnimationFrame((()=>{this.truncateRafId=void 0,this.maybeTruncateChoices()}))}disconnectedCallback(){this.handleResizeThrottled?.cancel(),void 0!==this.truncateRafId&&(cancelAnimationFrame(this.truncateRafId),this.truncateRafId=void 0)}handleDropdownTrigger(){if(this.disabled)return;const t=this.dropdown?.isOpen??!1,s=!t;this.triggerDropdown.emit({prevState:t,nextState:s}).defaultPrevented||(this.dropdownOpenState=s,this.dropdown&&(this.dropdown.isOpen=s))}async reset(){this.closeDropdown(),this.choicesState=this.choicesState.map((t=>({...t,isSelected:!1,options:t.options?.map((t=>({...t,isSelected:!1})))})))}render(){const t=p(this.choicesState).filter((t=>t.isSelected)),s=t[0]?.label||t[0]?.value,a=t.length>1&&this.visibleChoices<1/0&&this.truncate&&!this.customDisplayValue,n=`+ ${Math.abs(this.choicesState.filter((t=>t.isSelected)).length-this.visibleChoices)} more`;return i(h,{key:"273b1e5d40c7873055bb735adf66c325d18ba676",class:{"xpl-select":!0,"xpl-select--disabled":!!this.disabled,"xpl-select--no-truncate":!this.truncate,[this.classNames??""]:!!this.classNames},onKeyDown:this.handleTabKeyDown,ref:t=>{this.container=t}},this.renderLabel(),i("div",{key:"87a42faab0ee127dfaa2ee75e9218900e9e0a4b3",class:{"xpl-input":!0,"xpl-input--disabled":!!this.disabled,"xpl-input--error":void 0!==this.error}},i("div",{key:"22c839efb33132901419bab4dacbe9ffaf464d77",class:"xpl-input-wrapper"},i("button",{key:"68b88431715f567adfbe00c5f1bcdf9ab41f7360",class:"xpl-select__trigger",disabled:this.disabled,id:this.id,onKeyDown:this.handleTabKeyDown,onClick:t=>{t.preventDefault(),this.handleDropdownTrigger()},type:"button"},i("div",{key:"d1cf1ba8dbe86413a7de9911440204509fc4093b",class:{"xpl-select-value":!0,"xpl-select-value--active":"multi"===this.mode&&this.value.length>0,"has-value":this.value.length>0}},(()=>this.customDisplayValue?i(e,null,i("div",{class:{"custom-display-value":!0,"custom-display-value--inactive":0===this.value.length}},i("slot",{name:"custom-display-value"})),i("span",{class:{"xpl-placeholder--hidden":this.value.length>0}},this.placeholder)):"single"===this.mode?s||this.placeholder:this.value.length>0?this.renderSelectedTags():this.placeholder)(),a&&n),i("xpl-icon",{key:"f44a543e315a5715d5d077ce7601956d8485f5f1",class:"xpl-select__chevron-down",icon:this.selectIcon??"chevron-down"}))),!this.disabled&&i("xpl-dropdown",{key:"dd2355886ce290d697431e00c8f4b7bc41c87429",ref:t=>{this.dropdown=t??null},isOpen:this.dropdownOpenState,options:this.choicesState,selectedValues:this.selectedValues,mode:this.mode,triggerId:this.id,update:(t,{component:s})=>{const{options:i}=s;i&&i.length>0&&(this.choicesState=i)},onIsOpenChange:t=>{this.dropdownOpenState=t.detail},onWheel:this.handleDropdownScroll,anchorToTrigger:!0,flipFallbackPlacements:this.dropdownFlipFallbackPlacements,placement:this.dropdownPlacement}),this.renderError()),i("input",{key:"18472290f7adfe3c02ee90759180404ec33aa1e2",type:"hidden",name:this.name,value:this.value}))}static get watchers(){return{choices:[{onChoicesPropChanged:0}],selectedValues:[{onSelectedValuesPropChanged:0}],choicesState:[{onChoicesStateChanged:0}],value:[{handleValueStateChange:0}],dropdownOpenState:[{onDropdownOpenStateChanged:0}]}}},u=class{constructor(i){t(this,i),this.close=s(this,"close",7),this.tagDragEnd=s(this,"tagDragEnd",7),this.tagDragStart=s(this,"tagDragStart",7),this.tagRemove=s(this,"tagRemove",7),this.dismissAriaLabelSuffix="tag",this.isDragging=!1,this.disabled=!1,this.dismissible=!0,this.isDraggable=!1,this.size="default",this.handleTagClick=()=>{this.disabled||this.isDraggable||this.close.emit()},this.setDragPreviewToHost=t=>{if(t.dataTransfer)try{const s=this.el.getBoundingClientRect(),i=Math.max(0,t.clientX-s.left),e=Math.max(0,t.clientY-s.top);t.dataTransfer.setDragImage(this.el,i,e)}catch{}},this.handleContentKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||t.preventDefault()},this.handleDismissClick=t=>{t.stopPropagation(),this.disabled||(this.close.emit(),this.tagRemove.emit())},this.handleDragStart=t=>{this.isDragging=!0,t.dataTransfer&&(t.dataTransfer.effectAllowed="move",this.setDragPreviewToHost(t),this.tagId&&t.dataTransfer.setData("application/x-tag-id",this.tagId),t.dataTransfer.setData("text/plain",this.getContentLabelText())),this.tagDragStart.emit({tagId:this.tagId,content:this.getContentLabelText(),originalEvent:t})},this.handleDragEnd=t=>{this.isDragging=!1,this.tagDragEnd.emit({tagId:this.tagId,dropped:"move"===t.dataTransfer?.dropEffect,originalEvent:t})},this.handleDragOver=t=>{!this.disabled&&this.isDraggable&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="move"))},this.handleDragEnter=t=>{!this.disabled&&this.isDraggable&&t.preventDefault()},this.handleHostDragStart=t=>{t.target===this.el&&this.isDraggable&&t.preventDefault()}}onDisabledChange(t){t&&this.isDragging&&(this.isDragging=!1)}onIsDraggableChange(t){!t&&this.isDragging&&(this.isDragging=!1)}componentDidRender(){queueMicrotask((()=>this.syncDismissAriaLabelSuffix()))}getContentLabelText(){return(this.el.querySelector(".xpl-tag__content")?.textContent??"").trim()}syncDismissAriaLabelSuffix(){if(!this.el.isConnected)return;const t=this.getContentLabelText(),s=""===t?"tag":t;s!==this.dismissAriaLabelSuffix&&(this.dismissAriaLabelSuffix=s)}render(){const t=this.isDraggable&&!this.disabled;return i(h,{key:"9a05e10e7fbc047112f740884e6ba40c773b472c",class:{"xpl-tag":!0,"xpl-tag-container":!0,"xpl-tag--disabled":this.disabled,"xpl-tag--dismissible":this.dismissible,"xpl-tag--dragging":this.isDragging,"xpl-tag--draggable":t,"xpl-tag--sm":"sm"===this.size},onDragOver:t?this.handleDragOver:void 0,onDragEnter:t?this.handleDragEnter:void 0,onDragStart:this.isDraggable?this.handleHostDragStart:void 0},t?i("div",{class:"xpl-tag__content xpl-tag",role:"button",tabIndex:0,draggable:!0,"aria-grabbed":String(this.isDragging),onClick:this.handleTagClick,onKeyDown:this.handleContentKeyDown,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd},i("slot",null)):i("button",{class:"xpl-tag__content xpl-tag",type:"button",disabled:this.disabled,onClick:this.handleTagClick},i("slot",null)),this.dismissible&&i("button",{key:"37f7687aa9675c52cbd4390d66d63ced630904d0",class:"xpl-tag__dismiss xpl-tag__close",type:"button",draggable:!1,disabled:this.disabled,"aria-label":`Dismiss ${this.dismissAriaLabelSuffix}`,onClick:this.handleDismissClick},i("xpl-icon",{key:"104eac0362541d99c59e0fd6b18a5e1b2171030b",icon:"xmark",size:10})))}get el(){return a(this)}static get watchers(){return{disabled:[{onDisabledChange:0}],isDraggable:[{onIsDraggableChange:0}]}}};export{g as xpl_select,u as xpl_tag}
1
+ import{r as t,c as s,h as i,F as e,H as h,g as n}from"./p-CJABLO_1.js";import{t as a}from"./p-CzwViN3U.js";import{i as l}from"./p-Dqb1pIRo.js";import{v as o}from"./p-CK3_k8jD.js";import"./p-BFTU3MAI.js";let c;function r(t){return t.label||t.value||""}function d(t){return t.value||t.label||""}function p(t){return t.flatMap((t=>t.groupName&&t.options?t.options:[t]))}const g=class{constructor(i){t(this,i),this.selectChange=s(this,"selectChange",7),this.changeEvent=s(this,"changeEvent",7),this.dropdownStateChange=s(this,"dropdownStateChange",7),this.triggerDropdown=s(this,"triggerDropdown",7),this.choices=[],this.selectIcon="chevron-down",this.dropdownPlacement="bottom-start",this.mode="single",this.truncate=!0,this.active=!1,this.id=o(),this.keepFocus=!1,this.visibleChoices=1/0,this.choicesState=[],this.value=this.calculateValue(),this.dropdownOpenState=!1,this.container=null,this.dropdown=null,this.handleResizeThrottled=a((()=>{this.maybeTruncateChoices()}),250),this.handleTabKeyDown=t=>{"Tab"===t.key&&(this.keepFocus=!0)},this.handleTagRemove=t=>{const s=s=>t?.value&&s.value===t.value||t?.label&&s.label===t.label;this.choicesState=this.choicesState.map((t=>({...t,isSelected:!s(t)&&t.isSelected,options:t.options?.map((t=>({...t,isSelected:!s(t)&&t.isSelected})))})))},this.handleDropdownScroll=t=>{const s=this.dropdown?.querySelector(".xpl-dropdown-list");if(!s)return;const{scrollTop:i,scrollHeight:e,clientHeight:h}=s;(0===i&&t.deltaY<0||i+h>=e&&t.deltaY>0)&&t.preventDefault()}}onChoicesPropChanged(t){this.choicesState=this.initializeChoicesState()}onSelectedValuesPropChanged(){this.choicesState=this.initializeChoicesState()}onChoicesStateChanged(){this.update()}handleValueStateChange(t){this.selectChange.emit(t),this.changeEvent.emit("single"===this.mode?t:t?.length?t.split("|"):[]),this.customDisplayValue&&null!==this.container&&(this.container.querySelectorAll(".custom-display-value").forEach((s=>{s.classList.toggle("display-active",t.length>0),s.classList.toggle("display-inactive",0===t.length)})),this.container.querySelectorAll(".placeholder").forEach((s=>{s.classList.toggle("placeholder-hidden",t.length>0)})))}onDropdownOpenStateChanged(t){this.dropdownStateChange.emit(t)}initializeChoicesState(){return(this.choices??[]).map((t=>{const s="string"==typeof this.selectedValues?[this.selectedValues]:this.selectedValues;return{...t,isSelected:t.isSelected||!0===s?.includes(d(t)),options:t.options?.map((t=>({...t,isSelected:t.isSelected||!0===s?.includes(d(t))})))}}))}maybeTruncateChoices(){if(!l())return;if("single"===this.mode||!this.truncate)return;const t=this.container?.getBoundingClientRect().width;let s=0,i=0;const e=p(this.choicesState)?.filter((t=>t.isSelected));if(!e.length)return;const h=e.length;e.forEach(((h,n)=>(i+=function(t){const s=l()?(void 0===c&&(c=document.createElement("canvas").getContext("2d"),c&&(c.font="14px apple-system, system-ui, 'Segoe UI', Arial, Helvetica, Roboto, sans-serif")),c):null;return s?s.measureText(t).width+50:0}(r(e[n])),i>(t??0)-140||(s+=1),null))),s>=h&&(s=1/0),s<1&&(s=1),this.visibleChoices=s}closeDropdown(){this.dropdown?.isOpen&&(this.dropdown.isOpen=!1,this.active=!1)}calculateValue(){const t=p(this.choicesState).filter((t=>t.isSelected));return t.length?"single"===this.mode?d(t[0]):t.map((t=>d(t))).join("|"):""}update(){this.value=this.calculateValue(),this.maybeTruncateChoices()}renderLabel(){return this.label||this.description?i("label",{class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},this.label,this.description&&i("small",{class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)):null}renderSelectedTags(){let t=0;const s=p(this.choicesState).filter((t=>t.isSelected));return s.length?s.map(((e,h)=>t>=this.visibleChoices?null:(t+=1,i("xpl-tag",{disabled:this.disabled,onClose:()=>this.handleTagRemove(s[h])},r(s[h]))))):null}renderError(){return this.error?i("label",{class:"xpl-input-error",htmlFor:this.id},i("xpl-icon",{icon:"circle-warning"}),this.error):null}componentWillLoad(){this.choicesState=this.initializeChoicesState()}handleClickEvent(t){const s=t.target.closest(".xpl-select");null!==s&&s===this.container||this.closeDropdown()}handleKeyDown(t){"Escape"===t.key&&(this.active||this.container?.contains(document.activeElement))&&this.closeDropdown()}handleResize(){this.handleResizeThrottled()}componentDidLoad(){void 0!==this.truncateRafId&&cancelAnimationFrame(this.truncateRafId),this.truncateRafId=requestAnimationFrame((()=>{this.truncateRafId=void 0,this.maybeTruncateChoices()}))}disconnectedCallback(){this.handleResizeThrottled?.cancel(),void 0!==this.truncateRafId&&(cancelAnimationFrame(this.truncateRafId),this.truncateRafId=void 0)}handleDropdownTrigger(){if(this.disabled)return;const t=this.dropdown?.isOpen??!1,s=!t;this.triggerDropdown.emit({prevState:t,nextState:s}).defaultPrevented||(this.dropdownOpenState=s,this.dropdown&&(this.dropdown.isOpen=s))}async reset(){this.closeDropdown(),this.choicesState=this.choicesState.map((t=>({...t,isSelected:!1,options:t.options?.map((t=>({...t,isSelected:!1})))})))}render(){const t=p(this.choicesState).filter((t=>t.isSelected)),s=t[0]?.label||t[0]?.value,n=t.length>1&&this.visibleChoices<1/0&&this.truncate&&!this.customDisplayValue,a=`+ ${Math.abs(this.choicesState.filter((t=>t.isSelected)).length-this.visibleChoices)} more`;return i(h,{key:"b28e9dbd835634f20311d80b0793c722bb516d10",class:{"xpl-select":!0,"xpl-select--disabled":!!this.disabled,"xpl-select--no-truncate":!this.truncate,[this.classNames??""]:!!this.classNames},onKeyDown:this.handleTabKeyDown,ref:t=>{this.container=t}},this.renderLabel(),i("div",{key:"9becbbb7cc7ad5f36912adb9b2bafbfbd200729c",class:{"xpl-input":!0,"xpl-input--disabled":!!this.disabled,"xpl-input--error":void 0!==this.error}},i("div",{key:"725575d6e2ebde606deb2efa6d135cd93a358c6f",class:"xpl-input-wrapper"},i("button",{key:"e7c3d24ce1366bbb42817eb1627b89dfc9b7f669",class:"xpl-select__trigger",disabled:this.disabled,id:this.id,onKeyDown:this.handleTabKeyDown,onClick:t=>{t.preventDefault(),this.handleDropdownTrigger()},type:"button"},i("div",{key:"b32057bdf81dfb44a89a15a596e35efe9b1c56fb",class:{"xpl-select-value":!0,"xpl-select-value--active":"multi"===this.mode&&this.value.length>0,"has-value":this.value.length>0}},(()=>this.customDisplayValue?i(e,null,i("div",{class:{"custom-display-value":!0,"custom-display-value--inactive":0===this.value.length}},i("slot",{name:"custom-display-value"})),i("span",{class:{"xpl-placeholder--hidden":this.value.length>0}},this.placeholder)):"single"===this.mode?s||this.placeholder:this.value.length>0?this.renderSelectedTags():this.placeholder)(),n&&a),i("xpl-icon",{key:"f552cedcb15ff028a763ef6e8b5ee30f7a4e6720",class:"xpl-select__chevron-down",icon:this.selectIcon??"chevron-down"}))),!this.disabled&&i("xpl-dropdown",{key:"ef09a2f9fabb75050e0e69c1bc375b64d6584429",ref:t=>{this.dropdown=t??null},isOpen:this.dropdownOpenState,options:this.choicesState,selectedValues:this.selectedValues,mode:this.mode,triggerId:this.id,update:(t,{component:s})=>{const{options:i}=s;i&&i.length>0&&(this.choicesState=i)},onIsOpenChange:t=>{this.dropdownOpenState=t.detail},onWheel:this.handleDropdownScroll,anchorToTrigger:!0,flipFallbackPlacements:this.dropdownFlipFallbackPlacements,placement:this.dropdownPlacement}),this.renderError()),i("input",{key:"3963614dbc087fe3a10d44ab4554046755a581d2",type:"hidden",name:this.name,value:this.value}))}static get watchers(){return{choices:[{onChoicesPropChanged:0}],selectedValues:[{onSelectedValuesPropChanged:0}],choicesState:[{onChoicesStateChanged:0}],value:[{handleValueStateChange:0}],dropdownOpenState:[{onDropdownOpenStateChanged:0}]}}},u=class{constructor(i){t(this,i),this.close=s(this,"close",7),this.tagDragEnd=s(this,"tagDragEnd",7),this.tagDragStart=s(this,"tagDragStart",7),this.tagRemove=s(this,"tagRemove",7),this.dismissAriaLabelSuffix="tag",this.isDragging=!1,this.disabled=!1,this.dismissible=!0,this.isDraggable=!1,this.size="default",this.handleTagClick=()=>{this.disabled||this.isDraggable||this.close.emit()},this.setDragPreviewToHost=t=>{if(t.dataTransfer)try{const s=this.el.getBoundingClientRect(),i=Math.max(0,t.clientX-s.left),e=Math.max(0,t.clientY-s.top);t.dataTransfer.setDragImage(this.el,i,e)}catch{}},this.handleContentKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||t.preventDefault()},this.handleDismissClick=t=>{t.stopPropagation(),this.disabled||(this.close.emit(),this.tagRemove.emit())},this.handleDragStart=t=>{this.isDragging=!0,t.dataTransfer&&(t.dataTransfer.effectAllowed="move",this.setDragPreviewToHost(t),this.tagId&&t.dataTransfer.setData("application/x-tag-id",this.tagId),t.dataTransfer.setData("text/plain",this.getContentLabelText())),this.tagDragStart.emit({tagId:this.tagId,content:this.getContentLabelText(),originalEvent:t})},this.handleDragEnd=t=>{this.isDragging=!1,this.tagDragEnd.emit({tagId:this.tagId,dropped:"move"===t.dataTransfer?.dropEffect,originalEvent:t})},this.handleDragOver=t=>{!this.disabled&&this.isDraggable&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="move"))},this.handleDragEnter=t=>{!this.disabled&&this.isDraggable&&t.preventDefault()},this.handleHostDragStart=t=>{t.target===this.el&&this.isDraggable&&t.preventDefault()}}onDisabledChange(t){t&&this.isDragging&&(this.isDragging=!1)}onIsDraggableChange(t){!t&&this.isDragging&&(this.isDragging=!1)}componentDidRender(){queueMicrotask((()=>this.syncDismissAriaLabelSuffix()))}getContentLabelText(){return(this.el.querySelector(".xpl-tag__content")?.textContent??"").trim()}syncDismissAriaLabelSuffix(){if(!this.el.isConnected)return;const t=this.getContentLabelText(),s=""===t?"tag":t;s!==this.dismissAriaLabelSuffix&&(this.dismissAriaLabelSuffix=s)}render(){const t=this.isDraggable&&!this.disabled;return i(h,{key:"bc92bc270f366844ffba7cce7d126a033c80d751",class:{"xpl-tag":!0,"xpl-tag-container":!0,"xpl-tag--disabled":this.disabled,"xpl-tag--dismissible":this.dismissible,"xpl-tag--dragging":this.isDragging,"xpl-tag--draggable":t,"xpl-tag--sm":"sm"===this.size},onDragOver:t?this.handleDragOver:void 0,onDragEnter:t?this.handleDragEnter:void 0,onDragStart:this.isDraggable?this.handleHostDragStart:void 0},t?i("div",{class:"xpl-tag__content xpl-tag",role:"button",tabIndex:0,draggable:!0,"aria-grabbed":String(this.isDragging),onClick:this.handleTagClick,onKeyDown:this.handleContentKeyDown,onDragStart:this.handleDragStart,onDragEnd:this.handleDragEnd},i("slot",null)):i("button",{class:"xpl-tag__content xpl-tag",type:"button",disabled:this.disabled,onClick:this.handleTagClick},i("slot",null)),this.dismissible&&i("button",{key:"8826de6d590d5eea611c4cc406293c94d61593b2",class:"xpl-tag__dismiss xpl-tag__close",type:"button",draggable:!1,disabled:this.disabled,"aria-label":`Dismiss ${this.dismissAriaLabelSuffix}`,onClick:this.handleDismissClick},i("xpl-icon",{key:"b8e6763f53f23444b993c9331616e4cbb1440526",icon:"xmark",size:10})))}get el(){return n(this)}static get watchers(){return{disabled:[{onDisabledChange:0}],isDraggable:[{onIsDraggableChange:0}]}}};export{g as xpl_select,u as xpl_tag}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as e}from"./p-ukZKsqqq.js";function h(t){const[i,s]=t.split(":"),e=Number(i)>=12?"PM":"AM";return[(Number(i)%12||12).toString(),s,e]}const n=class{constructor(s){t(this,s),this.valueChange=i(this,"valueChange",7),this.hasErrorStateChanged=i(this,"hasErrorStateChanged",7),this.max="23:59",this.min="00:00",this.step=30,this.mode="single",this.timeFormat="24h",this.allowCustomOption=!1,this.showOptions=!1,this.options=[],this.handleInput=t=>{const i=t.target,s=i.value?.replace(/[^0-9:apmAPM]/g,"");this.value=s},this.handleFocus=()=>{this.showOptions=!0},this.handleBlur=()=>{const t=function(t){if(!t||""===t.trim()||0===t.replace(/[^0-9]/g,"").length)return null;let i=t.trim().toLowerCase();i=i.replace(/(\d)\s+(am|pm)/g,"$1$2"),/^\d{1,2}(am|pm)?$/.test(i)&&(i=i.replace(/(am|pm)?$/,":00$1")),/^\d{1,2}$/.test(i)&&(i=`${i}:00`),/^\d{1,2}:\d{1}$/.test(i)&&(i=`${i}0`);const[s,e]=i.split(":"),h=e.replace(/[^0-9]/g,""),n=i.includes("am");return i.includes("pm")||n?n?`${(Number(s)%12).toString().padStart(2,"0")}:${h}`:`${Number(s)%12+12}:${h}`:`${s.padStart(2,"0")}:${h}`}(this.value??"");this.value=t??void 0},this.handleClick=()=>{this.showOptions=!0}}onValueChange(t){this.valueChange.emit(t),this.updateState(t)}updateState(t){this.formattedValue=this.formatDisplayedTime(t),this.amPm=this.formatDisplayedAmPm(t),this.validateValue()}formatDisplayedTime(t){if(!t)return"";if("12h"===this.timeFormat&&t.includes(":")){const[i,s]=h(t);return`${i}:${s}`}return t}formatDisplayedAmPm(t){if(!t||"12h"!==this.timeFormat)return"";const[,,i]=h(t);return i}validateValue(){if(!this.value)return void(this.hasErrorState=this.required?"required":null);if(!this.value.includes(":")||this.value.trim().length<4||this.value.trim().length>5)return void(this.hasErrorState="Invalid time format, must be HH:MM");const t=String(this.min??"00:00"),i=String(this.max??"23:59");this.hasErrorState=this.value<t||this.value>i?"Out of range":this.allowCustomOption||this.options.some((t=>t.value===this.value))?null:"Invalid option"}onHasErrorStateChanged(t){this.hasErrorStateChanged.emit(t)}componentDidLoad(){"range"===this.mode&&console.warn("Range mode is not supported for time inputs at this time."),this.dropdown?.addEventListener("isOpenChange",(t=>{this.showOptions=t.detail}))}componentWillLoad(){this.options=this.getOptions(),this.value&&this.updateState(this.value)}getOptions(){return function(t,i,s,e){const n=t=>{const[i,s]=t.split(":").map(Number);return 60*i+s},r=n(i.toString()),a=n(s.toString()),o=[];for(let i=r;i<=a;i+=t)o.push((u=i,`${Math.floor(u/60).toString().padStart(2,"0")}:${(u%60).toString().padStart(2,"0")}`));var u;return o.map((t=>({label:"12h"===e?function(t){const[i,s,e]=h(t);return`${i}:${s} ${e}`}(t):t,value:t})))}(this.step,String(this.min??"00:00"),String(this.max??"23:59"),this.timeFormat??"24h").map((({label:t,value:i})=>({label:t,value:i,onClick:()=>{this.value=i,this.showOptions=!1}})))}render(){return s(e,{key:"098ef69d355f6bdf03b4bfbab59956f84d5967b4",class:{"xpl-input-time":!0,[`xpl-input-time--mode-${this.mode}`]:!0,"xpl-input-time--error":!!this.hasErrorState}},s("xpl-input",{key:"e73a120a00a6f110e99e1a7d54bc75c024a2e1dc",pre:s("xpl-icon",{class:"xpl-input-time__clock-icon",icon:"clock",size:24}),post:"12h"===this.timeFormat?this.amPm||"AM":void 0,type:"text",_id:this.inputId,disabled:this.disabled,name:this.name,required:this.required,readonly:this.readonly,placeholder:this.placeholder,max:this.max,min:this.min,onInput:this.handleInput,value:this.formattedValue,onFocusEvent:this.handleFocus,onBlurEvent:this.handleBlur,onClick:this.handleClick}),!this.readonly&&!this.disabled&&s("xpl-dropdown",{key:"454de00fca4a891eaffc71738538425fa9f4e34f",options:this.options,isOpen:this.showOptions,ref:t=>{this.dropdown=t??void 0},class:"xpl-input-time__dropdown"}))}static get watchers(){return{value:[{onValueChange:0}],hasErrorState:[{onHasErrorStateChanged:0}]}}};export{n as xpl_input_time}
1
+ import{r as t,c as i,h as s,H as e}from"./p-CJABLO_1.js";function h(t){const[i,s]=t.split(":"),e=Number(i)>=12?"PM":"AM";return[(Number(i)%12||12).toString(),s,e]}const n=class{constructor(s){t(this,s),this.valueChange=i(this,"valueChange",7),this.hasErrorStateChanged=i(this,"hasErrorStateChanged",7),this.max="23:59",this.min="00:00",this.step=30,this.mode="single",this.timeFormat="24h",this.allowCustomOption=!1,this.showOptions=!1,this.options=[],this.handleInput=t=>{const i=t.target,s=i.value?.replace(/[^0-9:apmAPM]/g,"");this.value=s},this.handleFocus=()=>{this.showOptions=!0},this.handleBlur=()=>{const t=function(t){if(!t||""===t.trim()||0===t.replace(/[^0-9]/g,"").length)return null;let i=t.trim().toLowerCase();i=i.replace(/(\d)\s+(am|pm)/g,"$1$2"),/^\d{1,2}(am|pm)?$/.test(i)&&(i=i.replace(/(am|pm)?$/,":00$1")),/^\d{1,2}$/.test(i)&&(i=`${i}:00`),/^\d{1,2}:\d{1}$/.test(i)&&(i=`${i}0`);const[s,e]=i.split(":"),h=e.replace(/[^0-9]/g,""),n=i.includes("am");return i.includes("pm")||n?n?`${(Number(s)%12).toString().padStart(2,"0")}:${h}`:`${Number(s)%12+12}:${h}`:`${s.padStart(2,"0")}:${h}`}(this.value??"");this.value=t??void 0},this.handleClick=()=>{this.showOptions=!0}}onValueChange(t){this.valueChange.emit(t),this.updateState(t)}updateState(t){this.formattedValue=this.formatDisplayedTime(t),this.amPm=this.formatDisplayedAmPm(t),this.validateValue()}formatDisplayedTime(t){if(!t)return"";if("12h"===this.timeFormat&&t.includes(":")){const[i,s]=h(t);return`${i}:${s}`}return t}formatDisplayedAmPm(t){if(!t||"12h"!==this.timeFormat)return"";const[,,i]=h(t);return i}validateValue(){if(!this.value)return void(this.hasErrorState=this.required?"required":null);if(!this.value.includes(":")||this.value.trim().length<4||this.value.trim().length>5)return void(this.hasErrorState="Invalid time format, must be HH:MM");const t=String(this.min??"00:00"),i=String(this.max??"23:59");this.hasErrorState=this.value<t||this.value>i?"Out of range":this.allowCustomOption||this.options.some((t=>t.value===this.value))?null:"Invalid option"}onHasErrorStateChanged(t){this.hasErrorStateChanged.emit(t)}componentDidLoad(){"range"===this.mode&&console.warn("Range mode is not supported for time inputs at this time."),this.dropdown?.addEventListener("isOpenChange",(t=>{this.showOptions=t.detail}))}componentWillLoad(){this.options=this.getOptions(),this.value&&this.updateState(this.value)}getOptions(){return function(t,i,s,e){const n=t=>{const[i,s]=t.split(":").map(Number);return 60*i+s},r=n(i.toString()),a=n(s.toString()),o=[];for(let i=r;i<=a;i+=t)o.push((u=i,`${Math.floor(u/60).toString().padStart(2,"0")}:${(u%60).toString().padStart(2,"0")}`));var u;return o.map((t=>({label:"12h"===e?function(t){const[i,s,e]=h(t);return`${i}:${s} ${e}`}(t):t,value:t})))}(this.step,String(this.min??"00:00"),String(this.max??"23:59"),this.timeFormat??"24h").map((({label:t,value:i})=>({label:t,value:i,onClick:()=>{this.value=i,this.showOptions=!1}})))}render(){return s(e,{key:"098ef69d355f6bdf03b4bfbab59956f84d5967b4",class:{"xpl-input-time":!0,[`xpl-input-time--mode-${this.mode}`]:!0,"xpl-input-time--error":!!this.hasErrorState}},s("xpl-input",{key:"e73a120a00a6f110e99e1a7d54bc75c024a2e1dc",pre:s("xpl-icon",{class:"xpl-input-time__clock-icon",icon:"clock",size:24}),post:"12h"===this.timeFormat?this.amPm||"AM":void 0,type:"text",_id:this.inputId,disabled:this.disabled,name:this.name,required:this.required,readonly:this.readonly,placeholder:this.placeholder,max:this.max,min:this.min,onInput:this.handleInput,value:this.formattedValue,onFocusEvent:this.handleFocus,onBlurEvent:this.handleBlur,onClick:this.handleClick}),!this.readonly&&!this.disabled&&s("xpl-dropdown",{key:"454de00fca4a891eaffc71738538425fa9f4e34f",options:this.options,isOpen:this.showOptions,ref:t=>{this.dropdown=t??void 0},class:"xpl-input-time__dropdown"}))}static get watchers(){return{value:[{onValueChange:0}],hasErrorState:[{onHasErrorStateChanged:0}]}}};export{n as xpl_input_time}
@@ -0,0 +1 @@
1
+ import{r as e,c as s,h as a,H as c}from"./p-CJABLO_1.js";const t=class{constructor(a){e(this,a),this.navOpen=s(this,"navOpen",7),this.navControl=!1}onNavToggle(){window.innerWidth<=640&&this.navOpen.emit(!1)}render(){return a(c,{key:"eaae0b2a505bfab9d5d78b22b42b1dc24cb16b38",class:"xpl-nav-item",role:"listitem",onClick:()=>{this.navControl&&this.onNavToggle()}},a("slot",{key:"f69e8bdc7809836f4765c62f82c404fb55e97fb7",name:"link"},a("slot",{key:"044c518562eb68a068ef0a0a2117c69f5486fde5",name:"icon"}),a("slot",{key:"67edf532a3057af42d6b3ec51ccde9cc83d43d0b"})))}};export{t as xpl_nav_item}
@@ -0,0 +1 @@
1
+ import{r as s,h as t,H as i,g as e}from"./p-CJABLO_1.js";let a=!1;const c=class{constructor(i){s(this,i),this.caption="",this.dismissible=!0,this.showIcon=!0,this.timeout=8e3,this.variant="neutral",this.handleAnimationEnd=()=>{this.el?.classList.contains("xpl-toast--dismissed")&&this.el?.remove()},this.getIcon=()=>{switch(this.variant){case"warning":return t("xpl-icon",{size:24,icon:"octagon-warning"});case"success":return t("xpl-icon",{size:24,icon:"circle-check"});default:return t("xpl-icon",{size:24,icon:"message-writing"})}},this.dismiss=()=>{this.el?.classList.add("xpl-toast--dismissed")}}handleDismissableChange(){void 0!==this.dismissable&&(a||(a=!0,console.warn('[xpl-toast] The "dismissable" prop is deprecated (misspelled). Use "dismissible" instead.')))}handleTimeoutChange(){this.scheduleAutoDismiss()}disconnectedCallback(){this.clearAutoDismissTimer()}componentWillLoad(){this.handleDismissableChange()}componentDidLoad(){this.scheduleAutoDismiss()}get isDismissible(){return this.dismissable??this.dismissible}clearAutoDismissTimer(){void 0!==this.dismissTimerId&&(clearTimeout(this.dismissTimerId),this.dismissTimerId=void 0)}scheduleAutoDismiss(){this.clearAutoDismissTimer(),(this.actionSlot?.children?.length??0)<1&&this.timeout>0&&(this.dismissTimerId=setTimeout((()=>{this.dismiss()}),this.timeout))}render(){return t(i,{key:"75b3b05b745ac16a614f752cf83380428b1a4f9a",class:`xpl-toast xpl-toast--${this.variant}`,onAnimationEnd:this.handleAnimationEnd},t("div",{key:"997a55f5deb3016410ea517e89b369368a6c44d7",class:"xpl-toast__left"},this.showIcon&&t("div",{key:"6d60772a0b8f7f9839c59150a3f5f388553e7572",class:`xpl-toast__icon xpl-toast__icon--${this.variant}`},this.getIcon()),t("div",{key:"f813c6fc2abb9f3ab1ca730be25537292f414963",class:"xpl-toast__notification"},t("p",{key:"067e06ef8702892d3c1c513c47c0e03d1e025843",class:"xpl-toast__title"},t("slot",{key:"24c8844bb360cc53f189c816789d4c112dee4bb2",name:"title"})),""!==this.caption&&t("p",{key:"8b1e9e9342187c2b5c6158679f42c98073b9f369",class:"xpl-toast__caption"},this.caption?.substring(0,85)))),t("div",{key:"016cc84afb7161149c321cd73bc40272e59f0e01",class:"xpl-toast__action",ref:s=>{s&&(this.actionSlot=s)}},t("slot",{key:"e3491fe293e3ee7b3b30483a8e7b19d7c584794e",name:"action"})),this.isDismissible&&t("div",{key:"dd7e8aa57d116045287f13b164ae63e603a81f01",class:"xpl-toast__close"},t("xpl-button",{key:"e1af234f5991651a039eba58f21c58e76d3d75eb",variant:"tertiary",size:"sm",iconOnly:!0,icon:"xmark",type:"button","aria-label":"Dismiss notification",onClick:this.dismiss})))}get el(){return e(this)}static get watchers(){return{dismissable:[{handleDismissableChange:0}],timeout:[{handleTimeoutChange:0}]}}};export{c as xpl_toast}
@@ -0,0 +1 @@
1
+ import{r as e,h as r,H as b}from"./p-CJABLO_1.js";const o=class{constructor(r){e(this,r)}render(){return r(b,{key:"0a5e05dbbc4f089b7907464693943ce76e76cbc3",class:"xpl-table-body",role:"rowgroup"},r("slot",{key:"f8781515706b3843fd288f5be832cb9e9b78a971"}))}};export{o as xpl_table_body}
@@ -0,0 +1 @@
1
+ import{r as e,h as o,H as c,g as t}from"./p-CJABLO_1.js";const n=class{constructor(o){e(this,o),this.initialExpanded=!1,this.size="3",this.borderType="none",this.expanded=this.initialExpanded,this.toggleAccordion=e=>{e.stopPropagation(),this.expanded=!this.expanded}}watchInitialExpanded(){this.expanded=this.initialExpanded}async parentCheckboxChange(e){return this.el.querySelectorAll(".xpl-accordion-content .xpl-checkbox:not([disabled])").forEach((o=>{o.checked=e})),null}handleChildCheckboxChange(){const e=this.el.querySelectorAll(".xpl-accordion-content .xpl-checkbox:not([disabled])"),o=Array.from(e).filter((e=>e.checked)).length,c=this.el.querySelector(".xpl-accordion-header xpl-checkbox")||this.el.querySelector(".xpl-accordion-header input");if(c)switch(o){case 0:c.checked=!1,c.indeterminate=!1;break;case e.length:c.checked=!0,c.indeterminate=!1;break;default:c.checked=!1,c.indeterminate=!0}}listenToChangeEvent(){this.handleChildCheckboxChange()}render(){return o(c,{key:"bef7707d1c7aaab18735fdb7b767b54a6cfd9805",class:`xpl-accordion ${{"":"",none:"",bordered:"xpl-accordion--border-bordered"+(this.expanded?"--expanded":""),bottom:"xpl-accordion--border-bottom"+(this.expanded?"--expanded":"")}[this.borderType]}`},o("button",{key:"053fb3d0a2bf253e02d491d26e3a82986352e00e","aria-expanded":this.expanded,"aria-controls":this.contentId,class:"xpl-accordion-toggle-area",onClick:this.toggleAccordion,type:"button"},o("header",{key:"884b58fd83f39537b00bdb932286254447996151",class:`xpl-accordion-header xpl-accordion-header--size-${this.size}`},o("slot",{key:"86ee5ae7cc2c28d5a3d5a273b5597d424e5f677c",name:"heading"},this.header),o("xpl-icon",{key:"e15037ad75519740e11bb4b2bf0ee83950cef3c4",size:16,icon:"chevron-down",class:"xpl-accordion-icon-chevron "+(this.expanded?"xpl-accordion-icon-chevron--rotate":"")})),o("div",{key:"553d3c1e14a5cd870a6f968133d1b3456d2a39dd",class:"xpl-accordion-description"},o("slot",{key:"b114db833bfb9407997b9e2e79e93b83ae9f081a",name:"description"},this.description))),o("section",{key:"92e987377515608b9c9d6ee9de77f32a05644de8",id:this.contentId,role:"region",class:`xpl-accordion-content xpl-accordion-content--${this.expanded?"shown":"hidden"} ${this.expanded?{"":"",none:"",bordered:"xpl-accordion-content--shown-bordered",bottom:"xpl-accordion-content--shown-border-bottom"}[this.borderType]:""}`},o("slot",{key:"0363c341f5554dc9b199c2ddfdc516fc758c46fc",name:"content"})))}get el(){return t(this)}static get watchers(){return{initialExpanded:[{watchInitialExpanded:0}]}}};export{n as xpl_accordion}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as s}from"./p-CJABLO_1.js";const e=class{constructor(i){t(this,i),this.xs=6,this.sm=6,this.md=6,this.lg=6}render(){let t="xpl-grid-item";return t+=` xpl-grid-item-xs-${this.xs}`,t+=` xpl-grid-item-sm-${this.sm}`,t+=` xpl-grid-item-md-${this.md}`,t+=` xpl-grid-item-lg-${this.lg}`,i(s,{key:"6b8fd5050d72b282b742902a04e9fc6c7c86c23e",class:t},i("slot",{key:"90918cb363ee43c81ae79b417e140def5e2dff43"}))}};export{e as xpl_grid_item}
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,H as i,g as r}from"./p-ukZKsqqq.js";import{T as l}from"./p-Dqb1pIRo.js";import{R as n,S as o,c as h,g as a,a as c}from"./p-O7gQjVdS.js";function d(t){const e=t.parentElement;if(!e)return null;const s=Array.from(e.children),i=s.indexOf(t);if(-1===i)return null;for(let t=i+1;t<s.length;t+=1){const e=s[t];if("xpl-table-row"===e.tagName.toLowerCase()&&!e.hasAttribute("hidden"))return e}return null}function u(t){return function(t){const e=t instanceof HTMLElement?t:null;if(!e)return null;const s=e.closest("xpl-table-row");return null!=s?s:null}(t)}function p(t){return("function"==typeof t.composedPath?t.composedPath():[]).find((t=>t instanceof HTMLElement&&"xpl-table-row"===t.tagName.toLowerCase()))??u(t.target)}const b=class{constructor(s){t(this,s),this.rowOrderChange=e(this,"rowOrderChange",3),this.rowSelectionChange=e(this,"rowSelectionChange",3),this.sortChanged=e(this,"sortChanged",3),this.tableSelect=e(this,"tableSelect",7),this.columnWidthsToken="",this.lastEmittedRowSelectionKey="",this.draggedRow=null,this.pendingDragRow=null,this.pointerUpClearPending=null,this.reorderKeyboardTimers=new l,this.onReorderHandleKeydown=t=>{this.handleReorderHandleKeyDown(t)},this.areAllSelected=!1,this.colCount=0,this.hasScrolled=!1,this.keyboardReorderRowId=null,this.reorderLiveMessage="",this.rowData=[],this.rowFooterData=[],this.selected=[],this.selectedRowIds=[],this.sortTypeArray=[],this.isSortable=!1,this.rowReorderable=!1,this.selectedValues=[],this.sortableColumns=[],this.onGridScroll=t=>{this.hasScrolled=t.target.scrollLeft>0},this.selectAll=t=>{const{target:e}=t;if(!(e instanceof HTMLInputElement))return;const{checked:s}=e;this.areAllSelected=s,this.selected=this.selectedValues&&this.selectedValues.length>0?Array.from(this.el.querySelectorAll("tbody td:first-child input")).map((t=>s?t?.value:s)):this.selected.map((()=>s)),this.onSelectionChange()},this.selectOne=(t,e)=>{const{target:s}=t;if(!(s instanceof HTMLInputElement))return;const{checked:i,value:r}=s;this.areAllSelected=!1,this.selected=this.selected.map(((t,s)=>s!==e?t:this.selectedValues&&this.selectedValues.length>0&&i?r:i)),this.onSelectionChange()},this.onSelectionChange=()=>{this.tableSelect.emit({selected:this.selected,areAllSelected:this.areAllSelected})},this.onLegacyScroll=()=>{this.hasScrolled=this.container.scrollLeft>0},this.sortBy=(t,e)=>{const s=(e,s)=>e[t].toLocaleLowerCase()<s[t].toLocaleLowerCase()?-1:e[t].toLocaleLowerCase()>s[t].toLocaleLowerCase()?1:0;switch(e[t]){case"asc":this.rowData.sort(((t,e)=>s(t,e)));break;case"desc":this.rowData.sort(((t,e)=>s(e,t)));break;default:this.rowData=void 0!==this.data?Array.from(this.data):[],this.sortTypeArray[t]=null}this.rowData=Array.from(this.rowData)},this.setData=()=>{this.rowData=void 0!==this.data?Array.from(this.data):[]},this.setFooterData=()=>{this.rowFooterData=void 0!==this.footer?Array.from(this.footer):[]}}watchColumns(){this.sortTypeArray=this.columns?this.columns.map((()=>null)):[]}watchData(){this.setData()}watchFooterData(){this.setFooterData()}watchReorderHandleIcon(){!this.isLegacyMode&&this.rowReorderable&&this.syncInjectedReorderHandleIcons()}watchReorderHandleIconKeyboard(){!this.isLegacyMode&&this.rowReorderable&&this.syncInjectedReorderHandleIcons()}watchRowReorderable(t){this.isLegacyMode||t||(this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null),this.removeManagedReorderCells(),this.draggedRow=null,this.pendingDragRow=null,this.clearPendingDragListeners(),this.reorderLiveMessage="",this.queryBodyRows().forEach((t=>{t.removeAttribute("draggable"),t.querySelector(".xpl-table__row-drag-handle")?.removeAttribute("draggable"),t.classList.remove("xpl-table-row--dragging","xpl-table-row--drag-over")})),this.colCount=0,this.columnWidthsToken="")}watchSelectable(t){this.isLegacyMode||t||(this.selectedRowIds=[],this.lastEmittedRowSelectionKey="",this.colCount=0,this.columnWidthsToken="",this.syncRowSelectedProps())}componentWillLoad(){this.isLegacyMode&&(this.ensureSelectAllValue(),this.areAllSelected=!1,this.setData(),this.setFooterData(),this.selected=new Array(this.rowData.length).fill(!1),this.sortTypeArray=this.columns?this.columns.map((()=>null)):[])}ensureSelectAllValue(){if(void 0!==this.selectAllValue)return;const t=this.el.id?.trim();if(t)return void(this.selectAllValue=`${t}-select-all`);const e=this.el.getAttribute("data-select-all-value");e?this.selectAllValue=e:(b.selectAllSeq+=1,this.selectAllValue=`select-all-${b.selectAllSeq}`,this.el.setAttribute("data-select-all-value",this.selectAllValue))}componentDidLoad(){this.isLegacyMode||this.syncCompositionalLayout()}componentDidUpdate(){this.isLegacyMode||this.syncCompositionalLayout()}disconnectedCallback(){this.clearPendingDragListeners(),this.detachReorderHandleKeydownListeners(),this.reorderKeyboardTimers.dispose(),void 0!==this.reorderAnnounceRaf&&(cancelAnimationFrame(this.reorderAnnounceRaf),this.reorderAnnounceRaf=void 0)}handleHeaderCellColumnWidthsChange(t){if(this.isLegacyMode)return;const e=t.target;e instanceof Node&&this.el.contains(e)&&this.updateColumnWidths()}handleCompositionalCheckboxChange(t){if(this.isLegacyMode||!this.selectable)return;if(!this.isEventFromThisTable(t.target))return;const e=t.composedPath?.()??[];let s=(e.length>0?e:[t.target].filter((t=>null!=t))).find((t=>t instanceof HTMLElement&&"xpl-checkbox"===t.tagName.toLowerCase()));if(!s&&t.target&&"function"==typeof t.target.closest&&(s=t.target.closest("xpl-checkbox")??void 0),!s||!this.el.contains(s))return;const i=s.closest("xpl-table-row");if(!i||!this.isDirectChildBodyRow(i))return;const r=s.closest("xpl-table-cell");if(!r)return;const l=this.getSelectionColumnIndex();if(null===l)return;if(b.getBodyRowCells(i).indexOf(r)!==l)return;t.stopPropagation();const n=b.getRowIdForRow(i);if(!n||i.disabled)return;const o=s.querySelector('input[type="checkbox"]');if(!o)return;const{checked:h}=o;h?this.selectedRowIds.includes(n)||(this.selectedRowIds=[...this.selectedRowIds,n]):this.selectedRowIds=this.selectedRowIds.filter((t=>t!==n)),this.applyHeaderCheckboxState(),this.syncRowSelectedProps(),this.emitCompositionalSelection()}handleCompositionalHeaderCheckboxChange(t){if(this.isLegacyMode||!this.selectable)return;if(!this.isEventFromThisTable(t.target))return;const e=t.composedPath?.()??[];let s=(e.length>0?e:[t.target].filter((t=>null!=t))).find((t=>t instanceof HTMLElement&&"xpl-table-header-cell"===t.tagName.toLowerCase()&&"checkbox"===t.getAttribute("type")));if(!s&&t.target&&"function"==typeof t.target.closest){const e=t.target.closest('xpl-table-header-cell[type="checkbox"]');e instanceof HTMLElement&&(s=e)}if(!s||!this.el.contains(s))return;if(!this.isCellInOurCompositionalHeader(s))return;if(!this.getCompositionalHeaderCells().includes(s))return;const i=!!t.detail,r=this.querySelectableBodyRows().map((t=>b.getRowIdForRow(t))).filter((t=>!!t));this.selectedRowIds=i?[...r]:[],this.applyBodyCheckboxStates(),this.syncRowSelectedProps(),this.emitCompositionalSelection()}handlePointerDownExitKeyboardReorder(t){if(this.isLegacyMode||!this.rowReorderable||null===this.keyboardReorderRowId)return;const e=t.target;if(!(e instanceof Node&&this.el.contains(e)))return;const s=e instanceof Element?e.closest("xpl-table-row"):null;s&&this.isDirectChildBodyRow(s)&&(this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null))}handleReorderHandleKeyDown(t){if(this.isLegacyMode||!this.rowReorderable)return;const e="function"==typeof t.composedPath?t.composedPath():[];let s=(e.length>0?e:t.target?[t.target]:[]).find((t=>t instanceof HTMLElement&&t.classList.contains("xpl-table__row-drag-handle")));if(!s&&t.target instanceof HTMLElement&&t.target.classList.contains("xpl-table__row-drag-handle")&&(s=t.target),!s||!this.el.contains(s))return;const i=s.closest("xpl-table-row");if(!i||!this.isDirectChildBodyRow(i))return;const r=b.getRowIdForRow(i)??"";if(!r)return;const l=this.keyboardReorderRowId===r,n="Escape"===t.key||"Esc"===t.key||"Escape"===t.code||27===t.keyCode;i.disabled?n&&l&&(t.preventDefault(),this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null)):n?l&&(t.preventDefault(),this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null)):l?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.performKeyboardRowReorder(r,"ArrowUp"===t.key?"up":"down")):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.keyboardReorderRowId=r,this.syncReorderHandleKeyboardA11y(r))}handleRowReorderPointerDown(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=function(t){return("function"==typeof t.composedPath?t.composedPath():[]).find((t=>t instanceof HTMLElement&&t.classList.contains("xpl-table__row-drag-handle")))??null}(t);if(!e)return;if(e.closest("xpl-table")!==this.el)return;const s=u(e);if(!s||s.disabled)return;const i=this.getDirectChildTableSection("xpl-table-body");if(!i||s.parentElement!==i)return;this.clearPendingDragListeners(),this.pendingDragRow=s;const r=()=>{this.clearPendingDragListeners(),this.pendingDragRow=null};document.addEventListener("pointerup",r,!0),document.addEventListener("pointercancel",r,!0),this.pointerUpClearPending=()=>{document.removeEventListener("pointerup",r,!0),document.removeEventListener("pointercancel",r,!0)}}handleRowReorderDragStart(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);if(!e)return;if(e.closest("xpl-table")!==this.el)return;const s=this.getDirectChildTableSection("xpl-table-body");s&&e.parentElement===s&&(e.disabled||this.pendingDragRow!==e?t.preventDefault():(this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null),this.clearPendingDragListeners(),this.pendingDragRow=null,this.draggedRow=e,t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",b.getRowIdForRow(e)??"")),e.classList.add("xpl-table-row--dragging")))}handleRowReorderDragEnd(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);e&&e.closest("xpl-table")===this.el&&(e.classList.remove("xpl-table-row--dragging"),this.clearReorderDragOverClasses(),this.draggedRow=null)}handleRowReorderDragOver(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);if(!e||e.closest("xpl-table")!==this.el)return;const s=this.getDirectChildTableSection("xpl-table-body");s&&e.parentElement===s&&!e.disabled&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="move"))}handleRowReorderDragEnter(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);if(!e||e.closest("xpl-table")!==this.el)return;const s=this.getDirectChildTableSection("xpl-table-body");s&&e.parentElement===s&&!e.disabled&&(t.preventDefault(),e.classList.add("xpl-table-row--drag-over"))}handleRowReorderDragLeave(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);if(!e||e.closest("xpl-table")!==this.el)return;const s=t.relatedTarget;s&&e.contains(s)||e.classList.remove("xpl-table-row--drag-over")}handleRowReorderDrop(t){if(this.isLegacyMode||!this.rowReorderable)return;t.preventDefault();const e=p(t);if(!e||e.closest("xpl-table")!==this.el)return;const s=this.getDirectChildTableSection("xpl-table-body");if(!s||e.parentElement!==s||e.disabled)return;const i=this.draggedRow;if(!i||i.disabled)return this.draggedRow=null,void this.clearReorderDragOverClasses();if(i===e)return void this.clearReorderDragOverClasses();const r=this.getVisibleBodyRowsForReorder(),l=r.indexOf(i),n=r.indexOf(e);if(-1===l||-1===n)return void this.clearReorderDragOverClasses();const o=l>n?"up":"down",h=b.getRowIdForRow(i)??"";!function(t,e,s){if(e===s||e.parentElement!==t)return;if(s.parentElement!==t)return;const i=Array.from(t.children).filter((t=>"xpl-table-row"===t.tagName.toLowerCase()&&!t.hasAttribute("hidden"))),r=i.indexOf(e),l=i.indexOf(s);if(-1!==r&&-1!==l&&r!==l)if(r<l){const i=d(s);t.insertBefore(e,i||null)}else t.insertBefore(e,s)}(s,i,e);const a=this.getVisibleBodyRowsForReorder().map((t=>b.getRowIdForRow(t)??""));this.rowOrderChange.emit({rowId:h,direction:o,orderedRowIds:a,fromIndex:l,toIndex:n}),this.announceRowReorder(h,a),this.clearReorderDragOverClasses(),this.selectable&&(this.applyBodyCheckboxStates(),this.applyHeaderCheckboxState(),this.syncRowSelectedProps()),this.updateColumnWidths()}get isLegacyMode(){return void 0!==this.columns||void 0!==this.data||void 0!==this.footer}ensureTableInstanceId(){this.tableInstanceId||(this.tableInstanceId="undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2))}generateRowId(){return this.ensureTableInstanceId(),"undefined"!=typeof crypto&&crypto.randomUUID?`${this.tableInstanceId}-${crypto.randomUUID()}`:`${this.tableInstanceId}-${Math.random().toString(36).slice(2)}`}syncCompositionalLayout(){this.isLegacyMode||(this.rowReorderable?this.syncReorderColumn():this.removeManagedReorderCells(),this.selectable&&(this.ensureTableInstanceId(),this.pruneStaleSelectedRowIds(),this.ensureBodyRowIds(),this.applyBodyCheckboxStates(),this.applyHeaderCheckboxState(),this.syncRowSelectedProps()),this.rowReorderable&&this.selectable&&this.normalizeManagedColumnsOrder(),this.updateColumnWidths())}getDirectChildTableSection(t){return Array.from(this.el.children).find((e=>e.tagName.toLowerCase()===t))??null}isDirectChildBodyRow(t){const e=this.getDirectChildTableSection("xpl-table-body");return null!==e&&t.parentElement===e}isCellInOurCompositionalHeader(t){const e=t.closest("xpl-table-header");return null!==e&&e.parentElement===this.el}getSelectionColumnIndex(){const t=this.getCompositionalHeaderCells().findIndex((t=>"checkbox"===t.getAttribute("type")));return t>=0?t:null}static getBodyRowCells(t){return Array.from(t.children).filter((t=>"xpl-table-cell"===t.tagName.toLowerCase()))}queryBodyRows(){const t=this.getDirectChildTableSection("xpl-table-body");return t?Array.from(t.children).filter((t=>"xpl-table-row"===t.tagName.toLowerCase())):[]}querySelectableBodyRows(){return this.queryBodyRows().filter((t=>!t.disabled))}static getRowIdForRow(t){const e=t.getAttribute("row-id")?.trim();return e||null}ensureBodyRowIds(){this.queryBodyRows().forEach((t=>{b.getRowIdForRow(t)||t.setAttribute("row-id",this.generateRowId())}))}removeManagedReorderCells(){this.el.querySelectorAll(`[${n}]`).forEach((t=>{t instanceof Element&&t.closest("xpl-table")===this.el&&t.parentElement?.removeChild(t)}))}getSelectionSlotCellForReorderOrder(t){const e=this.getSelectionColumnIndex();if(null===e)return null;const s=Array.from(t.children)[e];if(!s)return null;const i=s.tagName.toLowerCase();return"xpl-table-header-cell"===i?"checkbox"===s.getAttribute("type")?s:null:"xpl-table-cell"===i?s.hasAttribute(o)||s.querySelector("xpl-checkbox")?s:null:"xpl-table-footer-cell"===i?s:null}normalizeManagedColumnsOrder(){const t=t=>{const e=t.querySelector(`:scope > [${n}]`),s=this.getSelectionSlotCellForReorderOrder(t);if(!e||!s)return;const i=Array.from(t.children);i.indexOf(e)>i.indexOf(s)&&t.insertBefore(e,s)},e=Array.from(this.el.children).find((t=>"xpl-table-header"===t.tagName.toLowerCase()))??null;if(e){const s=Array.from(e.children).find((t=>"xpl-table-row"===t.tagName.toLowerCase()));t(s??e)}this.queryBodyRows().forEach((e=>t(e)));const s=this.getDirectChildTableSection("xpl-table-footer");s&&Array.from(s.children).filter((t=>"xpl-table-row"===t.tagName.toLowerCase())).forEach((e=>t(e)))}syncReorderColumn(){this.rowReorderable&&!this.isLegacyMode&&(this.ensureBodyRowIds(),this.ensureHeaderReorderCell(),this.ensureBodyReorderCells(),this.ensureFooterReorderCells(),this.applyReorderRowDraggableState())}ensureHeaderReorderCell(){const t=Array.from(this.el.children).find((t=>"xpl-table-header"===t.tagName.toLowerCase()))??null;if(!t)return;const e=Array.from(t.children).find((t=>"xpl-table-row"===t.tagName.toLowerCase()))??t;if(Array.from(e.children).some((t=>"xpl-table-header-cell"===t.tagName.toLowerCase()&&t.hasAttribute(n))))return;const s=document.createElement("xpl-table-header-cell");s.setAttribute(n,""),s.setAttribute("type","empty"),s.setAttribute("width","48"),s.setAttribute("align","center"),e.insertBefore(s,e.firstChild)}ensureBodyReorderCells(){this.queryBodyRows().forEach((t=>{const e=Array.from(t.children).filter((t=>"xpl-table-cell"===t.tagName.toLowerCase()&&t.hasAttribute(n)));if(e.length>1)for(let t=1;t<e.length;t+=1)e[t].remove();let s=e[0];if(s)s.setAttribute("align","center");else{const e=document.createElement("xpl-table-cell");e.setAttribute(n,""),e.setAttribute("width","48"),e.setAttribute("align","center");const i=document.createElement("button");i.type="button",i.className="xpl-table__row-drag-handle",i.setAttribute("aria-label","Reorder row"),i.setAttribute("aria-pressed","false");const r=this.getResolvedIconForRow(b.getRowIdForRow(t)??"");if(r){const t=document.createElement("xpl-icon");t.setAttribute("icon",r),t.setAttribute("size","16"),i.appendChild(t)}e.appendChild(i),t.insertBefore(e,t.firstChild),s=e}const i=s.querySelector(".xpl-table__row-drag-handle");i&&(i.disabled=t.disabled)})),this.syncInjectedReorderHandleIcons(),this.attachReorderHandleKeydownListeners()}getResolvedIconForRow(t){return null!==this.keyboardReorderRowId&&""!==t&&t===this.keyboardReorderRowId?""===this.reorderHandleIconKeyboard?null:this.reorderHandleIconKeyboard??"caret-expand-y":""===this.reorderHandleIcon?null:this.reorderHandleIcon??"grip-dots-vertical"}syncInjectedReorderHandleIcons(){this.queryBodyRows().forEach((t=>{const e=t.querySelector(".xpl-table__row-drag-handle");if(!e)return;const s=b.getRowIdForRow(t)??"",i=this.getResolvedIconForRow(s);if(e.querySelectorAll("xpl-icon").forEach((t=>t.remove())),i){const t=document.createElement("xpl-icon");t.setAttribute("icon",i),t.setAttribute("size","16"),e.appendChild(t)}}))}syncReorderHandleKeyboardA11y(t){!this.isLegacyMode&&this.rowReorderable&&(this.queryBodyRows().forEach((e=>{const s=e.querySelector(".xpl-table__row-drag-handle");if(!s)return;const i=b.getRowIdForRow(e)??"",r=null!==t&&i===t;s.classList.toggle("xpl-table__row-drag-handle--keyboard-mode",r),s.setAttribute("aria-pressed",r?"true":"false"),s.setAttribute("aria-label",r?"Press arrow up or down to reorder, Escape to exit":"Press Enter or Space to activate keyboard reorder mode, or drag to reorder")})),this.syncInjectedReorderHandleIcons())}attachReorderHandleKeydownListeners(){!this.isLegacyMode&&this.rowReorderable&&this.queryBodyRows().forEach((t=>{const e=t.querySelector(".xpl-table__row-drag-handle");e&&"true"!==e.dataset.xplReorderKbdBound&&(e.dataset.xplReorderKbdBound="true",e.addEventListener("keydown",this.onReorderHandleKeydown))}))}detachReorderHandleKeydownListeners(){this.el&&this.el.querySelectorAll('.xpl-table__row-drag-handle[data-xpl-reorder-kbd-bound="true"]').forEach((t=>{t.removeEventListener("keydown",this.onReorderHandleKeydown),delete t.dataset.xplReorderKbdBound}))}performKeyboardRowReorder(t,e){const s=this.getDirectChildTableSection("xpl-table-body");if(!s)return!1;const i=this.getVisibleBodyRowsForReorder(),r=i.findIndex((e=>b.getRowIdForRow(e)===t));if(-1===r)return!1;const l="up"===e?r-1:r+1;if(l<0||l>=i.length)return!1;const n=r,o=i[r],h=i[l];if("up"===e)s.insertBefore(o,h);else{const t=d(h);t?s.insertBefore(o,t):s.appendChild(o)}const a=this.getVisibleBodyRowsForReorder().map((t=>b.getRowIdForRow(t)??"")),c=a.indexOf(t);return this.rowOrderChange.emit({rowId:t,direction:e,orderedRowIds:a,fromIndex:n,toIndex:c}),this.announceRowReorder(t,a),this.clearReorderDragOverClasses(),this.selectable&&(this.applyBodyCheckboxStates(),this.applyHeaderCheckboxState(),this.syncRowSelectedProps()),this.updateColumnWidths(),this.reorderKeyboardTimers.requestAnimationFrame((()=>{if(!this.el.isConnected)return;const e=this.getVisibleBodyRowsForReorder().find((e=>b.getRowIdForRow(e)===t)),s=e?.querySelector(".xpl-table__row-drag-handle");s?.focus()})),!0}ensureFooterReorderCells(){const t=this.getDirectChildTableSection("xpl-table-footer");t&&Array.from(t.children).filter((t=>"xpl-table-row"===t.tagName.toLowerCase())).forEach((t=>{if(Array.from(t.children).some((t=>"xpl-table-footer-cell"===t.tagName.toLowerCase()&&t.hasAttribute(n))))return;const e=document.createElement("xpl-table-footer-cell");e.setAttribute(n,""),e.setAttribute("width","48"),e.setAttribute("align","center"),t.insertBefore(e,t.firstChild)}))}static supportsSubgridBodyRow(){return"undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("grid-template-columns","subgrid")}applyReorderRowDraggableState(){const t=b.supportsSubgridBodyRow();this.queryBodyRows().forEach((e=>{const s=e.querySelector(".xpl-table__row-drag-handle");s?.removeAttribute("draggable"),e.removeAttribute("draggable"),this.rowReorderable&&!e.disabled&&s&&(t?e.setAttribute("draggable","true"):s.setAttribute("draggable","true"))}))}getVisibleBodyRowsForReorder(){return this.queryBodyRows().filter((t=>!t.hasAttribute("hidden")))}clearReorderDragOverClasses(){this.queryBodyRows().forEach((t=>t.classList.remove("xpl-table-row--drag-over")))}clearPendingDragListeners(){this.pointerUpClearPending&&(this.pointerUpClearPending(),this.pointerUpClearPending=null)}announceRowReorder(t,e){if(!this.rowReorderable||!t)return;const s=e.indexOf(t);s<0||(this.reorderLiveMessage="",void 0!==this.reorderAnnounceRaf&&cancelAnimationFrame(this.reorderAnnounceRaf),this.reorderAnnounceRaf=requestAnimationFrame((()=>{this.reorderAnnounceRaf=void 0,this.el.isConnected&&(this.reorderLiveMessage=`Row ${t}, now position ${s+1} of ${e.length}`)})))}pruneStaleSelectedRowIds(){const t=new Set(this.queryBodyRows().map((t=>b.getRowIdForRow(t))).filter((t=>!!t))),e=this.selectedRowIds.filter((e=>t.has(e)));e.length!==this.selectedRowIds.length&&(this.selectedRowIds=e,this.applyBodyCheckboxStates(),this.applyHeaderCheckboxState(),this.syncRowSelectedProps(),this.emitCompositionalSelection())}static getBodyRowCheckboxAriaLabel(t,e){const s=b.getBodyRowCells(t),i=s.find(((t,s)=>(null===e||s!==e)&&!t.hasAttribute(n)))??s[0];if(!i)return"Select row";const r=i.textContent?.replace(/\s+/g," ").trim()??"";return r?`Select row, ${r.length>100?`${r.slice(0,100)}…`:r}`:"Select row"}applyBodyCheckboxStates(){const t=this.getSelectionColumnIndex();null!==t&&this.queryBodyRows().forEach((e=>{const s=b.getRowIdForRow(e),i=b.getBodyRowCells(e)[t],r=i?.querySelector("xpl-checkbox");r&&s&&(r.checked=this.selectedRowIds.includes(s),r.disabled=e.disabled,r.value=s,r.setAttribute("aria-label",b.getBodyRowCheckboxAriaLabel(e,t)))}))}getHeaderCheckboxCell(){const t=this.getSelectionColumnIndex();if(null===t)return null;const e=this.getCompositionalHeaderCells()[t];return e&&"checkbox"===e.getAttribute("type")?e:null}applyHeaderCheckboxState(){const t=this.getHeaderCheckboxCell();if(!t)return;const e=this.querySelectableBodyRows().map((t=>b.getRowIdForRow(t))).filter((t=>!!t)),s=e.filter((t=>this.selectedRowIds.includes(t))).length,i=e.length>0&&s===e.length,r=s>0&&!i;t.checked=i,t.indeterminate=r}syncRowSelectedProps(){this.queryBodyRows().forEach((t=>{const e=b.getRowIdForRow(t),s=!!e&&this.selectedRowIds.includes(e);t.selected=s}))}emitCompositionalSelection(){const t=this.selectedRowIds,e=t.join("");e!==this.lastEmittedRowSelectionKey&&(this.lastEmittedRowSelectionKey=e,this.rowSelectionChange.emit({selectedRowIds:[...t]}))}isEventFromThisTable(t){if(null==t||"object"!=typeof t)return!1;const e="closest"in t&&"function"==typeof t.closest?t:"parentElement"in t?t.parentElement:null;return!!e&&e.closest("xpl-table")===this.el}static sortKeyFromHeaderCell(t,e){const s=(t.sortKey??t.label??"").trim();return s.length>0?s.replace(/ /g,"-").toLowerCase():`column-${e}`}handleCompositionalHeaderSort(t){if(this.isLegacyMode)return;if(!this.isEventFromThisTable(t.target))return;t.stopPropagation();const e=t.target,s=e.closest("xpl-table-header xpl-table-row")??e.closest("xpl-table-row");if(!s||!this.el.contains(s))return;const i=Array.from(s.querySelectorAll("xpl-table-header-cell")),{columnIndex:r}=t.detail,l=i[r];if(!l?.sortable)return;const n=h(l.sortDirection);i.forEach(((t,e)=>{t.sortable&&(t.sortDirection=e===r?n:null)}));const o={};i.forEach(((t,e)=>{const s=t;s.sortable&&(o[b.sortKeyFromHeaderCell(s,e)]=s.sortDirection??null)}));const a=i.map((t=>t.sortable?t.sortDirection??null:null)),c=b.sortKeyFromHeaderCell(i[r],r),d={...o,colNum:r,colName:c,sortTypeArr:a};this.sortChanged.emit(d)}legacySortStatePayload(){const t={};return this.columns?.length?(this.columns.forEach(((e,s)=>{const i=e.replace(/ /g,"-").toLowerCase();t[i]=this.sortTypeArray[s]??null})),t):t}legacySortChangedDetail(t){return{...this.legacySortStatePayload(),colNum:t,colName:(this.columns?.[t]??"").replace(/ /g,"-").toLowerCase(),sortTypeArr:[...this.sortTypeArray]}}getCompositionalHeaderCells(){const t=Array.from(this.el.children).find((t=>"xpl-table-header"===t.tagName.toLowerCase()))??null;if(!t)return[];const e=Array.from(t.children).find((t=>"xpl-table-row"===t.tagName.toLowerCase()));return Array.from((e??t).children).filter((t=>"xpl-table-header-cell"===t.tagName.toLowerCase()))}updateColumnWidths(){const t=this.getCompositionalHeaderCells(),e=t.map((t=>a(t))).join(" "),s=t.length;s===this.colCount&&this.colCount>0&&this.columnWidthsToken===e||(this.el.style.setProperty("--column-widths",e),this.colCount=s,this.columnWidthsToken=e)}handleSort(t,e,s){t.preventDefault(),t.stopPropagation(),e&&(this.sortTypeArray=this.sortTypeArray.map(((t,e)=>{if(e!==s)return null;switch(t){case"asc":return"desc";case"desc":return null;default:return"asc"}})),this.sortChanged.emit(this.legacySortChangedDetail(s)).defaultPrevented||this.sortBy(s,this.sortTypeArray))}renderLegacy(){return!this.columns||this.sortTypeArray&&this.sortTypeArray.length===this.columns.length||(this.sortTypeArray=this.columns.map((()=>null))),s(i,null,s("div",{class:"xpl-table-container",onScroll:this.onLegacyScroll,ref:t=>{t&&(this.container=t)}},s("table",{class:{"xpl-table":!0,"xpl-table--legacy":!0,"xpl-table--striped":!!this.striped,"xpl-table--freeze":!!this.freeze,"xpl-table--has-scrolled":this.hasScrolled}},this.columns&&s("thead",null,this.columns.map(((t,e)=>{const i=c(this.sortTypeArray?.[e]??null),r=!(!this.isSortable||!this.sortableColumns?.[e]);return s("th",null,s("label",{onClick:t=>this.handleSort(t,r,e),class:r?"cursor-pointer":""},this.multiselect&&0===e&&s("input",{checked:this.areAllSelected,id:"__xpl-table-th",indeterminate:!this.areAllSelected&&this.selected.some((t=>t)),onClick:t=>{t.stopPropagation(),this.selectAll(t)},type:"checkbox",value:this.selectAllValue}),t,r&&!!this.sortTypeArray[e]&&s("xpl-icon",{icon:i,size:16})))}))),s("tbody",null,this.rowData.map(((t,e)=>s("tr",{class:this.selected&&this.selected[e]?"xpl-table-row-selected":""},t.map(((t,i)=>s("td",null,this.multiselect&&0===i?s("label",{htmlFor:`__xpl-table-row-${e}`},s("input",{id:`__xpl-table-row-${e}`,checked:!!this.selected[e],type:"checkbox",onChange:t=>this.selectOne(t,e),value:this.selectedValues&&this.selectedValues.length>0?this.selectedValues[e]:`xpl-table-checkbox-${e}`}),s("div",{innerHTML:t})):s("div",{innerHTML:t})))))))),this.rowFooterData?.length>0&&s("tfoot",null,this.rowFooterData.map((t=>s("tr",null,t.map((t=>s("td",null,s("div",{innerHTML:t})))))))))))}renderCompositional(){const t=this.selectedRowIds.length;return s(i,{role:"grid","aria-label":this.label,"aria-colcount":this.colCount>0?this.colCount:void 0,class:{"xpl-table":!0,"xpl-table--striped":!!this.striped,"xpl-table--freeze":!!this.freeze,"xpl-table--has-scrolled":this.hasScrolled,"xpl-table--selectable":!!this.selectable,"xpl-table--selection-active":!!this.selectable&&this.selectedRowIds.length>0,"xpl-table--row-reorderable":!!this.rowReorderable},onScroll:this.onGridScroll},this.rowReorderable&&s("div",{class:"xpl-table__reorder-live","aria-live":"assertive","aria-atomic":"true"},this.reorderLiveMessage),this.selectable&&s("div",{class:{"xpl-toolbar":!0,hidden:0===t,"xpl-table__toolbar":!0}},s("div",{class:"toolbar"},s("p",{class:"selected-item-count"},t," Selected"),s("div",{class:"actions"},s("slot",{name:"toolbar-actions-left"}),s("slot",{name:"toolbar-actions-right"})))),s("slot",null))}render(){return this.isLegacyMode?this.renderLegacy():this.renderCompositional()}get el(){return r(this)}static get watchers(){return{columns:[{watchColumns:0}],data:[{watchData:0}],footer:[{watchFooterData:0}],reorderHandleIcon:[{watchReorderHandleIcon:0}],reorderHandleIconKeyboard:[{watchReorderHandleIconKeyboard:0}],rowReorderable:[{watchRowReorderable:0}],selectable:[{watchSelectable:0}]}}};b.selectAllSeq=0;export{b as xpl_table}
1
+ import{r as t,c as e,h as s,H as i,g as r}from"./p-CJABLO_1.js";import{T as l}from"./p-Dqb1pIRo.js";import{R as n,S as o,c as h,g as a,a as c}from"./p-O7gQjVdS.js";function d(t){const e=t.parentElement;if(!e)return null;const s=Array.from(e.children),i=s.indexOf(t);if(-1===i)return null;for(let t=i+1;t<s.length;t+=1){const e=s[t];if("xpl-table-row"===e.tagName.toLowerCase()&&!e.hasAttribute("hidden"))return e}return null}function u(t){return function(t){const e=t instanceof HTMLElement?t:null;if(!e)return null;const s=e.closest("xpl-table-row");return null!=s?s:null}(t)}function p(t){return("function"==typeof t.composedPath?t.composedPath():[]).find((t=>t instanceof HTMLElement&&"xpl-table-row"===t.tagName.toLowerCase()))??u(t.target)}const b=class{constructor(s){t(this,s),this.rowOrderChange=e(this,"rowOrderChange",3),this.rowSelectionChange=e(this,"rowSelectionChange",3),this.sortChanged=e(this,"sortChanged",3),this.tableSelect=e(this,"tableSelect",7),this.columnWidthsToken="",this.lastEmittedRowSelectionKey="",this.draggedRow=null,this.pendingDragRow=null,this.pointerUpClearPending=null,this.reorderKeyboardTimers=new l,this.onReorderHandleKeydown=t=>{this.handleReorderHandleKeyDown(t)},this.areAllSelected=!1,this.colCount=0,this.hasScrolled=!1,this.keyboardReorderRowId=null,this.reorderLiveMessage="",this.rowData=[],this.rowFooterData=[],this.selected=[],this.selectedRowIds=[],this.sortTypeArray=[],this.isSortable=!1,this.rowReorderable=!1,this.selectedValues=[],this.sortableColumns=[],this.onGridScroll=t=>{this.hasScrolled=t.target.scrollLeft>0},this.selectAll=t=>{const{target:e}=t;if(!(e instanceof HTMLInputElement))return;const{checked:s}=e;this.areAllSelected=s,this.selected=this.selectedValues&&this.selectedValues.length>0?Array.from(this.el.querySelectorAll("tbody td:first-child input")).map((t=>s?t?.value:s)):this.selected.map((()=>s)),this.onSelectionChange()},this.selectOne=(t,e)=>{const{target:s}=t;if(!(s instanceof HTMLInputElement))return;const{checked:i,value:r}=s;this.areAllSelected=!1,this.selected=this.selected.map(((t,s)=>s!==e?t:this.selectedValues&&this.selectedValues.length>0&&i?r:i)),this.onSelectionChange()},this.onSelectionChange=()=>{this.tableSelect.emit({selected:this.selected,areAllSelected:this.areAllSelected})},this.onLegacyScroll=()=>{this.hasScrolled=this.container.scrollLeft>0},this.sortBy=(t,e)=>{const s=(e,s)=>e[t].toLocaleLowerCase()<s[t].toLocaleLowerCase()?-1:e[t].toLocaleLowerCase()>s[t].toLocaleLowerCase()?1:0;switch(e[t]){case"asc":this.rowData.sort(((t,e)=>s(t,e)));break;case"desc":this.rowData.sort(((t,e)=>s(e,t)));break;default:this.rowData=void 0!==this.data?Array.from(this.data):[],this.sortTypeArray[t]=null}this.rowData=Array.from(this.rowData)},this.setData=()=>{this.rowData=void 0!==this.data?Array.from(this.data):[]},this.setFooterData=()=>{this.rowFooterData=void 0!==this.footer?Array.from(this.footer):[]}}watchColumns(){this.sortTypeArray=this.columns?this.columns.map((()=>null)):[]}watchData(){this.setData()}watchFooterData(){this.setFooterData()}watchReorderHandleIcon(){!this.isLegacyMode&&this.rowReorderable&&this.syncInjectedReorderHandleIcons()}watchReorderHandleIconKeyboard(){!this.isLegacyMode&&this.rowReorderable&&this.syncInjectedReorderHandleIcons()}watchRowReorderable(t){this.isLegacyMode||t||(this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null),this.removeManagedReorderCells(),this.draggedRow=null,this.pendingDragRow=null,this.clearPendingDragListeners(),this.reorderLiveMessage="",this.queryBodyRows().forEach((t=>{t.removeAttribute("draggable"),t.querySelector(".xpl-table__row-drag-handle")?.removeAttribute("draggable"),t.classList.remove("xpl-table-row--dragging","xpl-table-row--drag-over")})),this.colCount=0,this.columnWidthsToken="")}watchSelectable(t){this.isLegacyMode||t||(this.selectedRowIds=[],this.lastEmittedRowSelectionKey="",this.colCount=0,this.columnWidthsToken="",this.syncRowSelectedProps())}componentWillLoad(){this.isLegacyMode&&(this.ensureSelectAllValue(),this.areAllSelected=!1,this.setData(),this.setFooterData(),this.selected=new Array(this.rowData.length).fill(!1),this.sortTypeArray=this.columns?this.columns.map((()=>null)):[])}ensureSelectAllValue(){if(void 0!==this.selectAllValue)return;const t=this.el.id?.trim();if(t)return void(this.selectAllValue=`${t}-select-all`);const e=this.el.getAttribute("data-select-all-value");e?this.selectAllValue=e:(b.selectAllSeq+=1,this.selectAllValue=`select-all-${b.selectAllSeq}`,this.el.setAttribute("data-select-all-value",this.selectAllValue))}componentDidLoad(){this.isLegacyMode||this.syncCompositionalLayout()}componentDidUpdate(){this.isLegacyMode||this.syncCompositionalLayout()}disconnectedCallback(){this.clearPendingDragListeners(),this.detachReorderHandleKeydownListeners(),this.reorderKeyboardTimers.dispose(),void 0!==this.reorderAnnounceRaf&&(cancelAnimationFrame(this.reorderAnnounceRaf),this.reorderAnnounceRaf=void 0)}handleHeaderCellColumnWidthsChange(t){if(this.isLegacyMode)return;const e=t.target;e instanceof Node&&this.el.contains(e)&&this.updateColumnWidths()}handleCompositionalCheckboxChange(t){if(this.isLegacyMode||!this.selectable)return;if(!this.isEventFromThisTable(t.target))return;const e=t.composedPath?.()??[];let s=(e.length>0?e:[t.target].filter((t=>null!=t))).find((t=>t instanceof HTMLElement&&"xpl-checkbox"===t.tagName.toLowerCase()));if(!s&&t.target&&"function"==typeof t.target.closest&&(s=t.target.closest("xpl-checkbox")??void 0),!s||!this.el.contains(s))return;const i=s.closest("xpl-table-row");if(!i||!this.isDirectChildBodyRow(i))return;const r=s.closest("xpl-table-cell");if(!r)return;const l=this.getSelectionColumnIndex();if(null===l)return;if(b.getBodyRowCells(i).indexOf(r)!==l)return;t.stopPropagation();const n=b.getRowIdForRow(i);if(!n||i.disabled)return;const o=s.querySelector('input[type="checkbox"]');if(!o)return;const{checked:h}=o;h?this.selectedRowIds.includes(n)||(this.selectedRowIds=[...this.selectedRowIds,n]):this.selectedRowIds=this.selectedRowIds.filter((t=>t!==n)),this.applyHeaderCheckboxState(),this.syncRowSelectedProps(),this.emitCompositionalSelection()}handleCompositionalHeaderCheckboxChange(t){if(this.isLegacyMode||!this.selectable)return;if(!this.isEventFromThisTable(t.target))return;const e=t.composedPath?.()??[];let s=(e.length>0?e:[t.target].filter((t=>null!=t))).find((t=>t instanceof HTMLElement&&"xpl-table-header-cell"===t.tagName.toLowerCase()&&"checkbox"===t.getAttribute("type")));if(!s&&t.target&&"function"==typeof t.target.closest){const e=t.target.closest('xpl-table-header-cell[type="checkbox"]');e instanceof HTMLElement&&(s=e)}if(!s||!this.el.contains(s))return;if(!this.isCellInOurCompositionalHeader(s))return;if(!this.getCompositionalHeaderCells().includes(s))return;const i=!!t.detail,r=this.querySelectableBodyRows().map((t=>b.getRowIdForRow(t))).filter((t=>!!t));this.selectedRowIds=i?[...r]:[],this.applyBodyCheckboxStates(),this.syncRowSelectedProps(),this.emitCompositionalSelection()}handlePointerDownExitKeyboardReorder(t){if(this.isLegacyMode||!this.rowReorderable||null===this.keyboardReorderRowId)return;const e=t.target;if(!(e instanceof Node&&this.el.contains(e)))return;const s=e instanceof Element?e.closest("xpl-table-row"):null;s&&this.isDirectChildBodyRow(s)&&(this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null))}handleReorderHandleKeyDown(t){if(this.isLegacyMode||!this.rowReorderable)return;const e="function"==typeof t.composedPath?t.composedPath():[];let s=(e.length>0?e:t.target?[t.target]:[]).find((t=>t instanceof HTMLElement&&t.classList.contains("xpl-table__row-drag-handle")));if(!s&&t.target instanceof HTMLElement&&t.target.classList.contains("xpl-table__row-drag-handle")&&(s=t.target),!s||!this.el.contains(s))return;const i=s.closest("xpl-table-row");if(!i||!this.isDirectChildBodyRow(i))return;const r=b.getRowIdForRow(i)??"";if(!r)return;const l=this.keyboardReorderRowId===r,n="Escape"===t.key||"Esc"===t.key||"Escape"===t.code||27===t.keyCode;i.disabled?n&&l&&(t.preventDefault(),this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null)):n?l&&(t.preventDefault(),this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null)):l?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(t.preventDefault(),this.performKeyboardRowReorder(r,"ArrowUp"===t.key?"up":"down")):"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.keyboardReorderRowId=r,this.syncReorderHandleKeyboardA11y(r))}handleRowReorderPointerDown(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=function(t){return("function"==typeof t.composedPath?t.composedPath():[]).find((t=>t instanceof HTMLElement&&t.classList.contains("xpl-table__row-drag-handle")))??null}(t);if(!e)return;if(e.closest("xpl-table")!==this.el)return;const s=u(e);if(!s||s.disabled)return;const i=this.getDirectChildTableSection("xpl-table-body");if(!i||s.parentElement!==i)return;this.clearPendingDragListeners(),this.pendingDragRow=s;const r=()=>{this.clearPendingDragListeners(),this.pendingDragRow=null};document.addEventListener("pointerup",r,!0),document.addEventListener("pointercancel",r,!0),this.pointerUpClearPending=()=>{document.removeEventListener("pointerup",r,!0),document.removeEventListener("pointercancel",r,!0)}}handleRowReorderDragStart(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);if(!e)return;if(e.closest("xpl-table")!==this.el)return;const s=this.getDirectChildTableSection("xpl-table-body");s&&e.parentElement===s&&(e.disabled||this.pendingDragRow!==e?t.preventDefault():(this.keyboardReorderRowId=null,this.syncReorderHandleKeyboardA11y(null),this.clearPendingDragListeners(),this.pendingDragRow=null,this.draggedRow=e,t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("text/plain",b.getRowIdForRow(e)??"")),e.classList.add("xpl-table-row--dragging")))}handleRowReorderDragEnd(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);e&&e.closest("xpl-table")===this.el&&(e.classList.remove("xpl-table-row--dragging"),this.clearReorderDragOverClasses(),this.draggedRow=null)}handleRowReorderDragOver(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);if(!e||e.closest("xpl-table")!==this.el)return;const s=this.getDirectChildTableSection("xpl-table-body");s&&e.parentElement===s&&!e.disabled&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="move"))}handleRowReorderDragEnter(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);if(!e||e.closest("xpl-table")!==this.el)return;const s=this.getDirectChildTableSection("xpl-table-body");s&&e.parentElement===s&&!e.disabled&&(t.preventDefault(),e.classList.add("xpl-table-row--drag-over"))}handleRowReorderDragLeave(t){if(this.isLegacyMode||!this.rowReorderable)return;const e=p(t);if(!e||e.closest("xpl-table")!==this.el)return;const s=t.relatedTarget;s&&e.contains(s)||e.classList.remove("xpl-table-row--drag-over")}handleRowReorderDrop(t){if(this.isLegacyMode||!this.rowReorderable)return;t.preventDefault();const e=p(t);if(!e||e.closest("xpl-table")!==this.el)return;const s=this.getDirectChildTableSection("xpl-table-body");if(!s||e.parentElement!==s||e.disabled)return;const i=this.draggedRow;if(!i||i.disabled)return this.draggedRow=null,void this.clearReorderDragOverClasses();if(i===e)return void this.clearReorderDragOverClasses();const r=this.getVisibleBodyRowsForReorder(),l=r.indexOf(i),n=r.indexOf(e);if(-1===l||-1===n)return void this.clearReorderDragOverClasses();const o=l>n?"up":"down",h=b.getRowIdForRow(i)??"";!function(t,e,s){if(e===s||e.parentElement!==t)return;if(s.parentElement!==t)return;const i=Array.from(t.children).filter((t=>"xpl-table-row"===t.tagName.toLowerCase()&&!t.hasAttribute("hidden"))),r=i.indexOf(e),l=i.indexOf(s);if(-1!==r&&-1!==l&&r!==l)if(r<l){const i=d(s);t.insertBefore(e,i||null)}else t.insertBefore(e,s)}(s,i,e);const a=this.getVisibleBodyRowsForReorder().map((t=>b.getRowIdForRow(t)??""));this.rowOrderChange.emit({rowId:h,direction:o,orderedRowIds:a,fromIndex:l,toIndex:n}),this.announceRowReorder(h,a),this.clearReorderDragOverClasses(),this.selectable&&(this.applyBodyCheckboxStates(),this.applyHeaderCheckboxState(),this.syncRowSelectedProps()),this.updateColumnWidths()}get isLegacyMode(){return void 0!==this.columns||void 0!==this.data||void 0!==this.footer}ensureTableInstanceId(){this.tableInstanceId||(this.tableInstanceId="undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2))}generateRowId(){return this.ensureTableInstanceId(),"undefined"!=typeof crypto&&crypto.randomUUID?`${this.tableInstanceId}-${crypto.randomUUID()}`:`${this.tableInstanceId}-${Math.random().toString(36).slice(2)}`}syncCompositionalLayout(){this.isLegacyMode||(this.rowReorderable?this.syncReorderColumn():this.removeManagedReorderCells(),this.selectable&&(this.ensureTableInstanceId(),this.pruneStaleSelectedRowIds(),this.ensureBodyRowIds(),this.applyBodyCheckboxStates(),this.applyHeaderCheckboxState(),this.syncRowSelectedProps()),this.rowReorderable&&this.selectable&&this.normalizeManagedColumnsOrder(),this.updateColumnWidths())}getDirectChildTableSection(t){return Array.from(this.el.children).find((e=>e.tagName.toLowerCase()===t))??null}isDirectChildBodyRow(t){const e=this.getDirectChildTableSection("xpl-table-body");return null!==e&&t.parentElement===e}isCellInOurCompositionalHeader(t){const e=t.closest("xpl-table-header");return null!==e&&e.parentElement===this.el}getSelectionColumnIndex(){const t=this.getCompositionalHeaderCells().findIndex((t=>"checkbox"===t.getAttribute("type")));return t>=0?t:null}static getBodyRowCells(t){return Array.from(t.children).filter((t=>"xpl-table-cell"===t.tagName.toLowerCase()))}queryBodyRows(){const t=this.getDirectChildTableSection("xpl-table-body");return t?Array.from(t.children).filter((t=>"xpl-table-row"===t.tagName.toLowerCase())):[]}querySelectableBodyRows(){return this.queryBodyRows().filter((t=>!t.disabled))}static getRowIdForRow(t){const e=t.getAttribute("row-id")?.trim();return e||null}ensureBodyRowIds(){this.queryBodyRows().forEach((t=>{b.getRowIdForRow(t)||t.setAttribute("row-id",this.generateRowId())}))}removeManagedReorderCells(){this.el.querySelectorAll(`[${n}]`).forEach((t=>{t instanceof Element&&t.closest("xpl-table")===this.el&&t.parentElement?.removeChild(t)}))}getSelectionSlotCellForReorderOrder(t){const e=this.getSelectionColumnIndex();if(null===e)return null;const s=Array.from(t.children)[e];if(!s)return null;const i=s.tagName.toLowerCase();return"xpl-table-header-cell"===i?"checkbox"===s.getAttribute("type")?s:null:"xpl-table-cell"===i?s.hasAttribute(o)||s.querySelector("xpl-checkbox")?s:null:"xpl-table-footer-cell"===i?s:null}normalizeManagedColumnsOrder(){const t=t=>{const e=t.querySelector(`:scope > [${n}]`),s=this.getSelectionSlotCellForReorderOrder(t);if(!e||!s)return;const i=Array.from(t.children);i.indexOf(e)>i.indexOf(s)&&t.insertBefore(e,s)},e=Array.from(this.el.children).find((t=>"xpl-table-header"===t.tagName.toLowerCase()))??null;if(e){const s=Array.from(e.children).find((t=>"xpl-table-row"===t.tagName.toLowerCase()));t(s??e)}this.queryBodyRows().forEach((e=>t(e)));const s=this.getDirectChildTableSection("xpl-table-footer");s&&Array.from(s.children).filter((t=>"xpl-table-row"===t.tagName.toLowerCase())).forEach((e=>t(e)))}syncReorderColumn(){this.rowReorderable&&!this.isLegacyMode&&(this.ensureBodyRowIds(),this.ensureHeaderReorderCell(),this.ensureBodyReorderCells(),this.ensureFooterReorderCells(),this.applyReorderRowDraggableState())}ensureHeaderReorderCell(){const t=Array.from(this.el.children).find((t=>"xpl-table-header"===t.tagName.toLowerCase()))??null;if(!t)return;const e=Array.from(t.children).find((t=>"xpl-table-row"===t.tagName.toLowerCase()))??t;if(Array.from(e.children).some((t=>"xpl-table-header-cell"===t.tagName.toLowerCase()&&t.hasAttribute(n))))return;const s=document.createElement("xpl-table-header-cell");s.setAttribute(n,""),s.setAttribute("type","empty"),s.setAttribute("width","48"),s.setAttribute("align","center"),e.insertBefore(s,e.firstChild)}ensureBodyReorderCells(){this.queryBodyRows().forEach((t=>{const e=Array.from(t.children).filter((t=>"xpl-table-cell"===t.tagName.toLowerCase()&&t.hasAttribute(n)));if(e.length>1)for(let t=1;t<e.length;t+=1)e[t].remove();let s=e[0];if(s)s.setAttribute("align","center");else{const e=document.createElement("xpl-table-cell");e.setAttribute(n,""),e.setAttribute("width","48"),e.setAttribute("align","center");const i=document.createElement("button");i.type="button",i.className="xpl-table__row-drag-handle",i.setAttribute("aria-label","Reorder row"),i.setAttribute("aria-pressed","false");const r=this.getResolvedIconForRow(b.getRowIdForRow(t)??"");if(r){const t=document.createElement("xpl-icon");t.setAttribute("icon",r),t.setAttribute("size","16"),i.appendChild(t)}e.appendChild(i),t.insertBefore(e,t.firstChild),s=e}const i=s.querySelector(".xpl-table__row-drag-handle");i&&(i.disabled=t.disabled)})),this.syncInjectedReorderHandleIcons(),this.attachReorderHandleKeydownListeners()}getResolvedIconForRow(t){return null!==this.keyboardReorderRowId&&""!==t&&t===this.keyboardReorderRowId?""===this.reorderHandleIconKeyboard?null:this.reorderHandleIconKeyboard??"caret-expand-y":""===this.reorderHandleIcon?null:this.reorderHandleIcon??"grip-dots-vertical"}syncInjectedReorderHandleIcons(){this.queryBodyRows().forEach((t=>{const e=t.querySelector(".xpl-table__row-drag-handle");if(!e)return;const s=b.getRowIdForRow(t)??"",i=this.getResolvedIconForRow(s);if(e.querySelectorAll("xpl-icon").forEach((t=>t.remove())),i){const t=document.createElement("xpl-icon");t.setAttribute("icon",i),t.setAttribute("size","16"),e.appendChild(t)}}))}syncReorderHandleKeyboardA11y(t){!this.isLegacyMode&&this.rowReorderable&&(this.queryBodyRows().forEach((e=>{const s=e.querySelector(".xpl-table__row-drag-handle");if(!s)return;const i=b.getRowIdForRow(e)??"",r=null!==t&&i===t;s.classList.toggle("xpl-table__row-drag-handle--keyboard-mode",r),s.setAttribute("aria-pressed",r?"true":"false"),s.setAttribute("aria-label",r?"Press arrow up or down to reorder, Escape to exit":"Press Enter or Space to activate keyboard reorder mode, or drag to reorder")})),this.syncInjectedReorderHandleIcons())}attachReorderHandleKeydownListeners(){!this.isLegacyMode&&this.rowReorderable&&this.queryBodyRows().forEach((t=>{const e=t.querySelector(".xpl-table__row-drag-handle");e&&"true"!==e.dataset.xplReorderKbdBound&&(e.dataset.xplReorderKbdBound="true",e.addEventListener("keydown",this.onReorderHandleKeydown))}))}detachReorderHandleKeydownListeners(){this.el&&this.el.querySelectorAll('.xpl-table__row-drag-handle[data-xpl-reorder-kbd-bound="true"]').forEach((t=>{t.removeEventListener("keydown",this.onReorderHandleKeydown),delete t.dataset.xplReorderKbdBound}))}performKeyboardRowReorder(t,e){const s=this.getDirectChildTableSection("xpl-table-body");if(!s)return!1;const i=this.getVisibleBodyRowsForReorder(),r=i.findIndex((e=>b.getRowIdForRow(e)===t));if(-1===r)return!1;const l="up"===e?r-1:r+1;if(l<0||l>=i.length)return!1;const n=r,o=i[r],h=i[l];if("up"===e)s.insertBefore(o,h);else{const t=d(h);t?s.insertBefore(o,t):s.appendChild(o)}const a=this.getVisibleBodyRowsForReorder().map((t=>b.getRowIdForRow(t)??"")),c=a.indexOf(t);return this.rowOrderChange.emit({rowId:t,direction:e,orderedRowIds:a,fromIndex:n,toIndex:c}),this.announceRowReorder(t,a),this.clearReorderDragOverClasses(),this.selectable&&(this.applyBodyCheckboxStates(),this.applyHeaderCheckboxState(),this.syncRowSelectedProps()),this.updateColumnWidths(),this.reorderKeyboardTimers.requestAnimationFrame((()=>{if(!this.el.isConnected)return;const e=this.getVisibleBodyRowsForReorder().find((e=>b.getRowIdForRow(e)===t)),s=e?.querySelector(".xpl-table__row-drag-handle");s?.focus()})),!0}ensureFooterReorderCells(){const t=this.getDirectChildTableSection("xpl-table-footer");t&&Array.from(t.children).filter((t=>"xpl-table-row"===t.tagName.toLowerCase())).forEach((t=>{if(Array.from(t.children).some((t=>"xpl-table-footer-cell"===t.tagName.toLowerCase()&&t.hasAttribute(n))))return;const e=document.createElement("xpl-table-footer-cell");e.setAttribute(n,""),e.setAttribute("width","48"),e.setAttribute("align","center"),t.insertBefore(e,t.firstChild)}))}static supportsSubgridBodyRow(){return"undefined"!=typeof CSS&&"function"==typeof CSS.supports&&CSS.supports("grid-template-columns","subgrid")}applyReorderRowDraggableState(){const t=b.supportsSubgridBodyRow();this.queryBodyRows().forEach((e=>{const s=e.querySelector(".xpl-table__row-drag-handle");s?.removeAttribute("draggable"),e.removeAttribute("draggable"),this.rowReorderable&&!e.disabled&&s&&(t?e.setAttribute("draggable","true"):s.setAttribute("draggable","true"))}))}getVisibleBodyRowsForReorder(){return this.queryBodyRows().filter((t=>!t.hasAttribute("hidden")))}clearReorderDragOverClasses(){this.queryBodyRows().forEach((t=>t.classList.remove("xpl-table-row--drag-over")))}clearPendingDragListeners(){this.pointerUpClearPending&&(this.pointerUpClearPending(),this.pointerUpClearPending=null)}announceRowReorder(t,e){if(!this.rowReorderable||!t)return;const s=e.indexOf(t);s<0||(this.reorderLiveMessage="",void 0!==this.reorderAnnounceRaf&&cancelAnimationFrame(this.reorderAnnounceRaf),this.reorderAnnounceRaf=requestAnimationFrame((()=>{this.reorderAnnounceRaf=void 0,this.el.isConnected&&(this.reorderLiveMessage=`Row ${t}, now position ${s+1} of ${e.length}`)})))}pruneStaleSelectedRowIds(){const t=new Set(this.queryBodyRows().map((t=>b.getRowIdForRow(t))).filter((t=>!!t))),e=this.selectedRowIds.filter((e=>t.has(e)));e.length!==this.selectedRowIds.length&&(this.selectedRowIds=e,this.applyBodyCheckboxStates(),this.applyHeaderCheckboxState(),this.syncRowSelectedProps(),this.emitCompositionalSelection())}static getBodyRowCheckboxAriaLabel(t,e){const s=b.getBodyRowCells(t),i=s.find(((t,s)=>(null===e||s!==e)&&!t.hasAttribute(n)))??s[0];if(!i)return"Select row";const r=i.textContent?.replace(/\s+/g," ").trim()??"";return r?`Select row, ${r.length>100?`${r.slice(0,100)}…`:r}`:"Select row"}applyBodyCheckboxStates(){const t=this.getSelectionColumnIndex();null!==t&&this.queryBodyRows().forEach((e=>{const s=b.getRowIdForRow(e),i=b.getBodyRowCells(e)[t],r=i?.querySelector("xpl-checkbox");r&&s&&(r.checked=this.selectedRowIds.includes(s),r.disabled=e.disabled,r.value=s,r.setAttribute("aria-label",b.getBodyRowCheckboxAriaLabel(e,t)))}))}getHeaderCheckboxCell(){const t=this.getSelectionColumnIndex();if(null===t)return null;const e=this.getCompositionalHeaderCells()[t];return e&&"checkbox"===e.getAttribute("type")?e:null}applyHeaderCheckboxState(){const t=this.getHeaderCheckboxCell();if(!t)return;const e=this.querySelectableBodyRows().map((t=>b.getRowIdForRow(t))).filter((t=>!!t)),s=e.filter((t=>this.selectedRowIds.includes(t))).length,i=e.length>0&&s===e.length,r=s>0&&!i;t.checked=i,t.indeterminate=r}syncRowSelectedProps(){this.queryBodyRows().forEach((t=>{const e=b.getRowIdForRow(t),s=!!e&&this.selectedRowIds.includes(e);t.selected=s}))}emitCompositionalSelection(){const t=this.selectedRowIds,e=t.join("");e!==this.lastEmittedRowSelectionKey&&(this.lastEmittedRowSelectionKey=e,this.rowSelectionChange.emit({selectedRowIds:[...t]}))}isEventFromThisTable(t){if(null==t||"object"!=typeof t)return!1;const e="closest"in t&&"function"==typeof t.closest?t:"parentElement"in t?t.parentElement:null;return!!e&&e.closest("xpl-table")===this.el}static sortKeyFromHeaderCell(t,e){const s=(t.sortKey??t.label??"").trim();return s.length>0?s.replace(/ /g,"-").toLowerCase():`column-${e}`}handleCompositionalHeaderSort(t){if(this.isLegacyMode)return;if(!this.isEventFromThisTable(t.target))return;t.stopPropagation();const e=t.target,s=e.closest("xpl-table-header xpl-table-row")??e.closest("xpl-table-row");if(!s||!this.el.contains(s))return;const i=Array.from(s.querySelectorAll("xpl-table-header-cell")),{columnIndex:r}=t.detail,l=i[r];if(!l?.sortable)return;const n=h(l.sortDirection);i.forEach(((t,e)=>{t.sortable&&(t.sortDirection=e===r?n:null)}));const o={};i.forEach(((t,e)=>{const s=t;s.sortable&&(o[b.sortKeyFromHeaderCell(s,e)]=s.sortDirection??null)}));const a=i.map((t=>t.sortable?t.sortDirection??null:null)),c=b.sortKeyFromHeaderCell(i[r],r),d={...o,colNum:r,colName:c,sortTypeArr:a};this.sortChanged.emit(d)}legacySortStatePayload(){const t={};return this.columns?.length?(this.columns.forEach(((e,s)=>{const i=e.replace(/ /g,"-").toLowerCase();t[i]=this.sortTypeArray[s]??null})),t):t}legacySortChangedDetail(t){return{...this.legacySortStatePayload(),colNum:t,colName:(this.columns?.[t]??"").replace(/ /g,"-").toLowerCase(),sortTypeArr:[...this.sortTypeArray]}}getCompositionalHeaderCells(){const t=Array.from(this.el.children).find((t=>"xpl-table-header"===t.tagName.toLowerCase()))??null;if(!t)return[];const e=Array.from(t.children).find((t=>"xpl-table-row"===t.tagName.toLowerCase()));return Array.from((e??t).children).filter((t=>"xpl-table-header-cell"===t.tagName.toLowerCase()))}updateColumnWidths(){const t=this.getCompositionalHeaderCells(),e=t.map((t=>a(t))).join(" "),s=t.length;s===this.colCount&&this.colCount>0&&this.columnWidthsToken===e||(this.el.style.setProperty("--column-widths",e),this.colCount=s,this.columnWidthsToken=e)}handleSort(t,e,s){t.preventDefault(),t.stopPropagation(),e&&(this.sortTypeArray=this.sortTypeArray.map(((t,e)=>{if(e!==s)return null;switch(t){case"asc":return"desc";case"desc":return null;default:return"asc"}})),this.sortChanged.emit(this.legacySortChangedDetail(s)).defaultPrevented||this.sortBy(s,this.sortTypeArray))}renderLegacy(){return!this.columns||this.sortTypeArray&&this.sortTypeArray.length===this.columns.length||(this.sortTypeArray=this.columns.map((()=>null))),s(i,null,s("div",{class:"xpl-table-container",onScroll:this.onLegacyScroll,ref:t=>{t&&(this.container=t)}},s("table",{class:{"xpl-table":!0,"xpl-table--legacy":!0,"xpl-table--striped":!!this.striped,"xpl-table--freeze":!!this.freeze,"xpl-table--has-scrolled":this.hasScrolled}},this.columns&&s("thead",null,this.columns.map(((t,e)=>{const i=c(this.sortTypeArray?.[e]??null),r=!(!this.isSortable||!this.sortableColumns?.[e]);return s("th",null,s("label",{onClick:t=>this.handleSort(t,r,e),class:r?"cursor-pointer":""},this.multiselect&&0===e&&s("input",{checked:this.areAllSelected,id:"__xpl-table-th",indeterminate:!this.areAllSelected&&this.selected.some((t=>t)),onClick:t=>{t.stopPropagation(),this.selectAll(t)},type:"checkbox",value:this.selectAllValue}),t,r&&!!this.sortTypeArray[e]&&s("xpl-icon",{icon:i,size:16})))}))),s("tbody",null,this.rowData.map(((t,e)=>s("tr",{class:this.selected&&this.selected[e]?"xpl-table-row-selected":""},t.map(((t,i)=>s("td",null,this.multiselect&&0===i?s("label",{htmlFor:`__xpl-table-row-${e}`},s("input",{id:`__xpl-table-row-${e}`,checked:!!this.selected[e],type:"checkbox",onChange:t=>this.selectOne(t,e),value:this.selectedValues&&this.selectedValues.length>0?this.selectedValues[e]:`xpl-table-checkbox-${e}`}),s("div",{innerHTML:t})):s("div",{innerHTML:t})))))))),this.rowFooterData?.length>0&&s("tfoot",null,this.rowFooterData.map((t=>s("tr",null,t.map((t=>s("td",null,s("div",{innerHTML:t})))))))))))}renderCompositional(){const t=this.selectedRowIds.length;return s(i,{role:"grid","aria-label":this.label,"aria-colcount":this.colCount>0?this.colCount:void 0,class:{"xpl-table":!0,"xpl-table--striped":!!this.striped,"xpl-table--freeze":!!this.freeze,"xpl-table--has-scrolled":this.hasScrolled,"xpl-table--selectable":!!this.selectable,"xpl-table--selection-active":!!this.selectable&&this.selectedRowIds.length>0,"xpl-table--row-reorderable":!!this.rowReorderable},onScroll:this.onGridScroll},this.rowReorderable&&s("div",{class:"xpl-table__reorder-live","aria-live":"assertive","aria-atomic":"true"},this.reorderLiveMessage),this.selectable&&s("div",{class:{"xpl-toolbar":!0,hidden:0===t,"xpl-table__toolbar":!0}},s("div",{class:"toolbar"},s("p",{class:"selected-item-count"},t," Selected"),s("div",{class:"actions"},s("slot",{name:"toolbar-actions-left"}),s("slot",{name:"toolbar-actions-right"})))),s("slot",null))}render(){return this.isLegacyMode?this.renderLegacy():this.renderCompositional()}get el(){return r(this)}static get watchers(){return{columns:[{watchColumns:0}],data:[{watchData:0}],footer:[{watchFooterData:0}],reorderHandleIcon:[{watchReorderHandleIcon:0}],reorderHandleIconKeyboard:[{watchReorderHandleIconKeyboard:0}],rowReorderable:[{watchRowReorderable:0}],selectable:[{watchSelectable:0}]}}};b.selectAllSeq=0;export{b as xpl_table}
@@ -0,0 +1 @@
1
+ import{r as c,h as a,H as e}from"./p-CJABLO_1.js";const r=class{constructor(a){c(this,a)}render(){return a(e,{key:"60cb6c9909d943691552665d71cb9fcf2e5fc190",class:"xpl-secondary-nav"},a("nav",{key:"0890f096dc8621b6890835594385c392e0ef9905","aria-label":"Secondary Nav"},a("slot",{key:"a9506445f06cc508969c1d6cff962b0553a01a5f"})))}};export{r as xpl_secondary_nav}
@@ -1 +1 @@
1
- import{r as e,h as a,H as c}from"./p-ukZKsqqq.js";const r=class{constructor(a){e(this,a),this.chevron='<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">\n <path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>\n </svg>\n '}render(){return a(c,{key:"7183a61283e558218b0ab031b4751c8a0adceccf",class:"xpl-breadcrumb-item",role:"listitem"},a("li",{key:"dbd92cb1dbda6fae79786dc0445bed7d7c77334f",role:"none"},a("slot",{key:"aed0551ce683fce1886d2e4263ad817201471e61"})),a("span",{key:"eb62adcc50b5da568c953263ebe6e3dc185c60c1",innerHTML:this.chevron}))}};export{r as xpl_breadcrumb_item}
1
+ import{r as e,h as a,H as c}from"./p-CJABLO_1.js";const r=class{constructor(a){e(this,a),this.chevron='<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">\n <path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>\n </svg>\n '}render(){return a(c,{key:"f27e929df7f6b3c346c78dbaa1fbd5504ed02bb8",class:"xpl-breadcrumb-item",role:"listitem"},a("li",{key:"58c1f95719d3d0ad4304cc4f29e74fc66efa5693",role:"none"},a("slot",{key:"d8ecd978e3f99fd2638094d33735c66e3a56d29c"})),a("span",{key:"a0b21f289feb8246a9e75874f259fe5597cbcaf3",innerHTML:this.chevron}))}};export{r as xpl_breadcrumb_item}
@@ -1 +1 @@
1
- import{r as e,h as t,H as s,g as i}from"./p-ukZKsqqq.js";function a(e){return"XPL-TABLE-CELL"===e.nodeName}const r=class{constructor(t){e(this,t),this.disabled=!1,this.selected=!1}onDisabledChange(){this.propagateDisabledToCells()}connectedCallback(){"undefined"!=typeof MutationObserver&&(this.cellObserver=new MutationObserver((e=>{e.forEach((e=>{"childList"===e.type&&e.addedNodes.forEach((e=>{a(e)&&(e.disabled=this.disabled)}))}))})),this.cellObserver.observe(this.el,{childList:!0}))}disconnectedCallback(){this.cellObserver?.disconnect(),this.cellObserver=void 0}componentDidLoad(){this.propagateDisabledToCells()}propagateDisabledToCells(){Array.from(this.el.children).filter(a).forEach((e=>{e.disabled=this.disabled}))}render(){return t(s,{key:"8c49ba27b39d934cb774140b43e811e5ee2bb904",class:{"xpl-table-row":!0,"xpl-table-row--disabled":this.disabled,"xpl-table-row--selected":this.selected},role:"row"},t("slot",{key:"30788ce629c65d7eab04d268da978d46f0145e99"}))}get el(){return i(this)}static get watchers(){return{disabled:[{onDisabledChange:0}]}}};export{r as xpl_table_row}
1
+ import{r as e,h as t,H as s,g as i}from"./p-CJABLO_1.js";function a(e){return"XPL-TABLE-CELL"===e.nodeName}const r=class{constructor(t){e(this,t),this.disabled=!1,this.selected=!1}onDisabledChange(){this.propagateDisabledToCells()}connectedCallback(){"undefined"!=typeof MutationObserver&&(this.cellObserver=new MutationObserver((e=>{e.forEach((e=>{"childList"===e.type&&e.addedNodes.forEach((e=>{a(e)&&(e.disabled=this.disabled)}))}))})),this.cellObserver.observe(this.el,{childList:!0}))}disconnectedCallback(){this.cellObserver?.disconnect(),this.cellObserver=void 0}componentDidLoad(){this.propagateDisabledToCells()}propagateDisabledToCells(){Array.from(this.el.children).filter(a).forEach((e=>{e.disabled=this.disabled}))}render(){return t(s,{key:"a743e3cf9f4761d990d4437390f5f3f4949c68b7",class:{"xpl-table-row":!0,"xpl-table-row--disabled":this.disabled,"xpl-table-row--selected":this.selected},role:"row"},t("slot",{key:"fc13f425ec75c16e0079733b789e7b68e1371f33"}))}get el(){return i(this)}static get watchers(){return{disabled:[{onDisabledChange:0}]}}};export{r as xpl_table_row}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as s,g as n}from"./p-ukZKsqqq.js";import{T as h}from"./p-Dqb1pIRo.js";let l=!1;const r=class{constructor(i){t(this,i),this.itemSelect=e(this,"itemSelect",7),this.orderChange=e(this,"orderChange",7),this.draggedItem=null,this.listItems=[],this.nextAutoItemIdSeq=0,this.radioName=`xpl-list-radio-${Math.random().toString(36).slice(2,11)}`,this.timers=new h,this.keyboardReorderItemId=null,this.reorderLiveMessage="",this.items=[],this.reorderable=!1,this.selectable=!1}handleKeyboardReorderItemIdChange(){this.collectListItems()}handleItemsChange(){this.collectListItems()}handleReorderableChange(){this.collectListItems()}handleSelectableChange(){this.collectListItems()}componentWillLoad(){this.collectListItems(),this.items.length>0&&!l&&(l=!0,console.warn('[xpl-list] The "items" prop is deprecated. Use slot-based xpl-list-item children instead.'))}componentDidLoad(){this.collectListItems()}disconnectedCallback(){this.timers.dispose()}handleKeyDown(t){if(!this.selectable||"Escape"!==t.key||t.defaultPrevented)return;const e=(i=t,(i.composedPath?.()??[]).find((t=>t instanceof HTMLElement&&"xpl-list-item"===t.tagName.toLowerCase()))??null);var i;if(!e||e.parentElement!==this.el)return;const s=e.querySelector('.xpl-list-item__selectable input[type="radio"]');(s instanceof HTMLInputElement&&s.checked||e.selected)&&(t.preventDefault(),this.clearSelection())}handleChildItemSelect(t){if(!this.selectable)return;const e=t.target;"XPL-LIST-ITEM"===e.tagName&&e.parentElement===this.el&&this.syncSelectionFromChildDetail(t.detail)}handleSlotChange(){this.collectListItems()}handleItemDragStart(t){const e=t.detail?.item;if(!e||e.parentElement!==this.el)return;null!==this.keyboardReorderItemId&&(this.keyboardReorderItemId=null),this.draggedItem=e;const i=this.draggedItem.querySelector(".xpl-list-item__wrapper");i?.classList.add("dragging")}handleItemDragEnd(t){const e=t.detail?.item;if(e&&e.parentElement===this.el){if(this.draggedItem){const t=this.draggedItem.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging")}this.draggedItem=null}}handleItemDrop(t){const e=t.detail?.item;if(e&&e.parentElement===this.el)if(this.draggedItem&&this.draggedItem.parentElement!==this.el)this.draggedItem=null;else{if(this.draggedItem){const t=this.draggedItem.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging")}if(this.draggedItem&&e&&this.draggedItem!==e){const t=this.getVisibleListItemElements(),i=t.indexOf(this.draggedItem),s=t.indexOf(e);if(-1!==i&&-1!==s){const t=i>s?"up":"down",n=this.getItemRowId(this.draggedItem);if("up"===t)this.el.insertBefore(this.draggedItem,e);else{const t=this.getNextVisibleListItemAfter(e);t?this.el.insertBefore(this.draggedItem,t):this.el.appendChild(this.draggedItem)}const h=this.getOrderedItemIds();this.orderChange.emit({itemId:n,direction:t,orderedItemIds:h}),this.announceReorder(n,h),this.el.dispatchEvent(new CustomEvent("xplListReorder",{bubbles:!0,composed:!0,detail:{itemId:n,direction:t,fromIndex:i,toIndex:s,orderedItemIds:h}}))}}this.draggedItem=null,t.preventDefault()}}handleItemReorder(t){t.stopPropagation();const{direction:e,itemId:i,keyboardMode:s,exitKeyboardMode:n}=t.detail;void 0!==s&&(this.keyboardReorderItemId=s?i??null:null),n&&(this.keyboardReorderItemId=null),e&&i&&this.performReorder(i,e)&&this.el.dispatchEvent(new CustomEvent("xplListReorder",{bubbles:!0,composed:!0,detail:{...t.detail,orderedItemIds:this.getOrderedItemIds()}}))}async clearSelection(){if(!this.selectable)return;this.collectListItems();const t=[];this.listItems.forEach((e=>{const i=e.querySelector('.xpl-list-item__selectable input[type="radio"]');if(i instanceof HTMLInputElement&&i.checked||e.selected){const i=this.getItemRowId(e);i&&t.push(i)}}));const e=[...new Set(t)];this.listItems.forEach((t=>{const e=t.querySelector('.xpl-list-item__selectable input[type="radio"]');e instanceof HTMLInputElement&&(e.checked=!1)})),this.listItems.forEach((t=>{t.selected&&(t.selected=!1)})),e.forEach((t=>{this.itemSelect.emit({itemId:t})}))}syncSelectionFromChildDetail(t){this.collectListItems();const e=t.itemId,i=null!=e&&""!==e;this.listItems.forEach((t=>{const s=this.getItemRowId(t);t.selected=i&&s===e}))}performReorder(t,e){this.listItems=this.getVisibleListItemElements();const i=this.listItems.findIndex((e=>this.getItemRowId(e)===t));if(-1===i)return!1;const s="up"===e?i-1:i+1;if(s<0||s>=this.listItems.length)return!1;const n=this.listItems[i],h=this.listItems[s];if("up"===e)this.el.insertBefore(n,h);else{const t=this.getNextVisibleListItemAfter(h);t?this.el.insertBefore(n,t):this.el.appendChild(n)}const l=this.getOrderedItemIds();return this.orderChange.emit({itemId:t,direction:e,orderedItemIds:l}),this.announceReorder(t,l),this.timers.requestAnimationFrame((()=>{if(!this.el.isConnected)return;const e=this.getDirectChildListItems().find((e=>this.getItemRowId(e)===t)),i=e?.querySelector(".xpl-list-item__drag-handle"),s=i?.querySelector?.("button")instanceof HTMLElement?i.querySelector("button"):i;s instanceof HTMLElement&&s.focus()})),!0}getOrderedItemIds(){return this.getVisibleListItemElements().map((t=>this.getItemRowId(t)))}announceReorder(t,e){if(!this.reorderable||!t)return;const i=e.indexOf(t);if(i<0)return;const s=i+1,n=e.length;this.reorderLiveMessage="",this.timers.requestAnimationFrame((()=>{this.el.isConnected&&(this.reorderLiveMessage=`Item ${t}, now position ${s} of ${n}`)}))}getDirectChildListItems(){return Array.from(this.el.children).filter((t=>"xpl-list-item"===t.tagName.toLowerCase()))}getVisibleListItemElements(){return this.getDirectChildListItems().filter((t=>!t.hasAttribute("hidden")))}isLegacyPropBasedRow(t){return null!=t.item}getNextVisibleListItemAfter(t){let e=t.nextElementSibling;for(;e;){if(e instanceof HTMLElement&&"xpl-list-item"===e.tagName.toLowerCase()&&!e.hasAttribute("hidden"))return e;e=e.nextElementSibling}return null}collectListItems(){this.listItems=this.getDirectChildListItems();const t=new Set;this.listItems.forEach((e=>{const i=e.getAttribute("item-id")||e.id||(e.itemId?String(e.itemId):"");i&&t.add(i)})),this.listItems.forEach((e=>{if(!e.hasAttribute("item-id")&&!e.id)if(e.itemId)e.setAttribute("item-id",e.itemId),t.add(e.itemId);else{let i;do{i=`item-${this.nextAutoItemIdSeq}`,this.nextAutoItemIdSeq+=1}while(t.has(i));e.setAttribute("item-id",i),t.add(i)}this.isLegacyPropBasedRow(e)?(e.removeAttribute("selectable"),e.removeAttribute("radio-name"),e.removeAttribute("reorderable")):(this.selectable?(e.setAttribute("selectable","true"),e.setAttribute("radio-name",this.radioName)):(e.removeAttribute("selectable"),e.removeAttribute("radio-name")),this.reorderable?e.setAttribute("reorderable","true"):e.removeAttribute("reorderable"));const i=this.getItemRowId(e);this.isLegacyPropBasedRow(e)?e.removeAttribute("keyboard-active"):this.keyboardReorderItemId&&i===this.keyboardReorderItemId?e.setAttribute("keyboard-active","true"):e.removeAttribute("keyboard-active")}))}getItemRowId(t){return t.getAttribute("item-id")||t.id||t.itemId||""}render(){const t=this.labelledBy?.trim()?this.labelledBy.trim():void 0,e=!t&&this.label?.trim()?this.label.trim():void 0;return i(s,{key:"5516f433d051a8cac2d01255e7e4b43956f088c5",role:"list",class:{"xpl-list":!0},"aria-label":e,"aria-labelledby":t},this.items?.map(((t,e)=>{const s=t.id??`item-${e}`;return i("xpl-list-item",{key:`legacy-item-${s}`,item:t,href:t.href,itemId:s})})),i("slot",{key:"68216fa87a1034e09363b8b20fc436d0d3725cc3"}),this.reorderable?i("div",{class:"xpl-list__reorder-live","aria-live":"assertive","aria-atomic":"true"},this.reorderLiveMessage):null)}get el(){return n(this)}static get watchers(){return{keyboardReorderItemId:[{handleKeyboardReorderItemIdChange:0}],items:[{handleItemsChange:0}],reorderable:[{handleReorderableChange:0}],selectable:[{handleSelectableChange:0}]}}};export{r as xpl_list}
1
+ import{r as t,c as e,h as i,H as s,g as n}from"./p-CJABLO_1.js";import{T as h}from"./p-Dqb1pIRo.js";let l=!1;const r=class{constructor(i){t(this,i),this.itemSelect=e(this,"itemSelect",7),this.orderChange=e(this,"orderChange",7),this.draggedItem=null,this.listItems=[],this.nextAutoItemIdSeq=0,this.radioName=`xpl-list-radio-${Math.random().toString(36).slice(2,11)}`,this.timers=new h,this.keyboardReorderItemId=null,this.reorderLiveMessage="",this.items=[],this.reorderable=!1,this.selectable=!1}handleKeyboardReorderItemIdChange(){this.collectListItems()}handleItemsChange(){this.collectListItems()}handleReorderableChange(){this.collectListItems()}handleSelectableChange(){this.collectListItems()}componentWillLoad(){this.collectListItems(),this.items.length>0&&!l&&(l=!0,console.warn('[xpl-list] The "items" prop is deprecated. Use slot-based xpl-list-item children instead.'))}componentDidLoad(){this.collectListItems()}disconnectedCallback(){this.timers.dispose()}handleKeyDown(t){if(!this.selectable||"Escape"!==t.key||t.defaultPrevented)return;const e=(i=t,(i.composedPath?.()??[]).find((t=>t instanceof HTMLElement&&"xpl-list-item"===t.tagName.toLowerCase()))??null);var i;if(!e||e.parentElement!==this.el)return;const s=e.querySelector('.xpl-list-item__selectable input[type="radio"]');(s instanceof HTMLInputElement&&s.checked||e.selected)&&(t.preventDefault(),this.clearSelection())}handleChildItemSelect(t){if(!this.selectable)return;const e=t.target;"XPL-LIST-ITEM"===e.tagName&&e.parentElement===this.el&&this.syncSelectionFromChildDetail(t.detail)}handleSlotChange(){this.collectListItems()}handleItemDragStart(t){const e=t.detail?.item;if(!e||e.parentElement!==this.el)return;null!==this.keyboardReorderItemId&&(this.keyboardReorderItemId=null),this.draggedItem=e;const i=this.draggedItem.querySelector(".xpl-list-item__wrapper");i?.classList.add("dragging")}handleItemDragEnd(t){const e=t.detail?.item;if(e&&e.parentElement===this.el){if(this.draggedItem){const t=this.draggedItem.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging")}this.draggedItem=null}}handleItemDrop(t){const e=t.detail?.item;if(e&&e.parentElement===this.el)if(this.draggedItem&&this.draggedItem.parentElement!==this.el)this.draggedItem=null;else{if(this.draggedItem){const t=this.draggedItem.querySelector(".xpl-list-item__wrapper");t?.classList.remove("dragging")}if(this.draggedItem&&e&&this.draggedItem!==e){const t=this.getVisibleListItemElements(),i=t.indexOf(this.draggedItem),s=t.indexOf(e);if(-1!==i&&-1!==s){const t=i>s?"up":"down",n=this.getItemRowId(this.draggedItem);if("up"===t)this.el.insertBefore(this.draggedItem,e);else{const t=this.getNextVisibleListItemAfter(e);t?this.el.insertBefore(this.draggedItem,t):this.el.appendChild(this.draggedItem)}const h=this.getOrderedItemIds();this.orderChange.emit({itemId:n,direction:t,orderedItemIds:h}),this.announceReorder(n,h),this.el.dispatchEvent(new CustomEvent("xplListReorder",{bubbles:!0,composed:!0,detail:{itemId:n,direction:t,fromIndex:i,toIndex:s,orderedItemIds:h}}))}}this.draggedItem=null,t.preventDefault()}}handleItemReorder(t){t.stopPropagation();const{direction:e,itemId:i,keyboardMode:s,exitKeyboardMode:n}=t.detail;void 0!==s&&(this.keyboardReorderItemId=s?i??null:null),n&&(this.keyboardReorderItemId=null),e&&i&&this.performReorder(i,e)&&this.el.dispatchEvent(new CustomEvent("xplListReorder",{bubbles:!0,composed:!0,detail:{...t.detail,orderedItemIds:this.getOrderedItemIds()}}))}async clearSelection(){if(!this.selectable)return;this.collectListItems();const t=[];this.listItems.forEach((e=>{const i=e.querySelector('.xpl-list-item__selectable input[type="radio"]');if(i instanceof HTMLInputElement&&i.checked||e.selected){const i=this.getItemRowId(e);i&&t.push(i)}}));const e=[...new Set(t)];this.listItems.forEach((t=>{const e=t.querySelector('.xpl-list-item__selectable input[type="radio"]');e instanceof HTMLInputElement&&(e.checked=!1)})),this.listItems.forEach((t=>{t.selected&&(t.selected=!1)})),e.forEach((t=>{this.itemSelect.emit({itemId:t})}))}syncSelectionFromChildDetail(t){this.collectListItems();const e=t.itemId,i=null!=e&&""!==e;this.listItems.forEach((t=>{const s=this.getItemRowId(t);t.selected=i&&s===e}))}performReorder(t,e){this.listItems=this.getVisibleListItemElements();const i=this.listItems.findIndex((e=>this.getItemRowId(e)===t));if(-1===i)return!1;const s="up"===e?i-1:i+1;if(s<0||s>=this.listItems.length)return!1;const n=this.listItems[i],h=this.listItems[s];if("up"===e)this.el.insertBefore(n,h);else{const t=this.getNextVisibleListItemAfter(h);t?this.el.insertBefore(n,t):this.el.appendChild(n)}const l=this.getOrderedItemIds();return this.orderChange.emit({itemId:t,direction:e,orderedItemIds:l}),this.announceReorder(t,l),this.timers.requestAnimationFrame((()=>{if(!this.el.isConnected)return;const e=this.getDirectChildListItems().find((e=>this.getItemRowId(e)===t)),i=e?.querySelector(".xpl-list-item__drag-handle"),s=i?.querySelector?.("button")instanceof HTMLElement?i.querySelector("button"):i;s instanceof HTMLElement&&s.focus()})),!0}getOrderedItemIds(){return this.getVisibleListItemElements().map((t=>this.getItemRowId(t)))}announceReorder(t,e){if(!this.reorderable||!t)return;const i=e.indexOf(t);if(i<0)return;const s=i+1,n=e.length;this.reorderLiveMessage="",this.timers.requestAnimationFrame((()=>{this.el.isConnected&&(this.reorderLiveMessage=`Item ${t}, now position ${s} of ${n}`)}))}getDirectChildListItems(){return Array.from(this.el.children).filter((t=>"xpl-list-item"===t.tagName.toLowerCase()))}getVisibleListItemElements(){return this.getDirectChildListItems().filter((t=>!t.hasAttribute("hidden")))}isLegacyPropBasedRow(t){return null!=t.item}getNextVisibleListItemAfter(t){let e=t.nextElementSibling;for(;e;){if(e instanceof HTMLElement&&"xpl-list-item"===e.tagName.toLowerCase()&&!e.hasAttribute("hidden"))return e;e=e.nextElementSibling}return null}collectListItems(){this.listItems=this.getDirectChildListItems();const t=new Set;this.listItems.forEach((e=>{const i=e.getAttribute("item-id")||e.id||(e.itemId?String(e.itemId):"");i&&t.add(i)})),this.listItems.forEach((e=>{if(!e.hasAttribute("item-id")&&!e.id)if(e.itemId)e.setAttribute("item-id",e.itemId),t.add(e.itemId);else{let i;do{i=`item-${this.nextAutoItemIdSeq}`,this.nextAutoItemIdSeq+=1}while(t.has(i));e.setAttribute("item-id",i),t.add(i)}this.isLegacyPropBasedRow(e)?(e.removeAttribute("selectable"),e.removeAttribute("radio-name"),e.removeAttribute("reorderable")):(this.selectable?(e.setAttribute("selectable","true"),e.setAttribute("radio-name",this.radioName)):(e.removeAttribute("selectable"),e.removeAttribute("radio-name")),this.reorderable?e.setAttribute("reorderable","true"):e.removeAttribute("reorderable"));const i=this.getItemRowId(e);this.isLegacyPropBasedRow(e)?e.removeAttribute("keyboard-active"):this.keyboardReorderItemId&&i===this.keyboardReorderItemId?e.setAttribute("keyboard-active","true"):e.removeAttribute("keyboard-active")}))}getItemRowId(t){return t.getAttribute("item-id")||t.id||t.itemId||""}render(){const t=this.labelledBy?.trim()?this.labelledBy.trim():void 0,e=!t&&this.label?.trim()?this.label.trim():void 0;return i(s,{key:"a97abb1b66b810ef2d18683fd2b77d817c4cf87f",role:"list",class:{"xpl-list":!0},"aria-label":e,"aria-labelledby":t},this.items?.map(((t,e)=>{const s=t.id??`item-${e}`;return i("xpl-list-item",{key:`legacy-item-${s}`,item:t,href:t.href,itemId:s})})),i("slot",{key:"0c5421e5ac9652c8efa7563003582a3a57141324"}),this.reorderable?i("div",{class:"xpl-list__reorder-live","aria-live":"assertive","aria-atomic":"true"},this.reorderLiveMessage):null)}get el(){return n(this)}static get watchers(){return{keyboardReorderItemId:[{handleKeyboardReorderItemIdChange:0}],items:[{handleItemsChange:0}],reorderable:[{handleReorderableChange:0}],selectable:[{handleSelectableChange:0}]}}};export{r as xpl_list}
@@ -0,0 +1 @@
1
+ import{r,h as a,H as s}from"./p-CJABLO_1.js";const t=class{constructor(a){r(this,a),this.relative=!1}render(){return a(s,{key:"85f3504a4f62941f97a81da862a210822b13376c",class:{"xpl-backdrop":!0,"xpl-backdrop--fixed":!this.relative,"xpl-backdrop--relative":this.relative},"aria-hidden":"true"})}};export{t as xpl_backdrop}
@@ -1 +1 @@
1
- import{r as t,h as e,H as s,g as a}from"./p-ukZKsqqq.js";import{h as c}from"./p-_r9-FML8.js";const i="graph-content",r=class{constructor(e){t(this,e),this.graphContentPresent=!1}connectedCallback(){this.syncGraphContentSlot(),this.connectGraphContentSlotObserver()}disconnectedCallback(){void 0!==this.graphContentSlotSyncTimeoutId&&(clearTimeout(this.graphContentSlotSyncTimeoutId),this.graphContentSlotSyncTimeoutId=void 0),this.disconnectGraphContentSlotObserver()}componentWillLoad(){this.syncGraphContentSlot()}componentDidLoad(){if(this.link){const t=this.el.getElementsByTagName("a")[0]||this.el.getElementsByTagName("button")[0],e=document.createTextNode(this.name),s=document.createElement("span");s.appendChild(e),t.setAttribute("class","xpl-large-card__anchor"),t.appendChild(s)}}componentWillRender(){this.disconnectGraphContentSlotObserver()}componentDidRender(){this.scheduleGraphContentSlotSync()}connectGraphContentSlotObserver(){this.disconnectGraphContentSlotObserver(),"undefined"!=typeof MutationObserver&&(this.graphContentSlotObserver=new MutationObserver((()=>{this.scheduleGraphContentSlotSync()})),this.graphContentSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectGraphContentSlotObserver(){this.graphContentSlotObserver?.disconnect(),this.graphContentSlotObserver=void 0}scheduleGraphContentSlotSync(){void 0!==this.graphContentSlotSyncTimeoutId&&clearTimeout(this.graphContentSlotSyncTimeoutId),this.graphContentSlotSyncTimeoutId=setTimeout((()=>{this.graphContentSlotSyncTimeoutId=void 0,this.el.isConnected&&(this.syncGraphContentSlot(),this.connectGraphContentSlotObserver())}),0)}syncGraphContentSlot(){const t=c(this.el,i);t!==this.graphContentPresent&&(this.graphContentPresent=t)}render(){return e(s,{key:"879f57b756e3c25bb9bebbc06f144a137bf0b78b",role:"group",class:"xpl-large-card "+(this.link?"xpl-large-card__link":""),tabindex:"0"},e("dt",{key:"1336da473527a06e485c559925156954c0162696",class:"xpl-large-card__header"},e("header",{key:"69073fa20879ae4b9709ec54cc01cad85fba6366"},e("slot",{key:"c9381d78ba477f7ba9f1ce6a2e82c149bbe50ad0",name:"title"},this.name),this.link&&e("span",{key:"8075678983d86cc192b9a2fc7a43fb4c022dbace",class:"xpl-large-card__header-arrow"},e("xpl-icon",{key:"960d96210c4d5f37b51782947b9acdb3cb4d125d",icon:"chevron-right",size:16}))),this.description&&e("div",{key:"0162c71c16faa14385da912cbcf6a24f182b1012",class:"xpl-large-card__description"},this.description)),e("dd",{key:"d48d1348b8d0b5b3db776d64be10b23d884cd35c",class:"xpl-large-card__body"},this.graphContentPresent&&e("slot",{key:"7aa25f469d81ebc5046cc382920fcac9a3d59a9c",name:i})))}get el(){return a(this)}};export{r as xpl_large_card}
1
+ import{r as t,h as e,H as s,g as a}from"./p-CJABLO_1.js";import{h as c}from"./p-_r9-FML8.js";const i="graph-content",r=class{constructor(e){t(this,e),this.graphContentPresent=!1}connectedCallback(){this.syncGraphContentSlot(),this.connectGraphContentSlotObserver()}disconnectedCallback(){void 0!==this.graphContentSlotSyncTimeoutId&&(clearTimeout(this.graphContentSlotSyncTimeoutId),this.graphContentSlotSyncTimeoutId=void 0),this.disconnectGraphContentSlotObserver()}componentWillLoad(){this.syncGraphContentSlot()}componentDidLoad(){if(this.link){const t=this.el.getElementsByTagName("a")[0]||this.el.getElementsByTagName("button")[0],e=document.createTextNode(this.name),s=document.createElement("span");s.appendChild(e),t.setAttribute("class","xpl-large-card__anchor"),t.appendChild(s)}}componentWillRender(){this.disconnectGraphContentSlotObserver()}componentDidRender(){this.scheduleGraphContentSlotSync()}connectGraphContentSlotObserver(){this.disconnectGraphContentSlotObserver(),"undefined"!=typeof MutationObserver&&(this.graphContentSlotObserver=new MutationObserver((()=>{this.scheduleGraphContentSlotSync()})),this.graphContentSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectGraphContentSlotObserver(){this.graphContentSlotObserver?.disconnect(),this.graphContentSlotObserver=void 0}scheduleGraphContentSlotSync(){void 0!==this.graphContentSlotSyncTimeoutId&&clearTimeout(this.graphContentSlotSyncTimeoutId),this.graphContentSlotSyncTimeoutId=setTimeout((()=>{this.graphContentSlotSyncTimeoutId=void 0,this.el.isConnected&&(this.syncGraphContentSlot(),this.connectGraphContentSlotObserver())}),0)}syncGraphContentSlot(){const t=c(this.el,i);t!==this.graphContentPresent&&(this.graphContentPresent=t)}render(){return e(s,{key:"879f57b756e3c25bb9bebbc06f144a137bf0b78b",role:"group",class:"xpl-large-card "+(this.link?"xpl-large-card__link":""),tabindex:"0"},e("dt",{key:"1336da473527a06e485c559925156954c0162696",class:"xpl-large-card__header"},e("header",{key:"69073fa20879ae4b9709ec54cc01cad85fba6366"},e("slot",{key:"c9381d78ba477f7ba9f1ce6a2e82c149bbe50ad0",name:"title"},this.name),this.link&&e("span",{key:"8075678983d86cc192b9a2fc7a43fb4c022dbace",class:"xpl-large-card__header-arrow"},e("xpl-icon",{key:"960d96210c4d5f37b51782947b9acdb3cb4d125d",icon:"chevron-right",size:16}))),this.description&&e("div",{key:"0162c71c16faa14385da912cbcf6a24f182b1012",class:"xpl-large-card__description"},this.description)),e("dd",{key:"d48d1348b8d0b5b3db776d64be10b23d884cd35c",class:"xpl-large-card__body"},this.graphContentPresent&&e("slot",{key:"7aa25f469d81ebc5046cc382920fcac9a3d59a9c",name:i})))}get el(){return a(this)}};export{r as xpl_large_card}
@@ -1 +1 @@
1
- import{r as e,c as s,h as t,H as l}from"./p-ukZKsqqq.js";import{v as a}from"./p-CK3_k8jD.js";const i=class{constructor(t){e(this,t),this.toggleChange=s(this,"toggleChange",7),this.variant="default",this.id=a(),this.onChange=e=>{this.toggleChange.emit(e.target.checked)}}render(){let e="xpl-toggle-container";this.disabled&&(e+=" xpl-toggle-container--disabled");let s="xpl-toggle";return"small"===this.variant&&(s+=" xpl-toggle--small"),t(l,{key:"79915f2091093b5440ca3a8e63584e448137f479",class:e},(this.heading||this.description)&&t("label",{key:"6660a95ec66eec9ed33016efcf58aaf0940f6f47",class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},this.heading,this.description&&t("small",{key:"160f0a90739142bc37779af28725183979de5a4c",class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)),t("input",{key:"b136188b1de98d1ede875bf9f80b97c9ee66321d",class:s,type:"checkbox",checked:this.checked,disabled:this.disabled,id:this.id,name:this.name,onChange:this.onChange}),this.label&&t("label",{key:"0329f2badfa3b3e8c1153c2e5baa4ee76e40ac5d",htmlFor:this.id},this.label))}};export{i as xpl_toggle}
1
+ import{r as e,c as s,h as t,H as l}from"./p-CJABLO_1.js";import{v as a}from"./p-CK3_k8jD.js";const i=class{constructor(t){e(this,t),this.toggleChange=s(this,"toggleChange",7),this.variant="default",this.id=a(),this.onChange=e=>{this.toggleChange.emit(e.target.checked)}}render(){let e="xpl-toggle-container";this.disabled&&(e+=" xpl-toggle-container--disabled");let s="xpl-toggle";return"small"===this.variant&&(s+=" xpl-toggle--small"),t(l,{key:"79915f2091093b5440ca3a8e63584e448137f479",class:e},(this.heading||this.description)&&t("label",{key:"6660a95ec66eec9ed33016efcf58aaf0940f6f47",class:{"xpl-label":!0,"xpl-label--disabled":!!this.disabled},htmlFor:this.id},this.heading,this.description&&t("small",{key:"160f0a90739142bc37779af28725183979de5a4c",class:{"xpl-description":!0,"xpl-description--disabled":!!this.disabled}},this.description)),t("input",{key:"b136188b1de98d1ede875bf9f80b97c9ee66321d",class:s,type:"checkbox",checked:this.checked,disabled:this.disabled,id:this.id,name:this.name,onChange:this.onChange}),this.label&&t("label",{key:"0329f2badfa3b3e8c1153c2e5baa4ee76e40ac5d",htmlFor:this.id},this.label))}};export{i as xpl_toggle}
@@ -1 +1 @@
1
- import{r as i,c as s,h as t,H as e,g as n}from"./p-ukZKsqqq.js";import{h}from"./p-C_PEOQWj.js";const a=class{constructor(t){i(this,t),this.expandedChange=s(this,"expandedChange",7),this.navigate=s(this,"navigate",7),this.hasTrailingSlot=!1,this.disabled=!1,this.expanded=!1,this.hasChildren=!1,this.hidden=!1,this.link=!1,this.selected=!1,this.handleClick=()=>{this.disabled||(this.hasChildren?(this.expanded=!this.expanded,this.expandedChange.emit(this.expanded)):this.navigate.emit())}}syncLinkHasChildrenExclusivity(){this.enforceLinkExcludesHasChildren()}connectedCallback(){this.syncTrailingSlot(),this.connectTrailingSlotObserver()}disconnectedCallback(){void 0!==this.trailingSlotSyncTimeoutId&&(clearTimeout(this.trailingSlotSyncTimeoutId),this.trailingSlotSyncTimeoutId=void 0),this.disconnectTrailingSlotObserver()}componentWillLoad(){this.syncLinkHasChildrenExclusivity(),this.syncTrailingSlot()}componentWillRender(){this.syncLinkHasChildrenExclusivity(),this.disconnectTrailingSlotObserver()}componentDidRender(){this.scheduleTrailingSlotSync()}connectTrailingSlotObserver(){this.disconnectTrailingSlotObserver(),"undefined"!=typeof MutationObserver&&(this.trailingSlotObserver=new MutationObserver((()=>{this.scheduleTrailingSlotSync()})),this.trailingSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectTrailingSlotObserver(){this.trailingSlotObserver?.disconnect(),this.trailingSlotObserver=void 0}scheduleTrailingSlotSync(){void 0!==this.trailingSlotSyncTimeoutId&&clearTimeout(this.trailingSlotSyncTimeoutId),this.trailingSlotSyncTimeoutId=setTimeout((()=>{this.trailingSlotSyncTimeoutId=void 0,this.el.isConnected&&(this.syncTrailingSlot(),this.connectTrailingSlotObserver())}),0)}syncTrailingSlot(){const i=h(this.el,"trailing","xpl-side-nav-item");i!==this.hasTrailingSlot&&(this.hasTrailingSlot=i)}enforceLinkExcludesHasChildren(){this.link&&(this.hasChildren&&(this.hasChildren=!1),this.el.hasAttribute("has-children")&&this.el.removeAttribute("has-children"))}render(){const i=this.hasChildren&&!this.hasTrailingSlot,s={"xpl-side-nav-item__link":!0,expanded:this.expanded,selected:this.selected};return t(e,{key:"059210d35fdf3561fa2bc4f541f80fbb1e570506",class:{"xpl-side-nav-item":!0,"xpl-side-nav-item--link-disabled":this.link&&this.disabled}},this.link?t("slot",null):t("button",{type:"button",class:s,"aria-current":this.selected?"page":void 0,"aria-expanded":this.hasChildren?this.expanded?"true":"false":void 0,onClick:this.handleClick,disabled:this.disabled},t("span",{class:"xpl-side-nav-item__leading"},t("slot",{name:"leading"},this.icon?t("xpl-icon",{icon:this.icon,size:16}):null)),t("span",{class:"xpl-side-nav-item__label"},this.label??""),(this.hasTrailingSlot||this.hasChildren)&&t("span",{class:{"xpl-side-nav-item__trailing":!0,"xpl-side-nav-item__trailing--chevron":i,expanded:i&&this.expanded},"aria-hidden":i?"true":void 0},t("slot",{name:"trailing"},i?t("xpl-icon",{icon:this.expanded?"chevron-up":"chevron-down",size:16}):null))),this.hasChildren&&!this.link&&t("div",{key:"47b1eba18028549e03394678bca58beee9b2f157",class:"xpl-side-nav-item__children "+(this.expanded?"expanded":""),inert:!this.expanded||void 0},t("div",{key:"7b6137a009106e3adfb99928bff429bea92b63e2",class:"xpl-side-nav-item__children-inner"},t("slot",{key:"3cf83a5e3e8367ef4d5bfbedb8c22bc6bf1efaa7"}))))}get el(){return n(this)}static get watchers(){return{hasChildren:[{syncLinkHasChildrenExclusivity:0}],link:[{syncLinkHasChildrenExclusivity:0}]}}};export{a as xpl_side_nav_item}
1
+ import{r as i,c as s,h as t,H as e,g as n}from"./p-CJABLO_1.js";import{h}from"./p-C_PEOQWj.js";const a=class{constructor(t){i(this,t),this.expandedChange=s(this,"expandedChange",7),this.navigate=s(this,"navigate",7),this.hasTrailingSlot=!1,this.disabled=!1,this.expanded=!1,this.hasChildren=!1,this.hidden=!1,this.link=!1,this.selected=!1,this.handleClick=()=>{this.disabled||(this.hasChildren?(this.expanded=!this.expanded,this.expandedChange.emit(this.expanded)):this.navigate.emit())}}syncLinkHasChildrenExclusivity(){this.enforceLinkExcludesHasChildren()}connectedCallback(){this.syncTrailingSlot(),this.connectTrailingSlotObserver()}disconnectedCallback(){void 0!==this.trailingSlotSyncTimeoutId&&(clearTimeout(this.trailingSlotSyncTimeoutId),this.trailingSlotSyncTimeoutId=void 0),this.disconnectTrailingSlotObserver()}componentWillLoad(){this.syncLinkHasChildrenExclusivity(),this.syncTrailingSlot()}componentWillRender(){this.syncLinkHasChildrenExclusivity(),this.disconnectTrailingSlotObserver()}componentDidRender(){this.scheduleTrailingSlotSync()}connectTrailingSlotObserver(){this.disconnectTrailingSlotObserver(),"undefined"!=typeof MutationObserver&&(this.trailingSlotObserver=new MutationObserver((()=>{this.scheduleTrailingSlotSync()})),this.trailingSlotObserver.observe(this.el,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["slot"]}))}disconnectTrailingSlotObserver(){this.trailingSlotObserver?.disconnect(),this.trailingSlotObserver=void 0}scheduleTrailingSlotSync(){void 0!==this.trailingSlotSyncTimeoutId&&clearTimeout(this.trailingSlotSyncTimeoutId),this.trailingSlotSyncTimeoutId=setTimeout((()=>{this.trailingSlotSyncTimeoutId=void 0,this.el.isConnected&&(this.syncTrailingSlot(),this.connectTrailingSlotObserver())}),0)}syncTrailingSlot(){const i=h(this.el,"trailing","xpl-side-nav-item");i!==this.hasTrailingSlot&&(this.hasTrailingSlot=i)}enforceLinkExcludesHasChildren(){this.link&&(this.hasChildren&&(this.hasChildren=!1),this.el.hasAttribute("has-children")&&this.el.removeAttribute("has-children"))}render(){const i=this.hasChildren&&!this.hasTrailingSlot,s={"xpl-side-nav-item__link":!0,expanded:this.expanded,selected:this.selected};return t(e,{key:"fe0796a361383d97010699b710fe61a0cf17289a",class:{"xpl-side-nav-item":!0,"xpl-side-nav-item--link-disabled":this.link&&this.disabled}},this.link?t("slot",null):t("button",{type:"button",class:s,"aria-current":this.selected?"page":void 0,"aria-expanded":this.hasChildren?this.expanded?"true":"false":void 0,onClick:this.handleClick,disabled:this.disabled},t("span",{class:"xpl-side-nav-item__leading"},t("slot",{name:"leading"},this.icon?t("xpl-icon",{icon:this.icon,size:16}):null)),t("span",{class:"xpl-side-nav-item__label"},this.label??""),(this.hasTrailingSlot||this.hasChildren)&&t("span",{class:{"xpl-side-nav-item__trailing":!0,"xpl-side-nav-item__trailing--chevron":i,expanded:i&&this.expanded},"aria-hidden":i?"true":void 0},t("slot",{name:"trailing"},i?t("xpl-icon",{icon:this.expanded?"chevron-up":"chevron-down",size:16}):null))),this.hasChildren&&!this.link&&t("div",{key:"c3f38b679aef2d66ad477bf9fb04ff8228740ebd",class:"xpl-side-nav-item__children "+(this.expanded?"expanded":""),inert:!this.expanded||void 0},t("div",{key:"7b51bf6ca02febd7e3b63a1bccbbb79b3554db03",class:"xpl-side-nav-item__children-inner"},t("slot",{key:"7d9d16628cb60480199b6eda497fccb931eb72e9"}))))}get el(){return n(this)}static get watchers(){return{hasChildren:[{syncLinkHasChildrenExclusivity:0}],link:[{syncLinkHasChildrenExclusivity:0}]}}};export{a as xpl_side_nav_item}
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-3cBvw409.js');
3
+ var index = require('./index-EdmnG7t8.js');
4
4
  var appGlobals = require('./app-globals-V2Kpy_OQ.js');
5
5
 
6
6
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.43.5 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.44.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
10
 
11
11
  var patchBrowser = () => {