@pine-ds/core 3.9.0 → 3.11.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 (832) hide show
  1. package/components/attributes.js.map +1 -1
  2. package/components/form.js.map +1 -1
  3. package/components/index.js +1 -1
  4. package/components/index2.js +1 -1
  5. package/components/index2.js.map +1 -1
  6. package/components/mock-pds-modal.js +5 -3
  7. package/components/mock-pds-modal.js.map +1 -1
  8. package/components/pds-accordion.js +5 -3
  9. package/components/pds-accordion.js.map +1 -1
  10. package/components/pds-alert.js +5 -3
  11. package/components/pds-alert.js.map +1 -1
  12. package/components/pds-avatar.js +5 -3
  13. package/components/pds-avatar.js.map +1 -1
  14. package/components/pds-box2.js +5 -3
  15. package/components/pds-box2.js.map +1 -1
  16. package/components/pds-button2.js +15 -4
  17. package/components/pds-button2.js.map +1 -1
  18. package/components/pds-checkbox2.js +5 -3
  19. package/components/pds-checkbox2.js.map +1 -1
  20. package/components/pds-chip2.js +5 -3
  21. package/components/pds-chip2.js.map +1 -1
  22. package/components/pds-combobox.js +5 -3
  23. package/components/pds-combobox.js.map +1 -1
  24. package/components/pds-copytext.js +5 -3
  25. package/components/pds-copytext.js.map +1 -1
  26. package/components/pds-divider.js +5 -3
  27. package/components/pds-divider.js.map +1 -1
  28. package/components/pds-dropdown-menu-item.js +5 -3
  29. package/components/pds-dropdown-menu-item.js.map +1 -1
  30. package/components/pds-dropdown-menu-separator.js +5 -3
  31. package/components/pds-dropdown-menu-separator.js.map +1 -1
  32. package/components/pds-dropdown-menu.js +6 -4
  33. package/components/pds-dropdown-menu.js.map +1 -1
  34. package/components/pds-filter.js +5 -3
  35. package/components/pds-filter.js.map +1 -1
  36. package/components/pds-filters.js +5 -3
  37. package/components/pds-filters.js.map +1 -1
  38. package/components/pds-icon2.js +5 -3
  39. package/components/pds-icon2.js.map +1 -1
  40. package/components/pds-image.js +5 -3
  41. package/components/pds-image.js.map +1 -1
  42. package/components/pds-input.js +5 -3
  43. package/components/pds-input.js.map +1 -1
  44. package/components/pds-link2.js +5 -3
  45. package/components/pds-link2.js.map +1 -1
  46. package/components/pds-loader2.js +5 -3
  47. package/components/pds-loader2.js.map +1 -1
  48. package/components/pds-modal-content.js +7 -5
  49. package/components/pds-modal-content.js.map +1 -1
  50. package/components/pds-modal-footer.js +5 -3
  51. package/components/pds-modal-footer.js.map +1 -1
  52. package/components/pds-modal-header.js +5 -3
  53. package/components/pds-modal-header.js.map +1 -1
  54. package/components/pds-modal.js +5 -3
  55. package/components/pds-modal.js.map +1 -1
  56. package/components/pds-popover.js +437 -90
  57. package/components/pds-popover.js.map +1 -1
  58. package/components/pds-progress.js +6 -4
  59. package/components/pds-progress.js.map +1 -1
  60. package/components/pds-property.js +6 -4
  61. package/components/pds-property.js.map +1 -1
  62. package/components/pds-radio.js +8 -6
  63. package/components/pds-radio.js.map +1 -1
  64. package/components/pds-row.js +6 -4
  65. package/components/pds-row.js.map +1 -1
  66. package/components/pds-select.js +6 -4
  67. package/components/pds-select.js.map +1 -1
  68. package/components/pds-sortable-item.js +6 -4
  69. package/components/pds-sortable-item.js.map +1 -1
  70. package/components/pds-sortable.js +6 -4
  71. package/components/pds-sortable.js.map +1 -1
  72. package/components/pds-switch.js +8 -6
  73. package/components/pds-switch.js.map +1 -1
  74. package/components/pds-tab.js +8 -6
  75. package/components/pds-tab.js.map +1 -1
  76. package/components/pds-table-body.js +6 -4
  77. package/components/pds-table-body.js.map +1 -1
  78. package/components/pds-table-cell2.js +7 -5
  79. package/components/pds-table-cell2.js.map +1 -1
  80. package/components/pds-table-head-cell2.js +7 -5
  81. package/components/pds-table-head-cell2.js.map +1 -1
  82. package/components/pds-table-head.js +6 -4
  83. package/components/pds-table-head.js.map +1 -1
  84. package/components/pds-table-row.js +6 -4
  85. package/components/pds-table-row.js.map +1 -1
  86. package/components/pds-table.js +5 -3
  87. package/components/pds-table.js.map +1 -1
  88. package/components/pds-tabpanel.js +6 -4
  89. package/components/pds-tabpanel.js.map +1 -1
  90. package/components/pds-tabs.js +6 -4
  91. package/components/pds-tabs.js.map +1 -1
  92. package/components/pds-text2.js +6 -4
  93. package/components/pds-text2.js.map +1 -1
  94. package/components/pds-textarea.js +9 -7
  95. package/components/pds-textarea.js.map +1 -1
  96. package/components/pds-toast.js +8 -6
  97. package/components/pds-toast.js.map +1 -1
  98. package/components/pds-tooltip.js +7 -5
  99. package/components/pds-tooltip.js.map +1 -1
  100. package/components/utils.js.map +1 -1
  101. package/dist/cjs/attributes-oNMnBEnP.js.map +1 -1
  102. package/dist/cjs/form-hmpgbT1I.js.map +1 -1
  103. package/dist/cjs/{index-DDTyvZD7.js → index-2Lf0E1JO.js} +505 -182
  104. package/dist/cjs/index-2Lf0E1JO.js.map +1 -0
  105. package/dist/cjs/{index-DtnvzYhe.js → index-BIrlTMGo.js} +3 -3
  106. package/dist/cjs/index-BIrlTMGo.js.map +1 -0
  107. package/dist/cjs/index.cjs.js +0 -4
  108. package/dist/cjs/index.cjs.js.map +1 -1
  109. package/dist/cjs/loader.cjs.js +3 -6
  110. package/dist/cjs/loader.cjs.js.map +1 -1
  111. package/dist/cjs/mock-pds-modal.cjs.entry.js +1 -3
  112. package/dist/cjs/pds-accordion.cjs.entry.js +2 -4
  113. package/dist/cjs/pds-alert.cjs.entry.js +1 -3
  114. package/dist/cjs/pds-avatar.cjs.entry.js +2 -4
  115. package/dist/cjs/pds-box.cjs.entry.js +1 -3
  116. package/dist/cjs/pds-button.cjs.entry.js +11 -5
  117. package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
  118. package/dist/cjs/pds-checkbox.cjs.entry.js +2 -4
  119. package/dist/cjs/pds-chip.cjs.entry.js +2 -4
  120. package/dist/cjs/pds-combobox.cjs.entry.js +1 -3
  121. package/dist/cjs/pds-copytext.cjs.entry.js +2 -4
  122. package/dist/cjs/pds-divider.cjs.entry.js +1 -3
  123. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -3
  124. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -3
  125. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -4
  126. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -1
  127. package/dist/cjs/pds-filter.cjs.entry.js +2 -4
  128. package/dist/cjs/pds-filters.cjs.entry.js +1 -3
  129. package/dist/cjs/pds-icon.cjs.entry.js +1 -3
  130. package/dist/cjs/pds-icon.entry.cjs.js.map +1 -1
  131. package/dist/cjs/pds-image.cjs.entry.js +1 -3
  132. package/dist/cjs/pds-input.cjs.entry.js +2 -4
  133. package/dist/cjs/pds-link.cjs.entry.js +2 -4
  134. package/dist/cjs/pds-loader.cjs.entry.js +1 -3
  135. package/dist/cjs/pds-modal-content.cjs.entry.js +3 -5
  136. package/dist/cjs/pds-modal-content.entry.cjs.js.map +1 -1
  137. package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -3
  138. package/dist/cjs/pds-modal-header.cjs.entry.js +1 -3
  139. package/dist/cjs/pds-modal.cjs.entry.js +1 -3
  140. package/dist/cjs/pds-popover.cjs.entry.js +432 -88
  141. package/dist/cjs/pds-popover.entry.cjs.js.map +1 -1
  142. package/dist/cjs/pds-progress.cjs.entry.js +2 -4
  143. package/dist/cjs/pds-property.cjs.entry.js +2 -4
  144. package/dist/cjs/pds-radio.cjs.entry.js +5 -7
  145. package/dist/cjs/pds-row.cjs.entry.js +2 -4
  146. package/dist/cjs/pds-select.cjs.entry.js +3 -5
  147. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -5
  148. package/dist/cjs/pds-sortable.cjs.entry.js +2 -4
  149. package/dist/cjs/pds-sortable.entry.cjs.js.map +1 -1
  150. package/dist/cjs/pds-switch.cjs.entry.js +5 -7
  151. package/dist/cjs/pds-tab.cjs.entry.js +4 -6
  152. package/dist/cjs/pds-table-body.cjs.entry.js +2 -4
  153. package/dist/cjs/pds-table-cell.cjs.entry.js +3 -5
  154. package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -6
  155. package/dist/cjs/pds-table-head.cjs.entry.js +2 -4
  156. package/dist/cjs/pds-table-row.cjs.entry.js +2 -4
  157. package/dist/cjs/pds-table.cjs.entry.js +1 -3
  158. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -4
  159. package/dist/cjs/pds-tabs.cjs.entry.js +2 -4
  160. package/dist/cjs/pds-text.cjs.entry.js +2 -4
  161. package/dist/cjs/pds-textarea.cjs.entry.js +6 -8
  162. package/dist/cjs/pds-toast.cjs.entry.js +4 -6
  163. package/dist/cjs/pds-tooltip.cjs.entry.js +3 -5
  164. package/dist/cjs/pine-core.cjs.js +4 -7
  165. package/dist/cjs/pine-core.cjs.js.map +1 -1
  166. package/dist/cjs/utils-7jx8T2mW.js.map +1 -1
  167. package/dist/collection/collection-manifest.json +2 -2
  168. package/dist/collection/components/pds-accordion/pds-accordion.js +3 -3
  169. package/dist/collection/components/pds-alert/pds-alert.js +7 -7
  170. package/dist/collection/components/pds-avatar/pds-avatar.js +8 -8
  171. package/dist/collection/components/pds-box/pds-box.js +235 -235
  172. package/dist/collection/components/pds-button/pds-button.css +38 -0
  173. package/dist/collection/components/pds-button/pds-button.js +50 -19
  174. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  175. package/dist/collection/components/pds-button/stories/pds-button.stories.js +109 -55
  176. package/dist/collection/components/pds-checkbox/pds-checkbox.js +23 -23
  177. package/dist/collection/components/pds-chip/pds-chip.js +8 -8
  178. package/dist/collection/components/pds-combobox/pds-combobox.js +26 -26
  179. package/dist/collection/components/pds-copytext/pds-copytext.js +7 -7
  180. package/dist/collection/components/pds-divider/pds-divider.js +5 -5
  181. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +6 -6
  182. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +3 -3
  183. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +4 -4
  184. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +1 -1
  185. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +7 -7
  186. package/dist/collection/components/pds-filters/pds-filters.js +2 -2
  187. package/dist/collection/components/pds-image/pds-image.js +14 -14
  188. package/dist/collection/components/pds-input/pds-input.js +44 -44
  189. package/dist/collection/components/pds-link/pds-link.js +9 -9
  190. package/dist/collection/components/pds-loader/pds-loader.js +4 -4
  191. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +3 -3
  192. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +1 -1
  193. package/dist/collection/components/pds-modal/pds-modal.js +6 -6
  194. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +6 -6
  195. package/dist/collection/components/pds-popover/pds-popover.css +4 -31
  196. package/dist/collection/components/pds-popover/pds-popover.js +440 -130
  197. package/dist/collection/components/pds-popover/pds-popover.js.map +1 -1
  198. package/dist/collection/components/pds-popover/popover-interface.js.map +1 -1
  199. package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +66 -18
  200. package/dist/collection/components/pds-progress/pds-progress.js +10 -10
  201. package/dist/collection/components/pds-property/pds-property.js +4 -4
  202. package/dist/collection/components/pds-radio/pds-radio.js +22 -22
  203. package/dist/collection/components/pds-row/pds-row.js +17 -17
  204. package/dist/collection/components/pds-select/pds-select.js +24 -24
  205. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +5 -5
  206. package/dist/collection/components/pds-sortable/pds-sortable.js +6 -6
  207. package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
  208. package/dist/collection/components/pds-switch/pds-switch.js +21 -21
  209. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  210. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +6 -6
  211. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +5 -5
  212. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +6 -6
  213. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +5 -5
  214. package/dist/collection/components/pds-table/pds-table.js +10 -10
  215. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +12 -12
  216. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +8 -8
  217. package/dist/collection/components/pds-tabs/pds-tabs.js +11 -11
  218. package/dist/collection/components/pds-text/pds-text.js +18 -18
  219. package/dist/collection/components/pds-textarea/pds-textarea.js +32 -32
  220. package/dist/collection/components/pds-toast/pds-toast.js +10 -10
  221. package/dist/collection/components/pds-tooltip/pds-tooltip.js +11 -11
  222. package/dist/collection/utils/attributes.js.map +1 -1
  223. package/dist/collection/utils/form.js.map +1 -1
  224. package/dist/collection/utils/utils.js.map +1 -1
  225. package/dist/docs.json +242 -79
  226. package/dist/esm/attributes-C0M1gTKv.js.map +1 -1
  227. package/dist/esm/form-DwjNklzi.js.map +1 -1
  228. package/dist/esm/{index-Bf1dou5H.js → index-Bh07GI-d.js} +505 -183
  229. package/dist/esm/index-Bh07GI-d.js.map +1 -0
  230. package/dist/esm/{index-D4zJBIgl.js → index-CvGEHHLR.js} +3 -3
  231. package/dist/esm/index-CvGEHHLR.js.map +1 -0
  232. package/dist/esm/index.js +1 -3
  233. package/dist/esm/loader.js +3 -6
  234. package/dist/esm/loader.js.map +1 -1
  235. package/dist/esm/mock-pds-modal.entry.js +1 -3
  236. package/dist/esm/pds-accordion.entry.js +2 -4
  237. package/dist/esm/pds-alert.entry.js +1 -3
  238. package/dist/esm/pds-avatar.entry.js +2 -4
  239. package/dist/esm/pds-box.entry.js +1 -3
  240. package/dist/esm/pds-button.entry.js +11 -5
  241. package/dist/esm/pds-button.entry.js.map +1 -1
  242. package/dist/esm/pds-checkbox.entry.js +2 -4
  243. package/dist/esm/pds-chip.entry.js +2 -4
  244. package/dist/esm/pds-combobox.entry.js +1 -3
  245. package/dist/esm/pds-copytext.entry.js +2 -4
  246. package/dist/esm/pds-divider.entry.js +1 -3
  247. package/dist/esm/pds-dropdown-menu-item.entry.js +1 -3
  248. package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -3
  249. package/dist/esm/pds-dropdown-menu.entry.js +2 -4
  250. package/dist/esm/pds-dropdown-menu.entry.js.map +1 -1
  251. package/dist/esm/pds-filter.entry.js +2 -4
  252. package/dist/esm/pds-filters.entry.js +1 -3
  253. package/dist/esm/pds-icon.entry.js +1 -3
  254. package/dist/esm/pds-icon.entry.js.map +1 -1
  255. package/dist/esm/pds-image.entry.js +1 -3
  256. package/dist/esm/pds-input.entry.js +2 -4
  257. package/dist/esm/pds-link.entry.js +2 -4
  258. package/dist/esm/pds-loader.entry.js +1 -3
  259. package/dist/esm/pds-modal-content.entry.js +3 -5
  260. package/dist/esm/pds-modal-content.entry.js.map +1 -1
  261. package/dist/esm/pds-modal-footer.entry.js +1 -3
  262. package/dist/esm/pds-modal-header.entry.js +1 -3
  263. package/dist/esm/pds-modal.entry.js +1 -3
  264. package/dist/esm/pds-popover.entry.js +432 -88
  265. package/dist/esm/pds-popover.entry.js.map +1 -1
  266. package/dist/esm/pds-progress.entry.js +2 -4
  267. package/dist/esm/pds-property.entry.js +2 -4
  268. package/dist/esm/pds-radio.entry.js +5 -7
  269. package/dist/esm/pds-row.entry.js +2 -4
  270. package/dist/esm/pds-select.entry.js +3 -5
  271. package/dist/esm/pds-sortable-item.entry.js +3 -5
  272. package/dist/esm/pds-sortable.entry.js +2 -4
  273. package/dist/esm/pds-sortable.entry.js.map +1 -1
  274. package/dist/esm/pds-switch.entry.js +5 -7
  275. package/dist/esm/pds-tab.entry.js +4 -6
  276. package/dist/esm/pds-table-body.entry.js +2 -4
  277. package/dist/esm/pds-table-cell.entry.js +3 -5
  278. package/dist/esm/pds-table-head-cell.entry.js +4 -6
  279. package/dist/esm/pds-table-head.entry.js +2 -4
  280. package/dist/esm/pds-table-row.entry.js +2 -4
  281. package/dist/esm/pds-table.entry.js +1 -3
  282. package/dist/esm/pds-tabpanel.entry.js +2 -4
  283. package/dist/esm/pds-tabs.entry.js +2 -4
  284. package/dist/esm/pds-text.entry.js +2 -4
  285. package/dist/esm/pds-textarea.entry.js +6 -8
  286. package/dist/esm/pds-toast.entry.js +4 -6
  287. package/dist/esm/pds-tooltip.entry.js +3 -5
  288. package/dist/esm/pine-core.js +4 -7
  289. package/dist/esm/pine-core.js.map +1 -1
  290. package/dist/esm/utils-tJa4KYNO.js.map +1 -1
  291. package/dist/esm-es5/attributes-C0M1gTKv.js.map +1 -1
  292. package/dist/esm-es5/form-DwjNklzi.js.map +1 -1
  293. package/dist/esm-es5/index-Bh07GI-d.js +3 -0
  294. package/dist/esm-es5/index-Bh07GI-d.js.map +1 -0
  295. package/dist/esm-es5/{index-D4zJBIgl.js → index-CvGEHHLR.js} +1 -1
  296. package/dist/esm-es5/index-CvGEHHLR.js.map +1 -0
  297. package/dist/esm-es5/index.js +1 -1
  298. package/dist/esm-es5/loader.js +1 -1
  299. package/dist/esm-es5/loader.js.map +1 -1
  300. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  301. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  302. package/dist/esm-es5/pds-alert.entry.js +1 -1
  303. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  304. package/dist/esm-es5/pds-box.entry.js +1 -1
  305. package/dist/esm-es5/pds-button.entry.js +1 -1
  306. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  307. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  308. package/dist/esm-es5/pds-chip.entry.js +1 -1
  309. package/dist/esm-es5/pds-combobox.entry.js +2 -2
  310. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  311. package/dist/esm-es5/pds-divider.entry.js +1 -1
  312. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  313. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  314. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  315. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +1 -1
  316. package/dist/esm-es5/pds-filter.entry.js +1 -1
  317. package/dist/esm-es5/pds-filters.entry.js +1 -1
  318. package/dist/esm-es5/pds-icon.entry.js +1 -1
  319. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  320. package/dist/esm-es5/pds-image.entry.js +1 -1
  321. package/dist/esm-es5/pds-input.entry.js +1 -1
  322. package/dist/esm-es5/pds-link.entry.js +1 -1
  323. package/dist/esm-es5/pds-loader.entry.js +1 -1
  324. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  325. package/dist/esm-es5/pds-modal-content.entry.js.map +1 -1
  326. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  327. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  328. package/dist/esm-es5/pds-modal.entry.js +1 -1
  329. package/dist/esm-es5/pds-popover.entry.js +1 -1
  330. package/dist/esm-es5/pds-popover.entry.js.map +1 -1
  331. package/dist/esm-es5/pds-progress.entry.js +1 -1
  332. package/dist/esm-es5/pds-property.entry.js +1 -1
  333. package/dist/esm-es5/pds-radio.entry.js +1 -1
  334. package/dist/esm-es5/pds-row.entry.js +1 -1
  335. package/dist/esm-es5/pds-select.entry.js +1 -1
  336. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  337. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  338. package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
  339. package/dist/esm-es5/pds-switch.entry.js +1 -1
  340. package/dist/esm-es5/pds-tab.entry.js +1 -1
  341. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  342. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  343. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  344. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  345. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  346. package/dist/esm-es5/pds-table.entry.js +1 -1
  347. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  348. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  349. package/dist/esm-es5/pds-text.entry.js +1 -1
  350. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  351. package/dist/esm-es5/pds-toast.entry.js +1 -1
  352. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  353. package/dist/esm-es5/pine-core.js +1 -1
  354. package/dist/esm-es5/pine-core.js.map +1 -1
  355. package/dist/esm-es5/utils-tJa4KYNO.js.map +1 -1
  356. package/dist/pine-core/index.esm.js +1 -1
  357. package/dist/pine-core/loader.esm.js.map +1 -1
  358. package/dist/pine-core/{p-9766923f.entry.js → p-01c4eac9.entry.js} +2 -2
  359. package/dist/pine-core/p-01c4eac9.entry.js.map +1 -0
  360. package/dist/pine-core/{p-4ef17b95.system.entry.js → p-052eedc2.system.entry.js} +2 -2
  361. package/dist/pine-core/p-052eedc2.system.entry.js.map +1 -0
  362. package/dist/pine-core/p-06f164fe.system.entry.js +2 -0
  363. package/dist/pine-core/p-06f164fe.system.entry.js.map +1 -0
  364. package/dist/pine-core/{p-c2599425.entry.js → p-0837abe8.entry.js} +2 -2
  365. package/dist/pine-core/p-0837abe8.entry.js.map +1 -0
  366. package/dist/pine-core/p-09cab3b5.system.entry.js +2 -0
  367. package/dist/pine-core/p-09cab3b5.system.entry.js.map +1 -0
  368. package/dist/pine-core/p-105951b7.system.entry.js +2 -0
  369. package/dist/pine-core/p-105951b7.system.entry.js.map +1 -0
  370. package/dist/pine-core/{p-307f415a.system.entry.js → p-168b5a5b.system.entry.js} +2 -2
  371. package/dist/pine-core/p-168b5a5b.system.entry.js.map +1 -0
  372. package/dist/pine-core/{p-04ad9d2c.system.entry.js → p-198fce07.system.entry.js} +2 -2
  373. package/dist/pine-core/p-198fce07.system.entry.js.map +1 -0
  374. package/dist/pine-core/{p-88773b86.entry.js → p-19e6bce5.entry.js} +2 -2
  375. package/dist/pine-core/p-19e6bce5.entry.js.map +1 -0
  376. package/dist/pine-core/{p-DW3lkDNz.system.js.map → p-1W8OgEyK.system.js.map} +1 -1
  377. package/dist/pine-core/{p-ee583234.system.entry.js → p-1ab0a7b1.system.entry.js} +2 -2
  378. package/dist/pine-core/p-1ab0a7b1.system.entry.js.map +1 -0
  379. package/dist/pine-core/{p-da1fb45d.system.entry.js → p-1ac7cb0f.system.entry.js} +2 -2
  380. package/dist/pine-core/p-1ac7cb0f.system.entry.js.map +1 -0
  381. package/dist/pine-core/{p-1039e8e9.entry.js → p-1b299f58.entry.js} +2 -2
  382. package/dist/pine-core/p-1b299f58.entry.js.map +1 -0
  383. package/dist/pine-core/{p-f61ee383.system.entry.js → p-1bf75b30.system.entry.js} +2 -2
  384. package/dist/pine-core/p-1bf75b30.system.entry.js.map +1 -0
  385. package/dist/pine-core/{p-dace69e7.system.entry.js → p-1c03ac40.system.entry.js} +2 -2
  386. package/dist/pine-core/p-1c03ac40.system.entry.js.map +1 -0
  387. package/dist/pine-core/p-1d3c4f2d.entry.js +2 -0
  388. package/dist/pine-core/p-1d3c4f2d.entry.js.map +1 -0
  389. package/dist/pine-core/{p-8ff41ba8.entry.js → p-1d83f560.entry.js} +2 -2
  390. package/dist/pine-core/p-1d83f560.entry.js.map +1 -0
  391. package/dist/pine-core/{p-90e83476.system.entry.js → p-1f28575b.system.entry.js} +2 -2
  392. package/dist/pine-core/p-1f28575b.system.entry.js.map +1 -0
  393. package/dist/pine-core/{p-e18c3044.entry.js → p-1fbe221a.entry.js} +2 -2
  394. package/dist/pine-core/p-1fbe221a.entry.js.map +1 -0
  395. package/dist/pine-core/{p-e692908e.entry.js → p-239cbdb2.entry.js} +2 -2
  396. package/dist/pine-core/p-239cbdb2.entry.js.map +1 -0
  397. package/dist/pine-core/{p-a9cfaa1f.entry.js → p-2551ed1a.entry.js} +2 -2
  398. package/dist/pine-core/p-2551ed1a.entry.js.map +1 -0
  399. package/dist/pine-core/p-285bc185.entry.js +2 -0
  400. package/dist/pine-core/p-285bc185.entry.js.map +1 -0
  401. package/dist/pine-core/{p-ozqEY4Zc.system.js.map → p-2NVJY0Vc.system.js.map} +1 -1
  402. package/dist/pine-core/{p-f25274c9.entry.js → p-2c3ede8e.entry.js} +2 -2
  403. package/dist/pine-core/p-2c3ede8e.entry.js.map +1 -0
  404. package/dist/pine-core/p-2f5d1411.entry.js +2 -0
  405. package/dist/pine-core/p-2f5d1411.entry.js.map +1 -0
  406. package/dist/pine-core/p-37795a28.system.entry.js +2 -0
  407. package/dist/pine-core/p-37795a28.system.entry.js.map +1 -0
  408. package/dist/pine-core/{p-c55fc47e.entry.js → p-3900b6f6.entry.js} +2 -2
  409. package/dist/pine-core/p-3900b6f6.entry.js.map +1 -0
  410. package/dist/pine-core/p-43b758af.entry.js +2 -0
  411. package/dist/pine-core/p-43b758af.entry.js.map +1 -0
  412. package/dist/pine-core/{p-378df5eb.system.entry.js → p-4792d0c8.system.entry.js} +2 -2
  413. package/dist/pine-core/p-4792d0c8.system.entry.js.map +1 -0
  414. package/dist/pine-core/{p-3cc92094.system.entry.js → p-49c5234f.system.entry.js} +2 -2
  415. package/dist/pine-core/p-49c5234f.system.entry.js.map +1 -0
  416. package/dist/pine-core/p-4HGk7WFM.system.js.map +1 -0
  417. package/dist/pine-core/p-4ea1a4fb.entry.js +2 -0
  418. package/dist/pine-core/p-4ea1a4fb.entry.js.map +1 -0
  419. package/dist/pine-core/{p-0486ecc6.system.entry.js → p-4fe28624.system.entry.js} +2 -2
  420. package/dist/pine-core/p-4fe28624.system.entry.js.map +1 -0
  421. package/dist/pine-core/{p-c44d3551.entry.js → p-51e0ea73.entry.js} +2 -2
  422. package/dist/pine-core/p-51e0ea73.entry.js.map +1 -0
  423. package/dist/pine-core/{p-b9e12535.system.entry.js → p-53645ec6.system.entry.js} +2 -2
  424. package/dist/pine-core/p-53645ec6.system.entry.js.map +1 -0
  425. package/dist/pine-core/{p-b9aafec7.system.entry.js → p-54e04c59.system.entry.js} +2 -2
  426. package/dist/pine-core/p-54e04c59.system.entry.js.map +1 -0
  427. package/dist/pine-core/p-5565ee41.system.entry.js +2 -0
  428. package/dist/pine-core/p-5565ee41.system.entry.js.map +1 -0
  429. package/dist/pine-core/{p-972a511a.entry.js → p-55d120d1.entry.js} +2 -2
  430. package/dist/pine-core/p-55d120d1.entry.js.map +1 -0
  431. package/dist/pine-core/p-5a332f9e.system.entry.js +2 -0
  432. package/dist/pine-core/p-5a332f9e.system.entry.js.map +1 -0
  433. package/dist/pine-core/{p-4802f8de.system.entry.js → p-5a94e426.system.entry.js} +2 -2
  434. package/dist/pine-core/p-5a94e426.system.entry.js.map +1 -0
  435. package/dist/pine-core/{p-bc637bed.system.entry.js → p-5d379706.system.entry.js} +2 -2
  436. package/dist/pine-core/p-5d379706.system.entry.js.map +1 -0
  437. package/dist/pine-core/p-5e1804a3.system.entry.js +2 -0
  438. package/dist/pine-core/p-5e1804a3.system.entry.js.map +1 -0
  439. package/dist/pine-core/{p-b23dd01c.entry.js → p-6046e0b1.entry.js} +2 -2
  440. package/dist/pine-core/p-6046e0b1.entry.js.map +1 -0
  441. package/dist/pine-core/{p-e702a8dc.system.entry.js → p-619a6667.system.entry.js} +2 -2
  442. package/dist/pine-core/p-619a6667.system.entry.js.map +1 -0
  443. package/dist/pine-core/{p-544fea4c.system.entry.js → p-6448829b.system.entry.js} +3 -3
  444. package/dist/pine-core/p-6448829b.system.entry.js.map +1 -0
  445. package/dist/pine-core/{p-c3f84df8.system.entry.js → p-6d9ca1ff.system.entry.js} +2 -2
  446. package/dist/pine-core/p-6d9ca1ff.system.entry.js.map +1 -0
  447. package/dist/pine-core/{p-6381a811.system.entry.js → p-6e4be339.system.entry.js} +3 -3
  448. package/dist/pine-core/p-6e4be339.system.entry.js.map +1 -0
  449. package/dist/pine-core/{p-85c41629.entry.js → p-6f5dfd01.entry.js} +2 -2
  450. package/dist/pine-core/p-6f5dfd01.entry.js.map +1 -0
  451. package/dist/pine-core/p-730ea265.entry.js +2 -0
  452. package/dist/pine-core/p-730ea265.entry.js.map +1 -0
  453. package/dist/pine-core/{p-100de2b7.entry.js → p-73a6c002.entry.js} +2 -2
  454. package/dist/pine-core/p-73a6c002.entry.js.map +1 -0
  455. package/dist/pine-core/{p-9fbb9f0e.system.entry.js → p-7a12238d.system.entry.js} +2 -2
  456. package/dist/pine-core/p-7a12238d.system.entry.js.map +1 -0
  457. package/dist/pine-core/{p-f5d78141.entry.js → p-7a63e1ec.entry.js} +2 -2
  458. package/dist/pine-core/p-7a63e1ec.entry.js.map +1 -0
  459. package/dist/pine-core/p-7bbe537d.system.entry.js +2 -0
  460. package/dist/pine-core/p-7bbe537d.system.entry.js.map +1 -0
  461. package/dist/pine-core/{p-96a60a99.entry.js → p-7c2381c5.entry.js} +2 -2
  462. package/dist/pine-core/p-7c2381c5.entry.js.map +1 -0
  463. package/dist/pine-core/p-7c69ca77.entry.js +2 -0
  464. package/dist/pine-core/p-7c69ca77.entry.js.map +1 -0
  465. package/dist/pine-core/p-7ccd095b.entry.js +2 -0
  466. package/dist/pine-core/p-7ccd095b.entry.js.map +1 -0
  467. package/dist/pine-core/{p-6d48604a.system.entry.js → p-818dd3d8.system.entry.js} +2 -2
  468. package/dist/pine-core/p-818dd3d8.system.entry.js.map +1 -0
  469. package/dist/pine-core/{p-f8e1545e.entry.js → p-841a6445.entry.js} +2 -2
  470. package/dist/pine-core/p-841a6445.entry.js.map +1 -0
  471. package/dist/pine-core/{p-5ac7af9e.entry.js → p-996072ce.entry.js} +2 -2
  472. package/dist/pine-core/p-996072ce.entry.js.map +1 -0
  473. package/dist/pine-core/{p-5b1d6cd2.entry.js → p-9f7318d7.entry.js} +2 -2
  474. package/dist/pine-core/p-9f7318d7.entry.js.map +1 -0
  475. package/dist/pine-core/{p-BG99uNIQ.system.js → p-B7x-ddku.system.js} +1 -1
  476. package/dist/pine-core/p-B7x-ddku.system.js.map +1 -0
  477. package/dist/pine-core/{p-CTkQ9Pq-.system.js.map → p-B8ftT2uA.system.js.map} +1 -1
  478. package/dist/pine-core/{p-Cl47ROcT.system.js.map → p-B9oQYxlC.system.js.map} +1 -1
  479. package/dist/pine-core/{p-DmdrRtWG.system.js.map → p-BCCWozKV.system.js.map} +1 -1
  480. package/dist/pine-core/{p-BbhWs2I3.system.js.map → p-BCGaZxvq.system.js.map} +1 -1
  481. package/dist/pine-core/{p-Cid662up.system.js.map → p-BF6EelyL.system.js.map} +1 -1
  482. package/dist/pine-core/p-BG6uGRQj.system.js.map +1 -1
  483. package/dist/pine-core/p-BHavepTY.system.js.map +1 -1
  484. package/dist/pine-core/{p-BJ3oNLWN.system.js.map → p-BLpHPllL.system.js.map} +1 -1
  485. package/dist/pine-core/{p-Dw7zXw_6.system.js.map → p-BMv60T1z.system.js.map} +1 -1
  486. package/dist/pine-core/p-BOmQOnQe.system.js +1 -1
  487. package/dist/pine-core/{p-k9JOparb.system.js.map → p-BeaxER_z.system.js.map} +1 -1
  488. package/dist/pine-core/p-Bh07GI-d.js +3 -0
  489. package/dist/pine-core/p-Bh07GI-d.js.map +1 -0
  490. package/dist/pine-core/p-BhQhw0S3.system.js.map +1 -1
  491. package/dist/pine-core/{p-4xv5UVkx.system.js.map → p-Bhj5-yqf.system.js.map} +1 -1
  492. package/dist/pine-core/{p-C2W-sHx5.system.js.map → p-BhoJR5O9.system.js.map} +1 -1
  493. package/dist/pine-core/{p-CQwYeJqz.system.js.map → p-Bj1vPZM7.system.js.map} +1 -1
  494. package/dist/pine-core/{p-BRIdBthP.system.js.map → p-BnrgLbVq.system.js.map} +1 -1
  495. package/dist/pine-core/{p-B8JDvOCM.system.js.map → p-Btz7Q5Hx.system.js.map} +1 -1
  496. package/dist/pine-core/{p-BDK6YCRb.system.js.map → p-BvtgWXBT.system.js.map} +1 -1
  497. package/dist/pine-core/{p-qQVNUF7F.system.js.map → p-BynWb21G.system.js.map} +1 -1
  498. package/dist/pine-core/p-C0M1gTKv.js.map +1 -1
  499. package/dist/pine-core/{p-CG2PKUWT.system.js.map → p-C2AG52JP.system.js.map} +1 -1
  500. package/dist/pine-core/{p-kcOuXqWo.system.js.map → p-C4UrydrO.system.js.map} +1 -1
  501. package/dist/pine-core/{p-Bkfqi7zE.system.js.map → p-C6_QgODF.system.js.map} +1 -1
  502. package/dist/pine-core/{p-K3LH4gRE.system.js.map → p-CIoeutZO.system.js.map} +1 -1
  503. package/dist/pine-core/{p-DiWDsjtE.system.js.map → p-CNOoGfj8.system.js.map} +1 -1
  504. package/dist/pine-core/{p-ByzULH8m.system.js.map → p-CSVIgMVz.system.js.map} +1 -1
  505. package/dist/pine-core/{p-CCQd5PVN.system.js.map → p-CVjjaBaW.system.js.map} +1 -1
  506. package/dist/pine-core/{p-CSa_b_JX.system.js.map → p-CVoRTJJv.system.js.map} +1 -1
  507. package/dist/pine-core/p-CZsWy9_t.system.js +3 -0
  508. package/dist/pine-core/p-CZsWy9_t.system.js.map +1 -0
  509. package/dist/pine-core/{p-BEgEi4w5.system.js.map → p-CbrMVAcu.system.js.map} +1 -1
  510. package/dist/pine-core/{p-ch9PI3Vl.system.js.map → p-ChQGk39M.system.js.map} +1 -1
  511. package/dist/pine-core/{p-M-zMP2QX.system.js.map → p-CoBzoZzZ.system.js.map} +1 -1
  512. package/dist/pine-core/{p-CEUtKiTx.system.js.map → p-CpcN1meO.system.js.map} +1 -1
  513. package/dist/pine-core/{p-DJ7iTbji.system.js.map → p-CqtdHqyo.system.js.map} +1 -1
  514. package/dist/pine-core/{p-DExobiBX.system.js.map → p-CrpTd0PB.system.js.map} +1 -1
  515. package/dist/pine-core/{p-rnM09DN4.system.js.map → p-CtiVxXhr.system.js.map} +1 -1
  516. package/dist/pine-core/p-CuF_eckL.system.js.map +1 -0
  517. package/dist/pine-core/p-Cua7cmvq.system.js +2 -0
  518. package/dist/pine-core/{p-BPjnTOEL.system.js.map → p-Cua7cmvq.system.js.map} +1 -1
  519. package/dist/pine-core/{p-D4zJBIgl.js → p-CvGEHHLR.js} +1 -1
  520. package/dist/pine-core/p-CvGEHHLR.js.map +1 -0
  521. package/dist/pine-core/{p-CfyzuJNE.system.js.map → p-D-CArvsF.system.js.map} +1 -1
  522. package/dist/pine-core/{p-CdcQ02yR.system.js.map → p-D5MCs-6L.system.js.map} +1 -1
  523. package/dist/pine-core/{p-BLC5kuro.system.js.map → p-DCLLstWD.system.js.map} +1 -1
  524. package/dist/pine-core/p-DCiTnlD3.system.js.map +1 -0
  525. package/dist/pine-core/{p-BILpjGVZ.system.js.map → p-DPmRw4fA.system.js.map} +1 -1
  526. package/dist/pine-core/{p-D52TGCLt.system.js.map → p-DTMMULoz.system.js.map} +1 -1
  527. package/dist/pine-core/{p-B-Doh1Wu.system.js.map → p-DvfECQRp.system.js.map} +1 -1
  528. package/dist/pine-core/p-DwjNklzi.js.map +1 -1
  529. package/dist/pine-core/{p-DhDw2HLE.system.js.map → p-O9Boj8Mc.system.js.map} +1 -1
  530. package/dist/pine-core/p-YWpyar7R.system.js +2 -0
  531. package/dist/pine-core/p-YWpyar7R.system.js.map +1 -0
  532. package/dist/pine-core/{p-ae2d59cd.entry.js → p-a1ddcc69.entry.js} +2 -2
  533. package/dist/pine-core/p-a1ddcc69.entry.js.map +1 -0
  534. package/dist/pine-core/p-a2c309fa.system.entry.js +2 -0
  535. package/dist/pine-core/p-a2c309fa.system.entry.js.map +1 -0
  536. package/dist/pine-core/p-a3503596.entry.js +2 -0
  537. package/dist/pine-core/p-a3503596.entry.js.map +1 -0
  538. package/dist/pine-core/{p-96c27dba.entry.js → p-a494b7d1.entry.js} +2 -2
  539. package/dist/pine-core/p-a494b7d1.entry.js.map +1 -0
  540. package/dist/pine-core/{p-7af21e83.system.entry.js → p-ab34c977.system.entry.js} +2 -2
  541. package/dist/pine-core/p-ab34c977.system.entry.js.map +1 -0
  542. package/dist/pine-core/{p-86263a62.entry.js → p-ac5eb57e.entry.js} +2 -2
  543. package/dist/pine-core/p-ac5eb57e.entry.js.map +1 -0
  544. package/dist/pine-core/{p-db12273e.system.entry.js → p-b07bb58f.system.entry.js} +2 -2
  545. package/dist/pine-core/p-b07bb58f.system.entry.js.map +1 -0
  546. package/dist/pine-core/p-b0948892.system.entry.js +2 -0
  547. package/dist/pine-core/p-b0948892.system.entry.js.map +1 -0
  548. package/dist/pine-core/{p-9ac84e63.entry.js → p-b151a37d.entry.js} +3 -3
  549. package/dist/pine-core/p-b151a37d.entry.js.map +1 -0
  550. package/dist/pine-core/{p-18179981.system.entry.js → p-ba1a4643.system.entry.js} +2 -2
  551. package/dist/pine-core/p-ba1a4643.system.entry.js.map +1 -0
  552. package/dist/pine-core/p-ba609b1e.entry.js +2 -0
  553. package/dist/pine-core/p-ba609b1e.entry.js.map +1 -0
  554. package/dist/pine-core/{p-cffc98ae.entry.js → p-bd11961c.entry.js} +3 -3
  555. package/dist/pine-core/p-bd11961c.entry.js.map +1 -0
  556. package/dist/pine-core/{p-2b102034.system.entry.js → p-c28c54c2.system.entry.js} +2 -2
  557. package/dist/pine-core/p-c28c54c2.system.entry.js.map +1 -0
  558. package/dist/pine-core/{p-25cb810d.entry.js → p-c7175497.entry.js} +2 -2
  559. package/dist/pine-core/p-c7175497.entry.js.map +1 -0
  560. package/dist/pine-core/{p-9b335a9f.entry.js → p-d0efe5e1.entry.js} +2 -2
  561. package/dist/pine-core/p-d0efe5e1.entry.js.map +1 -0
  562. package/dist/pine-core/{p-07e129db.entry.js → p-d6cff25a.entry.js} +2 -2
  563. package/dist/pine-core/p-d6cff25a.entry.js.map +1 -0
  564. package/dist/pine-core/{p-Dq7Wu9rr.system.js.map → p-dWrReyPk.system.js.map} +1 -1
  565. package/dist/pine-core/{p-725c350c.entry.js → p-da23f4cf.entry.js} +2 -2
  566. package/dist/pine-core/p-da23f4cf.entry.js.map +1 -0
  567. package/dist/pine-core/{p-f911dde3.system.entry.js → p-db3b827e.system.entry.js} +2 -2
  568. package/dist/pine-core/p-db3b827e.system.entry.js.map +1 -0
  569. package/dist/pine-core/{p-1009009c.entry.js → p-de4ebf0b.entry.js} +2 -2
  570. package/dist/pine-core/p-de4ebf0b.entry.js.map +1 -0
  571. package/dist/pine-core/{p-97299c83.system.entry.js → p-e22c4870.system.entry.js} +2 -2
  572. package/dist/pine-core/p-e22c4870.system.entry.js.map +1 -0
  573. package/dist/pine-core/{p-6c36cab6.entry.js → p-e25d2c53.entry.js} +2 -2
  574. package/dist/pine-core/p-e25d2c53.entry.js.map +1 -0
  575. package/dist/pine-core/{p-2fd7f74e.entry.js → p-e47fbd71.entry.js} +2 -2
  576. package/dist/pine-core/p-e47fbd71.entry.js.map +1 -0
  577. package/dist/pine-core/{p-f0e44449.system.entry.js → p-e715d22e.system.entry.js} +2 -2
  578. package/dist/pine-core/p-e715d22e.system.entry.js.map +1 -0
  579. package/dist/pine-core/p-e948a514.system.entry.js +2 -0
  580. package/dist/pine-core/p-e948a514.system.entry.js.map +1 -0
  581. package/dist/pine-core/p-eb3fe298.system.entry.js +2 -0
  582. package/dist/pine-core/p-eb3fe298.system.entry.js.map +1 -0
  583. package/dist/pine-core/{p-9c1bfa68.entry.js → p-ed214033.entry.js} +2 -2
  584. package/dist/pine-core/p-ed214033.entry.js.map +1 -0
  585. package/dist/pine-core/p-ee6c07d6.system.entry.js +2 -0
  586. package/dist/pine-core/p-ee6c07d6.system.entry.js.map +1 -0
  587. package/dist/pine-core/p-f2344cb2.system.entry.js +2 -0
  588. package/dist/pine-core/p-f2344cb2.system.entry.js.map +1 -0
  589. package/dist/pine-core/{p-d61f3ab0.system.entry.js → p-f38e87ad.system.entry.js} +2 -2
  590. package/dist/pine-core/p-f38e87ad.system.entry.js.map +1 -0
  591. package/dist/pine-core/{p-00f6f3af.system.entry.js → p-f70327de.system.entry.js} +2 -2
  592. package/dist/pine-core/p-f70327de.system.entry.js.map +1 -0
  593. package/dist/pine-core/{p-2c407961.entry.js → p-f72243c4.entry.js} +2 -2
  594. package/dist/pine-core/p-f72243c4.entry.js.map +1 -0
  595. package/dist/pine-core/p-f74bcc1d.entry.js +2 -0
  596. package/dist/pine-core/p-f74bcc1d.entry.js.map +1 -0
  597. package/dist/pine-core/{p-1a7cd7a6.entry.js → p-fb877b9d.entry.js} +2 -2
  598. package/dist/pine-core/p-fb877b9d.entry.js.map +1 -0
  599. package/dist/pine-core/{p-1c32ffb3.entry.js → p-fbf10641.entry.js} +2 -2
  600. package/dist/pine-core/p-fbf10641.entry.js.map +1 -0
  601. package/dist/pine-core/{p-538b3902.system.entry.js → p-fcde1f61.system.entry.js} +2 -2
  602. package/dist/pine-core/p-fcde1f61.system.entry.js.map +1 -0
  603. package/dist/pine-core/p-fdf7a1db.system.entry.js +2 -0
  604. package/dist/pine-core/p-fdf7a1db.system.entry.js.map +1 -0
  605. package/dist/pine-core/p-fe23aa6f.system.entry.js +2 -0
  606. package/dist/pine-core/p-fe23aa6f.system.entry.js.map +1 -0
  607. package/dist/pine-core/{p-DmWU0f_O.system.js.map → p-oqHEiE2W.system.js.map} +1 -1
  608. package/dist/pine-core/p-pKEraGuG.system.js.map +1 -0
  609. package/dist/pine-core/{p-CyFXZIZs.system.js.map → p-pStt9pIi.system.js.map} +1 -1
  610. package/dist/pine-core/p-tJa4KYNO.js.map +1 -1
  611. package/dist/pine-core/{p-CypP0PZf.system.js.map → p-y8wq27x0.system.js.map} +1 -1
  612. package/dist/pine-core/{p-hop4Cgg5.system.js.map → p-zZn2-0Xb.system.js.map} +1 -1
  613. package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
  614. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -1
  615. package/dist/pine-core/pds-icon.entry.esm.js.map +1 -1
  616. package/dist/pine-core/pds-modal-content.entry.esm.js.map +1 -1
  617. package/dist/pine-core/pds-popover.entry.esm.js.map +1 -1
  618. package/dist/pine-core/pds-sortable.entry.esm.js.map +1 -1
  619. package/dist/pine-core/pine-core.esm.js +1 -1
  620. package/dist/pine-core/pine-core.esm.js.map +1 -1
  621. package/dist/pine-core/pine-core.js +1 -1
  622. package/dist/types/components/pds-button/pds-button.d.ts +6 -1
  623. package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +0 -5
  624. package/dist/types/components/pds-popover/pds-popover.d.ts +113 -10
  625. package/dist/types/components/pds-popover/popover-interface.d.ts +0 -4
  626. package/dist/types/components.d.ts +76 -10
  627. package/dist/types/stencil-public-runtime.d.ts +83 -8
  628. package/dist/types/utils/attributes.d.ts +2 -2
  629. package/dist/types/utils/form.d.ts +1 -1
  630. package/dist/types/utils/utils.d.ts +1 -1
  631. package/hydrate/index.d.ts +40 -24
  632. package/hydrate/index.js +1619 -451
  633. package/hydrate/index.mjs +1618 -452
  634. package/package.json +12 -12
  635. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  636. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  637. package/dist/cjs/index-DDTyvZD7.js.map +0 -1
  638. package/dist/cjs/index-DtnvzYhe.js.map +0 -1
  639. package/dist/cjs/mock-pds-modal.cjs.entry.js.map +0 -1
  640. package/dist/cjs/pds-accordion.cjs.entry.js.map +0 -1
  641. package/dist/cjs/pds-alert.cjs.entry.js.map +0 -1
  642. package/dist/cjs/pds-avatar.cjs.entry.js.map +0 -1
  643. package/dist/cjs/pds-box.cjs.entry.js.map +0 -1
  644. package/dist/cjs/pds-button.cjs.entry.js.map +0 -1
  645. package/dist/cjs/pds-checkbox.cjs.entry.js.map +0 -1
  646. package/dist/cjs/pds-chip.cjs.entry.js.map +0 -1
  647. package/dist/cjs/pds-combobox.cjs.entry.js.map +0 -1
  648. package/dist/cjs/pds-copytext.cjs.entry.js.map +0 -1
  649. package/dist/cjs/pds-divider.cjs.entry.js.map +0 -1
  650. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js.map +0 -1
  651. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js.map +0 -1
  652. package/dist/cjs/pds-dropdown-menu.cjs.entry.js.map +0 -1
  653. package/dist/cjs/pds-filter.cjs.entry.js.map +0 -1
  654. package/dist/cjs/pds-filters.cjs.entry.js.map +0 -1
  655. package/dist/cjs/pds-icon.cjs.entry.js.map +0 -1
  656. package/dist/cjs/pds-image.cjs.entry.js.map +0 -1
  657. package/dist/cjs/pds-input.cjs.entry.js.map +0 -1
  658. package/dist/cjs/pds-link.cjs.entry.js.map +0 -1
  659. package/dist/cjs/pds-loader.cjs.entry.js.map +0 -1
  660. package/dist/cjs/pds-modal-content.cjs.entry.js.map +0 -1
  661. package/dist/cjs/pds-modal-footer.cjs.entry.js.map +0 -1
  662. package/dist/cjs/pds-modal-header.cjs.entry.js.map +0 -1
  663. package/dist/cjs/pds-modal.cjs.entry.js.map +0 -1
  664. package/dist/cjs/pds-popover.cjs.entry.js.map +0 -1
  665. package/dist/cjs/pds-progress.cjs.entry.js.map +0 -1
  666. package/dist/cjs/pds-property.cjs.entry.js.map +0 -1
  667. package/dist/cjs/pds-radio.cjs.entry.js.map +0 -1
  668. package/dist/cjs/pds-row.cjs.entry.js.map +0 -1
  669. package/dist/cjs/pds-select.cjs.entry.js.map +0 -1
  670. package/dist/cjs/pds-sortable-item.cjs.entry.js.map +0 -1
  671. package/dist/cjs/pds-sortable.cjs.entry.js.map +0 -1
  672. package/dist/cjs/pds-switch.cjs.entry.js.map +0 -1
  673. package/dist/cjs/pds-tab.cjs.entry.js.map +0 -1
  674. package/dist/cjs/pds-table-body.cjs.entry.js.map +0 -1
  675. package/dist/cjs/pds-table-cell.cjs.entry.js.map +0 -1
  676. package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +0 -1
  677. package/dist/cjs/pds-table-head.cjs.entry.js.map +0 -1
  678. package/dist/cjs/pds-table-row.cjs.entry.js.map +0 -1
  679. package/dist/cjs/pds-table.cjs.entry.js.map +0 -1
  680. package/dist/cjs/pds-tabpanel.cjs.entry.js.map +0 -1
  681. package/dist/cjs/pds-tabs.cjs.entry.js.map +0 -1
  682. package/dist/cjs/pds-text.cjs.entry.js.map +0 -1
  683. package/dist/cjs/pds-textarea.cjs.entry.js.map +0 -1
  684. package/dist/cjs/pds-toast.cjs.entry.js.map +0 -1
  685. package/dist/cjs/pds-tooltip.cjs.entry.js.map +0 -1
  686. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  687. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  688. package/dist/esm/index-Bf1dou5H.js.map +0 -1
  689. package/dist/esm/index-D4zJBIgl.js.map +0 -1
  690. package/dist/esm-es5/app-globals-DQuL1Twl.js +0 -2
  691. package/dist/esm-es5/app-globals-DQuL1Twl.js.map +0 -1
  692. package/dist/esm-es5/index-Bf1dou5H.js +0 -3
  693. package/dist/esm-es5/index-Bf1dou5H.js.map +0 -1
  694. package/dist/esm-es5/index-D4zJBIgl.js.map +0 -1
  695. package/dist/pine-core/p-00f6f3af.system.entry.js.map +0 -1
  696. package/dist/pine-core/p-0486ecc6.system.entry.js.map +0 -1
  697. package/dist/pine-core/p-04ad9d2c.system.entry.js.map +0 -1
  698. package/dist/pine-core/p-07e129db.entry.js.map +0 -1
  699. package/dist/pine-core/p-0b593535.system.entry.js +0 -2
  700. package/dist/pine-core/p-0b593535.system.entry.js.map +0 -1
  701. package/dist/pine-core/p-1009009c.entry.js.map +0 -1
  702. package/dist/pine-core/p-100de2b7.entry.js.map +0 -1
  703. package/dist/pine-core/p-1039e8e9.entry.js.map +0 -1
  704. package/dist/pine-core/p-18179981.system.entry.js.map +0 -1
  705. package/dist/pine-core/p-1a7cd7a6.entry.js.map +0 -1
  706. package/dist/pine-core/p-1c32ffb3.entry.js.map +0 -1
  707. package/dist/pine-core/p-1d127ddc.system.entry.js +0 -2
  708. package/dist/pine-core/p-1d127ddc.system.entry.js.map +0 -1
  709. package/dist/pine-core/p-25cb810d.entry.js.map +0 -1
  710. package/dist/pine-core/p-2b102034.system.entry.js.map +0 -1
  711. package/dist/pine-core/p-2b12bc55.system.entry.js +0 -2
  712. package/dist/pine-core/p-2b12bc55.system.entry.js.map +0 -1
  713. package/dist/pine-core/p-2c407961.entry.js.map +0 -1
  714. package/dist/pine-core/p-2efc646c.system.entry.js +0 -2
  715. package/dist/pine-core/p-2efc646c.system.entry.js.map +0 -1
  716. package/dist/pine-core/p-2fd7f74e.entry.js.map +0 -1
  717. package/dist/pine-core/p-302849cf.system.entry.js +0 -2
  718. package/dist/pine-core/p-302849cf.system.entry.js.map +0 -1
  719. package/dist/pine-core/p-307f415a.system.entry.js.map +0 -1
  720. package/dist/pine-core/p-332338ee.entry.js +0 -2
  721. package/dist/pine-core/p-332338ee.entry.js.map +0 -1
  722. package/dist/pine-core/p-378df5eb.system.entry.js.map +0 -1
  723. package/dist/pine-core/p-3cc92094.system.entry.js.map +0 -1
  724. package/dist/pine-core/p-41abb654.entry.js +0 -2
  725. package/dist/pine-core/p-41abb654.entry.js.map +0 -1
  726. package/dist/pine-core/p-45d574f1.system.entry.js +0 -2
  727. package/dist/pine-core/p-45d574f1.system.entry.js.map +0 -1
  728. package/dist/pine-core/p-4802f8de.system.entry.js.map +0 -1
  729. package/dist/pine-core/p-4c6ec7c4.entry.js +0 -2
  730. package/dist/pine-core/p-4c6ec7c4.entry.js.map +0 -1
  731. package/dist/pine-core/p-4ef17b95.system.entry.js.map +0 -1
  732. package/dist/pine-core/p-538b3902.system.entry.js.map +0 -1
  733. package/dist/pine-core/p-544fea4c.system.entry.js.map +0 -1
  734. package/dist/pine-core/p-5ac7af9e.entry.js.map +0 -1
  735. package/dist/pine-core/p-5b1d6cd2.entry.js.map +0 -1
  736. package/dist/pine-core/p-6381a811.system.entry.js.map +0 -1
  737. package/dist/pine-core/p-6c36cab6.entry.js.map +0 -1
  738. package/dist/pine-core/p-6d48604a.system.entry.js.map +0 -1
  739. package/dist/pine-core/p-725c350c.entry.js.map +0 -1
  740. package/dist/pine-core/p-7792f47d.system.entry.js +0 -2
  741. package/dist/pine-core/p-7792f47d.system.entry.js.map +0 -1
  742. package/dist/pine-core/p-7af21e83.system.entry.js.map +0 -1
  743. package/dist/pine-core/p-81972d0f.entry.js +0 -2
  744. package/dist/pine-core/p-81972d0f.entry.js.map +0 -1
  745. package/dist/pine-core/p-81bc089e.entry.js +0 -2
  746. package/dist/pine-core/p-81bc089e.entry.js.map +0 -1
  747. package/dist/pine-core/p-85c41629.entry.js.map +0 -1
  748. package/dist/pine-core/p-86263a62.entry.js.map +0 -1
  749. package/dist/pine-core/p-87ed43d5.entry.js +0 -2
  750. package/dist/pine-core/p-87ed43d5.entry.js.map +0 -1
  751. package/dist/pine-core/p-88773b86.entry.js.map +0 -1
  752. package/dist/pine-core/p-8b3f4c31.entry.js +0 -2
  753. package/dist/pine-core/p-8b3f4c31.entry.js.map +0 -1
  754. package/dist/pine-core/p-8ff41ba8.entry.js.map +0 -1
  755. package/dist/pine-core/p-90e83476.system.entry.js.map +0 -1
  756. package/dist/pine-core/p-96a60a99.entry.js.map +0 -1
  757. package/dist/pine-core/p-96c27dba.entry.js.map +0 -1
  758. package/dist/pine-core/p-97299c83.system.entry.js.map +0 -1
  759. package/dist/pine-core/p-972a511a.entry.js.map +0 -1
  760. package/dist/pine-core/p-9766923f.entry.js.map +0 -1
  761. package/dist/pine-core/p-9ac84e63.entry.js.map +0 -1
  762. package/dist/pine-core/p-9b335a9f.entry.js.map +0 -1
  763. package/dist/pine-core/p-9c1bfa68.entry.js.map +0 -1
  764. package/dist/pine-core/p-9c579956.system.entry.js +0 -2
  765. package/dist/pine-core/p-9c579956.system.entry.js.map +0 -1
  766. package/dist/pine-core/p-9fbb9f0e.system.entry.js.map +0 -1
  767. package/dist/pine-core/p-BG99uNIQ.system.js.map +0 -1
  768. package/dist/pine-core/p-BPjnTOEL.system.js +0 -2
  769. package/dist/pine-core/p-BbPAtVJG.system.js +0 -2
  770. package/dist/pine-core/p-BbPAtVJG.system.js.map +0 -1
  771. package/dist/pine-core/p-Bf1dou5H.js +0 -3
  772. package/dist/pine-core/p-Bf1dou5H.js.map +0 -1
  773. package/dist/pine-core/p-CIBXMJd-.system.js.map +0 -1
  774. package/dist/pine-core/p-Cqzmj3D8.system.js.map +0 -1
  775. package/dist/pine-core/p-CwNRZQss.system.js.map +0 -1
  776. package/dist/pine-core/p-Cxvdulqq.system.js +0 -3
  777. package/dist/pine-core/p-Cxvdulqq.system.js.map +0 -1
  778. package/dist/pine-core/p-D4zJBIgl.js.map +0 -1
  779. package/dist/pine-core/p-DCjZr2HA.system.js.map +0 -1
  780. package/dist/pine-core/p-DQuL1Twl.js +0 -2
  781. package/dist/pine-core/p-DQuL1Twl.js.map +0 -1
  782. package/dist/pine-core/p-WWWd_vEd.system.js +0 -2
  783. package/dist/pine-core/p-WWWd_vEd.system.js.map +0 -1
  784. package/dist/pine-core/p-a707a7da.system.entry.js +0 -2
  785. package/dist/pine-core/p-a707a7da.system.entry.js.map +0 -1
  786. package/dist/pine-core/p-a9cfaa1f.entry.js.map +0 -1
  787. package/dist/pine-core/p-ae2d59cd.entry.js.map +0 -1
  788. package/dist/pine-core/p-b23dd01c.entry.js.map +0 -1
  789. package/dist/pine-core/p-b669e1d9.entry.js +0 -2
  790. package/dist/pine-core/p-b669e1d9.entry.js.map +0 -1
  791. package/dist/pine-core/p-b9aafec7.system.entry.js.map +0 -1
  792. package/dist/pine-core/p-b9e12535.system.entry.js.map +0 -1
  793. package/dist/pine-core/p-bc2530d7.entry.js +0 -2
  794. package/dist/pine-core/p-bc2530d7.entry.js.map +0 -1
  795. package/dist/pine-core/p-bc637bed.system.entry.js.map +0 -1
  796. package/dist/pine-core/p-c2599425.entry.js.map +0 -1
  797. package/dist/pine-core/p-c3f84df8.system.entry.js.map +0 -1
  798. package/dist/pine-core/p-c44d3551.entry.js.map +0 -1
  799. package/dist/pine-core/p-c55fc47e.entry.js.map +0 -1
  800. package/dist/pine-core/p-cffc98ae.entry.js.map +0 -1
  801. package/dist/pine-core/p-d2b15290.system.entry.js +0 -2
  802. package/dist/pine-core/p-d2b15290.system.entry.js.map +0 -1
  803. package/dist/pine-core/p-d61f3ab0.system.entry.js.map +0 -1
  804. package/dist/pine-core/p-da1fb45d.system.entry.js.map +0 -1
  805. package/dist/pine-core/p-dace69e7.system.entry.js.map +0 -1
  806. package/dist/pine-core/p-db12273e.system.entry.js.map +0 -1
  807. package/dist/pine-core/p-e18c3044.entry.js.map +0 -1
  808. package/dist/pine-core/p-e6085566.system.entry.js +0 -2
  809. package/dist/pine-core/p-e6085566.system.entry.js.map +0 -1
  810. package/dist/pine-core/p-e683e197.system.entry.js +0 -2
  811. package/dist/pine-core/p-e683e197.system.entry.js.map +0 -1
  812. package/dist/pine-core/p-e692908e.entry.js.map +0 -1
  813. package/dist/pine-core/p-e6b051e8.system.entry.js +0 -2
  814. package/dist/pine-core/p-e6b051e8.system.entry.js.map +0 -1
  815. package/dist/pine-core/p-e702a8dc.system.entry.js.map +0 -1
  816. package/dist/pine-core/p-ed724664.system.entry.js +0 -2
  817. package/dist/pine-core/p-ed724664.system.entry.js.map +0 -1
  818. package/dist/pine-core/p-ed7bea99.system.entry.js +0 -2
  819. package/dist/pine-core/p-ed7bea99.system.entry.js.map +0 -1
  820. package/dist/pine-core/p-ee583234.system.entry.js.map +0 -1
  821. package/dist/pine-core/p-f0e44449.system.entry.js.map +0 -1
  822. package/dist/pine-core/p-f15cd180.entry.js +0 -2
  823. package/dist/pine-core/p-f15cd180.entry.js.map +0 -1
  824. package/dist/pine-core/p-f25274c9.entry.js.map +0 -1
  825. package/dist/pine-core/p-f5d78141.entry.js.map +0 -1
  826. package/dist/pine-core/p-f61ee383.system.entry.js.map +0 -1
  827. package/dist/pine-core/p-f8e1545e.entry.js.map +0 -1
  828. package/dist/pine-core/p-f911dde3.system.entry.js.map +0 -1
  829. package/dist/pine-core/p-fc2f3466.system.entry.js +0 -2
  830. package/dist/pine-core/p-fc2f3466.system.entry.js.map +0 -1
  831. package/dist/pine-core/p-fe60ee09.entry.js +0 -2
  832. package/dist/pine-core/p-fe60ee09.entry.js.map +0 -1
