@sellmate/design-system 1.0.76 → 1.0.77

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 (430) hide show
  1. package/dist/cjs/design-system.cjs.js +2 -2
  2. package/dist/cjs/{index-Dptupbm0.js → index-CaGGRpd8.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/sd-action-modal.cjs.entry.js +2 -2
  5. package/dist/cjs/sd-badge.cjs.entry.js +2 -2
  6. package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -2
  7. package/dist/cjs/sd-button-v2_2.cjs.entry.js +3 -3
  8. package/dist/cjs/sd-button_4.cjs.entry.js +10 -13
  9. package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
  10. package/dist/cjs/sd-card.cjs.entry.js +2 -2
  11. package/dist/cjs/sd-checkbox.cjs.entry.js +7 -4
  12. package/dist/cjs/sd-chip.cjs.entry.js +2 -2
  13. package/dist/cjs/sd-circle-progress.cjs.entry.js +3 -3
  14. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +4 -4
  15. package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
  16. package/dist/cjs/sd-date-picker-calendar.cjs.entry.js +2 -2
  17. package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +3 -3
  18. package/dist/cjs/sd-date-picker.cjs.entry.js +3 -3
  19. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +2 -2
  20. package/dist/cjs/sd-date-range-picker.cjs.entry.js +1 -1
  21. package/dist/cjs/sd-dropdown-button.cjs.entry.js +94 -7
  22. package/dist/cjs/sd-file-picker.cjs.entry.js +2 -2
  23. package/dist/cjs/sd-form.cjs.entry.js +1 -1
  24. package/dist/cjs/sd-ghost-button.cjs.entry.js +3 -3
  25. package/dist/cjs/sd-guide.cjs.entry.js +2 -2
  26. package/dist/cjs/{sd-input_2.cjs.entry.js → sd-input.cjs.entry.js} +3 -43
  27. package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
  28. package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
  29. package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
  30. package/dist/cjs/sd-number-input.cjs.entry.js +4 -4
  31. package/dist/cjs/sd-pagination_5.cjs.entry.js +65 -33
  32. package/dist/cjs/sd-popover.cjs.entry.js +2 -2
  33. package/dist/cjs/sd-portal.cjs.entry.js +2 -2
  34. package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
  35. package/dist/cjs/sd-radio-group.cjs.entry.js +1 -1
  36. package/dist/cjs/sd-radio.cjs.entry.js +1 -1
  37. package/dist/cjs/{sd-select-v2-list-item_4.cjs.entry.js → sd-select-list-item_4.cjs.entry.js} +50 -50
  38. package/dist/cjs/sd-switch.cjs.entry.js +2 -2
  39. package/dist/cjs/sd-table.cjs.entry.js +21 -11
  40. package/dist/cjs/sd-table.config-hnNodd18.js +105 -0
  41. package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
  42. package/dist/cjs/sd-tag.cjs.entry.js +3 -3
  43. package/dist/cjs/sd-td.cjs.entry.js +2 -2
  44. package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
  45. package/dist/cjs/sd-textarea.cjs.entry.js +2 -2
  46. package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
  47. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  48. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  49. package/dist/cjs/{system-BbCUNhDJ.js → system-DRemSdU1.js} +7 -1
  50. package/dist/cjs/{tooltipArrow-DuANjCfc.js → tooltipArrow-BEff0q3z.js} +1 -1
  51. package/dist/collection/collection-manifest.json +11 -21
  52. package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
  53. package/dist/collection/components/sd-badge/sd-badge.js +1 -1
  54. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
  55. package/dist/collection/components/sd-button-v2/sd-button-v2.js +2 -2
  56. package/dist/collection/components/sd-card/sd-card.js +1 -1
  57. package/dist/collection/components/sd-checkbox/sd-checkbox.js +6 -3
  58. package/dist/collection/components/sd-chip/sd-chip.js +1 -1
  59. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
  60. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
  61. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +1 -1
  62. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
  63. package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
  64. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
  65. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
  66. package/dist/collection/components/sd-field/sd-field.js +5 -8
  67. package/dist/collection/components/sd-file-picker/sd-file-picker.js +1 -1
  68. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
  69. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
  70. package/dist/collection/components/sd-input/sd-input.js +2 -2
  71. package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
  72. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  73. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
  74. package/dist/collection/components/sd-number-input/sd-number-input.js +3 -3
  75. package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
  76. package/dist/collection/components/sd-portal/sd-portal.js +1 -1
  77. package/dist/collection/components/{sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.css → sd-select/sd-select-list-item/sd-select-list-item.css} +13 -13
  78. package/dist/collection/components/{sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.js → sd-select/sd-select-list-item/sd-select-list-item.js} +28 -28
  79. package/dist/collection/components/{sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.css → sd-select/sd-select-list-item-search/sd-select-list-item-search.css} +11 -11
  80. package/dist/collection/components/{sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.js → sd-select/sd-select-list-item-search/sd-select-list-item-search.js} +13 -13
  81. package/dist/collection/components/{sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.css → sd-select/sd-select-listbox/sd-select-listbox.css} +3 -3
  82. package/dist/collection/components/{sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.js → sd-select/sd-select-listbox/sd-select-listbox.js} +35 -35
  83. package/dist/collection/components/{sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.css → sd-select/sd-select-trigger/sd-select-trigger.css} +7 -7
  84. package/dist/collection/components/{sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.js → sd-select/sd-select-trigger/sd-select-trigger.js} +12 -12
  85. package/dist/collection/components/sd-select/sd-select.css +3 -47
  86. package/dist/collection/components/sd-select/sd-select.js +413 -294
  87. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  88. package/dist/collection/components/sd-table/sd-table.config.js +81 -0
  89. package/dist/collection/components/sd-table/sd-table.css +16 -8
  90. package/dist/collection/components/sd-table/sd-table.js +18 -9
  91. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +0 -8
  92. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +3 -4
  93. package/dist/collection/components/sd-table/sd-td/sd-td.js +1 -1
  94. package/dist/collection/components/sd-table/sd-thead/sd-thead.css +16 -12
  95. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +52 -8
  96. package/dist/collection/components/sd-table/sd-tr/sd-tr.css +3 -3
  97. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +15 -2
  98. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  99. package/dist/collection/components/sd-tag/sd-tag.js +2 -2
  100. package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
  101. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  102. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  103. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  104. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  105. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  106. package/dist/collection/utils/testing/index.js +2 -0
  107. package/dist/collection/utils/testing/mocks.js +35 -0
  108. package/dist/components/index.js +1 -1
  109. package/dist/components/p-B6KZfiQ5.js +1 -0
  110. package/dist/components/{p-6PsyRF61.js → p-BEOrkEV1.js} +1 -1
  111. package/dist/components/p-BJJvCBQs.js +1 -0
  112. package/dist/components/p-BM_PRj8W.js +1 -0
  113. package/dist/components/p-BR_ZAr48.js +1 -0
  114. package/dist/components/{p-BBD_1E3n.js → p-BeNJfxnb.js} +1 -1
  115. package/dist/components/{p-BLwIhCdO.js → p-BfoLbEZx.js} +1 -1
  116. package/dist/components/p-Bm8Fue-a.js +1 -0
  117. package/dist/components/{p-DaAhgdib.js → p-BynnUMVZ.js} +1 -1
  118. package/dist/components/{p-D5HLYqT-.js → p-C52iEAqd.js} +1 -1
  119. package/dist/components/{p-BQvugXhH.js → p-C8Dy_x5h.js} +1 -1
  120. package/dist/components/{p-CgMyz4NQ.js → p-CJAQuJik.js} +1 -1
  121. package/dist/components/{p-iAWNMLXh.js → p-CJqZcEqD.js} +1 -1
  122. package/dist/components/{p-d4UB2UF7.js → p-CNm5Qbf-.js} +1 -1
  123. package/dist/components/{p-B3xZdEDI.js → p-CQy5JErK.js} +1 -1
  124. package/dist/components/{p-BgFLSKqC.js → p-CZxeqYuw.js} +1 -1
  125. package/dist/components/{p-CUg9NH6y.js → p-CkgQbCMR.js} +1 -1
  126. package/dist/components/p-CvnC61M9.js +1 -0
  127. package/dist/components/{p-6LtMeKKA.js → p-D1SJ2TMu.js} +1 -1
  128. package/dist/components/{p-BXdEjuI_.js → p-D2FOkhao.js} +1 -1
  129. package/dist/components/{p-C7h8lwnU.js → p-D66nhMt3.js} +1 -1
  130. package/dist/components/p-DDDZWrWj.js +1 -0
  131. package/dist/components/{p-Csfj4h1A.js → p-DK3vj3bG.js} +1 -1
  132. package/dist/components/{p-CZPR_5mk.js → p-DcuLMUdl.js} +1 -1
  133. package/dist/components/p-DxXwz3cY.js +1 -0
  134. package/dist/components/p-NlCzTjK4.js +1 -0
  135. package/dist/components/{p-BZm6KN1s.js → p-RpjjrX78.js} +1 -1
  136. package/dist/components/{p-BM0sVq5Z.js → p-ZH78tQXS.js} +1 -1
  137. package/dist/components/{p-DQfNwvwx.js → p-ZLsQA11g.js} +1 -1
  138. package/dist/components/{p-DdJyzIYe.js → p-eGToaKCt.js} +1 -1
  139. package/dist/components/p-hTUSl23P.js +1 -0
  140. package/dist/components/p-mqa9-iql.js +1 -0
  141. package/dist/components/sd-action-modal.js +1 -1
  142. package/dist/components/sd-badge.js +1 -1
  143. package/dist/components/sd-barcode-input.js +1 -1
  144. package/dist/components/sd-button-v2.js +1 -1
  145. package/dist/components/sd-button.js +1 -1
  146. package/dist/components/sd-calendar.js +1 -1
  147. package/dist/components/sd-card.js +1 -1
  148. package/dist/components/sd-checkbox.js +1 -1
  149. package/dist/components/sd-chip.js +1 -1
  150. package/dist/components/sd-circle-progress.js +1 -1
  151. package/dist/components/sd-confirm-modal.js +1 -1
  152. package/dist/components/sd-date-box.js +1 -1
  153. package/dist/components/sd-date-picker-calendar.js +1 -1
  154. package/dist/components/sd-date-picker-trigger.js +1 -1
  155. package/dist/components/sd-date-picker.js +1 -1
  156. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  157. package/dist/components/sd-date-range-picker.js +1 -1
  158. package/dist/components/sd-dropdown-button.js +1 -1
  159. package/dist/components/sd-field.js +1 -1
  160. package/dist/components/sd-file-picker.js +1 -1
  161. package/dist/components/sd-floating-portal.js +1 -1
  162. package/dist/components/sd-form.js +1 -1
  163. package/dist/components/sd-ghost-button.js +1 -1
  164. package/dist/components/sd-guide.js +1 -1
  165. package/dist/components/sd-icon.js +1 -1
  166. package/dist/components/sd-input.js +1 -1
  167. package/dist/components/sd-linear-progress.js +1 -1
  168. package/dist/components/sd-loading-container.js +1 -1
  169. package/dist/components/sd-loading-modal.js +1 -1
  170. package/dist/components/sd-modal-container.js +1 -1
  171. package/dist/components/sd-number-input.js +1 -1
  172. package/dist/components/sd-pagination.js +1 -1
  173. package/dist/components/sd-popover.js +1 -1
  174. package/dist/components/sd-portal.js +1 -1
  175. package/dist/components/sd-radio-button.js +1 -1
  176. package/dist/components/sd-radio-group.js +1 -1
  177. package/dist/components/sd-radio.js +1 -1
  178. package/dist/components/sd-select-list-item-search.d.ts +11 -0
  179. package/dist/components/sd-select-list-item-search.js +1 -0
  180. package/dist/components/{sd-select-multiple.d.ts → sd-select-list-item.d.ts} +4 -4
  181. package/dist/components/sd-select-list-item.js +1 -0
  182. package/dist/components/{sd-select-option.d.ts → sd-select-listbox.d.ts} +4 -4
  183. package/dist/components/sd-select-listbox.js +1 -0
  184. package/dist/components/{sd-select-group.d.ts → sd-select-trigger.d.ts} +4 -4
  185. package/dist/components/sd-select-trigger.js +1 -0
  186. package/dist/components/sd-select.js +1 -1
  187. package/dist/components/sd-switch.js +1 -1
  188. package/dist/components/sd-table.js +1 -1
  189. package/dist/components/sd-tabs.js +1 -1
  190. package/dist/components/sd-tag.js +1 -1
  191. package/dist/components/sd-tbody.js +1 -1
  192. package/dist/components/sd-td.js +1 -1
  193. package/dist/components/sd-text-link.js +1 -1
  194. package/dist/components/sd-textarea.js +1 -1
  195. package/dist/components/sd-thead.js +1 -1
  196. package/dist/components/sd-toast-container.js +1 -1
  197. package/dist/components/sd-toast.js +1 -1
  198. package/dist/components/sd-toggle.js +1 -1
  199. package/dist/components/sd-tooltip.js +1 -1
  200. package/dist/components/sd-tr.js +1 -1
  201. package/dist/design-system/design-system.css +1 -1
  202. package/dist/design-system/design-system.esm.js +1 -1
  203. package/dist/design-system/{p-dad07e1a.entry.js → p-120df622.entry.js} +1 -1
  204. package/dist/design-system/{p-6af9e663.entry.js → p-28b727df.entry.js} +1 -1
  205. package/dist/design-system/{p-9466cd93.entry.js → p-2cd2fb76.entry.js} +1 -1
  206. package/dist/design-system/p-3f9d60a0.entry.js +1 -0
  207. package/dist/design-system/p-400b3676.entry.js +1 -0
  208. package/dist/design-system/{p-2eb910ec.entry.js → p-41ea33fb.entry.js} +1 -1
  209. package/dist/design-system/{p-c7bcb232.entry.js → p-42906763.entry.js} +1 -1
  210. package/dist/design-system/{p-7fe3a466.entry.js → p-42a8f8a2.entry.js} +1 -1
  211. package/dist/design-system/{p-506f2b68.entry.js → p-43ffe7b0.entry.js} +1 -1
  212. package/dist/design-system/p-4ad9a5b8.entry.js +1 -0
  213. package/dist/design-system/{p-3a9559ee.entry.js → p-504033e8.entry.js} +1 -1
  214. package/dist/design-system/p-64d3c984.entry.js +1 -0
  215. package/dist/design-system/{p-ce3d0f9c.entry.js → p-67f88b1a.entry.js} +1 -1
  216. package/dist/design-system/{p-6a3f8588.entry.js → p-68d0fa15.entry.js} +1 -1
  217. package/dist/design-system/{p-363c9451.entry.js → p-6dc47f4c.entry.js} +1 -1
  218. package/dist/design-system/{p-d6896893.entry.js → p-6f9b0b32.entry.js} +1 -1
  219. package/dist/design-system/{p-3ca5c303.entry.js → p-704dc1f1.entry.js} +1 -1
  220. package/dist/design-system/{p-17cd3a33.entry.js → p-732ee178.entry.js} +1 -1
  221. package/dist/design-system/{p-531a6a82.entry.js → p-7d892b68.entry.js} +1 -1
  222. package/dist/design-system/{p-c9eb70f5.entry.js → p-809e616c.entry.js} +1 -1
  223. package/dist/design-system/p-80c51996.entry.js +1 -0
  224. package/dist/design-system/{p-b745cd95.entry.js → p-889971bc.entry.js} +1 -1
  225. package/dist/design-system/{p-b683f2fe.entry.js → p-8abc2413.entry.js} +1 -1
  226. package/dist/design-system/{p-bb492ba7.entry.js → p-970f9ea5.entry.js} +1 -1
  227. package/dist/design-system/p-BHmXH7dZ.js +2 -0
  228. package/dist/design-system/{p-BgFLSKqC.js → p-CZxeqYuw.js} +1 -1
  229. package/dist/design-system/p-DDDZWrWj.js +1 -0
  230. package/dist/design-system/p-DG7d45mX.js +1 -0
  231. package/dist/design-system/{p-280dc548.entry.js → p-a69d6a99.entry.js} +1 -1
  232. package/dist/design-system/{p-49f78122.entry.js → p-ab5a94c8.entry.js} +1 -1
  233. package/dist/design-system/{p-f4a00276.entry.js → p-ae626d30.entry.js} +1 -1
  234. package/dist/design-system/p-b9a870bf.entry.js +1 -0
  235. package/dist/design-system/{p-97ebf578.entry.js → p-bab814c5.entry.js} +1 -1
  236. package/dist/design-system/{p-eb29dc9f.entry.js → p-c21f30de.entry.js} +1 -1
  237. package/dist/design-system/p-c863a31d.entry.js +1 -0
  238. package/dist/design-system/{p-a8bde8d9.entry.js → p-cab35b9a.entry.js} +1 -1
  239. package/dist/design-system/p-cea424f6.entry.js +1 -0
  240. package/dist/design-system/{p-34f7345b.entry.js → p-d8bb2cb4.entry.js} +1 -1
  241. package/dist/design-system/p-dd63e10f.entry.js +1 -0
  242. package/dist/design-system/{p-55b65a41.entry.js → p-e04302a2.entry.js} +1 -1
  243. package/dist/design-system/{p-5f6379e9.entry.js → p-e84d1bac.entry.js} +1 -1
  244. package/dist/design-system/{p-11029f6e.entry.js → p-ebbffddb.entry.js} +1 -1
  245. package/dist/design-system/{p-68d0d67e.entry.js → p-ec02b3e8.entry.js} +1 -1
  246. package/dist/design-system/{p-8ff967f7.entry.js → p-ed1c4625.entry.js} +1 -1
  247. package/dist/design-system/{p-fdb52620.entry.js → p-f06038fd.entry.js} +1 -1
  248. package/dist/design-system/{p-2cd2f2dd.entry.js → p-f80d10ad.entry.js} +1 -1
  249. package/dist/design-system/p-fbb7e090.entry.js +1 -0
  250. package/dist/design-system/{p-a9fc2c21.entry.js → p-feb84f87.entry.js} +1 -1
  251. package/dist/esm/design-system.js +3 -3
  252. package/dist/esm/{index-Bp7ytJz5.js → index-BHmXH7dZ.js} +1 -1
  253. package/dist/esm/loader.js +3 -3
  254. package/dist/esm/sd-action-modal.entry.js +2 -2
  255. package/dist/esm/sd-badge.entry.js +2 -2
  256. package/dist/esm/sd-barcode-input.entry.js +2 -2
  257. package/dist/esm/sd-button-v2_2.entry.js +3 -3
  258. package/dist/esm/sd-button_4.entry.js +10 -13
  259. package/dist/esm/sd-calendar.entry.js +1 -1
  260. package/dist/esm/sd-card.entry.js +2 -2
  261. package/dist/esm/sd-checkbox.entry.js +7 -4
  262. package/dist/esm/sd-chip.entry.js +2 -2
  263. package/dist/esm/sd-circle-progress.entry.js +3 -3
  264. package/dist/esm/sd-confirm-modal_2.entry.js +4 -4
  265. package/dist/esm/sd-date-box.entry.js +1 -1
  266. package/dist/esm/sd-date-picker-calendar.entry.js +2 -2
  267. package/dist/esm/sd-date-picker-trigger.entry.js +3 -3
  268. package/dist/esm/sd-date-picker.entry.js +3 -3
  269. package/dist/esm/sd-date-range-picker-calendar.entry.js +2 -2
  270. package/dist/esm/sd-date-range-picker.entry.js +1 -1
  271. package/dist/esm/sd-dropdown-button.entry.js +93 -6
  272. package/dist/esm/sd-file-picker.entry.js +2 -2
  273. package/dist/esm/sd-form.entry.js +1 -1
  274. package/dist/esm/sd-ghost-button.entry.js +3 -3
  275. package/dist/esm/sd-guide.entry.js +2 -2
  276. package/dist/esm/{sd-input_2.entry.js → sd-input.entry.js} +4 -43
  277. package/dist/esm/sd-linear-progress.entry.js +3 -3
  278. package/dist/esm/sd-loading-container.entry.js +3 -3
  279. package/dist/esm/sd-modal-container.entry.js +1 -1
  280. package/dist/esm/sd-number-input.entry.js +4 -4
  281. package/dist/esm/sd-pagination_5.entry.js +65 -33
  282. package/dist/esm/sd-popover.entry.js +2 -2
  283. package/dist/esm/sd-portal.entry.js +2 -2
  284. package/dist/esm/sd-radio-button.entry.js +1 -1
  285. package/dist/esm/sd-radio-group.entry.js +1 -1
  286. package/dist/esm/sd-radio.entry.js +1 -1
  287. package/dist/esm/{sd-select-v2-list-item_4.entry.js → sd-select-list-item_4.entry.js} +47 -47
  288. package/dist/esm/sd-switch.entry.js +2 -2
  289. package/dist/esm/sd-table.config-DKkzCQwJ.js +94 -0
  290. package/dist/esm/sd-table.entry.js +21 -11
  291. package/dist/esm/sd-tabs.entry.js +2 -2
  292. package/dist/esm/sd-tag.entry.js +3 -3
  293. package/dist/esm/sd-td.entry.js +2 -2
  294. package/dist/esm/sd-text-link.entry.js +4 -4
  295. package/dist/esm/sd-textarea.entry.js +2 -2
  296. package/dist/esm/sd-toast-container.entry.js +2 -2
  297. package/dist/esm/sd-toast.entry.js +3 -3
  298. package/dist/esm/sd-toggle.entry.js +2 -2
  299. package/dist/esm/{system-BgFLSKqC.js → system-CZxeqYuw.js} +7 -1
  300. package/dist/esm/{tooltipArrow-BHRQVawd.js → tooltipArrow-DZ-N5HBq.js} +1 -1
  301. package/dist/types/components/{sd-select-v2/sd-select-v2-list-item/sd-select-v2-list-item.d.ts → sd-select/sd-select-list-item/sd-select-list-item.d.ts} +4 -4
  302. package/dist/types/components/{sd-select-v2/sd-select-v2-list-item-search/sd-select-v2-list-item-search.d.ts → sd-select/sd-select-list-item-search/sd-select-list-item-search.d.ts} +1 -1
  303. package/dist/types/components/{sd-select-v2/sd-select-v2-listbox/sd-select-v2-listbox.d.ts → sd-select/sd-select-listbox/sd-select-listbox.d.ts} +6 -6
  304. package/dist/types/components/{sd-select-v2/sd-select-v2-trigger/sd-select-v2-trigger.d.ts → sd-select/sd-select-trigger/sd-select-trigger.d.ts} +1 -1
  305. package/dist/types/components/{sd-select-v2/sd-select-v2.config.d.ts → sd-select/sd-select.config.d.ts} +12 -12
  306. package/dist/types/components/sd-select/sd-select.d.ts +56 -84
  307. package/dist/types/components/sd-table/constants.d.ts +4 -1
  308. package/dist/types/components/sd-table/sd-table.config.d.ts +64 -0
  309. package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +5 -0
  310. package/dist/types/components.d.ts +944 -2386
  311. package/dist/types/utils/testing/index.d.ts +2 -0
  312. package/dist/types/utils/testing/mocks.d.ts +4 -0
  313. package/hydrate/index.js +417 -2208
  314. package/hydrate/index.mjs +417 -2208
  315. package/package.json +1 -1
  316. package/dist/cjs/base-dropdown-event-BTPlZ1KF.js +0 -91
  317. package/dist/cjs/sd-progress.cjs.entry.js +0 -63
  318. package/dist/cjs/sd-select-dropdown_2.cjs.entry.js +0 -231
  319. package/dist/cjs/sd-select-group.cjs.entry.js +0 -332
  320. package/dist/cjs/sd-select-multiple-group.cjs.entry.js +0 -458
  321. package/dist/cjs/sd-select-multiple.cjs.entry.js +0 -191
  322. package/dist/cjs/sd-select-option-group.cjs.entry.js +0 -68
  323. package/dist/cjs/sd-select.cjs.entry.js +0 -181
  324. package/dist/cjs/select-keyboard-navigation-CErfIrGV.js +0 -27
  325. package/dist/cjs/table-test.cjs.entry.js +0 -96
  326. package/dist/collection/components/sd-progress/sd-progress.css +0 -63
  327. package/dist/collection/components/sd-progress/sd-progress.js +0 -186
  328. package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.css +0 -30
  329. package/dist/collection/components/sd-select/sd-select-dropdown/sd-select-dropdown.js +0 -444
  330. package/dist/collection/components/sd-select/sd-select-option/sd-select-option.css +0 -36
  331. package/dist/collection/components/sd-select/sd-select-option/sd-select-option.js +0 -257
  332. package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.css +0 -23
  333. package/dist/collection/components/sd-select/sd-select-search-input/sd-select-search-input.js +0 -161
  334. package/dist/collection/components/sd-select-group/sd-select-group.css +0 -81
  335. package/dist/collection/components/sd-select-group/sd-select-group.js +0 -1061
  336. package/dist/collection/components/sd-select-multiple/sd-select-multiple.css +0 -54
  337. package/dist/collection/components/sd-select-multiple/sd-select-multiple.js +0 -770
  338. package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.css +0 -79
  339. package/dist/collection/components/sd-select-multiple-group/sd-select-multiple-group.js +0 -1183
  340. package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.css +0 -75
  341. package/dist/collection/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.js +0 -305
  342. package/dist/collection/components/sd-select-v2/sd-select-v2.css +0 -11
  343. package/dist/collection/components/sd-select-v2/sd-select-v2.js +0 -897
  344. package/dist/collection/components/table-test/table-test.css +0 -59
  345. package/dist/collection/components/table-test/table-test.js +0 -316
  346. package/dist/components/p-6AvsuYqF.js +0 -1
  347. package/dist/components/p-7DKZPPev.js +0 -1
  348. package/dist/components/p-9ZtJl4s6.js +0 -1
  349. package/dist/components/p-BRfPoWUn.js +0 -1
  350. package/dist/components/p-BZc6lwGD.js +0 -1
  351. package/dist/components/p-Btx5sC7s.js +0 -1
  352. package/dist/components/p-C-BOe23n.js +0 -1
  353. package/dist/components/p-CNAzAL53.js +0 -1
  354. package/dist/components/p-CqghR1aS.js +0 -1
  355. package/dist/components/p-Cy6HMEsK.js +0 -1
  356. package/dist/components/p-DAC3TaZV.js +0 -1
  357. package/dist/components/p-DBex-RJU.js +0 -1
  358. package/dist/components/p-DWMY9O2B.js +0 -1
  359. package/dist/components/p-DfOYYI9m.js +0 -1
  360. package/dist/components/p-eEC3ITv0.js +0 -1
  361. package/dist/components/p-nVHDJc9g.js +0 -1
  362. package/dist/components/p-rnbt1m4L.js +0 -1
  363. package/dist/components/sd-progress.d.ts +0 -11
  364. package/dist/components/sd-progress.js +0 -1
  365. package/dist/components/sd-select-dropdown.d.ts +0 -11
  366. package/dist/components/sd-select-dropdown.js +0 -1
  367. package/dist/components/sd-select-group.js +0 -1
  368. package/dist/components/sd-select-multiple-group.d.ts +0 -11
  369. package/dist/components/sd-select-multiple-group.js +0 -1
  370. package/dist/components/sd-select-multiple.js +0 -1
  371. package/dist/components/sd-select-option-group.d.ts +0 -11
  372. package/dist/components/sd-select-option-group.js +0 -1
  373. package/dist/components/sd-select-option.js +0 -1
  374. package/dist/components/sd-select-search-input.d.ts +0 -11
  375. package/dist/components/sd-select-search-input.js +0 -1
  376. package/dist/components/sd-select-v2-list-item-search.d.ts +0 -11
  377. package/dist/components/sd-select-v2-list-item-search.js +0 -1
  378. package/dist/components/sd-select-v2-list-item.d.ts +0 -11
  379. package/dist/components/sd-select-v2-list-item.js +0 -1
  380. package/dist/components/sd-select-v2-listbox.d.ts +0 -11
  381. package/dist/components/sd-select-v2-listbox.js +0 -1
  382. package/dist/components/sd-select-v2-trigger.d.ts +0 -11
  383. package/dist/components/sd-select-v2-trigger.js +0 -1
  384. package/dist/components/sd-select-v2.d.ts +0 -11
  385. package/dist/components/sd-select-v2.js +0 -1
  386. package/dist/components/table-test.d.ts +0 -11
  387. package/dist/components/table-test.js +0 -1
  388. package/dist/design-system/p-00612047.entry.js +0 -1
  389. package/dist/design-system/p-07adda3c.entry.js +0 -1
  390. package/dist/design-system/p-0e1b27cc.entry.js +0 -1
  391. package/dist/design-system/p-140b40ab.entry.js +0 -1
  392. package/dist/design-system/p-1573f415.entry.js +0 -1
  393. package/dist/design-system/p-1b9f6cef.entry.js +0 -1
  394. package/dist/design-system/p-1cc7d81f.entry.js +0 -1
  395. package/dist/design-system/p-1fa6c17f.entry.js +0 -1
  396. package/dist/design-system/p-4114eea3.entry.js +0 -1
  397. package/dist/design-system/p-5e300b77.entry.js +0 -1
  398. package/dist/design-system/p-711c59fc.entry.js +0 -1
  399. package/dist/design-system/p-850de8d4.entry.js +0 -1
  400. package/dist/design-system/p-9fee77f0.entry.js +0 -1
  401. package/dist/design-system/p-BPGLtKk5.js +0 -1
  402. package/dist/design-system/p-Bp7ytJz5.js +0 -2
  403. package/dist/design-system/p-CRdYeSBK.js +0 -1
  404. package/dist/design-system/p-Cy6HMEsK.js +0 -1
  405. package/dist/design-system/p-c521e731.entry.js +0 -1
  406. package/dist/design-system/p-ce2210ad.entry.js +0 -1
  407. package/dist/design-system/p-d1846df9.entry.js +0 -1
  408. package/dist/design-system/p-d52f25c6.entry.js +0 -1
  409. package/dist/design-system/p-dbcbbf1e.entry.js +0 -1
  410. package/dist/esm/base-dropdown-event-CRdYeSBK.js +0 -89
  411. package/dist/esm/sd-progress.entry.js +0 -61
  412. package/dist/esm/sd-select-dropdown_2.entry.js +0 -228
  413. package/dist/esm/sd-select-group.entry.js +0 -330
  414. package/dist/esm/sd-select-multiple-group.entry.js +0 -456
  415. package/dist/esm/sd-select-multiple.entry.js +0 -189
  416. package/dist/esm/sd-select-option-group.entry.js +0 -66
  417. package/dist/esm/sd-select.entry.js +0 -179
  418. package/dist/esm/select-keyboard-navigation-Cy6HMEsK.js +0 -25
  419. package/dist/esm/table-test.entry.js +0 -94
  420. package/dist/types/components/sd-progress/sd-progress.d.ts +0 -15
  421. package/dist/types/components/sd-select/sd-select-dropdown/sd-select-dropdown.d.ts +0 -41
  422. package/dist/types/components/sd-select/sd-select-option/sd-select-option.d.ts +0 -23
  423. package/dist/types/components/sd-select/sd-select-search-input/sd-select-search-input.d.ts +0 -11
  424. package/dist/types/components/sd-select-group/sd-select-group.d.ts +0 -86
  425. package/dist/types/components/sd-select-multiple/sd-select-multiple.d.ts +0 -64
  426. package/dist/types/components/sd-select-multiple-group/sd-select-multiple-group.d.ts +0 -110
  427. package/dist/types/components/sd-select-multiple-group/sd-select-option-group/sd-select-option-group.d.ts +0 -29
  428. package/dist/types/components/sd-select-v2/sd-select-v2.d.ts +0 -75
  429. package/dist/types/components/table-test/table-test.d.ts +0 -46
  430. /package/dist/collection/components/{sd-select-v2/sd-select-v2.config.js → sd-select/sd-select.config.js} +0 -0
@@ -40,7 +40,7 @@ export class SdSwitch {
40
40
  '--sd-switch-line-height': `${SWITCH_TYPOGRAPHY.lineHeight}px`,
41
41
  '--sd-switch-text-decoration': SWITCH_TYPOGRAPHY.textDecoration,
42
42
  };
43
- return (h("label", { key: '469c012285d3c8a33792a460e74d8566c384efe8', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: '9678e3325339a47e3e2d81ce3cd752c86ed0f906', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: '47348914869f5215957a652cfcf3a11807a0216f', class: "sd-switch__track" }, h("div", { key: '0676260c42e6b79acec710f0f9ba72f01a3a7c18', class: "sd-switch__knob" })), this.label && h("span", { key: 'b92597092795bff38d2acf0cff76f9c381435438', class: "sd-switch__label" }, this.label)));
43
+ return (h("label", { key: '54ebe92b29a80537e2e4380ffe096a252f883d10', "aria-label": this.label || 'switch', class: this.switchClasses, style: cssVars }, h("input", { key: 'd18abbbf293434f07ae7dfa18b983b47cac1b774', type: "checkbox", checked: this.value, disabled: this.disabled, onInput: this.handleChange }), h("div", { key: '76fef910e632b541c0b33c508e6001529df5614f', class: "sd-switch__track" }, h("div", { key: 'a66f4ecca5787f00febe19216a93ec62916e0541', class: "sd-switch__knob" })), this.label && h("span", { key: '948d2b7afc6e171ee329752cb85f8e361f6bbed8', class: "sd-switch__label" }, this.label)));
44
44
  }
