@xplortech/apollo-core 2.7.0 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/.typings/apollo-components.html-data.json +97 -180
  2. package/build/style.css +220 -951
  3. package/dist/apollo-core/apollo-core.css +5 -35
  4. package/dist/apollo-core/apollo-core.esm.js +1 -1
  5. package/dist/apollo-core/{p-6c956d4e.entry.js → p-0bf50890.entry.js} +1 -1
  6. package/dist/apollo-core/p-1947e7a8.entry.js +1 -0
  7. package/dist/apollo-core/p-27928cb0.entry.js +1 -0
  8. package/dist/apollo-core/p-34438721.entry.js +1 -0
  9. package/dist/apollo-core/p-35c2f72d.entry.js +1 -0
  10. package/dist/apollo-core/p-368c81f1.entry.js +1 -0
  11. package/dist/apollo-core/p-36ba29da.entry.js +1 -0
  12. package/dist/apollo-core/p-406b27a8.entry.js +1 -0
  13. package/dist/apollo-core/p-5d63b4ce.entry.js +1 -0
  14. package/dist/apollo-core/{p-7eb86c63.entry.js → p-6a15f1e0.entry.js} +1 -1
  15. package/dist/apollo-core/p-8d692d05.entry.js +1 -0
  16. package/dist/apollo-core/{p-28d12fd3.entry.js → p-b61d7952.entry.js} +1 -1
  17. package/dist/apollo-core/{p-084d26ed.entry.js → p-ca127ee8.entry.js} +1 -1
  18. package/dist/apollo-core/p-d1c9c233.entry.js +1 -0
  19. package/dist/apollo-core/p-dc205893.entry.js +1 -0
  20. package/dist/apollo-core/p-e2a5d41c.entry.js +1 -0
  21. package/dist/cjs/apollo-core.cjs.js +1 -1
  22. package/dist/cjs/index-BQ97-AWw.js +10 -2
  23. package/dist/cjs/loader.cjs.js +1 -1
  24. package/dist/cjs/xpl-accordion.cjs.entry.js +2 -2
  25. package/dist/cjs/xpl-application-shell.cjs.entry.js +1 -1
  26. package/dist/cjs/{xpl-avatar_61.cjs.entry.js → xpl-avatar_54.cjs.entry.js} +238 -1683
  27. package/dist/cjs/xpl-button-row.cjs.entry.js +1 -1
  28. package/dist/cjs/xpl-calendar.cjs.entry.js +1 -1
  29. package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +2 -2
  30. package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +2 -2
  31. package/dist/cjs/xpl-dynamic-table.cjs.entry.js +1 -1
  32. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
  33. package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
  34. package/dist/cjs/xpl-large-card.cjs.entry.js +1 -1
  35. package/dist/cjs/xpl-main-nav.cjs.entry.js +1 -1
  36. package/dist/cjs/xpl-table-header-cell.cjs.entry.js +57 -0
  37. package/dist/cjs/xpl-table-header.cjs.entry.js +14 -0
  38. package/dist/cjs/xpl-toggle.cjs.entry.js +3 -3
  39. package/dist/cjs/xpl-toolbar.cjs.entry.js +2 -2
  40. package/dist/collection/collection-manifest.json +2 -7
  41. package/dist/collection/components/xpl-accordion/xpl-accordion.js +2 -2
  42. package/dist/collection/components/xpl-application-shell/xpl-application-shell.js +1 -1
  43. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +1 -1
  44. package/dist/collection/components/xpl-badge/xpl-badge.js +1 -1
  45. package/dist/collection/components/xpl-banner/xpl-banner.js +2 -2
  46. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +1 -1
  47. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +1 -1
  48. package/dist/collection/components/xpl-button/xpl-button.js +1 -1
  49. package/dist/collection/components/xpl-button-row/xpl-button-row.js +1 -1
  50. package/dist/collection/components/xpl-calendar/xpl-calendar.js +1 -1
  51. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +25 -25
  52. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +1 -1
  53. package/dist/collection/components/xpl-content-area/xpl-content-area.js +1 -1
  54. package/dist/collection/components/xpl-dashboard/xpl-dashboard.js +1 -1
  55. package/dist/collection/components/xpl-data-card/xpl-data-card.js +2 -2
  56. package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
  57. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -1
  58. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
  59. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +2 -2
  60. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +77 -7
  61. package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +1 -1
  62. package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
  63. package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
  64. package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
  65. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
  66. package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +53 -46
  67. package/dist/collection/components/xpl-icon/xpl-icon.js +2 -2
  68. package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +8 -8
  69. package/dist/collection/components/xpl-input/xpl-input-date/xpl-input-date.js +3 -3
  70. package/dist/collection/components/xpl-input/xpl-input-file/xpl-input-file.js +4 -4
  71. package/dist/collection/components/xpl-input/xpl-input-phone/xpl-input-phone.js +5 -5
  72. package/dist/collection/components/xpl-input/xpl-input-search/xpl-input-search.js +1 -1
  73. package/dist/collection/components/xpl-input/xpl-input-time/xpl-input-time.js +2 -2
  74. package/dist/collection/components/xpl-input/xpl-input.js +2 -2
  75. package/dist/collection/components/xpl-large-card/xpl-large-card.js +1 -1
  76. package/dist/collection/components/xpl-list/xpl-list.js +2 -2
  77. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +1 -1
  78. package/dist/collection/components/xpl-modal/xpl-modal.js +1 -1
  79. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +2 -2
  80. package/dist/collection/components/xpl-pagination/pagination.stories.js +18 -0
  81. package/dist/collection/components/xpl-pagination/xpl-pagination.js +7 -3
  82. package/dist/collection/components/xpl-panel/xpl-panel.js +2 -2
  83. package/dist/collection/components/xpl-popover/xpl-popover.js +4 -4
  84. package/dist/collection/components/xpl-progress-bar/xpl-progress-bar.js +2 -2
  85. package/dist/collection/components/xpl-progress-indicator/xpl-progress-indicator.js +1 -1
  86. package/dist/collection/components/xpl-radio/xpl-radio.js +3 -3
  87. package/dist/collection/components/xpl-secondary-nav/xpl-secondary-nav.js +1 -1
  88. package/dist/collection/components/xpl-select/xpl-select.js +58 -6
  89. package/dist/collection/components/xpl-side-nav/xpl-side-nav-item/xpl-side-nav-item.js +2 -2
  90. package/dist/collection/components/xpl-side-nav/xpl-side-nav.js +2 -2
  91. package/dist/collection/components/xpl-skeleton/xpl-skeleton.js +1 -1
  92. package/dist/collection/components/xpl-slideout/xpl-slideout.js +1 -1
  93. package/dist/collection/components/xpl-tab-panel/xpl-tab-panel.js +2 -2
  94. package/dist/collection/components/xpl-table/table.stories.js +67 -319
  95. package/dist/collection/components/xpl-table/xpl-table.js +151 -1456
  96. package/dist/collection/components/xpl-table-header/table-header.stories.js +126 -0
  97. package/dist/collection/components/xpl-table-header/xpl-table-header.js +7 -0
  98. package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +75 -0
  99. package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +188 -0
  100. package/dist/collection/components/xpl-tabs/xpl-tabs.js +5 -5
  101. package/dist/collection/components/xpl-tag/xpl-tag.js +2 -2
  102. package/dist/collection/components/xpl-toast/xpl-toast.js +2 -2
  103. package/dist/collection/components/xpl-toggle/xpl-toggle.js +3 -3
  104. package/dist/collection/components/xpl-toolbar/xpl-toolbar.js +2 -2
  105. package/dist/collection/components/xpl-tooltip/xpl-tooltip.js +1 -1
  106. package/dist/collection/components/xpl-top-nav/xpl-nav-header-menu/xpl-nav-header-menu.js +2 -2
  107. package/dist/collection/components/xpl-top-nav/xpl-top-nav-item/xpl-top-nav-item.js +2 -2
  108. package/dist/collection/components/xpl-top-nav/xpl-top-nav.js +5 -5
  109. package/dist/collection/components/xpl-utility-bar/xpl-utility-bar.js +1 -1
  110. package/dist/components/index.js +1 -1
  111. package/dist/components/xpl-accordion.js +1 -1
  112. package/dist/components/xpl-application-shell.js +1 -1
  113. package/dist/components/xpl-backdrop2.js +1 -1
  114. package/dist/components/xpl-badge2.js +1 -1
  115. package/dist/components/xpl-banner.js +1 -1
  116. package/dist/components/xpl-breadcrumb-item.js +1 -1
  117. package/dist/components/xpl-breadcrumbs.js +1 -1
  118. package/dist/components/xpl-button-row.js +1 -1
  119. package/dist/components/xpl-button2.js +1 -1
  120. package/dist/components/xpl-calendar.js +1 -1
  121. package/dist/components/xpl-checkbox2.js +1 -1
  122. package/dist/components/xpl-choicelist.js +1 -1
  123. package/dist/components/xpl-content-area.js +1 -1
  124. package/dist/components/xpl-dashboard.js +1 -1
  125. package/dist/components/xpl-data-card.js +1 -1
  126. package/dist/components/xpl-divider2.js +1 -1
  127. package/dist/components/xpl-dropdown-group2.js +1 -1
  128. package/dist/components/xpl-dropdown-heading2.js +1 -1
  129. package/dist/components/xpl-dropdown-option2.js +1 -1
  130. package/dist/components/xpl-dropdown2.js +1 -1
  131. package/dist/components/xpl-dynamic-table-cell.js +1 -1
  132. package/dist/components/xpl-dynamic-table-row.js +1 -1
  133. package/dist/components/xpl-dynamic-table.js +1 -1
  134. package/dist/components/xpl-grid-item.js +1 -1
  135. package/dist/components/xpl-grid.js +1 -1
  136. package/dist/components/xpl-header-accordion.js +1 -1
  137. package/dist/components/xpl-icon2.js +1 -1
  138. package/dist/components/xpl-input-date2.js +1 -1
  139. package/dist/components/xpl-input-file2.js +1 -1
  140. package/dist/components/xpl-input-search2.js +1 -1
  141. package/dist/components/xpl-input2.js +1 -1
  142. package/dist/components/xpl-large-card.js +1 -1
  143. package/dist/components/xpl-list.js +1 -1
  144. package/dist/components/xpl-main-nav.js +1 -1
  145. package/dist/components/xpl-modal.js +1 -1
  146. package/dist/components/xpl-nav-header-menu.js +1 -1
  147. package/dist/components/xpl-nav-item.js +1 -1
  148. package/dist/components/xpl-pagination.js +1 -1
  149. package/dist/components/xpl-panel.js +1 -1
  150. package/dist/components/xpl-popover2.js +1 -1
  151. package/dist/components/xpl-progress-bar.js +1 -1
  152. package/dist/components/xpl-progress-indicator.js +1 -1
  153. package/dist/components/xpl-radio2.js +1 -1
  154. package/dist/components/xpl-secondary-nav.js +1 -1
  155. package/dist/components/xpl-select2.js +1 -1
  156. package/dist/components/xpl-side-nav-item.js +1 -1
  157. package/dist/components/xpl-side-nav.js +1 -1
  158. package/dist/components/xpl-skeleton.js +1 -1
  159. package/dist/components/xpl-slideout.js +1 -1
  160. package/dist/components/xpl-tab-panel.js +1 -1
  161. package/dist/components/xpl-table-header-cell.js +1 -1
  162. package/dist/components/xpl-table-header.js +1 -1
  163. package/dist/components/xpl-table.js +1 -1
  164. package/dist/components/xpl-tabs.js +1 -1
  165. package/dist/components/xpl-tag2.js +1 -1
  166. package/dist/components/xpl-toast.js +1 -1
  167. package/dist/components/xpl-toggle.js +1 -1
  168. package/dist/components/xpl-toolbar.js +1 -1
  169. package/dist/components/xpl-tooltip2.js +1 -1
  170. package/dist/components/xpl-top-nav-item2.js +1 -1
  171. package/dist/components/xpl-top-nav.js +1 -1
  172. package/dist/components/xpl-utility-bar.js +1 -1
  173. package/dist/docs/xpl-checkbox/readme.md +5 -7
  174. package/dist/docs/xpl-dropdown/readme.md +13 -11
  175. package/dist/docs/xpl-dynamic-table/readme.md +19 -22
  176. package/dist/docs/xpl-dynamic-table-cell/readme.md +18 -20
  177. package/dist/docs/xpl-dynamic-table-row/readme.md +19 -21
  178. package/dist/docs/xpl-icon/readme.md +1 -1
  179. package/dist/docs/xpl-select/readme.md +17 -15
  180. package/dist/docs/xpl-table/readme.md +46 -110
  181. package/dist/docs/{xpl-table/xpl-table-header → xpl-table-header}/readme.md +13 -13
  182. package/dist/docs/xpl-table-header-cell/readme.md +47 -0
  183. package/dist/esm/apollo-core.js +1 -1
  184. package/dist/esm/index-C7bgJs6C.js +10 -2
  185. package/dist/esm/loader.js +1 -1
  186. package/dist/esm/xpl-accordion.entry.js +2 -2
  187. package/dist/esm/xpl-application-shell.entry.js +1 -1
  188. package/dist/esm/{xpl-avatar_61.entry.js → xpl-avatar_54.entry.js} +239 -1677
  189. package/dist/esm/xpl-button-row.entry.js +1 -1
  190. package/dist/esm/xpl-calendar.entry.js +1 -1
  191. package/dist/esm/xpl-dynamic-table-cell.entry.js +2 -2
  192. package/dist/esm/xpl-dynamic-table-row.entry.js +2 -2
  193. package/dist/esm/xpl-dynamic-table.entry.js +1 -1
  194. package/dist/esm/xpl-grid-item.entry.js +1 -1
  195. package/dist/esm/xpl-grid.entry.js +1 -1
  196. package/dist/esm/xpl-large-card.entry.js +1 -1
  197. package/dist/esm/xpl-main-nav.entry.js +1 -1
  198. package/dist/esm/xpl-table-header-cell.entry.js +55 -0
  199. package/dist/esm/xpl-table-header.entry.js +12 -0
  200. package/dist/esm/xpl-toggle.entry.js +3 -3
  201. package/dist/esm/xpl-toolbar.entry.js +2 -2
  202. package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +2 -2
  203. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +5 -0
  204. package/dist/types/components/xpl-header-accordion/xpl-header-accordion.d.ts +10 -9
  205. package/dist/types/components/xpl-pagination/pagination.stories.d.ts +13 -0
  206. package/dist/types/components/xpl-select/xpl-select.d.ts +3 -0
  207. package/dist/types/components/xpl-table/table.stories.d.ts +19 -161
  208. package/dist/types/components/xpl-table/xpl-table.d.ts +21 -123
  209. package/dist/types/components/{xpl-table/xpl-table-header → xpl-table-header}/table-header.stories.d.ts +16 -13
  210. package/dist/types/components/{xpl-table/xpl-table-header-cell → xpl-table-header-cell}/table-header-cell.stories.d.ts +20 -24
  211. package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +13 -0
  212. package/dist/types/components.d.ts +89 -391
  213. package/package.json +10 -1
  214. package/dist/apollo-core/p-146d5d55.entry.js +0 -1
  215. package/dist/apollo-core/p-16742606.entry.js +0 -1
  216. package/dist/apollo-core/p-3eb5eb7c.entry.js +0 -1
  217. package/dist/apollo-core/p-4882f0bd.entry.js +0 -1
  218. package/dist/apollo-core/p-64b34268.entry.js +0 -1
  219. package/dist/apollo-core/p-71b75f36.entry.js +0 -1
  220. package/dist/apollo-core/p-84254a24.entry.js +0 -1
  221. package/dist/apollo-core/p-9f2a0321.entry.js +0 -1
  222. package/dist/apollo-core/p-cde83ab0.entry.js +0 -1
  223. package/dist/apollo-core/p-e7363036.entry.js +0 -1
  224. package/dist/collection/components/xpl-table/utils/move-row-dom.js +0 -50
  225. package/dist/collection/components/xpl-table/utils/table-internal.js +0 -58
  226. package/dist/collection/components/xpl-table/xpl-table-body/xpl-table-body.js +0 -7
  227. package/dist/collection/components/xpl-table/xpl-table-cell/xpl-table-cell.js +0 -155
  228. package/dist/collection/components/xpl-table/xpl-table-footer/xpl-table-footer.js +0 -7
  229. package/dist/collection/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.js +0 -37
  230. package/dist/collection/components/xpl-table/xpl-table-header/table-header.stories.js +0 -131
  231. package/dist/collection/components/xpl-table/xpl-table-header/xpl-table-header.js +0 -7
  232. package/dist/collection/components/xpl-table/xpl-table-header-cell/table-header-cell.stories.js +0 -105
  233. package/dist/collection/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.js +0 -402
  234. package/dist/collection/components/xpl-table/xpl-table-row/xpl-table-row.js +0 -121
  235. package/dist/components/lifecycle.js +0 -1
  236. package/dist/components/xpl-table-body.d.ts +0 -11
  237. package/dist/components/xpl-table-body.js +0 -1
  238. package/dist/components/xpl-table-cell.d.ts +0 -11
  239. package/dist/components/xpl-table-cell.js +0 -1
  240. package/dist/components/xpl-table-cell2.js +0 -1
  241. package/dist/components/xpl-table-footer-cell.d.ts +0 -11
  242. package/dist/components/xpl-table-footer-cell.js +0 -1
  243. package/dist/components/xpl-table-footer-cell2.js +0 -1
  244. package/dist/components/xpl-table-footer.d.ts +0 -11
  245. package/dist/components/xpl-table-footer.js +0 -1
  246. package/dist/components/xpl-table-header-cell2.js +0 -1
  247. package/dist/components/xpl-table-row.d.ts +0 -11
  248. package/dist/components/xpl-table-row.js +0 -1
  249. package/dist/docs/xpl-table/xpl-table-body/readme.md +0 -10
  250. package/dist/docs/xpl-table/xpl-table-cell/readme.md +0 -33
  251. package/dist/docs/xpl-table/xpl-table-footer/readme.md +0 -10
  252. package/dist/docs/xpl-table/xpl-table-footer-cell/readme.md +0 -30
  253. package/dist/docs/xpl-table/xpl-table-header-cell/readme.md +0 -66
  254. package/dist/docs/xpl-table/xpl-table-row/readme.md +0 -19
  255. package/dist/types/components/xpl-table/utils/move-row-dom.d.ts +0 -3
  256. package/dist/types/components/xpl-table/utils/table-internal.d.ts +0 -8
  257. package/dist/types/components/xpl-table/xpl-table-body/xpl-table-body.d.ts +0 -3
  258. package/dist/types/components/xpl-table/xpl-table-cell/xpl-table-cell.d.ts +0 -11
  259. package/dist/types/components/xpl-table/xpl-table-footer/xpl-table-footer.d.ts +0 -3
  260. package/dist/types/components/xpl-table/xpl-table-footer-cell/xpl-table-footer-cell.d.ts +0 -4
  261. package/dist/types/components/xpl-table/xpl-table-header-cell/xpl-table-header-cell.d.ts +0 -32
  262. package/dist/types/components/xpl-table/xpl-table-row/xpl-table-row.d.ts +0 -13
  263. /package/dist/types/components/{xpl-table/xpl-table-header → xpl-table-header}/xpl-table-header.d.ts +0 -0
@@ -169,7 +169,7 @@ const Backdrop = class {
169
169
  this.relative = false;
170
170
  }