package/hydrate/index.js CHANGED
@@ -34,6 +34,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
34
34
  var CharacterData = $stencilWindow.CharacterData;
35
35
  var CSS = $stencilWindow.CSS;
36
36
  var CustomEvent = $stencilWindow.CustomEvent;
37
+ var CSSStyleSheet = $stencilWindow.CSSStyleSheet;
37
38
  var Document = $stencilWindow.Document;
38
39
  var ShadowRoot = $stencilWindow.ShadowRoot;
39
40
  var DocumentFragment = $stencilWindow.DocumentFragment;
@@ -126,10 +127,10 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
126
127
 
127
128
 
128
129
  const NAMESPACE = 'pine-core';
129
- const BUILD = /* pine-core */ { hydratedSelectorName: "hydrated", slotRelocation: true, updatable: true};
130
+ const BUILD = /* pine-core */ { hydratedSelectorName: "hydrated", slotRelocation: true, state: true, updatable: true};
130
131
 
131
132
  /*
132
- Stencil Hydrate Platform v4.28.2 | MIT Licensed | https://stenciljs.com
133
+ Stencil Hydrate Platform v4.38.3 | MIT Licensed | https://stenciljs.com
133
134
  */
134
135
  var __defProp = Object.defineProperty;
135
136
  var __export = (target, all) => {
@@ -140,6 +141,64 @@ var __export = (target, all) => {
140
141
  // src/utils/constants.ts
141
142
  var SVG_NS = "http://www.w3.org/2000/svg";
142
143
  var HTML_NS = "http://www.w3.org/1999/xhtml";
144
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
145
+ PrimitiveType2["Undefined"] = "undefined";
146
+ PrimitiveType2["Null"] = "null";
147
+ PrimitiveType2["String"] = "string";
148
+ PrimitiveType2["Number"] = "number";
149
+ PrimitiveType2["SpecialNumber"] = "number";
150
+ PrimitiveType2["Boolean"] = "boolean";
151
+ PrimitiveType2["BigInt"] = "bigint";
152
+ return PrimitiveType2;
153
+ })(PrimitiveType || {});
154
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
155
+ NonPrimitiveType2["Array"] = "array";
156
+ NonPrimitiveType2["Date"] = "date";
157
+ NonPrimitiveType2["Map"] = "map";
158
+ NonPrimitiveType2["Object"] = "object";
159
+ NonPrimitiveType2["RegularExpression"] = "regexp";
160
+ NonPrimitiveType2["Set"] = "set";
161
+ NonPrimitiveType2["Channel"] = "channel";
162
+ NonPrimitiveType2["Symbol"] = "symbol";
163
+ return NonPrimitiveType2;
164
+ })(NonPrimitiveType || {});
165
+ var TYPE_CONSTANT = "type";
166
+ var VALUE_CONSTANT = "value";
167
+ var SERIALIZED_PREFIX = "serialized:";
168
+
169
+ // src/utils/es2022-rewire-class-members.ts
170
+ var reWireGetterSetter = (instance, hostRef) => {
171
+ var _a;
172
+ const cmpMeta = hostRef.$cmpMeta$;
173
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
174
+ members.map(([memberName, [memberFlags]]) => {
175
+ if ((memberFlags & 31 /* Prop */ || memberFlags & 32 /* State */)) {
176
+ const ogValue = instance[memberName];
177
+ const ogDescriptor = getPropertyDescriptor(Object.getPrototypeOf(instance), memberName) || Object.getOwnPropertyDescriptor(instance, memberName);
178
+ if (ogDescriptor) {
179
+ Object.defineProperty(instance, memberName, {
180
+ get() {
181
+ return ogDescriptor.get.call(this);
182
+ },
183
+ set(newValue) {
184
+ ogDescriptor.set.call(this, newValue);
185
+ },
186
+ configurable: true,
187
+ enumerable: true
188
+ });
189
+ }
190
+ instance[memberName] = hostRef.$instanceValues$.has(memberName) ? hostRef.$instanceValues$.get(memberName) : ogValue;
191
+ }
192
+ });
193
+ };
194
+ function getPropertyDescriptor(obj, memberName) {
195
+ while (obj) {
196
+ const desc = Object.getOwnPropertyDescriptor(obj, memberName);
197
+ if (desc == null ? void 0 : desc.get) return desc;
198
+ obj = Object.getPrototypeOf(obj);
199
+ }
200
+ return void 0;
201
+ }
143
202
 