45
45
  static get is() { return "sd-switch"; }
46
46
  static get originalStyleUrls() {
@@ -0,0 +1,81 @@
1
+ import tableTokens from "../../tokens/generated/component.table.json";
2
+ import systemTokens from "../../tokens/generated/system.json";
3
+ // ── Header Tokens ──
4
+ export const TABLE_HEADER_LAYOUT = {
5
+ height: tableTokens.table.header.height,
6
+ paddingX: tableTokens.table.header.paddingX,
7
+ gap: tableTokens.table.header.gap,
8
+ };
9
+ export const TABLE_HEADER_TYPOGRAPHY = {
10
+ fontFamily: tableTokens.table.header.typography.fontFamily,
11
+ fontWeight: tableTokens.table.header.typography.fontWeight,
12
+ fontSize: tableTokens.table.header.typography.fontSize,
13
+ lineHeight: tableTokens.table.header.typography.lineHeight,
14
+ textDecoration: tableTokens.table.header.typography.textDecoration,
15
+ };
16
+ export const TABLE_HEADER_COLORS = {
17
+ bg: tableTokens.table.header.bg,
18
+ };
19
+ export const TABLE_HEADER_RESIZING_BAR = {
20
+ color: tableTokens.table.header.resizingBar.color,
21
+ height: tableTokens.table.header.resizingBar.height,
22
+ };
23
+ // ── Body Tokens ──
24
+ export const TABLE_BODY_LAYOUT = {
25
+ default: {
26
+ height: tableTokens.table.body.default.height,
27
+ paddingY: tableTokens.table.body.default.paddingY,
28
+ },
29
+ dense: {
30
+ height: tableTokens.table.body.dense.height,
31
+ paddingY: tableTokens.table.body.dense.paddingY,
32
+ },
33
+ paddingX: tableTokens.table.body.paddingX,
34
+ framePadding: tableTokens.table.body.frame.padding,
35
+ };
36
+ export const TABLE_BODY_TYPOGRAPHY = {
37
+ fontFamily: tableTokens.table.body.typography.fontFamily,
38
+ fontWeight: tableTokens.table.body.typography.fontWeight,
39
+ fontSize: tableTokens.table.body.typography.fontSize,
40
+ lineHeight: tableTokens.table.body.typography.lineHeight,
41
+ textDecoration: tableTokens.table.body.typography.textDecoration,
42
+ };
43
+ // ── Frame / Border Tokens ──
44
+ export const TABLE_BORDER = {
45
+ color: tableTokens.table.border.default,
46
+ width: tableTokens.table.border.width.width,
47
+ };
48
+ export const TABLE_RADIUS = tableTokens.table.radius;
49
+ // ── Content Tokens ──
50
+ export const TABLE_CONTENT = {
51
+ gap: tableTokens.table.content.gap,
52
+ };
53
+ // ── Bar Tokens ──
54
+ export const TABLE_BAR_LAYOUT = {
55
+ height: tableTokens.table.bar.height,
56
+ sectionGap: tableTokens.table.bar.section.gap,
57
+ dividerHeight: tableTokens.table.bar.divider.height,
58
+ };
59
+ export const TABLE_BAR_COLORS = {
60
+ count: {
61
+ total: tableTokens.table.bar.count.total,
62
+ null: tableTokens.table.bar.count.null,
63
+ },
64
+ };
65
+ // ── KeyValue Tokens ──
66
+ export const TABLE_KEY_VALUE = {
67
+ bodyPadding: tableTokens.table.keyValue.body.padding,
68
+ // TODO: 오타 수정 요청 후 변경
69
+ height: tableTokens.table.keyVlaue.height,
70
+ };
71
+ // ── Header Icon Color Defaults ──
72
+ const ICON_DEFAULT_COLOR = {
73
+ pageEdit: systemTokens.color.darkblue.strong,
74
+ arrowDown: systemTokens.color.darkblue.strong,
75
+ arrowUp: systemTokens.color.darkblue.strong,
76
+ updown: systemTokens.color.grey.strong,
77
+ pageMove: systemTokens.color.darkblue.strong,
78
+ star: systemTokens.color.blue.strong,
79
+ };
80
+ export const resolveTableIconColor = (name, override) => override ?? ICON_DEFAULT_COLOR[name];
81
+ export const resolveSortIconName = (sort) => sort === 'asc' ? 'arrowDown' : sort === 'desc' ? 'arrowUp' : 'updown';
@@ -24,12 +24,12 @@ sd-table *,
24
24
  width: 100%;
25
25
  min-width: 0;
26
26
  height: var(--table-container-height, 400px);
27
- border: 1px solid #E1E1E1;
28
- border-radius: 8px;
27
+ border: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
28
+ border-radius: var(--table-radius, 8px);
29
29
  overflow: hidden;
30
30
  }
