@sellmate/design-system 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (345) hide show
  1. package/dist/cjs/{component.table-B7brIpIQ.js → component.table-CMqGfEui.js} +11 -1
  2. package/dist/cjs/design-system.cjs.js +2 -2
  3. package/dist/cjs/{index-BlxrCRYi.js → index-Cw-78mnC.js} +1 -1
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
  7. package/dist/cjs/sd-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
  9. package/dist/cjs/sd-button_2.cjs.entry.js +10 -9
  10. package/dist/cjs/sd-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/sd-card.cjs.entry.js +1 -1
  12. package/dist/cjs/sd-checkbox.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-chip.cjs.entry.js +4 -4
  14. package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
  15. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +1 -1
  16. package/dist/cjs/sd-date-box.cjs.entry.js +8 -3
  17. package/dist/cjs/sd-date-picker-calendar_2.cjs.entry.js +13 -8
  18. package/dist/cjs/sd-date-picker_7.cjs.entry.js +22 -17
  19. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +13 -13
  20. package/dist/cjs/sd-dropdown-button.cjs.entry.js +7 -3
  21. package/dist/cjs/sd-field_3.cjs.entry.js +31 -30
  22. package/dist/cjs/sd-form.cjs.entry.js +5 -5
  23. package/dist/cjs/sd-ghost-button.cjs.entry.js +4 -4
  24. package/dist/cjs/sd-guide.cjs.entry.js +5 -5
  25. package/dist/cjs/sd-key-value-table.cjs.entry.js +10 -10
  26. package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
  27. package/dist/cjs/sd-loading-container.cjs.entry.js +1 -1
  28. package/dist/cjs/sd-modal-container.cjs.entry.js +3 -3
  29. package/dist/cjs/sd-pagination_4.cjs.entry.js +113 -40
  30. package/dist/cjs/sd-popover.cjs.entry.js +6 -6
  31. package/dist/cjs/sd-popup.cjs.entry.js +1 -1
  32. package/dist/cjs/sd-portal.cjs.entry.js +3 -3
  33. package/dist/cjs/sd-radio-button.cjs.entry.js +7 -4
  34. package/dist/cjs/sd-radio.cjs.entry.js +1 -1
  35. package/dist/cjs/sd-select-list-item_2.cjs.entry.js +15 -11
  36. package/dist/cjs/sd-select_3.cjs.entry.js +20 -15
  37. package/dist/cjs/sd-switch.cjs.entry.js +1 -1
  38. package/dist/cjs/sd-table.cjs.entry.js +170 -47
  39. package/dist/cjs/{sd-table.config-CDyioyE2.js → sd-table.config-BIpldZtw.js} +13 -2
  40. package/dist/cjs/sd-tabs.cjs.entry.js +8 -3
  41. package/dist/cjs/sd-tag.cjs.entry.js +10 -10
  42. package/dist/cjs/sd-td.cjs.entry.js +52 -10
  43. package/dist/cjs/sd-text-link.cjs.entry.js +9 -4
  44. package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
  45. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  46. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  47. package/dist/cjs/{tooltipArrow-N6nQ1QT-.js → tooltipArrow-BjSFKIUq.js} +1 -1
  48. package/dist/collection/components/sd-button/sd-button.js +9 -8
  49. package/dist/collection/components/sd-chip/sd-chip.js +4 -4
  50. package/dist/collection/components/sd-date-box/sd-date-box.js +7 -2
  51. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +4 -4
  52. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +8 -3
  53. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +12 -12
  54. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +3 -3
  55. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +6 -2
  56. package/dist/collection/components/sd-field/sd-field.js +23 -22
  57. package/dist/collection/components/sd-file-picker/sd-file-picker.js +7 -2
  58. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +4 -4
  59. package/dist/collection/components/sd-form/sd-form.js +4 -4
  60. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +3 -3
  61. package/dist/collection/components/sd-guide/sd-guide.js +4 -4
  62. package/dist/collection/components/sd-input/sd-input.js +3 -3
  63. package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +8 -8
  64. package/dist/collection/components/sd-modal-container/sd-modal-container.js +2 -2
  65. package/dist/collection/components/sd-number-input/sd-number-input.js +6 -6
  66. package/dist/collection/components/sd-popover/sd-popover.js +4 -4
  67. package/dist/collection/components/sd-portal/sd-portal.js +2 -2
  68. package/dist/collection/components/sd-radio-button/sd-radio-button.js +6 -3
  69. package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
  70. package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +7 -3
  71. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +7 -7
  72. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +5 -5
  73. package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +9 -4
  74. package/dist/collection/components/sd-select/sd-select.js +5 -5
  75. package/dist/collection/components/sd-table/sd-table.config.js +4 -0
  76. package/dist/collection/components/sd-table/sd-table.css +22 -3
  77. package/dist/collection/components/sd-table/sd-table.js +197 -50
  78. package/dist/collection/components/sd-table/sd-table.stories.helpers.js +2 -3
  79. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +5 -5
  80. package/dist/collection/components/sd-table/sd-td/sd-td.js +111 -9
  81. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +30 -16
  82. package/dist/collection/components/sd-table/sd-tr/sd-tr.css +20 -1
  83. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +97 -18
  84. package/dist/collection/components/sd-tabs/sd-tabs.js +7 -2
  85. package/dist/collection/components/sd-tag/sd-tag.config.js +3 -3
  86. package/dist/collection/components/sd-tag/sd-tag.js +6 -3
  87. package/dist/collection/components/sd-text-link/sd-text-link.js +8 -3
  88. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  89. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  90. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  91. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  92. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  93. package/dist/collection/utils/modal.js +1 -1
  94. package/dist/components/index.js +1 -1
  95. package/dist/components/p-2wB9cing.js +1 -0
  96. package/dist/components/p-B-sK7I83.js +1 -0
  97. package/dist/components/p-B3D43x7F.js +1 -0
  98. package/dist/components/p-B7mpdnNl.js +1 -0
  99. package/dist/components/{p-DG45uNxd.js → p-BAcmO7w0.js} +1 -1
  100. package/dist/components/p-BL0ZcHK8.js +1 -0
  101. package/dist/components/p-BXCyVrle.js +1 -0
  102. package/dist/components/p-BY1LGlfc.js +1 -0
  103. package/dist/components/p-BjkROjjt.js +1 -0
  104. package/dist/components/p-Bm3W_eBv.js +1 -0
  105. package/dist/components/p-BnfUIhUj.js +1 -0
  106. package/dist/components/{p-D5TRyquv.js → p-BorUSgEK.js} +1 -1
  107. package/dist/components/{p-BfkuCNCI.js → p-BsM-fwYd.js} +1 -1
  108. package/dist/components/p-C5CH-s6a.js +1 -0
  109. package/dist/components/p-C7WLft_0.js +1 -0
  110. package/dist/components/{p-CGBnxqG2.js → p-CK9ciBIR.js} +1 -1
  111. package/dist/components/{p-BeK8amzx.js → p-CQI40kiY.js} +1 -1
  112. package/dist/components/{p-Dr1AMbBj.js → p-CRL7TjSB.js} +1 -1
  113. package/dist/components/p-CdOHomUp.js +1 -0
  114. package/dist/components/p-Ch5Yu1qd.js +1 -0
  115. package/dist/components/{p-D8WAP9T3.js → p-Cktiasfd.js} +1 -1
  116. package/dist/components/p-CsVAx6KV.js +1 -0
  117. package/dist/components/p-D0Jiw-Zk.js +1 -0
  118. package/dist/components/p-D5F7wCNo.js +1 -0
  119. package/dist/components/p-DBFgk0rX.js +1 -0
  120. package/dist/components/p-DFLCjX1a.js +1 -0
  121. package/dist/components/p-DL1ac1QS.js +1 -0
  122. package/dist/components/p-DeQcDHpn.js +1 -0
  123. package/dist/components/p-DfK4DiDI.js +1 -0
  124. package/dist/components/p-DhTcn6jX.js +1 -0
  125. package/dist/components/p-Dl8TIEQu.js +1 -0
  126. package/dist/components/{p--t9jBTYS.js → p-DyAnn9ea.js} +1 -1
  127. package/dist/components/p-Jts7ueOa.js +1 -0
  128. package/dist/components/{p-B1MabGRR.js → p-arZfxxPn.js} +1 -1
  129. package/dist/components/p-mmdt-WnS.js +1 -0
  130. package/dist/components/p-nOCYbyW4.js +1 -0
  131. package/dist/components/{p-MQTl8fGT.js → p-teN3CfOr.js} +1 -1
  132. package/dist/components/{p-ofkgu5aS.js → p-u8teDaMa.js} +1 -1
  133. package/dist/components/{p-BPsOJlCP.js → p-wCNRlKLa.js} +1 -1
  134. package/dist/components/sd-action-modal.js +1 -1
  135. package/dist/components/sd-badge.js +1 -1
  136. package/dist/components/sd-barcode-input.js +1 -1
  137. package/dist/components/sd-button.js +1 -1
  138. package/dist/components/sd-calendar.js +1 -1
  139. package/dist/components/sd-card.js +1 -1
  140. package/dist/components/sd-checkbox.js +1 -1
  141. package/dist/components/sd-chip.js +1 -1
  142. package/dist/components/sd-circle-progress.js +1 -1
  143. package/dist/components/sd-confirm-modal.js +1 -1
  144. package/dist/components/sd-date-box.js +1 -1
  145. package/dist/components/sd-date-picker-calendar.js +1 -1
  146. package/dist/components/sd-date-picker-trigger.js +1 -1
  147. package/dist/components/sd-date-picker.js +1 -1
  148. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  149. package/dist/components/sd-date-range-picker.js +1 -1
  150. package/dist/components/sd-dropdown-button.js +1 -1
  151. package/dist/components/sd-field.js +1 -1
  152. package/dist/components/sd-file-picker.js +1 -1
  153. package/dist/components/sd-floating-portal.js +1 -1
  154. package/dist/components/sd-form.js +1 -1
  155. package/dist/components/sd-ghost-button.js +1 -1
  156. package/dist/components/sd-guide.js +1 -1
  157. package/dist/components/sd-icon.js +1 -1
  158. package/dist/components/sd-input.js +1 -1
  159. package/dist/components/sd-key-value-table.js +1 -1
  160. package/dist/components/sd-linear-progress.js +1 -1
  161. package/dist/components/sd-loading-container.js +1 -1
  162. package/dist/components/sd-loading-modal.js +1 -1
  163. package/dist/components/sd-modal-container.js +1 -1
  164. package/dist/components/sd-number-input.js +1 -1
  165. package/dist/components/sd-pagination.js +1 -1
  166. package/dist/components/sd-popover.js +1 -1
  167. package/dist/components/sd-popup.js +1 -1
  168. package/dist/components/sd-portal.js +1 -1
  169. package/dist/components/sd-radio-button.js +1 -1
  170. package/dist/components/sd-radio-group.js +1 -1
  171. package/dist/components/sd-radio.js +1 -1
  172. package/dist/components/sd-select-list-item-search.js +1 -1
  173. package/dist/components/sd-select-list-item.js +1 -1
  174. package/dist/components/sd-select-listbox.js +1 -1
  175. package/dist/components/sd-select-trigger.js +1 -1
  176. package/dist/components/sd-select.js +1 -1
  177. package/dist/components/sd-switch.js +1 -1
  178. package/dist/components/sd-table.js +1 -1
  179. package/dist/components/sd-tabs.js +1 -1
  180. package/dist/components/sd-tag.js +1 -1
  181. package/dist/components/sd-tbody.js +1 -1
  182. package/dist/components/sd-td.js +1 -1
  183. package/dist/components/sd-text-link.js +1 -1
  184. package/dist/components/sd-textarea.js +1 -1
  185. package/dist/components/sd-thead.js +1 -1
  186. package/dist/components/sd-toast-container.js +1 -1
  187. package/dist/components/sd-toast.js +1 -1
  188. package/dist/components/sd-toggle.js +1 -1
  189. package/dist/components/sd-tooltip.js +1 -1
  190. package/dist/components/sd-tr.js +1 -1
  191. package/dist/design-system/design-system.css +1 -1
  192. package/dist/design-system/design-system.esm.js +1 -1
  193. package/dist/design-system/index.esm.js +1 -1
  194. package/dist/design-system/{p-b96c694c.entry.js → p-04fdb4b1.entry.js} +1 -1
  195. package/dist/design-system/p-05611ff7.entry.js +1 -0
  196. package/dist/design-system/p-0U6dRjlq.js +2 -0
  197. package/dist/design-system/{p-cd8e4dd6.entry.js → p-0fe603a4.entry.js} +1 -1
  198. package/dist/design-system/p-100f5887.entry.js +1 -0
  199. package/dist/design-system/p-18c5ae1a.entry.js +1 -0
  200. package/dist/design-system/p-1baa05ae.entry.js +1 -0
  201. package/dist/design-system/p-2a1ef965.entry.js +1 -0
  202. package/dist/design-system/p-2c63404f.entry.js +1 -0
  203. package/dist/design-system/{p-feeb0cc5.entry.js → p-435ae69e.entry.js} +1 -1
  204. package/dist/design-system/{p-cbda9194.entry.js → p-43e97572.entry.js} +1 -1
  205. package/dist/design-system/{p-e1c0a3c9.entry.js → p-44d05570.entry.js} +1 -1
  206. package/dist/design-system/{p-328fae12.entry.js → p-501fae20.entry.js} +1 -1
  207. package/dist/design-system/{p-b6ca4461.entry.js → p-5705e6d6.entry.js} +1 -1
  208. package/dist/design-system/p-5cbaf1db.entry.js +1 -0
  209. package/dist/design-system/p-5ed0becf.entry.js +1 -0
  210. package/dist/design-system/p-5f1c39b8.entry.js +1 -0
  211. package/dist/design-system/p-66af0ba0.entry.js +1 -0
  212. package/dist/design-system/{p-a942dfbe.entry.js → p-77690440.entry.js} +1 -1
  213. package/dist/design-system/p-78cc0289.entry.js +1 -0
  214. package/dist/design-system/{p-b04b22c6.entry.js → p-790165f8.entry.js} +1 -1
  215. package/dist/design-system/p-80466582.entry.js +1 -0
  216. package/dist/design-system/{p-c0f60b00.entry.js → p-857c44e8.entry.js} +1 -1
  217. package/dist/design-system/{p-4e2953eb.entry.js → p-87c868c3.entry.js} +1 -1
  218. package/dist/design-system/{p-f60cc7be.entry.js → p-8db7d8f2.entry.js} +1 -1
  219. package/dist/design-system/{p-18466728.entry.js → p-8ee990bd.entry.js} +1 -1
  220. package/dist/design-system/p-8f22106e.entry.js +1 -0
  221. package/dist/design-system/p-BnfUIhUj.js +1 -0
  222. package/dist/{components/p-CT3dfy3K.js → design-system/p-C29HUShl.js} +1 -1
  223. package/dist/design-system/p-a6545130.entry.js +1 -0
  224. package/dist/design-system/p-ae2d45a2.entry.js +1 -0
  225. package/dist/design-system/{p-f3cfff78.entry.js → p-aeccfb2b.entry.js} +1 -1
  226. package/dist/design-system/{p-20a50702.entry.js → p-b0aad445.entry.js} +1 -1
  227. package/dist/design-system/p-b3c144ff.entry.js +1 -0
  228. package/dist/design-system/{p-b1bb0d72.entry.js → p-caee95b0.entry.js} +1 -1
  229. package/dist/design-system/p-d30c823e.entry.js +1 -0
  230. package/dist/design-system/{p-f5576a0d.entry.js → p-d3212544.entry.js} +1 -1
  231. package/dist/design-system/p-d8c41313.entry.js +1 -0
  232. package/dist/design-system/{p-7882e388.entry.js → p-de8bb9ba.entry.js} +1 -1
  233. package/dist/design-system/{p-29ed11e5.entry.js → p-e2334c1c.entry.js} +1 -1
  234. package/dist/design-system/{p-d78fbe16.entry.js → p-f4d73a0c.entry.js} +1 -1
  235. package/dist/design-system/p-fc973500.entry.js +1 -0
  236. package/dist/design-system/p-fe0a5368.entry.js +1 -0
  237. package/dist/design-system/p-mmdt-WnS.js +1 -0
  238. package/dist/esm/{component.table-BQ6at17Y.js → component.table-BnfUIhUj.js} +11 -1
  239. package/dist/esm/design-system.js +3 -3
  240. package/dist/esm/{index-CLCoul8o.js → index-0U6dRjlq.js} +1 -1
  241. package/dist/esm/index.js +1 -1
  242. package/dist/esm/loader.js +3 -3
  243. package/dist/esm/sd-action-modal.entry.js +1 -1
  244. package/dist/esm/sd-badge.entry.js +1 -1
  245. package/dist/esm/sd-barcode-input.entry.js +1 -1
  246. package/dist/esm/sd-button_2.entry.js +10 -9
  247. package/dist/esm/sd-calendar.entry.js +1 -1
  248. package/dist/esm/sd-card.entry.js +1 -1
  249. package/dist/esm/sd-checkbox.entry.js +1 -1
  250. package/dist/esm/sd-chip.entry.js +4 -4
  251. package/dist/esm/sd-circle-progress.entry.js +1 -1
  252. package/dist/esm/sd-confirm-modal_2.entry.js +1 -1
  253. package/dist/esm/sd-date-box.entry.js +8 -3
  254. package/dist/esm/sd-date-picker-calendar_2.entry.js +13 -8
  255. package/dist/esm/sd-date-picker_7.entry.js +22 -17
  256. package/dist/esm/sd-date-range-picker-calendar.entry.js +13 -13
  257. package/dist/esm/sd-dropdown-button.entry.js +7 -3
  258. package/dist/esm/sd-field_3.entry.js +31 -30
  259. package/dist/esm/sd-form.entry.js +5 -5
  260. package/dist/esm/sd-ghost-button.entry.js +4 -4
  261. package/dist/esm/sd-guide.entry.js +5 -5
  262. package/dist/esm/sd-key-value-table.entry.js +10 -10
  263. package/dist/esm/sd-linear-progress.entry.js +1 -1
  264. package/dist/esm/sd-loading-container.entry.js +1 -1
  265. package/dist/esm/sd-modal-container.entry.js +3 -3
  266. package/dist/esm/sd-pagination_4.entry.js +113 -40
  267. package/dist/esm/sd-popover.entry.js +6 -6
  268. package/dist/esm/sd-popup.entry.js +1 -1
  269. package/dist/esm/sd-portal.entry.js +3 -3
  270. package/dist/esm/sd-radio-button.entry.js +7 -4
  271. package/dist/esm/sd-radio.entry.js +1 -1
  272. package/dist/esm/sd-select-list-item_2.entry.js +15 -11
  273. package/dist/esm/sd-select_3.entry.js +20 -15
  274. package/dist/esm/sd-switch.entry.js +1 -1
  275. package/dist/esm/{sd-table.config-0Te8GLCI.js → sd-table.config-B-VgXXT7.js} +13 -3
  276. package/dist/esm/sd-table.entry.js +170 -47
  277. package/dist/esm/sd-tabs.entry.js +8 -3
  278. package/dist/esm/sd-tag.entry.js +10 -10
  279. package/dist/esm/sd-td.entry.js +52 -10
  280. package/dist/esm/sd-text-link.entry.js +9 -4
  281. package/dist/esm/sd-toast-container.entry.js +2 -2
  282. package/dist/esm/sd-toast.entry.js +3 -3
  283. package/dist/esm/sd-toggle.entry.js +2 -2
  284. package/dist/esm/{tooltipArrow-Bc-yw2nt.js → tooltipArrow-O5LOsHae.js} +1 -1
  285. package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +3 -2
  286. package/dist/types/components/sd-table/constants.d.ts +2 -0
  287. package/dist/types/components/sd-table/sd-table.config.d.ts +4 -0
  288. package/dist/types/components/sd-table/sd-table.d.ts +19 -15
  289. package/dist/types/components/sd-table/sd-td/sd-td.d.ts +6 -0
  290. package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +7 -0
  291. package/dist/types/components/sd-tag/sd-tag.d.ts +1 -0
  292. package/dist/types/components.d.ts +41 -8
  293. package/hydrate/index.js +552 -244
  294. package/hydrate/index.mjs +552 -244
  295. package/package.json +1 -1
  296. package/dist/components/p-At6nBeyO.js +0 -1
  297. package/dist/components/p-B73VhbYi.js +0 -1
  298. package/dist/components/p-BDQQllAo.js +0 -1
  299. package/dist/components/p-BDr27lvk.js +0 -1
  300. package/dist/components/p-BQ6at17Y.js +0 -1
  301. package/dist/components/p-BW_sBt7X.js +0 -1
  302. package/dist/components/p-BX3TJuQY.js +0 -1
  303. package/dist/components/p-Bm_T3qE0.js +0 -1
  304. package/dist/components/p-BnzK4uU4.js +0 -1
  305. package/dist/components/p-BqkJ0rZv.js +0 -1
  306. package/dist/components/p-C4PmGpW8.js +0 -1
  307. package/dist/components/p-C9CszVFl.js +0 -1
  308. package/dist/components/p-CGQWERwE.js +0 -1
  309. package/dist/components/p-CZmKBmKx.js +0 -1
  310. package/dist/components/p-CnarDyZi.js +0 -1
  311. package/dist/components/p-Cr2ghUra.js +0 -1
  312. package/dist/components/p-Cspm6LxP.js +0 -1
  313. package/dist/components/p-Cx3jXw9J.js +0 -1
  314. package/dist/components/p-DG-4Ifco.js +0 -1
  315. package/dist/components/p-DfXAgw0E.js +0 -1
  316. package/dist/components/p-MMkRcTBd.js +0 -1
  317. package/dist/components/p-ZstG0XdT.js +0 -1
  318. package/dist/components/p-h7eBUL4i.js +0 -1
  319. package/dist/components/p-lyB7zSp-.js +0 -1
  320. package/dist/components/p-oIM6jNZe.js +0 -1
  321. package/dist/components/p-oKHZl8yu.js +0 -1
  322. package/dist/design-system/p-02289728.entry.js +0 -1
  323. package/dist/design-system/p-17d66d85.entry.js +0 -1
  324. package/dist/design-system/p-1bb86d69.entry.js +0 -1
  325. package/dist/design-system/p-21874054.entry.js +0 -1
  326. package/dist/design-system/p-282cbefa.entry.js +0 -1
  327. package/dist/design-system/p-35dce399.entry.js +0 -1
  328. package/dist/design-system/p-39ff56b4.entry.js +0 -1
  329. package/dist/design-system/p-3cb712a6.entry.js +0 -1
  330. package/dist/design-system/p-7610153d.entry.js +0 -1
  331. package/dist/design-system/p-7722ddeb.entry.js +0 -1
  332. package/dist/design-system/p-7bfa0cf9.entry.js +0 -1
  333. package/dist/design-system/p-824ecfb5.entry.js +0 -1
  334. package/dist/design-system/p-9a04b341.entry.js +0 -1
  335. package/dist/design-system/p-BQ6at17Y.js +0 -1
  336. package/dist/design-system/p-CGQWERwE.js +0 -1
  337. package/dist/design-system/p-CLCoul8o.js +0 -2
  338. package/dist/design-system/p-Dmf0PYdM.js +0 -1
  339. package/dist/design-system/p-a7a0ca14.entry.js +0 -1
  340. package/dist/design-system/p-baed13e4.entry.js +0 -1
  341. package/dist/design-system/p-bd45e65d.entry.js +0 -1
  342. package/dist/design-system/p-bf4156d8.entry.js +0 -1
  343. package/dist/design-system/p-c228c2c7.entry.js +0 -1
  344. package/dist/design-system/p-cf382479.entry.js +0 -1
  345. package/dist/design-system/p-d0de34fd.entry.js +0 -1