171
171
  render() {
172
- return (index.h(index.Host, { key: 'ce11926c0ef08f0ae9d77fecfa813f20b6eee229', class: {
172
+ return (index.h(index.Host, { key: '072fedf411c5d8671ec2d8a6ff639e5adf93e15c', class: {
173
173
  'xpl-backdrop': true,
174
174
  'xpl-backdrop--fixed': !this.relative,
175
175
  'xpl-backdrop--relative': this.relative,
@@ -206,7 +206,7 @@ const Badge = class {
206
206
  [`xpl-badge--size-${this.size}`]: !!this.size,
207
207
  [`xpl-badge--shape-${this.shape}`]: !this.dotOnly && !!this.shape,
208
208
  };
209
- return (index.h(index.Host, { key: '6d8b154300f5a676c58d8633c2b5f7514967f764' }, index.h("div", { key: 'bef0970eb3185b1afb08ece888b63509e69ff15d', class: className }, index.h("span", { key: '90e51d0f3d74a99268b9a4944a94b6c0096f1ea9', class: "xpl-badge__label" }, index.h("slot", { key: '5f13f42adbbcfc0698f25687ba27f4bb0c63d5a8' })))));
209
+ return (index.h(index.Host, { key: 'f1a45af398443a5330afe856ac2442aa34cadf24' }, index.h("div", { key: 'fecb691b2b11414de0a03e119dd63332ade79a3c', class: className }, index.h("span", { key: '6c4169ea3d4f0f7cdaa03841ec72ac15f9e209f3', class: "xpl-badge__label" }, index.h("slot", { key: 'c7d96b70e9bcd161c279bf943c2cbc7248e2a53e' })))));
210
210
  }
211
211
  };
212
212
 
@@ -271,13 +271,13 @@ const Banner = class {
271
271
  const actionState = this.getActionButtonState();
272
272
  const isHeadingPresent = !!((_c = this.heading) === null || _c === void 0 ? void 0 : _c.trim());
273
273
  const isDescPresent = !!((_d = this.description) === null || _d === void 0 ? void 0 : _d.trim());
274
- return (index.h(index.Host, { key: '01e821a96ff2f4f41050a524ed6ec76e8f8ae71c', class: {
274
+ return (index.h(index.Host, { key: '373b38c40719c248968ed93381309584f24697a9', class: {
275
275
  'xpl-banner': true,
276
276
  'xpl-banner--section': this.isSection,
277
277
  [`xpl-banner--${this.appearance}`]: true,
278
278
  'xpl-banner--truncate-desc': this.truncateDesc,
279
279
  'xpl-banner--no-icon': this.isSection && !this.hasIcon,
280
- }, role: "region", "aria-label": this.getAriaLabel() }, (!this.isSection || this.hasIcon) && (index.h("div", { key: 'e0b8fc78558cb0feff957deda21e9a6009a41ebc', class: "xpl-banner__icon", "aria-hidden": "true" }, index.h("xpl-icon", { key: 'b1ad22088243b609c67275091a6b7ec0f5bfcd2b', icon: this.getIcon(), size: 24 }))), index.h("div", { key: '9ae85de66f2092d2f689e881ebf5cb28b442a804', class: "xpl-banner__body" }, isHeadingPresent && index.h("p", { key: '5a4a146c870f4c12abe4a5ef1e5d7aa51d8e7507', class: "xpl-banner__heading" }, this.heading), isDescPresent && (index.h("p", { key: '115e1349f08a077a898556174c7f14c22e43eb8c', class: "xpl-banner__description", title: this.truncateDesc ? this.description : undefined }, this.description))), (hasAction || hasSecondaryAction) && (index.h("div", { key: 'd2ebd4a9f6bf5902958c071a476da8b5b2888c5c', class: "xpl-banner__actions" }, hasAction && (index.h("xpl-button", { key: '763ce0af40d4a9a5d62f18ee08085a8455819779', size: "xs", variant: actionVariant, state: actionState, onClick: () => this.action.emit() }, this.actionText)), hasSecondaryAction && (index.h("xpl-button", { key: 'd59e222b9eb5d766953d26609a48366a32499814', size: "xs", variant: actionVariant, state: actionState, onClick: () => this.secondaryAction.emit() }, this.secondaryActionText)))), this.isDismissible && (index.h("button", { key: 'ec7d24375a62f20c7309d7b49d88f6db1eb2a891', class: "xpl-banner__dismiss", type: "button", "aria-label": `Dismiss ${this.isSection ? 'section ' : ''}banner`, onClick: () => this.dismiss.emit() }, index.h("xpl-icon", { key: 'f45280a420a3556100cd0ed48c39124d400becd9', icon: "xmark", size: 24, "aria-hidden": "true" })))));
280
+ }, role: "region", "aria-label": this.getAriaLabel() }, (!this.isSection || this.hasIcon) && (index.h("div", { key: 'b12f8facbdad390e2069374163048099a33aa309', class: "xpl-banner__icon", "aria-hidden": "true" }, index.h("xpl-icon", { key: '35ee47db756bc0f6b6cd0a2b0cd890a4ec10ff7c', icon: this.getIcon(), size: 24 }))), index.h("div", { key: '8aaca62cbd7b3cf353bfb35fc2f679932f2b0ade', class: "xpl-banner__body" }, isHeadingPresent && index.h("p", { key: 'fded85ef43b5186704195312621a33b7b823d19d', class: "xpl-banner__heading" }, this.heading), isDescPresent && (index.h("p", { key: '1b7386b32891789f8cc425da922f7c3ee60fe5a6', class: "xpl-banner__description", title: this.truncateDesc ? this.description : undefined }, this.description))), (hasAction || hasSecondaryAction) && (index.h("div", { key: '0b4b8e89db7cc6c4a55e207cf0be1b36956fe243', class: "xpl-banner__actions" }, hasAction && (index.h("xpl-button", { key: 'c15e5cb0ff332f2ca809dcf912fc7a4c68d47538', size: "xs", variant: actionVariant, state: actionState, onClick: () => this.action.emit() }, this.actionText)), hasSecondaryAction && (index.h("xpl-button", { key: '6f20f721df8eb994ef9935d2c6f634b3460d9d77', size: "xs", variant: actionVariant, state: actionState, onClick: () => this.secondaryAction.emit() }, this.secondaryActionText)))), this.isDismissible && (index.h("button", { key: '2fab1fec767aaed2bb36ee2b40bcf84a48ad6ead', class: "xpl-banner__dismiss", type: "button", "aria-label": `Dismiss ${this.isSection ? 'section ' : ''}banner`, onClick: () => this.dismiss.emit() }, index.h("xpl-icon", { key: '7747d3e4aae5426d0e3344fb7aab92a4f003cf4e', icon: "xmark", size: 24, "aria-hidden": "true" })))));
281
281
  }
282
282
  };
283
283
 
@@ -290,7 +290,7 @@ const BreadcrumbItem = class {
290
290
  `;
291
291
  }
292
292
  render() {
293
- return (index.h(index.Host, { key: 'dd246c29fcb1afca4007299380a59b47c0a10c9d', class: "xpl-breadcrumb-item", role: "listitem" }, index.h("li", { key: 'b6df20888b3891241e52f0f2be14f1eedee2cac6', role: "none" }, index.h("slot", { key: 'f2f64effe0f58bb33bc983abfaa8b2996714e3b4' })), index.h("span", { key: '31c15dd296e6dab1d207a84179a4803b7366c1a2', innerHTML: this.chevron })));
293
+ return (index.h(index.Host, { key: '98314b8841ba9d900dbba227363865efb26faf4c', class: "xpl-breadcrumb-item", role: "listitem" }, index.h("li", { key: '26bf86067dc2348b6ca96243bd1f9513ca187a00', role: "none" }, index.h("slot", { key: '802b606cce1052ea7fb859260627d6c6801ed78f' })), index.h("span", { key: '22de35338bf4439a23f8c08a7ea46d1d4f2b68e8', innerHTML: this.chevron })));
294
294
  }
295
295
  };
296
296
 
@@ -299,7 +299,7 @@ const Breadcrumbs = class {
299
299
  index.registerInstance(this, hostRef);
300
300
  }
301
301
  render() {
302
- return (index.h(index.Host, { key: 'd4a4ae7bbf7f8eafc8a44b56c66983303e039d7e' }, index.h("nav", { key: '8e5decbdce778c1768e3412a59663cd37938f361', class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, index.h("ol", { key: '612620c37a84ad022b9da5cdb884410a4df4dd29', role: "list" }, index.h("slot", { key: 'ae6cfc4f4e65ba7ca755fa7d9eb3751aae8905ff' })))));
302
+ return (index.h(index.Host, { key: '36533f6524e01aed62e293ebe93d8eea34b6b59a' }, index.h("nav", { key: '6a5562e639044f9d9d12a6365df69c5181f5bbba', class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, index.h("ol", { key: '99463e4808425aa8478a5e8fa2a113831eae1ecf', role: "list" }, index.h("slot", { key: 'f4d20df3a834f100663786d47881f742c9691969' })))));
303
303
  }
304
304
  };
305
305
 
@@ -350,7 +350,7 @@ const Button = class {
350
350
  }
351
351
  render() {
352
352
  var _a;
353
- return (index.h(index.Host, { key: 'dc9baff2fca5d300d4f10d854669fe44ce9dcf2b', class: {
353
+ return (index.h(index.Host, { key: 'fc2207b2f07ecccd8c076846406b7c5d2ed6854d', class: {
354
354
  'xpl-button': true,
355
355
  [`xpl-button--${this.size}`]: true,
356
356
  [`xpl-button--${this.variant}`]: true,
@@ -388,14 +388,14 @@ const Checkbox = class {
388
388
  }
389
389
  render() {
390
390
  var _a;
391
- return (index.h(index.Host, { key: '278efc899d85f3c69d78eae9c893dd95a5c1a0fe', class: {
391
+ return (index.h(index.Host, { key: 'a73acf5a3394c8f1060f9095682093a1db3b09db', class: {
392
392
  'xpl-checkbox-radio-container': true,
393
393
  styled: this.styled,
394
394
  disabled: this.disabled,
395
- } }, index.h("input", { key: '40ff6da70e68b75c0fda7df23eccfd04c152a4e1', class: "xpl-checkbox", type: "checkbox", "aria-label": ((_a = this.ariaLabel) !== null && _a !== void 0 ? _a : '').trim() || undefined, checked: this.checked, "data-id": this.dataId, disabled: this.disabled, id: this.id, indeterminate: this.indeterminate, onChange: this.onChange, name: this.name, required: this.required, value: this.value }), index.h("label", { key: '19ebb91dfdb4514b563bb20b7fa2ca06294d2d45', class: {
395
+ } }, index.h("input", { key: '7da5f17d827bfb6d63a4933977daee75c9845899', class: "xpl-checkbox", type: "checkbox", "aria-label": ((_a = this.ariaLabel) !== null && _a !== void 0 ? _a : '').trim() || undefined, checked: this.checked, "data-id": this.dataId, disabled: this.disabled, id: this.id, indeterminate: this.indeterminate, onChange: this.onChange, name: this.name, required: this.required, value: this.value }), index.h("label", { key: '86669521b030289b55279bd6fceecb5d060c7138', class: {
396
396
  'xpl-label': true,
397
397
  'xpl-label--disabled': this.disabled,
398
- }, htmlFor: this.id }, index.h("slot", { key: 'ceb7f27e19f4256b3c5317e17f4bb8512c6962a6' }), this.description && (index.h("small", { key: '78a5d2ac044006361a8ce075a2ad8d872f384203', class: {
398
+ }, htmlFor: this.id }, index.h("slot", { key: 'b40aafb664cbac2092938afd45683cfc0313beac' }), this.description && (index.h("small", { key: '06e2245639b577f5d09afdf9000e43d076758e80', class: {
399
399
  'xpl-description': true,
400
400
  'xpl-description--disabled': this.disabled,
401
401
  } }, this.description)))));
@@ -440,7 +440,7 @@ const Choicelist = class {
440
440
  this.onChoicesPropChange(this.choices);
441
441
  }
442
442
  render() {
443
- return (index.h(index.Host, { key: '3e1881fd40ea2aecefbb24951920b92ac08ef029', class: "xpl-choicelist-container" }, this.heading !== undefined || this.description !== undefined ? (index.h("div", { class: "xpl-choicelist-heading" }, this.heading && index.h("h3", null, this.heading), this.description && index.h("p", null, this.description))) : null, this.choices && (index.h("ul", { key: '052b5c72e4bc37b84939b639e070b8e692064ffe', class: {
443
+ return (index.h(index.Host, { key: '003270ebbe4ccd9c204774f2c41302e64697a358', class: "xpl-choicelist-container" }, this.heading !== undefined || this.description !== undefined ? (index.h("div", { class: "xpl-choicelist-heading" }, this.heading && index.h("h3", null, this.heading), this.description && index.h("p", null, this.description))) : null, this.choices && (index.h("ul", { key: '388763663e1e9dc48f53b4e8569c3c58942fb631', class: {
444
444
  'xpl-choicelist': true,
445
445
  'xpl-choicelist--styled': this.styled,
446
446
  } }, this.choices.map((choice, i) => {
@@ -469,7 +469,7 @@ const ContentArea = class {
469
469
  this.size = 'wide';
470
470
  }
471
471
  render() {
472
- return (index.h(index.Host, { key: 'cef99f9f6ab92587151d12cf86b67fedba498b66' }, index.h("main", { key: '17b27ecd7223283294ea7536a7cfe9c6580c4ec4', class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, index.h("div", { key: '566d17a37f8389b10d95d2db96c4df1e3e0a01ec', class: "xpl-content-area" }, index.h("slot", { key: 'f084437566dc11ac51cd57e514ebb3bade2826e6' })))));
472
+ return (index.h(index.Host, { key: '2fe4c1c077c12e47600c737cc9266ae2eff8aaec' }, index.h("main", { key: '2e6c6f4b83cea96d629bb5af65c4ce6a4d20570e', class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, index.h("div", { key: '033e707fbc48ae523fafb25dd2952d3de9214908', class: "xpl-content-area" }, index.h("slot", { key: '04afc15969c2b1fb7e2feb3d8ae46248ee0f6e31' })))));
473
473
  }
474
474
  };
475
475
 
@@ -478,7 +478,7 @@ const Dashboard = class {
478
478
  index.registerInstance(this, hostRef);
479
479
  }
480
480
  render() {
481
- return (index.h(index.Host, { key: '7894283eaf23b979cd2f30bdd3dafee98d2a82e0' }, index.h("dl", { key: '0e67c4909212d1ce954d2eef615443179925c1bf', class: "xpl-dashboard" }, index.h("slot", { key: '420cf5e409a1699e3b92b4deb38d49fca67caa50' }))));
481
+ return (index.h(index.Host, { key: 'ceeb8b27d9537c70e88360de21238c9ce2a3f90b' }, index.h("dl", { key: '3c4fcb92f472f14885053a1cb1db893618a6d8a8', class: "xpl-dashboard" }, index.h("slot", { key: 'fe4fa8fdec2ce84bdedc7aa404ab647abd189d11' }))));
482
482
  }
483
483
  };
484
484
 
@@ -515,8 +515,8 @@ const DataCard = class {
515
515
  : this.smallStatVariant === 'negative'
516
516
  ? 'arrow-down-right'
517
517
  : 'dash';
518
- return (index.h(index.Host, { key: '15499953647bf4b8c38c98b2beafbc30adececd3', role: "group", class: `xpl-data-card ${this.link ? 'xpl-data-card__link' : ''}`, tabindex: "0" }, index.h("dt", { key: '6b4ac5e8e9fdffa254618b70f8ca4abb5c244361', class: headerClasses }, index.h("header", { key: '398ae3fcc452fe3281b006497cd5bca10d5405f3' }, !!this.leadingIcon && this.icon && (index.h("span", { key: '872e3b75a6cb7f3b6ae28f16da84b7264aeeb1e7', class: `xpl-data-card__icon--${this.variant}` }, index.h("xpl-icon", { key: '23452cb159ee169040132182e0c7701d6f537c61', icon: this.icon, "background-color": bgColorHue, size: 20 }))), index.h("slot", { key: '492cec94080ea654732e8a14214d78bcf844abf6', name: "title" }, this.name)), this.link && (index.h("span", { key: '2c31f2d7e9c96b81465a855e156504ce825c9f97', class: "xpl-data-card__header-arrow" }, index.h("xpl-icon", { key: '1b5f695dc1062c8934569924334aafeb0c4f50d5', icon: "chevron-right", size: 16 })))), index.h("dd", { key: '6b45e5c1e3bb58fb2a690a633ad601694917b2fb', class: "xpl-data-card__body" }, index.h("div", { key: 'a6d27211c38c758f7cfb59d5597ac4f0c991bd31', class: "xpl-data-card__left" }, index.h("span", { key: '92f23b34ba9d72e934c6db3d120ab6e8d3ccfe97', class: "xpl-data-card-stat xpl-data-card-stat--long" }, this.stat), this.tooltipTextStat ? (index.h("xpl-tooltip", { text: this.tooltipTextStat }, index.h("div", { class: "xpl-data-card-stat xpl-data-card-stat--short" }, this.shortStat ? this.shortStat : this.stat))) : (index.h("div", { class: "xpl-data-card-stat xpl-data-card-stat--short" }, index.h("abbr", { title: this.stat }, this.shortStat ? this.shortStat : this.stat))), this.smallStatVariant ? (this.tooltipTextSmallStat ? (index.h("xpl-tooltip", { text: this.tooltipTextSmallStat }, index.h("div", { class: `xpl-data-card-stat xpl-data-card-stat--small ${this.smallStatVariant}` }, index.h("xpl-icon", { icon: smallStatIcon, size: 16 }), this.smallStat))) : (index.h("div", { class: `xpl-data-card-stat xpl-data-card-stat--small ${this.smallStatVariant}` }, index.h("xpl-icon", { icon: smallStatIcon, size: 16 }), this.smallStat))) : (this.smallStatIcon &&
519
- (this.tooltipTextSmallStat ? (index.h("xpl-tooltip", { text: this.tooltipTextSmallStat }, index.h("div", { class: "xpl-data-card-stat xpl-data-card-stat--small" }, index.h("xpl-icon", { icon: this.smallStatIcon, size: 16 }), this.smallStat))) : (index.h("div", { class: "xpl-data-card-stat xpl-data-card-stat--small" }, index.h("xpl-icon", { icon: this.smallStatIcon, size: 16 }), this.smallStat)))), !!this.detail && index.h("span", { key: 'c776c1bb00bca03edbe6e5ed60f712b830ba40e5', class: "xpl-data-card__detail" }, this.detail)), hasContentSlot && (index.h("div", { key: '5d0acee9071c6356830c6f55dd5066ac68bbc356', class: "xpl-data-card__right" }, index.h("slot", { key: 'c513a4cd650d309fdc06045e02315fdab9256eae', name: contentSlot }))))));
518
+ return (index.h(index.Host, { key: '917b6ae82a30b849b100e878dc6be08eb4171214', role: "group", class: `xpl-data-card ${this.link ? 'xpl-data-card__link' : ''}`, tabindex: "0" }, index.h("dt", { key: '21573d19d14f861eea6562529f78e93affc1e5d2', class: headerClasses }, index.h("header", { key: '1af52bd082f4d12239db85e78eaf74ed2eb7e027' }, !!this.leadingIcon && this.icon && (index.h("span", { key: 'dfdcc25ae67fdc766ee3075a479fbfeeac2561ab', class: `xpl-data-card__icon--${this.variant}` }, index.h("xpl-icon", { key: '4072018714c05bd5bae20bfb9e5b6a04561474da', icon: this.icon, "background-color": bgColorHue, size: 20 }))), index.h("slot", { key: 'f81204887ad6c229cb50e8d3ff654c1aa4703368', name: "title" }, this.name)), this.link && (index.h("span", { key: '6d8d61f8611fdbc5cd09fc20ba15194e0e1e7b56', class: "xpl-data-card__header-arrow" }, index.h("xpl-icon", { key: '863e66734bbbd6aa178f140b22f8afb3dd401127', icon: "chevron-right", size: 16 })))), index.h("dd", { key: '08a5e4af6873c267336f7daff6d3455e75a2883e', class: "xpl-data-card__body" }, index.h("div", { key: 'ec8ff889fb93d99e7ef51361e041edbaaaf5cd62', class: "xpl-data-card__left" }, index.h("span", { key: '4787e6aadc3832830fe707ffc08e5614a7abde7b', class: "xpl-data-card-stat xpl-data-card-stat--long" }, this.stat), this.tooltipTextStat ? (index.h("xpl-tooltip", { text: this.tooltipTextStat }, index.h("div", { class: "xpl-data-card-stat xpl-data-card-stat--short" }, this.shortStat ? this.shortStat : this.stat))) : (index.h("div", { class: "xpl-data-card-stat xpl-data-card-stat--short" }, index.h("abbr", { title: this.stat }, this.shortStat ? this.shortStat : this.stat))), this.smallStatVariant ? (this.tooltipTextSmallStat ? (index.h("xpl-tooltip", { text: this.tooltipTextSmallStat }, index.h("div", { class: `xpl-data-card-stat xpl-data-card-stat--small ${this.smallStatVariant}` }, index.h("xpl-icon", { icon: smallStatIcon, size: 16 }), this.smallStat))) : (index.h("div", { class: `xpl-data-card-stat xpl-data-card-stat--small ${this.smallStatVariant}` }, index.h("xpl-icon", { icon: smallStatIcon, size: 16 }), this.smallStat))) : (this.smallStatIcon &&
519
+ (this.tooltipTextSmallStat ? (index.h("xpl-tooltip", { text: this.tooltipTextSmallStat }, index.h("div", { class: "xpl-data-card-stat xpl-data-card-stat--small" }, index.h("xpl-icon", { icon: this.smallStatIcon, size: 16 }), this.smallStat))) : (index.h("div", { class: "xpl-data-card-stat xpl-data-card-stat--small" }, index.h("xpl-icon", { icon: this.smallStatIcon, size: 16 }), this.smallStat)))), !!this.detail && index.h("span", { key: '2060dba53f12917e37747a6bc52c7f03fe4dadc7', class: "xpl-data-card__detail" }, this.detail)), hasContentSlot && (index.h("div", { key: '7a091cce8bc0abae2af7b15d6d1a63acd16854c5', class: "xpl-data-card__right" }, index.h("slot", { key: 'd83790136435a0d5427fd746d2cba5a08cf914eb', name: contentSlot }))))));
520
520
  }
521
521
  get el() { return index.getElement(this); }
522
522
  static get watchers() { return {
@@ -536,7 +536,7 @@ const Divider = class {
536
536
  render() {
537
537
  let className = 'xpl-divider';
538
538
  className += ` xpl-divider--${this.tier}`;
539
- return (index.h(index.Host, { key: 'a0b934233c1afba99b2d3691a6ea14d3335e4119', class: className }, index.h("span", { key: '8d701723f174d846e717cd030c4faf72ae938da8' }, index.h("slot", { key: '5017353de8a9917358c9ba4194fe5a575720f8f5' }))));
539
+ return (index.h(index.Host, { key: '213dc1893d64e06256ef2958b59b8377428d81d4', class: className }, index.h("span", { key: '2e03654076b9b76f2ce9e8475bb44068170c8a80' }, index.h("slot", { key: '5af40b6963beddbd0d1fe5fd05a9e62274ce3418' }))));
540
540
  }
541
541
  };
542
542
 
@@ -2265,16 +2265,19 @@ const Dropdown = class {
2265
2265
  this.closeOnSelect = true;
2266
2266
  this.mode = 'single';
2267
2267
  this.anchorToTrigger = false;
2268
+ this.placement = 'bottom-start';
2268
2269
  this.selectOnFocus = false;
2269
2270
  this.cleanupAutoUpdate = null;
2270
2271
  this.updateDropdownPosition = async (triggerEl) => {
2271
- var _a;
2272
+ var _a, _b;
2272
2273
  const { x, y, placement, middlewareData } = await computePosition(triggerEl, this.hostElement, {
2273
2274
  strategy: 'fixed',
2274
- placement: 'bottom-start',
2275
+ placement: this.placement,
2275
2276
  middleware: [
2276
2277
  offset(4),
2277
- flip(),
2278
+ flip(((_a = this.flipFallbackPlacements) === null || _a === void 0 ? void 0 : _a.length)
2279
+ ? { fallbackPlacements: this.flipFallbackPlacements }
2280
+ : {}),
2278
2281
  size({
2279
2282
  apply: ({ availableHeight, rects }) => {
2280
2283
  const listEl = this.hostElement.querySelector('.xpl-dropdown-list');
@@ -2310,7 +2313,7 @@ const Dropdown = class {
2310
2313
  });
2311
2314
  if (!this.cleanupAutoUpdate)
2312
2315
  return;
2313
- if ((_a = middlewareData.hide) === null || _a === void 0 ? void 0 : _a.referenceHidden) {
2316
+ if ((_b = middlewareData.hide) === null || _b === void 0 ? void 0 : _b.referenceHidden) {
2314
2317
  this.isOpen = false;
2315
2318
  return;
2316
2319
  }
@@ -2342,6 +2345,16 @@ const Dropdown = class {
2342
2345
  this.startPositioning();
2343
2346
  }
2344
2347
  }
2348
+ onFlipFallbackPlacementsChanged() {
2349
+ if (this.isOpen && this.anchorToTrigger) {
2350
+ this.startPositioning();
2351
+ }
2352
+ }
2353
+ onPlacementChanged() {
2354
+ if (this.isOpen && this.anchorToTrigger) {
2355
+ this.startPositioning();
2356
+ }
2357
+ }
2345
2358
  onTriggerIdChanged() {
2346
2359
  if (this.isOpen) {
2347
2360
  this.startPositioning();
@@ -2469,18 +2482,24 @@ const Dropdown = class {
2469
2482
  var { groupName, options: opts, subtitle } = _a, properties = __rest$1(_a, ["groupName", "options", "subtitle"]);
2470
2483
  return groupName ? (index.h("xpl-dropdown-group", Object.assign({ groupName: groupName, options: opts }, properties))) : (index.h("xpl-dropdown-option", Object.assign({ subtitle: subtitle }, properties)));
2471
2484
  });
2472
- return (index.h(index.Host, { key: 'ef1637b50d96200219f93a992cecd838bdc37ae7', "aria-expanded": isOpen ? 'true' : 'false', class: {
2485
+ return (index.h(index.Host, { key: '1ef465611f9a8501af41c17523352714a7921f29', "aria-expanded": isOpen ? 'true' : 'false', class: {
2473
2486
  'xpl-dropdown': true,
2474
2487
  'xpl-dropdown--multi': mode === 'multi',
2475
2488
  'xpl-dropdown--open': isOpen,
2476
2489
  'xpl-dropdown--anchor-to-trigger': this.anchorToTrigger,
2477
- }, role: "listbox" }, index.h("slot", { key: '69889998dda0b69e3e582b089baf295c8cfca39d', name: "header" }), index.h("ul", { key: 'dcb7e840e724ebae950f8c85fca142bcf767cc5d', class: "xpl-dropdown-list" }, mappedOptions || index.h("slot", { key: 'b33fd8bb6a1871db5e04173f0ad55a6485ee474a', name: "options" }))));
2490
+ }, role: "listbox" }, index.h("slot", { key: '118c8b34e72aa6ab018e6fa9ff29a18ae540b89e', name: "header" }), index.h("ul", { key: '01544e6aa8d785c48b4f677de102efe4ecc7b53a', class: "xpl-dropdown-list" }, mappedOptions || index.h("slot", { key: 'f70619995bed02540cef11deaeb6c3e5704165ff', name: "options" }))));
2478
2491
  }
2479
2492
  get hostElement() { return index.getElement(this); }
2480
2493
  static get watchers() { return {
2481
2494
  "anchorToTrigger": [{
2482
2495
  "onAnchorToTriggerChanged": 0
2483
2496
  }],
2497
+ "flipFallbackPlacements": [{
2498
+ "onFlipFallbackPlacementsChanged": 0
2499
+ }],
2500
+ "placement": [{
2501
+ "onPlacementChanged": 0
2502
+ }],
2484
2503
  "triggerId": [{
2485
2504
  "onTriggerIdChanged": 0
2486
2505
  }],
@@ -2517,7 +2536,7 @@ const DropdownGroup = class {
2517
2536
  var { groupName: optsGroupName } = _a, properties = __rest(_a, ["groupName"]);
2518
2537
  return optsGroupName ? (index.h("xpl-dropdown-group", Object.assign({ label: optsGroupName }, properties))) : (index.h("xpl-dropdown-option", Object.assign({}, properties)));
2519
2538
  });
2520
- return (index.h(index.Host, { key: 'a33169d78e635bb53987322f02869ffc1f1a9908', role: "group", "aria-label": groupName }, index.h("li", { key: '58a1ff78bb923fec60eb51ef05a2026e03e3058b', class: "xpl-dropdown-list-item" }, index.h("xpl-dropdown-heading", { key: '6d8556e1d96cbfccd61038e5089e9669917b919e', label: groupName }), index.h("ul", { key: 'dd485e18b79920d9992e506fe83b36fcadb9e020', class: "xpl-dropdown-list" }, mappedOptions || index.h("slot", { key: '2eca2f6aa7c44aacdb67c3658029822b4ba1c0aa', name: "options" })))));
2539
+ return (index.h(index.Host, { key: 'b872cfc0a8eb2e3542f07f6ae17ebc15b6f965ab', role: "group", "aria-label": groupName }, index.h("li", { key: '8e475e45b5040bd78c7d37f8c58b0689a508f067', class: "xpl-dropdown-list-item" }, index.h("xpl-dropdown-heading", { key: '3b7b984646bdcc502aca2260a0b59494e0884f6c', label: groupName }), index.h("ul", { key: 'c75e710ebe06a23aacca57f34ce286516c98a8c5', class: "xpl-dropdown-list" }, mappedOptions || index.h("slot", { key: '6b72762b22f316561f7614e4841018c019a60681', name: "options" })))));
2521
2540
  }
2522
2541
  };
2523
2542
 
@@ -2526,7 +2545,7 @@ const DropdownHeading = class {
2526
2545
  index.registerInstance(this, hostRef);
2527
2546
  }
2528
2547
  render() {
2529
- return (index.h(index.Host, { key: '9b05e54ae226524434ac8485c51e7fccd4e5fe9e', class: { 'xpl-dropdown-heading': true }, role: "presentation" }, index.h("span", { key: 'c5ada81fbed76834515cff75f1fd1ce87b2ccbe3' }, this.label || index.h("slot", { key: 'dfe135bf2499e858e75ab1e87793ae75eb0982c6', name: "heading" }))));
2548
+ return (index.h(index.Host, { key: '70e5556188bd87fe5842256e4e145c3585f73409', class: { 'xpl-dropdown-heading': true }, role: "presentation" }, index.h("span", { key: '2d45f0191d9b158641da794ee1b9f246f9659717' }, this.label || index.h("slot", { key: '21cc81673e6a37f4b7ff896d12bd94916c3a92e7', name: "heading" }))));
2530
2549
  }
2531
2550
  };
2532
2551
 
@@ -2583,11 +2602,11 @@ const DropdownOptionCpnt = class {
2583
2602
  }
2584
2603
  render() {
2585
2604
  const { label, isSelected, isDisabled, value, subtitle, icon } = this;
2586
- return (index.h(index.Host, { key: '4ff7cc350e34059ad4df757b88112756c7f5b83e', class: {
2605
+ return (index.h(index.Host, { key: '838f64dba15bc8d6c2f65a8685365c5618c24d5f', class: {
2587
2606
  'xpl-dropdown-option': true,
2588
2607
  'xpl-dropdown-option--disabled': isDisabled,
2589
2608
  'xpl-dropdown-option--selected': isSelected,
2590
- }, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected, value: value }, index.h("li", { key: 'a014d09116703f5477a48cace194ba1beef602d5', class: "xpl-dropdown-list-item" }, icon && (index.h("xpl-icon", { key: 'af16591b7f1195351facaafa67c07368ce42d072', class: "xpl-dropdown-list-item__icon", icon: icon, size: 20 })), label || index.h("slot", { key: '72c0dbd67ab7930924cb1ef3ee9f0b4b53cf28a6', name: "option" }), subtitle && index.h("span", { key: '0893e031740ebdd8fc8ca7de2cb10d0b4d7c95ae', class: "xpl-dropdown-list-item__subtitle" }, subtitle))));
2609
+ }, role: "option", "aria-checked": isSelected, "aria-disabled": isDisabled, "aria-selected": isSelected, value: value }, index.h("li", { key: 'bc4b23054cd73a95ff5cf167c4195563a9e318ec', class: "xpl-dropdown-list-item" }, icon && (index.h("xpl-icon", { key: '797d92d1d80cb8c33500d8dfe8b1bf9396c767ca', class: "xpl-dropdown-list-item__icon", icon: icon, size: 20 })), label || index.h("slot", { key: '7a590a3abae38e7934f703929895be152b01816d', name: "option" }), subtitle && index.h("span", { key: '465fb73335df17864cd21e067f26cdba85d8135c', class: "xpl-dropdown-list-item__subtitle" }, subtitle))));
2591
2610
  }
2592
2611
  get hostElement() { return index.getElement(this); }
2593
2612
  };
@@ -2595,13 +2614,13 @@ const DropdownOptionCpnt = class {
2595
2614
  const HeaderAccordion = class {
2596
2615
  constructor(hostRef) {
2597
2616
  index.registerInstance(this, hostRef);
2598
- this.expanded = false;
2599
- this.parentChecked = false;
2600
- this.parentIndeterminate = false;
2601
- this.disabled = false;
2602
- this.hasCheckbox = true;
2603
2617
  this.initialExpanded = false;
2618
+ this.disabled = false;
2604
2619
  this.selectedCount = -1;
2620
+ this.hasCheckbox = true;
2621
+ this.expanded = this.initialExpanded;
2622
+ this.parentChecked = false;
2623
+ this.parentIndeterminate = false;
2605
2624
  this.toggleAccordion = () => {
2606
2625
  this.expanded = !this.expanded;
2607
2626
  };
@@ -2615,24 +2634,19 @@ const HeaderAccordion = class {
2615
2634
  });
2616
2635
  };
2617
2636
  }
2618
- watchSelectedCount(selectedCount) {
2619
- if (selectedCount > -1) {
2620
- this.updateParentCheckbox(selectedCount);
2637
+ applyBorderRadiusToLastRow() {
2638
+ var _a;
2639
+ if (this.expanded) {
2640
+ const rows = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('xpl-dynamic-table-row');
2641
+ const lastRow = rows[rows.length - 1];
2642
+ const cells = lastRow === null || lastRow === void 0 ? void 0 : lastRow.querySelectorAll('xpl-dynamic-table-cell');
2643
+ cells[0].style.borderBottomLeftRadius = '0.5rem';
2644
+ cells[cells.length - 1].style.borderBottomRightRadius = '0.5rem';
2621
2645
  }
2622
2646
  }
2623
- componentWillLoad() {
2624
- this.expanded = this.initialExpanded;
2625
- }
2626
- componentDidLoad() {
2627
- const initialCheckboxesValue = this.selectedCount > -1 ? this.selectedCount : 0;
2628
- this.updateParentCheckbox(initialCheckboxesValue);
2629
- }
2630
- handleChildCheckboxChange() {
2631
- var _a;
2632
- if (this.selectedCount === -1) {
2633
- const childCheckboxes = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="region"] xpl-checkbox input:not([disabled])');
2634
- const checkedCount = Array.from(childCheckboxes).filter((checkbox) => checkbox.checked).length;
2635
- this.updateParentCheckbox(checkedCount);
2647
+ watchSelectedCount(selectedCount, _previousCount) {
2648
+ if (selectedCount > -1) {
2649
+ this.updateParentCheckbox(selectedCount);
2636
2650
  }
2637
2651
  }
2638
2652
  updateParentCheckbox(selectedCount) {
@@ -2651,11 +2665,23 @@ const HeaderAccordion = class {
2651
2665
  this.parentIndeterminate = true;
2652
2666
  }
2653
2667
  }
2668
+ handleChildCheckboxChange() {
2669
+ var _a;
2670
+ if (this.selectedCount === -1) {
2671
+ const childCheckboxes = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="region"] xpl-checkbox input:not([disabled])');
2672
+ const checkedCount = Array.from(childCheckboxes).filter((checkbox) => checkbox.checked).length;
2673
+ this.updateParentCheckbox(checkedCount);
2674
+ }
2675
+ }
2676
+ componentDidLoad() {
2677
+ const initialCheckoxesValue = this.selectedCount > -1 ? this.selectedCount : 0;
2678
+ this.updateParentCheckbox(initialCheckoxesValue);
2679
+ }
2680
+ componentWillRender() {
2681
+ this.applyBorderRadiusToLastRow();
2682
+ }
2654
2683
  render() {
2655
- return (index.h(index.Host, { key: '216b10c02e1248c374ec646d30f835163b9b7792', class: {
2656
- 'xpl-header-accordion': true,
2657
- 'xpl-header-accordion--expanded': this.expanded,
2658
- } }, index.h("div", { key: '41cbb9358a5d76f44f135d76c945fe801cafc474', class: `header-accordion header-accordion--${this.expanded ? 'expanded' : 'collapsed'}` }, this.hasCheckbox && (index.h("xpl-checkbox", { key: 'c939d100f687b14455424ee3f0b6bdfd7de785bb', class: "xpl-header-accordion__parent-checkbox", checked: this.parentChecked, disabled: this.disabled, indeterminate: this.parentIndeterminate, onCheckboxChange: (event) => this.handleParentCheckboxChange(event.detail) })), index.h("button", { key: '4d98d8d75b4c7c7ba8e50ce6d43ed3b83919d624', "aria-expanded": this.expanded, "aria-controls": this.contentId, class: "toggle-area", onClick: this.toggleAccordion, type: "button" }, index.h("slot", { key: 'd9c993b7e8e6cf0b46014d6c535a52c84386b8ed', name: "title" }), index.h("xpl-icon", { key: '58d114ae4dd93c9ec15e3d74cfb2d33c6c1b57cb', size: 20, icon: "chevron-down", class: this.expanded && 'rotate' }))), index.h("div", { key: '46a98c094621ec02c9416bcfa7a2d33e6ce468d4', id: this.contentId, role: "region", class: !this.expanded ? 'content--hidden' : 'content--shown' }, index.h("slot", { key: '7966e352ec17125afa59a7590dbc8e9372a39f41', name: "content" }))));
2684
+ return (index.h(index.Host, { key: '33b59f238ef5eabce7a83dec5e189459038ac2e0', class: "xpl-header-accordion" }, index.h("div", { key: '1269fe93be898a0300a1c840ad8919608c86bbff', class: `header-accordion header-accordion--${this.expanded ? 'expanded' : 'collapsed'}` }, this.hasCheckbox && (index.h("xpl-checkbox", { key: '16a93cbaab64072990502ed7d1bc2a496ad31425', class: "xpl-header-accordion__parent-checkbox", checked: this.parentChecked, disabled: this.disabled, indeterminate: this.parentIndeterminate, onCheckboxChange: (event) => this.handleParentCheckboxChange(event.detail) })), index.h("button", { key: '00e7024adcd3c8cef52cc5d11be8e4dc6319c1a8', "aria-expanded": this.expanded, "aria-controls": this.contentId, class: "toggle-area", onClick: this.toggleAccordion, type: "button" }, index.h("slot", { key: '16fc847fff7d27f73c589bff9670fdbdec9f58cc', name: "title" }), index.h("xpl-icon", { key: '44e27d19feb130c0903949d24a9c71f19f8475b6', size: 16, icon: "chevron-down", class: this.expanded && 'rotate' }))), index.h("div", { key: 'aa8bd514da7666ed09c72c5b271ea0eeda729ef8', id: this.contentId, role: "region", class: !this.expanded ? 'content--hidden' : 'content--shown' }, index.h("slot", { key: 'b8adf0af8ea58edad1036fc45277ef6621bc8fbb', name: "content" }))));
2659
2685
  }
2660
2686
  get el() { return index.getElement(this); }
2661
2687
  static get watchers() { return {
@@ -15561,10 +15587,10 @@ const Icon = class {
15561
15587
  let wrapperClasses = 'xpl-icon__wrapper ';
15562
15588
  if (this.backgroundColor)
15563
15589
  wrapperClasses += `xpl-icon__wrapper--with-background xpl-icon__wrapper--with-background--${this.backgroundColor}`;
15564
- return (index.h(index.Host, { key: 'cf84ae3e7ff4ae0b4ae8e1b1cf3b9331bc887c6c' }, index.h("figure", { key: '74e2727f9bf4ff8d710eff9b99632ffa669b84ae', class: wrapperClasses }, index.h("span", { key: '2d8be2bd318bd27e0bc4299cfe518668e424fffe', "aria-label": this.icon, role: "img", class: "xpl-icon", style: {
15590
+ return (index.h(index.Host, { key: '07522771501e6e67b0ae91bbee9cc8699d79fb8b' }, index.h("figure", { key: '2acf41e3e20ff3998050c948fcae5d0990cb706a', class: wrapperClasses }, index.h("span", { key: '560b2e62366ee0842442c29280a7e37b53edf2be', "aria-label": this.icon, role: "img", class: "xpl-icon", style: {
15565
15591
  width: `${options.width}px`,
15566
15592
  height: `${options.height}px`,
15567
- }, innerHTML: (_a = apolloIcons.getIcon(this.icon)) === null || _a === void 0 ? void 0 : _a.toSVG(options) }), index.h("figcaption", { key: '3c7a383da59ac0766500273799b203a28c7c7ff3' }, this.icon, " icon"))));
15593
+ }, innerHTML: (_a = apolloIcons.getIcon(this.icon)) === null || _a === void 0 ? void 0 : _a.toSVG(options) }), index.h("figcaption", { key: '256c0d05be8026b24a139f8bfff4f00c65112030' }, this.icon, " icon"))));
15568
15594
  }
15569
15595
  };
15570
15596
  Icon.style = xplIconCss();
@@ -15718,13 +15744,13 @@ const Input = class {
15718
15744
  this.characterCount > this.maxCharacterCount) {
15719
15745
  hasError = true;
15720
15746
  }
15721
- return (index.h(index.Host, { key: '21535bfebdb899ef3bf28ae4ac252ffcc8b03388', class: {
15747
+ return (index.h(index.Host, { key: '4b60d50e8b88f905777d76197afe181026ae5a94', class: {
15722
15748
  'xpl-input': true,
15723
15749
  'xpl-input--disabled': this.disabled,
15724
15750
  'xpl-input--error': hasError,
15725
15751
  'xpl-input--readonly': this.readonly,
15726
15752
  [`xpl-input--${this.type}`]: true,
15727
- } }, this.label && (index.h("label", { key: 'f72b35d866295451cf74832dd191853e77190590', class: "xpl-input-label", htmlFor: this._id }, this.label, this.description && index.h("small", { key: '712910cd0e7a1db84add0f1483fdc0da6c38a07d' }, this.description))), this.renderInput(), ((_a = this.error) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("label", { key: 'd8fcab92ea7f4989e9d2db1117e689ad9a26ced8', class: "xpl-input-error", htmlFor: this._id, id: `${this._id}-error` }, index.h("xpl-icon", { key: 'cbe4f7792ea586c78b7bc0f34d277bfa5977d50e', icon: "alert-circle", size: 16 }), index.h("span", { key: '91f88da21c48f0bf069e4c20205a81cfbb30fb1e' }, this.error)))));
15753
+ } }, this.label && (index.h("label", { key: '8b0dc01150607c2943ccc541b9acd3a7fa5d2143', class: "xpl-input-label", htmlFor: this._id }, this.label, this.description && index.h("small", { key: '8d1f988983fd54e3bc231c0a8091b4fe83ed8ab8' }, this.description))), this.renderInput(), ((_a = this.error) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("label", { key: '349492ed192e6105dd549634da1ce2c0371f5b9d', class: "xpl-input-error", htmlFor: this._id, id: `${this._id}-error` }, index.h("xpl-icon", { key: '7903d2f35033ceefcf94eff8081997b4aec3c1a9', icon: "alert-circle", size: 16 }), index.h("span", { key: 'e3d557f705647eb304b4bf38151dcf01c17fce15' }, this.error)))));
15728
15754
  }
15729
15755
  get el() { return index.getElement(this); }
15730
15756
  };
@@ -16092,16 +16118,16 @@ const InputColor = class {
16092
16118
  top: `${y}px`,
16093
16119
  background: `rgb(${r}, ${g}, ${b})`,
16094
16120
  };
16095
- return (index.h(index.Host, { key: '6f03535db1b5f451c74a0f1a1abc586605e5c9ca', class: "xpl-input-color" }, index.h("xpl-popover", { key: 'dae1f3a3b7afdd9231b6feba2d3711fbd1d6716e', disabled: this.disabled, display: "menu" }, index.h("div", { key: 'a8402cf534186d06f940c3e3436db17afb0152e8', slot: "trigger" }, index.h("div", { key: 'e9e775229df2a4f8afa252ef03c0a0cd15a93aa4', class: {
16121
+ return (index.h(index.Host, { key: 'f665a747f8938212d0c9ada4f251a9fc880ba82c', class: "xpl-input-color" }, index.h("xpl-popover", { key: 'eac77d1e9f350b3b0dd66001a7a596d156a75a53', disabled: this.disabled, display: "menu" }, index.h("div", { key: '73d1468c4261fd9a8e957189129cc660757d849f', slot: "trigger" }, index.h("div", { key: 'fa098788863247a7c87e4efe628b5b47f0bb3113', class: {
16096
16122
  'xpl-input-color__display': true,
16097
16123
  'xpl-input-color__display--disabled': this.disabled,
16098
16124
  'xpl-input-color__display--error': !!this.hasErrorState,
16099
- } }, index.h("span", { key: '9abe3e899192f4f08e682f8d7a9a9af9adf5982f', class: "xpl-input-color__color", style: {
16125
+ } }, index.h("span", { key: 'd471146ff3ba7b026dba1424599361d0aa0fe49c', class: "xpl-input-color__color", style: {
16100
16126
  background: objectToStringColor(this.colorValues),
16101
- } }), this.colorValues.hex ? (index.h("span", { class: "xpl-input-color__value" }, objectToStringColor(this.colorValues))) : (index.h("span", { class: "xpl-input-color__placeholder" }, this.placeholder)), this.eyeDropperSupported && !this.hideEyeDropper && (index.h("xpl-icon", { key: '9e6832ca2ca1b91c9bf91b1816c1f7c8169202f3', size: 20, icon: "eye-dropper", class: "xpl-input-color__icon", onClick: (e) => {
16127
+ } }), this.colorValues.hex ? (index.h("span", { class: "xpl-input-color__value" }, objectToStringColor(this.colorValues))) : (index.h("span", { class: "xpl-input-color__placeholder" }, this.placeholder)), this.eyeDropperSupported && !this.hideEyeDropper && (index.h("xpl-icon", { key: '5cd87456ef093611b6be8906c24b235ea7f19524', size: 20, icon: "eye-dropper", class: "xpl-input-color__icon", onClick: (e) => {
16102
16128
  e.stopPropagation();
16103
16129
  this.openEyeDropper();
16104
- } })))), index.h("div", { key: '86643ca93847cff19653ebb54160588f2764ae17', class: "xpl-input-color__menu" }, index.h("div", { key: '40f43b769954163f0d22ff8dc80bcd2e0df4777e', class: "xpl-input-color__sl-grid", ref: (el) => {
16130
+ } })))), index.h("div", { key: 'df7bdf567c9a697f8a5e737e5a8cb1b1b962dbb9', class: "xpl-input-color__menu" }, index.h("div", { key: 'ae630752b48e9d211273da6f3dadda8ace603ba2', class: "xpl-input-color__sl-grid", ref: (el) => {
16105
16131
  this.colorInputElements.slGrid = el;
16106
16132
  }, style: {
16107
16133
  background: [
@@ -16109,9 +16135,9 @@ const InputColor = class {
16109
16135
  `linear-gradient(to right, #fff, #fff0)`,
16110
16136
  `rgb(${hueBaseColor.r} ${hueBaseColor.g} ${hueBaseColor.b})`,
16111
16137
  ].join(', '),
16112
- }, onMouseDown: this.startDrag, onTouchStart: this.startDrag }, index.h("div", { key: '29f42021c1e55827f1fffcdd416608f01b6bda81', class: "xpl-input-color__sl-thumb", style: slThumbStyle })), index.h("div", { key: 'e727c66cd44ff40c672f58ae9264485cda3698b7', class: "xpl-input-color__grid" }, index.h("input", { key: '899cdc6cf61d1452809850dbc847c9df8265437b', type: "range", min: "0", max: "360", value: this.hue, class: "xpl-input-color__slider xpl-input-color__hue", name: "color-hue-slider", ref: (el) => {
16138
+ }, onMouseDown: this.startDrag, onTouchStart: this.startDrag }, index.h("div", { key: '25ffc6bb94f0e861a3bc5a6da5c01e0901d1779e', class: "xpl-input-color__sl-thumb", style: slThumbStyle })), index.h("div", { key: '7d256baab084f96c56724b4eede835a13bee7055', class: "xpl-input-color__grid" }, index.h("input", { key: '227309d4590722c24c2d053c013a6d473e44a3ee', type: "range", min: "0", max: "360", value: this.hue, class: "xpl-input-color__slider xpl-input-color__hue", name: "color-hue-slider", ref: (el) => {
16113
16139
  this.colorInputElements.hue = el;
16114
- } }), index.h("input", { key: '3e72ef16b142fe44bebbcbbd2686fcfa3fb958bc', type: "range", min: "0", max: "1", step: "0.01", value: a, class: "xpl-input-color__slider xpl-input-color__alpha", name: "color-alpha-slider", ref: (el) => {
16140
+ } }), index.h("input", { key: '2d43e7c9f98fd5cdcccde7206c0cf4e5ae6bde6d', type: "range", min: "0", max: "1", step: "0.01", value: a, class: "xpl-input-color__slider xpl-input-color__alpha", name: "color-alpha-slider", ref: (el) => {
16115
16141
  this.colorInputElements.alpha = el;
16116
16142
  }, style: {
16117
16143
  backgroundImage: [
@@ -16121,9 +16147,9 @@ const InputColor = class {
16121
16147
  `linear-gradient(45deg, transparent 75%, #ccc 75%)`,
16122
16148
  `linear-gradient(-45deg, transparent 75%, #ccc 75%)`,
16123
16149
  ].join(', '),
16124
- } }), index.h("div", { key: 'c389627f5c0fa8878ead7d6765ecbe9b2f82debb', class: "xpl-input-color__preview", style: {
16150
+ } }), index.h("div", { key: '26a562a220b2458e0ee99906d27d8a11e38f2d02', class: "xpl-input-color__preview", style: {
16125
16151
  background: `rgba(${r}, ${g}, ${b}, ${a})`,
16126
- } })), index.h("div", { key: 'efd8daf09c022fdc19a6373f0bcd1d32b7548fd2', class: "xpl-input-color__inputs" }, Object.entries(this.colorInputElements)
16152
+ } })), index.h("div", { key: 'a77a7325f72ef73e6aa2d6968ae4afd1e010cf2c', class: "xpl-input-color__inputs" }, Object.entries(this.colorInputElements)
16127
16153
  .filter(([key]) => ['hex', 'r', 'g', 'b', 'a'].includes(key))
16128
16154
  .map(([key]) => (index.h("xpl-input", { key: key, label: key.toLocaleUpperCase(), name: `color-${key}-input`, placeholder: key === 'hex' ? '793EF7' : '0', value: this.colorValues[key], ref: (elRef) => {
16129
16155
  this.colorInputElements[key] = elRef;
@@ -16246,16 +16272,16 @@ const InputDate = class {
16246
16272
  parent.removeChild(wrapper);
16247
16273
  }
16248
16274
  render() {
16249
- return (index.h(index.Host, { key: 'c2707549e3285693ce4c7e0449e047be90640504', class: {
16275
+ return (index.h(index.Host, { key: '35b39ed37afa33603772cdd0dce79cf7533d36ec', class: {
16250
16276
  'xpl-input-date': true,
16251
16277
  [`xpl-input-date--mode-${this.mode}`]: true,
16252
16278
  'xpl-input-date--error': !!this.hasErrorState,
16253
16279
  'xpl-input-date--flatpickr-static': this.flatpickrStaticLayout,
16254
- } }, index.h("div", { key: 'e6ac05a6d58d92570331489b8a317d17c0726873', class: "xpl-input-wrapper" }, this.pre && (index.h("label", { key: 'ef746e91506c2bd2c2bc9986bfbb7f0b82a0f079', class: "xpl-input-pre", htmlFor: this.inputId }, this.pre)), index.h("input", { key: '125e566456a2de4d75fe38fee50a78de886b8009', type: "date", id: this.inputId, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, placeholder: this.placeholder, max: this.max, min: this.min, ref: (el) => {
16280
+ } }, index.h("div", { key: '14940421a3f9fb4e7a5acbd5abb222d927a701cf', class: "xpl-input-wrapper" }, this.pre && (index.h("label", { key: '108b33b4f0a87bacff90480633327dd221f6b1d4', class: "xpl-input-pre", htmlFor: this.inputId }, this.pre)), index.h("input", { key: '00633c5b69d25a94d7cd8501bde70459e8ebf2ce', type: "date", id: this.inputId, disabled: this.disabled, name: this.name, required: this.required, readonly: this.readonly, placeholder: this.placeholder, max: this.max, min: this.min, ref: (el) => {
16255
16281
  this.input = el;
16256
16282
  }, onChange: (event) => {
16257
16283
  this.valueChanged(event);
16258
- } }), index.h("xpl-icon", { key: '399495edb8791cda73084dcef21663a3d207da2f', class: "xpl-input-calendar", icon: "calendar-month", size: 24 }), this.post && (index.h("label", { key: '6570bf947a23280b04389ed591f7ea401f14f1a5', class: "xpl-input-post", htmlFor: this.inputId }, this.post)))));
16284
+ } }), index.h("xpl-icon", { key: 'ba0d694b7ace1359d6901c0110dce40a78805f74', class: "xpl-input-calendar", icon: "calendar-month", size: 24 }), this.post && (index.h("label", { key: '5ca7564e2096b697a75ebfb573654c0c23125245', class: "xpl-input-post", htmlFor: this.inputId }, this.post)))));
16259
16285
  }
16260
16286
  get el() { return index.getElement(this); }
16261
16287
  static get watchers() { return {
@@ -16304,18 +16330,18 @@ const InputFile = class {
16304
16330
  }
16305
16331
  render() {
16306
16332
  var _a, _b;
16307
- return (index.h(index.Host, { key: '579d1ec1094bc5b1aeec622996694728fb1facca', class: {
16333
+ return (index.h(index.Host, { key: 'ec1645e7d48cf2b146727a6c131dbd7572468f17', class: {
16308
16334
  'xpl-input-file': true,
16309
16335
  'xpl-input-file--hide-trigger-on-select': this.hideTriggerOnSelect,
16310
16336
  'xpl-input-file--disabled': this.disabled,
16311
- } }, index.h("span", { key: '66b3cc31f1e2bfa4ee1896e64a667e2a26166b50', class: {
16337
+ } }, index.h("span", { key: '8dc3e290dcddba706316ec41443e2e87aa82f79f', class: {
16312
16338
  'xpl-input-file__trigger-wrapper': true,
16313
16339
  'xpl-input-file__trigger-wrapper--hidden': this.hideTriggerOnSelect && ((_a = this.files) === null || _a === void 0 ? void 0 : _a.length) > 0,
16314
- }, role: "button", tabIndex: 0, onClick: this.openFileDialog }, index.h("slot", { key: '53b23be4e2a5b0f920e650c14e591cb1de3b8bac', name: "trigger" })), ((_b = this.files) === null || _b === void 0 ? void 0 : _b.length) > 0 && !this.hideFileNames && (index.h("ul", { key: '53a294c3765d5b6229f5ed79023095538a1c5edf', class: "xpl-input-file__file-list" }, this.files.map((file, fileIndex) => (index.h("li", { class: "xpl-input-file__file-item" }, index.h("span", { class: "xpl-text-callout" }, file.name), index.h("xpl-icon", { icon: "x-circle", size: 24, onClick: (e) => {
16340
+ }, role: "button", tabIndex: 0, onClick: this.openFileDialog }, index.h("slot", { key: '2d2391a2ccca22170bfa0b9ace50a42fdba54284', name: "trigger" })), ((_b = this.files) === null || _b === void 0 ? void 0 : _b.length) > 0 && !this.hideFileNames && (index.h("ul", { key: 'c302bbbb5c1977c513dba82db70da1615f39a217', class: "xpl-input-file__file-list" }, this.files.map((file, fileIndex) => (index.h("li", { class: "xpl-input-file__file-item" }, index.h("span", { class: "xpl-text-callout" }, file.name), index.h("xpl-icon", { icon: "x-circle", size: 24, onClick: (e) => {
16315
16341
  e.preventDefault();
16316
16342
  e.stopPropagation();
16317
16343
  this.onRemoveFileByIndex(fileIndex);
16318
- }, class: "xpl-input-file__remove-icon" })))))), this.accept && !this.hideAcceptText && (index.h("span", { key: 'afcd0be79ed4ffa5696990eb76d8615f61c430f9', class: "xpl-input-file__accept xpl-text-caption" }, "Accepted file types: ", this.accept)), index.h("input", { key: '08ffdfed6e25b11363e664abe7bdb66ae6b96bb7', onChange: this.handleFileChange, type: "file", ref: (el) => {
16344
+ }, class: "xpl-input-file__remove-icon" })))))), this.accept && !this.hideAcceptText && (index.h("span", { key: '9252c5450f32e8d2ed478af9f84eef4a26cee49f', class: "xpl-input-file__accept xpl-text-caption" }, "Accepted file types: ", this.accept)), index.h("input", { key: 'd44213b6fd075bfb12c7857d3a56e06f78ef0fdc', onChange: this.handleFileChange, type: "file", ref: (el) => {
16319
16345
  this.fileInput = el;
16320
16346
  }, hidden: true, accept: this.accept, multiple: this.multiple, name: this.name })));
16321
16347
  }
@@ -16803,21 +16829,21 @@ const InputPhone = class {
16803
16829
  }
16804
16830
  render() {
16805
16831
  var _a;
16806
- return (index.h(index.Host, { key: '79d8146efc51fb1fba4e595655274beff9e2f09a', class: {
16832
+ return (index.h(index.Host, { key: '4a55afb3d85dc5882eca2cab0a23b11374cc053e', class: {
16807
16833
  'xpl-input-phone': true,
16808
16834
  'xpl-input-phone--error': !!this.hasErrorState,
16809
16835
  'xpl-input-phone--open': this.dropdownOpen,
16810
16836
  'xpl-input-phone--domestic': !this.isInternational,
16811
- } }, index.h("div", { key: 'f617abbc8656f0d9418e3bb87f0fdcd8b1646138', class: "xpl-input-wrapper" }, this.isInternational && (index.h("button", { key: '133d07a3d70e8c9e3c3a6690ae2296f176a409f7', type: "button", id: this.triggerId, class: "xpl-input-phone__trigger", disabled: this.disabled, "aria-haspopup": "listbox", "aria-expanded": this.dropdownOpen ? 'true' : 'false', "aria-label": "Select country", onClick: this.handleTriggerClick }, ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.name) && (index.h("xpl-icon", { key: '20928aee771232962454e469210a31718922286c', class: "xpl-input-phone__flag", icon: getCountryIconName(this.selectedCountry.name), size: 24, "aria-hidden": "true" })), index.h("xpl-icon", { key: '22078ac403d3965ba72ee9164520778f3f65cc56', class: "xpl-input-phone__trigger-icon", icon: "chevron-down", size: 20, "aria-hidden": "true" }))), index.h("div", { key: '29cab6a655c36fd5add277b6d3c0f06c498a742d', class: "xpl-input-phone__input-wrap" }, this.isInternational && (index.h("span", { key: 'e83457a14cd689f43082afb611c7641f1353da36', class: "xpl-input-phone__dial-code" }, this.effectiveDialCode)), index.h("input", { key: 'ee747daab159986e319599ec6705c8f5edc78c3e', ref: (el) => {
16837
+ } }, index.h("div", { key: 'c7e46df1b58b6e76dda47b3b32f5a6abe29f048c', class: "xpl-input-wrapper" }, this.isInternational && (index.h("button", { key: 'ef1bedb4bad96760c81ad4dbf2cadb5a29d4abb9', type: "button", id: this.triggerId, class: "xpl-input-phone__trigger", disabled: this.disabled, "aria-haspopup": "listbox", "aria-expanded": this.dropdownOpen ? 'true' : 'false', "aria-label": "Select country", onClick: this.handleTriggerClick }, ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.name) && (index.h("xpl-icon", { key: 'a307f620c2815d63b17dbeb6c270d2972884e9d9', class: "xpl-input-phone__flag", icon: getCountryIconName(this.selectedCountry.name), size: 24, "aria-hidden": "true" })), index.h("xpl-icon", { key: 'c16e66d315877cec35e322a1164f765cd387931f', class: "xpl-input-phone__trigger-icon", icon: "chevron-down", size: 20, "aria-hidden": "true" }))), index.h("div", { key: '7a33b994588e4c5ea868a4e092709b8acd50a36f', class: "xpl-input-phone__input-wrap" }, this.isInternational && (index.h("span", { key: '5a39cfd472f5287fc8cf0648ce618e21dabf5e97', class: "xpl-input-phone__dial-code" }, this.effectiveDialCode)), index.h("input", { key: 'dfb25910769594bc9b9d1c861049605d7bdd9d0e', ref: (el) => {
16812
16838
  this.inputEl = el;
16813
- }, type: "tel", id: this.inputId, class: "xpl-input-phone__input", name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, "aria-invalid": this.hasErrorState ? 'true' : 'false', placeholder: this.effectivePlaceholder, autocomplete: this.isInternational ? 'tel-national' : 'tel', inputmode: "numeric", maxlength: this.maxInputLength, value: this.displayValue, onInput: this.handleNumberInput }), this.nationalNumber && this.isEditable && (index.h("button", { key: 'ddb1bb6cf9ab3fb4bc3295db64fc986fe5dbf69b', type: "button", class: "xpl-input-phone__clear", "aria-label": "Clear phone number", onClick: this.handleClear }, index.h("xpl-icon", { key: 'c0f3201d0b34f9cbe5af9247540199db0c184514', icon: "x-circle", size: 16 }))))), this.isInternational && this.isEditable && (index.h("xpl-dropdown", { key: '8d4e50ee17d880272eaccf08cf8c84fc4400c36d', ref: (el) => {
16839
+ }, type: "tel", id: this.inputId, class: "xpl-input-phone__input", name: this.name, disabled: this.disabled, readonly: this.readonly, required: this.required, "aria-invalid": this.hasErrorState ? 'true' : 'false', placeholder: this.effectivePlaceholder, autocomplete: this.isInternational ? 'tel-national' : 'tel', inputmode: "numeric", maxlength: this.maxInputLength, value: this.displayValue, onInput: this.handleNumberInput }), this.nationalNumber && this.isEditable && (index.h("button", { key: '8db932d94550aa6d947e2564d8a94a12bef43bce', type: "button", class: "xpl-input-phone__clear", "aria-label": "Clear phone number", onClick: this.handleClear }, index.h("xpl-icon", { key: '87e55c3a5ae6b8774d3ce64af843b7e63448fe25', icon: "x-circle", size: 16 }))))), this.isInternational && this.isEditable && (index.h("xpl-dropdown", { key: '467b0e2fde23a45b2c36138affa26467e0b6c9d0', ref: (el) => {
16814
16840
  this.dropdownRef = el;
16815
16841
  }, isOpen: this.dropdownOpen, triggerId: this.triggerId, anchorToTrigger: true, closeOnSelect: true, mode: "single", options: this.dropdownOptions, update: this.handleDropdownUpdate, onIsOpenChange: (e) => {
16816
16842
  this.dropdownOpen = e.detail;
16817
- }, "aria-label": "Country" }, index.h("div", { key: '5808ecb917ee94ba31c8ab106152d2d61feae74a', slot: "header", class: "xpl-input-phone__search-wrap" }, index.h("xpl-input", { key: '76a2477f0e039e390dd26a0c34cdab758d3c10d6', class: "xpl-input-phone__search", type: "text", label: "", placeholder: "Search", value: this.searchQuery, autocomplete: "off", onInputEvent: (e) => {
16843
+ }, "aria-label": "Country" }, index.h("div", { key: 'f4f3665ab8286faed45c3a3a510bd247c7a31842', slot: "header", class: "xpl-input-phone__search-wrap" }, index.h("xpl-input", { key: '659875e60e85bac085deb8f6648623eccc76d560', class: "xpl-input-phone__search", type: "text", label: "", placeholder: "Search", value: this.searchQuery, autocomplete: "off", onInputEvent: (e) => {
16818
16844
  var _a;
16819
16845
  this.searchQuery = (_a = e.detail) !== null && _a !== void 0 ? _a : '';
16820
- } }, index.h("xpl-icon", { key: '0a6b49b3a0df0769fb5dfa59f97c40adeaee8dd1', slot: "pre", class: "xpl-input-phone__search-icon", icon: "magnifier", size: 20 })))))));
16846
+ } }, index.h("xpl-icon", { key: '987941768e8494d9c898fc93e531da03bd57ad71', slot: "pre", class: "xpl-input-phone__search-icon", icon: "magnifier", size: 20 })))))));
16821
16847
  }
16822
16848
  get el() { return index.getElement(this); }
16823
16849
  static get watchers() { return {
@@ -16936,7 +16962,7 @@ const InputSearch = class {
16936
16962
  return shell;
16937
16963
  }
16938
16964
  render() {
16939
- return (index.h(index.Host, { key: 'ac235500df2d6958d9070535f922a018bce14906', class: {
16965
+ return (index.h(index.Host, { key: 'c8f0c2b1c96cc8c6d9a2c390e791977b031adb9b', class: {
16940
16966
  'xpl-input-search': true,
16941
16967
  'xpl-input-search--disabled': this.disabled,
16942
16968
  'xpl-input-search--error': this.hasError,
@@ -17120,11 +17146,11 @@ const InputTime = class {
17120
17146
  }));
17121
17147
  }
17122
17148
  render() {
17123
- return (index.h(index.Host, { key: '6ed0e8da81a96e0e4e7078a7477c9a4ee92532ba', class: {
17149
+ return (index.h(index.Host, { key: 'a48ebfd7cd0578b33bd11059f9bebb342bf954f7', class: {
17124
17150
  'xpl-input-time': true,
17125
17151
  [`xpl-input-time--mode-${this.mode}`]: true,
17126
17152
  'xpl-input-time--error': !!this.hasErrorState,
17127
- } }, index.h("xpl-input", { key: 'bae0f7e9b9e3f14b5d780a0300ef672da9301596', pre: index.h("xpl-icon", { class: "xpl-input-time__clock-icon", icon: "clock", size: 24 }), post: this.timeFormat === '12h' ? this.amPm || 'AM' : null, 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 && (index.h("xpl-dropdown", { key: 'cd8ae7e4c7d130bdbf44aeb2f806b3c9a490d8bb', options: this.options, isOpen: this.showOptions, ref: (el) => {
17153
+ } }, index.h("xpl-input", { key: '68089e0bd5b0ed7d88917094eafe529637947380', pre: index.h("xpl-icon", { class: "xpl-input-time__clock-icon", icon: "clock", size: 24 }), post: this.timeFormat === '12h' ? this.amPm || 'AM' : null, 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 && (index.h("xpl-dropdown", { key: '1bbe4a3a42c02ff985a26e7547c54f0bbdc92ce0', options: this.options, isOpen: this.showOptions, ref: (el) => {
17128
17154
  this.dropdown = el;
17129
17155
  }, class: "xpl-input-time__dropdown" }))));
17130
17156
  }
@@ -17558,12 +17584,12 @@ const List = class {
17558
17584
  var _a, _b, _c;
17559
17585
  const ariaLabelledBy = ((_a = this.labelledBy) === null || _a === void 0 ? void 0 : _a.trim()) ? this.labelledBy.trim() : undefined;
17560
17586
  const ariaLabel = !ariaLabelledBy && ((_b = this.label) === null || _b === void 0 ? void 0 : _b.trim()) ? this.label.trim() : undefined;
17561
- return (index.h(index.Host, { key: '4290084c30b164abb653943a81783c35531d6316', role: "list", class: { 'xpl-list': true }, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, (_c = this.items) === null || _c === void 0 ? void 0 :
17587
+ return (index.h(index.Host, { key: 'aaa6e1cfa2d87e61b239d9aa59c9e4647f05aade', role: "list", class: { 'xpl-list': true }, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy }, (_c = this.items) === null || _c === void 0 ? void 0 :
17562
17588
  _c.map((item, index$1) => {
17563
17589
  var _a;
17564
17590
  const legacyRowId = (_a = item.id) !== null && _a !== void 0 ? _a : `item-${index$1}`;
17565
17591
  return (index.h("xpl-list-item", { key: `legacy-item-${legacyRowId}`, item: item, href: item.href, itemId: legacyRowId }));
17566
- }), index.h("slot", { key: '55ce7202269eab851c0d753fd87ef2d5bf9f59a8' }), this.reorderable ? (index.h("div", { class: "xpl-list__reorder-live", "aria-live": "assertive", "aria-atomic": "true" }, this.reorderLiveMessage)) : null));
17592
+ }), index.h("slot", { key: '89eb57b654baf9efbfd021e8c8db1fe074daa6d1' }), this.reorderable ? (index.h("div", { class: "xpl-list__reorder-live", "aria-live": "assertive", "aria-atomic": "true" }, this.reorderLiveMessage)) : null));
17567
17593
  }
17568
17594
  get el() { return index.getElement(this); }
17569
17595
  static get watchers() { return {
@@ -18086,7 +18112,7 @@ const Modal = class {
18086
18112
  }
18087
18113
  }
18088
18114
  render() {
18089
- return (index.h(index.Host, { key: '1014ca8cb29f3cfeb7f2cf580127b8fe61e7bcbd', class: "xpl-modal" }, this.isOpen && index.h("xpl-backdrop", { key: '0085b008fb42a998c2b27690102b8ae7f0e49c67' }), index.h("dialog", { key: '9e2d23304e10872ed3dc9a7520537e36bf8b8f5b', class: `xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen ? 'is-open' : 'is-closed'}` }, index.h("div", { key: 'f55a9d85fc271183e0a6b7e60fb4ad5ed623b010', class: "xpl-modal__header" }, index.h("div", { key: 'ac105d7ee88148e4b10b26522f93fea70b8d6c06', class: "xpl-modal__title" }, this.variant === 'warning' && (index.h("xpl-icon", { key: '89ff5fda063dc98628c409ee51c124f17f9e7553', size: 20, icon: "alert-triangle", class: "xpl-modal__alert-icon" })), index.h("slot", { key: '03e05d28ca6449859ac58f0b0efaf3d8e24c1d62', name: "title" }), index.h("xpl-button", { key: 'ff132fcbaf91ab6922b12f667255594673e21bd5', type: "button", class: "xpl-modal__close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleDialogClose }, index.h("xpl-icon", { key: '6d712ffc1de66d43591ccf71b08ed5e823fc4c8f', icon: "x" }))), index.h("div", { key: 'ff5f20b209f6d704d0d20561818ca3ea5b353fce', class: "xpl-modal__subtitle" }, index.h("slot", { key: 'de25d1ab35729ad5ee0e279311285eab20fb7669', name: "subtitle" }))), index.h("div", { key: '286f34b54309527c836cb7cc06018ffc577c500f', class: "xpl-modal__body" }, index.h("slot", { key: '960036c7d3da774ad0f59ccf2c859d7ba3ec3a98', name: "body" })), index.h("div", { key: '24f7db0e4153d9f4105d787abdc1fe491ba6633c', class: "xpl-modal__footer" }, index.h("slot", { key: '4f096e57455b20caec555a008a14d411f40b53d7', name: "tertiary" }), index.h("slot", { key: '1fee8182d892c3460fe30c20456e1b9139bafaec', name: "secondary" }), index.h("slot", { key: 'e2b91a7af9f34c297d6c311823c91f9a0ab4059c', name: "primary" })))));
18115
+ return (index.h(index.Host, { key: '310913d620acf72531ecb06aa6cd2180bb58d13b', class: "xpl-modal" }, this.isOpen && index.h("xpl-backdrop", { key: 'd95693fd09c2f0a8024f3cb69a021f0bd79f7916' }), index.h("dialog", { key: '5cffd3cfdcc6033baa1d9e3e5fdf56b8411a8975', class: `xpl-modal__dialog xpl-modal-size--${this.size} xpl-modal--${this.isOpen ? 'is-open' : 'is-closed'}` }, index.h("div", { key: '2d0be8e91065d464797d85cd1b98272292eacb09', class: "xpl-modal__header" }, index.h("div", { key: 'cb7d8594ed217599bcf0e2efa88d72afe0fff758', class: "xpl-modal__title" }, this.variant === 'warning' && (index.h("xpl-icon", { key: 'fb7dd69369accc0c98ef8762ca457b6368ca0036', size: 20, icon: "alert-triangle", class: "xpl-modal__alert-icon" })), index.h("slot", { key: '36a6d3d38d35064f81740504090fbbcdf2125097', name: "title" }), index.h("xpl-button", { key: 'db84ecf685afec8d0d783b433f8aa030acc436bb', type: "button", class: "xpl-modal__close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleDialogClose }, index.h("xpl-icon", { key: 'bf241c6636ace6e182bf259bd24754646dc7f151', icon: "x" }))), index.h("div", { key: '105fa1a5b9d927bda5ca5521bbb8211cb07ab8e8', class: "xpl-modal__subtitle" }, index.h("slot", { key: 'd25d6d8bb95cd51f075dd7f9b5e1e199dac3efb0', name: "subtitle" }))), index.h("div", { key: '3b194a36ad0f4446149027544c16a25ba27f2cec', class: "xpl-modal__body" }, index.h("slot", { key: '077e5b70115e3e906cd9ea7181c51615799c77e8', name: "body" })), index.h("div", { key: '687bd9ca45af20945ab5461ceb68ec099a30c50b', class: "xpl-modal__footer" }, index.h("slot", { key: '73d5884708efd296a701c37e02663668fcfd37d8', name: "tertiary" }), index.h("slot", { key: 'bad90d2355b8c015e19b1e450b5a2ce96e5ad55d', name: "secondary" }), index.h("slot", { key: 'c601b66edc9fb2c082ccc713d6df95f15bd604ef', name: "primary" })))));
18090
18116
  }
18091
18117
  get element() { return index.getElement(this); }
18092
18118
  static get watchers() { return {
@@ -18162,11 +18188,11 @@ const NavHeaderMenu = class {
18162
18188
  }
18163
18189
  render() {
18164
18190
  const hasProfile = !!this.username || !!this.email;
18165
- return (index.h(index.Host, { key: '677e0ab10d9bb5578f472101c677222e038c2b4a', class: {
18191
+ return (index.h(index.Host, { key: '451149dc9d73f705492fc65bf4f014b8efa4ee8a', class: {
18166
18192
  'xpl-nav-header-menu': true,
18167
18193
  'xpl-nav-header-menu--has-right-aside-mobile': this.rightAsideMobilePresent,
18168
18194
  dark: true,
18169
- } }, hasProfile && (index.h("div", { key: 'fa3898bd0b2aa4726d44ad991a2c6272d4f323de', class: "xpl-nav-header-menu__profile" }, index.h("div", { key: '354ff7d001e5b545cc7c4310ee10cae7d72c6159', class: "xpl-nav-header-menu__info" }, this.username && (index.h("div", { key: '92b6486692879a602e87062820d7cbf175bf15d2', class: "xpl-nav-header-menu__username" }, this.username)), this.email && (index.h("div", { key: 'a228df8215ffd68c36631e11184ba38c790bc560', class: "xpl-nav-header-menu__email" }, this.email))))), index.h("div", { key: '0ee2394e784f6efb43f04ec65765481203dda954', class: "xpl-nav-header-menu__right-aside-mobile" }, index.h("slot", { key: 'f551acc13c6e6f2611e78d04de72987048011318', name: "right-aside-mobile" })), index.h("div", { key: 'b90709dea7e169df42acaf8125a9359321c979ff', class: "xpl-nav-header-menu__slot", role: "list" }, index.h("slot", { key: 'c35efb10d04d4d4b0bbf832d8541ba6d4b9782c0' }))));
18195
+ } }, hasProfile && (index.h("div", { key: 'f42b560492c110644d52b10f708a3ed650833861', class: "xpl-nav-header-menu__profile" }, index.h("div", { key: '6d98f720af85cbf8164bea7500175d6bfbb9465b', class: "xpl-nav-header-menu__info" }, this.username && (index.h("div", { key: '9d52880dc41c11e71ac3cc107d8009eccb787bac', class: "xpl-nav-header-menu__username" }, this.username)), this.email && (index.h("div", { key: 'd1b71ac2c4f6aaf5efd7b1910b8848f97ab08bf0', class: "xpl-nav-header-menu__email" }, this.email))))), index.h("div", { key: 'e1b298c39ccbe0f68b8d60fa82714572f656ab1e', class: "xpl-nav-header-menu__right-aside-mobile" }, index.h("slot", { key: 'fbb8d26c38a4a50568e8836ac3af4409fe6c93c0', name: "right-aside-mobile" })), index.h("div", { key: 'cbe858338ec04cdd3b74285f95b0466432924be2', class: "xpl-nav-header-menu__slot", role: "list" }, index.h("slot", { key: 'b47ccc7f955a30d8b9d9b884fa3d920d45958f7c' }))));
18170
18196
  }
18171
18197
  get el() { return index.getElement(this); }
18172
18198
  };
@@ -18183,11 +18209,11 @@ const NavItem = class {
18183
18209
  }
18184
18210
  }
18185
18211
  render() {
18186
- return (index.h(index.Host, { key: '5e0a171c719802e96d48f7d635c189563387fade', class: "xpl-nav-item", role: "listitem", onClick: () => {
18212
+ return (index.h(index.Host, { key: 'b3a214a57ad57e9db1bbfd6a1809999ce0575a82', class: "xpl-nav-item", role: "listitem", onClick: () => {
18187
18213
  if (this.navControl) {
18188
18214
  this.onNavToggle();
18189
18215
  }
18190
- } }, index.h("slot", { key: 'aff0155598a1b64d50168552ff251b824d00a86f', name: "link" }, index.h("slot", { key: '28da4593d2302b2867b0792562dc5b7b3ddd6983', name: "icon" }), index.h("slot", { key: '93e12751d2320608ee7a10d73eef67a1c1bb5443' }))));
18216
+ } }, index.h("slot", { key: '0f2a74dc4fd6f419a01106d872a5f6b5066a21a8', name: "link" }, index.h("slot", { key: '234b41ca18d65ec3423ff580d983d24b483641cf', name: "icon" }), index.h("slot", { key: 'cdb0ac59997cd1c557b05c6c8d8f60ae78d28a4d' }))));
18191
18217
  }
18192
18218
  };
18193
18219
 
@@ -18254,19 +18280,23 @@ const Pagination = class {
18254
18280
  render() {
18255
18281
  const disablePrev = this.currentPage <= 1;
18256
18282
  const disableNext = this.currentPage >= this.totalPages;
18257
- return (index.h(index.Host, { key: 'cb9e0db1008dfadcfb48ae308d8e595dc751a6ee', class: `xpl-pagination xpl-pagination__${this.withPageControl ? 'with' : 'no'}-page-control` }, this.withPageControl && (index.h("div", { key: '30d272307c28e0b50d78b036ec63f4d2a120aaa0', class: "xpl-pagination__rows-per-page" }, index.h("label", { key: 'cc5969dbc2685aff198f03ef593dd714570225dd', class: "xpl-pagination__rows-label" }, "Rows per page:"), index.h("xpl-select", { key: '447ee86d134c70f51c4a756c499bb6766d10ed7f', class: "xpl-pagination__rows-per-page-select", choices: this.rowsPerPageOptionsArray.map((option) => ({
18283
+ return (index.h(index.Host, { key: 'fad9cdff4010b4b5ac842633bf7daf09b4dbd5d4', class: {
18284
+ 'xpl-pagination': true,
18285
+ 'xpl-pagination__with-page-control': this.withPageControl,
18286
+ 'xpl-pagination__no-page-control': !this.withPageControl,
18287
+ } }, this.withPageControl && (index.h("div", { key: 'eb125851b89aa1422ec3e5d5e336fcbecd07489e', class: "xpl-pagination__rows-per-page" }, index.h("label", { key: '5f2aa4c45d183827317a74cf4700981b6b0e7f2b', class: "xpl-pagination__rows-label" }, "Rows per page:"), index.h("xpl-select", { key: '7ba2987a24b3228d9b59320f29b22b5819f85546', class: "xpl-pagination__rows-per-page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: this.rowsPerPageOptionsArray.map((option) => ({
18258
18288
  label: option.toString(),
18259
18289
  value: option.toString(),
18260
18290
  isSelected: option === this.selectedRowsPerPage,
18261
18291
  })), ref: (el) => {
18262
18292
  this.rowsPerPageSelectRef = el;
18263
- } }))), index.h("div", { key: 'ac10b2efa235b3a065c7089bfb8674d6e015ee0c', class: "xpl-pagination__pager" }, index.h("button", { key: '83e9cc02336b94fe3cc8b16ba52d01ab70c50eb1', class: "xpl-pagination__pager-button xpl-pagination__pager-button-prev", disabled: disablePrev, onClick: this.handlePrevPage, "aria-label": "Previous Page", tabindex: "0" }, index.h("xpl-icon", { key: '12a92187d96ad9c2973fd73c2b61c1c04cce589b', icon: "arrow-left", size: 20 })), index.h("xpl-select", { key: '79324205919048c207044ca7916a276675463d25', class: "xpl-pagination__page-select", choices: Array.from({ length: this.totalPages }, (_, index) => ({
18293
+ } }))), index.h("div", { key: '8bab9db1cecfdaeeb760b0e4e1afb393ff3a3fe7', class: "xpl-pagination__pager" }, index.h("button", { key: '19efd8a9aee2b05f875d2db34c7cdd174c845f60', class: "xpl-pagination__pager-button xpl-pagination__pager-button-prev", disabled: disablePrev, onClick: this.handlePrevPage, "aria-label": "Previous Page", tabindex: "0" }, index.h("xpl-icon", { key: 'a77a15c649a6f2c86b100d1687b4a099acc18602', icon: "arrow-left", size: 20 })), index.h("xpl-select", { key: '5778cad67d3a4b930b1f89b0e49c30e941e23259', class: "xpl-pagination__page-select", dropdownFlipFallbackPlacements: ['bottom-start'], dropdownPlacement: "top-start", choices: Array.from({ length: this.totalPages }, (_, index) => ({
18264
18294
  label: `Page ${index + 1}`,
18265
18295
  value: (index + 1).toString(),
18266
18296
  isSelected: index + 1 === this.currentPage,
18267
18297
  })), "custom-display-value": true, ref: (el) => {
18268
18298
  this.pageSelectRef = el;
18269
- } }, index.h("div", { key: '73674015b0e1f8c9175c2af2a409cf1beb57fb9d', slot: "custom-display-value" }, `${this.currentPage} of ${this.totalPages}`)), index.h("button", { key: '6cecec44e8dfe62b9c6c94b33bad64473e0660a7', class: "xpl-pagination__pager-button xpl-pagination__pager-button-next", disabled: disableNext, onClick: this.handleNextPage, "aria-label": "Next Page", tabindex: "0" }, index.h("xpl-icon", { key: '9d21370837ee23434c94d790c7e300358d352e93', icon: "arrow-right", size: 20 })))));
18299
+ } }, index.h("div", { key: 'd0ae655a0100c2e81c8f7bdc2c8d3072f00cc7c9', slot: "custom-display-value" }, `${this.currentPage} of ${this.totalPages}`)), index.h("button", { key: 'ca6c7eb4fd277344f340b83673f1e43cb0c9fe99', class: "xpl-pagination__pager-button xpl-pagination__pager-button-next", disabled: disableNext, onClick: this.handleNextPage, "aria-label": "Next Page", tabindex: "0" }, index.h("xpl-icon", { key: 'd18efdcb7e67ab908fbf79fc475993cf656b150c', icon: "arrow-right", size: 20 })))));
18270
18300
  }
18271
18301
  static get watchers() { return {
18272
18302
  "currentPage": [{
@@ -18286,11 +18316,11 @@ const XplPanel = class {
18286
18316
  }
18287
18317
  render() {
18288
18318
  const hasAccent = this.accent !== 'none';
18289
- return (index.h(index.Host, { key: 'a9618f21b7aba5804881ec509d47909b87ad9aa5', class: {
18319
+ return (index.h(index.Host, { key: 'e9a747ba679f6f9f907d13217f329947bff93e31', class: {
18290
18320
  'xpl-panel': true,
18291
18321
  [`xpl-panel--accent-${this.accent}`]: hasAccent,
18292
18322
  [`xpl-panel--padding-${this.padding}`]: true,
18293
- } }, hasAccent && index.h("div", { key: '5b92aa4395658996de2736941d6c0d0262903013', "aria-hidden": "true", class: "xpl-panel__accent" }), index.h("div", { key: '5b22eb3d1911ce2d68876c0bc0bc61f947c830f9', class: "xpl-panel__content" }, index.h("slot", { key: 'b2f331aa8ea4328b0e50736d97361a7bfcde60ed' }))));
18323
+ } }, hasAccent && index.h("div", { key: 'b777fd4a81574ff9276582b256b673cccfc63a34', "aria-hidden": "true", class: "xpl-panel__accent" }), index.h("div", { key: '5fa5ba4c2bfa13d7dcaee603e96ec9b77d103b13', class: "xpl-panel__content" }, index.h("slot", { key: 'c99b797e076c2641ae205181479dabb38f9ea009' }))));
18294
18324
  }
18295
18325
  };
18296
18326
 
@@ -18953,16 +18983,16 @@ const Popover = class {
18953
18983
  });
18954
18984
  }
18955
18985
  render() {
18956
- return (index.h(index.Host, { key: '67ecd18580166f1582c29e33f1485bf67590b9f5' }, index.h("div", { key: 'bba42a3474432557bfc71705c2d5206493fed64b', class: {
18986
+ return (index.h(index.Host, { key: '6fe479a39ee565772785c7b540c4e0915c5403e4' }, index.h("div", { key: '350452ca097bab13e7f06b3d1aa5e2774d80104b', class: {
18957
18987
  'xpl-popover': true,
18958
18988
  [`xpl-popover--${this.actualPosition}`]: true,
18959
18989
  'xpl-popover--is-open': this.isOpenState,
18960
- } }, index.h("span", { key: '7960b727b609da6b0e949e4889e217b0f3efb6c9', role: "button", tabindex: "0", "aria-haspopup": "dialog", "aria-expanded": this.isOpenState ? 'true' : 'false', onClick: this.togglePopover, ref: (el) => {
18990
+ } }, index.h("span", { key: '0a9365be21ef70855bd7d304a77fc80d19ba16d3', role: "button", tabindex: "0", "aria-haspopup": "dialog", "aria-expanded": this.isOpenState ? 'true' : 'false', onClick: this.togglePopover, ref: (el) => {
18961
18991
  this.triggerRef = el;
18962
- } }, index.h("slot", { key: '08d2034f7559ce12f948252cf62bded94ab7666a', name: "trigger" })), this.display === 'arrow' && (index.h("div", { key: '1c51e2f96884da9828cf5d94fc1639a63580a0c7', class: "xpl-popover__arrow" }, index.h("svg", { key: 'bbf85fdaa6385724f8ce55001a5d9d2e2471dfc5', width: "17", height: "14", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '4ba2c4805e65b776af7bd313f575866f134fb778', d: "M0 5h15l-7.5 7.5L0 5Z", fill: "white", stroke: "none", class: "arrow-fill" }), index.h("path", { key: '21fab6334d8106940a3e5c49acc70b80a7d61326', d: "M0 5 L7.5 12.5 L15 5", fill: "none", stroke: "black", "stroke-width": "1", class: "arrow-stroke" })))), index.h("div", { key: 'fb0eeedab71c9d10fcab8f9277af919efd94f202', class: {
18992
+ } }, index.h("slot", { key: 'df227b5bb7683599b4f82ef2a8c9d840b4920a61', name: "trigger" })), this.display === 'arrow' && (index.h("div", { key: 'dbf0b6998b3aa6ae40089e13bef86878037bbe24', class: "xpl-popover__arrow" }, index.h("svg", { key: '2bf57b69abc556ba9a86b59f6347a2c8d81a67c3', width: "17", height: "14", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '36fef83ea3e2d3d4b388f5bdfe74d0bdc034be9d', d: "M0 5h15l-7.5 7.5L0 5Z", fill: "white", stroke: "none", class: "arrow-fill" }), index.h("path", { key: '1187a6ec22457ab6086753cf199398705541b1b4', d: "M0 5 L7.5 12.5 L15 5", fill: "none", stroke: "black", "stroke-width": "1", class: "arrow-stroke" })))), index.h("div", { key: '7c6f063094de1462629a0db380597374c4231855', class: {
18963
18993
  'xpl-popover__content': true,
18964
18994
  [`xpl-popover__content--display-${this.display}`]: true,
18965
- }, ref: (el) => (this.contentRef = el) }, index.h("slot", { key: '4bd22aa19dedb6fb77355caafcd009413c8ad7d9' })))));
18995
+ }, ref: (el) => (this.contentRef = el) }, index.h("slot", { key: '41062b776eed58b98452bb5a8d3b7099ac1138d2' })))));
18966
18996
  }
18967
18997
  get el() { return index.getElement(this); }
18968
18998
  static get watchers() { return {
@@ -19002,12 +19032,12 @@ const ProgressBar = class {
19002
19032
  return this.variant === 'indeterminate';
19003
19033
  }
19004
19034
  render() {
19005
- return (index.h(index.Host, { key: '4161cfe080a629f1c69c14a0e0a553df950d57a8', class: {
19035
+ return (index.h(index.Host, { key: 'e5cc7a2231ed74242241723c9f0a57444a8000bb', class: {
19006
19036
  'xpl-progress-bar': true,
19007
19037
  [`xpl-progress-bar--${this.size}`]: true,
19008
19038
  [`xpl-progress-bar--${this.variant}`]: true,
19009
19039
  'xpl-progress-bar--complete': this.isComplete,
19010
- } }, index.h("div", { key: 'c3ec83eb50771a91c543da1c9ec204e03b402c98', class: "xpl-progress-bar__wrapper" }, (this.label || this.showStatusIcon) && (index.h("div", { key: '9bb66a54388c8d24d9c737d8736536fc47285bc9', class: "xpl-progress-bar__header" }, this.label && index.h("div", { key: 'fb8160645a4c2ad56a276d5b85c5384d85b75b7e', class: "xpl-progress-bar__label" }, this.label), this.showStatusIcon && (index.h("div", { key: 'fb3cf9019e4ad18b0016219d44f3aa916ee5b4b2', class: "xpl-progress-bar__icon" }, this.isError ? (index.h("xpl-icon", { icon: "circle-xmark-1" })) : (index.h("xpl-icon", { icon: "circle-check-1" })))))), index.h("div", { key: 'cef864deff983bae01b9871ec17d6f6edccc327d', class: "xpl-progress-bar__row" }, this.isIndeterminate ? (index.h("div", { class: "xpl-progress-bar__track xpl-progress-bar__track--indeterminate", role: "progressbar", "aria-label": this.label || 'Progress' }, index.h("div", { class: "xpl-progress-bar__indeterminate" }))) : (index.h("progress", { class: "xpl-progress-bar__progress", value: this.clampedValue, max: this.max, "aria-label": this.label || 'Progress' }))), this.helperText && (index.h("div", { key: '9f7a52c0527b0fccc2189f0485596fa2cf80d417', class: "xpl-progress-bar__helper" }, this.helperText)))));
19040
+ } }, index.h("div", { key: '3212fdea66e2cd3edffc36f99c9edc197f15bcee', class: "xpl-progress-bar__wrapper" }, (this.label || this.showStatusIcon) && (index.h("div", { key: '004c0b9203df13c6818fdbb8c928a47d86e7388e', class: "xpl-progress-bar__header" }, this.label && index.h("div", { key: 'ce735edff19cc004f979a582618c968260cd23c3', class: "xpl-progress-bar__label" }, this.label), this.showStatusIcon && (index.h("div", { key: '3a9f143b79152aa3208593c9249a62d819c2967a', class: "xpl-progress-bar__icon" }, this.isError ? (index.h("xpl-icon", { icon: "circle-xmark-1" })) : (index.h("xpl-icon", { icon: "circle-check-1" })))))), index.h("div", { key: '517787d0ff39c082a3d4763b78b16a9ce9235b4b', class: "xpl-progress-bar__row" }, this.isIndeterminate ? (index.h("div", { class: "xpl-progress-bar__track xpl-progress-bar__track--indeterminate", role: "progressbar", "aria-label": this.label || 'Progress' }, index.h("div", { class: "xpl-progress-bar__indeterminate" }))) : (index.h("progress", { class: "xpl-progress-bar__progress", value: this.clampedValue, max: this.max, "aria-label": this.label || 'Progress' }))), this.helperText && (index.h("div", { key: '488c5092b96a1e9a5a08f9b090f94fe66f6f1490', class: "xpl-progress-bar__helper" }, this.helperText)))));
19011
19041
  }
19012
19042
  };
19013
19043
 
@@ -19068,7 +19098,7 @@ const ProgressIndicator = class {
19068
19098
  ? `Progress: all ${totalSteps} ${totalSteps === 1 ? 'step' : 'steps'} complete`
19069
19099
  : `Progress: step ${currentStepNumber} of ${totalSteps}`
19070
19100
  : 'Progress';
19071
- return (index.h(index.Host, { key: '44ac526c3954f688007573bf53c771b30518b9c7', class: hostClasses, role: "group", "aria-label": ariaLabel }, index.h("div", { key: '1ab86e3777ded2737ed5dd3c5ec759211a1087a7', class: "xpl-progress-indicator-container", role: "list" }, steps.map((step, index) => this.renderStep(step, index)))));
19101
+ return (index.h(index.Host, { key: '3a6f253693fd47f982541099a1729ca36d0ce64a', class: hostClasses, role: "group", "aria-label": ariaLabel }, index.h("div", { key: 'c25b47994c43135ed3147ca579bdc3d8124d7c8a', class: "xpl-progress-indicator-container", role: "list" }, steps.map((step, index) => this.renderStep(step, index)))));
19072
19102
  }
19073
19103
  static get watchers() { return {
19074
19104
  "steps": [{
@@ -19096,14 +19126,14 @@ const Radio = class {
19096
19126
  };
19097
19127
  }
19098
19128
  render() {
19099
- return (index.h(index.Host, { key: 'a96ab55137fedbfe00d68b660bd2d935208dc6c6', class: {
19129
+ return (index.h(index.Host, { key: '959940093b1988f6e362c17e463fe2139cd828c5', class: {
19100
19130
  'xpl-checkbox-radio-container': true,
19101
19131
  styled: this.styled,
19102
19132
  disabled: this.disabled,
19103
- } }, index.h("input", { key: 'ee385d0976d065fee4f72f75faea0ddbe33c0e81', class: "xpl-radio", type: "radio", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, onChange: this.onChange, value: this.value }), index.h("label", { key: '04e74e08a20b229f2d45b8fce80fa65ab3bf0954', class: {
19133
+ } }, index.h("input", { key: 'cccccd581ee84a2c5c39a625565877cc080e9702', class: "xpl-radio", type: "radio", checked: this.checked, disabled: this.disabled, id: this.id, name: this.name, required: this.required, onChange: this.onChange, value: this.value }), index.h("label", { key: '3dd39b409818d7f2921c6dc7dc2c3d790a088833', class: {
19104
19134
  'xpl-label': true,
19105
19135
  'xpl-label--disabled': this.disabled,
19106
- }, htmlFor: this.id }, index.h("slot", { key: 'b9fe3e13de64776a9cc1afcd8f7c10f84be8c8bb' }), this.description && (index.h("small", { key: '6ecd217342fbfa9bb5022bb1298683ff87af1713', class: {
19136
+ }, htmlFor: this.id }, index.h("slot", { key: '0e0af25e2b1679bef0aa053d20df8f0ec7390d18' }), this.description && (index.h("small", { key: 'dcc8791c823ec66dcdb806ae4aeaf7daf6c72298', class: {
19107
19137
  'xpl-description': true,
19108
19138
  'xpl-description--disabled': this.disabled,
19109
19139
  } }, this.description)))));
@@ -19115,7 +19145,7 @@ const SecondaryNav = class {
19115
19145
  index.registerInstance(this, hostRef);
19116
19146
  }
19117
19147
  render() {
19118
- return (index.h(index.Host, { key: 'bf9cbd4351297a28d6d98d3bf1e0612fac1f5136', class: "xpl-secondary-nav" }, index.h("nav", { key: '764de50287c88f53f19005d50b177e85f71f7f43', "aria-label": "Secondary Nav" }, index.h("slot", { key: 'd7fe629382a06f62dde9f08db082854e986ba406' }))));
19148
+ return (index.h(index.Host, { key: 'f4fdd93b13c1dc779c84e8b00b12caeff58df960', class: "xpl-secondary-nav" }, index.h("nav", { key: '4092d23357761026ad5fddfbc32a221d957cce1e', "aria-label": "Secondary Nav" }, index.h("slot", { key: 'c3ae9f1821a6d22babece27971cc1faf15037cdb' }))));
19119
19149
  }
19120
19150
  };
19121
19151
 
@@ -19139,6 +19169,7 @@ const Select = class {
19139
19169
  this.triggerDropdown = index.createEvent(this, "triggerDropdown", 7);
19140
19170
  this.choices = [];
19141
19171
  this.selectIcon = 'chevron-down';
19172
+ this.dropdownPlacement = 'bottom-start';
19142
19173
  this.mode = 'single';
19143
19174
  this.truncate = true;
19144
19175
  this.active = false;
@@ -19345,21 +19376,21 @@ const Select = class {
19345
19376
  this.truncate &&
19346
19377
  !this.customDisplayValue;
19347
19378
  const truncatedText = `+ ${Math.abs(this.choicesState.filter((a) => a.isSelected).length - this.visibleChoices)} more`;
19348
- return (index.h(index.Host, { key: 'c02b59988eee5073103958a24061c46aa286ea50', class: {
19379
+ return (index.h(index.Host, { key: '09d3587fa268cb0621ea293d246e23cde93d75df', class: {
19349
19380
  'xpl-select': true,
19350
19381
  'xpl-select--disabled': this.disabled,
19351
19382
  'xpl-select--no-truncate': !this.truncate,
19352
19383
  [(_c = this.classNames) !== null && _c !== void 0 ? _c : '']: !!this.classNames,
19353
19384
  }, onKeyDown: this.handleTabKeyDown, ref: (el) => {
19354
19385
  this.container = el;
19355
- } }, this.renderLabel(), index.h("div", { key: '189c9d2e3370876b6289ee16ee1b8927e5bfc0ee', class: {
19386
+ } }, this.renderLabel(), index.h("div", { key: '007a61cc60c948d0691d6983cb197652084e417d', class: {
19356
19387
  'xpl-input': true,
19357
19388
  'xpl-input--disabled': this.disabled,
19358
19389
  'xpl-input--error': ((_d = this.error) === null || _d === void 0 ? void 0 : _d.length) >= 0,
19359
- } }, index.h("div", { key: 'a8df7de958be97becd2a9f6a2db761702e2066c3', class: "xpl-input-wrapper" }, index.h("button", { key: 'f00119d930d49b241d5160bfe7a70ee56ac598d8', class: "xpl-select__trigger", disabled: this.disabled, id: this.id, onKeyDown: this.handleTabKeyDown, onClick: (e) => {
19390
+ } }, index.h("div", { key: 'e1edfe6e4b205bd6332f07031ee51ef7f9f6ac91', class: "xpl-input-wrapper" }, index.h("button", { key: '53d079f28b8a1bcdd5498287dfd88bb7a3ba7b50', class: "xpl-select__trigger", disabled: this.disabled, id: this.id, onKeyDown: this.handleTabKeyDown, onClick: (e) => {
19360
19391
  e.preventDefault();
19361
19392
  this.handleDropdownTrigger();
19362
- }, type: "button" }, index.h("div", { key: '141643ae007e8f5827d4aeb8fdd2a95b14b003ff', class: {
19393
+ }, type: "button" }, index.h("div", { key: '5cfec98b2e829ea48e96b373e09e740d5bf02ef6', class: {
19363
19394
  'xpl-select-value': true,
19364
19395
  'xpl-select-value--active': this.mode === 'multi' && this.value.length > 0,
19365
19396
  'has-value': this.value.length > 0,
@@ -19379,7 +19410,7 @@ const Select = class {
19379
19410
  return this.renderSelectedTags();
19380
19411
  }
19381
19412
  return this.placeholder;
19382
- })(), isTextTruncated && truncatedText), index.h("xpl-icon", { key: '05f6ba660e21584017715d3afc14d7bd8b8d536a', class: "xpl-select__chevron-down", icon: this.selectIcon }))), !this.disabled && (index.h("xpl-dropdown", { key: '9a452cf4c62cca5ba4279ddd8da09c9d24797dcf', ref: (el) => {
19413
+ })(), isTextTruncated && truncatedText), index.h("xpl-icon", { key: '8bb01d1e8b206fb3c1963cdebcd293eeb2277e05', class: "xpl-select__chevron-down", icon: this.selectIcon }))), !this.disabled && (index.h("xpl-dropdown", { key: 'f5e770c4b26449f3025d172d768d6df69bd0ae03', ref: (el) => {
19383
19414
  this.dropdown = el;
19384
19415
  }, isOpen: this.dropdownOpenState, options: this.choicesState, selectedValues: this.selectedValues, mode: this.mode, triggerId: this.id, update: (_e, { component }) => {
19385
19416
  const { options } = component;
@@ -19388,7 +19419,7 @@ const Select = class {
19388
19419
  }
19389
19420
  }, onIsOpenChange: (e) => {
19390
19421
  this.dropdownOpenState = e.detail;
19391
- }, onWheel: this.handleDropdownScroll, anchorToTrigger: true })), this.renderError()), index.h("input", { key: 'd9d6cbc69fc5fc688b2dda6ea1ef99435d90fc94', type: "hidden", name: this.name, value: this.value })));
19422
+ }, onWheel: this.handleDropdownScroll, anchorToTrigger: true, flipFallbackPlacements: this.dropdownFlipFallbackPlacements, placement: this.dropdownPlacement })), this.renderError()), index.h("input", { key: 'fe84c16780622e730100a58a948fc4fe27f6ddb5', type: "hidden", name: this.name, value: this.value })));
19392
19423
  }
19393
19424
  static get watchers() { return {
19394
19425
  "choices": [{
@@ -19414,9 +19445,9 @@ const SideNav = class {
19414
19445
  index.registerInstance(this, hostRef);
19415
19446
  }
19416
19447
  render() {
19417
- return (index.h(index.Host, { key: 'bfa4c94a1718583020da6a8b1e9104788ce78ef1', class: {
19448
+ return (index.h(index.Host, { key: 'd01e8e27671eabc92613a803818b4351334011ac', class: {
19418
19449
  'xpl-side-nav': true,
19419
- } }, index.h("div", { key: '1788f206ed3bea01be9cfa74fbc54a54e664945c', class: "xpl-side-nav__wrapper" }, index.h("nav", { key: 'ccbcbc45566a77a9134279b486148f3444bdb0ea', class: "xpl-side-nav__content", "aria-label": this.label }, index.h("div", { key: '6aef4d3f8e0c037aeedfc45d8471978c635b3293', class: "xpl-side-nav__section" }, index.h("slot", { key: 'e4384164f138cae0135472428079b62924afbcdf', name: "section" })), index.h("div", { key: '9794ea9a4b566713d0adb0787ae2ab1ae171fa6e', class: "xpl-side-nav__footer" }, index.h("slot", { key: 'e20ff6d3795784ea11470b7287550c29c0984a65', name: "nav-footer" }))))));
19450
+ } }, index.h("div", { key: '92c9f31fa0d9d564164cde99d17e30562c30abb7', class: "xpl-side-nav__wrapper" }, index.h("nav", { key: '5ddd8b18d4f74bb752b747ec4e1c48780a0738de', class: "xpl-side-nav__content", "aria-label": this.label }, index.h("div", { key: '8b830945bf6ec1da8ab2e2c955c10a1077652590', class: "xpl-side-nav__section" }, index.h("slot", { key: '66e5cd33c23bdc8963d661e0741d34f80a0640fb', name: "section" })), index.h("div", { key: 'f0da4e3c25822453efcbfb3c6f8ea7ec328e717d', class: "xpl-side-nav__footer" }, index.h("slot", { key: '76b829e978361be9fd62bd412489ea4559852c3f', name: "nav-footer" }))))));
19420
19451
  }
19421
19452
  };
19422
19453
 
@@ -19469,10 +19500,10 @@ const SideNavItem = class {
19469
19500
  expanded: this.expanded,
19470
19501
  selected: this.selected,
19471
19502
  };
19472
- return (index.h(index.Host, { key: '10318a2c26c650f5c5e2143c2fe1bde6a372f933', class: {
19503
+ return (index.h(index.Host, { key: 'a621f4f9c04d79de708a34a4f4eab06e523a299a', class: {
19473
19504
  'xpl-side-nav-item': true,
19474
19505
  'xpl-side-nav-item--link-disabled': this.link && this.disabled,
19475
- } }, this.link ? (index.h("slot", null)) : (index.h("button", { type: "button", class: linkClass, "aria-current": this.selected ? 'page' : undefined, "aria-expanded": this.hasChildren ? (this.expanded ? 'true' : 'false') : undefined, onClick: this.handleClick, disabled: this.disabled }, this.hasChildren && (index.h("span", { class: `xpl-side-nav-item__arrow ${this.expanded ? 'expanded' : ''}` }, index.h("xpl-icon", { icon: "chevron-down", size: 16 }))), !this.hasChildren && (index.h("span", { class: "xpl-side-nav-item__icon" }, index.h("slot", { name: "icon" }, this.icon ? (index.h("xpl-icon", { icon: this.icon, size: 16 })) : null))), index.h("span", { class: "xpl-side-nav-item__label" }, (_a = this.label) !== null && _a !== void 0 ? _a : ''))), this.hasChildren && !this.link && (index.h("div", { key: 'ea6e431300ffe641e970c8cc49e7935858986685', class: `xpl-side-nav-item__children ${this.expanded ? 'expanded' : ''}`, inert: !this.expanded ? true : undefined }, index.h("div", { key: '378a00e24a61911ce69ef6a50e69d47b496b5557', class: "xpl-side-nav-item__children-inner" }, index.h("slot", { key: 'b3ece8c8ddbf58693a370824c40fe3811828889a' }))))));
19506
+ } }, this.link ? (index.h("slot", null)) : (index.h("button", { type: "button", class: linkClass, "aria-current": this.selected ? 'page' : undefined, "aria-expanded": this.hasChildren ? (this.expanded ? 'true' : 'false') : undefined, onClick: this.handleClick, disabled: this.disabled }, this.hasChildren && (index.h("span", { class: `xpl-side-nav-item__arrow ${this.expanded ? 'expanded' : ''}` }, index.h("xpl-icon", { icon: "chevron-down", size: 16 }))), !this.hasChildren && (index.h("span", { class: "xpl-side-nav-item__icon" }, index.h("slot", { name: "icon" }, this.icon ? (index.h("xpl-icon", { icon: this.icon, size: 16 })) : null))), index.h("span", { class: "xpl-side-nav-item__label" }, (_a = this.label) !== null && _a !== void 0 ? _a : ''))), this.hasChildren && !this.link && (index.h("div", { key: '3e22894c0bd9427f568b86bba00cdab822921997', class: `xpl-side-nav-item__children ${this.expanded ? 'expanded' : ''}`, inert: !this.expanded ? true : undefined }, index.h("div", { key: '41486a4241e4402232531d140e972b39d863ffd9', class: "xpl-side-nav-item__children-inner" }, index.h("slot", { key: 'd334c6ecac7dd1dd12602a461db444cd1ccefc86' }))))));
19476
19507
  }
19477
19508
  get el() { return index.getElement(this); }
19478
19509
  static get watchers() { return {
@@ -19492,7 +19523,7 @@ const Skeleton = class {
19492
19523
  this.size = 'custom';
19493
19524
  }
19494
19525
  render() {
19495
- return (index.h(index.Host, { key: '4c0962c3339b49f2f89d07e4827e826089419c70', class: {
19526
+ return (index.h(index.Host, { key: '0ac86ae7bf109ea51bca36ac502d506ac7d0b66e', class: {
19496
19527
  'xpl-skeleton': true,
19497
19528
  [`xpl-skeleton--shape-${this.shape}`]: true,
19498
19529
  [`xpl-skeleton--size-${this.size}`]: true,
@@ -19535,7 +19566,7 @@ const Slideout = class {
19535
19566
  this.handleScroll();
19536
19567
  }
19537
19568
  render() {
19538
- return (index.h(index.Host, { key: '01e702ef959cc596ae8fb140275d733c93c3b399', class: "xpl-slideout" }, this.backdrop && this.isOpen && (index.h("xpl-backdrop", { key: '4e82ee44b68eae102a4c4ef65e797ce23659d330', onClick: this.handleClose })), index.h("aside", { key: '1c718a30611bb6699f231a9e736c0521c248d65a', class: `slideout slideout--${!this.isOpen && 'closed'}` }, index.h("header", { key: 'c53419926fbe8ccc6616af39d021248b46f138a3', class: "header" }, index.h("div", { key: '36e02fe5b7ff8d6920759ab793ead2be0f0811ac', class: "title" }, index.h("slot", { key: '7932fd5e77edb89570ebd3fedc0346929582ec7b', name: "title" }), index.h("xpl-button", { key: '9772e880c9b132ba84ccf45c4793e0af70548866', class: "close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleClose }, index.h("xpl-icon", { key: '91922e8aa02c30aa73ae1ea3d2b47daffd954616', icon: "x" }))), index.h("div", { key: '2f7065ba1da7f0ad805e16b69f4a316d5a1f9285', class: "subtitle" }, index.h("slot", { key: '8edb8bdbdecd01abd2b7899d5c9897c91e625326', name: "subtitle" })), index.h("div", { key: '5945128002bb2103daac40d1f7457ebb97521002', class: "search" }, index.h("slot", { key: 'c4df975581beb16547a439a86f2a532c10fa4fa7', name: "search" }))), index.h("xpl-divider", { key: '3be4c74de14ca2380179798fe4ec0c9a758739af', tier: 0, class: "divider top" }), index.h("article", { key: '2012ae1197acc41f530af8920b19752a248e2b40', class: "content", tabIndex: 0 }, index.h("slot", { key: 'e8a1cedda6cd48bb62dc42f00c9bdc8510d4f603', name: "content" })), this.showFooter && (index.h("footer", { key: 'cfa5a41846485b879126a90f3a7346d6eb680776' }, index.h("xpl-divider", { key: 'bf05c9d85471b55dee25da790afb3cb642f1a86b', tier: 0, class: "divider bottom" }), index.h("div", { key: 'd109314ca745947f3337b06df73183ff277c89bb', class: "footer" }, index.h("slot", { key: 'cad183e788d3555a5366b19b4e01c3c90f7d9ae0', name: "tertiary" }), index.h("slot", { key: 'c12294440fe8544e51197dfddbc01aaea506575a', name: "secondary" }), index.h("slot", { key: '7accdf8dc3cc9b6a416cf784ec081d70c1d0f1e9', name: "primary" })))))));
19569
+ return (index.h(index.Host, { key: '8a3f7af854b35469bf4a383cc4cb1fcfcaa15748', class: "xpl-slideout" }, this.backdrop && this.isOpen && (index.h("xpl-backdrop", { key: '7033d78efa9ac2642a99d2b2dca278a3e9a44368', onClick: this.handleClose })), index.h("aside", { key: '2999e4119a0dbaac5125c7a1ef5f03761f445a0e', class: `slideout slideout--${!this.isOpen && 'closed'}` }, index.h("header", { key: '5e6bcf1284c2b2a4fbc05dd8e5100a33fa7597b4', class: "header" }, index.h("div", { key: '88172efe113b56a533761b975605a44ef52c5174', class: "title" }, index.h("slot", { key: 'c8f13168f62f96374250b11814ace756fa680503', name: "title" }), index.h("xpl-button", { key: '8e0e29a8ad2a5f45b250f9d563886fe7ad2a7cb8', class: "close-button", "icon-only": true, size: "sm", variant: "tertiary", onClick: this.handleClose }, index.h("xpl-icon", { key: '110cbd50e31b51319745d6fed61188c1c885b8b3', icon: "x" }))), index.h("div", { key: '96e6cddf4b078736201116f220f27ddf34b90b44', class: "subtitle" }, index.h("slot", { key: 'eb02b4fce6ff5e658ec51c83819a5257f452d3a1', name: "subtitle" })), index.h("div", { key: 'ac8dfe1f99428cdf728027aa5a04d58d497f34f0', class: "search" }, index.h("slot", { key: '28deb70ef99f4880fba55beb2d2b4b1d3136a240', name: "search" }))), index.h("xpl-divider", { key: '928d20ef8e74eed4e06351c5dab0c0af9934d2b8', tier: 0, class: "divider top" }), index.h("article", { key: 'd6460cb29abb33f6676d2e4f517c1f2befa57148', class: "content", tabIndex: 0 }, index.h("slot", { key: 'b415af9cadedc61407623773fd6b2b1130caf5df', name: "content" })), this.showFooter && (index.h("footer", { key: 'db6a58277112f134dc150266446cc67c79bc6bc5' }, index.h("xpl-divider", { key: '129a61ba1a8a588e94d710b7e7fb1059c4b7f5e6', tier: 0, class: "divider bottom" }), index.h("div", { key: '6c81348acf8ee2bb4c12c2f3207daae564e78aa2', class: "footer" }, index.h("slot", { key: '8c9a6d4c215154bb2e66d62aa462b3b085ef0f5b', name: "tertiary" }), index.h("slot", { key: 'e66e45e2d090f45305f818c6496541b737c96aeb', name: "secondary" }), index.h("slot", { key: '8892bdf075a38237a5c858bfd951e1203fc3c892', name: "primary" })))))));
19539
19570
  }
19540
19571
  get el() { return index.getElement(this); }
19541
19572
  static get watchers() { return {
@@ -20363,62 +20394,14 @@ const TabPanel = class {
20363
20394
  const t = (_a = this.target) !== null && _a !== void 0 ? _a : '';
20364
20395
  const panelId = tabPanelDomId(groupId, t);
20365
20396
  const labelledBy = tabTriggerId(groupId, t);
20366
- return (index.h(index.Host, { key: '4491f3466d26e462432843c382b0d0b5ab64e68b', "aria-labelledby": labelledBy, class: {
20397
+ return (index.h(index.Host, { key: '4c4a86dda347872ea6b1c4569f8424bd6cac7bd9', "aria-labelledby": labelledBy, class: {
20367
20398
  'xpl-tab-panel': true,
20368
20399
  'xpl-tab-panel--selected': this.selected,
20369
- }, id: panelId, role: "tabpanel" }, index.h("slot", { key: '75b3da77cddb6e0a83b7cf41aa5e0aa30259b728' })));
20400
+ }, id: panelId, role: "tabpanel" }, index.h("slot", { key: '30c9ae6f3748dc02a73da7535443266b1043d61b' })));
20370
20401
  }
20371
20402
  get el() { return index.getElement(this); }
20372
20403
  };
20373
20404
 
20374
- const XPL_TABLE_COLUMN_WIDTHS_CHANGE_EVENT = 'xplTableColumnWidthsChange';
20375
- const TABLE_HEADER_CELL_MIN_WIDTH_PX = 48;
20376
- const getGridColumnWidthFromHeaderCell = (cell) => {
20377
- var _a, _b;
20378
- if (cell.tagName.toLowerCase() !== 'xpl-table-header-cell') {
20379
- return 'auto';
20380
- }
20381
- const host = cell;
20382
- const fromProp = typeof host.columnWidth === 'string' ? host.columnWidth.trim() : '';
20383
- const fromAttr = (_b = (_a = cell.getAttribute('column-width')) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
20384
- const columnTrack = fromProp || fromAttr;
20385
- if (columnTrack.length > 0) {
20386
- return columnTrack;
20387
- }
20388
- const w = host.width;
20389
- if (typeof w === 'number' && Number.isFinite(w) && w > 0) {
20390
- return `${Math.max(TABLE_HEADER_CELL_MIN_WIDTH_PX, w)}px`;
20391
- }
20392
- const raw = cell.getAttribute('width');
20393
- if (raw === null || raw === '') {
20394
- return 'auto';
20395
- }
20396
- if (/^\s*\d+(\.\d+)?\s*$/.test(raw)) {
20397
- const n = Number.parseFloat(raw);
20398
- if (Number.isFinite(n) && n > 0) {
20399
- return `${Math.max(TABLE_HEADER_CELL_MIN_WIDTH_PX, n)}px`;
20400
- }
20401
- return 'auto';
20402
- }
20403
- return raw.trim();
20404
- };
20405
- const SELECTION_MARK = 'data-xpl-selection-managed';
20406
- const ROW_REORDER_MARK = 'data-xpl-row-reorder-managed';
20407
- const getSortAffordanceIconName = (sortDirection) => {
20408
- if (sortDirection === 'asc')
20409
- return 'arrow-up';
20410
- return 'arrow-down';
20411
- };
20412
- const cycleSortDirection = (current) => {
20413
- switch (current) {
20414
- case 'asc':
20415
- return 'desc';
20416
- case 'desc':
20417
- return null;
20418
- default:
20419
- return 'asc';
20420
- }
20421
- };
20422
20405
  const getIconType = (sortType) => {
20423
20406
  switch (sortType) {
20424
20407
  case 'asc':
@@ -20429,104 +20412,18 @@ const getIconType = (sortType) => {
20429
20412
  return 'dash';
20430
20413
  }
20431
20414
  };
20432
-
20433
- function getNearestTableBodyRowFromNode(node) {
20434
- const el = node instanceof HTMLElement ? node : null;
20435
- if (!el) {
20436
- return null;
20437
- }
20438
- const row = el.closest('xpl-table-row');
20439
- return row != null ? row : null;
20440
- }
20441
- function getNextVisibleTableBodyRowAfter(element) {
20442
- const parent = element.parentElement;
20443
- if (!parent)
20444
- return null;
20445
- const siblings = Array.from(parent.children);
20446
- const idx = siblings.indexOf(element);
20447
- if (idx === -1)
20448
- return null;
20449
- for (let i = idx + 1; i < siblings.length; i += 1) {
20450
- const n = siblings[i];
20451
- if (n.tagName.toLowerCase() === 'xpl-table-row' && !n.hasAttribute('hidden')) {
20452
- return n;
20453
- }
20454
- }
20455
- return null;
20456
- }
20457
- function moveRowInTableBody(body, draggedRow, dropTargetRow) {
20458
- if (draggedRow === dropTargetRow || draggedRow.parentElement !== body) {
20459
- return;
20460
- }
20461
- if (dropTargetRow.parentElement !== body) {
20462
- return;
20463
- }
20464
- const visible = Array.from(body.children).filter((c) => c.tagName.toLowerCase() === 'xpl-table-row' && !c.hasAttribute('hidden'));
20465
- const fromIndex = visible.indexOf(draggedRow);
20466
- const toIndex = visible.indexOf(dropTargetRow);
20467
- if (fromIndex === -1 || toIndex === -1 || fromIndex === toIndex) {
20468
- return;
20469
- }
20470
- if (fromIndex < toIndex) {
20471
- const nextVisible = getNextVisibleTableBodyRowAfter(dropTargetRow);
20472
- if (nextVisible) {
20473
- body.insertBefore(draggedRow, nextVisible);
20474
- }
20475
- else {
20476
- body.insertBefore(draggedRow, null);
20477
- }
20478
- }
20479
- else {
20480
- body.insertBefore(draggedRow, dropTargetRow);
20481
- }
20482
- }
20483
-
20484
- function bodyRowFromDragTarget(target) {
20485
- return getNearestTableBodyRowFromNode(target);
20486
- }
20487
- function tableBodyRowFromEvent(ev) {
20488
- const path = typeof ev.composedPath === 'function' ? ev.composedPath() : [];
20489
- const row = path.find((n) => n instanceof HTMLElement && n.tagName.toLowerCase() === 'xpl-table-row');
20490
- return row !== null && row !== void 0 ? row : bodyRowFromDragTarget(ev.target);
20491
- }
20492
- function reorderDragHandleFromEvent(ev) {
20493
- const path = typeof ev.composedPath === 'function' ? ev.composedPath() : [];
20494
- const handle = path.find((n) => n instanceof HTMLElement && n.classList.contains('xpl-table__row-drag-handle'));
20495
- return handle !== null && handle !== void 0 ? handle : null;
20496
- }
20497
20415
  const Table = class {
20498
20416
  constructor(hostRef) {
20499
20417
  index.registerInstance(this, hostRef);
20500
- this.rowOrderChange = index.createEvent(this, "rowOrderChange", 3);
20501
- this.rowSelectionChange = index.createEvent(this, "rowSelectionChange", 3);
20502
- this.sortChanged = index.createEvent(this, "sortChanged", 3);
20503
20418
  this.tableSelect = index.createEvent(this, "tableSelect", 7);
20504
- this.columnWidthsToken = '';
20505
- this.lastEmittedRowSelectionKey = '';
20506
- this.selectAllValue = Math.random().toString(36).slice(2);
20507
- this.draggedRow = null;
20508
- this.pendingDragRow = null;
20509
- this.pointerUpClearPending = null;
20510
- this.reorderKeyboardTimers = new TimerManager();
20511
- this.onReorderHandleKeydown = (ev) => {
20512
- this.handleReorderHandleKeyDown(ev);
20513
- };
20419
+ this.sortChanged = index.createEvent(this, "sortChanged", 3);
20420
+ this.selectedValues = [];
20421
+ this.isSortable = false;
20422
+ this.sortableColumns = [];
20514
20423
  this.areAllSelected = false;
20515
- this.colCount = 0;
20516
20424
  this.hasScrolled = false;
20517
- this.keyboardReorderRowId = null;
20518
- this.reorderLiveMessage = '';
20519
- this.rowData = [];
20520
- this.rowFooterData = [];
20521
- this.selected = [];
20522
- this.selectedRowIds = [];
20523
20425
  this.sortTypeArray = [];
20524
- this.isSortable = false;
20525
- this.selectedValues = [];
20526
- this.sortableColumns = [];
20527
- this.onGridScroll = (e) => {
20528
- this.hasScrolled = e.target.scrollLeft > 0;
20529
- };
20426
+ this.selectAllValue = Math.random().toString(36).slice(2);
20530
20427
  this.selectAll = (e) => {
20531
20428
  const { target } = e;
20532
20429
  if (!(target instanceof HTMLInputElement))
@@ -20535,9 +20432,10 @@ const Table = class {
20535
20432
  this.areAllSelected = checked;
20536
20433
  this.selected =
20537
20434
  this.selectedValues.length > 0
20538
- ? Array.from(this.el.querySelectorAll('tbody td:first-child input')).map((input) => (checked ? input === null || input === void 0 ? void 0 : input.value : checked))
20435
+ ?
20436
+ Array.from(this.el.querySelectorAll('tbody td:first-child input')).map((input) => checked ? input === null || input === void 0 ? void 0 : input.value : checked)
20539
20437
  : this.selected.map(() => checked);
20540
- this.onSelectionChange();
20438
+ this.onChange();
20541
20439
  };
20542
20440
  this.selectOne = (e, checkboxIdx) => {
20543
20441
  const { target } = e;
@@ -20550,23 +20448,25 @@ const Table = class {
20550
20448
  return v;
20551
20449
  return this.selectedValues.length > 0 ? (checked ? value : checked) : checked;
20552
20450
  });
20553
- this.onSelectionChange();
20451
+ this.onChange();
20554
20452
  };
20555
- this.onSelectionChange = () => {
20453
+ this.onChange = () => {
20556
20454
  this.tableSelect.emit({
20557
20455
  selected: this.selected,
20558
20456
  areAllSelected: this.areAllSelected,
20559
20457
  });
20560
20458
  };
20561
- this.onLegacyScroll = () => {
20459
+ this.onScroll = () => {
20562
20460
  this.hasScrolled = this.container.scrollLeft > 0;
20563
20461
  };
20564
20462
  this.sortBy = (col, sortTypeArray) => {
20565
20463
  const handleSort = (a, b) => {
20566
- if (a[col].toLocaleLowerCase() < b[col].toLocaleLowerCase())
20464
+ if (a[col].toLocaleLowerCase() < b[col].toLocaleLowerCase()) {
20567
20465
  return -1;
20568
- if (a[col].toLocaleLowerCase() > b[col].toLocaleLowerCase())
20466
+ }
20467
+ if (a[col].toLocaleLowerCase() > b[col].toLocaleLowerCase()) {
20569
20468
  return 1;
20469
+ }
20570
20470
  return 0;
20571
20471
  };
20572
20472
  switch (sortTypeArray[col]) {
@@ -20582,6 +20482,7 @@ const Table = class {
20582
20482
  break;
20583
20483
  }
20584
20484
  this.rowData = Array.from(this.rowData);
20485
+ this.render();
20585
20486
  };
20586
20487
  this.setData = () => {
20587
20488
  this.rowData = this.data !== undefined ? Array.from(this.data) : [];
@@ -20590,8 +20491,30 @@ const Table = class {
20590
20491
  this.rowFooterData = this.footer !== undefined ? Array.from(this.footer) : [];
20591
20492
  };
20592
20493
  }
20593
- watchColumns() {
20594
- this.sortTypeArray = this.columns ? this.columns.map(() => null) : [];
20494
+ handleSort(clickEvt, isColumnSortable, colNum, colName) {
20495
+ clickEvt.preventDefault();
20496
+ clickEvt.stopPropagation();
20497
+ if (!isColumnSortable)
20498
+ return;
20499
+ this.sortTypeArray = this.sortTypeArray.map((val, i) => {
20500
+ if (i !== colNum)
20501
+ return null;
20502
+ switch (val) {
20503
+ case 'asc':
20504
+ return 'desc';
20505
+ case 'desc':
20506
+ return null;
20507
+ default:
20508
+ return 'asc';
20509
+ }
20510
+ });
20511
+ const evt = this.sortChanged.emit({
20512
+ colNum,
20513
+ colName,
20514
+ sortTypeArr: this.sortTypeArray,
20515
+ });
20516
+ if (!evt.defaultPrevented)
20517
+ this.sortBy(colNum, this.sortTypeArray);
20595
20518
  }
20596
20519
  watchData() {
20597
20520
  this.setData();
@@ -20599,1415 +20522,54 @@ const Table = class {
20599
20522
  watchFooterData() {
20600
20523
  this.setFooterData();
20601
20524
  }
20602
- watchReorderHandleIcon() {
20603
- if (this.isLegacyMode || !this.rowReorderable)
20604
- return;
20605
- this.syncInjectedReorderHandleIcons();
20606
- }
20607
- watchReorderHandleIconKeyboard() {
20608
- if (this.isLegacyMode || !this.rowReorderable)
20609
- return;
20610
- this.syncInjectedReorderHandleIcons();
20611
- }
20612
- watchRowReorderable(next) {
20613
- if (this.isLegacyMode)
20614
- return;
20615
- if (!next) {
20616
- this.keyboardReorderRowId = null;
20617
- this.syncReorderHandleKeyboardA11y(null);
20618
- this.removeManagedReorderCells();
20619
- this.draggedRow = null;
20620
- this.pendingDragRow = null;
20621
- this.clearPendingDragListeners();
20622
- this.reorderLiveMessage = '';
20623
- this.queryBodyRows().forEach((r) => {
20624
- var _a;
20625
- r.removeAttribute('draggable');
20626
- (_a = r.querySelector('.xpl-table__row-drag-handle')) === null || _a === void 0 ? void 0 : _a.removeAttribute('draggable');
20627
- r.classList.remove('xpl-table-row--dragging', 'xpl-table-row--drag-over');
20628
- });
20629
- this.colCount = 0;
20630
- this.columnWidthsToken = '';
20631
- }
20632
- }
20633
- watchSelectable(next) {
20634
- if (this.isLegacyMode)
20635
- return;
20636
- if (!next) {
20637
- this.selectedRowIds = [];
20638
- this.lastEmittedRowSelectionKey = '';
20639
- this.colCount = 0;
20640
- this.columnWidthsToken = '';
20641
- this.syncRowSelectedProps();
20642
- }
20525
+ watchColumns() {
20526
+ this.sortTypeArray = this.columns ? this.columns.map(() => null) : [];
20643
20527
  }
20644
20528
  componentWillLoad() {
20645
- if (this.isLegacyMode) {
20646
- this.areAllSelected = false;
20647
- this.setData();
20648
- this.setFooterData();
20649
- this.selected = new Array(this.rowData.length).fill(false);
20650
- this.sortTypeArray = this.columns ? this.columns.map(() => null) : [];
20651
- }
20652
- }
20653
- componentDidLoad() {
20654
- if (!this.isLegacyMode) {
20655
- this.syncCompositionalLayout();
20656
- }
20657
- }
20658
- componentDidUpdate() {
20659
- if (!this.isLegacyMode) {
20660
- this.syncCompositionalLayout();
20661
- }
20662
- }
20663
- disconnectedCallback() {
20664
- this.clearPendingDragListeners();
20665
- this.detachReorderHandleKeydownListeners();
20666
- this.reorderKeyboardTimers.dispose();
20667
- if (this.reorderAnnounceRaf !== undefined) {
20668
- cancelAnimationFrame(this.reorderAnnounceRaf);
20669
- this.reorderAnnounceRaf = undefined;
20670
- }
20671
- }
20672
- handleHeaderCellColumnWidthsChange(ev) {
20673
- if (this.isLegacyMode)
20674
- return;
20675
- const t = ev.target;
20676
- if (!(t instanceof Node) || !this.el.contains(t))
20677
- return;
20678
- this.updateColumnWidths();
20679
- }
20680
- handleCompositionalCheckboxChange(ev) {
20681
- var _a, _b;
20682
- if (this.isLegacyMode || !this.selectable)
20683
- return;
20684
- if (!this.isEventFromThisTable(ev.target))
20685
- return;
20686
- const path = (_b = (_a = ev.composedPath) === null || _a === void 0 ? void 0 : _a.call(ev)) !== null && _b !== void 0 ? _b : [];
20687
- let checkboxHost = (path.length > 0 ? path : [ev.target].filter((n) => n != null)).find((n) => n instanceof HTMLElement && n.tagName.toLowerCase() === 'xpl-checkbox');
20688
- if (!checkboxHost &&
20689
- ev.target &&
20690
- typeof ev.target.closest === 'function') {
20691
- checkboxHost = ev.target.closest('xpl-checkbox');
20692
- }
20693
- if (!checkboxHost || !this.el.contains(checkboxHost))
20694
- return;
20695
- const row = checkboxHost.closest('xpl-table-row');
20696
- if (!row || !this.isDirectChildBodyRow(row))
20697
- return;
20698
- const cell = checkboxHost.closest('xpl-table-cell');
20699
- if (!cell)
20700
- return;
20701
- const selectionIdx = this.getSelectionColumnIndex();
20702
- if (selectionIdx === null)
20703
- return;
20704
- const bodyCells = Table.getBodyRowCells(row);
20705
- const colIdx = bodyCells.indexOf(cell);
20706
- if (colIdx !== selectionIdx)
20707
- return;
20708
- ev.stopPropagation();
20709
- const rowId = Table.getRowIdForRow(row);
20710
- if (!rowId || row.disabled)
20711
- return;
20712
- const input = checkboxHost.querySelector('input[type="checkbox"]');
20713
- if (!input)
20714
- return;
20715
- const { checked } = input;
20716
- if (checked) {
20717
- if (!this.selectedRowIds.includes(rowId)) {
20718
- this.selectedRowIds = [...this.selectedRowIds, rowId];
20719
- }
20720
- }
20721
- else {
20722
- this.selectedRowIds = this.selectedRowIds.filter((id) => id !== rowId);
20723
- }
20724
- this.applyHeaderCheckboxState();
20725
- this.syncRowSelectedProps();
20726
- this.emitCompositionalSelection();
20727
- }
20728
- handleCompositionalHeaderCheckboxChange(ev) {
20729
- var _a, _b;
20730
- if (this.isLegacyMode || !this.selectable)
20731
- return;
20732
- if (!this.isEventFromThisTable(ev.target))
20733
- return;
20734
- const path = (_b = (_a = ev.composedPath) === null || _a === void 0 ? void 0 : _a.call(ev)) !== null && _b !== void 0 ? _b : [];
20735
- let headerCell = (path.length > 0 ? path : [ev.target].filter((n) => n != null)).find((n) => n instanceof HTMLElement &&
20736
- n.tagName.toLowerCase() === 'xpl-table-header-cell' &&
20737
- n.getAttribute('type') === 'checkbox');
20738
- if (!headerCell && ev.target && typeof ev.target.closest === 'function') {
20739
- headerCell = ev.target.closest('xpl-table-header-cell[type="checkbox"]');
20740
- }
20741
- if (!headerCell || !this.el.contains(headerCell))
20742
- return;
20743
- if (!this.isCellInOurCompositionalHeader(headerCell))
20744
- return;
20745
- const headerCells = this.getCompositionalHeaderCells();
20746
- if (!headerCells.includes(headerCell))
20747
- return;
20748
- const checked = !!ev.detail;
20749
- const selectableRows = this.querySelectableBodyRows();
20750
- const ids = selectableRows
20751
- .map((r) => Table.getRowIdForRow(r))
20752
- .filter((id) => !!id);
20753
- if (checked) {
20754
- this.selectedRowIds = [...ids];
20755
- }
20756
- else {
20757
- this.selectedRowIds = [];
20758
- }
20759
- this.applyBodyCheckboxStates();
20760
- this.syncRowSelectedProps();
20761
- this.emitCompositionalSelection();
20762
- }
20763
- handlePointerDownExitKeyboardReorder(ev) {
20764
- if (this.isLegacyMode || !this.rowReorderable || this.keyboardReorderRowId === null) {
20765
- return;
20766
- }
20767
- const t = ev.target;
20768
- if (!(t instanceof Node) || !this.el.contains(t)) {
20769
- return;
20770
- }
20771
- const row = t instanceof Element ? t.closest('xpl-table-row') : null;
20772
- if (!row || !this.isDirectChildBodyRow(row)) {
20773
- return;
20774
- }
20775
- this.keyboardReorderRowId = null;
20776
- this.syncReorderHandleKeyboardA11y(null);
20777
- }
20778
- handleReorderHandleKeyDown(ev) {
20779
- var _a;
20780
- if (this.isLegacyMode || !this.rowReorderable) {
20781
- return;
20782
- }
20783
- const rawPath = typeof ev.composedPath === 'function' ? ev.composedPath() : [];
20784
- const path = rawPath.length > 0 ? rawPath : ev.target ? [ev.target] : [];
20785
- let handle = path.find((n) => n instanceof HTMLElement && n.classList.contains('xpl-table__row-drag-handle'));
20786
- if (!handle &&
20787
- ev.target instanceof HTMLElement &&
20788
- ev.target.classList.contains('xpl-table__row-drag-handle')) {
20789
- handle = ev.target;
20790
- }
20791
- if (!handle || !this.el.contains(handle)) {
20792
- return;
20793
- }
20794
- const row = handle.closest('xpl-table-row');
20795
- if (!row || !this.isDirectChildBodyRow(row)) {
20796
- return;
20797
- }
20798
- const rowId = (_a = Table.getRowIdForRow(row)) !== null && _a !== void 0 ? _a : '';
20799
- if (!rowId) {
20800
- return;
20801
- }
20802
- const isKbd = this.keyboardReorderRowId === rowId;
20803
- const isEscapeKey = ev.key === 'Escape' ||
20804
- ev.key === 'Esc' ||
20805
- ev.code === 'Escape' ||
20806
- ev.keyCode === 27;
20807
- if (row.disabled) {
20808
- if (isEscapeKey && isKbd) {
20809
- ev.preventDefault();
20810
- this.keyboardReorderRowId = null;
20811
- this.syncReorderHandleKeyboardA11y(null);
20812
- }
20813
- return;
20814
- }
20815
- if (isEscapeKey) {
20816
- if (isKbd) {
20817
- ev.preventDefault();
20818
- this.keyboardReorderRowId = null;
20819
- this.syncReorderHandleKeyboardA11y(null);
20820
- }
20821
- return;
20822
- }
20823
- if (!isKbd) {
20824
- if (ev.key === 'Enter' || ev.key === ' ') {
20825
- ev.preventDefault();
20826
- this.keyboardReorderRowId = rowId;
20827
- this.syncReorderHandleKeyboardA11y(rowId);
20828
- }
20829
- return;
20830
- }
20831
- if (ev.key === 'ArrowUp' || ev.key === 'ArrowDown') {
20832
- ev.preventDefault();
20833
- const dir = ev.key === 'ArrowUp' ? 'up' : 'down';
20834
- this.performKeyboardRowReorder(rowId, dir);
20835
- }
20836
- }
20837
- handleRowReorderPointerDown(ev) {
20838
- if (this.isLegacyMode || !this.rowReorderable) {
20839
- return;
20840
- }
20841
- const handle = reorderDragHandleFromEvent(ev);
20842
- if (!handle) {
20843
- return;
20844
- }
20845
- const table = handle.closest('xpl-table');
20846
- if (table !== this.el) {
20847
- return;
20848
- }
20849
- const row = bodyRowFromDragTarget(handle);
20850
- if (!row || row.disabled) {
20851
- return;
20852
- }
20853
- const body = this.getDirectChildTableSection('xpl-table-body');
20854
- if (!body || row.parentElement !== body) {
20855
- return;
20856
- }
20857
- this.clearPendingDragListeners();
20858
- this.pendingDragRow = row;
20859
- const onPointerEnd = () => {
20860
- this.clearPendingDragListeners();
20861
- this.pendingDragRow = null;
20862
- };
20863
- document.addEventListener('pointerup', onPointerEnd, true);
20864
- document.addEventListener('pointercancel', onPointerEnd, true);
20865
- this.pointerUpClearPending = () => {
20866
- document.removeEventListener('pointerup', onPointerEnd, true);
20867
- document.removeEventListener('pointercancel', onPointerEnd, true);
20868
- };
20529
+ this.areAllSelected = false;
20530
+ this.setData();
20531
+ this.setFooterData();
20532
+ this.selected = new Array(this.rowData.length).fill(false);
20533
+ this.sortTypeArray = this.columns ? this.columns.map(() => null) : [];
20869
20534
  }
20870
- handleRowReorderDragStart(ev) {
20535
+ render() {
20871
20536
  var _a;
20872
- if (this.isLegacyMode || !this.rowReorderable) {
20873
- return;
20874
- }
20875
- const row = tableBodyRowFromEvent(ev);
20876
- if (!row) {
20877
- return;
20878
- }
20879
- if (row.closest('xpl-table') !== this.el) {
20880
- return;
20881
- }
20882
- const body = this.getDirectChildTableSection('xpl-table-body');
20883
- if (!body || row.parentElement !== body) {
20884
- return;
20885
- }
20886
- if (row.disabled || this.pendingDragRow !== row) {
20887
- ev.preventDefault();
20888
- return;
20889
- }
20890
- this.keyboardReorderRowId = null;
20891
- this.syncReorderHandleKeyboardA11y(null);
20892
- this.clearPendingDragListeners();
20893
- this.pendingDragRow = null;
20894
- this.draggedRow = row;
20895
- if (ev.dataTransfer) {
20896
- ev.dataTransfer.effectAllowed = 'move';
20897
- ev.dataTransfer.setData('text/plain', (_a = Table.getRowIdForRow(row)) !== null && _a !== void 0 ? _a : '');
20898
- }
20899
- row.classList.add('xpl-table-row--dragging');
20900
- }
20901
- handleRowReorderDragEnd(ev) {
20902
- if (this.isLegacyMode || !this.rowReorderable) {
20903
- return;
20904
- }
20905
- const row = tableBodyRowFromEvent(ev);
20906
- if (!row || row.closest('xpl-table') !== this.el) {
20907
- return;
20537
+ if (this.columns &&
20538
+ (!this.sortTypeArray || this.sortTypeArray.length !== this.columns.length)) {
20539
+ this.sortTypeArray = this.columns.map(() => null);
20908
20540
  }
20909
- row.classList.remove('xpl-table-row--dragging');
20910
- this.clearReorderDragOverClasses();
20911
- this.draggedRow = null;
20912
- }
20913
- handleRowReorderDragOver(ev) {
20914
- if (this.isLegacyMode || !this.rowReorderable) {
20915
- return;
20916
- }
20917
- const row = tableBodyRowFromEvent(ev);
20918
- if (!row || row.closest('xpl-table') !== this.el) {
20919
- return;
20920
- }
20921
- const body = this.getDirectChildTableSection('xpl-table-body');
20922
- if (!body || row.parentElement !== body || row.disabled) {
20923
- return;
20924
- }
20925
- ev.preventDefault();
20926
- if (ev.dataTransfer) {
20927
- ev.dataTransfer.dropEffect = 'move';
20928
- }
20929
- }
20930
- handleRowReorderDragEnter(ev) {
20931
- if (this.isLegacyMode || !this.rowReorderable) {
20932
- return;
20933
- }
20934
- const row = tableBodyRowFromEvent(ev);
20935
- if (!row || row.closest('xpl-table') !== this.el) {
20936
- return;
20937
- }
20938
- const body = this.getDirectChildTableSection('xpl-table-body');
20939
- if (!body || row.parentElement !== body || row.disabled) {
20940
- return;
20941
- }
20942
- ev.preventDefault();
20943
- row.classList.add('xpl-table-row--drag-over');
20944
- }
20945
- handleRowReorderDragLeave(ev) {
20946
- if (this.isLegacyMode || !this.rowReorderable) {
20947
- return;
20948
- }
20949
- const row = tableBodyRowFromEvent(ev);
20950
- if (!row || row.closest('xpl-table') !== this.el) {
20951
- return;
20952
- }
20953
- const related = ev.relatedTarget;
20954
- if (related && row.contains(related)) {
20955
- return;
20956
- }
20957
- row.classList.remove('xpl-table-row--drag-over');
20958
- }
20959
- handleRowReorderDrop(ev) {
20960
- var _a;
20961
- if (this.isLegacyMode || !this.rowReorderable) {
20962
- return;
20963
- }
20964
- ev.preventDefault();
20965
- const dropRow = tableBodyRowFromEvent(ev);
20966
- if (!dropRow || dropRow.closest('xpl-table') !== this.el) {
20967
- return;
20968
- }
20969
- const body = this.getDirectChildTableSection('xpl-table-body');
20970
- if (!body || dropRow.parentElement !== body || dropRow.disabled) {
20971
- return;
20972
- }
20973
- const source = this.draggedRow;
20974
- if (!source || source.disabled) {
20975
- this.draggedRow = null;
20976
- this.clearReorderDragOverClasses();
20977
- return;
20978
- }
20979
- if (source === dropRow) {
20980
- this.clearReorderDragOverClasses();
20981
- return;
20982
- }
20983
- const visible = this.getVisibleBodyRowsForReorder();
20984
- const fromIndex = visible.indexOf(source);
20985
- const toIndex = visible.indexOf(dropRow);
20986
- if (fromIndex === -1 || toIndex === -1) {
20987
- this.clearReorderDragOverClasses();
20988
- return;
20989
- }
20990
- const direction = fromIndex > toIndex ? 'up' : 'down';
20991
- const rowId = (_a = Table.getRowIdForRow(source)) !== null && _a !== void 0 ? _a : '';
20992
- const runMove = () => {
20993
- moveRowInTableBody(body, source, dropRow);
20994
- };
20995
- runMove();
20996
- const orderedRowIds = this.getVisibleBodyRowsForReorder().map((r) => { var _a; return (_a = Table.getRowIdForRow(r)) !== null && _a !== void 0 ? _a : ''; });
20997
- this.rowOrderChange.emit({
20998
- rowId,
20999
- direction,
21000
- orderedRowIds,
21001
- fromIndex,
21002
- toIndex,
21003
- });
21004
- this.announceRowReorder(rowId, orderedRowIds);
21005
- this.clearReorderDragOverClasses();
21006
- if (this.selectable) {
21007
- this.applyBodyCheckboxStates();
21008
- this.applyHeaderCheckboxState();
21009
- this.syncRowSelectedProps();
21010
- }
21011
- this.updateColumnWidths();
21012
- }
21013
- get isLegacyMode() {
21014
- return this.columns !== undefined || this.data !== undefined || this.footer !== undefined;
21015
- }
21016
- ensureTableInstanceId() {
21017
- if (this.tableInstanceId)
21018
- return;
21019
- if (typeof crypto !== 'undefined' && crypto.randomUUID) {
21020
- this.tableInstanceId = crypto.randomUUID();
21021
- }
21022
- else {
21023
- this.tableInstanceId = Math.random().toString(36).slice(2);
21024
- }
21025
- }
21026
- generateRowId() {
21027
- this.ensureTableInstanceId();
21028
- if (typeof crypto !== 'undefined' && crypto.randomUUID) {
21029
- return `${this.tableInstanceId}-${crypto.randomUUID()}`;
21030
- }
21031
- return `${this.tableInstanceId}-${Math.random().toString(36).slice(2)}`;
21032
- }
21033
- syncCompositionalLayout() {
21034
- if (this.isLegacyMode)
21035
- return;
21036
- if (this.rowReorderable) {
21037
- this.syncReorderColumn();
21038
- }
21039
- else {
21040
- this.removeManagedReorderCells();
21041
- }
21042
- if (this.selectable) {
21043
- this.ensureTableInstanceId();
21044
- this.pruneStaleSelectedRowIds();
21045
- this.ensureBodyRowIds();
21046
- this.applyBodyCheckboxStates();
21047
- this.applyHeaderCheckboxState();
21048
- this.syncRowSelectedProps();
21049
- }
21050
- if (this.rowReorderable && this.selectable) {
21051
- this.normalizeManagedColumnsOrder();
21052
- }
21053
- this.updateColumnWidths();
21054
- }
21055
- getDirectChildTableSection(tag) {
21056
- var _a;
21057
- const el = Array.from(this.el.children).find((c) => c.tagName.toLowerCase() === tag);
21058
- return (_a = el) !== null && _a !== void 0 ? _a : null;
21059
- }
21060
- isDirectChildBodyRow(row) {
21061
- const body = this.getDirectChildTableSection('xpl-table-body');
21062
- return body !== null && row.parentElement === body;
21063
- }
21064
- isCellInOurCompositionalHeader(cell) {
21065
- const header = cell.closest('xpl-table-header');
21066
- return header !== null && header.parentElement === this.el;
21067
- }
21068
- getSelectionColumnIndex() {
21069
- const headerCells = this.getCompositionalHeaderCells();
21070
- const idx = headerCells.findIndex((c) => c.getAttribute('type') === 'checkbox');
21071
- return idx >= 0 ? idx : null;
21072
- }
21073
- static getBodyRowCells(row) {
21074
- return Array.from(row.children).filter((c) => c.tagName.toLowerCase() === 'xpl-table-cell');
21075
- }
21076
- queryBodyRows() {
21077
- const body = this.getDirectChildTableSection('xpl-table-body');
21078
- if (!body)
21079
- return [];
21080
- return Array.from(body.children).filter((c) => c.tagName.toLowerCase() === 'xpl-table-row');
21081
- }
21082
- querySelectableBodyRows() {
21083
- return this.queryBodyRows().filter((row) => !row.disabled);
21084
- }
21085
- static getRowIdForRow(row) {
21086
- var _a;
21087
- const id = (_a = row.getAttribute('row-id')) === null || _a === void 0 ? void 0 : _a.trim();
21088
- return id || null;
21089
- }
21090
- ensureBodyRowIds() {
21091
- this.queryBodyRows().forEach((row) => {
21092
- if (Table.getRowIdForRow(row))
21093
- return;
21094
- row.setAttribute('row-id', this.generateRowId());
21095
- });
21096
- }
21097
- removeManagedReorderCells() {
21098
- this.el.querySelectorAll(`[${ROW_REORDER_MARK}]`).forEach((node) => {
21099
- var _a;
21100
- if (!(node instanceof Element))
21101
- return;
21102
- if (node.closest('xpl-table') !== this.el)
21103
- return;
21104
- (_a = node.parentElement) === null || _a === void 0 ? void 0 : _a.removeChild(node);
21105
- });
21106
- }
21107
- getSelectionSlotCellForReorderOrder(row) {
21108
- const idx = this.getSelectionColumnIndex();
21109
- if (idx === null) {
21110
- return null;
21111
- }
21112
- const cells = Array.from(row.children);
21113
- const cell = cells[idx];
21114
- if (!cell) {
21115
- return null;
21116
- }
21117
- const tag = cell.tagName.toLowerCase();
21118
- if (tag === 'xpl-table-header-cell') {
21119
- return cell.getAttribute('type') === 'checkbox' ? cell : null;
21120
- }
21121
- if (tag === 'xpl-table-cell') {
21122
- if (cell.hasAttribute(SELECTION_MARK)) {
21123
- return cell;
21124
- }
21125
- return cell.querySelector('xpl-checkbox') ? cell : null;
21126
- }
21127
- if (tag === 'xpl-table-footer-cell') {
21128
- return cell;
21129
- }
21130
- return null;
21131
- }
21132
- normalizeManagedColumnsOrder() {
21133
- var _a;
21134
- const fix = (row) => {
21135
- const re = row.querySelector(`:scope > [${ROW_REORDER_MARK}]`);
21136
- const se = this.getSelectionSlotCellForReorderOrder(row);
21137
- if (!re || !se) {
21138
- return;
21139
- }
21140
- const siblings = Array.from(row.children);
21141
- const iRe = siblings.indexOf(re);
21142
- const iSe = siblings.indexOf(se);
21143
- if (iRe > iSe) {
21144
- row.insertBefore(re, se);
21145
- }
21146
- };
21147
- const header = (_a = Array.from(this.el.children).find((c) => c.tagName.toLowerCase() === 'xpl-table-header')) !== null && _a !== void 0 ? _a : null;
21148
- if (header) {
21149
- const firstRow = Array.from(header.children).find((c) => c.tagName.toLowerCase() === 'xpl-table-row');
21150
- const container = firstRow !== null && firstRow !== void 0 ? firstRow : header;
21151
- fix(container);
21152
- }
21153
- this.queryBodyRows().forEach((row) => fix(row));
21154
- const footer = this.getDirectChildTableSection('xpl-table-footer');
21155
- if (footer) {
21156
- Array.from(footer.children)
21157
- .filter((c) => c.tagName.toLowerCase() === 'xpl-table-row')
21158
- .forEach((row) => fix(row));
21159
- }
21160
- }
21161
- syncReorderColumn() {
21162
- if (!this.rowReorderable || this.isLegacyMode)
21163
- return;
21164
- this.ensureBodyRowIds();
21165
- this.ensureHeaderReorderCell();
21166
- this.ensureBodyReorderCells();
21167
- this.ensureFooterReorderCells();
21168
- this.applyReorderRowDraggableState();
21169
- }
21170
- ensureHeaderReorderCell() {
21171
- var _a;
21172
- const header = (_a = Array.from(this.el.children).find((c) => c.tagName.toLowerCase() === 'xpl-table-header')) !== null && _a !== void 0 ? _a : null;
21173
- if (!header)
21174
- return;
21175
- const firstRow = Array.from(header.children).find((c) => c.tagName.toLowerCase() === 'xpl-table-row');
21176
- const container = firstRow !== null && firstRow !== void 0 ? firstRow : header;
21177
- if (Array.from(container.children).some((c) => c.tagName.toLowerCase() === 'xpl-table-header-cell' &&
21178
- c.hasAttribute(ROW_REORDER_MARK))) {
21179
- return;
21180
- }
21181
- const cell = document.createElement('xpl-table-header-cell');
21182
- cell.setAttribute(ROW_REORDER_MARK, '');
21183
- cell.setAttribute('type', 'empty');
21184
- cell.setAttribute('width', '48');
21185
- cell.setAttribute('align', 'center');
21186
- container.insertBefore(cell, container.firstChild);
21187
- }
21188
- ensureBodyReorderCells() {
21189
- this.queryBodyRows().forEach((row) => {
21190
- var _a;
21191
- const managed = Array.from(row.children).filter((c) => c.tagName.toLowerCase() === 'xpl-table-cell' &&
21192
- c.hasAttribute(ROW_REORDER_MARK));
21193
- if (managed.length > 1) {
21194
- for (let i = 1; i < managed.length; i += 1) {
21195
- managed[i].remove();
21196
- }
21197
- }
21198
- let cell = managed[0];
21199
- if (!cell) {
21200
- const newCell = document.createElement('xpl-table-cell');
21201
- newCell.setAttribute(ROW_REORDER_MARK, '');
21202
- newCell.setAttribute('width', '48');
21203
- newCell.setAttribute('align', 'center');
21204
- const btn = document.createElement('button');
21205
- btn.type = 'button';
21206
- btn.className = 'xpl-table__row-drag-handle';
21207
- btn.setAttribute('aria-label', 'Reorder row');
21208
- btn.setAttribute('aria-pressed', 'false');
21209
- const iconName = this.getResolvedIconForRow((_a = Table.getRowIdForRow(row)) !== null && _a !== void 0 ? _a : '');
21210
- if (iconName) {
21211
- const icon = document.createElement('xpl-icon');
21212
- icon.setAttribute('icon', iconName);
21213
- icon.setAttribute('size', '16');
21214
- btn.appendChild(icon);
21215
- }
21216
- newCell.appendChild(btn);
21217
- row.insertBefore(newCell, row.firstChild);
21218
- cell = newCell;
21219
- }
21220
- else {
21221
- cell.setAttribute('align', 'center');
21222
- }
21223
- const btn = cell.querySelector('.xpl-table__row-drag-handle');
21224
- if (btn) {
21225
- btn.disabled = row.disabled;
21226
- }
21227
- });
21228
- this.syncInjectedReorderHandleIcons();
21229
- this.attachReorderHandleKeydownListeners();
21230
- }
21231
- getResolvedIconForRow(rowId) {
21232
- var _a, _b;
21233
- const inKeyboardMode = this.keyboardReorderRowId !== null &&
21234
- rowId !== '' &&
21235
- rowId === this.keyboardReorderRowId;
21236
- if (inKeyboardMode) {
21237
- if (this.reorderHandleIconKeyboard === '') {
21238
- return null;
21239
- }
21240
- return (_a = this.reorderHandleIconKeyboard) !== null && _a !== void 0 ? _a : 'caret-expand-y';
21241
- }
21242
- if (this.reorderHandleIcon === '') {
21243
- return null;
21244
- }
21245
- return (_b = this.reorderHandleIcon) !== null && _b !== void 0 ? _b : 'grip-dots-vertical';
21246
- }
21247
- syncInjectedReorderHandleIcons() {
21248
- this.queryBodyRows().forEach((row) => {
21249
- var _a;
21250
- const btn = row.querySelector('.xpl-table__row-drag-handle');
21251
- if (!btn) {
21252
- return;
21253
- }
21254
- const rowId = (_a = Table.getRowIdForRow(row)) !== null && _a !== void 0 ? _a : '';
21255
- const iconName = this.getResolvedIconForRow(rowId);
21256
- btn.querySelectorAll('xpl-icon').forEach((n) => n.remove());
21257
- if (iconName) {
21258
- const icon = document.createElement('xpl-icon');
21259
- icon.setAttribute('icon', iconName);
21260
- icon.setAttribute('size', '16');
21261
- btn.appendChild(icon);
21262
- }
21263
- });
21264
- }
21265
- syncReorderHandleKeyboardA11y(activeId) {
21266
- if (this.isLegacyMode || !this.rowReorderable) {
21267
- return;
21268
- }
21269
- this.queryBodyRows().forEach((row) => {
21270
- var _a;
21271
- const btn = row.querySelector('.xpl-table__row-drag-handle');
21272
- if (!btn) {
21273
- return;
21274
- }
21275
- const rid = (_a = Table.getRowIdForRow(row)) !== null && _a !== void 0 ? _a : '';
21276
- const isActive = activeId !== null && rid === activeId;
21277
- btn.classList.toggle('xpl-table__row-drag-handle--keyboard-mode', isActive);
21278
- btn.setAttribute('aria-pressed', isActive ? 'true' : 'false');
21279
- btn.setAttribute('aria-label', isActive
21280
- ? 'Press arrow up or down to reorder, Escape to exit'
21281
- : 'Press Enter or Space to activate keyboard reorder mode, or drag to reorder');
21282
- });
21283
- this.syncInjectedReorderHandleIcons();
21284
- }
21285
- attachReorderHandleKeydownListeners() {
21286
- if (this.isLegacyMode || !this.rowReorderable) {
21287
- return;
21288
- }
21289
- this.queryBodyRows().forEach((row) => {
21290
- const btn = row.querySelector('.xpl-table__row-drag-handle');
21291
- if (!btn || btn.dataset.xplReorderKbdBound === 'true') {
21292
- return;
21293
- }
21294
- btn.dataset.xplReorderKbdBound = 'true';
21295
- btn.addEventListener('keydown', this.onReorderHandleKeydown);
21296
- });
21297
- }
21298
- detachReorderHandleKeydownListeners() {
21299
- if (!this.el) {
21300
- return;
21301
- }
21302
- this.el
21303
- .querySelectorAll('.xpl-table__row-drag-handle[data-xpl-reorder-kbd-bound="true"]')
21304
- .forEach((btn) => {
21305
- btn.removeEventListener('keydown', this.onReorderHandleKeydown);
21306
- delete btn.dataset.xplReorderKbdBound;
21307
- });
21308
- }
21309
- performKeyboardRowReorder(rowId, direction) {
21310
- const body = this.getDirectChildTableSection('xpl-table-body');
21311
- if (!body) {
21312
- return false;
21313
- }
21314
- const visible = this.getVisibleBodyRowsForReorder();
21315
- const itemIndex = visible.findIndex((r) => Table.getRowIdForRow(r) === rowId);
21316
- if (itemIndex === -1) {
21317
- return false;
21318
- }
21319
- const targetIndex = direction === 'up' ? itemIndex - 1 : itemIndex + 1;
21320
- if (targetIndex < 0 || targetIndex >= visible.length) {
21321
- return false;
21322
- }
21323
- const fromIndex = itemIndex;
21324
- const item = visible[itemIndex];
21325
- const targetItem = visible[targetIndex];
21326
- if (direction === 'up') {
21327
- body.insertBefore(item, targetItem);
21328
- }
21329
- else {
21330
- const nextVisible = getNextVisibleTableBodyRowAfter(targetItem);
21331
- if (nextVisible) {
21332
- body.insertBefore(item, nextVisible);
21333
- }
21334
- else {
21335
- body.appendChild(item);
21336
- }
21337
- }
21338
- const orderedRowIds = this.getVisibleBodyRowsForReorder().map((r) => { var _a; return (_a = Table.getRowIdForRow(r)) !== null && _a !== void 0 ? _a : ''; });
21339
- const toIndex = orderedRowIds.indexOf(rowId);
21340
- this.rowOrderChange.emit({
21341
- rowId,
21342
- direction,
21343
- orderedRowIds,
21344
- fromIndex,
21345
- toIndex,
21346
- });
21347
- this.announceRowReorder(rowId, orderedRowIds);
21348
- this.clearReorderDragOverClasses();
21349
- if (this.selectable) {
21350
- this.applyBodyCheckboxStates();
21351
- this.applyHeaderCheckboxState();
21352
- this.syncRowSelectedProps();
21353
- }
21354
- this.updateColumnWidths();
21355
- this.reorderKeyboardTimers.requestAnimationFrame(() => {
21356
- if (!this.el.isConnected) {
21357
- return;
21358
- }
21359
- const moved = this.getVisibleBodyRowsForReorder().find((r) => Table.getRowIdForRow(r) === rowId);
21360
- const btn = moved === null || moved === void 0 ? void 0 : moved.querySelector('.xpl-table__row-drag-handle');
21361
- btn === null || btn === void 0 ? void 0 : btn.focus();
21362
- });
21363
- return true;
21364
- }
21365
- ensureFooterReorderCells() {
21366
- const footer = this.getDirectChildTableSection('xpl-table-footer');
21367
- if (!footer)
21368
- return;
21369
- Array.from(footer.children)
21370
- .filter((c) => c.tagName.toLowerCase() === 'xpl-table-row')
21371
- .forEach((row) => {
21372
- if (Array.from(row.children).some((c) => c.tagName.toLowerCase() === 'xpl-table-footer-cell' &&
21373
- c.hasAttribute(ROW_REORDER_MARK))) {
21374
- return;
21375
- }
21376
- const cell = document.createElement('xpl-table-footer-cell');
21377
- cell.setAttribute(ROW_REORDER_MARK, '');
21378
- cell.setAttribute('width', '48');
21379
- cell.setAttribute('align', 'center');
21380
- row.insertBefore(cell, row.firstChild);
21381
- });
21382
- }
21383
- static supportsSubgridBodyRow() {
21384
- return (typeof CSS !== 'undefined' &&
21385
- typeof CSS.supports === 'function' &&
21386
- CSS.supports('grid-template-columns', 'subgrid'));
21387
- }
21388
- applyReorderRowDraggableState() {
21389
- const useRowDrag = Table.supportsSubgridBodyRow();
21390
- this.queryBodyRows().forEach((row) => {
21391
- const btn = row.querySelector('.xpl-table__row-drag-handle');
21392
- btn === null || btn === void 0 ? void 0 : btn.removeAttribute('draggable');
21393
- row.removeAttribute('draggable');
21394
- if (!this.rowReorderable || row.disabled) {
21395
- return;
21396
- }
21397
- if (!btn) {
21398
- return;
21399
- }
21400
- if (useRowDrag) {
21401
- row.setAttribute('draggable', 'true');
21402
- }
21403
- else {
21404
- btn.setAttribute('draggable', 'true');
21405
- }
21406
- });
21407
- }
21408
- getVisibleBodyRowsForReorder() {
21409
- return this.queryBodyRows().filter((r) => !r.hasAttribute('hidden'));
21410
- }
21411
- clearReorderDragOverClasses() {
21412
- this.queryBodyRows().forEach((r) => r.classList.remove('xpl-table-row--drag-over'));
21413
- }
21414
- clearPendingDragListeners() {
21415
- if (this.pointerUpClearPending) {
21416
- this.pointerUpClearPending();
21417
- this.pointerUpClearPending = null;
21418
- }
21419
- }
21420
- announceRowReorder(movedRowId, orderedRowIds) {
21421
- if (!this.rowReorderable || !movedRowId) {
21422
- return;
21423
- }
21424
- const index = orderedRowIds.indexOf(movedRowId);
21425
- if (index < 0) {
21426
- return;
21427
- }
21428
- this.reorderLiveMessage = '';
21429
- if (this.reorderAnnounceRaf !== undefined) {
21430
- cancelAnimationFrame(this.reorderAnnounceRaf);
21431
- }
21432
- this.reorderAnnounceRaf = requestAnimationFrame(() => {
21433
- this.reorderAnnounceRaf = undefined;
21434
- if (!this.el.isConnected) {
21435
- return;
21436
- }
21437
- this.reorderLiveMessage = `Row ${movedRowId}, now position ${index + 1} of ${orderedRowIds.length}`;
21438
- });
21439
- }
21440
- pruneStaleSelectedRowIds() {
21441
- const validIds = new Set(this.queryBodyRows()
21442
- .map((r) => Table.getRowIdForRow(r))
21443
- .filter((id) => !!id));
21444
- const next = this.selectedRowIds.filter((id) => validIds.has(id));
21445
- if (next.length === this.selectedRowIds.length)
21446
- return;
21447
- this.selectedRowIds = next;
21448
- this.applyBodyCheckboxStates();
21449
- this.applyHeaderCheckboxState();
21450
- this.syncRowSelectedProps();
21451
- this.emitCompositionalSelection();
21452
- }
21453
- static getBodyRowCheckboxAriaLabel(row, selectionColIndex) {
21454
- var _a, _b;
21455
- const cells = Table.getBodyRowCells(row);
21456
- const labelCell = cells.find((c, i) => (selectionColIndex === null || i !== selectionColIndex) &&
21457
- !c.hasAttribute(ROW_REORDER_MARK));
21458
- const first = labelCell !== null && labelCell !== void 0 ? labelCell : cells[0];
21459
- if (!first)
21460
- return 'Select row';
21461
- const raw = (_b = (_a = first.textContent) === null || _a === void 0 ? void 0 : _a.replace(/\s+/g, ' ').trim()) !== null && _b !== void 0 ? _b : '';
21462
- if (!raw)
21463
- return 'Select row';
21464
- const truncated = raw.length > 100 ? `${raw.slice(0, 100)}…` : raw;
21465
- return `Select row, ${truncated}`;
21466
- }
21467
- applyBodyCheckboxStates() {
21468
- const selectionIdx = this.getSelectionColumnIndex();
21469
- if (selectionIdx === null)
21470
- return;
21471
- this.queryBodyRows().forEach((row) => {
21472
- const rowId = Table.getRowIdForRow(row);
21473
- const cells = Table.getBodyRowCells(row);
21474
- const cell = cells[selectionIdx];
21475
- const cb = cell === null || cell === void 0 ? void 0 : cell.querySelector('xpl-checkbox');
21476
- if (!cb || !rowId)
21477
- return;
21478
- cb.checked = this.selectedRowIds.includes(rowId);
21479
- cb.disabled = row.disabled;
21480
- cb.value = rowId;
21481
- cb.setAttribute('aria-label', Table.getBodyRowCheckboxAriaLabel(row, selectionIdx));
21482
- });
21483
- }
21484
- getHeaderCheckboxCell() {
21485
- const idx = this.getSelectionColumnIndex();
21486
- if (idx === null)
21487
- return null;
21488
- const cells = this.getCompositionalHeaderCells();
21489
- const cell = cells[idx];
21490
- if (!cell || cell.getAttribute('type') !== 'checkbox')
21491
- return null;
21492
- return cell;
21493
- }
21494
- applyHeaderCheckboxState() {
21495
- const cell = this.getHeaderCheckboxCell();
21496
- if (!cell)
21497
- return;
21498
- const selectableRows = this.querySelectableBodyRows();
21499
- const ids = selectableRows
21500
- .map((r) => Table.getRowIdForRow(r))
21501
- .filter((id) => !!id);
21502
- const selectedCount = ids.filter((id) => this.selectedRowIds.includes(id)).length;
21503
- const allSelected = ids.length > 0 && selectedCount === ids.length;
21504
- const indeterminate = selectedCount > 0 && !allSelected;
21505
- cell.checked = allSelected;
21506
- cell.indeterminate = indeterminate;
21507
- }
21508
- syncRowSelectedProps() {
21509
- this.queryBodyRows().forEach((row) => {
21510
- const id = Table.getRowIdForRow(row);
21511
- const selected = id ? this.selectedRowIds.includes(id) : false;
21512
- row.selected = selected;
21513
- });
21514
- }
21515
- emitCompositionalSelection() {
21516
- const ids = this.selectedRowIds;
21517
- const key = ids.join('\u0001');
21518
- if (key === this.lastEmittedRowSelectionKey) {
21519
- return;
21520
- }
21521
- this.lastEmittedRowSelectionKey = key;
21522
- this.rowSelectionChange.emit({ selectedRowIds: [...ids] });
21523
- }
21524
- isEventFromThisTable(target) {
21525
- if (target == null || typeof target !== 'object')
21526
- return false;
21527
- const t = target;
21528
- const start = 'closest' in t && typeof t.closest === 'function'
21529
- ? t
21530
- : 'parentElement' in t
21531
- ? t.parentElement
21532
- : null;
21533
- if (!start)
21534
- return false;
21535
- const nearest = start.closest('xpl-table');
21536
- return nearest === this.el;
21537
- }
21538
- static sortKeyFromHeaderCell(cell, columnIndex) {
21539
- var _a, _b;
21540
- const c = cell;
21541
- const raw = ((_b = (_a = c.sortKey) !== null && _a !== void 0 ? _a : c.label) !== null && _b !== void 0 ? _b : '').trim();
21542
- if (raw.length > 0) {
21543
- return raw.replace(/ /g, '-').toLowerCase();
21544
- }
21545
- return `column-${columnIndex}`;
21546
- }
21547
- handleCompositionalHeaderSort(ev) {
21548
- var _a;
21549
- if (this.isLegacyMode)
21550
- return;
21551
- if (!this.isEventFromThisTable(ev.target))
21552
- return;
21553
- const source = ev.target;
21554
- const headerRow = (_a = source.closest('xpl-table-header xpl-table-row')) !== null && _a !== void 0 ? _a : source.closest('xpl-table-row');
21555
- if (!headerRow || !this.el.contains(headerRow))
21556
- return;
21557
- const cells = Array.from(headerRow.querySelectorAll('xpl-table-header-cell'));
21558
- const { columnIndex } = ev.detail;
21559
- const target = cells[columnIndex];
21560
- if (!(target === null || target === void 0 ? void 0 : target.sortable))
21561
- return;
21562
- const next = cycleSortDirection(target.sortDirection);
21563
- cells.forEach((cell, i) => {
21564
- const hc = cell;
21565
- if (!hc.sortable)
21566
- return;
21567
- hc.sortDirection = i === columnIndex ? next : null;
21568
- });
21569
- const sortState = {};
21570
- cells.forEach((cell, i) => {
21571
- var _a;
21572
- const hc = cell;
21573
- if (!hc.sortable)
21574
- return;
21575
- sortState[Table.sortKeyFromHeaderCell(hc, i)] = (_a = hc.sortDirection) !== null && _a !== void 0 ? _a : null;
21576
- });
21577
- const sortTypeArr = cells.map((cell) => {
21578
- var _a;
21579
- const hc = cell;
21580
- return hc.sortable ? ((_a = hc.sortDirection) !== null && _a !== void 0 ? _a : null) : null;
21581
- });
21582
- const colName = Table.sortKeyFromHeaderCell(cells[columnIndex], columnIndex);
21583
- const detail = Object.assign(Object.assign({}, sortState), { colNum: columnIndex, colName,
21584
- sortTypeArr });
21585
- this.sortChanged.emit(detail);
21586
- }
21587
- legacySortStatePayload() {
21588
- var _a;
21589
- const out = {};
21590
- if (!((_a = this.columns) === null || _a === void 0 ? void 0 : _a.length))
21591
- return out;
21592
- this.columns.forEach((col, i) => {
21593
- var _a;
21594
- const key = col.replace(/ /g, '-').toLowerCase();
21595
- out[key] = (_a = this.sortTypeArray[i]) !== null && _a !== void 0 ? _a : null;
21596
- });
21597
- return out;
21598
- }
21599
- legacySortChangedDetail(colNum) {
21600
- var _a, _b;
21601
- const base = this.legacySortStatePayload();
21602
- const title = (_b = (_a = this.columns) === null || _a === void 0 ? void 0 : _a[colNum]) !== null && _b !== void 0 ? _b : '';
21603
- const colName = title.replace(/ /g, '-').toLowerCase();
21604
- return Object.assign(Object.assign({}, base), { colNum,
21605
- colName, sortTypeArr: [...this.sortTypeArray] });
21606
- }
21607
- getCompositionalHeaderCells() {
21608
- var _a;
21609
- const header = (_a = Array.from(this.el.children).find((c) => c.tagName.toLowerCase() === 'xpl-table-header')) !== null && _a !== void 0 ? _a : null;
21610
- if (!header)
21611
- return [];
21612
- const firstRow = Array.from(header.children).find((c) => c.tagName.toLowerCase() === 'xpl-table-row');
21613
- const container = firstRow !== null && firstRow !== void 0 ? firstRow : header;
21614
- return Array.from(container.children).filter((c) => c.tagName.toLowerCase() === 'xpl-table-header-cell');
21615
- }
21616
- updateColumnWidths() {
21617
- const headerCells = this.getCompositionalHeaderCells();
21618
- const columnWidths = headerCells.map((cell) => getGridColumnWidthFromHeaderCell(cell));
21619
- const next = columnWidths.join(' ');
21620
- const n = headerCells.length;
21621
- if (n === this.colCount && this.colCount > 0 && this.columnWidthsToken === next) {
21622
- return;
21623
- }
21624
- this.el.style.setProperty('--column-widths', next);
21625
- this.colCount = n;
21626
- this.columnWidthsToken = next;
21627
- }
21628
- handleSort(clickEvt, isColumnSortable, colNum) {
21629
- clickEvt.preventDefault();
21630
- clickEvt.stopPropagation();
21631
- if (!isColumnSortable)
21632
- return;
21633
- this.sortTypeArray = this.sortTypeArray.map((val, i) => {
21634
- if (i !== colNum)
21635
- return null;
21636
- switch (val) {
21637
- case 'asc':
21638
- return 'desc';
21639
- case 'desc':
21640
- return null;
21641
- default:
21642
- return 'asc';
21643
- }
21644
- });
21645
- const evt = this.sortChanged.emit(this.legacySortChangedDetail(colNum));
21646
- if (!evt.defaultPrevented)
21647
- this.sortBy(colNum, this.sortTypeArray);
21648
- }
21649
- renderLegacy() {
21650
- var _a;
21651
- if (this.columns &&
21652
- (!this.sortTypeArray || this.sortTypeArray.length !== this.columns.length)) {
21653
- this.sortTypeArray = this.columns.map(() => null);
21654
- }
21655
- return (index.h(index.Host, null, index.h("div", { class: "xpl-table-container", onScroll: this.onLegacyScroll, ref: (el) => {
21656
- this.container = el;
21657
- } }, index.h("table", { class: {
21658
- 'xpl-table': true,
21659
- 'xpl-table--legacy': true,
21660
- 'xpl-table--striped': this.striped,
21661
- 'xpl-table--freeze': this.freeze,
21662
- 'xpl-table--has-scrolled': this.hasScrolled,
21663
- } }, this.columns && (index.h("thead", null, this.columns.map((column, i) => {
21664
- var _a, _b;
21665
- const iconType = getIconType((_b = (_a = this.sortTypeArray) === null || _a === void 0 ? void 0 : _a[i]) !== null && _b !== void 0 ? _b : null);
21666
- const isColumnSortable = !!(this.isSortable && this.sortableColumns[i]);
21667
- return (index.h("th", null, index.h("label", { onClick: (e) => this.handleSort(e, isColumnSortable, i), class: isColumnSortable ? 'cursor-pointer' : '' }, this.multiselect && i === 0 && (index.h("input", { checked: this.areAllSelected, id: "__xpl-table-th", indeterminate: !this.areAllSelected &&
21668
- this.selected.some((a) => a), onClick: (e) => {
21669
- e.stopPropagation();
21670
- this.selectAll(e);
21671
- }, type: "checkbox", value: `select-all-${this.selectAllValue}` })), column, isColumnSortable && !!this.sortTypeArray[i] && (index.h("xpl-icon", { icon: iconType, size: 16 })))));
21672
- }))), index.h("tbody", null, this.rowData.map((row, rowNum) => (index.h("tr", { class: this.selected && this.selected[rowNum]
21673
- ? 'xpl-table-row-selected'
21674
- : '' }, row.map((cell, i) => (index.h("td", null, this.multiselect && i === 0 ? (index.h("label", { htmlFor: `__xpl-table-row-${rowNum}` }, index.h("input", { id: `__xpl-table-row-${rowNum}`, checked: !!this.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum), value: this.selectedValues.length > 0
21675
- ? this.selectedValues[rowNum]
21676
- : `xpl-table-checkbox-${rowNum}` }), index.h("div", { innerHTML: cell }))) : (index.h("div", { innerHTML: cell }))))))))), ((_a = this.rowFooterData) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("tfoot", null, this.rowFooterData.map((row) => (index.h("tr", null, row.map((cell) => (index.h("td", null, index.h("div", { innerHTML: cell })))))))))))));
21677
- }
21678
- renderCompositional() {
21679
- const selectionToolbarCount = this.selectedRowIds.length;
21680
- return (index.h(index.Host, { role: "grid", "aria-label": this.label, "aria-colcount": this.colCount > 0 ? this.colCount : undefined, class: {
21681
- 'xpl-table': true,
21682
- 'xpl-table--striped': this.striped,
21683
- 'xpl-table--freeze': this.freeze,
21684
- 'xpl-table--has-scrolled': this.hasScrolled,
21685
- 'xpl-table--selectable': !!this.selectable,
21686
- 'xpl-table--selection-active': !!this.selectable && this.selectedRowIds.length > 0,
21687
- 'xpl-table--row-reorderable': !!this.rowReorderable,
21688
- }, onScroll: this.onGridScroll }, this.rowReorderable && (index.h("div", { class: "xpl-table__reorder-live", "aria-live": "assertive", "aria-atomic": "true" }, this.reorderLiveMessage)), this.selectable && (index.h("div", { class: {
21689
- 'xpl-toolbar': true,
21690
- hidden: selectionToolbarCount === 0,
21691
- 'xpl-table__toolbar': true,
21692
- } }, index.h("div", { class: "toolbar" }, index.h("p", { class: "selected-item-count" }, selectionToolbarCount, " Selected"), index.h("div", { class: "actions" }, index.h("slot", { name: "toolbar-actions-left" }), index.h("slot", { name: "toolbar-actions-right" }))))), index.h("slot", null)));
21693
- }
21694
- render() {
21695
- return this.isLegacyMode ? this.renderLegacy() : this.renderCompositional();
20541
+ return (index.h(index.Host, { key: '10b0bfd08e28fada9a2c8509d405c5314cce1689' }, index.h("div", { key: '8e5b4fe928618b175a58f858f6cfd65f4bd29c53', class: "xpl-table-container", onScroll: this.onScroll, ref: (el) => {
20542
+ this.container = el;
20543
+ } }, index.h("table", { key: 'a6df646737b9a1d5e67cebe9eaad41911ab606ca', class: {
20544
+ 'xpl-table': true,
20545
+ 'xpl-table--striped': this.striped,
20546
+ 'xpl-table--freeze': this.freeze,
20547
+ 'xpl-table--has-scrolled': this.hasScrolled,
20548
+ } }, this.columns && (index.h("thead", { key: '5f14766107d69f26b865f63c323d417f43260267' }, this.columns.map((column, i) => {
20549
+ var _a;
20550
+ const iconType = getIconType((_a = this.sortTypeArray) === null || _a === void 0 ? void 0 : _a[i]);
20551
+ const isColumnSortable = !!(this.isSortable && this.sortableColumns[i]);
20552
+ return (index.h("th", null, index.h("label", { onClick: (e) => this.handleSort(e, isColumnSortable, i, column.replace(/ /g, '-').toLowerCase()), class: isColumnSortable ? 'cursor-pointer' : '' }, this.multiselect && i === 0 && (index.h("input", { checked: this.areAllSelected, id: "__xpl-table-th", indeterminate: !this.areAllSelected &&
20553
+ this.selected.some((a) => a), onClick: (e) => {
20554
+ e.stopPropagation();
20555
+ this.selectAll(e);
20556
+ }, type: "checkbox", value: `select-all-${this.selectAllValue}` })), column, isColumnSortable && !!this.sortTypeArray[i] && (index.h("xpl-icon", { icon: iconType, size: 16 })))));
20557
+ }))), index.h("tbody", { key: 'b13ca1d1a738de189d4f040dfd309187671b341d' }, this.rowData.map((row, rowNum) => (index.h("tr", { class: this.selected && this.selected[rowNum]
20558
+ ? 'xpl-table-row-selected'
20559
+ : '' }, row.map((cell, i) => (index.h("td", null, this.multiselect && i === 0 ? (index.h("label", { htmlFor: `__xpl-table-row-${rowNum}` }, index.h("input", { id: `__xpl-table-row-${rowNum}`, checked: !!this.selected[rowNum], type: "checkbox", onChange: (e) => this.selectOne(e, rowNum), value: this.selectedValues.length > 0
20560
+ ? this.selectedValues[rowNum]
20561
+ : `xpl-table-checkbox-${rowNum}` }), index.h("div", { innerHTML: cell }))) : (index.h("div", { innerHTML: cell }))))))))), ((_a = this.rowFooterData) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("tfoot", { key: '5d45854ba21aa7e0bfaaf3b8a537e0c121538ac9' }, this.rowFooterData.map((row) => (index.h("tr", null, row.map((cell) => (index.h("td", null, index.h("div", { innerHTML: cell })))))))))))));
21696
20562
  }
21697
20563
  get el() { return index.getElement(this); }
21698
20564
  static get watchers() { return {
21699
- "columns": [{
21700
- "watchColumns": 0
21701
- }],
21702
20565
  "data": [{
21703
20566
  "watchData": 0
21704
20567
  }],
21705
20568
  "footer": [{
21706
20569
  "watchFooterData": 0
21707
20570
  }],
21708
- "reorderHandleIcon": [{
21709
- "watchReorderHandleIcon": 0
21710
- }],
21711
- "reorderHandleIconKeyboard": [{
21712
- "watchReorderHandleIconKeyboard": 0
21713
- }],
21714
- "rowReorderable": [{
21715
- "watchRowReorderable": 0
21716
- }],
21717
- "selectable": [{
21718
- "watchSelectable": 0
21719
- }]
21720
- }; }
21721
- };
21722
-
21723
- const XplTableBody = class {
21724
- constructor(hostRef) {
21725
- index.registerInstance(this, hostRef);
21726
- }
21727
- render() {
21728
- return (index.h(index.Host, { key: '7320d9e105bbd49c3ce38b8c199b965a3863440c', role: "rowgroup", class: "xpl-table-body" }, index.h("slot", { key: '3df8f5a49bca0c8b50126cb41e59e1209e57fc6b' })));
21729
- }
21730
- };
21731
-
21732
- function isDisablableControl(el) {
21733
- switch (el.tagName) {
21734
- case 'BUTTON':
21735
- case 'INPUT':
21736
- case 'SELECT':
21737
- case 'TEXTAREA':
21738
- case 'FIELDSET':
21739
- case 'OPTGROUP':
21740
- case 'OPTION':
21741
- return true;
21742
- default:
21743
- return false;
21744
- }
21745
- }
21746
- const XplTableCell = class {
21747
- constructor(hostRef) {
21748
- index.registerInstance(this, hostRef);
21749
- this.align = 'left';
21750
- this.bold = false;
21751
- this.disabled = false;
21752
- this.underline = false;
21753
- }
21754
- onDisabledChange() {
21755
- this.propagateDisabledToSlotted();
21756
- }
21757
- componentDidLoad() {
21758
- this.propagateDisabledToSlotted();
21759
- }
21760
- propagateDisabledToSlotted() {
21761
- const setControlDisabled = (element) => {
21762
- if (!isDisablableControl(element)) {
21763
- return;
21764
- }
21765
- const control = element;
21766
- control.disabled = this.disabled;
21767
- if (this.disabled) {
21768
- control.setAttribute('disabled', '');
21769
- }
21770
- else {
21771
- control.removeAttribute('disabled');
21772
- }
21773
- };
21774
- const walk = (parent) => {
21775
- Array.from(parent.children).forEach((child) => {
21776
- if (child.tagName === 'XPL-TABLE') {
21777
- return;
21778
- }
21779
- setControlDisabled(child);
21780
- walk(child);
21781
- });
21782
- };
21783
- walk(this.el);
21784
- }
21785
- render() {
21786
- return (index.h(index.Host, { key: '91700fc89eff07fc5c54474c12e3a02eb602c6c3', role: "gridcell", class: {
21787
- 'xpl-table-cell': true,
21788
- [`xpl-table-cell--align-${this.align}`]: true,
21789
- 'xpl-table-cell--bold': this.bold,
21790
- 'xpl-table-cell--underline': this.underline,
21791
- 'xpl-table-cell--disabled': this.disabled,
21792
- } }, index.h("slot", { key: '5e956de9f694db16d9f5ea89bda1ff05a15e9efa' })));
21793
- }
21794
- get el() { return index.getElement(this); }
21795
- static get watchers() { return {
21796
- "disabled": [{
21797
- "onDisabledChange": 0
21798
- }]
21799
- }; }
21800
- };
21801
-
21802
- const XplTableFooter = class {
21803
- constructor(hostRef) {
21804
- index.registerInstance(this, hostRef);
21805
- }
21806
- render() {
21807
- return (index.h(index.Host, { key: '891052963f727f283783138363c9a925cb59140b', role: "rowgroup", class: "xpl-table-footer" }, index.h("slot", { key: 'df01f64a46ecd29380df26e053c2a6c246a22556' })));
21808
- }
21809
- };
21810
-
21811
- const XplTableFooterCell = class {
21812
- constructor(hostRef) {
21813
- index.registerInstance(this, hostRef);
21814
- this.align = 'left';
21815
- }
21816
- render() {
21817
- return (index.h(index.Host, { key: '452cb6ac0333ca57329341404343c290c63fc508', role: "gridcell", class: {
21818
- 'xpl-table-footer-cell': true,
21819
- [`xpl-table-footer-cell--align-${this.align}`]: true,
21820
- } }, index.h("slot", { key: 'db6d5848f2aa009437317b9e71a47f0ca9245161' })));
21821
- }
21822
- };
21823
-
21824
- const TableHeader = class {
21825
- constructor(hostRef) {
21826
- index.registerInstance(this, hostRef);
21827
- }
21828
- render() {
21829
- return (index.h(index.Host, { key: '70eac99819cc3acbbfb54607fc657fb27bd26b4b', role: "rowgroup", class: "xpl-table-header" }, index.h("slot", { key: '9c46b25d247603f8c87a3994615bd45c617d9bb9' })));
21830
- }
21831
- };
21832
-
21833
- const TableHeaderCell = class {
21834
- constructor(hostRef) {
21835
- index.registerInstance(this, hostRef);
21836
- this.headerCheckboxChange = index.createEvent(this, "headerCheckboxChange", 7);
21837
- this.headerSortChange = index.createEvent(this, "headerSortChange", 7);
21838
- this.align = 'left';
21839
- this.checked = false;
21840
- this.indeterminate = false;
21841
- this.label = '';
21842
- this.sortable = false;
21843
- this.type = 'label';
21844
- this.onHeaderInnerCheckboxChange = (ev) => {
21845
- const { detail } = ev;
21846
- const checked = typeof detail === 'boolean' ? detail : Boolean(detail);
21847
- this.headerCheckboxChange.emit(checked);
21848
- };
21849
- this.onSortActivate = (event) => {
21850
- event.preventDefault();
21851
- event.stopPropagation();
21852
- if (!this.sortable || this.type !== 'label')
21853
- return;
21854
- const columnIndex = this.getColumnIndex0();
21855
- const sortKey = this.getSortKeySlug();
21856
- if (!this.el.closest('xpl-table')) {
21857
- this.sortDirection = cycleSortDirection(this.sortDirection);
21858
- }
21859
- this.headerSortChange.emit({
21860
- columnIndex,
21861
- sortKey,
21862
- });
21863
- };
21864
- }
21865
- watchColumnWidth() {
21866
- this.notifyColumnWidthsChange();
21867
- }
21868
- watchWidth() {
21869
- this.notifyColumnWidthsChange();
21870
- }
21871
- componentDidLoad() {
21872
- this.notifyColumnWidthsChange();
21873
- }
21874
- notifyColumnWidthsChange() {
21875
- this.el.dispatchEvent(new CustomEvent(XPL_TABLE_COLUMN_WIDTHS_CHANGE_EVENT, {
21876
- bubbles: true,
21877
- composed: true,
21878
- }));
21879
- }
21880
- getColumnIndex0() {
21881
- var _a, _b;
21882
- return Array.from((_b = (_a = this.el.parentElement) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : []).indexOf(this.el);
21883
- }
21884
- getSortKeySlug() {
21885
- var _a, _b;
21886
- const raw = ((_b = (_a = this.sortKey) !== null && _a !== void 0 ? _a : this.label) !== null && _b !== void 0 ? _b : '').trim();
21887
- if (raw.length > 0) {
21888
- return raw.replace(/ /g, '-').toLowerCase();
21889
- }
21890
- return `column-${this.getColumnIndex0()}`;
21891
- }
21892
- renderLabelContent() {
21893
- if (this.sortable) {
21894
- const iconName = getSortAffordanceIconName(this.sortDirection);
21895
- const sortActive = this.sortDirection === 'asc' || this.sortDirection === 'desc';
21896
- return (index.h("button", { type: "button", class: "xpl-table-header-cell__sort", onClick: this.onSortActivate }, index.h("span", { class: "xpl-table-header-cell__text" }, index.h("slot", null, this.label)), index.h("xpl-icon", { class: {
21897
- 'xpl-table-header-cell__sort-icon': true,
21898
- 'xpl-table-header-cell__sort-icon--active': sortActive,
21899
- 'xpl-table-header-cell__sort-icon--default': !sortActive,
21900
- }, icon: iconName, size: 16 })));
21901
- }
21902
- return (index.h("span", { class: "xpl-table-header-cell__text" }, index.h("slot", null, this.label)));
21903
- }
21904
- render() {
21905
- const colIndex = this.getColumnIndex0() + 1;
21906
- const renderContent = () => {
21907
- var _a;
21908
- switch (this.type) {
21909
- case 'label':
21910
- return this.renderLabelContent();
21911
- case 'checkbox':
21912
- return (index.h("xpl-checkbox", { ariaLabel: (_a = this.checkboxAriaLabel) !== null && _a !== void 0 ? _a : 'Select all rows', checked: this.checked, indeterminate: this.indeterminate, onCheckboxChange: this.onHeaderInnerCheckboxChange }));
21913
- case 'icon':
21914
- return index.h("xpl-icon", { icon: this.icon, size: 20 });
21915
- case 'empty':
21916
- return null;
21917
- default:
21918
- return '';
21919
- }
21920
- };
21921
- const effectiveAlign = (this.type === 'checkbox' || this.type === 'icon') && this.align === 'left'
21922
- ? 'center'
21923
- : this.align;
21924
- const alignClass = `xpl-table-header-cell--align-${effectiveAlign}`;
21925
- const ariaSort = this.type === 'label' && this.sortable
21926
- ? this.sortDirection === 'asc'
21927
- ? 'ascending'
21928
- : this.sortDirection === 'desc'
21929
- ? 'descending'
21930
- : 'none'
21931
- : undefined;
21932
- return (index.h(index.Host, { role: "columnheader", "aria-colindex": colIndex, class: {
21933
- 'xpl-table-header-cell': true,
21934
- [alignClass]: true,
21935
- 'xpl-table-header-cell--checkbox': this.type === 'checkbox',
21936
- 'xpl-table-header-cell--icon': this.type === 'icon',
21937
- 'xpl-table-header-cell--empty': this.type === 'empty',
21938
- 'xpl-table-header-cell--sortable': this.sortable && this.type === 'label',
21939
- }, "aria-checked": this.type === 'checkbox'
21940
- ? this.indeterminate
21941
- ? 'mixed'
21942
- : this.checked
21943
- ? 'true'
21944
- : 'false'
21945
- : undefined, "aria-sort": ariaSort }, this.type === 'empty' ? null : renderContent()));
21946
- }
21947
- get el() { return index.getElement(this); }
21948
- static get watchers() { return {
21949
- "columnWidth": [{
21950
- "watchColumnWidth": 0
21951
- }],
21952
- "width": [{
21953
- "watchWidth": 0
21954
- }]
21955
- }; }
21956
- };
21957
-
21958
- function isTableCell(node) {
21959
- return node.nodeName === 'XPL-TABLE-CELL';
21960
- }
21961
- const XplTableRow = class {
21962
- constructor(hostRef) {
21963
- index.registerInstance(this, hostRef);
21964
- this.disabled = false;
21965
- this.selected = false;
21966
- }
21967
- onDisabledChange() {
21968
- this.propagateDisabledToCells();
21969
- }
21970
- connectedCallback() {
21971
- if (typeof MutationObserver === 'undefined')
21972
- return;
21973
- this.cellObserver = new MutationObserver((mutations) => {
21974
- mutations.forEach((mutation) => {
21975
- if (mutation.type !== 'childList')
21976
- return;
21977
- mutation.addedNodes.forEach((node) => {
21978
- if (isTableCell(node)) {
21979
- node.disabled = this.disabled;
21980
- }
21981
- });
21982
- });
21983
- });
21984
- this.cellObserver.observe(this.el, { childList: true });
21985
- }
21986
- disconnectedCallback() {
21987
- var _a;
21988
- (_a = this.cellObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
21989
- this.cellObserver = undefined;
21990
- }
21991
- componentDidLoad() {
21992
- this.propagateDisabledToCells();
21993
- }
21994
- propagateDisabledToCells() {
21995
- const cells = Array.from(this.el.children).filter(isTableCell);
21996
- cells.forEach((cell) => {
21997
- cell.disabled = this.disabled;
21998
- });
21999
- }
22000
- render() {
22001
- return (index.h(index.Host, { key: '4abcdcd80a317aec5d2a131d9e8d0331f434e989', role: "row", class: {
22002
- 'xpl-table-row': true,
22003
- 'xpl-table-row--disabled': this.disabled,
22004
- 'xpl-table-row--selected': this.selected,
22005
- } }, index.h("slot", { key: 'b2530a240b2e4c7eb4fb4a7691a86242eb9aee16' })));
22006
- }
22007
- get el() { return index.getElement(this); }
22008
- static get watchers() { return {
22009
- "disabled": [{
22010
- "onDisabledChange": 0
20571
+ "columns": [{
20572
+ "watchColumns": 0
22011
20573
  }]
22012
20574
  }; }
22013
20575
  };
@@ -22332,11 +20894,11 @@ const Tabs = class {
22332
20894
  }
22333
20895
  render() {
22334
20896
  const isSegment = this.type === 'segment';
22335
- return (index.h(index.Host, { key: '56e4284e5a8fd492ebedcc963ddc2218f75c58c6', class: {
20897
+ return (index.h(index.Host, { key: '9998ae067e13e7c08338ae29bfe05bc3adacaa87', class: {
22336
20898
  'xpl-tabs': true,
22337
20899
  'xpl-tabs--full-width': this.fullWidth,
22338
20900
  'xpl-tabs--segment': isSegment,
22339
- }, "data-choices-tick": this.choicesTick }, index.h("xpl-select", { key: 'bd22e0a513a068915a206d48f8011cb779abdf44', classNames: this.mobileSelectClassNames(), choices: this.renderChoices(), disabled: this.disabled, selectedValues: this.selectedValue, onDropdownStateChange: (event) => {
20901
+ }, "data-choices-tick": this.choicesTick }, index.h("xpl-select", { key: '18209c354e77267a13ce0c7380df0e419595cca7', classNames: this.mobileSelectClassNames(), choices: this.renderChoices(), disabled: this.disabled, selectedValues: this.selectedValue, onDropdownStateChange: (event) => {
22340
20902
  if (event.detail) {
22341
20903
  this.isMobileSelectChange = true;
22342
20904
  }
@@ -22347,17 +20909,17 @@ const Tabs = class {
22347
20909
  this.tabChange.emit(selectedValue);
22348
20910
  this.isMobileSelectChange = false;
22349
20911
  }
22350
- } }), index.h("nav", { key: 'b56a5a8435cbba117f7b66711a4bad4a0df1b808', "aria-orientation": "horizontal", class: "xpl-tabs__headings", role: "tablist", ref: (el) => {
20912
+ } }), index.h("nav", { key: 'cf1bf2ec95fbbe7f0a6b8774cc5ce26928c7d6ca', "aria-orientation": "horizontal", class: "xpl-tabs__headings", role: "tablist", ref: (el) => {
22351
20913
  this.headingsContainerRef = el;
22352
20914
  }, onTabChange: (event) => {
22353
20915
  event.stopPropagation();
22354
20916
  this.isMobileSelectChange = false;
22355
20917
  this.handleTabChange(event.detail);
22356
20918
  this.tabChange.emit(event.detail);
22357
- } }, !isSegment && (index.h("div", { key: '77c1c13e85a172da519e5081364808f8a873eb54', class: "xpl-tabs__active-bar", style: {
20919
+ } }, !isSegment && (index.h("div", { key: '5bfd13566a17723ec166a934bc72e59307eacb8c', class: "xpl-tabs__active-bar", style: {
22358
20920
  transform: `translateX(${this.activeBarPosition.left}px)`,
22359
20921
  width: `${this.activeBarPosition.width}px`,
22360
- } })), index.h("slot", { key: '24e4b6409fbfa26f859d64d4d37493a711006368', name: "heading" })), index.h("div", { key: '2a364d45d6377131c2809d25373bc90512f11307', class: "xpl-tabs__panels" }, index.h("slot", { key: '59335370a20458fc36bfa33a2a117744ce4434fc', name: "panel" }))));
20922
+ } })), index.h("slot", { key: '52baf508a46759fe908f8721b3089d3db0189383', name: "heading" })), index.h("div", { key: '363fe87f244eace0dc0af0903e0b8c25da3a613f', class: "xpl-tabs__panels" }, index.h("slot", { key: 'f3872844f486cf831bca26a228eba88fa18b42c3', name: "panel" }))));
22361
20923
  }
22362
20924
  get el() { return index.getElement(this); }
22363
20925
  static get watchers() { return {
@@ -22503,7 +21065,7 @@ const Tag = class {
22503
21065
  }
22504
21066
  render() {
22505
21067
  const dragEnabled = this.isDraggable && !this.disabled;
22506
- return (index.h(index.Host, { key: '117319681b3edca99c97361353fd1775a0b9b32f', class: {
21068
+ return (index.h(index.Host, { key: '7e85098bb9f5e8c0fceee3e7947337e0799c4de8', class: {
22507
21069
  'xpl-tag': true,
22508
21070
  'xpl-tag-container': true,
22509
21071
  'xpl-tag--disabled': this.disabled,
@@ -22511,7 +21073,7 @@ const Tag = class {
22511
21073
  'xpl-tag--dragging': this.isDragging,
22512
21074
  'xpl-tag--draggable': dragEnabled,
22513
21075
  'xpl-tag--sm': this.size === 'sm',
22514
- }, onDragOver: dragEnabled ? this.handleDragOver : undefined, onDragEnter: dragEnabled ? this.handleDragEnter : undefined, onDragStart: this.isDraggable ? this.handleHostDragStart : undefined }, dragEnabled ? (index.h("div", { class: "xpl-tag__content xpl-tag", role: "button", tabIndex: 0, draggable: true, "aria-grabbed": String(this.isDragging), onClick: this.handleTagClick, onKeyDown: this.handleContentKeyDown, onDragStart: this.handleDragStart, onDragEnd: this.handleDragEnd }, index.h("slot", null))) : (index.h("button", { class: "xpl-tag__content xpl-tag", type: "button", disabled: this.disabled, onClick: this.handleTagClick }, index.h("slot", null))), this.dismissible && (index.h("button", { key: 'b1040693b482270dec9403a908bf3cacd5db49b8', class: "xpl-tag__dismiss xpl-tag__close", type: "button", draggable: false, disabled: this.disabled, "aria-label": `Dismiss ${this.dismissAriaLabelSuffix}`, onClick: this.handleDismissClick }, index.h("xpl-icon", { key: 'ed0419c92f526424bb1b9cd43e93ba119348da07', icon: "xmark", size: 10 })))));
21076
+ }, onDragOver: dragEnabled ? this.handleDragOver : undefined, onDragEnter: dragEnabled ? this.handleDragEnter : undefined, onDragStart: this.isDraggable ? this.handleHostDragStart : undefined }, dragEnabled ? (index.h("div", { class: "xpl-tag__content xpl-tag", role: "button", tabIndex: 0, draggable: true, "aria-grabbed": String(this.isDragging), onClick: this.handleTagClick, onKeyDown: this.handleContentKeyDown, onDragStart: this.handleDragStart, onDragEnd: this.handleDragEnd }, index.h("slot", null))) : (index.h("button", { class: "xpl-tag__content xpl-tag", type: "button", disabled: this.disabled, onClick: this.handleTagClick }, index.h("slot", null))), this.dismissible && (index.h("button", { key: 'cb875506819a0a58d42add85a1a09e95e4786eba', class: "xpl-tag__dismiss xpl-tag__close", type: "button", draggable: false, disabled: this.disabled, "aria-label": `Dismiss ${this.dismissAriaLabelSuffix}`, onClick: this.handleDismissClick }, index.h("xpl-icon", { key: '431f061a4c96dacb9dc76a753c9d2de01491b2be', icon: "xmark", size: 10 })))));
22515
21077
  }
22516
21078
  get el() { return index.getElement(this); }
22517
21079
  static get watchers() { return {
@@ -22561,9 +21123,9 @@ const Toast = class {
22561
21123
  }
22562
21124
  render() {
22563
21125
  var _a;
22564
- return (index.h(index.Host, { key: 'c9abdb6db66a9dad0d6ed3d2e6d178ea34852c86', class: `xpl-toast xpl-toast--${this.variant}`, onAnimationEnd: this.handleAnimationEnd }, index.h("div", { key: '7057e31e0f25dab1ba8b093f1dca15e6f08c44e4', class: "xpl-toast__left" }, this.showIcon && (index.h("div", { key: '7875c518753729ae39a7bb9f2051751924a0d558', class: `xpl-toast__icon xpl-toast__icon--${this.variant}` }, this.getIcon())), index.h("div", { key: 'e38c7d0593c16f3dfa83bc4e521f89ee644b46d4', class: "xpl-toast__notification" }, index.h("p", { key: '8186437158381780554d2509a806704c52450f8c', class: "xpl-toast__title" }, index.h("slot", { key: '0aa8df0520c33b4576acfb1ad4750a72928b94d5', name: "title" })), this.caption !== '' && (index.h("p", { key: '3a4ce8f73e498373344b8b692e624f177212a70a', class: "xpl-toast__caption" }, (_a = this.caption) === null || _a === void 0 ? void 0 : _a.substring(0, 85))))), index.h("div", { key: '636ff5b9476cea09d21b97f3e1b78860a6f10669', class: "xpl-toast__action", ref: (el) => {
21126
+ return (index.h(index.Host, { key: '4f470ceb525c35a86ddbf65365fac1674ebe7033', class: `xpl-toast xpl-toast--${this.variant}`, onAnimationEnd: this.handleAnimationEnd }, index.h("div", { key: '04da6ca2777ceb222da2f4fd831d8aef5101a667', class: "xpl-toast__left" }, this.showIcon && (index.h("div", { key: '0e5e75aa05e96361700c0c7b9eccbc4c5b75a00c', class: `xpl-toast__icon xpl-toast__icon--${this.variant}` }, this.getIcon())), index.h("div", { key: 'f1ccc651318b6d7128255918bdd68ef36a249e9f', class: "xpl-toast__notification" }, index.h("p", { key: '1ae879d8a670a0f1a4928bfa2a0692581040dca1', class: "xpl-toast__title" }, index.h("slot", { key: 'b819a773c11b88cb00f8638db8a960de55ce6508', name: "title" })), this.caption !== '' && (index.h("p", { key: '8f6eb8dd769e4aaf5b16b3caafd9e9ec5408a7e1', class: "xpl-toast__caption" }, (_a = this.caption) === null || _a === void 0 ? void 0 : _a.substring(0, 85))))), index.h("div", { key: '46ae2f04fa38b50d2a07082b6972590f6bd28005', class: "xpl-toast__action", ref: (el) => {
22565
21127
  this.actionSlot = el;
22566
- } }, index.h("slot", { key: '733bc27fba998cdbb97cc1124d8449b539a0fc21', name: "action" })), this.dismissable && (index.h("div", { key: '8f555e8a02c8aed5095ab659a792e19c242dae98', class: "xpl-toast__close" }, index.h("button", { key: 'ca64c6cb98c4cda5d2dab208afef54db4832e103', tabIndex: 0, onClick: this.dismiss }, index.h("xpl-icon", { key: 'bf00f852ecffd16504a8ec95f3f6630b1aa569c9', icon: "x" }))))));
21128
+ } }, index.h("slot", { key: '69512a9b482bb54252527d798dfa2884a19b7d8c', name: "action" })), this.dismissable && (index.h("div", { key: '818a5f9dde1a9c9b7ab3cd62cd807200e3687af6', class: "xpl-toast__close" }, index.h("button", { key: '3a617189f8f031e119a125efce0ab35a7f5cf31f', tabIndex: 0, onClick: this.dismiss }, index.h("xpl-icon", { key: 'd86187aed0665da278f953be5ab92f7051f44438', icon: "x" }))))));
22567
21129
  }
22568
21130
  get el() { return index.getElement(this); }
22569
21131
  };
@@ -22577,7 +21139,7 @@ const Tooltip = class {
22577
21139
  this.hideArrow = false;
22578
21140
  }
22579
21141
  render() {
22580
- return (index.h(index.Host, { key: '9890dea245d2fbd24c67fea6e39ce3430ffc8d81' }, index.h("div", { key: '0930c7ee1f0e1f6a625f41e34f31d2432fdff7eb', class: "xpl-tooltip-container" }, index.h("slot", { key: '3b9a8aebce020a13f3d7ef624b59c06e55398907' }), index.h("div", { key: '50fe33b8bef96df08899b449065558ea8f2ed820', class: `xpl-tooltip xpl-tooltip--${this.position}` }, this.text), !this.hideArrow && (index.h("div", { key: 'eddf77e8e8093eff29c5c22fdc3d2b882de4a0ca', class: "xpl-tooltip-arrow" }, index.h(TooltipArrow, { key: 'fad3bccade4af1d9734d288c32d7951527398853' }))))));
21142
+ return (index.h(index.Host, { key: 'a118d629923a433680360f746e063ca94d5f1c6a' }, index.h("div", { key: 'cfd9742ee2cebd56994480bd2a601cb4e93b12a9', class: "xpl-tooltip-container" }, index.h("slot", { key: '8aae99e1a187f8f737e896ccfd00d67f1cfeb3b3' }), index.h("div", { key: '4b418074b2ac7f8760f09e3af033ea93f7a0012e', class: `xpl-tooltip xpl-tooltip--${this.position}` }, this.text), !this.hideArrow && (index.h("div", { key: 'ef6a166f78250f1f98eae41661fd7020b36eeaae', class: "xpl-tooltip-arrow" }, index.h(TooltipArrow, { key: '7baecae00ab178f715c89443d250b068861afe5f' }))))));
22581
21143
  }
22582
21144
  };
22583
21145
 
@@ -22821,7 +21383,7 @@ const TopNav = class {
22821
21383
  }
22822
21384
  render() {
22823
21385
  var _a, _b, _c, _d;
22824
- return (index.h(index.Host, { key: '7b9229d9aaa6e462102694f2af4cac513c0a897d', class: {
21386
+ return (index.h(index.Host, { key: '9f65d609c6b4cf08b2899216fe8bc70fe0e12db9', class: {
22825
21387
  'xpl-top-nav': true,
22826
21388
  'xpl-top-nav--nav-control': Boolean(this.navControl),
22827
21389
  'xpl-top-nav--open': this.open,
@@ -22829,15 +21391,15 @@ const TopNav = class {
22829
21391
  'xpl-top-nav--has-brand': this.hasBrand,
22830
21392
  'xpl-top-nav--has-user-menu': this.hasUserMenu,
22831
21393
  dark: true,
22832
- } }, index.h("nav", { key: '15e65c606ec67d5dcb3de7e14dbbb2983d23f097', "aria-label": (_a = this.label) !== null && _a !== void 0 ? _a : 'top-navigation-bar', class: "xpl-top-nav__bar" }, index.h("div", { key: '4dcd01744fac5acfd8370da93d3343fc9be1762c', class: "xpl-top-nav__inner-left" }, this.navControl && (index.h("button", { key: '07bd342a80a412922a6d22a789694e2457312e1d', type: "button", class: "xpl-top-nav__nav-control", "aria-expanded": this.open ? 'true' : 'false', "aria-label": this.open ? 'Close navigation menu' : 'Open navigation menu', onClick: this.onNavToggle }, index.h("xpl-icon", { key: '1a69e0dac8d98b1331676e9e69fa76cac7a55de5', class: "xpl-top-nav__control-icon", icon: "menu", size: 20 }))), this.hasBrand && (index.h("div", { key: '5af668cb6533a3f1e91101a1179c614215e3f431', class: "xpl-top-nav__brand-bar" }, index.h("xpl-top-nav-item", { key: 'f77e07635deb49f7db37fd965b389f5a3d379864', class: "xpl-top-nav__brand", href: this.brandHref, onNavItemClick: this.onBrandNavItemClick }, ((_b = this.brandLogo) === null || _b === void 0 ? void 0 : _b.trim()) ? (index.h("img", { class: "xpl-top-nav__brand-logo", src: this.brandLogo, alt: ((_c = this.brandName) === null || _c === void 0 ? void 0 : _c.trim())
21394
+ } }, index.h("nav", { key: 'a3d613acbe13866886bca363372127e8e869ec2c', "aria-label": (_a = this.label) !== null && _a !== void 0 ? _a : 'top-navigation-bar', class: "xpl-top-nav__bar" }, index.h("div", { key: 'b7057ef80f36e98def53bbfc2a39bd30bacd9b4c', class: "xpl-top-nav__inner-left" }, this.navControl && (index.h("button", { key: '3c4091842c7e4c1a62fea5446f6e29486617b11a', type: "button", class: "xpl-top-nav__nav-control", "aria-expanded": this.open ? 'true' : 'false', "aria-label": this.open ? 'Close navigation menu' : 'Open navigation menu', onClick: this.onNavToggle }, index.h("xpl-icon", { key: 'cd5fd2cd1cf1dae5c765b63678e14cb87588c3b2', class: "xpl-top-nav__control-icon", icon: "menu", size: 20 }))), this.hasBrand && (index.h("div", { key: '3cabfe3ce8ff58d9aed0ed9b4adccd896f6cad08', class: "xpl-top-nav__brand-bar" }, index.h("xpl-top-nav-item", { key: 'bca3924f36affd16b6c17d0d8cc1ccc57c488ef6', class: "xpl-top-nav__brand", href: this.brandHref, onNavItemClick: this.onBrandNavItemClick }, ((_b = this.brandLogo) === null || _b === void 0 ? void 0 : _b.trim()) ? (index.h("img", { class: "xpl-top-nav__brand-logo", src: this.brandLogo, alt: ((_c = this.brandName) === null || _c === void 0 ? void 0 : _c.trim())
22833
21395
  ? this.brandName.trim()
22834
- : 'Brand' })) : this.brandLogoSlotPresent ? (index.h("span", { class: "xpl-top-nav__brand-logo-slot" }, index.h("slot", { name: "brand-logo" }))) : null, ((_d = this.brandName) === null || _d === void 0 ? void 0 : _d.trim()) ? (index.h("span", { class: "xpl-top-nav__brand-name" }, this.brandName.trim())) : null))), index.h("div", { key: 'f349c1fa2021e705602eed288e83db9a5dade455', class: {
21396
+ : 'Brand' })) : this.brandLogoSlotPresent ? (index.h("span", { class: "xpl-top-nav__brand-logo-slot" }, index.h("slot", { name: "brand-logo" }))) : null, ((_d = this.brandName) === null || _d === void 0 ? void 0 : _d.trim()) ? (index.h("span", { class: "xpl-top-nav__brand-name" }, this.brandName.trim())) : null))), index.h("div", { key: '1e9a1af5fbeca22c0f440556c121c38b8528d9ba', class: {
22835
21397
  'xpl-top-nav__aside': true,
22836
21398
  'xpl-nav-left': true,
22837
- } }, index.h("div", { key: '718718595ec839e0aef4f703f766d1bedfd65c6b', class: "xpl-top-nav__left-primary", role: "list" }, index.h("slot", { key: 'ebcb856dc7c6bc247877a1306350073f9990ff18', name: "left-aside" })))), index.h("div", { key: 'e582c5e3799d471b358c48c34d5c629a5b6db44d', class: {
21399
+ } }, index.h("div", { key: 'b5d67e1adf5bc6a751be3d8bfa448bdb682039bc', class: "xpl-top-nav__left-primary", role: "list" }, index.h("slot", { key: 'c738eb6fbda41c8320fa2645fb88f43ef11731b6', name: "left-aside" })))), index.h("div", { key: '8573832a3922746b2301f9bc8b4fa6ab7e1ac441', class: {
22838
21400
  'xpl-top-nav__aside': true,
22839
21401
  'xpl-nav-right': true,
22840
- } }, index.h("div", { key: 'eda8ef4e6252b5c7362f1e30e15f9f60df2e77d6', class: "xpl-nav-right__list" }, index.h("div", { key: 'f99115361d8ec8e8c964f434b1c713488ece962a', class: "xpl-top-nav__right-rail" }, index.h("div", { key: '0eeea604e76f47ee71c7e2310f7a4764aa47bf39', class: "xpl-top-nav__right-lead" }, index.h("slot", { key: 'd4fd4fa67af3bc6dbdb4b641e24603fcfc14e920', name: "right-aside" })), this.hasUserMenu ? (index.h("div", { class: "xpl-top-nav__right-user" }, index.h("xpl-popover", { class: "xpl-top-nav__user-popover dark", position: "bottom-end", display: "menu" }, this.userMenuTriggerSlotPresent ? (index.h("slot", { name: "user-menu-trigger", slot: "trigger" })) : this.usesBuiltInChildAccountTrigger ? (index.h("xpl-button", { slot: "trigger", class: "xpl-top-nav__child-account-trigger", type: "button", variant: "tertiary", icon: "chevron-down", iconPosition: "end", iconOnly: this.childAccountLabelText.length === 0, "aria-haspopup": "dialog", "aria-label": this.childAccountLabelText.length > 0
21402
+ } }, index.h("div", { key: 'a21b318496a47000cde7a0346d3376999e7893ea', class: "xpl-nav-right__list" }, index.h("div", { key: '5934e7d3976b13abba77b4361b4fe1c6f49bcc2e', class: "xpl-top-nav__right-rail" }, index.h("div", { key: '49b44ea3d59eec32d6859978754e81ce6acc1bec', class: "xpl-top-nav__right-lead" }, index.h("slot", { key: '054671b75354700b873a85f08998a14d7fc7073b', name: "right-aside" })), this.hasUserMenu ? (index.h("div", { class: "xpl-top-nav__right-user" }, index.h("xpl-popover", { class: "xpl-top-nav__user-popover dark", position: "bottom-end", display: "menu" }, this.userMenuTriggerSlotPresent ? (index.h("slot", { name: "user-menu-trigger", slot: "trigger" })) : this.usesBuiltInChildAccountTrigger ? (index.h("xpl-button", { slot: "trigger", class: "xpl-top-nav__child-account-trigger", type: "button", variant: "tertiary", icon: "chevron-down", iconPosition: "end", iconOnly: this.childAccountLabelText.length === 0, "aria-haspopup": "dialog", "aria-label": this.childAccountLabelText.length > 0
22841
21403
  ? undefined
22842
21404
  : 'Open account menu' }, this.childAccountLabelText.length > 0
22843
21405
  ? this.childAccountLabelText
@@ -23155,14 +21717,14 @@ const TopNavItem = class {
23155
21717
  return (index.h("div", Object.assign({}, shared, { role: "button" }), this.icon && index.h("xpl-icon", { size: 16, icon: this.icon }), this.label ? (index.h("span", { class: "xpl-top-nav-item__label", title: this.label }, this.label)) : (index.h("slot", null)), this.hasDropdown && index.h("xpl-icon", { icon: "chevron-down" })));
23156
21718
  }
23157
21719
  render() {
23158
- return (index.h(index.Host, Object.assign({ key: '391dd693aabff902ffd5de50d710d3fab06573e2', class: {
21720
+ return (index.h(index.Host, Object.assign({ key: '4758b54726318591f140bcfea8d4db22c70c96ff', class: {
23159
21721
  'xpl-top-nav-item': true,
23160
21722
  'xpl-top-nav-item--active': this.active,
23161
21723
  'xpl-top-nav-item--dropdown-open': this.open,
23162
21724
  'xpl-top-nav-item--has-dropdown': this.hasDropdown,
23163
21725
  'xpl-top-nav-item--selected': this.selected,
23164
21726
  dark: true,
23165
- } }, (this.hostListitemRole ? { role: 'listitem' } : {})), this.renderInner(), this.hasDropdown && (index.h("div", { key: 'c5d5239d0279722d5a78bc7436a3ebb9247f904d', class: "xpl-top-nav-item__dropdown" }, index.h("slot", { key: 'f0a735798a09218822fd14174d0c845014c5e557', name: "dropdown" })))));
21727
+ } }, (this.hostListitemRole ? { role: 'listitem' } : {})), this.renderInner(), this.hasDropdown && (index.h("div", { key: '65f53889e4815fb974d7abe12d13dd8be19c1943', class: "xpl-top-nav-item__dropdown" }, index.h("slot", { key: '2f4f164deaec561be73a13e2303cc13e037699bb', name: "dropdown" })))));
23166
21728
  }
23167
21729
  get el() { return index.getElement(this); }
23168
21730
  static get watchers() { return {
@@ -23186,7 +21748,7 @@ const UtilityBar = class {
23186
21748
  this.open = this.isNavOpenAtStartup !== undefined ? this.isNavOpenAtStartup : this.open;
23187
21749
  }
23188
21750
  render() {
23189
- return (index.h(index.Host, { key: 'ace824cff0305860bce4dd4da2be0b2f8cf59672' }, index.h("nav", { key: '0617af3b292b4459900c7e352c9486d666fc501e', "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (index.h("div", null, index.h("button", { class: "xpl-utility-bar__nav-control", onClick: () => this.onNavToggle() }, index.h("xpl-icon", { class: "xpl-utility-nav__bars", icon: "three-bars" })), index.h("slot", { name: "aside" }))) : (index.h("slot", { name: "aside" })), index.h("slot", { key: 'e060a576b15089bc70d030a6c692124294b7eb4e', name: "main" }))));
21751
+ return (index.h(index.Host, { key: '2af96247c611b67255b7f285dfb2b8b1dada47cc' }, index.h("nav", { key: '135186097dd0d8f308a1a08b5fbf4a5537c10f25', "aria-label": "utility navigation bar", class: "xpl-utility-bar" }, this.navControl ? (index.h("div", null, index.h("button", { class: "xpl-utility-bar__nav-control", onClick: () => this.onNavToggle() }, index.h("xpl-icon", { class: "xpl-utility-nav__bars", icon: "three-bars" })), index.h("slot", { name: "aside" }))) : (index.h("slot", { name: "aside" })), index.h("slot", { key: '3346444f9813b20d8c4ed13b5a0784205dcfbbb1', name: "main" }))));
23190
21752
  }
23191
21753
  };
23192
21754
 
@@ -23237,13 +21799,6 @@ exports.xpl_spotlight = Spotlight;
23237
21799
  exports.xpl_tab = Tab;
23238
21800
  exports.xpl_tab_panel = TabPanel;
23239
21801
  exports.xpl_table = Table;
23240
- exports.xpl_table_body = XplTableBody;
23241
- exports.xpl_table_cell = XplTableCell;
23242
- exports.xpl_table_footer = XplTableFooter;
23243
- exports.xpl_table_footer_cell = XplTableFooterCell;
23244
- exports.xpl_table_header = TableHeader;
23245
- exports.xpl_table_header_cell = TableHeaderCell;
23246
- exports.xpl_table_row = XplTableRow;
23247
21802
  exports.xpl_tabs = Tabs;
23248
21803
  exports.xpl_tag = Tag;
23249
21804
  exports.xpl_toast = Toast;