@pine-ds/core 4.0.0 → 4.2.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 (452) hide show
  1. package/components/index.d.ts +8 -0
  2. package/components/index.js +1 -1
  3. package/components/mock-pds-modal.js +1 -1
  4. package/components/pds-chip2.js +1 -1
  5. package/components/pds-copytext.js +1 -1
  6. package/components/pds-divider.js +1 -1
  7. package/components/pds-drawer-content.d.ts +11 -0
  8. package/components/pds-drawer-content.js +1 -0
  9. package/components/pds-drawer-footer.d.ts +11 -0
  10. package/components/pds-drawer-footer.js +1 -0
  11. package/components/pds-drawer-header.d.ts +11 -0
  12. package/components/pds-drawer-header.js +1 -0
  13. package/components/pds-drawer.d.ts +11 -0
  14. package/components/pds-drawer.js +1 -0
  15. package/components/pds-dropdown-menu-item.js +1 -1
  16. package/components/pds-dropdown-menu-separator.js +1 -1
  17. package/components/pds-dropdown-menu.js +1 -1
  18. package/components/pds-filter.js +1 -1
  19. package/components/pds-filters.js +1 -1
  20. package/components/pds-image.js +1 -1
  21. package/components/pds-input.js +1 -1
  22. package/components/pds-link2.js +1 -1
  23. package/components/pds-loader2.js +1 -1
  24. package/components/pds-modal-content.js +1 -1
  25. package/components/pds-modal-footer.js +1 -1
  26. package/components/pds-modal-header.js +1 -1
  27. package/components/pds-modal.js +1 -1
  28. package/components/pds-modal2.js +1 -0
  29. package/components/pds-multiselect.js +1 -1
  30. package/components/pds-popover.js +1 -1
  31. package/components/pds-progress.js +1 -1
  32. package/components/pds-property.js +1 -1
  33. package/components/pds-radio-group.js +1 -1
  34. package/components/pds-radio.js +1 -1
  35. package/components/pds-row.js +1 -1
  36. package/components/pds-select.js +1 -1
  37. package/components/pds-sortable-item.js +1 -1
  38. package/components/pds-sortable.js +1 -1
  39. package/components/pds-switch.js +1 -1
  40. package/components/pds-table-body.js +1 -1
  41. package/components/pds-table-cell2.js +1 -1
  42. package/components/pds-table-head-cell2.js +1 -1
  43. package/components/pds-table-head.js +1 -1
  44. package/components/pds-table-row.js +1 -1
  45. package/components/pds-tabpanel.js +1 -1
  46. package/components/pds-tabs.js +1 -1
  47. package/components/pds-text2.js +1 -1
  48. package/components/pds-textarea.js +1 -1
  49. package/components/pds-toast.js +1 -1
  50. package/components/pds-tooltip.js +1 -1
  51. package/components/truncation-tooltip.js +1 -1
  52. package/dist/cjs/{index-CKNNY-lQ.js → index-Bu3NXpbK.js} +1 -1
  53. package/dist/cjs/{index-BdFrBXCD.js → index-CuQil7H0.js} +1 -1
  54. package/dist/cjs/index.cjs.js +20 -0
  55. package/dist/cjs/loader.cjs.js +2 -2
  56. package/dist/cjs/mock-pds-modal.cjs.entry.js +2 -2
  57. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  58. package/dist/cjs/pds-alert.cjs.entry.js +1 -1
  59. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  60. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  61. package/dist/cjs/pds-button.cjs.entry.js +2 -2
  62. package/dist/cjs/pds-checkbox.cjs.entry.js +2 -2
  63. package/dist/cjs/pds-chip.cjs.entry.js +18 -9
  64. package/dist/cjs/pds-combobox.cjs.entry.js +1 -1
  65. package/dist/cjs/pds-container.cjs.entry.js +1 -1
  66. package/dist/cjs/pds-copytext.cjs.entry.js +8 -4
  67. package/dist/cjs/pds-divider.cjs.entry.js +10 -3
  68. package/dist/cjs/pds-drawer-content.cjs.entry.js +23 -0
  69. package/dist/cjs/pds-drawer-footer.cjs.entry.js +23 -0
  70. package/dist/cjs/pds-drawer-header.cjs.entry.js +23 -0
  71. package/dist/cjs/pds-drawer.cjs.entry.js +137 -0
  72. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +2 -2
  73. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +2 -2
  74. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -2
  75. package/dist/cjs/pds-filter.cjs.entry.js +3 -3
  76. package/dist/cjs/pds-filters.cjs.entry.js +2 -2
  77. package/dist/cjs/pds-icon.cjs.entry.js +1 -1
  78. package/dist/cjs/pds-image.cjs.entry.js +3 -3
  79. package/dist/cjs/pds-input.cjs.entry.js +4 -4
  80. package/dist/cjs/pds-link.cjs.entry.js +4 -4
  81. package/dist/cjs/pds-loader.cjs.entry.js +2 -2
  82. package/dist/cjs/pds-modal-content.cjs.entry.js +3 -3
  83. package/dist/cjs/pds-modal-footer.cjs.entry.js +2 -2
  84. package/dist/cjs/pds-modal-header.cjs.entry.js +2 -2
  85. package/dist/cjs/pds-modal.cjs.entry.js +142 -11
  86. package/dist/cjs/pds-multiselect.cjs.entry.js +5 -5
  87. package/dist/cjs/pds-popover.cjs.entry.js +2 -2
  88. package/dist/cjs/pds-progress.cjs.entry.js +2 -2
  89. package/dist/cjs/pds-property.cjs.entry.js +2 -2
  90. package/dist/cjs/pds-radio-group.cjs.entry.js +5 -5
  91. package/dist/cjs/pds-radio.cjs.entry.js +5 -5
  92. package/dist/cjs/pds-row.cjs.entry.js +2 -2
  93. package/dist/cjs/pds-select.cjs.entry.js +3 -3
  94. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
  95. package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
  96. package/dist/cjs/pds-switch.cjs.entry.js +6 -6
  97. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  98. package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
  99. package/dist/cjs/pds-table-cell.cjs.entry.js +4 -4
  100. package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -4
  101. package/dist/cjs/pds-table-head.cjs.entry.js +2 -2
  102. package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
  103. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  104. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
  105. package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
  106. package/dist/cjs/pds-text.cjs.entry.js +6 -24
  107. package/dist/cjs/pds-textarea.cjs.entry.js +6 -6
  108. package/dist/cjs/pds-toast.cjs.entry.js +4 -4
  109. package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
  110. package/dist/cjs/pine-core.cjs.js +2 -2
  111. package/dist/cjs/{truncation-tooltip-CVzAha5B.js → truncation-tooltip-Bps7_rUy.js} +51 -1
  112. package/dist/collection/collection-manifest.json +4 -0
  113. package/dist/collection/components/pds-chip/pds-chip.js +15 -6
  114. package/dist/collection/components/pds-copytext/pds-copytext.js +5 -1
  115. package/dist/collection/components/pds-divider/pds-divider.css +41 -0
  116. package/dist/collection/components/pds-divider/pds-divider.js +30 -1
  117. package/dist/collection/components/pds-divider/stories/pds-divider.stories.js +7 -0
  118. package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.css +22 -0
  119. package/dist/collection/components/pds-drawer/pds-drawer-content/pds-drawer-content.js +29 -0
  120. package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.css +15 -0
  121. package/dist/collection/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.js +23 -0
  122. package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.css +15 -0
  123. package/dist/collection/components/pds-drawer/pds-drawer-header/pds-drawer-header.js +23 -0
  124. package/dist/collection/components/pds-drawer/pds-drawer.css +36 -0
  125. package/dist/collection/components/pds-drawer/pds-drawer.js +362 -0
  126. package/dist/collection/components/pds-drawer/stories/pds-drawer.stories.js +72 -0
  127. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +1 -1
  128. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
  129. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
  130. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +1 -1
  131. package/dist/collection/components/pds-filters/pds-filters.js +1 -1
  132. package/dist/collection/components/pds-image/pds-image.js +2 -2
  133. package/dist/collection/components/pds-input/pds-input.js +2 -2
  134. package/dist/collection/components/pds-link/pds-link.js +2 -2
  135. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  136. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
  137. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
  138. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
  139. package/dist/collection/components/pds-modal/pds-modal.js +164 -10
  140. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
  141. package/dist/collection/components/pds-multiselect/pds-multiselect.js +3 -3
  142. package/dist/collection/components/pds-popover/pds-popover.js +1 -1
  143. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  144. package/dist/collection/components/pds-property/pds-property.js +1 -1
  145. package/dist/collection/components/pds-radio/pds-radio.js +3 -3
  146. package/dist/collection/components/pds-radio-group/pds-radio-group.js +3 -3
  147. package/dist/collection/components/pds-row/pds-row.js +1 -1
  148. package/dist/collection/components/pds-select/pds-select.js +1 -1
  149. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  150. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  151. package/dist/collection/components/pds-switch/pds-switch.css +1 -1
  152. package/dist/collection/components/pds-switch/pds-switch.js +3 -3
  153. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  154. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +3 -3
  155. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  156. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  157. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  158. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  159. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  160. package/dist/collection/components/pds-text/pds-text.js +2 -2
  161. package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
  162. package/dist/collection/components/pds-toast/pds-toast.js +3 -3
  163. package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
  164. package/dist/collection/index.js +1 -0
  165. package/dist/collection/utils/test/reduced-motion.js +78 -0
  166. package/dist/collection/utils/truncation-tooltip.js +51 -1
  167. package/dist/docs.json +419 -6
  168. package/dist/esm/{index-NNDTPCWx.js → index-CTLu1TM4.js} +1 -1
  169. package/dist/esm/{index-BjlFq0VD.js → index-DdPaBxPo.js} +1 -1
  170. package/dist/esm/index.js +19 -0
  171. package/dist/esm/loader.js +3 -3
  172. package/dist/esm/mock-pds-modal.entry.js +2 -2
  173. package/dist/esm/pds-accordion.entry.js +2 -2
  174. package/dist/esm/pds-alert.entry.js +1 -1
  175. package/dist/esm/pds-avatar.entry.js +2 -2
  176. package/dist/esm/pds-box.entry.js +1 -1
  177. package/dist/esm/pds-button.entry.js +2 -2
  178. package/dist/esm/pds-checkbox.entry.js +2 -2
  179. package/dist/esm/pds-chip.entry.js +18 -9
  180. package/dist/esm/pds-combobox.entry.js +1 -1
  181. package/dist/esm/pds-container.entry.js +1 -1
  182. package/dist/esm/pds-copytext.entry.js +8 -4
  183. package/dist/esm/pds-divider.entry.js +10 -3
  184. package/dist/esm/pds-drawer-content.entry.js +21 -0
  185. package/dist/esm/pds-drawer-footer.entry.js +21 -0
  186. package/dist/esm/pds-drawer-header.entry.js +21 -0
  187. package/dist/esm/pds-drawer.entry.js +135 -0
  188. package/dist/esm/pds-dropdown-menu-item.entry.js +2 -2
  189. package/dist/esm/pds-dropdown-menu-separator.entry.js +2 -2
  190. package/dist/esm/pds-dropdown-menu.entry.js +2 -2
  191. package/dist/esm/pds-filter.entry.js +3 -3
  192. package/dist/esm/pds-filters.entry.js +2 -2
  193. package/dist/esm/pds-icon.entry.js +1 -1
  194. package/dist/esm/pds-image.entry.js +3 -3
  195. package/dist/esm/pds-input.entry.js +4 -4
  196. package/dist/esm/pds-link.entry.js +4 -4
  197. package/dist/esm/pds-loader.entry.js +2 -2
  198. package/dist/esm/pds-modal-content.entry.js +3 -3
  199. package/dist/esm/pds-modal-footer.entry.js +2 -2
  200. package/dist/esm/pds-modal-header.entry.js +2 -2
  201. package/dist/esm/pds-modal.entry.js +142 -11
  202. package/dist/esm/pds-multiselect.entry.js +5 -5
  203. package/dist/esm/pds-popover.entry.js +2 -2
  204. package/dist/esm/pds-progress.entry.js +2 -2
  205. package/dist/esm/pds-property.entry.js +2 -2
  206. package/dist/esm/pds-radio-group.entry.js +5 -5
  207. package/dist/esm/pds-radio.entry.js +5 -5
  208. package/dist/esm/pds-row.entry.js +2 -2
  209. package/dist/esm/pds-select.entry.js +3 -3
  210. package/dist/esm/pds-sortable-item.entry.js +3 -3
  211. package/dist/esm/pds-sortable.entry.js +2 -2
  212. package/dist/esm/pds-switch.entry.js +6 -6
  213. package/dist/esm/pds-tab.entry.js +1 -1
  214. package/dist/esm/pds-table-body.entry.js +2 -2
  215. package/dist/esm/pds-table-cell.entry.js +4 -4
  216. package/dist/esm/pds-table-head-cell.entry.js +4 -4
  217. package/dist/esm/pds-table-head.entry.js +2 -2
  218. package/dist/esm/pds-table-row.entry.js +2 -2
  219. package/dist/esm/pds-table.entry.js +1 -1
  220. package/dist/esm/pds-tabpanel.entry.js +2 -2
  221. package/dist/esm/pds-tabs.entry.js +2 -2
  222. package/dist/esm/pds-text.entry.js +4 -22
  223. package/dist/esm/pds-textarea.entry.js +6 -6
  224. package/dist/esm/pds-toast.entry.js +4 -4
  225. package/dist/esm/pds-tooltip.entry.js +3 -3
  226. package/dist/esm/pine-core.js +3 -3
  227. package/dist/esm/{truncation-tooltip-Blk4GigP.js → truncation-tooltip-CdtEBn_5.js} +51 -1
  228. package/dist/esm-es5/{index-NNDTPCWx.js → index-CTLu1TM4.js} +1 -1
  229. package/dist/esm-es5/index.js +1 -0
  230. package/dist/esm-es5/loader.js +1 -1
  231. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  232. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  233. package/dist/esm-es5/pds-alert.entry.js +1 -1
  234. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  235. package/dist/esm-es5/pds-box.entry.js +1 -1
  236. package/dist/esm-es5/pds-button.entry.js +1 -1
  237. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  238. package/dist/esm-es5/pds-chip.entry.js +1 -1
  239. package/dist/esm-es5/pds-combobox.entry.js +1 -1
  240. package/dist/esm-es5/pds-container.entry.js +1 -1
  241. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  242. package/dist/esm-es5/pds-divider.entry.js +1 -1
  243. package/dist/esm-es5/pds-drawer-content.entry.js +1 -0
  244. package/dist/esm-es5/pds-drawer-footer.entry.js +1 -0
  245. package/dist/esm-es5/pds-drawer-header.entry.js +1 -0
  246. package/dist/esm-es5/pds-drawer.entry.js +1 -0
  247. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  248. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  249. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  250. package/dist/esm-es5/pds-filter.entry.js +1 -1
  251. package/dist/esm-es5/pds-filters.entry.js +1 -1
  252. package/dist/esm-es5/pds-icon.entry.js +1 -1
  253. package/dist/esm-es5/pds-image.entry.js +1 -1
  254. package/dist/esm-es5/pds-input.entry.js +1 -1
  255. package/dist/esm-es5/pds-link.entry.js +1 -1
  256. package/dist/esm-es5/pds-loader.entry.js +1 -1
  257. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  258. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  259. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  260. package/dist/esm-es5/pds-modal.entry.js +1 -1
  261. package/dist/esm-es5/pds-multiselect.entry.js +1 -1
  262. package/dist/esm-es5/pds-popover.entry.js +1 -1
  263. package/dist/esm-es5/pds-progress.entry.js +1 -1
  264. package/dist/esm-es5/pds-property.entry.js +1 -1
  265. package/dist/esm-es5/pds-radio-group.entry.js +1 -1
  266. package/dist/esm-es5/pds-radio.entry.js +1 -1
  267. package/dist/esm-es5/pds-row.entry.js +1 -1
  268. package/dist/esm-es5/pds-select.entry.js +1 -1
  269. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  270. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  271. package/dist/esm-es5/pds-switch.entry.js +1 -1
  272. package/dist/esm-es5/pds-tab.entry.js +1 -1
  273. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  274. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  275. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  276. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  277. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  278. package/dist/esm-es5/pds-table.entry.js +1 -1
  279. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  280. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  281. package/dist/esm-es5/pds-text.entry.js +1 -1
  282. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  283. package/dist/esm-es5/pds-toast.entry.js +1 -1
  284. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  285. package/dist/esm-es5/pine-core.js +1 -1
  286. package/dist/esm-es5/truncation-tooltip-CdtEBn_5.js +1 -0
  287. package/dist/pine-core/index.esm.js +1 -0
  288. package/dist/pine-core/p-02a47ebb.entry.js +1 -0
  289. package/dist/pine-core/{p-b3b44b80.entry.js → p-049681fc.entry.js} +1 -1
  290. package/dist/pine-core/p-053b0898.system.entry.js +1 -0
  291. package/dist/pine-core/p-09413b07.entry.js +1 -0
  292. package/dist/pine-core/{p-17d4a99a.system.entry.js → p-0ab735aa.system.entry.js} +1 -1
  293. package/dist/pine-core/p-12182cab.entry.js +1 -0
  294. package/dist/pine-core/{p-3170d53b.system.entry.js → p-12ec8186.system.entry.js} +1 -1
  295. package/dist/pine-core/p-15d3a4bc.system.entry.js +1 -0
  296. package/dist/pine-core/{p-606418b7.system.entry.js → p-1614c000.system.entry.js} +1 -1
  297. package/dist/pine-core/{p-6254d112.entry.js → p-17dc3f87.entry.js} +1 -1
  298. package/dist/pine-core/p-18a59cdd.system.entry.js +1 -0
  299. package/dist/pine-core/{p-2ec460e1.system.entry.js → p-1e2a9b5d.system.entry.js} +1 -1
  300. package/dist/pine-core/{p-6f82e8dc.system.entry.js → p-1f307e59.system.entry.js} +1 -1
  301. package/dist/pine-core/{p-f145e018.entry.js → p-2016c878.entry.js} +1 -1
  302. package/dist/pine-core/{p-5e6e8d4e.system.entry.js → p-222ff58e.system.entry.js} +1 -1
  303. package/dist/pine-core/{p-cd407bed.system.entry.js → p-2eb8d697.system.entry.js} +1 -1
  304. package/dist/pine-core/{p-bf759fc0.entry.js → p-31e1722e.entry.js} +1 -1
  305. package/dist/pine-core/p-324a7ae4.system.entry.js +1 -0
  306. package/dist/pine-core/{p-c35fe2e2.entry.js → p-32f10aa9.entry.js} +1 -1
  307. package/dist/pine-core/p-33c0f3c9.system.entry.js +1 -0
  308. package/dist/pine-core/{p-31679dbc.system.entry.js → p-3464b456.system.entry.js} +1 -1
  309. package/dist/pine-core/{p-69372e72.system.entry.js → p-34e38037.system.entry.js} +1 -1
  310. package/dist/pine-core/{p-2d1cc047.entry.js → p-3605a5f5.entry.js} +1 -1
  311. package/dist/pine-core/{p-c2688710.entry.js → p-376f8286.entry.js} +1 -1
  312. package/dist/pine-core/{p-292cf8f9.entry.js → p-3873f55b.entry.js} +1 -1
  313. package/dist/pine-core/{p-b0058cb0.entry.js → p-3aec9079.entry.js} +1 -1
  314. package/dist/pine-core/{p-464ec4eb.system.entry.js → p-3c229a00.system.entry.js} +1 -1
  315. package/dist/pine-core/{p-2fc127b4.system.entry.js → p-3c4236a8.system.entry.js} +1 -1
  316. package/dist/pine-core/{p-43ef94bc.entry.js → p-3e0c6384.entry.js} +1 -1
  317. package/dist/pine-core/p-3eca0b00.entry.js +1 -0
  318. package/dist/pine-core/{p-62f75f84.entry.js → p-3f12afb1.entry.js} +1 -1
  319. package/dist/pine-core/p-43338f77.system.entry.js +1 -0
  320. package/dist/pine-core/{p-b89583e7.system.entry.js → p-4661259e.system.entry.js} +1 -1
  321. package/dist/pine-core/{p-5c7a72aa.system.entry.js → p-4d388957.system.entry.js} +1 -1
  322. package/dist/pine-core/{p-7e065b59.entry.js → p-51b8490d.entry.js} +1 -1
  323. package/dist/pine-core/{p-d9cb26fe.system.entry.js → p-51dff5af.system.entry.js} +1 -1
  324. package/dist/pine-core/p-53a4852e.system.entry.js +1 -0
  325. package/dist/pine-core/{p-076aaa00.system.entry.js → p-56b34569.system.entry.js} +1 -1
  326. package/dist/pine-core/{p-a03c12a4.system.entry.js → p-5772f260.system.entry.js} +1 -1
  327. package/dist/pine-core/{p-3cece186.system.entry.js → p-585ad368.system.entry.js} +1 -1
  328. package/dist/pine-core/p-591fbff5.entry.js +1 -0
  329. package/dist/pine-core/{p-83e8f145.entry.js → p-5aea1082.entry.js} +1 -1
  330. package/dist/pine-core/{p-ff1e9a32.entry.js → p-5d585aa8.entry.js} +1 -1
  331. package/dist/pine-core/{p-1f20608e.system.entry.js → p-5dd393cd.system.entry.js} +1 -1
  332. package/dist/pine-core/p-613a64f1.entry.js +1 -0
  333. package/dist/pine-core/p-630f33d6.system.entry.js +1 -0
  334. package/dist/pine-core/{p-9374cf48.system.entry.js → p-63686e2a.system.entry.js} +1 -1
  335. package/dist/pine-core/{p-fef6694d.entry.js → p-6f7a7d55.entry.js} +1 -1
  336. package/dist/pine-core/{p-0a4f2d5f.system.entry.js → p-6fd863e5.system.entry.js} +1 -1
  337. package/dist/pine-core/{p-18ae43e3.entry.js → p-714bfdbd.entry.js} +1 -1
  338. package/dist/pine-core/{p-43268325.system.entry.js → p-76286a68.system.entry.js} +1 -1
  339. package/dist/pine-core/{p-43d6ab33.system.entry.js → p-7691a875.system.entry.js} +1 -1
  340. package/dist/pine-core/p-78fd593d.system.entry.js +1 -0
  341. package/dist/pine-core/{p-8c0040c4.entry.js → p-7b1e3e91.entry.js} +1 -1
  342. package/dist/pine-core/{p-7bac161d.entry.js → p-7e2b934d.entry.js} +1 -1
  343. package/dist/pine-core/p-7e44106e.entry.js +1 -0
  344. package/dist/pine-core/p-84ade640.entry.js +1 -0
  345. package/dist/pine-core/{p-24fcf841.system.entry.js → p-869ed1c0.system.entry.js} +1 -1
  346. package/dist/pine-core/p-86bc2a0c.entry.js +1 -0
  347. package/dist/pine-core/{p-caf73216.entry.js → p-8be301b6.entry.js} +1 -1
  348. package/dist/pine-core/{p-73b40545.system.entry.js → p-8cc270f0.system.entry.js} +1 -1
  349. package/dist/pine-core/p-8cea0d7a.system.entry.js +1 -0
  350. package/dist/pine-core/{p-b759dc21.entry.js → p-8eef80d5.entry.js} +1 -1
  351. package/dist/pine-core/p-9187c26c.system.entry.js +1 -0
  352. package/dist/pine-core/{p-2c5fe3d9.system.entry.js → p-92ef1608.system.entry.js} +1 -1
  353. package/dist/pine-core/{p-d12a93d6.entry.js → p-957dbb0c.entry.js} +1 -1
  354. package/dist/pine-core/p-B2nn1gSd.js +1 -0
  355. package/dist/pine-core/{p-CRCxGYgw.system.js → p-B2qvvB3q.system.js} +1 -1
  356. package/dist/pine-core/p-CTLu1TM4.js +2 -0
  357. package/dist/pine-core/{p-DVZjHa4_.system.js → p-DAIsVNlL.system.js} +1 -1
  358. package/dist/pine-core/p-Dr-FzkdE.system.js +1 -0
  359. package/dist/pine-core/p-G3CPPJEt.system.js +1 -0
  360. package/dist/pine-core/{p-1b8ac76c.system.entry.js → p-a11a9c40.system.entry.js} +1 -1
  361. package/dist/pine-core/p-a4a58477.entry.js +1 -0
  362. package/dist/pine-core/{p-6630f428.system.entry.js → p-a98bf89f.system.entry.js} +1 -1
  363. package/dist/pine-core/{p-ac2775b5.entry.js → p-ac0098fd.entry.js} +1 -1
  364. package/dist/pine-core/{p-8cb0eed9.entry.js → p-b109de2e.entry.js} +1 -1
  365. package/dist/pine-core/{p-cf389430.system.entry.js → p-b32e3174.system.entry.js} +1 -1
  366. package/dist/pine-core/{p-16f13b17.entry.js → p-b923a70b.entry.js} +1 -1
  367. package/dist/pine-core/p-be4a6cc2.entry.js +1 -0
  368. package/dist/pine-core/{p-f7cbdb81.system.entry.js → p-be819bff.system.entry.js} +1 -1
  369. package/dist/pine-core/{p-78cd9f97.system.entry.js → p-bf3afa16.system.entry.js} +1 -1
  370. package/dist/pine-core/{p-85f7428b.system.entry.js → p-c09dab1a.system.entry.js} +1 -1
  371. package/dist/pine-core/p-c0b3f2c1.system.entry.js +1 -0
  372. package/dist/pine-core/p-c1f8a187.entry.js +1 -0
  373. package/dist/pine-core/{p-47708864.entry.js → p-c5ce6dea.entry.js} +1 -1
  374. package/dist/pine-core/{p-6bc9b904.system.entry.js → p-c8bffb08.system.entry.js} +1 -1
  375. package/dist/pine-core/p-cf24ed1e.system.entry.js +1 -0
  376. package/dist/pine-core/{p-b1e5e8b1.system.entry.js → p-d0d2a886.system.entry.js} +1 -1
  377. package/dist/pine-core/{p-1e87e72a.entry.js → p-d12ef40d.entry.js} +1 -1
  378. package/dist/pine-core/{p-5d1228cb.entry.js → p-d21739eb.entry.js} +1 -1
  379. package/dist/pine-core/p-d280741f.entry.js +1 -0
  380. package/dist/pine-core/{p-ab0b992b.entry.js → p-d415bb01.entry.js} +2 -2
  381. package/dist/pine-core/p-d43db3ba.entry.js +1 -0
  382. package/dist/pine-core/{p-ec2c0e57.entry.js → p-d46adf7d.entry.js} +2 -2
  383. package/dist/pine-core/{p-419e711c.entry.js → p-d7865297.entry.js} +1 -1
  384. package/dist/pine-core/{p-8d6fd5a7.system.entry.js → p-d9ffb2d9.system.entry.js} +1 -1
  385. package/dist/pine-core/p-db5703f2.entry.js +1 -0
  386. package/dist/pine-core/p-dd6d9807.system.entry.js +1 -0
  387. package/dist/pine-core/p-e0da17aa.system.entry.js +1 -0
  388. package/dist/pine-core/{p-a8a1ae32.system.entry.js → p-e1653d75.system.entry.js} +1 -1
  389. package/dist/pine-core/{p-a0edb4ad.entry.js → p-e3600c53.entry.js} +1 -1
  390. package/dist/pine-core/{p-ebe218f8.entry.js → p-e3a7d2db.entry.js} +1 -1
  391. package/dist/pine-core/{p-b5c760c8.system.entry.js → p-e3cd4627.system.entry.js} +1 -1
  392. package/dist/pine-core/{p-950dd70e.system.entry.js → p-e410b0d8.system.entry.js} +1 -1
  393. package/dist/pine-core/p-e5bbe8cc.entry.js +1 -0
  394. package/dist/pine-core/{p-f6d1469d.entry.js → p-e95225cf.entry.js} +1 -1
  395. package/dist/pine-core/{p-43a1d9d7.entry.js → p-ed297f3e.entry.js} +1 -1
  396. package/dist/pine-core/{p-7153efaf.system.entry.js → p-f21aea90.system.entry.js} +1 -1
  397. package/dist/pine-core/{p-39c6e6c9.entry.js → p-f35596cd.entry.js} +1 -1
  398. package/dist/pine-core/{p-b9380ce8.entry.js → p-f7a5062f.entry.js} +1 -1
  399. package/dist/pine-core/{p-d70201bb.entry.js → p-f94667b5.entry.js} +1 -1
  400. package/dist/pine-core/p-fbf5f315.entry.js +1 -0
  401. package/dist/pine-core/{p-c3748812.system.entry.js → p-fec298bb.system.entry.js} +2 -2
  402. package/dist/pine-core/pine-core.css +1 -1
  403. package/dist/pine-core/pine-core.esm.js +1 -1
  404. package/dist/pine-core/pine-core.js +1 -1
  405. package/dist/types/components/pds-divider/pds-divider.d.ts +8 -0
  406. package/dist/types/components/pds-drawer/pds-drawer-content/pds-drawer-content.d.ts +11 -0
  407. package/dist/types/components/pds-drawer/pds-drawer-footer/pds-drawer-footer.d.ts +5 -0
  408. package/dist/types/components/pds-drawer/pds-drawer-header/pds-drawer-header.d.ts +5 -0
  409. package/dist/types/components/pds-drawer/pds-drawer.d.ts +78 -0
  410. package/dist/types/components/pds-modal/pds-modal.d.ts +38 -0
  411. package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +2 -1
  412. package/dist/types/components/pds-text/pds-text.d.ts +2 -1
  413. package/dist/types/components.d.ts +237 -4
  414. package/dist/types/index.d.ts +1 -0
  415. package/dist/types/utils/test/reduced-motion.d.ts +30 -0
  416. package/dist/types/utils/truncation-tooltip.d.ts +12 -0
  417. package/dist/vscode.html-data.json +147 -3
  418. package/hydrate/index.js +551 -103
  419. package/hydrate/index.mjs +551 -103
  420. package/package.json +7 -3
  421. package/dist/esm-es5/truncation-tooltip-Blk4GigP.js +0 -1
  422. package/dist/pine-core/p-08b0d298.entry.js +0 -1
  423. package/dist/pine-core/p-0a09ccbe.entry.js +0 -1
  424. package/dist/pine-core/p-20e0d06c.system.entry.js +0 -1
  425. package/dist/pine-core/p-36fc1ade.system.entry.js +0 -1
  426. package/dist/pine-core/p-73619cfc.system.entry.js +0 -1
  427. package/dist/pine-core/p-7803c5b6.system.entry.js +0 -1
  428. package/dist/pine-core/p-7ad6f313.entry.js +0 -1
  429. package/dist/pine-core/p-7b85115b.system.entry.js +0 -1
  430. package/dist/pine-core/p-7b97974e.system.entry.js +0 -1
  431. package/dist/pine-core/p-7e146a45.entry.js +0 -1
  432. package/dist/pine-core/p-8249e027.entry.js +0 -1
  433. package/dist/pine-core/p-86d12f3c.system.entry.js +0 -1
  434. package/dist/pine-core/p-8c85f53a.entry.js +0 -1
  435. package/dist/pine-core/p-92f648ba.entry.js +0 -1
  436. package/dist/pine-core/p-B1rytYxP.system.js +0 -1
  437. package/dist/pine-core/p-BNSGedhN.js +0 -1
  438. package/dist/pine-core/p-NNDTPCWx.js +0 -2
  439. package/dist/pine-core/p-YWpyar7R.system.js +0 -1
  440. package/dist/pine-core/p-af1e2778.entry.js +0 -1
  441. package/dist/pine-core/p-b6812452.system.entry.js +0 -1
  442. package/dist/pine-core/p-b8f288e8.entry.js +0 -1
  443. package/dist/pine-core/p-cd2370d0.system.entry.js +0 -1
  444. package/dist/pine-core/p-d281464e.entry.js +0 -1
  445. package/dist/pine-core/p-dc460e2d.system.entry.js +0 -1
  446. package/dist/pine-core/p-dcc4ee5e.entry.js +0 -1
  447. package/dist/pine-core/p-def5d3d3.entry.js +0 -1
  448. package/dist/pine-core/p-dfa70d20.entry.js +0 -1
  449. package/dist/pine-core/p-eed4b552.system.entry.js +0 -1
  450. /package/dist/esm-es5/{index-BjlFq0VD.js → index-DdPaBxPo.js} +0 -0
  451. /package/dist/pine-core/{p-WYNNo1N0.system.js → p--Llh7wKm.system.js} +0 -0
  452. /package/dist/pine-core/{p-BjlFq0VD.js → p-DdPaBxPo.js} +0 -0