@@ -45,7 +45,7 @@ let StoryVirtualTable = class StoryVirtualTable extends LitElement {
45
45
  disconnectedCallback() {
46
46
  super.disconnectedCallback();
47
47
  this.detachListener?.();
48
- if (this.syncRafId)
48
+ if (this.syncRafId !== undefined)
49
49
  cancelAnimationFrame(this.syncRafId);
50
50
  }
51
51
  firstUpdated() {
@@ -59,8 +59,7 @@ let StoryVirtualTable = class StoryVirtualTable extends LitElement {
59
59
  el.addEventListener('sdVirtualUpdate', onUpdate);
60
60
  this.detachListener = () => el.removeEventListener('sdVirtualUpdate', onUpdate);
61
61
  const trySync = () => {
62
- const r = el
63
- .getVirtualScrollRangeSync?.();
62
+ const r = el.getVirtualScrollRangeSync?.();
64
63
  if (r && typeof r.from === 'number' && typeof r.to === 'number') {
65
64
  this.range = { from: r.from, to: r.to };
66
65
  }
@@ -37,17 +37,17 @@ export class SdTbody {
37
37
  this.tableEl = table;
38
38
  const fromMethod = table?.getTableIdSync?.();
39
39
  const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
40
- const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
41
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
40
+ const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
41
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
42
42
  '';
43
- if (resolvedTableId && resolvedTableId !== this.tableId) {
43
+ if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
44
44
  this.tableId = resolvedTableId;
45
45
  }
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: 'f0dacb28bae712e8f4d65bad00846da9db593307', slot: `${this.tableId}-body` }, h("tbody", { key: 'aec7d2277e617f1c186163d214e94559793b764c', class: { tbody: true } }, [
48
+ return (h(Host, { key: '5b55bfd73916ff1402329375de1e1fc2a7629cbd', slot: `${this.tableId}-body` }, h("tbody", { key: 'a09a532d1510166a36d592c2e59ec1765803bbbe', class: { tbody: true } }, [
49
49
  this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
50
- h("slot", { key: '2c428e3624ac949ee201edfd02b5e8f0bcea2e48' }),
50
+ h("slot", { key: 'da3827a9c2fe7a74ec3cb3eb8dee3ab039ea0535' }),
51
51
  this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
52
52
  ])));
53
53
  }
@@ -11,6 +11,10 @@ export class SdTd {
11
11
  // <sd-td> 호스트는 display:contents라 호스트의 class는 시각 효과가 없기 때문에,
12
12
  // 이 prop을 통해 sd-table 레지스트리에 등록 → sd-tr가 td 렌더 시 합쳐 사용한다.
13
13
  sdClass;
14
+ dividerLeft = false;
15
+ dividerRight = false;
16
+ // true이면 이 셀이 속한 행 전체가 dense를 무시하고 default 레이아웃으로 동작한다.
17
+ useFrame = false;
14
18
  handleFieldChange(_newField, oldField) {
15
19
  this.syncSlotName();
16
20
  this.syncSpanRegistration();
@@ -27,10 +31,18 @@ export class SdTd {
27
31
  handleSdClassChange() {
28
32
  this.syncCellClassRegistration();
29
33
  }
34
+ handleDividerChange() {
35
+ this.syncCellClassRegistration();
36
+ }
37
+ handleUseFieldChange() {
38
+ this.syncUseFieldRegistration();
39
+ this.requestParentTrUpdate();
40
+ }
30
41
  componentWillLoad() {
31
42
  this.syncSlotName();
32
43
  this.syncSpanRegistration();
33
44
  this.syncCellClassRegistration();
45
+ this.syncUseFieldRegistration();
34
46
  // slot 타이밍 엇갈림 대응: 부모 sd-tr forceUpdate로 슬롯 재매칭
35
47
  const parentTr = this.el.parentElement;
36
48
  if (parentTr?.tagName?.toLowerCase() === 'sd-tr') {
@@ -41,6 +53,7 @@ export class SdTd {
41
53
  this.syncSlotName();
42
54
  this.syncSpanRegistration();
43
55
  this.syncCellClassRegistration();
56
+ this.syncUseFieldRegistration();
44
57
  }
45
58
  // React StrictMode에서는 disconnect/reconnect 사이클이 일어나면서
46
59
  // 동일 인스턴스의 componentWillLoad는 더 이상 호출되지 않는다.
@@ -48,12 +61,14 @@ export class SdTd {
48
61
  connectedCallback() {
49
62
  this.syncSpanRegistration();
50
63
  this.syncCellClassRegistration();
64
+ this.syncUseFieldRegistration();
51
65
  }
52
66
  disconnectedCallback() {
53
67
  const table = this.findTable();
54
- if (table && this.field && this.rowKey != null) {
68
+ if (table != null && this.field !== '' && this.rowKey != null) {
55
69
  table.unregisterSpanSync?.(String(this.rowKey), this.field);
56
70
  table.unregisterCellClassSync?.(String(this.rowKey), this.field);
71
+ table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
57
72
  this.requestParentTrUpdate();
58
73
  }
59
74
  }
@@ -74,7 +89,7 @@ export class SdTd {
74
89
  }
75
90
  syncSpanRegistration() {
76
91
  const table = this.findTable();
77
- if (!table?.registerSpanSync || !this.field || this.rowKey == null)
92
+ if (table?.registerSpanSync == null || this.field === '' || this.rowKey == null)
78
93
  return;
79
94
  const rs = Math.max(1, Math.floor(Number(this.rowspan) || 1));
80
95
  const cs = Math.max(1, Math.floor(Number(this.colspan) || 1));
@@ -88,27 +103,45 @@ export class SdTd {
88
103
  return;
89
104
  const oldField = prevField ?? this.field;
90
105
  const oldRowKey = prevRowKey ?? (this.rowKey != null ? String(this.rowKey) : undefined);
91
- if (oldField && oldRowKey != null) {
106
+ if (oldField !== '' && oldRowKey != null) {
92
107
  table.unregisterCellClassSync?.(oldRowKey, oldField);
93
108
  }
94
- if (!table.registerCellClassSync || !this.field || this.rowKey == null)
109
+ if (!table.registerCellClassSync || this.field === '' || this.rowKey == null)
95
110
  return;
96
- table.registerCellClassSync(String(this.rowKey), this.field, this.sdClass);
111
+ const combinedClass = [
112
+ this.sdClass,
113
+ this.dividerLeft && 'td--divider-left',
114
+ this.dividerRight && 'td--divider-right',
115
+ ]
116
+ .filter(Boolean)
117
+ .join(' ') || undefined;
118
+ table.registerCellClassSync(String(this.rowKey), this.field, combinedClass);
97
119
  this.requestParentTrUpdate();
98
120
  }
121
+ syncUseFieldRegistration() {
122
+ const table = this.findTable();
123
+ if (!table || this.field === '' || this.rowKey == null)
124
+ return;
125
+ if (this.useFrame) {
126
+ table.registerUseFrameSync?.(String(this.rowKey), this.field);
127
+ }
128
+ else {
129
+ table.unregisterUseFrameSync?.(String(this.rowKey), this.field);
130
+ }
131
+ }
99
132
  syncSlotName() {
100
133
  const table = this.el.closest('sd-table');
101
134
  const fromMethod = table?.getTableIdSync?.();
102
135
  const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
103
- const tableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
104
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
136
+ const tableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
137
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
105
138
  '';
106
- if (this.field && this.rowKey !== undefined && tableId) {
139
+ if (this.field !== '' && this.rowKey !== undefined && tableId !== '') {
107
140
  this.el.setAttribute('slot', `${tableId}-${this.field}-${this.rowKey}`);
108
141
  }
109
142
  }
110
143
  render() {
111
- return (h(Host, { key: 'a8b4cb79a6b40119087fcba358a5c8daadb70fe8', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '959b53537662f22e6bb5fe8d775530c11cbdff3b' })));
144
+ return (h(Host, { key: 'ececfaf265a550ee38c5c2cc2ddd2875352deb10', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: 'c4a43f9affc1938d882e63e91ac90d570efffa37' })));
112
145
  }
113
146
  static get is() { return "sd-td"; }
114
147
  static get originalStyleUrls() {
@@ -236,6 +269,66 @@ export class SdTd {
236
269
  "setter": false,
237
270
  "reflect": false,
238
271
  "attribute": "sd-class"
272
+ },
273
+ "dividerLeft": {
274
+ "type": "boolean",
275
+ "mutable": false,
276
+ "complexType": {
277
+ "original": "boolean",
278
+ "resolved": "boolean",
279
+ "references": {}
280
+ },
281
+ "required": false,
282
+ "optional": false,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": ""
286
+ },
287
+ "getter": false,
288
+ "setter": false,
289
+ "reflect": false,
290
+ "attribute": "divider-left",
291
+ "defaultValue": "false"
292
+ },
293
+ "dividerRight": {
294
+ "type": "boolean",
295
+ "mutable": false,
296
+ "complexType": {
297
+ "original": "boolean",
298
+ "resolved": "boolean",
299
+ "references": {}
300
+ },
301
+ "required": false,
302
+ "optional": false,
303
+ "docs": {
304
+ "tags": [],
305
+ "text": ""
306
+ },
307
+ "getter": false,
308
+ "setter": false,
309
+ "reflect": false,
310
+ "attribute": "divider-right",
311
+ "defaultValue": "false"
312
+ },
313
+ "useFrame": {
314
+ "type": "boolean",
315
+ "mutable": false,
316
+ "complexType": {
317
+ "original": "boolean",
318
+ "resolved": "boolean",
319
+ "references": {}
320
+ },
321
+ "required": false,
322
+ "optional": false,
323
+ "docs": {
324
+ "tags": [],
325
+ "text": ""
326
+ },
327
+ "getter": false,
328
+ "setter": false,
329
+ "reflect": false,
330
+ "attribute": "use-frame",
331
+ "defaultValue": "false"
239
332
  }
240
333
  };
241
334
  }
@@ -256,6 +349,15 @@ export class SdTd {
256
349
  }, {
257
350
  "propName": "sdClass",
258
351
  "methodName": "handleSdClassChange"
352
+ }, {
353
+ "propName": "dividerLeft",
354
+ "methodName": "handleDividerChange"
355
+ }, {
356
+ "propName": "dividerRight",
357
+ "methodName": "handleDividerChange"
358
+ }, {
359
+ "propName": "useFrame",
360
+ "methodName": "handleUseFieldChange"
259
361
  }];
260
362
  }
261
363
  }
@@ -1,4 +1,4 @@
1
- import { h, Host } from "@stencil/core";
1
+ import { h, Host, } from "@stencil/core";
2
2
  import { TABLE_ID_ATTR, } from "../constants";
3
3
  import { resolveTableIconColor, resolveSortIconName, TABLE_HEADER_LAYOUT, TABLE_HEADER_TYPOGRAPHY, TABLE_HEADER_COLORS, TABLE_HEADER_RESIZING_BAR, TABLE_BORDER, } from "../sd-table.config";
4
4
  export class SdThead {
@@ -24,7 +24,7 @@ export class SdThead {
24
24
  tableEl = null;
25
25
  handleColumnsChange(newCols) {
26
26
  if (Array.isArray(newCols) && (this.columnWidths ?? []).length === 0) {
27
- this.columnWidths = newCols.map(c => parseInt(c.width || '120', 10));
27
+ this.columnWidths = newCols.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
28
28
  }
29
29
  }
30
30
  componentWillLoad() {
@@ -32,7 +32,7 @@ export class SdThead {
32
32
  this.columnWidths = Array.isArray(this.columnWidths) ? this.columnWidths : [];
33
33
  this.resolveConfig();
34
34
  if ((this.columnWidths ?? []).length === 0) {
35
- this.columnWidths = this._columns.map(c => parseInt(c.width || '120', 10));
35
+ this.columnWidths = this._columns.map(c => c.autoWidth ? 0 : parseInt(c.width || '120', 10));
36
36
  }
37
37
  }
38
38
  componentDidLoad() {
@@ -49,10 +49,10 @@ export class SdThead {
49
49
  this.tableEl = table;
50
50
  const fromMethod = table?.getTableIdSync?.();
51
51
  const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
52
- const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
53
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
52
+ const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
53
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
54
54
  '';
55
- if (resolvedTableId && resolvedTableId !== this.tableId) {
55
+ if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
56
56
  this.tableId = resolvedTableId;
57
57
  }
58
58
  }
@@ -100,13 +100,17 @@ export class SdThead {
100
100
  const rightOffset = this.columnWidths
101
101
  .filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
102
102
  .reduce((a, b) => a + b, 0);
103
- return {
103
+ const col = this.visibleColumns[colIdx];
104
+ const base = {
104
105
  '--sticky-left-offset': `${leftOffset}px`,
105
106
  '--sticky-right-offset': `${rightOffset}px`,
106
- 'width': `${this.columnWidths[colIdx]}px`,
107
- 'minWidth': `${this.columnWidths[colIdx]}px`,
108
- 'maxWidth': `${this.columnWidths[colIdx]}px`,
109
107
  };
108
+ if (!col?.autoWidth) {
109
+ base['width'] = `${this.columnWidths[colIdx]}px`;
110
+ base['minWidth'] = `${this.columnWidths[colIdx]}px`;
111
+ base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
112
+ }
113
+ return base;
110
114
  }
111
115
  handleResize(index, event, reversed = false) {
112
116
  if (this.tableEl?.handleResize) {
@@ -137,6 +141,7 @@ export class SdThead {
137
141
  const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
138
142
  const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
139
143
  const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
144
+ const lastColIdx = this.visibleColumns.length - 1;
140
145
  const headStyle = {
141
146
  '--table-header-height': `${TABLE_HEADER_LAYOUT.height}px`,
142
147
  '--table-header-padding-x': `${TABLE_HEADER_LAYOUT.paddingX}px`,
@@ -152,27 +157,33 @@ export class SdThead {
152
157
  '--table-border-color': TABLE_BORDER.color,
153
158
  '--table-border-width': `${TABLE_BORDER.width}px`,
154
159
  };
155
- return (h(Host, { key: '99d8d19dcc65b811d323e21041421b2d57da9f91', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '7614b6726ec13e857b6b8654925b0ba3c89fba64', class: {
160
+ return (h(Host, { key: '424fa72b833a94bce945ae50e8445cbed0527025', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '1a5704d78992b553c5db5ba92bb3814de7c19898', class: {
156
161
  'thead': true,
157
162
  'thead--sticky': this._stickyHeader,
158
- } }, h("tr", { key: '68a615e7779947c1ee8cc26027c5bcded545e4d3', class: "tr" }, this._selectable && (h("th", { key: 'd3bc4512a24652ee156104a0fd9891504ce314dd', class: {
163
+ } }, h("tr", { key: '1369ff7c99a5691bcd5fa54af4f7c02ff41dceb3', class: "tr" }, this._selectable && (h("th", { key: '72159c6f8ef28b0b93790e180cb9b12345727525', class: {
159
164
  'th': true,
160
165
  'th--selected': true,
161
166
  'sticky-left': true,
162
167
  'sticky-left-edge': stickyLeftCount === 0,
163
168
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
164
- }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'de8f9b201aca60acbbb28a3233e964100109a92b', value: this.getIsAllChecked(), disabled: !safeRows.length, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
169
+ }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '1c5c035346fc6d13d956475480374a8bd93d3d6d', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
165
170
  'th': true,
166
171
  [`${col.thClass}`]: Boolean(col.thClass),
167
172
  'sticky-left': true,
168
173
  'sticky-left-edge': idx === stickyLeftCount - 1,
169
174
  'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
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) => {
175
+ }, 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 && idx !== lastColIdx && (
176
+ // column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
177
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
178
+ h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(idx, evt) }))))), middleCols.map((col, relativeIdx) => {
171
179
  const actualColIdx = stickyLeftCount + relativeIdx;
172
180
  return (h("th", { key: col.name, class: {
173
181
  th: true,
174
182
  [`${col.thClass}`]: Boolean(col.thClass),
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) }))));
183
+ }, 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 && actualColIdx !== lastColIdx && (
184
+ // column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
185
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
186
+ h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(actualColIdx, evt) }))));
176
187
  }), stickyRightCols.map((col, relativeIdx) => {
177
188
  const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
178
189
  return (h("th", { key: col.name, class: {
@@ -181,7 +192,10 @@ export class SdThead {
181
192
  'sticky-right': true,
182
193
  'sticky-right-edge': relativeIdx === 0,
183
194
  'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
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) }))));
195
+ }, 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 && (
196
+ // column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
197
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
198
+ h("div", { class: "th__resizer th__resizer--left", onMouseDown: (evt) => this.handleResize(actualColIdx, evt, true) }))));
185
199
  })))));
186
200
  }
187
201
  static get is() { return "sd-thead"; }
@@ -18,7 +18,7 @@ sd-tr * {
18
18
  .td {
19
19
  display: table-cell;
20
20
  height: var(--table-body-height, 44px);
21
- padding: 0 var(--table-body-padding-x, 16px);
21
+ padding: var(--table-body-padding-y, 0) var(--table-body-padding-x, 16px);
22
22
  border-bottom: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
23
23
  background: white;
24
24
  vertical-align: middle;
@@ -120,4 +120,23 @@ sd-tr * {
120
120
 
121
121
  .td.td--last-row {
122
122
  border-bottom: none;
123
+ }
124
+
125
+ .tr--separator .td--separator {
126
+ height: var(--table-separator-width, 6px);
127
+ padding: 0;
128
+ background-color: var(--table-separator-color, #eeeeee);
129
+ border-bottom: none;
130
+ }
131
+
132
+ .td.td--before-separator {
133
+ border-bottom: none;
134
+ }
135
+
136
+ .td--divider-left {
137
+ border-left: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
138
+ }
139
+
140
+ .td--divider-right {
141
+ border-right: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
123
142
  }
@@ -1,6 +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
+ import { TABLE_BODY_LAYOUT, TABLE_BODY_TYPOGRAPHY, TABLE_BORDER, TABLE_SEPARATOR, } from "../sd-table.config";
4
4
  export class SdTr {
5
5
  el;
6
6
  columns;
@@ -8,6 +8,7 @@ export class SdTr {
8
8
  stickyColumn;
9
9
  rowKey = '';
10
10
  row = {};
11
+ separator;
11
12
  tableId = '';
12
13
  columnWidths = [];
13
14
  isVisible = true;
@@ -17,16 +18,32 @@ export class SdTr {
17
18
  _stickyColumn = { left: 0, right: 0 };
18
19
  _scrolledLeft = false;
19
20
  _scrolledRight = false;
21
+ _dense = false;
20
22
  tableEl = null;
23
+ _prevRowKey = null;
21
24
  componentWillLoad() {
22
25
  this.syncTableContext();
23
26
  this.columnWidths = this.columnWidths ?? [];
24
27
  this.resolveConfig();
25
- this.columnWidths = this._columns.map(c => parseInt(c.width || '120', 10));
28
+ this.columnWidths = this._columns.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
26
29
  this.updateVisibilitySync();
27
30
  }
28
31
  componentDidLoad() {
29
32
  this.syncTableContext();
33
+ if (this.separator) {
34
+ const prev = this.el.previousElementSibling;
35
+ if (prev?.tagName?.toLowerCase() === 'sd-tr') {
36
+ const prevRowKey = prev.rowKey;
37
+ this._prevRowKey = prevRowKey;
38
+ this.tableEl?.registerSeparatorSync?.(prevRowKey);
39
+ }
40
+ }
41
+ }
42
+ disconnectedCallback() {
43
+ if (this._prevRowKey !== null) {
44
+ this.tableEl?.unregisterSeparatorSync?.(this._prevRowKey);
45
+ this._prevRowKey = null;
46
+ }
30
47
  }
31
48
  syncTableContext() {
32
49
  // sd-table이 shadow:true이므로 fallback content로 렌더되면 closest가 경계를 못 넘는다.
@@ -38,10 +55,10 @@ export class SdTr {
38
55
  this.tableEl = table;
39
56
  const fromMethod = table?.getTableIdSync?.();
40
57
  const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
41
- const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
42
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
58
+ const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
59
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
43
60
  '';
44
- if (resolvedTableId && resolvedTableId !== this.tableId) {
61
+ if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
45
62
  this.tableId = resolvedTableId;
46
63
  }
47
64
  }
@@ -52,6 +69,7 @@ export class SdTr {
52
69
  this._stickyColumn = this.stickyColumn ?? config?.stickyColumn ?? { left: 0, right: 0 };
53
70
  this._scrolledLeft = config?.scrolledLeft ?? false;
54
71
  this._scrolledRight = config?.scrolledRight ?? false;
72
+ this._dense = config?.dense ?? false;
55
73
  if (config?.columnWidths && (this.columnWidths ?? []).length === 0) {
56
74
  this.columnWidths = [...config.columnWidths];
57
75
  }
@@ -97,7 +115,11 @@ export class SdTr {
97
115
  }
98
116
  getCellValue(column) {
99
117
  const { field, format, name } = column;
100
- const value = typeof field === 'function' ? field(this.row) : field ? this.row[field] : this.row[name];
118
+ const value = typeof field === 'function'
119
+ ? field(this.row)
120
+ : field !== ''
121
+ ? this.row[field]
122
+ : this.row[name];
101
123
  return format ? format(value, this.row) : this.formatValue(value);
102
124
  }
103
125
  getStickyStyle(colIdx) {
@@ -108,13 +130,17 @@ export class SdTr {
108
130
  const rightOffset = this.columnWidths
109
131
  .filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
110
132
  .reduce((a, b) => a + b, 0);
111
- return {
133
+ const col = this.visibleColumns[colIdx];
134
+ const base = {
112
135
  '--sticky-left-offset': `${leftOffset}px`,
113
136
  '--sticky-right-offset': `${rightOffset}px`,
114
- 'width': `${this.columnWidths[colIdx]}px`,
115
- 'minWidth': `${this.columnWidths[colIdx]}px`,
116
- 'maxWidth': `${this.columnWidths[colIdx]}px`,
117
137
  };
138
+ if (!col?.autoWidth) {
139
+ base['width'] = `${this.columnWidths[colIdx]}px`;
140
+ base['minWidth'] = `${this.columnWidths[colIdx]}px`;
141
+ base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
142
+ }
143
+ return base;
118
144
  }
119
145
  isSelected() {
120
146
  if (this.tableEl?.isRowSelectedSync) {
@@ -144,6 +170,14 @@ export class SdTr {
144
170
  const fieldName = typeof col.field === 'string' ? col.field : col.name;
145
171
  return this.tableEl.getCellClassSync(this.rowKey, fieldName);
146
172
  }
173
+ expandCellClass(classStr) {
174
+ if (classStr == null || classStr === '')
175
+ return {};
176
+ return Object.fromEntries(classStr
177
+ .split(/\s+/)
178
+ .filter(Boolean)
179
+ .map(c => [c, true]));
180
+ }
147
181
  isVisualLastRow(col) {
148
182
  if (!this.tableEl?.isVisualLastRowSync)
149
183
  return false;
@@ -158,6 +192,17 @@ export class SdTr {
158
192
  return false;
159
193
  return this.tableEl.isVisualLastRowSync(this.rowKey, '');
160
194
  }
195
+ isVisualLastRowBeforeSeparator(col) {
196
+ if (!this.tableEl?.isVisualLastRowBeforeSeparatorSync)
197
+ return false;
198
+ const fieldName = typeof col.field === 'string' ? col.field : col.name;
199
+ return this.tableEl.isVisualLastRowBeforeSeparatorSync(this.rowKey, fieldName);
200
+ }
201
+ isVisualLastRowBeforeSeparatorForSelfRow() {
202
+ if (!this.tableEl?.isVisualLastRowBeforeSeparatorSync)
203
+ return false;
204
+ return this.tableEl.isVisualLastRowBeforeSeparatorSync(this.rowKey, '');
205
+ }
161
206
  render() {
162
207
  const stickyLeftCount = this._stickyColumn.left || 0;
163
208
  const stickyRightCount = this._stickyColumn.right || 0;
@@ -165,9 +210,13 @@ export class SdTr {
165
210
  const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
166
211
  const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
167
212
  const hasRowspan = this.tableEl?.hasRowspanSync?.() ?? false;
213
+ const isUseFrameRow = this.tableEl?.hasUseFrameInRowSync?.(this.rowKey) ?? false;
214
+ const effectiveDense = this._dense && !isUseFrameRow;
215
+ const bodyLayout = effectiveDense ? TABLE_BODY_LAYOUT.dense : TABLE_BODY_LAYOUT.default;
168
216
  const rowStyle = {
169
- display: this.isVisible ? '' : 'none',
170
- '--table-body-height': `${TABLE_BODY_LAYOUT.default.height}px`,
217
+ 'display': this.isVisible ? '' : 'none',
218
+ '--table-body-height': `${bodyLayout.height}px`,
219
+ '--table-body-padding-y': `${bodyLayout.paddingY}px`,
171
220
  '--table-body-padding-x': `${TABLE_BODY_LAYOUT.paddingX}px`,
172
221
  '--table-body-font-family': TABLE_BODY_TYPOGRAPHY.fontFamily,
173
222
  '--table-body-font-weight': TABLE_BODY_TYPOGRAPHY.fontWeight,
@@ -176,15 +225,22 @@ export class SdTr {
176
225
  '--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
177
226
  '--table-border-color': TABLE_BORDER.color,
178
227
  '--table-border-width': `${TABLE_BORDER.width}px`,
228
+ '--table-separator-color': TABLE_SEPARATOR.color,
229
+ '--table-separator-width': `${TABLE_SEPARATOR.width}px`,
179
230
  };
180
- return (h(Host, { key: '30e4127b281770d12fab9e9cfd2cdf667eff8790', style: rowStyle }, h("tr", { key: '1072ce3f1b296e2278b7fc92a44d32da223ef119', class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { key: '4e3a37a320df97378a1ed311c0a7b8f744bd26bc', class: {
231
+ if (this.separator) {
232
+ const totalCols = this.visibleColumns.length + (this._selectable ? 1 : 0);
233
+ return (h(Host, { style: rowStyle }, h("tr", { class: "tr tr--separator" }, h("td", { colSpan: totalCols, class: "td td--separator" }))));
234
+ }
235
+ return (h(Host, { style: rowStyle }, h("tr", { class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { class: {
181
236
  'td': true,
182
237
  'td--selected': true,
183
238
  'td--last-row': this.isVisualLastRowForSelfRow(),
239
+ 'td--before-separator': this.isVisualLastRowBeforeSeparatorForSelfRow(),
184
240
  'sticky-left': true,
185
241
  'sticky-left-edge': stickyLeftCount === 0,
186
242
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
187
- }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: 'b1a775462c4869f75480908bccd428714c63c257', value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
243
+ }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
188
244
  if (this.isCovered(idx))
189
245
  return null;
190
246
  const span = this.getSpanFor(col);
@@ -193,11 +249,12 @@ export class SdTr {
193
249
  'td': true,
194
250
  [`td--${col.align || 'left'}`]: true,
195
251
  'td--last-row': this.isVisualLastRow(col),
252
+ 'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
196
253
  'sticky-left': true,
197
254
  'sticky-left-edge': idx === stickyLeftCount - 1,
198
255
  'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
199
256
  [`${col.tdClass}`]: Boolean(col.tdClass),
200
- [`${sdCellClass}`]: Boolean(sdCellClass),
257
+ ...this.expandCellClass(sdCellClass),
201
258
  }, style: this.getStickyStyle(idx) }, h("slot", { name: `${this.tableId}-${typeof col.field === 'string' ? col.field : col.name}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
202
259
  }), middleCols.map((col, relativeIdx) => {
203
260
  const actualColIdx = stickyLeftCount + relativeIdx;
@@ -210,8 +267,9 @@ export class SdTr {
210
267
  'td': true,
211
268
  [`td--${col.align || 'left'}`]: true,
212
269
  'td--last-row': this.isVisualLastRow(col),
270
+ 'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
213
271
  [`${col.tdClass}`]: Boolean(col.tdClass),
214
- [`${sdCellClass}`]: Boolean(sdCellClass),
272
+ ...this.expandCellClass(sdCellClass),
215
273
  }, style: this.getStickyStyle(actualColIdx) }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
216
274
  }), stickyRightCols.map((col, relativeIdx) => {
217
275
  const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
@@ -224,11 +282,12 @@ export class SdTr {
224
282
  'td': true,
225
283
  [`td--${col.align || 'left'}`]: true,
226
284
  'td--last-row': this.isVisualLastRow(col),
285
+ 'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
227
286
  'sticky-right': true,
228
287
  'sticky-right-edge': relativeIdx === 0,
229
288
  'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
230
289
  [`${col.tdClass}`]: Boolean(col.tdClass),
231
- [`${sdCellClass}`]: Boolean(sdCellClass),
290
+ ...this.expandCellClass(sdCellClass),
232
291
  }, style: this.getStickyStyle(actualColIdx) }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
233
292
  }))));
234
293
  }
@@ -356,6 +415,25 @@ export class SdTr {
356
415
  "getter": false,
357
416
  "setter": false,
358
417
  "defaultValue": "{}"
418
+ },
419
+ "separator": {
420
+ "type": "boolean",
421
+ "mutable": false,
422
+ "complexType": {
423
+ "original": "boolean",
424
+ "resolved": "boolean | undefined",
425
+ "references": {}
426
+ },
427
+ "required": false,
428
+ "optional": true,
429
+ "docs": {
430
+ "tags": [],
431
+ "text": ""
432
+ },
433
+ "getter": false,
434
+ "setter": false,
435
+ "reflect": false,
436
+ "attribute": "separator"
359
437
  }
360
438
  };
361
439
  }
@@ -369,7 +447,8 @@ export class SdTr {
369
447
  "_selectable": {},
370
448
  "_stickyColumn": {},
371
449
  "_scrolledLeft": {},
372
- "_scrolledRight": {}
450
+ "_scrolledRight": {},
451
+ "_dense": {}
373
452
  };
374
453
  }
375
454
  static get methods() {