@sellmate/design-system 1.0.78 → 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 (483) hide show
  1. package/dist/cjs/component.table-CMqGfEui.js +66 -0
  2. package/dist/cjs/design-system.cjs.js +2 -2
  3. package/dist/cjs/{index--F2wGuAi.js → index-Cw-78mnC.js} +1 -1
  4. package/dist/cjs/index.cjs.js +5 -5
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{resolveColor-LhfOKtTZ.js → resolveColor-B0hzQNLG.js} +2 -2
  7. package/dist/cjs/sd-action-modal.cjs.entry.js +3 -3
  8. package/dist/cjs/sd-badge.cjs.entry.js +2 -3
  9. package/dist/cjs/sd-barcode-input.cjs.entry.js +3 -3
  10. package/dist/cjs/{sd-button-v2.config-CnqCQQMi.js → sd-button.config-DH08UNfl.js} +114 -28
  11. package/dist/cjs/{sd-button-v2_2.cjs.entry.js → sd-button_2.cjs.entry.js} +102 -85
  12. package/dist/cjs/sd-calendar.cjs.entry.js +15 -15
  13. package/dist/cjs/sd-card.cjs.entry.js +2 -2
  14. package/dist/cjs/sd-checkbox.cjs.entry.js +4 -4
  15. package/dist/cjs/sd-chip.cjs.entry.js +4 -4
  16. package/dist/cjs/sd-circle-progress.cjs.entry.js +3 -3
  17. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +19 -11
  18. package/dist/cjs/sd-date-box.cjs.entry.js +9 -4
  19. package/dist/cjs/{sd-date-picker-calendar.cjs.entry.js → sd-date-picker-calendar_2.cjs.entry.js} +59 -6
  20. package/dist/cjs/{sd-date-picker.config-CRgCT5dn.js → sd-date-picker.config-CjvrFpYK.js} +1 -2
  21. package/dist/cjs/sd-date-picker_7.cjs.entry.js +1235 -0
  22. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +14 -14
  23. package/dist/cjs/sd-dropdown-button.cjs.entry.js +32 -27
  24. package/dist/cjs/{sd-button_4.cjs.entry.js → sd-field_3.cjs.entry.js} +47 -102
  25. package/dist/cjs/sd-form.cjs.entry.js +5 -5
  26. package/dist/cjs/sd-ghost-button.cjs.entry.js +12 -10
  27. package/dist/cjs/sd-guide.cjs.entry.js +11 -11
  28. package/dist/cjs/sd-key-value-table.cjs.entry.js +230 -0
  29. package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
  30. package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
  31. package/dist/cjs/sd-modal-container.cjs.entry.js +3 -3
  32. package/dist/cjs/{sd-pagination_5.cjs.entry.js → sd-pagination_4.cjs.entry.js} +136 -325
  33. package/dist/cjs/sd-popover.cjs.entry.js +18 -11
  34. package/dist/cjs/sd-popup.cjs.entry.js +112 -0
  35. package/dist/cjs/sd-portal.cjs.entry.js +3 -3
  36. package/dist/cjs/sd-radio-button.cjs.entry.js +9 -6
  37. package/dist/cjs/sd-radio.cjs.entry.js +2 -2
  38. package/dist/cjs/sd-select-list-item_2.cjs.entry.js +159 -0
  39. package/dist/cjs/sd-select.config-B19ptCT2.js +178 -0
  40. package/dist/cjs/{sd-select-list-item_4.cjs.entry.js → sd-select_3.cjs.entry.js} +296 -323
  41. package/dist/cjs/sd-switch.cjs.entry.js +2 -2
  42. package/dist/cjs/sd-table.cjs.entry.js +188 -48
  43. package/dist/cjs/sd-table.config-BIpldZtw.js +76 -0
  44. package/dist/cjs/sd-tabs.cjs.entry.js +8 -3
  45. package/dist/cjs/sd-tag.cjs.entry.js +56 -21
  46. package/dist/cjs/sd-td.cjs.entry.js +52 -10
  47. package/dist/cjs/sd-text-link.cjs.entry.js +13 -5
  48. package/dist/cjs/sd-toast-container.cjs.entry.js +5 -5
  49. package/dist/cjs/sd-toast.cjs.entry.js +35 -5
  50. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  51. package/dist/cjs/{system-DpTN1vBC.js → system-VmZRYp6V.js} +4 -2
  52. package/dist/cjs/{tooltipArrow-D1-wcNm1.js → tooltipArrow-BjSFKIUq.js} +1 -1
  53. package/dist/collection/collection-manifest.json +4 -3
  54. package/dist/collection/components/assets/CheckboxCheck.js +5 -0
  55. package/dist/collection/components/assets/CheckboxIndeterminate.js +5 -0
  56. package/dist/collection/components/assets/index.js +4 -0
  57. package/dist/collection/components/sd-action-modal/sd-action-modal.css +1 -1
  58. package/dist/collection/components/sd-action-modal/sd-action-modal.js +7 -7
  59. package/dist/collection/components/sd-badge/sd-badge.config.js +10 -1
  60. package/dist/collection/components/sd-badge/sd-badge.js +1 -22
  61. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +4 -4
  62. package/dist/collection/components/{sd-button-v2/sd-button-v2.config.js → sd-button/sd-button.config.js} +1 -1
  63. package/dist/collection/components/sd-button/sd-button.css +47 -93
  64. package/dist/collection/components/sd-button/sd-button.js +100 -173
  65. package/dist/collection/components/sd-calendar/sd-calendar.js +14 -14
  66. package/dist/collection/components/sd-card/sd-card.js +1 -1
  67. package/dist/collection/components/sd-checkbox/sd-checkbox.js +3 -3
  68. package/dist/collection/components/sd-chip/sd-chip.js +4 -4
  69. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
  70. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +13 -8
  71. package/dist/collection/components/sd-date-box/sd-date-box.js +8 -3
  72. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +4 -4
  73. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.css +1 -1
  74. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +13 -6
  75. package/dist/collection/components/sd-date-picker/sd-date-picker.js +4 -4
  76. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +12 -12
  77. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +5 -5
  78. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.config.js +7 -3
  79. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +13 -11
  80. package/dist/collection/components/sd-field/sd-field.css +6 -2
  81. package/dist/collection/components/sd-field/sd-field.js +48 -22
  82. package/dist/collection/components/sd-file-picker/sd-file-picker.js +10 -5
  83. package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -3
  84. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +6 -6
  85. package/dist/collection/components/sd-form/sd-form.js +4 -4
  86. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +12 -10
  87. package/dist/collection/components/sd-guide/sd-guide.css +8 -172
  88. package/dist/collection/components/sd-guide/sd-guide.js +8 -6
  89. package/dist/collection/components/sd-icon/sd-icon.js +4 -4
  90. package/dist/collection/components/sd-input/sd-input.css +4 -2
  91. package/dist/collection/components/sd-input/sd-input.js +6 -6
  92. package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +36 -0
  93. package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +119 -0
  94. package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +301 -0
  95. package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
  96. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  97. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +6 -3
  98. package/dist/collection/components/sd-modal-container/sd-modal-container.js +2 -2
  99. package/dist/collection/components/sd-number-input/sd-number-input.css +7 -0
  100. package/dist/collection/components/sd-number-input/sd-number-input.js +8 -5
  101. package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
  102. package/dist/collection/components/sd-popover/sd-popover.js +129 -36
  103. package/dist/collection/components/sd-popup/sd-popup.config.js +34 -0
  104. package/dist/collection/components/sd-popup/sd-popup.css +73 -0
  105. package/dist/collection/components/sd-popup/sd-popup.js +163 -0
  106. package/dist/collection/components/sd-portal/sd-portal.js +2 -2
  107. package/dist/collection/components/sd-radio/sd-radio.js +1 -1
  108. package/dist/collection/components/sd-radio-button/sd-radio-button.js +8 -5
  109. package/dist/collection/components/sd-radio-group/sd-radio-group.js +2 -2
  110. package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +7 -3
  111. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.css +4 -4
  112. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +7 -7
  113. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +8 -8
  114. package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +9 -4
  115. package/dist/collection/components/sd-select/sd-select.js +6 -6
  116. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  117. package/dist/collection/components/sd-table/sd-table.config.js +6 -2
  118. package/dist/collection/components/sd-table/sd-table.css +30 -11
  119. package/dist/collection/components/sd-table/sd-table.js +233 -50
  120. package/dist/collection/components/sd-table/sd-table.stories.helpers.js +2 -3
  121. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +5 -5
  122. package/dist/collection/components/sd-table/sd-td/sd-td.js +111 -9
  123. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +30 -16
  124. package/dist/collection/components/sd-table/sd-tr/sd-tr.css +24 -1
  125. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +116 -19
  126. package/dist/collection/components/sd-tabs/sd-tabs.js +7 -2
  127. package/dist/collection/components/sd-tag/sd-tag.config.js +43 -11
  128. package/dist/collection/components/sd-tag/sd-tag.js +13 -7
  129. package/dist/collection/components/sd-text-link/sd-text-link.css +1 -0
  130. package/dist/collection/components/sd-text-link/sd-text-link.js +10 -4
  131. package/dist/collection/components/sd-textarea/sd-textarea.css +3 -0
  132. package/dist/collection/components/sd-textarea/sd-textarea.js +2 -2
  133. package/dist/collection/components/sd-toast/sd-toast.config.js +14 -0
  134. package/dist/collection/components/sd-toast/sd-toast.css +3 -5
  135. package/dist/collection/components/sd-toast/sd-toast.js +52 -5
  136. package/dist/collection/components/sd-toast-container/sd-toast-container.js +4 -4
  137. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  138. package/dist/collection/components/sd-tooltip/sd-tooltip.js +77 -30
  139. package/dist/collection/utils/color/resolveColor.js +2 -2
  140. package/dist/collection/utils/dropdown-manager.js +1 -1
  141. package/dist/collection/utils/modal.js +1 -1
  142. package/dist/collection/utils/toast.js +4 -4
  143. package/dist/components/index.js +1 -1
  144. package/dist/components/p-2wB9cing.js +1 -0
  145. package/dist/components/p-B-sK7I83.js +1 -0
  146. package/dist/components/p-B3D43x7F.js +1 -0
  147. package/dist/components/p-B7mpdnNl.js +1 -0
  148. package/dist/components/{p-TwGlKfsC.js → p-BAcmO7w0.js} +1 -1
  149. package/dist/components/p-BL0ZcHK8.js +1 -0
  150. package/dist/components/p-BXCyVrle.js +1 -0
  151. package/dist/components/p-BY1LGlfc.js +1 -0
  152. package/dist/components/p-BjkROjjt.js +1 -0
  153. package/dist/components/p-Bm3W_eBv.js +1 -0
  154. package/dist/components/p-BnfUIhUj.js +1 -0
  155. package/dist/components/{p-Dcc2Vm6z.js → p-BorUSgEK.js} +1 -1
  156. package/dist/components/{p-Bvq0Vpln.js → p-BsM-fwYd.js} +1 -1
  157. package/dist/components/p-C5CH-s6a.js +1 -0
  158. package/dist/components/p-C7WLft_0.js +1 -0
  159. package/dist/components/p-CK9ciBIR.js +1 -0
  160. package/dist/components/p-CQI40kiY.js +1 -0
  161. package/dist/components/p-CRL7TjSB.js +1 -0
  162. package/dist/components/p-CdOHomUp.js +1 -0
  163. package/dist/components/p-Ch5Yu1qd.js +1 -0
  164. package/dist/components/p-Cktiasfd.js +1 -0
  165. package/dist/components/p-CsVAx6KV.js +1 -0
  166. package/dist/components/p-D0Jiw-Zk.js +1 -0
  167. package/dist/components/p-D5F7wCNo.js +1 -0
  168. package/dist/components/p-DBFgk0rX.js +1 -0
  169. package/dist/components/p-DFLCjX1a.js +1 -0
  170. package/dist/components/p-DL1ac1QS.js +1 -0
  171. package/dist/components/p-DdLntfiw.js +1 -0
  172. package/dist/components/p-DeQcDHpn.js +1 -0
  173. package/dist/components/p-DfK4DiDI.js +1 -0
  174. package/dist/components/p-DhTcn6jX.js +1 -0
  175. package/dist/components/p-Dl8TIEQu.js +1 -0
  176. package/dist/components/p-DyAnn9ea.js +1 -0
  177. package/dist/components/p-GBlVDmy4.js +1 -0
  178. package/dist/components/p-Jts7ueOa.js +1 -0
  179. package/dist/components/p-arZfxxPn.js +1 -0
  180. package/dist/components/p-mmdt-WnS.js +1 -0
  181. package/dist/components/p-nOCYbyW4.js +1 -0
  182. package/dist/components/p-teN3CfOr.js +1 -0
  183. package/dist/components/p-u8teDaMa.js +1 -0
  184. package/dist/components/p-wCNRlKLa.js +1 -0
  185. package/dist/components/sd-action-modal.js +1 -1
  186. package/dist/components/sd-badge.js +1 -1
  187. package/dist/components/sd-barcode-input.js +1 -1
  188. package/dist/components/sd-button.js +1 -1
  189. package/dist/components/sd-calendar.js +1 -1
  190. package/dist/components/sd-card.js +1 -1
  191. package/dist/components/sd-checkbox.js +1 -1
  192. package/dist/components/sd-chip.js +1 -1
  193. package/dist/components/sd-circle-progress.js +1 -1
  194. package/dist/components/sd-confirm-modal.js +1 -1
  195. package/dist/components/sd-date-box.js +1 -1
  196. package/dist/components/sd-date-picker-calendar.js +1 -1
  197. package/dist/components/sd-date-picker-trigger.js +1 -1
  198. package/dist/components/sd-date-picker.js +1 -1
  199. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  200. package/dist/components/sd-date-range-picker.js +1 -1
  201. package/dist/components/sd-dropdown-button.js +1 -1
  202. package/dist/components/sd-field.js +1 -1
  203. package/dist/components/sd-file-picker.js +1 -1
  204. package/dist/components/sd-floating-portal.js +1 -1
  205. package/dist/components/sd-form.js +1 -1
  206. package/dist/components/sd-ghost-button.js +1 -1
  207. package/dist/components/sd-guide.js +1 -1
  208. package/dist/components/sd-icon.js +1 -1
  209. package/dist/components/sd-input.js +1 -1
  210. package/dist/components/sd-key-value-table.d.ts +11 -0
  211. package/dist/components/sd-key-value-table.js +1 -0
  212. package/dist/components/sd-linear-progress.js +1 -1
  213. package/dist/components/sd-loading-container.js +1 -1
  214. package/dist/components/sd-loading-modal.js +1 -1
  215. package/dist/components/sd-modal-container.js +1 -1
  216. package/dist/components/sd-number-input.js +1 -1
  217. package/dist/components/sd-pagination.js +1 -1
  218. package/dist/components/sd-popover.js +1 -1
  219. package/dist/components/{sd-button-v2.d.ts → sd-popup.d.ts} +4 -4
  220. package/dist/components/sd-popup.js +1 -0
  221. package/dist/components/sd-portal.js +1 -1
  222. package/dist/components/sd-radio-button.js +1 -1
  223. package/dist/components/sd-radio-group.js +1 -1
  224. package/dist/components/sd-radio.js +1 -1
  225. package/dist/components/sd-select-list-item-search.js +1 -1
  226. package/dist/components/sd-select-list-item.js +1 -1
  227. package/dist/components/sd-select-listbox.js +1 -1
  228. package/dist/components/sd-select-trigger.js +1 -1
  229. package/dist/components/sd-select.js +1 -1
  230. package/dist/components/sd-switch.js +1 -1
  231. package/dist/components/sd-table.js +1 -1
  232. package/dist/components/sd-tabs.js +1 -1
  233. package/dist/components/sd-tag.js +1 -1
  234. package/dist/components/sd-tbody.js +1 -1
  235. package/dist/components/sd-td.js +1 -1
  236. package/dist/components/sd-text-link.js +1 -1
  237. package/dist/components/sd-textarea.js +1 -1
  238. package/dist/components/sd-thead.js +1 -1
  239. package/dist/components/sd-toast-container.js +1 -1
  240. package/dist/components/sd-toast.js +1 -1
  241. package/dist/components/sd-toggle.js +1 -1
  242. package/dist/components/sd-tooltip.js +1 -1
  243. package/dist/components/sd-tr.js +1 -1
  244. package/dist/design-system/design-system.css +1 -1
  245. package/dist/design-system/design-system.esm.js +1 -1
  246. package/dist/design-system/index.esm.js +1 -1
  247. package/dist/design-system/p-04fdb4b1.entry.js +1 -0
  248. package/dist/design-system/p-05611ff7.entry.js +1 -0
  249. package/dist/design-system/p-0U6dRjlq.js +2 -0
  250. package/dist/design-system/{p-fe9cef6a.entry.js → p-0fe603a4.entry.js} +1 -1
  251. package/dist/design-system/p-100f5887.entry.js +1 -0
  252. package/dist/design-system/p-18c5ae1a.entry.js +1 -0
  253. package/dist/design-system/p-1baa05ae.entry.js +1 -0
  254. package/dist/design-system/p-2a1ef965.entry.js +1 -0
  255. package/dist/design-system/p-2c63404f.entry.js +1 -0
  256. package/dist/design-system/{p-33bc3176.entry.js → p-435ae69e.entry.js} +1 -1
  257. package/dist/design-system/p-43e97572.entry.js +1 -0
  258. package/dist/design-system/p-44d05570.entry.js +1 -0
  259. package/dist/design-system/p-501fae20.entry.js +1 -0
  260. package/dist/design-system/{p-ead3e688.entry.js → p-5705e6d6.entry.js} +1 -1
  261. package/dist/design-system/p-5cbaf1db.entry.js +1 -0
  262. package/dist/design-system/p-5ed0becf.entry.js +1 -0
  263. package/dist/design-system/p-5f1c39b8.entry.js +1 -0
  264. package/dist/design-system/p-66af0ba0.entry.js +1 -0
  265. package/dist/design-system/p-77690440.entry.js +1 -0
  266. package/dist/design-system/p-78cc0289.entry.js +1 -0
  267. package/dist/design-system/p-790165f8.entry.js +1 -0
  268. package/dist/design-system/p-80466582.entry.js +1 -0
  269. package/dist/design-system/{p-e5cebccd.entry.js → p-857c44e8.entry.js} +1 -1
  270. package/dist/design-system/{p-f522c91d.entry.js → p-87c868c3.entry.js} +1 -1
  271. package/dist/design-system/p-8db7d8f2.entry.js +1 -0
  272. package/dist/design-system/p-8ee990bd.entry.js +1 -0
  273. package/dist/design-system/p-8f22106e.entry.js +1 -0
  274. package/dist/design-system/p-BDjErF_K.js +1 -0
  275. package/dist/design-system/p-BnfUIhUj.js +1 -0
  276. package/dist/{components/p-DkJqVXpD.js → design-system/p-C29HUShl.js} +1 -1
  277. package/dist/design-system/{p-BxPyZJaz.js → p-Ce0cmS4R.js} +1 -1
  278. package/dist/design-system/p-CxOCk_ge.js +1 -0
  279. package/dist/design-system/p-GBlVDmy4.js +1 -0
  280. package/dist/design-system/p-a6545130.entry.js +1 -0
  281. package/dist/design-system/p-ae2d45a2.entry.js +1 -0
  282. package/dist/design-system/{p-797517b5.entry.js → p-aeccfb2b.entry.js} +1 -1
  283. package/dist/design-system/p-b0aad445.entry.js +1 -0
  284. package/dist/design-system/p-b3c144ff.entry.js +1 -0
  285. package/dist/design-system/p-caee95b0.entry.js +1 -0
  286. package/dist/design-system/p-d30c823e.entry.js +1 -0
  287. package/dist/design-system/{p-3f7bc660.entry.js → p-d3212544.entry.js} +1 -1
  288. package/dist/design-system/p-d8c41313.entry.js +1 -0
  289. package/dist/design-system/{p-6bfe3612.entry.js → p-de8bb9ba.entry.js} +1 -1
  290. package/dist/design-system/p-e2334c1c.entry.js +1 -0
  291. package/dist/design-system/p-f4d73a0c.entry.js +1 -0
  292. package/dist/design-system/p-fc973500.entry.js +1 -0
  293. package/dist/design-system/p-fe0a5368.entry.js +1 -0
  294. package/dist/design-system/p-mmdt-WnS.js +1 -0
  295. package/dist/esm/component.table-BnfUIhUj.js +64 -0
  296. package/dist/esm/design-system.js +3 -3
  297. package/dist/esm/{index-Cnwbjz1F.js → index-0U6dRjlq.js} +1 -1
  298. package/dist/esm/index.js +5 -5
  299. package/dist/esm/loader.js +3 -3
  300. package/dist/esm/{resolveColor-BxPyZJaz.js → resolveColor-Ce0cmS4R.js} +2 -2
  301. package/dist/esm/sd-action-modal.entry.js +3 -3
  302. package/dist/esm/sd-badge.entry.js +2 -3
  303. package/dist/esm/sd-barcode-input.entry.js +3 -3
  304. package/dist/esm/{sd-button-v2.config-CV4xelxV.js → sd-button.config-BDjErF_K.js} +88 -3
  305. package/dist/esm/{sd-button-v2_2.entry.js → sd-button_2.entry.js} +102 -85
  306. package/dist/esm/sd-calendar.entry.js +15 -15
  307. package/dist/esm/sd-card.entry.js +2 -2
  308. package/dist/esm/sd-checkbox.entry.js +4 -4
  309. package/dist/esm/sd-chip.entry.js +4 -4
  310. package/dist/esm/sd-circle-progress.entry.js +3 -3
  311. package/dist/esm/sd-confirm-modal_2.entry.js +19 -11
  312. package/dist/esm/sd-date-box.entry.js +9 -4
  313. package/dist/esm/{sd-date-picker-calendar.entry.js → sd-date-picker-calendar_2.entry.js} +59 -7
  314. package/dist/esm/{sd-date-picker.config-C2fDbE9d.js → sd-date-picker.config-B6cqMQaM.js} +1 -2
  315. package/dist/esm/sd-date-picker_7.entry.js +1227 -0
  316. package/dist/esm/sd-date-range-picker-calendar.entry.js +14 -14
  317. package/dist/esm/sd-dropdown-button.entry.js +21 -16
  318. package/dist/esm/{sd-button_4.entry.js → sd-field_3.entry.js} +48 -102
  319. package/dist/esm/sd-form.entry.js +5 -5
  320. package/dist/esm/sd-ghost-button.entry.js +12 -10
  321. package/dist/esm/sd-guide.entry.js +11 -11
  322. package/dist/esm/sd-key-value-table.entry.js +228 -0
  323. package/dist/esm/sd-linear-progress.entry.js +3 -3
  324. package/dist/esm/sd-loading-container.entry.js +3 -3
  325. package/dist/esm/sd-modal-container.entry.js +3 -3
  326. package/dist/esm/{sd-pagination_5.entry.js → sd-pagination_4.entry.js} +137 -325
  327. package/dist/esm/sd-popover.entry.js +18 -11
  328. package/dist/esm/sd-popup.entry.js +110 -0
  329. package/dist/esm/sd-portal.entry.js +3 -3
  330. package/dist/esm/sd-radio-button.entry.js +9 -6
  331. package/dist/esm/sd-radio.entry.js +2 -2
  332. package/dist/esm/sd-select-list-item_2.entry.js +156 -0
  333. package/dist/esm/sd-select.config-CxOCk_ge.js +165 -0
  334. package/dist/esm/{sd-select-list-item_4.entry.js → sd-select_3.entry.js} +281 -307
  335. package/dist/esm/sd-switch.entry.js +2 -2
  336. package/dist/esm/{sd-table.config-Bj-EEo7N.js → sd-table.config-B-VgXXT7.js} +16 -46
  337. package/dist/esm/sd-table.entry.js +188 -48
  338. package/dist/esm/sd-tabs.entry.js +8 -3
  339. package/dist/esm/sd-tag.entry.js +56 -21
  340. package/dist/esm/sd-td.entry.js +52 -10
  341. package/dist/esm/sd-text-link.entry.js +13 -5
  342. package/dist/esm/sd-toast-container.entry.js +5 -5
  343. package/dist/esm/sd-toast.entry.js +35 -5
  344. package/dist/esm/sd-toggle.entry.js +2 -2
  345. package/dist/esm/{system-CZ4ltUOw.js → system-GBlVDmy4.js} +4 -2
  346. package/dist/esm/{tooltipArrow-D8sr81Xw.js → tooltipArrow-O5LOsHae.js} +1 -1
  347. package/dist/types/components/assets/CheckboxCheck.d.ts +1 -0
  348. package/dist/types/components/assets/CheckboxIndeterminate.d.ts +1 -0
  349. package/dist/types/components/assets/index.d.ts +2 -0
  350. package/dist/types/components/sd-action-modal/sd-action-modal.d.ts +2 -2
  351. package/dist/types/components/sd-badge/sd-badge.d.ts +0 -1
  352. package/dist/types/components/{sd-button-v2/sd-button-v2.config.d.ts → sd-button/sd-button.config.d.ts} +9 -15
  353. package/dist/types/components/sd-button/sd-button.d.ts +11 -13
  354. package/dist/types/components/sd-confirm-modal/sd-confirm-modal.config.d.ts +3 -3
  355. package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +2 -1
  356. package/dist/types/components/sd-dropdown-button/sd-dropdown-button.config.d.ts +6 -5
  357. package/dist/types/components/sd-dropdown-button/sd-dropdown-button.d.ts +1 -0
  358. package/dist/types/components/sd-field/sd-field.d.ts +1 -0
  359. package/dist/types/components/sd-key-value-table/sd-key-value-table.config.d.ts +105 -0
  360. package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +38 -0
  361. package/dist/types/components/sd-loading-modal/sd-loading-modal.config.d.ts +2 -2
  362. package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +1 -0
  363. package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +1 -1
  364. package/dist/types/components/sd-popover/sd-popover.d.ts +16 -10
  365. package/dist/types/components/sd-popup/sd-popup.config.d.ts +30 -0
  366. package/dist/types/components/sd-popup/sd-popup.d.ts +11 -0
  367. package/dist/types/components/sd-table/constants.d.ts +2 -0
  368. package/dist/types/components/sd-table/sd-table.config.d.ts +4 -0
  369. package/dist/types/components/sd-table/sd-table.d.ts +21 -15
  370. package/dist/types/components/sd-table/sd-td/sd-td.d.ts +6 -0
  371. package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +9 -0
  372. package/dist/types/components/sd-tag/sd-tag.d.ts +2 -0
  373. package/dist/types/components/sd-toast/sd-toast.config.d.ts +5 -1
  374. package/dist/types/components/sd-toast/sd-toast.d.ts +2 -0
  375. package/dist/types/components/sd-toast-container/sd-toast-container.config.d.ts +2 -0
  376. package/dist/types/components/sd-tooltip/sd-tooltip.config.d.ts +2 -13
  377. package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +6 -4
  378. package/dist/types/components.d.ts +278 -192
  379. package/dist/types/index.d.ts +1 -1
  380. package/dist/types/types/form.d.ts +1 -1
  381. package/dist/types/types/global.d.ts +14 -13
  382. package/dist/types/utils/toast.d.ts +1 -1
  383. package/hydrate/index.js +5513 -4761
  384. package/hydrate/index.mjs +5513 -4761
  385. package/package.json +111 -97
  386. package/readme.md +13 -7
  387. package/dist/cjs/component.button-cqV-iCG5.js +0 -90
  388. package/dist/cjs/sd-date-picker-trigger.cjs.entry.js +0 -51
  389. package/dist/cjs/sd-date-picker.cjs.entry.js +0 -117
  390. package/dist/cjs/sd-date-range-picker.cjs.entry.js +0 -123
  391. package/dist/cjs/sd-file-picker.cjs.entry.js +0 -244
  392. package/dist/cjs/sd-input.cjs.entry.js +0 -175
  393. package/dist/cjs/sd-number-input.cjs.entry.js +0 -409
  394. package/dist/cjs/sd-radio-group.cjs.entry.js +0 -46
  395. package/dist/cjs/sd-table.config-Cb0Ot3C6.js +0 -105
  396. package/dist/cjs/sd-textarea.cjs.entry.js +0 -146
  397. package/dist/collection/components/sd-button-v2/sd-button-v2.css +0 -125
  398. package/dist/collection/components/sd-button-v2/sd-button-v2.js +0 -273
  399. package/dist/components/p-B1XBwjCW.js +0 -1
  400. package/dist/components/p-B8jXOXtJ.js +0 -1
  401. package/dist/components/p-BE6TxbtX.js +0 -1
  402. package/dist/components/p-BJsHakU2.js +0 -1
  403. package/dist/components/p-BStczlLa.js +0 -1
  404. package/dist/components/p-BcMNA89i.js +0 -1
  405. package/dist/components/p-BheX6lAy.js +0 -1
  406. package/dist/components/p-BmYM7-4v.js +0 -1
  407. package/dist/components/p-BppjYHF6.js +0 -1
  408. package/dist/components/p-BwWDMpJc.js +0 -1
  409. package/dist/components/p-C-kw2p2a.js +0 -1
  410. package/dist/components/p-C5qZtNLl.js +0 -1
  411. package/dist/components/p-C7DajKYn.js +0 -1
  412. package/dist/components/p-CZ4ltUOw.js +0 -1
  413. package/dist/components/p-CeVMl_M9.js +0 -1
  414. package/dist/components/p-D1DpOp6M.js +0 -1
  415. package/dist/components/p-D3gjBBCU.js +0 -1
  416. package/dist/components/p-DC-6inj0.js +0 -1
  417. package/dist/components/p-DRF0He-x.js +0 -1
  418. package/dist/components/p-DegvQLTF.js +0 -1
  419. package/dist/components/p-Dey-lS6x.js +0 -1
  420. package/dist/components/p-DfH_fO01.js +0 -1
  421. package/dist/components/p-DngV3MT1.js +0 -1
  422. package/dist/components/p-EbjZr2OA.js +0 -1
  423. package/dist/components/p-LwWOleLJ.js +0 -1
  424. package/dist/components/p-Nvx13YlG.js +0 -1
  425. package/dist/components/p-ZMpCZhXP.js +0 -1
  426. package/dist/components/p-dNJIFthT.js +0 -1
  427. package/dist/components/p-q0VWISKA.js +0 -1
  428. package/dist/components/p-xnLvZ-xn.js +0 -1
  429. package/dist/components/sd-button-v2.js +0 -1
  430. package/dist/design-system/p-0356c195.entry.js +0 -1
  431. package/dist/design-system/p-045bc426.entry.js +0 -1
  432. package/dist/design-system/p-12dfd239.entry.js +0 -1
  433. package/dist/design-system/p-16d3a485.entry.js +0 -1
  434. package/dist/design-system/p-1706ed6f.entry.js +0 -1
  435. package/dist/design-system/p-182548f7.entry.js +0 -1
  436. package/dist/design-system/p-1a79edce.entry.js +0 -1
  437. package/dist/design-system/p-1cf87e87.entry.js +0 -1
  438. package/dist/design-system/p-25a08e98.entry.js +0 -1
  439. package/dist/design-system/p-2812b9ce.entry.js +0 -1
  440. package/dist/design-system/p-38f661ea.entry.js +0 -1
  441. package/dist/design-system/p-429dab5c.entry.js +0 -1
  442. package/dist/design-system/p-455dccf5.entry.js +0 -1
  443. package/dist/design-system/p-59313838.entry.js +0 -1
  444. package/dist/design-system/p-6af01ab0.entry.js +0 -1
  445. package/dist/design-system/p-70d4903f.entry.js +0 -1
  446. package/dist/design-system/p-767e99f9.entry.js +0 -1
  447. package/dist/design-system/p-7c370335.entry.js +0 -1
  448. package/dist/design-system/p-7fe8be6a.entry.js +0 -1
  449. package/dist/design-system/p-83b262dc.entry.js +0 -1
  450. package/dist/design-system/p-881adaa5.entry.js +0 -1
  451. package/dist/design-system/p-88d7303c.entry.js +0 -1
  452. package/dist/design-system/p-8a601e0f.entry.js +0 -1
  453. package/dist/design-system/p-B1XBwjCW.js +0 -1
  454. package/dist/design-system/p-BsrEibf7.js +0 -1
  455. package/dist/design-system/p-C5qZtNLl.js +0 -1
  456. package/dist/design-system/p-CZ4ltUOw.js +0 -1
  457. package/dist/design-system/p-Cnwbjz1F.js +0 -2
  458. package/dist/design-system/p-DnCBBIoq.js +0 -1
  459. package/dist/design-system/p-a82be987.entry.js +0 -1
  460. package/dist/design-system/p-b917c82a.entry.js +0 -1
  461. package/dist/design-system/p-b9f00eef.entry.js +0 -1
  462. package/dist/design-system/p-bcb53788.entry.js +0 -1
  463. package/dist/design-system/p-c24344ac.entry.js +0 -1
  464. package/dist/design-system/p-d76192bd.entry.js +0 -1
  465. package/dist/design-system/p-d9d8c51b.entry.js +0 -1
  466. package/dist/design-system/p-de67937d.entry.js +0 -1
  467. package/dist/design-system/p-ea5e6c2c.entry.js +0 -1
  468. package/dist/design-system/p-eeb1cac2.entry.js +0 -1
  469. package/dist/design-system/p-f1a74359.entry.js +0 -1
  470. package/dist/design-system/p-f44786a9.entry.js +0 -1
  471. package/dist/design-system/p-f69c7539.entry.js +0 -1
  472. package/dist/esm/component.button-B1XBwjCW.js +0 -88
  473. package/dist/esm/sd-date-picker-trigger.entry.js +0 -49
  474. package/dist/esm/sd-date-picker.entry.js +0 -115
  475. package/dist/esm/sd-date-range-picker.entry.js +0 -121
  476. package/dist/esm/sd-file-picker.entry.js +0 -242
  477. package/dist/esm/sd-input.entry.js +0 -173
  478. package/dist/esm/sd-number-input.entry.js +0 -407
  479. package/dist/esm/sd-radio-group.entry.js +0 -44
  480. package/dist/esm/sd-textarea.entry.js +0 -144
  481. package/dist/types/components/sd-button-v2/sd-button-v2.d.ts +0 -19
  482. /package/dist/components/{p-C2fDbE9d.js → p-B6cqMQaM.js} +0 -0
  483. /package/dist/design-system/{p-C2fDbE9d.js → p-B6cqMQaM.js} +0 -0
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index--F2wGuAi.js');
4
- var index$1 = require('./index-BUvXpPc3.js');
3
+ var index = require('./index-Cw-78mnC.js');
5
4
  var constants = require('./constants-DJRV1upE.js');
