@pine-ds/core 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. package/dist/cjs/closest-b45138d3.js +13 -0
  2. package/dist/cjs/closest-b45138d3.js.map +1 -0
  3. package/dist/cjs/{index-33465846.js → index-34f3258f.js} +2 -2
  4. package/dist/cjs/index-34f3258f.js.map +1 -0
  5. package/dist/cjs/{index-7d9c71f6.js → index-ed42e2ee.js} +34 -4
  6. package/dist/cjs/index-ed42e2ee.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  9. package/dist/cjs/pds-avatar.cjs.entry.js +4 -4
  10. package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -1
  11. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  12. package/dist/cjs/pds-button.cjs.entry.js +2 -2
  13. package/dist/cjs/pds-checkbox.cjs.entry.js +75 -0
  14. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -0
  15. package/dist/cjs/pds-chip.cjs.entry.js +2 -2
  16. package/dist/cjs/pds-copytext.cjs.entry.js +2 -2
  17. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  18. package/dist/cjs/pds-icon.cjs.entry.js +2 -2
  19. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  20. package/dist/cjs/pds-image.cjs.entry.js +1 -1
  21. package/dist/cjs/pds-input.cjs.entry.js +2 -2
  22. package/dist/cjs/{pds-label-5ebae56e.js → pds-label-15dd83ef.js} +2 -2
  23. package/dist/cjs/{pds-label-5ebae56e.js.map → pds-label-15dd83ef.js.map} +1 -1
  24. package/dist/cjs/pds-link.cjs.entry.js +2 -2
  25. package/dist/cjs/pds-loader.cjs.entry.js +49 -0
  26. package/dist/cjs/pds-loader.cjs.entry.js.map +1 -0
  27. package/dist/cjs/pds-progress.cjs.entry.js +2 -2
  28. package/dist/cjs/pds-radio.cjs.entry.js +5 -5
  29. package/dist/cjs/pds-row.cjs.entry.js +2 -2
  30. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
  31. package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
  32. package/dist/cjs/pds-switch.cjs.entry.js +5 -5
  33. package/dist/cjs/pds-tab.cjs.entry.js +4 -4
  34. package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
  35. package/dist/cjs/pds-table-cell.cjs.entry.js +58 -0
  36. package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -0
  37. package/dist/cjs/pds-table-head-cell.cjs.entry.js +5 -4
  38. package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
  39. package/dist/cjs/pds-table-head.cjs.entry.js +27 -2
  40. package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
  41. package/dist/cjs/pds-table-row.cjs.entry.js +22 -6
  42. package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
  43. package/dist/cjs/pds-table.cjs.entry.js +27 -3
  44. package/dist/cjs/pds-table.cjs.entry.js.map +1 -1
  45. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
  46. package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
  47. package/dist/cjs/pds-textarea.cjs.entry.js +6 -6
  48. package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
  49. package/dist/cjs/pine-core.cjs.js +2 -2
  50. package/dist/collection/collection-manifest.json +1 -0
  51. package/dist/collection/components/pds-avatar/pds-avatar.js +2 -2
  52. package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -1
  53. package/dist/collection/components/pds-checkbox/pds-checkbox.css +15 -1
  54. package/dist/collection/components/pds-checkbox/pds-checkbox.js +44 -7
  55. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  56. package/dist/collection/components/pds-loader/pds-loader.css +93 -0
  57. package/dist/collection/components/pds-loader/pds-loader.js +127 -0
  58. package/dist/collection/components/pds-loader/pds-loader.js.map +1 -0
  59. package/dist/collection/components/pds-loader/stories/pds-loader.stories.js +36 -0
  60. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  61. package/dist/collection/components/pds-radio/pds-radio.js +3 -3
  62. package/dist/collection/components/pds-row/pds-row.js +1 -1
  63. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  64. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  65. package/dist/collection/components/pds-switch/pds-switch.js +3 -3
  66. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  67. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  68. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +1 -1
  69. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +83 -1
  70. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +1 -1
  71. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +5 -3
  72. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +1 -1
  73. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +56 -7
  74. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +1 -1
  75. package/dist/collection/components/pds-table/pds-table.css +6 -0
  76. package/dist/collection/components/pds-table/pds-table.js +68 -1
  77. package/dist/collection/components/pds-table/pds-table.js.map +1 -1
  78. package/dist/collection/components/pds-table/stories/pds-table.stories.js +1 -1
  79. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  80. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  81. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  82. package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
  83. package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
  84. package/dist/collection/utils/closest.js +8 -0
  85. package/dist/collection/utils/closest.js.map +1 -0
  86. package/dist/docs.json +299 -9
  87. package/dist/esm/closest-d2d192be.js +11 -0
  88. package/dist/esm/closest-d2d192be.js.map +1 -0
  89. package/{components/index2.js → dist/esm/index-852fd6bc.js} +2 -2
  90. package/dist/esm/index-852fd6bc.js.map +1 -0
  91. package/dist/esm/{index-6f0bb1b9.js → index-ca411ad2.js} +34 -4
  92. package/dist/esm/index-ca411ad2.js.map +1 -0
  93. package/dist/esm/loader.js +3 -3
  94. package/dist/esm/pds-accordion.entry.js +2 -2
  95. package/dist/esm/pds-avatar.entry.js +4 -4
  96. package/dist/esm/pds-avatar.entry.js.map +1 -1
  97. package/dist/esm/pds-box.entry.js +1 -1
  98. package/dist/esm/pds-button.entry.js +2 -2
  99. package/dist/esm/pds-checkbox.entry.js +71 -0
  100. package/dist/esm/pds-checkbox.entry.js.map +1 -0
  101. package/dist/esm/pds-chip.entry.js +2 -2
  102. package/dist/esm/pds-copytext.entry.js +2 -2
  103. package/dist/esm/pds-divider.entry.js +1 -1
  104. package/dist/esm/pds-icon.entry.js +2 -2
  105. package/dist/esm/pds-icon.entry.js.map +1 -1
  106. package/dist/esm/pds-image.entry.js +1 -1
  107. package/dist/esm/pds-input.entry.js +2 -2
  108. package/dist/esm/{pds-label-d7e11551.js → pds-label-bea9ee54.js} +2 -2
  109. package/dist/esm/{pds-label-d7e11551.js.map → pds-label-bea9ee54.js.map} +1 -1
  110. package/dist/esm/pds-link.entry.js +2 -2
  111. package/dist/esm/pds-loader.entry.js +45 -0
  112. package/dist/esm/pds-loader.entry.js.map +1 -0
  113. package/dist/esm/pds-progress.entry.js +2 -2
  114. package/dist/esm/pds-radio.entry.js +5 -5
  115. package/dist/esm/pds-row.entry.js +2 -2
  116. package/dist/esm/pds-sortable-item.entry.js +3 -3
  117. package/dist/esm/pds-sortable.entry.js +2 -2
  118. package/dist/esm/pds-switch.entry.js +5 -5
  119. package/dist/esm/pds-tab.entry.js +4 -4
  120. package/dist/esm/pds-table-body.entry.js +2 -2
  121. package/{components/pds-table-cell2.js → dist/esm/pds-table-cell.entry.js} +11 -29
  122. package/dist/esm/pds-table-cell.entry.js.map +1 -0
  123. package/dist/esm/pds-table-head-cell.entry.js +5 -4
  124. package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
  125. package/dist/esm/pds-table-head.entry.js +27 -2
  126. package/dist/esm/pds-table-head.entry.js.map +1 -1
  127. package/dist/esm/pds-table-row.entry.js +22 -6
  128. package/dist/esm/pds-table-row.entry.js.map +1 -1
  129. package/dist/esm/pds-table.entry.js +27 -3
  130. package/dist/esm/pds-table.entry.js.map +1 -1
  131. package/dist/esm/pds-tabpanel.entry.js +2 -2
  132. package/dist/esm/pds-tabs.entry.js +2 -2
  133. package/dist/esm/pds-textarea.entry.js +6 -6
  134. package/dist/esm/pds-tooltip.entry.js +3 -3
  135. package/dist/esm/pine-core.js +3 -3
  136. package/dist/esm-es5/closest-d2d192be.js +2 -0
  137. package/dist/esm-es5/closest-d2d192be.js.map +1 -0
  138. package/dist/esm-es5/{index-bdeab80c.js → index-852fd6bc.js} +1 -1
  139. package/dist/esm-es5/index-852fd6bc.js.map +1 -0
  140. package/dist/esm-es5/index-ca411ad2.js +3 -0
  141. package/dist/esm-es5/index-ca411ad2.js.map +1 -0
  142. package/dist/esm-es5/loader.js +1 -1
  143. package/dist/esm-es5/loader.js.map +1 -1
  144. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  145. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  146. package/dist/esm-es5/pds-avatar.entry.js.map +1 -1
  147. package/dist/esm-es5/pds-box.entry.js +1 -1
  148. package/dist/esm-es5/pds-button.entry.js +1 -1
  149. package/dist/esm-es5/pds-checkbox.entry.js +2 -0
  150. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -0
  151. package/dist/esm-es5/pds-chip.entry.js +1 -1
  152. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  153. package/dist/esm-es5/pds-divider.entry.js +1 -1
  154. package/dist/esm-es5/pds-icon.entry.js +1 -1
  155. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  156. package/dist/esm-es5/pds-image.entry.js +1 -1
  157. package/dist/esm-es5/pds-input.entry.js +1 -1
  158. package/dist/esm-es5/{pds-label-d7e11551.js → pds-label-bea9ee54.js} +2 -2
  159. package/dist/esm-es5/pds-link.entry.js +1 -1
  160. package/dist/esm-es5/pds-loader.entry.js +2 -0
  161. package/dist/esm-es5/pds-loader.entry.js.map +1 -0
  162. package/dist/esm-es5/pds-progress.entry.js +1 -1
  163. package/dist/esm-es5/pds-radio.entry.js +1 -1
  164. package/dist/esm-es5/pds-row.entry.js +1 -1
  165. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  166. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  167. package/dist/esm-es5/pds-switch.entry.js +1 -1
  168. package/dist/esm-es5/pds-tab.entry.js +1 -1
  169. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  170. package/dist/esm-es5/pds-table-cell.entry.js +2 -0
  171. package/dist/esm-es5/pds-table-cell.entry.js.map +1 -0
  172. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  173. package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
  174. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  175. package/dist/esm-es5/pds-table-head.entry.js.map +1 -1
  176. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  177. package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
  178. package/dist/esm-es5/pds-table.entry.js +1 -1
  179. package/dist/esm-es5/pds-table.entry.js.map +1 -1
  180. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  181. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  182. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  183. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  184. package/dist/esm-es5/pine-core.js +1 -1
  185. package/dist/esm-es5/pine-core.js.map +1 -1
  186. package/dist/pine-core/{p-320e4c53.system.entry.js → p-038065cf.system.entry.js} +2 -2
  187. package/dist/pine-core/p-05ee992c.js +3 -0
  188. package/dist/pine-core/p-05ee992c.js.map +1 -0
  189. package/dist/pine-core/p-0b77685e.js +2 -0
  190. package/dist/pine-core/p-0b77685e.js.map +1 -0
  191. package/dist/pine-core/{p-dacd68cf.system.entry.js → p-0f3ceb6c.system.entry.js} +2 -2
  192. package/dist/pine-core/p-10fe7be7.entry.js +2 -0
  193. package/dist/pine-core/p-10fe7be7.entry.js.map +1 -0
  194. package/dist/pine-core/{p-7f917c20.entry.js → p-1618833a.entry.js} +2 -2
  195. package/dist/pine-core/{p-ff9044ed.entry.js → p-1775b56f.entry.js} +2 -2
  196. package/dist/pine-core/{p-65a167b8.entry.js → p-19b44f85.entry.js} +2 -2
  197. package/dist/pine-core/{p-c721d912.system.entry.js → p-1a03a25f.system.entry.js} +2 -2
  198. package/dist/pine-core/p-224a435b.system.js +2 -0
  199. package/dist/pine-core/p-224a435b.system.js.map +1 -0
  200. package/dist/pine-core/{p-4d4bea0a.entry.js → p-23d24773.entry.js} +2 -2
  201. package/dist/pine-core/p-24441d11.system.entry.js +2 -0
  202. package/dist/pine-core/p-24441d11.system.entry.js.map +1 -0
  203. package/dist/pine-core/p-26626013.system.js +3 -0
  204. package/dist/pine-core/p-26626013.system.js.map +1 -0
  205. package/dist/pine-core/{p-478689a0.system.entry.js → p-286189e0.system.entry.js} +2 -2
  206. package/dist/pine-core/p-30dfdfdd.entry.js +2 -0
  207. package/dist/pine-core/{p-2e19ec3d.system.entry.js → p-319ced45.system.entry.js} +2 -2
  208. package/dist/pine-core/{p-2af2432d.system.entry.js → p-34a4c5ff.system.entry.js} +2 -2
  209. package/dist/pine-core/{p-e43fd36e.entry.js → p-3648779f.entry.js} +2 -2
  210. package/dist/pine-core/p-3dfbaa2a.entry.js +2 -0
  211. package/dist/pine-core/p-3dfbaa2a.entry.js.map +1 -0
  212. package/dist/pine-core/{p-bc3782a0.entry.js → p-3f1ca23f.entry.js} +2 -2
  213. package/dist/pine-core/p-3f1ca23f.entry.js.map +1 -0
  214. package/dist/pine-core/{p-3e527956.system.entry.js → p-3f78956d.system.entry.js} +2 -2
  215. package/dist/pine-core/{p-8c5e76d4.system.entry.js → p-4283f600.system.entry.js} +2 -2
  216. package/dist/pine-core/{p-019edcbb.entry.js → p-42cccfec.entry.js} +2 -2
  217. package/dist/pine-core/{p-77da68b4.system.entry.js → p-473037f0.system.entry.js} +2 -2
  218. package/dist/pine-core/p-4a7afca5.entry.js +2 -0
  219. package/dist/pine-core/p-4a7afca5.entry.js.map +1 -0
  220. package/dist/pine-core/{p-bb099830.system.entry.js → p-4da18aac.system.entry.js} +2 -2
  221. package/dist/pine-core/{p-b7897f94.js → p-4dec2648.js} +1 -1
  222. package/dist/pine-core/p-4dec2648.js.map +1 -0
  223. package/dist/pine-core/p-56c60cf8.system.entry.js +2 -0
  224. package/dist/pine-core/p-56c60cf8.system.entry.js.map +1 -0
  225. package/dist/pine-core/{p-737d5042.entry.js → p-59f634bc.entry.js} +2 -2
  226. package/dist/pine-core/{p-737d5042.entry.js.map → p-59f634bc.entry.js.map} +1 -1
  227. package/dist/pine-core/{p-30cb97ee.system.entry.js → p-5b032eb0.system.entry.js} +2 -2
  228. package/dist/pine-core/{p-9f8a1aa6.entry.js → p-5bcbdba7.entry.js} +2 -2
  229. package/dist/pine-core/{p-380e465b.entry.js → p-5ec5e6cc.entry.js} +2 -2
  230. package/dist/pine-core/{p-9e33f4fb.system.entry.js → p-60953292.system.entry.js} +3 -3
  231. package/dist/pine-core/{p-bd5135c3.entry.js → p-6663628f.entry.js} +2 -2
  232. package/dist/pine-core/{p-8144b8d8.system.entry.js → p-689137e6.system.entry.js} +2 -2
  233. package/dist/pine-core/p-6faa8c75.js +2 -0
  234. package/dist/pine-core/p-77b96720.system.js +2 -0
  235. package/dist/pine-core/p-77b96720.system.js.map +1 -0
  236. package/dist/pine-core/{p-30ca2db1.entry.js → p-7bf40997.entry.js} +2 -2
  237. package/dist/pine-core/{p-cf147dfc.system.entry.js → p-7ef962b2.system.entry.js} +2 -2
  238. package/dist/pine-core/{p-43783da1.system.entry.js → p-80024a08.system.entry.js} +2 -2
  239. package/dist/pine-core/{p-5073b1c0.entry.js → p-8dd63189.entry.js} +3 -3
  240. package/dist/pine-core/{p-327e1afa.system.entry.js → p-9028ed17.system.entry.js} +2 -2
  241. package/dist/pine-core/p-9087b22e.entry.js +2 -0
  242. package/dist/pine-core/p-9087b22e.entry.js.map +1 -0
  243. package/dist/pine-core/{p-0ec12306.system.js → p-927733f2.system.js} +2 -2
  244. package/dist/pine-core/{p-d99998a4.system.entry.js → p-97e67ec3.system.entry.js} +2 -2
  245. package/dist/pine-core/p-97e67ec3.system.entry.js.map +1 -0
  246. package/dist/pine-core/{p-2250dc45.entry.js → p-999c240c.entry.js} +2 -2
  247. package/dist/pine-core/p-a010a9e8.system.entry.js +2 -0
  248. package/dist/pine-core/p-a010a9e8.system.entry.js.map +1 -0
  249. package/dist/pine-core/{p-1330a135.entry.js → p-a1cf1db5.entry.js} +2 -2
  250. package/dist/pine-core/p-a1cf1db5.entry.js.map +1 -0
  251. package/dist/pine-core/{p-78ae6c93.system.entry.js → p-a4150f66.system.entry.js} +2 -2
  252. package/dist/pine-core/{p-5f9fa644.system.entry.js → p-a5a0ced9.system.entry.js} +2 -2
  253. package/dist/pine-core/p-a617a31d.system.entry.js +2 -0
  254. package/dist/pine-core/p-a617a31d.system.entry.js.map +1 -0
  255. package/dist/pine-core/p-a6a2fd34.entry.js +2 -0
  256. package/dist/pine-core/{p-afdfadb0.entry.js.map → p-a6a2fd34.entry.js.map} +1 -1
  257. package/dist/pine-core/p-a6eb294d.entry.js +2 -0
  258. package/dist/pine-core/p-a6eb294d.entry.js.map +1 -0
  259. package/dist/pine-core/{p-564e8159.entry.js → p-b2b8070b.entry.js} +2 -2
  260. package/dist/pine-core/{p-4f7ee11c.entry.js → p-b5ad8600.entry.js} +2 -2
  261. package/dist/pine-core/p-b8e27935.system.entry.js +2 -0
  262. package/dist/pine-core/p-b8e27935.system.entry.js.map +1 -0
  263. package/dist/pine-core/{p-51651124.entry.js → p-b924a6f7.entry.js} +2 -2
  264. package/dist/pine-core/p-bb55fb8d.system.entry.js +2 -0
  265. package/dist/pine-core/p-bb55fb8d.system.entry.js.map +1 -0
  266. package/dist/pine-core/p-c25d94c0.system.entry.js +2 -0
  267. package/dist/pine-core/p-c25d94c0.system.entry.js.map +1 -0
  268. package/dist/pine-core/{p-1922e07e.system.entry.js → p-c8f50955.system.entry.js} +2 -2
  269. package/dist/pine-core/{p-1922e07e.system.entry.js.map → p-c8f50955.system.entry.js.map} +1 -1
  270. package/dist/pine-core/p-ccbff59d.entry.js +2 -0
  271. package/dist/pine-core/{p-12e537ba.system.entry.js → p-cd001902.system.entry.js} +2 -2
  272. package/dist/pine-core/p-d1038811.entry.js +2 -0
  273. package/dist/pine-core/p-d1038811.entry.js.map +1 -0
  274. package/dist/pine-core/{p-edbc3b8d.entry.js → p-d1972e4b.entry.js} +2 -2
  275. package/dist/pine-core/{p-0af86d62.entry.js → p-da9c79a4.entry.js} +2 -2
  276. package/dist/pine-core/{p-825cdc06.entry.js → p-db38d613.entry.js} +2 -2
  277. package/dist/pine-core/{p-5ffec55d.system.js → p-e55f6789.system.js} +1 -1
  278. package/dist/pine-core/p-e55f6789.system.js.map +1 -0
  279. package/dist/pine-core/{p-ec56491f.system.entry.js → p-f1086b10.system.entry.js} +2 -2
  280. package/dist/pine-core/p-f3f00b4b.system.entry.js +2 -0
  281. package/dist/pine-core/pine-core.esm.js +1 -1
  282. package/dist/pine-core/pine-core.esm.js.map +1 -1
  283. package/dist/pine-core/pine-core.js +1 -1
  284. package/dist/pine-core/svg/bulb.svg +1 -0
  285. package/dist/pine-core/svg/course-filled.svg +1 -0
  286. package/dist/pine-core/svg/hd-video.svg +1 -1
  287. package/dist/pine-core/svg/mail.svg +1 -1
  288. package/dist/pine-core/svg/one-off-session.svg +1 -1
  289. package/dist/pine-core/svg/users-filled.svg +1 -0
  290. package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +4 -1
  291. package/dist/types/components/pds-loader/pds-loader.d.ts +24 -0
  292. package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +1 -1
  293. package/dist/types/components/pds-table/pds-table-head/pds-table-head.d.ts +18 -1
  294. package/dist/types/components/pds-table/pds-table-head-cell/pds-table-head-cell.d.ts +5 -1
  295. package/dist/types/components/pds-table/pds-table-row/pds-table-row.d.ts +12 -6
  296. package/dist/types/components/pds-table/pds-table.d.ts +21 -1
  297. package/dist/types/components.d.ts +133 -1
  298. package/dist/types/utils/closest.d.ts +1 -0
  299. package/package.json +1 -1
  300. package/components/custom-elements.d.ts +0 -2
  301. package/components/index.d.ts +0 -92
  302. package/components/index.js +0 -32
  303. package/components/index.js.map +0 -1
  304. package/components/index2.js.map +0 -1
  305. package/components/package.json +0 -9
  306. package/components/pds-accordion.d.ts +0 -11
  307. package/components/pds-accordion.js +0 -68
  308. package/components/pds-accordion.js.map +0 -1
  309. package/components/pds-avatar.d.ts +0 -11
  310. package/components/pds-avatar.js +0 -103
  311. package/components/pds-avatar.js.map +0 -1
  312. package/components/pds-box.d.ts +0 -11
  313. package/components/pds-box.js +0 -124
  314. package/components/pds-box.js.map +0 -1
  315. package/components/pds-button.d.ts +0 -11
  316. package/components/pds-button.js +0 -8
  317. package/components/pds-button.js.map +0 -1
  318. package/components/pds-button2.js +0 -84
  319. package/components/pds-button2.js.map +0 -1
  320. package/components/pds-checkbox.d.ts +0 -11
  321. package/components/pds-checkbox.js +0 -8
  322. package/components/pds-checkbox.js.map +0 -1
  323. package/components/pds-checkbox2.js +0 -86
  324. package/components/pds-checkbox2.js.map +0 -1
  325. package/components/pds-chip.d.ts +0 -11
  326. package/components/pds-chip.js +0 -78
  327. package/components/pds-chip.js.map +0 -1
  328. package/components/pds-copytext.d.ts +0 -11
  329. package/components/pds-copytext.js +0 -88
  330. package/components/pds-copytext.js.map +0 -1
  331. package/components/pds-divider.d.ts +0 -11
  332. package/components/pds-divider.js +0 -54
  333. package/components/pds-divider.js.map +0 -1
  334. package/components/pds-icon.js +0 -8
  335. package/components/pds-icon.js.map +0 -1
  336. package/components/pds-icon2.js +0 -359
  337. package/components/pds-icon2.js.map +0 -1
  338. package/components/pds-image.d.ts +0 -11
  339. package/components/pds-image.js +0 -55
  340. package/components/pds-image.js.map +0 -1
  341. package/components/pds-input.d.ts +0 -11
  342. package/components/pds-input.js +0 -72
  343. package/components/pds-input.js.map +0 -1
  344. package/components/pds-label.js +0 -39
  345. package/components/pds-label.js.map +0 -1
  346. package/components/pds-link.d.ts +0 -11
  347. package/components/pds-link.js +0 -65
  348. package/components/pds-link.js.map +0 -1
  349. package/components/pds-progress.d.ts +0 -11
  350. package/components/pds-progress.js +0 -49
  351. package/components/pds-progress.js.map +0 -1
  352. package/components/pds-radio.d.ts +0 -11
  353. package/components/pds-radio.js +0 -78
  354. package/components/pds-radio.js.map +0 -1
  355. package/components/pds-row.d.ts +0 -11
  356. package/components/pds-row.js +0 -72
  357. package/components/pds-row.js.map +0 -1
  358. package/components/pds-sortable-item.d.ts +0 -11
  359. package/components/pds-sortable-item.js +0 -58
  360. package/components/pds-sortable-item.js.map +0 -1
  361. package/components/pds-sortable.d.ts +0 -11
  362. package/components/pds-sortable.js +0 -2722
  363. package/components/pds-sortable.js.map +0 -1
  364. package/components/pds-switch.d.ts +0 -11
  365. package/components/pds-switch.js +0 -82
  366. package/components/pds-switch.js.map +0 -1
  367. package/components/pds-tab.d.ts +0 -11
  368. package/components/pds-tab.js +0 -53
  369. package/components/pds-tab.js.map +0 -1
  370. package/components/pds-table-body.d.ts +0 -11
  371. package/components/pds-table-body.js +0 -36
  372. package/components/pds-table-body.js.map +0 -1
  373. package/components/pds-table-cell.d.ts +0 -11
  374. package/components/pds-table-cell.js +0 -8
  375. package/components/pds-table-cell.js.map +0 -1
  376. package/components/pds-table-cell2.js.map +0 -1
  377. package/components/pds-table-head-cell.d.ts +0 -11
  378. package/components/pds-table-head-cell.js +0 -8
  379. package/components/pds-table-head-cell.js.map +0 -1
  380. package/components/pds-table-head-cell2.js +0 -96
  381. package/components/pds-table-head-cell2.js.map +0 -1
  382. package/components/pds-table-head.d.ts +0 -11
  383. package/components/pds-table-head.js +0 -56
  384. package/components/pds-table-head.js.map +0 -1
  385. package/components/pds-table-row.d.ts +0 -11
  386. package/components/pds-table-row.js +0 -78
  387. package/components/pds-table-row.js.map +0 -1
  388. package/components/pds-table.d.ts +0 -11
  389. package/components/pds-table.js +0 -100
  390. package/components/pds-table.js.map +0 -1
  391. package/components/pds-tabpanel.d.ts +0 -11
  392. package/components/pds-tabpanel.js +0 -45
  393. package/components/pds-tabpanel.js.map +0 -1
  394. package/components/pds-tabs.d.ts +0 -11
  395. package/components/pds-tabs.js +0 -119
  396. package/components/pds-tabs.js.map +0 -1
  397. package/components/pds-textarea.d.ts +0 -11
  398. package/components/pds-textarea.js +0 -82
  399. package/components/pds-textarea.js.map +0 -1
  400. package/components/pds-tooltip.d.ts +0 -11
  401. package/components/pds-tooltip.js +0 -178
  402. package/components/pds-tooltip.js.map +0 -1
  403. package/dist/cjs/index-33465846.js.map +0 -1
  404. package/dist/cjs/index-7d9c71f6.js.map +0 -1
  405. package/dist/cjs/pds-checkbox_2.cjs.entry.js +0 -112
  406. package/dist/cjs/pds-checkbox_2.cjs.entry.js.map +0 -1
  407. package/dist/esm/index-6f0bb1b9.js.map +0 -1
  408. package/dist/esm/index-bdeab80c.js +0 -14
  409. package/dist/esm/index-bdeab80c.js.map +0 -1
  410. package/dist/esm/pds-checkbox_2.entry.js +0 -107
  411. package/dist/esm/pds-checkbox_2.entry.js.map +0 -1
  412. package/dist/esm-es5/index-6f0bb1b9.js +0 -3
  413. package/dist/esm-es5/index-6f0bb1b9.js.map +0 -1
  414. package/dist/esm-es5/index-bdeab80c.js.map +0 -1
  415. package/dist/esm-es5/pds-checkbox_2.entry.js +0 -2
  416. package/dist/esm-es5/pds-checkbox_2.entry.js.map +0 -1
  417. package/dist/pine-core/p-0a1e2528.system.entry.js +0 -2
  418. package/dist/pine-core/p-0a1e2528.system.entry.js.map +0 -1
  419. package/dist/pine-core/p-0a636312.system.entry.js +0 -2
  420. package/dist/pine-core/p-0a636312.system.entry.js.map +0 -1
  421. package/dist/pine-core/p-1330a135.entry.js.map +0 -1
  422. package/dist/pine-core/p-16e9d55b.entry.js +0 -2
  423. package/dist/pine-core/p-16e9d55b.entry.js.map +0 -1
  424. package/dist/pine-core/p-209bc3fd.entry.js +0 -2
  425. package/dist/pine-core/p-2f77dbd3.js +0 -3
  426. package/dist/pine-core/p-2f77dbd3.js.map +0 -1
  427. package/dist/pine-core/p-3caa5870.system.entry.js +0 -2
  428. package/dist/pine-core/p-3caa5870.system.entry.js.map +0 -1
  429. package/dist/pine-core/p-49a28a19.system.entry.js +0 -2
  430. package/dist/pine-core/p-5f2b3f57.entry.js +0 -2
  431. package/dist/pine-core/p-5f2b3f57.entry.js.map +0 -1
  432. package/dist/pine-core/p-5ffec55d.system.js.map +0 -1
  433. package/dist/pine-core/p-61ab207f.entry.js +0 -2
  434. package/dist/pine-core/p-61ab207f.entry.js.map +0 -1
  435. package/dist/pine-core/p-6370aa12.system.entry.js +0 -2
  436. package/dist/pine-core/p-6370aa12.system.entry.js.map +0 -1
  437. package/dist/pine-core/p-64b4cb70.system.js +0 -3
  438. package/dist/pine-core/p-64b4cb70.system.js.map +0 -1
  439. package/dist/pine-core/p-7611d073.system.js +0 -2
  440. package/dist/pine-core/p-7611d073.system.js.map +0 -1
  441. package/dist/pine-core/p-87c2ac18.entry.js +0 -2
  442. package/dist/pine-core/p-87c2ac18.entry.js.map +0 -1
  443. package/dist/pine-core/p-afdfadb0.entry.js +0 -2
  444. package/dist/pine-core/p-b7897f94.js.map +0 -1
  445. package/dist/pine-core/p-bc1cb8e2.entry.js +0 -2
  446. package/dist/pine-core/p-bc3782a0.entry.js.map +0 -1
  447. package/dist/pine-core/p-d99998a4.system.entry.js.map +0 -1
  448. package/dist/pine-core/p-e4f30321.js +0 -2
  449. package/dist/pine-core/p-ecbf0b15.system.entry.js +0 -2
  450. package/dist/pine-core/p-ecbf0b15.system.entry.js.map +0 -1
  451. package/hydrate/index.d.ts +0 -218
  452. package/hydrate/index.js +0 -13114
  453. package/hydrate/package.json +0 -6
  454. /package/dist/esm-es5/{pds-label-d7e11551.js.map → pds-label-bea9ee54.js.map} +0 -0
  455. /package/dist/pine-core/{p-320e4c53.system.entry.js.map → p-038065cf.system.entry.js.map} +0 -0
  456. /package/dist/pine-core/{p-dacd68cf.system.entry.js.map → p-0f3ceb6c.system.entry.js.map} +0 -0
  457. /package/dist/pine-core/{p-7f917c20.entry.js.map → p-1618833a.entry.js.map} +0 -0
  458. /package/dist/pine-core/{p-ff9044ed.entry.js.map → p-1775b56f.entry.js.map} +0 -0
  459. /package/dist/pine-core/{p-65a167b8.entry.js.map → p-19b44f85.entry.js.map} +0 -0
  460. /package/dist/pine-core/{p-c721d912.system.entry.js.map → p-1a03a25f.system.entry.js.map} +0 -0
  461. /package/dist/pine-core/{p-4d4bea0a.entry.js.map → p-23d24773.entry.js.map} +0 -0
  462. /package/dist/pine-core/{p-478689a0.system.entry.js.map → p-286189e0.system.entry.js.map} +0 -0
  463. /package/dist/pine-core/{p-bc1cb8e2.entry.js.map → p-30dfdfdd.entry.js.map} +0 -0
  464. /package/dist/pine-core/{p-2e19ec3d.system.entry.js.map → p-319ced45.system.entry.js.map} +0 -0
  465. /package/dist/pine-core/{p-2af2432d.system.entry.js.map → p-34a4c5ff.system.entry.js.map} +0 -0
  466. /package/dist/pine-core/{p-e43fd36e.entry.js.map → p-3648779f.entry.js.map} +0 -0
  467. /package/dist/pine-core/{p-3e527956.system.entry.js.map → p-3f78956d.system.entry.js.map} +0 -0
  468. /package/dist/pine-core/{p-8c5e76d4.system.entry.js.map → p-4283f600.system.entry.js.map} +0 -0
  469. /package/dist/pine-core/{p-019edcbb.entry.js.map → p-42cccfec.entry.js.map} +0 -0
  470. /package/dist/pine-core/{p-77da68b4.system.entry.js.map → p-473037f0.system.entry.js.map} +0 -0
  471. /package/dist/pine-core/{p-bb099830.system.entry.js.map → p-4da18aac.system.entry.js.map} +0 -0
  472. /package/dist/pine-core/{p-30cb97ee.system.entry.js.map → p-5b032eb0.system.entry.js.map} +0 -0
  473. /package/dist/pine-core/{p-9f8a1aa6.entry.js.map → p-5bcbdba7.entry.js.map} +0 -0
  474. /package/dist/pine-core/{p-380e465b.entry.js.map → p-5ec5e6cc.entry.js.map} +0 -0
  475. /package/dist/pine-core/{p-9e33f4fb.system.entry.js.map → p-60953292.system.entry.js.map} +0 -0
  476. /package/dist/pine-core/{p-bd5135c3.entry.js.map → p-6663628f.entry.js.map} +0 -0
  477. /package/dist/pine-core/{p-8144b8d8.system.entry.js.map → p-689137e6.system.entry.js.map} +0 -0
  478. /package/dist/pine-core/{p-e4f30321.js.map → p-6faa8c75.js.map} +0 -0
  479. /package/dist/pine-core/{p-30ca2db1.entry.js.map → p-7bf40997.entry.js.map} +0 -0
  480. /package/dist/pine-core/{p-cf147dfc.system.entry.js.map → p-7ef962b2.system.entry.js.map} +0 -0
  481. /package/dist/pine-core/{p-43783da1.system.entry.js.map → p-80024a08.system.entry.js.map} +0 -0
  482. /package/dist/pine-core/{p-5073b1c0.entry.js.map → p-8dd63189.entry.js.map} +0 -0
  483. /package/dist/pine-core/{p-327e1afa.system.entry.js.map → p-9028ed17.system.entry.js.map} +0 -0
  484. /package/dist/pine-core/{p-0ec12306.system.js.map → p-927733f2.system.js.map} +0 -0
  485. /package/dist/pine-core/{p-2250dc45.entry.js.map → p-999c240c.entry.js.map} +0 -0
  486. /package/dist/pine-core/{p-78ae6c93.system.entry.js.map → p-a4150f66.system.entry.js.map} +0 -0
  487. /package/dist/pine-core/{p-5f9fa644.system.entry.js.map → p-a5a0ced9.system.entry.js.map} +0 -0
  488. /package/dist/pine-core/{p-564e8159.entry.js.map → p-b2b8070b.entry.js.map} +0 -0
  489. /package/dist/pine-core/{p-4f7ee11c.entry.js.map → p-b5ad8600.entry.js.map} +0 -0
  490. /package/dist/pine-core/{p-51651124.entry.js.map → p-b924a6f7.entry.js.map} +0 -0
  491. /package/dist/pine-core/{p-209bc3fd.entry.js.map → p-ccbff59d.entry.js.map} +0 -0
  492. /package/dist/pine-core/{p-12e537ba.system.entry.js.map → p-cd001902.system.entry.js.map} +0 -0
  493. /package/dist/pine-core/{p-edbc3b8d.entry.js.map → p-d1972e4b.entry.js.map} +0 -0
  494. /package/dist/pine-core/{p-0af86d62.entry.js.map → p-da9c79a4.entry.js.map} +0 -0
  495. /package/dist/pine-core/{p-825cdc06.entry.js.map → p-db38d613.entry.js.map} +0 -0
  496. /package/dist/pine-core/{p-ec56491f.system.entry.js.map → p-f1086b10.system.entry.js.map} +0 -0
  497. /package/dist/pine-core/{p-49a28a19.system.entry.js.map → p-f3f00b4b.system.entry.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"names":["pdsTableHeadCellCss","PdsTableHeadCellStyle0","PdsTableHeadCell","this","handleScroll","tableRef","scrollLeft","tableScrolling","toggleSort","sortable","column","hostElement","innerText","trim","sortingDirection","querySelectorAll","forEach","headCell","classList","remove","toggle","pdsTableSort","emit","direction","componentWillRender","closest","componentDidLoad","responsive","fixedColumn","addEventListener","classNames","compact","push","join","render","h","Host","key","class","role","onClick","style","selectable","icon","upSmall","downSmall"],"sources":["src/components/pds-table/pds-table-head-cell/pds-table-head-cell.scss?tag=pds-table-head-cell&encapsulation=shadow","src/components/pds-table/pds-table-head-cell/pds-table-head-cell.tsx"],"sourcesContent":[":host {\n --border-head-cell-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n\n --box-shadow-default: 3px 3px 6px -2px rgba(0, 0, 0, 0.1);\n\n --color-background-fixed: var(--pine-color-white);\n --color-sorting: var(--pine-color-charcoal-500);\n --color-text-default: var(--pine-color-charcoal-200);\n\n --dimension-fixed-cell-position: 0;\n\n --font-size-head-cell: var(--pine-font-size-087);\n --font-weight-cell-default: var(--pine-font-weight-normal);\n\n --line-height-cell-default: var(--pine-line-height-125);\n\n --padding-cell-default: calc(var(--pine-spacing-300) / 2);\n\n --spacing-margin-inline-start-arrow: var(--pine-spacing-050);\n --spacing-padding-arrow: calc(var(--pine-spacing-050) / 2);\n --spacing-padding-block-compact: var(--pine-spacing-050);\n\n border-block-end: var(--border-head-cell-default);\n color: var(--color-text-default);\n display: table-cell;\n font-size: var(--font-size-head-cell);\n font-style: normal;\n font-weight: var(--font-weight-cell-default);\n line-height: var(--line-height-cell-default);\n padding: var(--padding-cell-default);\n text-align: start;\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--spacing-padding-block-compact)\n}\n\n:host(.is-fixed) {\n background: var(--color-background-fixed);\n left: var(--dimension-fixed-cell-position);\n position: sticky;\n z-index: 1;\n}\n\n// box shadow when table has scrolled and cell is fixed\n:host(.has-scrolled.is-fixed) {\n box-shadow: var(--box-shadow-default);\n}\n\n:host(.is-sortable) {\n cursor: pointer;\n\n pds-icon {\n margin-inline-start: var(--spacing-margin-inline-start-arrow);\n padding-block-start: var(--spacing-padding-arrow);\n position: absolute;\n }\n}\n\n:host(.is-sortable:hover),\n:host(.is-active) {\n color: var(--color-sorting);\n}\n","import { Component, Element, Host, Prop, h, Event, EventEmitter, State } from '@stencil/core';\n\nimport { downSmall, upSmall } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-table-head-cell',\n styleUrl: 'pds-table-head-cell.scss',\n shadow: true,\n})\nexport class PdsTableHeadCell {\n @Element() hostElement: HTMLPdsTableHeadCellElement;\n tableRef: HTMLPdsTableElement;\n\n /**\n * Determines whether the table column is sortable when set to `true`.\n */\n @Prop() sortable: boolean;\n\n /**\n * Event emitted to signal that a table column header has been sorted, providing information about the sorted column's name and sorting direction.\n */\n @Event() pdsTableSort: EventEmitter<{ column: string; direction: string }>;\n\n @State() private sortingDirection: 'asc' | 'desc' = 'asc';\n @State() private tableScrolling: boolean = false;\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n this.tableRef.addEventListener('scroll', this.handleScroll);\n }\n }\n\n private handleScroll = () => {\n if (this.tableRef.scrollLeft > 0) {\n this.tableScrolling = true;\n } else {\n this.tableScrolling = false;\n }\n };\n\n private toggleSort = () => {\n if (this.sortable) {\n const column = this.hostElement.innerText.trim();\n this.sortingDirection = this.sortingDirection === 'asc' ? 'desc' : 'asc';\n\n this.tableRef.querySelectorAll('pds-table-head-cell').forEach((headCell) => {\n headCell.classList.remove('is-active');\n });\n\n this.hostElement.classList.toggle('is-active');\n this.pdsTableSort.emit({ column, direction: this.sortingDirection });\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.sortable) {\n classNames.push('is-sortable');\n }\n\n if (this.sortable && this.sortingDirection !== null) {\n classNames.push('sort-' + this.sortingDirection);\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"columnheader\"\n onClick={this.toggleSort}\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n {this.sortable && (\n <pds-icon icon={this.sortingDirection === 'asc' ? upSmall : downSmall} />\n )}\n </Host>\n );\n }\n}\n"],"mappings":"2GAAA,MAAMA,EAAsB,mxDAC5B,MAAAC,EAAeD,E,MCQFE,EAAgB,M,oEA2BnBC,KAAAC,aAAe,KACrB,GAAID,KAAKE,SAASC,WAAa,EAAG,CAChCH,KAAKI,eAAiB,I,KACjB,CACLJ,KAAKI,eAAiB,K,GAIlBJ,KAAAK,WAAa,KACnB,GAAIL,KAAKM,SAAU,CACjB,MAAMC,EAASP,KAAKQ,YAAYC,UAAUC,OAC1CV,KAAKW,iBAAmBX,KAAKW,mBAAqB,MAAQ,OAAS,MAEnEX,KAAKE,SAASU,iBAAiB,uBAAuBC,SAASC,IAC7DA,EAASC,UAAUC,OAAO,YAAY,IAGxChB,KAAKQ,YAAYO,UAAUE,OAAO,aAClCjB,KAAKkB,aAAaC,KAAK,CAAEZ,SAAQa,UAAWpB,KAAKW,kB,iDA/BD,M,oBACT,K,CAE3C,mBAAAU,GACErB,KAAKE,SAAWF,KAAKQ,YAAYc,QAAQ,Y,CAG3C,gBAAAC,GACE,GAAIvB,KAAKE,UAAYF,KAAKE,SAASsB,YAAcxB,KAAKE,SAASuB,YAAa,CAC1EzB,KAAKE,SAASwB,iBAAiB,SAAU1B,KAAKC,a,EA0B1C,UAAA0B,GACN,MAAMA,EAAa,GAEnB,GAAI3B,KAAKE,UAAYF,KAAKE,SAAS0B,QAAS,CAC1CD,EAAWE,KAAK,a,CAGlB,GAAI7B,KAAKM,SAAU,CACjBqB,EAAWE,KAAK,c,CAGlB,GAAI7B,KAAKM,UAAYN,KAAKW,mBAAqB,KAAM,CACnDgB,EAAWE,KAAK,QAAU7B,KAAKW,iB,CAGjC,GAAIX,KAAKE,UAAYF,KAAKE,SAASuB,aAAezB,KAAKI,eAAgB,CACrEuB,EAAWE,KAAK,e,CAGlB,OAAOF,EAAWG,KAAK,K,CAGzB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAOnC,KAAK2B,aACZS,KAAK,eACLC,QAASrC,KAAKK,WACdiC,MACEtC,KAAKE,UACLF,KAAKE,SAASuB,aACdzB,KAAKE,SAASqC,WACV,CAAE,wBAAyB,QAC3B,IAGNP,EAAA,QAAAE,IAAA,6CACClC,KAAKM,UACJ0B,EAAA,YAAAE,IAAA,2CAAUM,KAAMxC,KAAKW,mBAAqB,MAAQ8B,EAAUC,I"}