@@ -1 +1 @@
1
- import{r as a,h as i,H as r}from"./p-NNDTPCWx.js";import{c as s,u as t}from"./p-BjlFq0VD.js";const n=class{constructor(r){a(this,r),this.alt=null,this.badge=!1,this.dropdown=!1,this.image=null,this.initials=null,this.size="lg",this.status=null,this.statusRing=!1,this.variant="customer",this.triggerLabel="Avatar dropdown trigger",this.renderAssetWrapper=()=>{const a={height:this.avatarSize(),width:this.avatarSize()};return i("div",{style:a,part:"asset-wrapper"},this.renderIconOrImage(),this.renderBadge(),this.renderStatus())},this.renderAvatar=()=>this.dropdown?i("button",{class:"pds-avatar__button",type:"button",part:"button","aria-label":this.triggerLabel},this.renderAssetWrapper()):this.renderAssetWrapper(),this.renderBadge=()=>this.badge&&!this.status&&i("pds-icon",{color:"var(--pine-color-purple-600)",class:"pds-avatar__badge",icon:s,size:"33.53%"}),this.renderStatus=()=>{var a;return this.status?i("span",this.dropdown?{class:"pds-avatar__status",part:"status","aria-hidden":"true"}:{class:"pds-avatar__status",part:"status",role:"img","aria-label":null!==(a=this.statusLabel)&&void 0!==a?a:`${this.status} status`}):null},this.renderIconOrImage=()=>this.image?i("img",{alt:this.alt,src:this.image}):this.initials?i("svg",{class:"pds-avatar__initials",part:"initials",viewBox:"0 0 32 32"},i("text",{x:"16",y:"20"},this.initials)):i("pds-icon",{color:"var(--pine-color-brand)",icon:t,size:"33.53%"}),this.classNames=()=>({"pds-avatar":!0,"pds-avatar--has-image":""!==this.image&&null!==this.image,"pds-avatar--has-initials":""!==this.initials&&null!==this.initials,[`pds-avatar--${this.variant}`]:"admin"===this.variant,"pds-avatar--status-ring":!!this.status&&this.statusRing})}avatarSize(){const a={xs:"24px",sm:"32px",md:"40px",lg:"56px",xl:"64px"};return a[this.size]?a[this.size]:this.size}render(){return i(r,{key:"fe2bd31070db6840c79d7054ac50802e8f14f572",id:this.componentId,class:Object.assign({},this.classNames())},this.renderAvatar())}};n.style=":host{display:inline-block}div{--color-background-container:var(--pine-color-background-container-hover);-ms-flex-align:center;align-items:center;background-color:var(--color-background-container);border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;position:relative}:host(.pds-avatar--admin) div{--border-radius-admin-round:var(--pine-dimension-150);border-radius:var(--border-radius-admin-round)}:host(.pds-avatar--has-image) div{background:transparent}@supports selector(:has){div:has(img){background-color:transparent}}.pds-avatar__button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:var(--pine-dimension-none);border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-none)}.pds-avatar__button:focus-visible{outline:var(--pine-outline-focus)}.pds-avatar__badge{background-color:transparent;border:var(--pine-dimension-none);border-color:transparent;border-radius:var(--pine-border-radius-round);inset-block-end:var(--pine-dimension-none);inset-inline-end:var(--pine-dimension-none);position:absolute}:host([status=online]){--pds-avatar-status-color:var(--pine-color-green-500)}:host([status=away]){--pds-avatar-status-color:var(--pine-color-yellow-500)}:host([status=offline]){--pds-avatar-status-color:var(--pine-color-background-inset-emphasized)}.pds-avatar__status{background-color:var(--pds-avatar-status-color, var(--pine-color-background-inset-emphasized));block-size:28%;border-radius:var(--pine-border-radius-full);-webkit-box-shadow:0 0 0 var(--pine-border-width-thick) var(--pine-color-background-container);box-shadow:0 0 0 var(--pine-border-width-thick) var(--pine-color-background-container);inline-size:28%;inset-block-end:var(--pine-dimension-none);inset-inline-end:var(--pine-dimension-none);min-block-size:var(--pine-dimension-100);min-inline-size:var(--pine-dimension-100);position:absolute}:host(.pds-avatar--status-ring) div{-webkit-box-shadow:0 0 0 var(--pine-border-width-thick) var(--pds-avatar-status-color, var(--pine-color-background-inset-emphasized));box-shadow:0 0 0 var(--pine-border-width-thick) var(--pds-avatar-status-color, var(--pine-color-background-inset-emphasized))}img{border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.pds-avatar__initials{color:var(--pine-color-brand);fill:var(--pine-color-brand);font-size:var(--pine-font-size-085);font-weight:var(--pine-font-weight-semi-bold);height:100%;text-align:center;width:100%}.pds-avatar__initials text{text-anchor:middle}";export{n as pds_avatar}
1
+ import{r as a,h as i,H as r}from"./p-CTLu1TM4.js";import{c as s,u as t}from"./p-DdPaBxPo.js";const n=class{constructor(r){a(this,r),this.alt=null,this.badge=!1,this.dropdown=!1,this.image=null,this.initials=null,this.size="lg",this.status=null,this.statusRing=!1,this.variant="customer",this.triggerLabel="Avatar dropdown trigger",this.renderAssetWrapper=()=>{const a={height:this.avatarSize(),width:this.avatarSize()};return i("div",{style:a,part:"asset-wrapper"},this.renderIconOrImage(),this.renderBadge(),this.renderStatus())},this.renderAvatar=()=>this.dropdown?i("button",{class:"pds-avatar__button",type:"button",part:"button","aria-label":this.triggerLabel},this.renderAssetWrapper()):this.renderAssetWrapper(),this.renderBadge=()=>this.badge&&!this.status&&i("pds-icon",{color:"var(--pine-color-purple-600)",class:"pds-avatar__badge",icon:s,size:"33.53%"}),this.renderStatus=()=>{var a;return this.status?i("span",this.dropdown?{class:"pds-avatar__status",part:"status","aria-hidden":"true"}:{class:"pds-avatar__status",part:"status",role:"img","aria-label":null!==(a=this.statusLabel)&&void 0!==a?a:`${this.status} status`}):null},this.renderIconOrImage=()=>this.image?i("img",{alt:this.alt,src:this.image}):this.initials?i("svg",{class:"pds-avatar__initials",part:"initials",viewBox:"0 0 32 32"},i("text",{x:"16",y:"20"},this.initials)):i("pds-icon",{color:"var(--pine-color-brand)",icon:t,size:"33.53%"}),this.classNames=()=>({"pds-avatar":!0,"pds-avatar--has-image":""!==this.image&&null!==this.image,"pds-avatar--has-initials":""!==this.initials&&null!==this.initials,[`pds-avatar--${this.variant}`]:"admin"===this.variant,"pds-avatar--status-ring":!!this.status&&this.statusRing})}avatarSize(){const a={xs:"24px",sm:"32px",md:"40px",lg:"56px",xl:"64px"};return a[this.size]?a[this.size]:this.size}render(){return i(r,{key:"fe2bd31070db6840c79d7054ac50802e8f14f572",id:this.componentId,class:Object.assign({},this.classNames())},this.renderAvatar())}};n.style=":host{display:inline-block}div{--color-background-container:var(--pine-color-background-container-hover);-ms-flex-align:center;align-items:center;background-color:var(--color-background-container);border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;position:relative}:host(.pds-avatar--admin) div{--border-radius-admin-round:var(--pine-dimension-150);border-radius:var(--border-radius-admin-round)}:host(.pds-avatar--has-image) div{background:transparent}@supports selector(:has){div:has(img){background-color:transparent}}.pds-avatar__button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:var(--pine-dimension-none);border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-none)}.pds-avatar__button:focus-visible{outline:var(--pine-outline-focus)}.pds-avatar__badge{background-color:transparent;border:var(--pine-dimension-none);border-color:transparent;border-radius:var(--pine-border-radius-round);inset-block-end:var(--pine-dimension-none);inset-inline-end:var(--pine-dimension-none);position:absolute}:host([status=online]){--pds-avatar-status-color:var(--pine-color-green-500)}:host([status=away]){--pds-avatar-status-color:var(--pine-color-yellow-500)}:host([status=offline]){--pds-avatar-status-color:var(--pine-color-background-inset-emphasized)}.pds-avatar__status{background-color:var(--pds-avatar-status-color, var(--pine-color-background-inset-emphasized));block-size:28%;border-radius:var(--pine-border-radius-full);-webkit-box-shadow:0 0 0 var(--pine-border-width-thick) var(--pine-color-background-container);box-shadow:0 0 0 var(--pine-border-width-thick) var(--pine-color-background-container);inline-size:28%;inset-block-end:var(--pine-dimension-none);inset-inline-end:var(--pine-dimension-none);min-block-size:var(--pine-dimension-100);min-inline-size:var(--pine-dimension-100);position:absolute}:host(.pds-avatar--status-ring) div{-webkit-box-shadow:0 0 0 var(--pine-border-width-thick) var(--pds-avatar-status-color, var(--pine-color-background-inset-emphasized));box-shadow:0 0 0 var(--pine-border-width-thick) var(--pds-avatar-status-color, var(--pine-color-background-inset-emphasized))}img{border-radius:var(--border-radius-admin-round, var(--pine-border-radius-full));height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.pds-avatar__initials{color:var(--pine-color-brand);fill:var(--pine-color-brand);font-size:var(--pine-font-size-085);font-weight:var(--pine-font-weight-semi-bold);height:100%;text-align:center;width:100%}.pds-avatar__initials text{text-anchor:middle}";export{n as pds_avatar}
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,H as i,a as o}from"./p-NNDTPCWx.js";import{c as r}from"./p-DnUJodVd.js";const h=class{constructor(s){t(this,s),this.pdsTableRowSelected=e(this,"pdsTableRowSelected"),this.observer=null,this.bodyObserver=null,this.hasDivider=!1,this.isLastRow=!1,this.handleCheckboxChange=t=>{this.isSelected=t.detail.checked,this.handleSelect(this.isSelected)},this.handleSelect=t=>{if(this.indeterminate=!1,!r("pds-table-head",this.hostElement)){const e=Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement);this.pdsTableRowSelected.emit({rowIndex:e,isSelected:t})}},this.generateUniqueId=()=>`${Math.random().toString(36).substring(2,8)}-${(new Date).toISOString().replace(/[:.]/g,"-")}`}classNames(){const t=[];return this.isSelected&&t.push("is-selected"),this.hasDivider&&t.push("has-divider"),this.isLastRow&&t.push("is-last-row"),t.join(" ")}componentWillRender(){if(this.tableRef=this.hostElement.closest("pds-table"),this.tableRef&&this.tableRef.fixedColumn){const t=this.hostElement.querySelector("pds-table-cell");null==t||t.classList.add("is-fixed")}}componentWillLoad(){this.isSelected&&this.handleSelect(this.isSelected)}connectedCallback(){this.tableRef=this.hostElement.closest("pds-table"),this.setupObservers(),this.updateDividerState()}disconnectedCallback(){this.cleanupObservers()}cleanupObservers(){this.observer&&(this.observer.disconnect(),this.observer=null),this.bodyObserver&&(this.bodyObserver.disconnect(),this.bodyObserver=null)}setupObservers(){this.cleanupObservers(),this.tableRef&&"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver((()=>{this.updateDividerState()})),this.observer.observe(this.tableRef,{attributes:!0,attributeFilter:["row-dividers"]}));const t=this.hostElement.closest("pds-table-body");t&&"undefined"!=typeof MutationObserver&&(this.bodyObserver=new MutationObserver((()=>{this.updateLastRowState()})),this.bodyObserver.observe(t,{childList:!0}))}shouldHaveDivider(){return this.tableRef||(this.tableRef=this.hostElement.closest("pds-table")),!(!this.tableRef||!this.tableRef.rowDividers)}updateDividerState(){this.hasDivider=this.shouldHaveDivider(),this.updateLastRowState()}updateLastRowState(){if(!this.hasDivider)return void(this.isLastRow=!1);const t=this.hostElement.closest("pds-table-body");if(t){const e=Array.from(t.querySelectorAll("pds-table-row"));this.isLastRow=e[e.length-1]===this.hostElement}else this.isLastRow=!1}render(){return s(i,{key:"6bbd8bb7cd1f90de0e418748bf8d3b9240ab0cb8",class:this.classNames(),role:"row",part:"row"},this.tableRef&&this.tableRef.selectable&&s("pds-table-cell",{key:"9a92396654e7cdf819536335ebe95169d4d4c26d",part:"checkbox-cell",class:this.tableRef.selectable?"has-checkbox":""},s("pds-checkbox",{key:"bf61a00da4d3c19280aae90d8eaff9515a716c52",componentId:this.generateUniqueId(),onPdsCheckboxChange:this.handleCheckboxChange,indeterminate:this.indeterminate,label:"Select Row",hideLabel:!0,checked:this.isSelected,part:"row-checkbox"})),s("slot",{key:"f77887e878913bea5e0ca0a281a639285a65f1c1"}))}get hostElement(){return o(this)}};h.style=":host{--color-background-interactive:var(--pine-color-background-subtle);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--pine-color-background-container);inset-inline-start:var(--pine-dimension-none);position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host(:hover),:host(:hover)::part(checkbox-cell),:host(:hover) ::slotted(pds-table-cell),:host(.is-selected),:host(.is-selected)::part(checkbox-cell),:host(.is-selected) ::slotted(pds-table-cell){background:var(--color-background-interactive)}:host(.has-divider) ::slotted(pds-table-cell),:host(.has-divider) pds-table-cell{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host(.has-divider.is-last-row) ::slotted(pds-table-cell),:host(.has-divider.is-last-row) pds-table-cell{-webkit-border-after:0;border-block-end:0}";export{h as pds_table_row}
1
+ import{r as t,c as e,h as s,H as i,a as o}from"./p-CTLu1TM4.js";import{c as r}from"./p-DnUJodVd.js";const h=class{constructor(s){t(this,s),this.pdsTableRowSelected=e(this,"pdsTableRowSelected"),this.observer=null,this.bodyObserver=null,this.hasDivider=!1,this.isLastRow=!1,this.handleCheckboxChange=t=>{this.isSelected=t.detail.checked,this.handleSelect(this.isSelected)},this.handleSelect=t=>{if(this.indeterminate=!1,!r("pds-table-head",this.hostElement)){const e=Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement);this.pdsTableRowSelected.emit({rowIndex:e,isSelected:t})}},this.generateUniqueId=()=>`${Math.random().toString(36).substring(2,8)}-${(new Date).toISOString().replace(/[:.]/g,"-")}`}classNames(){const t=[];return this.isSelected&&t.push("is-selected"),this.hasDivider&&t.push("has-divider"),this.isLastRow&&t.push("is-last-row"),t.join(" ")}componentWillRender(){if(this.tableRef=this.hostElement.closest("pds-table"),this.tableRef&&this.tableRef.fixedColumn){const t=this.hostElement.querySelector("pds-table-cell");null==t||t.classList.add("is-fixed")}}componentWillLoad(){this.isSelected&&this.handleSelect(this.isSelected)}connectedCallback(){this.tableRef=this.hostElement.closest("pds-table"),this.setupObservers(),this.updateDividerState()}disconnectedCallback(){this.cleanupObservers()}cleanupObservers(){this.observer&&(this.observer.disconnect(),this.observer=null),this.bodyObserver&&(this.bodyObserver.disconnect(),this.bodyObserver=null)}setupObservers(){this.cleanupObservers(),this.tableRef&&"undefined"!=typeof MutationObserver&&(this.observer=new MutationObserver((()=>{this.updateDividerState()})),this.observer.observe(this.tableRef,{attributes:!0,attributeFilter:["row-dividers"]}));const t=this.hostElement.closest("pds-table-body");t&&"undefined"!=typeof MutationObserver&&(this.bodyObserver=new MutationObserver((()=>{this.updateLastRowState()})),this.bodyObserver.observe(t,{childList:!0}))}shouldHaveDivider(){return this.tableRef||(this.tableRef=this.hostElement.closest("pds-table")),!(!this.tableRef||!this.tableRef.rowDividers)}updateDividerState(){this.hasDivider=this.shouldHaveDivider(),this.updateLastRowState()}updateLastRowState(){if(!this.hasDivider)return void(this.isLastRow=!1);const t=this.hostElement.closest("pds-table-body");if(t){const e=Array.from(t.querySelectorAll("pds-table-row"));this.isLastRow=e[e.length-1]===this.hostElement}else this.isLastRow=!1}render(){return s(i,{key:"4188f670137051d35cf73a5ca86566f65c3eca09",class:this.classNames(),role:"row",part:"row"},this.tableRef&&this.tableRef.selectable&&s("pds-table-cell",{key:"122ff6ec96ea4857b863f9283bd46946dc403bff",part:"checkbox-cell",class:this.tableRef.selectable?"has-checkbox":""},s("pds-checkbox",{key:"9997b31c86190fe8f25ba4d1b42b8753facbba70",componentId:this.generateUniqueId(),onPdsCheckboxChange:this.handleCheckboxChange,indeterminate:this.indeterminate,label:"Select Row",hideLabel:!0,checked:this.isSelected,part:"row-checkbox"})),s("slot",{key:"f9bc0700386b11a35f78d639118351675ab7150d"}))}get hostElement(){return o(this)}};h.style=":host{--color-background-interactive:var(--pine-color-background-subtle);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--pine-color-background-container);inset-inline-start:var(--pine-dimension-none);position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host(:hover),:host(:hover)::part(checkbox-cell),:host(:hover) ::slotted(pds-table-cell),:host(.is-selected),:host(.is-selected)::part(checkbox-cell),:host(.is-selected) ::slotted(pds-table-cell){background:var(--color-background-interactive)}:host(.has-divider) ::slotted(pds-table-cell),:host(.has-divider) pds-table-cell{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host(.has-divider.is-last-row) ::slotted(pds-table-cell),:host(.has-divider.is-last-row) pds-table-cell{-webkit-border-after:0;border-block-end:0}";export{h as pds_table_row}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,n,e){function a(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,s){function r(t){try{d(e.next(t))}catch(t){s(t)}}function o(t){try{d(e["throw"](t))}catch(t){s(t)}}function d(t){t.done?n(t.value):a(t.value).then(r,o)}d((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},e,a,s,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=o(0),r["throw"]=o(1),r["return"]=o(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(i){return d([t,i])}}function d(o){if(e)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(n=0)),n)try{if(e=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){n.label=o[1];break}if(o[0]===6&&n.label<s[1]){n.label=s[1];s=o;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(o);break}if(s[2])n.ops.pop();n.trys.pop();continue}o=i.call(t,n)}catch(t){o=[6,t];a=0}finally{e=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-DVZjHa4_.system.js"],(function(t){"use strict";var i,n,e,a,s;return{setters:[function(t){i=t.r;n=t.c;e=t.h;a=t.H;s=t.a}],execute:function(){var r=function(){return":host{--animation-duration:var(--pine-motion-duration-slow);--animation-timing:var(--pine-motion-easing-in-out);--padding-inline:var(--pine-dimension-md);--padding-inline-desktop:var(--pine-dimension-2xl);--sizing-height-default:68px;--sizing-min-width:calc(var(--sizing-total-width) - (var(--padding-inline) * 2));--sizing-min-width-desktop:calc(var(--sizing-total-width) - (var(--padding-inline-desktop) * 2));--sizing-total-width:350px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;font:var(--pine-typography-body-medium)}.pds-toast{-ms-flex-align:center;align-items:center;-webkit-animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);background-color:var(--pine-color-primary);border-radius:var(--pine-dimension-xs);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);color:var(--pine-color-text-primary);display:-ms-flexbox;display:flex;height:var(--sizing-height-default);-ms-flex-pack:start;justify-content:flex-start;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);max-width:90vw;min-width:var(--sizing-min-width);padding:0 var(--padding-inline);position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 767px){.pds-toast{height:36px;max-width:calc(100vw - var(--pine-dimension-2xs) * 2);min-width:auto;padding-inline:var(--pine-dimension-2xs)}}.pds-toast--danger{background-color:var(--pine-color-danger)}.pds-toast--loading .pds-toast__loader{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm);position:relative}.pds-toast--loading .pds-toast__loader-spinner{-webkit-animation:pds-toast-rotate 2s linear infinite;animation:pds-toast-rotate 2s linear infinite;height:20px;width:20px}.pds-toast--loading .pds-toast__loader-path{-webkit-animation:pds-toast-dash 1.5s ease-in-out infinite;animation:pds-toast-dash 1.5s ease-in-out infinite;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}.pds-toast__icon{color:var(--pine-color-text-primary);display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm)}.pds-toast__message{font:var(--pine-typography-body-sm-medium);-webkit-margin-end:auto;margin-inline-end:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-toast__message ::slotted(a){color:var(--pine-color-text-primary);-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs);opacity:0.7;text-decoration:underline}.pds-toast__message ::slotted(a):hover,.pds-toast__message ::slotted(a):focus-visible{opacity:1}.pds-toast__message ::slotted(a):focus-visible{outline:2px solid var(--pine-color-text-primary);outline-offset:2px}.pds-toast__button{-ms-flex-align:center;align-items:center;background:none;border:0;border-radius:var(--pine-border-radius-full);color:inherit;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);opacity:0.7;padding:0;white-space:nowrap}.pds-toast__button:hover,.pds-toast__button:focus{opacity:1}.pds-toast__button:focus{outline:var(--pine-outline-focus);outline-offset:var(--pine-dimension-2xs)}@-webkit-keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@-webkit-keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}@keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}:host([hidden]) .pds-toast,.pds-toast--animating-out{-webkit-animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;pointer-events:none;}"};var o=300;var d=t("pds_toast",function(){function t(t){i(this,t);this.pdsToastDismissed=n(this,"pdsToastDismissed");this.dismissible=true;this.duration=4500;this.type="default";this.dismissLabel="Dismiss message";this.isVisible=true;this.isAnimatingOut=false}t.prototype.componentDidLoad=function(){if(this.duration>0){this.startDismissTimer()}};t.prototype.disconnectedCallback=function(){this.cleanup()};t.prototype.handleDurationChange=function(t){if(this.dismissTimer){window.clearTimeout(this.dismissTimer);this.dismissTimer=undefined}if(t>0){this.startDismissTimer()}};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.isAnimatingOut=true;return[4,this.waitForDismissAnimation()];case 1:t.sent();this.isVisible=false;this.cleanup();this.pdsToastDismissed.emit({componentId:this.componentId});return[2]}}))}))};t.prototype.waitForDismissAnimation=function(){var t=this.getDismissAnimationDurationMs();if(t<=0){return Promise.resolve()}return new Promise((function(i){return window.setTimeout(i,t)}))};t.prototype.getDismissAnimationDurationMs=function(){if(typeof window==="undefined"){return o}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){return 0}var t=this.parseCssDurationToMs(getComputedStyle(this.el).getPropertyValue("--animation-duration").trim());return t!==null&&t!==void 0?t:o};t.prototype.parseCssDurationToMs=function(t){if(!t){return undefined}if(t==="0"||t==="0ms"||t==="0s"){return 0}if(t.endsWith("ms")){var i=Number.parseFloat(t);return Number.isFinite(i)?i:undefined}if(t.endsWith("s")){var n=Number.parseFloat(t);return Number.isFinite(n)?n*1e3:undefined}return undefined};t.prototype.cleanup=function(){if(this.dismissTimer){window.clearTimeout(this.dismissTimer);this.dismissTimer=undefined}};t.prototype.startDismissTimer=function(){var t=this;this.dismissTimer=window.setTimeout((function(){t.dismiss()}),this.duration)};t.prototype.renderIcon=function(){if(this.type==="loading"){return e("div",{class:"pds-toast__loader"},e("svg",{class:"pds-toast__loader-spinner",viewBox:"25 25 50 50","aria-hidden":"true"},e("circle",{class:"pds-toast__loader-path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round"})))}return this.icon&&e("pds-icon",{name:this.icon,class:"pds-toast__icon"})};t.prototype.render=function(){var t;var i=this;return e(a,{key:"87c9b15656a2765eb9e722c85dba5c5edbe07c42",hidden:!this.isVisible},e("div",{key:"bd8b26ef0c33b96603313bce74505953d8fe7410",class:(t={"pds-toast":true},t["pds-toast--".concat(this.type)]=this.type!=="default",t["pds-toast--animating-out"]=this.isAnimatingOut,t),role:"alert","aria-live":"polite"},this.renderIcon(),e("span",{key:"5f7fd6b70fe130d8b0915da07640bec01b3b2bcb",class:"pds-toast__message"},e("slot",{key:"4aa0cf737b420ae51297126b423b44d2a8610226"})),this.dismissible&&e("button",{key:"a8b8e5e9ba956b2d9cca284d114afa37b80570cf",type:"button",part:"dismiss",class:"pds-toast__button",onClick:function(){i.dismiss()},"aria-label":this.dismissLabel},e("pds-icon",{key:"dac8f2099b2ab8a68d208aac288d48019df6d7e7",name:"remove"}))))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{duration:[{handleDurationChange:0}]}},enumerable:false,configurable:true});return t}());d.style=r()}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,i,n,e){function a(t){return t instanceof n?t:new n((function(i){i(t)}))}return new(n||(n=Promise))((function(n,s){function r(t){try{d(e.next(t))}catch(t){s(t)}}function o(t){try{d(e["throw"](t))}catch(t){s(t)}}function d(t){t.done?n(t.value):a(t.value).then(r,o)}d((e=e.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},e,a,s,r=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return r.next=o(0),r["throw"]=o(1),r["return"]=o(2),typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(i){return d([t,i])}}function d(o){if(e)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(n=0)),n)try{if(e=1,a&&(s=o[0]&2?a["return"]:o[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,o[1])).done)return s;if(a=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;a=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){n.label=o[1];break}if(o[0]===6&&n.label<s[1]){n.label=s[1];s=o;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(o);break}if(s[2])n.ops.pop();n.trys.pop();continue}o=i.call(t,n)}catch(t){o=[6,t];a=0}finally{e=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-DAIsVNlL.system.js"],(function(t){"use strict";var i,n,e,a,s;return{setters:[function(t){i=t.r;n=t.c;e=t.h;a=t.H;s=t.a}],execute:function(){var r=function(){return":host{--animation-duration:var(--pine-motion-duration-slow);--animation-timing:var(--pine-motion-easing-in-out);--padding-inline:var(--pine-dimension-md);--padding-inline-desktop:var(--pine-dimension-2xl);--sizing-height-default:68px;--sizing-min-width:calc(var(--sizing-total-width) - (var(--padding-inline) * 2));--sizing-min-width-desktop:calc(var(--sizing-total-width) - (var(--padding-inline-desktop) * 2));--sizing-total-width:350px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;font:var(--pine-typography-body-medium)}.pds-toast{-ms-flex-align:center;align-items:center;-webkit-animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);background-color:var(--pine-color-primary);border-radius:var(--pine-dimension-xs);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);color:var(--pine-color-text-primary);display:-ms-flexbox;display:flex;height:var(--sizing-height-default);-ms-flex-pack:start;justify-content:flex-start;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);max-width:90vw;min-width:var(--sizing-min-width);padding:0 var(--padding-inline);position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 767px){.pds-toast{height:36px;max-width:calc(100vw - var(--pine-dimension-2xs) * 2);min-width:auto;padding-inline:var(--pine-dimension-2xs)}}.pds-toast--danger{background-color:var(--pine-color-danger)}.pds-toast--loading .pds-toast__loader{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm);position:relative}.pds-toast--loading .pds-toast__loader-spinner{-webkit-animation:pds-toast-rotate 2s linear infinite;animation:pds-toast-rotate 2s linear infinite;height:20px;width:20px}.pds-toast--loading .pds-toast__loader-path{-webkit-animation:pds-toast-dash 1.5s ease-in-out infinite;animation:pds-toast-dash 1.5s ease-in-out infinite;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}.pds-toast__icon{color:var(--pine-color-text-primary);display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm)}.pds-toast__message{font:var(--pine-typography-body-sm-medium);-webkit-margin-end:auto;margin-inline-end:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-toast__message ::slotted(a){color:var(--pine-color-text-primary);-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs);opacity:0.7;text-decoration:underline}.pds-toast__message ::slotted(a):hover,.pds-toast__message ::slotted(a):focus-visible{opacity:1}.pds-toast__message ::slotted(a):focus-visible{outline:2px solid var(--pine-color-text-primary);outline-offset:2px}.pds-toast__button{-ms-flex-align:center;align-items:center;background:none;border:0;border-radius:var(--pine-border-radius-full);color:inherit;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);opacity:0.7;padding:0;white-space:nowrap}.pds-toast__button:hover,.pds-toast__button:focus{opacity:1}.pds-toast__button:focus{outline:var(--pine-outline-focus);outline-offset:var(--pine-dimension-2xs)}@-webkit-keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@-webkit-keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}@keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}:host([hidden]) .pds-toast,.pds-toast--animating-out{-webkit-animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;pointer-events:none;}"};var o=300;var d=t("pds_toast",function(){function t(t){i(this,t);this.pdsToastDismissed=n(this,"pdsToastDismissed");this.dismissible=true;this.duration=4500;this.type="default";this.dismissLabel="Dismiss message";this.isVisible=true;this.isAnimatingOut=false}t.prototype.componentDidLoad=function(){if(this.duration>0){this.startDismissTimer()}};t.prototype.disconnectedCallback=function(){this.cleanup()};t.prototype.handleDurationChange=function(t){if(this.dismissTimer){window.clearTimeout(this.dismissTimer);this.dismissTimer=undefined}if(t>0){this.startDismissTimer()}};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:this.isAnimatingOut=true;return[4,this.waitForDismissAnimation()];case 1:t.sent();this.isVisible=false;this.cleanup();this.pdsToastDismissed.emit({componentId:this.componentId});return[2]}}))}))};t.prototype.waitForDismissAnimation=function(){var t=this.getDismissAnimationDurationMs();if(t<=0){return Promise.resolve()}return new Promise((function(i){return window.setTimeout(i,t)}))};t.prototype.getDismissAnimationDurationMs=function(){if(typeof window==="undefined"){return o}if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){return 0}var t=this.parseCssDurationToMs(getComputedStyle(this.el).getPropertyValue("--animation-duration").trim());return t!==null&&t!==void 0?t:o};t.prototype.parseCssDurationToMs=function(t){if(!t){return undefined}if(t==="0"||t==="0ms"||t==="0s"){return 0}if(t.endsWith("ms")){var i=Number.parseFloat(t);return Number.isFinite(i)?i:undefined}if(t.endsWith("s")){var n=Number.parseFloat(t);return Number.isFinite(n)?n*1e3:undefined}return undefined};t.prototype.cleanup=function(){if(this.dismissTimer){window.clearTimeout(this.dismissTimer);this.dismissTimer=undefined}};t.prototype.startDismissTimer=function(){var t=this;this.dismissTimer=window.setTimeout((function(){t.dismiss()}),this.duration)};t.prototype.renderIcon=function(){if(this.type==="loading"){return e("div",{class:"pds-toast__loader"},e("svg",{class:"pds-toast__loader-spinner",viewBox:"25 25 50 50","aria-hidden":"true"},e("circle",{class:"pds-toast__loader-path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":"4","stroke-linecap":"round"})))}return this.icon&&e("pds-icon",{name:this.icon,class:"pds-toast__icon"})};t.prototype.render=function(){var t;var i=this;return e(a,{key:"a1ec97158a6665aa25b58b1954b4b5c622590615",hidden:!this.isVisible},e("div",{key:"d9b01164364c76512852a260cede50000b73a563",class:(t={"pds-toast":true},t["pds-toast--".concat(this.type)]=this.type!=="default",t["pds-toast--animating-out"]=this.isAnimatingOut,t),role:"alert","aria-live":"polite"},this.renderIcon(),e("span",{key:"1f581c7c29ea3fc795dfca061d3575c5a9895b3c",class:"pds-toast__message"},e("slot",{key:"645b31eae3be23de63ab2562234caf0be2510645"})),this.dismissible&&e("button",{key:"44a62b304468c0fca0b8d490ad9c8b5932176ac9",type:"button",part:"dismiss",class:"pds-toast__button",onClick:function(){i.dismiss()},"aria-label":this.dismissLabel},e("pds-icon",{key:"fde63f279f696d9f02875cc1beee3542c97f0c7e",name:"remove"}))))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{duration:[{handleDurationChange:0}]}},enumerable:false,configurable:true});return t}());d.style=r()}}}));
@@ -1 +1 @@
1
- System.register(["./p-DVZjHa4_.system.js","./p-BxIzb-Wc.system.js","./p-WYNNo1N0.system.js"],(function(i){"use strict";var r,e,s,o,a,n,d;return{setters:[function(i){r=i.r;e=i.c;s=i.h;o=i.H;a=i.a},function(i){n=i.m},function(i){d=i.b}],execute:function(){var t=function(){return".sc-pds-radio-group-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--pine-dimension-sm)}.is-invalid.sc-pds-radio-group-h .pds-radio-group__message--error.sc-pds-radio-group{color:var(--pine-color-text-message-danger)}.pds-radio-group__label.sc-pds-radio-group{color:var(--pine-color-text-label);font:var(--pine-typography-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-radio-group__radios.sc-pds-radio-group{display:-ms-flexbox;display:flex;gap:var(--pds-radio-group-gap, var(--pine-dimension-xs))}.pds-radio-group__radios--row.sc-pds-radio-group{-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.pds-radio-group__radios--column.sc-pds-radio-group{-ms-flex-direction:column;flex-direction:column}.pds-radio-group__message.sc-pds-radio-group{color:var(--pine-color-text-message);font:var(--pine-typography-body);width:100%}.pds-radio-group__message--error.sc-pds-radio-group{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-radio-group__message--error.sc-pds-radio-group pds-icon.sc-pds-radio-group{-webkit-margin-before:var(--pine-dimension-050);margin-block-start:var(--pine-dimension-050)}"};var p=i("pds_radio_group",function(){function i(i){r(this,i);this.pdsRadioGroupChange=e(this,"pdsRadioGroupChange");this.direction="column";this.gap="xs";this.disabled=false;this.invalid=false;this.required=false}i.prototype.handlePropsChange=function(){this.updateChildRadios()};i.prototype.handleRadioChange=function(i){var r=i.target;if(r.type!=="radio"){return}if(r.checked){var e=r.closest("pds-radio");if(e){this.pdsRadioGroupChange.emit({checked:true,value:e.value,componentId:e.componentId})}}};i.prototype.updateChildRadios=function(){var i=this;var r=this.el.querySelectorAll("pds-radio");r.forEach((function(r){if(i.name){r.setAttribute("name",i.name)}else{r.removeAttribute("name")}if(i.disabled){r.setAttribute("disabled","true")}else{r.removeAttribute("disabled")}if(i.invalid){r.setAttribute("invalid","true")}else{r.removeAttribute("invalid")}if(i.required){r.setAttribute("required","true")}else{r.removeAttribute("required")}}))};i.prototype.componentWillLoad=function(){if(this.componentId){this._groupId=this.componentId}else{var i=typeof crypto!=="undefined"&&crypto.randomUUID?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9));this._groupId="radio-group-".concat(i)}};i.prototype.componentDidLoad=function(){if(!this.name){console.warn("pds-radio-group: name prop is required for proper radio group functionality")}this.updateChildRadios()};i.prototype.componentDidRender=function(){var i=this.el.querySelector(".pds-radio-group__radios");if(i===null)return;var r=".pds-radio-group__radios, .pds-radio-group__label, .pds-radio-group__message";var e=function(){return Array.from(i.children).find((function(i){return i.matches(r)}))};var s=e();while(s!==undefined){if(s.matches(".pds-radio-group__radios")){Array.from(s.childNodes).forEach((function(r){return i.insertBefore(r,s)}))}s.remove();s=e()}};i.prototype.classNames=function(){var i=[];if(this.invalid){i.push("is-invalid")}return i.join(" ")};i.prototype.getGapValue=function(){var i={none:"0",xxs:"var(--pine-dimension-xxs)",xs:"var(--pine-dimension-xs)",sm:"var(--pine-dimension-sm)",md:"var(--pine-dimension-md)",lg:"var(--pine-dimension-lg)",xl:"var(--pine-dimension-xl)",xxl:"var(--pine-dimension-xxl)"};if(i[this.gap]){return i[this.gap]}return"var(--pine-dimension-".concat(this.gap,")")};i.prototype.getAriaDescribedBy=function(){var i=[];if(this.errorMessage){i.push(n(this._groupId,"error"))}if(this.helperMessage){i.push(n(this._groupId,"helper"))}return i.length>0?i.join(" "):undefined};i.prototype.render=function(){var i=this;var r=this.getGapValue();var e=this.getAriaDescribedBy();return s(o,{key:"0f6b6ddc2af79fc470c050ed6b5588640fe0d7b6",class:this.classNames(),id:this._groupId,role:"group","aria-describedby":e,style:{"--pds-radio-group-gap":r}},this.groupLabel&&s("div",{key:"77dbdc4801c3ff50fa3ea6a84d3d6aa51702ad02",class:"pds-radio-group__label"},this.groupLabel),s("div",{key:"c8d7f6aebc39f72a57f353ac2f8677139ac77e71",class:{"pds-radio-group__radios":true,"pds-radio-group__radios--row":this.direction==="row","pds-radio-group__radios--column":this.direction==="column"}},s("slot",{key:"605e640fada693696e0b71205d18904b0af887b0",onSlotchange:function(){return i.updateChildRadios()}})),this.helperMessage&&s("div",{key:"13cc1c7a6b70ce6826f91a68380bc46188b218e1",class:"pds-radio-group__message",id:n(this._groupId,"helper")},this.helperMessage),this.errorMessage&&s("div",{key:"693dd2f784eb5de04f1b885948e7064936cffa7d",class:"pds-radio-group__message pds-radio-group__message--error",id:n(this._groupId,"error"),"aria-live":"assertive"},s("pds-icon",{key:"1569aeeeffde77d4920627020d04983e860ea52e",icon:d,size:"small"}),this.errorMessage))};Object.defineProperty(i.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(i,"watchers",{get:function(){return{name:[{handlePropsChange:0}],disabled:[{handlePropsChange:0}],invalid:[{handlePropsChange:0}],required:[{handlePropsChange:0}]}},enumerable:false,configurable:true});return i}());p.style=t()}}}));
1
+ System.register(["./p-DAIsVNlL.system.js","./p-BxIzb-Wc.system.js","./p--Llh7wKm.system.js"],(function(i){"use strict";var r,e,s,a,o,d,n;return{setters:[function(i){r=i.r;e=i.c;s=i.h;a=i.H;o=i.a},function(i){d=i.m},function(i){n=i.b}],execute:function(){var t=function(){return".sc-pds-radio-group-h{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--pine-dimension-sm)}.is-invalid.sc-pds-radio-group-h .pds-radio-group__message--error.sc-pds-radio-group{color:var(--pine-color-text-message-danger)}.pds-radio-group__label.sc-pds-radio-group{color:var(--pine-color-text-label);font:var(--pine-typography-heading-6);font-weight:var(--pine-font-weight-medium);letter-spacing:var(--pine-letter-spacing-heading-6)}.pds-radio-group__radios.sc-pds-radio-group{display:-ms-flexbox;display:flex;gap:var(--pds-radio-group-gap, var(--pine-dimension-xs))}.pds-radio-group__radios--row.sc-pds-radio-group{-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.pds-radio-group__radios--column.sc-pds-radio-group{-ms-flex-direction:column;flex-direction:column}.pds-radio-group__message.sc-pds-radio-group{color:var(--pine-color-text-message);font:var(--pine-typography-body);width:100%}.pds-radio-group__message--error.sc-pds-radio-group{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-radio-group__message--error.sc-pds-radio-group pds-icon.sc-pds-radio-group{-webkit-margin-before:var(--pine-dimension-050);margin-block-start:var(--pine-dimension-050)}"};var p=i("pds_radio_group",function(){function i(i){r(this,i);this.pdsRadioGroupChange=e(this,"pdsRadioGroupChange");this.direction="column";this.gap="xs";this.disabled=false;this.invalid=false;this.required=false}i.prototype.handlePropsChange=function(){this.updateChildRadios()};i.prototype.handleRadioChange=function(i){var r=i.target;if(r.type!=="radio"){return}if(r.checked){var e=r.closest("pds-radio");if(e){this.pdsRadioGroupChange.emit({checked:true,value:e.value,componentId:e.componentId})}}};i.prototype.updateChildRadios=function(){var i=this;var r=this.el.querySelectorAll("pds-radio");r.forEach((function(r){if(i.name){r.setAttribute("name",i.name)}else{r.removeAttribute("name")}if(i.disabled){r.setAttribute("disabled","true")}else{r.removeAttribute("disabled")}if(i.invalid){r.setAttribute("invalid","true")}else{r.removeAttribute("invalid")}if(i.required){r.setAttribute("required","true")}else{r.removeAttribute("required")}}))};i.prototype.componentWillLoad=function(){if(this.componentId){this._groupId=this.componentId}else{var i=typeof crypto!=="undefined"&&crypto.randomUUID?crypto.randomUUID():"".concat(Date.now(),"-").concat(Math.random().toString(36).substring(2,9));this._groupId="radio-group-".concat(i)}};i.prototype.componentDidLoad=function(){if(!this.name){console.warn("pds-radio-group: name prop is required for proper radio group functionality")}this.updateChildRadios()};i.prototype.componentDidRender=function(){var i=this.el.querySelector(".pds-radio-group__radios");if(i===null)return;var r=".pds-radio-group__radios, .pds-radio-group__label, .pds-radio-group__message";var e=function(){return Array.from(i.children).find((function(i){return i.matches(r)}))};var s=e();while(s!==undefined){if(s.matches(".pds-radio-group__radios")){Array.from(s.childNodes).forEach((function(r){return i.insertBefore(r,s)}))}s.remove();s=e()}};i.prototype.classNames=function(){var i=[];if(this.invalid){i.push("is-invalid")}return i.join(" ")};i.prototype.getGapValue=function(){var i={none:"0",xxs:"var(--pine-dimension-xxs)",xs:"var(--pine-dimension-xs)",sm:"var(--pine-dimension-sm)",md:"var(--pine-dimension-md)",lg:"var(--pine-dimension-lg)",xl:"var(--pine-dimension-xl)",xxl:"var(--pine-dimension-xxl)"};if(i[this.gap]){return i[this.gap]}return"var(--pine-dimension-".concat(this.gap,")")};i.prototype.getAriaDescribedBy=function(){var i=[];if(this.errorMessage){i.push(d(this._groupId,"error"))}if(this.helperMessage){i.push(d(this._groupId,"helper"))}return i.length>0?i.join(" "):undefined};i.prototype.render=function(){var i=this;var r=this.getGapValue();var e=this.getAriaDescribedBy();return s(a,{key:"048d4676df7c31a9ab08e4d4fc2b93866c1241fd",class:this.classNames(),id:this._groupId,role:"group","aria-describedby":e,style:{"--pds-radio-group-gap":r}},this.groupLabel&&s("div",{key:"414363733d6053517bb63888fb9813af6554d4df",class:"pds-radio-group__label"},this.groupLabel),s("div",{key:"d368dc474bf76f5cf7d633e59f929060fbf60b83",class:{"pds-radio-group__radios":true,"pds-radio-group__radios--row":this.direction==="row","pds-radio-group__radios--column":this.direction==="column"}},s("slot",{key:"210e1ba8d276c2832017ea7bf3d03348aa46106a",onSlotchange:function(){return i.updateChildRadios()}})),this.helperMessage&&s("div",{key:"06015935856640afdcddfcd8833a3a0659c58698",class:"pds-radio-group__message",id:d(this._groupId,"helper")},this.helperMessage),this.errorMessage&&s("div",{key:"44256d9a050feda9651f90093a298a12d9e97250",class:"pds-radio-group__message pds-radio-group__message--error",id:d(this._groupId,"error"),"aria-live":"assertive"},s("pds-icon",{key:"2b3aa1ffaa0f6a3ad0ce83d2becfcfdcc2f56fbc",icon:n,size:"small"}),this.errorMessage))};Object.defineProperty(i.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(i,"watchers",{get:function(){return{name:[{handlePropsChange:0}],disabled:[{handlePropsChange:0}],invalid:[{handlePropsChange:0}],required:[{handlePropsChange:0}]}},enumerable:false,configurable:true});return i}());p.style=t()}}}));
@@ -0,0 +1 @@
1
+ import{r as e,h as r,a as o}from"./p-CTLu1TM4.js";import{u as s}from"./p-RFpTWV6r.js";const d=class{constructor(r){e(this,r)}componentDidRender(){s(this.el.querySelector(".pds-drawer__footer"),".pds-drawer__footer")}render(){return r("footer",{key:"71cb35f7b1ccba9e4187eb8942771741f13510dc",class:"pds-drawer__footer"},r("slot",{key:"28927c76ee8194c44f416ee5d4e9ea2e0376bf5a"}))}get el(){return o(this)}};d.style="pds-drawer-footer{display:block;-ms-flex:0 0 auto;flex:0 0 auto;width:100%}.pds-drawer__footer{-webkit-border-before:1px solid var(--pine-color-border-subtle);border-block-start:1px solid var(--pine-color-border-subtle);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-sm);-ms-flex-pack:end;justify-content:flex-end;padding:var(--pine-dimension-md);width:100%}";export{d as pds_drawer_footer}
@@ -1 +1 @@
1
- import{r as s,h as t,H as i,a}from"./p-NNDTPCWx.js";const e=class{constructor(t){s(this,t),this.divider=!1,this.stretch=!1,this.nav=!1}tabClickHandler(s){this.componentId===s.detail[1]&&(this.activeTabIndex=s.detail[0],this.activeTabName=this.tabs[this.activeTabIndex].name)}handleKeyDown(s){if(this.isNav)return;const t=s.target.closest("pds-tab"),i=t&&t.closest("pds-tabs")===this.el;["ArrowLeft","ArrowRight","Home","End"].includes(s.key)&&i&&(s.preventDefault(),this.moveActiveTab(s.key))}get isNav(){return!!this.nav}warnOnNavConfig(){var s;if(!(null===(s=this.tabs)||void 0===s?void 0:s.length))return;const t=this.tabs.filter((s=>{const t=s.getAttribute("href");return null!=t&&""!==t})).length;this.nav&&t<this.tabs.length?console.warn("pds-tabs: `nav` is set, so every pds-tab needs an `href`."):!this.nav&&t>0&&console.warn("pds-tabs: a pds-tab has an `href` but `nav` is not set — add `nav` to pds-tabs for navigation mode; the href is ignored in panel mode.")}moveActiveTab(s){const t=this.tabs.length-1;let i=null;switch(s){case"ArrowLeft":i=0===this.activeTabIndex?t:this.activeTabIndex+-1;break;case"ArrowRight":i=this.activeTabIndex===t?0:this.activeTabIndex+1;break;case"Home":i=0;break;case"End":i=t}this.tabs[i].children[0].focus(),this.activeTabName=this.tabs[i].name,this.activeTabIndex=i}findAllChildren(){const s=Array.from(this.el.querySelectorAll("pds-tab")),t=Array.from(this.el.querySelectorAll("pds-tabpanel"));this.tabs=s.filter((s=>s.closest("pds-tabs")===this.el)),this.tabPanels=t.filter((s=>s.closest("pds-tabs")===this.el))}propGeneration(s,t=0){s.parentComponentId=this.componentId.toString(),s.variant=this.variant.toString(),s.selected=this.activeTabName===s.name,s.index=t}passPropsToChildren(){var s;if(!this.nav&&null==this.activeTabName&&this.tabs.length){const t=null!==(s=this.tabs.find((s=>!s.disabled)))&&void 0!==s?s:this.tabs[0];this.activeTabName=t.name}this.tabs.forEach(((s,t)=>{this.activeTabName===s.name&&(this.activeTabIndex=t),this.propGeneration(s,t),s.navMode=this.nav})),this.tabPanels.forEach((s=>{this.propGeneration(s),s.stretch=this.stretch}))}classNames(){let s="pds-tabs";return this.variant&&"primary"!=this.variant&&(s+=` pds-tabs--${this.variant}`),this.divider&&(s+=" pds-tabs--divider"),this.stretch&&(s+=" pds-tabs--stretch"),s}componentWillLoad(){this.findAllChildren(),this.warnOnNavConfig()}componentWillRender(){this.passPropsToChildren()}render(){const s=this.isNav?t("nav",{class:"pds-tabs__tablist","aria-label":this.tablistLabel||void 0,part:"tab-list"},t("slot",{name:"tabs"})):t("div",{class:"pds-tabs__tablist",role:"tablist","aria-label":this.tablistLabel,part:"tab-list"},t("slot",{name:"tabs"}));return t(i,{key:"97bb6d788bd7bdf393b46eaecea612d9b0c9dee4","active-tab-name":this.activeTabName,class:this.classNames(),id:this.componentId},s,t("slot",{key:"252855bfa496bc3e04fbe6dc0bcb7597c7360407",name:"tabpanels"}))}get el(){return a(this)}};e.style=":host{--tabs-dimension-panel-margin-top:var(--pine-dimension-none);--tabs-dimension-panel-padding:0;display:block}.pds-tabs__tablist{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-md)}:host(.pds-tabs--divider) .pds-tabs__tablist{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host(.pds-tabs--stretch){block-size:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.pds-tabs--stretch) .pds-tabs__tablist{-ms-flex:0 0 auto;flex:0 0 auto}:host(.pds-tabs--availability) .pds-tabs__tablist{gap:var(--pine-dimension-xs)}:host(.pds-tabs--filter) .pds-tabs__tablist{gap:var(--pine-dimension-sm)}:host(.pds-tabs--pill) .pds-tabs__tablist{background-color:var(--pine-color-background-app);border:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-radius:var(--pine-dimension-100);display:-ms-inline-flexbox;display:inline-flex;display:-ms-flexbox;display:flex;gap:0;height:var(--pine-dimension-450)}";export{e as pds_tabs}
1
+ import{r as s,h as t,H as i,a}from"./p-CTLu1TM4.js";const e=class{constructor(t){s(this,t),this.divider=!1,this.stretch=!1,this.nav=!1}tabClickHandler(s){this.componentId===s.detail[1]&&(this.activeTabIndex=s.detail[0],this.activeTabName=this.tabs[this.activeTabIndex].name)}handleKeyDown(s){if(this.isNav)return;const t=s.target.closest("pds-tab"),i=t&&t.closest("pds-tabs")===this.el;["ArrowLeft","ArrowRight","Home","End"].includes(s.key)&&i&&(s.preventDefault(),this.moveActiveTab(s.key))}get isNav(){return!!this.nav}warnOnNavConfig(){var s;if(!(null===(s=this.tabs)||void 0===s?void 0:s.length))return;const t=this.tabs.filter((s=>{const t=s.getAttribute("href");return null!=t&&""!==t})).length;this.nav&&t<this.tabs.length?console.warn("pds-tabs: `nav` is set, so every pds-tab needs an `href`."):!this.nav&&t>0&&console.warn("pds-tabs: a pds-tab has an `href` but `nav` is not set — add `nav` to pds-tabs for navigation mode; the href is ignored in panel mode.")}moveActiveTab(s){const t=this.tabs.length-1;let i=null;switch(s){case"ArrowLeft":i=0===this.activeTabIndex?t:this.activeTabIndex+-1;break;case"ArrowRight":i=this.activeTabIndex===t?0:this.activeTabIndex+1;break;case"Home":i=0;break;case"End":i=t}this.tabs[i].children[0].focus(),this.activeTabName=this.tabs[i].name,this.activeTabIndex=i}findAllChildren(){const s=Array.from(this.el.querySelectorAll("pds-tab")),t=Array.from(this.el.querySelectorAll("pds-tabpanel"));this.tabs=s.filter((s=>s.closest("pds-tabs")===this.el)),this.tabPanels=t.filter((s=>s.closest("pds-tabs")===this.el))}propGeneration(s,t=0){s.parentComponentId=this.componentId.toString(),s.variant=this.variant.toString(),s.selected=this.activeTabName===s.name,s.index=t}passPropsToChildren(){var s;if(!this.nav&&null==this.activeTabName&&this.tabs.length){const t=null!==(s=this.tabs.find((s=>!s.disabled)))&&void 0!==s?s:this.tabs[0];this.activeTabName=t.name}this.tabs.forEach(((s,t)=>{this.activeTabName===s.name&&(this.activeTabIndex=t),this.propGeneration(s,t),s.navMode=this.nav})),this.tabPanels.forEach((s=>{this.propGeneration(s),s.stretch=this.stretch}))}classNames(){let s="pds-tabs";return this.variant&&"primary"!=this.variant&&(s+=` pds-tabs--${this.variant}`),this.divider&&(s+=" pds-tabs--divider"),this.stretch&&(s+=" pds-tabs--stretch"),s}componentWillLoad(){this.findAllChildren(),this.warnOnNavConfig()}componentWillRender(){this.passPropsToChildren()}render(){const s=this.isNav?t("nav",{class:"pds-tabs__tablist","aria-label":this.tablistLabel||void 0,part:"tab-list"},t("slot",{name:"tabs"})):t("div",{class:"pds-tabs__tablist",role:"tablist","aria-label":this.tablistLabel,part:"tab-list"},t("slot",{name:"tabs"}));return t(i,{key:"f9d0e94dcacd7b94691368f08eb77b45475c0a35","active-tab-name":this.activeTabName,class:this.classNames(),id:this.componentId},s,t("slot",{key:"93c605b2bd4b8ad3dcd8f494a82fd30833e8b300",name:"tabpanels"}))}get el(){return a(this)}};e.style=":host{--tabs-dimension-panel-margin-top:var(--pine-dimension-none);--tabs-dimension-panel-padding:0;display:block}.pds-tabs__tablist{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-md)}:host(.pds-tabs--divider) .pds-tabs__tablist{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host(.pds-tabs--stretch){block-size:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host(.pds-tabs--stretch) .pds-tabs__tablist{-ms-flex:0 0 auto;flex:0 0 auto}:host(.pds-tabs--availability) .pds-tabs__tablist{gap:var(--pine-dimension-xs)}:host(.pds-tabs--filter) .pds-tabs__tablist{gap:var(--pine-dimension-sm)}:host(.pds-tabs--pill) .pds-tabs__tablist{background-color:var(--pine-color-background-app);border:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-radius:var(--pine-dimension-100);display:-ms-inline-flexbox;display:inline-flex;display:-ms-flexbox;display:flex;gap:0;height:var(--pine-dimension-450)}";export{e as pds_tabs}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e,a as h}from"./p-NNDTPCWx.js";const o=class{constructor(i){t(this,i),this.pdsPopoverOpen=s(this,"pdsPopoverOpen"),this.pdsPopoverClose=s(this,"pdsPopoverClose"),this.active=!1,this.isComponentMounted=!0,this.triggerEl=null,this.portalEl=null,this.isRepositioning=!1,this.scrollDebounceTimer=null,this.resizeDebounceTimer=null,this.movedNodes=[],this.openTimestamp=0,this.popoverTargetAction="show",this.popoverType="auto",this.maxWidth=352,this.placement="right",this.handleTriggerSlotChange=t=>{const s=t.target.assignedElements();null!=this.triggerEl&&this.triggerEl.removeEventListener("click",this.handleTriggerClick),s.length>0?(this.triggerEl=s[0],this.portalEl&&(this.triggerEl.setAttribute("aria-expanded",String(this.active)),this.triggerEl.setAttribute("aria-controls",this.portalEl.id)),this.triggerEl.addEventListener("click",this.handleTriggerClick)):this.triggerEl=null},this.handleContentSlotChange=()=>{this.active&&this.updatePortalContent()},this.handleTriggerClick=t=>{switch(t.composedPath().find((t=>t instanceof HTMLAnchorElement&&t.href))||t.preventDefault(),this.popoverTargetAction){case"show":this.show();break;case"hide":this.hide();break;default:this.toggle()}}}componentDidLoad(){var t;this.boundClickOutsideHandler=this.handleClickOutside.bind(this),this.boundEscapeKeyHandler=this.handleEscapeKey.bind(this),this.boundScrollHandler=this.handleScroll.bind(this),this.boundResizeHandler=this.handleResize.bind(this),this.createPortal();const s=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="trigger"]');if(s&&null==this.triggerEl){const t=new("undefined"!=typeof window?window.Event:global.Event)("slotchange");Object.defineProperty(t,"target",{value:s,enumerable:!0}),this.handleTriggerSlotChange(t)}}disconnectedCallback(){this.isComponentMounted=!1,null!=this.triggerEl&&this.triggerEl.removeEventListener("click",this.handleTriggerClick),this.removeLightDismissListeners(),this.removeScrollAndResizeListeners(),this.clearDebounceTimers(),this.removePortal()}clearDebounceTimers(){null!==this.scrollDebounceTimer&&(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=null),null!==this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null)}createPortal(){if(null===this.portalEl){if(this.portalEl=document.createElement("div"),this.portalEl.className="pds-popover",this.portalEl.style.position="fixed",this.portalEl.style.zIndex="var(--pine-z-index-raised)",this.portalEl.style.maxWidth=`${this.maxWidth}px`,this.portalEl.style.display="none",this.portalEl.style.opacity="0",this.portalEl.style.visibility="hidden",this.portalEl.style.backgroundColor="var(--pine-color-background-overlay)",this.portalEl.style.borderRadius="var(--pine-dimension-125)",this.portalEl.style.boxShadow="var(--pine-box-shadow-200)",this.portalEl.style.margin="var(--pine-dimension-none)",this.portalEl.style.padding="var(--pine-dimension-md)",this.componentId)this.portalEl.id=`${this.componentId}-portal`;else{const t=o.instanceCounter++;this.portalEl.id=`pds-popover-portal-${t}`}this.portalEl.setAttribute("aria-modal","false"),document.body.appendChild(this.portalEl),this.addPortalFocusStyles()}}addPortalFocusStyles(){if(!this.portalEl)return;const t=this.portalEl.id;if(document.querySelector(`style[data-pds-popover-focus="${t}"]`))return;const s=document.createElement("style");s.setAttribute("data-pds-popover-focus",t),s.textContent=`\n #${t}:focus {\n outline: var(--pine-outline-focus, 2px solid var(--pine-color-focus-ring, #6366f1)) !important;\n outline-offset: var(--pine-border-width, 1px);\n }\n #${t}:focus:not(:focus-visible) {\n outline: none;\n }\n [data-theme="dark"] #${t} {\n border: var(--pine-border);\n }\n `,document.head.appendChild(s)}updatePortalContent(){var t;if(!this.portalEl)return;const s=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".pds-popover__content-slot-wrapper"),i=null==s?void 0:s.querySelector("slot");i&&i.assignedNodes().forEach((t=>{var s;const i=t.parentNode===this.portalEl,e=this.movedNodes.some((s=>s.node===t));if(i||e)return;const h=document.createComment("pds-popover-placeholder");null===(s=t.parentNode)||void 0===s||s.insertBefore(h,t),this.portalEl.appendChild(t),this.movedNodes.push({node:t,placeholder:h})}))}restorePortalContent(){this.movedNodes.forEach((({node:t,placeholder:s})=>{s.parentNode&&(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))})),this.movedNodes=[]}removePortal(){if(this.portalEl){this.portalEl.parentNode&&this.portalEl.parentNode.removeChild(this.portalEl);const t=document.querySelector(`style[data-pds-popover-focus="${this.portalEl.id}"]`);t&&t.parentNode&&t.parentNode.removeChild(t)}this.portalEl=null}async show(){!this.active&&this.portalEl&&(this.active=!0,this.openTimestamp=Date.now(),this.triggerEl&&this.triggerEl.setAttribute("aria-expanded","true"),this.updatePortalContent(),this.portalEl.style.display="block",this.portalEl.style.opacity="1",this.portalEl.style.visibility="visible",requestAnimationFrame((()=>{this.isComponentMounted&&this.handlePopoverPositioning()})),this.addScrollAndResizeListeners(),"auto"===this.popoverType&&this.addLightDismissListeners(),this.pdsPopoverOpen.emit({componentId:this.componentId,popoverType:this.popoverType}))}async hide(){this.active&&this.portalEl&&(this.active=!1,this.triggerEl&&this.triggerEl.setAttribute("aria-expanded","false"),this.restorePortalContent(),this.portalEl.style.display="none",this.portalEl.style.opacity="0",this.portalEl.style.visibility="hidden",this.returnFocusToTrigger(),this.removeLightDismissListeners(),this.removeScrollAndResizeListeners(),this.clearDebounceTimers(),this.pdsPopoverClose.emit({componentId:this.componentId,popoverType:this.popoverType}))}async toggle(){this.active?this.hide():this.show()}addLightDismissListeners(){document.addEventListener("click",this.boundClickOutsideHandler,!0),document.addEventListener("keydown",this.boundEscapeKeyHandler)}removeLightDismissListeners(){document.removeEventListener("click",this.boundClickOutsideHandler,!0),document.removeEventListener("keydown",this.boundEscapeKeyHandler)}addScrollAndResizeListeners(){window.addEventListener("scroll",this.boundScrollHandler,!0),window.addEventListener("resize",this.boundResizeHandler)}removeScrollAndResizeListeners(){window.removeEventListener("scroll",this.boundScrollHandler,!0),window.removeEventListener("resize",this.boundResizeHandler)}handleClickOutside(t){var s,i;if((t.timeStamp?Date.now()-(performance.now()-t.timeStamp):Date.now())<=this.openTimestamp)return;const e=t.target,h=null===(s=this.portalEl)||void 0===s?void 0:s.contains(e),o=null===(i=this.triggerEl)||void 0===i?void 0:i.contains(e);h||o||this.hide()}returnFocusToTrigger(){this.triggerEl&&this.triggerEl.focus({preventScroll:!0})}handleEscapeKey(t){"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),this.hide())}handleScroll(){this.active&&(null!==this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout((()=>{this.handlePopoverPositioning(),this.scrollDebounceTimer=null}),10))}handleResize(){this.active&&(null!==this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=setTimeout((()=>{this.handlePopoverPositioning(),this.resizeDebounceTimer=null}),100))}handlePopoverPositioning(){if(this.isRepositioning)return;if(this.isRepositioning=!0,null==this.triggerEl||null==this.portalEl)return void(this.isRepositioning=!1);const t=this.triggerEl.getBoundingClientRect(),s=this.portalEl.getBoundingClientRect();if(0===t.width||0===t.height)return void(this.isRepositioning=!1);let i=0,e=0;switch(this.placement){case"top":i=t.top-s.height-8,e=t.left+(t.width-s.width)/2;break;case"top-start":i=t.top-s.height-8,e=t.left;break;case"top-end":i=t.top-s.height-8,e=t.right-s.width;break;case"right":i=t.top+(t.height-s.height)/2,e=t.right+8;break;case"right-start":i=t.top,e=t.right+8;break;case"right-end":i=t.bottom-s.height,e=t.right+8;break;case"bottom":i=t.bottom+8,e=t.left+(t.width-s.width)/2;break;case"bottom-start":i=t.bottom+8,e=t.left;break;case"bottom-end":i=t.bottom+8,e=t.right-s.width;break;case"left":i=t.top+(t.height-s.height)/2,e=t.left-s.width-8;break;case"left-start":i=t.top,e=t.left-s.width-8;break;case"left-end":i=t.bottom-s.height,e=t.left-s.width-8}this.portalEl.style.top=`${i}px`,this.portalEl.style.left=`${e}px`,setTimeout((()=>{this.isRepositioning=!1}),16)}render(){return i(e,{key:"2e19ac35068ac25b013bd146da0b3b343eb89d75",id:this.componentId},i("span",{key:"e982ade010dc6539593759704e5afae29ce5eba8",class:"pds-popover__trigger-wrapper"},i("slot",{key:"f1e1ef5e3b0b52a96cb566175ea420e1d1545ccc",name:"trigger",onSlotchange:this.handleTriggerSlotChange})),i("div",{key:"caa5762029db6430f174c8936611fe332889620d",class:"pds-popover__content-slot-wrapper"},i("slot",{key:"cdad839643d1a5a2024cd55cdd33750f8665a366",onSlotchange:this.handleContentSlotChange})))}get el(){return h(this)}};o.instanceCounter=0,o.style=":host{--sizing-max-width-default:352px;display:inline-block}:host .pds-popover__trigger-wrapper{display:inline-block}:host .pds-popover__content-slot-wrapper{display:none}";export{o as pds_popover}
1
+ import{r as t,c as s,h as i,H as e,a as h}from"./p-CTLu1TM4.js";const o=class{constructor(i){t(this,i),this.pdsPopoverOpen=s(this,"pdsPopoverOpen"),this.pdsPopoverClose=s(this,"pdsPopoverClose"),this.active=!1,this.isComponentMounted=!0,this.triggerEl=null,this.portalEl=null,this.isRepositioning=!1,this.scrollDebounceTimer=null,this.resizeDebounceTimer=null,this.movedNodes=[],this.openTimestamp=0,this.popoverTargetAction="show",this.popoverType="auto",this.maxWidth=352,this.placement="right",this.handleTriggerSlotChange=t=>{const s=t.target.assignedElements();null!=this.triggerEl&&this.triggerEl.removeEventListener("click",this.handleTriggerClick),s.length>0?(this.triggerEl=s[0],this.portalEl&&(this.triggerEl.setAttribute("aria-expanded",String(this.active)),this.triggerEl.setAttribute("aria-controls",this.portalEl.id)),this.triggerEl.addEventListener("click",this.handleTriggerClick)):this.triggerEl=null},this.handleContentSlotChange=()=>{this.active&&this.updatePortalContent()},this.handleTriggerClick=t=>{switch(t.composedPath().find((t=>t instanceof HTMLAnchorElement&&t.href))||t.preventDefault(),this.popoverTargetAction){case"show":this.show();break;case"hide":this.hide();break;default:this.toggle()}}}componentDidLoad(){var t;this.boundClickOutsideHandler=this.handleClickOutside.bind(this),this.boundEscapeKeyHandler=this.handleEscapeKey.bind(this),this.boundScrollHandler=this.handleScroll.bind(this),this.boundResizeHandler=this.handleResize.bind(this),this.createPortal();const s=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector('slot[name="trigger"]');if(s&&null==this.triggerEl){const t=new("undefined"!=typeof window?window.Event:global.Event)("slotchange");Object.defineProperty(t,"target",{value:s,enumerable:!0}),this.handleTriggerSlotChange(t)}}disconnectedCallback(){this.isComponentMounted=!1,null!=this.triggerEl&&this.triggerEl.removeEventListener("click",this.handleTriggerClick),this.removeLightDismissListeners(),this.removeScrollAndResizeListeners(),this.clearDebounceTimers(),this.removePortal()}clearDebounceTimers(){null!==this.scrollDebounceTimer&&(clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=null),null!==this.resizeDebounceTimer&&(clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=null)}createPortal(){if(null===this.portalEl){if(this.portalEl=document.createElement("div"),this.portalEl.className="pds-popover",this.portalEl.style.position="fixed",this.portalEl.style.zIndex="var(--pine-z-index-raised)",this.portalEl.style.maxWidth=`${this.maxWidth}px`,this.portalEl.style.display="none",this.portalEl.style.opacity="0",this.portalEl.style.visibility="hidden",this.portalEl.style.backgroundColor="var(--pine-color-background-overlay)",this.portalEl.style.borderRadius="var(--pine-dimension-125)",this.portalEl.style.boxShadow="var(--pine-box-shadow-200)",this.portalEl.style.margin="var(--pine-dimension-none)",this.portalEl.style.padding="var(--pine-dimension-md)",this.componentId)this.portalEl.id=`${this.componentId}-portal`;else{const t=o.instanceCounter++;this.portalEl.id=`pds-popover-portal-${t}`}this.portalEl.setAttribute("aria-modal","false"),document.body.appendChild(this.portalEl),this.addPortalFocusStyles()}}addPortalFocusStyles(){if(!this.portalEl)return;const t=this.portalEl.id;if(document.querySelector(`style[data-pds-popover-focus="${t}"]`))return;const s=document.createElement("style");s.setAttribute("data-pds-popover-focus",t),s.textContent=`\n #${t}:focus {\n outline: var(--pine-outline-focus, 2px solid var(--pine-color-focus-ring, #6366f1)) !important;\n outline-offset: var(--pine-border-width, 1px);\n }\n #${t}:focus:not(:focus-visible) {\n outline: none;\n }\n [data-theme="dark"] #${t} {\n border: var(--pine-border);\n }\n `,document.head.appendChild(s)}updatePortalContent(){var t;if(!this.portalEl)return;const s=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".pds-popover__content-slot-wrapper"),i=null==s?void 0:s.querySelector("slot");i&&i.assignedNodes().forEach((t=>{var s;const i=t.parentNode===this.portalEl,e=this.movedNodes.some((s=>s.node===t));if(i||e)return;const h=document.createComment("pds-popover-placeholder");null===(s=t.parentNode)||void 0===s||s.insertBefore(h,t),this.portalEl.appendChild(t),this.movedNodes.push({node:t,placeholder:h})}))}restorePortalContent(){this.movedNodes.forEach((({node:t,placeholder:s})=>{s.parentNode&&(s.parentNode.insertBefore(t,s),s.parentNode.removeChild(s))})),this.movedNodes=[]}removePortal(){if(this.portalEl){this.portalEl.parentNode&&this.portalEl.parentNode.removeChild(this.portalEl);const t=document.querySelector(`style[data-pds-popover-focus="${this.portalEl.id}"]`);t&&t.parentNode&&t.parentNode.removeChild(t)}this.portalEl=null}async show(){!this.active&&this.portalEl&&(this.active=!0,this.openTimestamp=Date.now(),this.triggerEl&&this.triggerEl.setAttribute("aria-expanded","true"),this.updatePortalContent(),this.portalEl.style.display="block",this.portalEl.style.opacity="1",this.portalEl.style.visibility="visible",requestAnimationFrame((()=>{this.isComponentMounted&&this.handlePopoverPositioning()})),this.addScrollAndResizeListeners(),"auto"===this.popoverType&&this.addLightDismissListeners(),this.pdsPopoverOpen.emit({componentId:this.componentId,popoverType:this.popoverType}))}async hide(){this.active&&this.portalEl&&(this.active=!1,this.triggerEl&&this.triggerEl.setAttribute("aria-expanded","false"),this.restorePortalContent(),this.portalEl.style.display="none",this.portalEl.style.opacity="0",this.portalEl.style.visibility="hidden",this.returnFocusToTrigger(),this.removeLightDismissListeners(),this.removeScrollAndResizeListeners(),this.clearDebounceTimers(),this.pdsPopoverClose.emit({componentId:this.componentId,popoverType:this.popoverType}))}async toggle(){this.active?this.hide():this.show()}addLightDismissListeners(){document.addEventListener("click",this.boundClickOutsideHandler,!0),document.addEventListener("keydown",this.boundEscapeKeyHandler)}removeLightDismissListeners(){document.removeEventListener("click",this.boundClickOutsideHandler,!0),document.removeEventListener("keydown",this.boundEscapeKeyHandler)}addScrollAndResizeListeners(){window.addEventListener("scroll",this.boundScrollHandler,!0),window.addEventListener("resize",this.boundResizeHandler)}removeScrollAndResizeListeners(){window.removeEventListener("scroll",this.boundScrollHandler,!0),window.removeEventListener("resize",this.boundResizeHandler)}handleClickOutside(t){var s,i;if((t.timeStamp?Date.now()-(performance.now()-t.timeStamp):Date.now())<=this.openTimestamp)return;const e=t.target,h=null===(s=this.portalEl)||void 0===s?void 0:s.contains(e),o=null===(i=this.triggerEl)||void 0===i?void 0:i.contains(e);h||o||this.hide()}returnFocusToTrigger(){this.triggerEl&&this.triggerEl.focus({preventScroll:!0})}handleEscapeKey(t){"Escape"===t.key&&(t.preventDefault(),t.stopPropagation(),this.hide())}handleScroll(){this.active&&(null!==this.scrollDebounceTimer&&clearTimeout(this.scrollDebounceTimer),this.scrollDebounceTimer=setTimeout((()=>{this.handlePopoverPositioning(),this.scrollDebounceTimer=null}),10))}handleResize(){this.active&&(null!==this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=setTimeout((()=>{this.handlePopoverPositioning(),this.resizeDebounceTimer=null}),100))}handlePopoverPositioning(){if(this.isRepositioning)return;if(this.isRepositioning=!0,null==this.triggerEl||null==this.portalEl)return void(this.isRepositioning=!1);const t=this.triggerEl.getBoundingClientRect(),s=this.portalEl.getBoundingClientRect();if(0===t.width||0===t.height)return void(this.isRepositioning=!1);let i=0,e=0;switch(this.placement){case"top":i=t.top-s.height-8,e=t.left+(t.width-s.width)/2;break;case"top-start":i=t.top-s.height-8,e=t.left;break;case"top-end":i=t.top-s.height-8,e=t.right-s.width;break;case"right":i=t.top+(t.height-s.height)/2,e=t.right+8;break;case"right-start":i=t.top,e=t.right+8;break;case"right-end":i=t.bottom-s.height,e=t.right+8;break;case"bottom":i=t.bottom+8,e=t.left+(t.width-s.width)/2;break;case"bottom-start":i=t.bottom+8,e=t.left;break;case"bottom-end":i=t.bottom+8,e=t.right-s.width;break;case"left":i=t.top+(t.height-s.height)/2,e=t.left-s.width-8;break;case"left-start":i=t.top,e=t.left-s.width-8;break;case"left-end":i=t.bottom-s.height,e=t.left-s.width-8}this.portalEl.style.top=`${i}px`,this.portalEl.style.left=`${e}px`,setTimeout((()=>{this.isRepositioning=!1}),16)}render(){return i(e,{key:"760428c178ed92dfc35293181b7cef8fac3b4e26",id:this.componentId},i("span",{key:"d12a6a33dcf0fe6f3b61972ae8e5ac604263b2ac",class:"pds-popover__trigger-wrapper"},i("slot",{key:"d975e355a3acb9bc6d95202ec177f631bddb43bf",name:"trigger",onSlotchange:this.handleTriggerSlotChange})),i("div",{key:"f99ae2d97c75ed8ec63fbd0a859f8b7b9f78f0d2",class:"pds-popover__content-slot-wrapper"},i("slot",{key:"d1620c57d993496045fc3c47b55cdd0c1d07b36c",onSlotchange:this.handleContentSlotChange})))}get el(){return h(this)}};o.instanceCounter=0,o.style=":host{--sizing-max-width-default:352px;display:inline-block}:host .pds-popover__trigger-wrapper{display:inline-block}:host .pds-popover__content-slot-wrapper{display:none}";export{o as pds_popover}
@@ -1 +1 @@
1
- System.register(["./p-DVZjHa4_.system.js","./p-kYMYDfJY.system.js"],(function(e){"use strict";var r,t,o,i,d,n;return{setters:[function(e){r=e.r;t=e.c;o=e.h;i=e.H;d=e.a},function(e){n=e.c}],execute:function(){var a=function(){return":host{--border-head-default:var(--pine-border-width-thin) solid var(--pine-color-background-subtle);border-color:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:table-header-group;vertical-align:middle}:host::part(checkbox-cell){background-color:var(--pine-color-background-container);inset-inline-start:var(--pine-dimension-none);position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host pds-table-checkbox-cell{-webkit-border-after:var(--border-head-default);border-block-end:var(--border-head-default)}:host([border]){-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);-webkit-border-before:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-start:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host([border]) pds-table-head-cell{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);-webkit-border-before:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-start:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host([background]){background-color:var(--pine-color-background-subtle)}:host([background]) pds-table-head-cell{background-color:var(--pine-color-background-subtle)}"};var b=e("pds_table_head",function(){function e(e){var o=this;r(this,e);this.pdsTableSelectAll=t(this,"pdsTableSelectAll");this.border=false;this.background=false;this.generateUniqueId=function(){var e=Math.random().toString(36).substring(2,8);var r=(new Date).toISOString().replace(/[:.]/g,"-");var t="".concat(e,"-").concat(r);return t};this.handleInput=function(e){o.isSelected=!e.target.checked;o.handleSelect(o.isSelected)};this.handleSelect=function(e){o.indeterminate=false;if(n("pds-table-head",o.hostElement)){o.pdsTableSelectAll.emit({isSelected:e})}}}e.prototype.componentWillLoad=function(){if(this.isSelected){this.handleSelect(this.isSelected)}};e.prototype.componentWillRender=function(){this.tableRef=this.hostElement.closest("pds-table");if(this.tableRef&&this.tableRef.fixedColumn){var e=this.hostElement.querySelector("pds-table-head-cell:first-child");e===null||e===void 0?void 0:e.classList.add("is-fixed")}};e.prototype.render=function(){return o(i,{key:"d5d5906bdb23794b911ecd5904a4cc58aa5380d6",role:"row",part:"head"},this.tableRef&&this.tableRef.selectable&&o("pds-table-head-cell",{key:"85df57fb4371e4fba855e16ce62c8329b49e08cf",part:this.tableRef.selectable?"checkbox-cell":""},!this.tableRef.disableSelectAll&&o("pds-checkbox",{key:"92bd5565463e29d249d1ac71d9dc0d000f3eea79",componentId:this.generateUniqueId(),indeterminate:this.indeterminate,onInput:this.handleInput,label:"Select All Rows",hideLabel:true,checked:this.isSelected,part:"select-all-checkbox"})),o("slot",{key:"494dc0395da229a264c38540479f36967601cc26"}))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return d(this)},enumerable:false,configurable:true});return e}());b.style=a()}}}));
1
+ System.register(["./p-DAIsVNlL.system.js","./p-kYMYDfJY.system.js"],(function(e){"use strict";var r,t,o,i,d,n;return{setters:[function(e){r=e.r;t=e.c;o=e.h;i=e.H;d=e.a},function(e){n=e.c}],execute:function(){var b=function(){return":host{--border-head-default:var(--pine-border-width-thin) solid var(--pine-color-background-subtle);border-color:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:table-header-group;vertical-align:middle}:host::part(checkbox-cell){background-color:var(--pine-color-background-container);inset-inline-start:var(--pine-dimension-none);position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host pds-table-checkbox-cell{-webkit-border-after:var(--border-head-default);border-block-end:var(--border-head-default)}:host([border]){-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);-webkit-border-before:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-start:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host([border]) pds-table-head-cell{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);-webkit-border-before:var(--pine-border-width-thin) solid var(--pine-color-border-subtle);border-block-start:var(--pine-border-width-thin) solid var(--pine-color-border-subtle)}:host([background]){background-color:var(--pine-color-background-subtle)}:host([background]) pds-table-head-cell{background-color:var(--pine-color-background-subtle)}"};var a=e("pds_table_head",function(){function e(e){var o=this;r(this,e);this.pdsTableSelectAll=t(this,"pdsTableSelectAll");this.border=false;this.background=false;this.generateUniqueId=function(){var e=Math.random().toString(36).substring(2,8);var r=(new Date).toISOString().replace(/[:.]/g,"-");var t="".concat(e,"-").concat(r);return t};this.handleInput=function(e){o.isSelected=!e.target.checked;o.handleSelect(o.isSelected)};this.handleSelect=function(e){o.indeterminate=false;if(n("pds-table-head",o.hostElement)){o.pdsTableSelectAll.emit({isSelected:e})}}}e.prototype.componentWillLoad=function(){if(this.isSelected){this.handleSelect(this.isSelected)}};e.prototype.componentWillRender=function(){this.tableRef=this.hostElement.closest("pds-table");if(this.tableRef&&this.tableRef.fixedColumn){var e=this.hostElement.querySelector("pds-table-head-cell:first-child");e===null||e===void 0?void 0:e.classList.add("is-fixed")}};e.prototype.render=function(){return o(i,{key:"5815389e77b61a323dd4430625b0917a7428bf02",role:"row",part:"head"},this.tableRef&&this.tableRef.selectable&&o("pds-table-head-cell",{key:"161fdced5a7c7cd13a62fb7c1ed96e82ad2dbfd0",part:this.tableRef.selectable?"checkbox-cell":""},!this.tableRef.disableSelectAll&&o("pds-checkbox",{key:"d6e90d844d314ef347ffb4db8b360ba36887c311",componentId:this.generateUniqueId(),indeterminate:this.indeterminate,onInput:this.handleInput,label:"Select All Rows",hideLabel:true,checked:this.isSelected,part:"select-all-checkbox"})),o("slot",{key:"1dd5dd37d4fca230000a6eb4b96fee87e4e67802"}))};Object.defineProperty(e.prototype,"hostElement",{get:function(){return d(this)},enumerable:false,configurable:true});return e}());a.style=b()}}}));
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as r,a as e}from"./p-NNDTPCWx.js";import{g as o}from"./p-DtgUQhjl.js";const a=class{constructor(s){t(this,s),this.pdsTableSelectAll=i(this,"pdsTableSelectAll"),this.scrollContainer=null,this._responsiveHandleScroll=null,this._responsiveHandleResize=null,this._responsiveResizeObserver=null,this._teardownResponsive=null,this.disableSelectAll=!1,this.rowDividers=!1,this.defaultSortDirection="asc",this.sortingColumn=null,this.sortingDirection="asc"}componentDidLoad(){this.responsive&&this.setupResponsiveScrolling(),this.defaultSortColumn&&requestAnimationFrame((()=>{this.applyDefaultSort().catch((t=>{console.warn("Failed to apply default sort.",t)}))}))}async applyDefaultSort(){var t;const i="desc"===this.defaultSortDirection?"desc":"asc",s=Array.from(this.el.querySelectorAll("pds-table-head-cell[sortable]")).find((t=>{var i;return(null!==(i=t.textContent)&&void 0!==i?i:"").trim()===this.defaultSortColumn}));if(s){const r=(null!==(t=s.textContent)&&void 0!==t?t:"").trim();this.sortTable(r,i),this.sortingColumn=r,this.sortingDirection=i,await s.setActiveSort(i)}else console.warn(`Default sort column "${this.defaultSortColumn}" not found.`)}disconnectedCallback(){this._teardownResponsive&&(this._teardownResponsive(),this._teardownResponsive=null)}setupResponsiveScrolling(){var t,i,s;const r=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".pds-table-responsive-container"),e=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(".scroll-shadow-left"),a=null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelector(".scroll-shadow-right");if(r&&e&&a){if(this.scrollContainer=r,this._responsiveHandleScroll=()=>{if(!this.scrollContainer)return;const{scrollWidth:t,clientWidth:i}=this.scrollContainer,s=t-i,r=o(this.scrollContainer);e.style.opacity=r>0&&!this.fixedColumn?"1":"0",a.style.opacity=s>0&&r<s-1?"1":"0"},this.scrollContainer.addEventListener("scroll",this._responsiveHandleScroll,{passive:!0}),"undefined"!=typeof window&&window.ResizeObserver)try{this._responsiveResizeObserver=new ResizeObserver((()=>{var t;null===(t=this._responsiveHandleScroll)||void 0===t||t.call(this)})),this._responsiveResizeObserver.observe(this.scrollContainer)}catch(t){}"undefined"!=typeof window&&(this._responsiveHandleResize=()=>{var t;null===(t=this._responsiveHandleScroll)||void 0===t||t.call(this)},window.addEventListener("resize",this._responsiveHandleResize)),this._teardownResponsive=()=>{this.scrollContainer&&this._responsiveHandleScroll&&(this.scrollContainer.removeEventListener("scroll",this._responsiveHandleScroll),this.scrollContainer=null),this._responsiveResizeObserver&&(this._responsiveResizeObserver.disconnect(),this._responsiveResizeObserver=null),"undefined"!=typeof window&&this._responsiveHandleResize&&(window.removeEventListener("resize",this._responsiveHandleResize),this._responsiveHandleResize=null),this._responsiveHandleScroll=null},this._responsiveHandleScroll()}}classNames(){const t=["pds-table"];return this.compact&&t.push("is-compact"),this.responsive&&t.push("is-responsive"),t.join(" ")}sortTable(t,i){const s=this.el.querySelector("pds-table-body");if(!s)return;const r=Array.from(s.querySelectorAll("pds-table-row")),e=Array.from(this.el.querySelectorAll("pds-table-head-cell[sortable]")),o=e.find((i=>i.innerText.trim()===t));if(!o)return void console.warn(`Column "${t}" not found.`);const a=e.indexOf(o);r.sort(((t,s)=>{const r=t.querySelector(`pds-table-cell:nth-child(${a+1})`).textContent.trim(),e=s.querySelector(`pds-table-cell:nth-child(${a+1})`).textContent.trim();return"asc"===i?r.localeCompare(e,void 0,{sensitivity:"base"}):e.localeCompare(r,void 0,{sensitivity:"base"})})),s.innerHTML="",r.forEach((t=>{s.appendChild(t)}))}handleTableSort(t){if(t.defaultPrevented)return;const{direction:i}=t.detail;this.sortTable(t.detail.column,i),this.sortingColumn=t.detail.column,this.sortingDirection=i}handleTableSelectAll(t){if(t.defaultPrevented)return;const i=this.el.querySelector("pds-table-body");Array.from(i.querySelectorAll("pds-table-row")).forEach((i=>{i.isSelected=t.detail.isSelected}))}async handleTableSelect(t){if(t.defaultPrevented)return;const i=this.el.querySelectorAll("pds-table-row"),s=Array.from(i).every((t=>t.isSelected)),r=Array.from(i).every((t=>!t.isSelected)),e=this.el.querySelector("pds-table-head");if(!e)return;const o=e.shadowRoot.querySelector("pds-checkbox");o&&(o.checked=s,o.indeterminate=!s&&!r)}render(){return this.responsive?s(r,{class:"pds-table is-responsive pds-table-responsive-host",id:this.componentId,role:"grid",selectable:this.selectable,tabindex:"0",part:"table responsive-table"},s("div",{class:"scroll-shadow-left",part:"scroll-shadow-left"}),s("div",{class:"scroll-shadow-right",part:"scroll-shadow-right"}),s("div",{class:"pds-table-responsive-container",part:"responsive-container"},s("div",{class:"pds-table-responsive-wrapper",part:"responsive-wrapper"},s("div",{class:this.classNames(),part:"table-inner"},s("slot",null))))):s(r,{class:this.classNames(),id:this.componentId,role:"grid",selectable:this.selectable,tabindex:"0",part:"table"},s("slot",null))}get el(){return e(this)}};a.style='@charset "UTF-8";:host{--color-background-default:var(--pine-color-background-container);background:var(--color-background-default);border-collapse:separate;border-radius:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;isolation:isolate;width:100%}:host(:focus-visible){outline:var(--pine-outline-focus)}:host(.pds-table-responsive-host){border-radius:inherit;-webkit-box-sizing:border-box !important;box-sizing:border-box !important;display:block !important;max-width:100% !important;overflow:hidden !important;position:relative !important;width:100% !important}.pds-table-responsive-container{border-radius:inherit;-webkit-box-sizing:border-box !important;box-sizing:border-box !important;overflow-x:auto !important;overflow-y:visible !important;position:relative !important;width:100% !important}.pds-table-responsive-wrapper{border-radius:inherit;-webkit-box-sizing:border-box !important;box-sizing:border-box !important;display:block !important;position:relative !important;width:100% !important}.pds-table-responsive-wrapper .pds-table{display:table !important;min-width:-webkit-max-content !important;min-width:-moz-max-content !important;min-width:max-content !important;table-layout:auto !important;white-space:nowrap !important;width:100% !important}.scroll-shadow-left,.scroll-shadow-right{height:100%;opacity:0;pointer-events:none;position:absolute;top:0;-webkit-transition:opacity 0.1s ease;transition:opacity 0.1s ease;width:4px;z-index:var(--pine-z-index)}.scroll-shadow-left{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), to(transparent));background:linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);border-end-start-radius:inherit;border-start-start-radius:inherit;inset-inline-start:0}:host-context([dir=rtl]) .scroll-shadow-left{background:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.1)), to(transparent));background:linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent)}.scroll-shadow-right{background:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.1)), to(transparent));background:linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);border-end-end-radius:inherit;border-start-end-radius:inherit;inset-inline-end:0}:host-context([dir=rtl]) .scroll-shadow-right{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), to(transparent));background:linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent)}';export{a as pds_table}
1
+ import{r as t,c as i,h as s,H as r,a as e}from"./p-CTLu1TM4.js";import{g as o}from"./p-DtgUQhjl.js";const a=class{constructor(s){t(this,s),this.pdsTableSelectAll=i(this,"pdsTableSelectAll"),this.scrollContainer=null,this._responsiveHandleScroll=null,this._responsiveHandleResize=null,this._responsiveResizeObserver=null,this._teardownResponsive=null,this.disableSelectAll=!1,this.rowDividers=!1,this.defaultSortDirection="asc",this.sortingColumn=null,this.sortingDirection="asc"}componentDidLoad(){this.responsive&&this.setupResponsiveScrolling(),this.defaultSortColumn&&requestAnimationFrame((()=>{this.applyDefaultSort().catch((t=>{console.warn("Failed to apply default sort.",t)}))}))}async applyDefaultSort(){var t;const i="desc"===this.defaultSortDirection?"desc":"asc",s=Array.from(this.el.querySelectorAll("pds-table-head-cell[sortable]")).find((t=>{var i;return(null!==(i=t.textContent)&&void 0!==i?i:"").trim()===this.defaultSortColumn}));if(s){const r=(null!==(t=s.textContent)&&void 0!==t?t:"").trim();this.sortTable(r,i),this.sortingColumn=r,this.sortingDirection=i,await s.setActiveSort(i)}else console.warn(`Default sort column "${this.defaultSortColumn}" not found.`)}disconnectedCallback(){this._teardownResponsive&&(this._teardownResponsive(),this._teardownResponsive=null)}setupResponsiveScrolling(){var t,i,s;const r=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(".pds-table-responsive-container"),e=null===(i=this.el.shadowRoot)||void 0===i?void 0:i.querySelector(".scroll-shadow-left"),a=null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelector(".scroll-shadow-right");if(r&&e&&a){if(this.scrollContainer=r,this._responsiveHandleScroll=()=>{if(!this.scrollContainer)return;const{scrollWidth:t,clientWidth:i}=this.scrollContainer,s=t-i,r=o(this.scrollContainer);e.style.opacity=r>0&&!this.fixedColumn?"1":"0",a.style.opacity=s>0&&r<s-1?"1":"0"},this.scrollContainer.addEventListener("scroll",this._responsiveHandleScroll,{passive:!0}),"undefined"!=typeof window&&window.ResizeObserver)try{this._responsiveResizeObserver=new ResizeObserver((()=>{var t;null===(t=this._responsiveHandleScroll)||void 0===t||t.call(this)})),this._responsiveResizeObserver.observe(this.scrollContainer)}catch(t){}"undefined"!=typeof window&&(this._responsiveHandleResize=()=>{var t;null===(t=this._responsiveHandleScroll)||void 0===t||t.call(this)},window.addEventListener("resize",this._responsiveHandleResize)),this._teardownResponsive=()=>{this.scrollContainer&&this._responsiveHandleScroll&&(this.scrollContainer.removeEventListener("scroll",this._responsiveHandleScroll),this.scrollContainer=null),this._responsiveResizeObserver&&(this._responsiveResizeObserver.disconnect(),this._responsiveResizeObserver=null),"undefined"!=typeof window&&this._responsiveHandleResize&&(window.removeEventListener("resize",this._responsiveHandleResize),this._responsiveHandleResize=null),this._responsiveHandleScroll=null},this._responsiveHandleScroll()}}classNames(){const t=["pds-table"];return this.compact&&t.push("is-compact"),this.responsive&&t.push("is-responsive"),t.join(" ")}sortTable(t,i){const s=this.el.querySelector("pds-table-body");if(!s)return;const r=Array.from(s.querySelectorAll("pds-table-row")),e=Array.from(this.el.querySelectorAll("pds-table-head-cell[sortable]")),o=e.find((i=>i.innerText.trim()===t));if(!o)return void console.warn(`Column "${t}" not found.`);const a=e.indexOf(o);r.sort(((t,s)=>{const r=t.querySelector(`pds-table-cell:nth-child(${a+1})`).textContent.trim(),e=s.querySelector(`pds-table-cell:nth-child(${a+1})`).textContent.trim();return"asc"===i?r.localeCompare(e,void 0,{sensitivity:"base"}):e.localeCompare(r,void 0,{sensitivity:"base"})})),s.innerHTML="",r.forEach((t=>{s.appendChild(t)}))}handleTableSort(t){if(t.defaultPrevented)return;const{direction:i}=t.detail;this.sortTable(t.detail.column,i),this.sortingColumn=t.detail.column,this.sortingDirection=i}handleTableSelectAll(t){if(t.defaultPrevented)return;const i=this.el.querySelector("pds-table-body");Array.from(i.querySelectorAll("pds-table-row")).forEach((i=>{i.isSelected=t.detail.isSelected}))}async handleTableSelect(t){if(t.defaultPrevented)return;const i=this.el.querySelectorAll("pds-table-row"),s=Array.from(i).every((t=>t.isSelected)),r=Array.from(i).every((t=>!t.isSelected)),e=this.el.querySelector("pds-table-head");if(!e)return;const o=e.shadowRoot.querySelector("pds-checkbox");o&&(o.checked=s,o.indeterminate=!s&&!r)}render(){return this.responsive?s(r,{class:"pds-table is-responsive pds-table-responsive-host",id:this.componentId,role:"grid",selectable:this.selectable,tabindex:"0",part:"table responsive-table"},s("div",{class:"scroll-shadow-left",part:"scroll-shadow-left"}),s("div",{class:"scroll-shadow-right",part:"scroll-shadow-right"}),s("div",{class:"pds-table-responsive-container",part:"responsive-container"},s("div",{class:"pds-table-responsive-wrapper",part:"responsive-wrapper"},s("div",{class:this.classNames(),part:"table-inner"},s("slot",null))))):s(r,{class:this.classNames(),id:this.componentId,role:"grid",selectable:this.selectable,tabindex:"0",part:"table"},s("slot",null))}get el(){return e(this)}};a.style='@charset "UTF-8";:host{--color-background-default:var(--pine-color-background-container);background:var(--color-background-default);border-collapse:separate;border-radius:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;isolation:isolate;width:100%}:host(:focus-visible){outline:var(--pine-outline-focus)}:host(.pds-table-responsive-host){border-radius:inherit;-webkit-box-sizing:border-box !important;box-sizing:border-box !important;display:block !important;max-width:100% !important;overflow:hidden !important;position:relative !important;width:100% !important}.pds-table-responsive-container{border-radius:inherit;-webkit-box-sizing:border-box !important;box-sizing:border-box !important;overflow-x:auto !important;overflow-y:visible !important;position:relative !important;width:100% !important}.pds-table-responsive-wrapper{border-radius:inherit;-webkit-box-sizing:border-box !important;box-sizing:border-box !important;display:block !important;position:relative !important;width:100% !important}.pds-table-responsive-wrapper .pds-table{display:table !important;min-width:-webkit-max-content !important;min-width:-moz-max-content !important;min-width:max-content !important;table-layout:auto !important;white-space:nowrap !important;width:100% !important}.scroll-shadow-left,.scroll-shadow-right{height:100%;opacity:0;pointer-events:none;position:absolute;top:0;-webkit-transition:opacity 0.1s ease;transition:opacity 0.1s ease;width:4px;z-index:var(--pine-z-index)}.scroll-shadow-left{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), to(transparent));background:linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);border-end-start-radius:inherit;border-start-start-radius:inherit;inset-inline-start:0}:host-context([dir=rtl]) .scroll-shadow-left{background:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.1)), to(transparent));background:linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent)}.scroll-shadow-right{background:-webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.1)), to(transparent));background:linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent);border-end-end-radius:inherit;border-start-end-radius:inherit;inset-inline-end:0}:host-context([dir=rtl]) .scroll-shadow-right{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), to(transparent));background:linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent)}';export{a as pds_table}
@@ -1 +1 @@
1
- import{r as e,c as i,h as t,H as r,a as o}from"./p-NNDTPCWx.js";import{i as n}from"./p-DtgUQhjl.js";import{t as s,e as a}from"./p-BjlFq0VD.js";const l=class{constructor(t){e(this,t),this.pdsFilterOpen=i(this,"pdsFilterOpen"),this.pdsFilterClose=i(this,"pdsFilterClose"),this.pdsFilterClear=i(this,"pdsFilterClear"),this.scrollRAF=null,this.lastScrollTime=0,this.variant="default",this.isOpen=!1,this.handleNativePopoverToggle=e=>{const i=e.target;if(i&&i.id===`${this.componentId}-popover`){let e=!1;try{e=i.matches(":popover-open")}catch(t){e="block"===i.style.display}this.isOpen=e,this.isOpen?(setTimeout((()=>this.adjustPopoverPosition()),0),this.pdsFilterOpen.emit({componentId:this.componentId,variant:this.variant,text:this.text})):this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text})}},this.handleKeyDown=e=>{"clear"!==this.variant||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClick())},this.handleClick=e=>{"clear"!==this.variant?(this.closeOtherPopovers(),HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox")||(e&&e.preventDefault(),setTimeout((()=>{null!=this.popoverEl&&(this.isOpen=!this.isOpen,this.isOpen?(this.popoverEl.style.display="block",this.popoverEl.classList.add("is-open"),this.adjustPopoverPosition(),this.pdsFilterOpen.emit({componentId:this.componentId,variant:this.variant,text:this.text})):(this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open"),this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text})))}),0))):this.pdsFilterClear.emit({componentId:this.componentId,text:this.text})}}disconnectedCallback(){if(this.scrollRAF&&(cancelAnimationFrame(this.scrollRAF),this.scrollRAF=null),this.lastScrollTime=0,this.popoverEl&&HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox")&&this.popoverEl.removeEventListener("toggle",this.handleNativePopoverToggle),this.isOpen&&this.popoverEl)try{this.popoverEl.hidePopover()}catch(e){this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open")}}componentDidRender(){this.popoverEl&&HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox")&&(this.popoverEl.removeEventListener("toggle",this.handleNativePopoverToggle),this.popoverEl.addEventListener("toggle",this.handleNativePopoverToggle))}handleWindowResize(){this.isOpen&&setTimeout((()=>this.adjustPopoverPosition()),16)}handleWindowScroll(){if(this.isOpen){const e="anchorName"in document.documentElement.style,i=performance.now();if(i-this.lastScrollTime<(e?66:33))return;this.lastScrollTime=i,this.scrollRAF&&cancelAnimationFrame(this.scrollRAF),this.scrollRAF=requestAnimationFrame((()=>{this.isOpen&&this.popoverEl&&this.el.isConnected&&this.adjustPopoverPosition(),this.scrollRAF=null}))}}closeOtherPopovers(){document.querySelectorAll("pds-filter").forEach((e=>{var i;if(e===this.el)return;const t=null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(".pds-filter__popover");if(t){let e=!1;try{e=t.matches(":popover-open")}catch(i){e="block"===t.style.display}if(e)try{t.hidePopover()}catch(e){t.style.display="none",t.classList.remove("is-open")}}}))}adjustPopoverPosition(){var e;if(!this.popoverEl||"clear"===this.variant)return;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(".pds-filter__trigger");if(!i)return;const t=i.getBoundingClientRect(),r=window.innerWidth,o=window.innerHeight,s="anchorName"in document.documentElement.style,a=228,l=this.popoverEl.getBoundingClientRect().height||200,p=n(this.el),c=p?t.right-a-20<0:t.left+a+20>r,d=t.bottom+8+l+20>o;if(s)this.popoverEl.classList.remove("popover-flip-horizontal","popover-flip-vertical"),c&&this.popoverEl.classList.add("popover-flip-horizontal"),d&&this.popoverEl.classList.add("popover-flip-vertical");else{let e=p?t.right-a:t.left,i=t.bottom+8,r=p?"top right":"top left";if(c){const i=this.popoverEl.getBoundingClientRect().width||a;e=p?t.left:t.right-i,r=p?"top left":"top right"}d&&(i=t.top-l-8,r=r.replace("top","bottom")),this.popoverEl.style.cssText=`\n position: fixed;\n left: ${e}px;\n top: ${i}px;\n z-index: var(--pine-z-index-overlay);\n transform-origin: ${r};\n `}}async showFilter(){if("clear"!==this.variant){if(null!=this.popoverEl)try{this.popoverEl.showPopover()}catch(e){this.popoverEl.style.display="block",this.popoverEl.classList.add("is-open")}}else console.warn("Clear variant does not support showFilter method")}async hideFilter(){if("clear"!==this.variant){if(null!=this.popoverEl)try{this.popoverEl.hidePopover()}catch(e){this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open")}}else console.warn("Clear variant does not support hideFilter method")}handlePopoverToggle(e){const i=e.target;if((!HTMLElement.prototype.showPopover||navigator.userAgent.includes("Firefox"))&&i&&i.id===`${this.componentId}-popover`){let e=!1;try{e=i.matches(":popover-open")}catch(t){e="block"===i.style.display}this.isOpen=e,this.isOpen?(setTimeout((()=>this.adjustPopoverPosition()),0),this.pdsFilterOpen.emit({componentId:this.componentId,variant:this.variant,text:this.text})):this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text})}}handleDocumentClick(e){!this.el.contains(e.target)&&this.isOpen&&"clear"!==this.variant&&setTimeout((()=>{if(this.popoverEl&&this.isOpen){const e=HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox");let i=!1;if(e)try{i=!this.popoverEl.matches(":popover-open")}catch(e){i="block"!==this.popoverEl.style.display}else i=!0;i&&(this.isOpen=!1,e||(this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open")),this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text}))}}),0)}handleEscapeKey(e){"Escape"===e.key&&this.isOpen&&"clear"!==this.variant&&setTimeout((()=>{if(this.popoverEl&&this.isOpen){const e=HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox");let i=!1;if(e)try{i=!this.popoverEl.matches(":popover-open")}catch(e){i="block"!==this.popoverEl.style.display}else i=!0;i&&(this.isOpen=!1,e||(this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open")),this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text}))}}),0)}getIcon(){return"clear"===this.variant?s:this.icon}getTriggerClasses(){const e=["pds-filter__trigger"];return e.push(`pds-filter__trigger--${this.variant}`),this.isOpen&&"clear"!==this.variant&&e.push("pds-filter__trigger--open"),e.join(" ")}renderIcon(){const e=this.getIcon();return null==e||""===e?null:t("pds-icon",{icon:e,size:"var(--pine-font-size-100)","aria-hidden":"true",part:"icon"})}renderDropdownIcon(){return"selected"===this.variant?t("pds-icon",{icon:a,size:"var(--pine-dimension-200)","aria-hidden":"true",class:"pds-filter__dropdown-icon",part:"icon"}):null}render(){return t(r,{key:"620b1e6b9ab4a16af9cf601381e3b3bc625677a9",id:this.componentId},t("button",{key:"6c27edb5a9584e223f0716ae2c95cf07488a041b",class:this.getTriggerClasses(),type:"button",popoverTarget:"clear"!==this.variant?`${this.componentId}-popover`:void 0,popoverTargetAction:"clear"!==this.variant?"toggle":void 0,onKeyDown:"clear"===this.variant?this.handleKeyDown:void 0,onClick:e=>this.handleClick(e),part:"button","aria-expanded":this.isOpen?"true":"false","aria-haspopup":"clear"!==this.variant?"true":void 0,"aria-controls":"clear"!==this.variant?`${this.componentId}-popover`:void 0},t("span",{key:"ef9970dc8d453d170703e90ba8690b652e11fa5c",class:"pds-filter__button-content",part:"button-content"},this.renderIcon(),this.text&&t("span",{key:"8e71b9d19327117dbce1cf50d169699ab771d362",class:"pds-filter__button-text",part:"button-text"},this.text),this.renderDropdownIcon())),"clear"!==this.variant&&t("div",{key:"e1eb24326d93b0247db0e11700286af74b6b19c1",ref:e=>this.popoverEl=e,id:`${this.componentId}-popover`,class:"pds-filter__popover",popover:"auto",part:"popover"},t("slot",{key:"374f65b6dab21601c1bbd86cf661971a5c6d1d43"})))}get el(){return o(this)}};l.style=":host{--box-shadow-focus:0 0 0 1px var(--pine-color-background-container), 0 0 0 3px var(--pine-color-focus-ring);display:inline-block;position:relative}.pds-filter__trigger{-ms-flex-align:center;align-items:center;anchor-name:--filter-trigger;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-100);-webkit-box-shadow:var(--pine-box-shadow-050);box-shadow:var(--pine-box-shadow-050);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-tertiary);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--pine-font-family-inter);font-size:var(--pine-font-size-100);font-weight:var(--pine-font-weight-400);gap:var(--pine-dimension-050);letter-spacing:var(--pine-letter-spacing-114);line-height:var(--pine-line-height-150);padding:var(--pine-dimension-025) var(--pine-dimension-125);position:relative;-webkit-transition:all var(--pine-motion-duration-base) ease;transition:all var(--pine-motion-duration-base) ease}.pds-filter__trigger pds-icon{block-size:var(--pine-font-size-100);color:var(--pine-color-text-secondary);-ms-flex-negative:0;flex-shrink:0;inline-size:var(--pine-font-size-100)}.pds-filter__trigger:hover,.pds-filter__trigger.pds-filter__trigger--open{background-color:var(--pine-color-background-subtle);border-color:var(--pine-color-border-hover);color:var(--pine-color-text-hover)}.pds-filter__trigger:hover pds-icon,.pds-filter__trigger.pds-filter__trigger--open pds-icon{color:var(--pine-color-text-secondary)}.pds-filter__trigger:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-filter__trigger:disabled{cursor:not-allowed;opacity:0.5}.pds-filter__trigger--selected{background-color:var(--pine-color-purple-050);border-color:var(--pine-color-purple-500);color:var(--pine-color-purple-600)}.pds-filter__trigger--selected pds-icon{color:var(--pine-color-purple-600)}.pds-filter__trigger--selected:hover,.pds-filter__trigger--selected.pds-filter__trigger--open{background-color:var(--pine-color-purple-100);border-color:var(--pine-color-purple-500);color:var(--pine-color-purple-600)}.pds-filter__trigger--selected:hover pds-icon,.pds-filter__trigger--selected.pds-filter__trigger--open pds-icon{color:var(--pine-color-purple-600)}.pds-filter__trigger--selected:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-filter__trigger--more{background-color:var(--pine-color-background-container-hover);border:var(--pine-border-width-thin) dashed var(--pine-color-border);color:var(--pine-color-text-tertiary)}.pds-filter__trigger--more pds-icon{color:var(--pine-color-text-secondary)}.pds-filter__trigger--more:hover,.pds-filter__trigger--more.pds-filter__trigger--open{background-color:var(--pine-color-background-subtle);border-color:var(--pine-color-border-hover);color:var(--pine-color-text-hover)}.pds-filter__trigger--more:hover pds-icon,.pds-filter__trigger--more.pds-filter__trigger--open pds-icon{color:var(--pine-color-text-secondary)}.pds-filter__trigger--more:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-filter__trigger--clear{background:transparent;border:var(--pine-border-width-thin) solid transparent;border-radius:var(--pine-dimension-100);-webkit-box-shadow:none;box-shadow:none;color:var(--pine-color-purple-600)}.pds-filter__trigger--clear pds-icon{color:var(--pine-color-purple-600)}.pds-filter__trigger--clear:hover{background-color:var(--pine-color-purple-100);border-color:var(--pine-color-purple-100);color:var(--pine-color-purple-600)}.pds-filter__trigger--clear:hover pds-icon{color:var(--pine-color-purple-600)}.pds-filter__trigger--clear:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-filter__button-content{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;gap:var(--pine-dimension-050);max-inline-size:148px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-filter__button-text{line-height:var(--pine-line-height-150);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-filter__dropdown-icon{block-size:var(--pine-dimension-200);-ms-flex-negative:0;flex-shrink:0;inline-size:var(--pine-dimension-200)}.pds-filter__popover{background-color:var(--pine-color-background-overlay);border:0;border-radius:var(--pine-dimension-100);-webkit-box-shadow:var(--pine-box-shadow-100);box-shadow:var(--pine-box-shadow-100);display:none;inline-size:228px;inset:unset;padding:var(--pine-dimension-100);z-index:var(--pine-z-index-overlay);}.pds-filter__popover:popover-open,.pds-filter__popover.is-open{display:block}.pds-filter__popover{}@supports (anchor-name: --test){.pds-filter__popover{inset-block-start:calc(anchor(--filter-trigger bottom) + var(--pine-dimension-100));inset-inline-start:anchor(--filter-trigger start);position:fixed;position-anchor:--filter-trigger;}.pds-filter__popover.popover-flip-horizontal{inset-inline-end:anchor(--filter-trigger end);inset-inline-start:auto}.pds-filter__popover.popover-flip-vertical{inset-block-start:anchor(--filter-trigger top);-webkit-transform:translateY(calc(-100% - var(--pine-dimension-100)));transform:translateY(calc(-100% - var(--pine-dimension-100)))}.pds-filter__popover.popover-flip-horizontal.popover-flip-vertical{inset-block-start:anchor(--filter-trigger top);inset-inline-end:anchor(--filter-trigger end);inset-inline-start:auto;-webkit-transform:translateY(calc(-100% - var(--pine-dimension-100)));transform:translateY(calc(-100% - var(--pine-dimension-100)))}.pds-filter__popover{}.pds-filter__popover.is-open.popover-flip-horizontal{inset-inline-end:anchor(--filter-trigger end);inset-inline-start:auto}.pds-filter__popover.is-open.popover-flip-vertical{inset-block-start:anchor(--filter-trigger top);-webkit-transform:translateY(calc(-100% - var(--pine-dimension-100)));transform:translateY(calc(-100% - var(--pine-dimension-100)))}.pds-filter__popover.is-open.popover-flip-horizontal.popover-flip-vertical{inset-block-start:anchor(--filter-trigger top);inset-inline-end:anchor(--filter-trigger end);inset-inline-start:auto;-webkit-transform:translateY(calc(-100% - var(--pine-dimension-100)));transform:translateY(calc(-100% - var(--pine-dimension-100)))}}";export{l as pds_filter}
1
+ import{r as e,c as i,h as t,H as r,a as o}from"./p-CTLu1TM4.js";import{i as n}from"./p-DtgUQhjl.js";import{t as s,e as a}from"./p-DdPaBxPo.js";const l=class{constructor(t){e(this,t),this.pdsFilterOpen=i(this,"pdsFilterOpen"),this.pdsFilterClose=i(this,"pdsFilterClose"),this.pdsFilterClear=i(this,"pdsFilterClear"),this.scrollRAF=null,this.lastScrollTime=0,this.variant="default",this.isOpen=!1,this.handleNativePopoverToggle=e=>{const i=e.target;if(i&&i.id===`${this.componentId}-popover`){let e=!1;try{e=i.matches(":popover-open")}catch(t){e="block"===i.style.display}this.isOpen=e,this.isOpen?(setTimeout((()=>this.adjustPopoverPosition()),0),this.pdsFilterOpen.emit({componentId:this.componentId,variant:this.variant,text:this.text})):this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text})}},this.handleKeyDown=e=>{"clear"!==this.variant||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.handleClick())},this.handleClick=e=>{"clear"!==this.variant?(this.closeOtherPopovers(),HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox")||(e&&e.preventDefault(),setTimeout((()=>{null!=this.popoverEl&&(this.isOpen=!this.isOpen,this.isOpen?(this.popoverEl.style.display="block",this.popoverEl.classList.add("is-open"),this.adjustPopoverPosition(),this.pdsFilterOpen.emit({componentId:this.componentId,variant:this.variant,text:this.text})):(this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open"),this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text})))}),0))):this.pdsFilterClear.emit({componentId:this.componentId,text:this.text})}}disconnectedCallback(){if(this.scrollRAF&&(cancelAnimationFrame(this.scrollRAF),this.scrollRAF=null),this.lastScrollTime=0,this.popoverEl&&HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox")&&this.popoverEl.removeEventListener("toggle",this.handleNativePopoverToggle),this.isOpen&&this.popoverEl)try{this.popoverEl.hidePopover()}catch(e){this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open")}}componentDidRender(){this.popoverEl&&HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox")&&(this.popoverEl.removeEventListener("toggle",this.handleNativePopoverToggle),this.popoverEl.addEventListener("toggle",this.handleNativePopoverToggle))}handleWindowResize(){this.isOpen&&setTimeout((()=>this.adjustPopoverPosition()),16)}handleWindowScroll(){if(this.isOpen){const e="anchorName"in document.documentElement.style,i=performance.now();if(i-this.lastScrollTime<(e?66:33))return;this.lastScrollTime=i,this.scrollRAF&&cancelAnimationFrame(this.scrollRAF),this.scrollRAF=requestAnimationFrame((()=>{this.isOpen&&this.popoverEl&&this.el.isConnected&&this.adjustPopoverPosition(),this.scrollRAF=null}))}}closeOtherPopovers(){document.querySelectorAll("pds-filter").forEach((e=>{var i;if(e===this.el)return;const t=null===(i=e.shadowRoot)||void 0===i?void 0:i.querySelector(".pds-filter__popover");if(t){let e=!1;try{e=t.matches(":popover-open")}catch(i){e="block"===t.style.display}if(e)try{t.hidePopover()}catch(e){t.style.display="none",t.classList.remove("is-open")}}}))}adjustPopoverPosition(){var e;if(!this.popoverEl||"clear"===this.variant)return;const i=null===(e=this.el.shadowRoot)||void 0===e?void 0:e.querySelector(".pds-filter__trigger");if(!i)return;const t=i.getBoundingClientRect(),r=window.innerWidth,o=window.innerHeight,s="anchorName"in document.documentElement.style,a=228,l=this.popoverEl.getBoundingClientRect().height||200,p=n(this.el),c=p?t.right-a-20<0:t.left+a+20>r,d=t.bottom+8+l+20>o;if(s)this.popoverEl.classList.remove("popover-flip-horizontal","popover-flip-vertical"),c&&this.popoverEl.classList.add("popover-flip-horizontal"),d&&this.popoverEl.classList.add("popover-flip-vertical");else{let e=p?t.right-a:t.left,i=t.bottom+8,r=p?"top right":"top left";if(c){const i=this.popoverEl.getBoundingClientRect().width||a;e=p?t.left:t.right-i,r=p?"top left":"top right"}d&&(i=t.top-l-8,r=r.replace("top","bottom")),this.popoverEl.style.cssText=`\n position: fixed;\n left: ${e}px;\n top: ${i}px;\n z-index: var(--pine-z-index-overlay);\n transform-origin: ${r};\n `}}async showFilter(){if("clear"!==this.variant){if(null!=this.popoverEl)try{this.popoverEl.showPopover()}catch(e){this.popoverEl.style.display="block",this.popoverEl.classList.add("is-open")}}else console.warn("Clear variant does not support showFilter method")}async hideFilter(){if("clear"!==this.variant){if(null!=this.popoverEl)try{this.popoverEl.hidePopover()}catch(e){this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open")}}else console.warn("Clear variant does not support hideFilter method")}handlePopoverToggle(e){const i=e.target;if((!HTMLElement.prototype.showPopover||navigator.userAgent.includes("Firefox"))&&i&&i.id===`${this.componentId}-popover`){let e=!1;try{e=i.matches(":popover-open")}catch(t){e="block"===i.style.display}this.isOpen=e,this.isOpen?(setTimeout((()=>this.adjustPopoverPosition()),0),this.pdsFilterOpen.emit({componentId:this.componentId,variant:this.variant,text:this.text})):this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text})}}handleDocumentClick(e){!this.el.contains(e.target)&&this.isOpen&&"clear"!==this.variant&&setTimeout((()=>{if(this.popoverEl&&this.isOpen){const e=HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox");let i=!1;if(e)try{i=!this.popoverEl.matches(":popover-open")}catch(e){i="block"!==this.popoverEl.style.display}else i=!0;i&&(this.isOpen=!1,e||(this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open")),this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text}))}}),0)}handleEscapeKey(e){"Escape"===e.key&&this.isOpen&&"clear"!==this.variant&&setTimeout((()=>{if(this.popoverEl&&this.isOpen){const e=HTMLElement.prototype.showPopover&&!navigator.userAgent.includes("Firefox");let i=!1;if(e)try{i=!this.popoverEl.matches(":popover-open")}catch(e){i="block"!==this.popoverEl.style.display}else i=!0;i&&(this.isOpen=!1,e||(this.popoverEl.style.display="none",this.popoverEl.classList.remove("is-open")),this.pdsFilterClose.emit({componentId:this.componentId,variant:this.variant,text:this.text}))}}),0)}getIcon(){return"clear"===this.variant?s:this.icon}getTriggerClasses(){const e=["pds-filter__trigger"];return e.push(`pds-filter__trigger--${this.variant}`),this.isOpen&&"clear"!==this.variant&&e.push("pds-filter__trigger--open"),e.join(" ")}renderIcon(){const e=this.getIcon();return null==e||""===e?null:t("pds-icon",{icon:e,size:"var(--pine-font-size-100)","aria-hidden":"true",part:"icon"})}renderDropdownIcon(){return"selected"===this.variant?t("pds-icon",{icon:a,size:"var(--pine-dimension-200)","aria-hidden":"true",class:"pds-filter__dropdown-icon",part:"icon"}):null}render(){return t(r,{key:"bd03de5e8461e3aba4d6f014e2d64d9aada0c0e1",id:this.componentId},t("button",{key:"f35cb4aec14b1ed3b61d33c412cbfc89ba19cba3",class:this.getTriggerClasses(),type:"button",popoverTarget:"clear"!==this.variant?`${this.componentId}-popover`:void 0,popoverTargetAction:"clear"!==this.variant?"toggle":void 0,onKeyDown:"clear"===this.variant?this.handleKeyDown:void 0,onClick:e=>this.handleClick(e),part:"button","aria-expanded":this.isOpen?"true":"false","aria-haspopup":"clear"!==this.variant?"true":void 0,"aria-controls":"clear"!==this.variant?`${this.componentId}-popover`:void 0},t("span",{key:"b3635542048ac52d290917260181d7313eddaff2",class:"pds-filter__button-content",part:"button-content"},this.renderIcon(),this.text&&t("span",{key:"0c5ef7f7655ddbee33a695703ce192f082b21bf1",class:"pds-filter__button-text",part:"button-text"},this.text),this.renderDropdownIcon())),"clear"!==this.variant&&t("div",{key:"e75c75d8e9e4596d7f0642e4e1f91deae3f2b9fa",ref:e=>this.popoverEl=e,id:`${this.componentId}-popover`,class:"pds-filter__popover",popover:"auto",part:"popover"},t("slot",{key:"bef66af716be823ed3ac36d39a4532785df07f6b"})))}get el(){return o(this)}};l.style=":host{--box-shadow-focus:0 0 0 1px var(--pine-color-background-container), 0 0 0 3px var(--pine-color-focus-ring);display:inline-block;position:relative}.pds-filter__trigger{-ms-flex-align:center;align-items:center;anchor-name:--filter-trigger;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-100);-webkit-box-shadow:var(--pine-box-shadow-050);box-shadow:var(--pine-box-shadow-050);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text-tertiary);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--pine-font-family-inter);font-size:var(--pine-font-size-100);font-weight:var(--pine-font-weight-400);gap:var(--pine-dimension-050);letter-spacing:var(--pine-letter-spacing-114);line-height:var(--pine-line-height-150);padding:var(--pine-dimension-025) var(--pine-dimension-125);position:relative;-webkit-transition:all var(--pine-motion-duration-base) ease;transition:all var(--pine-motion-duration-base) ease}.pds-filter__trigger pds-icon{block-size:var(--pine-font-size-100);color:var(--pine-color-text-secondary);-ms-flex-negative:0;flex-shrink:0;inline-size:var(--pine-font-size-100)}.pds-filter__trigger:hover,.pds-filter__trigger.pds-filter__trigger--open{background-color:var(--pine-color-background-subtle);border-color:var(--pine-color-border-hover);color:var(--pine-color-text-hover)}.pds-filter__trigger:hover pds-icon,.pds-filter__trigger.pds-filter__trigger--open pds-icon{color:var(--pine-color-text-secondary)}.pds-filter__trigger:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-filter__trigger:disabled{cursor:not-allowed;opacity:0.5}.pds-filter__trigger--selected{background-color:var(--pine-color-purple-050);border-color:var(--pine-color-purple-500);color:var(--pine-color-purple-600)}.pds-filter__trigger--selected pds-icon{color:var(--pine-color-purple-600)}.pds-filter__trigger--selected:hover,.pds-filter__trigger--selected.pds-filter__trigger--open{background-color:var(--pine-color-purple-100);border-color:var(--pine-color-purple-500);color:var(--pine-color-purple-600)}.pds-filter__trigger--selected:hover pds-icon,.pds-filter__trigger--selected.pds-filter__trigger--open pds-icon{color:var(--pine-color-purple-600)}.pds-filter__trigger--selected:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-filter__trigger--more{background-color:var(--pine-color-background-container-hover);border:var(--pine-border-width-thin) dashed var(--pine-color-border);color:var(--pine-color-text-tertiary)}.pds-filter__trigger--more pds-icon{color:var(--pine-color-text-secondary)}.pds-filter__trigger--more:hover,.pds-filter__trigger--more.pds-filter__trigger--open{background-color:var(--pine-color-background-subtle);border-color:var(--pine-color-border-hover);color:var(--pine-color-text-hover)}.pds-filter__trigger--more:hover pds-icon,.pds-filter__trigger--more.pds-filter__trigger--open pds-icon{color:var(--pine-color-text-secondary)}.pds-filter__trigger--more:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-filter__trigger--clear{background:transparent;border:var(--pine-border-width-thin) solid transparent;border-radius:var(--pine-dimension-100);-webkit-box-shadow:none;box-shadow:none;color:var(--pine-color-purple-600)}.pds-filter__trigger--clear pds-icon{color:var(--pine-color-purple-600)}.pds-filter__trigger--clear:hover{background-color:var(--pine-color-purple-100);border-color:var(--pine-color-purple-100);color:var(--pine-color-purple-600)}.pds-filter__trigger--clear:hover pds-icon{color:var(--pine-color-purple-600)}.pds-filter__trigger--clear:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-filter__button-content{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;gap:var(--pine-dimension-050);max-inline-size:148px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-filter__button-text{line-height:var(--pine-line-height-150);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-filter__dropdown-icon{block-size:var(--pine-dimension-200);-ms-flex-negative:0;flex-shrink:0;inline-size:var(--pine-dimension-200)}.pds-filter__popover{background-color:var(--pine-color-background-overlay);border:0;border-radius:var(--pine-dimension-100);-webkit-box-shadow:var(--pine-box-shadow-100);box-shadow:var(--pine-box-shadow-100);display:none;inline-size:228px;inset:unset;padding:var(--pine-dimension-100);z-index:var(--pine-z-index-overlay);}.pds-filter__popover:popover-open,.pds-filter__popover.is-open{display:block}.pds-filter__popover{}@supports (anchor-name: --test){.pds-filter__popover{inset-block-start:calc(anchor(--filter-trigger bottom) + var(--pine-dimension-100));inset-inline-start:anchor(--filter-trigger start);position:fixed;position-anchor:--filter-trigger;}.pds-filter__popover.popover-flip-horizontal{inset-inline-end:anchor(--filter-trigger end);inset-inline-start:auto}.pds-filter__popover.popover-flip-vertical{inset-block-start:anchor(--filter-trigger top);-webkit-transform:translateY(calc(-100% - var(--pine-dimension-100)));transform:translateY(calc(-100% - var(--pine-dimension-100)))}.pds-filter__popover.popover-flip-horizontal.popover-flip-vertical{inset-block-start:anchor(--filter-trigger top);inset-inline-end:anchor(--filter-trigger end);inset-inline-start:auto;-webkit-transform:translateY(calc(-100% - var(--pine-dimension-100)));transform:translateY(calc(-100% - var(--pine-dimension-100)))}.pds-filter__popover{}.pds-filter__popover.is-open.popover-flip-horizontal{inset-inline-end:anchor(--filter-trigger end);inset-inline-start:auto}.pds-filter__popover.is-open.popover-flip-vertical{inset-block-start:anchor(--filter-trigger top);-webkit-transform:translateY(calc(-100% - var(--pine-dimension-100)));transform:translateY(calc(-100% - var(--pine-dimension-100)))}.pds-filter__popover.is-open.popover-flip-horizontal.popover-flip-vertical{inset-block-start:anchor(--filter-trigger top);inset-inline-end:anchor(--filter-trigger end);inset-inline-start:auto;-webkit-transform:translateY(calc(-100% - var(--pine-dimension-100)));transform:translateY(calc(-100% - var(--pine-dimension-100)))}}";export{l as pds_filter}
@@ -1 +1 @@
1
- import{r as s,h as i,H as t}from"./p-NNDTPCWx.js";const a=class{constructor(i){s(this,i),this.alt="",this.loading="eager"}render(){return i(t,{key:"fa205f03d5c378d27a66cbfd520ae2bc7ab9e9df",class:{"pds-image":!0},id:this.componentId},i("img",{key:"8d03dddf6e924ef8aebea2bf34a32e326bee329a",alt:this.alt,height:this.height,loading:this.loading,sizes:this.sizes,src:this.src,srcset:this.srcset,width:this.width}))}};a.style=":host{--dimension-aspect-ratio:auto;display:inline-block}img{aspect-ratio:var(--dimension-aspect-ratio);display:block;height:auto;max-width:100%}";export{a as pds_image}
1
+ import{r as s,h as i,H as t}from"./p-CTLu1TM4.js";const a=class{constructor(i){s(this,i),this.alt="",this.loading="eager"}render(){return i(t,{key:"0c0f463a1b616ccc485b8086a0210c5d9d2b065c",class:{"pds-image":!0},id:this.componentId},i("img",{key:"2ac4ef66ebbb39d488ce68f06b590a5fad180811",alt:this.alt,height:this.height,loading:this.loading,sizes:this.sizes,src:this.src,srcset:this.srcset,width:this.width}))}};a.style=":host{--dimension-aspect-ratio:auto;display:inline-block}img{aspect-ratio:var(--dimension-aspect-ratio);display:block;height:auto;max-width:100%}";export{a as pds_image}
@@ -0,0 +1 @@
1
+ import{r as e,h as r,H as o}from"./p-CTLu1TM4.js";const a=class{constructor(r){e(this,r)}render(){return r(o,{key:"38b6b6121a4652e5b98f2ff22721e687ae401437",role:"rowgroup",part:"body"},r("slot",{key:"7ce84ac64307b9e19a8b4b72efe3e8eab34f99bf"}))}};a.style=":host{border-color:inherit;display:table-row-group;vertical-align:middle}";export{a as pds_table_body}