6
- var sdTable_config = require('./sd-table.config-Cb0Ot3C6.js');
7
- require('./system-DpTN1vBC.js');
5
+ var sdTable_config = require('./sd-table.config-BIpldZtw.js');
6
+ require('./component.table-CMqGfEui.js');
7
+ require('./system-VmZRYp6V.js');
8
8
 
9
9
  const pagination = {
10
10
  height: "24",
@@ -154,296 +154,17 @@ const SdPagination = class {
154
154
  '--sd-pagination-bg-selected': PAGINATION_COLORS.bgSelected,
155
155
  '--sd-pagination-item-width': `${this.buttonWidth}px`,
156
156
  };
157
- return (index.h("div", { key: 'e648886fbec4723b7be767d9e1bfc04004cca234', class: {
157
+ return (index.h("div", { key: '0a99cc2b09de2f2a893fe88eaee535dc2f39505d', class: {
158
158
  'sd-pagination': true,
159
159
  'sd-pagination--simple': this.simple,
160
- }, style: cssVars }, index.h("div", { key: '43ff8b8f6682c4d2b70c5085a6d3199de1d01596', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (index.h("div", { class: "sd-pagination__info" }, index.h("span", { class: "sd-pagination__current" }, this.currentPage), index.h("span", { class: "sd-pagination__divider" }, "/"), index.h("span", { class: "sd-pagination__last" }, this.lastPage))) : (index.h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (index.h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
160
+ }, style: cssVars }, index.h("div", { key: 'ba4e726a23e572c788c8c68689e656a07f21f46e', class: "sd-pagination__group sd-pagination__group--prev" }, this.renderPrevButtons()), this.simple ? (index.h("div", { class: "sd-pagination__info" }, index.h("span", { class: "sd-pagination__current" }, this.currentPage), index.h("span", { class: "sd-pagination__divider" }, "/"), index.h("span", { class: "sd-pagination__last" }, this.lastPage))) : (index.h("div", { class: "sd-pagination__numbers" }, this.pageNumbers.map(n => (index.h("button", { type: "button", "aria-current": this.currentPage === n ? 'page' : undefined, class: {
161
161
  'sd-pagination__item': true,
162
162
  'sd-pagination__item--selected': this.currentPage === n,
163
- }, onClick: () => this.handlePageChange(n) }, n))))), index.h("div", { key: '1975d14028485438a728b23d717abfcde8722fcf', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
163
+ }, onClick: () => this.handlePageChange(n) }, n))))), index.h("div", { key: 'e3276583ab382b988ac2961e8c67c431d5c4495e', class: "sd-pagination__group sd-pagination__group--next" }, this.renderNextButtons())));
164
164
  }
165
165
  };