144
203
  // src/utils/helpers.ts
145
204
  var isDef = (v) => v != null && v !== void 0;
@@ -159,6 +218,101 @@ var escapeRegExpSpecialCharacters = (text) => {
159
218
  return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
160
219
  };
161
220
 
221
+ // src/utils/remote-value.ts
222
+ var RemoteValue = class _RemoteValue {
223
+ /**
224
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
225
+ *
226
+ * @param serialized The serialized LocalValue object
227
+ * @returns The original JavaScript value/object
228
+ */
229
+ static fromLocalValue(serialized) {
230
+ const type = serialized[TYPE_CONSTANT];
231
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
232
+ switch (type) {
233
+ case "string" /* String */:
234
+ return value;
235
+ case "boolean" /* Boolean */:
236
+ return value;
237
+ case "bigint" /* BigInt */:
238
+ return BigInt(value);
239
+ case "undefined" /* Undefined */:
240
+ return void 0;
241
+ case "null" /* Null */:
242
+ return null;
243
+ case "number" /* Number */:
244
+ if (value === "NaN") return NaN;
245
+ if (value === "-0") return -0;
246
+ if (value === "Infinity") return Infinity;
247
+ if (value === "-Infinity") return -Infinity;
248
+ return value;
249
+ case "array" /* Array */:
250
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
251
+ case "date" /* Date */:
252
+ return new Date(value);
253
+ case "map" /* Map */:
254
+ const map2 = /* @__PURE__ */ new Map();
255
+ for (const [key, val] of value) {
256
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
257
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
258
+ map2.set(deserializedKey, deserializedValue);
259
+ }
260
+ return map2;
261
+ case "object" /* Object */:
262
+ const obj = {};
263
+ for (const [key, val] of value) {
264
+ obj[key] = _RemoteValue.fromLocalValue(val);
265
+ }
266
+ return obj;
267
+ case "regexp" /* RegularExpression */:
268
+ const { pattern, flags } = value;
269
+ return new RegExp(pattern, flags);
270
+ case "set" /* Set */:
271
+ const set = /* @__PURE__ */ new Set();
272
+ for (const item of value) {
273
+ set.add(_RemoteValue.fromLocalValue(item));
274
+ }
275
+ return set;
276
+ case "symbol" /* Symbol */:
277
+ return Symbol(value);
278
+ default:
279
+ throw new Error(`Unsupported type: ${type}`);
280
+ }
281
+ }
282
+ /**
283
+ * Utility method to deserialize multiple LocalValues at once
284
+ *
285
+ * @param serializedValues Array of serialized LocalValue objects
286
+ * @returns Array of deserialized JavaScript values
287
+ */
288
+ static fromLocalValueArray(serializedValues) {
289
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
290
+ }
291
+ /**
292
+ * Verifies if the given object matches the structure of a serialized LocalValue
293
+ *
294
+ * @param obj Object to verify
295
+ * @returns boolean indicating if the object has LocalValue structure
296
+ */
297
+ static isLocalValueObject(obj) {
298
+ if (typeof obj !== "object" || obj === null) {
299
+ return false;
300
+ }
301
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
302
+ return false;
303
+ }
304
+ const type = obj[TYPE_CONSTANT];
305
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
306
+ if (!hasTypeProperty) {
307
+ return false;
308
+ }
309
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
310
+ return obj.hasOwnProperty(VALUE_CONSTANT);
311
+ }
312
+ return true;
313
+ }
314
+ };
315
+
162
316
  // src/utils/result.ts
163
317
  var result_exports = {};
164
318
  __export(result_exports, {
@@ -208,6 +362,32 @@ var unwrapErr = (result) => {
208
362
  }
209
363
  };
210
364
 
365
+ // src/utils/serialize.ts
366
+ function deserializeProperty(value) {
367
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
368
+ return value;
369
+ }
370
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
371
+ }
372
+
373
+ // src/utils/style.ts
374
+ function createStyleSheetIfNeededAndSupported(styles2) {
375
+ return void 0;
376
+ }
377
+
378
+ // src/utils/shadow-root.ts
379
+ var globalStyleSheet;
380
+ function createShadowRoot(cmpMeta) {
381
+ var _a;
382
+ const shadowRoot = this.attachShadow({ mode: "open" });
383
+ if (globalStyleSheet === void 0) globalStyleSheet = (_a = createStyleSheetIfNeededAndSupported()) != null ? _a : null;
384
+ if (globalStyleSheet) {
385
+ {
386
+ shadowRoot.adoptedStyleSheets = [...shadowRoot.adoptedStyleSheets, globalStyleSheet];
387
+ }
388
+ }
389
+ }
390
+
211
391
  // src/runtime/runtime-constants.ts
212
392
  var CONTENT_REF_ID = "r";
213
393
  var ORG_LOCATION_ID = "o";
@@ -331,7 +511,7 @@ function patchSlotNode(node) {
331
511
  const slotName = this["s-sn"];
332
512
  if (opts == null ? void 0 : opts.flatten) {
333
513
  console.error(`
334
- Flattening is not supported for Stencil non-shadow slots.
514
+ Flattening is not supported for Stencil non-shadow slots.
335
515
  You can use \`.childNodes\` to nested slot fallback content.
336
516
  If you have a particular use case, please open an issue on the Stencil repo.
337
517
  `);
@@ -375,6 +555,94 @@ var uniqueTime = (key, measureText) => {
375
555
  };
376
556
  }
377
557
  };
558
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
559
+ var registerStyle = (scopeId2, cssText, allowCS) => {
560
+ let style = styles.get(scopeId2);
561
+ {
562
+ style = cssText;
563
+ }
564
+ styles.set(scopeId2, style);
565
+ };
566
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
567
+ var _a;
568
+ const scopeId2 = getScopeId(cmpMeta);
569
+ const style = styles.get(scopeId2);
570
+ if (!win.document) {
571
+ return scopeId2;
572
+ }
573
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
574
+ if (style) {
575
+ if (typeof style === "string") {
576
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
577
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
578
+ let styleElm;
579
+ if (!appliedStyles) {
580
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
581
+ }
582
+ if (!appliedStyles.has(scopeId2)) {
583
+ if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
584
+ styleElm.innerHTML = style;
585
+ } else {
586
+ styleElm = win.document.createElement("style");
587
+ styleElm.innerHTML = style;
588
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
589
+ if (nonce != null) {
590
+ styleElm.setAttribute("nonce", nonce);
591
+ }
592
+ if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
593
+ styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
594
+ }
595
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
596
+ if (styleContainerNode.nodeName === "HEAD") {
597
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
598
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
599
+ styleContainerNode.insertBefore(
600
+ styleElm,
601
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
602
+ );
603
+ } else if ("host" in styleContainerNode) {
604
+ {
605
+ const existingStyleContainer = styleContainerNode.querySelector("style");
606
+ if (existingStyleContainer) {
607
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
608
+ } else {
609
+ styleContainerNode.prepend(styleElm);
610
+ }
611
+ }
612
+ } else {
613
+ styleContainerNode.append(styleElm);
614
+ }
615
+ }
616
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
617
+ styleContainerNode.insertBefore(styleElm, null);
618
+ }
619
+ }
620
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
621
+ styleElm.innerHTML += SLOT_FB_CSS;
622
+ }
623
+ if (appliedStyles) {
624
+ appliedStyles.add(scopeId2);
625
+ }
626
+ }
627
+ }
628
+ }
629
+ return scopeId2;
630
+ };
631
+ var attachStyles = (hostRef) => {
632
+ const cmpMeta = hostRef.$cmpMeta$;
633
+ const elm = hostRef.$hostElement$;
634
+ const flags = cmpMeta.$flags$;
635
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
636
+ const scopeId2 = addStyle(
637
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
638
+ cmpMeta);
639
+ if (flags & 10 /* needsScopedEncapsulation */) {
640
+ elm["s-sc"] = scopeId2;
641
+ elm.classList.add(scopeId2 + "-h");
642
+ }
643
+ endAttachStyles();
644
+ };
645
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
378
646
  var h = (nodeName, vnodeData, ...children) => {
379
647
  let child = null;
380
648
  let key = null;
@@ -489,6 +757,7 @@ var convertToPrivate = (node) => {
489
757
 
490
758
  // src/runtime/client-hydrate.ts
491
759
  var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
760
+ var _a, _b;
492
761
  const endHydrate = createTime("hydrateClient", tagName);
493
762
  const shadowRoot = hostElm.shadowRoot;
494
763
  const childRenderNodes = [];
@@ -535,6 +804,16 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
535
804
  if (childRenderNode.$tag$ === "slot") {
536
805
  node["s-cr"] = hostElm["s-cr"];
537
806
  }
807
+ } else if (((_a = childRenderNode.$tag$) == null ? void 0 : _a.toString().includes("-")) && childRenderNode.$tag$ !== "slot-fb" && !childRenderNode.$elm$.shadowRoot) {
808
+ const cmpMeta = getHostRef(childRenderNode.$elm$);
809
+ if (cmpMeta) {
810
+ const scopeId3 = getScopeId(
811
+ cmpMeta.$cmpMeta$);
812
+ const styleSheet = win.document.querySelector(`style[sty-id="${scopeId3}"]`);
813
+ if (styleSheet) {
814
+ hostElm.shadowRoot.append(styleSheet.cloneNode(true));
815
+ }
816
+ }
538
817
  }
539
818
  if (childRenderNode.$tag$ === "slot") {
540
819
  childRenderNode.$name$ = childRenderNode.$elm$["s-sn"] || childRenderNode.$elm$["name"] || null;
@@ -550,7 +829,7 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
550
829
  }
551
830
  }
552
831
  if (orgLocationNode && orgLocationNode.isConnected) {
553
- if (shadowRoot && orgLocationNode["s-en"] === "") {
832
+ if (orgLocationNode.parentElement.shadowRoot && orgLocationNode["s-en"] === "") {
554
833
  orgLocationNode.parentNode.insertBefore(node, orgLocationNode.nextSibling);
555
834
  }
556
835
  orgLocationNode.parentNode.removeChild(orgLocationNode);
@@ -558,7 +837,9 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
558
837
  node["s-oo"] = parseInt(childRenderNode.$nodeId$);
559
838
  }
560
839
  }
561
- plt.$orgLocNodes$.delete(orgLocationId);
840
+ if (orgLocationNode && !orgLocationNode["s-id"]) {
841
+ plt.$orgLocNodes$.delete(orgLocationId);
842
+ }
562
843
  }
563
844
  const hosts = [];
564
845
  const snLen = slottedNodes.length;
@@ -579,17 +860,22 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
579
860
  }
580
861
  if (!hosts[slottedItem.hostId]) continue;
581
862
  const hostEle = hosts[slottedItem.hostId];
863
+ if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
864
+ hostEle.appendChild(slottedItem.node);
865
+ }
582
866
  if (!hostEle.shadowRoot || !shadowRoot) {
583
- slottedItem.slot["s-cr"] = hostEle["s-cr"];
584
- if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
585
- slottedItem.slot["s-cr"] = hostEle;
586
- } else {
587
- slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
867
+ if (!slottedItem.slot["s-cr"]) {
868
+ slottedItem.slot["s-cr"] = hostEle["s-cr"];
869
+ if (!slottedItem.slot["s-cr"] && hostEle.shadowRoot) {
870
+ slottedItem.slot["s-cr"] = hostEle;
871
+ } else {
872
+ slottedItem.slot["s-cr"] = (hostEle.__childNodes || hostEle.childNodes)[0];
873
+ }
588
874
  }
589
875
  addSlotRelocateNode(slottedItem.node, slottedItem.slot, false, slottedItem.node["s-oo"]);
590
- }
591
- if (hostEle.shadowRoot && slottedItem.node.parentElement !== hostEle) {
592
- hostEle.appendChild(slottedItem.node);
876
+ if (((_b = slottedItem.node.parentElement) == null ? void 0 : _b.shadowRoot) && slottedItem.node["getAttribute"] && slottedItem.node.getAttribute("slot")) {
877
+ slottedItem.node.removeAttribute("slot");
878
+ }
593
879
  }
594
880
  }
595
881
  }
@@ -598,25 +884,27 @@ var initializeClientHydrate = (hostElm, tagName, hostId, hostRef) => {
598
884
  slot.$elm$.parentElement.classList.add(scopeId2 + "-s");
599
885
  });
600
886
  }