31
31
  .sd-table__clip--has-pagination {
32
- border-radius: 8px 8px 0 0;
32
+ border-radius: var(--table-radius, 8px) var(--table-radius, 8px) 0 0;
33
33
  }
34
34
 
35
35
  .sd-table__wrapper {
@@ -38,7 +38,11 @@ sd-table *,
38
38
  display: flex;
39
39
  flex-direction: column;
40
40
  position: relative;
41
- font-size: 12px;
41
+ font-family: var(--table-body-font-family, inherit);
42
+ font-weight: var(--table-body-font-weight, 400);
43
+ font-size: var(--table-body-font-size, 12px);
44
+ line-height: var(--table-body-line-height, 20px);
45
+ text-decoration: var(--table-body-text-decoration, none);
42
46
  overflow: auto;
43
47
  background: #FFFFFF;
44
48
  }
@@ -57,12 +61,16 @@ sd-table *,
57
61
  display: flex;
58
62
  align-items: center;
59
63
  justify-content: center;
60
- font-size: 12px;
64
+ font-size: var(--table-body-font-size, 12px);
61
65
  color: #888888;
62
66
  pointer-events: none;
63
67
  z-index: 200;
64
68
  background: rgba(255, 255, 255, 0.6);
65
69
  }
70
+ .sd-table__no-data ::slotted(*),
71
+ .sd-table__no-data span {
72
+ pointer-events: auto;
73
+ }
66
74
 