166
166
  SdPagination.style = sdPaginationCss();
167
167
 
168
- const sdSelectCss = () => `sd-select{display:inline-flex}sd-select sd-portal{display:none}sd-select .sd-select{position:relative;width:100%;height:100%}`;
169
-
170
- const SdSelect = class {
171
- constructor(hostRef) {
172
- index.registerInstance(this, hostRef);
173
- this.update = index.createEvent(this, "sdUpdate", 7);
174
- this.dropDownShow = index.createEvent(this, "sdDropDownShow", 7);
175
- }
176
- static VIEWPORT_PADDING = 20;
177
- static PORTAL_OFFSET_Y = 4;
178
- static CLOSE_ANIMATION_DURATION = 150;
179
- get el() { return index.getElement(this); }
180
- type = 'default';
181
- value = null;
182
- options = [];
183
- placeholder = '선택';
184
- maxDropdownWidth = '640px';
185
- dropdownHeight = '260px';
186
- disabled = false;
187
- label = '';
188
- labelWidth = '';
189
- addonLabel = '';
190
- addonAlign = 'start';
191
- error = false;
192
- hint = '';
193
- errorMessage = '';
194
- rules = [];
195
- icon = undefined;
196
- labelTooltip = '';
197
- labelTooltipProps = null;
198
- emitValue = false;
199
- width = '';
200
- useSearch = false;
201
- allSelectedLabel = '전체';
202
- useSelectAll = false;
203
- isOpen = false;
204
- isAnimatingOut = false;
205
- triggerWidth = '200px';
206
- resolvedDropdownHeight = '260px';
207
- resolvedMaxDropdownWidth = '640px';
208
- focused = false;
209
- hovered = false;
210
- update;
211
- dropDownShow;
212
- async sdFocus() {
213
- if (this.disabled)
214
- return;
215
- await this.triggerComponentRef?.sdFocus();
216
- }
217
- async sdOpen() {
218
- // sdFocus 직후 호출 시 트리거 ref/레이아웃이 안정될 때까지 한 틱 대기
219
- await new Promise(resolve => setTimeout(resolve, 0));
220
- if (this.disabled || this.isOpen)
221
- return;
222
- this.prepareDropdownGeometry();
223
- if (this.closeAnimationTimer)
224
- clearTimeout(this.closeAnimationTimer);
225
- this.isAnimatingOut = false;
226
- this.isOpen = true;
227
- }
228
- triggerRef;
229
- triggerComponentRef;
230
- closeAnimationTimer;
231
- name = index$1.nanoid();
232
- triggerHasFocus = false;
233
- watchIsOpen(newValue) {
234
- this.syncFocusedState(newValue);
235
- this.dropDownShow.emit({ isOpen: newValue });
236
- }
237
- get isMulti() {
238
- return this.type === 'multi' || this.type === 'multi_depth';
239
- }
240
- get displayText() {
241
- if (this.isMulti) {
242
- if (!Array.isArray(this.value) || this.value.length === 0)
243
- return '';
244
- const nonDisabledLeaves = this.getNonDisabledLeaves(this.options);
245
- const selected = this.getSelectedOptions();
246
- const allSelected = nonDisabledLeaves.length > 0 &&
247
- nonDisabledLeaves.every(leaf => selected.some(s => s.value === leaf.value));
248
- if (allSelected)
249
- return this.allSelectedLabel ?? '전체';
250
- const flat = this.flattenOptions(this.options);
251
- return this.value
252
- .map(item => {
253
- if (item != null && typeof item === 'object') {
254
- const opt = item;
255
- return opt.label ?? flat.find(o => o.value === opt.value)?.label ?? '';
256
- }
257
- return flat.find(o => o.value === item)?.label ?? '';
258
- })
259
- .filter(Boolean)
260
- .join(', ');
261
- }
262
- if (this.value == null)
263
- return '';
264
- if (!this.emitValue && typeof this.value === 'object' && !Array.isArray(this.value)) {
265
- return this.value.label ?? '';
266
- }
267
- const flat = this.flattenOptions(this.options);
268
- const found = flat.find(o => o.value === this.value);
269
- return found?.label ?? '';
270
- }
271
- flattenOptions(options) {
272
- return options.flatMap(o => (o.children ? this.flattenOptions(o.children) : [o]));
273
- }
274
- getNonDisabledLeaves(options) {
275
- return options.flatMap(o => {
276
- if (o.disabled)
277
- return [];
278
- if (o.children)
279
- return this.getNonDisabledLeaves(o.children);
280
- return [o];
281
- });
282
- }
283
- getSelectedOptions() {
284
- const val = this.value;
285
- if (!val || !Array.isArray(val))
286
- return [];
287
- if (this.emitValue) {
288
- return val
289
- .map(v => this.findOriginalOption(v, this.options))
290
- .filter((o) => !!o);
291
- }
292
- return val;
293
- }
294
- toMultiValue(options) {
295
- return this.emitValue ? options.map(o => o.value) : options;
296
- }
297
- parsePixelValue(value, fallback) {
298
- const parsed = Number.parseFloat(value);
299
- return Number.isFinite(parsed) ? parsed : fallback;
300
- }
301
- updateDropdownViewportConstraints() {
302
- if (!this.triggerRef)
303
- return;
304
- const triggerRect = this.triggerRef.getBoundingClientRect();
305
- const viewportPadding = SdSelect.VIEWPORT_PADDING;
306
- const offsetY = SdSelect.PORTAL_OFFSET_Y;
307
- const preferredHeight = this.parsePixelValue(this.dropdownHeight, 260);
308
- const preferredWidth = this.parsePixelValue(this.maxDropdownWidth, 640);
309
- const availableBelow = Math.max(window.innerHeight - triggerRect.bottom - viewportPadding - offsetY, 0);
310
- const availableAbove = Math.max(triggerRect.top - viewportPadding - offsetY, 0);
311
- const availableHeight = Math.max(availableBelow, availableAbove);
312
- const availableWidth = Math.max(window.innerWidth - viewportPadding * 2, 0);
313
- this.resolvedDropdownHeight = `${Math.min(preferredHeight, availableHeight)}px`;
314
- this.resolvedMaxDropdownWidth = `${Math.min(preferredWidth, availableWidth)}px`;
315
- }
316
- handleViewportResize = () => {
317
- if (!this.isOpen)
318
- return;
319
- this.updateDropdownViewportConstraints();
320
- };
321
- findOriginalOption(value, options) {
322
- for (const opt of options) {
323
- if (opt.value === value)
324
- return opt;
325
- if (opt.children) {
326
- const found = this.findOriginalOption(value, opt.children);
327
- if (found)
328
- return found;
329
- }
330
- }
331
- return undefined;
332
- }
333
- closeDropdown() {
334
- if (!this.isOpen)
335
- return;
336
- this.isOpen = false;
337
- this.isAnimatingOut = true;
338
- if (this.closeAnimationTimer)
339
- clearTimeout(this.closeAnimationTimer);
340
- this.closeAnimationTimer = setTimeout(() => {
341
- this.isAnimatingOut = false;
342
- }, SdSelect.CLOSE_ANIMATION_DURATION);
343
- }
344
- prepareDropdownGeometry() {
345
- if (this.triggerRef) {
346
- this.triggerWidth = `${this.triggerRef.offsetWidth}px`;
347
- }
348
- this.updateDropdownViewportConstraints();
349
- }
350
- syncFocusedState(isOpen = this.isOpen) {
351
- this.focused = isOpen || this.triggerHasFocus;
352
- }
353
- handleTriggerFocus = () => {
354
- this.triggerHasFocus = true;
355
- this.syncFocusedState();
356
- };
357
- handleTriggerBlur = () => {
358
- this.triggerHasFocus = false;
359
- this.syncFocusedState();
360
- };
361
- handleTriggerClick = () => {
362
- if (this.isOpen) {
363
- this.closeDropdown();
364
- return;
365
- }
366
- this.prepareDropdownGeometry();
367
- if (this.closeAnimationTimer)
368
- clearTimeout(this.closeAnimationTimer);
369
- this.isAnimatingOut = false;
370
- this.isOpen = true;
371
- };
372
- emitUpdate(value) {
373
- this.update.emit(value);
374
- }
375
- handleOptionSelect = (detail) => {
376
- const { option, leaves } = detail;
377
- if (this.isMulti) {
378
- this.handleMultiSelect(option, leaves);
379
- }
380
- else {
381
- this.closeDropdown();
382
- this.value = this.emitValue ? option.value : option;
383
- const nextValue = this.value;
384
- requestAnimationFrame(() => {
385
- this.emitUpdate(nextValue);
386
- });
387
- }
388
- };
389
- handleMultiSelect(option, leaves) {
390
- const selected = this.getSelectedOptions();
391
- const isGroup = !!option.children;
392
- let newSelected;
393
- if (isGroup) {
394
- const allSelected = leaves.every(l => selected.some(s => s.value === l.value));
395
- if (allSelected) {
396
- const leafValues = new Set(leaves.map(l => l.value));
397
- newSelected = selected.filter(s => !leafValues.has(s.value));
398
- }
399
- else {
400
- const existing = new Set(selected.map(s => s.value));
401
- const toAdd = leaves.filter(l => !existing.has(l.value));
402
- newSelected = [...selected, ...toAdd];
403
- }
404
- }
405
- else {
406
- const exists = selected.some(s => s.value === option.value);
407
- newSelected = exists ? selected.filter(s => s.value !== option.value) : [...selected, option];
408
- }
409
- this.value = this.toMultiValue(newSelected);
410
- this.emitUpdate(this.value);
411
- }
412
- connectedCallback() {
413
- window.addEventListener('resize', this.handleViewportResize);
414
- }
415
- disconnectedCallback() {
416
- window.removeEventListener('resize', this.handleViewportResize);
417
- if (this.closeAnimationTimer)
418
- clearTimeout(this.closeAnimationTimer);
419
- }
420
- render() {
421
- const portalProps = {
422
- open: this.isOpen,
423
- parentRef: this.triggerRef,
424
- viewportPadding: SdSelect.VIEWPORT_PADDING,
425
- onSdClose: () => {
426
- this.closeDropdown();
427
- },
428
- };
429
- return (index.h("sd-field", { key: '76625e332090d20e2f66159bba5ee1b9a11320a6', 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, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, onMouseEnter: () => {
430
- this.hovered = true;
431
- }, onMouseLeave: () => {
432
- this.hovered = false;
433
- } }, index.h("div", { key: '8a0ae8a5e05459128409dbe21779f5e3d91b3a04', class: "sd-select", ref: el => {
434
- this.triggerRef = el;
435
- } }, index.h("sd-select-trigger", { key: '6b47231914655a8e197e3b38cd8e37c5214efc17', ref: el => {
436
- this.triggerComponentRef = el;
437
- }, displayText: this.displayText, placeholder: this.placeholder, disabled: this.disabled, isOpen: this.isOpen, onSdTriggerClick: this.handleTriggerClick, onSdTriggerFocus: this.handleTriggerFocus, onSdTriggerBlur: this.handleTriggerBlur })), (this.isOpen || this.isAnimatingOut) && (index.h("sd-portal", { key: 'eaed402d276cc94a1324ede9cbf09bc436f8a1db', ...portalProps }, index.h("sd-select-listbox", { key: 'a96f75e06d974c8fd88ac72f083fe4b0ef424a0b', type: this.type, options: this.options, value: this.value, emitValue: this.emitValue, useSearch: this.useSearch, useSelectAll: this.useSelectAll, triggerWidth: this.triggerWidth, maxWidth: this.resolvedMaxDropdownWidth, maxHeight: this.resolvedDropdownHeight, onSdOptionSelect: event => this.handleOptionSelect(event.detail) })))));
438
- }
439
- static get watchers() { return {
440
- "isOpen": [{
441
- "watchIsOpen": 0
442
- }]
443
- }; }
444
- };
445
- SdSelect.style = sdSelectCss();
446
-
447
168
  const sdTbodyCss = () => `:host{display:contents}:host *{box-sizing:border-box}.tbody{display:table-row-group}`;