@@ -1 +0,0 @@
1
- {"version":3,"names":["pdsTableHeadCellCss","PdsTableHeadCellStyle0","PdsTableHeadCell","exports","this","handleScroll","_this","tableRef","scrollLeft","tableScrolling","toggleSort","sortable","column","hostElement","innerText","trim","sortingDirection","querySelectorAll","forEach","headCell","classList","remove","toggle","pdsTableSort","emit","direction","class_1","prototype","componentWillRender","closest","componentDidLoad","responsive","fixedColumn","addEventListener","classNames","compact","push","join","render","h","Host","key","class","role","onClick","style","selectable","icon","upSmall","downSmall"],"sources":["src/components/pds-table/pds-table-head-cell/pds-table-head-cell.scss?tag=pds-table-head-cell&encapsulation=shadow","src/components/pds-table/pds-table-head-cell/pds-table-head-cell.tsx"],"sourcesContent":[":host {\n --border-head-cell-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n\n --box-shadow-default: 3px 3px 6px -2px rgba(0, 0, 0, 0.1);\n\n --color-background-fixed: var(--pine-color-white);\n --color-sorting: var(--pine-color-charcoal-500);\n --color-text-default: var(--pine-color-charcoal-200);\n\n --dimension-fixed-cell-position: 0;\n\n --font-size-head-cell: var(--pine-font-size-087);\n --font-weight-cell-default: var(--pine-font-weight-normal);\n\n --line-height-cell-default: var(--pine-line-height-125);\n\n --padding-cell-default: calc(var(--pine-spacing-300) / 2);\n\n --spacing-margin-inline-start-arrow: var(--pine-spacing-050);\n --spacing-padding-arrow: calc(var(--pine-spacing-050) / 2);\n --spacing-padding-block-compact: var(--pine-spacing-050);\n\n border-block-end: var(--border-head-cell-default);\n color: var(--color-text-default);\n display: table-cell;\n font-size: var(--font-size-head-cell);\n font-style: normal;\n font-weight: var(--font-weight-cell-default);\n line-height: var(--line-height-cell-default);\n padding: var(--padding-cell-default);\n text-align: start;\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--spacing-padding-block-compact)\n}\n\n:host(.is-fixed) {\n background: var(--color-background-fixed);\n left: var(--dimension-fixed-cell-position);\n position: sticky;\n z-index: 1;\n}\n\n// box shadow when table has scrolled and cell is fixed\n:host(.has-scrolled.is-fixed) {\n box-shadow: var(--box-shadow-default);\n}\n\n:host(.is-sortable) {\n cursor: pointer;\n\n pds-icon {\n margin-inline-start: var(--spacing-margin-inline-start-arrow);\n padding-block-start: var(--spacing-padding-arrow);\n position: absolute;\n }\n}\n\n:host(.is-sortable:hover),\n:host(.is-active) {\n color: var(--color-sorting);\n}\n","import { Component, Element, Host, Prop, h, Event, EventEmitter, State } from '@stencil/core';\n\nimport { downSmall, upSmall } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-table-head-cell',\n styleUrl: 'pds-table-head-cell.scss',\n shadow: true,\n})\nexport class PdsTableHeadCell {\n @Element() hostElement: HTMLPdsTableHeadCellElement;\n tableRef: HTMLPdsTableElement;\n\n /**\n * Determines whether the table column is sortable when set to `true`.\n */\n @Prop() sortable: boolean;\n\n /**\n * Event emitted to signal that a table column header has been sorted, providing information about the sorted column's name and sorting direction.\n */\n @Event() pdsTableSort: EventEmitter<{ column: string; direction: string }>;\n\n @State() private sortingDirection: 'asc' | 'desc' = 'asc';\n @State() private tableScrolling: boolean = false;\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n this.tableRef.addEventListener('scroll', this.handleScroll);\n }\n }\n\n private handleScroll = () => {\n if (this.tableRef.scrollLeft > 0) {\n this.tableScrolling = true;\n } else {\n this.tableScrolling = false;\n }\n };\n\n private toggleSort = () => {\n if (this.sortable) {\n const column = this.hostElement.innerText.trim();\n this.sortingDirection = this.sortingDirection === 'asc' ? 'desc' : 'asc';\n\n this.tableRef.querySelectorAll('pds-table-head-cell').forEach((headCell) => {\n headCell.classList.remove('is-active');\n });\n\n this.hostElement.classList.toggle('is-active');\n this.pdsTableSort.emit({ column, direction: this.sortingDirection });\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.sortable) {\n classNames.push('is-sortable');\n }\n\n if (this.sortable && this.sortingDirection !== null) {\n classNames.push('sort-' + this.sortingDirection);\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"columnheader\"\n onClick={this.toggleSort}\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n {this.sortable && (\n <pds-icon icon={this.sortingDirection === 'asc' ? upSmall : downSmall} />\n )}\n </Host>\n );\n }\n}\n"],"mappings":"wNAAA,IAAMA,EAAsB,mxDAC5B,IAAAC,EAAeD,E,ICQFE,EAAgBC,EAAA,iC,8EA2BnBC,KAAAC,aAAe,WACrB,GAAIC,EAAKC,SAASC,WAAa,EAAG,CAChCF,EAAKG,eAAiB,I,KACjB,CACLH,EAAKG,eAAiB,K,GAIlBL,KAAAM,WAAa,WACnB,GAAIJ,EAAKK,SAAU,CACjB,IAAMC,EAASN,EAAKO,YAAYC,UAAUC,OAC1CT,EAAKU,iBAAmBV,EAAKU,mBAAqB,MAAQ,OAAS,MAEnEV,EAAKC,SAASU,iBAAiB,uBAAuBC,SAAQ,SAACC,GAC7DA,EAASC,UAAUC,OAAO,Y,IAG5Bf,EAAKO,YAAYO,UAAUE,OAAO,aAClChB,EAAKiB,aAAaC,KAAK,CAAEZ,OAAMA,EAAEa,UAAWnB,EAAKU,kB,iDA/BD,M,oBACT,K,CAE3CU,EAAAC,UAAAC,oBAAA,WACExB,KAAKG,SAAWH,KAAKS,YAAYgB,QAAQ,Y,EAG3CH,EAAAC,UAAAG,iBAAA,WACE,GAAI1B,KAAKG,UAAYH,KAAKG,SAASwB,YAAc3B,KAAKG,SAASyB,YAAa,CAC1E5B,KAAKG,SAAS0B,iBAAiB,SAAU7B,KAAKC,a,GA0B1CqB,EAAAC,UAAAO,WAAA,WACN,IAAMA,EAAa,GAEnB,GAAI9B,KAAKG,UAAYH,KAAKG,SAAS4B,QAAS,CAC1CD,EAAWE,KAAK,a,CAGlB,GAAIhC,KAAKO,SAAU,CACjBuB,EAAWE,KAAK,c,CAGlB,GAAIhC,KAAKO,UAAYP,KAAKY,mBAAqB,KAAM,CACnDkB,EAAWE,KAAK,QAAUhC,KAAKY,iB,CAGjC,GAAIZ,KAAKG,UAAYH,KAAKG,SAASyB,aAAe5B,KAAKK,eAAgB,CACrEyB,EAAWE,KAAK,e,CAGlB,OAAOF,EAAWG,KAAK,K,EAGzBX,EAAAC,UAAAW,OAAA,WACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAOtC,KAAK8B,aACZS,KAAK,eACLC,QAASxC,KAAKM,WACdmC,MACEzC,KAAKG,UACLH,KAAKG,SAASyB,aACd5B,KAAKG,SAASuC,WACV,CAAE,wBAAyB,QAC3B,IAGNP,EAAA,QAAAE,IAAA,6CACCrC,KAAKO,UACJ4B,EAAA,YAAAE,IAAA,2CAAUM,KAAM3C,KAAKY,mBAAqB,MAAQgC,EAAUC,I,gIAvFzC,I"}
@@ -1,2 +0,0 @@
1
- import{h as s}from"./p-2f77dbd3.js";const e=(s,e)=>`${s}__${e}-message`;const r=(s,r,t)=>{if(!t)return;let a=e(s,"helper");if(r)a=e(s,"error");return a};const t=(s,e)=>{if(!s||!e)return;if(e.required===true){s.checkValidity()===false?e.invalid=true:e.invalid=false}};const a=({classNames:e,htmlFor:r,text:t})=>s("label",{class:e,htmlFor:r},t);export{a as P,r as a,t as i,e as m};
2
- //# sourceMappingURL=p-e4f30321.js.map
@@ -1,2 +0,0 @@
1
- System.register(["./p-64b4cb70.system.js"],(function(t){"use strict";var e,r,a,o;return{setters:[function(t){e=t.r;r=t.h;a=t.H;o=t.g}],execute:function(){var n=":host{--color-background-default:var(--pine-color-white);background:var(--color-background-default);border-collapse:separate;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;width:100%}:host(.is-responsive){background-attachment:local, local, scroll, scroll;background-image:-webkit-gradient(linear, left top, right top, from(var(--color-background-default)), to(var(--color-background-default))), -webkit-gradient(linear, left top, right top, from(var(--color-background-default)), to(var(--color-background-default))), -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0))), -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0)));background-image:linear-gradient(to right, var(--color-background-default), var(--color-background-default)), linear-gradient(to right, var(--color-background-default), var(--color-background-default)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));background-position:left center, right center, left center, right center;background-repeat:no-repeat;background-size:4px 100%, 4px 100%, 4px 100%, 4px 100%;display:block;margin:0 auto;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;overflow-x:auto;white-space:nowrap}";var i=n;var l=t("pds_table",function(){function t(t){e(this,t);this.compact=undefined;this.componentId=undefined;this.responsive=undefined;this.fixedColumn=undefined;this.selectable=undefined;this.sortingColumn=null;this.sortingDirection="asc"}t.prototype.componentWillLoad=function(){this.sortingColumn=null};t.prototype.classNames=function(){var t=["pds-table"];if(this.compact){t.push("is-compact")}if(this.responsive){t.push("is-responsive")}return t.join(" ")};t.prototype.sortTable=function(t,e){var r=this.el.querySelector("pds-table-body");var a=Array.from(r.querySelectorAll("pds-table-row"));var o=Array.from(this.el.querySelectorAll("pds-table-head-cell[sortable]"));var n=o.find((function(e){return e.innerText.trim()===t}));if(!n){console.warn('Column "'.concat(t,'" not found.'));return}var i=o.indexOf(n);a.sort((function(t,r){var a=t.querySelector("pds-table-cell:nth-child(".concat(i+1,")")).textContent.trim();var o=r.querySelector("pds-table-cell:nth-child(".concat(i+1,")")).textContent.trim();if(e==="asc"){return a.localeCompare(o)}else{return o.localeCompare(a)}}));r.innerHTML="";a.forEach((function(t){r.appendChild(t)}))};t.prototype.handleTableSort=function(t){var e=t.detail.direction;this.sortTable(t.detail.column,e);this.sortingColumn=t.detail.column;this.sortingDirection=e};t.prototype.render=function(){return r(a,{key:"ce58b1bccc1ff7ee6e38198e63a19fd88f2877e6",class:this.classNames(),id:this.componentId,role:"grid",selectable:this.selectable},r("slot",{key:"b748a8befdd212d16c2e6780551a8c11b1843faf"}))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return t}());l.style=i}}}));
2
- //# sourceMappingURL=p-ecbf0b15.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["pdsTableCss","PdsTableStyle0","PdsTable","exports","class_1","prototype","componentWillLoad","this","sortingColumn","classNames","compact","push","responsive","join","sortTable","column","direction","tableBody","el","querySelector","tableRows","Array","from","querySelectorAll","columnHeaderCells","columnHeaderCell","find","cell","innerText","trim","console","warn","concat","columnIndex","indexOf","sort","a","b","valueA","textContent","valueB","localeCompare","innerHTML","forEach","row","appendChild","handleTableSort","event","detail","sortingDirection","render","h","Host","key","class","id","componentId","role","selectable"],"sources":["src/components/pds-table/pds-table.scss?tag=pds-table&encapsulation=shadow","src/components/pds-table/pds-table.tsx"],"sourcesContent":[":host {\n --color-background-default: var(--pine-color-white);\n\n background: var(--color-background-default);\n border-collapse: separate;\n box-sizing: border-box;\n display: table;\n width: 100%;\n}\n\n:host(.is-responsive) {\n background-attachment: local, local, scroll, scroll;\n background-image: linear-gradient(to right, var(--color-background-default), var(--color-background-default)),\n linear-gradient(to right, var(--color-background-default), var(--color-background-default)),\n linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)),\n linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));\n background-position: left center, right center, left center, right center;\n background-repeat: no-repeat;\n background-size: 4px 100%, 4px 100%, 4px 100%, 4px 100%;\n display: block;\n margin: 0 auto;\n max-width: fit-content;\n overflow-x: auto;\n white-space: nowrap;\n}\n","import { Component, Element, Host, h, Prop, State, Listen } from '@stencil/core';\n\n@Component({\n tag: 'pds-table',\n styleUrl: 'pds-table.scss',\n shadow: true,\n})\nexport class PdsTable {\n @Element() el: HTMLPdsTableElement;\n tableRef: HTMLElement;\n\n /**\n * Determines if table displays compact which reduces the spacing of table cells.\n */\n @Prop() compact: boolean;\n\n /**\n * A unique identifier used for the table `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Enables the table to be responsive by horizontally scrolling on smaller screens.\n */\n @Prop() responsive: boolean;\n\n /**\n * Determines if table displays fixed column which fixes the first column of the table.\n */\n @Prop() fixedColumn: boolean;\n\n /**\n * Determines if table displays checkboxes for selectable rows.\n */\n @Prop() selectable: boolean;\n\n @State() sortingColumn: string | null = null;\n @State() sortingDirection: 'asc' | 'desc' = 'asc';\n\n componentWillLoad() {\n this.sortingColumn = null;\n }\n\n private classNames() {\n const classNames = ['pds-table'];\n\n if (this.compact) {\n classNames.push('is-compact');\n }\n\n if (this.responsive) {\n classNames.push('is-responsive');\n }\n\n return classNames.join(' ');\n }\n\n private sortTable(column: string, direction: 'asc' | 'desc') {\n const tableBody = this.el.querySelector('pds-table-body');\n\n // Get the rows in the table body\n const tableRows = Array.from(tableBody.querySelectorAll('pds-table-row'));\n\n // Find the column index based on the column name\n const columnHeaderCells: HTMLElement[] = Array.from(\n this.el.querySelectorAll('pds-table-head-cell[sortable]')\n );\n\n const columnHeaderCell = columnHeaderCells.find(\n (cell) => cell.innerText.trim() === column\n );\n\n if (!columnHeaderCell) {\n console.warn(`Column \"${column}\" not found.`);\n return;\n }\n\n const columnIndex = columnHeaderCells.indexOf(columnHeaderCell);\n\n // Sort the rows based on the content of the specified column\n tableRows.sort((a, b) => {\n const valueA = a.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();\n const valueB = b.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();\n\n if (direction === 'asc') {\n return valueA.localeCompare(valueB);\n } else {\n return valueB.localeCompare(valueA);\n }\n });\n\n // Clear and append the sorted rows back to the table body\n tableBody.innerHTML = '';\n tableRows.forEach((row) => {\n tableBody.appendChild(row);\n });\n }\n\n @Listen('pdsTableSort')\n handleTableSort(event: CustomEvent<{ column: string; direction: 'asc' | 'desc' }>) {\n const { direction } = event.detail;\n this.sortTable(event.detail.column, direction);\n this.sortingColumn = event.detail.column;\n this.sortingDirection = direction;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n id={this.componentId}\n role=\"grid\"\n selectable={this.selectable}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"0JAAA,IAAMA,EAAc,u2CACpB,IAAAC,EAAeD,E,ICMFE,EAAQC,EAAA,uB,4KA6BqB,K,sBACI,K,CAE5CC,EAAAC,UAAAC,kBAAA,WACEC,KAAKC,cAAgB,I,EAGfJ,EAAAC,UAAAI,WAAA,WACN,IAAMA,EAAa,CAAC,aAEpB,GAAIF,KAAKG,QAAS,CAChBD,EAAWE,KAAK,a,CAGlB,GAAIJ,KAAKK,WAAY,CACnBH,EAAWE,KAAK,gB,CAGlB,OAAOF,EAAWI,KAAK,K,EAGjBT,EAAAC,UAAAS,UAAA,SAAUC,EAAgBC,GAChC,IAAMC,EAAYV,KAAKW,GAAGC,cAAc,kBAGxC,IAAMC,EAAYC,MAAMC,KAAKL,EAAUM,iBAAiB,kBAGxD,IAAMC,EAAmCH,MAAMC,KAC7Cf,KAAKW,GAAGK,iBAAiB,kCAG3B,IAAME,EAAmBD,EAAkBE,MACzC,SAACC,GAAS,OAAAA,EAAKC,UAAUC,SAAWd,CAA1B,IAGZ,IAAKU,EAAkB,CACrBK,QAAQC,KAAK,WAAAC,OAAWjB,EAAM,iBAC9B,M,CAGF,IAAMkB,EAAcT,EAAkBU,QAAQT,GAG9CL,EAAUe,MAAK,SAACC,EAAGC,GACjB,IAAMC,EAASF,EAAEjB,cAAc,4BAAAa,OAA4BC,EAAc,EAAC,MAAKM,YAAYV,OAC3F,IAAMW,EAASH,EAAElB,cAAc,4BAAAa,OAA4BC,EAAc,EAAC,MAAKM,YAAYV,OAE3F,GAAIb,IAAc,MAAO,CACvB,OAAOsB,EAAOG,cAAcD,E,KACvB,CACL,OAAOA,EAAOC,cAAcH,E,KAKhCrB,EAAUyB,UAAY,GACtBtB,EAAUuB,SAAQ,SAACC,GACjB3B,EAAU4B,YAAYD,E,KAK1BxC,EAAAC,UAAAyC,gBAAA,SAAgBC,GACN,IAAA/B,EAAc+B,EAAMC,OAAMhC,UAClCT,KAAKO,UAAUiC,EAAMC,OAAOjC,OAAQC,GACpCT,KAAKC,cAAgBuC,EAAMC,OAAOjC,OAClCR,KAAK0C,iBAAmBjC,C,EAG1BZ,EAAAC,UAAA6C,OAAA,WACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAO/C,KAAKE,aACZ8C,GAAIhD,KAAKiD,YACTC,KAAK,OACLC,WAAYnD,KAAKmD,YAEjBP,EAAA,QAAAE,IAAA,6C,uHA3Ga,I"}
@@ -1,218 +0,0 @@
1
- // Generated by dts-bundle-generator v9.3.1
2
-
3
- export declare function createWindowFromHtml(templateHtml: string, uniqueId: string): any;
4
- export interface HydrateDocumentOptions {
5
- /**
6
- * Build ID that will be added to `<html data-stencil-build="BUILD_ID">`. By default
7
- * a random ID will be generated
8
- */
9
- buildId?: string;
10
- /**
11
- * Sets the `href` attribute on the `<link rel="canonical">`
12
- * tag within the `<head>`. If the value is not defined it will
13
- * ensure a canonical link tag is no included in the `<head>`.
14
- */
15
- canonicalUrl?: string;
16
- /**
17
- * Include the HTML comments and attributes used by the client-side
18
- * JavaScript to read the structure of the HTML and rebuild each
19
- * component. Defaults to `true`.
20
- */
21
- clientHydrateAnnotations?: boolean;
22
- /**
23
- * Constrain `setTimeout()` to 1ms, but still async. Also
24
- * only allows `setInterval()` to fire once, also constrained to 1ms.
25
- * Defaults to `true`.
26
- */
27
- constrainTimeouts?: boolean;
28
- /**
29
- * Sets `document.cookie`
30
- */
31
- cookie?: string;
32
- /**
33
- * Sets the `dir` attribute on the top level `<html>`.
34
- */
35
- direction?: string;
36
- /**
37
- * Component tag names listed here will not be prerendered, nor will
38
- * hydrated on the client-side. Components listed here will be ignored
39
- * as custom elements and treated no differently than a `<div>`.
40
- */
41
- excludeComponents?: string[];
42
- /**
43
- * Sets the `lang` attribute on the top level `<html>`.
44
- */
45
- language?: string;
46
- /**
47
- * Maximum number of components to hydrate on one page. Defaults to `300`.
48
- */
49
- maxHydrateCount?: number;
50
- /**
51
- * Sets `document.referrer`
52
- */
53
- referrer?: string;
54
- /**
55
- * Removes every `<script>` element found in the `document`. Defaults to `false`.
56
- */
57
- removeScripts?: boolean;
58
- /**
59
- * Removes CSS not used by elements within the `document`. Defaults to `true`.
60
- */
61
- removeUnusedStyles?: boolean;
62
- /**
63
- * The url the runtime uses for the resources, such as the assets directory.
64
- */
65
- resourcesUrl?: string;
66
- /**
67
- * Prints out runtime console logs to the NodeJS process. Defaults to `false`.
68
- */
69
- runtimeLogging?: boolean;
70
- /**
71
- * Component tags listed here will only be prerendered or server-side-rendered
72
- * and will not be client-side hydrated. This is useful for components that
73
- * are not dynamic and do not need to be defined as a custom element within the
74
- * browser. For example, a header or footer component would be a good example that
75
- * may not require any client-side JavaScript.
76
- */
77
- staticComponents?: string[];
78
- /**
79
- * The amount of milliseconds to wait for a page to finish rendering until
80
- * a timeout error is thrown. Defaults to `15000`.
81
- */
82
- timeout?: number;
83
- /**
84
- * Sets `document.title`.
85
- */
86
- title?: string;
87
- /**
88
- * Sets `location.href`
89
- */
90
- url?: string;
91
- /**
92
- * Sets `navigator.userAgent`
93
- */
94
- userAgent?: string;
95
- }
96
- export interface SerializeDocumentOptions extends HydrateDocumentOptions {
97
- /**
98
- * Runs after the `document` has been hydrated.
99
- */
100
- afterHydrate?(document: any): any | Promise<any>;
101
- /**
102
- * Sets an approximate line width the HTML should attempt to stay within.
103
- * Note that this is "approximate", in that HTML may often not be able
104
- * to be split at an exact line width. Additionally, new lines created
105
- * is where HTML naturally already has whitespace, such as before an
106
- * attribute or spaces between words. Defaults to `100`.
107
- */
108
- approximateLineWidth?: number;
109
- /**
110
- * Runs before the `document` has been hydrated.
111
- */
112
- beforeHydrate?(document: any): any | Promise<any>;
113
- /**
114
- * Format the HTML in a nicely indented format.
115
- * Defaults to `false`.
116
- */
117
- prettyHtml?: boolean;
118
- /**
119
- * Remove quotes from attribute values when possible.
120
- * Defaults to `true`.
121
- */
122
- removeAttributeQuotes?: boolean;
123
- /**
124
- * Remove the `=""` from standardized `boolean` attributes,
125
- * such as `hidden` or `checked`. Defaults to `true`.
126
- */
127
- removeBooleanAttributeQuotes?: boolean;
128
- /**
129
- * Remove these standardized attributes when their value is empty:
130
- * `class`, `dir`, `id`, `lang`, and `name`, `title`. Defaults to `true`.
131
- */
132
- removeEmptyAttributes?: boolean;
133
- /**
134
- * Remove HTML comments. Defaults to `true`.
135
- */
136
- removeHtmlComments?: boolean;
137
- }
138
- export interface HydrateFactoryOptions extends SerializeDocumentOptions {
139
- serializeToHtml: boolean;
140
- destroyWindow: boolean;
141
- destroyDocument: boolean;
142
- }
143
- export interface Diagnostic {
144
- absFilePath?: string | undefined;
145
- code?: string;
146
- columnNumber?: number | undefined;
147
- debugText?: string;
148
- header?: string;
149
- language?: string;
150
- level: "error" | "warn" | "info" | "log" | "debug";
151
- lineNumber?: number | undefined;
152
- lines: PrintLine[];
153
- messageText: string;
154
- relFilePath?: string | undefined;
155
- type: string;
156
- }
157
- export interface PrintLine {
158
- lineIndex: number;
159
- lineNumber: number;
160
- text: string;
161
- errorCharStart: number;
162
- errorLength?: number;
163
- }
164
- export interface HydrateResults {
165
- buildId: string;
166
- diagnostics: Diagnostic[];
167
- url: string;
168
- host: string;
169
- hostname: string;
170
- href: string;
171
- port: string;
172
- pathname: string;
173
- search: string;
174
- hash: string;
175
- html: string;
176
- components: HydrateComponent[];
177
- anchors: HydrateAnchorElement[];
178
- imgs: HydrateImgElement[];
179
- scripts: HydrateScriptElement[];
180
- styles: HydrateStyleElement[];
181
- staticData: HydrateStaticData[];
182
- title: string;
183
- hydratedCount: number;
184
- httpStatus: number;
185
- }
186
- export interface HydrateComponent {
187
- tag: string;
188
- mode: string;
189
- count: number;
190
- depth: number;
191
- }
192
- export interface HydrateElement {
193
- [attrName: string]: string | undefined;
194
- }
195
- export interface HydrateAnchorElement extends HydrateElement {
196
- href?: string;
197
- target?: string;
198
- }
199
- export interface HydrateImgElement extends HydrateElement {
200
- src?: string;
201
- }
202
- export interface HydrateScriptElement extends HydrateElement {
203
- src?: string;
204
- type?: string;
205
- }
206
- export interface HydrateStyleElement extends HydrateElement {
207
- href?: string;
208
- }
209
- export interface HydrateStaticData {
210
- id: string;
211
- type: string;
212
- content: string;
213
- }
214
- export declare function renderToString(html: string | any, options?: SerializeDocumentOptions): Promise<HydrateResults>;
215
- export declare function hydrateDocument(doc: any | string, options?: HydrateDocumentOptions): Promise<HydrateResults>;
216
- export declare function serializeDocumentToString(doc: any, opts: HydrateFactoryOptions): string;
217
-
218
- export {};