@pine-ds/core 3.26.4 → 3.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1139) hide show
  1. package/components/attributes.js +1 -85
  2. package/components/closest.js +1 -12
  3. package/components/floating-ui.dom.js +1 -1631
  4. package/components/form.js +1 -62
  5. package/components/i18n-format.js +1 -0
  6. package/components/index.d.ts +1 -0
  7. package/components/index.js +1 -54
  8. package/components/index2.js +1 -20
  9. package/components/mock-pds-modal.js +1 -119
  10. package/components/pds-accordion.js +1 -74
  11. package/components/pds-alert.js +1 -115
  12. package/components/pds-avatar.js +1 -141
  13. package/components/pds-box.js +1 -9
  14. package/components/pds-box2.js +1 -283
  15. package/components/pds-button.js +1 -9
  16. package/components/pds-button2.js +1 -250
  17. package/components/pds-checkbox.js +1 -9
  18. package/components/pds-checkbox2.js +1 -150
  19. package/components/pds-chip.js +1 -9
  20. package/components/pds-chip2.js +1 -167
  21. package/components/pds-combobox.js +2 -2958
  22. package/components/pds-container.js +1 -61
  23. package/components/pds-copytext.js +1 -154
  24. package/components/pds-divider.js +1 -58
  25. package/components/pds-dropdown-menu-item.js +1 -128
  26. package/components/pds-dropdown-menu-separator.js +1 -46
  27. package/components/pds-dropdown-menu.js +1 -349
  28. package/components/pds-filter.js +1 -524
  29. package/components/pds-filters.js +1 -40
  30. package/components/pds-icon.js +1 -9
  31. package/components/pds-icon2.js +1 -601
  32. package/components/pds-image.js +1 -61
  33. package/components/pds-input.js +1 -372
  34. package/components/pds-link.js +1 -9
  35. package/components/pds-link2.js +1 -93
  36. package/components/pds-loader.js +1 -9
  37. package/components/pds-loader2.js +1 -79
  38. package/components/pds-modal-content.js +1 -214
  39. package/components/pds-modal-footer.js +1 -37
  40. package/components/pds-modal-header.js +1 -37
  41. package/components/pds-modal.js +1 -291
  42. package/components/pds-multiselect.js +1 -1087
  43. package/components/pds-popover.js +1 -602
  44. package/components/pds-progress.js +1 -60
  45. package/components/pds-property.js +1 -57
  46. package/components/pds-radio-group.js +1 -211
  47. package/components/pds-radio.js +1 -138
  48. package/components/pds-row.js +1 -99
  49. package/components/pds-select.js +1 -291
  50. package/components/pds-sortable-item.js +1 -67
  51. package/components/pds-sortable.js +2 -2747
  52. package/components/pds-switch.js +1 -147
  53. package/components/pds-tab.js +1 -71
  54. package/components/pds-table-body.js +1 -38
  55. package/components/pds-table-cell.js +1 -9
  56. package/components/pds-table-cell2.js +1 -169
  57. package/components/pds-table-head-cell.js +1 -9
  58. package/components/pds-table-head-cell2.js +1 -254
  59. package/components/pds-table-head.js +1 -102
  60. package/components/pds-table-row.js +1 -197
  61. package/components/pds-table.js +1 -291
  62. package/components/pds-tabpanel.js +1 -48
  63. package/components/pds-tabs.js +1 -126
  64. package/components/pds-text.js +1 -9
  65. package/components/pds-text2.js +1 -110
  66. package/components/pds-textarea.js +1 -376
  67. package/components/pds-toast.js +1 -175
  68. package/components/pds-tooltip.js +1 -362
  69. package/components/scroll.js +1 -78
  70. package/components/truncation-tooltip.js +1 -247
  71. package/components/utils.js +1 -74
  72. package/dist/cjs/attributes-oNMnBEnP.js +0 -3
  73. package/dist/cjs/closest-BZXvuB_Y.js +0 -3
  74. package/dist/cjs/floating-ui.dom-BZk7Blsu.js +0 -3
  75. package/dist/cjs/form-CpM5Z8q7.js +0 -3
  76. package/dist/cjs/i18n-format-CrpIhahc.js +64 -0
  77. package/dist/cjs/{index-BUvWX8u2.js → index-DBhfI2Jq.js} +567 -387
  78. package/dist/cjs/index-DGBoDsAL.js +0 -3
  79. package/dist/cjs/index.cjs.js +0 -1
  80. package/dist/cjs/loader.cjs.js +2 -3
  81. package/dist/cjs/mock-pds-modal.cjs.entry.js +3 -4
  82. package/dist/cjs/pds-accordion.cjs.entry.js +7 -6
  83. package/dist/cjs/pds-alert.cjs.entry.js +11 -6
  84. package/dist/cjs/pds-avatar.cjs.entry.js +11 -6
  85. package/dist/cjs/pds-box.cjs.entry.js +3 -4
  86. package/dist/cjs/pds-button.cjs.entry.js +3 -4
  87. package/dist/cjs/pds-checkbox.cjs.entry.js +9 -6
  88. package/dist/cjs/pds-chip.cjs.entry.js +12 -8
  89. package/dist/cjs/pds-combobox.cjs.entry.js +18 -9
  90. package/dist/cjs/pds-container.cjs.entry.js +3 -4
  91. package/dist/cjs/pds-copytext.cjs.entry.js +10 -7
  92. package/dist/cjs/pds-divider.cjs.entry.js +3 -4
  93. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +3 -4
  94. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +3 -4
  95. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +3 -4
  96. package/dist/cjs/pds-filter.cjs.entry.js +3 -4
  97. package/dist/cjs/pds-filters.cjs.entry.js +3 -4
  98. package/dist/cjs/pds-icon.cjs.entry.js +18 -9
  99. package/dist/cjs/pds-image.cjs.entry.js +3 -4
  100. package/dist/cjs/pds-input.cjs.entry.js +12 -9
  101. package/dist/cjs/pds-link.cjs.entry.js +5 -6
  102. package/dist/cjs/pds-loader.cjs.entry.js +3 -4
  103. package/dist/cjs/pds-modal-content.cjs.entry.js +3 -4
  104. package/dist/cjs/pds-modal-footer.cjs.entry.js +3 -4
  105. package/dist/cjs/pds-modal-header.cjs.entry.js +3 -4
  106. package/dist/cjs/pds-modal.cjs.entry.js +6 -5
  107. package/dist/cjs/pds-multiselect.cjs.entry.js +106 -20
  108. package/dist/cjs/pds-popover.cjs.entry.js +3 -4
  109. package/dist/cjs/pds-progress.cjs.entry.js +3 -4
  110. package/dist/cjs/pds-property.cjs.entry.js +3 -4
  111. package/dist/cjs/pds-radio-group.cjs.entry.js +15 -8
  112. package/dist/cjs/pds-radio.cjs.entry.js +4 -5
  113. package/dist/cjs/pds-row.cjs.entry.js +3 -4
  114. package/dist/cjs/pds-select.cjs.entry.js +13 -10
  115. package/dist/cjs/pds-sortable-item.cjs.entry.js +4 -5
  116. package/dist/cjs/pds-sortable.cjs.entry.js +6 -5
  117. package/dist/cjs/pds-switch.cjs.entry.js +7 -6
  118. package/dist/cjs/pds-tab.cjs.entry.js +3 -4
  119. package/dist/cjs/pds-table-body.cjs.entry.js +3 -4
  120. package/dist/cjs/pds-table-cell.cjs.entry.js +6 -5
  121. package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -4
  122. package/dist/cjs/pds-table-head.cjs.entry.js +3 -4
  123. package/dist/cjs/pds-table-row.cjs.entry.js +3 -4
  124. package/dist/cjs/pds-table.cjs.entry.js +3 -4
  125. package/dist/cjs/pds-tabpanel.cjs.entry.js +3 -4
  126. package/dist/cjs/pds-tabs.cjs.entry.js +3 -4
  127. package/dist/cjs/pds-text.cjs.entry.js +46 -6
  128. package/dist/cjs/pds-textarea.cjs.entry.js +26 -14
  129. package/dist/cjs/pds-toast.cjs.entry.js +15 -8
  130. package/dist/cjs/pds-tooltip.cjs.entry.js +6 -5
  131. package/dist/cjs/pine-core.cjs.js +3 -4
  132. package/dist/cjs/scroll-2XcoE_6Q.js +0 -3
  133. package/dist/cjs/truncation-tooltip-CVzAha5B.js +0 -3
  134. package/dist/cjs/utils-7jx8T2mW.js +0 -3
  135. package/dist/collection/collection-manifest.json +3 -2
  136. package/dist/collection/components/_internal/pds-label/pds-label.js +0 -1
  137. package/dist/collection/components/pds-accordion/pds-accordion.js +1 -2
  138. package/dist/collection/components/pds-alert/pds-alert.js +30 -2
  139. package/dist/collection/components/pds-avatar/pds-avatar.js +31 -3
  140. package/dist/collection/components/pds-box/pds-box.js +206 -134
  141. package/dist/collection/components/pds-button/pds-button.css +74 -74
  142. package/dist/collection/components/pds-button/pds-button.js +2 -2
  143. package/dist/collection/components/pds-checkbox/checkbox-interface.js +0 -1
  144. package/dist/collection/components/pds-checkbox/pds-checkbox.js +4 -3
  145. package/dist/collection/components/pds-chip/pds-chip.js +37 -7
  146. package/dist/collection/components/pds-combobox/combobox-interface.js +0 -1
  147. package/dist/collection/components/pds-combobox/pds-combobox.css +3 -0
  148. package/dist/collection/components/pds-combobox/pds-combobox.js +10 -6
  149. package/dist/collection/components/pds-container/pds-container.js +0 -1
  150. package/dist/collection/components/pds-copytext/pds-copytext.js +1 -2
  151. package/dist/collection/components/pds-divider/pds-divider.js +0 -1
  152. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +0 -1
  153. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +0 -1
  154. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +2 -2
  155. package/dist/collection/components/pds-filters/pds-filter/filter-interface.js +0 -1
  156. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +8 -5
  157. package/dist/collection/components/pds-filters/pds-filters.js +0 -1
  158. package/dist/collection/components/pds-image/pds-image.js +0 -1
  159. package/dist/collection/components/pds-input/input-interface.js +0 -1
  160. package/dist/collection/components/pds-input/pds-input.js +5 -4
  161. package/dist/collection/components/pds-link/pds-link.js +154 -3
  162. package/dist/collection/components/pds-loader/pds-loader.js +0 -1
  163. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +0 -1
  164. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +0 -1
  165. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +0 -1
  166. package/dist/collection/components/pds-modal/pds-modal.js +0 -1
  167. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +0 -1
  168. package/dist/collection/components/pds-multiselect/multiselect-interface.js +0 -1
  169. package/dist/collection/components/pds-multiselect/pds-multiselect.css +1 -0
  170. package/dist/collection/components/pds-multiselect/pds-multiselect.js +370 -24
  171. package/dist/collection/components/pds-popover/pds-popover.js +6 -4
  172. package/dist/collection/components/pds-popover/popover-interface.js +0 -1
  173. package/dist/collection/components/pds-progress/pds-progress.js +0 -1
  174. package/dist/collection/components/pds-property/pds-property.js +0 -1
  175. package/dist/collection/components/pds-radio/pds-radio.js +0 -1
  176. package/dist/collection/components/pds-radio-group/pds-radio-group.js +2 -2
  177. package/dist/collection/components/pds-radio-group/radio-group-interface.js +0 -1
  178. package/dist/collection/components/pds-row/pds-row.js +9 -7
  179. package/dist/collection/components/pds-select/pds-select.js +2 -3
  180. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -2
  181. package/dist/collection/components/pds-sortable/pds-sortable.js +2 -2
  182. package/dist/collection/components/pds-sortable/sortable-interface.js +0 -1
  183. package/dist/collection/components/pds-switch/pds-switch.js +0 -1
  184. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +0 -1
  185. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +0 -1
  186. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +0 -1
  187. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +0 -1
  188. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +0 -1
  189. package/dist/collection/components/pds-table/pds-table.css +1 -0
  190. package/dist/collection/components/pds-table/pds-table.js +0 -1
  191. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +0 -1
  192. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +0 -1
  193. package/dist/collection/components/pds-tabs/pds-tabs.js +0 -1
  194. package/dist/collection/components/pds-text/pds-text.js +31 -4
  195. package/dist/collection/components/pds-textarea/pds-textarea.js +39 -8
  196. package/dist/collection/components/pds-textarea/textarea-interface.js +0 -1
  197. package/dist/collection/components/pds-toast/pds-toast.js +32 -4
  198. package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
  199. package/dist/collection/global/pine-ui-global.js +0 -1
  200. package/dist/collection/i18n/i18n-format.js +59 -0
  201. package/dist/collection/i18n/index.js +1 -0
  202. package/dist/collection/index.js +0 -1
  203. package/dist/collection/utils/attributes.js +0 -1
  204. package/dist/collection/utils/closest.js +0 -1
  205. package/dist/collection/utils/form.js +0 -1
  206. package/dist/collection/utils/interfaces.js +0 -1
  207. package/dist/collection/utils/overlay.js +0 -1
  208. package/dist/collection/utils/scroll.js +0 -1
  209. package/dist/collection/utils/test/axe.js +9 -4
  210. package/dist/collection/utils/truncation-tooltip.js +0 -1
  211. package/dist/collection/utils/types.js +18 -2
  212. package/dist/collection/utils/utils.js +0 -1
  213. package/dist/docs.d.ts +37 -0
  214. package/dist/docs.json +2833 -1964
  215. package/dist/esm/attributes-C0M1gTKv.js +0 -3
  216. package/dist/esm/closest-DnUJodVd.js +0 -3
  217. package/dist/esm/floating-ui.dom-DDtwbwIl.js +0 -3
  218. package/dist/esm/form-C3xDZBme.js +0 -3
  219. package/dist/esm/i18n-format-BKsJZTyn.js +61 -0
  220. package/dist/esm/{index-B2f84Zog.js → index-CaRgVPt7.js} +567 -387
  221. package/dist/esm/index-D4ys0pep.js +0 -3
  222. package/dist/esm/index.js +0 -1
  223. package/dist/esm/loader.js +3 -4
  224. package/dist/esm/mock-pds-modal.entry.js +3 -4
  225. package/dist/esm/pds-accordion.entry.js +7 -6
  226. package/dist/esm/pds-alert.entry.js +11 -6
  227. package/dist/esm/pds-avatar.entry.js +11 -6
  228. package/dist/esm/pds-box.entry.js +3 -4
  229. package/dist/esm/pds-button.entry.js +3 -4
  230. package/dist/esm/pds-checkbox.entry.js +9 -6
  231. package/dist/esm/pds-chip.entry.js +12 -8
  232. package/dist/esm/pds-combobox.entry.js +18 -9
  233. package/dist/esm/pds-container.entry.js +3 -4
  234. package/dist/esm/pds-copytext.entry.js +10 -7
  235. package/dist/esm/pds-divider.entry.js +3 -4
  236. package/dist/esm/pds-dropdown-menu-item.entry.js +3 -4
  237. package/dist/esm/pds-dropdown-menu-separator.entry.js +3 -4
  238. package/dist/esm/pds-dropdown-menu.entry.js +3 -4
  239. package/dist/esm/pds-filter.entry.js +3 -4
  240. package/dist/esm/pds-filters.entry.js +3 -4
  241. package/dist/esm/pds-icon.entry.js +18 -9
  242. package/dist/esm/pds-image.entry.js +3 -4
  243. package/dist/esm/pds-input.entry.js +12 -9
  244. package/dist/esm/pds-link.entry.js +5 -6
  245. package/dist/esm/pds-loader.entry.js +3 -4
  246. package/dist/esm/pds-modal-content.entry.js +3 -4
  247. package/dist/esm/pds-modal-footer.entry.js +3 -4
  248. package/dist/esm/pds-modal-header.entry.js +3 -4
  249. package/dist/esm/pds-modal.entry.js +6 -5
  250. package/dist/esm/pds-multiselect.entry.js +106 -20
  251. package/dist/esm/pds-popover.entry.js +3 -4
  252. package/dist/esm/pds-progress.entry.js +3 -4
  253. package/dist/esm/pds-property.entry.js +3 -4
  254. package/dist/esm/pds-radio-group.entry.js +15 -8
  255. package/dist/esm/pds-radio.entry.js +4 -5
  256. package/dist/esm/pds-row.entry.js +3 -4
  257. package/dist/esm/pds-select.entry.js +13 -10
  258. package/dist/esm/pds-sortable-item.entry.js +4 -5
  259. package/dist/esm/pds-sortable.entry.js +6 -5
  260. package/dist/esm/pds-switch.entry.js +7 -6
  261. package/dist/esm/pds-tab.entry.js +3 -4
  262. package/dist/esm/pds-table-body.entry.js +3 -4
  263. package/dist/esm/pds-table-cell.entry.js +6 -5
  264. package/dist/esm/pds-table-head-cell.entry.js +3 -4
  265. package/dist/esm/pds-table-head.entry.js +3 -4
  266. package/dist/esm/pds-table-row.entry.js +3 -4
  267. package/dist/esm/pds-table.entry.js +3 -4
  268. package/dist/esm/pds-tabpanel.entry.js +3 -4
  269. package/dist/esm/pds-tabs.entry.js +3 -4
  270. package/dist/esm/pds-text.entry.js +46 -6
  271. package/dist/esm/pds-textarea.entry.js +26 -14
  272. package/dist/esm/pds-toast.entry.js +15 -8
  273. package/dist/esm/pds-tooltip.entry.js +6 -5
  274. package/dist/esm/pine-core.js +4 -5
  275. package/dist/esm/scroll-DtgUQhjl.js +0 -3
  276. package/dist/esm/truncation-tooltip-Blk4GigP.js +0 -3
  277. package/dist/esm/utils-tJa4KYNO.js +0 -3
  278. package/dist/esm-es5/attributes-C0M1gTKv.js +1 -2
  279. package/dist/esm-es5/closest-DnUJodVd.js +1 -2
  280. package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js +1 -2
  281. package/dist/esm-es5/form-C3xDZBme.js +1 -2
  282. package/dist/esm-es5/i18n-format-BKsJZTyn.js +1 -0
  283. package/dist/esm-es5/index-CaRgVPt7.js +2 -0
  284. package/dist/esm-es5/index-D4ys0pep.js +1 -2
  285. package/dist/esm-es5/index.js +0 -2
  286. package/dist/esm-es5/loader.js +1 -2
  287. package/dist/esm-es5/mock-pds-modal.entry.js +1 -2
  288. package/dist/esm-es5/pds-accordion.entry.js +1 -2
  289. package/dist/esm-es5/pds-alert.entry.js +1 -2
  290. package/dist/esm-es5/pds-avatar.entry.js +1 -2
  291. package/dist/esm-es5/pds-box.entry.js +1 -2
  292. package/dist/esm-es5/pds-button.entry.js +1 -2
  293. package/dist/esm-es5/pds-checkbox.entry.js +1 -2
  294. package/dist/esm-es5/pds-chip.entry.js +1 -2
  295. package/dist/esm-es5/pds-combobox.entry.js +2 -3
  296. package/dist/esm-es5/pds-container.entry.js +1 -2
  297. package/dist/esm-es5/pds-copytext.entry.js +1 -2
  298. package/dist/esm-es5/pds-divider.entry.js +1 -2
  299. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -2
  300. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -2
  301. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -2
  302. package/dist/esm-es5/pds-filter.entry.js +1 -2
  303. package/dist/esm-es5/pds-filters.entry.js +1 -2
  304. package/dist/esm-es5/pds-icon.entry.js +1 -2
  305. package/dist/esm-es5/pds-image.entry.js +1 -2
  306. package/dist/esm-es5/pds-input.entry.js +1 -2
  307. package/dist/esm-es5/pds-link.entry.js +1 -2
  308. package/dist/esm-es5/pds-loader.entry.js +1 -2
  309. package/dist/esm-es5/pds-modal-content.entry.js +1 -2
  310. package/dist/esm-es5/pds-modal-footer.entry.js +1 -2
  311. package/dist/esm-es5/pds-modal-header.entry.js +1 -2
  312. package/dist/esm-es5/pds-modal.entry.js +1 -2
  313. package/dist/esm-es5/pds-multiselect.entry.js +1 -2
  314. package/dist/esm-es5/pds-popover.entry.js +1 -2
  315. package/dist/esm-es5/pds-progress.entry.js +1 -2
  316. package/dist/esm-es5/pds-property.entry.js +1 -2
  317. package/dist/esm-es5/pds-radio-group.entry.js +1 -2
  318. package/dist/esm-es5/pds-radio.entry.js +1 -2
  319. package/dist/esm-es5/pds-row.entry.js +1 -2
  320. package/dist/esm-es5/pds-select.entry.js +1 -2
  321. package/dist/esm-es5/pds-sortable-item.entry.js +1 -2
  322. package/dist/esm-es5/pds-sortable.entry.js +2 -3
  323. package/dist/esm-es5/pds-switch.entry.js +1 -2
  324. package/dist/esm-es5/pds-tab.entry.js +1 -2
  325. package/dist/esm-es5/pds-table-body.entry.js +1 -2
  326. package/dist/esm-es5/pds-table-cell.entry.js +1 -2
  327. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -2
  328. package/dist/esm-es5/pds-table-head.entry.js +1 -2
  329. package/dist/esm-es5/pds-table-row.entry.js +1 -2
  330. package/dist/esm-es5/pds-table.entry.js +1 -2
  331. package/dist/esm-es5/pds-tabpanel.entry.js +1 -2
  332. package/dist/esm-es5/pds-tabs.entry.js +1 -2
  333. package/dist/esm-es5/pds-text.entry.js +1 -2
  334. package/dist/esm-es5/pds-textarea.entry.js +1 -2
  335. package/dist/esm-es5/pds-toast.entry.js +1 -2
  336. package/dist/esm-es5/pds-tooltip.entry.js +1 -2
  337. package/dist/esm-es5/pine-core.js +1 -2
  338. package/dist/esm-es5/scroll-DtgUQhjl.js +1 -2
  339. package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +1 -2
  340. package/dist/esm-es5/utils-tJa4KYNO.js +1 -2
  341. package/dist/pine-core/index.esm.js +0 -2
  342. package/dist/pine-core/p-002c420f.system.entry.js +1 -0
  343. package/dist/pine-core/p-003f91b1.system.entry.js +1 -0
  344. package/dist/pine-core/p-006398c3.system.entry.js +1 -0
  345. package/dist/pine-core/p-01dba061.entry.js +1 -0
  346. package/dist/pine-core/p-041243ee.system.entry.js +1 -0
  347. package/dist/pine-core/p-0451fdf7.entry.js +1 -0
  348. package/dist/pine-core/p-04f8b32a.entry.js +1 -0
  349. package/dist/pine-core/p-0bf56f61.entry.js +1 -0
  350. package/dist/pine-core/p-13ec2343.entry.js +1 -0
  351. package/dist/pine-core/p-1e3beca4.system.entry.js +1 -0
  352. package/dist/pine-core/p-1f4910b0.system.entry.js +1 -0
  353. package/dist/pine-core/p-20f39b93.system.entry.js +1 -0
  354. package/dist/pine-core/p-22bfa998.entry.js +1 -0
  355. package/dist/pine-core/p-25f8690f.entry.js +1 -0
  356. package/dist/pine-core/p-27ac77c3.entry.js +1 -0
  357. package/dist/pine-core/p-2af1d1d3.system.entry.js +1 -0
  358. package/dist/pine-core/p-2b0cb8c4.system.entry.js +1 -0
  359. package/dist/pine-core/p-2cc1ec4c.entry.js +1 -0
  360. package/dist/pine-core/p-334b7c30.entry.js +1 -0
  361. package/dist/pine-core/p-3876b9be.entry.js +1 -0
  362. package/dist/pine-core/p-3a1b7302.system.entry.js +1 -0
  363. package/dist/pine-core/p-3ad9bcef.system.entry.js +1 -0
  364. package/dist/pine-core/p-3ba36512.system.entry.js +1 -0
  365. package/dist/pine-core/p-3f19666c.entry.js +1 -0
  366. package/dist/pine-core/p-3fa80c5a.system.entry.js +1 -0
  367. package/dist/pine-core/p-44388b8f.system.entry.js +1 -0
  368. package/dist/pine-core/p-44f58d33.system.entry.js +1 -0
  369. package/dist/pine-core/p-46de2438.entry.js +1 -0
  370. package/dist/pine-core/p-4abec102.system.entry.js +3 -0
  371. package/dist/pine-core/p-4e49712d.entry.js +1 -0
  372. package/dist/pine-core/p-52e9ec4f.entry.js +1 -0
  373. package/dist/pine-core/p-52f7115b.entry.js +1 -0
  374. package/dist/pine-core/p-5584a56b.entry.js +1 -0
  375. package/dist/pine-core/p-568bb210.system.entry.js +1 -0
  376. package/dist/pine-core/p-571d6bef.system.entry.js +1 -0
  377. package/dist/pine-core/p-587a15ee.system.entry.js +1 -0
  378. package/dist/pine-core/p-59a5dd77.system.entry.js +1 -0
  379. package/dist/pine-core/p-59c60e5b.entry.js +1 -0
  380. package/dist/pine-core/p-5a2df1e2.entry.js +1 -0
  381. package/dist/pine-core/p-5c6c2f79.system.entry.js +1 -0
  382. package/dist/pine-core/p-5f36fafa.system.entry.js +1 -0
  383. package/dist/pine-core/p-618ba6d5.system.entry.js +1 -0
  384. package/dist/pine-core/p-621fdce1.entry.js +1 -0
  385. package/dist/pine-core/p-63e0d4a5.system.entry.js +1 -0
  386. package/dist/pine-core/p-65fb166c.system.entry.js +1 -0
  387. package/dist/pine-core/p-6a2373d0.system.entry.js +1 -0
  388. package/dist/pine-core/p-6c5aacad.entry.js +1 -0
  389. package/dist/pine-core/p-71ca8845.system.entry.js +1 -0
  390. package/dist/pine-core/p-7247fb4f.entry.js +2 -0
  391. package/dist/pine-core/p-73b81009.entry.js +1 -0
  392. package/dist/pine-core/p-73dd2a2b.entry.js +1 -0
  393. package/dist/pine-core/p-74e06c8d.system.entry.js +1 -0
  394. package/dist/pine-core/p-7520a715.system.entry.js +1 -0
  395. package/dist/pine-core/p-7766e970.entry.js +1 -0
  396. package/dist/pine-core/p-7874fe2b.entry.js +1 -0
  397. package/dist/pine-core/p-791d357a.entry.js +1 -0
  398. package/dist/pine-core/p-7a4da839.entry.js +1 -0
  399. package/dist/pine-core/p-7aca41d9.system.entry.js +1 -0
  400. package/dist/pine-core/p-7b954dbf.entry.js +1 -0
  401. package/dist/pine-core/p-8065c732.entry.js +1 -0
  402. package/dist/pine-core/p-835d9f18.system.entry.js +1 -0
  403. package/dist/pine-core/p-83eb33d4.entry.js +1 -0
  404. package/dist/pine-core/p-855dfc31.system.entry.js +1 -0
  405. package/dist/pine-core/p-889fce8a.entry.js +7 -0
  406. package/dist/pine-core/p-8a00e32b.system.entry.js +1 -0
  407. package/dist/pine-core/p-974bf0c5.entry.js +1 -0
  408. package/dist/pine-core/p-9865431f.system.entry.js +1 -0
  409. package/dist/pine-core/p-B1u-QvFn.system.js +1 -2
  410. package/dist/pine-core/p-BG6uGRQj.system.js +1 -2
  411. package/dist/pine-core/p-BKsJZTyn.js +1 -0
  412. package/dist/pine-core/p-BNSGedhN.js +1 -2
  413. package/dist/pine-core/p-BhQhw0S3.system.js +1 -2
  414. package/dist/pine-core/p-BrLs99ML.system.js +1 -2
  415. package/dist/pine-core/p-C0M1gTKv.js +1 -2
  416. package/dist/pine-core/p-C3xDZBme.js +1 -2
  417. package/dist/pine-core/p-C61CFP22.system.js +1 -0
  418. package/dist/pine-core/p-C62JIZmE.system.js +1 -2
  419. package/dist/pine-core/p-CRCxGYgw.system.js +1 -2
  420. package/dist/pine-core/p-CaRgVPt7.js +2 -0
  421. package/dist/pine-core/p-CdwliqhD.system.js +2 -0
  422. package/dist/pine-core/p-Cr7-rJtJ.system.js +1 -0
  423. package/dist/pine-core/p-D4ys0pep.js +1 -2
  424. package/dist/pine-core/p-DDtwbwIl.js +1 -2
  425. package/dist/pine-core/p-DVra397g.system.js +1 -2
  426. package/dist/pine-core/p-DnUJodVd.js +1 -2
  427. package/dist/pine-core/p-DtgUQhjl.js +1 -2
  428. package/dist/pine-core/p-YWpyar7R.system.js +1 -2
  429. package/dist/pine-core/p-a1750a54.entry.js +1 -0
  430. package/dist/pine-core/p-a659cce1.entry.js +1 -0
  431. package/dist/pine-core/p-a982ac91.system.entry.js +1 -0
  432. package/dist/pine-core/p-ab957ace.system.entry.js +1 -0
  433. package/dist/pine-core/p-ae2b466a.system.entry.js +1 -0
  434. package/dist/pine-core/p-ae840ec4.entry.js +1 -0
  435. package/dist/pine-core/p-af48e6ae.entry.js +1 -0
  436. package/dist/pine-core/p-b1b317a5.entry.js +1 -0
  437. package/dist/pine-core/p-ba88ff60.system.entry.js +1 -0
  438. package/dist/pine-core/p-babd0607.system.entry.js +1 -0
  439. package/dist/pine-core/p-bdf18687.entry.js +1 -0
  440. package/dist/pine-core/p-c273210a.entry.js +1 -0
  441. package/dist/pine-core/p-c3a99f39.entry.js +1 -0
  442. package/dist/pine-core/p-c7c17fe3.system.entry.js +1 -0
  443. package/dist/pine-core/p-ccb889d8.system.entry.js +1 -0
  444. package/dist/pine-core/p-cce83ef0.entry.js +1 -0
  445. package/dist/pine-core/p-d09ae46d.system.entry.js +1 -0
  446. package/dist/pine-core/p-d5c1f85e.system.entry.js +1 -0
  447. package/dist/pine-core/p-db1572a3.entry.js +1 -0
  448. package/dist/pine-core/p-e0cfb931.system.entry.js +1 -0
  449. package/dist/pine-core/p-e291db30.entry.js +1 -0
  450. package/dist/pine-core/p-e48161a5.entry.js +1 -0
  451. package/dist/pine-core/p-e620e492.system.entry.js +1 -0
  452. package/dist/pine-core/p-e70c9002.entry.js +1 -0
  453. package/dist/pine-core/p-e77c5c08.system.entry.js +1 -0
  454. package/dist/pine-core/p-edf4e4eb.system.entry.js +1 -0
  455. package/dist/pine-core/p-ee6f914c.entry.js +1 -0
  456. package/dist/pine-core/{p-85e889c3.system.entry.js → p-ef71710b.system.entry.js} +2 -3
  457. package/dist/pine-core/p-f2cf8e76.entry.js +1 -0
  458. package/dist/pine-core/p-f366f064.entry.js +1 -0
  459. package/dist/pine-core/p-fa81009f.system.entry.js +1 -0
  460. package/dist/pine-core/p-fb68e503.system.entry.js +1 -0
  461. package/dist/pine-core/p-fda3f3c6.entry.js +1 -0
  462. package/dist/pine-core/p-kYMYDfJY.system.js +1 -2
  463. package/dist/pine-core/p-tJa4KYNO.js +1 -2
  464. package/dist/pine-core/pine-core.esm.js +1 -2
  465. package/dist/pine-core/pine-core.js +1 -1
  466. package/dist/scripts/vscode-custom-data-generator.js +0 -1
  467. package/dist/types/components/pds-alert/pds-alert.d.ts +6 -0
  468. package/dist/types/components/pds-avatar/pds-avatar.d.ts +6 -0
  469. package/dist/types/components/pds-chip/pds-chip.d.ts +5 -0
  470. package/dist/types/components/pds-link/pds-link.d.ts +40 -0
  471. package/dist/types/components/pds-multiselect/pds-multiselect.d.ts +67 -4
  472. package/dist/types/components/pds-text/pds-text.d.ts +4 -1
  473. package/dist/types/components/pds-textarea/pds-textarea.d.ts +6 -0
  474. package/dist/types/components/pds-toast/pds-toast.d.ts +6 -0
  475. package/dist/types/components.d.ts +955 -132
  476. package/dist/types/i18n/i18n-format.d.ts +38 -0
  477. package/dist/types/i18n/index.d.ts +2 -0
  478. package/dist/types/stencil-public-runtime.d.ts +110 -5
  479. package/dist/types/utils/test/axe.d.ts +5 -4
  480. package/dist/types/utils/types.d.ts +2 -0
  481. package/hydrate/index.d.ts +12 -0
  482. package/hydrate/index.js +5420 -1083
  483. package/hydrate/index.mjs +5419 -1084
  484. package/package.json +12 -11
  485. package/components/attributes.js.map +0 -1
  486. package/components/closest.js.map +0 -1
  487. package/components/floating-ui.dom.js.map +0 -1
  488. package/components/form.js.map +0 -1
  489. package/components/index.js.map +0 -1
  490. package/components/index2.js.map +0 -1
  491. package/components/mock-pds-modal.js.map +0 -1
  492. package/components/pds-accordion.js.map +0 -1
  493. package/components/pds-alert.js.map +0 -1
  494. package/components/pds-avatar.js.map +0 -1
  495. package/components/pds-box.js.map +0 -1
  496. package/components/pds-box2.js.map +0 -1
  497. package/components/pds-button.js.map +0 -1
  498. package/components/pds-button2.js.map +0 -1
  499. package/components/pds-checkbox.js.map +0 -1
  500. package/components/pds-checkbox2.js.map +0 -1
  501. package/components/pds-chip.js.map +0 -1
  502. package/components/pds-chip2.js.map +0 -1
  503. package/components/pds-combobox.js.map +0 -1
  504. package/components/pds-container.js.map +0 -1
  505. package/components/pds-copytext.js.map +0 -1
  506. package/components/pds-divider.js.map +0 -1
  507. package/components/pds-dropdown-menu-item.js.map +0 -1
  508. package/components/pds-dropdown-menu-separator.js.map +0 -1
  509. package/components/pds-dropdown-menu.js.map +0 -1
  510. package/components/pds-filter.js.map +0 -1
  511. package/components/pds-filters.js.map +0 -1
  512. package/components/pds-icon.js.map +0 -1
  513. package/components/pds-icon2.js.map +0 -1
  514. package/components/pds-image.js.map +0 -1
  515. package/components/pds-input.js.map +0 -1
  516. package/components/pds-link.js.map +0 -1
  517. package/components/pds-link2.js.map +0 -1
  518. package/components/pds-loader.js.map +0 -1
  519. package/components/pds-loader2.js.map +0 -1
  520. package/components/pds-modal-content.js.map +0 -1
  521. package/components/pds-modal-footer.js.map +0 -1
  522. package/components/pds-modal-header.js.map +0 -1
  523. package/components/pds-modal.js.map +0 -1
  524. package/components/pds-multiselect.js.map +0 -1
  525. package/components/pds-popover.js.map +0 -1
  526. package/components/pds-progress.js.map +0 -1
  527. package/components/pds-property.js.map +0 -1
  528. package/components/pds-radio-group.js.map +0 -1
  529. package/components/pds-radio.js.map +0 -1
  530. package/components/pds-row.js.map +0 -1
  531. package/components/pds-select.js.map +0 -1
  532. package/components/pds-sortable-item.js.map +0 -1
  533. package/components/pds-sortable.js.map +0 -1
  534. package/components/pds-switch.js.map +0 -1
  535. package/components/pds-tab.js.map +0 -1
  536. package/components/pds-table-body.js.map +0 -1
  537. package/components/pds-table-cell.js.map +0 -1
  538. package/components/pds-table-cell2.js.map +0 -1
  539. package/components/pds-table-head-cell.js.map +0 -1
  540. package/components/pds-table-head-cell2.js.map +0 -1
  541. package/components/pds-table-head.js.map +0 -1
  542. package/components/pds-table-row.js.map +0 -1
  543. package/components/pds-table.js.map +0 -1
  544. package/components/pds-tabpanel.js.map +0 -1
  545. package/components/pds-tabs.js.map +0 -1
  546. package/components/pds-text.js.map +0 -1
  547. package/components/pds-text2.js.map +0 -1
  548. package/components/pds-textarea.js.map +0 -1
  549. package/components/pds-toast.js.map +0 -1
  550. package/components/pds-tooltip.js.map +0 -1
  551. package/components/scroll.js.map +0 -1
  552. package/components/truncation-tooltip.js.map +0 -1
  553. package/components/utils.js.map +0 -1
  554. package/dist/cjs/attributes-oNMnBEnP.js.map +0 -1
  555. package/dist/cjs/closest-BZXvuB_Y.js.map +0 -1
  556. package/dist/cjs/floating-ui.dom-BZk7Blsu.js.map +0 -1
  557. package/dist/cjs/form-CpM5Z8q7.js.map +0 -1
  558. package/dist/cjs/index-BUvWX8u2.js.map +0 -1
  559. package/dist/cjs/index-DGBoDsAL.js.map +0 -1
  560. package/dist/cjs/index.cjs.js.map +0 -1
  561. package/dist/cjs/loader.cjs.js.map +0 -1
  562. package/dist/cjs/mock-pds-modal.entry.cjs.js.map +0 -1
  563. package/dist/cjs/pds-accordion.entry.cjs.js.map +0 -1
  564. package/dist/cjs/pds-alert.entry.cjs.js.map +0 -1
  565. package/dist/cjs/pds-avatar.entry.cjs.js.map +0 -1
  566. package/dist/cjs/pds-box.entry.cjs.js.map +0 -1
  567. package/dist/cjs/pds-button.entry.cjs.js.map +0 -1
  568. package/dist/cjs/pds-checkbox.entry.cjs.js.map +0 -1
  569. package/dist/cjs/pds-chip.entry.cjs.js.map +0 -1
  570. package/dist/cjs/pds-combobox.entry.cjs.js.map +0 -1
  571. package/dist/cjs/pds-container.entry.cjs.js.map +0 -1
  572. package/dist/cjs/pds-copytext.entry.cjs.js.map +0 -1
  573. package/dist/cjs/pds-divider.entry.cjs.js.map +0 -1
  574. package/dist/cjs/pds-dropdown-menu-item.entry.cjs.js.map +0 -1
  575. package/dist/cjs/pds-dropdown-menu-separator.entry.cjs.js.map +0 -1
  576. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +0 -1
  577. package/dist/cjs/pds-filter.entry.cjs.js.map +0 -1
  578. package/dist/cjs/pds-filters.entry.cjs.js.map +0 -1
  579. package/dist/cjs/pds-icon.entry.cjs.js.map +0 -1
  580. package/dist/cjs/pds-image.entry.cjs.js.map +0 -1
  581. package/dist/cjs/pds-input.entry.cjs.js.map +0 -1
  582. package/dist/cjs/pds-link.entry.cjs.js.map +0 -1
  583. package/dist/cjs/pds-loader.entry.cjs.js.map +0 -1
  584. package/dist/cjs/pds-modal-content.entry.cjs.js.map +0 -1
  585. package/dist/cjs/pds-modal-footer.entry.cjs.js.map +0 -1
  586. package/dist/cjs/pds-modal-header.entry.cjs.js.map +0 -1
  587. package/dist/cjs/pds-modal.entry.cjs.js.map +0 -1
  588. package/dist/cjs/pds-multiselect.entry.cjs.js.map +0 -1
  589. package/dist/cjs/pds-popover.entry.cjs.js.map +0 -1
  590. package/dist/cjs/pds-progress.entry.cjs.js.map +0 -1
  591. package/dist/cjs/pds-property.entry.cjs.js.map +0 -1
  592. package/dist/cjs/pds-radio-group.entry.cjs.js.map +0 -1
  593. package/dist/cjs/pds-radio.entry.cjs.js.map +0 -1
  594. package/dist/cjs/pds-row.entry.cjs.js.map +0 -1
  595. package/dist/cjs/pds-select.entry.cjs.js.map +0 -1
  596. package/dist/cjs/pds-sortable-item.entry.cjs.js.map +0 -1
  597. package/dist/cjs/pds-sortable.entry.cjs.js.map +0 -1
  598. package/dist/cjs/pds-switch.entry.cjs.js.map +0 -1
  599. package/dist/cjs/pds-tab.entry.cjs.js.map +0 -1
  600. package/dist/cjs/pds-table-body.entry.cjs.js.map +0 -1
  601. package/dist/cjs/pds-table-cell.entry.cjs.js.map +0 -1
  602. package/dist/cjs/pds-table-head-cell.entry.cjs.js.map +0 -1
  603. package/dist/cjs/pds-table-head.entry.cjs.js.map +0 -1
  604. package/dist/cjs/pds-table-row.entry.cjs.js.map +0 -1
  605. package/dist/cjs/pds-table.entry.cjs.js.map +0 -1
  606. package/dist/cjs/pds-tabpanel.entry.cjs.js.map +0 -1
  607. package/dist/cjs/pds-tabs.entry.cjs.js.map +0 -1
  608. package/dist/cjs/pds-text.entry.cjs.js.map +0 -1
  609. package/dist/cjs/pds-textarea.entry.cjs.js.map +0 -1
  610. package/dist/cjs/pds-toast.entry.cjs.js.map +0 -1
  611. package/dist/cjs/pds-tooltip.entry.cjs.js.map +0 -1
  612. package/dist/cjs/pine-core.cjs.js.map +0 -1
  613. package/dist/cjs/scroll-2XcoE_6Q.js.map +0 -1
  614. package/dist/cjs/truncation-tooltip-CVzAha5B.js.map +0 -1
  615. package/dist/cjs/utils-7jx8T2mW.js.map +0 -1
  616. package/dist/collection/components/_internal/pds-label/pds-label.js.map +0 -1
  617. package/dist/collection/components/pds-accordion/pds-accordion.js.map +0 -1
  618. package/dist/collection/components/pds-alert/pds-alert.js.map +0 -1
  619. package/dist/collection/components/pds-avatar/pds-avatar.js.map +0 -1
  620. package/dist/collection/components/pds-box/pds-box.js.map +0 -1
  621. package/dist/collection/components/pds-button/pds-button.js.map +0 -1
  622. package/dist/collection/components/pds-checkbox/checkbox-interface.js.map +0 -1
  623. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +0 -1
  624. package/dist/collection/components/pds-chip/pds-chip.js.map +0 -1
  625. package/dist/collection/components/pds-combobox/combobox-interface.js.map +0 -1
  626. package/dist/collection/components/pds-combobox/pds-combobox.js.map +0 -1
  627. package/dist/collection/components/pds-container/pds-container.js.map +0 -1
  628. package/dist/collection/components/pds-copytext/pds-copytext.js.map +0 -1
  629. package/dist/collection/components/pds-divider/pds-divider.js.map +0 -1
  630. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js.map +0 -1
  631. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js.map +0 -1
  632. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +0 -1
  633. package/dist/collection/components/pds-filters/pds-filter/filter-interface.js.map +0 -1
  634. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js.map +0 -1
  635. package/dist/collection/components/pds-filters/pds-filters.js.map +0 -1
  636. package/dist/collection/components/pds-image/pds-image.js.map +0 -1
  637. package/dist/collection/components/pds-input/input-interface.js.map +0 -1
  638. package/dist/collection/components/pds-input/pds-input.js.map +0 -1
  639. package/dist/collection/components/pds-link/pds-link.js.map +0 -1
  640. package/dist/collection/components/pds-loader/pds-loader.js.map +0 -1
  641. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +0 -1
  642. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js.map +0 -1
  643. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js.map +0 -1
  644. package/dist/collection/components/pds-modal/pds-modal.js.map +0 -1
  645. package/dist/collection/components/pds-modal/test/mock-pds-modal.js.map +0 -1
  646. package/dist/collection/components/pds-multiselect/multiselect-interface.js.map +0 -1
  647. package/dist/collection/components/pds-multiselect/pds-multiselect.js.map +0 -1
  648. package/dist/collection/components/pds-popover/pds-popover.js.map +0 -1
  649. package/dist/collection/components/pds-popover/popover-interface.js.map +0 -1
  650. package/dist/collection/components/pds-progress/pds-progress.js.map +0 -1
  651. package/dist/collection/components/pds-property/pds-property.js.map +0 -1
  652. package/dist/collection/components/pds-radio/pds-radio.js.map +0 -1
  653. package/dist/collection/components/pds-radio-group/pds-radio-group.js.map +0 -1
  654. package/dist/collection/components/pds-radio-group/radio-group-interface.js.map +0 -1
  655. package/dist/collection/components/pds-row/pds-row.js.map +0 -1
  656. package/dist/collection/components/pds-select/pds-select.js.map +0 -1
  657. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +0 -1
  658. package/dist/collection/components/pds-sortable/pds-sortable.js.map +0 -1
  659. package/dist/collection/components/pds-sortable/sortable-interface.js.map +0 -1
  660. package/dist/collection/components/pds-switch/pds-switch.js.map +0 -1
  661. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +0 -1
  662. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +0 -1
  663. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +0 -1
  664. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +0 -1
  665. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +0 -1
  666. package/dist/collection/components/pds-table/pds-table.js.map +0 -1
  667. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +0 -1
  668. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +0 -1
  669. package/dist/collection/components/pds-tabs/pds-tabs.js.map +0 -1
  670. package/dist/collection/components/pds-text/pds-text.js.map +0 -1
  671. package/dist/collection/components/pds-textarea/pds-textarea.js.map +0 -1
  672. package/dist/collection/components/pds-textarea/textarea-interface.js.map +0 -1
  673. package/dist/collection/components/pds-toast/pds-toast.js.map +0 -1
  674. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +0 -1
  675. package/dist/collection/global/pine-ui-global.js.map +0 -1
  676. package/dist/collection/index.js.map +0 -1
  677. package/dist/collection/utils/attributes.js.map +0 -1
  678. package/dist/collection/utils/closest.js.map +0 -1
  679. package/dist/collection/utils/form.js.map +0 -1
  680. package/dist/collection/utils/interfaces.js.map +0 -1
  681. package/dist/collection/utils/overlay.js.map +0 -1
  682. package/dist/collection/utils/scroll.js.map +0 -1
  683. package/dist/collection/utils/test/axe.js.map +0 -1
  684. package/dist/collection/utils/truncation-tooltip.js.map +0 -1
  685. package/dist/collection/utils/types.js.map +0 -1
  686. package/dist/collection/utils/utils.js.map +0 -1
  687. package/dist/esm/attributes-C0M1gTKv.js.map +0 -1
  688. package/dist/esm/closest-DnUJodVd.js.map +0 -1
  689. package/dist/esm/floating-ui.dom-DDtwbwIl.js.map +0 -1
  690. package/dist/esm/form-C3xDZBme.js.map +0 -1
  691. package/dist/esm/index-B2f84Zog.js.map +0 -1
  692. package/dist/esm/index-D4ys0pep.js.map +0 -1
  693. package/dist/esm/index.js.map +0 -1
  694. package/dist/esm/loader.js.map +0 -1
  695. package/dist/esm/mock-pds-modal.entry.js.map +0 -1
  696. package/dist/esm/pds-accordion.entry.js.map +0 -1
  697. package/dist/esm/pds-alert.entry.js.map +0 -1
  698. package/dist/esm/pds-avatar.entry.js.map +0 -1
  699. package/dist/esm/pds-box.entry.js.map +0 -1
  700. package/dist/esm/pds-button.entry.js.map +0 -1
  701. package/dist/esm/pds-checkbox.entry.js.map +0 -1
  702. package/dist/esm/pds-chip.entry.js.map +0 -1
  703. package/dist/esm/pds-combobox.entry.js.map +0 -1
  704. package/dist/esm/pds-container.entry.js.map +0 -1
  705. package/dist/esm/pds-copytext.entry.js.map +0 -1
  706. package/dist/esm/pds-divider.entry.js.map +0 -1
  707. package/dist/esm/pds-dropdown-menu-item.entry.js.map +0 -1
  708. package/dist/esm/pds-dropdown-menu-separator.entry.js.map +0 -1
  709. package/dist/esm/pds-dropdown-menu.entry.js.map +0 -1
  710. package/dist/esm/pds-filter.entry.js.map +0 -1
  711. package/dist/esm/pds-filters.entry.js.map +0 -1
  712. package/dist/esm/pds-icon.entry.js.map +0 -1
  713. package/dist/esm/pds-image.entry.js.map +0 -1
  714. package/dist/esm/pds-input.entry.js.map +0 -1
  715. package/dist/esm/pds-link.entry.js.map +0 -1
  716. package/dist/esm/pds-loader.entry.js.map +0 -1
  717. package/dist/esm/pds-modal-content.entry.js.map +0 -1
  718. package/dist/esm/pds-modal-footer.entry.js.map +0 -1
  719. package/dist/esm/pds-modal-header.entry.js.map +0 -1
  720. package/dist/esm/pds-modal.entry.js.map +0 -1
  721. package/dist/esm/pds-multiselect.entry.js.map +0 -1
  722. package/dist/esm/pds-popover.entry.js.map +0 -1
  723. package/dist/esm/pds-progress.entry.js.map +0 -1
  724. package/dist/esm/pds-property.entry.js.map +0 -1
  725. package/dist/esm/pds-radio-group.entry.js.map +0 -1
  726. package/dist/esm/pds-radio.entry.js.map +0 -1
  727. package/dist/esm/pds-row.entry.js.map +0 -1
  728. package/dist/esm/pds-select.entry.js.map +0 -1
  729. package/dist/esm/pds-sortable-item.entry.js.map +0 -1
  730. package/dist/esm/pds-sortable.entry.js.map +0 -1
  731. package/dist/esm/pds-switch.entry.js.map +0 -1
  732. package/dist/esm/pds-tab.entry.js.map +0 -1
  733. package/dist/esm/pds-table-body.entry.js.map +0 -1
  734. package/dist/esm/pds-table-cell.entry.js.map +0 -1
  735. package/dist/esm/pds-table-head-cell.entry.js.map +0 -1
  736. package/dist/esm/pds-table-head.entry.js.map +0 -1
  737. package/dist/esm/pds-table-row.entry.js.map +0 -1
  738. package/dist/esm/pds-table.entry.js.map +0 -1
  739. package/dist/esm/pds-tabpanel.entry.js.map +0 -1
  740. package/dist/esm/pds-tabs.entry.js.map +0 -1
  741. package/dist/esm/pds-text.entry.js.map +0 -1
  742. package/dist/esm/pds-textarea.entry.js.map +0 -1
  743. package/dist/esm/pds-toast.entry.js.map +0 -1
  744. package/dist/esm/pds-tooltip.entry.js.map +0 -1
  745. package/dist/esm/pine-core.js.map +0 -1
  746. package/dist/esm/scroll-DtgUQhjl.js.map +0 -1
  747. package/dist/esm/truncation-tooltip-Blk4GigP.js.map +0 -1
  748. package/dist/esm/utils-tJa4KYNO.js.map +0 -1
  749. package/dist/esm-es5/attributes-C0M1gTKv.js.map +0 -1
  750. package/dist/esm-es5/closest-DnUJodVd.js.map +0 -1
  751. package/dist/esm-es5/floating-ui.dom-DDtwbwIl.js.map +0 -1
  752. package/dist/esm-es5/form-C3xDZBme.js.map +0 -1
  753. package/dist/esm-es5/index-B2f84Zog.js +0 -3
  754. package/dist/esm-es5/index-B2f84Zog.js.map +0 -1
  755. package/dist/esm-es5/index-D4ys0pep.js.map +0 -1
  756. package/dist/esm-es5/index.js.map +0 -1
  757. package/dist/esm-es5/loader.js.map +0 -1
  758. package/dist/esm-es5/mock-pds-modal.entry.js.map +0 -1
  759. package/dist/esm-es5/pds-accordion.entry.js.map +0 -1
  760. package/dist/esm-es5/pds-alert.entry.js.map +0 -1
  761. package/dist/esm-es5/pds-avatar.entry.js.map +0 -1
  762. package/dist/esm-es5/pds-box.entry.js.map +0 -1
  763. package/dist/esm-es5/pds-button.entry.js.map +0 -1
  764. package/dist/esm-es5/pds-checkbox.entry.js.map +0 -1
  765. package/dist/esm-es5/pds-chip.entry.js.map +0 -1
  766. package/dist/esm-es5/pds-combobox.entry.js.map +0 -1
  767. package/dist/esm-es5/pds-container.entry.js.map +0 -1
  768. package/dist/esm-es5/pds-copytext.entry.js.map +0 -1
  769. package/dist/esm-es5/pds-divider.entry.js.map +0 -1
  770. package/dist/esm-es5/pds-dropdown-menu-item.entry.js.map +0 -1
  771. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js.map +0 -1
  772. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +0 -1
  773. package/dist/esm-es5/pds-filter.entry.js.map +0 -1
  774. package/dist/esm-es5/pds-filters.entry.js.map +0 -1
  775. package/dist/esm-es5/pds-icon.entry.js.map +0 -1
  776. package/dist/esm-es5/pds-image.entry.js.map +0 -1
  777. package/dist/esm-es5/pds-input.entry.js.map +0 -1
  778. package/dist/esm-es5/pds-link.entry.js.map +0 -1
  779. package/dist/esm-es5/pds-loader.entry.js.map +0 -1
  780. package/dist/esm-es5/pds-modal-content.entry.js.map +0 -1
  781. package/dist/esm-es5/pds-modal-footer.entry.js.map +0 -1
  782. package/dist/esm-es5/pds-modal-header.entry.js.map +0 -1
  783. package/dist/esm-es5/pds-modal.entry.js.map +0 -1
  784. package/dist/esm-es5/pds-multiselect.entry.js.map +0 -1
  785. package/dist/esm-es5/pds-popover.entry.js.map +0 -1
  786. package/dist/esm-es5/pds-progress.entry.js.map +0 -1
  787. package/dist/esm-es5/pds-property.entry.js.map +0 -1
  788. package/dist/esm-es5/pds-radio-group.entry.js.map +0 -1
  789. package/dist/esm-es5/pds-radio.entry.js.map +0 -1
  790. package/dist/esm-es5/pds-row.entry.js.map +0 -1
  791. package/dist/esm-es5/pds-select.entry.js.map +0 -1
  792. package/dist/esm-es5/pds-sortable-item.entry.js.map +0 -1
  793. package/dist/esm-es5/pds-sortable.entry.js.map +0 -1
  794. package/dist/esm-es5/pds-switch.entry.js.map +0 -1
  795. package/dist/esm-es5/pds-tab.entry.js.map +0 -1
  796. package/dist/esm-es5/pds-table-body.entry.js.map +0 -1
  797. package/dist/esm-es5/pds-table-cell.entry.js.map +0 -1
  798. package/dist/esm-es5/pds-table-head-cell.entry.js.map +0 -1
  799. package/dist/esm-es5/pds-table-head.entry.js.map +0 -1
  800. package/dist/esm-es5/pds-table-row.entry.js.map +0 -1
  801. package/dist/esm-es5/pds-table.entry.js.map +0 -1
  802. package/dist/esm-es5/pds-tabpanel.entry.js.map +0 -1
  803. package/dist/esm-es5/pds-tabs.entry.js.map +0 -1
  804. package/dist/esm-es5/pds-text.entry.js.map +0 -1
  805. package/dist/esm-es5/pds-textarea.entry.js.map +0 -1
  806. package/dist/esm-es5/pds-toast.entry.js.map +0 -1
  807. package/dist/esm-es5/pds-tooltip.entry.js.map +0 -1
  808. package/dist/esm-es5/pine-core.js.map +0 -1
  809. package/dist/esm-es5/scroll-DtgUQhjl.js.map +0 -1
  810. package/dist/esm-es5/truncation-tooltip-Blk4GigP.js.map +0 -1
  811. package/dist/esm-es5/utils-tJa4KYNO.js.map +0 -1
  812. package/dist/pine-core/index.esm.js.map +0 -1
  813. package/dist/pine-core/loader.esm.js.map +0 -1
  814. package/dist/pine-core/mock-pds-modal.entry.esm.js.map +0 -1
  815. package/dist/pine-core/p-037dbdcd.system.entry.js +0 -2
  816. package/dist/pine-core/p-037dbdcd.system.entry.js.map +0 -1
  817. package/dist/pine-core/p-06713f25.entry.js +0 -2
  818. package/dist/pine-core/p-06713f25.entry.js.map +0 -1
  819. package/dist/pine-core/p-0977b2dd.entry.js +0 -2
  820. package/dist/pine-core/p-0977b2dd.entry.js.map +0 -1
  821. package/dist/pine-core/p-099e9f9b.system.entry.js +0 -2
  822. package/dist/pine-core/p-099e9f9b.system.entry.js.map +0 -1
  823. package/dist/pine-core/p-0a7115f0.entry.js +0 -2
  824. package/dist/pine-core/p-0a7115f0.entry.js.map +0 -1
  825. package/dist/pine-core/p-0c1ab384.system.entry.js +0 -2
  826. package/dist/pine-core/p-0c1ab384.system.entry.js.map +0 -1
  827. package/dist/pine-core/p-0dee7449.system.entry.js +0 -2
  828. package/dist/pine-core/p-0dee7449.system.entry.js.map +0 -1
  829. package/dist/pine-core/p-102d0dd6.system.entry.js +0 -2
  830. package/dist/pine-core/p-102d0dd6.system.entry.js.map +0 -1
  831. package/dist/pine-core/p-10ebecc5.entry.js +0 -2
  832. package/dist/pine-core/p-10ebecc5.entry.js.map +0 -1
  833. package/dist/pine-core/p-1598f3af.entry.js +0 -2
  834. package/dist/pine-core/p-1598f3af.entry.js.map +0 -1
  835. package/dist/pine-core/p-1c32102e.system.entry.js +0 -2
  836. package/dist/pine-core/p-1c32102e.system.entry.js.map +0 -1
  837. package/dist/pine-core/p-2258b31b.system.entry.js +0 -2
  838. package/dist/pine-core/p-2258b31b.system.entry.js.map +0 -1
  839. package/dist/pine-core/p-275fa74c.system.entry.js +0 -2
  840. package/dist/pine-core/p-275fa74c.system.entry.js.map +0 -1
  841. package/dist/pine-core/p-27fc0737.system.entry.js +0 -2
  842. package/dist/pine-core/p-27fc0737.system.entry.js.map +0 -1
  843. package/dist/pine-core/p-32ad2807.system.entry.js +0 -2
  844. package/dist/pine-core/p-32ad2807.system.entry.js.map +0 -1
  845. package/dist/pine-core/p-33544ed1.system.entry.js +0 -2
  846. package/dist/pine-core/p-33544ed1.system.entry.js.map +0 -1
  847. package/dist/pine-core/p-34763aae.system.entry.js +0 -2
  848. package/dist/pine-core/p-34763aae.system.entry.js.map +0 -1
  849. package/dist/pine-core/p-36070380.system.entry.js +0 -2
  850. package/dist/pine-core/p-36070380.system.entry.js.map +0 -1
  851. package/dist/pine-core/p-3625bc45.entry.js +0 -2
  852. package/dist/pine-core/p-3625bc45.entry.js.map +0 -1
  853. package/dist/pine-core/p-3b087f24.entry.js +0 -2
  854. package/dist/pine-core/p-3b087f24.entry.js.map +0 -1
  855. package/dist/pine-core/p-3f66c070.entry.js +0 -2
  856. package/dist/pine-core/p-3f66c070.entry.js.map +0 -1
  857. package/dist/pine-core/p-407aad2b.system.entry.js +0 -2
  858. package/dist/pine-core/p-407aad2b.system.entry.js.map +0 -1
  859. package/dist/pine-core/p-44ca9b92.entry.js +0 -2
  860. package/dist/pine-core/p-44ca9b92.entry.js.map +0 -1
  861. package/dist/pine-core/p-476db791.entry.js +0 -2
  862. package/dist/pine-core/p-476db791.entry.js.map +0 -1
  863. package/dist/pine-core/p-4780403d.system.entry.js +0 -2
  864. package/dist/pine-core/p-4780403d.system.entry.js.map +0 -1
  865. package/dist/pine-core/p-48ac6873.entry.js +0 -2
  866. package/dist/pine-core/p-48ac6873.entry.js.map +0 -1
  867. package/dist/pine-core/p-4FBDaIH3.system.js.map +0 -1
  868. package/dist/pine-core/p-4ede20e6.entry.js +0 -2
  869. package/dist/pine-core/p-4ede20e6.entry.js.map +0 -1
  870. package/dist/pine-core/p-4f2a48cb.system.entry.js +0 -2
  871. package/dist/pine-core/p-4f2a48cb.system.entry.js.map +0 -1
  872. package/dist/pine-core/p-4f440dd4.entry.js +0 -2
  873. package/dist/pine-core/p-4f440dd4.entry.js.map +0 -1
  874. package/dist/pine-core/p-4jrX5aRd.system.js.map +0 -1
  875. package/dist/pine-core/p-51e47e6e.system.entry.js +0 -2
  876. package/dist/pine-core/p-51e47e6e.system.entry.js.map +0 -1
  877. package/dist/pine-core/p-52411757.system.entry.js +0 -2
  878. package/dist/pine-core/p-52411757.system.entry.js.map +0 -1
  879. package/dist/pine-core/p-557005a0.entry.js +0 -2
  880. package/dist/pine-core/p-557005a0.entry.js.map +0 -1
  881. package/dist/pine-core/p-5e117b98.entry.js +0 -2
  882. package/dist/pine-core/p-5e117b98.entry.js.map +0 -1
  883. package/dist/pine-core/p-639012b9.system.entry.js +0 -2
  884. package/dist/pine-core/p-639012b9.system.entry.js.map +0 -1
  885. package/dist/pine-core/p-643b01ad.entry.js +0 -2
  886. package/dist/pine-core/p-643b01ad.entry.js.map +0 -1
  887. package/dist/pine-core/p-6623b257.system.entry.js +0 -2
  888. package/dist/pine-core/p-6623b257.system.entry.js.map +0 -1
  889. package/dist/pine-core/p-74ff4d96.system.entry.js +0 -2
  890. package/dist/pine-core/p-74ff4d96.system.entry.js.map +0 -1
  891. package/dist/pine-core/p-77327e1b.system.entry.js +0 -2
  892. package/dist/pine-core/p-77327e1b.system.entry.js.map +0 -1
  893. package/dist/pine-core/p-774ecbd4.entry.js +0 -2
  894. package/dist/pine-core/p-774ecbd4.entry.js.map +0 -1
  895. package/dist/pine-core/p-7926dc93.entry.js +0 -2
  896. package/dist/pine-core/p-7926dc93.entry.js.map +0 -1
  897. package/dist/pine-core/p-7a3eccef.entry.js +0 -2
  898. package/dist/pine-core/p-7a3eccef.entry.js.map +0 -1
  899. package/dist/pine-core/p-7acb131c.system.entry.js +0 -2
  900. package/dist/pine-core/p-7acb131c.system.entry.js.map +0 -1
  901. package/dist/pine-core/p-81a3e32b.entry.js +0 -2
  902. package/dist/pine-core/p-81a3e32b.entry.js.map +0 -1
  903. package/dist/pine-core/p-848763b6.system.entry.js +0 -2
  904. package/dist/pine-core/p-848763b6.system.entry.js.map +0 -1
  905. package/dist/pine-core/p-85e889c3.system.entry.js.map +0 -1
  906. package/dist/pine-core/p-8669e0e3.system.entry.js +0 -2
  907. package/dist/pine-core/p-8669e0e3.system.entry.js.map +0 -1
  908. package/dist/pine-core/p-8735cb58.entry.js +0 -2
  909. package/dist/pine-core/p-8735cb58.entry.js.map +0 -1
  910. package/dist/pine-core/p-8b3aeaf9.system.entry.js +0 -2
  911. package/dist/pine-core/p-8b3aeaf9.system.entry.js.map +0 -1
  912. package/dist/pine-core/p-8b7aa53d.entry.js +0 -2
  913. package/dist/pine-core/p-8b7aa53d.entry.js.map +0 -1
  914. package/dist/pine-core/p-8c97fcb1.entry.js +0 -2
  915. package/dist/pine-core/p-8c97fcb1.entry.js.map +0 -1
  916. package/dist/pine-core/p-8c9f8ca6.entry.js +0 -2
  917. package/dist/pine-core/p-8c9f8ca6.entry.js.map +0 -1
  918. package/dist/pine-core/p-904e8d9d.system.entry.js +0 -2
  919. package/dist/pine-core/p-904e8d9d.system.entry.js.map +0 -1
  920. package/dist/pine-core/p-91bea052.entry.js +0 -2
  921. package/dist/pine-core/p-91bea052.entry.js.map +0 -1
  922. package/dist/pine-core/p-9230df2a.system.entry.js +0 -2
  923. package/dist/pine-core/p-9230df2a.system.entry.js.map +0 -1
  924. package/dist/pine-core/p-94a09b06.entry.js +0 -2
  925. package/dist/pine-core/p-94a09b06.entry.js.map +0 -1
  926. package/dist/pine-core/p-94d4d1de.entry.js +0 -3
  927. package/dist/pine-core/p-94d4d1de.entry.js.map +0 -1
  928. package/dist/pine-core/p-984db3fc.entry.js +0 -2
  929. package/dist/pine-core/p-984db3fc.entry.js.map +0 -1
  930. package/dist/pine-core/p-988d1723.system.entry.js +0 -2
  931. package/dist/pine-core/p-988d1723.system.entry.js.map +0 -1
  932. package/dist/pine-core/p-98dabbbf.entry.js +0 -2
  933. package/dist/pine-core/p-98dabbbf.entry.js.map +0 -1
  934. package/dist/pine-core/p-9a3c9d15.system.entry.js +0 -2
  935. package/dist/pine-core/p-9a3c9d15.system.entry.js.map +0 -1
  936. package/dist/pine-core/p-9b3aedeb.system.entry.js +0 -2
  937. package/dist/pine-core/p-9b3aedeb.system.entry.js.map +0 -1
  938. package/dist/pine-core/p-9ce56712.system.entry.js +0 -2
  939. package/dist/pine-core/p-9ce56712.system.entry.js.map +0 -1
  940. package/dist/pine-core/p-9e48d1ea.system.entry.js +0 -2
  941. package/dist/pine-core/p-9e48d1ea.system.entry.js.map +0 -1
  942. package/dist/pine-core/p-9e5c58c6.entry.js +0 -8
  943. package/dist/pine-core/p-9e5c58c6.entry.js.map +0 -1
  944. package/dist/pine-core/p-B-I9BXj1.system.js.map +0 -1
  945. package/dist/pine-core/p-B-nnQT8K.system.js.map +0 -1
  946. package/dist/pine-core/p-B1u-QvFn.system.js.map +0 -1
  947. package/dist/pine-core/p-B2f84Zog.js +0 -3
  948. package/dist/pine-core/p-B2f84Zog.js.map +0 -1
  949. package/dist/pine-core/p-BC7kndqW.system.js.map +0 -1
  950. package/dist/pine-core/p-BFAhunk3.system.js.map +0 -1
  951. package/dist/pine-core/p-BG6uGRQj.system.js.map +0 -1
  952. package/dist/pine-core/p-BJQiqlL7.system.js.map +0 -1
  953. package/dist/pine-core/p-BLg534X3.system.js.map +0 -1
  954. package/dist/pine-core/p-BNSGedhN.js.map +0 -1
  955. package/dist/pine-core/p-BT-iITx_.system.js.map +0 -1
  956. package/dist/pine-core/p-BTsajr3h.system.js.map +0 -1
  957. package/dist/pine-core/p-BcCpTdwz.system.js.map +0 -1
  958. package/dist/pine-core/p-BhQhw0S3.system.js.map +0 -1
  959. package/dist/pine-core/p-Bkk7A0W9.system.js.map +0 -1
  960. package/dist/pine-core/p-BmOvsRx7.system.js.map +0 -1
  961. package/dist/pine-core/p-BrLs99ML.system.js.map +0 -1
  962. package/dist/pine-core/p-BtfqzsXS.system.js.map +0 -1
  963. package/dist/pine-core/p-BvJkwltO.system.js.map +0 -1
  964. package/dist/pine-core/p-BvV4-w8H.system.js.map +0 -1
  965. package/dist/pine-core/p-C0M1gTKv.js.map +0 -1
  966. package/dist/pine-core/p-C3TuSlI7.system.js.map +0 -1
  967. package/dist/pine-core/p-C3xDZBme.js.map +0 -1
  968. package/dist/pine-core/p-C5jXV4WJ.system.js.map +0 -1
  969. package/dist/pine-core/p-C5qxTQb1.system.js.map +0 -1
  970. package/dist/pine-core/p-C62JIZmE.system.js.map +0 -1
  971. package/dist/pine-core/p-C6yvFUy3.system.js.map +0 -1
  972. package/dist/pine-core/p-CCRLZO4N.system.js.map +0 -1
  973. package/dist/pine-core/p-CD-PjU09.system.js.map +0 -1
  974. package/dist/pine-core/p-CI-oL5TR.system.js.map +0 -1
  975. package/dist/pine-core/p-CIbXcB4O.system.js.map +0 -1
  976. package/dist/pine-core/p-CIe6-SsT.system.js.map +0 -1
  977. package/dist/pine-core/p-CRCxGYgw.system.js.map +0 -1
  978. package/dist/pine-core/p-CSVND2Gt.system.js.map +0 -1
  979. package/dist/pine-core/p-CUEE9EMe.system.js.map +0 -1
  980. package/dist/pine-core/p-CXImmjF5.system.js.map +0 -1
  981. package/dist/pine-core/p-C_g3FnvJ.system.js.map +0 -1
  982. package/dist/pine-core/p-CmNZDo8q.system.js.map +0 -1
  983. package/dist/pine-core/p-Cn98QWqb.system.js.map +0 -1
  984. package/dist/pine-core/p-Cqgvmo2o.system.js +0 -2
  985. package/dist/pine-core/p-Cqgvmo2o.system.js.map +0 -1
  986. package/dist/pine-core/p-Cu24FhMY.system.js.map +0 -1
  987. package/dist/pine-core/p-CwEjYXkp.system.js.map +0 -1
  988. package/dist/pine-core/p-D4ys0pep.js.map +0 -1
  989. package/dist/pine-core/p-DA3fC_kX.system.js.map +0 -1
  990. package/dist/pine-core/p-DDtwbwIl.js.map +0 -1
  991. package/dist/pine-core/p-DG_z5J3G.system.js.map +0 -1
  992. package/dist/pine-core/p-DL3JCnpO.system.js.map +0 -1
  993. package/dist/pine-core/p-DSlRwx2e.system.js.map +0 -1
  994. package/dist/pine-core/p-DVra397g.system.js.map +0 -1
  995. package/dist/pine-core/p-DYlgS5d7.system.js +0 -3
  996. package/dist/pine-core/p-DYlgS5d7.system.js.map +0 -1
  997. package/dist/pine-core/p-DeVgpUr5.system.js.map +0 -1
  998. package/dist/pine-core/p-DnUJodVd.js.map +0 -1
  999. package/dist/pine-core/p-DtgUQhjl.js.map +0 -1
  1000. package/dist/pine-core/p-Dxrjs-vy.system.js.map +0 -1
  1001. package/dist/pine-core/p-H7VDsgsr.system.js.map +0 -1
  1002. package/dist/pine-core/p-JwuGXyPc.system.js.map +0 -1
  1003. package/dist/pine-core/p-U1PewsWZ.system.js.map +0 -1
  1004. package/dist/pine-core/p-UILRZV99.system.js.map +0 -1
  1005. package/dist/pine-core/p-V-ORMWaS.system.js.map +0 -1
  1006. package/dist/pine-core/p-W7E5TRNL.system.js.map +0 -1
  1007. package/dist/pine-core/p-YWpyar7R.system.js.map +0 -1
  1008. package/dist/pine-core/p-Yfy85hdp.system.js.map +0 -1
  1009. package/dist/pine-core/p-ZrPaY2bh.system.js.map +0 -1
  1010. package/dist/pine-core/p-a30b386f.entry.js +0 -2
  1011. package/dist/pine-core/p-a30b386f.entry.js.map +0 -1
  1012. package/dist/pine-core/p-a5014407.system.entry.js +0 -2
  1013. package/dist/pine-core/p-a5014407.system.entry.js.map +0 -1
  1014. package/dist/pine-core/p-a695ff4c.system.entry.js +0 -2
  1015. package/dist/pine-core/p-a695ff4c.system.entry.js.map +0 -1
  1016. package/dist/pine-core/p-a8c49f8e.entry.js +0 -2
  1017. package/dist/pine-core/p-a8c49f8e.entry.js.map +0 -1
  1018. package/dist/pine-core/p-ae74a4b6.system.entry.js +0 -2
  1019. package/dist/pine-core/p-ae74a4b6.system.entry.js.map +0 -1
  1020. package/dist/pine-core/p-b1cde22a.entry.js +0 -2
  1021. package/dist/pine-core/p-b1cde22a.entry.js.map +0 -1
  1022. package/dist/pine-core/p-b9340fb1.system.entry.js +0 -2
  1023. package/dist/pine-core/p-b9340fb1.system.entry.js.map +0 -1
  1024. package/dist/pine-core/p-b9fcc3f8.system.entry.js +0 -2
  1025. package/dist/pine-core/p-b9fcc3f8.system.entry.js.map +0 -1
  1026. package/dist/pine-core/p-bIvjoz7p.system.js.map +0 -1
  1027. package/dist/pine-core/p-bc8f61d1.entry.js +0 -2
  1028. package/dist/pine-core/p-bc8f61d1.entry.js.map +0 -1
  1029. package/dist/pine-core/p-bea013d1.entry.js +0 -2
  1030. package/dist/pine-core/p-bea013d1.entry.js.map +0 -1
  1031. package/dist/pine-core/p-c026479a.system.entry.js +0 -2
  1032. package/dist/pine-core/p-c026479a.system.entry.js.map +0 -1
  1033. package/dist/pine-core/p-c9784d20.system.entry.js +0 -4
  1034. package/dist/pine-core/p-c9784d20.system.entry.js.map +0 -1
  1035. package/dist/pine-core/p-c9b06db1.system.entry.js +0 -2
  1036. package/dist/pine-core/p-c9b06db1.system.entry.js.map +0 -1
  1037. package/dist/pine-core/p-cab14421.entry.js +0 -2
  1038. package/dist/pine-core/p-cab14421.entry.js.map +0 -1
  1039. package/dist/pine-core/p-d5fcdcdd.entry.js +0 -2
  1040. package/dist/pine-core/p-d5fcdcdd.entry.js.map +0 -1
  1041. package/dist/pine-core/p-d86e20b5.system.entry.js +0 -2
  1042. package/dist/pine-core/p-d86e20b5.system.entry.js.map +0 -1
  1043. package/dist/pine-core/p-d9354ad3.system.entry.js +0 -2
  1044. package/dist/pine-core/p-d9354ad3.system.entry.js.map +0 -1
  1045. package/dist/pine-core/p-dab76f15.entry.js +0 -2
  1046. package/dist/pine-core/p-dab76f15.entry.js.map +0 -1
  1047. package/dist/pine-core/p-db16d1fe.entry.js +0 -2
  1048. package/dist/pine-core/p-db16d1fe.entry.js.map +0 -1
  1049. package/dist/pine-core/p-db63f83b.system.entry.js +0 -2
  1050. package/dist/pine-core/p-db63f83b.system.entry.js.map +0 -1
  1051. package/dist/pine-core/p-dd3ea74e.system.entry.js +0 -2
  1052. package/dist/pine-core/p-dd3ea74e.system.entry.js.map +0 -1
  1053. package/dist/pine-core/p-ddb48534.entry.js +0 -2
  1054. package/dist/pine-core/p-ddb48534.entry.js.map +0 -1
  1055. package/dist/pine-core/p-de9f43b6.entry.js +0 -2
  1056. package/dist/pine-core/p-de9f43b6.entry.js.map +0 -1
  1057. package/dist/pine-core/p-e25da259.entry.js +0 -2
  1058. package/dist/pine-core/p-e25da259.entry.js.map +0 -1
  1059. package/dist/pine-core/p-e288dc89.system.entry.js +0 -2
  1060. package/dist/pine-core/p-e288dc89.system.entry.js.map +0 -1
  1061. package/dist/pine-core/p-ea5c42b8.system.entry.js +0 -2
  1062. package/dist/pine-core/p-ea5c42b8.system.entry.js.map +0 -1
  1063. package/dist/pine-core/p-ed5d5be6.entry.js +0 -2
  1064. package/dist/pine-core/p-ed5d5be6.entry.js.map +0 -1
  1065. package/dist/pine-core/p-ef081f0f.entry.js +0 -2
  1066. package/dist/pine-core/p-ef081f0f.entry.js.map +0 -1
  1067. package/dist/pine-core/p-f09c5021.entry.js +0 -2
  1068. package/dist/pine-core/p-f09c5021.entry.js.map +0 -1
  1069. package/dist/pine-core/p-f201cf57.entry.js +0 -2
  1070. package/dist/pine-core/p-f201cf57.entry.js.map +0 -1
  1071. package/dist/pine-core/p-f20ab351.entry.js +0 -2
  1072. package/dist/pine-core/p-f20ab351.entry.js.map +0 -1
  1073. package/dist/pine-core/p-f2798581.entry.js +0 -2
  1074. package/dist/pine-core/p-f2798581.entry.js.map +0 -1
  1075. package/dist/pine-core/p-f2ca0cf8.entry.js +0 -2
  1076. package/dist/pine-core/p-f2ca0cf8.entry.js.map +0 -1
  1077. package/dist/pine-core/p-f77fad86.system.entry.js +0 -2
  1078. package/dist/pine-core/p-f77fad86.system.entry.js.map +0 -1
  1079. package/dist/pine-core/p-ff472f7c.system.entry.js +0 -2
  1080. package/dist/pine-core/p-ff472f7c.system.entry.js.map +0 -1
  1081. package/dist/pine-core/p-ff5b2c90.entry.js +0 -2
  1082. package/dist/pine-core/p-ff5b2c90.entry.js.map +0 -1
  1083. package/dist/pine-core/p-g4mFEadi.system.js.map +0 -1
  1084. package/dist/pine-core/p-kYMYDfJY.system.js.map +0 -1
  1085. package/dist/pine-core/p-tJa4KYNO.js.map +0 -1
  1086. package/dist/pine-core/p-vLxlRu4_.system.js.map +0 -1
  1087. package/dist/pine-core/p-ziMh7dwl.system.js.map +0 -1
  1088. package/dist/pine-core/pds-accordion.entry.esm.js.map +0 -1
  1089. package/dist/pine-core/pds-alert.entry.esm.js.map +0 -1
  1090. package/dist/pine-core/pds-avatar.entry.esm.js.map +0 -1
  1091. package/dist/pine-core/pds-box.entry.esm.js.map +0 -1
  1092. package/dist/pine-core/pds-button.entry.esm.js.map +0 -1
  1093. package/dist/pine-core/pds-checkbox.entry.esm.js.map +0 -1
  1094. package/dist/pine-core/pds-chip.entry.esm.js.map +0 -1
  1095. package/dist/pine-core/pds-combobox.entry.esm.js.map +0 -1
  1096. package/dist/pine-core/pds-container.entry.esm.js.map +0 -1
  1097. package/dist/pine-core/pds-copytext.entry.esm.js.map +0 -1
  1098. package/dist/pine-core/pds-divider.entry.esm.js.map +0 -1
  1099. package/dist/pine-core/pds-dropdown-menu-item.entry.esm.js.map +0 -1
  1100. package/dist/pine-core/pds-dropdown-menu-separator.entry.esm.js.map +0 -1
  1101. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +0 -1
  1102. package/dist/pine-core/pds-filter.entry.esm.js.map +0 -1
  1103. package/dist/pine-core/pds-filters.entry.esm.js.map +0 -1
  1104. package/dist/pine-core/pds-icon.entry.esm.js.map +0 -1
  1105. package/dist/pine-core/pds-image.entry.esm.js.map +0 -1
  1106. package/dist/pine-core/pds-input.entry.esm.js.map +0 -1
  1107. package/dist/pine-core/pds-link.entry.esm.js.map +0 -1
  1108. package/dist/pine-core/pds-loader.entry.esm.js.map +0 -1
  1109. package/dist/pine-core/pds-modal-content.entry.esm.js.map +0 -1
  1110. package/dist/pine-core/pds-modal-footer.entry.esm.js.map +0 -1
  1111. package/dist/pine-core/pds-modal-header.entry.esm.js.map +0 -1
  1112. package/dist/pine-core/pds-modal.entry.esm.js.map +0 -1
  1113. package/dist/pine-core/pds-multiselect.entry.esm.js.map +0 -1
  1114. package/dist/pine-core/pds-popover.entry.esm.js.map +0 -1
  1115. package/dist/pine-core/pds-progress.entry.esm.js.map +0 -1
  1116. package/dist/pine-core/pds-property.entry.esm.js.map +0 -1
  1117. package/dist/pine-core/pds-radio-group.entry.esm.js.map +0 -1
  1118. package/dist/pine-core/pds-radio.entry.esm.js.map +0 -1
  1119. package/dist/pine-core/pds-row.entry.esm.js.map +0 -1
  1120. package/dist/pine-core/pds-select.entry.esm.js.map +0 -1
  1121. package/dist/pine-core/pds-sortable-item.entry.esm.js.map +0 -1
  1122. package/dist/pine-core/pds-sortable.entry.esm.js.map +0 -1
  1123. package/dist/pine-core/pds-switch.entry.esm.js.map +0 -1
  1124. package/dist/pine-core/pds-tab.entry.esm.js.map +0 -1
  1125. package/dist/pine-core/pds-table-body.entry.esm.js.map +0 -1
  1126. package/dist/pine-core/pds-table-cell.entry.esm.js.map +0 -1
  1127. package/dist/pine-core/pds-table-head-cell.entry.esm.js.map +0 -1
  1128. package/dist/pine-core/pds-table-head.entry.esm.js.map +0 -1
  1129. package/dist/pine-core/pds-table-row.entry.esm.js.map +0 -1
  1130. package/dist/pine-core/pds-table.entry.esm.js.map +0 -1
  1131. package/dist/pine-core/pds-tabpanel.entry.esm.js.map +0 -1
  1132. package/dist/pine-core/pds-tabs.entry.esm.js.map +0 -1
  1133. package/dist/pine-core/pds-text.entry.esm.js.map +0 -1
  1134. package/dist/pine-core/pds-textarea.entry.esm.js.map +0 -1
  1135. package/dist/pine-core/pds-toast.entry.esm.js.map +0 -1
  1136. package/dist/pine-core/pds-tooltip.entry.esm.js.map +0 -1
  1137. package/dist/pine-core/pine-core.esm.js.map +0 -1
  1138. package/dist/scripts/vscode-custom-data-generator.js.map +0 -1
  1139. package/dist/vscode.html-data.json +0 -10551
