@pine-ds/core 3.14.0 → 3.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (462) hide show
  1. package/components/floating-ui.dom.js +161 -40
  2. package/components/floating-ui.dom.js.map +1 -1
  3. package/components/index.d.ts +2 -0
  4. package/components/index.js +1 -0
  5. package/components/index.js.map +1 -1
  6. package/components/index2.js +1 -1
  7. package/components/index2.js.map +1 -1
  8. package/components/pds-combobox.js +65 -25
  9. package/components/pds-combobox.js.map +1 -1
  10. package/components/pds-dropdown-menu-item.js +1 -1
  11. package/components/pds-dropdown-menu-item.js.map +1 -1
  12. package/components/pds-dropdown-menu.js +3 -2
  13. package/components/pds-dropdown-menu.js.map +1 -1
  14. package/components/pds-filter.js +1 -1
  15. package/components/pds-filter.js.map +1 -1
  16. package/components/pds-multiselect.d.ts +11 -0
  17. package/components/pds-multiselect.js +666 -0
  18. package/components/pds-multiselect.js.map +1 -0
  19. package/components/pds-popover.js +1 -1
  20. package/components/pds-progress.js +1 -1
  21. package/components/pds-property.js +1 -1
  22. package/components/pds-radio-group.js +3 -3
  23. package/components/pds-radio.js +3 -3
  24. package/components/pds-row.js +1 -1
  25. package/components/pds-select.js +1 -1
  26. package/components/pds-sortable-item.js +1 -1
  27. package/components/pds-sortable.js +1 -1
  28. package/components/pds-switch.js +3 -3
  29. package/components/pds-tab.js +4 -4
  30. package/components/pds-tab.js.map +1 -1
  31. package/components/pds-table-body.js +1 -1
  32. package/components/pds-table-cell2.js +2 -2
  33. package/components/pds-table-head-cell2.js +35 -6
  34. package/components/pds-table-head-cell2.js.map +1 -1
  35. package/components/pds-table-head.js +1 -1
  36. package/components/pds-table-row.js +1 -1
  37. package/components/pds-tabpanel.js +1 -1
  38. package/components/pds-tabs.js +1 -1
  39. package/components/pds-text2.js +1 -1
  40. package/components/pds-textarea.js +4 -4
  41. package/components/pds-toast.js +3 -3
  42. package/components/pds-tooltip.js +2 -2
  43. package/dist/cjs/{floating-ui.dom-DTAy35nv.js → floating-ui.dom-Ca6tS7ef.js} +163 -41
  44. package/dist/cjs/floating-ui.dom-Ca6tS7ef.js.map +1 -0
  45. package/dist/cjs/{index-CMeuo765.js → index-BA--jsiy.js} +3 -3
  46. package/dist/cjs/index-BA--jsiy.js.map +1 -0
  47. package/dist/cjs/loader.cjs.js +1 -1
  48. package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
  49. package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
  50. package/dist/cjs/pds-button.cjs.entry.js +1 -1
  51. package/dist/cjs/pds-checkbox.cjs.entry.js +1 -1
  52. package/dist/cjs/pds-chip.cjs.entry.js +1 -1
  53. package/dist/cjs/pds-combobox.cjs.entry.js +66 -26
  54. package/dist/cjs/pds-combobox.entry.cjs.js.map +1 -1
  55. package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
  56. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
  57. package/dist/cjs/pds-dropdown-menu-item.entry.cjs.js.map +1 -1
  58. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +4 -3
  59. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -1
  60. package/dist/cjs/pds-filter.cjs.entry.js +2 -2
  61. package/dist/cjs/pds-filter.entry.cjs.js.map +1 -1
  62. package/dist/cjs/pds-input.cjs.entry.js +1 -1
  63. package/dist/cjs/pds-link.cjs.entry.js +1 -1
  64. package/dist/cjs/pds-multiselect.cjs.entry.js +592 -0
  65. package/dist/cjs/pds-multiselect.entry.cjs.js.map +1 -0
  66. package/dist/cjs/pds-popover.cjs.entry.js +1 -1
  67. package/dist/cjs/pds-progress.cjs.entry.js +1 -1
  68. package/dist/cjs/pds-property.cjs.entry.js +1 -1
  69. package/dist/cjs/pds-radio-group.cjs.entry.js +4 -4
  70. package/dist/cjs/pds-radio.cjs.entry.js +4 -4
  71. package/dist/cjs/pds-row.cjs.entry.js +1 -1
  72. package/dist/cjs/pds-select.cjs.entry.js +2 -2
  73. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  74. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  75. package/dist/cjs/pds-switch.cjs.entry.js +4 -4
  76. package/dist/cjs/pds-tab.cjs.entry.js +4 -4
  77. package/dist/cjs/pds-tab.entry.cjs.js.map +1 -1
  78. package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
  79. package/dist/cjs/pds-table-cell.cjs.entry.js +2 -2
  80. package/dist/cjs/pds-table-head-cell.cjs.entry.js +33 -6
  81. package/dist/cjs/pds-table-head-cell.entry.cjs.js.map +1 -1
  82. package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
  83. package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
  84. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  85. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  86. package/dist/cjs/pds-text.cjs.entry.js +1 -1
  87. package/dist/cjs/pds-textarea.cjs.entry.js +5 -5
  88. package/dist/cjs/pds-toast.cjs.entry.js +3 -3
  89. package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
  90. package/dist/cjs/pine-core.cjs.js +1 -1
  91. package/dist/collection/collection-manifest.json +1 -0
  92. package/dist/collection/components/pds-box/pds-box.css +0 -191
  93. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.css +3 -1
  94. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.css +1 -1
  95. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +2 -1
  96. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +1 -1
  97. package/dist/collection/components/pds-filters/pds-filter/pds-filter.css +6 -2
  98. package/dist/collection/components/pds-multiselect/multiselect-interface.js +2 -0
  99. package/dist/collection/components/pds-multiselect/multiselect-interface.js.map +1 -0
  100. package/dist/collection/components/pds-multiselect/pds-multiselect.css +232 -0
  101. package/dist/collection/components/pds-multiselect/pds-multiselect.js +1152 -0
  102. package/dist/collection/components/pds-multiselect/pds-multiselect.js.map +1 -0
  103. package/dist/collection/components/pds-multiselect/stories/pds-multiselect.stories.js +371 -0
  104. package/dist/collection/components/pds-popover/pds-popover.js +1 -1
  105. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  106. package/dist/collection/components/pds-property/pds-property.js +1 -1
  107. package/dist/collection/components/pds-radio/pds-radio.js +3 -3
  108. package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
  109. package/dist/collection/components/pds-row/pds-row.js +1 -1
  110. package/dist/collection/components/pds-select/pds-select.js +1 -1
  111. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  112. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  113. package/dist/collection/components/pds-switch/pds-switch.js +3 -3
  114. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  115. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  116. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  117. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +51 -6
  118. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +1 -1
  119. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  120. package/dist/collection/components/pds-table/stories/pds-table.stories.js +32 -4
  121. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +6 -2
  122. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  123. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  124. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  125. package/dist/collection/components/pds-text/pds-text.js +1 -1
  126. package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
  127. package/dist/collection/components/pds-toast/pds-toast.js +3 -3
  128. package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
  129. package/dist/docs.json +960 -174
  130. package/dist/esm/{floating-ui.dom-DbQzNDdQ.js → floating-ui.dom-BO6p966C.js} +163 -42
  131. package/dist/esm/floating-ui.dom-BO6p966C.js.map +1 -0
  132. package/dist/esm/{index-xbb79yLt.js → index-DY8eSueV.js} +3 -3
  133. package/dist/esm/index-DY8eSueV.js.map +1 -0
  134. package/dist/esm/loader.js +1 -1
  135. package/dist/esm/pds-accordion.entry.js +1 -1
  136. package/dist/esm/pds-avatar.entry.js +1 -1
  137. package/dist/esm/pds-button.entry.js +1 -1
  138. package/dist/esm/pds-checkbox.entry.js +1 -1
  139. package/dist/esm/pds-chip.entry.js +1 -1
  140. package/dist/esm/pds-combobox.entry.js +66 -26
  141. package/dist/esm/pds-combobox.entry.js.map +1 -1
  142. package/dist/esm/pds-copytext.entry.js +1 -1
  143. package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
  144. package/dist/esm/pds-dropdown-menu-item.entry.js.map +1 -1
  145. package/dist/esm/pds-dropdown-menu.entry.js +4 -3
  146. package/dist/esm/pds-dropdown-menu.entry.js.map +1 -1
  147. package/dist/esm/pds-filter.entry.js +2 -2
  148. package/dist/esm/pds-filter.entry.js.map +1 -1
  149. package/dist/esm/pds-input.entry.js +1 -1
  150. package/dist/esm/pds-link.entry.js +1 -1
  151. package/dist/esm/pds-multiselect.entry.js +590 -0
  152. package/dist/esm/pds-multiselect.entry.js.map +1 -0
  153. package/dist/esm/pds-popover.entry.js +1 -1
  154. package/dist/esm/pds-progress.entry.js +1 -1
  155. package/dist/esm/pds-property.entry.js +1 -1
  156. package/dist/esm/pds-radio-group.entry.js +4 -4
  157. package/dist/esm/pds-radio.entry.js +4 -4
  158. package/dist/esm/pds-row.entry.js +1 -1
  159. package/dist/esm/pds-select.entry.js +2 -2
  160. package/dist/esm/pds-sortable-item.entry.js +2 -2
  161. package/dist/esm/pds-sortable.entry.js +1 -1
  162. package/dist/esm/pds-switch.entry.js +4 -4
  163. package/dist/esm/pds-tab.entry.js +4 -4
  164. package/dist/esm/pds-tab.entry.js.map +1 -1
  165. package/dist/esm/pds-table-body.entry.js +1 -1
  166. package/dist/esm/pds-table-cell.entry.js +2 -2
  167. package/dist/esm/pds-table-head-cell.entry.js +33 -6
  168. package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
  169. package/dist/esm/pds-table-head.entry.js +1 -1
  170. package/dist/esm/pds-table-row.entry.js +1 -1
  171. package/dist/esm/pds-tabpanel.entry.js +1 -1
  172. package/dist/esm/pds-tabs.entry.js +1 -1
  173. package/dist/esm/pds-text.entry.js +1 -1
  174. package/dist/esm/pds-textarea.entry.js +5 -5
  175. package/dist/esm/pds-toast.entry.js +3 -3
  176. package/dist/esm/pds-tooltip.entry.js +3 -3
  177. package/dist/esm/pine-core.js +1 -1
  178. package/dist/esm-es5/floating-ui.dom-BO6p966C.js +2 -0
  179. package/dist/esm-es5/floating-ui.dom-BO6p966C.js.map +1 -0
  180. package/dist/esm-es5/{index-xbb79yLt.js → index-DY8eSueV.js} +1 -1
  181. package/dist/esm-es5/index-DY8eSueV.js.map +1 -0
  182. package/dist/esm-es5/loader.js +1 -1
  183. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  184. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  185. package/dist/esm-es5/pds-button.entry.js +1 -1
  186. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  187. package/dist/esm-es5/pds-chip.entry.js +1 -1
  188. package/dist/esm-es5/pds-combobox.entry.js +2 -2
  189. package/dist/esm-es5/pds-combobox.entry.js.map +1 -1
  190. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  191. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  192. package/dist/esm-es5/pds-dropdown-menu-item.entry.js.map +1 -1
  193. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  194. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +1 -1
  195. package/dist/esm-es5/pds-filter.entry.js +1 -1
  196. package/dist/esm-es5/pds-filter.entry.js.map +1 -1
  197. package/dist/esm-es5/pds-input.entry.js +1 -1
  198. package/dist/esm-es5/pds-link.entry.js +1 -1
  199. package/dist/esm-es5/pds-multiselect.entry.js +2 -0
  200. package/dist/esm-es5/pds-multiselect.entry.js.map +1 -0
  201. package/dist/esm-es5/pds-popover.entry.js +1 -1
  202. package/dist/esm-es5/pds-progress.entry.js +1 -1
  203. package/dist/esm-es5/pds-property.entry.js +1 -1
  204. package/dist/esm-es5/pds-radio-group.entry.js +1 -1
  205. package/dist/esm-es5/pds-radio.entry.js +1 -1
  206. package/dist/esm-es5/pds-row.entry.js +1 -1
  207. package/dist/esm-es5/pds-select.entry.js +1 -1
  208. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  209. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  210. package/dist/esm-es5/pds-switch.entry.js +1 -1
  211. package/dist/esm-es5/pds-tab.entry.js +1 -1
  212. package/dist/esm-es5/pds-tab.entry.js.map +1 -1
  213. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  214. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  215. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  216. package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
  217. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  218. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  219. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  220. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  221. package/dist/esm-es5/pds-text.entry.js +1 -1
  222. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  223. package/dist/esm-es5/pds-toast.entry.js +1 -1
  224. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  225. package/dist/esm-es5/pine-core.js +1 -1
  226. package/dist/pine-core/p-02f48157.system.entry.js +2 -0
  227. package/dist/pine-core/{p-b30424e3.system.entry.js → p-063afa19.system.entry.js} +2 -2
  228. package/dist/pine-core/p-0sPVsRFU.system.js.map +1 -0
  229. package/dist/pine-core/{p-15202869.entry.js → p-10dbe3e2.entry.js} +2 -2
  230. package/dist/pine-core/{p-5b7ab891.entry.js → p-12360e47.entry.js} +2 -2
  231. package/dist/pine-core/{p-ac14c8e3.system.entry.js → p-137b3289.system.entry.js} +2 -2
  232. package/dist/pine-core/{p-a737df90.entry.js → p-154a32f4.entry.js} +2 -2
  233. package/dist/pine-core/p-1ca116fa.entry.js +3 -0
  234. package/dist/pine-core/p-1ca116fa.entry.js.map +1 -0
  235. package/dist/pine-core/{p-a847fad3.entry.js → p-2537aacb.entry.js} +2 -2
  236. package/dist/pine-core/{p-4d25449c.entry.js → p-2cd0d520.entry.js} +2 -2
  237. package/dist/pine-core/{p-cd335ec2.system.entry.js → p-2fe330d0.system.entry.js} +2 -2
  238. package/dist/pine-core/p-30ea3668.system.entry.js +2 -0
  239. package/dist/pine-core/{p-1daf66d1.entry.js → p-31168da5.entry.js} +2 -2
  240. package/dist/pine-core/{p-732e2564.system.entry.js → p-325b3b0d.system.entry.js} +2 -2
  241. package/dist/pine-core/p-32c13896.system.entry.js +2 -0
  242. package/dist/pine-core/p-32c13896.system.entry.js.map +1 -0
  243. package/dist/pine-core/{p-95f2782c.entry.js → p-3f97a965.entry.js} +2 -2
  244. package/dist/pine-core/{p-ff182316.system.entry.js → p-40988b4d.system.entry.js} +2 -2
  245. package/dist/pine-core/{p-b02936d2.entry.js → p-415ba884.entry.js} +2 -2
  246. package/dist/pine-core/p-475bb340.entry.js +2 -0
  247. package/dist/pine-core/p-475bb340.entry.js.map +1 -0
  248. package/dist/pine-core/{p-CGo2P4Fr.system.js.map → p-4EbKXnVN.system.js.map} +1 -1
  249. package/dist/pine-core/{p-4SEjggIC.system.js.map → p-4alPHnzl.system.js.map} +1 -1
  250. package/dist/pine-core/{p-9bfaed7e.system.entry.js → p-4c23c75b.system.entry.js} +2 -2
  251. package/dist/pine-core/{p-bdf8bff3.system.entry.js → p-4d85945b.system.entry.js} +2 -2
  252. package/dist/pine-core/{p-3f8b0885.system.entry.js → p-4d9eee67.system.entry.js} +2 -2
  253. package/dist/pine-core/{p-4fD2iHS9.system.js.map → p-4f1cRPxE.system.js.map} +1 -1
  254. package/dist/pine-core/{p-e2104c31.entry.js → p-5040a872.entry.js} +2 -2
  255. package/dist/pine-core/p-51114c2b.system.entry.js +2 -0
  256. package/dist/pine-core/p-51114c2b.system.entry.js.map +1 -0
  257. package/dist/pine-core/{p-bbc349b3.system.entry.js → p-5b3ac18e.system.entry.js} +2 -2
  258. package/dist/pine-core/{p-bbc349b3.system.entry.js.map → p-5b3ac18e.system.entry.js.map} +1 -1
  259. package/dist/pine-core/{p-a08b60ae.entry.js → p-5b9110fe.entry.js} +2 -2
  260. package/dist/pine-core/{p-e3d76aa3.system.entry.js → p-5c982339.system.entry.js} +2 -2
  261. package/dist/pine-core/{p-94b1997d.system.entry.js → p-5e92aa34.system.entry.js} +2 -2
  262. package/dist/pine-core/{p-41d89f20.entry.js → p-5f2865df.entry.js} +2 -2
  263. package/dist/pine-core/{p-41d89f20.entry.js.map → p-5f2865df.entry.js.map} +1 -1
  264. package/dist/pine-core/p-6321b70b.entry.js +2 -0
  265. package/dist/pine-core/p-6321b70b.entry.js.map +1 -0
  266. package/dist/pine-core/p-63269b89.entry.js +2 -0
  267. package/dist/pine-core/p-6e862168.system.entry.js +2 -0
  268. package/dist/pine-core/{p-dcc6ad67.system.entry.js.map → p-6e862168.system.entry.js.map} +1 -1
  269. package/dist/pine-core/{p-cf2e1c07.system.entry.js → p-70aa35fc.system.entry.js} +2 -2
  270. package/dist/pine-core/{p-fc0ee6da.entry.js → p-757c7b80.entry.js} +2 -2
  271. package/dist/pine-core/{p-1df25b57.system.entry.js → p-78ee2e08.system.entry.js} +2 -2
  272. package/dist/pine-core/{p-2319298c.system.entry.js → p-7b5c8248.system.entry.js} +2 -2
  273. package/dist/pine-core/{p-dad604e4.system.entry.js → p-84c7f663.system.entry.js} +2 -2
  274. package/dist/pine-core/{p-f9ef2f74.system.entry.js → p-87eb8d4b.system.entry.js} +2 -2
  275. package/dist/pine-core/p-8b201c9a.system.entry.js +2 -0
  276. package/dist/pine-core/p-8b201c9a.system.entry.js.map +1 -0
  277. package/dist/pine-core/p-8eb1c168.entry.js +2 -0
  278. package/dist/pine-core/{p-e5bc22b6.system.entry.js → p-8fdb10c4.system.entry.js} +2 -2
  279. package/dist/pine-core/{p-232e4282.system.entry.js → p-90615423.system.entry.js} +2 -2
  280. package/dist/pine-core/{p-f79f6f08.system.entry.js → p-932283cf.system.entry.js} +2 -2
  281. package/dist/pine-core/{p-0b05708b.entry.js → p-9ada659b.entry.js} +2 -2
  282. package/dist/pine-core/{p-4778ae70.entry.js → p-9bb6cc3d.entry.js} +2 -2
  283. package/dist/pine-core/{p-3f6b9520.entry.js → p-9c928c44.entry.js} +2 -2
  284. package/dist/pine-core/{p-646ac76d.entry.js → p-9e4fc025.entry.js} +2 -2
  285. package/dist/pine-core/{p-e8aad8dc.entry.js → p-9eccf7b9.entry.js} +2 -2
  286. package/dist/pine-core/{p-WhfStK1C.system.js.map → p-B0Otb6kF.system.js.map} +1 -1
  287. package/dist/pine-core/{p-CUmDvil2.system.js.map → p-BA95hFrH.system.js.map} +1 -1
  288. package/dist/pine-core/{p-B4EMeCRH.system.js.map → p-BHjZufAO.system.js.map} +1 -1
  289. package/dist/pine-core/{p-DC2NZwtk.system.js.map → p-BJE1EIse.system.js.map} +1 -1
  290. package/dist/pine-core/{p-IH8oGXiE.system.js.map → p-BJtTt670.system.js.map} +1 -1
  291. package/dist/pine-core/p-BO6p966C.js +2 -0
  292. package/dist/pine-core/p-BO6p966C.js.map +1 -0
  293. package/dist/pine-core/{p-jBhqNO5u.system.js.map → p-BSRmAvMC.system.js.map} +1 -1
  294. package/dist/pine-core/{p-DyrNlfLT.system.js.map → p-BTe59phF.system.js.map} +1 -1
  295. package/dist/pine-core/{p-PMNjgK0C.system.js.map → p-BmKJgY0X.system.js.map} +1 -1
  296. package/dist/pine-core/{p-B0Y1Zs9b.system.js.map → p-Bn36FPag.system.js.map} +1 -1
  297. package/dist/pine-core/p-CBCT89qf.system.js.map +1 -0
  298. package/dist/pine-core/{p-DpeOrUYB.system.js.map → p-CG5jdxoZ.system.js.map} +1 -1
  299. package/dist/pine-core/{p-CKzDRRgx.system.js → p-CP48ADFM.system.js} +1 -1
  300. package/dist/pine-core/p-CP48ADFM.system.js.map +1 -0
  301. package/dist/pine-core/p-CR01VmO6.system.js.map +1 -0
  302. package/dist/pine-core/{p-CAnnMfDw.system.js.map → p-CSLo9qKS.system.js.map} +1 -1
  303. package/dist/pine-core/{p-DmVKABQy.system.js.map → p-CboCokff.system.js.map} +1 -1
  304. package/dist/pine-core/{p-XCTiWii8.system.js.map → p-CfZCQYfD.system.js.map} +1 -1
  305. package/dist/pine-core/{p-r_cS5LMw.system.js.map → p-Civ2VHC7.system.js.map} +1 -1
  306. package/dist/pine-core/{p-ChiYqN-p.system.js.map → p-CmquVvkz.system.js.map} +1 -1
  307. package/dist/pine-core/{p-tHMXRB8d.system.js.map → p-CpyTw2IQ.system.js.map} +1 -1
  308. package/dist/pine-core/{p-Brpt0zl5.system.js.map → p-Ct9csNdF.system.js.map} +1 -1
  309. package/dist/pine-core/{p-B_Co5NfG.system.js.map → p-Cun139qe.system.js.map} +1 -1
  310. package/dist/pine-core/p-D2eS6fhD.system.js +2 -0
  311. package/dist/pine-core/p-D2eS6fhD.system.js.map +1 -0
  312. package/dist/pine-core/{p-CTfQ_9yC.system.js.map → p-DFXWnbHE.system.js.map} +1 -1
  313. package/dist/pine-core/{p-xbb79yLt.js → p-DY8eSueV.js} +1 -1
  314. package/dist/pine-core/p-DY8eSueV.js.map +1 -0
  315. package/dist/pine-core/{p-CXGuX44q.system.js.map → p-DaXZLSA0.system.js.map} +1 -1
  316. package/dist/pine-core/{p-DB45WSlG.system.js.map → p-DwQewDCV.system.js.map} +1 -1
  317. package/dist/pine-core/p-JAVnELnm.system.js +1 -1
  318. package/dist/pine-core/{p-DAvCgWA9.system.js.map → p-Lk6DnEPT.system.js.map} +1 -1
  319. package/dist/pine-core/{p-Bjj4Pcbb.system.js.map → p-YqHO7iPZ.system.js.map} +1 -1
  320. package/dist/pine-core/{p-00568c20.system.entry.js → p-a07b8e45.system.entry.js} +2 -2
  321. package/dist/pine-core/p-a3bCMZF8.system.js.map +1 -0
  322. package/dist/pine-core/{p-c5013d20.entry.js → p-a3cdff85.entry.js} +2 -2
  323. package/dist/pine-core/{p-a4b16b32.system.entry.js → p-a5b24b1d.system.entry.js} +2 -2
  324. package/dist/pine-core/{p-596acf65.entry.js → p-a99e8caf.entry.js} +2 -2
  325. package/dist/pine-core/{p-002fe322.system.entry.js → p-ac240034.system.entry.js} +2 -2
  326. package/dist/pine-core/{p-fe28b975.system.entry.js → p-b9650ed9.system.entry.js} +2 -2
  327. package/dist/pine-core/{p-f8fba315.entry.js → p-bc85016b.entry.js} +2 -2
  328. package/dist/pine-core/{p-61588eac.entry.js → p-bddc9c5a.entry.js} +2 -2
  329. package/dist/pine-core/{p--gPqixhD.system.js.map → p-bs74TBAh.system.js.map} +1 -1
  330. package/dist/pine-core/{p-7de73ac5.entry.js → p-c24d11c7.entry.js} +2 -2
  331. package/dist/pine-core/p-c292e5da.system.entry.js +2 -0
  332. package/dist/pine-core/{p-6bc7d67f.system.entry.js.map → p-c292e5da.system.entry.js.map} +1 -1
  333. package/dist/pine-core/p-c68bceb1.entry.js +2 -0
  334. package/dist/pine-core/{p-478d1107.entry.js.map → p-c68bceb1.entry.js.map} +1 -1
  335. package/dist/pine-core/{p-0ace9c16.entry.js → p-c7c00a27.entry.js} +2 -2
  336. package/dist/pine-core/{p-cb6c279a.system.entry.js → p-cac3128b.system.entry.js} +2 -2
  337. package/dist/pine-core/p-ccab748a.entry.js +2 -0
  338. package/dist/pine-core/p-ccab748a.entry.js.map +1 -0
  339. package/dist/pine-core/{p-098cbcd7.system.entry.js → p-cfb24f97.system.entry.js} +2 -2
  340. package/dist/pine-core/p-d41112ad.entry.js +2 -0
  341. package/dist/pine-core/{p-f82b464c.entry.js.map → p-d41112ad.entry.js.map} +1 -1
  342. package/dist/pine-core/{p-6cba6806.entry.js → p-d6302edd.entry.js} +2 -2
  343. package/dist/pine-core/{p-04294b28.system.entry.js → p-daa36570.system.entry.js} +2 -2
  344. package/dist/pine-core/p-db06ad25.system.entry.js +4 -0
  345. package/dist/pine-core/p-db06ad25.system.entry.js.map +1 -0
  346. package/dist/pine-core/{p-15650db8.entry.js → p-e6dc2297.entry.js} +2 -2
  347. package/dist/pine-core/{p-9f53eb94.system.entry.js → p-e8cf15d7.system.entry.js} +2 -2
  348. package/dist/pine-core/p-eb026745.entry.js +2 -0
  349. package/dist/pine-core/{p-e011d7e5.entry.js → p-fa05ea14.entry.js} +2 -2
  350. package/dist/pine-core/{p-D8Jc24Qq.system.js.map → p-htODgUCV.system.js.map} +1 -1
  351. package/dist/pine-core/{p-DYq1Mef8.system.js.map → p-j0609tLE.system.js.map} +1 -1
  352. package/dist/pine-core/{p-DoP8Sl1O.system.js.map → p-rcUX-rt5.system.js.map} +1 -1
  353. package/dist/pine-core/{p-DSwKfctG.system.js.map → p-uyztncxJ.system.js.map} +1 -1
  354. package/dist/pine-core/pds-combobox.entry.esm.js.map +1 -1
  355. package/dist/pine-core/pds-dropdown-menu-item.entry.esm.js.map +1 -1
  356. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -1
  357. package/dist/pine-core/pds-filter.entry.esm.js.map +1 -1
  358. package/dist/pine-core/pds-multiselect.entry.esm.js.map +1 -0
  359. package/dist/pine-core/pds-tab.entry.esm.js.map +1 -1
  360. package/dist/pine-core/pds-table-head-cell.entry.esm.js.map +1 -1
  361. package/dist/pine-core/pine-core.esm.js +1 -1
  362. package/dist/types/components/pds-multiselect/multiselect-interface.d.ts +24 -0
  363. package/dist/types/components/pds-multiselect/pds-multiselect.d.ts +175 -0
  364. package/dist/types/components/pds-table/pds-table-head-cell/pds-table-head-cell.d.ts +10 -0
  365. package/dist/types/components.d.ts +250 -0
  366. package/dist/vscode.html-data.json +156 -0
  367. package/hydrate/index.js +918 -100
  368. package/hydrate/index.mjs +918 -100
  369. package/package.json +5 -5
  370. package/dist/cjs/floating-ui.dom-DTAy35nv.js.map +0 -1
  371. package/dist/cjs/index-CMeuo765.js.map +0 -1
  372. package/dist/esm/floating-ui.dom-DbQzNDdQ.js.map +0 -1
  373. package/dist/esm/index-xbb79yLt.js.map +0 -1
  374. package/dist/esm-es5/floating-ui.dom-DbQzNDdQ.js +0 -2
  375. package/dist/esm-es5/floating-ui.dom-DbQzNDdQ.js.map +0 -1
  376. package/dist/esm-es5/index-xbb79yLt.js.map +0 -1
  377. package/dist/pine-core/p-43990889.entry.js +0 -2
  378. package/dist/pine-core/p-478d1107.entry.js +0 -2
  379. package/dist/pine-core/p-534e44cb.system.entry.js +0 -4
  380. package/dist/pine-core/p-534e44cb.system.entry.js.map +0 -1
  381. package/dist/pine-core/p-54a56826.entry.js +0 -3
  382. package/dist/pine-core/p-54a56826.entry.js.map +0 -1
  383. package/dist/pine-core/p-553e4543.entry.js +0 -2
  384. package/dist/pine-core/p-553e4543.entry.js.map +0 -1
  385. package/dist/pine-core/p-5f6cd30d.system.entry.js +0 -2
  386. package/dist/pine-core/p-5f6cd30d.system.entry.js.map +0 -1
  387. package/dist/pine-core/p-6bc7d67f.system.entry.js +0 -2
  388. package/dist/pine-core/p-9e62c418.system.entry.js +0 -2
  389. package/dist/pine-core/p-9e62c418.system.entry.js.map +0 -1
  390. package/dist/pine-core/p-BOmQOnQe.system.js +0 -2
  391. package/dist/pine-core/p-BOmQOnQe.system.js.map +0 -1
  392. package/dist/pine-core/p-Bnp3zJ0T.system.js.map +0 -1
  393. package/dist/pine-core/p-CKzDRRgx.system.js.map +0 -1
  394. package/dist/pine-core/p-DbQzNDdQ.js +0 -2
  395. package/dist/pine-core/p-DbQzNDdQ.js.map +0 -1
  396. package/dist/pine-core/p-DfCCzxYg.system.js.map +0 -1
  397. package/dist/pine-core/p-X0_TH-op.system.js.map +0 -1
  398. package/dist/pine-core/p-ac2f9463.entry.js +0 -2
  399. package/dist/pine-core/p-ac2f9463.entry.js.map +0 -1
  400. package/dist/pine-core/p-b59a0c6b.system.entry.js +0 -2
  401. package/dist/pine-core/p-d0e336b7.system.entry.js +0 -2
  402. package/dist/pine-core/p-dcc6ad67.system.entry.js +0 -2
  403. package/dist/pine-core/p-e7e25d42.entry.js +0 -2
  404. package/dist/pine-core/p-f82b464c.entry.js +0 -2
  405. package/dist/pine-core/p-f92055f3.entry.js +0 -2
  406. package/dist/pine-core/p-xbb79yLt.js.map +0 -1
  407. /package/dist/pine-core/{p-b59a0c6b.system.entry.js.map → p-02f48157.system.entry.js.map} +0 -0
  408. /package/dist/pine-core/{p-b30424e3.system.entry.js.map → p-063afa19.system.entry.js.map} +0 -0
  409. /package/dist/pine-core/{p-15202869.entry.js.map → p-10dbe3e2.entry.js.map} +0 -0
  410. /package/dist/pine-core/{p-5b7ab891.entry.js.map → p-12360e47.entry.js.map} +0 -0
  411. /package/dist/pine-core/{p-ac14c8e3.system.entry.js.map → p-137b3289.system.entry.js.map} +0 -0
  412. /package/dist/pine-core/{p-a737df90.entry.js.map → p-154a32f4.entry.js.map} +0 -0
  413. /package/dist/pine-core/{p-a847fad3.entry.js.map → p-2537aacb.entry.js.map} +0 -0
  414. /package/dist/pine-core/{p-4d25449c.entry.js.map → p-2cd0d520.entry.js.map} +0 -0
  415. /package/dist/pine-core/{p-cd335ec2.system.entry.js.map → p-2fe330d0.system.entry.js.map} +0 -0
  416. /package/dist/pine-core/{p-d0e336b7.system.entry.js.map → p-30ea3668.system.entry.js.map} +0 -0
  417. /package/dist/pine-core/{p-1daf66d1.entry.js.map → p-31168da5.entry.js.map} +0 -0
  418. /package/dist/pine-core/{p-732e2564.system.entry.js.map → p-325b3b0d.system.entry.js.map} +0 -0
  419. /package/dist/pine-core/{p-95f2782c.entry.js.map → p-3f97a965.entry.js.map} +0 -0
  420. /package/dist/pine-core/{p-ff182316.system.entry.js.map → p-40988b4d.system.entry.js.map} +0 -0
  421. /package/dist/pine-core/{p-b02936d2.entry.js.map → p-415ba884.entry.js.map} +0 -0
  422. /package/dist/pine-core/{p-9bfaed7e.system.entry.js.map → p-4c23c75b.system.entry.js.map} +0 -0
  423. /package/dist/pine-core/{p-bdf8bff3.system.entry.js.map → p-4d85945b.system.entry.js.map} +0 -0
  424. /package/dist/pine-core/{p-3f8b0885.system.entry.js.map → p-4d9eee67.system.entry.js.map} +0 -0
  425. /package/dist/pine-core/{p-e2104c31.entry.js.map → p-5040a872.entry.js.map} +0 -0
  426. /package/dist/pine-core/{p-a08b60ae.entry.js.map → p-5b9110fe.entry.js.map} +0 -0
  427. /package/dist/pine-core/{p-e3d76aa3.system.entry.js.map → p-5c982339.system.entry.js.map} +0 -0
  428. /package/dist/pine-core/{p-94b1997d.system.entry.js.map → p-5e92aa34.system.entry.js.map} +0 -0
  429. /package/dist/pine-core/{p-43990889.entry.js.map → p-63269b89.entry.js.map} +0 -0
  430. /package/dist/pine-core/{p-cf2e1c07.system.entry.js.map → p-70aa35fc.system.entry.js.map} +0 -0
  431. /package/dist/pine-core/{p-fc0ee6da.entry.js.map → p-757c7b80.entry.js.map} +0 -0
  432. /package/dist/pine-core/{p-1df25b57.system.entry.js.map → p-78ee2e08.system.entry.js.map} +0 -0
  433. /package/dist/pine-core/{p-2319298c.system.entry.js.map → p-7b5c8248.system.entry.js.map} +0 -0
  434. /package/dist/pine-core/{p-dad604e4.system.entry.js.map → p-84c7f663.system.entry.js.map} +0 -0
  435. /package/dist/pine-core/{p-f9ef2f74.system.entry.js.map → p-87eb8d4b.system.entry.js.map} +0 -0
  436. /package/dist/pine-core/{p-e7e25d42.entry.js.map → p-8eb1c168.entry.js.map} +0 -0
  437. /package/dist/pine-core/{p-e5bc22b6.system.entry.js.map → p-8fdb10c4.system.entry.js.map} +0 -0
  438. /package/dist/pine-core/{p-232e4282.system.entry.js.map → p-90615423.system.entry.js.map} +0 -0
  439. /package/dist/pine-core/{p-f79f6f08.system.entry.js.map → p-932283cf.system.entry.js.map} +0 -0
  440. /package/dist/pine-core/{p-0b05708b.entry.js.map → p-9ada659b.entry.js.map} +0 -0
  441. /package/dist/pine-core/{p-4778ae70.entry.js.map → p-9bb6cc3d.entry.js.map} +0 -0
  442. /package/dist/pine-core/{p-3f6b9520.entry.js.map → p-9c928c44.entry.js.map} +0 -0
  443. /package/dist/pine-core/{p-646ac76d.entry.js.map → p-9e4fc025.entry.js.map} +0 -0
  444. /package/dist/pine-core/{p-e8aad8dc.entry.js.map → p-9eccf7b9.entry.js.map} +0 -0
  445. /package/dist/pine-core/{p-00568c20.system.entry.js.map → p-a07b8e45.system.entry.js.map} +0 -0
  446. /package/dist/pine-core/{p-c5013d20.entry.js.map → p-a3cdff85.entry.js.map} +0 -0
  447. /package/dist/pine-core/{p-a4b16b32.system.entry.js.map → p-a5b24b1d.system.entry.js.map} +0 -0
  448. /package/dist/pine-core/{p-596acf65.entry.js.map → p-a99e8caf.entry.js.map} +0 -0
  449. /package/dist/pine-core/{p-002fe322.system.entry.js.map → p-ac240034.system.entry.js.map} +0 -0
  450. /package/dist/pine-core/{p-fe28b975.system.entry.js.map → p-b9650ed9.system.entry.js.map} +0 -0
  451. /package/dist/pine-core/{p-f8fba315.entry.js.map → p-bc85016b.entry.js.map} +0 -0
  452. /package/dist/pine-core/{p-61588eac.entry.js.map → p-bddc9c5a.entry.js.map} +0 -0
  453. /package/dist/pine-core/{p-7de73ac5.entry.js.map → p-c24d11c7.entry.js.map} +0 -0
  454. /package/dist/pine-core/{p-0ace9c16.entry.js.map → p-c7c00a27.entry.js.map} +0 -0
  455. /package/dist/pine-core/{p-cb6c279a.system.entry.js.map → p-cac3128b.system.entry.js.map} +0 -0
  456. /package/dist/pine-core/{p-098cbcd7.system.entry.js.map → p-cfb24f97.system.entry.js.map} +0 -0
  457. /package/dist/pine-core/{p-6cba6806.entry.js.map → p-d6302edd.entry.js.map} +0 -0
  458. /package/dist/pine-core/{p-04294b28.system.entry.js.map → p-daa36570.system.entry.js.map} +0 -0
  459. /package/dist/pine-core/{p-15650db8.entry.js.map → p-e6dc2297.entry.js.map} +0 -0
  460. /package/dist/pine-core/{p-9f53eb94.system.entry.js.map → p-e8cf15d7.system.entry.js.map} +0 -0
  461. /package/dist/pine-core/{p-f92055f3.entry.js.map → p-eb026745.entry.js.map} +0 -0
  462. /package/dist/pine-core/{p-e011d7e5.entry.js.map → p-fa05ea14.entry.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class PdsTableBody {
3
3
  render() {
4
- return (h(Host, { key: '299a00424cf34acb2d2cbddf2c51c853558f270d', role: "rowgroup", part: "body" }, h("slot", { key: '718b97595d037cf6c19e8bfb2a9702a2a3fc1058' })));
4
+ return (h(Host, { key: '1f6ce73abaf0ecb3f592f754bedef557c7ea197d', role: "rowgroup", part: "body" }, h("slot", { key: '4a9758bb6c17de60cb345216d9b3e7c58cd44499' })));
5
5
  }
6
6
  static get is() { return "pds-table-body"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -94,11 +94,11 @@ export class PdsTableCell {
94
94
  return classNames.join(' ');
95
95
  }
96
96
  render() {
97
- return (h(Host, { key: '996bf5f70f450e57b0c44023ddf5f44f6af8e367', class: this.classNames(), role: "gridcell", part: "cell", style: this.tableRef &&
97
+ return (h(Host, { key: '102c412e68bd877ee88866d2c66838d62cb7cab2', class: this.classNames(), role: "gridcell", part: "cell", style: this.tableRef &&
98
98
  this.tableRef.fixedColumn &&
99
99
  this.tableRef.selectable
100
100
  ? { '--fixed-cell-position': '40px' }
101
- : {} }, h("slot", { key: 'f6e5fc35adeb18fa939534f3b409b282d121a797' })));
101
+ : {} }, h("slot", { key: 'fae2d378d6e1c5c3abb34cb4a75b74930d56965c' })));
102
102
  }
103
103
  static get is() { return "pds-table-cell"; }
104
104
  static get encapsulation() { return "shadow"; }
@@ -42,7 +42,7 @@ export class PdsTableHead {
42
42
  }
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: 'ebcbe90052f2f4b5aa6e3a09a7b23c46e5aba90f', role: "row", part: "head" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: 'cd43463e58db8244439d07b3826534a70028c1a4', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, h("pds-checkbox", { key: 'd6f4e05806a2c823188bc01fdc7a299aab9bf7d7', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", hideLabel: true, checked: this.isSelected, part: "select-all-checkbox" }))), h("slot", { key: '8f86dd51b56f5c37cdcfbd3b2513b0e92c6e4c14' })));
45
+ return (h(Host, { key: 'b68c0d7259cfced019c138dc4504c142e7e12ff9', role: "row", part: "head" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: '90c91ee525359986e7878e8ae647411bf9b4a637', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, h("pds-checkbox", { key: 'd79ebef09df3424ed36d8838ecdc5ca6a0029c8a', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", hideLabel: true, checked: this.isSelected, part: "select-all-checkbox" }))), h("slot", { key: '17eca8a861fceb73b8d957ab0d5ba2cf7b256b55' })));
46
46
  }
47
47
  static get is() { return "pds-table-head"; }
48
48
  static get encapsulation() { return "shadow"; }
@@ -28,6 +28,11 @@ export class PdsTableHeadCell {
28
28
  * @defaultValue false
29
29
  */
30
30
  this.hasHeadBackground = false;
31
+ /**
32
+ * Determines if this column is the currently active sorted column.
33
+ * @defaultValue false
34
+ */
35
+ this.isActive = false;
31
36
  /**
32
37
  * Handles scroll events to update fixed column shadow state.
33
38
  * Updates the tableScrolling state to control CSS classes for fixed column shadows.
@@ -46,12 +51,25 @@ export class PdsTableHeadCell {
46
51
  };
47
52
  this.toggleSort = () => {
48
53
  if (this.sortable) {
54
+ // Guard: return early if tableRef is not available
55
+ if (!this.tableRef) {
56
+ return;
57
+ }
49
58
  const column = this.hostElement.innerText.trim();
59
+ // Always toggle the direction (preserves original behavior)
50
60
  this.sortingDirection = this.sortingDirection === 'asc' ? 'desc' : 'asc';
51
- this.tableRef.querySelectorAll('pds-table-head-cell').forEach((headCell) => {
52
- headCell.classList.remove('is-active');
61
+ // Reset all OTHER head cells to inactive state (skip the current one)
62
+ this.tableRef.querySelectorAll('pds-table-head-cell').forEach(async (headCell) => {
63
+ // Skip clearing the current cell
64
+ if (headCell !== this.hostElement) {
65
+ const headCellComponent = headCell;
66
+ await headCellComponent.clearActiveSort();
67
+ }
53
68
  });
54
- this.hostElement.classList.toggle('is-active');
69
+ // Mark this column as active
70
+ this.isActive = true;
71
+ this.hostElement.classList.add('is-active');
72
+ // Emit the sort event with the current direction
55
73
  this.pdsTableSort.emit({ column, direction: this.sortingDirection });
56
74
  }
57
75
  };
@@ -65,8 +83,17 @@ export class PdsTableHeadCell {
65
83
  if (!this.sortable)
66
84
  return;
67
85
  this.sortingDirection = direction;
86
+ this.isActive = true;
68
87
  this.hostElement.classList.add('is-active');
69
88
  }
89
+ /**
90
+ * Clears the active sort state from this column.
91
+ * Used internally when another column becomes active.
92
+ */
93
+ async clearActiveSort() {
94
+ this.isActive = false;
95
+ this.hostElement.classList.remove('is-active');
96
+ }
70
97
  componentWillLoad() {
71
98
  // Set initial references and state before first render
72
99
  this.tableRef = this.hostElement.closest('pds-table');
@@ -171,11 +198,11 @@ export class PdsTableHeadCell {
171
198
  return classNames.join(' ');
172
199
  }
173
200
  render() {
174
- return (h(Host, { key: '18228c7b1950668f12f983d9e5364bbf2deb3f1a', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
201
+ return (h(Host, { key: '7e85fb5e6b5fc1022034db9e4c94ca13dfc56257', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
175
202
  this.tableRef.fixedColumn &&
176
203
  this.tableRef.selectable
177
204
  ? { '--fixed-cell-position': '40px' }
178
- : {} }, h("slot", { key: '283f5e031cc8fe521c25af8060ce51c3ebaffa93' }), this.sortable && (h("pds-icon", { key: 'a7e172c6fbf1185ab9885af04bcf2f2449370e6b', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
205
+ : {} }, h("slot", { key: '97d2b9621f7d61ad42719a4cc9f640a1210d78dc' }), this.sortable && this.isActive && (h("pds-icon", { key: 'd80efe9b417ae34bf50f65b0e9cb15bcc9aabd40', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
179
206
  }
180
207
  static get is() { return "pds-table-head-cell"; }
181
208
  static get encapsulation() { return "shadow"; }
@@ -237,7 +264,8 @@ export class PdsTableHeadCell {
237
264
  "tableScrolling": {},
238
265
  "isSelected": {},
239
266
  "hasHeadBorder": {},
240
- "hasHeadBackground": {}
267
+ "hasHeadBackground": {},
268
+ "isActive": {}
241
269
  };
242
270
  }
243
271
  static get events() {
@@ -283,6 +311,23 @@ export class PdsTableHeadCell {
283
311
  "text": "direction - The sort direction to apply ('asc' or 'desc')"
284
312
  }]
285
313
  }
314
+ },
315
+ "clearActiveSort": {
316
+ "complexType": {
317
+ "signature": "() => Promise<void>",
318
+ "parameters": [],
319
+ "references": {
320
+ "Promise": {
321
+ "location": "global",
322
+ "id": "global::Promise"
323
+ }
324
+ },
325
+ "return": "Promise<void>"
326
+ },
327
+ "docs": {
328
+ "text": "Clears the active sort state from this column.\nUsed internally when another column becomes active.",
329
+ "tags": []
330
+ }
286
331
  }
287
332
  };
288
333
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pds-table-head-cell.js","sourceRoot":"","sources":["../../../../../src/components/pds-table/pds-table-head-cell/pds-table-head-cell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEtG,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAO1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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Prop, h, Event, EventEmitter, State, Method } from '@stencil/core';\n\nimport { downSmall, upSmall } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-table-head-cell',\n styleUrls: ['pds-table-head-cell.scss'],\n shadow: true,\n})\nexport class PdsTableHeadCell {\n @Element() hostElement: HTMLPdsTableHeadCellElement;\n private tableRef: HTMLPdsTableElement;\n private scrollContainer: HTMLElement | null = null;\n private setupTimer: number | undefined;\n private setupRetries: number = 0;\n private headObserver?: MutationObserver;\n\n /**\n * Sets the text alignment within the head cell.\n */\n @Prop() cellAlign?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Determines whether the table column is sortable when set to `true`.\n */\n @Prop() sortable: boolean;\n\n /**\n * Event emitted to signal that a table column header has been sorted, providing information about the sorted column's name and sorting direction.\n */\n @Event() pdsTableSort: EventEmitter<{ column: string; direction: string }>;\n\n /**\n * The direction of sorting.\n */\n @State() private sortingDirection: 'asc' | 'desc' = 'asc';\n\n /**\n * Determines if the table is currently scrolling.\n * @defaultValue false\n */\n @State() private tableScrolling: boolean = false;\n\n /**\n * Determines if the table row is currently selected.\n * @defaultValue false\n */\n @State() isSelected: boolean = false;\n\n /**\n * Determines if the parent table-head has the border attribute.\n * @defaultValue false\n */\n @State() private hasHeadBorder: boolean = false;\n\n /**\n * Determines if the parent table-head has the background attribute.\n * @defaultValue false\n */\n @State() private hasHeadBackground: boolean = false;\n\n /**\n * Programmatically sets this column as the active sort column with the specified direction.\n * Used by pds-table to apply a default sort on initial load.\n * @param direction - The sort direction to apply ('asc' or 'desc')\n */\n @Method()\n async setActiveSort(direction: 'asc' | 'desc') {\n if (!this.sortable) return;\n\n this.sortingDirection = direction;\n this.hostElement.classList.add('is-active');\n }\n\n componentWillLoad() {\n // Set initial references and state before first render\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n const tableHead = this.hostElement.closest('pds-table-head') as HTMLElement;\n if (tableHead) {\n this.hasHeadBorder = tableHead.hasAttribute('border');\n this.hasHeadBackground = tableHead.hasAttribute('background');\n }\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n // For responsive tables with fixed columns, set up scroll detection\n // This enables the first column header to show a shadow when the table is scrolled horizontally\n this.setupScrollListener();\n }\n\n // Watch for changes to the parent table-head's border and background attributes\n const tableHead = this.hostElement.closest('pds-table-head') as HTMLElement;\n if (tableHead && typeof MutationObserver !== 'undefined') {\n // Defensive guard: disconnect existing observer before creating a new one\n if (this.headObserver) {\n this.headObserver.disconnect();\n }\n\n this.headObserver = new MutationObserver(() => {\n // Update state when border or background attributes change\n this.hasHeadBorder = tableHead.hasAttribute('border');\n this.hasHeadBackground = tableHead.hasAttribute('background');\n });\n\n this.headObserver.observe(tableHead, {\n attributes: true,\n attributeFilter: ['border', 'background']\n });\n }\n }\n\n disconnectedCallback() {\n this.cleanupScrollListener();\n\n if (this.headObserver) {\n this.headObserver.disconnect();\n }\n }\n\n\n private setupScrollListener() {\n if (!this.tableRef) return;\n\n // Query shadowRoot once and cache the container\n const container = this.tableRef.shadowRoot?.querySelector('.pds-table-responsive-container') as HTMLElement;\n\n if (container) {\n // Container available immediately\n this.scrollContainer = container;\n this.scrollContainer.addEventListener('scroll', this.handleScroll, { passive: true });\n this.handleScroll(); // Initial check\n this.setupRetries = 0; // Reset counter on success\n } else {\n // Container not ready, set up timer for retry with bounds\n this.setupTimer = window.setTimeout(() => {\n if (this.scrollContainer) return; // Already found\n this.setupRetries = (this.setupRetries || 0) + 1;\n if (this.setupRetries <= 50) {\n this.setupScrollListener();\n } else {\n console.warn('Failed to find responsive container after 50 attempts');\n }\n }, 100);\n }\n }\n\n private cleanupScrollListener() {\n if (this.scrollContainer) {\n this.scrollContainer.removeEventListener('scroll', this.handleScroll);\n this.scrollContainer = null;\n }\n\n if (this.setupTimer !== undefined) {\n window.clearTimeout(this.setupTimer);\n this.setupTimer = undefined;\n }\n\n this.setupRetries = 0; // Reset retry counter\n }\n\n /**\n * Handles scroll events to update fixed column shadow state.\n * Updates the tableScrolling state to control CSS classes for fixed column shadows.\n * @private\n */\n private handleScroll = () => {\n if (!this.scrollContainer) {\n return;\n }\n\n try {\n this.tableScrolling = this.scrollContainer.scrollLeft > 0;\n } catch (error) {\n console.warn('Scroll handler error:', error);\n }\n };\n\n private toggleSort = () => {\n if (this.sortable) {\n const column = this.hostElement.innerText.trim();\n this.sortingDirection = this.sortingDirection === 'asc' ? 'desc' : 'asc';\n\n this.tableRef.querySelectorAll('pds-table-head-cell').forEach((headCell) => {\n headCell.classList.remove('is-active');\n });\n\n this.hostElement.classList.toggle('is-active');\n this.pdsTableSort.emit({ column, direction: this.sortingDirection });\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.cellAlign) {\n classNames.push(`pds-table-head-cell--align-${this.cellAlign}`);\n }\n\n if (this.sortable) {\n classNames.push('is-sortable');\n }\n\n if (this.sortable && this.sortingDirection !== null) {\n classNames.push('sort-' + this.sortingDirection);\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n if (this.hasHeadBackground) {\n classNames.push('has-head-background');\n }\n\n if (this.hasHeadBorder) {\n classNames.push('has-head-border');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"columnheader\"\n onClick={this.toggleSort}\n part=\"head-cell\"\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n {this.sortable && (\n <pds-icon icon={this.sortingDirection === 'asc' ? upSmall : downSmall} part=\"sort-icon\" />\n )}\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-table-head-cell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E,CAAC;YAC3B,UAAU,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;QAED,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACvB,UAAU,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACrC,CAAC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,IAAI,CAAC,UAAU,EACxB,IAAI,EAAC,WAAW,EAChB,KAAK,EACH,IAAI,CAAC,QAAQ;gBACb,IAAI,CAAC,QAAQ,CAAC,WAAW;gBACzB,IAAI,CAAC,QAAQ,CAAC,UAAU;gBACtB,CAAC,CAAC,EAAE,uBAAuB,EAAE,MAAM,EAAE;gBACrC,CAAC,CAAC,EAAE;YAGR,8DAAa;YACZ,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,IAAI,CACjC,iEAAU,IAAI,EAAE,IAAI,CAAC,gBAAgB,KAAK,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,EAAC,WAAW,GAAG,CAC3F,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Prop, h, Event, EventEmitter, State, Method } from '@stencil/core';\n\nimport { downSmall, upSmall } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-table-head-cell',\n styleUrls: ['pds-table-head-cell.scss'],\n shadow: true,\n})\nexport class PdsTableHeadCell {\n @Element() hostElement: HTMLPdsTableHeadCellElement;\n private tableRef: HTMLPdsTableElement;\n private scrollContainer: HTMLElement | null = null;\n private setupTimer: number | undefined;\n private setupRetries: number = 0;\n private headObserver?: MutationObserver;\n\n /**\n * Sets the text alignment within the head cell.\n */\n @Prop() cellAlign?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Determines whether the table column is sortable when set to `true`.\n */\n @Prop() sortable: boolean;\n\n /**\n * Event emitted to signal that a table column header has been sorted, providing information about the sorted column's name and sorting direction.\n */\n @Event() pdsTableSort: EventEmitter<{ column: string; direction: string }>;\n\n /**\n * The direction of sorting.\n */\n @State() private sortingDirection: 'asc' | 'desc' = 'asc';\n\n /**\n * Determines if the table is currently scrolling.\n * @defaultValue false\n */\n @State() private tableScrolling: boolean = false;\n\n /**\n * Determines if the table row is currently selected.\n * @defaultValue false\n */\n @State() isSelected: boolean = false;\n\n /**\n * Determines if the parent table-head has the border attribute.\n * @defaultValue false\n */\n @State() private hasHeadBorder: boolean = false;\n\n /**\n * Determines if the parent table-head has the background attribute.\n * @defaultValue false\n */\n @State() private hasHeadBackground: boolean = false;\n\n /**\n * Determines if this column is the currently active sorted column.\n * @defaultValue false\n */\n @State() private isActive: boolean = false;\n\n /**\n * Programmatically sets this column as the active sort column with the specified direction.\n * Used by pds-table to apply a default sort on initial load.\n * @param direction - The sort direction to apply ('asc' or 'desc')\n */\n @Method()\n async setActiveSort(direction: 'asc' | 'desc') {\n if (!this.sortable) return;\n\n this.sortingDirection = direction;\n this.isActive = true;\n this.hostElement.classList.add('is-active');\n }\n\n /**\n * Clears the active sort state from this column.\n * Used internally when another column becomes active.\n */\n @Method()\n async clearActiveSort() {\n this.isActive = false;\n this.hostElement.classList.remove('is-active');\n }\n\n componentWillLoad() {\n // Set initial references and state before first render\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n const tableHead = this.hostElement.closest('pds-table-head') as HTMLElement;\n if (tableHead) {\n this.hasHeadBorder = tableHead.hasAttribute('border');\n this.hasHeadBackground = tableHead.hasAttribute('background');\n }\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n // For responsive tables with fixed columns, set up scroll detection\n // This enables the first column header to show a shadow when the table is scrolled horizontally\n this.setupScrollListener();\n }\n\n // Watch for changes to the parent table-head's border and background attributes\n const tableHead = this.hostElement.closest('pds-table-head') as HTMLElement;\n if (tableHead && typeof MutationObserver !== 'undefined') {\n // Defensive guard: disconnect existing observer before creating a new one\n if (this.headObserver) {\n this.headObserver.disconnect();\n }\n\n this.headObserver = new MutationObserver(() => {\n // Update state when border or background attributes change\n this.hasHeadBorder = tableHead.hasAttribute('border');\n this.hasHeadBackground = tableHead.hasAttribute('background');\n });\n\n this.headObserver.observe(tableHead, {\n attributes: true,\n attributeFilter: ['border', 'background']\n });\n }\n }\n\n disconnectedCallback() {\n this.cleanupScrollListener();\n\n if (this.headObserver) {\n this.headObserver.disconnect();\n }\n }\n\n\n private setupScrollListener() {\n if (!this.tableRef) return;\n\n // Query shadowRoot once and cache the container\n const container = this.tableRef.shadowRoot?.querySelector('.pds-table-responsive-container') as HTMLElement;\n\n if (container) {\n // Container available immediately\n this.scrollContainer = container;\n this.scrollContainer.addEventListener('scroll', this.handleScroll, { passive: true });\n this.handleScroll(); // Initial check\n this.setupRetries = 0; // Reset counter on success\n } else {\n // Container not ready, set up timer for retry with bounds\n this.setupTimer = window.setTimeout(() => {\n if (this.scrollContainer) return; // Already found\n this.setupRetries = (this.setupRetries || 0) + 1;\n if (this.setupRetries <= 50) {\n this.setupScrollListener();\n } else {\n console.warn('Failed to find responsive container after 50 attempts');\n }\n }, 100);\n }\n }\n\n private cleanupScrollListener() {\n if (this.scrollContainer) {\n this.scrollContainer.removeEventListener('scroll', this.handleScroll);\n this.scrollContainer = null;\n }\n\n if (this.setupTimer !== undefined) {\n window.clearTimeout(this.setupTimer);\n this.setupTimer = undefined;\n }\n\n this.setupRetries = 0; // Reset retry counter\n }\n\n /**\n * Handles scroll events to update fixed column shadow state.\n * Updates the tableScrolling state to control CSS classes for fixed column shadows.\n * @private\n */\n private handleScroll = () => {\n if (!this.scrollContainer) {\n return;\n }\n\n try {\n this.tableScrolling = this.scrollContainer.scrollLeft > 0;\n } catch (error) {\n console.warn('Scroll handler error:', error);\n }\n };\n\n private toggleSort = () => {\n if (this.sortable) {\n // Guard: return early if tableRef is not available\n if (!this.tableRef) {\n return;\n }\n\n const column = this.hostElement.innerText.trim();\n \n // Always toggle the direction (preserves original behavior)\n this.sortingDirection = this.sortingDirection === 'asc' ? 'desc' : 'asc';\n \n // Reset all OTHER head cells to inactive state (skip the current one)\n this.tableRef.querySelectorAll('pds-table-head-cell').forEach(async (headCell) => {\n // Skip clearing the current cell\n if (headCell !== this.hostElement) {\n const headCellComponent = headCell as HTMLPdsTableHeadCellElement;\n await headCellComponent.clearActiveSort();\n }\n });\n \n // Mark this column as active\n this.isActive = true;\n this.hostElement.classList.add('is-active');\n\n // Emit the sort event with the current direction\n this.pdsTableSort.emit({ column, direction: this.sortingDirection });\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.cellAlign) {\n classNames.push(`pds-table-head-cell--align-${this.cellAlign}`);\n }\n\n if (this.sortable) {\n classNames.push('is-sortable');\n }\n\n if (this.sortable && this.sortingDirection !== null) {\n classNames.push('sort-' + this.sortingDirection);\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n if (this.hasHeadBackground) {\n classNames.push('has-head-background');\n }\n\n if (this.hasHeadBorder) {\n classNames.push('has-head-border');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"columnheader\"\n onClick={this.toggleSort}\n part=\"head-cell\"\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n {this.sortable && this.isActive && (\n <pds-icon icon={this.sortingDirection === 'asc' ? upSmall : downSmall} part=\"sort-icon\" />\n )}\n </Host>\n );\n }\n}\n"]}
@@ -137,7 +137,7 @@ export class PdsTableRow {
137
137
  }
138
138
  }
139
139
  render() {
140
- return (h(Host, { key: 'dedf37f2841e51a325b6c414d3e7ec0072bdf78f', class: this.classNames(), role: "row", part: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: '3e9295398c8f48cb7aa78d10daf5201ae8f86e9f', part: this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: 'b786f181988110d3e3d47928da9290dfd79f5fbd', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected, part: "row-checkbox" }))), h("slot", { key: 'd37e3d44d34f81553060185d96fb44a55a40edc8' })));
140
+ return (h(Host, { key: '900905bc103a54d3f13b59a66cfd53178de0da49', class: this.classNames(), role: "row", part: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: 'f5a5a0426f15182e278b052090c71f45e8848347', part: this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: '1fd91b0d4bf412dc3a2705fcb5909e42a54bde56', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected, part: "row-checkbox" }))), h("slot", { key: '17a60a0251a36613cc8631efe780020d4a5e1167' })));
141
141
  }
142
142
  static get is() { return "pds-table-row"; }
143
143
  static get encapsulation() { return "shadow"; }
@@ -142,7 +142,7 @@ const ResponsiveTemplate = (args) => html`
142
142
  <pds-table-head-cell>Column Title</pds-table-head-cell>
143
143
  <pds-table-head-cell>Column Title</pds-table-head-cell>
144
144
  <pds-table-head-cell>Column Title</pds-table-head-cell>
145
- <pds-table-head-cell>Column Title</pds-table-head-cell>
145
+ <pds-table-head-cell>Actions</pds-table-head-cell>
146
146
  </pds-table-head>
147
147
  <pds-table-body>
148
148
  <pds-table-row value="responsive1">
@@ -157,7 +157,15 @@ const ResponsiveTemplate = (args) => html`
157
157
  <pds-table-cell>Row Item Juliett</pds-table-cell>
158
158
  <pds-table-cell>Row Item Kilo</pds-table-cell>
159
159
  <pds-table-cell>Row Item Lima</pds-table-cell>
160
- <pds-table-cell>Row Item Mike</pds-table-cell>
160
+ <pds-table-cell>
161
+ <pds-dropdown-menu placement="bottom-end">
162
+ <pds-button slot="trigger" size="sm" variant="icon-only"><pds-icon name="dot-menu-horizontal"></pds-icon></pds-button>
163
+ <pds-dropdown-menu-item>Edit</pds-dropdown-menu-item>
164
+ <pds-dropdown-menu-item>Duplicate</pds-dropdown-menu-item>
165
+ <pds-dropdown-menu-separator></pds-dropdown-menu-separator>
166
+ <pds-dropdown-menu-item destructive>Delete</pds-dropdown-menu-item>
167
+ </pds-dropdown-menu>
168
+ </pds-table-cell>
161
169
  </pds-table-row>
162
170
  <pds-table-row value="responsive2">
163
171
  <pds-table-cell>Row Item Alpha</pds-table-cell>
@@ -171,7 +179,15 @@ const ResponsiveTemplate = (args) => html`
171
179
  <pds-table-cell>Row Item Juliett</pds-table-cell>
172
180
  <pds-table-cell>Row Item Kilo</pds-table-cell>
173
181
  <pds-table-cell>Row Item Lima</pds-table-cell>
174
- <pds-table-cell>Row Item Mike</pds-table-cell>
182
+ <pds-table-cell>
183
+ <pds-dropdown-menu placement="bottom-end">
184
+ <pds-button slot="trigger" size="sm" variant="icon-only"><pds-icon name="dot-menu-horizontal"></pds-icon></pds-button>
185
+ <pds-dropdown-menu-item>Edit</pds-dropdown-menu-item>
186
+ <pds-dropdown-menu-item>Duplicate</pds-dropdown-menu-item>
187
+ <pds-dropdown-menu-separator></pds-dropdown-menu-separator>
188
+ <pds-dropdown-menu-item destructive>Delete</pds-dropdown-menu-item>
189
+ </pds-dropdown-menu>
190
+ </pds-table-cell>
175
191
  </pds-table-row>
176
192
  <pds-table-row value="responsive3">
177
193
  <pds-table-cell>Row Item Alpha</pds-table-cell>
@@ -185,7 +201,15 @@ const ResponsiveTemplate = (args) => html`
185
201
  <pds-table-cell>Row Item Juliett</pds-table-cell>
186
202
  <pds-table-cell>Row Item Kilo</pds-table-cell>
187
203
  <pds-table-cell>Row Item Lima</pds-table-cell>
188
- <pds-table-cell>Row Item Mike</pds-table-cell>
204
+ <pds-table-cell>
205
+ <pds-dropdown-menu placement="bottom-end">
206
+ <pds-button slot="trigger" size="sm" variant="icon-only"><pds-icon name="dot-menu-horizontal"></pds-icon></pds-button>
207
+ <pds-dropdown-menu-item>Edit</pds-dropdown-menu-item>
208
+ <pds-dropdown-menu-item>Duplicate</pds-dropdown-menu-item>
209
+ <pds-dropdown-menu-separator></pds-dropdown-menu-separator>
210
+ <pds-dropdown-menu-item destructive>Delete</pds-dropdown-menu-item>
211
+ </pds-dropdown-menu>
212
+ </pds-table-cell>
189
213
  </pds-table-row>
190
214
  </pds-table-body>
191
215
  </pds-table>`;
@@ -198,6 +222,8 @@ const SortableTemplate = (args) => html`
198
222
  ?responsive=${args.responsive}
199
223
  ?row-dividers=${args.rowDividers}
200
224
  ?selectable=${args.selectable}
225
+ default-sort-column="${args.defaultSortColumn}"
226
+ default-sort-direction="${args.defaultSortDirection}"
201
227
  >
202
228
  <pds-table-head
203
229
  ?border=${args.border}
@@ -382,6 +408,8 @@ Sortable.args = {
382
408
  rowDividers: false,
383
409
  selectable: false,
384
410
  sortable: true,
411
+ defaultSortColumn: 'Name',
412
+ defaultSortDirection: 'asc',
385
413
  };
386
414
 
387
415
  export const DefaultSorting = DefaultSortTemplate.bind();
@@ -183,17 +183,21 @@ pds-tab {
183
183
  border-color: var(--pine-color-border);
184
184
  box-shadow: var(--pine-box-shadow-100);
185
185
  color: var(--pine-color-text-active);
186
- /* stylelint-disable max-nesting-depth */
187
- /* stylelint-enable max-nesting-depth */
188
186
  }
189
187
  .pds-tabs--pill .pds-tab.is-active:focus-visible, .pds-tabs--pill .pds-tab[aria-selected=true]:focus-visible {
190
188
  border-color: var(--color-border-focus);
191
189
  outline: var(--pine-outline-focus);
192
190
  outline-offset: var(--pine-border-width);
193
191
  }
192
+ .pds-tabs--pill .pds-tab.is-active, .pds-tabs--pill .pds-tab[aria-selected=true] {
193
+ /* stylelint-disable max-nesting-depth */
194
+ }
194
195
  .pds-tabs--pill .pds-tab.is-active .pds-tab__content::after, .pds-tabs--pill .pds-tab[aria-selected=true] .pds-tab__content::after {
195
196
  opacity: 0;
196
197
  }
198
+ .pds-tabs--pill .pds-tab.is-active, .pds-tabs--pill .pds-tab[aria-selected=true] {
199
+ /* stylelint-enable max-nesting-depth */
200
+ }
197
201
  .pds-tabs--pill .pds-tab:disabled, .pds-tabs--pill .pds-tab.is-disabled {
198
202
  color: var(--pine-color-text-disabled);
199
203
  }
@@ -26,9 +26,9 @@ export class PdsTab {
26
26
  return classes.filter(Boolean).join(' ');
27
27
  }
28
28
  render() {
29
- const availabilityTabEdgeInlineStart = (h("span", { key: '7a70cf5b681ec05215920417c4ba590fed238f63', class: "pds-tab-edge", role: "presentation" }));
30
- const availabilityTabEdgeInlineEnd = (h("span", { key: '21a1422bb00a6221f7db1b0e77abcd024eec60cd', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
31
- return (h(Host, { key: 'bcf73da727080cdb5b9ec7356768dd2cefab44ae', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '25e140fc63a8ddaa44d08198f14d568bca83f16a', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.disabled ? "-1" : (this.selected ? "0" : "-1"), "aria-selected": this.selected ? "true" : "false", "aria-disabled": this.disabled ? "true" : null, disabled: this.disabled, class: this.classNames(), onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, h("div", { key: '002252b89b74bf2ab26bb33331f4296a22a4cf70', class: "pds-tab__content" }, h("slot", { key: '1f67182b80504391a87509567cb68ca8ff6f9b22' })))));
29
+ const availabilityTabEdgeInlineStart = (h("span", { key: 'e8e263009d29fea16f1cf51de545f07d3529568d', class: "pds-tab-edge", role: "presentation" }));
30
+ const availabilityTabEdgeInlineEnd = (h("span", { key: 'f492586e916cddbbdf04c3a2cdb84ad0d669df36', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
31
+ return (h(Host, { key: 'ec4c47883d2a1721d7986a152f787852352cb058', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '2f2436892e5cf20e777bf9624c022a88177776dd', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.disabled ? "-1" : (this.selected ? "0" : "-1"), "aria-selected": this.selected ? "true" : "false", "aria-disabled": this.disabled ? "true" : null, disabled: this.disabled, class: this.classNames(), onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, h("div", { key: '202d34facfc70b5ca3ef6dfb9d9a2f36a09747d2', class: "pds-tab__content" }, h("slot", { key: '002cc5de784ff0cd01b06688c2205a490c47d27b' })))));
32
32
  }
33
33
  static get is() { return "pds-tab"; }
34
34
  static get originalStyleUrls() {
@@ -8,7 +8,7 @@ export class PdsTabpanel {
8
8
  this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: 'f7a2009fbf7cb1da7aaed92c64fd4e80b83c9ad3', slot: "tabpanels" }, h("div", { key: '696804cadb97707558ef8c4a7cb90529fbf14c87', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, h("slot", { key: '25b1a21995505a25af429038d2b3394063db723f' }))));
11
+ return (h(Host, { key: '0f64285738a96afa3cf2e1134201e942cf04b0ee', slot: "tabpanels" }, h("div", { key: 'f677ed3b377ce2f5f6868831369338829af89868', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, h("slot", { key: '46a236b465f387508aa494ecf80aa146cecd4ade' }))));
12
12
  }
13
13
  static get is() { return "pds-tabpanel"; }
14
14
  static get originalStyleUrls() {
@@ -87,7 +87,7 @@ export class PdsTabs {
87
87
  this.passPropsToChildren();
88
88
  }
89
89
  render() {
90
- return (h(Host, { key: '94465ebf3e3a10ff9171a8bd890cab85cff52636', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: '3af742499e795c9b4c89d0537aa45679e02cc3b7', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel, part: "tab-list" }, h("slot", { key: '655e6686afd2bc5823c69259f8ee0ba943905ecd', name: "tabs" })), h("slot", { key: '7fdebe4e77cb52ad481ca12af0796db825d31365', name: "tabpanels" })));
90
+ return (h(Host, { key: 'fee342f0fbc06387fd964a518c0e97a091d1aded', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: '7512b1d02a8320aad1e2934428dec970ff0c1743', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel, part: "tab-list" }, h("slot", { key: 'dccf28dad2d084185e5f1b0f1f1eeab1c77cd541', name: "tabs" })), h("slot", { key: 'bd8b9040808925ea5f1c73c06d636f35c297b4b7', name: "tabpanels" })));
91
91
  }
92
92
  static get is() { return "pds-tabs"; }
93
93
  static get encapsulation() { return "shadow"; }
@@ -20,7 +20,7 @@ export class PdsText {
20
20
  ${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}
21
21
  ${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}
22
22
  `;
23
- return (h(Tag, { key: '42a62bfa709c5d093d6559ed073486b6a74e6bf5', style: this.color && setColor(this.color), class: typeClasses, part: "content" }, h("slot", { key: '46dd8be0670070f381bad21df56307595a5c94c9' })));
23
+ return (h(Tag, { key: '5f7d43603c8d412a375d2e49818b363b5e9a142b', style: this.color && setColor(this.color), class: typeClasses, part: "content" }, h("slot", { key: '702d5065297e0405295aa941cd39dba38787519e' })));
24
24
  }
25
25
  static get is() { return "pds-text"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -292,10 +292,10 @@ export class PdsTextarea {
292
292
  }
293
293
  render() {
294
294
  const value = this.getValue();
295
- return (h(Host, { key: '294f37b2751fd4fbc16e7b2cca62d1a5200b7f4e', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, h("div", { key: 'b785c5740642dafcdb771f3a9ffb933d8ada3f4e', class: "pds-textarea" }, this.label &&
296
- h("div", { key: '31ad1d39efe78fc7a29e48d4a8d228a97422eba9', class: "pds-textarea__label-wrapper" }, h("label", { key: 'e37a18d36bffa47f00d5d3376df45b3f35c3e8a3', htmlFor: this.componentId }, h("span", { key: 'fc2d376e1dc976c3004f6ab225c921ebc7e46dd4', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), h("div", { key: '7b5db43c23fb9a2ddb3ebec0b684953a4b043ea1', class: "pds-textarea__field-wrapper" }, h("textarea", Object.assign({ key: '81355164c2b01ab7ef5d6adcb3f92a59eec2692f', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, maxlength: this.maxLength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onBlur: this.onBlur, onChange: this.onTextareaChange, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown }, this.inheritedAttributes), value), this.renderCharacterCounter()), this.helperMessage &&
297
- h("p", { key: 'abcdf1ef2aa24d0057e5b0c212c06b5324f0dd9b', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
298
- h("p", { key: '1c526c2aae382caabe83ff5e3dadd7510371a656', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: 'e8a0960b0e2dbacfe46113b3f1162e35d301afac', icon: danger, size: "small" }), this.errorMessage))));
295
+ return (h(Host, { key: '3c78b9f124cf82fd48b2cbc29122c458d9918962', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, h("div", { key: '58ecb566c248304e19c33fab2431cf6062a203d7', class: "pds-textarea" }, this.label &&
296
+ h("div", { key: 'ad2c21f27492d374c4f56fed0f203f72bc3a4a6e', class: "pds-textarea__label-wrapper" }, h("label", { key: 'f966575088fe5699951c7762938cb80304bb0df5', htmlFor: this.componentId }, h("span", { key: 'ad9370de15d0c41e065d99d3b9859eb8b343424a', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), h("div", { key: 'e76662a380252b0813c0b00d42bfaa4239c063dd', class: "pds-textarea__field-wrapper" }, h("textarea", Object.assign({ key: '4f9b3250d888b9da284a5583b5042df4f25b66f5', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, maxlength: this.maxLength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onBlur: this.onBlur, onChange: this.onTextareaChange, onFocus: this.onFocus, onInput: this.onInput, onKeyDown: this.onKeyDown }, this.inheritedAttributes), value), this.renderCharacterCounter()), this.helperMessage &&
297
+ h("p", { key: '5c53c22d2682d1960b31b2bc40ad6a83d445dda2', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
298
+ h("p", { key: '74c79c4a218977a01932d1b94206b68867787064', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: 'c8118c35e1f6f6bcba281dd00e8abf8109827f30', icon: danger, size: "small" }), this.errorMessage))));
299
299
  }
300
300
  static get is() { return "pds-textarea"; }
301
301
  static get encapsulation() { return "shadow"; }
@@ -77,13 +77,13 @@ export class PdsToast {
77
77
  return this.icon && h("pds-icon", { name: this.icon, class: "pds-toast__icon" });
78
78
  }
79
79
  render() {
80
- return (h(Host, { key: 'ff9523170d34f742f8301e8d3ce3810bacb7d183', hidden: !this.isVisible }, h("div", { key: '67e0639a0158eb8c325064a9c3f97aaa3b538d90', class: {
80
+ return (h(Host, { key: 'bcc7fe0ad3b7823a940249fccfce30edfc1e808d', hidden: !this.isVisible }, h("div", { key: '5265cbbdf05278cbd565e34f63b6c9566ec14290', class: {
81
81
  'pds-toast': true,
82
82
  [`pds-toast--${this.type}`]: this.type !== 'default',
83
83
  'pds-toast--animating-out': this.isAnimatingOut
84
- }, role: "alert", "aria-live": "polite" }, this.renderIcon(), h("span", { key: '5387b71901592b69a7465ec10c3f3508e170b1c1', class: "pds-toast__message" }, h("slot", { key: 'a9bb352ae8ad478fb65298c357bc20efa1877a6b' })), this.dismissible && (h("button", { key: 'c1d15b41455304e689c3736ed3d3429321f8c1a7', type: "button", class: "pds-toast__button", onClick: () => {
84
+ }, role: "alert", "aria-live": "polite" }, this.renderIcon(), h("span", { key: 'd650b57fb5cddeb369d8245b239423575da63cd8', class: "pds-toast__message" }, h("slot", { key: 'd4e2d6b6136b75dfd97a37da4588c8c51ca4bcd0' })), this.dismissible && (h("button", { key: 'c89170f321c47b83096a01aaa8012298dc3ca440', type: "button", class: "pds-toast__button", onClick: () => {
85
85
  this.dismiss();
86
- }, "aria-label": "Dismiss message" }, h("pds-icon", { key: '0f9e43ed08a253531f3dc698c92f861ca1bd6063', name: "remove" }))))));
86
+ }, "aria-label": "Dismiss message" }, h("pds-icon", { key: '359c0c05ddd6db8e7711fc0212bf80569106ecf4', name: "remove" }))))));
87
87
  }
88
88
  static get is() { return "pds-toast"; }
89
89
  static get encapsulation() { return "shadow"; }
@@ -312,9 +312,9 @@ export class PdsTooltip {
312
312
  }
313
313
  render() {
314
314
  const hostId = this.componentId || undefined;
315
- return (h(Host, { key: '19cd2c26c96f21f39d0bca90d3b74f8c282e74e1', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, h("span", { key: '4288caabd5c37d90d4c82c430a9eb0a17653b2ad', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
315
+ return (h(Host, { key: '41dffb4751c1e40789de07ec5b2f96202cedb82c', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, h("span", { key: '156d6e9d23d3194caa387db9de35226d2d5fd02f', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
316
316
  /* focusin/out bubble; ensure keyboard users see tooltips */
317
- onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, h("slot", { key: 'd937b6ee8a11c4a4d9f31daf147b598b5ab56c2d' })), h("div", { key: '6b31410657ddfce5275abc03a2e0a3c2692efc2a', class: "pds-tooltip__content-slot-wrapper", hidden: true }, h("slot", { key: '2d5ed8babb0a44c1340028dfedc5ee8694da4bfc', name: "content" }))));
317
+ onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, h("slot", { key: 'e67bae6e3c9726c39d193e5771c0e66818575c65' })), h("div", { key: '60ec7b351e574b2e2fc8b0b8c8b87f4977e6eed7', class: "pds-tooltip__content-slot-wrapper", hidden: true }, h("slot", { key: 'b66966dba3d142401e588b7437689c0f6386cfcd', name: "content" }))));
318
318
  }
319
319
  static get is() { return "pds-tooltip"; }
320
320
  static get originalStyleUrls() {