448
169
 
449
170
  const SdTbody = class {
@@ -486,17 +207,17 @@ const SdTbody = class {
486
207
  this.tableEl = table;
487
208
  const fromMethod = table?.getTableIdSync?.();
488
209
  const fromAttr = table?.getAttribute(constants.TABLE_ID_ATTR);
489
- const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
490
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
210
+ const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
211
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
491
212
  '';
492
- if (resolvedTableId && resolvedTableId !== this.tableId) {
213
+ if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
493
214
  this.tableId = resolvedTableId;
494
215
  }
495
216
  }
496
217
  render() {
497
- return (index.h(index.Host, { key: 'e474bc09fdec9d48d978ec87620b161220b5236c', slot: `${this.tableId}-body` }, index.h("tbody", { key: 'c74261b3f30c43e8ac8c3bdea1180f17bfc7dbc8', class: { tbody: true } }, [
218
+ return (index.h(index.Host, { key: '5b55bfd73916ff1402329375de1e1fc2a7629cbd', slot: `${this.tableId}-body` }, index.h("tbody", { key: 'a09a532d1510166a36d592c2e59ec1765803bbbe', class: { tbody: true } }, [
498
219
  this.topSpacerHeight > 0 && (index.h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
499
- index.h("slot", { key: 'f686e7e8fa81e725a32592a58267d0b5cd7551e6' }),
220
+ index.h("slot", { key: 'da3827a9c2fe7a74ec3cb3eb8dee3ab039ea0535' }),
500
221
  this.bottomSpacerHeight > 0 && (index.h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
501
222
  ])));
502
223
  }
@@ -537,7 +258,7 @@ const SdThead = class {
537
258
  tableEl = null;
538
259
  handleColumnsChange(newCols) {
539
260
  if (Array.isArray(newCols) && (this.columnWidths ?? []).length === 0) {
540
- this.columnWidths = newCols.map(c => parseInt(c.width || '120', 10));
261
+ this.columnWidths = newCols.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
541
262
  }
542
263
  }
543
264
  componentWillLoad() {
@@ -545,7 +266,7 @@ const SdThead = class {
545
266
  this.columnWidths = Array.isArray(this.columnWidths) ? this.columnWidths : [];
546
267
  this.resolveConfig();
547
268
  if ((this.columnWidths ?? []).length === 0) {
548
- this.columnWidths = this._columns.map(c => parseInt(c.width || '120', 10));
269
+ this.columnWidths = this._columns.map(c => c.autoWidth ? 0 : parseInt(c.width || '120', 10));
549
270
  }
550
271
  }
551
272
  componentDidLoad() {
@@ -562,10 +283,10 @@ const SdThead = class {
562
283
  this.tableEl = table;
563
284
  const fromMethod = table?.getTableIdSync?.();
564
285
  const fromAttr = table?.getAttribute(constants.TABLE_ID_ATTR);
565
- const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
566
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
286
+ const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
287
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
567
288
  '';
568
- if (resolvedTableId && resolvedTableId !== this.tableId) {
289
+ if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
569
290
  this.tableId = resolvedTableId;
570
291
  }
571
292
  }
@@ -613,13 +334,17 @@ const SdThead = class {
613
334
  const rightOffset = this.columnWidths
614
335
  .filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
615
336
  .reduce((a, b) => a + b, 0);
616
- return {
337
+ const col = this.visibleColumns[colIdx];
338
+ const base = {
617
339
  '--sticky-left-offset': `${leftOffset}px`,
618
340
  '--sticky-right-offset': `${rightOffset}px`,
619
- 'width': `${this.columnWidths[colIdx]}px`,
620
- 'minWidth': `${this.columnWidths[colIdx]}px`,
621
- 'maxWidth': `${this.columnWidths[colIdx]}px`,
622
341
  };
342
+ if (!col?.autoWidth) {
343
+ base['width'] = `${this.columnWidths[colIdx]}px`;
344
+ base['minWidth'] = `${this.columnWidths[colIdx]}px`;
345
+ base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
346
+ }
347
+ return base;
623
348
  }
624
349
  handleResize(index, event, reversed = false) {
625
350
  if (this.tableEl?.handleResize) {
@@ -650,6 +375,7 @@ const SdThead = class {
650
375
  const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
651
376
  const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
652
377
  const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
378
+ const lastColIdx = this.visibleColumns.length - 1;
653
379
  const headStyle = {
654
380
  '--table-header-height': `${sdTable_config.TABLE_HEADER_LAYOUT.height}px`,
655
381
  '--table-header-padding-x': `${sdTable_config.TABLE_HEADER_LAYOUT.paddingX}px`,
@@ -665,27 +391,33 @@ const SdThead = class {
665
391
  '--table-border-color': sdTable_config.TABLE_BORDER.color,
666
392
  '--table-border-width': `${sdTable_config.TABLE_BORDER.width}px`,
667
393
  };
668
- return (index.h(index.Host, { key: 'c4468056cc20a78516e61bccaf4d11c098e83ec6', slot: `${this.tableId}-head`, style: headStyle }, index.h("thead", { key: 'a9befd1728baf2104bfb9132557d5c5c0eb49748', class: {
394
+ return (index.h(index.Host, { key: '424fa72b833a94bce945ae50e8445cbed0527025', slot: `${this.tableId}-head`, style: headStyle }, index.h("thead", { key: '1a5704d78992b553c5db5ba92bb3814de7c19898', class: {
669
395
  'thead': true,
670
396
  'thead--sticky': this._stickyHeader,
671
- } }, index.h("tr", { key: 'da786d82d4896b6124becf42f634bcc5b0a6ffb7', class: "tr" }, this._selectable && (index.h("th", { key: 'b257c5475b7e528fbfc52ea85031a4c49bed7b36', class: {
397
+ } }, index.h("tr", { key: '1369ff7c99a5691bcd5fa54af4f7c02ff41dceb3', class: "tr" }, this._selectable && (index.h("th", { key: '72159c6f8ef28b0b93790e180cb9b12345727525', class: {
672
398
  'th': true,
673
399
  'th--selected': true,
674
400
  'sticky-left': true,
675
401
  'sticky-left-edge': stickyLeftCount === 0,
676
402
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
677
- }, style: { '--sticky-left-offset': '0px' } }, index.h("sd-checkbox", { key: '6624026c1811c809eeb5131518ddb8c11f66b541', value: this.getIsAllChecked(), disabled: !safeRows.length, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (index.h("th", { key: col.name, class: {
403
+ }, style: { '--sticky-left-offset': '0px' } }, index.h("sd-checkbox", { key: '1c5c035346fc6d13d956475480374a8bd93d3d6d', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (index.h("th", { key: col.name, class: {
678
404
  'th': true,
679
405
  [`${col.thClass}`]: Boolean(col.thClass),
680
406
  'sticky-left': true,
681
407
  'sticky-left-edge': idx === stickyLeftCount - 1,
682
408
  'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
683
- }, style: { ...col.thStyle, ...this.getStickyStyle(idx) } }, index.h("div", { class: `th__content th__content--${col.align || 'left'}` }, index.h("div", { class: "th__content--label" }, col.label), col.icon && (index.h("sd-icon", { name: col.icon, size: "12", color: sdTable_config.resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (index.h("sd-icon", { name: sdTable_config.resolveSortIconName(col.sort), size: "12", color: sdTable_config.resolveTableIconColor(sdTable_config.resolveSortIconName(col.sort), col.iconColor), onClick: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (index.h("sd-tooltip", { ...col.tooltipOptions }, index.h("div", { slot: "content" }, col.tooltip.map(text => (index.h("p", null, text))))))), this._resizable && (index.h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(idx, evt) }))))), middleCols.map((col, relativeIdx) => {
409
+ }, style: { ...col.thStyle, ...this.getStickyStyle(idx) } }, index.h("div", { class: `th__content th__content--${col.align || 'left'}` }, index.h("div", { class: "th__content--label" }, col.label), col.icon && (index.h("sd-icon", { name: col.icon, size: "12", color: sdTable_config.resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (index.h("sd-icon", { name: sdTable_config.resolveSortIconName(col.sort), size: "12", color: sdTable_config.resolveTableIconColor(sdTable_config.resolveSortIconName(col.sort), col.iconColor), onClick: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (index.h("sd-tooltip", { ...col.tooltipOptions }, index.h("div", { slot: "content" }, col.tooltip.map(text => (index.h("p", null, text))))))), this._resizable && idx !== lastColIdx && (
410
+ // column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
411
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
412
+ index.h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(idx, evt) }))))), middleCols.map((col, relativeIdx) => {
684
413
  const actualColIdx = stickyLeftCount + relativeIdx;
685
414
  return (index.h("th", { key: col.name, class: {
686
415
  th: true,
687
416
  [`${col.thClass}`]: Boolean(col.thClass),
688
- }, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, index.h("div", { class: `th__content th__content--${col.align || 'left'}` }, index.h("div", { class: "th__content--label" }, col.label), col.icon && (index.h("sd-icon", { name: col.icon, size: "12", color: sdTable_config.resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (index.h("sd-icon", { name: sdTable_config.resolveSortIconName(col.sort), size: "12", color: sdTable_config.resolveTableIconColor(sdTable_config.resolveSortIconName(col.sort), col.iconColor), onClick: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (index.h("sd-tooltip", { ...col.tooltipOptions }, index.h("div", { slot: "content" }, col.tooltip.map(text => (index.h("p", null, text))))))), this._resizable && (index.h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(actualColIdx, evt) }))));
417
+ }, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, index.h("div", { class: `th__content th__content--${col.align || 'left'}` }, index.h("div", { class: "th__content--label" }, col.label), col.icon && (index.h("sd-icon", { name: col.icon, size: "12", color: sdTable_config.resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (index.h("sd-icon", { name: sdTable_config.resolveSortIconName(col.sort), size: "12", color: sdTable_config.resolveTableIconColor(sdTable_config.resolveSortIconName(col.sort), col.iconColor), onClick: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (index.h("sd-tooltip", { ...col.tooltipOptions }, index.h("div", { slot: "content" }, col.tooltip.map(text => (index.h("p", null, text))))))), this._resizable && actualColIdx !== lastColIdx && (
418
+ // column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
419
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
420
+ index.h("div", { class: "th__resizer", onMouseDown: (evt) => this.handleResize(actualColIdx, evt) }))));
689
421
  }), stickyRightCols.map((col, relativeIdx) => {
690
422
  const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
691
423
  return (index.h("th", { key: col.name, class: {
@@ -694,7 +426,10 @@ const SdThead = class {
694
426
  'sticky-right': true,
695
427
  'sticky-right-edge': relativeIdx === 0,
696
428
  'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
697
- }, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, index.h("div", { class: `th__content th__content--${col.align || 'left'}` }, index.h("div", { class: "th__content--label" }, col.label), col.icon && (index.h("sd-icon", { name: col.icon, size: "12", color: sdTable_config.resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (index.h("sd-icon", { name: sdTable_config.resolveSortIconName(col.sort), size: "12", color: sdTable_config.resolveTableIconColor(sdTable_config.resolveSortIconName(col.sort), col.iconColor), onClick: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (index.h("sd-tooltip", { ...col.tooltipOptions }, index.h("div", { slot: "content" }, col.tooltip.map(text => (index.h("p", null, text))))))), this._resizable && (index.h("div", { class: "th__resizer th__resizer--left", onMouseDown: (evt) => this.handleResize(actualColIdx, evt, true) }))));
429
+ }, style: { ...col.thStyle, ...this.getStickyStyle(actualColIdx) } }, index.h("div", { class: `th__content th__content--${col.align || 'left'}` }, index.h("div", { class: "th__content--label" }, col.label), col.icon && (index.h("sd-icon", { name: col.icon, size: "12", color: sdTable_config.resolveTableIconColor(col.icon, col.iconColor) })), col.sort && (index.h("sd-icon", { name: sdTable_config.resolveSortIconName(col.sort), size: "12", color: sdTable_config.resolveTableIconColor(sdTable_config.resolveSortIconName(col.sort), col.iconColor), onClick: () => this.handleColumnSort(col), style: { cursor: 'pointer' } })), col.tooltip && (index.h("sd-tooltip", { ...col.tooltipOptions }, index.h("div", { slot: "content" }, col.tooltip.map(text => (index.h("p", null, text))))))), this._resizable && (
430
+ // column resize 는 마우스 드래그 전용 인터랙션이라 키보드 핸들러를 두지 않는다.
431
+ // eslint-disable-next-line jsx-a11y/no-static-element-interactions
432
+ index.h("div", { class: "th__resizer th__resizer--left", onMouseDown: (evt) => this.handleResize(actualColIdx, evt, true) }))));
698
433
  })))));
699
434
  }
700
435
  static get watchers() { return {
@@ -705,7 +440,7 @@ const SdThead = class {
705
440
  };
706
441
  SdThead.style = sdTheadCss();
707
442
 
708
- const sdTrCss = () => `sd-tr{display:contents}sd-tr *{box-sizing:border-box}.tr{display:table-row}.tr:hover .td{background-color:#F9F9F9}.tr--no-hover:hover .td{background-color:white}.td{display:table-cell;height:var(--table-body-height, 44px);padding:0 var(--table-body-padding-x, 16px);border-bottom:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);background:white;vertical-align:middle;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.td--left{text-align:left}.td--center{text-align:center}.td--right{text-align:right}.td--selected{position:relative;width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.td--selected sd-checkbox label{position:relative}.td--selected sd-checkbox label:before{content:"";position:absolute;inset:-6px}.td.sticky-left{position:sticky;background-color:white;z-index:100 !important;left:var(--sticky-left-offset, 0)}.td.sticky-right{position:sticky;background-color:white;z-index:100 !important;right:var(--sticky-right-offset, 0)}.td.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-left-edge.is-scrolled-left{overflow:visible}.td.sticky-left-edge.is-scrolled-left:after{opacity:1}.td.sticky-right-edge.is-scrolled-right{overflow:visible}.td.sticky-right-edge.is-scrolled-right:after{opacity:1}.tr:hover .td.sticky-left,.tr:hover .td.sticky-right{background-color:#F9F9F9}.tr--no-hover:hover .td.sticky-left,.tr--no-hover:hover .td.sticky-right{background-color:white}`;
443
+ const sdTrCss = () => `sd-tr{display:contents}sd-tr *{box-sizing:border-box}.tr{display:table-row}.tr:hover .td{background-color:#F9F9F9}.tr--no-hover:hover .td{background-color:white}.td{display:table-cell;height:var(--table-body-height, 44px);padding:var(--table-body-padding-y, 0) var(--table-body-padding-x, 16px);border-bottom:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);background:white;vertical-align:middle;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;word-break:keep-all}.td--left{text-align:left}.td--center{text-align:center}.td--right{text-align:right}.td--selected{position:relative;width:52px !important;max-width:52px !important;min-width:52px !important;padding:0 10px 0 24px;text-align:left}.td--selected sd-checkbox label{position:relative}.td--selected sd-checkbox label:before{content:"";position:absolute;inset:-6px}.td.sticky-left{position:sticky;background-color:white;z-index:100 !important;left:var(--sticky-left-offset, 0)}.td.sticky-right{position:sticky;background-color:white;z-index:100 !important;right:var(--sticky-right-offset, 0)}.td.sticky-left-edge:after{content:"";position:absolute;top:0;left:100%;right:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset 12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-right-edge:after{content:"";position:absolute;top:0;left:-20px;width:20px;height:100%;z-index:101 !important;box-shadow:inset -12px 0 20px -25px;opacity:0;pointer-events:none;transition:opacity 0.2s}.td.sticky-left-edge.is-scrolled-left{overflow:visible}.td.sticky-left-edge.is-scrolled-left:after{opacity:1}.td.sticky-right-edge.is-scrolled-right{overflow:visible}.td.sticky-right-edge.is-scrolled-right:after{opacity:1}.tr:hover .td.sticky-left,.tr:hover .td.sticky-right{background-color:#F9F9F9}.tr--no-hover:hover .td.sticky-left,.tr--no-hover:hover .td.sticky-right{background-color:white}.td.td--last-row{border-bottom:none}.tr--separator .td--separator{height:var(--table-separator-width, 6px);padding:0;background-color:var(--table-separator-color, #eeeeee);border-bottom:none}.td.td--before-separator{border-bottom:none}.td--divider-left{border-left:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1)}.td--divider-right{border-right:var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1)}`;
709
444
 
710
445
  const SdTr = class {
711
446
  constructor(hostRef) {
@@ -717,6 +452,7 @@ const SdTr = class {
717
452
  stickyColumn;
718
453
  rowKey = '';
719
454
  row = {};
455
+ separator;
720
456
  tableId = '';
721
457
  columnWidths = [];
722
458
  isVisible = true;
@@ -726,16 +462,32 @@ const SdTr = class {
726
462
  _stickyColumn = { left: 0, right: 0 };
727
463
  _scrolledLeft = false;
728
464
  _scrolledRight = false;
465
+ _dense = false;
729
466
  tableEl = null;
467
+ _prevRowKey = null;
730
468
  componentWillLoad() {
731
469
  this.syncTableContext();
732
470
  this.columnWidths = this.columnWidths ?? [];
733
471
  this.resolveConfig();
734
- this.columnWidths = this._columns.map(c => parseInt(c.width || '120', 10));
472
+ this.columnWidths = this._columns.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
735
473
  this.updateVisibilitySync();
736
474
  }
737
475
  componentDidLoad() {
738
476
  this.syncTableContext();
477
+ if (this.separator) {
478
+ const prev = this.el.previousElementSibling;
479
+ if (prev?.tagName?.toLowerCase() === 'sd-tr') {
480
+ const prevRowKey = prev.rowKey;
481
+ this._prevRowKey = prevRowKey;
482
+ this.tableEl?.registerSeparatorSync?.(prevRowKey);
483
+ }
484
+ }
485
+ }
486
+ disconnectedCallback() {
487
+ if (this._prevRowKey !== null) {
488
+ this.tableEl?.unregisterSeparatorSync?.(this._prevRowKey);
489
+ this._prevRowKey = null;
490
+ }
739
491
  }
740
492
  syncTableContext() {
741
493
  // sd-table이 shadow:true이므로 fallback content로 렌더되면 closest가 경계를 못 넘는다.
@@ -747,10 +499,10 @@ const SdTr = class {
747
499
  this.tableEl = table;
748
500
  const fromMethod = table?.getTableIdSync?.();
749
501
  const fromAttr = table?.getAttribute(constants.TABLE_ID_ATTR);
750
- const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
751
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
502
+ const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
503
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
752
504
  '';
753
- if (resolvedTableId && resolvedTableId !== this.tableId) {
505
+ if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
754
506
  this.tableId = resolvedTableId;
755
507
  }
756
508
  }
@@ -761,6 +513,7 @@ const SdTr = class {
761
513
  this._stickyColumn = this.stickyColumn ?? config?.stickyColumn ?? { left: 0, right: 0 };
762
514
  this._scrolledLeft = config?.scrolledLeft ?? false;
763
515
  this._scrolledRight = config?.scrolledRight ?? false;
516
+ this._dense = config?.dense ?? false;
764
517
  if (config?.columnWidths && (this.columnWidths ?? []).length === 0) {
765
518
  this.columnWidths = [...config.columnWidths];
766
519
  }
@@ -806,7 +559,11 @@ const SdTr = class {
806
559
  }
807
560
  getCellValue(column) {
808
561
  const { field, format, name } = column;
809
- const value = typeof field === 'function' ? field(this.row) : field ? this.row[field] : this.row[name];
562
+ const value = typeof field === 'function'
563
+ ? field(this.row)
564
+ : field !== ''
565
+ ? this.row[field]
566
+ : this.row[name];
810
567
  return format ? format(value, this.row) : this.formatValue(value);
811
568
  }
812
569
  getStickyStyle(colIdx) {
@@ -817,13 +574,17 @@ const SdTr = class {
817
574
  const rightOffset = this.columnWidths
818
575
  .filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
819
576
  .reduce((a, b) => a + b, 0);
820
- return {
577
+ const col = this.visibleColumns[colIdx];
578
+ const base = {
821
579
  '--sticky-left-offset': `${leftOffset}px`,
822
580
  '--sticky-right-offset': `${rightOffset}px`,
823
- 'width': `${this.columnWidths[colIdx]}px`,
824
- 'minWidth': `${this.columnWidths[colIdx]}px`,
825
- 'maxWidth': `${this.columnWidths[colIdx]}px`,
826
581
  };
582
+ if (!col?.autoWidth) {
583
+ base['width'] = `${this.columnWidths[colIdx]}px`;
584
+ base['minWidth'] = `${this.columnWidths[colIdx]}px`;
585
+ base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
586
+ }
587
+ return base;
827
588
  }
828
589
  isSelected() {
829
590
  if (this.tableEl?.isRowSelectedSync) {
@@ -853,6 +614,39 @@ const SdTr = class {
853
614
  const fieldName = typeof col.field === 'string' ? col.field : col.name;
854
615
  return this.tableEl.getCellClassSync(this.rowKey, fieldName);
855
616
  }
617
+ expandCellClass(classStr) {
618
+ if (classStr == null || classStr === '')
619
+ return {};
620
+ return Object.fromEntries(classStr
621
+ .split(/\s+/)
622
+ .filter(Boolean)
623
+ .map(c => [c, true]));
624
+ }
625
+ isVisualLastRow(col) {
626
+ if (!this.tableEl?.isVisualLastRowSync)
627
+ return false;
628
+ const fieldName = typeof col.field === 'string' ? col.field : col.name;
629
+ return this.tableEl.isVisualLastRowSync(this.rowKey, fieldName);
630
+ }
631
+ // selectable td는 column 정보가 없으므로 빈 field로 평가한다.
632
+ // 해당 위치는 rowspan을 등록할 수 없으므로 spanRegistry에 매칭이 없고,
633
+ // 결과적으로 "내 row 자체가 시각적 마지막인지"가 판정된다.
634
+ isVisualLastRowForSelfRow() {
635
+ if (!this.tableEl?.isVisualLastRowSync)
636
+ return false;
637
+ return this.tableEl.isVisualLastRowSync(this.rowKey, '');
638
+ }
639
+ isVisualLastRowBeforeSeparator(col) {
640
+ if (!this.tableEl?.isVisualLastRowBeforeSeparatorSync)
641
+ return false;
642
+ const fieldName = typeof col.field === 'string' ? col.field : col.name;
643
+ return this.tableEl.isVisualLastRowBeforeSeparatorSync(this.rowKey, fieldName);
644
+ }
645
+ isVisualLastRowBeforeSeparatorForSelfRow() {
646
+ if (!this.tableEl?.isVisualLastRowBeforeSeparatorSync)
647
+ return false;
648
+ return this.tableEl.isVisualLastRowBeforeSeparatorSync(this.rowKey, '');
649
+ }
856
650
  render() {
857
651
  const stickyLeftCount = this._stickyColumn.left || 0;
858
652
  const stickyRightCount = this._stickyColumn.right || 0;
@@ -860,9 +654,13 @@ const SdTr = class {
860
654
  const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
861
655
  const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
862
656
  const hasRowspan = this.tableEl?.hasRowspanSync?.() ?? false;
657
+ const isUseFrameRow = this.tableEl?.hasUseFrameInRowSync?.(this.rowKey) ?? false;
658
+ const effectiveDense = this._dense && !isUseFrameRow;
659
+ const bodyLayout = effectiveDense ? sdTable_config.TABLE_BODY_LAYOUT.dense : sdTable_config.TABLE_BODY_LAYOUT.default;
863
660
  const rowStyle = {
864
- display: this.isVisible ? '' : 'none',
865
- '--table-body-height': `${sdTable_config.TABLE_BODY_LAYOUT.default.height}px`,
661
+ 'display': this.isVisible ? '' : 'none',
662
+ '--table-body-height': `${bodyLayout.height}px`,
663
+ '--table-body-padding-y': `${bodyLayout.paddingY}px`,
866
664
  '--table-body-padding-x': `${sdTable_config.TABLE_BODY_LAYOUT.paddingX}px`,
867
665
  '--table-body-font-family': sdTable_config.TABLE_BODY_TYPOGRAPHY.fontFamily,
868
666
  '--table-body-font-weight': sdTable_config.TABLE_BODY_TYPOGRAPHY.fontWeight,
@@ -871,14 +669,22 @@ const SdTr = class {
871
669
  '--table-body-text-decoration': sdTable_config.TABLE_BODY_TYPOGRAPHY.textDecoration,
872
670
  '--table-border-color': sdTable_config.TABLE_BORDER.color,
873
671
  '--table-border-width': `${sdTable_config.TABLE_BORDER.width}px`,
672
+ '--table-separator-color': sdTable_config.TABLE_SEPARATOR.color,
673
+ '--table-separator-width': `${sdTable_config.TABLE_SEPARATOR.width}px`,
874
674
  };
875
- return (index.h(index.Host, { key: '5ed784dad3eb187430efe30ed0bc0f153bf57f23', style: rowStyle }, index.h("tr", { key: 'bcdc07139fce88788a598ced264f3aad503882fe', class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (index.h("td", { key: '0b2b516a0d2b57beb7bb37ea3ab2c34836cc772c', class: {
675
+ if (this.separator) {
676
+ const totalCols = this.visibleColumns.length + (this._selectable ? 1 : 0);
677
+ return (index.h(index.Host, { style: rowStyle }, index.h("tr", { class: "tr tr--separator" }, index.h("td", { colSpan: totalCols, class: "td td--separator" }))));
678
+ }
679
+ return (index.h(index.Host, { style: rowStyle }, index.h("tr", { class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (index.h("td", { class: {
876
680
  'td': true,
877
681
  'td--selected': true,
682
+ 'td--last-row': this.isVisualLastRowForSelfRow(),
683
+ 'td--before-separator': this.isVisualLastRowBeforeSeparatorForSelfRow(),
878
684
  'sticky-left': true,
879
685
  'sticky-left-edge': stickyLeftCount === 0,
880
686
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
881
- }, style: { '--sticky-left-offset': '0px' } }, index.h("sd-checkbox", { key: '3fb6dc05e2b0e75bd70ff5b9631330ce2348bd22', value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
687
+ }, style: { '--sticky-left-offset': '0px' } }, index.h("sd-checkbox", { value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
882
688
  if (this.isCovered(idx))
883
689
  return null;
884
690
  const span = this.getSpanFor(col);
@@ -886,11 +692,13 @@ const SdTr = class {
886
692
  return (index.h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
887
693
  'td': true,
888
694
  [`td--${col.align || 'left'}`]: true,
695
+ 'td--last-row': this.isVisualLastRow(col),
696
+ 'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
889
697
  'sticky-left': true,
890
698
  'sticky-left-edge': idx === stickyLeftCount - 1,
891
699
  'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
892
700
  [`${col.tdClass}`]: Boolean(col.tdClass),
893
- [`${sdCellClass}`]: Boolean(sdCellClass),
701
+ ...this.expandCellClass(sdCellClass),
894
702
  }, style: this.getStickyStyle(idx) }, index.h("slot", { name: `${this.tableId}-${typeof col.field === 'string' ? col.field : col.name}-${this.rowKey}` }, index.h("span", null, this.getCellValue(col)))));
895
703
  }), middleCols.map((col, relativeIdx) => {
896
704
  const actualColIdx = stickyLeftCount + relativeIdx;
@@ -900,10 +708,12 @@ const SdTr = class {
900
708
  const span = this.getSpanFor(col);
901
709
  const sdCellClass = this.getCellClassFor(col);
902
710
  return (index.h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
903
- td: true,
711
+ 'td': true,
904
712
  [`td--${col.align || 'left'}`]: true,
713
+ 'td--last-row': this.isVisualLastRow(col),
714
+ 'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
905
715
  [`${col.tdClass}`]: Boolean(col.tdClass),
906
- [`${sdCellClass}`]: Boolean(sdCellClass),
716
+ ...this.expandCellClass(sdCellClass),
907
717
  }, style: this.getStickyStyle(actualColIdx) }, index.h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, index.h("span", null, this.getCellValue(col)))));
908
718
  }), stickyRightCols.map((col, relativeIdx) => {
909
719
  const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
@@ -915,11 +725,13 @@ const SdTr = class {
915
725
  return (index.h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
916
726
  'td': true,
917
727
  [`td--${col.align || 'left'}`]: true,
728
+ 'td--last-row': this.isVisualLastRow(col),
729
+ 'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
918
730
  'sticky-right': true,
919
731
  'sticky-right-edge': relativeIdx === 0,
920
732
  'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
921
733
  [`${col.tdClass}`]: Boolean(col.tdClass),
922
- [`${sdCellClass}`]: Boolean(sdCellClass),
734
+ ...this.expandCellClass(sdCellClass),
923
735
  }, style: this.getStickyStyle(actualColIdx) }, index.h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, index.h("span", null, this.getCellValue(col)))));
924
736
  }))));
925
737
  }
@@ -927,7 +739,6 @@ const SdTr = class {
927
739
  SdTr.style = sdTrCss();
928
740
 
929
741
  exports.sd_pagination = SdPagination;
930
- exports.sd_select = SdSelect;
931
742
  exports.sd_tbody = SdTbody;
932
743
  exports.sd_thead = SdThead;
933
744
  exports.sd_tr = SdTr;