@pine-ds/core 1.3.0-dev.2 → 1.3.0-dev.4

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 (631) hide show
  1. package/components/closest.js +11 -0
  2. package/components/closest.js.map +1 -0
  3. package/components/index.js +33 -0
  4. package/components/index.js.map +1 -0
  5. package/components/index2.js +14 -0
  6. package/components/index2.js.map +1 -0
  7. package/components/pds-accordion.js +62 -0
  8. package/components/pds-accordion.js.map +1 -0
  9. package/components/pds-avatar.js +97 -0
  10. package/components/pds-avatar.js.map +1 -0
  11. package/components/pds-box.js +124 -0
  12. package/components/pds-box.js.map +1 -0
  13. package/components/pds-button.js +8 -0
  14. package/components/pds-button.js.map +1 -0
  15. package/components/pds-button2.js +78 -0
  16. package/components/pds-button2.js.map +1 -0
  17. package/components/pds-checkbox.js +8 -0
  18. package/components/pds-checkbox.js.map +1 -0
  19. package/components/pds-checkbox2.js +101 -0
  20. package/components/pds-checkbox2.js.map +1 -0
  21. package/components/pds-chip.js +72 -0
  22. package/components/pds-chip.js.map +1 -0
  23. package/components/pds-copytext.js +82 -0
  24. package/components/pds-copytext.js.map +1 -0
  25. package/components/pds-divider.js +54 -0
  26. package/components/pds-divider.js.map +1 -0
  27. package/components/pds-image.js +55 -0
  28. package/components/pds-image.js.map +1 -0
  29. package/components/pds-input.js +72 -0
  30. package/components/pds-input.js.map +1 -0
  31. package/components/pds-label.js +39 -0
  32. package/components/pds-label.js.map +1 -0
  33. package/components/pds-link.js +59 -0
  34. package/components/pds-link.js.map +1 -0
  35. package/components/pds-loader.js +68 -0
  36. package/components/pds-loader.js.map +1 -0
  37. package/components/pds-progress.js +49 -0
  38. package/components/pds-progress.js.map +1 -0
  39. package/components/pds-radio.js +78 -0
  40. package/components/pds-radio.js.map +1 -0
  41. package/components/pds-row.js +72 -0
  42. package/components/pds-row.js.map +1 -0
  43. package/components/pds-sortable-item.js +52 -0
  44. package/components/pds-sortable-item.js.map +1 -0
  45. package/components/pds-sortable.js +2722 -0
  46. package/components/pds-sortable.js.map +1 -0
  47. package/components/pds-switch.js +82 -0
  48. package/components/pds-switch.js.map +1 -0
  49. package/components/pds-tab.js +53 -0
  50. package/components/pds-tab.js.map +1 -0
  51. package/components/pds-table-body.js +36 -0
  52. package/components/pds-table-body.js.map +1 -0
  53. package/components/pds-table-cell.js +8 -0
  54. package/components/pds-table-cell.js.map +1 -0
  55. package/components/pds-table-cell2.js +72 -0
  56. package/components/pds-table-cell2.js.map +1 -0
  57. package/components/pds-table-head-cell.js +8 -0
  58. package/components/pds-table-head-cell.js.map +1 -0
  59. package/components/pds-table-head-cell2.js +92 -0
  60. package/components/pds-table-head-cell2.js.map +1 -0
  61. package/components/pds-table-head.js +84 -0
  62. package/components/pds-table-head.js.map +1 -0
  63. package/components/pds-table-row.js +95 -0
  64. package/components/pds-table-row.js.map +1 -0
  65. package/components/pds-table.js +124 -0
  66. package/components/pds-table.js.map +1 -0
  67. package/components/pds-tabpanel.js +45 -0
  68. package/components/pds-tabpanel.js.map +1 -0
  69. package/components/pds-tabs.js +119 -0
  70. package/components/pds-tabs.js.map +1 -0
  71. package/components/pds-textarea.js +82 -0
  72. package/components/pds-textarea.js.map +1 -0
  73. package/components/pds-tooltip.js +178 -0
  74. package/components/pds-tooltip.js.map +1 -0
  75. package/dist/cjs/app-globals-3a1e7e63.js +7 -0
  76. package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
  77. package/dist/cjs/closest-b45138d3.js +13 -0
  78. package/dist/cjs/closest-b45138d3.js.map +1 -0
  79. package/dist/{pine-core/index-cccc19b7.js → cjs/index-11f95019.js} +220 -1563
  80. package/dist/cjs/index-11f95019.js.map +1 -0
  81. package/dist/cjs/index-dd191bbe.js +24 -0
  82. package/dist/cjs/index-dd191bbe.js.map +1 -0
  83. package/dist/cjs/index.cjs.js +6 -0
  84. package/dist/cjs/index.cjs.js.map +1 -0
  85. package/dist/cjs/loader.cjs.js +17 -0
  86. package/dist/cjs/loader.cjs.js.map +1 -0
  87. package/dist/cjs/pds-accordion.cjs.entry.js +43 -0
  88. package/dist/cjs/pds-accordion.cjs.entry.js.map +1 -0
  89. package/dist/cjs/pds-avatar.cjs.entry.js +75 -0
  90. package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -0
  91. package/dist/cjs/pds-box.cjs.entry.js +82 -0
  92. package/dist/cjs/pds-box.cjs.entry.js.map +1 -0
  93. package/dist/cjs/pds-button.cjs.entry.js +59 -0
  94. package/dist/cjs/pds-button.cjs.entry.js.map +1 -0
  95. package/dist/cjs/pds-checkbox.cjs.entry.js +75 -0
  96. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -0
  97. package/dist/cjs/pds-chip.cjs.entry.js +51 -0
  98. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -0
  99. package/dist/cjs/pds-copytext.cjs.entry.js +56 -0
  100. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -0
  101. package/dist/cjs/pds-divider.cjs.entry.js +36 -0
  102. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -0
  103. package/dist/cjs/pds-image.cjs.entry.js +32 -0
  104. package/dist/cjs/pds-image.cjs.entry.js.map +1 -0
  105. package/dist/cjs/pds-input.cjs.entry.js +45 -0
  106. package/dist/cjs/pds-input.cjs.entry.js.map +1 -0
  107. package/dist/cjs/pds-label-7acec6ab.js +44 -0
  108. package/dist/cjs/pds-label-7acec6ab.js.map +1 -0
  109. package/dist/cjs/pds-link.cjs.entry.js +39 -0
  110. package/dist/cjs/pds-link.cjs.entry.js.map +1 -0
  111. package/dist/cjs/pds-loader.cjs.entry.js +49 -0
  112. package/dist/cjs/pds-loader.cjs.entry.js.map +1 -0
  113. package/dist/cjs/pds-progress.cjs.entry.js +28 -0
  114. package/dist/cjs/pds-progress.cjs.entry.js.map +1 -0
  115. package/dist/cjs/pds-radio.cjs.entry.js +54 -0
  116. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -0
  117. package/dist/cjs/pds-row.cjs.entry.js +51 -0
  118. package/dist/cjs/pds-row.cjs.entry.js.map +1 -0
  119. package/dist/cjs/pds-sortable-item.cjs.entry.js +35 -0
  120. package/dist/cjs/pds-sortable-item.cjs.entry.js.map +1 -0
  121. package/dist/cjs/pds-sortable.cjs.entry.js +2704 -0
  122. package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -0
  123. package/dist/cjs/pds-switch.cjs.entry.js +56 -0
  124. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -0
  125. package/dist/cjs/pds-tab.cjs.entry.js +34 -0
  126. package/dist/cjs/pds-tab.cjs.entry.js.map +1 -0
  127. package/dist/cjs/pds-table-body.cjs.entry.js +22 -0
  128. package/dist/cjs/pds-table-body.cjs.entry.js.map +1 -0
  129. package/dist/cjs/pds-table-cell.cjs.entry.js +58 -0
  130. package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -0
  131. package/dist/cjs/pds-table-head-cell.cjs.entry.js +76 -0
  132. package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -0
  133. package/dist/cjs/pds-table-head.cjs.entry.js +55 -0
  134. package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -0
  135. package/dist/cjs/pds-table-row.cjs.entry.js +66 -0
  136. package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -0
  137. package/dist/cjs/pds-table.cjs.entry.js +102 -0
  138. package/dist/cjs/pds-table.cjs.entry.js.map +1 -0
  139. package/dist/cjs/pds-tabpanel.cjs.entry.js +27 -0
  140. package/dist/cjs/pds-tabpanel.cjs.entry.js.map +1 -0
  141. package/dist/cjs/pds-tabs.cjs.entry.js +99 -0
  142. package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -0
  143. package/dist/cjs/pds-textarea.cjs.entry.js +55 -0
  144. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -0
  145. package/dist/cjs/pds-tooltip.cjs.entry.js +152 -0
  146. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -0
  147. package/dist/cjs/pine-core.cjs.js +27 -0
  148. package/dist/cjs/pine-core.cjs.js.map +1 -0
  149. package/dist/collection/collection-manifest.json +40 -0
  150. package/dist/collection/components/_internal/pds-label/pds-label.js +7 -0
  151. package/dist/collection/components/_internal/pds-label/pds-label.js.map +1 -0
  152. package/dist/collection/components/pds-accordion/pds-accordion.css +65 -0
  153. package/dist/collection/components/pds-accordion/pds-accordion.js +94 -0
  154. package/dist/collection/components/pds-accordion/pds-accordion.js.map +1 -0
  155. package/dist/collection/components/pds-accordion/stories/pds-accordion.stories.js +34 -0
  156. package/dist/collection/components/pds-avatar/pds-avatar.css +65 -0
  157. package/dist/collection/components/pds-avatar/pds-avatar.js +224 -0
  158. package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -0
  159. package/dist/collection/components/pds-avatar/stories/pds-avatar.stories.js +65 -0
  160. package/dist/collection/components/pds-box/pds-box.css +1234 -0
  161. package/dist/collection/components/pds-box/pds-box.js +678 -0
  162. package/dist/collection/components/pds-box/pds-box.js.map +1 -0
  163. package/dist/collection/components/pds-box/stories/pds-box.stories.js +50 -0
  164. package/dist/collection/components/pds-button/pds-button.css +131 -0
  165. package/dist/collection/components/pds-button/pds-button.js +193 -0
  166. package/dist/collection/components/pds-button/pds-button.js.map +1 -0
  167. package/dist/collection/components/pds-button/stories/pds-button.stories.js +66 -0
  168. package/dist/collection/components/pds-checkbox/checkbox-interface.js +2 -0
  169. package/dist/collection/components/pds-checkbox/checkbox-interface.js.map +1 -0
  170. package/dist/collection/components/pds-checkbox/pds-checkbox.css +135 -0
  171. package/dist/collection/components/pds-checkbox/pds-checkbox.js +330 -0
  172. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -0
  173. package/dist/collection/components/pds-checkbox/stories/pds-checkbox.stories.js +82 -0
  174. package/dist/collection/components/pds-chip/pds-chip.css +239 -0
  175. package/dist/collection/components/pds-chip/pds-chip.js +189 -0
  176. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -0
  177. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +79 -0
  178. package/dist/collection/components/pds-copytext/pds-copytext.css +87 -0
  179. package/dist/collection/components/pds-copytext/pds-copytext.js +173 -0
  180. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -0
  181. package/dist/collection/components/pds-copytext/stories/pds-copytext.stories.js +57 -0
  182. package/dist/collection/components/pds-divider/pds-divider.css +92 -0
  183. package/dist/collection/components/pds-divider/pds-divider.js +94 -0
  184. package/dist/collection/components/pds-divider/pds-divider.js.map +1 -0
  185. package/dist/collection/components/pds-divider/stories/pds-divider.stories.js +25 -0
  186. package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +16 -0
  187. package/dist/collection/components/pds-image/pds-image.css +13 -0
  188. package/dist/collection/components/pds-image/pds-image.js +173 -0
  189. package/dist/collection/components/pds-image/pds-image.js.map +1 -0
  190. package/dist/collection/components/pds-image/stories/pds-image.stories.js +35 -0
  191. package/dist/collection/components/pds-input/pds-input.css +92 -0
  192. package/dist/collection/components/pds-input/pds-input.js +279 -0
  193. package/dist/collection/components/pds-input/pds-input.js.map +1 -0
  194. package/dist/collection/components/pds-input/stories/pds-input.stories.js +110 -0
  195. package/dist/collection/components/pds-link/pds-link.css +68 -0
  196. package/dist/collection/components/pds-link/pds-link.js +140 -0
  197. package/dist/collection/components/pds-link/pds-link.js.map +1 -0
  198. package/dist/collection/components/pds-link/stories/pds-link.stories.js +49 -0
  199. package/dist/collection/components/pds-loader/pds-loader.css +93 -0
  200. package/dist/collection/components/pds-loader/pds-loader.js +127 -0
  201. package/dist/collection/components/pds-loader/pds-loader.js.map +1 -0
  202. package/dist/collection/components/pds-loader/stories/pds-loader.stories.js +36 -0
  203. package/dist/collection/components/pds-progress/pds-progress.css +79 -0
  204. package/dist/collection/components/pds-progress/pds-progress.js +148 -0
  205. package/dist/collection/components/pds-progress/pds-progress.js.map +1 -0
  206. package/dist/collection/components/pds-progress/stories/pds-progress.stories.js +65 -0
  207. package/dist/collection/components/pds-radio/pds-radio.css +104 -0
  208. package/dist/collection/components/pds-radio/pds-radio.js +261 -0
  209. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -0
  210. package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +71 -0
  211. package/dist/collection/components/pds-row/pds-row.css +78 -0
  212. package/dist/collection/components/pds-row/pds-row.js +186 -0
  213. package/dist/collection/components/pds-row/pds-row.js.map +1 -0
  214. package/dist/collection/components/pds-row/stories/pds-row.stories.js +75 -0
  215. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +63 -0
  216. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +100 -0
  217. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +1 -0
  218. package/dist/collection/components/pds-sortable/pds-sortable-item/stories/pds-sortable-item.stories.js +24 -0
  219. package/dist/collection/components/pds-sortable/pds-sortable.css +10 -0
  220. package/dist/collection/components/pds-sortable/pds-sortable.js +150 -0
  221. package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -0
  222. package/dist/collection/components/pds-sortable/sortable-interface.js +2 -0
  223. package/dist/collection/components/pds-sortable/sortable-interface.js.map +1 -0
  224. package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +130 -0
  225. package/dist/collection/components/pds-switch/pds-switch.css +136 -0
  226. package/dist/collection/components/pds-switch/pds-switch.js +277 -0
  227. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -0
  228. package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +102 -0
  229. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.css +5 -0
  230. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +19 -0
  231. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +1 -0
  232. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +45 -0
  233. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +83 -0
  234. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +1 -0
  235. package/dist/collection/components/pds-table/pds-table-cell/stories/pds-table-cell.stories.js +26 -0
  236. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +18 -0
  237. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +109 -0
  238. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +1 -0
  239. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +54 -0
  240. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +120 -0
  241. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +1 -0
  242. package/dist/collection/components/pds-table/pds-table-head-cell/stories/pds-table-head-cell.stories.js +24 -0
  243. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +22 -0
  244. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +120 -0
  245. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +1 -0
  246. package/dist/collection/components/pds-table/pds-table-row/stories/pds-table-row.stories.js +26 -0
  247. package/dist/collection/components/pds-table/pds-table.css +27 -0
  248. package/dist/collection/components/pds-table/pds-table.js +248 -0
  249. package/dist/collection/components/pds-table/pds-table.js.map +1 -0
  250. package/dist/collection/components/pds-table/stories/pds-table.stories.js +227 -0
  251. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +160 -0
  252. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +154 -0
  253. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +1 -0
  254. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +12 -0
  255. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +107 -0
  256. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +1 -0
  257. package/dist/collection/components/pds-tabs/pds-tabs.css +29 -0
  258. package/dist/collection/components/pds-tabs/pds-tabs.js +209 -0
  259. package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -0
  260. package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +63 -0
  261. package/dist/collection/components/pds-textarea/pds-textarea.css +88 -0
  262. package/dist/collection/components/pds-textarea/pds-textarea.js +303 -0
  263. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -0
  264. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +111 -0
  265. package/dist/collection/components/pds-textarea/textarea-interface.js +2 -0
  266. package/dist/collection/components/pds-textarea/textarea-interface.js.map +1 -0
  267. package/dist/collection/components/pds-tooltip/pds-tooltip.css +147 -0
  268. package/dist/collection/components/pds-tooltip/pds-tooltip.js +287 -0
  269. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -0
  270. package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +103 -0
  271. package/dist/collection/global/pine-ui-global.js +2 -0
  272. package/dist/collection/global/pine-ui-global.js.map +1 -0
  273. package/dist/collection/index.js +2 -0
  274. package/dist/collection/index.js.map +1 -0
  275. package/dist/collection/stories/_helpers/index.js +15 -0
  276. package/dist/collection/stories/_helpers/index.js.map +1 -0
  277. package/dist/collection/utils/closest.js +8 -0
  278. package/dist/collection/utils/closest.js.map +1 -0
  279. package/dist/collection/utils/form.js +28 -0
  280. package/dist/collection/utils/form.js.map +1 -0
  281. package/dist/collection/utils/overlay.js +68 -0
  282. package/dist/collection/utils/overlay.js.map +1 -0
  283. package/dist/collection/utils/types.js +2 -0
  284. package/dist/collection/utils/types.js.map +1 -0
  285. package/dist/collection/utils/utils.js +7 -0
  286. package/dist/collection/utils/utils.js.map +1 -0
  287. package/dist/docs.json +1 -1
  288. package/dist/esm/index-b8872c16.js +14 -0
  289. package/dist/esm/index-b8872c16.js.map +1 -0
  290. package/dist/esm/index-cd2796be.js +2811 -0
  291. package/dist/esm/index-cd2796be.js.map +1 -0
  292. package/dist/esm/index.js +3 -0
  293. package/dist/esm/index.js.map +1 -0
  294. package/dist/esm/loader.js +13 -0
  295. package/dist/esm/loader.js.map +1 -0
  296. package/dist/{pine-core → esm}/pds-accordion.entry.js +5 -4
  297. package/dist/esm/pds-accordion.entry.js.map +1 -0
  298. package/dist/{pine-core → esm}/pds-avatar.entry.js +5 -4
  299. package/dist/esm/pds-avatar.entry.js.map +1 -0
  300. package/dist/esm/pds-box.entry.js +78 -0
  301. package/dist/esm/pds-box.entry.js.map +1 -0
  302. package/dist/{pine-core → esm}/pds-button.entry.js +5 -7
  303. package/dist/esm/pds-button.entry.js.map +1 -0
  304. package/dist/{pine-core → esm}/pds-checkbox.entry.js +5 -4
  305. package/dist/esm/pds-checkbox.entry.js.map +1 -0
  306. package/dist/esm/pds-chip.entry.js +47 -0
  307. package/dist/esm/pds-chip.entry.js.map +1 -0
  308. package/dist/{pine-core → esm}/pds-copytext.entry.js +5 -4
  309. package/dist/esm/pds-copytext.entry.js.map +1 -0
  310. package/dist/esm/pds-divider.entry.js +32 -0
  311. package/dist/esm/pds-divider.entry.js.map +1 -0
  312. package/dist/{pine-core → esm}/pds-image.entry.js +3 -2
  313. package/dist/esm/pds-image.entry.js.map +1 -0
  314. package/dist/{pine-core → esm}/pds-input.entry.js +5 -4
  315. package/dist/esm/pds-input.entry.js.map +1 -0
  316. package/dist/{pine-core/pds-label-7201663d.js → esm/pds-label-7abc6d85.js} +2 -2
  317. package/dist/{pine-core/pds-label-7201663d.js.map → esm/pds-label-7abc6d85.js.map} +1 -1
  318. package/dist/{pine-core → esm}/pds-link.entry.js +5 -4
  319. package/dist/esm/pds-link.entry.js.map +1 -0
  320. package/dist/esm/pds-loader.entry.js +45 -0
  321. package/dist/esm/pds-loader.entry.js.map +1 -0
  322. package/dist/esm/pds-progress.entry.js +24 -0
  323. package/dist/esm/pds-progress.entry.js.map +1 -0
  324. package/dist/{pine-core → esm}/pds-radio.entry.js +5 -4
  325. package/dist/esm/pds-radio.entry.js.map +1 -0
  326. package/dist/esm/pds-row.entry.js +47 -0
  327. package/dist/esm/pds-row.entry.js.map +1 -0
  328. package/dist/esm/pds-sortable-item.entry.js +31 -0
  329. package/dist/esm/pds-sortable-item.entry.js.map +1 -0
  330. package/dist/{pine-core → esm}/pds-sortable.entry.js +4 -704
  331. package/dist/esm/pds-sortable.entry.js.map +1 -0
  332. package/dist/{pine-core → esm}/pds-switch.entry.js +5 -4
  333. package/dist/esm/pds-switch.entry.js.map +1 -0
  334. package/dist/esm/pds-tab.entry.js +30 -0
  335. package/dist/esm/pds-tab.entry.js.map +1 -0
  336. package/dist/{pine-core → esm}/pds-table-body.entry.js +3 -2
  337. package/dist/esm/pds-table-body.entry.js.map +1 -0
  338. package/dist/{pine-core → esm}/pds-table-cell.entry.js +4 -3
  339. package/dist/esm/pds-table-cell.entry.js.map +1 -0
  340. package/dist/{pine-core → esm}/pds-table-head-cell.entry.js +5 -4
  341. package/dist/esm/pds-table-head-cell.entry.js.map +1 -0
  342. package/dist/{pine-core → esm}/pds-table-head.entry.js +4 -3
  343. package/dist/esm/pds-table-head.entry.js.map +1 -0
  344. package/dist/{pine-core → esm}/pds-table-row.entry.js +4 -3
  345. package/dist/esm/pds-table-row.entry.js.map +1 -0
  346. package/dist/{pine-core → esm}/pds-table.entry.js +4 -3
  347. package/dist/esm/pds-table.entry.js.map +1 -0
  348. package/dist/{pine-core → esm}/pds-tabpanel.entry.js +3 -2
  349. package/dist/esm/pds-tabpanel.entry.js.map +1 -0
  350. package/dist/{pine-core → esm}/pds-tabs.entry.js +4 -3
  351. package/dist/esm/pds-tabs.entry.js.map +1 -0
  352. package/dist/{pine-core → esm}/pds-textarea.entry.js +5 -4
  353. package/dist/esm/pds-textarea.entry.js.map +1 -0
  354. package/dist/{pine-core → esm}/pds-tooltip.entry.js +4 -3
  355. package/dist/esm/pds-tooltip.entry.js.map +1 -0
  356. package/dist/esm/pine-core.js +22 -0
  357. package/dist/esm/pine-core.js.map +1 -0
  358. package/dist/esm/polyfills/core-js.js +11 -0
  359. package/dist/esm/polyfills/dom.js +79 -0
  360. package/dist/esm/polyfills/es5-html-element.js +1 -0
  361. package/dist/esm/polyfills/index.js +34 -0
  362. package/dist/esm/polyfills/system.js +6 -0
  363. package/dist/esm-es5/app-globals-0f993ce5.js +2 -0
  364. package/dist/esm-es5/app-globals-0f993ce5.js.map +1 -0
  365. package/dist/esm-es5/closest-d2d192be.js +2 -0
  366. package/dist/esm-es5/closest-d2d192be.js.map +1 -0
  367. package/dist/esm-es5/index-b8872c16.js +2 -0
  368. package/dist/esm-es5/index-b8872c16.js.map +1 -0
  369. package/dist/esm-es5/index-cd2796be.js +3 -0
  370. package/dist/esm-es5/index-cd2796be.js.map +1 -0
  371. package/dist/esm-es5/index.js +2 -0
  372. package/dist/esm-es5/index.js.map +1 -0
  373. package/dist/esm-es5/loader.js +2 -0
  374. package/dist/esm-es5/loader.js.map +1 -0
  375. package/dist/esm-es5/pds-accordion.entry.js +2 -0
  376. package/dist/esm-es5/pds-accordion.entry.js.map +1 -0
  377. package/dist/esm-es5/pds-avatar.entry.js +2 -0
  378. package/dist/esm-es5/pds-avatar.entry.js.map +1 -0
  379. package/dist/esm-es5/pds-box.entry.js +2 -0
  380. package/dist/esm-es5/pds-box.entry.js.map +1 -0
  381. package/dist/esm-es5/pds-button.entry.js +2 -0
  382. package/dist/esm-es5/pds-button.entry.js.map +1 -0
  383. package/dist/esm-es5/pds-checkbox.entry.js +2 -0
  384. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -0
  385. package/dist/esm-es5/pds-chip.entry.js +2 -0
  386. package/dist/esm-es5/pds-chip.entry.js.map +1 -0
  387. package/dist/esm-es5/pds-copytext.entry.js +2 -0
  388. package/dist/esm-es5/pds-copytext.entry.js.map +1 -0
  389. package/dist/esm-es5/pds-divider.entry.js +2 -0
  390. package/dist/esm-es5/pds-divider.entry.js.map +1 -0
  391. package/dist/esm-es5/pds-image.entry.js +2 -0
  392. package/dist/esm-es5/pds-image.entry.js.map +1 -0
  393. package/dist/esm-es5/pds-input.entry.js +2 -0
  394. package/dist/esm-es5/pds-input.entry.js.map +1 -0
  395. package/dist/esm-es5/pds-label-7abc6d85.js +2 -0
  396. package/dist/esm-es5/pds-label-7abc6d85.js.map +1 -0
  397. package/dist/esm-es5/pds-link.entry.js +2 -0
  398. package/dist/esm-es5/pds-link.entry.js.map +1 -0
  399. package/dist/esm-es5/pds-loader.entry.js +2 -0
  400. package/dist/esm-es5/pds-loader.entry.js.map +1 -0
  401. package/dist/esm-es5/pds-progress.entry.js +2 -0
  402. package/dist/esm-es5/pds-progress.entry.js.map +1 -0
  403. package/dist/esm-es5/pds-radio.entry.js +2 -0
  404. package/dist/esm-es5/pds-radio.entry.js.map +1 -0
  405. package/dist/esm-es5/pds-row.entry.js +2 -0
  406. package/dist/esm-es5/pds-row.entry.js.map +1 -0
  407. package/dist/esm-es5/pds-sortable-item.entry.js +2 -0
  408. package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -0
  409. package/dist/esm-es5/pds-sortable.entry.js +8 -0
  410. package/dist/esm-es5/pds-sortable.entry.js.map +1 -0
  411. package/dist/esm-es5/pds-switch.entry.js +2 -0
  412. package/dist/esm-es5/pds-switch.entry.js.map +1 -0
  413. package/dist/esm-es5/pds-tab.entry.js +2 -0
  414. package/dist/esm-es5/pds-tab.entry.js.map +1 -0
  415. package/dist/esm-es5/pds-table-body.entry.js +2 -0
  416. package/dist/esm-es5/pds-table-body.entry.js.map +1 -0
  417. package/dist/esm-es5/pds-table-cell.entry.js +2 -0
  418. package/dist/esm-es5/pds-table-cell.entry.js.map +1 -0
  419. package/dist/esm-es5/pds-table-head-cell.entry.js +2 -0
  420. package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -0
  421. package/dist/esm-es5/pds-table-head.entry.js +2 -0
  422. package/dist/esm-es5/pds-table-head.entry.js.map +1 -0
  423. package/dist/esm-es5/pds-table-row.entry.js +2 -0
  424. package/dist/esm-es5/pds-table-row.entry.js.map +1 -0
  425. package/dist/esm-es5/pds-table.entry.js +2 -0
  426. package/dist/{pine-core → esm-es5}/pds-table.entry.js.map +1 -1
  427. package/dist/esm-es5/pds-tabpanel.entry.js +2 -0
  428. package/dist/esm-es5/pds-tabpanel.entry.js.map +1 -0
  429. package/dist/esm-es5/pds-tabs.entry.js +2 -0
  430. package/dist/esm-es5/pds-tabs.entry.js.map +1 -0
  431. package/dist/esm-es5/pds-textarea.entry.js +2 -0
  432. package/dist/esm-es5/pds-textarea.entry.js.map +1 -0
  433. package/dist/esm-es5/pds-tooltip.entry.js +2 -0
  434. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -0
  435. package/dist/esm-es5/pine-core.js +2 -0
  436. package/dist/esm-es5/pine-core.js.map +1 -0
  437. package/dist/index.cjs.js +1 -0
  438. package/dist/index.js +1 -0
  439. package/dist/pine-core/index.esm.js +1 -2
  440. package/dist/pine-core/index.esm.js.map +1 -1
  441. package/dist/pine-core/p-03ac85bb.system.entry.js +2 -0
  442. package/dist/pine-core/p-03ac85bb.system.entry.js.map +1 -0
  443. package/dist/pine-core/p-0935a593.system.js +3 -0
  444. package/dist/pine-core/p-0935a593.system.js.map +1 -0
  445. package/dist/pine-core/p-0b77685e.js +2 -0
  446. package/dist/pine-core/p-0b77685e.js.map +1 -0
  447. package/dist/pine-core/p-0ca08a85.system.js +2 -0
  448. package/dist/pine-core/p-0ca08a85.system.js.map +1 -0
  449. package/dist/pine-core/p-1b1c6e9e.system.entry.js +2 -0
  450. package/dist/pine-core/p-1b1c6e9e.system.entry.js.map +1 -0
  451. package/dist/pine-core/p-1d34a83d.system.entry.js +2 -0
  452. package/dist/pine-core/p-1d34a83d.system.entry.js.map +1 -0
  453. package/dist/pine-core/p-224a435b.system.js +2 -0
  454. package/dist/pine-core/p-224a435b.system.js.map +1 -0
  455. package/dist/pine-core/p-23d97662.js +3 -0
  456. package/dist/pine-core/p-23d97662.js.map +1 -0
  457. package/dist/pine-core/p-24d43a5d.system.entry.js +2 -0
  458. package/dist/pine-core/p-24d43a5d.system.entry.js.map +1 -0
  459. package/dist/pine-core/p-252bcd1c.system.entry.js +2 -0
  460. package/dist/pine-core/p-252bcd1c.system.entry.js.map +1 -0
  461. package/dist/pine-core/p-27dfade4.system.entry.js +2 -0
  462. package/dist/pine-core/p-27dfade4.system.entry.js.map +1 -0
  463. package/dist/pine-core/p-28d205e0.system.entry.js +2 -0
  464. package/dist/pine-core/p-28d205e0.system.entry.js.map +1 -0
  465. package/dist/pine-core/p-2ac1781f.entry.js +2 -0
  466. package/dist/pine-core/p-2ac1781f.entry.js.map +1 -0
  467. package/dist/pine-core/p-35f2208a.system.entry.js +2 -0
  468. package/dist/pine-core/p-35f2208a.system.entry.js.map +1 -0
  469. package/dist/pine-core/p-38a23fac.system.entry.js +2 -0
  470. package/dist/pine-core/p-38a23fac.system.entry.js.map +1 -0
  471. package/dist/pine-core/p-39bc5dc9.system.entry.js +2 -0
  472. package/dist/pine-core/p-39bc5dc9.system.entry.js.map +1 -0
  473. package/dist/pine-core/p-3c02b099.entry.js +2 -0
  474. package/dist/pine-core/p-3c02b099.entry.js.map +1 -0
  475. package/dist/pine-core/p-41d6881e.system.entry.js +2 -0
  476. package/dist/pine-core/p-41d6881e.system.entry.js.map +1 -0
  477. package/dist/pine-core/p-443202f8.entry.js +8 -0
  478. package/dist/pine-core/p-443202f8.entry.js.map +1 -0
  479. package/dist/pine-core/p-4df579f2.entry.js +2 -0
  480. package/dist/pine-core/p-4df579f2.entry.js.map +1 -0
  481. package/dist/pine-core/p-519ef0c4.system.js +2 -0
  482. package/dist/pine-core/p-519ef0c4.system.js.map +1 -0
  483. package/dist/pine-core/p-56588c5d.entry.js +2 -0
  484. package/dist/pine-core/p-56588c5d.entry.js.map +1 -0
  485. package/dist/pine-core/p-56ba5cbf.system.js +2 -0
  486. package/dist/pine-core/p-56ba5cbf.system.js.map +1 -0
  487. package/dist/pine-core/p-5c60147f.system.entry.js +9 -0
  488. package/dist/pine-core/p-5c60147f.system.entry.js.map +1 -0
  489. package/dist/pine-core/p-5c8608cd.system.entry.js +2 -0
  490. package/dist/pine-core/p-5c8608cd.system.entry.js.map +1 -0
  491. package/dist/pine-core/p-5d08fe24.entry.js +2 -0
  492. package/dist/pine-core/p-5d08fe24.entry.js.map +1 -0
  493. package/dist/pine-core/p-606b6dbb.entry.js +2 -0
  494. package/dist/pine-core/p-606b6dbb.entry.js.map +1 -0
  495. package/dist/pine-core/p-60f4dc68.system.entry.js +2 -0
  496. package/dist/pine-core/p-60f4dc68.system.entry.js.map +1 -0
  497. package/dist/pine-core/p-6525ed78.entry.js +2 -0
  498. package/dist/pine-core/p-6525ed78.entry.js.map +1 -0
  499. package/dist/pine-core/p-684d04ae.entry.js +2 -0
  500. package/dist/pine-core/p-684d04ae.entry.js.map +1 -0
  501. package/dist/pine-core/p-6f38bc8e.entry.js +2 -0
  502. package/dist/pine-core/p-6f38bc8e.entry.js.map +1 -0
  503. package/dist/pine-core/p-6f511f31.entry.js +2 -0
  504. package/dist/pine-core/p-6f511f31.entry.js.map +1 -0
  505. package/dist/pine-core/p-74d57e61.system.entry.js +2 -0
  506. package/dist/pine-core/p-74d57e61.system.entry.js.map +1 -0
  507. package/dist/pine-core/p-806b41c3.entry.js +2 -0
  508. package/dist/pine-core/p-806b41c3.entry.js.map +1 -0
  509. package/dist/pine-core/p-807d5d68.system.entry.js +2 -0
  510. package/dist/pine-core/p-807d5d68.system.entry.js.map +1 -0
  511. package/dist/pine-core/p-854fa9e2.entry.js +2 -0
  512. package/dist/pine-core/p-854fa9e2.entry.js.map +1 -0
  513. package/dist/pine-core/p-867aee19.entry.js +2 -0
  514. package/dist/pine-core/p-867aee19.entry.js.map +1 -0
  515. package/dist/pine-core/p-8701cb7b.system.entry.js +2 -0
  516. package/dist/pine-core/p-8701cb7b.system.entry.js.map +1 -0
  517. package/dist/pine-core/p-87b61d15.system.entry.js +2 -0
  518. package/dist/pine-core/p-87b61d15.system.entry.js.map +1 -0
  519. package/dist/pine-core/p-8a1b3866.entry.js +2 -0
  520. package/dist/pine-core/p-8a1b3866.entry.js.map +1 -0
  521. package/dist/pine-core/p-8c719c49.entry.js +2 -0
  522. package/dist/pine-core/p-8c719c49.entry.js.map +1 -0
  523. package/dist/pine-core/p-8f3273ed.system.entry.js +2 -0
  524. package/dist/pine-core/p-8f3273ed.system.entry.js.map +1 -0
  525. package/dist/pine-core/p-8fcfa336.entry.js +2 -0
  526. package/dist/pine-core/p-8fcfa336.entry.js.map +1 -0
  527. package/dist/pine-core/p-90694e70.entry.js +2 -0
  528. package/dist/pine-core/p-90694e70.entry.js.map +1 -0
  529. package/dist/pine-core/p-91bb8017.entry.js +2 -0
  530. package/dist/pine-core/p-91bb8017.entry.js.map +1 -0
  531. package/dist/pine-core/p-924a951b.system.entry.js +2 -0
  532. package/dist/pine-core/p-924a951b.system.entry.js.map +1 -0
  533. package/dist/pine-core/p-9c538ab0.entry.js +2 -0
  534. package/dist/pine-core/p-9c538ab0.entry.js.map +1 -0
  535. package/dist/pine-core/p-9d959d25.system.entry.js +2 -0
  536. package/dist/pine-core/p-9d959d25.system.entry.js.map +1 -0
  537. package/dist/pine-core/p-ad997571.system.entry.js +2 -0
  538. package/dist/pine-core/p-ad997571.system.entry.js.map +1 -0
  539. package/dist/pine-core/p-b1363254.entry.js +2 -0
  540. package/dist/pine-core/p-b1363254.entry.js.map +1 -0
  541. package/dist/pine-core/p-b47f8855.entry.js +2 -0
  542. package/dist/pine-core/p-b47f8855.entry.js.map +1 -0
  543. package/dist/pine-core/p-b480d80a.entry.js +2 -0
  544. package/dist/pine-core/p-b480d80a.entry.js.map +1 -0
  545. package/dist/pine-core/p-b5859bbd.system.entry.js +2 -0
  546. package/dist/pine-core/p-b5859bbd.system.entry.js.map +1 -0
  547. package/dist/pine-core/p-b978c861.entry.js +2 -0
  548. package/dist/pine-core/p-b978c861.entry.js.map +1 -0
  549. package/dist/pine-core/p-bdc39517.system.entry.js +2 -0
  550. package/dist/pine-core/p-bdc39517.system.entry.js.map +1 -0
  551. package/dist/pine-core/p-c03cfc96.js +2 -0
  552. package/dist/pine-core/p-c03cfc96.js.map +1 -0
  553. package/dist/pine-core/p-c56d871e.system.entry.js +2 -0
  554. package/dist/pine-core/p-c56d871e.system.entry.js.map +1 -0
  555. package/dist/pine-core/p-cca53530.system.entry.js +2 -0
  556. package/dist/pine-core/p-cca53530.system.entry.js.map +1 -0
  557. package/dist/pine-core/p-cddeae53.entry.js +2 -0
  558. package/dist/pine-core/p-cddeae53.entry.js.map +1 -0
  559. package/dist/pine-core/p-d33de2b3.system.entry.js +2 -0
  560. package/dist/pine-core/p-d33de2b3.system.entry.js.map +1 -0
  561. package/dist/pine-core/p-dcc876d5.entry.js +2 -0
  562. package/dist/pine-core/p-dcc876d5.entry.js.map +1 -0
  563. package/dist/pine-core/p-e1255160.js +2 -0
  564. package/dist/pine-core/p-e1255160.js.map +1 -0
  565. package/dist/pine-core/p-ece97e5b.system.js +2 -0
  566. package/dist/pine-core/p-ece97e5b.system.js.map +1 -0
  567. package/dist/pine-core/p-ee65aef1.system.js +2 -0
  568. package/dist/pine-core/p-ee65aef1.system.js.map +1 -0
  569. package/dist/pine-core/p-efc85823.js +2 -0
  570. package/dist/pine-core/p-efc85823.js.map +1 -0
  571. package/dist/pine-core/p-f1610dff.system.entry.js +2 -0
  572. package/dist/pine-core/p-f1610dff.system.entry.js.map +1 -0
  573. package/dist/pine-core/p-f666c482.entry.js +2 -0
  574. package/dist/pine-core/p-f666c482.entry.js.map +1 -0
  575. package/dist/pine-core/p-f80b45a9.system.entry.js +2 -0
  576. package/dist/pine-core/p-f80b45a9.system.entry.js.map +1 -0
  577. package/dist/pine-core/p-f92e85c4.entry.js +2 -0
  578. package/dist/pine-core/p-f92e85c4.entry.js.map +1 -0
  579. package/dist/pine-core/p-fc202585.entry.js +2 -0
  580. package/dist/pine-core/p-fc202585.entry.js.map +1 -0
  581. package/dist/pine-core/pine-core.css +1 -180
  582. package/dist/pine-core/pine-core.esm.js +1 -52
  583. package/dist/pine-core/pine-core.esm.js.map +1 -1
  584. package/dist/pine-core/pine-core.js +127 -0
  585. package/hydrate/index.js +28 -28
  586. package/package.json +1 -1
  587. package/dist/pine-core/index-00e73f84.js +0 -329
  588. package/dist/pine-core/index-00e73f84.js.map +0 -1
  589. package/dist/pine-core/index-cccc19b7.js.map +0 -1
  590. package/dist/pine-core/pds-accordion.entry.js.map +0 -1
  591. package/dist/pine-core/pds-avatar.entry.js.map +0 -1
  592. package/dist/pine-core/pds-box.entry.js +0 -77
  593. package/dist/pine-core/pds-box.entry.js.map +0 -1
  594. package/dist/pine-core/pds-button.entry.js.map +0 -1
  595. package/dist/pine-core/pds-checkbox.entry.js.map +0 -1
  596. package/dist/pine-core/pds-chip.entry.js +0 -46
  597. package/dist/pine-core/pds-chip.entry.js.map +0 -1
  598. package/dist/pine-core/pds-copytext.entry.js.map +0 -1
  599. package/dist/pine-core/pds-divider.entry.js +0 -31
  600. package/dist/pine-core/pds-divider.entry.js.map +0 -1
  601. package/dist/pine-core/pds-image.entry.js.map +0 -1
  602. package/dist/pine-core/pds-input.entry.js.map +0 -1
  603. package/dist/pine-core/pds-link.entry.js.map +0 -1
  604. package/dist/pine-core/pds-loader.entry.js +0 -44
  605. package/dist/pine-core/pds-loader.entry.js.map +0 -1
  606. package/dist/pine-core/pds-progress.entry.js +0 -23
  607. package/dist/pine-core/pds-progress.entry.js.map +0 -1
  608. package/dist/pine-core/pds-radio.entry.js.map +0 -1
  609. package/dist/pine-core/pds-row.entry.js +0 -46
  610. package/dist/pine-core/pds-row.entry.js.map +0 -1
  611. package/dist/pine-core/pds-sortable-item.entry.js +0 -30
  612. package/dist/pine-core/pds-sortable-item.entry.js.map +0 -1
  613. package/dist/pine-core/pds-sortable.entry.js.map +0 -1
  614. package/dist/pine-core/pds-switch.entry.js.map +0 -1
  615. package/dist/pine-core/pds-tab.entry.js +0 -29
  616. package/dist/pine-core/pds-tab.entry.js.map +0 -1
  617. package/dist/pine-core/pds-table-body.entry.js.map +0 -1
  618. package/dist/pine-core/pds-table-cell.entry.js.map +0 -1
  619. package/dist/pine-core/pds-table-head-cell.entry.js.map +0 -1
  620. package/dist/pine-core/pds-table-head.entry.js.map +0 -1
  621. package/dist/pine-core/pds-table-row.entry.js.map +0 -1
  622. package/dist/pine-core/pds-tabpanel.entry.js.map +0 -1
  623. package/dist/pine-core/pds-tabs.entry.js.map +0 -1
  624. package/dist/pine-core/pds-textarea.entry.js.map +0 -1
  625. package/dist/pine-core/pds-tooltip.entry.js.map +0 -1
  626. package/dist/pine-core/shadow-css-2e0fed52.js +0 -478
  627. package/dist/pine-core/shadow-css-2e0fed52.js.map +0 -1
  628. /package/dist/{pine-core → esm}/app-globals-0f993ce5.js +0 -0
  629. /package/dist/{pine-core → esm}/app-globals-0f993ce5.js.map +0 -0
  630. /package/dist/{pine-core → esm}/closest-d2d192be.js +0 -0
  631. /package/dist/{pine-core → esm}/closest-d2d192be.js.map +0 -0