67
75
  .sd-table__loading {
68
76
  position: absolute;
@@ -121,11 +129,11 @@ sd-table *,
121
129
  display: flex;
122
130
  align-items: center;
123
131
  justify-content: center;
124
- border: 1px solid #E1E1E1;
132
+ border: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
125
133
  border-top: none;
126
- border-radius: 0 0 8px 8px;
134
+ border-radius: 0 0 var(--table-radius, 8px) var(--table-radius, 8px);
127
135
  }
128
- .sd-table__pagination sd-select-v2 {
136
+ .sd-table__pagination sd-select {
129
137
  position: absolute;
130
138
  right: 10px;
131
139
  top: 50%;
@@ -1,6 +1,7 @@
1
1
  import { h, Host, readTask, forceUpdate, } from "@stencil/core";
2
2
  import { nanoid } from "nanoid";
3
3
  import { TABLE_ID_ATTR, } from "./constants";
4
+ import { TABLE_RADIUS, TABLE_BORDER, TABLE_BODY_TYPOGRAPHY } from "./sd-table.config";
4
5
  export class SdTable {
5
6
  static DEFAULT_NO_DATA_LABEL = '데이터가 없습니다.';
6
7
  el;
@@ -615,12 +616,10 @@ export class SdTable {
615
616
  const allRows = this.rows ?? [];
616
617
  const pageInfo = this.getPaginationInfoSync();
617
618
  const startIdx = pageInfo?.startIndex ?? 0;
618
- const displayed = pageInfo
619
- ? allRows.slice(pageInfo.startIndex, pageInfo.endIndex)
620
- : allRows;
619
+ const displayed = pageInfo ? allRows.slice(pageInfo.startIndex, pageInfo.endIndex) : allRows;
621
620
  return displayed.map((row, i) => {
622
621
  const absoluteIdx = startIdx + i;
623
- return (h("sd-tr", { key: absoluteIdx, "row-key": String(absoluteIdx), row: row }));
622
+ return h("sd-tr", { key: absoluteIdx, "row-key": String(absoluteIdx), row: row });
624
623
  });
625
624
  }
626
625
  get tableClasses() {
@@ -642,24 +641,34 @@ export class SdTable {
642
641
  }
643
642
  render() {
644
643
  const resolvedTableId = this.getResolvedTableId();
645
- return (h(Host, { key: 'd73cd690ad11ce92af37b6f32374f6f891c5b677' }, h("div", { key: 'f51d23212885ad8121b9a4e895fb854f1e142bc4', class: "sd-table__container", style: {
644
+ const hostStyle = {
645
+ '--table-radius': `${TABLE_RADIUS}px`,
646
+ '--table-border-color': TABLE_BORDER.color,
647
+ '--table-border-width': `${TABLE_BORDER.width}px`,
648
+ '--table-body-font-family': TABLE_BODY_TYPOGRAPHY.fontFamily,
649
+ '--table-body-font-weight': TABLE_BODY_TYPOGRAPHY.fontWeight,
650
+ '--table-body-font-size': `${TABLE_BODY_TYPOGRAPHY.fontSize}px`,
651
+ '--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
652
+ '--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
653
+ };
654
+ return (h(Host, { key: '1a80b7c3589a8a2eefaabf24ed895c927543aac4', style: hostStyle }, h("div", { key: 'd97aa6c04948153671e26066b6df02e206fc35e6', class: "sd-table__container", style: {
646
655
  '--table-width': this.width,
647
656
  '--table-height': this.height,
648
657
  '--table-container-height': `calc(${this.height || '100%'} - ${this.pagination && this.rowCount > 0 && !this.useVirtualScroll ? 48 : 0}px)`,
649
- } }, h("div", { key: '84b1ba7b2220ff55304b9c19e59304ca2257cff0', class: {
658
+ } }, h("div", { key: '0e13dbbe062953c93a0acaaf5c00ca40a5b7e245', class: {
650
659
  'sd-table__clip': true,
651
660
  'sd-table__clip--has-pagination': !!(this.pagination &&
652
661
  this.pagination.rowsPerPage > 0 &&
653
662
  this.rowCount > 0 &&
654
663
  !this.useVirtualScroll),
655
- } }, h("div", { key: 'c901eba67eae29515bf0b3edcc6632b2aacf0f80', class: {
664
+ } }, h("div", { key: 'c800ecac543d1540d9b6c9faf06753c9dc10aaf3', class: {
656
665
  'sd-table__wrapper': true,
657
666
  'sd-table__wrapper--loading': this.isLoading,
658
667
  'sd-table__wrapper--no-data': this.rowCount === 0 && !this.isLoading,
659
- } }, this.isLoading && (h("div", { key: '35a237d0203b2479dbdb77ac42c918a9375bdfd3', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '21a29981c1cdbd679f46abd2e7de7794c9ebbca9', indeterminate: true }))), this.rowCount === 0 && !this.isLoading && (h("div", { key: '07ad28bc6e7556cfe229fc1e952410f388424a7f', class: "sd-table__no-data" }, h("slot", { key: 'bf21e60f5b86614587b704bea2965b9467c7f467', name: "no-data" }, h("span", { key: 'f3d012d12e9189545b0cef52250502d46cb9a764' }, this.resolvedNoDataLabel)))), h("table", { key: '655d3dc017c6445ec454faef0e5e9837b7ee0013', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
668
+ } }, this.isLoading && (h("div", { key: '656bc53538c8513e014f31f1e976fd66ce79c7aa', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '74078add6860fc95e238d89335d57e205e751cd6', indeterminate: true }))), this.rowCount === 0 && !this.isLoading && (h("div", { key: '18a33a7247bde3d08472f8082325c76217734e5d', class: "sd-table__no-data" }, h("slot", { key: '966cb066f721695013a3e5a1a64543544b09fa77', name: "no-data" }, h("span", { key: 'd335a9b1b2e847b267cefb9d12f7265c5f67f394' }, this.resolvedNoDataLabel)))), h("table", { key: '8fd0a2428bfd4dd6a574bbb02139088c31408866', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
660
669
  this.pagination.rowsPerPage > 0 &&
661
670
  this.rowCount > 0 &&
662
- !this.useVirtualScroll && (h("div", { key: '7ab0b30a0c0e0a197b0f79c6b07ef5614d5d2879', class: "sd-table__pagination" }, h("sd-pagination", { key: '71d44bba5a82f4d8f7c067e525db15fe9a36c305', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select-v2", { key: 'a9ab33347db0714da188f658a2ca1902502db690', value: this.useInternalPagination
671
+ !this.useVirtualScroll && (h("div", { key: '6f483b1a23456bbe42ff769a50c9de5638e7754f', class: "sd-table__pagination" }, h("sd-pagination", { key: '841c545c23de8b4bba4cce3c9f6608d16f7b4e54', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: 'a67e17bf3067953169ffa119ee41b1d7f46c2058', value: this.useInternalPagination
663
672
  ? this.innerRowsPerPage
664
673
  : this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
665
674
  if (!this.isRowsPerPageValue(e.detail))
@@ -7,12 +7,4 @@
7
7
 
8
8
  .tbody {
9
9
  display: table-row-group;
10
- }
11
- .tbody--empty .tbody__no-data-row {
12
- display: table-row;
13
- }
14
- .tbody--empty .tbody__no-data-cell {
15
- display: table-cell;
16
- padding: 0;
17
- border-bottom: none;
18
10
  }
@@ -45,12 +45,11 @@ export class SdTbody {
45
45
  }
46
46
  }
47
47
  render() {
48
- const hasRows = this.rows.length > 0;
49
- return (h(Host, { key: 'bc9fbd4f08f4d77da60b083dceef4e24e2fb5532', slot: `${this.tableId}-body` }, h("tbody", { key: '81ef875cbc39f988021a211ede716a98d3ea30cd', class: { 'tbody': true, 'tbody--empty': !hasRows } }, hasRows ? ([
48
+ return (h(Host, { key: 'e474bc09fdec9d48d978ec87620b161220b5236c', slot: `${this.tableId}-body` }, h("tbody", { key: 'c74261b3f30c43e8ac8c3bdea1180f17bfc7dbc8', class: { tbody: true } }, [
50
49
  this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
51
- h("slot", null),
50
+ h("slot", { key: 'f686e7e8fa81e725a32592a58267d0b5cd7551e6' }),
52
51
  this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
53
- ]) : (h("tr", { class: "tbody__no-data-row" }, h("td", { class: "tbody__no-data-cell", colSpan: 100 }, h("slot", { name: "no-data" })))))));
52
+ ])));
54
53
  }
55
54
  static get is() { return "sd-tbody"; }
56
55
  static get encapsulation() { return "shadow"; }
@@ -80,7 +80,7 @@ export class SdTd {
80
80
  }
81
81
  }
82
82
  render() {
83
- return (h(Host, { key: 'da9ce2edb986d4b3cf1a6e5f59030009f1288250', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '8514071bd38c4f5b1997ae7239b8585a25f97ce0' })));
83
+ return (h(Host, { key: '1702396f538453cf26beb81b63926ea73b7baa89', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: 'bd04afefd83178f48eb93b4e7d189386a817ff72' })));
84
84
  }
85
85
  static get is() { return "sd-td"; }
86
86
  static get originalStyleUrls() {
@@ -7,7 +7,7 @@ sd-thead * {
7
7
 
8
8
  .thead {
9
9
  display: table-header-group;
10
- height: 36px;
10
+ height: var(--table-header-height, 36px);
11
11
  }
12
12
  .thead--sticky {
13
13
  position: sticky;
@@ -22,12 +22,16 @@ sd-thead * {
22
22
 
23
23
  .th {
24
24
  display: table-cell;
25
- background: #F5FAFF;
26
- height: 36px;
27
- padding: 0 16px;
28
- font-weight: 500;
25
+ background: var(--table-header-bg, #F5FAFF);
26
+ height: var(--table-header-height, 36px);
27
+ padding: 0 var(--table-header-padding-x, 16px);
28
+ font-family: var(--table-header-font-family, inherit);
29
+ font-weight: var(--table-header-font-weight, 500);
30
+ font-size: var(--table-header-font-size, 12px);
31
+ line-height: var(--table-header-line-height, 20px);
32
+ text-decoration: var(--table-header-text-decoration, none);
29
33
  vertical-align: middle;
30
- border-bottom: 1px solid #E1E1E1;
34
+ border-bottom: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
31
35
  -webkit-user-select: none;
32
36
  user-select: none;
33
37
  position: relative;
@@ -54,13 +58,13 @@ sd-thead * {
54
58
  }
55
59
  .th.sticky-left {
56
60
  position: sticky;
57
- background-color: #F5FAFF;
61
+ background-color: var(--table-header-bg, #F5FAFF);
58
62
  z-index: 110 !important;
59
63
  left: var(--sticky-left-offset, 0);
60
64
  }
61
65
  .th.sticky-right {
62
66
  position: sticky;
63
- background-color: #F5FAFF;
67
+ background-color: var(--table-header-bg, #F5FAFF);
64
68
  z-index: 110 !important;
65
69
  right: var(--sticky-right-offset, 0);
66
70
  }
@@ -112,7 +116,7 @@ sd-thead * {
112
116
  display: flex;
113
117
  flex-flow: row nowrap;
114
118
  align-items: center;
115
- gap: 4px;
119
+ gap: var(--table-header-gap, 4px);
116
120
  }
117
121
  .th__content--left {
118
122
  justify-content: flex-start;
@@ -135,11 +139,11 @@ sd-thead * {
135
139
  right: 0;
136
140
  transform: translateY(-50%);
137
141
  width: 4px;
138
- height: 16px;
142
+ height: var(--table-header-resizer-height, 16px);
139
143
  cursor: col-resize;
140
144
  z-index: 3;
141
- border-left: 1px solid #CCCCCC;
142
- border-right: 1px solid #CCCCCC;
145
+ border-left: var(--table-border-width, 1px) solid var(--table-header-resizer-color, #CCCCCC);
146
+ border-right: var(--table-border-width, 1px) solid var(--table-header-resizer-color, #CCCCCC);
143
147
  }
144
148
  .th__resizer--left {
145
149
  right: auto;
@@ -1,5 +1,6 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import { TABLE_ID_ATTR, } from "../constants";
3
+ import { resolveTableIconColor, resolveSortIconName, TABLE_HEADER_LAYOUT, TABLE_HEADER_TYPOGRAPHY, TABLE_HEADER_COLORS, TABLE_HEADER_RESIZING_BAR, TABLE_BORDER, } from "../sd-table.config";
3
4
  export class SdThead {
4
5
  el;
5
6
  columns;
@@ -11,6 +12,7 @@ export class SdThead {
11
12
  scrolledRight;
12
13
  rows = [];
13
14
  columnWidths = [];
15
+ sdColumnSort;
14
16
  tableId = '';
15
17
  _columns = [];
16
18
  _selectable = false;
@@ -111,9 +113,11 @@ export class SdThead {
111
113
  this.tableEl.handleResize(index, event, reversed);
112
114
  }
113
115
  }
116
+ handleColumnSort = (col) => {
117
+ this.sdColumnSort.emit({ column: col });
118
+ };
114
119
  handleSelectAll(checked) {
115
- const currentState = this.getIsAllChecked();
116
- const nextChecked = currentState === null ? false : !!checked;
120
+ const nextChecked = !!checked;
117
121
  const safeRows = Array.isArray(this.rows) ? this.rows : [];
118
122
  if (this.tableEl?.toggleSelectAllSync) {
119
123
  this.tableEl.toggleSelectAllSync(nextChecked, safeRows);
@@ -133,27 +137,42 @@ export class SdThead {
133
137
  const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
134
138
  const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
135
139
  const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
136
- return (h(Host, { key: '5aa1e38311b542d1a0b05b55abc7ef41927508bd', slot: `${this.tableId}-head` }, h("thead", { key: '6d17753988ecd02d900d8a3bd7f2115b534b68a7', class: {
140
+ const headStyle = {
141
+ '--table-header-height': `${TABLE_HEADER_LAYOUT.height}px`,
142
+ '--table-header-padding-x': `${TABLE_HEADER_LAYOUT.paddingX}px`,
143
+ '--table-header-gap': `${TABLE_HEADER_LAYOUT.gap}px`,
144
+ '--table-header-bg': TABLE_HEADER_COLORS.bg,
145
+ '--table-header-font-family': TABLE_HEADER_TYPOGRAPHY.fontFamily,
146
+ '--table-header-font-weight': TABLE_HEADER_TYPOGRAPHY.fontWeight,
147
+ '--table-header-font-size': `${TABLE_HEADER_TYPOGRAPHY.fontSize}px`,
148
+ '--table-header-line-height': `${TABLE_HEADER_TYPOGRAPHY.lineHeight}px`,
149
+ '--table-header-text-decoration': TABLE_HEADER_TYPOGRAPHY.textDecoration,
150
+ '--table-header-resizer-color': TABLE_HEADER_RESIZING_BAR.color,
151
+ '--table-header-resizer-height': `${TABLE_HEADER_RESIZING_BAR.height}px`,
152
+ '--table-border-color': TABLE_BORDER.color,
153
+ '--table-border-width': `${TABLE_BORDER.width}px`,
154
+ };
155
+ return (h(Host, { key: 'c4468056cc20a78516e61bccaf4d11c098e83ec6', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: 'a9befd1728baf2104bfb9132557d5c5c0eb49748', class: {
137
156
  'thead': true,
138
157
  'thead--sticky': this._stickyHeader,
139
- } }, h("tr", { key: '9cc729603e126da2f9c8923fe29ece10c7750bb4', class: "tr" }, this._selectable && (h("th", { key: '37b2bcfa77eaf4c44465684c49ae84d566acc18b', class: {
158
+ } }, h("tr", { key: 'da786d82d4896b6124becf42f634bcc5b0a6ffb7', class: "tr" }, this._selectable && (h("th", { key: 'b257c5475b7e528fbfc52ea85031a4c49bed7b36', class: {
140
159
  'th': true,
141
160
  'th--selected': true,
142
161
  'sticky-left': true,
143
162
  'sticky-left-edge': stickyLeftCount === 0,
144
163
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
145
- }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '4284894821640ee1bdbd12b1759efb01e6c06488', value: this.getIsAllChecked(), disabled: !safeRows.length, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
164
+ }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '6624026c1811c809eeb5131518ddb8c11f66b541', value: this.getIsAllChecked(), disabled: !safeRows.length, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
146
165
  'th': true,
147
166
  [`${col.thClass}`]: Boolean(col.thClass),
148
167
  'sticky-left': true,
149
168
  'sticky-left-edge': idx === stickyLeftCount - 1,
150
169
  'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
151
- }, style: { ...col.thStyle, ...this.getStickyStyle(idx) } }, h("div", { class: `th__content th__content--${col.align || 'left'}` }, h("div", { class: "th__content--label" }, col.label), col.usePageMoveIcon && h("sd-icon", { name: "pageMove", size: "12", color: "#006AC1" }), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && (h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(idx, evt) }))))), middleCols.map((col, relativeIdx) => {
170
+ }, style: { ...col.thStyle, ...this.getStickyStyle(idx) } }, h("div", { class: `th__content th__content--${col.align || 'left'}` }, h("div", { class: "th__content--label" }, col.label), col.icon && (h("sd-icon", { name: col.icon, size: "12", color: resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (h("sd-icon", { name: resolveSortIconName(col.sort), size: "12", color: resolveTableIconColor(resolveSortIconName(col.sort), col.iconColor), onClick: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && (h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(idx, evt) }))))), middleCols.map((col, relativeIdx) => {
152
171
  const actualColIdx = stickyLeftCount + relativeIdx;
153
172
  return (h("th", { key: col.name, class: {
154
173
  th: true,
155
174
  [`${col.thClass}`]: Boolean(col.thClass),
156
- }, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, h("div", { class: `th__content th__content--${col.align || 'left'}` }, h("div", { class: "th__content--label" }, col.label), col.usePageMoveIcon && h("sd-icon", { name: "pageMove", size: "12", color: "#006AC1" }), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && (h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(actualColIdx, evt) }))));
175
+ }, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, h("div", { class: `th__content th__content--${col.align || 'left'}` }, h("div", { class: "th__content--label" }, col.label), col.icon && (h("sd-icon", { name: col.icon, size: "12", color: resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (h("sd-icon", { name: resolveSortIconName(col.sort), size: "12", color: resolveTableIconColor(resolveSortIconName(col.sort), col.iconColor), onClick: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && (h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(actualColIdx, evt) }))));
157
176
  }), stickyRightCols.map((col, relativeIdx) => {
158
177
  const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
159
178
  return (h("th", { key: col.name, class: {
@@ -162,7 +181,7 @@ export class SdThead {
162
181
  'sticky-right': true,
163
182
  'sticky-right-edge': relativeIdx === 0,
164
183
  'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
165
- }, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, h("div", { class: `th__content th__content--${col.align || 'left'}` }, h("div", { class: "th__content--label" }, col.label), col.usePageMoveIcon && h("sd-icon", { name: "pageMove", size: "12", color: "#006AC1" }), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && (h("div", { class: "th__resizer th__resizer--left", onMouseDown: (evt) => this.handleResize(actualColIdx, evt, true) }))));
184
+ }, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, h("div", { class: `th__content th__content--${col.align || 'left'}` }, h("div", { class: "th__content--label" }, col.label), col.icon && (h("sd-icon", { name: col.icon, size: "12", color: resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (h("sd-icon", { name: resolveSortIconName(col.sort), size: "12", color: resolveTableIconColor(resolveSortIconName(col.sort), col.iconColor), onClick: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (h("sd-tooltip", { ...col.tooltipOptions }, h("div", { slot: "content" }, col.tooltip.map(text => (h("p", null, text))))))), this._resizable && (h("div", { class: "th__resizer th__resizer--left", onMouseDown: (evt) => this.handleResize(actualColIdx, evt, true) }))));
166
185
  })))));
167
186
  }
168
187
  static get is() { return "sd-thead"; }
@@ -378,6 +397,31 @@ export class SdThead {
378
397
  "_scrolledRight": {}
379
398
  };
380
399
  }
400
+ static get events() {
401
+ return [{
402
+ "method": "sdColumnSort",
403
+ "name": "sdColumnSort",
404
+ "bubbles": true,
405
+ "cancelable": true,
406
+ "composed": true,
407
+ "docs": {
408
+ "tags": [],
409
+ "text": ""
410
+ },
411
+ "complexType": {
412
+ "original": "{ column: SdTableColumn }",
413
+ "resolved": "{ column: SdTableColumn; }",
414
+ "references": {
415
+ "SdTableColumn": {
416
+ "location": "import",
417
+ "path": "../constants",
418
+ "id": "src/components/sd-table/constants.ts::SdTableColumn",
419
+ "referenceLocation": "SdTableColumn"
420
+ }
421
+ }
422
+ }
423
+ }];
424
+ }
381
425
  static get methods() {
382
426
  return {
383
427
  "refreshConfig": {
@@ -17,9 +17,9 @@ sd-tr * {
17
17
 
18
18
  .td {
19
19
  display: table-cell;
20
- height: 44px;
21
- padding: 0 16px;
22
- border-bottom: 1px solid #E1E1E1;
20
+ height: var(--table-body-height, 44px);
21
+ padding: 0 var(--table-body-padding-x, 16px);
22
+ border-bottom: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
23
23
  background: white;
24
24
  vertical-align: middle;
25
25
  overflow: hidden;
@@ -1,5 +1,6 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import { TABLE_ID_ATTR, } from "../constants";
3
+ import { TABLE_BODY_LAYOUT, TABLE_BODY_TYPOGRAPHY, TABLE_BORDER, } from "../sd-table.config";
3
4
  export class SdTr {
4
5
  el;
5
6
  columns;
@@ -144,13 +145,25 @@ export class SdTr {
144
145
  const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
145
146
  const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
146
147
  const hasRowspan = this.tableEl?.hasRowspanSync?.() ?? false;
147
- return (h(Host, { key: 'e8d387043d3384daffb5d548176b469a91264225', style: { display: this.isVisible ? '' : 'none' } }, h("tr", { key: '1d579819497a6186941b0c80c916a83c48dfcc0d', class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { key: '1a8ab44a8c65926eb9a7bd9e9224d0eed55ecfb1', class: {
148
+ const rowStyle = {
149
+ display: this.isVisible ? '' : 'none',
150
+ '--table-body-height': `${TABLE_BODY_LAYOUT.default.height}px`,
151
+ '--table-body-padding-x': `${TABLE_BODY_LAYOUT.paddingX}px`,
152
+ '--table-body-font-family': TABLE_BODY_TYPOGRAPHY.fontFamily,
153
+ '--table-body-font-weight': TABLE_BODY_TYPOGRAPHY.fontWeight,
154
+ '--table-body-font-size': `${TABLE_BODY_TYPOGRAPHY.fontSize}px`,
155
+ '--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
156
+ '--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
157
+ '--table-border-color': TABLE_BORDER.color,
158
+ '--table-border-width': `${TABLE_BORDER.width}px`,
159
+ };
160
+ return (h(Host, { key: '33228ee9f020f915e77f9827e9360087fc2cd565', style: rowStyle }, h("tr", { key: '2f308a547ad19584e509543027cf60ff8faec2f8', class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { key: '94f50aa6fd31a63d8d99e8c6f25faf8ba6f68ddf', class: {
148
161
  'td': true,
149
162
  'td--selected': true,
150
163
  'sticky-left': true,
151
164
  'sticky-left-edge': stickyLeftCount === 0,
152
165
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
153
- }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '72bdbadc76dcb0682eb4de496e9abda692a0ea7e', value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
166
+ }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'e8808068b601529c95b8055c16e7af8a746bdccc', value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
154
167
  if (this.isCovered(idx))
155
168
  return null;
156
169
  const span = this.getSpanFor(col);
@@ -67,7 +67,7 @@ export class SdTabs {
67
67
  };
68
68
  }
69
69
  render() {
70
- return (h("div", { key: '3698b7b43e74ff053d61d5ce696b987373fd27d6', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
70
+ return (h("div", { key: 'ff758fbab0a594c28968074a26ad92a28cd4850b', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
71
71
  const badgeName = this.getBadgeName(tab);
72
72
  return (h("div", { key: `tab-${index}`, class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab) }, h("span", { "data-label": tab.label, class: "sd-tabs__label" }, tab.label), tab.badge !== undefined && tab.badge !== null && tab.badge !== '' && (h("sd-tag", { name: badgeName, label: tab.badge.toString() }))));
73
73
  })));
@@ -19,7 +19,7 @@ export class SdTag {
19
19
  render() {
20
20
  const config = this.resolvedConfig;
21
21
  const iconNode = this.renderIcon(config.icon, config.iconSize);
22
- return (h("span", { key: 'def10730670f37a62fa76b507f7f15a1b1f956fc', class: "sd-tag", style: {
22
+ return (h("span", { key: '3e7a6602ee73f56e5709711ac735460230de7e58', class: "sd-tag", style: {
23
23
  '--sd-tag-background': config.background,
24
24
  '--sd-tag-content': config.content,
25
25
  '--sd-tag-height': config.height,
@@ -29,7 +29,7 @@ export class SdTag {
29
29
  '--sd-tag-font-weight': config.fontWeight,
30
30
  '--sd-tag-line-height': config.lineHeight,
31
31
  '--sd-tag-radius': config.radius,
32
- }, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '32082536736e20074263632aa29f36bc7709db39', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
32
+ }, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '8da56711cb12127f96195404799581480280507f', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
33
33
  }
34
34
  static get is() { return "sd-tag"; }
35
35
  static get originalStyleUrls() {
@@ -26,16 +26,16 @@ export class SdTextLink {
26
26
  '--sd-text-link-text-decoration': typo.textDecoration,
27
27
  ...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
28
28
  };
29
- return (h("span", { key: '77c1aa4a4a6297af9431947b7146db2ddfad52b5', class: {
29
+ return (h("span", { key: '9bd62ac603764a5938f3c72bac3a8bf893dfb233', class: {
30
30
  'sd-text-link': true,
31
31
  'sd-text-link--disabled': this.disabled,
32
- }, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: '6f760b3c7e0adccd2aa08cb662cca90a3d3a227b', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: '3ff017970956d8e5cb72b4d6e26d33aaf0551e76', class: labelClassName }, this.label), this.useArrow && (h("span", { key: '8332cbe3b2283ce866044e55804e35338569a38f', class: "sd-text-link__arrow", style: {
32
+ }, style: cssVars, onClick: this.handleClick }, this.icon && (h("sd-icon", { key: '9d63aea3c45c4962e5766e7059a166a85e7a357f', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: 'dc73d60dd1e593c597a6b5dd977db380c21ff680', class: labelClassName }, this.label), this.useArrow && (h("span", { key: '2b25dfb6ae2f857b674341427f93ee34e4691893', class: "sd-text-link__arrow", style: {
33
33
  width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
34
34
  height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
35
35
  display: 'inline-flex',
36
36
  alignItems: 'center',
37
37
  justifyContent: 'center',
38
- } }, h("sd-icon", { key: '2fa166ef60f6d1ee933450146bc667ee89dad2ce', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
38
+ } }, h("sd-icon", { key: 'a5c8fb48e66f4a6820da1a54cedd7b1a13c5dcec', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
39
39
  }
40
40
  static get is() { return "sd-text-link"; }
41
41
  static get originalStyleUrls() {
@@ -105,7 +105,7 @@ export class SdTextarea {
105
105
  '--sd-system-size-field-sm-height': 'auto',
106
106
  '--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
107
107
  };
108
- return (h("sd-field", { key: 'a77834af45e2ca7abaa019d18b6108a51f0cf4ae', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: '2cbc8ef4febeab89eb336cb29d34abdbf9f2f080', class: "sd-textarea__content" }, h("textarea", { key: '3b09e30b4e42affc7f03fb8a354387b57e5ee0fe', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
108
+ return (h("sd-field", { key: 'ca7dc6c13d22ba43cd99ee1e976599d7efb1eceb', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'a36ffabff714596bf780f2a63ccfde3e02eadda7', class: "sd-textarea__content" }, h("textarea", { key: 'b7f8a55b7ee4dfc394c380a97e21c6cc34d12b9b', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
109
109
  }
110
110
  static get is() { return "sd-textarea"; }
111
111
  static get originalStyleUrls() {
@@ -11,10 +11,10 @@ export class SdToast {
11
11
  render() {
12
12
  const typeConfig = TOAST_TYPE_CONFIG[this.type] ?? TOAST_TYPE_CONFIG.default;
13
13
  const iconSize = Number(TOAST_LAYOUT.iconSize);
14
- return (h("div", { key: '77954c9d285339cb48032eec5eca0dcbe308affc', style: {
14
+ return (h("div", { key: 'f5db941adee41c3d2c57c2c7a12d94d03dcdebb6', style: {
15
15
  '--sd-toast-bg': typeConfig.bg,
16
16
  '--sd-toast-text': typeConfig.content,
17
- } }, h("div", { key: '73c792f19982140f91397a3ec7d6e22914ca316f', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: 'cc140bfd043b0d0cd6a7697053f736dac707f86b', class: "sd-toast__icon" }, h("sd-icon", { key: '85f38036cd39cb4d0f4a43ef0d307ef9faa03eb1', name: this.icon, size: iconSize, color: typeConfig.content }))), h("div", { key: '4d36e34a9ccac80fc2ed01f33b1e2aa80d70c78b', class: "sd-toast__content" }, h("span", { key: '9105d37004bbde90e8a7118ca5a58a6e4d6953f5', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: 'fdaabae7d8efb6540ce770cc5783b286789cdb3c', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (h("sd-ghost-button", { key: 'c5985e50041b8f3e8c77e142fd06afaf0537de47', class: "sd-toast__close", icon: "close", intent: this.type === 'caution' ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
17
+ } }, h("div", { key: '68362fac26744fc7e805a18c589f4aff5845edc1', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '8ec7941b469b6d0242ab68b7928a9dbf6e75bb5f', class: "sd-toast__icon" }, h("sd-icon", { key: 'c057a100de91cecc3435bfa6a95c928727eb1836', name: this.icon, size: iconSize, color: typeConfig.content }))), h("div", { key: '21e84dd6cdf7efa52611da532a0983268c7c2cb2', class: "sd-toast__content" }, h("span", { key: '99c370fe3d4a54103fbccef395afadf2923f3613', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '3ce7109c2d1f5cd03f4fcc6bb01ede14c6400734', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.useClose && (h("sd-ghost-button", { key: '2cf982fd1fe538533ceff61bbdecdacd2d69e51c', class: "sd-toast__close", icon: "close", intent: this.type === 'caution' ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
18
18
  }
19
19
  static get is() { return "sd-toast"; }
20
20
  static get originalStyleUrls() {
@@ -216,7 +216,7 @@ export class SdToastContainer {
216
216
  const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
217
217
  const indexMap = new Map();
218
218
  activeToasts.forEach((t, i) => indexMap.set(t.id, i));
219
- return (h("div", { key: '5057793be2d6ce213edc84d58f7273248646dc19', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
219
+ return (h("div", { key: '925f4bf56626e8c722051afa65aa64f2a50007db', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
220
220
  this.expanded = true;
221
221
  this.pauseTimers();
222
222
  }, onMouseLeave: () => {
@@ -45,7 +45,7 @@ export class SdToggle {
45
45
  '--sd-toggle-content-select': TOGGLE_COLORS.content.select,
46
46
  '--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
47
47
  };
48
- return (h("label", { key: 'e9bb126d92605cdd3a88ff1840aa79a4b66c7cf8', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '41c18a29c10ae91b84ecd6d2619a40ab99f5d151', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
48
+ return (h("label", { key: '9ef981165b998f43ec23f3bb1cf0ef385962d7fb', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '6b6d2a89f43036f624c7bc291b2c5aa7a93c8f0a', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
49
49
  }
50
50
  static get is() { return "sd-toggle"; }
51
51
  static get originalStyleUrls() {