601
- if (shadowRoot && !shadowRoot.childNodes.length) {
887
+ if (shadowRoot) {
602
888
  let rnIdex = 0;
603
889
  const rnLen = shadowRootNodes.length;
604
890
  if (rnLen) {
605
891
  for (rnIdex; rnIdex < rnLen; rnIdex++) {
606
- shadowRoot.appendChild(shadowRootNodes[rnIdex]);
892
+ const node = shadowRootNodes[rnIdex];
893
+ if (node) {
894
+ shadowRoot.appendChild(node);
895
+ }
607
896
  }
608
897
  Array.from(hostElm.childNodes).forEach((node) => {
609
- if (typeof node["s-sn"] !== "string") {
898
+ if (typeof node["s-en"] !== "string" && typeof node["s-sn"] !== "string") {
610
899
  if (node.nodeType === 1 /* ElementNode */ && node.slot && node.hidden) {
611
900
  node.removeAttribute("hidden");
612
- } else if (node.nodeType === 8 /* CommentNode */ || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
901
+ } else if (node.nodeType === 8 /* CommentNode */ && !node.nodeValue || node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
613
902
  node.parentNode.removeChild(node);
614
903
  }
615
904
  }
616
905
  });
617
906
  }
618
907
  }
619
- plt.$orgLocNodes$.delete(hostElm["s-id"]);
620
908
  hostRef.$hostElement$ = hostElm;
621
909
  endHydrate();
622
910
  };
@@ -648,7 +936,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
648
936
  if (!parentVNode.$children$) {
649
937
  parentVNode.$children$ = [];
650
938
  }
651
- if (scopeId2) {
939
+ if (scopeId2 && childIdSplt[0] === hostId) {
652
940
  node["s-si"] = scopeId2;
653
941
  childVNode.$attrs$.class += " " + scopeId2;
654
942
  }
@@ -778,7 +1066,7 @@ var clientHydrate = (parentVNode, childRenderNodes, slotNodes, shadowRootNodes,
778
1066
  vnode.$index$ = "0";
779
1067
  parentVNode.$children$ = [vnode];
780
1068
  } else {
781
- if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim()) {
1069
+ if (node.nodeType === 3 /* TextNode */ && !node.wholeText.trim() && !node["s-nr"]) {
782
1070
  node.remove();
783
1071
  }
784
1072
  }
@@ -836,10 +1124,10 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
836
1124
  if (childVNode.$name$) {
837
1125
  childVNode.$elm$.setAttribute("name", slotName);
838
1126
  }
839
- if (parentNodeId && parentNodeId !== childVNode.$hostId$) {
840
- parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
1127
+ if (parentVNode.$elm$.shadowRoot && parentNodeId && parentNodeId !== childVNode.$hostId$) {
1128
+ internalCall(parentVNode.$elm$, "insertBefore")(slot, internalCall(parentVNode.$elm$, "children")[0]);
841
1129
  } else {
842
- node.parentNode.insertBefore(childVNode.$elm$, node);
1130
+ internalCall(internalCall(node, "parentNode"), "insertBefore")(slot, node);
843
1131
  }
844
1132
  addSlottedNodes(slottedNodes, slotId, slotName, node, childVNode.$hostId$);
845
1133
  node.remove();
@@ -854,8 +1142,8 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
854
1142
  if (shouldMove) {
855
1143
  parentVNode.$elm$.insertBefore(slot, parentVNode.$elm$.children[0]);
856
1144
  }
857
- childRenderNodes.push(childVNode);
858
1145
  }
1146
+ childRenderNodes.push(childVNode);
859
1147
  slotNodes.push(childVNode);
860
1148
  if (!parentVNode.$children$) {
861
1149
  parentVNode.$children$ = [];
@@ -863,13 +1151,17 @@ function addSlot(slotName, slotId, childVNode, node, parentVNode, childRenderNod
863
1151
  parentVNode.$children$[childVNode.$index$] = childVNode;
864
1152
  }
865
1153
  var addSlottedNodes = (slottedNodes, slotNodeId, slotName, slotNode, hostId) => {
1154
+ var _a, _b;
866
1155
  let slottedNode = slotNode.nextSibling;
867
1156
  slottedNodes[slotNodeId] = slottedNodes[slotNodeId] || [];
868
- while (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (slottedNode.nodeType === 8 /* CommentNode */ && slottedNode.nodeValue.indexOf(".") !== 1 || slottedNode.nodeType === 3 /* TextNode */))) {
869
- slottedNode["s-sn"] = slotName;
870
- slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
871
- slottedNode = slottedNode.nextSibling;
872
- }
1157
+ if (!slottedNode || ((_a = slottedNode.nodeValue) == null ? void 0 : _a.startsWith(SLOT_NODE_ID + "."))) return;
1158
+ do {
1159
+ if (slottedNode && ((slottedNode["getAttribute"] && slottedNode.getAttribute("slot") || slottedNode["s-sn"]) === slotName || slotName === "" && !slottedNode["s-sn"] && (!slottedNode["getAttribute"] || !slottedNode.getAttribute("slot")) && (slottedNode.nodeType === 8 /* CommentNode */ || slottedNode.nodeType === 3 /* TextNode */))) {
1160
+ slottedNode["s-sn"] = slotName;
1161
+ slottedNodes[slotNodeId].push({ slot: slotNode, node: slottedNode, hostId });
1162
+ }
1163
+ slottedNode = slottedNode == null ? void 0 : slottedNode.nextSibling;
1164
+ } while (slottedNode && !((_b = slottedNode.nodeValue) == null ? void 0 : _b.startsWith(SLOT_NODE_ID + ".")));
873
1165
  };
874
1166
  var findCorrespondingNode = (node, type) => {
875
1167
  let sibling = node;
@@ -894,6 +1186,12 @@ var findCorrespondingNode = (node, type) => {
894
1186
  var safeSelector = (selector) => {
895
1187
  const placeholders = [];
896
1188
  let index = 0;
1189
+ selector = selector.replace(/(\[\s*part~=\s*("[^"]*"|'[^']*')\s*\])/g, (_, keep) => {
1190
+ const replaceBy = `__part-${index}__`;
1191
+ placeholders.push(keep);
1192
+ index++;
1193
+ return replaceBy;
1194
+ });
897
1195
  selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
898
1196
  const replaceBy = `__ph-${index}__`;
899
1197
  placeholders.push(keep);
@@ -913,6 +1211,7 @@ var safeSelector = (selector) => {
913
1211
  return ss;
914
1212
  };
915
1213
  var restoreSafeSelector = (placeholders, content) => {
1214
+ content = content.replace(/__part-(\d+)__/g, (_, index) => placeholders[+index]);
916
1215
  return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
917
1216
  };
918
1217
  var _polyfillHost = "-shadowcsshost";
@@ -925,9 +1224,18 @@ var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim"
925
1224
  var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
926
1225
  var _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
927
1226
  var _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
1227
+ var _safePartRe = /__part-(\d+)__/g;
928
1228
  var _selectorReSuffix = "([>\\s~+[.,{:][\\s\\S]*)?$";
929
1229
  var _polyfillHostRe = /-shadowcsshost/gim;
930
- var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
1230
+ var createSupportsRuleRe = (selector) => {
1231
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
1232
+ return new RegExp(
1233
+ // First capture group: match any context before the selector that's not inside @supports selector()
1234
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
1235
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
1236
+ "g"
1237
+ );
1238
+ };
931
1239
  var _colonSlottedRe = createSupportsRuleRe("::slotted");
932
1240
  var _colonHostRe = createSupportsRuleRe(":host");
933
1241
  var _colonHostContextRe = createSupportsRuleRe(":host-context");
@@ -1002,7 +1310,16 @@ var escapeBlocks = (input) => {
1002
1310
  return strEscapedBlocks;
1003
1311
  };
1004
1312
  var insertPolyfillHostInCssText = (cssText) => {
1313
+ const supportsBlocks = [];
1314
+ cssText = cssText.replace(/@supports\s+selector\s*\(\s*([^)]*)\s*\)/g, (_, selectorContent) => {
1315
+ const placeholder = `__supports_${supportsBlocks.length}__`;
1316
+ supportsBlocks.push(selectorContent);
1317
+ return `@supports selector(${placeholder})`;
1318
+ });
1005
1319
  cssText = cssText.replace(_colonHostContextRe, `$1${_polyfillHostContext}`).replace(_colonHostRe, `$1${_polyfillHost}`).replace(_colonSlottedRe, `$1${_polyfillSlotted}`);
1320
+ supportsBlocks.forEach((originalSelector, index) => {
1321
+ cssText = cssText.replace(`__supports_${index}__`, originalSelector);
1322
+ });
1006
1323
  return cssText;
1007
1324
  };
1008
1325
  var convertColonRule = (cssText, regExp, partReplacer) => {
@@ -1122,7 +1439,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
1122
1439
  let scopedSelector = "";
1123
1440
  let startIndex = 0;
1124
1441
  let res;
1125
- const sep = /( |>|\+|~(?!=))\s*/g;
1442
+ const sep = /( |>|\+|~(?!=))(?=(?:[^()]*\([^()]*\))*[^()]*$)\s*/g;
1126
1443
  const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
1127
1444
  let shouldScope = !hasHost;
1128
1445
  while ((res = sep.exec(selector)) !== null) {
@@ -1134,7 +1451,7 @@ var applyStrictSelectorScope = (selector, scopeSelector2, hostSelector) => {
1134
1451
  startIndex = sep.lastIndex;
1135
1452
  }
1136
1453
  const part = selector.substring(startIndex);
1137
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
1454
+ shouldScope = !part.match(_safePartRe) && (shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1);
1138
1455
  scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
1139
1456
  return restoreSafeSelector(safeContent.placeholders, scopedSelector);
1140
1457
  };
@@ -1191,6 +1508,36 @@ var scopeCssText = (cssText, scopeId2, hostScopeId, slotScopeId, commentOriginal
1191
1508
  var replaceShadowCssHost = (cssText, hostScopeId) => {
1192
1509
  return cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
1193
1510
  };
1511
+ var expandPartSelectors = (cssText) => {
1512
+ const partSelectorRe = /([^\s,{][^,{]*?)::part\(\s*([^)]+?)\s*\)((?:[:.][^,{]*)*)/g;
1513
+ return processRules(cssText, (rule) => {
1514
+ if (rule.selector[0] === "@") {
1515
+ return rule;
1516
+ }
1517
+ const selectors = rule.selector.split(",").map((sel) => {
1518
+ const out = [sel.trim()];
1519
+ let m;
1520
+ while ((m = partSelectorRe.exec(sel)) !== null) {
1521
+ const before = m[1].trimEnd();
1522
+ const partNames = m[2].trim().split(/\s+/);
1523
+ const after = m[3] || "";
1524
+ const partAttr = partNames.flatMap((p) => {
1525
+ if (!rule.selector.includes(`[part~="${p}"]`)) {
1526
+ return [`[part~="${p}"]`];
1527
+ }
1528
+ return [];
1529
+ }).join("");
1530
+ const expanded = `${before} ${partAttr}${after}`;
1531
+ if (!!partAttr && expanded !== sel.trim()) {
1532
+ out.push(expanded);
1533
+ }
1534
+ }
1535
+ return out.join(", ");
1536
+ });
1537
+ rule.selector = selectors.join(", ");
1538
+ return rule;
1539
+ });
1540
+ };
1194
1541
  var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
1195
1542
  const hostScopeId = scopeId2 + "-h";
1196
1543
  const slotScopeId = scopeId2 + "-s";
@@ -1226,15 +1573,24 @@ var scopeCss = (cssText, scopeId2, commentOriginalSelector) => {
1226
1573
  const regex = new RegExp(escapeRegExpSpecialCharacters(slottedSelector.orgSelector), "g");
1227
1574
  cssText = cssText.replace(regex, slottedSelector.updatedSelector);
1228
1575
  });
1576
+ cssText = expandPartSelectors(cssText);
1229
1577
  return cssText;
1230
1578
  };
1231
- var parsePropertyValue = (propValue, propType) => {
1579
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1580
+ if (typeof propValue === "string" && propValue.startsWith(SERIALIZED_PREFIX)) {
1581
+ propValue = deserializeProperty(propValue);
1582
+ return propValue;
1583
+ }
1232
1584
  if (propValue != null && !isComplexType(propValue)) {
1233
1585
  if (propType & 4 /* Boolean */) {
1234
- return propValue === "false" ? false : propValue === "" || !!propValue;
1586
+ if (isFormAssociated && typeof propValue === "string") {
1587
+ return propValue === "" || !!propValue;
1588
+ } else {
1589
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1590
+ }
1235
1591
  }
1236
1592
  if (propType & 2 /* Number */) {
1237
- return parseFloat(propValue);
1593
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1238
1594
  }
1239
1595
  if (propType & 1 /* String */) {
1240
1596
  return String(propValue);
@@ -1243,7 +1599,10 @@ var parsePropertyValue = (propValue, propType) => {
1243
1599
  }
1244
1600
  return propValue;
1245
1601
  };
1246
- var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1602
+ var getElement = (ref) => {
1603
+ var _a;
1604
+ return (_a = getHostRef(ref)) == null ? void 0 : _a.$hostElement$ ;
1605
+ };
1247
1606
 
1248
1607
  // src/runtime/event-emitter.ts
1249
1608
  var createEvent = (ref, name, flags) => {
@@ -1264,94 +1623,6 @@ var emitEvent = (elm, name, opts) => {
1264
1623
  elm.dispatchEvent(ev);
1265
1624
  return ev;
1266
1625
  };
1267
- var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1268
- var registerStyle = (scopeId2, cssText, allowCS) => {
1269
- let style = styles.get(scopeId2);
1270
- {
1271
- style = cssText;
1272
- }
1273
- styles.set(scopeId2, style);
1274
- };
1275
- var addStyle = (styleContainerNode, cmpMeta, mode) => {
1276
- var _a;
1277
- const scopeId2 = getScopeId(cmpMeta);
1278
- const style = styles.get(scopeId2);
1279
- if (!win.document) {
1280
- return scopeId2;
1281
- }
1282
- styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1283
- if (style) {
1284
- if (typeof style === "string") {
1285
- styleContainerNode = styleContainerNode.head || styleContainerNode;
1286
- let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1287
- let styleElm;
1288
- if (!appliedStyles) {
1289
- rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1290
- }
1291
- if (!appliedStyles.has(scopeId2)) {
1292
- if (styleContainerNode.host && (styleElm = styleContainerNode.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`))) {
1293
- styleElm.innerHTML = style;
1294
- } else {
1295
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || win.document.createElement("style");
1296
- styleElm.innerHTML = style;
1297
- const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1298
- if (nonce != null) {
1299
- styleElm.setAttribute("nonce", nonce);
1300
- }
1301
- if ((cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */ || cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
1302
- styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
1303
- }
1304
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1305
- if (styleContainerNode.nodeName === "HEAD") {
1306
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1307
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1308
- styleContainerNode.insertBefore(
1309
- styleElm,
1310
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1311
- );
1312
- } else if ("host" in styleContainerNode) {
1313
- {
1314
- const existingStyleContainer = styleContainerNode.querySelector("style");
1315
- if (existingStyleContainer) {
1316
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1317
- } else {
1318
- styleContainerNode.prepend(styleElm);
1319
- }
1320
- }
1321
- } else {
1322
- styleContainerNode.append(styleElm);
1323
- }
1324
- }
1325
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1326
- styleContainerNode.insertBefore(styleElm, null);
1327
- }
1328
- }
1329
- if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1330
- styleElm.innerHTML += SLOT_FB_CSS;
1331
- }
1332
- if (appliedStyles) {
1333
- appliedStyles.add(scopeId2);
1334
- }
1335
- }
1336
- }
1337
- }
1338
- return scopeId2;
1339
- };
1340
- var attachStyles = (hostRef) => {
1341
- const cmpMeta = hostRef.$cmpMeta$;
1342
- const elm = hostRef.$hostElement$;
1343
- const flags = cmpMeta.$flags$;
1344
- const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1345
- const scopeId2 = addStyle(
1346
- elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1347
- cmpMeta);
1348
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
1349
- elm["s-sc"] = scopeId2;
1350
- elm.classList.add(scopeId2 + "-h");
1351
- }
1352
- endAttachStyles();
1353
- };
1354
- var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1355
1626
  var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1356
1627
  if (oldValue === newValue) {
1357
1628
  return;
@@ -1362,12 +1633,13 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
1362
1633
  const classList = elm.classList;
1363
1634
  const oldClasses = parseClassList(oldValue);
1364
1635
  let newClasses = parseClassList(newValue);
1365
- if (elm["s-si"] && initialRender) {
1366
- newClasses.push(elm["s-si"]);
1636
+ if ((elm["s-si"] || elm["s-sc"]) && initialRender) {
1637
+ const scopeId2 = elm["s-sc"] || elm["s-si"];
1638
+ newClasses.push(scopeId2);
1367
1639
  oldClasses.forEach((c) => {
1368
- if (c.startsWith(elm["s-si"])) newClasses.push(c);
1640
+ if (c.startsWith(scopeId2)) newClasses.push(c);
1369
1641
  });
1370
- newClasses = [...new Set(newClasses)];
1642
+ newClasses = [...new Set(newClasses)].filter((c) => c);
1371
1643
  classList.add(...newClasses);
1372
1644
  } else {
1373
1645
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
@@ -1799,6 +2071,8 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
1799
2071
  !isInitialRender && BUILD.updatable && oldChildren !== null
1800
2072
  ) {
1801
2073
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
2074
+ } else if (isInitialRender && BUILD.updatable && oldChildren !== null && newChildren === null) {
2075
+ newVNode2.$children$ = oldChildren;
1802
2076
  }
1803
2077
  if (isSvgMode && tag === "svg") {
1804
2078
  isSvgMode = false;
@@ -1899,13 +2173,16 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1899
2173
  const hostElm = hostRef.$hostElement$;
1900
2174
  const cmpMeta = hostRef.$cmpMeta$;
1901
2175
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
1902
- const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
2176
+ const isHostElement = isHost(renderFnResults);
2177
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
1903
2178
  hostTagName = hostElm.tagName;
1904
2179
  if (cmpMeta.$attrsToReflect$) {
1905
2180
  rootVnode.$attrs$ = rootVnode.$attrs$ || {};
1906
- cmpMeta.$attrsToReflect$.map(
1907
- ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
1908
- );
2181
+ cmpMeta.$attrsToReflect$.forEach(([propName, attribute]) => {
2182
+ {
2183
+ rootVnode.$attrs$[attribute] = hostElm[propName];
2184
+ }
2185
+ });
1909
2186
  }
1910
2187
  if (isInitialLoad && rootVnode.$attrs$) {
1911
2188
  for (const key of Object.keys(rootVnode.$attrs$)) {
@@ -2013,6 +2290,12 @@ var scheduleUpdate = (hostRef, isInitialLoad) => {
2013
2290
  }
2014
2291
  attachToAncestor(hostRef, hostRef.$ancestorComponent$);
2015
2292
  const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
2293
+ if (isInitialLoad) {
2294
+ queueMicrotask(() => {
2295
+ dispatch();
2296
+ });
2297
+ return;
2298
+ }
2016
2299
  return writeTask(dispatch) ;
2017
2300
  };
2018
2301
  var dispatchHooks = (hostRef, isInitialLoad) => {
@@ -2027,10 +2310,15 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
2027
2310
  let maybePromise;
2028
2311
  if (isInitialLoad) {
2029
2312
  {
2030
- hostRef.$flags$ |= 256 /* isListenReady */;
2031
- if (hostRef.$queuedListeners$) {
2032
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
2033
- hostRef.$queuedListeners$ = void 0;
2313
+ {
2314
+ hostRef.$flags$ |= 256 /* isListenReady */;
2315
+ if (hostRef.$queuedListeners$) {
2316
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
2317
+ hostRef.$queuedListeners$ = void 0;
2318
+ }
2319
+ }
2320
+ if (hostRef.$fetchedCbList$.length) {
2321
+ hostRef.$fetchedCbList$.forEach((cb) => cb(elm));
2034
2322
  }
2035
2323
  }
2036
2324
  maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
@@ -2150,10 +2438,16 @@ var postUpdateComponent = (hostRef) => {
2150
2438
  }
2151
2439
  };
2152
2440
  var appDidLoad = (who) => {
2441
+ var _a;
2153
2442
  if (BUILD.asyncQueue) {
2154
2443
  plt.$flags$ |= 2 /* appLoaded */;
2155
2444
  }
2156
2445
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2446
+ {
2447
+ if ((_a = plt.$orgLocNodes$) == null ? void 0 : _a.size) {
2448
+ plt.$orgLocNodes$.clear();
2449
+ }
2450
+ }
2157
2451
  };
2158
2452
  var safeCall = (instance, method, arg, elm) => {
2159
2453
  if (instance && instance[method]) {
@@ -2186,6 +2480,9 @@ var serverSideConnected = (elm) => {
2186
2480
  var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2187
2481
  var setValue = (ref, propName, newVal, cmpMeta) => {
2188
2482
  const hostRef = getHostRef(ref);
2483
+ if (!hostRef) {
2484
+ return;
2485
+ }
2189
2486
  if (!hostRef) {
2190
2487
  throw new Error(
2191
2488
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
@@ -2195,7 +2492,11 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
2195
2492
  const oldVal = hostRef.$instanceValues$.get(propName);
2196
2493
  const flags = hostRef.$flags$;
2197
2494
  const instance = hostRef.$lazyInstance$ ;
2198
- newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
2495
+ newVal = parsePropertyValue(
2496
+ newVal,
2497
+ cmpMeta.$members$[propName][0],
2498
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2499
+ );
2199
2500
  const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2200
2501
  const didValueChange = newVal !== oldVal && !areBothNaN;
2201
2502
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
@@ -2229,9 +2530,17 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
2229
2530
  var proxyComponent = (Cstr, cmpMeta, flags) => {
2230
2531
  var _a;
2231
2532
  const prototype = Cstr.prototype;
2232
- if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
2233
- if (Cstr.watchers && !cmpMeta.$watchers$) {
2234
- cmpMeta.$watchers$ = Cstr.watchers;
2533
+ {
2534
+ {
2535
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
2536
+ cmpMeta.$watchers$ = Cstr.watchers;
2537
+ }
2538
+ if (Cstr.deserializers && !cmpMeta.$deserializers$) {
2539
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2540
+ }
2541
+ if (Cstr.serializers && !cmpMeta.$serializers$) {
2542
+ cmpMeta.$serializers$ = Cstr.serializers;
2543
+ }
2235
2544
  }
2236
2545
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2237
2546
  members.map(([memberName, [memberFlags]]) => {
@@ -2259,14 +2568,21 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
2259
2568
  Object.defineProperty(prototype, memberName, {
2260
2569
  set(newValue) {
2261
2570
  const ref = getHostRef(this);
2571
+ if (!ref) {
2572
+ return;
2573
+ }
2262
2574
  if (origSetter) {
2263
2575
  const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2264
2576
  if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2265
2577
  newValue = ref.$instanceValues$.get(memberName);
2266
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
2267
- ref.$instanceValues$.set(memberName, currentValue);
2268
2578
  }
2269
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
2579
+ origSetter.apply(this, [
2580
+ parsePropertyValue(
2581
+ newValue,
2582
+ memberFlags,
2583
+ !!(cmpMeta.$flags$ & 64 /* formAssociated */)
2584
+ )
2585
+ ]);
2270
2586
  newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2271
2587
  setValue(this, memberName, newValue, cmpMeta);
2272
2588
  return;
@@ -2306,6 +2622,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2306
2622
  if (!Cstr.isProxied) {
2307
2623
  {
2308
2624
  cmpMeta.$watchers$ = Cstr.watchers;
2625
+ cmpMeta.$serializers$ = Cstr.serializers;
2626
+ cmpMeta.$deserializers$ = Cstr.deserializers;
2309
2627
  }
2310
2628
  proxyComponent(Cstr, cmpMeta);
2311
2629
  Cstr.isProxied = true;
@@ -2340,8 +2658,12 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2340
2658
  const scopeId2 = getScopeId(cmpMeta);
2341
2659
  if (!styles.has(scopeId2)) {
2342
2660
  const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2343
- if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
2344
- style = scopeCss(style, scopeId2);
2661
+ {
2662
+ if (cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */) {
2663
+ style = scopeCss(style, scopeId2);
2664
+ } else if (needsScopedSSR()) {
2665
+ style = expandPartSelectors(style);
2666
+ }
2345
2667
  }
2346
2668
  registerStyle(scopeId2, style);
2347
2669
  endRegisterStyles();
@@ -2366,6 +2688,9 @@ var fireConnectedCallback = (instance, elm) => {
2366
2688
  var connectedCallback = (elm) => {
2367
2689
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2368
2690
  const hostRef = getHostRef(elm);
2691
+ if (!hostRef) {
2692
+ return;
2693
+ }
2369
2694
  const cmpMeta = hostRef.$cmpMeta$;
2370
2695
  const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2371
2696
  if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
@@ -2623,8 +2948,13 @@ var hAsync = (nodeName, vnodeData, ...children) => {
2623
2948
  }
2624
2949
  return h(nodeName, vnodeData);
2625
2950
  };
2951
+
2952
+ // src/hydrate/platform/proxy-host-element.ts
2626
2953
  function proxyHostElement(elm, cstr) {
2627
2954
  const cmpMeta = cstr.cmpMeta;
2955
+ cmpMeta.$watchers$ = cmpMeta.$watchers$ || cstr.watchers;
2956
+ cmpMeta.$deserializers$ = cmpMeta.$deserializers$ || cstr.deserializers;
2957
+ cmpMeta.$serializers$ = cmpMeta.$serializers$ || cstr.serializers;
2628
2958
  if (typeof elm.componentOnReady !== "function") {
2629
2959
  elm.componentOnReady = componentOnReady;
2630
2960
  }
@@ -2632,32 +2962,30 @@ function proxyHostElement(elm, cstr) {
2632
2962
  elm.forceUpdate = forceUpdate2;
2633
2963
  }
2634
2964
  if (!elm.shadowRoot && !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */)) {
2635
- {
2636
- elm.attachShadow({ mode: "open" });
2637
- }
2965
+ createShadowRoot.call(elm, cmpMeta);
2638
2966
  }
2639
2967
  if (cmpMeta.$members$ != null) {
2640
2968
  const hostRef = getHostRef(elm);
2641
2969
  const members = Object.entries(cmpMeta.$members$);
2642
2970
  members.forEach(([memberName, [memberFlags, metaAttributeName]]) => {
2643
- var _a;
2971
+ var _a, _b;
2644
2972
  if (memberFlags & 31 /* Prop */) {
2645
2973
  const attributeName = metaAttributeName || memberName;
2646
- let attrValue = elm.getAttribute(attributeName);
2647
- if ((attrValue == null ? void 0 : attrValue.startsWith("{")) && attrValue.endsWith("}") || (attrValue == null ? void 0 : attrValue.startsWith("[")) && attrValue.endsWith("]")) {
2648
- try {
2649
- attrValue = JSON.parse(attrValue);
2650
- } catch (e) {
2651
- }
2652
- }
2653
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
2974
+ const attrValue = elm.getAttribute(attributeName);
2975
+ const propValue = elm[memberName];
2654
2976
  let attrPropVal;
2977
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(cstr.prototype, memberName) || {};
2655
2978
  if (attrValue != null) {
2656
- attrPropVal = parsePropertyValue(attrValue, memberFlags);
2979
+ if ((_a = cmpMeta.$deserializers$) == null ? void 0 : _a[memberName]) {
2980
+ for (const methodName of cmpMeta.$deserializers$[memberName]) {
2981
+ attrPropVal = cstr.prototype[methodName](attrValue, memberName);
2982
+ }
2983
+ } else {
2984
+ attrPropVal = parsePropertyValue(attrValue, memberFlags, !!(cmpMeta.$flags$ & 64 /* formAssociated */));
2985
+ }
2657
2986
  }
2658
- const ownValue = elm[memberName];
2659
- if (ownValue !== void 0) {
2660
- attrPropVal = ownValue;
2987
+ if (propValue !== void 0) {
2988
+ attrPropVal = propValue;
2661
2989
  delete elm[memberName];
2662
2990
  }
2663
2991
  if (attrPropVal !== void 0) {
@@ -2665,7 +2993,7 @@ function proxyHostElement(elm, cstr) {
2665
2993
  origSetter.apply(elm, [attrPropVal]);
2666
2994
  attrPropVal = origGetter ? origGetter.apply(elm) : attrPropVal;
2667
2995
  }
2668
- (_a = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a.set(memberName, attrPropVal);
2996
+ (_b = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _b.set(memberName, attrPropVal);
2669
2997
  }
2670
2998
  const getterSetterDescriptor = {
2671
2999
  get: function() {
@@ -2679,21 +3007,18 @@ function proxyHostElement(elm, cstr) {
2679
3007
  };
2680
3008
  Object.defineProperty(elm, memberName, getterSetterDescriptor);
2681
3009
  Object.defineProperty(elm, metaAttributeName, getterSetterDescriptor);
2682
- if (!cstr.prototype.__stencilAugmented) {
2683
- Object.defineProperty(cstr.prototype, memberName, {
2684
- get: function() {
2685
- var _a2;
2686
- const ref = getHostRef(this);
2687
- const attrPropVal2 = (_a2 = ref.$instanceValues$) == null ? void 0 : _a2.get(memberName);
2688
- if (origGetter && attrPropVal2 === void 0 && !getValue(this, memberName)) {
2689
- setValue(this, memberName, origGetter.apply(this), cmpMeta);
2690
- }
2691
- return attrPropVal2 !== void 0 ? attrPropVal2 : origGetter ? origGetter.apply(this) : getValue(this, memberName);
2692
- },
2693
- configurable: true,
2694
- enumerable: true
2695
- });
2696
- }
3010
+ hostRef.$fetchedCbList$.push(() => {
3011
+ var _a2;
3012
+ if (!((_a2 = hostRef == null ? void 0 : hostRef.$instanceValues$) == null ? void 0 : _a2.has(memberName))) {
3013
+ setValue(
3014
+ elm,
3015
+ memberName,
3016
+ attrPropVal !== void 0 ? attrPropVal : hostRef.$lazyInstance$[memberName],
3017
+ cmpMeta
3018
+ );
3019
+ }
3020
+ Object.defineProperty(hostRef.$lazyInstance$, memberName, getterSetterDescriptor);
3021
+ });
2697
3022
  } else if (memberFlags & 64 /* Method */) {
2698
3023
  Object.defineProperty(elm, memberName, {
2699
3024
  value(...args) {
@@ -2709,7 +3034,6 @@ function proxyHostElement(elm, cstr) {
2709
3034
  });
2710
3035
  }
2711
3036
  });
2712
- cstr.prototype.__stencilAugmented = true;
2713
3037
  }
2714
3038
  }
2715
3039
  function componentOnReady() {
@@ -2727,6 +3051,7 @@ function hydrateApp(win2, opts, results, afterHydrate, resolve) {
2727
3051
  const orgDocumentCreateElement = win2.document.createElement;
2728
3052
  const orgDocumentCreateElementNS = win2.document.createElementNS;
2729
3053
  const resolved2 = Promise.resolve();
3054
+ setScopedSSR(opts);
2730
3055
  let tmrId;
2731
3056
  let ranCompleted = false;
2732
3057
  function hydratedComplete() {
@@ -2834,13 +3159,16 @@ async function hydrateComponent(win2, results, tagName, elm, waitingElements) {
2834
3159
  if (cmpMeta != null) {
2835
3160
  waitingElements.add(elm);
2836
3161
  const hostRef = getHostRef(this);
3162
+ if (!hostRef) {
3163
+ return;
3164
+ }
2837
3165
  addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2838
3166
  try {
2839
3167
  connectedCallback(elm);
2840
3168
  await elm.componentOnReady();
2841
3169
  results.hydratedCount++;
2842
3170
  const ref = getHostRef(elm);
2843
- const modeName = !ref.$modeName$ ? "$" : ref.$modeName$;
3171
+ const modeName = !(ref == null ? void 0 : ref.$modeName$) ? "$" : ref == null ? void 0 : ref.$modeName$;
2844
3172
  if (!results.components.some((c) => c.tag === tagName && c.mode === modeName)) {
2845
3173
  results.components.push({
2846
3174
  tag: tagName,
@@ -3055,8 +3383,12 @@ var getHostRef = (ref) => {
3055
3383
  return void 0;
3056
3384
  };
3057
3385
  var registerInstance = (lazyInstance, hostRef) => {
3386
+ if (!hostRef) return void 0;
3058
3387
  lazyInstance.__stencil__getHostRef = () => hostRef;
3059
3388
  hostRef.$lazyInstance$ = lazyInstance;
3389
+ if (hostRef.$cmpMeta$.$flags$ & 512 /* hasModernPropertyDecls */ && (BUILD.state)) {
3390
+ reWireGetterSetter(lazyInstance, hostRef);
3391
+ }
3060
3392
  return hostRef;
3061
3393
  };
3062
3394
  var registerHost = (elm, cmpMeta) => {
@@ -3065,8 +3397,10 @@ var registerHost = (elm, cmpMeta) => {
3065
3397
  $cmpMeta$: cmpMeta,
3066
3398
  $hostElement$: elm,
3067
3399
  $instanceValues$: /* @__PURE__ */ new Map(),
3400
+ $serializerValues$: /* @__PURE__ */ new Map(),
3068
3401
  $renderCount$: 0
3069
3402
  };
3403
+ hostRef.$fetchedCbList$ = [];
3070
3404
  hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
3071
3405
  hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
3072
3406
  elm["s-p"] = [];
@@ -3075,6 +3409,11 @@ var registerHost = (elm, cmpMeta) => {
3075
3409
  return hostRef;
3076
3410
  };
3077
3411
  var styles = /* @__PURE__ */ new Map();
3412
+ var setScopedSSR = (opts) => {
3413
+ scopedSSR = opts.serializeShadowRoot !== false && opts.serializeShadowRoot !== "declarative-shadow-dom";
3414
+ };
3415
+ var needsScopedSSR = () => scopedSSR;
3416
+ var scopedSSR = false;
3078
3417
 
3079
3418
  const pdsModalCss$1 = ".pds-modal__backdrop{-ms-flex-align:start;align-items:flex-start;background-color:rgba(0, 0, 0, 0.4);border:0;display:-ms-flexbox;display:flex;height:100%;inset:0;-ms-flex-pack:center;justify-content:center;margin:0;max-height:100%;max-width:100%;opacity:0;padding:0;position:fixed;-webkit-transition:opacity 0.2s ease, visibility 0.2s ease;transition:opacity 0.2s ease, visibility 0.2s ease;visibility:hidden;width:100%;z-index:var(--pine-z-index-modal)}@supports ((-webkit-backdrop-filter: blur(3px)) or (backdrop-filter: blur(3px))){.pds-modal__backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}}pds-modal .pds-modal__backdrop{z-index:var(--pine-z-index-priority)}.pds-modal__backdrop::-webkit-backdrop{background:transparent}.pds-modal__backdrop::-ms-backdrop{background:transparent}.pds-modal__backdrop::backdrop{background:transparent}.pds-modal__backdrop.open{opacity:1;visibility:visible}.pds-modal{background:var(--pine-color-background-container);border-radius:var(--pine-dimension-sm);-webkit-box-shadow:var(--pine-box-shadow-400);box-shadow:var(--pine-box-shadow-400);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:var(--pine-dimension-md);max-height:none;width:100%}.pds-modal.pds-modal--scrollable{max-height:calc(100vh - (5vh + 96px))}@supports (height: 100dvh){.pds-modal.pds-modal--scrollable{max-height:calc(100dvh - (5dvh + 96px))}}@media (min-width: 992px){.pds-modal{-webkit-margin-before:6vh;margin-block-start:6vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:6dvh;margin-block-start:6dvh}}}@media (min-width: 1200px){.pds-modal{-webkit-margin-before:8vh;margin-block-start:8vh}@supports (height: 100dvh){.pds-modal{-webkit-margin-before:8dvh;margin-block-start:8dvh}}}.pds-modal--sm{max-width:520px}.pds-modal--md{max-width:700px}.pds-modal--lg{max-width:900px}.pds-modal--fullscreen{border-radius:0;height:100%;margin:0;max-height:100vh;max-width:100%}@supports (height: 100dvh){.pds-modal--fullscreen{max-height:100dvh}}.pds-modal--fullscreen.pds-modal--scrollable{max-height:100vh}@supports (height: 100dvh){.pds-modal--fullscreen.pds-modal--scrollable{max-height:100dvh}}.pds-modal--fullscreen .pds-modal-content{-ms-flex:1;flex:1}.pds-modal--scrollable pds-modal-content{-webkit-border-after:1px solid transparent;border-block-end:1px solid transparent;-webkit-border-before:1px solid transparent;border-block-start:1px solid transparent;overflow-y:auto}.pds-modal:not(.pds-modal--scrollable) pds-modal-content{overflow-y:visible}";
3080
3419
 
@@ -3161,7 +3500,7 @@ class MockPdsModal {
3161
3500
  get el() { return getElement(this); }
3162
3501
  static get style() { return pdsModalCss$1; }
3163
3502
  static get cmpMeta() { return {
3164
- "$flags$": 4,
3503
+ "$flags$": 260,
3165
3504
  "$tagName$": "mock-pds-modal",
3166
3505
  "$members$": {
3167
3506
  "componentId": [1, "component-id"],
@@ -3178,7 +3517,7 @@ class MockPdsModal {
3178
3517
  }; }
3179
3518
  }
3180
3519
 
3181
- /* pds-icons v9.9.0, ES Modules */
3520
+ /* pds-icons v9.11.0, ES Modules */
3182
3521
 
3183
3522
  const addCircle = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12m11-5a1 1 0 0 1 1 1v3h3a1 1 0 1 1 0 2h-3v3a1 1 0 1 1-2 0v-3H8a1 1 0 1 1 0-2h3V8a1 1 0 0 1 1-1'/></svg>";
3184
3523
  const caretDown = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' class='pdsicon'><path fill-rule='evenodd' d='M5.293 8.293a1 1 0 0 1 1.414 0L12 13.586l5.293-5.293a1 1 0 1 1 1.414 1.414l-6 6a1 1 0 0 1-1.414 0l-6-6a1 1 0 0 1 0-1.414'/></svg>";
@@ -3235,7 +3574,7 @@ class PdsAccordion {
3235
3574
  }; }
3236
3575
  static get style() { return pdsAccordionCss; }
3237
3576
  static get cmpMeta() { return {
3238
- "$flags$": 9,
3577
+ "$flags$": 265,
3239
3578
  "$tagName$": "pds-accordion",
3240
3579
  "$members$": {
3241
3580
  "componentId": [1, "component-id"],
@@ -3307,7 +3646,7 @@ class PdsAlert {
3307
3646
  get el() { return getElement(this); }
3308
3647
  static get style() { return pdsAlertTokensCss + pdsAlertCss; }
3309
3648
  static get cmpMeta() { return {
3310
- "$flags$": 9,
3649
+ "$flags$": 265,
3311
3650
  "$tagName$": "pds-alert",
3312
3651
  "$members$": {
3313
3652
  "componentId": [1, "component-id"],
@@ -3412,7 +3751,7 @@ class PdsAvatar {
3412
3751
  }
3413
3752
  static get style() { return pdsAvatarCss; }
3414
3753
  static get cmpMeta() { return {
3415
- "$flags$": 9,
3754
+ "$flags$": 265,
3416
3755
  "$tagName$": "pds-avatar",
3417
3756
  "$members$": {
3418
3757
  "alt": [1],
@@ -3639,7 +3978,7 @@ class PdsBox {
3639
3978
  }
3640
3979
  static get style() { return pdsBoxCss; }
3641
3980
  static get cmpMeta() { return {
3642
- "$flags$": 0,
3981
+ "$flags$": 256,
3643
3982
  "$tagName$": "pds-box",
3644
3983
  "$members$": {
3645
3984
  "alignItems": [1, "align-items"],
@@ -3767,7 +4106,7 @@ class PdsBox {
3767
4106
  }; }
3768
4107
  }
3769
4108
 
3770
- const pdsButtonCss = ":host{--pds-button-background:var(--color-background-default);--pds-button-border:var(--pine-border);--pds-button-border-radius:var(--pine-border-radius-full);--pds-button-border-radius-start-end:var(--pine-border-radius-full);--pds-button-border-radius-start-start:var(--pine-border-radius-full);--pds-button-border-radius-end-end:var(--pine-border-radius-full);--pds-button-border-radius-end-start:var(--pine-border-radius-full);--pds-button-min-height:var(--pine-dimension-450);--pds-button-outline-offset:var(--pine-border-width);--color-border-default:transparent;--color-border-disabled:transparent;--color-border-focus:transparent;--color-border-hover:transparent;--button-loader-color:var(--color-text-default);display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}:host([full-width=true]){display:-ms-flexbox;display:flex;width:100%}:host([full-width=true]) a,:host([full-width=true]) button{-ms-flex-pack:center;justify-content:center;width:100%}:host([full-width=true]) .pds-button__content{-ms-flex-pack:center;justify-content:center;text-align:center}:host([loading=true]){cursor:wait;pointer-events:none}:host([disabled=true]){pointer-events:none}.pds-button{--pds-loader-color:var(--color-text-default);-ms-flex-align:center;align-items:center;background-color:var(--pds-button-background, var(--color-background-default));border:var(--pds-button-border);border-color:var(--color-border-default);border-radius:var(--pds-button-border-radius);border-end-end-radius:var(--pds-button-border-radius-end-end, var(--pds-button-border-radius));border-end-start-radius:var(--pds-button-border-radius-end-start, var(--pds-button-border-radius));border-start-end-radius:var(--pds-button-border-radius-start-end, var(--pds-button-border-radius));border-start-start-radius:var(--pds-button-border-radius-start-start, var(--pds-button-border-radius));-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--color-text-default);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-brand-label);letter-spacing:var(--pine-letter-spacing);min-height:var(--pds-button-min-height);padding:calc(var(--pine-dimension-xs) - var(--pine-border-width)) var(--pine-dimension-sm);position:relative;text-decoration:none}.pds-button pds-icon{color:currentColor;fill:currentColor}.pds-button:hover{background-color:var(--color-background-hover);border-color:var(--color-border-hover)}.pds-button:focus-visible{border-color:var(--color-border-focus);-webkit-box-shadow:var(--pds-button-box-shadow-focus, none);box-shadow:var(--pds-button-box-shadow-focus, none);outline:var(--pds-button-outline-focus, var(--pine-outline-focus));outline-offset:var(--pds-button-outline-offset)}.pds-button:disabled{background-color:var(--color-background-disabled);border-color:var(--color-border-disabled);color:var(--color-text-disabled);pointer-events:none}.pds-button--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-button--secondary,.pds-button--disclosure{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-default:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary)}.pds-button--secondary:hover,.pds-button--disclosure:hover{background-color:var(--pine-color-secondary-hover)}.pds-button--filter{--color-background-default:var(--pine-color-white);--color-background-hover:var(--pine-color-grey-100);--color-background-disabled:var(--pine-color-white);--color-border-default:transparent;--color-border-hover:transparent;--color-border-focus:transparent;--color-text-default:var(--pine-color-text-secondary);--color-text-hover:var(--pine-color-text-hover);--color-text-disabled:var(--pine-color-text-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary);--pds-button-border-radius:var(--pine-dimension-125);--pds-button-border-radius-start-end:var(--pine-dimension-125);--pds-button-border-radius-start-start:var(--pine-dimension-125);--pds-button-border-radius-end-end:var(--pine-dimension-125);--pds-button-border-radius-end-start:var(--pine-dimension-125);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-button--filter:hover{color:var(--color-text-hover)}.pds-button--unstyled{--color-background-default:transparent;--color-background-hover:transparent;--color-background-disabled:transparent;--color-text-default:inherit;--button-loader-color:inherit;border-width:var(--pine-dimension-none);margin:var(--pine-dimension-none);min-height:auto;padding:var(--pine-dimension-none);width:inherit}.pds-button__content{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;gap:var(--pine-dimension-xs);position:relative;width:100%}.pds-button__icon{display:-ms-inline-flexbox;display:inline-flex}.pds-button__text{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}.pds-button__icon--hidden,.pds-button__text--hidden{opacity:0}.pds-button__loader{height:var(--pine-dimension-250);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--pine-dimension-250)}.pds-button--loading{cursor:wait;pointer-events:none}.pds-button--loading .pds-button__loader pds-loader{--loader-color:var(--button-loader-color)}.pds-button--icon-only{-ms-flex-align:center;align-items:center;border-radius:var(--pine-border-radius-full);height:var(--button-dimension);-ms-flex-pack:center;justify-content:center;min-height:var(--button-dimension);min-width:var(--button-dimension);padding:var(--pine-dimension-xs);width:var(--button-dimension)}.pds-button--icon-only .pds-button__content{height:100%;-ms-flex-pack:center;justify-content:center;width:100%}.pds-button--icon-only .pds-button__text--hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";
4109
+ const pdsButtonCss = ":host{--pds-button-background:var(--color-background-default);--pds-button-border:var(--pine-border);--pds-button-border-radius:var(--pine-border-radius-full);--pds-button-border-radius-start-end:var(--pine-border-radius-full);--pds-button-border-radius-start-start:var(--pine-border-radius-full);--pds-button-border-radius-end-end:var(--pine-border-radius-full);--pds-button-border-radius-end-start:var(--pine-border-radius-full);--pds-button-min-height:var(--pine-dimension-450);--pds-button-outline-offset:var(--pine-border-width);--color-border-default:transparent;--color-border-disabled:transparent;--color-border-focus:transparent;--color-border-hover:transparent;--button-loader-color:var(--color-text-default);display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}:host([full-width=true]){display:-ms-flexbox;display:flex;width:100%}:host([full-width=true]) a,:host([full-width=true]) button{-ms-flex-pack:center;justify-content:center;width:100%}:host([full-width=true]) .pds-button__content{-ms-flex-pack:center;justify-content:center;text-align:center}:host([loading=true]){cursor:wait;pointer-events:none}:host([disabled=true]){pointer-events:none}.pds-button{--pds-loader-color:var(--color-text-default);-ms-flex-align:center;align-items:center;background-color:var(--pds-button-background, var(--color-background-default));border:var(--pds-button-border);border-color:var(--color-border-default);border-radius:var(--pds-button-border-radius);border-end-end-radius:var(--pds-button-border-radius-end-end, var(--pds-button-border-radius));border-end-start-radius:var(--pds-button-border-radius-end-start, var(--pds-button-border-radius));border-start-end-radius:var(--pds-button-border-radius-start-end, var(--pds-button-border-radius));border-start-start-radius:var(--pds-button-border-radius-start-start, var(--pds-button-border-radius));-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--color-text-default);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-brand-label);letter-spacing:var(--pine-letter-spacing);min-height:var(--pds-button-min-height);padding:calc(var(--pine-dimension-xs) - var(--pine-border-width)) var(--pine-dimension-sm);position:relative;text-decoration:none}.pds-button pds-icon{color:currentColor;fill:currentColor}.pds-button:hover{background-color:var(--color-background-hover);border-color:var(--color-border-hover)}.pds-button:focus-visible{border-color:var(--color-border-focus);-webkit-box-shadow:var(--pds-button-box-shadow-focus, none);box-shadow:var(--pds-button-box-shadow-focus, none);outline:var(--pds-button-outline-focus, var(--pine-outline-focus));outline-offset:var(--pds-button-outline-offset)}.pds-button:disabled{background-color:var(--color-background-disabled);border-color:var(--color-border-disabled);color:var(--color-text-disabled);pointer-events:none}.pds-button--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-button--secondary,.pds-button--disclosure{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-default:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary)}.pds-button--secondary:hover,.pds-button--disclosure:hover{background-color:var(--pine-color-secondary-hover)}.pds-button--tertiary{--color-background-default:transparent;--color-background-hover:var(--pine-color-grey-100);--color-background-disabled:transparent;--color-border-default:transparent;--color-border-hover:var(--pine-color-grey-100);--color-border-disabled:transparent;--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary)}.pds-button--filter{--color-background-default:var(--pine-color-white);--color-background-hover:var(--pine-color-grey-100);--color-background-disabled:var(--pine-color-white);--color-border-default:transparent;--color-border-hover:transparent;--color-border-focus:transparent;--color-text-default:var(--pine-color-text-secondary);--color-text-hover:var(--pine-color-text-hover);--color-text-disabled:var(--pine-color-text-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary);--pds-button-border-radius:var(--pine-dimension-125);--pds-button-border-radius-start-end:var(--pine-dimension-125);--pds-button-border-radius-start-start:var(--pine-dimension-125);--pds-button-border-radius-end-end:var(--pine-dimension-125);--pds-button-border-radius-end-start:var(--pine-dimension-125);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-button--filter:hover{color:var(--color-text-hover)}.pds-button--unstyled{--color-background-default:transparent;--color-background-hover:transparent;--color-background-disabled:transparent;--color-text-default:inherit;--button-loader-color:inherit;border-width:var(--pine-dimension-none);margin:var(--pine-dimension-none);min-height:auto;padding:var(--pine-dimension-none);width:inherit}.pds-button__content{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;gap:var(--pine-dimension-xs);position:relative;width:100%}.pds-button__icon{display:-ms-inline-flexbox;display:inline-flex}.pds-button__text{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}.pds-button__icon--hidden,.pds-button__text--hidden{opacity:0}.pds-button__loader{height:var(--pine-dimension-250);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--pine-dimension-250)}.pds-button--loading{cursor:wait;pointer-events:none}.pds-button--loading .pds-button__loader pds-loader{--loader-color:var(--button-loader-color)}.pds-button--small{min-height:var(--pine-dimension-400);padding:calc(var(--pine-dimension-2xs) - var(--pine-border-width)) var(--pine-dimension-sm)}.pds-button--micro{font-size:var(--pine-font-size-085);min-height:var(--pine-dimension-300);padding:var(--pine-dimension-025) var(--pine-dimension-xs)}.pds-button--icon-only{-ms-flex-align:center;align-items:center;border-radius:var(--pine-border-radius-full);height:var(--button-dimension);-ms-flex-pack:center;justify-content:center;min-height:var(--button-dimension);min-width:var(--button-dimension);padding:var(--pine-dimension-xs);width:var(--button-dimension)}.pds-button--icon-only .pds-button__content{height:100%;-ms-flex-pack:center;justify-content:center;width:100%}.pds-button--icon-only .pds-button__text--hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-button--icon-only.pds-button--small{height:var(--pine-dimension-400);min-height:var(--pine-dimension-400);min-width:var(--pine-dimension-400);padding:var(--pine-dimension-2xs);width:var(--pine-dimension-400)}.pds-button--icon-only.pds-button--micro{height:var(--pine-dimension-300);min-height:var(--pine-dimension-300);min-width:var(--pine-dimension-300);padding:var(--pine-dimension-3xs);width:var(--pine-dimension-300)}";
3771
4110
 
3772
4111
  /**
3773
4112
  * @part button - Exposes the button element for styling.
@@ -3815,6 +4154,11 @@ class PdsButton {
3815
4154
  * @defaultValue button
3816
4155
  */
3817
4156
  this.type = 'button';
4157
+ /**
4158
+ * Sets the size of the button.
4159
+ * @defaultValue default
4160
+ */
4161
+ this.size = 'default';
3818
4162
  /**
3819
4163
  * Sets the style variant of the button.
3820
4164
  * @defaultValue primary
@@ -3897,6 +4241,9 @@ class PdsButton {
3897
4241
  if (this.variant) {
3898
4242
  classNames.push('pds-button--' + this.variant);
3899
4243
  }
4244
+ if (this.size && this.size !== 'default') {
4245
+ classNames.push('pds-button--' + this.size);
4246
+ }
3900
4247
  if (this.iconOnly) {
3901
4248
  classNames.push('pds-button--icon-only');
3902
4249
  }
@@ -3956,7 +4303,7 @@ class PdsButton {
3956
4303
  get el() { return getElement(this); }
3957
4304
  static get style() { return pdsButtonCss; }
3958
4305
  static get cmpMeta() { return {
3959
- "$flags$": 9,
4306
+ "$flags$": 265,
3960
4307
  "$tagName$": "pds-button",
3961
4308
  "$members$": {
3962
4309
  "componentId": [1, "component-id"],
@@ -3970,6 +4317,7 @@ class PdsButton {
3970
4317
  "target": [1],
3971
4318
  "type": [1],
3972
4319
  "value": [1],
4320
+ "size": [1],
3973
4321
  "variant": [1]
3974
4322
  },
3975
4323
  "$listeners$": [[16, "keydown", "handleFormKeyDown"]],
@@ -4205,7 +4553,7 @@ class PdsCheckbox {
4205
4553
  }; }
4206
4554
  static get style() { return labelCss$5 + pdsCheckboxCss; }
4207
4555
  static get cmpMeta() { return {
4208
- "$flags$": 73,
4556
+ "$flags$": 329,
4209
4557
  "$tagName$": "pds-checkbox",
4210
4558
  "$members$": {
4211
4559
  "checked": [1028],
@@ -4299,7 +4647,7 @@ class PdsChip {
4299
4647
  }
4300
4648
  static get style() { return pdsChipTokensCss + pdsChipCss; }
4301
4649
  static get cmpMeta() { return {
4302
- "$flags$": 9,
4650
+ "$flags$": 265,
4303
4651
  "$tagName$": "pds-chip",
4304
4652
  "$members$": {
4305
4653
  "componentId": [1, "component-id"],
@@ -8187,7 +8535,7 @@ class PdsCombobox {
8187
8535
  }; }
8188
8536
  static get style() { return pdsComboboxCss; }
8189
8537
  static get cmpMeta() { return {
8190
- "$flags$": 73,
8538
+ "$flags$": 329,
8191
8539
  "$tagName$": "pds-combobox",
8192
8540
  "$members$": {
8193
8541
  "componentId": [1, "component-id"],
@@ -8280,7 +8628,7 @@ class PdsCopytext {
8280
8628
  }
8281
8629
  static get style() { return pdsCopytextCss; }
8282
8630
  static get cmpMeta() { return {
8283
- "$flags$": 9,
8631
+ "$flags$": 265,
8284
8632
  "$tagName$": "pds-copytext",
8285
8633
  "$members$": {
8286
8634
  "border": [516],
@@ -8322,7 +8670,7 @@ class PdsDivider {
8322
8670
  }
8323
8671
  static get style() { return pdsDividerCss; }
8324
8672
  static get cmpMeta() { return {
8325
- "$flags$": 9,
8673
+ "$flags$": 265,
8326
8674
  "$tagName$": "pds-divider",
8327
8675
  "$members$": {
8328
8676
  "componentId": [1, "component-id"],
@@ -8578,12 +8926,12 @@ class PdsDropdownMenu {
8578
8926
  }
8579
8927
  }
8580
8928
  render() {
8581
- return (hAsync(Host, { key: '1e4384c8ab3fb3ca73221dd7a7f156846e9b8274', id: this.componentId }, hAsync("slot", { key: '0b3b532a025580b36bbe06f86bdb776d99e0c896', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), hAsync("pds-box", { key: '20229e833fa45ff5ce730d3a38e8faab582335c6', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", role: "menu", "aria-orientation": "vertical" }, hAsync("slot", { key: '47cad78c2e1b5150be13a399820fe64d09955e9d', onSlotchange: this.handleSlotChange }))));
8929
+ return (hAsync(Host, { key: 'c2f9a74589c43a84f1e07a38748453bbc6cd7c8d', id: this.componentId }, hAsync("slot", { key: 'b3cd9b14b17f9f34b524f459c06506aa551602d2', name: "trigger", onSlotchange: this.handleTriggerSlotChange }), hAsync("pds-box", { key: '3657c4884b745ba3e0a0f04030e46a004fcf00ac', "border-radius": "sm", display: "flex", direction: "column", class: "pds-dropdown-menu--panel is-hidden", shadow: "100", role: "menu", "aria-orientation": "vertical" }, hAsync("slot", { key: 'fb77e6214ecd67e83babee0404bbf052c8d27714', onSlotchange: this.handleSlotChange }))));
8582
8930
  }
8583
8931
  get host() { return getElement(this); }
8584
8932
  static get style() { return pdsDropdownMenuCss; }
8585
8933
  static get cmpMeta() { return {
8586
- "$flags$": 9,
8934
+ "$flags$": 265,
8587
8935
  "$tagName$": "pds-dropdown-menu",
8588
8936
  "$members$": {
8589
8937
  "componentId": [1, "component-id"],
@@ -8669,7 +9017,7 @@ class PdsDropdownMenuItem {
8669
9017
  get host() { return getElement(this); }
8670
9018
  static get style() { return pdsDropdownMenuItemCss; }
8671
9019
  static get cmpMeta() { return {
8672
- "$flags$": 9,
9020
+ "$flags$": 265,
8673
9021
  "$tagName$": "pds-dropdown-menu-item",
8674
9022
  "$members$": {
8675
9023
  "componentId": [1, "component-id"],
@@ -8701,7 +9049,7 @@ class PdsDropdownMenuSeparator {
8701
9049
  }
8702
9050
  static get style() { return pdsDropdownMenuSeparatorCss; }
8703
9051
  static get cmpMeta() { return {
8704
- "$flags$": 9,
9052
+ "$flags$": 265,
8705
9053
  "$tagName$": "pds-dropdown-menu-separator",
8706
9054
  "$members$": {
8707
9055
  "componentId": [1, "component-id"],
@@ -9205,7 +9553,7 @@ class PdsFilter {
9205
9553
  get el() { return getElement(this); }
9206
9554
  static get style() { return pdsFilterCss; }
9207
9555
  static get cmpMeta() { return {
9208
- "$flags$": 9,
9556
+ "$flags$": 265,
9209
9557
  "$tagName$": "pds-filter",
9210
9558
  "$members$": {
9211
9559
  "componentId": [1, "component-id"],
@@ -9236,7 +9584,7 @@ class PdsFilters {
9236
9584
  }
9237
9585
  static get style() { return pdsFiltersCss; }
9238
9586
  static get cmpMeta() { return {
9239
- "$flags$": 9,
9587
+ "$flags$": 265,
9240
9588
  "$tagName$": "pds-filters",
9241
9589
  "$members$": {
9242
9590
  "componentId": [1, "component-id"]
@@ -9649,7 +9997,7 @@ class PdsIcon {
9649
9997
  }; }
9650
9998
  static get style() { return pdsIconCss; }
9651
9999
  static get cmpMeta() { return {
9652
- "$flags$": 9,
10000
+ "$flags$": 265,
9653
10001
  "$tagName$": "pds-icon",
9654
10002
  "$members$": {
9655
10003
  "color": [1],
@@ -9701,7 +10049,7 @@ class PdsImage {
9701
10049
  }
9702
10050
  static get style() { return pdsImageCss; }
9703
10051
  static get cmpMeta() { return {
9704
- "$flags$": 9,
10052
+ "$flags$": 265,
9705
10053
  "$tagName$": "pds-image",
9706
10054
  "$members$": {
9707
10055
  "alt": [1],
@@ -9991,7 +10339,7 @@ class PdsInput {
9991
10339
  }; }
9992
10340
  static get style() { return pdsInputTokensCss$1 + (labelCss$4 + pdsInputCss); }
9993
10341
  static get cmpMeta() { return {
9994
- "$flags$": 73,
10342
+ "$flags$": 329,
9995
10343
  "$tagName$": "pds-input",
9996
10344
  "$members$": {
9997
10345
  "autocomplete": [1],
@@ -10083,7 +10431,7 @@ class PdsLink {
10083
10431
  }
10084
10432
  static get style() { return pdsLinkCss; }
10085
10433
  static get cmpMeta() { return {
10086
- "$flags$": 9,
10434
+ "$flags$": 265,
10087
10435
  "$tagName$": "pds-link",
10088
10436
  "$members$": {
10089
10437
  "color": [1],
@@ -10153,7 +10501,7 @@ class PdsLoader {
10153
10501
  }
10154
10502
  static get style() { return pdsLoaderCss; }
10155
10503
  static get cmpMeta() { return {
10156
- "$flags$": 9,
10504
+ "$flags$": 265,
10157
10505
  "$tagName$": "pds-loader",
10158
10506
  "$members$": {
10159
10507
  "isLoading": [4, "is-loading"],
@@ -10420,7 +10768,7 @@ class PdsModal {
10420
10768
  }; }
10421
10769
  static get style() { return pdsModalCss; }
10422
10770
  static get cmpMeta() { return {
10423
- "$flags$": 4,
10771
+ "$flags$": 260,
10424
10772
  "$tagName$": "pds-modal",
10425
10773
  "$members$": {
10426
10774
  "backdropDismiss": [4, "backdrop-dismiss"],
@@ -10631,15 +10979,15 @@ class PdsModalContent {
10631
10979
  render() {
10632
10980
  // Only apply max-height style if it's not 'none'
10633
10981
  const styleObj = this.contentMaxHeight !== 'none' ? { maxHeight: this.contentMaxHeight } : {};
10634
- return (hAsync(Host, { key: '5357ae43a3c7e6922a182a00ddf0241775d5a2a2' }, hAsync("div", { key: '100bf34dbc72b4d7ec7de8dfe64aaa617f840a70', class: {
10982
+ return (hAsync(Host, { key: '11f1dba4ecce4a2dbf5afcd484a545a68559b0dd' }, hAsync("div", { key: '09af48c8b62dbd0f0b418e9b15175fd9f4409636', class: {
10635
10983
  'pds-modal-content': true,
10636
10984
  [`pds-modal-content--border-${this.border}`]: true
10637
- }, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: '3f4a2281f3e1243a86dfb7ac496e6e190c1df548' }))));
10985
+ }, style: styleObj, tabindex: "-1" }, hAsync("slot", { key: 'd738f5346e407ca6a5d92ff81d10387f7edc03bf' }))));
10638
10986
  }
10639
10987
  get el() { return getElement(this); }
10640
10988
  static get style() { return pdsModalContentCss; }
10641
10989
  static get cmpMeta() { return {
10642
- "$flags$": 4,
10990
+ "$flags$": 260,
10643
10991
  "$tagName$": "pds-modal-content",
10644
10992
  "$members$": {
10645
10993
  "border": [513],
@@ -10662,7 +11010,7 @@ class PdsModalFooter {
10662
11010
  }
10663
11011
  static get style() { return pdsModalFooterCss; }
10664
11012
  static get cmpMeta() { return {
10665
- "$flags$": 4,
11013
+ "$flags$": 260,
10666
11014
  "$tagName$": "pds-modal-footer",
10667
11015
  "$members$": undefined,
10668
11016
  "$listeners$": undefined,
@@ -10682,7 +11030,7 @@ class PdsModalHeader {
10682
11030
  }
10683
11031
  static get style() { return pdsModalHeaderCss; }
10684
11032
  static get cmpMeta() { return {
10685
- "$flags$": 4,
11033
+ "$flags$": 260,
10686
11034
  "$tagName$": "pds-modal-header",
10687
11035
  "$members$": undefined,
10688
11036
  "$listeners$": undefined,
@@ -10691,8 +11039,12 @@ class PdsModalHeader {
10691
11039
  }; }
10692
11040
  }
10693
11041
 
10694
- const pdsPopoverCss = ":host{--sizing-max-width-default:352px;display:inline-block}:host [popover]{background-color:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow-200);box-shadow:var(--pine-box-shadow-200);margin:var(--pine-dimension-none);max-width:var(--sizing-max-width-default);padding:var(--pine-dimension-md);position:fixed}:host [popover]:popover-open:not(.pds-popover--positioned){visibility:hidden}:host button{-ms-flex-align:center;align-items:center;background-color:var(--pine-color-secondary);border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--pine-color-text-secondary);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);font-family:var(--pine-font-family-heading);letter-spacing:var(--pine-letter-spacing);min-height:40px;padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}:host button:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}:host button:hover{background-color:var(--pine-color-secondary-hover)}";
11042
+ const pdsPopoverCss = ":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}";
10695
11043
 
11044
+ /**
11045
+ * @slot trigger - The trigger element for the popover
11046
+ * @slot (default) - The content to display inside the popover
11047
+ */
10696
11048
  class PdsPopover {
10697
11049
  constructor(hostRef) {
10698
11050
  registerInstance(this, hostRef);
@@ -10707,6 +11059,31 @@ class PdsPopover {
10707
11059
  * Tracks if the component is still mounted to prevent memory leaks
10708
11060
  */
10709
11061
  this.isComponentMounted = true;
11062
+ /**
11063
+ * Reference to the trigger element
11064
+ */
11065
+ this.triggerEl = null;
11066
+ /**
11067
+ * Portal element rendered in document.body
11068
+ */
11069
+ this.portalEl = null;
11070
+ /**
11071
+ * Guard to prevent repositioning loops
11072
+ */
11073
+ this.isRepositioning = false;
11074
+ /**
11075
+ * Debounce timers for performance optimization
11076
+ */
11077
+ this.scrollDebounceTimer = null;
11078
+ this.resizeDebounceTimer = null;
11079
+ /**
11080
+ * Track moved nodes and their placeholders for restoration
11081
+ */
11082
+ this.movedNodes = [];
11083
+ /**
11084
+ * Timestamp when popover was opened (for preventing immediate close)
11085
+ */
11086
+ this.openTimestamp = 0;
10710
11087
  /**
10711
11088
  * Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value.
10712
11089
  * @defaultValue "show"
@@ -10727,124 +11104,437 @@ class PdsPopover {
10727
11104
  * @defaultValue "right"
10728
11105
  */
10729
11106
  this.placement = 'right';
11107
+ /**
11108
+ * Handles changes to the trigger slot
11109
+ */
11110
+ this.handleTriggerSlotChange = (event) => {
11111
+ const slot = event.target;
11112
+ const assignedElements = slot.assignedElements();
11113
+ // Clean up previous trigger's event listener if it exists
11114
+ if (this.triggerEl != null) {
11115
+ this.triggerEl.removeEventListener('click', this.handleTriggerClick);
11116
+ }
11117
+ if (assignedElements.length > 0) {
11118
+ // Use the first assigned element as the trigger
11119
+ this.triggerEl = assignedElements[0];
11120
+ // Set ARIA attributes to establish relationship between trigger and popover
11121
+ // This mirrors the native Popover API's accessibility behavior
11122
+ if (this.portalEl) {
11123
+ this.triggerEl.setAttribute('aria-expanded', String(this.active));
11124
+ this.triggerEl.setAttribute('aria-controls', this.portalEl.id);
11125
+ }
11126
+ // Attach click listener to handle popover visibility
11127
+ this.triggerEl.addEventListener('click', this.handleTriggerClick);
11128
+ }
11129
+ else {
11130
+ this.triggerEl = null;
11131
+ }
11132
+ };
11133
+ /**
11134
+ * Handles changes to the default slot (popover content)
11135
+ * When the popover is active, re-sync content with portal to handle dynamic updates
11136
+ */
11137
+ this.handleContentSlotChange = () => {
11138
+ if (!this.active)
11139
+ return;
11140
+ this.updatePortalContent();
11141
+ };
11142
+ /**
11143
+ * Handles clicks on the trigger element
11144
+ */
11145
+ this.handleTriggerClick = (event) => {
11146
+ // Only prevent default if the trigger is not an anchor with href
11147
+ // This allows link navigation while still controlling popover visibility
11148
+ const composedPath = event.composedPath();
11149
+ const anchorWithHref = composedPath.find((el) => el instanceof HTMLAnchorElement && el.href);
11150
+ if (!anchorWithHref) {
11151
+ event.preventDefault();
11152
+ }
11153
+ // Execute the appropriate action based on popoverTargetAction prop
11154
+ switch (this.popoverTargetAction) {
11155
+ case 'show':
11156
+ this.show();
11157
+ break;
11158
+ case 'hide':
11159
+ this.hide();
11160
+ break;
11161
+ case 'toggle':
11162
+ default:
11163
+ this.toggle();
11164
+ break;
11165
+ }
11166
+ };
10730
11167
  }
10731
11168
  componentDidLoad() {
10732
11169
  var _a;
10733
- // Attach toggle event listener to the popover element
10734
- const popoverEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('div[popover]');
10735
- if (popoverEl != null) {
10736
- this.boundToggleHandler = this.handleToggle.bind(this);
10737
- popoverEl.addEventListener('toggle', this.boundToggleHandler);
11170
+ // Bind event handlers for cleanup
11171
+ this.boundClickOutsideHandler = this.handleClickOutside.bind(this);
11172
+ this.boundEscapeKeyHandler = this.handleEscapeKey.bind(this);
11173
+ this.boundScrollHandler = this.handleScroll.bind(this);
11174
+ this.boundResizeHandler = this.handleResize.bind(this);
11175
+ // Create portal element
11176
+ this.createPortal();
11177
+ // Initialize trigger element by calling slot change handler
11178
+ // This is a fallback for environments where slot change might not fire reliably
11179
+ const triggerSlot = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('slot[name="trigger"]');
11180
+ if (triggerSlot && this.triggerEl == null) {
11181
+ const CustomEvent = (typeof window !== 'undefined' ? window.Event : global.Event);
11182
+ const slotChangeEvent = new CustomEvent('slotchange');
11183
+ Object.defineProperty(slotChangeEvent, 'target', { value: triggerSlot, enumerable: true });
11184
+ this.handleTriggerSlotChange(slotChangeEvent);
10738
11185
  }
10739
11186
  }
10740
11187
  disconnectedCallback() {
10741
- var _a;
10742
11188
  this.isComponentMounted = false;
10743
- // Clean up event listener
10744
- const popoverEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('div[popover]');
10745
- if (popoverEl != null && this.boundToggleHandler != null) {
10746
- popoverEl.removeEventListener('toggle', this.boundToggleHandler);
11189
+ // Clean up trigger click event listener
11190
+ if (this.triggerEl != null) {
11191
+ this.triggerEl.removeEventListener('click', this.handleTriggerClick);
11192
+ }
11193
+ // Clean up all event listeners
11194
+ this.removeLightDismissListeners();
11195
+ this.removeScrollAndResizeListeners();
11196
+ // Clear any pending debounce timers
11197
+ this.clearDebounceTimers();
11198
+ // Remove portal from DOM
11199
+ this.removePortal();
11200
+ }
11201
+ /**
11202
+ * Clears any pending debounce timers
11203
+ */
11204
+ clearDebounceTimers() {
11205
+ if (this.scrollDebounceTimer !== null) {
11206
+ clearTimeout(this.scrollDebounceTimer);
11207
+ this.scrollDebounceTimer = null;
10747
11208
  }
11209
+ if (this.resizeDebounceTimer !== null) {
11210
+ clearTimeout(this.resizeDebounceTimer);
11211
+ this.resizeDebounceTimer = null;
11212
+ }
11213
+ }
11214
+ createPortal() {
11215
+ if (this.portalEl !== null)
11216
+ return;
11217
+ this.portalEl = document.createElement('div');
11218
+ this.portalEl.className = 'pds-popover';
11219
+ // Apply all styles inline since portal is outside shadow DOM
11220
+ this.portalEl.style.position = 'fixed';
11221
+ this.portalEl.style.zIndex = 'var(--pine-z-index-raised)';
11222
+ this.portalEl.style.maxWidth = `${this.maxWidth}px`;
11223
+ this.portalEl.style.display = 'none';
11224
+ this.portalEl.style.opacity = '0';
11225
+ this.portalEl.style.visibility = 'hidden';
11226
+ this.portalEl.style.backgroundColor = 'var(--pine-color-background-container)';
11227
+ this.portalEl.style.borderRadius = 'var(--pine-dimension-125)';
11228
+ this.portalEl.style.boxShadow = 'var(--pine-box-shadow-200)';
11229
+ this.portalEl.style.margin = 'var(--pine-dimension-none)';
11230
+ this.portalEl.style.padding = 'var(--pine-dimension-md)';
11231
+ // Generate unique ID
11232
+ if (!this.componentId) {
11233
+ const suffix = PdsPopover.instanceCounter++;
11234
+ this.portalEl.id = `pds-popover-portal-${suffix}`;
11235
+ }
11236
+ else {
11237
+ this.portalEl.id = `${this.componentId}-portal`;
11238
+ }
11239
+ // Add accessibility attributes for screen readers
11240
+ // Note: Native Popover API doesn't add a specific role, keeping semantic HTML
11241
+ this.portalEl.setAttribute('aria-modal', 'false'); // Not a modal, can interact with rest of page
11242
+ // Append to body
11243
+ document.body.appendChild(this.portalEl);
11244
+ // Add global focus styles to match Pine design system
11245
+ // This is done after appending to ensure it's part of the document and can access CSS variables
11246
+ this.addPortalFocusStyles();
10748
11247
  }
10749
11248
  /**
10750
- * Opens the popover programmatically
11249
+ * Adds Pine design system focus styles to the portal element
11250
+ * Uses CSS variables from Pine's design tokens
10751
11251
  */
10752
- async show() {
11252
+ addPortalFocusStyles() {
11253
+ if (!this.portalEl)
11254
+ return;
11255
+ const portalId = this.portalEl.id;
11256
+ // Check if style element already exists
11257
+ const existingStyle = document.querySelector(`style[data-pds-popover-focus="${portalId}"]`);
11258
+ if (existingStyle)
11259
+ return;
11260
+ // Create style element with Pine's focus ring styles
11261
+ const styleEl = document.createElement('style');
11262
+ styleEl.setAttribute('data-pds-popover-focus', portalId);
11263
+ styleEl.textContent = `
11264
+ #${portalId}:focus {
11265
+ outline: var(--pine-outline-focus, 2px solid var(--pine-color-focus-ring, #6366f1)) !important;
11266
+ outline-offset: var(--pine-border-width, 1px);
11267
+ }
11268
+ #${portalId}:focus:not(:focus-visible) {
11269
+ outline: none;
11270
+ }
11271
+ `;
11272
+ document.head.appendChild(styleEl);
11273
+ }
11274
+ /**
11275
+ * Moves slot content into portal (preserves event handlers and component instances)
11276
+ */
11277
+ updatePortalContent() {
10753
11278
  var _a;
10754
- const popoverEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('div[popover]');
10755
- if (popoverEl != null && typeof popoverEl.showPopover === 'function') {
10756
- try {
10757
- popoverEl.showPopover();
11279
+ if (!this.portalEl)
11280
+ return;
11281
+ const contentSlotWrapper = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('.pds-popover__content-slot-wrapper');
11282
+ const defaultSlot = contentSlotWrapper === null || contentSlotWrapper === void 0 ? void 0 : contentSlotWrapper.querySelector('slot');
11283
+ if (defaultSlot) {
11284
+ const assignedNodes = defaultSlot.assignedNodes();
11285
+ // Move each node into portal and track with placeholder for restoration
11286
+ assignedNodes.forEach(node => {
11287
+ var _a;
11288
+ // Skip if node is already in the portal or already tracked
11289
+ const isAlreadyInPortal = node.parentNode === this.portalEl;
11290
+ const isAlreadyTracked = this.movedNodes.some(moved => moved.node === node);
11291
+ if (isAlreadyInPortal || isAlreadyTracked) {
11292
+ return;
11293
+ }
11294
+ // Create a placeholder comment to mark original position
11295
+ const placeholder = document.createComment('pds-popover-placeholder');
11296
+ // Insert placeholder before moving the node
11297
+ (_a = node.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(placeholder, node);
11298
+ // Move the actual node to portal (preserves all handlers and state)
11299
+ this.portalEl.appendChild(node);
11300
+ // Track for restoration
11301
+ this.movedNodes.push({ node, placeholder });
11302
+ });
11303
+ }
11304
+ }
11305
+ /**
11306
+ * Restores moved nodes back to their original positions
11307
+ */
11308
+ restorePortalContent() {
11309
+ // Restore each moved node to its original position
11310
+ this.movedNodes.forEach(({ node, placeholder }) => {
11311
+ if (placeholder.parentNode) {
11312
+ placeholder.parentNode.insertBefore(node, placeholder);
11313
+ placeholder.parentNode.removeChild(placeholder);
10758
11314
  }
10759
- catch (e) {
10760
- // Popover might already be open
10761
- console.warn('Failed to show popover:', e);
11315
+ });
11316
+ // Clear tracking array
11317
+ this.movedNodes = [];
11318
+ }
11319
+ removePortal() {
11320
+ if (this.portalEl) {
11321
+ // Remove the portal element from DOM
11322
+ if (this.portalEl.parentNode) {
11323
+ this.portalEl.parentNode.removeChild(this.portalEl);
11324
+ }
11325
+ // Remove the associated focus style element
11326
+ const portalId = this.portalEl.id;
11327
+ const styleEl = document.querySelector(`style[data-pds-popover-focus="${portalId}"]`);
11328
+ if (styleEl && styleEl.parentNode) {
11329
+ styleEl.parentNode.removeChild(styleEl);
10762
11330
  }
10763
11331
  }
11332
+ this.portalEl = null;
11333
+ }
11334
+ /**
11335
+ * Opens the popover programmatically
11336
+ */
11337
+ async show() {
11338
+ if (this.active || !this.portalEl)
11339
+ return;
11340
+ this.active = true;
11341
+ // Record open timestamp to prevent immediate close from opening click
11342
+ this.openTimestamp = Date.now();
11343
+ // Update ARIA expanded state on trigger
11344
+ if (this.triggerEl) {
11345
+ this.triggerEl.setAttribute('aria-expanded', 'true');
11346
+ }
11347
+ // Update portal content with latest slot content
11348
+ this.updatePortalContent();
11349
+ // Show portal
11350
+ this.portalEl.style.display = 'block';
11351
+ this.portalEl.style.opacity = '1';
11352
+ this.portalEl.style.visibility = 'visible';
11353
+ // Position the popover
11354
+ requestAnimationFrame(() => {
11355
+ if (!this.isComponentMounted)
11356
+ return;
11357
+ this.handlePopoverPositioning();
11358
+ });
11359
+ // Add scroll and resize listeners for repositioning (always)
11360
+ this.addScrollAndResizeListeners();
11361
+ // Add document listeners for light dismiss and escape key (auto type only)
11362
+ if (this.popoverType === 'auto') {
11363
+ this.addLightDismissListeners();
11364
+ }
11365
+ // Emit open event
11366
+ this.pdsPopoverOpen.emit({
11367
+ componentId: this.componentId,
11368
+ popoverType: this.popoverType,
11369
+ });
10764
11370
  }
10765
11371
  /**
10766
11372
  * Closes the popover programmatically
10767
11373
  */
10768
11374
  async hide() {
10769
- var _a;
10770
- const popoverEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('div[popover]');
10771
- if (popoverEl != null && typeof popoverEl.hidePopover === 'function') {
10772
- try {
10773
- popoverEl.hidePopover();
10774
- }
10775
- catch (e) {
10776
- // Popover might already be closed
10777
- console.warn('Failed to hide popover:', e);
10778
- }
11375
+ if (!this.active || !this.portalEl)
11376
+ return;
11377
+ this.active = false;
11378
+ // Update ARIA expanded state on trigger
11379
+ if (this.triggerEl) {
11380
+ this.triggerEl.setAttribute('aria-expanded', 'false');
10779
11381
  }
11382
+ // Restore content back to original slot positions
11383
+ this.restorePortalContent();
11384
+ // Hide portal
11385
+ this.portalEl.style.display = 'none';
11386
+ this.portalEl.style.opacity = '0';
11387
+ this.portalEl.style.visibility = 'hidden';
11388
+ // Return focus to trigger for keyboard accessibility
11389
+ // This mirrors native Popover API behavior on close
11390
+ this.returnFocusToTrigger();
11391
+ // Remove all listeners
11392
+ this.removeLightDismissListeners();
11393
+ this.removeScrollAndResizeListeners();
11394
+ // Clear any pending timers
11395
+ this.clearDebounceTimers();
11396
+ // Emit close event
11397
+ this.pdsPopoverClose.emit({
11398
+ componentId: this.componentId,
11399
+ popoverType: this.popoverType,
11400
+ });
10780
11401
  }
10781
11402
  /**
10782
11403
  * Toggles the popover open/closed state programmatically
10783
11404
  */
10784
11405
  async toggle() {
10785
- var _a;
10786
- const popoverEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('div[popover]');
10787
- if (popoverEl != null && typeof popoverEl.togglePopover === 'function') {
10788
- try {
10789
- popoverEl.togglePopover();
10790
- }
10791
- catch (e) {
10792
- console.warn('Failed to toggle popover:', e);
10793
- }
11406
+ if (this.active) {
11407
+ this.hide();
11408
+ }
11409
+ else {
11410
+ this.show();
10794
11411
  }
10795
11412
  }
10796
- handleToggle(event) {
10797
- var _a;
10798
- const toggleEvent = event;
10799
- // Prepare event detail
10800
- const eventDetail = {
10801
- componentId: this.componentId,
10802
- popoverType: this.popoverType,
10803
- text: this.text,
10804
- };
10805
- // Update internal state based on native popover state
10806
- if (toggleEvent.newState === 'open') {
10807
- this.active = true;
10808
- const popoverEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('div[popover]');
10809
- // Remove positioned class to hide popover via CSS
10810
- if (popoverEl != null) {
10811
- popoverEl.classList.remove('pds-popover--positioned');
10812
- }
10813
- // Position after the browser has rendered the popover, then show it
10814
- requestAnimationFrame(() => {
10815
- // Prevent memory leak if component unmounts during animation frame
10816
- if (!this.isComponentMounted)
10817
- return;
10818
- this.handlePopoverPositioning();
10819
- if (popoverEl != null) {
10820
- popoverEl.classList.add('pds-popover--positioned');
10821
- }
10822
- });
10823
- this.pdsPopoverOpen.emit(eventDetail);
11413
+ /**
11414
+ * Adds light dismiss listeners (click outside and escape key)
11415
+ */
11416
+ addLightDismissListeners() {
11417
+ // Add listeners immediately - handleClickOutside will check timestamp
11418
+ document.addEventListener('click', this.boundClickOutsideHandler, true);
11419
+ document.addEventListener('keydown', this.boundEscapeKeyHandler);
11420
+ }
11421
+ /**
11422
+ * Removes light dismiss listeners
11423
+ */
11424
+ removeLightDismissListeners() {
11425
+ document.removeEventListener('click', this.boundClickOutsideHandler, true);
11426
+ document.removeEventListener('keydown', this.boundEscapeKeyHandler);
11427
+ }
11428
+ /**
11429
+ * Adds scroll and resize listeners for repositioning
11430
+ */
11431
+ addScrollAndResizeListeners() {
11432
+ window.addEventListener('scroll', this.boundScrollHandler, true);
11433
+ window.addEventListener('resize', this.boundResizeHandler);
11434
+ }
11435
+ /**
11436
+ * Removes scroll and resize listeners
11437
+ */
11438
+ removeScrollAndResizeListeners() {
11439
+ window.removeEventListener('scroll', this.boundScrollHandler, true);
11440
+ window.removeEventListener('resize', this.boundResizeHandler);
11441
+ }
11442
+ /**
11443
+ * Handles clicks outside the popover for light dismiss (auto type only)
11444
+ */
11445
+ handleClickOutside(event) {
11446
+ var _a, _b;
11447
+ // Ignore events that occurred at or before the popover opened
11448
+ // This prevents the opening click from immediately closing the popover
11449
+ // Convert event.timeStamp (DOMHighResTimeStamp from performance.now()) to epoch time
11450
+ // by calculating: currentEpochTime - (currentPerfTime - eventPerfTime)
11451
+ const eventTime = event.timeStamp
11452
+ ? Date.now() - (performance.now() - event.timeStamp)
11453
+ : Date.now();
11454
+ if (eventTime <= this.openTimestamp) {
11455
+ return;
10824
11456
  }
10825
- else if (toggleEvent.newState === 'closed') {
10826
- this.active = false;
10827
- this.pdsPopoverClose.emit(eventDetail);
11457
+ const target = event.target;
11458
+ // Check if click is outside both the popover portal and the trigger
11459
+ const clickedInsidePopover = (_a = this.portalEl) === null || _a === void 0 ? void 0 : _a.contains(target);
11460
+ const clickedInsideTrigger = (_b = this.triggerEl) === null || _b === void 0 ? void 0 : _b.contains(target);
11461
+ if (!clickedInsidePopover && !clickedInsideTrigger) {
11462
+ this.hide();
10828
11463
  }
10829
11464
  }
11465
+ /**
11466
+ * Returns focus to the trigger element with visible focus indicator
11467
+ * This ensures focus rings/outlines are shown as they would be with keyboard navigation
11468
+ */
11469
+ returnFocusToTrigger() {
11470
+ if (!this.triggerEl)
11471
+ return;
11472
+ // Focus immediately while still in keyboard event context
11473
+ // This ensures the browser treats it as keyboard-initiated and shows focus ring
11474
+ this.triggerEl.focus({ preventScroll: true });
11475
+ }
11476
+ /**
11477
+ * Handles escape key press to close the popover
11478
+ * Mirrors native Popover API: Escape closes and returns focus to trigger
11479
+ */
11480
+ handleEscapeKey(event) {
11481
+ if (event.key === 'Escape') {
11482
+ // Prevent default Escape behavior and stop propagation
11483
+ // This mirrors native Popover API which handles Escape exclusively
11484
+ event.preventDefault();
11485
+ event.stopPropagation();
11486
+ // Close popover and return focus to trigger
11487
+ this.hide();
11488
+ }
11489
+ }
11490
+ /**
11491
+ * Handles scroll events to reposition the popover (debounced for performance)
11492
+ */
10830
11493
  handleScroll() {
10831
- var _a;
10832
- // Only reposition if the popover is actually open
10833
- const popoverEl = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('div[popover]');
10834
- if (popoverEl != null && this.active === true) {
11494
+ if (!this.active)
11495
+ return;
11496
+ if (this.scrollDebounceTimer !== null) {
11497
+ clearTimeout(this.scrollDebounceTimer);
11498
+ }
11499
+ this.scrollDebounceTimer = setTimeout(() => {
10835
11500
  this.handlePopoverPositioning();
11501
+ this.scrollDebounceTimer = null;
11502
+ }, 10); // 10ms debounce for smooth repositioning
11503
+ }
11504
+ /**
11505
+ * Handles resize events to reposition the popover (debounced for performance)
11506
+ */
11507
+ handleResize() {
11508
+ if (!this.active)
11509
+ return;
11510
+ if (this.resizeDebounceTimer !== null) {
11511
+ clearTimeout(this.resizeDebounceTimer);
10836
11512
  }
11513
+ this.resizeDebounceTimer = setTimeout(() => {
11514
+ this.handlePopoverPositioning();
11515
+ this.resizeDebounceTimer = null;
11516
+ }, 100); // 100ms debounce for resize
10837
11517
  }
11518
+ /**
11519
+ * Positions the popover relative to its trigger element
11520
+ */
10838
11521
  handlePopoverPositioning() {
10839
- const triggerEl = this.el.shadowRoot.querySelector('.pds-popover__trigger');
10840
- const popoverEl = this.el.shadowRoot.querySelector('div[popover]');
10841
- if (triggerEl == null || popoverEl == null)
11522
+ // Prevent repositioning loops
11523
+ if (this.isRepositioning) {
11524
+ return;
11525
+ }
11526
+ this.isRepositioning = true;
11527
+ if (this.triggerEl == null || this.portalEl == null) {
11528
+ this.isRepositioning = false;
10842
11529
  return;
10843
- // Cast to HTMLElement after null check for proper typing
10844
- const triggerElement = triggerEl;
10845
- const popoverElement = popoverEl;
10846
- const triggerRect = triggerElement.getBoundingClientRect();
10847
- const popoverRect = popoverElement.getBoundingClientRect();
11530
+ }
11531
+ const triggerRect = this.triggerEl.getBoundingClientRect();
11532
+ const popoverRect = this.portalEl.getBoundingClientRect();
11533
+ // Safety check: ensure trigger has valid dimensions (is rendered and visible)
11534
+ if (triggerRect.width === 0 || triggerRect.height === 0) {
11535
+ this.isRepositioning = false;
11536
+ return;
11537
+ }
10848
11538
  let top = 0;
10849
11539
  let left = 0;
10850
11540
  const offset = 8;
@@ -10898,22 +11588,25 @@ class PdsPopover {
10898
11588
  left = triggerRect.left - popoverRect.width - offset;
10899
11589
  break;
10900
11590
  }
10901
- popoverElement.style.top = `${top}px`;
10902
- popoverElement.style.left = `${left}px`;
11591
+ this.portalEl.style.top = `${top}px`;
11592
+ this.portalEl.style.left = `${left}px`;
11593
+ // Reset the repositioning guard after a short delay
11594
+ setTimeout(() => {
11595
+ this.isRepositioning = false;
11596
+ }, 16); // ~1 frame at 60fps
10903
11597
  }
10904
11598
  render() {
10905
- return (hAsync(Host, { key: 'c3da1b2ab23b4678aeb2f7fdfe59383c1c5e6766' }, hAsync("button", { key: 'd426d0c3145820c161858123cb71cdf92a6da3f6', class: "pds-popover__trigger", popoverTarget: this.componentId, popoverTargetAction: this.popoverTargetAction }, this.text), hAsync("div", { key: 'aad97aedfc716085d1e7609649cc7aaeb7de7358', class: `pds-popover ${this.active ? 'pds-popover--active' : ''}`, id: this.componentId, popover: this.popoverType, style: { maxWidth: `${this.maxWidth}px` } }, hAsync("slot", { key: '1b5dde4a0643ee6dbdf4116cc74fff8b188e498b' }))));
11599
+ return (hAsync(Host, { key: 'f77eaf0e122faeb6cd3e6bd55313498afb0039b4', id: this.componentId }, hAsync("span", { key: '6a44717df3ed98a600756a01528cb1139478d0d3', class: "pds-popover__trigger-wrapper" }, hAsync("slot", { key: '7c535ad2329988da7166f4fa669266fe31ff3dfa', name: "trigger", onSlotchange: this.handleTriggerSlotChange })), hAsync("div", { key: 'bd387d0e42d90f7339645c47f53b73bc0e345b7d', class: "pds-popover__content-slot-wrapper" }, hAsync("slot", { key: '98bd73611af2ecf0facdc77949a68db2106a4f12', onSlotchange: this.handleContentSlotChange }))));
10906
11600
  }
10907
11601
  get el() { return getElement(this); }
10908
11602
  static get style() { return pdsPopoverCss; }
10909
11603
  static get cmpMeta() { return {
10910
- "$flags$": 9,
11604
+ "$flags$": 265,
10911
11605
  "$tagName$": "pds-popover",
10912
11606
  "$members$": {
10913
11607
  "popoverTargetAction": [1, "popover-target-action"],
10914
11608
  "popoverType": [1, "popover-type"],
10915
11609
  "componentId": [1, "component-id"],
10916
- "text": [1],
10917
11610
  "maxWidth": [2, "max-width"],
10918
11611
  "placement": [513],
10919
11612
  "active": [32],
@@ -10921,11 +11614,15 @@ class PdsPopover {
10921
11614
  "hide": [64],
10922
11615
  "toggle": [64]
10923
11616
  },
10924
- "$listeners$": [[11, "scroll", "handleScroll"]],
11617
+ "$listeners$": undefined,
10925
11618
  "$lazyBundleId$": "-",
10926
11619
  "$attrsToReflect$": [["placement", "placement"]]
10927
11620
  }; }
10928
11621
  }
11622
+ /**
11623
+ * Instance counter for unique IDs
11624
+ */
11625
+ PdsPopover.instanceCounter = 0;
10929
11626
 
10930
11627
  const pdsProgressCss = ":host{--color-progress-fill:var(--pine-color-brand);--sizing-progress-bar-width:100%;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:var(--sizing-progress-bar-width)}@-webkit-keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}@keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}.pds-progress{-ms-flex-align:center;align-items:center;background-color:var(--pine-color-background-container-disabled);border-radius:var(--pine-dimension-2xs);display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:var(--pine-dimension-xs);position:relative;width:100%}:host(.is-animated) progress,:host(.is-animated) progress::-webkit-progress-bar{-webkit-animation:progressBar 3s ease;animation:progressBar 3s ease;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}progress,progress::-webkit-progress-bar{background-color:transparent;border:0;height:var(--pine-dimension-xs);width:100%}progress::-webkit-progress-value{background:var(--color-progress-fill, var(--pine-color-brand));border-radius:var(--pine-dimension-2xs)}progress::-moz-progress-bar{background:var(--color-progress-fill, var(--pine-color-brand));border-radius:var(--pine-dimension-2xs)}.pds-progress__label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.pds-progress__percentage{font-weight:var(--pine-font-weight-medium);-webkit-margin-start:calc(var(--pine-dimension-md) / 2);margin-inline-start:calc(var(--pine-dimension-md) / 2)}";
10931
11628
 
@@ -10949,11 +11646,11 @@ class PdsProgress {
10949
11646
  this.showPercent = false;
10950
11647
  }
10951
11648
  render() {
10952
- return (hAsync(Host, { key: '4b85286ee1fcc7ae77f733b915a996bb82aecb5b', class: this.animated ? { 'is-animated': this.animated } : '' }, hAsync("div", { key: 'ea3dfbafae2d416aac9903ec50dfade77c315e05', class: "pds-progress" }, hAsync("label", { key: '3ece69ae8b90e968d7f86b986faee633d7802a0b', class: "pds-progress__label", htmlFor: this.componentId }, this.label), hAsync("progress", { key: '68beb43763d001495159e253562b0934521072d9', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && hAsync("div", { key: '8480b66191aec536b0c2c588e71e5c568f5d0eeb', class: "pds-progress__percentage" }, this.percent, "%")));
11649
+ return (hAsync(Host, { key: '1d0872d18cc7c89d0f4c2b1690ac7a09801129ae', class: this.animated ? { 'is-animated': this.animated } : '' }, hAsync("div", { key: '556576ec3925f99d1104e9fe7709d5f3a756a8d6', class: "pds-progress" }, hAsync("label", { key: 'eca8e33f036dc1a17175fc2db7dde7be947aadab', class: "pds-progress__label", htmlFor: this.componentId }, this.label), hAsync("progress", { key: 'b0c21fbb91236684e5351f5622db54ef54716dc8', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && hAsync("div", { key: '5eec8cc0979d86e2740f21a95c64a7f945f4c84a', class: "pds-progress__percentage" }, this.percent, "%")));
10953
11650
  }
10954
11651
  static get style() { return pdsProgressCss; }
10955
11652
  static get cmpMeta() { return {
10956
- "$flags$": 9,
11653
+ "$flags$": 265,
10957
11654
  "$tagName$": "pds-progress",
10958
11655
  "$members$": {
10959
11656
  "animated": [4],
@@ -10983,11 +11680,11 @@ class PdsProperty {
10983
11680
  this.icon = 'star';
10984
11681
  }
10985
11682
  render() {
10986
- return (hAsync(Host, { key: '4ff2ed5a1b7e551b6c4d86fb43fa64bc83b4e785', id: this.componentId }, hAsync("pds-box", { key: '0420487b64550d42621b9548e67c3a79e14b4c91', "align-items": "center", gap: "xs" }, hAsync("pds-icon", { key: 'dc8e675839b1f7a6fbce5c7fc10ece743f4a1905', icon: this.icon, size: "var(--pine-dimension-sm)", "aria-hidden": "true" }), hAsync("slot", { key: '9b01e2e02d26f8e7629612c617405b9ce7e5397b' }))));
11683
+ return (hAsync(Host, { key: '9f1076beddaabaf20026bde9381f5fc484289a84', id: this.componentId }, hAsync("pds-box", { key: '7be27ac25227ad3a1222b37a11b1932a9d0cce81', "align-items": "center", gap: "xs" }, hAsync("pds-icon", { key: '898a412a10fc25ed7ad0b4ec4241bdc489d99784', icon: this.icon, size: "var(--pine-dimension-sm)", "aria-hidden": "true" }), hAsync("slot", { key: 'f51046da5cdb725605cac3302996f4828b9f9958' }))));
10987
11684
  }
10988
11685
  static get style() { return pdsPropertyCss; }
10989
11686
  static get cmpMeta() { return {
10990
- "$flags$": 9,
11687
+ "$flags$": 265,
10991
11688
  "$tagName$": "pds-property",
10992
11689
  "$members$": {
10993
11690
  "componentId": [1, "component-id"],
@@ -11079,16 +11776,16 @@ class PdsRadio {
11079
11776
  }
11080
11777
  render() {
11081
11778
  const renderLabelAndMessages = () => [
11082
- hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '714cf76fc30ab26b58523c6d802650a12de9c01a', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange, class: this.hasImage() ? 'visually-hidden' : '' }), hAsync("span", { key: 'fc5deb9d38f9d2cc19a793dc32c46d88c9831482', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)),
11779
+ hAsync("label", { htmlFor: this.componentId, key: `${this.componentId}-label` }, hAsync("input", { key: '5ec06b8b4e017027a3fe20cef0241a612abec196', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange, class: this.hasImage() ? 'visually-hidden' : '' }), hAsync("span", { key: 'f7bc6d0bd0759a833a668499039ba97a10bf18ec', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)),
11083
11780
  this.helperMessage && (hAsync("div", { key: `${this.componentId}-helper`, class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage)),
11084
- this.errorMessage && (hAsync("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '771d1a284a0f24f204691c04addc7120d60c7a8c', icon: danger, size: "small" }), this.errorMessage))
11781
+ this.errorMessage && (hAsync("div", { key: `${this.componentId}-error`, class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: '629e33e9c80a6dc3af11e471d4342b4f992e0084', icon: danger, size: "small" }), this.errorMessage))
11085
11782
  ];
11086
- return (hAsync(Host, { key: 'edf86e2d9070289457c0256e1dbf7a5febdbc386', class: this.classNames() }, this.hasImage() && (hAsync("div", { key: 'fddaf8db228e2e4a2b00ded0fe9afba80c876503', class: "pds-radio__image-container", part: "image-container" }, hAsync("slot", { key: '2a5dbf40e955d039f6618fe9fa7e345ad5b6548d', name: "image", onSlotchange: () => (this._hasImage = this.hasImageSlot()) }))), this.hasImage() ? (hAsync("div", { class: "pds-radio__content-wrapper" }, renderLabelAndMessages())) : (renderLabelAndMessages())));
11783
+ return (hAsync(Host, { key: '706822a4f2b85462533dedc7c204679272537c2d', class: this.classNames() }, this.hasImage() && (hAsync("div", { key: 'cc19b9c47bc9b3c38aa322754ff9bf51f6e75d76', class: "pds-radio__image-container", part: "image-container" }, hAsync("slot", { key: 'cf4fe8dbdc464cb0ad39cafb21e67e9e184a2e4f', name: "image", onSlotchange: () => (this._hasImage = this.hasImageSlot()) }))), this.hasImage() ? (hAsync("div", { class: "pds-radio__content-wrapper" }, renderLabelAndMessages())) : (renderLabelAndMessages())));
11087
11784
  }
11088
11785
  get el() { return getElement(this); }
11089
11786
  static get style() { return labelCss$3 + pdsRadioCss; }
11090
11787
  static get cmpMeta() { return {
11091
- "$flags$": 6,
11788
+ "$flags$": 262,
11092
11789
  "$tagName$": "pds-radio",
11093
11790
  "$members$": {
11094
11791
  "checked": [4],
@@ -11170,11 +11867,11 @@ class PdsRow {
11170
11867
  })), (this.minHeight && {
11171
11868
  'min-height': this.minHeight,
11172
11869
  }));
11173
- return hAsync(Host, { key: '8e3f5095c33ca22b26dc2cd328ec84663e3bc46b', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
11870
+ return hAsync(Host, { key: 'a4df5b098252089e69c7da5f329df4223cc57d81', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
11174
11871
  }
11175
11872
  static get style() { return pdsRowCss; }
11176
11873
  static get cmpMeta() { return {
11177
- "$flags$": 0,
11874
+ "$flags$": 256,
11178
11875
  "$tagName$": "pds-row",
11179
11876
  "$members$": {
11180
11877
  "alignItems": [1, "align-items"],
@@ -11411,7 +12108,7 @@ class PdsSelect {
11411
12108
  }
11412
12109
  render() {
11413
12110
  const hasAction = this.el.querySelector('[slot="action"]') !== null;
11414
- return (hAsync(Host, { key: 'b3be9584f5fddb4f1a55517f54c1713f99881217', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames(), "has-action": hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '89ea75fbce2c1a0e5b4b744f10bacfd84db73773', class: "pds-select" }, !this.hideLabel && (hAsync("div", { key: 'bf1c8c06c96d941d7d93b960de9279df4520f10f', class: "pds-select__label-wrapper" }, hAsync("label", { key: 'eb7beaa77f9f2be302e7b14642c6c5153db4cebe', htmlFor: this.componentId }, hAsync("span", { key: '47a737210afc1c86431c123aa2449827f0b9755d', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), hAsync("select", { key: 'f510d59fe20742e210c4fb949d468184bb2f12cc', "aria-label": this.hideLabel ? this.label : undefined, autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onChange: this.onSelectUpdate, part: "select", required: this.required, ref: (el) => (this.selectEl = el) }), hAsync("div", { key: '7653404278cc8446de96e3e1fdbfcf47ea6b8edc', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, hAsync("slot", { key: '04626b23972a2d3fe73b09ea8fbe94021e89d98d', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && hAsync("pds-icon", { key: '0d97224a202e0a6e7ad36e2b8a027975ff22079d', class: "pds-select__select-icon", icon: enlarge }))));
12111
+ return (hAsync(Host, { key: '0d94c80a048b1ce3a0c2c6147bf84aab09781e08', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames(), "has-action": hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '15533d7713175f9fddd1fd972f7faa0852753763', class: "pds-select" }, !this.hideLabel && (hAsync("div", { key: '5327297f4963ec4d1e182ee63f973e7309164389', class: "pds-select__label-wrapper" }, hAsync("label", { key: 'b9d697e170c343be49f3654432eb3e9a269dc28c', htmlFor: this.componentId }, hAsync("span", { key: 'f2b2a61293818d2a163836f25e32bf8f66936752', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), hasAction && this.renderAction())), hAsync("select", { key: '4b1eed0ba9cb197fa2fdb9ac0a342bd3df21313b', "aria-label": this.hideLabel ? this.label : undefined, autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onChange: this.onSelectUpdate, part: "select", required: this.required, ref: (el) => (this.selectEl = el) }), hAsync("div", { key: '2ceb92d89a00308245571f2aeae0c901cd850874', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, hAsync("slot", { key: '032ef7c0c4b7442fd8f524995cfb95475687b98c', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && hAsync("pds-icon", { key: 'ee2773042ca2d05a98ff9c46c2934926de69d8e6', class: "pds-select__select-icon", icon: enlarge }))));
11415
12112
  }
11416
12113
  static get formAssociated() { return true; }
11417
12114
  get el() { return getElement(this); }
@@ -11421,7 +12118,7 @@ class PdsSelect {
11421
12118
  }; }
11422
12119
  static get style() { return pdsSelectTokensCss + (labelCss$2 + pdsSelectCss); }
11423
12120
  static get cmpMeta() { return {
11424
- "$flags$": 73,
12121
+ "$flags$": 329,
11425
12122
  "$tagName$": "pds-select",
11426
12123
  "$members$": {
11427
12124
  "autocomplete": [1],
@@ -14155,12 +14852,12 @@ class PdsSortable {
14155
14852
  Sortable.create(this.el, sortableOptions);
14156
14853
  }
14157
14854
  render() {
14158
- return (hAsync(Host, { key: '8d6acb29c18b53a699281b86f73c566b9ebfd291', class: this.classNames(), id: this.componentId }, hAsync("slot", { key: '32fee1636973846016311c70e885a0e5c7645431' })));
14855
+ return (hAsync(Host, { key: '0af78db3e32adf714d10fb08ff4318f7c84aaef9', class: this.classNames(), id: this.componentId }, hAsync("slot", { key: '1e7ac27c41de163ea4d59c6186a1282eb5f0b27d' })));
14159
14856
  }
14160
14857
  get el() { return getElement(this); }
14161
14858
  static get style() { return pdsSortableCss; }
14162
14859
  static get cmpMeta() { return {
14163
- "$flags$": 6,
14860
+ "$flags$": 262,
14164
14861
  "$tagName$": "pds-sortable",
14165
14862
  "$members$": {
14166
14863
  "border": [516],
@@ -14202,12 +14899,12 @@ class PdsSortableItem {
14202
14899
  }
14203
14900
  }
14204
14901
  render() {
14205
- return (hAsync(Host, { key: 'c09d0efc16e9cfb2e3eb567620d768e55aedaf77', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (hAsync("div", { key: '256c70c9ae566781ee3647196ba7bfa8b2e8f7cf', class: "pds-sortable-item__handle" }, hAsync("pds-icon", { key: 'ec56d4eac7f1f464df061297a613554565130d3d', icon: handle }))), hAsync("slot", { key: '6131eda3a2b8a7ef96883f9f791a2cf777407fa4' }), this.enableActions && (hAsync("div", { key: '126589fa42498a25f5049786def7fb96f16087aa', class: "pds-sortable-item__actions" }, hAsync("slot", { key: 'e2726fb1ae3f74c5ff4b7879ee32b826fb2b8518', name: "sortable-item-actions" })))));
14902
+ return (hAsync(Host, { key: '5c5ada49c505d935bfe505997ab69e7eafc2f642', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (hAsync("div", { key: '3041977b792e192192fa9c101f113eb42e87ceea', class: "pds-sortable-item__handle" }, hAsync("pds-icon", { key: '082a98c200abcc8023dc126ed83091167c59290e', icon: handle }))), hAsync("slot", { key: '1e2b2154acee0c3ce09ec77b9949c761ff37181d' }), this.enableActions && (hAsync("div", { key: '5b318f04eb9c74f660900163e17ba51e2c354538', class: "pds-sortable-item__actions" }, hAsync("slot", { key: '2c6631a860af0da48b3a007daeff69b59cfaff59', name: "sortable-item-actions" })))));
14206
14903
  }
14207
14904
  get el() { return getElement(this); }
14208
14905
  static get style() { return pdsSortableItemCss; }
14209
14906
  static get cmpMeta() { return {
14210
- "$flags$": 6,
14907
+ "$flags$": 262,
14211
14908
  "$tagName$": "pds-sortable-item",
14212
14909
  "$members$": {
14213
14910
  "enableActions": [4, "enable-actions"],
@@ -14307,9 +15004,9 @@ class PdsSwitch {
14307
15004
  this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
14308
15005
  }
14309
15006
  render() {
14310
- return (hAsync(Host, { key: 'ab8da77b752d017bafd9ce22daf8973967d4b063', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, hAsync("label", { key: '95245686f147a5b1a50540319ab4a6e87dd04451', htmlFor: this.componentId }, hAsync("input", Object.assign({ key: 'f32fbaf3997fee37c645b7578d117f4f9ed8c23a', "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.disabled, id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate, required: this.required, type: "checkbox", value: this.value }, this.inheritedAttributes)), hAsync("span", { key: 'ff8441d3d043a4fd7f7f4d5fac659ca9ba7554a7', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
14311
- hAsync("div", { key: '2a4ee4dbe651f76e782f9c20314b0d46aa6faf04', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
14312
- hAsync("div", { key: '58a3dfb0ca96cc90da7fc606152f63f23d41391d', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: 'e8db31c01ba78b986e3f746f11dddb8c28dbd6be', icon: danger, size: "small" }), this.errorMessage)));
15007
+ return (hAsync(Host, { key: 'bc66c138352b3de0330f5b725e043b4055bec2d6', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, hAsync("label", { key: 'c4e400efb2dd2701217bb1044f036d1a281d0001', htmlFor: this.componentId }, hAsync("input", Object.assign({ key: '7b80961fb73cd330088f2c93d46475c1d1853da7', "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.disabled, id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate, required: this.required, type: "checkbox", value: this.value }, this.inheritedAttributes)), hAsync("span", { key: '318e23af1f6126302b8bb0bb8b9f12a0dc7f71b5', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
15008
+ hAsync("div", { key: 'd16fc523de5eacdd14dc4edce347e3be63edeb3e', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
15009
+ hAsync("div", { key: '3c4ecef3cdb08568b0f52ed4af58a60c5f6ace62', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, hAsync("pds-icon", { key: 'ef58ca016b5e0cf63cb43591ec7b50e84b19595d', icon: danger, size: "small" }), this.errorMessage)));
14313
15010
  }
14314
15011
  static get formAssociated() { return true; }
14315
15012
  get el() { return getElement(this); }
@@ -14318,7 +15015,7 @@ class PdsSwitch {
14318
15015
  }; }
14319
15016
  static get style() { return labelCss$1 + pdsSwitchCss; }
14320
15017
  static get cmpMeta() { return {
14321
- "$flags$": 73,
15018
+ "$flags$": 329,
14322
15019
  "$tagName$": "pds-switch",
14323
15020
  "$members$": {
14324
15021
  "componentId": [1, "component-id"],
@@ -14355,14 +15052,14 @@ class PdsTab {
14355
15052
  this.pdsTabClick.emit([index, parentComponentId]);
14356
15053
  }
14357
15054
  render() {
14358
- const availabilityTabEdgeInlineStart = (hAsync("span", { key: '6a1adf68c8774382c193832185552d89bd0c0c6c', class: "pds-tab-edge", role: "presentation" }));
14359
- const availabilityTabEdgeInlineEnd = (hAsync("span", { key: 'df0dfc8e49b647e1050b938eb78438bcfff752b9', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
14360
- return (hAsync(Host, { key: 'e1c195404903faf1c8d0d69a532a9dbc74972ff3', variant: this.variant, slot: "tabs", index: this.index }, hAsync("button", { key: '48b87755de0d0f30c8a9e0e33262b0db61e5fe89', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.selected ? "0" : "-1", "aria-selected": this.selected ? "true" : "false", class: this.selected ? "pds-tab is-active" : "pds-tab", onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, hAsync("div", { key: 'e14fe7ca40faca035ec6bc4f6ead950af31b320c', class: "pds-tab__content" }, hAsync("slot", { key: 'f9377c907178ef8c02c840c35c3fcbad9afee997' })))));
15055
+ const availabilityTabEdgeInlineStart = (hAsync("span", { key: '837cf57372db654f6ca411054446ebf0bc27b539', class: "pds-tab-edge", role: "presentation" }));
15056
+ const availabilityTabEdgeInlineEnd = (hAsync("span", { key: 'e15055442d56b50e6ac21bfb76fc0f599406a4fb', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
15057
+ return (hAsync(Host, { key: '1c02a1c8e5e562449ab954061a10acc3d54c3efc', variant: this.variant, slot: "tabs", index: this.index }, hAsync("button", { key: '31b0e173dd738fa272dcaf4fc48a0581978f43b2', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.selected ? "0" : "-1", "aria-selected": this.selected ? "true" : "false", class: this.selected ? "pds-tab is-active" : "pds-tab", onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, hAsync("div", { key: '95b4f8d4c226e3b3a174d439816ec4d28cef0686', class: "pds-tab__content" }, hAsync("slot", { key: '452a208775d54a290c0fcc6a69f6e546fde29afe' })))));
14361
15058
  }
14362
15059
  get el() { return getElement(this); }
14363
15060
  static get style() { return pdsTabCss; }
14364
15061
  static get cmpMeta() { return {
14365
- "$flags$": 4,
15062
+ "$flags$": 260,
14366
15063
  "$tagName$": "pds-tab",
14367
15064
  "$members$": {
14368
15065
  "name": [1],
@@ -14573,7 +15270,7 @@ class PdsTable {
14573
15270
  get el() { return getElement(this); }
14574
15271
  static get style() { return pdsTableCss; }
14575
15272
  static get cmpMeta() { return {
14576
- "$flags$": 9,
15273
+ "$flags$": 265,
14577
15274
  "$tagName$": "pds-table",
14578
15275
  "$members$": {
14579
15276
  "compact": [4],
@@ -14597,11 +15294,11 @@ class PdsTableBody {
14597
15294
  registerInstance(this, hostRef);
14598
15295
  }
14599
15296
  render() {
14600
- return (hAsync(Host, { key: '0f587d936a93187caa879ae07b9f54072e4b9aa2', role: "rowgroup", part: "body" }, hAsync("slot", { key: '026fd33ac51c548fccd5465dfd675566e95fae33' })));
15297
+ return (hAsync(Host, { key: '7c9b15bea47bcede62a93ef11ee9dba093450ab9', role: "rowgroup", part: "body" }, hAsync("slot", { key: 'fab0b2ca27185373cdb7b29d9cb1807b4097aea9' })));
14601
15298
  }
14602
15299
  static get style() { return pdsTableBodyCss; }
14603
15300
  static get cmpMeta() { return {
14604
- "$flags$": 9,
15301
+ "$flags$": 265,
14605
15302
  "$tagName$": "pds-table-body",
14606
15303
  "$members$": undefined,
14607
15304
  "$listeners$": undefined,
@@ -14708,16 +15405,16 @@ class PdsTableCell {
14708
15405
  return classNames.join(' ');
14709
15406
  }
14710
15407
  render() {
14711
- return (hAsync(Host, { key: '5c3d35742f438d2bbb3bc9194e6bc0abf769e66f', class: this.classNames(), role: "gridcell", part: "cell", style: this.tableRef &&
15408
+ return (hAsync(Host, { key: 'b1c76cfb3fa26b7e59586cfd693380701c9146ff', class: this.classNames(), role: "gridcell", part: "cell", style: this.tableRef &&
14712
15409
  this.tableRef.fixedColumn &&
14713
15410
  this.tableRef.selectable
14714
15411
  ? { '--fixed-cell-position': '40px' }
14715
- : {} }, hAsync("slot", { key: 'dcc7fe8ffa481915dbe61bad294855a05d9e8aeb' })));
15412
+ : {} }, hAsync("slot", { key: '1a04730905bf7ad930141c1914f37dd7717570d8' })));
14716
15413
  }
14717
15414
  get hostElement() { return getElement(this); }
14718
15415
  static get style() { return pdsTableCellCss; }
14719
15416
  static get cmpMeta() { return {
14720
- "$flags$": 9,
15417
+ "$flags$": 265,
14721
15418
  "$tagName$": "pds-table-cell",
14722
15419
  "$members$": {
14723
15420
  "cellAlign": [1, "cell-align"],
@@ -14774,12 +15471,12 @@ class PdsTableHead {
14774
15471
  }
14775
15472
  }
14776
15473
  render() {
14777
- return (hAsync(Host, { key: '773bc9ea7631958d8ef6adcbdc862f47e4052687', role: "row", part: "head" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-head-cell", { key: 'b065650fb881746ce17cd702c51aecb1abe07898', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, hAsync("pds-checkbox", { key: 'eab146eb7bca6f4cf04cbd3adc5a90c76ede9ca1', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", hideLabel: true, checked: this.isSelected, part: "select-all-checkbox" }))), hAsync("slot", { key: '5b18fb5c6e7f09cbff336e8922b39eacc34fa692' })));
15474
+ return (hAsync(Host, { key: '933e69ad28aaf0b899a8ee504088bc5b6396889d', role: "row", part: "head" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-head-cell", { key: 'a006c965a4e9bacb4b8e07b34799bab6a0bd482a', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, hAsync("pds-checkbox", { key: 'd7f94ac83be970b2c2ed334296971bc6762602e2', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", hideLabel: true, checked: this.isSelected, part: "select-all-checkbox" }))), hAsync("slot", { key: '22edaaa12d31b2be1fd2835d6d4c2801386405af' })));
14778
15475
  }
14779
15476
  get hostElement() { return getElement(this); }
14780
15477
  static get style() { return pdsTableHeadCss; }
14781
15478
  static get cmpMeta() { return {
14782
- "$flags$": 9,
15479
+ "$flags$": 265,
14783
15480
  "$tagName$": "pds-table-head",
14784
15481
  "$members$": {
14785
15482
  "indeterminate": [1028],
@@ -14913,16 +15610,16 @@ class PdsTableHeadCell {
14913
15610
  return classNames.join(' ');
14914
15611
  }
14915
15612
  render() {
14916
- return (hAsync(Host, { key: '6ee9e95f9ccdaa15037875425e5512b5b5e2c540', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
15613
+ return (hAsync(Host, { key: '3d950a2997ef4c095d08f9c4e67b9a963fea093d', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, part: "head-cell", style: this.tableRef &&
14917
15614
  this.tableRef.fixedColumn &&
14918
15615
  this.tableRef.selectable
14919
15616
  ? { '--fixed-cell-position': '40px' }
14920
- : {} }, hAsync("slot", { key: '9f6716080ff52e32ea65080f29102fd8111436bf' }), this.sortable && (hAsync("pds-icon", { key: '538ea6761216c10f716e4d53b53bbcd69b73fd45', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
15617
+ : {} }, hAsync("slot", { key: '8ca7d4d169612e5ba237691d9a5ec9ed35610230' }), this.sortable && (hAsync("pds-icon", { key: 'e2e214b39a1706d887bb34a0d4fc3f632e752306', icon: this.sortingDirection === 'asc' ? upSmall : downSmall, part: "sort-icon" }))));
14921
15618
  }
14922
15619
  get hostElement() { return getElement(this); }
14923
15620
  static get style() { return pdsTableHeadCellCss; }
14924
15621
  static get cmpMeta() { return {
14925
- "$flags$": 9,
15622
+ "$flags$": 265,
14926
15623
  "$tagName$": "pds-table-head-cell",
14927
15624
  "$members$": {
14928
15625
  "cellAlign": [1, "cell-align"],
@@ -14984,12 +15681,12 @@ class PdsTableRow {
14984
15681
  }
14985
15682
  }
14986
15683
  render() {
14987
- return (hAsync(Host, { key: '5853e143e9866a596924b204c25d20a3983fc064', class: this.classNames(), role: "row", part: "row" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-cell", { key: '687d0a86e434d2422e794b14d0a9514b213c2afc', part: this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell', class: this.tableRef.selectable ? 'has-checkbox' : '' }, hAsync("pds-checkbox", { key: '109474126dbf72c218a180985169ef608d7d0c40', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected, part: "row-checkbox" }))), hAsync("slot", { key: 'e685aa96c44d590ddf0d1d1842f8e672c11cadcb' })));
15684
+ return (hAsync(Host, { key: 'cffeb199c48f2a06af70a2e5a5b41a21649c24c7', class: this.classNames(), role: "row", part: "row" }, this.tableRef && this.tableRef.selectable && (hAsync("pds-table-cell", { key: '02a80cd54efe360550e636f7bc0f11e3de59af1c', part: this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell', class: this.tableRef.selectable ? 'has-checkbox' : '' }, hAsync("pds-checkbox", { key: 'a8cd6c303ec35f71e0a97f130c5d53a2e81a3e4a', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected, part: "row-checkbox" }))), hAsync("slot", { key: '820a502627ffc329f650f7f0110e34ae3f096357' })));
14988
15685
  }
14989
15686
  get hostElement() { return getElement(this); }
14990
15687
  static get style() { return pdsTableRowCss; }
14991
15688
  static get cmpMeta() { return {
14992
- "$flags$": 9,
15689
+ "$flags$": 265,
14993
15690
  "$tagName$": "pds-table-row",
14994
15691
  "$members$": {
14995
15692
  "indeterminate": [1028],
@@ -15013,12 +15710,12 @@ class PdsTabpanel {
15013
15710
  this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
15014
15711
  }
15015
15712
  render() {
15016
- return (hAsync(Host, { key: '024cffb191c49db6049ec281eba1877c6618f4f2', slot: "tabpanels" }, hAsync("div", { key: '3ab5918e75ae4708bbd12394d55f4b86cc614fdc', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, hAsync("slot", { key: '5c7ede2a36c7594b1943ae5f248df22c71b86537' }))));
15713
+ return (hAsync(Host, { key: '84aa81506200fd7f06a94a4c7570b2702b36d9e8', slot: "tabpanels" }, hAsync("div", { key: '0e890243eb41ebda64183cc4fd559abf38f5dfdc', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, hAsync("slot", { key: 'aaabfd72a45f6cd52c9c279bf0c014315a659959' }))));
15017
15714
  }
15018
15715
  get el() { return getElement(this); }
15019
15716
  static get style() { return pdsTabpanelCss; }
15020
15717
  static get cmpMeta() { return {
15021
- "$flags$": 4,
15718
+ "$flags$": 260,
15022
15719
  "$tagName$": "pds-tabpanel",
15023
15720
  "$members$": {
15024
15721
  "name": [1],
@@ -15125,12 +15822,12 @@ class PdsTabs {
15125
15822
  this.passPropsToChildren();
15126
15823
  }
15127
15824
  render() {
15128
- return (hAsync(Host, { key: '729d6b9d3deb5a31cc7b1d9b18334761a856f933', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, hAsync("div", { key: '87e06225508059a3c1b548440cf7da9b68df77fd', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel, part: "tab-list" }, hAsync("slot", { key: '5e8c4c941a7f6aea1ce3378641931c104b6b45cf', name: "tabs" })), hAsync("slot", { key: 'b396ed81d9a1c957803a94dbfe965986c6afc870', name: "tabpanels" })));
15825
+ return (hAsync(Host, { key: '89db4772ef4dab7f4dba38306b0fdf1ae55c8a9b', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, hAsync("div", { key: 'c1596be516168b0f2548b90344ad3bffcc5cb844', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel, part: "tab-list" }, hAsync("slot", { key: 'be58f90ec895da67fc84eded670183151feb261f', name: "tabs" })), hAsync("slot", { key: '24d3bed1750d8b64a8ffc9c86f517b5e8b15f615', name: "tabpanels" })));
15129
15826
  }
15130
15827
  get el() { return getElement(this); }
15131
15828
  static get style() { return pdsTabsCss; }
15132
15829
  static get cmpMeta() { return {
15133
- "$flags$": 9,
15830
+ "$flags$": 265,
15134
15831
  "$tagName$": "pds-tabs",
15135
15832
  "$members$": {
15136
15833
  "tablistLabel": [1, "tablist-label"],
@@ -15168,12 +15865,12 @@ class PdsText {
15168
15865
  ${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}
15169
15866
  ${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}
15170
15867
  `;
15171
- return (hAsync(Tag, { key: '9cc756733434abd9798577fae889c441ea53072e', style: this.color && setColor(this.color), class: typeClasses, part: "content" }, hAsync("slot", { key: 'c6face46ad09ba9cb147f23211a98ee6c465680f' })));
15868
+ return (hAsync(Tag, { key: '101a42ae93ac81968a177c7e0d569417f376909c', style: this.color && setColor(this.color), class: typeClasses, part: "content" }, hAsync("slot", { key: '903b04a19b948e04d577c8585a76647033b9c36e' })));
15172
15869
  }
15173
15870
  get el() { return getElement(this); }
15174
15871
  static get style() { return pdsTextCss; }
15175
15872
  static get cmpMeta() { return {
15176
- "$flags$": 9,
15873
+ "$flags$": 265,
15177
15874
  "$tagName$": "pds-text",
15178
15875
  "$members$": {
15179
15876
  "align": [1],
@@ -15489,10 +16186,10 @@ class PdsTextarea {
15489
16186
  }
15490
16187
  render() {
15491
16188
  const value = this.getValue();
15492
- return (hAsync(Host, { key: 'fab8cd9bb189557a54fe97484ba67f41b2341509', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '223b58e9f5ae0c18be6fe27b07d8c27fc12fde6f', class: "pds-textarea" }, this.label &&
15493
- hAsync("div", { key: '702ed2f128951af99b899ca733766f84c4cb1e90', class: "pds-textarea__label-wrapper" }, hAsync("label", { key: '4304bbc1b3c8f1734a8b07818f396e5c24e04567', htmlFor: this.componentId }, hAsync("span", { key: '1bae266f231f09aeb9803bb7edc57ab7ac42b94c', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), hAsync("div", { key: '9029c5ef6065e26ab1aedd277baa84e47ce035ee', class: "pds-textarea__field-wrapper" }, hAsync("textarea", Object.assign({ key: 'b88f27f608460b51e411825dd096b972be375312', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, maxlength: this.maxLength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onBlur: this.onBlur, onChange: this.onTextareaChange, onFocus: this.onFocus, onInput: this.onInput }, this.inheritedAttributes), value), this.renderCharacterCounter()), this.helperMessage &&
15494
- hAsync("p", { key: 'b1d23f288b196d064b5b5a8835e5f21aef384578', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
15495
- hAsync("p", { key: '238388d91d3e11a20306402e984eb8037ed9ef8b', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: '2a7eaeaba552596d00ccdf3e8ba42d7f4afdbe2b', icon: danger, size: "small" }), this.errorMessage))));
16189
+ return (hAsync(Host, { key: 'd79506616a5e977e4055fa4901e69ffe58f70419', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null, "has-action": this.hasAction && !this.hideLabel ? 'true' : null }, hAsync("div", { key: '4addd26b68305e0e994e5c90dc9c038b9e6228ef', class: "pds-textarea" }, this.label &&
16190
+ hAsync("div", { key: 'f7c87947c18d943b97319d2b8e89ff34ad41e4fb', class: "pds-textarea__label-wrapper" }, hAsync("label", { key: 'bc9834bd0bcc5b24f7bd95c4743bffeb9fc6f44b', htmlFor: this.componentId }, hAsync("span", { key: '6725ebd07c0787a0eaaef846084fb49e10155385', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), !this.hideLabel && this.renderAction()), hAsync("div", { key: '64fdc55c4f135826118125f8cd8fe158f23df4e8', class: "pds-textarea__field-wrapper" }, hAsync("textarea", Object.assign({ key: '7c6bb49a463e464a48ee11e6567de6b09eaa474b', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, maxlength: this.maxLength, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onBlur: this.onBlur, onChange: this.onTextareaChange, onFocus: this.onFocus, onInput: this.onInput }, this.inheritedAttributes), value), this.renderCharacterCounter()), this.helperMessage &&
16191
+ hAsync("p", { key: 'c29ceac2b41863c202787fc835841cd5422cd11b', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
16192
+ hAsync("p", { key: '3bd0c5f4abe35821e246937deea426bbaf2804ed', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, hAsync("pds-icon", { key: 'aa43fd092b146dfc77ea0f8fa54633aa251e4223', icon: danger, size: "small" }), this.errorMessage))));
15496
16193
  }
15497
16194
  static get formAssociated() { return true; }
15498
16195
  get el() { return getElement(this); }
@@ -15503,7 +16200,7 @@ class PdsTextarea {
15503
16200
  }; }
15504
16201
  static get style() { return labelCss + (pdsInputTokensCss + pdsTextareaCss); }
15505
16202
  static get cmpMeta() { return {
15506
- "$flags$": 73,
16203
+ "$flags$": 329,
15507
16204
  "$tagName$": "pds-textarea",
15508
16205
  "$members$": {
15509
16206
  "autocomplete": [1],
@@ -15615,20 +16312,20 @@ class PdsToast {
15615
16312
  return this.icon && hAsync("pds-icon", { name: this.icon, class: "pds-toast__icon" });
15616
16313
  }
15617
16314
  render() {
15618
- return (hAsync(Host, { key: '6951589c3f851a7f45301488882f0b2742936f2a', hidden: !this.isVisible }, hAsync("div", { key: 'd8dea7ba93f56a6d3b7b13bba54174f8b262ed2f', class: {
16315
+ return (hAsync(Host, { key: 'cf03483967a2414e2c6ee68587af609af0bb64c6', hidden: !this.isVisible }, hAsync("div", { key: '70413e3220f6890dd2367bc96a7060269a33124c', class: {
15619
16316
  'pds-toast': true,
15620
16317
  [`pds-toast--${this.type}`]: this.type !== 'default',
15621
16318
  'pds-toast--animating-out': this.isAnimatingOut
15622
- }, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '003fd79841065a615ba3d7ef8ee934bc23284da3', class: "pds-toast__message" }, hAsync("slot", { key: 'b78d5f17d8b2d8133c9fed325122299be12c55af' })), this.dismissible && (hAsync("button", { key: '9e681cb13f0d63f4295efa41e1f5ac7dd4b59f31', type: "button", class: "pds-toast__button", onClick: () => {
16319
+ }, role: "alert", "aria-live": "polite" }, this.renderIcon(), hAsync("span", { key: '52a991d93d9530e4689586f51b2b78978ff9f4d5', class: "pds-toast__message" }, hAsync("slot", { key: 'fb00a8204606a4621315656e91b3928ed8ad4827' })), this.dismissible && (hAsync("button", { key: 'de78866e9b4f746d823bf68b7d8736ab4bafb9d7', type: "button", class: "pds-toast__button", onClick: () => {
15623
16320
  this.dismiss();
15624
- }, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: 'f8784f5776604cb2a0f4b201ed6bb9d4ac12297f', name: "remove" }))))));
16321
+ }, "aria-label": "Dismiss message" }, hAsync("pds-icon", { key: '495a71b67c4a6690f4c1b9562ddd8862d88a85e4', name: "remove" }))))));
15625
16322
  }
15626
16323
  static get watchers() { return {
15627
16324
  "duration": ["handleDurationChange"]
15628
16325
  }; }
15629
16326
  static get style() { return pdsToastCss; }
15630
16327
  static get cmpMeta() { return {
15631
- "$flags$": 9,
16328
+ "$flags$": 265,
15632
16329
  "$tagName$": "pds-toast",
15633
16330
  "$members$": {
15634
16331
  "componentId": [1, "component-id"],
@@ -15961,9 +16658,9 @@ class PdsTooltip {
15961
16658
  }
15962
16659
  render() {
15963
16660
  const hostId = this.componentId || undefined;
15964
- return (hAsync(Host, { key: 'af1e569128ba37226fd2fc36059f3c829a8f0c6f', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, hAsync("span", { key: '16a834eb3ac201e8ab7b42000d89ee7f04a15ec9', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
16661
+ return (hAsync(Host, { key: 'ef40605b8ed95b1920caa425a021b900bdaef847', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, hAsync("span", { key: '953a0ddd6070fa99e89307f6ddb9bacfa6932b5c', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
15965
16662
  /* focusin/out bubble; ensure keyboard users see tooltips */
15966
- onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '2c15603e660ef296a9e2d47958b858d7162d0cc5' })), hAsync("div", { key: 'e3bfefad4fe5f2c2d67ca1cc00d65f353ee08332', class: "pds-tooltip__content-slot-wrapper", hidden: true }, hAsync("slot", { key: '0f63d8e02dba9ba43df2c92ec5e5509ab5f8f920', name: "content" }))));
16663
+ onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, hAsync("slot", { key: '9fa52468a1d99d4dd5af8a8c07d11b1591c5204c' })), hAsync("div", { key: 'c4dfe98893fc2abacff788177d1f143afb2aa502', class: "pds-tooltip__content-slot-wrapper", hidden: true }, hAsync("slot", { key: '468d06248f384f727517de3fd4c15af8d6e7b118', name: "content" }))));
15967
16664
  }
15968
16665
  get el() { return getElement(this); }
15969
16666
  static get watchers() { return {
@@ -15971,7 +16668,7 @@ class PdsTooltip {
15971
16668
  }; }
15972
16669
  static get style() { return pdsTooltipCss; }
15973
16670
  static get cmpMeta() { return {
15974
- "$flags$": 4,
16671
+ "$flags$": 260,
15975
16672
  "$tagName$": "pds-tooltip",
15976
16673
  "$members$": {
15977
16674
  "content": [1],
@@ -16091,7 +16788,7 @@ var BUILD = {
16091
16788
  vdomRender: true,
16092
16789
  vdomStyle: true,
16093
16790
  vdomText: true,
16094
- watchCallback: true,
16791
+ propChangeCallback: true,
16095
16792
  taskQueue: true,
16096
16793
  hotModuleReplacement: false,
16097
16794
  isDebug: false,
@@ -16139,7 +16836,7 @@ var NAMESPACE = (
16139
16836
  );
16140
16837
 
16141
16838
  /*
16142
- Stencil Hydrate Runner v4.28.2 | MIT Licensed | https://stenciljs.com
16839
+ Stencil Hydrate Runner v4.38.3 | MIT Licensed | https://stenciljs.com
16143
16840
  */
16144
16841
  var __defProp = Object.defineProperty;
16145
16842
  var __export = (target, all) => {
@@ -16153,6 +16850,7 @@ var ORG_LOCATION_ID = "o";
16153
16850
  var SLOT_NODE_ID = "s";
16154
16851
  var TEXT_NODE_ID = "t";
16155
16852
  var HYDRATE_ID = "s-id";
16853
+ var HYDRATED_STYLE_ID = "sty-id";
16156
16854
  var STENCIL_DOC_DATA = "_stencilDocData";
16157
16855
  var XLINK_NS = "http://www.w3.org/1999/xlink";
16158
16856
 
@@ -16299,82 +16997,6 @@ var MockAttr = class {
16299
16997
  }
16300
16998
  };
16301
16999
 
16302
- // src/mock-doc/class-list.ts
16303
- var MockClassList = class {
16304
- constructor(elm) {
16305
- this.elm = elm;
16306
- }
16307
- add(...classNames) {
16308
- const clsNames = getItems(this.elm);
16309
- let updated = false;
16310
- classNames.forEach((className) => {
16311
- className = String(className);
16312
- validateClass(className);
16313
- if (clsNames.includes(className) === false) {
16314
- clsNames.push(className);
16315
- updated = true;
16316
- }
16317
- });
16318
- if (updated) {
16319
- this.elm.setAttributeNS(null, "class", clsNames.join(" "));
16320
- }
16321
- }
16322
- remove(...classNames) {
16323
- const clsNames = getItems(this.elm);
16324
- let updated = false;
16325
- classNames.forEach((className) => {
16326
- className = String(className);
16327
- validateClass(className);
16328
- const index = clsNames.indexOf(className);
16329
- if (index > -1) {
16330
- clsNames.splice(index, 1);
16331
- updated = true;
16332
- }
16333
- });
16334
- if (updated) {
16335
- this.elm.setAttributeNS(null, "class", clsNames.filter((c) => c.length > 0).join(" "));
16336
- }
16337
- }
16338
- contains(className) {
16339
- className = String(className);
16340
- return getItems(this.elm).includes(className);
16341
- }
16342
- toggle(className) {
16343
- className = String(className);
16344
- if (this.contains(className) === true) {
16345
- this.remove(className);
16346
- } else {
16347
- this.add(className);
16348
- }
16349
- }
16350
- get length() {
16351
- return getItems(this.elm).length;
16352
- }
16353
- item(index) {
16354
- return getItems(this.elm)[index];
16355
- }
16356
- toString() {
16357
- return getItems(this.elm).join(" ");
16358
- }
16359
- };
16360
- function validateClass(className) {
16361
- if (className === "") {
16362
- throw new Error("The token provided must not be empty.");
16363
- }
16364
- if (/\s/.test(className)) {
16365
- throw new Error(
16366
- `The token provided ('${className}') contains HTML space characters, which are not valid in tokens.`
16367
- );
16368
- }
16369
- }
16370
- function getItems(elm) {
16371
- const className = elm.getAttribute("class");
16372
- if (typeof className === "string" && className.length > 0) {
16373
- return className.trim().split(" ").filter((c) => c.length > 0);
16374
- }
16375
- return [];
16376
- }
16377
-
16378
17000
  // src/mock-doc/css-style-declaration.ts
16379
17001
  var MockCSSStyleDeclaration = class {
16380
17002
  constructor() {
@@ -16863,8 +17485,21 @@ function triggerEventListener(elm, ev) {
16863
17485
  } else if (elm.parentElement == null && elm.tagName === "HTML") {
16864
17486
  triggerEventListener(elm.ownerDocument, ev);
16865
17487
  } else {
16866
- triggerEventListener(elm.parentElement, ev);
17488
+ const nextTarget = getNextEventTarget(elm, ev);
17489
+ triggerEventListener(nextTarget, ev);
17490
+ }
17491
+ }
17492
+ function getNextEventTarget(elm, ev) {
17493
+ if (elm.parentElement) {
17494
+ return elm.parentElement;
17495
+ }
17496
+ if (elm.host && ev.composed) {
17497
+ return elm.host;
17498
+ }
17499
+ if (ev.composed && elm.parentNode && elm.parentNode.host) {
17500
+ return elm.parentNode.host;
16867
17501
  }
17502
+ return null;
16868
17503
  }
16869
17504
  function dispatchEvent(currentTarget, ev) {
16870
17505
  ev.target = currentTarget;
@@ -26506,6 +27141,11 @@ function* streamToHtml(node, opts, output) {
26506
27141
  const mode = ` shadowrootmode="open"`;
26507
27142
  yield mode;
26508
27143
  output.currentLineWidth += mode.length;
27144
+ if (node.delegatesFocus) {
27145
+ const delegatesFocusAttr = " shadowrootdelegatesfocus";
27146
+ yield delegatesFocusAttr;
27147
+ output.currentLineWidth += delegatesFocusAttr.length;
27148
+ }
26509
27149
  }
26510
27150
  const attrsLength = node.attributes.length;
26511
27151
  const attributes = opts.prettyHtml && attrsLength > 1 ? cloneAttributes(node.attributes, true) : node.attributes;
@@ -26872,6 +27512,81 @@ var STRUCTURE_ELEMENTS = /* @__PURE__ */ new Set([
26872
27512
  "style"
26873
27513
  ]);
26874
27514
 
27515
+ // src/mock-doc/token-list.ts
27516
+ var MockTokenList = class {
27517
+ constructor(elm, attr) {
27518
+ this.elm = elm;
27519
+ this.attr = attr;
27520
+ }
27521
+ add(...tokens) {
27522
+ const items = getItems(this.elm, this.attr);
27523
+ let updated = false;
27524
+ tokens.forEach((token) => {
27525
+ token = String(token);
27526
+ validateToken(token);
27527
+ if (items.includes(token) === false) {
27528
+ items.push(token);
27529
+ updated = true;
27530
+ }
27531
+ });
27532
+ if (updated) {
27533
+ this.elm.setAttributeNS(null, this.attr, items.join(" "));
27534
+ }
27535
+ }
27536
+ remove(...tokens) {
27537
+ const items = getItems(this.elm, this.attr);
27538
+ let updated = false;
27539
+ tokens.forEach((token) => {
27540
+ token = String(token);
27541
+ validateToken(token);
27542
+ const index = items.indexOf(token);
27543
+ if (index > -1) {
27544
+ items.splice(index, 1);
27545
+ updated = true;
27546
+ }
27547
+ });
27548
+ if (updated) {
27549
+ this.elm.setAttributeNS(null, this.attr, items.filter((c) => c.length > 0).join(" "));
27550
+ }
27551
+ }
27552
+ contains(token) {
27553
+ token = String(token);
27554
+ return getItems(this.elm, this.attr).includes(token);
27555
+ }
27556
+ toggle(token) {
27557
+ token = String(token);
27558
+ if (this.contains(token) === true) {
27559
+ this.remove(token);
27560
+ } else {
27561
+ this.add(token);
27562
+ }
27563
+ }
27564
+ get length() {
27565
+ return getItems(this.elm, this.attr).length;
27566
+ }
27567
+ item(index) {
27568
+ return getItems(this.elm, this.attr)[index];
27569
+ }
27570
+ toString() {
27571
+ return getItems(this.elm, this.attr).join(" ");
27572
+ }
27573
+ };
27574
+ function validateToken(token) {
27575
+ if (token === "") {
27576
+ throw new Error("The token provided must not be empty.");
27577
+ }
27578
+ if (/\s/.test(token)) {
27579
+ throw new Error(`The token provided ('${token}') contains HTML space characters, which are not valid in tokens.`);
27580
+ }
27581
+ }
27582
+ function getItems(elm, attr) {
27583
+ const value = elm.getAttribute(attr);
27584
+ if (typeof value === "string" && value.length > 0) {
27585
+ return value.trim().split(" ").filter((c) => c.length > 0);
27586
+ }
27587
+ return [];
27588
+ }
27589
+
26875
27590
  // src/mock-doc/node.ts
26876
27591
  var MockNode2 = class {
26877
27592
  constructor(ownerDocument, nodeType, nodeName, nodeValue) {
@@ -27024,6 +27739,15 @@ var MockNode2 = class {
27024
27739
  set textContent(value) {
27025
27740
  this._nodeValue = String(value);
27026
27741
  }
27742
+ addEventListener(type, handler) {
27743
+ addEventListener(this, type, handler);
27744
+ }
27745
+ removeEventListener(type, handler) {
27746
+ removeEventListener(this, type, handler);
27747
+ }
27748
+ dispatchEvent(ev) {
27749
+ return dispatchEvent(this, ev);
27750
+ }
27027
27751
  };
27028
27752
  MockNode2.ELEMENT_NODE = 1;
27029
27753
  MockNode2.TEXT_NODE = 3;
@@ -27062,15 +27786,25 @@ var MockElement = class extends MockNode2 {
27062
27786
  addEventListener(this, type, handler);
27063
27787
  }
27064
27788
  attachShadow(_opts) {
27789
+ var _a2;
27065
27790
  const shadowRoot = this.ownerDocument.createDocumentFragment();
27791
+ shadowRoot.delegatesFocus = (_a2 = _opts.delegatesFocus) != null ? _a2 : false;
27066
27792
  this.shadowRoot = shadowRoot;
27067
27793
  return shadowRoot;
27068
27794
  }
27069
27795
  blur() {
27070
- dispatchEvent(
27071
- this,
27072
- new MockFocusEvent("blur", { relatedTarget: null, bubbles: true, cancelable: true, composed: true })
27073
- );
27796
+ if (isCurrentlyDispatching(this, "blur")) {
27797
+ return;
27798
+ }
27799
+ markAsDispatching(this, "blur");
27800
+ try {
27801
+ dispatchEvent(
27802
+ this,
27803
+ new MockFocusEvent("blur", { relatedTarget: null, bubbles: true, cancelable: true, composed: true })
27804
+ );
27805
+ } finally {
27806
+ unmarkAsDispatching(this, "blur");
27807
+ }
27074
27808
  }
27075
27809
  get localName() {
27076
27810
  if (!this.nodeName) {
@@ -27120,7 +27854,10 @@ var MockElement = class extends MockNode2 {
27120
27854
  this.setAttributeNS(null, "class", value);
27121
27855
  }
27122
27856
  get classList() {
27123
- return new MockClassList(this);
27857
+ return new MockTokenList(this, "class");
27858
+ }
27859
+ get part() {
27860
+ return new MockTokenList(this, "part");
27124
27861
  }
27125
27862
  click() {
27126
27863
  dispatchEvent(this, new MockEvent("click", { bubbles: true, cancelable: true, composed: true }));
@@ -27812,6 +28549,28 @@ function setTextContent(elm, text) {
27812
28549
  const textNode = new MockTextNode(elm.ownerDocument, text);
27813
28550
  elm.appendChild(textNode);
27814
28551
  }
28552
+ var currentlyDispatching = /* @__PURE__ */ new WeakMap();
28553
+ function isCurrentlyDispatching(target, eventType) {
28554
+ const dispatchingEvents = currentlyDispatching.get(target);
28555
+ return dispatchingEvents != null && dispatchingEvents.has(eventType);
28556
+ }
28557
+ function markAsDispatching(target, eventType) {
28558
+ let dispatchingEvents = currentlyDispatching.get(target);
28559
+ if (dispatchingEvents == null) {
28560
+ dispatchingEvents = /* @__PURE__ */ new Set();
28561
+ currentlyDispatching.set(target, dispatchingEvents);
28562
+ }
28563
+ dispatchingEvents.add(eventType);
28564
+ }
28565
+ function unmarkAsDispatching(target, eventType) {
28566
+ const dispatchingEvents = currentlyDispatching.get(target);
28567
+ if (dispatchingEvents != null) {
28568
+ dispatchingEvents.delete(eventType);
28569
+ if (dispatchingEvents.size === 0) {
28570
+ currentlyDispatching.delete(target);
28571
+ }
28572
+ }
28573
+ }
27815
28574
 
27816
28575
  // src/mock-doc/comment-node.ts
27817
28576
  var MockComment = class _MockComment extends MockNode2 {
@@ -27839,6 +28598,12 @@ var MockDocumentFragment = class _MockDocumentFragment extends MockHTMLElement {
27839
28598
  getElementById(id) {
27840
28599
  return getElementById(this, id);
27841
28600
  }
28601
+ get adoptedStyleSheets() {
28602
+ return [];
28603
+ }
28604
+ set adoptedStyleSheets(_adoptedStyleSheets) {
28605
+ throw new Error("Unimplemented");
28606
+ }
27842
28607
  cloneNode(deep) {
27843
28608
  const cloned = new _MockDocumentFragment(null);
27844
28609
  if (deep) {
@@ -27887,7 +28652,9 @@ var MockCSSStyleSheet = class {
27887
28652
  deleteRule(index) {
27888
28653
  if (index >= 0 && index < this.cssRules.length) {
27889
28654
  this.cssRules.splice(index, 1);
27890
- updateStyleTextNode(this.ownerNode);
28655
+ if (this.ownerNode) {
28656
+ updateStyleTextNode(this.ownerNode);
28657
+ }
27891
28658
  }
27892
28659
  }
27893
28660
  insertRule(rule, index = 0) {
@@ -27903,9 +28670,23 @@ var MockCSSStyleSheet = class {
27903
28670
  const cssRule = new MockCSSRule(this);
27904
28671
  cssRule.cssText = rule;
27905
28672
  this.cssRules.splice(index, 0, cssRule);
27906
- updateStyleTextNode(this.ownerNode);
28673
+ if (this.ownerNode) {
28674
+ updateStyleTextNode(this.ownerNode);
28675
+ }
27907
28676
  return index;
27908
28677
  }
28678
+ replaceSync(cssText) {
28679
+ this.cssRules = [];
28680
+ const rules = cssText.split("}").map((rule) => rule.trim()).filter(Boolean).map((rule) => rule + "}");
28681
+ for (const rule of rules) {
28682
+ const cssRule = new MockCSSRule(this);
28683
+ cssRule.cssText = rule;
28684
+ this.cssRules.push(cssRule);
28685
+ }
28686
+ if (this.ownerNode) {
28687
+ updateStyleTextNode(this.ownerNode);
28688
+ }
28689
+ }
27909
28690
  };
27910
28691
  function getStyleElementText(styleElm) {
27911
28692
  const output = [];
@@ -28944,9 +29725,11 @@ var WINDOW_PROPS = [
28944
29725
  "NodeList",
28945
29726
  "FocusEvent",
28946
29727
  "KeyboardEvent",
28947
- "MouseEvent"
29728
+ "MouseEvent",
29729
+ "CSSStyleSheet"
28948
29730
  ];
28949
29731
  var GLOBAL_CONSTRUCTORS = [
29732
+ ["CSSStyleSheet", MockCSSStyleSheet],
28950
29733
  ["CustomEvent", MockCustomEvent],
28951
29734
  ["DocumentFragment", MockDocumentFragment],
28952
29735
  ["DOMParser", MockDOMParser],
@@ -29154,12 +29937,6 @@ var MockShadowRoot = class extends MockDocumentFragment {
29154
29937
  get activeElement() {
29155
29938
  return null;
29156
29939
  }
29157
- set adoptedStyleSheets(_adoptedStyleSheets) {
29158
- throw new Error("Unimplemented");
29159
- }
29160
- get adoptedStyleSheets() {
29161
- return [];
29162
- }
29163
29940
  get cloneable() {
29164
29941
  return false;
29165
29942
  }
@@ -29963,7 +30740,7 @@ var MockDocument = class _MockDocument extends MockHTMLElement {
29963
30740
  }
29964
30741
  set location(val) {
29965
30742
  if (this.defaultView != null) {
29966
- this.defaultView.location = val;
30743
+ this.defaultView.location.href = val;
29967
30744
  }
29968
30745
  }
29969
30746
  get baseURI() {
@@ -30213,6 +30990,32 @@ var Build = {
30213
30990
  isServer: false,
30214
30991
  isTesting: BUILD.isTesting ? true : false
30215
30992
  };
30993
+
30994
+ // src/utils/constants.ts
30995
+ var PrimitiveType = /* @__PURE__ */ ((PrimitiveType2) => {
30996
+ PrimitiveType2["Undefined"] = "undefined";
30997
+ PrimitiveType2["Null"] = "null";
30998
+ PrimitiveType2["String"] = "string";
30999
+ PrimitiveType2["Number"] = "number";
31000
+ PrimitiveType2["SpecialNumber"] = "number";
31001
+ PrimitiveType2["Boolean"] = "boolean";
31002
+ PrimitiveType2["BigInt"] = "bigint";
31003
+ return PrimitiveType2;
31004
+ })(PrimitiveType || {});
31005
+ var NonPrimitiveType = /* @__PURE__ */ ((NonPrimitiveType2) => {
31006
+ NonPrimitiveType2["Array"] = "array";
31007
+ NonPrimitiveType2["Date"] = "date";
31008
+ NonPrimitiveType2["Map"] = "map";
31009
+ NonPrimitiveType2["Object"] = "object";
31010
+ NonPrimitiveType2["RegularExpression"] = "regexp";
31011
+ NonPrimitiveType2["Set"] = "set";
31012
+ NonPrimitiveType2["Channel"] = "channel";
31013
+ NonPrimitiveType2["Symbol"] = "symbol";
31014
+ return NonPrimitiveType2;
31015
+ })(NonPrimitiveType || {});
31016
+ var TYPE_CONSTANT = "type";
31017
+ var VALUE_CONSTANT = "value";
31018
+ var SERIALIZED_PREFIX = "serialized:";
30216
31019
  var STENCIL_DEV_MODE = BUILD.isTesting ? ["STENCIL:"] : [
30217
31020
  "%cstencil",
30218
31021
  "color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"
@@ -30233,6 +31036,232 @@ var supportsConstructableStylesheets = BUILD.constructableCSS ? /* @__PURE__ */
30233
31036
  // src/utils/helpers.ts
30234
31037
  var isString = (v) => typeof v === "string";
30235
31038
 
31039
+ // src/utils/local-value.ts
31040
+ var LocalValue = class _LocalValue {
31041
+ constructor(type, value) {
31042
+ if (type === "undefined" /* Undefined */ || type === "null" /* Null */) {
31043
+ this.type = type;
31044
+ } else {
31045
+ this.type = type;
31046
+ this.value = value;
31047
+ }
31048
+ }
31049
+ /**
31050
+ * Creates a new LocalValue object with a string value.
31051
+ *
31052
+ * @param {string} value - The string value to be stored in the LocalValue object.
31053
+ * @returns {LocalValue} - The created LocalValue object.
31054
+ */
31055
+ static createStringValue(value) {
31056
+ return new _LocalValue("string" /* String */, value);
31057
+ }
31058
+ /**
31059
+ * Creates a new LocalValue object with a number value.
31060
+ *
31061
+ * @param {number} value - The number value.
31062
+ * @returns {LocalValue} - The created LocalValue object.
31063
+ */
31064
+ static createNumberValue(value) {
31065
+ return new _LocalValue("number" /* Number */, value);
31066
+ }
31067
+ /**
31068
+ * Creates a new LocalValue object with a special number value.
31069
+ *
31070
+ * @param {number} value - The value of the special number.
31071
+ * @returns {LocalValue} - The created LocalValue object.
31072
+ */
31073
+ static createSpecialNumberValue(value) {
31074
+ if (Number.isNaN(value)) {
31075
+ return new _LocalValue("number" /* SpecialNumber */, "NaN");
31076
+ }
31077
+ if (Object.is(value, -0)) {
31078
+ return new _LocalValue("number" /* SpecialNumber */, "-0");
31079
+ }
31080
+ if (value === Infinity) {
31081
+ return new _LocalValue("number" /* SpecialNumber */, "Infinity");
31082
+ }
31083
+ if (value === -Infinity) {
31084
+ return new _LocalValue("number" /* SpecialNumber */, "-Infinity");
31085
+ }
31086
+ return new _LocalValue("number" /* SpecialNumber */, value);
31087
+ }
31088
+ /**
31089
+ * Creates a new LocalValue object with an undefined value.
31090
+ * @returns {LocalValue} - The created LocalValue object.
31091
+ */
31092
+ static createUndefinedValue() {
31093
+ return new _LocalValue("undefined" /* Undefined */);
31094
+ }
31095
+ /**
31096
+ * Creates a new LocalValue object with a null value.
31097
+ * @returns {LocalValue} - The created LocalValue object.
31098
+ */
31099
+ static createNullValue() {
31100
+ return new _LocalValue("null" /* Null */);
31101
+ }
31102
+ /**
31103
+ * Creates a new LocalValue object with a boolean value.
31104
+ *
31105
+ * @param {boolean} value - The boolean value.
31106
+ * @returns {LocalValue} - The created LocalValue object.
31107
+ */
31108
+ static createBooleanValue(value) {
31109
+ return new _LocalValue("boolean" /* Boolean */, value);
31110
+ }
31111
+ /**
31112
+ * Creates a new LocalValue object with a BigInt value.
31113
+ *
31114
+ * @param {BigInt} value - The BigInt value.
31115
+ * @returns {LocalValue} - The created LocalValue object.
31116
+ */
31117
+ static createBigIntValue(value) {
31118
+ return new _LocalValue("bigint" /* BigInt */, value.toString());
31119
+ }
31120
+ /**
31121
+ * Creates a new LocalValue object with an array.
31122
+ *
31123
+ * @param {Array} value - The array.
31124
+ * @returns {LocalValue} - The created LocalValue object.
31125
+ */
31126
+ static createArrayValue(value) {
31127
+ return new _LocalValue("array" /* Array */, value);
31128
+ }
31129
+ /**
31130
+ * Creates a new LocalValue object with date value.
31131
+ *
31132
+ * @param {string} value - The date.
31133
+ * @returns {LocalValue} - The created LocalValue object.
31134
+ */
31135
+ static createDateValue(value) {
31136
+ return new _LocalValue("date" /* Date */, value);
31137
+ }
31138
+ /**
31139
+ * Creates a new LocalValue object of map value.
31140
+ * @param {Map} map - The map.
31141
+ * @returns {LocalValue} - The created LocalValue object.
31142
+ */
31143
+ static createMapValue(map2) {
31144
+ const value = [];
31145
+ Array.from(map2.entries()).forEach(([key, val]) => {
31146
+ value.push([_LocalValue.getArgument(key), _LocalValue.getArgument(val)]);
31147
+ });
31148
+ return new _LocalValue("map" /* Map */, value);
31149
+ }
31150
+ /**
31151
+ * Creates a new LocalValue object from the passed object.
31152
+ *
31153
+ * @param object the object to create a LocalValue from
31154
+ * @returns {LocalValue} - The created LocalValue object.
31155
+ */
31156
+ static createObjectValue(object) {
31157
+ const value = [];
31158
+ Object.entries(object).forEach(([key, val]) => {
31159
+ value.push([key, _LocalValue.getArgument(val)]);
31160
+ });
31161
+ return new _LocalValue("object" /* Object */, value);
31162
+ }
31163
+ /**
31164
+ * Creates a new LocalValue object of regular expression value.
31165
+ *
31166
+ * @param {string} value - The value of the regular expression.
31167
+ * @returns {LocalValue} - The created LocalValue object.
31168
+ */
31169
+ static createRegularExpressionValue(value) {
31170
+ return new _LocalValue("regexp" /* RegularExpression */, value);
31171
+ }
31172
+ /**
31173
+ * Creates a new LocalValue object with the specified value.
31174
+ * @param {Set} value - The value to be set.
31175
+ * @returns {LocalValue} - The created LocalValue object.
31176
+ */
31177
+ static createSetValue(value) {
31178
+ return new _LocalValue("set" /* Set */, value);
31179
+ }
31180
+ /**
31181
+ * Creates a new LocalValue object with the given channel value
31182
+ *
31183
+ * @param {ChannelValue} value - The channel value.
31184
+ * @returns {LocalValue} - The created LocalValue object.
31185
+ */
31186
+ static createChannelValue(value) {
31187
+ return new _LocalValue("channel" /* Channel */, value);
31188
+ }
31189
+ /**
31190
+ * Creates a new LocalValue object with a Symbol value.
31191
+ *
31192
+ * @param {Symbol} symbol - The Symbol value
31193
+ * @returns {LocalValue} - The created LocalValue object
31194
+ */
31195
+ static createSymbolValue(symbol) {
31196
+ const description = symbol.description || "Symbol()";
31197
+ return new _LocalValue("symbol" /* Symbol */, description);
31198
+ }
31199
+ static getArgument(argument) {
31200
+ const type = typeof argument;
31201
+ switch (type) {
31202
+ case "string" /* String */:
31203
+ return _LocalValue.createStringValue(argument);
31204
+ case "number" /* Number */:
31205
+ if (Number.isNaN(argument) || Object.is(argument, -0) || !Number.isFinite(argument)) {
31206
+ return _LocalValue.createSpecialNumberValue(argument);
31207
+ }
31208
+ return _LocalValue.createNumberValue(argument);
31209
+ case "boolean" /* Boolean */:
31210
+ return _LocalValue.createBooleanValue(argument);
31211
+ case "bigint" /* BigInt */:
31212
+ return _LocalValue.createBigIntValue(argument);
31213
+ case "undefined" /* Undefined */:
31214
+ return _LocalValue.createUndefinedValue();
31215
+ case "symbol" /* Symbol */:
31216
+ return _LocalValue.createSymbolValue(argument);
31217
+ case "object" /* Object */:
31218
+ if (argument === null) {
31219
+ return _LocalValue.createNullValue();
31220
+ }
31221
+ if (argument instanceof Date) {
31222
+ return _LocalValue.createDateValue(argument);
31223
+ }
31224
+ if (argument instanceof Map) {
31225
+ const map2 = [];
31226
+ argument.forEach((value, key) => {
31227
+ const objectKey = typeof key === "string" ? key : _LocalValue.getArgument(key);
31228
+ const objectValue = _LocalValue.getArgument(value);
31229
+ map2.push([objectKey, objectValue]);
31230
+ });
31231
+ return _LocalValue.createMapValue(argument);
31232
+ }
31233
+ if (argument instanceof Set) {
31234
+ const set = [];
31235
+ argument.forEach((value) => {
31236
+ set.push(_LocalValue.getArgument(value));
31237
+ });
31238
+ return _LocalValue.createSetValue(set);
31239
+ }
31240
+ if (argument instanceof Array) {
31241
+ const arr = [];
31242
+ argument.forEach((value) => {
31243
+ arr.push(_LocalValue.getArgument(value));
31244
+ });
31245
+ return _LocalValue.createArrayValue(arr);
31246
+ }
31247
+ if (argument instanceof RegExp) {
31248
+ return _LocalValue.createRegularExpressionValue({
31249
+ pattern: argument.source,
31250
+ flags: argument.flags
31251
+ });
31252
+ }
31253
+ return _LocalValue.createObjectValue(argument);
31254
+ }
31255
+ throw new Error(`Unsupported type: ${type}`);
31256
+ }
31257
+ asMap() {
31258
+ return {
31259
+ [TYPE_CONSTANT]: this.type,
31260
+ ...!(this.type === "null" /* Null */ || this.type === "undefined" /* Undefined */) ? { [VALUE_CONSTANT]: this.value } : {}
31261
+ };
31262
+ }
31263
+ };
31264
+
30236
31265
  // src/utils/message-utils.ts
30237
31266
  var catchError = (diagnostics, err2, msg) => {
30238
31267
  const diagnostic = {
@@ -30271,6 +31300,106 @@ var shouldIgnoreError = (msg) => {
30271
31300
  };
30272
31301
  var TASK_CANCELED_MSG = `task canceled`;
30273
31302
 
31303
+ // src/utils/regular-expression.ts
31304
+ var escapeRegExpSpecialCharacters = (text) => {
31305
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
31306
+ };
31307
+
31308
+ // src/utils/remote-value.ts
31309
+ var RemoteValue = class _RemoteValue {
31310
+ /**
31311
+ * Deserializes a LocalValue serialized object back to its original JavaScript representation
31312
+ *
31313
+ * @param serialized The serialized LocalValue object
31314
+ * @returns The original JavaScript value/object
31315
+ */
31316
+ static fromLocalValue(serialized) {
31317
+ const type = serialized[TYPE_CONSTANT];
31318
+ const value = VALUE_CONSTANT in serialized ? serialized[VALUE_CONSTANT] : void 0;
31319
+ switch (type) {
31320
+ case "string" /* String */:
31321
+ return value;
31322
+ case "boolean" /* Boolean */:
31323
+ return value;
31324
+ case "bigint" /* BigInt */:
31325
+ return BigInt(value);
31326
+ case "undefined" /* Undefined */:
31327
+ return void 0;
31328
+ case "null" /* Null */:
31329
+ return null;
31330
+ case "number" /* Number */:
31331
+ if (value === "NaN") return NaN;
31332
+ if (value === "-0") return -0;
31333
+ if (value === "Infinity") return Infinity;
31334
+ if (value === "-Infinity") return -Infinity;
31335
+ return value;
31336
+ case "array" /* Array */:
31337
+ return value.map((item) => _RemoteValue.fromLocalValue(item));
31338
+ case "date" /* Date */:
31339
+ return new Date(value);
31340
+ case "map" /* Map */:
31341
+ const map2 = /* @__PURE__ */ new Map();
31342
+ for (const [key, val] of value) {
31343
+ const deserializedKey = typeof key === "object" && key !== null ? _RemoteValue.fromLocalValue(key) : key;
31344
+ const deserializedValue = _RemoteValue.fromLocalValue(val);
31345
+ map2.set(deserializedKey, deserializedValue);
31346
+ }
31347
+ return map2;
31348
+ case "object" /* Object */:
31349
+ const obj = {};
31350
+ for (const [key, val] of value) {
31351
+ obj[key] = _RemoteValue.fromLocalValue(val);
31352
+ }
31353
+ return obj;
31354
+ case "regexp" /* RegularExpression */:
31355
+ const { pattern, flags } = value;
31356
+ return new RegExp(pattern, flags);
31357
+ case "set" /* Set */:
31358
+ const set = /* @__PURE__ */ new Set();
31359
+ for (const item of value) {
31360
+ set.add(_RemoteValue.fromLocalValue(item));
31361
+ }
31362
+ return set;
31363
+ case "symbol" /* Symbol */:
31364
+ return Symbol(value);
31365
+ default:
31366
+ throw new Error(`Unsupported type: ${type}`);
31367
+ }
31368
+ }
31369
+ /**
31370
+ * Utility method to deserialize multiple LocalValues at once
31371
+ *
31372
+ * @param serializedValues Array of serialized LocalValue objects
31373
+ * @returns Array of deserialized JavaScript values
31374
+ */
31375
+ static fromLocalValueArray(serializedValues) {
31376
+ return serializedValues.map((value) => _RemoteValue.fromLocalValue(value));
31377
+ }
31378
+ /**
31379
+ * Verifies if the given object matches the structure of a serialized LocalValue
31380
+ *
31381
+ * @param obj Object to verify
31382
+ * @returns boolean indicating if the object has LocalValue structure
31383
+ */
31384
+ static isLocalValueObject(obj) {
31385
+ if (typeof obj !== "object" || obj === null) {
31386
+ return false;
31387
+ }
31388
+ if (!obj.hasOwnProperty(TYPE_CONSTANT)) {
31389
+ return false;
31390
+ }
31391
+ const type = obj[TYPE_CONSTANT];
31392
+ const hasTypeProperty = Object.values({ ...PrimitiveType, ...NonPrimitiveType }).includes(type);
31393
+ if (!hasTypeProperty) {
31394
+ return false;
31395
+ }
31396
+ if (type !== "null" /* Null */ && type !== "undefined" /* Undefined */) {
31397
+ return obj.hasOwnProperty(VALUE_CONSTANT);
31398
+ }
31399
+ return true;
31400
+ }
31401
+ };
31402
+
30274
31403
  // src/utils/result.ts
30275
31404
  var result_exports = {};
30276
31405
  __export(result_exports, {
@@ -30320,6 +31449,21 @@ var unwrapErr = (result) => {
30320
31449
  }
30321
31450
  };
30322
31451
 
31452
+ // src/utils/serialize.ts
31453
+ function serializeProperty(value) {
31454
+ if (["string", "boolean", "undefined"].includes(typeof value) || typeof value === "number" && value !== Infinity && value !== -Infinity && !isNaN(value)) {
31455
+ return value;
31456
+ }
31457
+ const arg = LocalValue.getArgument(value);
31458
+ return SERIALIZED_PREFIX + btoa(JSON.stringify(arg));
31459
+ }
31460
+ function deserializeProperty(value) {
31461
+ if (typeof value !== "string" || !value.startsWith(SERIALIZED_PREFIX)) {
31462
+ return value;
31463
+ }
31464
+ return RemoteValue.fromLocalValue(JSON.parse(atob(value.slice(SERIALIZED_PREFIX.length))));
31465
+ }
31466
+
30323
31467
  // src/utils/util.ts
30324
31468
  var lowerPathParam = (fn) => (p) => fn(p.toLowerCase());
30325
31469
  var isDtsFile = lowerPathParam((p) => p.endsWith(".d.ts") || p.endsWith(".d.mts") || p.endsWith(".d.cts"));
@@ -30354,7 +31498,15 @@ var _cssColonHostRe = new RegExp("(" + _polyfillHost + _parenSuffix, "gim");
30354
31498
  var _cssColonHostContextRe = new RegExp("(" + _polyfillHostContext + _parenSuffix, "gim");
30355
31499
  var _cssColonSlottedRe = new RegExp("(" + _polyfillSlotted + _parenSuffix, "gim");
30356
31500
  var _polyfillHostNoCombinator = _polyfillHost + "-no-combinator";
30357
- var createSupportsRuleRe = (selector) => new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${selector}\\b)`, "gim");
31501
+ var createSupportsRuleRe = (selector) => {
31502
+ const safeSelector = escapeRegExpSpecialCharacters(selector);
31503
+ return new RegExp(
31504
+ // First capture group: match any context before the selector that's not inside @supports selector()
31505
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
31506
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector}))(${safeSelector}\\b)`,
31507
+ "g"
31508
+ );
31509
+ };
30358
31510
  var _colonSlottedRe = createSupportsRuleRe("::slotted");
30359
31511
  var _colonHostRe = createSupportsRuleRe(":host");
30360
31512
  var _colonHostContextRe = createSupportsRuleRe(":host-context");
@@ -30363,6 +31515,9 @@ var _colonHostContextRe = createSupportsRuleRe(":host-context");
30363
31515
  var setMode = (handler) => modeResolutionChain.push(handler);
30364
31516
  var CAPTURE_EVENT_SUFFIX = "Capture";
30365
31517
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
31518
+ var baseClass = BUILD.lazyLoad ? class {
31519
+ } : globalThis.HTMLElement || class {
31520
+ };
30366
31521
 
30367
31522
  // src/compiler/html/canonical-link.ts
30368
31523
  var updateCanonicalLink = (doc, href) => {
@@ -31553,6 +32708,7 @@ function renderToString(html, options, asStream) {
31553
32708
  }
31554
32709
  function hydrateDocument(doc, options, asStream) {
31555
32710
  const opts = normalizeHydrateOptions(options);
32711
+ opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "undefined" ? "declarative-shadow-dom" : opts.serializeShadowRoot;
31556
32712
  let win2 = null;
31557
32713
  const results = generateHydrateResults(opts);
31558
32714
  if (hasError(results.diagnostics)) {
@@ -31564,7 +32720,7 @@ function hydrateDocument(doc, options, asStream) {
31564
32720
  opts.destroyDocument = true;
31565
32721
  win2 = new MockWindow(doc);
31566
32722
  if (!asStream) {
31567
- return render(win2, opts, results).then(() => results);
32723
+ return render2(win2, opts, results).then(() => results);
31568
32724
  }
31569
32725
  return renderStream(win2, opts, results);
31570
32726
  } catch (e) {
@@ -31581,7 +32737,7 @@ function hydrateDocument(doc, options, asStream) {
31581
32737
  opts.destroyDocument = false;
31582
32738
  win2 = patchDomImplementation(doc, opts);
31583
32739
  if (!asStream) {
31584
- return render(win2, opts, results).then(() => results);
32740
+ return render2(win2, opts, results).then(() => results);
31585
32741
  }
31586
32742
  return renderStream(win2, opts, results);
31587
32743
  } catch (e) {
@@ -31596,7 +32752,7 @@ function hydrateDocument(doc, options, asStream) {
31596
32752
  renderBuildError(results, `Invalid html or document. Must be either a valid "html" string, or DOM "document".`);
31597
32753
  return Promise.resolve(results);
31598
32754
  }
31599
- async function render(win2, opts, results) {
32755
+ async function render2(win2, opts, results) {
31600
32756
  if ("process" in globalThis && typeof process.on === "function" && !process.__stencilErrors) {
31601
32757
  process.__stencilErrors = true;
31602
32758
  process.on("unhandledRejection", (e) => {
@@ -31621,7 +32777,7 @@ async function render(win2, opts, results) {
31621
32777
  }
31622
32778
  function renderStream(win2, opts, results) {
31623
32779
  async function* processRender() {
31624
- const renderResult = await render(win2, opts, results);
32780
+ const renderResult = await render2(win2, opts, results);
31625
32781
  yield renderResult.html;
31626
32782
  }
31627
32783
  return stream.Readable.from(processRender());
@@ -31657,6 +32813,16 @@ function finalizeHydrate(win2, doc, opts, results) {
31657
32813
  if (opts.removeScripts) {
31658
32814
  removeScripts(doc.documentElement);
31659
32815
  }
32816
+ const styles2 = doc.querySelectorAll("head style");
32817
+ if (styles2.length > 0) {
32818
+ results.styles.push(
32819
+ ...Array.from(styles2).map((style) => ({
32820
+ href: style.getAttribute("href"),
32821
+ id: style.getAttribute(HYDRATED_STYLE_ID),
32822
+ content: style.textContent
32823
+ }))
32824
+ );
32825
+ }
31660
32826
  try {
31661
32827
  updateCanonicalLink(doc, opts.canonicalUrl);
31662
32828
  } catch (e) {
@@ -31735,7 +32901,9 @@ function removeScripts(elm) {
31735
32901
  }
31736
32902
 
31737
32903
  exports.createWindowFromHtml = createWindowFromHtml;
32904
+ exports.deserializeProperty = deserializeProperty;
31738
32905
  exports.hydrateDocument = hydrateDocument;
31739
32906
  exports.renderToString = renderToString;
31740
32907
  exports.serializeDocumentToString = serializeDocumentToString;
32908
+ exports.serializeProperty = serializeProperty;
31741
32909
  exports.streamToString = streamToString;