@@ -0,0 +1,82 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { a as assignDescription, P as PdsLabel, m as messageId } from './pds-label.js';
3
+
4
+ const pdsSwitchCss = ":host{--border-radius-input:var(--pine-border-radius-200);--box-shadow-focus:0 0 0 2px var(--color-outline-focus);--box-shadow-focus-error:0 0 0 2px var(--color-outline-focus-error);--box-shadow-input-toggle:0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.08);--color-background-checked:var(--pine-color-charcoal-400);--color-background-checked-hover:var(--pine-color-charcoal-400);--color-background-disabled:var(--pine-color-grey-300);--color-background-hover:var(--pine-color-grey-500);--color-background-input-default:var(--pine-color-grey-400);--color-input-toggle:var(--pine-color-white);--color-message-text:var(--pine-color-charcoal-200);--color-outline-focus:var(--pine-color-blue-200);--color-outline-focus-error:var(--pine-color-red-200);--color-text-default:var(--pine-color-charcoal-400);--color-text-disabled:var(--pine-color-grey-500);--color-text-error:var(--pine-color-red-300);--dimension-input-height:20px;--dimension-input-width:36px;--line-height-label:var(--pine-line-height-150);--sizing-input-toggle-size:calc(var(--dimension-input-height) - (var(--spacing-input-toggle-offset) * 2));--spacing-label-gap-size:var(--pine-spacing-150);--spacing-input-toggle-offset:calc(var(--pine-spacing-050) / 2);--spacing-message-block:var(--pine-spacing-050);--spacing-message-inline:calc(var(--dimension-input-width) + var(--spacing-label-gap-size));--number-transition-timing:0.15s ease-out;-ms-flex-align:start;align-items:flex-start;color:var(--color-text-default);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-margin-after:var(--pine-spacing-md);margin-block-end:var(--pine-spacing-md);position:relative}:host(.pds-switch--error){color:var(--color-text-error)}:host(.pds-switch--error) input,:host(.pds-switch--error) input:checked,:host(.pds-switch--error) input:hover:not(:disabled):not(:checked){background-color:var(--color-text-error)}:host(.pds-switch--error) input:focus-visible:not(:disabled):not(:checked){-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error)}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--color-background-input-default);border:0;border-radius:var(--border-radius-input);cursor:pointer;display:inline-block;height:var(--dimension-input-height);margin:0;padding:0;position:relative;-webkit-transform:translateY(2px);transform:translateY(2px);-webkit-transition:var(--number-transition-timing);transition:var(--number-transition-timing);-webkit-transition-property:background, border, color;transition-property:background, border, color;width:var(--dimension-input-width)}input::after{background:var(--color-input-toggle);border-radius:50%;-webkit-box-shadow:var(--box-shadow-input-toggle);box-shadow:var(--box-shadow-input-toggle);content:\"\";display:block;height:var(--sizing-input-toggle-size);inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate3d(-100%, -50%, 0);transform:translate3d(-100%, -50%, 0);-webkit-transition:-webkit-transform var(--number-transition-timing);transition:-webkit-transform var(--number-transition-timing);transition:transform var(--number-transition-timing);transition:transform var(--number-transition-timing), -webkit-transform var(--number-transition-timing);width:var(--sizing-input-toggle-size)}label{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-positive:1;flex-grow:1;line-height:var(--line-height-label);-webkit-margin-start:var(--spacing-label-gap-size);margin-inline-start:var(--spacing-label-gap-size)}.pds-switch--error label{color:inherit}.pds-switch__message{color:var(--color-message-text);-ms-flex:1 0 100%;flex:1 0 100%;font-size:var(--pine-font-size-body-sm);line-height:var(--pine-line-height-sm);-webkit-margin-start:var(--spacing-message-inline);margin-inline-start:var(--spacing-message-inline)}.pds-switch__message+.pds-switch__message{-webkit-margin-before:var(--spacing-message-block);margin-block-start:var(--spacing-message-block)}.pds-switch__message--error{color:inherit}input:disabled{background-color:var(--color-background-disabled);cursor:not-allowed}input:disabled~label{color:var(--color-text-disabled);cursor:initial}input:disabled .pds-switch__message{color:initial}input:hover:not(:disabled){background-color:var(--color-background-hover)}input:focus-visible:not(:disabled){-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}input:checked::after{-webkit-transform:translate3d(0, -50%, 0);transform:translate3d(0, -50%, 0)}input:checked:not(:disabled){background-color:currentColor;color:var(--color-background-checked)}input:checked:not(:disabled):hover{border-color:currentColor;color:var(--color-background-checked-hover)}";
5
+ const PdsSwitchStyle0 = pdsSwitchCss;
6
+
7
+ const PdsSwitch$1 = /*@__PURE__*/ proxyCustomElement(class PdsSwitch extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ this.pdsSwitchChange = createEvent(this, "pdsSwitchChange", 7);
13
+ this.onSwitchUpdate = (e) => {
14
+ if (this.disabled)
15
+ return;
16
+ this.pdsSwitchChange.emit(e);
17
+ };
18
+ /**
19
+ * Generate switch classes
20
+ */
21
+ this.switchClassNames = () => {
22
+ let switchClasses = `pds-switch`;
23
+ if (this.invalid === true) {
24
+ switchClasses += " pds-switch--error";
25
+ }
26
+ if (this.helperMessage !== undefined) {
27
+ switchClasses += " pds-switch--message";
28
+ }
29
+ return switchClasses;
30
+ };
31
+ this.componentId = undefined;
32
+ this.checked = false;
33
+ this.disabled = false;
34
+ this.errorMessage = undefined;
35
+ this.helperMessage = undefined;
36
+ this.invalid = false;
37
+ this.label = undefined;
38
+ this.name = undefined;
39
+ this.required = false;
40
+ this.type = 'checkbox';
41
+ this.value = undefined;
42
+ }
43
+ render() {
44
+ return (h(Host, { key: '5c33e5bd4a42f187450a81faec033832524f1b29', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("input", { key: 'cb2a8287cdb44f337b4ecae15968e823f314b4d1', "aria-describedby": assignDescription(this.componentId, this.invalid, 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: this.type, value: this.value }), h(PdsLabel, { key: '86c700a16a23513b3ba34f2add1775274ecc6784', classNames: "pds-switch__label", htmlFor: this.componentId, text: this.label }), this.helperMessage &&
45
+ h("div", { key: '30c8b18c990a54330bf3442d9cbbb35387de0ec3', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
46
+ h("div", { key: '1eb57d78271d8c1fbe2fa680eeb88fd2fd1d35c9', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
47
+ }
48
+ get el() { return this; }
49
+ static get style() { return PdsSwitchStyle0; }
50
+ }, [1, "pds-switch", {
51
+ "componentId": [1, "component-id"],
52
+ "checked": [4],
53
+ "disabled": [4],
54
+ "errorMessage": [1, "error-message"],
55
+ "helperMessage": [1, "helper-message"],
56
+ "invalid": [4],
57
+ "label": [1],
58
+ "name": [1],
59
+ "required": [4],
60
+ "type": [1],
61
+ "value": [1]
62
+ }]);
63
+ function defineCustomElement$1() {
64
+ if (typeof customElements === "undefined") {
65
+ return;
66
+ }
67
+ const components = ["pds-switch"];
68
+ components.forEach(tagName => { switch (tagName) {
69
+ case "pds-switch":
70
+ if (!customElements.get(tagName)) {
71
+ customElements.define(tagName, PdsSwitch$1);
72
+ }
73
+ break;
74
+ } });
75
+ }
76
+
77
+ const PdsSwitch = PdsSwitch$1;
78
+ const defineCustomElement = defineCustomElement$1;
79
+
80
+ export { PdsSwitch, defineCustomElement };
81
+
82
+ //# sourceMappingURL=pds-switch.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-switch.js","mappings":";;;AAAA,MAAM,YAAY,GAAG,sqJAAsqJ,CAAC;AAC5rJ,wBAAe,YAAY;;MCQdA,WAAS;;;;;;QAgEZ,mBAAc,GAAG,CAAC,CAAQ;YAChC,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAC1B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAe,CAAC,CAAC;SAC5C,CAAC;;;;QAKM,qBAAgB,GAAG;YACzB,IAAI,aAAa,GAAG,YAAY,CAAC;YAEjC,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,EAAE;gBACzB,aAAa,IAAI,oBAAoB,CAAC;aACvC;YACD,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE;gBACpC,aAAa,IAAI,sBAAsB,CAAC;aACzC;YACD,OAAO,aAAa,CAAC;SACtB,CAAC;;uBAvEgB,KAAK;wBAKH,KAAK;;;uBAeN,KAAK;;;wBAeJ,KAAK;oBAMY,UAAU;;;IAgC/C,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,mBAAiB,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,IAAI,IAChF,kFACoB,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,kBACzE,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,SAAS,EAC/C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAC,mBAAmB,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,EAC9C,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,EACF,EAAC,QAAQ,qDAAC,UAAU,EAAC,mBAAmB,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EACvF,IAAI,CAAC,aAAa;YACjB,4DACE,KAAK,EAAE,qBAAqB,EAC5B,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACf,EAEP,IAAI,CAAC,YAAY;YAChB,4DACE,KAAK,EAAE,gDAAgD,EACvD,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW,IAEpB,IAAI,CAAC,YAAY,CACd,CAEH,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsSwitch"],"sources":["src/components/pds-switch/pds-switch.scss?tag=pds-switch&encapsulation=shadow","src/components/pds-switch/pds-switch.tsx"],"sourcesContent":[":host {\n --border-radius-input: var(--pine-border-radius-200);\n\n --box-shadow-focus: 0 0 0 2px var(--color-outline-focus);\n --box-shadow-focus-error: 0 0 0 2px var(--color-outline-focus-error);\n --box-shadow-input-toggle: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.08);\n\n --color-background-checked: var(--pine-color-charcoal-400);\n --color-background-checked-hover: var(--pine-color-charcoal-400);\n --color-background-disabled: var(--pine-color-grey-300);\n --color-background-hover: var(--pine-color-grey-500);\n --color-background-input-default: var(--pine-color-grey-400);\n --color-input-toggle: var(--pine-color-white);\n --color-message-text: var(--pine-color-charcoal-200);\n --color-outline-focus: var(--pine-color-blue-200);\n --color-outline-focus-error: var(--pine-color-red-200);\n --color-text-default: var(--pine-color-charcoal-400);\n --color-text-disabled: var(--pine-color-grey-500);\n --color-text-error: var(--pine-color-red-300);\n\n --dimension-input-height: 20px;\n --dimension-input-width: 36px;\n\n --line-height-label: var(--pine-line-height-150);\n\n --sizing-input-toggle-size: calc(var(--dimension-input-height) - (var(--spacing-input-toggle-offset) * 2));\n\n --spacing-label-gap-size: var(--pine-spacing-150);\n --spacing-input-toggle-offset: calc(var(--pine-spacing-050) / 2);\n --spacing-message-block: var(--pine-spacing-050);\n --spacing-message-inline: calc(var(--dimension-input-width) + var(--spacing-label-gap-size));\n\n --number-transition-timing: 0.15s ease-out;\n\n\n align-items: flex-start;\n color: var(--color-text-default);\n display: inline-flex;\n flex-flow: row wrap;\n margin-block-end: var(--pine-spacing-md);\n position: relative;\n}\n\n:host(.pds-switch--error) {\n color: var(--color-text-error);\n\n input,\n input:checked,\n input:hover:not(:disabled):not(:checked) {\n background-color: var(--color-text-error);\n }\n\n input:focus-visible:not(:disabled):not(:checked) {\n box-shadow: var(--box-shadow-focus-error);\n }\n}\n\n// switch container\ninput {\n appearance: none;\n background: var(--color-background-input-default);\n border: 0;\n border-radius: var(--border-radius-input);\n cursor: pointer;\n display: inline-block;\n height: var(--dimension-input-height);\n margin: 0;\n padding: 0;\n position: relative;\n transform: translateY(2px);\n transition: var(--number-transition-timing);\n transition-property: background, border, color;\n width: var(--dimension-input-width);\n\n // switch toggle\n &::after {\n background: var(--color-input-toggle);\n border-radius: 50%;\n box-shadow: var(--box-shadow-input-toggle);\n content: \"\";\n display: block;\n height: var(--sizing-input-toggle-size);\n inset-block-start: 50%;\n inset-inline-start: 50%;\n position: absolute;\n transform: translate3d(-100%, -50%, 0);\n transition: transform var(--number-transition-timing);\n width: var(--sizing-input-toggle-size);\n }\n}\n\nlabel {\n cursor: pointer;\n display: inline-flex;\n flex-grow: 1;\n line-height: var(--line-height-label);\n margin-inline-start: var(--spacing-label-gap-size);\n\n .pds-switch--error & {\n color: inherit;\n }\n}\n\n// Help and error messages\n.pds-switch__message {\n color: var(--color-message-text);\n flex: 1 0 100%;\n font-size: var(--pine-font-size-body-sm);\n line-height: var(--pine-line-height-sm);\n margin-inline-start: var(--spacing-message-inline);\n\n + .pds-switch__message {\n margin-block-start: var(--spacing-message-block);\n }\n}\n\n.pds-switch__message--error {\n color: inherit;\n}\n\n// Disabled state\ninput:disabled {\n background-color: var(--color-background-disabled);\n cursor: not-allowed;\n\n ~ label {\n color: var(--color-text-disabled);\n cursor: initial;\n }\n\n .pds-switch__message {\n color: initial;\n }\n}\n\n// Hover state\ninput:hover:not(:disabled) {\n background-color: var(--color-background-hover);\n}\n\n // Focus state\ninput:focus-visible:not(:disabled) {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n}\n\n// 'Checked' state\n// switch toggle\ninput:checked::after {\n transform: translate3d(0, -50%, 0);\n}\n\n// switch container\ninput:checked:not(:disabled) {\n background-color: currentColor;\n color: var(--color-background-checked);\n\n &:hover {\n border-color: currentColor;\n color: var(--color-background-checked-hover);\n }\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-switch',\n styleUrl: 'pds-switch.scss',\n shadow: true,\n})\nexport class PdsSwitch {\n @Element() el: HTMLPdsSwitchElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines the input 'checked' state\n */\n @Prop() checked = false;\n\n /**\n * Determines the input 'disabled' state, preventing user interaction\n */\n @Prop() disabled? = false;\n\n /**\n * Displays message text describing an invalid state\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays help text for additional description of an input\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines the input 'invalid' state, signifying an error is present\n */\n @Prop() invalid? = false;\n\n /**\n * Displays text to describe the input\n */\n @Prop() label!: string;\n\n /**\n * Identifies form data and unifies a group of radio inputs for toggling a single property/value\n */\n @Prop() name: string;\n\n /**\n * Determines the 'required' state of the input\n */\n @Prop() required? = false;\n\n /**\n * Specifies the underlying input element type\n * @defaultValue 'checkbox'\n */\n @Prop() type: 'checkbox' | 'radio' = 'checkbox';\n\n /**\n * Provides input with a string submitted in form data, and can be used to distinguish radio inputs\n */\n @Prop() value: string;\n\n /**\n * Emits an event on input change\n */\n @Event() pdsSwitchChange: EventEmitter<InputEvent>;\n\n private onSwitchUpdate = (e: Event) => {\n if (this.disabled) return;\n this.pdsSwitchChange.emit(e as InputEvent);\n };\n\n /**\n * Generate switch classes\n */\n private switchClassNames = () => {\n let switchClasses = `pds-switch`;\n\n if (this.invalid === true) {\n switchClasses += \" pds-switch--error\";\n }\n if (this.helperMessage !== undefined) {\n switchClasses += \" pds-switch--message\";\n }\n return switchClasses;\n };\n\n render() {\n return (\n <Host class={this.switchClassNames()} aria-disabled={this.disabled ? 'true' : null}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n checked={this.checked}\n class=\"pds-switch__input\"\n disabled={this.disabled}\n id={this.componentId}\n name={this.name ? this.name : this.componentId}\n onChange={this.onSwitchUpdate}\n required={this.required}\n type={this.type}\n value={this.value}\n />\n <PdsLabel classNames=\"pds-switch__label\" htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={`pds-switch__message`}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-switch__message pds-switch__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,53 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const pdsTabCss = "pds-tab{--border-none:var(--pine-border-width-none);--border-radius-availability:var(--pine-border-radius-100);--border-radius-default:var(--pine-border-radius-125);--border-radius-none:var(--pine-border-radius-0);--box-shadow-focus:0 0 0 2px var(--pine-color-blue-200);--color-background-active:var(--pine-color-charcoal-400);--color-background-availability:var(--pine-color-white);--color-background-default:var(--pine-color-grey-300);--color-background-hover:var(--pine-color-grey-400);--color-text-active:var(--pine-color-charcoal-400);--color-text-active-inverse:var(--pine-color-white);--color-text-default:var(--pine-color-charcoal-200);--color-text-focus:var(--pine-color-charcoal-300);--font-size-availability-content:var(--pine-font-size-075);--font-size-default:var(--pine-font-size-100);--font-size-filter-content:var(--pine-font-size-087);--font-weight-default:var(--pine-font-weight-medium);--line-height-availability-content:var(--pine-line-height-100);--line-height-default:var(--pine-line-height-150);--line-height-filter-content:var(--pine-line-height-125);--outline:4px solid var(--pine-color-blue-200);--spacing-padding-none:var(--pine-spacing-0);display:inline-block;position:relative}.pds-tab{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:var(--border-none);-webkit-box-shadow:none;box-shadow:none;color:inherit;cursor:pointer;font-family:inherit;padding:var(--spacing-padding-none);-ms-flex-align:center;align-items:center;color:var(--color-text-default);display:-ms-inline-flexbox;display:inline-flex;position:relative;text-decoration:none;white-space:nowrap}.pds-tab.is-active,.pds-tab[aria-selected=true]{color:var(--color-text-active)}.pds-tab.is-active .pds-tab__content::after,.pds-tab[aria-selected=true] .pds-tab__content::after{opacity:1}.pds-tab:hover{color:var(--color-text-active)}.pds-tab:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-tab .pds-tab__content{font-family:inherit;font-size:var(--font-size-default);font-weight:var(--font-weight-default);line-height:var(--line-height-default);-webkit-padding-after:11px;padding-block-end:11px;position:relative}.pds-tab .pds-tab__content::after{background-color:currentColor;bottom:0;content:\"\";height:3px;left:0;opacity:0;position:absolute;right:0}.pds-tab .pds-tab-edge{display:none}.pds-tabs--availability{--color-background-tab:transparent}.pds-tabs--availability .pds-tab{background-color:var(--color-background-tab);border-radius:var(--border-radius-availability) var(--border-radius-availability) var(--border-radius-none) var(--border-radius-none);padding:8px 16px 13px}.pds-tabs--availability .pds-tab.is-active,.pds-tabs--availability .pds-tab[aria-selected=true]{--color-background-tab:var(--color-background-availability)}.pds-tabs--availability .pds-tab.is-active .pds-tab__content::after,.pds-tabs--availability .pds-tab[aria-selected=true] .pds-tab__content::after{opacity:1}.pds-tabs--availability .pds-tab.is-active .pds-tab-edge,.pds-tabs--availability .pds-tab[aria-selected=true] .pds-tab-edge{z-index:1}.pds-tabs--availability .pds-tab:hover:not(.is-active,[aria-selected=true]){--color-background-tab:var(--color-background-default)}.pds-tabs--availability .pds-tab:focus-visible{color:var(--color-text-default)}.pds-tabs--availability .pds-tab__content{font-size:var(--font-size-availability-content);line-height:var(--line-height-availability-content);padding-bottom:7px}.pds-tabs--availability .pds-tab-edge{bottom:0;display:block;height:8px;inset-inline-end:100%;overflow:hidden;position:absolute;width:8px}.pds-tabs--availability .pds-tab-edge::before{border-radius:50%;bottom:0;-webkit-box-shadow:4px 4px 0 0 var(--color-background-tab);box-shadow:4px 4px 0 0 var(--color-background-tab);content:\"\";display:block;height:200%;inset-inline-end:0;position:absolute;width:200%}.pds-tabs--availability .pds-tab-edge--end{inset-inline-end:unset;inset-inline-start:100%}.pds-tabs--availability .pds-tab-edge--end::before{-webkit-box-shadow:-4px 4px 0 0 var(--color-background-tab);box-shadow:-4px 4px 0 0 var(--color-background-tab);inset-inline-end:unset;inset-inline-start:0}.pds-tabs--filter{--color-background-tab:var(--color-background-active)}.pds-tabs--filter .pds-tab{background-color:var(--color-background-tab);border-radius:50px;color:var(--color-text-active);padding:6px 15px}.pds-tabs--filter .pds-tab.is-active,.pds-tabs--filter .pds-tab[aria-selected=true]{--color-background-tab:var(--color-background-active);color:var(--color-text-active-inverse)}.pds-tabs--filter .pds-tab:hover:not(.is-active,[aria-selected=true]){--color-background-tab:var(--color-background-hover)}.pds-tabs--filter .pds-tab__content{font-size:var(--font-size-filter-content);line-height:var(--line-height-filter-content);-webkit-padding-after:0;padding-block-end:0}.pds-tabs--filter .pds-tab__content::after{content:unset}";
4
+ const PdsTabStyle0 = pdsTabCss;
5
+
6
+ const PdsTab$1 = /*@__PURE__*/ proxyCustomElement(class PdsTab extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.pdsTabClick = createEvent(this, "pdsTabClick", 7);
11
+ this.name = undefined;
12
+ this.parentComponentId = undefined;
13
+ this.variant = undefined;
14
+ this.index = undefined;
15
+ this.selected = false;
16
+ }
17
+ onTabClick(index, parentComponentId) {
18
+ this.pdsTabClick.emit([index, parentComponentId]);
19
+ }
20
+ render() {
21
+ const availabilityTabEdgeInlineStart = (h("span", { key: '5ea7f20d14e906993c0cfbef0ae9a37b305be9fd', class: "pds-tab-edge", role: "presentation" }));
22
+ const availabilityTabEdgeInlineEnd = (h("span", { key: '9fc8287a57fd777472d9f909a451332b7edd8c39', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
23
+ return (h(Host, { key: '16d11c4bda123cbb698674c560dc7c826fe653ca', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '63e18d48cd1206c87e520cbe85c09e7fbd8752f0', 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, h("div", { key: '5db0ed6e01b1cfe58f47669b369bb72bd3caa033', class: "pds-tab__content" }, h("slot", { key: '1737f4b6a524cf165deb1eb1a2627ae834a76be2' })))));
24
+ }
25
+ get el() { return this; }
26
+ static get style() { return PdsTabStyle0; }
27
+ }, [4, "pds-tab", {
28
+ "name": [1],
29
+ "parentComponentId": [1, "parent-component-id"],
30
+ "variant": [1],
31
+ "index": [2],
32
+ "selected": [4]
33
+ }]);
34
+ function defineCustomElement$1() {
35
+ if (typeof customElements === "undefined") {
36
+ return;
37
+ }
38
+ const components = ["pds-tab"];
39
+ components.forEach(tagName => { switch (tagName) {
40
+ case "pds-tab":
41
+ if (!customElements.get(tagName)) {
42
+ customElements.define(tagName, PdsTab$1);
43
+ }
44
+ break;
45
+ } });
46
+ }
47
+
48
+ const PdsTab = PdsTab$1;
49
+ const defineCustomElement = defineCustomElement$1;
50
+
51
+ export { PdsTab, defineCustomElement };
52
+
53
+ //# sourceMappingURL=pds-tab.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-tab.js","mappings":";;AAAA,MAAM,SAAS,GAAG,00JAA00J,CAAC;AAC71J,qBAAe,SAAS;;MCMXA,QAAM;;;;;;;;;wBA8BE,KAAK;;IAOhB,UAAU,CAAC,KAAK,EAAE,iBAAiB;QACzC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC;KACnD;IAED,MAAM;QACJ,MAAM,8BAA8B,IAClC,6DAAM,KAAK,EAAC,cAAc,EAAC,IAAI,EAAC,cAAc,GAAQ,CACvD,CAAA;QAED,MAAM,4BAA4B,IAChC,6DAAM,KAAK,EAAC,gCAAgC,EAAC,IAAI,EAAC,cAAc,GAAQ,CACzE,CAAA;QAED,QACE,EAAC,IAAI,qDAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,IACxD,+DACE,IAAI,EAAC,KAAK,EACV,EAAE,EAAE,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,mBAC9B,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,QAAQ,EACnE,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,GAAG,GAAG,IAAI,mBACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,OAAO,EAC/C,KAAK,EAAE,IAAI,CAAC,QAAQ,GAAG,mBAAmB,GAAG,SAAS,EACtD,OAAO,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,iBAAiB,CAAC,IAEtE,IAAI,CAAC,OAAO,KAAK,cAAc,IAAI,8BAA8B,EACjE,IAAI,CAAC,OAAO,KAAK,cAAc,IAAI,4BAA4B,EAChE,4DAAK,KAAK,EAAC,kBAAkB,IAAC,8DAAO,CAAM,CACpC,CACJ,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTab"],"sources":["src/components/pds-tabs/pds-tab/pds-tab.scss?tag=pds-tab","src/components/pds-tabs/pds-tab/pds-tab.tsx"],"sourcesContent":["pds-tab {\n --border-none: var(--pine-border-width-none);\n\n --border-radius-availability: var(--pine-border-radius-100);\n --border-radius-default: var(--pine-border-radius-125);\n --border-radius-none: var(--pine-border-radius-0);\n\n --box-shadow-focus: 0 0 0 2px var(--pine-color-blue-200);\n\n --color-background-active: var(--pine-color-charcoal-400);\n --color-background-availability: var(--pine-color-white);\n --color-background-default: var(--pine-color-grey-300);\n --color-background-hover: var(--pine-color-grey-400);\n --color-text-active: var(--pine-color-charcoal-400);\n --color-text-active-inverse: var(--pine-color-white);\n --color-text-default: var(--pine-color-charcoal-200);\n --color-text-focus: var(--pine-color-charcoal-300);\n\n --font-size-availability-content: var(--pine-font-size-075);\n --font-size-default: var(--pine-font-size-100);\n --font-size-filter-content: var(--pine-font-size-087);\n\n --font-weight-default: var(--pine-font-weight-medium);\n\n --line-height-availability-content: var(--pine-line-height-100);\n --line-height-default: var(--pine-line-height-150);\n --line-height-filter-content: var(--pine-line-height-125);\n\n --outline: 4px solid var(--pine-color-blue-200);\n\n --spacing-padding-none: var(--pine-spacing-0);\n\n display: inline-block;\n position: relative;\n}\n\n///\n/// Resets base button styles\n///\n@mixin pds-button-style-reset {\n appearance: none;\n background-color: transparent;\n border: var(--border-none);\n box-shadow: none;\n color: inherit;\n cursor: pointer;\n font-family: inherit;\n padding: var(--spacing-padding-none);\n}\n\n.pds-tab {\n @include pds-button-style-reset();\n\n align-items: center;\n color: var(--color-text-default);\n display: inline-flex;\n position: relative;\n text-decoration: none;\n white-space: nowrap;\n\n &.is-active,\n &[aria-selected='true'] {\n color: var(--color-text-active);\n\n .pds-tab__content::after {\n opacity: 1;\n }\n }\n\n &:hover {\n color: var(--color-text-active);\n }\n\n &:focus-visible {\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n }\n\n .pds-tab__content {\n font-family: inherit;\n font-size: var(--font-size-default);\n font-weight: var(--font-weight-default);\n line-height: var(--line-height-default);\n padding-block-end: 11px;\n position: relative;\n\n &::after {\n background-color: currentColor;\n bottom: 0;\n content: '';\n height: 3px;\n left: 0;\n opacity: 0;\n position: absolute;\n right: 0;\n }\n }\n\n .pds-tab-edge {\n display: none;\n }\n}\n\n.pds-tabs--availability {\n --color-background-tab: transparent;\n\n .pds-tab {\n background-color: var(--color-background-tab);\n border-radius: var(--border-radius-availability) var(--border-radius-availability) var(--border-radius-none) var(--border-radius-none);\n padding: 8px 16px 13px;\n\n &.is-active,\n &[aria-selected='true'] {\n --color-background-tab: var(--color-background-availability);\n\n .pds-tab__content::after {\n opacity: 1;\n }\n\n .pds-tab-edge {\n z-index: 1;\n }\n }\n\n &:hover:not(.is-active, [aria-selected='true']) {\n --color-background-tab: var(--color-background-default);\n }\n\n &:focus-visible {\n color: var(--color-text-default);\n }\n }\n\n .pds-tab__content {\n font-size: var(--font-size-availability-content);\n line-height: var(--line-height-availability-content);\n padding-bottom: 7px;\n }\n\n .pds-tab-edge {\n bottom: 0;\n display: block;\n height: 8px;\n inset-inline-end: 100%;\n overflow: hidden;\n position: absolute;\n width: 8px;\n\n &::before {\n border-radius: 50%;\n bottom: 0;\n box-shadow: 4px 4px 0 0 var(--color-background-tab);\n content: '';\n display: block;\n height: 200%;\n inset-inline-end: 0;\n position: absolute;\n width: 200%;\n }\n }\n\n .pds-tab-edge--end {\n inset-inline-end: unset;\n inset-inline-start: 100%;\n\n &::before {\n box-shadow: -4px 4px 0 0 var(--color-background-tab);\n inset-inline-end: unset;\n inset-inline-start: 0;\n }\n }\n}\n\n.pds-tabs--filter {\n --color-background-tab: var(--color-background-active);\n\n .pds-tab {\n background-color: var(--color-background-tab);\n border-radius: 50px;\n color: var(--color-text-active);\n padding: 6px 15px;\n\n &.is-active,\n &[aria-selected='true'] {\n --color-background-tab: var(--color-background-active);\n color: var(--color-text-active-inverse)\n }\n\n &:hover:not(.is-active, [aria-selected='true']) {\n --color-background-tab: var(--color-background-hover);\n }\n }\n\n .pds-tab__content {\n font-size: var(--font-size-filter-content);\n line-height: var(--line-height-filter-content);\n padding-block-end: 0;\n\n &::after {\n content: unset;\n }\n }\n}\n","import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n@Component({\n tag: 'pds-tab',\n styleUrl: 'pds-tab.scss',\n shadow: false,\n})\nexport class PdsTab {\n @Element() el: HTMLPdsTabElement;\n\n /**\n * Sets the related tab name, this name must match a `pds-tabpanel`'s tab name property\n */\n @Prop() name!: string;\n\n /**\n * Keeps track of the parentComponentId unique id, this property is passed by parent component\n */\n /** @internal */\n @Prop() parentComponentId: string;\n\n /**\n * Keeps track of if the expected tab variant, this property is passed by parent component\n */\n /** @internal */\n @Prop() variant: string;\n\n /**\n * Keeps track of if the tab index number, this property is passed by parent component\n */\n /** @internal */\n @Prop() index: number;\n\n /**\n * Keeps track of the tabpanel selected state, this property is passed by parent component\n */\n /** @internal */\n @Prop() selected = false;\n\n /**\n * Emits an event upon tab click for `pds-tab` and `pds-tabpanel` to listen for\n */\n /** @internal */\n @Event() pdsTabClick: EventEmitter<object>;\n private onTabClick(index, parentComponentId) {\n this.pdsTabClick.emit([index, parentComponentId]);\n }\n\n render() {\n const availabilityTabEdgeInlineStart = (\n <span class=\"pds-tab-edge\" role=\"presentation\"></span>\n )\n\n const availabilityTabEdgeInlineEnd = (\n <span class=\"pds-tab-edge pds-tab-edge--end\" role=\"presentation\"></span>\n )\n\n return (\n <Host variant={this.variant} slot=\"tabs\" index={this.index}>\n <button\n role=\"tab\"\n id={this.parentComponentId + \"__\" + this.name}\n aria-controls={this.parentComponentId + \"__\" + this.name + \"-panel\"}\n tabindex={this.selected ? \"0\" : \"-1\"}\n aria-selected={this.selected ? \"true\" : \"false\"}\n class={this.selected ? \"pds-tab is-active\" : \"pds-tab\"}\n onClick={this.onTabClick.bind(this, this.index, this.parentComponentId)}\n >\n {this.variant === \"availability\" && availabilityTabEdgeInlineStart}\n {this.variant === \"availability\" && availabilityTabEdgeInlineEnd}\n <div class=\"pds-tab__content\"><slot/></div>\n </button>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,36 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const pdsTableBodyCss = ":host{border-color:inherit;display:table-row-group;vertical-align:middle}";
4
+ const PdsTableBodyStyle0 = pdsTableBodyCss;
5
+
6
+ const PdsTableBody$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableBody extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ }
12
+ render() {
13
+ return (h(Host, { key: '53ae547e27857b0e8e11adcbab634979555b37ab', role: "rowgroup" }, h("slot", { key: 'ba94c5332cdb944a36eecfd8f16c63e1fd0c0c0c' })));
14
+ }
15
+ static get style() { return PdsTableBodyStyle0; }
16
+ }, [1, "pds-table-body"]);
17
+ function defineCustomElement$1() {
18
+ if (typeof customElements === "undefined") {
19
+ return;
20
+ }
21
+ const components = ["pds-table-body"];
22
+ components.forEach(tagName => { switch (tagName) {
23
+ case "pds-table-body":
24
+ if (!customElements.get(tagName)) {
25
+ customElements.define(tagName, PdsTableBody$1);
26
+ }
27
+ break;
28
+ } });
29
+ }
30
+
31
+ const PdsTableBody = PdsTableBody$1;
32
+ const defineCustomElement = defineCustomElement$1;
33
+
34
+ export { PdsTableBody, defineCustomElement };
35
+
36
+ //# sourceMappingURL=pds-table-body.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-table-body.js","mappings":";;AAAA,MAAM,eAAe,GAAG,2EAA2E,CAAC;AACpG,2BAAe,eAAe;;MCMjBA,cAAY;;;;;;IAEvB,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,UAAU,IACnB,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTableBody"],"sources":["src/components/pds-table/pds-table-body/pds-table-body.scss?tag=pds-table-body&encapsulation=shadow","src/components/pds-table/pds-table-body/pds-table-body.tsx"],"sourcesContent":[":host {\n border-color: inherit;\n display: table-row-group;\n vertical-align: middle;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-body',\n styleUrl: 'pds-table-body.scss',\n shadow: true,\n})\nexport class PdsTableBody {\n\n render() {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,8 @@
1
+ import { P as PdsTableCell$1, d as defineCustomElement$1 } from './pds-table-cell2.js';
2
+
3
+ const PdsTableCell = PdsTableCell$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { PdsTableCell, defineCustomElement };
7
+
8
+ //# sourceMappingURL=pds-table-cell.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-table-cell.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,72 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+
3
+ const pdsTableCellCss = ":host{--box-shadow-fixed:3px 3px 6px -2px rgba(0, 0, 0, 0.2);--color-background-fixed:var(--pine-color-white);--color-cell-default:var(--pine-color-charcoal-200);--dimension-fixed-cell-position:0;--dimension-max-width-truncated:100px;--font-size-cell-default:var(--pine-font-size-087);--number-fixed-column-index:0;--spacing-line-height-cell-default:var(--pine-line-height-125);--spacing-padding-cell-default:calc(var(--pine-spacing-300) / 2);--spacing-padding-compact:var(--pine-spacing-050);color:var(--color-cell-default);display:table-cell;font-size:var(--font-size-cell-default);line-height:var(--spacing-line-height-cell-default);padding:var(--spacing-padding-cell-default);vertical-align:inherit}:host(.is-compact){padding-block:var(--spacing-padding-compact)}:host(.is-fixed){background:var(--color-background-fixed);left:var(--dimension-fixed-cell-position);position:-webkit-sticky;position:sticky;z-index:1}:host(.has-scrolled.is-fixed){-webkit-box-shadow:var(--box-shadow-fixed);box-shadow:var(--box-shadow-fixed)}:host(.is-truncated){max-width:var(--dimension-max-width-truncated);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.has-checkbox){vertical-align:middle;width:16px}";
4
+ const PdsTableCellStyle0 = pdsTableCellCss;
5
+
6
+ const PdsTableCell = /*@__PURE__*/ proxyCustomElement(class PdsTableCell extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.handleScroll = () => {
12
+ if (this.tableRef.scrollLeft > 0) {
13
+ this.tableScrolling = true;
14
+ }
15
+ else {
16
+ this.tableScrolling = false;
17
+ }
18
+ };
19
+ this.truncate = undefined;
20
+ this.tableScrolling = false;
21
+ }
22
+ componentWillRender() {
23
+ this.tableRef = this.hostElement.closest('pds-table');
24
+ }
25
+ componentDidLoad() {
26
+ if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {
27
+ this.tableRef.addEventListener('scroll', this.handleScroll);
28
+ }
29
+ }
30
+ classNames() {
31
+ const classNames = [];
32
+ if (this.tableRef && this.tableRef.compact) {
33
+ classNames.push('is-compact');
34
+ }
35
+ if (this.truncate) {
36
+ classNames.push('is-truncated');
37
+ }
38
+ if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {
39
+ classNames.push('has-scrolled');
40
+ }
41
+ return classNames.join(' ');
42
+ }
43
+ render() {
44
+ return (h(Host, { key: '91ed20b4338792e6d72834d81d966c154fa2bc6d', class: this.classNames(), role: "gridcell", style: this.tableRef &&
45
+ this.tableRef.fixedColumn &&
46
+ this.tableRef.selectable
47
+ ? { '--fixed-cell-position': '40px' }
48
+ : {} }, h("slot", { key: '40dafc4697ba077a121979b604100107f51e9ff1' })));
49
+ }
50
+ get hostElement() { return this; }
51
+ static get style() { return PdsTableCellStyle0; }
52
+ }, [1, "pds-table-cell", {
53
+ "truncate": [4],
54
+ "tableScrolling": [32]
55
+ }]);
56
+ function defineCustomElement() {
57
+ if (typeof customElements === "undefined") {
58
+ return;
59
+ }
60
+ const components = ["pds-table-cell"];
61
+ components.forEach(tagName => { switch (tagName) {
62
+ case "pds-table-cell":
63
+ if (!customElements.get(tagName)) {
64
+ customElements.define(tagName, PdsTableCell);
65
+ }
66
+ break;
67
+ } });
68
+ }
69
+
70
+ export { PdsTableCell as P, defineCustomElement as d };
71
+
72
+ //# sourceMappingURL=pds-table-cell2.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-table-cell2.js","mappings":";;AAAA,MAAM,eAAe,GAAG,urCAAurC,CAAC;AAChtC,2BAAe,eAAe;;MCMjB,YAAY;;;;;QAuCf,iBAAY,GAAG;YACrB,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,CAAC,EAAE;gBAChC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;aAC5B;iBAAM;gBACL,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;aAC7B;SACF,CAAC;;8BA1ByC,KAAK;;IAfhD,mBAAmB;QACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAwB,CAAC;KAC9E;IAED,gBAAgB;QACd,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YAC1E,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;SAC7D;KACF;IASO,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;YAC1C,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC/B;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACjC;QAED,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,EAAE;YACrE,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACjC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC7B;IAUD,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAC,UAAU,EACf,KAAK,EACH,IAAI,CAAC,QAAQ;gBACb,IAAI,CAAC,QAAQ,CAAC,WAAW;gBACzB,IAAI,CAAC,QAAQ,CAAC,UAAU;kBACpB,EAAE,uBAAuB,EAAE,MAAM,EAAE;kBACnC,EAAE,IAGR,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/pds-table/pds-table-cell/pds-table-cell.scss?tag=pds-table-cell&encapsulation=shadow","src/components/pds-table/pds-table-cell/pds-table-cell.tsx"],"sourcesContent":[":host {\n --box-shadow-fixed: 3px 3px 6px -2px rgba(0, 0, 0, 0.2);\n\n --color-background-fixed: var(--pine-color-white);\n --color-cell-default: var(--pine-color-charcoal-200);\n\n --dimension-fixed-cell-position: 0;\n --dimension-max-width-truncated: 100px;\n\n --font-size-cell-default: var(--pine-font-size-087);\n\n --number-fixed-column-index: 0;\n\n --spacing-line-height-cell-default: var(--pine-line-height-125);\n --spacing-padding-cell-default: calc(var(--pine-spacing-300) / 2);\n --spacing-padding-compact: var(--pine-spacing-050);\n\n color: var(--color-cell-default);\n display: table-cell;\n font-size: var(--font-size-cell-default);\n line-height: var(--spacing-line-height-cell-default);\n padding: var(--spacing-padding-cell-default);\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--spacing-padding-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-fixed);\n}\n\n:host(.is-truncated) {\n max-width: var(--dimension-max-width-truncated);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host(.has-checkbox) {\n vertical-align: middle;\n width: 16px;\n}\n","import { Component, Element, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-cell',\n styleUrl: 'pds-table-cell.scss',\n shadow: true,\n})\nexport class PdsTableCell {\n @Element() hostElement: HTMLPdsTableCellElement;\n private tableRef: HTMLPdsTableElement;\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 /**\n * Truncates content to a max width of 100px and adds an ellipsis.\n */\n @Prop() truncate: boolean;\n\n @State() private tableScrolling: boolean = false;\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.truncate) {\n classNames.push('is-truncated');\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 private handleScroll = () => {\n if (this.tableRef.scrollLeft > 0) {\n this.tableScrolling = true;\n } else {\n this.tableScrolling = false;\n }\n };\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"gridcell\"\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 </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,8 @@
1
+ import { P as PdsTableHeadCell$1, d as defineCustomElement$1 } from './pds-table-head-cell2.js';
2
+
3
+ const PdsTableHeadCell = PdsTableHeadCell$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { PdsTableHeadCell, defineCustomElement };
7
+
8
+ //# sourceMappingURL=pds-table-head-cell.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-table-head-cell.js","mappings":";;;;;;;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -0,0 +1,92 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { e as upSmall, d as downSmall } from './index2.js';
3
+
4
+ const pdsTableHeadCellCss = ":host{--border-head-cell-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300);--box-shadow-default:3px 3px 6px -2px rgba(0, 0, 0, 0.1);--color-background-fixed:var(--pine-color-white);--color-sorting:var(--pine-color-charcoal-500);--color-text-default:var(--pine-color-charcoal-200);--dimension-fixed-cell-position:0;--font-size-head-cell:var(--pine-font-size-087);--font-weight-cell-default:var(--pine-font-weight-normal);--line-height-cell-default:var(--pine-line-height-125);--padding-cell-default:calc(var(--pine-spacing-300) / 2);--spacing-margin-inline-start-arrow:var(--pine-spacing-050);--spacing-padding-arrow:calc(var(--pine-spacing-050) / 2);--spacing-padding-block-compact:var(--pine-spacing-050);-webkit-border-after:var(--border-head-cell-default);border-block-end:var(--border-head-cell-default);color:var(--color-text-default);display:table-cell;font-size:var(--font-size-head-cell);font-style:normal;font-weight:var(--font-weight-cell-default);line-height:var(--line-height-cell-default);padding:var(--padding-cell-default);text-align:start;vertical-align:inherit}:host(.is-compact){padding-block:var(--spacing-padding-block-compact)}:host(.is-fixed){background:var(--color-background-fixed);left:var(--dimension-fixed-cell-position);position:-webkit-sticky;position:sticky;z-index:1}:host(.has-scrolled.is-fixed){-webkit-box-shadow:var(--box-shadow-default);box-shadow:var(--box-shadow-default)}:host(.is-sortable){cursor:pointer}:host(.is-sortable) pds-icon{-webkit-margin-start:var(--spacing-margin-inline-start-arrow);margin-inline-start:var(--spacing-margin-inline-start-arrow);-webkit-padding-before:var(--spacing-padding-arrow);padding-block-start:var(--spacing-padding-arrow);position:absolute}:host(.is-sortable:hover),:host(.is-active){color:var(--color-sorting)}";
5
+ const PdsTableHeadCellStyle0 = pdsTableHeadCellCss;
6
+
7
+ const PdsTableHeadCell = /*@__PURE__*/ proxyCustomElement(class PdsTableHeadCell extends HTMLElement {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ this.pdsTableSort = createEvent(this, "pdsTableSort", 7);
13
+ this.handleScroll = () => {
14
+ if (this.tableRef.scrollLeft > 0) {
15
+ this.tableScrolling = true;
16
+ }
17
+ else {
18
+ this.tableScrolling = false;
19
+ }
20
+ };
21
+ this.toggleSort = () => {
22
+ if (this.sortable) {
23
+ const column = this.hostElement.innerText.trim();
24
+ this.sortingDirection = this.sortingDirection === 'asc' ? 'desc' : 'asc';
25
+ this.tableRef.querySelectorAll('pds-table-head-cell').forEach((headCell) => {
26
+ headCell.classList.remove('is-active');
27
+ });
28
+ this.hostElement.classList.toggle('is-active');
29
+ this.pdsTableSort.emit({ column, direction: this.sortingDirection });
30
+ }
31
+ };
32
+ this.sortable = undefined;
33
+ this.sortingDirection = 'asc';
34
+ this.tableScrolling = false;
35
+ this.isSelected = false;
36
+ }
37
+ componentWillRender() {
38
+ this.tableRef = this.hostElement.closest('pds-table');
39
+ }
40
+ componentDidLoad() {
41
+ if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {
42
+ this.tableRef.addEventListener('scroll', this.handleScroll);
43
+ }
44
+ }
45
+ classNames() {
46
+ const classNames = [];
47
+ if (this.tableRef && this.tableRef.compact) {
48
+ classNames.push('is-compact');
49
+ }
50
+ if (this.sortable) {
51
+ classNames.push('is-sortable');
52
+ }
53
+ if (this.sortable && this.sortingDirection !== null) {
54
+ classNames.push('sort-' + this.sortingDirection);
55
+ }
56
+ if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {
57
+ classNames.push('has-scrolled');
58
+ }
59
+ return classNames.join(' ');
60
+ }
61
+ render() {
62
+ return (h(Host, { key: '72e242a22774d4b534b7a8653673606e0e9c6ef1', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, style: this.tableRef &&
63
+ this.tableRef.fixedColumn &&
64
+ this.tableRef.selectable
65
+ ? { '--fixed-cell-position': '40px' }
66
+ : {} }, h("slot", { key: '08e1d5aab1761ed097e2669716884196c946bcc3' }), this.sortable && (h("pds-icon", { key: '43421a2b1401426878601468acee702ce45404bf', icon: this.sortingDirection === 'asc' ? upSmall : downSmall }))));
67
+ }
68
+ get hostElement() { return this; }
69
+ static get style() { return PdsTableHeadCellStyle0; }
70
+ }, [1, "pds-table-head-cell", {
71
+ "sortable": [4],
72
+ "sortingDirection": [32],
73
+ "tableScrolling": [32],
74
+ "isSelected": [32]
75
+ }]);
76
+ function defineCustomElement() {
77
+ if (typeof customElements === "undefined") {
78
+ return;
79
+ }
80
+ const components = ["pds-table-head-cell"];
81
+ components.forEach(tagName => { switch (tagName) {
82
+ case "pds-table-head-cell":
83
+ if (!customElements.get(tagName)) {
84
+ customElements.define(tagName, PdsTableHeadCell);
85
+ }
86
+ break;
87
+ } });
88
+ }
89
+
90
+ export { PdsTableHeadCell as P, defineCustomElement as d };
91
+
92
+ //# sourceMappingURL=pds-table-head-cell2.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-table-head-cell2.js","mappings":";;;AAAA,MAAM,mBAAmB,GAAG,kxDAAkxD,CAAC;AAC/yD,+BAAe,mBAAmB;;MCQrB,gBAAgB;;;;;;QAgCnB,iBAAY,GAAG;YACrB,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,CAAC,EAAE;gBAChC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;aAC5B;iBAAM;gBACL,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC;aAC7B;SACF,CAAC;QAEM,eAAU,GAAG;YACnB,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjB,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;gBACjD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,gBAAgB,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC;gBAEzE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,qBAAqB,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ;oBACrE,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;iBACxC,CAAC,CAAC;gBAEH,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;gBAC/C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;aACtE;SACF,CAAA;;gCAtCmD,KAAK;8BACd,KAAK;0BAKjB,KAAK;;IAEpC,mBAAmB;QACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAwB,CAAC;KAC9E;IAED,gBAAgB;QACd,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YAC1E,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;SAC7D;KACF;IAwBO,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;YAC1C,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC/B;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAChC;QAED,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,gBAAgB,KAAK,IAAI,EAAE;YACnD,UAAU,CAAC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC;SAClD;QAED,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,CAAC,cAAc,EAAE;YACrE,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;SACjC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC9B;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,IAAI,CAAC,UAAU,EACxB,KAAK,EACH,IAAI,CAAC,QAAQ;gBACb,IAAI,CAAC,QAAQ,CAAC,WAAW;gBACzB,IAAI,CAAC,QAAQ,CAAC,UAAU;kBACpB,EAAE,uBAAuB,EAAE,MAAM,EAAE;kBACnC,EAAE,IAGR,8DAAa,EACZ,IAAI,CAAC,QAAQ,KACZ,iEAAU,IAAI,EAAE,IAAI,CAAC,gBAAgB,KAAK,KAAK,GAAG,OAAO,GAAG,SAAS,GAAI,CAC1E,CACI,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"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 private 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 /**\n * A local state to track whether the row is currently selected.\n */\n @State() isSelected: 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"],"version":3}
@@ -0,0 +1,84 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { c as closest } from './closest.js';
3
+ import { d as defineCustomElement$3 } from './pds-checkbox2.js';
4
+ import { d as defineCustomElement$2 } from './pds-table-head-cell2.js';
5
+
6
+ const pdsTableHeadCss = ":host{--border-head-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300);--color-background-fixed:var(--pine-color-base-white);border-color:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:table-header-group;vertical-align:middle}:host::part(checkbox-cell){background-color:var(--color-background-fixed);left:0;position:-webkit-sticky;position:sticky;z-index:1}:host pds-table-checkbox-cell{-webkit-border-after:var(--border-head-default);border-block-end:var(--border-head-default)}";
7
+ const PdsTableHeadStyle0 = pdsTableHeadCss;
8
+
9
+ const PdsTableHead$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableHead extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ this.__attachShadow();
14
+ this.pdsTableSelectAll = createEvent(this, "pdsTableSelectAll", 7);
15
+ this.generateUniqueId = () => {
16
+ const randomString = Math.random().toString(36).substring(2, 8);
17
+ const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
18
+ const uniqueId = `${randomString}-${timestamp}`;
19
+ return uniqueId;
20
+ };
21
+ this.handleInput = (ev) => {
22
+ this.isSelected = !ev.target.checked;
23
+ this.handleSelect(this.isSelected);
24
+ };
25
+ this.handleSelect = (isSelected) => {
26
+ this.indeterminate = false;
27
+ if (closest('pds-table-head', this.hostElement)) {
28
+ this.pdsTableSelectAll.emit({ isSelected });
29
+ }
30
+ };
31
+ this.indeterminate = undefined;
32
+ this.isSelected = undefined;
33
+ }
34
+ componentWillLoad() {
35
+ if (this.isSelected) {
36
+ this.handleSelect(this.isSelected);
37
+ }
38
+ }
39
+ componentWillRender() {
40
+ this.tableRef = this.hostElement.closest('pds-table');
41
+ if (this.tableRef && this.tableRef.fixedColumn) {
42
+ const tableCell = this.hostElement.querySelector('pds-table-head-cell:first-child');
43
+ tableCell === null || tableCell === void 0 ? void 0 : tableCell.classList.add("is-fixed");
44
+ }
45
+ }
46
+ render() {
47
+ return (h(Host, { key: '7729235908073cae63294e4ad641bae0403e2c34', role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: '2bb801124a3f8d1c9f18d03d1461953da4cdafc6', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, h("pds-checkbox", { key: '2119be5b2db13a44add35fa9c9fc761a68a2b060', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", labelHidden: true, checked: this.isSelected }))), h("slot", { key: 'baa5b3af10a77e1a8aff537c3c731fbc59a54ca8' })));
48
+ }
49
+ get hostElement() { return this; }
50
+ static get style() { return PdsTableHeadStyle0; }
51
+ }, [1, "pds-table-head", {
52
+ "indeterminate": [1028],
53
+ "isSelected": [1028, "is-selected"]
54
+ }]);
55
+ function defineCustomElement$1() {
56
+ if (typeof customElements === "undefined") {
57
+ return;
58
+ }
59
+ const components = ["pds-table-head", "pds-checkbox", "pds-table-head-cell"];
60
+ components.forEach(tagName => { switch (tagName) {
61
+ case "pds-table-head":
62
+ if (!customElements.get(tagName)) {
63
+ customElements.define(tagName, PdsTableHead$1);
64
+ }
65
+ break;
66
+ case "pds-checkbox":
67
+ if (!customElements.get(tagName)) {
68
+ defineCustomElement$3();
69
+ }
70
+ break;
71
+ case "pds-table-head-cell":
72
+ if (!customElements.get(tagName)) {
73
+ defineCustomElement$2();
74
+ }
75
+ break;
76
+ } });
77
+ }
78
+
79
+ const PdsTableHead = PdsTableHead$1;
80
+ const defineCustomElement = defineCustomElement$1;
81
+
82
+ export { PdsTableHead, defineCustomElement };
83
+
84
+ //# sourceMappingURL=pds-table-head.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-table-head.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,0gBAA0gB,CAAC;AACniB,2BAAe,eAAe;;MCOjBA,cAAY;;;;;;QAiBf,qBAAgB,GAAG;YACzB,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAChE,MAAM,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;YACjE,MAAM,QAAQ,GAAG,GAAG,YAAY,IAAI,SAAS,EAAE,CAAC;YAEhD,OAAO,QAAQ,CAAC;SACjB,CAAA;QAEO,gBAAW,GAAG,CAAC,EAAS;YAC9B,IAAI,CAAC,UAAU,GAAG,CAAE,EAAE,CAAC,MAA2B,CAAC,OAAO,CAAA;YAC1D,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;SACnC,CAAC;QAEM,iBAAY,GAAG,CAAC,UAAmB;YACzC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAA;YAE1B,IAAK,OAAO,CAAC,gBAAgB,EAAE,IAAI,CAAC,WAAW,CAAC,EAAG;gBACjD,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC;aAC7C;SACF,CAAA;;;;IAED,iBAAiB;QACf,IAAI,IAAI,CAAC,UAAU,EAAE;YACnB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;SACnC;KACF;IAED,mBAAmB;QACjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,WAAW,CAAwB,CAAC;QAE7E,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YAC9C,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,aAAa,CAAC,iCAAiC,CAAC,CAAC;YACpF,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;SACtC;KACF;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,KAAK,IACb,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,KACxC,4EAAqB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,eAAe,GAAG,EAAE,IACxE,qEACE,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAAE,EACpC,aAAa,EAAE,IAAI,CAAC,aAAa,EACjC,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,KAAK,EAAE,iBAAiB,EACxB,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,IAAI,CAAC,UAAU,GACxB,CACkB,CACvB,EACD,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTableHead"],"sources":["src/components/pds-table/pds-table-head/pds-table-head.scss?tag=pds-table-head&encapsulation=shadow","src/components/pds-table/pds-table-head/pds-table-head.tsx"],"sourcesContent":[":host {\n --border-head-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n\n --color-background-fixed: var(--pine-color-base-white);\n\n border-color: inherit;\n box-sizing: border-box;\n display: table-header-group;\n vertical-align: middle;\n\n // used for pds-checkbox-cell\n // because it is in the ShadowDom\n &::part(checkbox-cell) {\n background-color: var(--color-background-fixed);\n left: 0;\n position: sticky;\n z-index: 1;\n }\n}\n\n:host pds-table-checkbox-cell {\n border-block-end: var(--border-head-default);\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Prop } from '@stencil/core';\nimport { closest } from '@utils/closest';\n\n@Component({\n tag: 'pds-table-head',\n styleUrl: 'pds-table-head.scss',\n shadow: true,\n})\nexport class PdsTableHead {\n @Element() hostElement: HTMLPdsTableHeadElement;\n private tableRef: HTMLPdsTableElement\n\n /** Indicates that the selection state is indeterminate. */\n @Prop({ mutable: true }) indeterminate?: boolean\n\n /**\n * A local state to track whether the row is currently selected.\n */\n @Prop({mutable: true}) isSelected: boolean;\n\n /**\n * Event that is emitted when the select all checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableSelectAll: EventEmitter<{ isSelected: boolean }>;\n\n private generateUniqueId = () => {\n const randomString = Math.random().toString(36).substring(2, 8);\n const timestamp = new Date().toISOString().replace(/[:.]/g, '-');\n const uniqueId = `${randomString}-${timestamp}`;\n\n return uniqueId;\n }\n\n private handleInput = (ev: Event) => {\n this.isSelected = !(ev.target as HTMLInputElement).checked\n this.handleSelect(this.isSelected)\n };\n\n private handleSelect = (isSelected: boolean) => {\n this.indeterminate = false\n\n if ( closest('pds-table-head', this.hostElement) ) {\n this.pdsTableSelectAll.emit({ isSelected });\n }\n }\n\n componentWillLoad() {\n if (this.isSelected) {\n this.handleSelect(this.isSelected)\n }\n }\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n if (this.tableRef && this.tableRef.fixedColumn) {\n const tableCell = this.hostElement.querySelector('pds-table-head-cell:first-child');\n tableCell?.classList.add(\"is-fixed\");\n }\n }\n\n render() {\n return (\n <Host role=\"row\">\n {this.tableRef && this.tableRef.selectable && (\n <pds-table-head-cell part={this.tableRef.selectable ? 'checkbox-cell' : ''}>\n <pds-checkbox\n componentId={this.generateUniqueId()}\n indeterminate={this.indeterminate}\n onInput={this.handleInput}\n label={\"Select All Rows\"}\n labelHidden={true}\n checked={this.isSelected}\n />\n </pds-table-head-cell>\n )}\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}