@@ -1,1087 +1 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift, b as size } from './floating-ui.dom.js';
3
- import { d as debounceEvent } from './utils.js';
4
- import { i as isSpecTest, a as assignDescription, m as messageId } from './form.js';
5
- import { g as enlarge, h as danger } from './index2.js';
6
- import { d as defineCustomElement$7 } from './pds-box2.js';
7
- import { d as defineCustomElement$6 } from './pds-checkbox2.js';
8
- import { d as defineCustomElement$5 } from './pds-chip2.js';
9
- import { d as defineCustomElement$4 } from './pds-icon2.js';
10
- import { d as defineCustomElement$3 } from './pds-loader2.js';
11
- import { d as defineCustomElement$2 } from './pds-text2.js';
12
-
13
- const pdsMultiselectCss = ":host{display:block}:host([aria-disabled=true]) .pds-multiselect__trigger{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}:host([aria-disabled=true]) .pds-multiselect__icon{color:var(--pine-color-text-disabled)}.pds-multiselect{position:relative}.pds-multiselect__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-multiselect__wrapper{position:relative}.pds-multiselect__trigger{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__pill-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs)}.pds-multiselect__pill-list--inline{-ms-flex:1;flex:1;min-width:0}.pds-multiselect__pill-list--below{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-multiselect__pill-overflow{color:var(--pine-color-text-muted);font:var(--pine-typography-body-sm-medium);white-space:nowrap}.pds-multiselect__trigger--pill-inline{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger--pill-inline:focus-within:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--invalid:focus-within{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__pill-toggle{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border-width:0;cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-multiselect__pill-toggle:focus{outline:3px solid transparent}.pds-multiselect__trigger--disabled .pds-multiselect__pill-toggle{cursor:not-allowed;pointer-events:none}.pds-multiselect__panel{background:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__group-header{color:var(--pine-color-text-muted);display:block;font:var(--pine-typography-body-sm-medium);letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-sm) var(--pine-dimension-xs) var(--pine-dimension-2xs);text-transform:uppercase}.pds-multiselect__listbox>li:first-child>.pds-multiselect__group-header{-webkit-padding-before:var(--pine-dimension-xs);padding-block-start:var(--pine-dimension-xs)}.pds-multiselect__group-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-xs);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);-webkit-transition:background 0.15s;transition:background 0.15s}.pds-multiselect__option pds-checkbox{pointer-events:none;width:100%}.pds-multiselect__option:hover:not(.pds-multiselect__option--disabled),.pds-multiselect__option.pds-multiselect__option--highlighted:not(.pds-multiselect__option--disabled){background:var(--pine-color-background-muted)}.pds-multiselect__option.pds-multiselect__option--disabled{cursor:not-allowed;opacity:0.5}.pds-multiselect__option:focus-visible{outline:var(--pine-dimension-none)}.pds-multiselect__create-option{color:var(--pine-color-text-strong);width:100%}.pds-multiselect__create-option pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__empty,.pds-multiselect__loading{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-muted);display:-ms-flexbox;display:flex;font:var(--pine-typography-body);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-sm)}.pds-multiselect__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs)}.pds-multiselect__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error pds-icon{-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.visually-hidden{border:var(--pine-dimension-none);clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:var(--pine-dimension-none);position:absolute;white-space:nowrap;width:1px}";
14
-
15
- const PdsMultiselect$1 = /*@__PURE__*/ proxyCustomElement(class PdsMultiselect extends HTMLElement {
16
- constructor(registerHost) {
17
- super();
18
- if (registerHost !== false) {
19
- this.__registerHost();
20
- }
21
- this.__attachShadow();
22
- this.pdsMultiselectChange = createEvent(this, "pdsMultiselectChange", 7);
23
- this.pdsMultiselectSearch = createEvent(this, "pdsMultiselectSearch", 7);
24
- this.pdsMultiselectLoadOptions = createEvent(this, "pdsMultiselectLoadOptions", 7);
25
- this.pdsMultiselectCreate = createEvent(this, "pdsMultiselectCreate", 7);
26
- this.pdsMultiselectDismiss = createEvent(this, "pdsMultiselectDismiss", 7);
27
- /**
28
- * Placeholder text for the input field.
29
- */
30
- this.placeholder = 'Select...';
31
- /**
32
- * Placeholder text for the search input inside the dropdown panel.
33
- * @default 'Find...'
34
- */
35
- this.searchPlaceholder = 'Find...';
36
- /**
37
- * Whether to close the panel after an option is selected.
38
- * Defaults to `false` (panel stays open for multi-select).
39
- */
40
- this.closePanelOnSelect = false;
41
- /**
42
- * Array of selected option values.
43
- */
44
- this.value = [];
45
- /**
46
- * Determines whether or not the multiselect is disabled.
47
- */
48
- this.disabled = false;
49
- /**
50
- * HTTP method for async requests.
51
- */
52
- this.asyncMethod = 'GET';
53
- /**
54
- * Debounce delay in milliseconds for search/fetch.
55
- */
56
- this.debounce = 300;
57
- /**
58
- * Timeout in milliseconds for async fetch requests.
59
- */
60
- this.fetchTimeout = 30000;
61
- /**
62
- * Maximum height of the dropdown before scrolling.
63
- */
64
- this.maxHeight = '300px';
65
- /**
66
- * Width of the trigger button (and reference for dropdown positioning).
67
- */
68
- this.triggerWidth = '100%';
69
- /**
70
- * Minimum width of the dropdown panel.
71
- */
72
- this.minWidth = '250px';
73
- /**
74
- * Visually hides the label but keeps it accessible.
75
- */
76
- this.hideLabel = false;
77
- /**
78
- * Hides the selected items summary section in the dropdown panel.
79
- */
80
- this.hideSelectedItems = false;
81
- /**
82
- * Display mode for selected items outside the dropdown panel.
83
- * `'count'` shows "N item(s)" text in the trigger (default). `'pill'` renders
84
- * selected items as dismissible pds-chip tags.
85
- * @default 'count'
86
- */
87
- this.selectedDisplay = 'count';
88
- /**
89
- * Position of pill chips when `selectedDisplay` is `'pill'`.
90
- * `'inline'` places chips inside the trigger; `'below'` places chips in a
91
- * flex-wrap row directly below the trigger.
92
- * @default 'inline'
93
- */
94
- this.pillPosition = 'inline';
95
- /**
96
- * Maximum chips shown inline before collapsing to a "+N more" badge.
97
- * Only applies when `selectedDisplay='pill'` and `pillPosition='inline'`.
98
- * @default 3
99
- */
100
- this.maxInlinePills = 3;
101
- /**
102
- * If true, the multiselect is required.
103
- */
104
- this.required = false;
105
- /**
106
- * Whether the component is currently loading async options.
107
- */
108
- this.loading = false;
109
- /**
110
- * CSRF header name for authenticated requests. Defaults to `X-CSRF-Token`.
111
- */
112
- this.csrfHeaderName = 'X-CSRF-Token';
113
- // Internal state
114
- this.isOpen = false;
115
- this.searchQuery = '';
116
- this.highlightedIndex = -1;
117
- this.internalOptions = [];
118
- this.selectedItems = [];
119
- this.currentPage = 1;
120
- this.hasMore = false;
121
- this.creating = false;
122
- this.removalAnnouncement = '';
123
- // Flag to prevent focusout from closing during open transition
124
- this.isOpening = false;
125
- // Flag to suppress dismiss event when panel closes due to selection (not user dismissal)
126
- this.isClosingViaSelection = false;
127
- // Flag to track if initial async fetch has been triggered (prevents double fetch)
128
- this.initialAsyncFetchTriggered = false;
129
- // Flag to track if value changed during loading and needs resolution after fetch completes
130
- this.pendingUnresolvedFetch = false;
131
- this.handleTriggerClick = (e) => {
132
- if (this.disabled)
133
- return;
134
- // In inline-pill mode, ignore clicks that originated inside a pds-chip.
135
- // Chip close-button clicks are handled by handlePillRemove; chip body clicks should not toggle the panel.
136
- if (e && this.selectedDisplay === 'pill' && this.pillPosition === 'inline') {
137
- const fromChip = e.composedPath().some(el => { var _a; return ((_a = el.tagName) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'pds-chip'; });
138
- if (fromChip)
139
- return;
140
- }
141
- if (this.isOpen) {
142
- this.closeDropdown();
143
- }
144
- else {
145
- this.openDropdown();
146
- }
147
- };
148
- this.handleTriggerKeyDown = (e) => {
149
- // Ignore keydown events that bubbled from child elements (e.g. chip close buttons).
150
- // Only handle keys when the trigger itself is the event target.
151
- if (e.target !== this.triggerEl)
152
- return;
153
- switch (e.key) {
154
- case 'ArrowDown':
155
- case 'ArrowUp':
156
- case 'Enter':
157
- case ' ':
158
- e.preventDefault();
159
- if (!this.isOpen) {
160
- this.openDropdown();
161
- }
162
- break;
163
- }
164
- };
165
- this.handleSearchInputChange = (e) => {
166
- const target = e.target;
167
- this.searchQuery = target.value;
168
- this.highlightedIndex = -1;
169
- // Emit search event for consumer-managed async
170
- this.pdsMultiselectSearch.emit({ query: this.searchQuery });
171
- // Fetch from async URL if configured
172
- if (this.asyncUrl) {
173
- this.debouncedFetchAsyncOptions(this.searchQuery, 1);
174
- }
175
- };
176
- this.handleSearchInputKeyDown = (e) => {
177
- var _a, _b, _c;
178
- const filteredOptions = this.getFilteredOptions();
179
- switch (e.key) {
180
- case 'ArrowDown': {
181
- e.preventDefault();
182
- let nextIndex = this.highlightedIndex + 1;
183
- while (nextIndex < filteredOptions.length && ((_a = filteredOptions[nextIndex]) === null || _a === void 0 ? void 0 : _a.disabled)) {
184
- nextIndex++;
185
- }
186
- if (nextIndex < filteredOptions.length) {
187
- this.highlightedIndex = nextIndex;
188
- this.scrollOptionIntoView();
189
- }
190
- break;
191
- }
192
- case 'ArrowUp': {
193
- e.preventDefault();
194
- // Clamp to 0 so ArrowUp from uninitialised state (-1) attempts the first option;
195
- // stays at -1 if that option is disabled.
196
- let prevIndex = Math.max(this.highlightedIndex - 1, 0);
197
- while (prevIndex > 0 && ((_b = filteredOptions[prevIndex]) === null || _b === void 0 ? void 0 : _b.disabled)) {
198
- prevIndex--;
199
- }
200
- if (!((_c = filteredOptions[prevIndex]) === null || _c === void 0 ? void 0 : _c.disabled)) {
201
- this.highlightedIndex = prevIndex;
202
- this.scrollOptionIntoView();
203
- }
204
- break;
205
- }
206
- case 'Enter':
207
- e.preventDefault();
208
- if (this.highlightedIndex >= 0) {
209
- const option = filteredOptions[this.highlightedIndex];
210
- if (option) {
211
- this.selectOption(option);
212
- }
213
- }
214
- break;
215
- // Escape is handled by the global @Listen('keydown') handler
216
- case 'Tab':
217
- this.closeDropdown();
218
- break;
219
- }
220
- };
221
- this.handleContainerFocusOut = () => {
222
- // Use setTimeout to delay the check - this allows click events and focus transitions to complete
223
- // before we decide to close the dropdown
224
- setTimeout(() => {
225
- var _a;
226
- // Don't close if we're in the middle of opening, already closed,
227
- // or closing due to a selection (not a user dismissal)
228
- if (!this.isOpen || this.isOpening || this.isClosingViaSelection)
229
- return;
230
- const activeElement = document.activeElement;
231
- // Check if focus is within our component's shadow root
232
- const isInShadowRoot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(activeElement);
233
- // Also check if focus is on the host element itself
234
- const isOnHost = activeElement === this.el;
235
- if (!isInShadowRoot && !isOnHost) {
236
- this.pdsMultiselectDismiss.emit();
237
- this.closeDropdown();
238
- }
239
- }, 0);
240
- };
241
- this.handleOptionMouseDown = (option) => (e) => {
242
- e.preventDefault(); // Prevent focus change
243
- this.toggleOption(option);
244
- };
245
- this.handleOptionMouseEnter = (index, option) => () => {
246
- if (option.disabled)
247
- return;
248
- this.highlightedIndex = index;
249
- };
250
- this.handleScroll = (e) => {
251
- if (!this.asyncUrl || !this.hasMore || this.loading)
252
- return;
253
- const target = e.target;
254
- const scrollBottom = target.scrollHeight - target.scrollTop - target.clientHeight;
255
- // Load more when near bottom (within 50px)
256
- if (scrollBottom < 50) {
257
- this.pdsMultiselectLoadOptions.emit({
258
- query: this.searchQuery,
259
- page: this.currentPage + 1,
260
- });
261
- this.debouncedFetchAsyncOptions(this.searchQuery, this.currentPage + 1);
262
- }
263
- };
264
- this.handlePillRemove = (item) => () => {
265
- var _a, _b;
266
- if (this.disabled)
267
- return;
268
- const optionId = String(item.id);
269
- this.value = this.value.filter(v => v !== optionId);
270
- this.syncSelectedItems();
271
- this.pdsMultiselectChange.emit({ values: this.value, items: this.selectedItems });
272
- // Clear first so screen readers re-announce even when the same item is removed twice
273
- this.removalAnnouncement = '';
274
- queueMicrotask(() => { this.removalAnnouncement = `${item.text} removed`; });
275
- this.isClosingViaSelection = true;
276
- if (this.isOpen) {
277
- (_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
278
- }
279
- else {
280
- (_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.focus();
281
- }
282
- setTimeout(() => { this.isClosingViaSelection = false; }, 0);
283
- };
284
- }
285
- connectedCallback() {
286
- // Initialize ElementInternals for form association (only once per element instance)
287
- if (this.el.attachInternals && !this.internals) {
288
- this.internals = this.el.attachInternals();
289
- }
290
- }
291
- componentWillLoad() {
292
- this.originalSearchEmitter = this.pdsMultiselectSearch;
293
- this.syncSelectedItems();
294
- }
295
- componentDidLoad() {
296
- this.setupDebounce();
297
- this.setupMutationObserver();
298
- this.setupSlotChangeListener();
299
- this.updateFormValue();
300
- // Ensure preselected values sync after DOM is fully ready
301
- // This handles cases where slot content loads after initial render (e.g., in docs/MDX)
302
- requestAnimationFrame(() => {
303
- this.updateOptionsFromSlot();
304
- this.syncSelectedItems();
305
- });
306
- // If we have preselected values and asyncUrl, fetch options to resolve them
307
- // This ensures the trigger shows "X items" instead of placeholder on initial render
308
- if (this.asyncUrl && this.ensureValueArray().length > 0) {
309
- this.initialAsyncFetchTriggered = true;
310
- this.fetchOptions('', 1);
311
- }
312
- }
313
- setupSlotChangeListener() {
314
- var _a;
315
- const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot:not([name])');
316
- if (slot) {
317
- slot.addEventListener('slotchange', () => {
318
- this.updateOptionsFromSlot();
319
- this.syncSelectedItems();
320
- });
321
- // Also call it immediately in case content is already slotted
322
- this.updateOptionsFromSlot();
323
- }
324
- }
325
- disconnectedCallback() {
326
- var _a, _b;
327
- (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
328
- (_b = this.cleanupAutoUpdate) === null || _b === void 0 ? void 0 : _b.call(this);
329
- this.clearAsyncFetchState();
330
- }
331
- setupDebounce() {
332
- const { pdsMultiselectSearch, debounce, originalSearchEmitter } = this;
333
- this.pdsMultiselectSearch = debounce === undefined
334
- ? originalSearchEmitter !== null && originalSearchEmitter !== void 0 ? originalSearchEmitter : pdsMultiselectSearch
335
- : debounceEvent(pdsMultiselectSearch, debounce);
336
- }
337
- valueChanged(newValue) {
338
- // Handle JSON string values (from HTML attributes)
339
- if (typeof newValue === 'string') {
340
- try {
341
- const parsed = JSON.parse(newValue);
342
- if (Array.isArray(parsed)) {
343
- this.value = parsed;
344
- return; // The assignment will trigger this watcher again with the array
345
- }
346
- }
347
- catch (_a) {
348
- // Not valid JSON, treat as single value
349
- this.value = newValue ? [newValue] : [];
350
- return;
351
- }
352
- }
353
- this.syncSelectedItems();
354
- this.updateFormValue();
355
- // If using asyncUrl and some values couldn't be resolved, fetch options
356
- // This handles programmatic value changes where the options aren't loaded yet
357
- if (this.asyncUrl) {
358
- const valueArray = this.ensureValueArray();
359
- const hasUnresolvedValues = valueArray.length > 0 && this.selectedItems.length < valueArray.length;
360
- if (hasUnresolvedValues) {
361
- if (this.loading) {
362
- // Mark that we need to re-check after current fetch completes
363
- this.pendingUnresolvedFetch = true;
364
- }
365
- else {
366
- this.fetchOptions('', 1);
367
- }
368
- }
369
- }
370
- }
371
- optionsChanged() {
372
- if (this.options) {
373
- this.internalOptions = [...this.options];
374
- }
375
- }
376
- internalOptionsChanged() {
377
- // Re-sync selected items when options become available
378
- // This handles the case where value is set before options are loaded (e.g., from slot)
379
- this.syncSelectedItems();
380
- }
381
- /**
382
- * Sets focus on the trigger button.
383
- */
384
- async setFocus() {
385
- var _a;
386
- (_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.focus();
387
- }
388
- /**
389
- * Clears all selected values and resets the component.
390
- */
391
- async clear() {
392
- const hadValues = this.value.length > 0 || this.searchQuery !== '';
393
- this.value = [];
394
- this.searchQuery = '';
395
- this.syncSelectedItems();
396
- this.updateFormValue();
397
- if (hadValues) {
398
- this.pdsMultiselectChange.emit({ values: [], items: [] });
399
- }
400
- }
401
- /**
402
- * Handle global keyboard events for accessibility.
403
- * Closes dropdown on Escape key press regardless of focus location.
404
- */
405
- handleWindowKeyDown(event) {
406
- var _a;
407
- if (!this.isOpen)
408
- return;
409
- if (event.key === 'Escape') {
410
- event.preventDefault();
411
- this.pdsMultiselectDismiss.emit();
412
- this.closeDropdown();
413
- (_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.focus();
414
- }
415
- }
416
- setupMutationObserver() {
417
- this.observer = new MutationObserver(() => {
418
- this.updateOptionsFromSlot();
419
- });
420
- this.observer.observe(this.el, {
421
- childList: true,
422
- subtree: true,
423
- });
424
- }
425
- updateOptionsFromSlot() {
426
- var _a;
427
- const slot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot:not([name])');
428
- if (!slot)
429
- return;
430
- const options = [];
431
- slot.assignedElements({ flatten: true }).forEach(el => {
432
- var _a;
433
- if (el.tagName === 'OPTGROUP') {
434
- const optgroup = el;
435
- const groupLabel = optgroup.label;
436
- const groupDisabled = optgroup.disabled;
437
- optgroup.querySelectorAll('option').forEach((opt) => {
438
- var _a;
439
- const option = {
440
- id: opt.value,
441
- text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
442
- disabled: opt.disabled || groupDisabled || undefined,
443
- };
444
- if (groupLabel) {
445
- option.group = groupLabel;
446
- }
447
- options.push(option);
448
- });
449
- }
450
- else if (el.tagName === 'OPTION') {
451
- const opt = el;
452
- options.push({
453
- id: opt.value,
454
- text: ((_a = opt.textContent) === null || _a === void 0 ? void 0 : _a.trim()) || opt.value,
455
- disabled: opt.disabled || undefined,
456
- });
457
- }
458
- });
459
- // Only update if we actually found options AND we're not using async/external options
460
- // Don't clear internalOptions if slot returns empty (might be mid-DOM-update)
461
- if (options.length > 0 && !this.asyncUrl && !this.options) {
462
- this.internalOptions = options;
463
- }
464
- }
465
- clearAsyncFetchState() {
466
- var _a;
467
- if (this.fetchDebounceTimer !== undefined) {
468
- window.clearTimeout(this.fetchDebounceTimer);
469
- this.fetchDebounceTimer = undefined;
470
- }
471
- if (this.fetchTimeoutTimer !== undefined) {
472
- window.clearTimeout(this.fetchTimeoutTimer);
473
- this.fetchTimeoutTimer = undefined;
474
- }
475
- (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
476
- this.abortController = undefined;
477
- }
478
- debouncedFetchAsyncOptions(query, page = 1) {
479
- var _a;
480
- if (!this.asyncUrl)
481
- return;
482
- if (this.fetchDebounceTimer !== undefined) {
483
- window.clearTimeout(this.fetchDebounceTimer);
484
- }
485
- const delay = Math.max(0, (_a = this.debounce) !== null && _a !== void 0 ? _a : 0);
486
- this.fetchDebounceTimer = window.setTimeout(() => {
487
- this.fetchDebounceTimer = undefined;
488
- this.fetchOptions(query, page);
489
- }, delay);
490
- }
491
- syncSelectedItems() {
492
- // Ensure value is an array (may be string from HTML attribute)
493
- const valueArray = this.ensureValueArray();
494
- const allOptions = this.getAllOptions();
495
- // Map values to options, preserving existing selectedItems for values not yet in options
496
- const newSelectedItems = [];
497
- const existingItemsMap = new Map(this.selectedItems.map(item => [String(item.id), item]));
498
- valueArray.forEach(val => {
499
- // First try to find in available options
500
- const option = allOptions.find(opt => String(opt.id) === String(val));
501
- if (option) {
502
- newSelectedItems.push(option);
503
- }
504
- else if (existingItemsMap.has(String(val))) {
505
- // If not in options but exists in current selectedItems, preserve it
506
- // This handles the case where async data hasn't loaded yet or newly created items
507
- newSelectedItems.push(existingItemsMap.get(String(val)));
508
- }
509
- // Note: We don't create placeholders for values without matching options.
510
- // This ensures selectedItems remains empty until options are actually loaded,
511
- // which matches the expected behavior for preselected values.
512
- });
513
- this.selectedItems = newSelectedItems;
514
- }
515
- ensureValueArray() {
516
- // Handle JSON string values passed via HTML attribute
517
- if (typeof this.value === 'string') {
518
- try {
519
- const parsed = JSON.parse(this.value);
520
- if (Array.isArray(parsed)) {
521
- this.value = parsed;
522
- return parsed;
523
- }
524
- }
525
- catch (_a) {
526
- // Not valid JSON, treat as single value
527
- const singleValue = this.value;
528
- this.value = singleValue ? [singleValue] : [];
529
- return this.value;
530
- }
531
- }
532
- return Array.isArray(this.value) ? this.value : [];
533
- }
534
- getAllOptions() {
535
- return this.options || this.internalOptions;
536
- }
537
- getFilteredOptions() {
538
- const allOptions = this.getAllOptions();
539
- const query = this.searchQuery.toLowerCase();
540
- const filtered = allOptions.filter(opt => {
541
- // Filter by search query only - don't filter out selected items
542
- if (query) {
543
- return opt.text.toLowerCase().includes(query);
544
- }
545
- return true;
546
- });
547
- // Add create option if enabled and no matches found
548
- if (this.createUrl && this.searchQuery.trim() && filtered.length === 0) {
549
- return [{
550
- id: '__create__',
551
- text: this.searchQuery.trim(),
552
- isCreateOption: true,
553
- }];
554
- }
555
- return filtered;
556
- }
557
- updateFormValue() {
558
- var _a;
559
- if (isSpecTest())
560
- return;
561
- if ((_a = this.internals) === null || _a === void 0 ? void 0 : _a.setFormValue) {
562
- // Ensure value is an array before iterating
563
- const valueArray = this.ensureValueArray();
564
- // Submit as multiple values with same name (native select multiple behavior)
565
- const formData = new FormData();
566
- valueArray.forEach(val => {
567
- if (this.name) {
568
- formData.append(this.name, val);
569
- }
570
- });
571
- this.internals.setFormValue(formData);
572
- // Update validity state for required validation
573
- if (this.required && valueArray.length === 0) {
574
- this.internals.setValidity({ valueMissing: true }, 'Please select at least one option.', this.triggerEl);
575
- }
576
- else {
577
- this.internals.setValidity({});
578
- }
579
- }
580
- }
581
- getCsrfToken() {
582
- // Use provided token if available
583
- if (this.csrfToken) {
584
- return this.csrfToken;
585
- }
586
- // Try to read from meta tag
587
- const metaTag = document.querySelector('meta[name="csrf-token"]');
588
- return (metaTag === null || metaTag === void 0 ? void 0 : metaTag.content) || null;
589
- }
590
- async fetchOptions(query, page = 1) {
591
- var _a;
592
- if (!this.asyncUrl)
593
- return;
594
- // Abort any pending request and clear existing timeout
595
- (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
596
- if (this.fetchTimeoutTimer !== undefined) {
597
- window.clearTimeout(this.fetchTimeoutTimer);
598
- this.fetchTimeoutTimer = undefined;
599
- }
600
- this.abortController = new AbortController();
601
- this.loading = true;
602
- // Set up timeout for fetch request
603
- this.fetchTimeoutTimer = window.setTimeout(() => {
604
- var _a;
605
- (_a = this.abortController) === null || _a === void 0 ? void 0 : _a.abort();
606
- this.fetchTimeoutTimer = undefined;
607
- }, this.fetchTimeout);
608
- try {
609
- // Guard against malformed asyncUrl
610
- let url;
611
- try {
612
- url = new URL(this.asyncUrl, window.location.origin);
613
- }
614
- catch (urlError) {
615
- throw new TypeError(`Invalid asyncUrl: ${this.asyncUrl}`);
616
- }
617
- if (this.asyncMethod === 'GET') {
618
- url.searchParams.set('search', query);
619
- url.searchParams.set('page', String(page));
620
- }
621
- const csrfToken = this.getCsrfToken();
622
- const headers = {
623
- 'Content-Type': 'application/json',
624
- 'Accept': 'application/json',
625
- };
626
- if (csrfToken) {
627
- const headerName = this.csrfHeaderName || 'X-CSRF-Token';
628
- headers[headerName] = csrfToken;
629
- }
630
- const response = await fetch(url.toString(), Object.assign({ method: this.asyncMethod, signal: this.abortController.signal, headers }, (this.asyncMethod === 'POST' && {
631
- body: JSON.stringify({ search: query, page }),
632
- })));
633
- // Clear timeout on successful response
634
- if (this.fetchTimeoutTimer !== undefined) {
635
- window.clearTimeout(this.fetchTimeoutTimer);
636
- this.fetchTimeoutTimer = undefined;
637
- }
638
- if (!response.ok)
639
- throw new Error('Failed to fetch options');
640
- const data = await response.json();
641
- const formattedResults = data.results.map(item => {
642
- // If formatResult is provided, use it
643
- if (this.formatResult) {
644
- return this.formatResult(item);
645
- }
646
- // Defensive check: ensure item is an object before spreading
647
- if (typeof item === 'object' && item !== null) {
648
- return Object.assign({ id: item.id, text: item.text }, item);
649
- }
650
- // Handle primitives by converting to safe shape
651
- return {
652
- id: String(item),
653
- text: String(item),
654
- };
655
- });
656
- if (page === 1) {
657
- this.internalOptions = formattedResults;
658
- }
659
- else {
660
- this.internalOptions = [...this.internalOptions, ...formattedResults];
661
- }
662
- this.hasMore = data.totalCount ? this.internalOptions.length < data.totalCount : false;
663
- this.currentPage = page;
664
- }
665
- catch (error) {
666
- // Clear timeout on error
667
- if (this.fetchTimeoutTimer !== undefined) {
668
- window.clearTimeout(this.fetchTimeoutTimer);
669
- this.fetchTimeoutTimer = undefined;
670
- }
671
- if (error.name !== 'AbortError') {
672
- console.error('PdsMultiselect: Failed to fetch options', error);
673
- }
674
- }
675
- finally {
676
- this.loading = false;
677
- // Check if value changed during loading and still has unresolved values
678
- if (this.pendingUnresolvedFetch) {
679
- this.pendingUnresolvedFetch = false;
680
- const valueArray = this.ensureValueArray();
681
- const hasUnresolvedValues = valueArray.length > 0 && this.selectedItems.length < valueArray.length;
682
- if (hasUnresolvedValues) {
683
- this.fetchOptions('', 1);
684
- }
685
- }
686
- }
687
- }
688
- async createOption(query) {
689
- if (!this.createUrl || !query.trim())
690
- return;
691
- // Reentrancy guard: prevent duplicate POSTs if creation is already in-flight
692
- if (this.creating)
693
- return;
694
- this.creating = true;
695
- try {
696
- const url = new URL(this.createUrl, window.location.origin);
697
- const csrfToken = this.getCsrfToken();
698
- const headers = {
699
- 'Content-Type': 'application/json',
700
- 'Accept': 'application/json',
701
- };
702
- if (csrfToken) {
703
- const headerName = this.csrfHeaderName || 'X-CSRF-Token';
704
- headers[headerName] = csrfToken;
705
- }
706
- const response = await fetch(url.toString(), {
707
- method: 'POST',
708
- headers,
709
- body: JSON.stringify({ text: query.trim() }),
710
- });
711
- if (!response.ok)
712
- throw new Error('Failed to create option');
713
- const data = await response.json();
714
- const newOption = Object.assign({ id: data.id, text: data.text }, data);
715
- // Add to internal options first
716
- this.internalOptions = [...this.internalOptions, newOption];
717
- // Select the new option
718
- this.value = [...this.value, String(newOption.id)];
719
- // Sync selected items to update display with new option
720
- this.syncSelectedItems();
721
- // Emit create event
722
- this.pdsMultiselectCreate.emit({
723
- query: query.trim(),
724
- newOption,
725
- });
726
- // Emit change event with synced items
727
- this.pdsMultiselectChange.emit({
728
- values: this.value,
729
- items: this.selectedItems,
730
- });
731
- // Clear search and keep dropdown open
732
- this.searchQuery = '';
733
- this.highlightedIndex = -1;
734
- // Focus back on search input
735
- requestAnimationFrame(() => {
736
- var _a;
737
- (_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
738
- });
739
- }
740
- catch (error) {
741
- console.error('PdsMultiselect: Failed to create option', error);
742
- }
743
- finally {
744
- this.creating = false;
745
- }
746
- }
747
- openDropdown() {
748
- if (this.disabled)
749
- return;
750
- this.isOpening = true;
751
- this.isOpen = true;
752
- this.highlightedIndex = -1;
753
- // Trigger initial fetch if async (skip if already fetching from componentDidLoad)
754
- if (this.asyncUrl && this.internalOptions.length === 0 && !this.initialAsyncFetchTriggered) {
755
- this.debouncedFetchAsyncOptions(this.searchQuery, 1);
756
- }
757
- // Reset the flag so subsequent opens can fetch if needed
758
- this.initialAsyncFetchTriggered = false;
759
- requestAnimationFrame(() => {
760
- var _a;
761
- this.positionDropdown();
762
- // Focus the search input after the panel is positioned
763
- (_a = this.searchInputEl) === null || _a === void 0 ? void 0 : _a.focus();
764
- // Clear the opening flag after focus has moved
765
- setTimeout(() => {
766
- this.isOpening = false;
767
- }, 50);
768
- });
769
- }
770
- closeDropdown() {
771
- this.isOpen = false;
772
- this.highlightedIndex = -1;
773
- this.searchQuery = '';
774
- // Reset the selection-close guard after the focusout handler's setTimeout has resolved
775
- if (this.isClosingViaSelection) {
776
- setTimeout(() => {
777
- this.isClosingViaSelection = false;
778
- }, 0);
779
- }
780
- // Clean up auto-update
781
- if (this.cleanupAutoUpdate) {
782
- this.cleanupAutoUpdate();
783
- this.cleanupAutoUpdate = undefined;
784
- }
785
- }
786
- positionDropdown() {
787
- if (!this.containerEl || !this.panelEl)
788
- return;
789
- // In inline pill mode, triggerEl is the small chevron button — use the full-width
790
- // wrapper div as the Floating UI reference so the panel aligns with the whole trigger.
791
- const referenceEl = this.pillInlineTriggerEl || this.triggerEl || this.containerEl;
792
- const { minWidth, panelWidth } = this;
793
- const updatePosition = () => {
794
- computePosition(referenceEl, this.panelEl, {
795
- placement: 'bottom-start',
796
- strategy: 'absolute',
797
- middleware: [
798
- offset(12),
799
- flip(),
800
- shift({ padding: 8 }),
801
- size({
802
- apply: ({ rects, elements }) => {
803
- Object.assign(elements.floating.style, {
804
- width: panelWidth !== null && panelWidth !== void 0 ? panelWidth : `${rects.reference.width}px`,
805
- minWidth,
806
- });
807
- },
808
- }),
809
- ],
810
- }).then(({ x, y }) => {
811
- if (this.panelEl) {
812
- this.panelEl.style.left = `${x}px`;
813
- this.panelEl.style.top = `${y}px`;
814
- }
815
- });
816
- };
817
- // Initial position
818
- updatePosition();
819
- // Set up auto-update for window resize and scroll
820
- const cleanupAutoUpdate = autoUpdate(referenceEl, this.panelEl, updatePosition);
821
- this.cleanupAutoUpdate = () => {
822
- cleanupAutoUpdate();
823
- this.clearAsyncFetchState();
824
- };
825
- }
826
- scrollOptionIntoView() {
827
- requestAnimationFrame(() => {
828
- var _a;
829
- const highlighted = (_a = this.listboxEl) === null || _a === void 0 ? void 0 : _a.querySelector(`[data-index="${this.highlightedIndex}"]`);
830
- highlighted === null || highlighted === void 0 ? void 0 : highlighted.scrollIntoView({ block: 'nearest', behavior: 'smooth' });
831
- });
832
- }
833
- toggleOption(option) {
834
- var _a, _b;
835
- if (option.disabled)
836
- return;
837
- // Handle create option
838
- if (option.isCreateOption) {
839
- // Prevent multiple create calls while one is in-flight
840
- if (!this.creating) {
841
- this.createOption(this.searchQuery);
842
- }
843
- return;
844
- }
845
- const optionId = String(option.id);
846
- const isSelected = this.value.includes(optionId);
847
- if (isSelected) {
848
- // Remove from selection
849
- this.value = this.value.filter(v => v !== optionId);
850
- }
851
- else {
852
- // Add to selection
853
- if (this.maxSelections && this.value.length >= this.maxSelections) {
854
- return;
855
- }
856
- this.value = [...this.value, optionId];
857
- }
858
- // Sync selected items to ensure no duplicates and accurate state
859
- this.syncSelectedItems();
860
- // Emit change event with synced items
861
- this.pdsMultiselectChange.emit({
862
- values: this.value,
863
- items: this.selectedItems,
864
- });
865
- if (this.closePanelOnSelect) {
866
- this.isClosingViaSelection = true;
867
- this.closeDropdown();
868
- (_a = this.triggerEl) === null || _a === void 0 ? void 0 : _a.focus();
869
- }
870
- else {
871
- // Keep focus on search input, don't close dropdown
872
- (_b = this.searchInputEl) === null || _b === void 0 ? void 0 : _b.focus();
873
- }
874
- }
875
- selectOption(option) {
876
- // For keyboard navigation - toggle the option
877
- this.toggleOption(option);
878
- }
879
- getGroupedRenderItems(filteredOptions) {
880
- const items = [];
881
- let currentGroup = null;
882
- filteredOptions.forEach((option, index) => {
883
- const group = option.group;
884
- if (group !== undefined) {
885
- if (!currentGroup || currentGroup.group !== group) {
886
- currentGroup = { type: 'group', group, options: [] };
887
- items.push(currentGroup);
888
- }
889
- currentGroup.options.push({ option, index });
890
- }
891
- else {
892
- currentGroup = null;
893
- items.push({ type: 'option', option, index });
894
- }
895
- });
896
- return items;
897
- }
898
- renderOption(option, index, valueArray) {
899
- const isSelected = valueArray.includes(String(option.id));
900
- const isCreateOption = option.isCreateOption;
901
- const isDisabled = option.disabled;
902
- const isHighlighted = index === this.highlightedIndex && !isCreateOption;
903
- const optionId = `${this.componentId}-option-${index}`;
904
- const isCreateDisabled = isCreateOption && this.creating;
905
- return (h("li", { key: String(option.id), id: optionId, class: {
906
- 'pds-multiselect__option': true,
907
- 'pds-multiselect__option--highlighted': isHighlighted,
908
- 'pds-multiselect__option--selected': isSelected,
909
- 'pds-multiselect__option--create': isCreateOption,
910
- 'pds-multiselect__option--disabled': isDisabled || isCreateDisabled,
911
- }, role: "option", "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": isDisabled || isCreateDisabled ? 'true' : undefined, "aria-label": isCreateOption ? `Create new tag: ${option.text}` : undefined, "data-index": index, onMouseDown: this.handleOptionMouseDown(option), onMouseEnter: this.handleOptionMouseEnter(index, option) }, isCreateOption ? (h("pds-box", { class: "pds-multiselect__create-option", "align-items": "center", gap: "xs" }, h("pds-icon", { name: "add", size: "small" }), h("pds-text", null, "Add \"", option.text, "\""))) : (h("pds-checkbox", { componentId: `${this.componentId}-checkbox-${index}`, checked: isSelected, label: option.text, disabled: isDisabled, style: { pointerEvents: 'none' } }))));
912
- }
913
- renderSelectedItemsList() {
914
- if (this.hideSelectedItems || this.selectedItems.length === 0)
915
- return null;
916
- return (h("div", { class: "pds-multiselect__selected-section" }, h("ul", { class: "pds-multiselect__selected-list", role: "list" }, this.selectedItems.map(item => (h("li", { key: String(item.id), class: "pds-multiselect__selected-item" }, item.text))))));
917
- }
918
- renderDropdown() {
919
- if (!this.isOpen)
920
- return null;
921
- const filteredOptions = this.getFilteredOptions();
922
- const valueArray = this.ensureValueArray();
923
- const hasSlottedEmpty = !!this.el.querySelector('[slot="empty"]');
924
- const hasSlottedLoading = !!this.el.querySelector('[slot="loading"]');
925
- return (h("div", { class: "pds-multiselect__panel", ref: el => (this.panelEl = el), style: { minWidth: this.minWidth } }, h("div", { class: "pds-multiselect__search" }, h("pds-icon", { name: "search", size: "small" }), h("input", { ref: el => (this.searchInputEl = el), type: "text", class: "pds-multiselect__search-input", placeholder: this.searchPlaceholder, value: this.searchQuery, "aria-label": "Search options", "aria-controls": `${this.componentId}-listbox`, "aria-activedescendant": this.highlightedIndex >= 0 ? `${this.componentId}-option-${this.highlightedIndex}` : undefined, role: "combobox", "aria-haspopup": "listbox", "aria-expanded": "true", "aria-autocomplete": "list", autocomplete: "off", onInput: this.handleSearchInputChange, onKeyDown: this.handleSearchInputKeyDown })), this.renderSelectedItemsList(), h("ul", { class: "pds-multiselect__listbox", role: "listbox", "aria-multiselectable": "true", "aria-label": this.label || 'Options', id: `${this.componentId}-listbox`, ref: el => (this.listboxEl = el), style: { maxHeight: this.maxHeight }, onScroll: this.handleScroll }, this.loading && (h("li", { class: "pds-multiselect__loading", role: "presentation" }, hasSlottedLoading ? (h("slot", { name: "loading" })) : (h("pds-loader", { size: "small" })))), !this.loading && filteredOptions.length === 0 && (h("li", { class: "pds-multiselect__empty", role: "presentation" }, hasSlottedEmpty ? (h("slot", { name: "empty" })) : (h("span", null, "No options found")))), this.getGroupedRenderItems(filteredOptions).map((item, itemIndex) => {
926
- if (item.type === 'group') {
927
- return (h("li", { key: `group-${itemIndex}`, role: "group", "aria-label": item.group, class: "pds-multiselect__group" }, h("span", { class: "pds-multiselect__group-header", "aria-hidden": "true" }, item.group), h("ul", { class: "pds-multiselect__group-list", role: "presentation" }, item.options.map(({ option, index }) => this.renderOption(option, index, valueArray)))));
928
- }
929
- return this.renderOption(item.option, item.index, valueArray);
930
- }), this.hasMore && !this.loading && (h("li", { class: "pds-multiselect__load-more", role: "presentation" }, h("pds-loader", { size: "small" }))))));
931
- }
932
- renderInlinePills() {
933
- const hasSelections = this.selectedItems.length > 0;
934
- if (!hasSelections) {
935
- return (h("span", { class: "pds-multiselect__trigger-text pds-multiselect__trigger-text--placeholder" }, this.placeholder || 'Select...'));
936
- }
937
- const variant = this.disabled ? 'text' : 'tag';
938
- const visibleItems = this.selectedItems.slice(0, Math.max(1, this.maxInlinePills));
939
- const overflowCount = this.selectedItems.length - visibleItems.length;
940
- return (h("div", { class: "pds-multiselect__pill-list pds-multiselect__pill-list--inline", "aria-label": "Selected items" }, visibleItems.map(item => (h("pds-chip", { key: String(item.id), "component-id": `${this.componentId}-pill-${item.id}`, variant: variant, size: "sm", sentiment: "neutral", onPdsTagCloseClick: this.handlePillRemove(item) }, item.text))), overflowCount > 0 && (h("span", { class: "pds-multiselect__pill-overflow" }, "+", overflowCount))));
941
- }
942
- renderBelowPills() {
943
- if (this.selectedItems.length === 0)
944
- return null;
945
- const variant = this.disabled ? 'text' : 'tag';
946
- return (h("div", { class: "pds-multiselect__pill-list pds-multiselect__pill-list--below", "aria-label": "Selected items" }, this.selectedItems.map(item => (h("pds-chip", { key: String(item.id), "component-id": `${this.componentId}-pill-${item.id}`, variant: variant, size: "md", sentiment: "neutral", onPdsTagCloseClick: this.handlePillRemove(item) }, item.text)))));
947
- }
948
- getTriggerText() {
949
- const count = this.selectedItems.length;
950
- if (count === 0 || (this.selectedDisplay === 'pill' && this.pillPosition === 'below')) {
951
- return this.placeholder || 'Select...';
952
- }
953
- return `${count} item${count === 1 ? '' : 's'}`;
954
- }
955
- render() {
956
- const hasSelections = this.selectedItems.length > 0;
957
- return (h(Host, { key: '086b6d2d199b35110e64ba1da3c12f1a81360581', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: 'c2faf217a97de056a9111a78e7077025e4ab5ee1', class: "pds-multiselect", onFocusout: this.handleContainerFocusOut }, this.label && (h("label", { key: '0aff86a3a0054aef256bac5c0204dd914a9bd3ae', id: `${this.componentId}-label`, htmlFor: this.componentId, class: {
958
- 'pds-multiselect__label': true,
959
- 'visually-hidden': this.hideLabel,
960
- } }, this.label)), h("div", { key: '3b92119871dc32bb3c9a559be816bdece2fc30a6', class: "pds-multiselect__wrapper", ref: el => (this.containerEl = el), style: { width: this.triggerWidth } }, this.selectedDisplay === 'pill' && this.pillPosition === 'inline' ? (h("div", { ref: el => (this.pillInlineTriggerEl = el || undefined), part: "trigger", class: {
961
- 'pds-multiselect__trigger': true,
962
- 'pds-multiselect__trigger--open': this.isOpen,
963
- 'pds-multiselect__trigger--disabled': this.disabled,
964
- 'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
965
- 'pds-multiselect__trigger--has-value': hasSelections,
966
- 'pds-multiselect__trigger--pill-inline': true,
967
- }, onClick: this.handleTriggerClick }, this.renderInlinePills(), h("button", { ref: el => (this.triggerEl = el), type: "button", id: this.componentId, part: "pill-toggle", class: "pds-multiselect__pill-toggle", disabled: this.disabled, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-labelledby": this.label ? `${this.componentId}-label` : undefined, "aria-required": this.required ? 'true' : undefined, "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onKeyDown: this.handleTriggerKeyDown }, h("pds-icon", { class: "pds-multiselect__icon", icon: enlarge })))) : (h("button", { ref: el => (this.triggerEl = el), type: "button", part: "trigger", class: {
968
- 'pds-multiselect__trigger': true,
969
- 'pds-multiselect__trigger--open': this.isOpen,
970
- 'pds-multiselect__trigger--disabled': this.disabled,
971
- 'pds-multiselect__trigger--invalid': this.invalid || !!this.errorMessage,
972
- 'pds-multiselect__trigger--has-value': hasSelections,
973
- }, id: this.componentId, disabled: this.disabled, "aria-required": this.required ? 'true' : undefined, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-haspopup": "listbox", "aria-describedby": assignDescription(this.componentId, this.invalid || !!this.errorMessage, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid || !!this.errorMessage ? 'true' : undefined, onClick: this.handleTriggerClick, onKeyDown: this.handleTriggerKeyDown }, h("span", { class: {
974
- 'pds-multiselect__trigger-text': true,
975
- 'pds-multiselect__trigger-text--placeholder': !hasSelections || (this.selectedDisplay === 'pill' && this.pillPosition === 'below'),
976
- } }, this.getTriggerText()), h("pds-icon", { class: "pds-multiselect__icon", icon: enlarge }))), this.renderDropdown()), this.selectedDisplay === 'pill' && this.pillPosition === 'below' && this.renderBelowPills(), h("span", { key: '07d6a6bf9ccc2fe8bfcf9502a1cd4b7abf5c5e6f', class: "visually-hidden", "aria-live": "polite", "aria-atomic": "true" }, this.removalAnnouncement), this.helperMessage && !(this.errorMessage && this.errorMessage.length > 0) && (h("p", { key: 'a94bb6f31805d31ec3cd5b5f2ca8b1984f4d41d1', class: "pds-multiselect__helper", id: messageId(this.componentId, 'helper') }, this.helperMessage)), this.errorMessage && (h("p", { key: '15afc6b9313e1fe22bd56b00eee1ebcf9e085c2e', class: "pds-multiselect__error", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: '452814577b14ca8f891b101903bd1a7a7e5d8bb1', icon: danger, size: "small" }), this.errorMessage)), h("div", { key: 'd8ce787886e666303759cd2654c78b44269a40ff', style: { display: 'none' } }, h("slot", { key: '8295376fb03b23d44c5baeca9bc967514e433e0f' })))));
977
- }
978
- static get formAssociated() { return true; }
979
- get el() { return this; }
980
- static get watchers() { return {
981
- "debounce": ["setupDebounce"],
982
- "value": ["valueChanged"],
983
- "options": ["optionsChanged"],
984
- "internalOptions": ["internalOptionsChanged"]
985
- }; }
986
- static get style() { return pdsMultiselectCss; }
987
- }, [321, "pds-multiselect", {
988
- "componentId": [1, "component-id"],
989
- "label": [1],
990
- "placeholder": [1],
991
- "searchPlaceholder": [1, "search-placeholder"],
992
- "closePanelOnSelect": [4, "close-panel-on-select"],
993
- "name": [1],
994
- "value": [1040],
995
- "disabled": [4],
996
- "asyncUrl": [1, "async-url"],
997
- "asyncMethod": [1, "async-method"],
998
- "debounce": [2],
999
- "fetchTimeout": [2, "fetch-timeout"],
1000
- "maxSelections": [2, "max-selections"],
1001
- "maxHeight": [1, "max-height"],
1002
- "triggerWidth": [1, "trigger-width"],
1003
- "minWidth": [1, "min-width"],
1004
- "panelWidth": [1, "panel-width"],
1005
- "hideLabel": [4, "hide-label"],
1006
- "hideSelectedItems": [4, "hide-selected-items"],
1007
- "selectedDisplay": [1, "selected-display"],
1008
- "pillPosition": [1, "pill-position"],
1009
- "maxInlinePills": [2, "max-inline-pills"],
1010
- "errorMessage": [1, "error-message"],
1011
- "helperMessage": [1, "helper-message"],
1012
- "invalid": [4],
1013
- "required": [4],
1014
- "loading": [1028],
1015
- "options": [16],
1016
- "formatResult": [16],
1017
- "createUrl": [1, "create-url"],
1018
- "csrfToken": [1, "csrf-token"],
1019
- "csrfHeaderName": [1, "csrf-header-name"],
1020
- "isOpen": [32],
1021
- "searchQuery": [32],
1022
- "highlightedIndex": [32],
1023
- "internalOptions": [32],
1024
- "selectedItems": [32],
1025
- "currentPage": [32],
1026
- "hasMore": [32],
1027
- "creating": [32],
1028
- "removalAnnouncement": [32],
1029
- "setFocus": [64],
1030
- "clear": [64]
1031
- }, [[8, "keydown", "handleWindowKeyDown"]], {
1032
- "debounce": ["setupDebounce"],
1033
- "value": ["valueChanged"],
1034
- "options": ["optionsChanged"],
1035
- "internalOptions": ["internalOptionsChanged"]
1036
- }]);
1037
- function defineCustomElement$1() {
1038
- if (typeof customElements === "undefined") {
1039
- return;
1040
- }
1041
- const components = ["pds-multiselect", "pds-box", "pds-checkbox", "pds-chip", "pds-icon", "pds-loader", "pds-text"];
1042
- components.forEach(tagName => { switch (tagName) {
1043
- case "pds-multiselect":
1044
- if (!customElements.get(tagName)) {
1045
- customElements.define(tagName, PdsMultiselect$1);
1046
- }
1047
- break;
1048
- case "pds-box":
1049
- if (!customElements.get(tagName)) {
1050
- defineCustomElement$7();
1051
- }
1052
- break;
1053
- case "pds-checkbox":
1054
- if (!customElements.get(tagName)) {
1055
- defineCustomElement$6();
1056
- }
1057
- break;
1058
- case "pds-chip":
1059
- if (!customElements.get(tagName)) {
1060
- defineCustomElement$5();
1061
- }
1062
- break;
1063
- case "pds-icon":
1064
- if (!customElements.get(tagName)) {
1065
- defineCustomElement$4();
1066
- }
1067
- break;
1068
- case "pds-loader":
1069
- if (!customElements.get(tagName)) {
1070
- defineCustomElement$3();
1071
- }
1072
- break;
1073
- case "pds-text":
1074
- if (!customElements.get(tagName)) {
1075
- defineCustomElement$2();
1076
- }
1077
- break;
1078
- } });
1079
- }
1080
-
1081
- const PdsMultiselect = PdsMultiselect$1;
1082
- const defineCustomElement = defineCustomElement$1;
1083
-
1084
- export { PdsMultiselect, defineCustomElement };
1085
- //# sourceMappingURL=pds-multiselect.js.map
1086
-
1087
- //# sourceMappingURL=pds-multiselect.js.map
1
+ import{proxyCustomElement as e,HTMLElement as i,createEvent as t,h as s,Host as o,transformTag as n}from"@stencil/core/internal/client";import{a as l,c as r,o as a,f as d,s as c,b as p}from"./floating-ui.dom.js";import{d as h}from"./utils.js";import{i as m,a as u,m as b}from"./form.js";import{g as v,h as g}from"./index2.js";import{f as _,p as x}from"./i18n-format.js";import{d as f}from"./pds-box2.js";import{d as y}from"./pds-checkbox2.js";import{d as w}from"./pds-chip2.js";import{d as k}from"./pds-icon2.js";import{d as O}from"./pds-loader2.js";import{d as C}from"./pds-text2.js";const j=e(class extends i{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.pdsMultiselectChange=t(this,"pdsMultiselectChange",7),this.pdsMultiselectSearch=t(this,"pdsMultiselectSearch",7),this.pdsMultiselectLoadOptions=t(this,"pdsMultiselectLoadOptions",7),this.pdsMultiselectCreate=t(this,"pdsMultiselectCreate",7),this.pdsMultiselectDismiss=t(this,"pdsMultiselectDismiss",7),this.placeholder="Select...",this.searchPlaceholder="Find...",this.searchOptionsLabel="Search options",this.selectedItemsLabel="Selected items",this.optionsLabel="Options",this.noOptionsFoundLabel="No options found",this.createOptionLabel='Add "{text}"',this.createOptionAriaLabel="Create new tag: {text}",this.itemRemovedLabel="{item} removed",this.pillRemoveLabel="Remove",this.selectedCountLabelOne="{count} item",this.selectedCountLabelOther="{count} items",this.closePanelOnSelect=!1,this.value=[],this.disabled=!1,this.asyncMethod="GET",this.debounce=300,this.fetchTimeout=3e4,this.maxHeight="300px",this.triggerWidth="100%",this.minWidth="250px",this.hideLabel=!1,this.hideSelectedItems=!1,this.selectedDisplay="count",this.pillPosition="inline",this.maxInlinePills=3,this.required=!1,this.loading=!1,this.csrfHeaderName="X-CSRF-Token",this.isOpen=!1,this.searchQuery="",this.highlightedIndex=-1,this.internalOptions=[],this.selectedItems=[],this.currentPage=1,this.hasMore=!1,this.creating=!1,this.removalAnnouncement="",this.isOpening=!1,this.isClosingViaSelection=!1,this.initialAsyncFetchTriggered=!1,this.pendingUnresolvedFetch=!1,this.handleTriggerClick=e=>{if(!this.disabled){if(e&&"pill"===this.selectedDisplay&&"inline"===this.pillPosition&&e.composedPath().some((e=>{var i;return"pds-chip"===(null===(i=e.tagName)||void 0===i?void 0:i.toLowerCase())})))return;this.isOpen?this.closeDropdown():this.openDropdown()}},this.handleTriggerKeyDown=e=>{if(e.target===this.triggerEl)switch(e.key){case"ArrowDown":case"ArrowUp":case"Enter":case" ":e.preventDefault(),this.isOpen||this.openDropdown()}},this.handleSearchInputChange=e=>{this.searchQuery=e.target.value,this.highlightedIndex=-1,this.pdsMultiselectSearch.emit({query:this.searchQuery}),this.asyncUrl&&this.debouncedFetchAsyncOptions(this.searchQuery,1)},this.handleSearchInputKeyDown=e=>{var i,t,s;const o=this.getFilteredOptions();switch(e.key){case"ArrowDown":{e.preventDefault();let t=this.highlightedIndex+1;for(;t<o.length&&(null===(i=o[t])||void 0===i?void 0:i.disabled);)t++;t<o.length&&(this.highlightedIndex=t,this.scrollOptionIntoView());break}case"ArrowUp":{e.preventDefault();let i=Math.max(this.highlightedIndex-1,0);for(;i>0&&(null===(t=o[i])||void 0===t?void 0:t.disabled);)i--;(null===(s=o[i])||void 0===s?void 0:s.disabled)||(this.highlightedIndex=i,this.scrollOptionIntoView());break}case"Enter":if(e.preventDefault(),this.highlightedIndex>=0){const e=o[this.highlightedIndex];e&&this.selectOption(e)}break;case"Tab":this.closeDropdown()}},this.handleContainerFocusOut=()=>{setTimeout((()=>{var e;if(!this.isOpen||this.isOpening||this.isClosingViaSelection)return;const i=document.activeElement;(null===(e=this.el.shadowRoot)||void 0===e?void 0:e.contains(i))||i===this.el||(this.pdsMultiselectDismiss.emit(),this.closeDropdown())}),0)},this.handleOptionMouseDown=e=>i=>{i.preventDefault(),this.toggleOption(e)},this.handleOptionMouseEnter=(e,i)=>()=>{i.disabled||(this.highlightedIndex=e)},this.handleScroll=e=>{if(!this.asyncUrl||!this.hasMore||this.loading)return;const i=e.target;i.scrollHeight-i.scrollTop-i.clientHeight<50&&(this.pdsMultiselectLoadOptions.emit({query:this.searchQuery,page:this.currentPage+1}),this.debouncedFetchAsyncOptions(this.searchQuery,this.currentPage+1))},this.handlePillRemove=e=>()=>{var i,t;if(this.disabled)return;const s=e.id+"";this.value=this.value.filter((e=>e!==s)),this.syncSelectedItems(),this.pdsMultiselectChange.emit({values:this.value,items:this.selectedItems}),this.removalAnnouncement="",queueMicrotask((()=>{this.removalAnnouncement=_(this.itemRemovedLabel,{item:e.text})})),this.isClosingViaSelection=!0,this.isOpen?null===(i=this.searchInputEl)||void 0===i||i.focus():null===(t=this.triggerEl)||void 0===t||t.focus(),setTimeout((()=>{this.isClosingViaSelection=!1}),0)}}connectedCallback(){this.el.attachInternals&&!this.internals&&(this.internals=this.el.attachInternals())}componentWillLoad(){this.originalSearchEmitter=this.pdsMultiselectSearch,this.syncSelectedItems()}componentDidLoad(){this.setupDebounce(),this.setupMutationObserver(),this.setupSlotChangeListener(),this.updateFormValue(),requestAnimationFrame((()=>{this.updateOptionsFromSlot(),this.syncSelectedItems()})),this.asyncUrl&&this.ensureValueArray().length>0&&(this.initialAsyncFetchTriggered=!0,this.fetchOptions("",1))}setupSlotChangeListener(){var e;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])");i&&(i.addEventListener("slotchange",(()=>{this.updateOptionsFromSlot(),this.syncSelectedItems()})),this.updateOptionsFromSlot())}disconnectedCallback(){var e,i;null===(e=this.observer)||void 0===e||e.disconnect(),null===(i=this.cleanupAutoUpdate)||void 0===i||i.call(this),this.clearAsyncFetchState()}setupDebounce(){const{pdsMultiselectSearch:e,debounce:i,originalSearchEmitter:t}=this;this.pdsMultiselectSearch=void 0===i?null!=t?t:e:h(e,i)}valueChanged(e){if("string"==typeof e)try{const i=JSON.parse(e);if(Array.isArray(i))return void(this.value=i)}catch(i){return void(this.value=e?[e]:[])}if(this.syncSelectedItems(),this.updateFormValue(),this.asyncUrl){const e=this.ensureValueArray();e.length>0&&this.selectedItems.length<e.length&&(this.loading?this.pendingUnresolvedFetch=!0:this.fetchOptions("",1))}}optionsChanged(){this.options&&(this.internalOptions=[...this.options])}internalOptionsChanged(){this.syncSelectedItems()}async setFocus(){var e;null===(e=this.triggerEl)||void 0===e||e.focus()}async clear(){const e=this.value.length>0||""!==this.searchQuery;this.value=[],this.searchQuery="",this.syncSelectedItems(),this.updateFormValue(),e&&this.pdsMultiselectChange.emit({values:[],items:[]})}handleWindowKeyDown(e){var i;this.isOpen&&"Escape"===e.key&&(e.preventDefault(),this.pdsMultiselectDismiss.emit(),this.closeDropdown(),null===(i=this.triggerEl)||void 0===i||i.focus())}setupMutationObserver(){this.observer=new MutationObserver((()=>{this.updateOptionsFromSlot()})),this.observer.observe(this.el,{childList:!0,subtree:!0})}updateOptionsFromSlot(){var e;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector("slot:not([name])");if(!i)return;const t=[];i.assignedElements({flatten:!0}).forEach((e=>{var i;if("OPTGROUP"===e.tagName){const i=e.label,s=e.disabled;e.querySelectorAll("option").forEach((e=>{var o;const n={id:e.value,text:(null===(o=e.textContent)||void 0===o?void 0:o.trim())||e.value,disabled:e.disabled||s||void 0};i&&(n.group=i),t.push(n)}))}else if("OPTION"===e.tagName){const s=e;t.push({id:s.value,text:(null===(i=s.textContent)||void 0===i?void 0:i.trim())||s.value,disabled:s.disabled||void 0})}})),t.length>0&&!this.asyncUrl&&!this.options&&(this.internalOptions=t)}clearAsyncFetchState(){var e;void 0!==this.fetchDebounceTimer&&(window.clearTimeout(this.fetchDebounceTimer),this.fetchDebounceTimer=void 0),void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),null===(e=this.abortController)||void 0===e||e.abort(),this.abortController=void 0}debouncedFetchAsyncOptions(e,i=1){var t;if(!this.asyncUrl)return;void 0!==this.fetchDebounceTimer&&window.clearTimeout(this.fetchDebounceTimer);const s=Math.max(0,null!==(t=this.debounce)&&void 0!==t?t:0);this.fetchDebounceTimer=window.setTimeout((()=>{this.fetchDebounceTimer=void 0,this.fetchOptions(e,i)}),s)}syncSelectedItems(){const e=this.ensureValueArray(),i=this.getAllOptions(),t=[],s=new Map(this.selectedItems.map((e=>[e.id+"",e])));e.forEach((e=>{const o=i.find((i=>i.id+""==e+""));o?t.push(o):s.has(e+"")&&t.push(s.get(e+""))})),this.selectedItems=t}ensureValueArray(){if("string"==typeof this.value)try{const e=JSON.parse(this.value);if(Array.isArray(e))return this.value=e,e}catch(e){const i=this.value;return this.value=i?[i]:[],this.value}return Array.isArray(this.value)?this.value:[]}getAllOptions(){return this.options||this.internalOptions}getFilteredOptions(){const e=this.getAllOptions(),i=this.searchQuery.toLowerCase(),t=e.filter((e=>!i||e.text.toLowerCase().includes(i)));return this.createUrl&&this.searchQuery.trim()&&0===t.length?[{id:"__create__",text:this.searchQuery.trim(),isCreateOption:!0}]:t}updateFormValue(){var e;if(!m()&&(null===(e=this.internals)||void 0===e?void 0:e.setFormValue)){const e=this.ensureValueArray(),i=new FormData;e.forEach((e=>{this.name&&i.append(this.name,e)})),this.internals.setFormValue(i),this.required&&0===e.length?this.internals.setValidity({valueMissing:!0},"Please select at least one option.",this.triggerEl):this.internals.setValidity({})}}getCsrfToken(){if(this.csrfToken)return this.csrfToken;const e=document.querySelector('meta[name="csrf-token"]');return(null==e?void 0:e.content)||null}async fetchOptions(e,i=1){var t;if(this.asyncUrl){null===(t=this.abortController)||void 0===t||t.abort(),void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),this.abortController=new AbortController,this.loading=!0,this.fetchTimeoutTimer=window.setTimeout((()=>{var e;null===(e=this.abortController)||void 0===e||e.abort(),this.fetchTimeoutTimer=void 0}),this.fetchTimeout);try{let t;try{t=new URL(this.asyncUrl,window.location.origin)}catch(e){throw new TypeError("Invalid asyncUrl: "+this.asyncUrl)}"GET"===this.asyncMethod&&(t.searchParams.set("search",e),t.searchParams.set("page",i+""));const s=this.getCsrfToken(),o={"Content-Type":"application/json",Accept:"application/json"};s&&(o[this.csrfHeaderName||"X-CSRF-Token"]=s);const n=await fetch(""+t,Object.assign({method:this.asyncMethod,signal:this.abortController.signal,headers:o},"POST"===this.asyncMethod&&{body:JSON.stringify({search:e,page:i})}));if(void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),!n.ok)throw Error("Failed to fetch options");const l=await n.json(),r=l.results.map((e=>this.formatResult?this.formatResult(e):"object"==typeof e&&null!==e?Object.assign({id:e.id,text:e.text},e):{id:e+"",text:e+""}));this.internalOptions=1===i?r:[...this.internalOptions,...r],this.hasMore=!!l.totalCount&&this.internalOptions.length<l.totalCount,this.currentPage=i}catch(e){void 0!==this.fetchTimeoutTimer&&(window.clearTimeout(this.fetchTimeoutTimer),this.fetchTimeoutTimer=void 0),"AbortError"!==e.name&&console.error("PdsMultiselect: Failed to fetch options",e)}finally{if(this.loading=!1,this.pendingUnresolvedFetch){this.pendingUnresolvedFetch=!1;const e=this.ensureValueArray();e.length>0&&this.selectedItems.length<e.length&&this.fetchOptions("",1)}}}}async createOption(e){if(this.createUrl&&e.trim()&&!this.creating){this.creating=!0;try{const i=new URL(this.createUrl,window.location.origin),t=this.getCsrfToken(),s={"Content-Type":"application/json",Accept:"application/json"};t&&(s[this.csrfHeaderName||"X-CSRF-Token"]=t);const o=await fetch(""+i,{method:"POST",headers:s,body:JSON.stringify({text:e.trim()})});if(!o.ok)throw Error("Failed to create option");const n=await o.json(),l=Object.assign({id:n.id,text:n.text},n);this.internalOptions=[...this.internalOptions,l],this.value=[...this.value,l.id+""],this.syncSelectedItems(),this.pdsMultiselectCreate.emit({query:e.trim(),newOption:l}),this.pdsMultiselectChange.emit({values:this.value,items:this.selectedItems}),this.searchQuery="",this.highlightedIndex=-1,requestAnimationFrame((()=>{var e;null===(e=this.searchInputEl)||void 0===e||e.focus()}))}catch(e){console.error("PdsMultiselect: Failed to create option",e)}finally{this.creating=!1}}}openDropdown(){this.disabled||(this.isOpening=!0,this.isOpen=!0,this.highlightedIndex=-1,this.asyncUrl&&0===this.internalOptions.length&&!this.initialAsyncFetchTriggered&&this.debouncedFetchAsyncOptions(this.searchQuery,1),this.initialAsyncFetchTriggered=!1,requestAnimationFrame((()=>{var e;this.positionDropdown(),null===(e=this.searchInputEl)||void 0===e||e.focus(),setTimeout((()=>{this.isOpening=!1}),50)})))}closeDropdown(){this.isOpen=!1,this.highlightedIndex=-1,this.searchQuery="",this.isClosingViaSelection&&setTimeout((()=>{this.isClosingViaSelection=!1}),0),this.cleanupAutoUpdate&&(this.cleanupAutoUpdate(),this.cleanupAutoUpdate=void 0)}positionDropdown(){if(!this.containerEl||!this.panelEl)return;const e=this.pillInlineTriggerEl||this.triggerEl||this.containerEl,{minWidth:i,panelWidth:t}=this,s=()=>{r(e,this.panelEl,{placement:"bottom-start",strategy:"absolute",middleware:[a(12),d(),c({padding:8}),p({apply:({rects:e,elements:s})=>{Object.assign(s.floating.style,{width:null!=t?t:e.reference.width+"px",minWidth:i})}})]}).then((({x:e,y:i})=>{this.panelEl&&(this.panelEl.style.left=e+"px",this.panelEl.style.top=i+"px")}))};s();const o=l(e,this.panelEl,s);this.cleanupAutoUpdate=()=>{o(),this.clearAsyncFetchState()}}scrollOptionIntoView(){requestAnimationFrame((()=>{var e;const i=null===(e=this.listboxEl)||void 0===e?void 0:e.querySelector(`[data-index="${this.highlightedIndex}"]`);null==i||i.scrollIntoView({block:"nearest",behavior:"smooth"})}))}toggleOption(e){var i,t;if(e.disabled)return;if(e.isCreateOption)return void(this.creating||this.createOption(this.searchQuery));const s=e.id+"";if(this.value.includes(s))this.value=this.value.filter((e=>e!==s));else{if(this.maxSelections&&this.value.length>=this.maxSelections)return;this.value=[...this.value,s]}this.syncSelectedItems(),this.pdsMultiselectChange.emit({values:this.value,items:this.selectedItems}),this.closePanelOnSelect?(this.isClosingViaSelection=!0,this.closeDropdown(),null===(i=this.triggerEl)||void 0===i||i.focus()):null===(t=this.searchInputEl)||void 0===t||t.focus()}selectOption(e){this.toggleOption(e)}getGroupedRenderItems(e){const i=[];let t=null;return e.forEach(((e,s)=>{const o=e.group;void 0!==o?(t&&t.group===o||(t={type:"group",group:o,options:[]},i.push(t)),t.options.push({option:e,index:s})):(t=null,i.push({type:"option",option:e,index:s}))})),i}renderOption(e,i,t){const o=t.includes(e.id+""),n=e.isCreateOption,l=e.disabled,r=n&&this.creating;return s("li",{key:e.id+"",id:`${this.componentId}-option-${i}`,class:{"pds-multiselect__option":!0,"pds-multiselect__option--highlighted":i===this.highlightedIndex&&!n,"pds-multiselect__option--selected":o,"pds-multiselect__option--create":n,"pds-multiselect__option--disabled":l||r},role:"option","aria-selected":o?"true":"false","aria-disabled":l||r?"true":void 0,"aria-label":n?_(this.createOptionAriaLabel,{text:e.text}):void 0,"data-index":i,onMouseDown:this.handleOptionMouseDown(e),onMouseEnter:this.handleOptionMouseEnter(i,e)},n?s("pds-box",{class:"pds-multiselect__create-option","align-items":"center",gap:"xs"},s("pds-icon",{name:"add",size:"small"}),s("pds-text",null,_(this.createOptionLabel,{text:e.text}))):s("pds-checkbox",{componentId:`${this.componentId}-checkbox-${i}`,checked:o,label:e.text,disabled:l,style:{pointerEvents:"none"}}))}renderSelectedItemsList(){return this.hideSelectedItems||0===this.selectedItems.length?null:s("div",{class:"pds-multiselect__selected-section"},s("ul",{class:"pds-multiselect__selected-list",role:"list"},this.selectedItems.map((e=>s("li",{key:e.id+"",class:"pds-multiselect__selected-item"},e.text)))))}renderDropdown(){if(!this.isOpen)return null;const e=this.getFilteredOptions(),i=this.ensureValueArray(),t=!!this.el.querySelector('[slot="empty"]'),o=!!this.el.querySelector('[slot="loading"]');return s("div",{class:"pds-multiselect__panel",ref:e=>this.panelEl=e,style:{minWidth:this.minWidth}},s("div",{class:"pds-multiselect__search"},s("pds-icon",{name:"search",size:"small"}),s("input",{ref:e=>this.searchInputEl=e,type:"text",class:"pds-multiselect__search-input",placeholder:this.searchPlaceholder,value:this.searchQuery,"aria-label":this.searchOptionsLabel,"aria-controls":this.componentId+"-listbox","aria-activedescendant":this.highlightedIndex>=0?`${this.componentId}-option-${this.highlightedIndex}`:void 0,role:"combobox","aria-haspopup":"listbox","aria-expanded":"true","aria-autocomplete":"list",autocomplete:"off",onInput:this.handleSearchInputChange,onKeyDown:this.handleSearchInputKeyDown})),this.renderSelectedItemsList(),s("ul",{class:"pds-multiselect__listbox",role:"listbox","aria-multiselectable":"true","aria-label":this.label||this.optionsLabel,id:this.componentId+"-listbox",ref:e=>this.listboxEl=e,style:{maxHeight:this.maxHeight},onScroll:this.handleScroll},this.loading&&s("li",{class:"pds-multiselect__loading",role:"presentation"},o?s("slot",{name:"loading"}):s("pds-loader",{size:"small"})),!this.loading&&0===e.length&&s("li",{class:"pds-multiselect__empty",role:"presentation"},t?s("slot",{name:"empty"}):s("span",null,this.noOptionsFoundLabel)),this.getGroupedRenderItems(e).map(((e,t)=>"group"===e.type?s("li",{key:"group-"+t,role:"group","aria-label":e.group,class:"pds-multiselect__group"},s("span",{class:"pds-multiselect__group-header","aria-hidden":"true"},e.group),s("ul",{class:"pds-multiselect__group-list",role:"presentation"},e.options.map((({option:e,index:t})=>this.renderOption(e,t,i))))):this.renderOption(e.option,e.index,i))),this.hasMore&&!this.loading&&s("li",{class:"pds-multiselect__load-more",role:"presentation"},s("pds-loader",{size:"small"}))))}renderInlinePills(){if(!(this.selectedItems.length>0))return s("span",{class:"pds-multiselect__trigger-text pds-multiselect__trigger-text--placeholder"},this.placeholder||"Select...");const e=this.disabled?"text":"tag",i=this.selectedItems.slice(0,Math.max(1,this.maxInlinePills)),t=this.selectedItems.length-i.length;return s("div",{class:"pds-multiselect__pill-list pds-multiselect__pill-list--inline","aria-label":this.selectedItemsLabel},i.map((i=>s("pds-chip",{key:i.id+"","component-id":`${this.componentId}-pill-${i.id}`,variant:e,size:"sm",sentiment:"neutral","dismiss-label":this.pillRemoveLabel,onPdsTagCloseClick:this.handlePillRemove(i)},i.text))),t>0&&s("span",{class:"pds-multiselect__pill-overflow"},"+",t))}renderBelowPills(){if(0===this.selectedItems.length)return null;const e=this.disabled?"text":"tag";return s("div",{class:"pds-multiselect__pill-list pds-multiselect__pill-list--below","aria-label":this.selectedItemsLabel},this.selectedItems.map((i=>s("pds-chip",{key:i.id+"","component-id":`${this.componentId}-pill-${i.id}`,variant:e,size:"md",sentiment:"neutral","dismiss-label":this.pillRemoveLabel,onPdsTagCloseClick:this.handlePillRemove(i)},i.text))))}getTriggerText(){const e=this.selectedItems.length;return 0===e||"pill"===this.selectedDisplay&&"below"===this.pillPosition?this.placeholder||"Select...":x(this.el,e,this.resolveCountForms())}resolveCountForms(){const e={one:this.selectedCountLabelOne,other:this.selectedCountLabelOther},i=this.selectedCountLabels;if(!i)return e;if("string"==typeof i)try{const t=JSON.parse(i);return t&&"object"==typeof t?Object.assign(Object.assign({},e),t):e}catch(i){return e}return Object.assign(Object.assign({},e),i)}render(){const e=this.selectedItems.length>0;return s(o,{key:"4a54a778522d0a1d2f45c32928e7a663f19c0189","aria-disabled":this.disabled?"true":null},s("div",{key:"3593eb4fa1a0ae575b1c0ed03f0763dcea04c9e6",class:"pds-multiselect",onFocusout:this.handleContainerFocusOut},this.label&&s("label",{key:"f91a680ae3c3021bac6bd99368d3ef6ad6438898",id:this.componentId+"-label",htmlFor:this.componentId,class:{"pds-multiselect__label":!0,"visually-hidden":this.hideLabel}},this.label),s("div",{key:"de2899f19057b8cd19cf3467251d03c1b43b73f5",class:"pds-multiselect__wrapper",ref:e=>this.containerEl=e,style:{width:this.triggerWidth}},"pill"===this.selectedDisplay&&"inline"===this.pillPosition?s("div",{ref:e=>this.pillInlineTriggerEl=e||void 0,part:"trigger",class:{"pds-multiselect__trigger":!0,"pds-multiselect__trigger--open":this.isOpen,"pds-multiselect__trigger--disabled":this.disabled,"pds-multiselect__trigger--invalid":this.invalid||!!this.errorMessage,"pds-multiselect__trigger--has-value":e,"pds-multiselect__trigger--pill-inline":!0},onClick:this.handleTriggerClick},this.renderInlinePills(),s("button",{ref:e=>this.triggerEl=e,type:"button",id:this.componentId,part:"pill-toggle",class:"pds-multiselect__pill-toggle",disabled:this.disabled,"aria-expanded":this.isOpen?"true":"false","aria-haspopup":"listbox","aria-labelledby":this.label?this.componentId+"-label":void 0,"aria-required":this.required?"true":void 0,"aria-describedby":u(this.componentId,this.invalid||!!this.errorMessage,this.errorMessage||this.helperMessage),"aria-invalid":this.invalid||this.errorMessage?"true":void 0,onKeyDown:this.handleTriggerKeyDown},s("pds-icon",{class:"pds-multiselect__icon",icon:v}))):s("button",{ref:e=>this.triggerEl=e,type:"button",part:"trigger",class:{"pds-multiselect__trigger":!0,"pds-multiselect__trigger--open":this.isOpen,"pds-multiselect__trigger--disabled":this.disabled,"pds-multiselect__trigger--invalid":this.invalid||!!this.errorMessage,"pds-multiselect__trigger--has-value":e},id:this.componentId,disabled:this.disabled,"aria-required":this.required?"true":void 0,"aria-expanded":this.isOpen?"true":"false","aria-haspopup":"listbox","aria-describedby":u(this.componentId,this.invalid||!!this.errorMessage,this.errorMessage||this.helperMessage),"aria-invalid":this.invalid||this.errorMessage?"true":void 0,onClick:this.handleTriggerClick,onKeyDown:this.handleTriggerKeyDown},s("span",{class:{"pds-multiselect__trigger-text":!0,"pds-multiselect__trigger-text--placeholder":!e||"pill"===this.selectedDisplay&&"below"===this.pillPosition}},this.getTriggerText()),s("pds-icon",{class:"pds-multiselect__icon",icon:v})),this.renderDropdown()),"pill"===this.selectedDisplay&&"below"===this.pillPosition&&this.renderBelowPills(),s("span",{key:"973443f9eb29dcf7fb1bde3f9101ac02967a8fd9",class:"visually-hidden","aria-live":"polite","aria-atomic":"true"},this.removalAnnouncement),this.helperMessage&&!(this.errorMessage&&this.errorMessage.length>0)&&s("p",{key:"568aab2b278abb7f4426d84ee926b4883375fb11",class:"pds-multiselect__helper",id:b(this.componentId,"helper")},this.helperMessage),this.errorMessage&&s("p",{key:"daddf192efd47df8c15267b9896913b926e02544",class:"pds-multiselect__error",id:b(this.componentId,"error")},s("pds-icon",{key:"d0c72ab75a8e02e61c09e980ae817790804a776a",icon:g,size:"small"}),this.errorMessage),s("div",{key:"0453db2fca10b3573b1dd244875f90c856c8887b",style:{display:"none"}},s("slot",{key:"a612741afc9545e5e50c47d27c3c27c1d7cade3c"}))))}static get formAssociated(){return!0}get el(){return this}static get watchers(){return{debounce:[{setupDebounce:0}],value:[{valueChanged:0}],options:[{optionsChanged:0}],internalOptions:[{internalOptionsChanged:0}]}}static get style(){return":host{display:block}:host([aria-disabled=true]) .pds-multiselect__trigger{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}:host([aria-disabled=true]) .pds-multiselect__icon{color:var(--pine-color-text-disabled)}.pds-multiselect{position:relative}.pds-multiselect__label{color:var(--pine-color-text-label);display:block;font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-multiselect__wrapper{position:relative}.pds-multiselect__trigger{-ms-flex-align:center;align-items:center;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);gap:var(--pine-dimension-xs);-ms-flex-pack:justify;justify-content:space-between;letter-spacing:var(--pine-letter-spacing);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);position:relative;text-align:start;-webkit-transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease;transition:border-color var(--pine-motion-duration-base) ease, box-shadow var(--pine-motion-duration-base) ease, -webkit-box-shadow var(--pine-motion-duration-base) ease;width:100%}.pds-multiselect__trigger:hover:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-hover)}.pds-multiselect__trigger:focus:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid{background-color:var(--pine-color-red-050);border-color:var(--pine-color-border-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--invalid:focus{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__trigger.pds-multiselect__trigger--disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-multiselect__trigger-text{color:var(--pine-color-text-strong);-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__trigger-text.pds-multiselect__trigger-text--placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__trigger--disabled .pds-multiselect__trigger-text{color:var(--pine-color-text-disabled)}.pds-multiselect__icon{color:var(--pine-color-icon);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__pill-list{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs)}.pds-multiselect__pill-list--inline{-ms-flex:1;flex:1;min-width:0}.pds-multiselect__pill-list--below{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-multiselect__pill-overflow{color:var(--pine-color-text-muted);font:var(--pine-typography-body-sm-medium);white-space:nowrap}.pds-multiselect__trigger--pill-inline{-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-2xs);min-height:var(--pine-dimension-450);padding:var(--pine-dimension-2xs) var(--pine-dimension-sm)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--open{border-color:var(--pine-color-border-active)}.pds-multiselect__trigger--pill-inline:focus-within:not(.pds-multiselect__trigger--disabled){border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-multiselect__trigger--pill-inline.pds-multiselect__trigger--invalid:focus-within{outline-color:var(--pine-color-focus-ring-danger)}.pds-multiselect__pill-toggle{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border-width:0;cursor:pointer;display:-ms-flexbox;display:flex;padding:0}.pds-multiselect__pill-toggle:focus{outline:3px solid transparent}.pds-multiselect__trigger--disabled .pds-multiselect__pill-toggle{cursor:not-allowed;pointer-events:none}.pds-multiselect__panel{background:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:absolute;z-index:var(--pine-z-index-raised)}.pds-multiselect__search{-ms-flex-align:center;align-items:center;-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-multiselect__search pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__search-input{background:transparent;border:var(--pine-dimension-none);color:var(--pine-color-text-strong);-ms-flex:1;flex:1;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-width:var(--pine-dimension-none);outline:none}.pds-multiselect__search-input::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__search-input::placeholder{color:var(--pine-color-text-placeholder)}.pds-multiselect__selected-section{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border);border-block-end-color:var(--pine-color-border-subtle);padding:var(--pine-dimension-xs)}.pds-multiselect__selected-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__selected-item{color:var(--pine-color-text-strong);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);overflow:hidden;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);text-overflow:ellipsis;white-space:nowrap}.pds-multiselect__listbox{background:transparent;border:var(--pine-dimension-none);-webkit-box-sizing:border-box;box-sizing:border-box;list-style:none;margin:var(--pine-dimension-none);overflow-y:auto;padding:var(--pine-dimension-xs)}.pds-multiselect__group-header{color:var(--pine-color-text-muted);display:block;font:var(--pine-typography-body-sm-medium);letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-sm) var(--pine-dimension-xs) var(--pine-dimension-2xs);text-transform:uppercase}.pds-multiselect__listbox>li:first-child>.pds-multiselect__group-header{-webkit-padding-before:var(--pine-dimension-xs);padding-block-start:var(--pine-dimension-xs)}.pds-multiselect__group-list{list-style:none;margin:var(--pine-dimension-none);padding:var(--pine-dimension-none)}.pds-multiselect__option{-ms-flex-align:center;align-items:center;background:transparent;border-radius:var(--pine-dimension-xs);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-2xs) var(--pine-dimension-xs);-webkit-transition:background 0.15s;transition:background 0.15s}.pds-multiselect__option pds-checkbox{pointer-events:none;width:100%}.pds-multiselect__option:hover:not(.pds-multiselect__option--disabled),.pds-multiselect__option.pds-multiselect__option--highlighted:not(.pds-multiselect__option--disabled){background:var(--pine-color-background-muted)}.pds-multiselect__option.pds-multiselect__option--disabled{cursor:not-allowed;opacity:0.5}.pds-multiselect__option:focus-visible{outline:var(--pine-dimension-none)}.pds-multiselect__create-option{color:var(--pine-color-text-strong);width:100%}.pds-multiselect__create-option pds-icon{color:var(--pine-color-text-muted);-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none)}.pds-multiselect__empty,.pds-multiselect__loading{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-muted);display:-ms-flexbox;display:flex;font:var(--pine-typography-body);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-sm)}.pds-multiselect__load-more{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs)}.pds-multiselect__helper{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error{-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs);-webkit-margin-start:var(--pine-dimension-none);margin-inline-start:var(--pine-dimension-none)}.pds-multiselect__error pds-icon{-ms-flex-negative:var(--pine-dimension-none);flex-shrink:var(--pine-dimension-none);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.visually-hidden{border:var(--pine-dimension-none);clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:var(--pine-dimension-none);position:absolute;white-space:nowrap;width:1px}"}},[321,"pds-multiselect",{componentId:[1,"component-id"],label:[1],placeholder:[1],searchPlaceholder:[1,"search-placeholder"],searchOptionsLabel:[1,"search-options-label"],selectedItemsLabel:[1,"selected-items-label"],optionsLabel:[1,"options-label"],noOptionsFoundLabel:[1,"no-options-found-label"],createOptionLabel:[1,"create-option-label"],createOptionAriaLabel:[1,"create-option-aria-label"],itemRemovedLabel:[1,"item-removed-label"],pillRemoveLabel:[1,"pill-remove-label"],selectedCountLabelOne:[1,"selected-count-label-one"],selectedCountLabelOther:[1,"selected-count-label-other"],selectedCountLabels:[1,"selected-count-labels"],closePanelOnSelect:[4,"close-panel-on-select"],name:[1],value:[1040],disabled:[4],asyncUrl:[1,"async-url"],asyncMethod:[1,"async-method"],debounce:[2],fetchTimeout:[2,"fetch-timeout"],maxSelections:[2,"max-selections"],maxHeight:[1,"max-height"],triggerWidth:[1,"trigger-width"],minWidth:[1,"min-width"],panelWidth:[1,"panel-width"],hideLabel:[4,"hide-label"],hideSelectedItems:[4,"hide-selected-items"],selectedDisplay:[1,"selected-display"],pillPosition:[1,"pill-position"],maxInlinePills:[2,"max-inline-pills"],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],required:[4],loading:[1028],options:[16],formatResult:[16],createUrl:[1,"create-url"],csrfToken:[1,"csrf-token"],csrfHeaderName:[1,"csrf-header-name"],isOpen:[32],searchQuery:[32],highlightedIndex:[32],internalOptions:[32],selectedItems:[32],currentPage:[32],hasMore:[32],creating:[32],removalAnnouncement:[32],setFocus:[64],clear:[64]},[[8,"keydown","handleWindowKeyDown"]],{debounce:[{setupDebounce:0}],value:[{valueChanged:0}],options:[{optionsChanged:0}],internalOptions:[{internalOptionsChanged:0}]}]),S=j,F=function(){"undefined"!=typeof customElements&&["pds-multiselect","pds-box","pds-checkbox","pds-chip","pds-icon","pds-loader","pds-text"].forEach((e=>{switch(e){case"pds-multiselect":customElements.get(n(e))||customElements.define(n(e),j);break;case"pds-box":customElements.get(n(e))||f();break;case"pds-checkbox":customElements.get(n(e))||y();break;case"pds-chip":customElements.get(n(e))||w();break;case"pds-icon":customElements.get(n(e))||k();break;case"pds-loader":customElements.get(n(e))||O();break;case"pds-text":customElements.get(n(e))||C()}}))};export{S as PdsMultiselect,F as defineCustomElement}