@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
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
  var constants = require('./constants-DJRV1upE.js');
5
- var sdTable_config = require('./sd-table.config-CDyioyE2.js');
6
- require('./component.table-B7brIpIQ.js');
5
+ var sdTable_config = require('./sd-table.config-BIpldZtw.js');
6
+ require('./component.table-CMqGfEui.js');
7
7
  require('./system-VmZRYp6V.js');
8
8
 
9
9
  const pagination = {
@@ -207,17 +207,17 @@ const SdTbody = class {
207
207
  this.tableEl = table;
208
208
  const fromMethod = table?.getTableIdSync?.();
209
209
  const fromAttr = table?.getAttribute(constants.TABLE_ID_ATTR);
210
- const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
211
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
210
+ const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
211
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
212
212
  '';
213
- if (resolvedTableId && resolvedTableId !== this.tableId) {
213
+ if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
214
214
  this.tableId = resolvedTableId;
215
215
  }
216
216
  }
217
217
  render() {
218
- return (index.h(index.Host, { key: 'f0dacb28bae712e8f4d65bad00846da9db593307', slot: `${this.tableId}-body` }, index.h("tbody", { key: 'aec7d2277e617f1c186163d214e94559793b764c', class: { tbody: true } }, [
218
+ return (index.h(index.Host, { key: '5b55bfd73916ff1402329375de1e1fc2a7629cbd', slot: `${this.tableId}-body` }, index.h("tbody", { key: 'a09a532d1510166a36d592c2e59ec1765803bbbe', class: { tbody: true } }, [
219
219
  this.topSpacerHeight > 0 && (index.h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
220
- index.h("slot", { key: '2c428e3624ac949ee201edfd02b5e8f0bcea2e48' }),
220
+ index.h("slot", { key: 'da3827a9c2fe7a74ec3cb3eb8dee3ab039ea0535' }),
221
221
  this.bottomSpacerHeight > 0 && (index.h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
222
222
  ])));
223
223
  }
@@ -258,7 +258,7 @@ const SdThead = class {
258
258
  tableEl = null;
259
259
  handleColumnsChange(newCols) {
260
260
  if (Array.isArray(newCols) && (this.columnWidths ?? []).length === 0) {
261
- this.columnWidths = newCols.map(c => parseInt(c.width || '120', 10));
261
+ this.columnWidths = newCols.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
262
262
  }
263
263
  }
264
264
  componentWillLoad() {
@@ -266,7 +266,7 @@ const SdThead = class {
266
266
  this.columnWidths = Array.isArray(this.columnWidths) ? this.columnWidths : [];
267
267
  this.resolveConfig();
268
268
  if ((this.columnWidths ?? []).length === 0) {
269
- 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));
270
270
  }
271
271
  }
272
272
  componentDidLoad() {
@@ -283,10 +283,10 @@ const SdThead = class {
283
283
  this.tableEl = table;
284
284
  const fromMethod = table?.getTableIdSync?.();
285
285
  const fromAttr = table?.getAttribute(constants.TABLE_ID_ATTR);
286
- const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
287
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
286
+ const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
287
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
288
288
  '';
289
- if (resolvedTableId && resolvedTableId !== this.tableId) {
289
+ if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
290
290
  this.tableId = resolvedTableId;
291
291
  }
292
292
  }
@@ -334,13 +334,17 @@ const SdThead = class {
334
334
  const rightOffset = this.columnWidths
335
335
  .filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
336
336
  .reduce((a, b) => a + b, 0);
337
- return {
337
+ const col = this.visibleColumns[colIdx];
338
+ const base = {
338
339
  '--sticky-left-offset': `${leftOffset}px`,
339
340
  '--sticky-right-offset': `${rightOffset}px`,
340
- 'width': `${this.columnWidths[colIdx]}px`,
341
- 'minWidth': `${this.columnWidths[colIdx]}px`,
342
- 'maxWidth': `${this.columnWidths[colIdx]}px`,
343
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;
344
348
  }
345
349
  handleResize(index, event, reversed = false) {
346
350
  if (this.tableEl?.handleResize) {
@@ -371,6 +375,7 @@ const SdThead = class {
371
375
  const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
372
376
  const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
373
377
  const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
378
+ const lastColIdx = this.visibleColumns.length - 1;
374
379
  const headStyle = {
375
380
  '--table-header-height': `${sdTable_config.TABLE_HEADER_LAYOUT.height}px`,
376
381
  '--table-header-padding-x': `${sdTable_config.TABLE_HEADER_LAYOUT.paddingX}px`,
@@ -386,27 +391,33 @@ const SdThead = class {
386
391
  '--table-border-color': sdTable_config.TABLE_BORDER.color,
387
392
  '--table-border-width': `${sdTable_config.TABLE_BORDER.width}px`,
388
393
  };
389
- return (index.h(index.Host, { key: '99d8d19dcc65b811d323e21041421b2d57da9f91', slot: `${this.tableId}-head`, style: headStyle }, index.h("thead", { key: '7614b6726ec13e857b6b8654925b0ba3c89fba64', class: {
394
+ return (index.h(index.Host, { key: '424fa72b833a94bce945ae50e8445cbed0527025', slot: `${this.tableId}-head`, style: headStyle }, index.h("thead", { key: '1a5704d78992b553c5db5ba92bb3814de7c19898', class: {
390
395
  'thead': true,
391
396
  'thead--sticky': this._stickyHeader,
392
- } }, index.h("tr", { key: '68a615e7779947c1ee8cc26027c5bcded545e4d3', class: "tr" }, this._selectable && (index.h("th", { key: 'd3bc4512a24652ee156104a0fd9891504ce314dd', class: {
397
+ } }, index.h("tr", { key: '1369ff7c99a5691bcd5fa54af4f7c02ff41dceb3', class: "tr" }, this._selectable && (index.h("th", { key: '72159c6f8ef28b0b93790e180cb9b12345727525', class: {
393
398
  'th': true,
394
399
  'th--selected': true,
395
400
  'sticky-left': true,
396
401
  'sticky-left-edge': stickyLeftCount === 0,
397
402
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
398
- }, style: { '--sticky-left-offset': '0px' } }, index.h("sd-checkbox", { key: 'de8f9b201aca60acbbb28a3233e964100109a92b', 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: {
399
404
  'th': true,
400
405
  [`${col.thClass}`]: Boolean(col.thClass),
401
406
  'sticky-left': true,
402
407
  'sticky-left-edge': idx === stickyLeftCount - 1,
403
408
  'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
404
- }, 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) => {
405
413
  const actualColIdx = stickyLeftCount + relativeIdx;
406
414
  return (index.h("th", { key: col.name, class: {
407
415
  th: true,
408
416
  [`${col.thClass}`]: Boolean(col.thClass),
409
- }, 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) }))));
410
421
  }), stickyRightCols.map((col, relativeIdx) => {
411
422
  const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
412
423
  return (index.h("th", { key: col.name, class: {
@@ -415,7 +426,10 @@ const SdThead = class {
415
426
  'sticky-right': true,
416
427
  'sticky-right-edge': relativeIdx === 0,
417
428
  'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
418
- }, 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) }))));
419
433
  })))));
420
434
  }
421
435
  static get watchers() { return {
@@ -426,7 +440,7 @@ const SdThead = class {
426
440
  };
427
441
  SdThead.style = sdTheadCss();
428
442
 
429
- 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}.td.td--last-row{border-bottom:none}`;
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)}`;
430
444
 
431
445
  const SdTr = class {
432
446
  constructor(hostRef) {
@@ -438,6 +452,7 @@ const SdTr = class {
438
452
  stickyColumn;
439
453
  rowKey = '';
440
454
  row = {};
455
+ separator;
441
456
  tableId = '';
442
457
  columnWidths = [];
443
458
  isVisible = true;
@@ -447,16 +462,32 @@ const SdTr = class {
447
462
  _stickyColumn = { left: 0, right: 0 };
448
463
  _scrolledLeft = false;
449
464
  _scrolledRight = false;
465
+ _dense = false;
450
466
  tableEl = null;
467
+ _prevRowKey = null;
451
468
  componentWillLoad() {
452
469
  this.syncTableContext();
453
470
  this.columnWidths = this.columnWidths ?? [];
454
471
  this.resolveConfig();
455
- 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)));
456
473
  this.updateVisibilitySync();
457
474
  }
458
475
  componentDidLoad() {
459
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
+ }
460
491
  }
461
492
  syncTableContext() {
462
493
  // sd-table이 shadow:true이므로 fallback content로 렌더되면 closest가 경계를 못 넘는다.
@@ -468,10 +499,10 @@ const SdTr = class {
468
499
  this.tableEl = table;
469
500
  const fromMethod = table?.getTableIdSync?.();
470
501
  const fromAttr = table?.getAttribute(constants.TABLE_ID_ATTR);
471
- const resolvedTableId = (fromMethod && fromMethod !== 'undefined' ? fromMethod : null) ??
472
- (fromAttr && fromAttr !== 'undefined' ? fromAttr : null) ??
502
+ const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
503
+ (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
473
504
  '';
474
- if (resolvedTableId && resolvedTableId !== this.tableId) {
505
+ if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
475
506
  this.tableId = resolvedTableId;
476
507
  }
477
508
  }
@@ -482,6 +513,7 @@ const SdTr = class {
482
513
  this._stickyColumn = this.stickyColumn ?? config?.stickyColumn ?? { left: 0, right: 0 };
483
514
  this._scrolledLeft = config?.scrolledLeft ?? false;
484
515
  this._scrolledRight = config?.scrolledRight ?? false;
516
+ this._dense = config?.dense ?? false;
485
517
  if (config?.columnWidths && (this.columnWidths ?? []).length === 0) {
486
518
  this.columnWidths = [...config.columnWidths];
487
519
  }
@@ -527,7 +559,11 @@ const SdTr = class {
527
559
  }
528
560
  getCellValue(column) {
529
561
  const { field, format, name } = column;
530
- 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];
531
567
  return format ? format(value, this.row) : this.formatValue(value);
532
568
  }
533
569
  getStickyStyle(colIdx) {
@@ -538,13 +574,17 @@ const SdTr = class {
538
574
  const rightOffset = this.columnWidths
539
575
  .filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
540
576
  .reduce((a, b) => a + b, 0);
541
- return {
577
+ const col = this.visibleColumns[colIdx];
578
+ const base = {
542
579
  '--sticky-left-offset': `${leftOffset}px`,
543
580
  '--sticky-right-offset': `${rightOffset}px`,
544
- 'width': `${this.columnWidths[colIdx]}px`,
545
- 'minWidth': `${this.columnWidths[colIdx]}px`,
546
- 'maxWidth': `${this.columnWidths[colIdx]}px`,
547
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;
548
588
  }
549
589
  isSelected() {
550
590
  if (this.tableEl?.isRowSelectedSync) {
@@ -574,6 +614,14 @@ const SdTr = class {
574
614
  const fieldName = typeof col.field === 'string' ? col.field : col.name;
575
615
  return this.tableEl.getCellClassSync(this.rowKey, fieldName);
576
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
+ }
577
625
  isVisualLastRow(col) {
578
626
  if (!this.tableEl?.isVisualLastRowSync)
579
627
  return false;
@@ -588,6 +636,17 @@ const SdTr = class {
588
636
  return false;
589
637
  return this.tableEl.isVisualLastRowSync(this.rowKey, '');
590
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
+ }
591
650
  render() {
592
651
  const stickyLeftCount = this._stickyColumn.left || 0;
593
652
  const stickyRightCount = this._stickyColumn.right || 0;
@@ -595,9 +654,13 @@ const SdTr = class {
595
654
  const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
596
655
  const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
597
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;
598
660
  const rowStyle = {
599
- display: this.isVisible ? '' : 'none',
600
- '--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`,
601
664
  '--table-body-padding-x': `${sdTable_config.TABLE_BODY_LAYOUT.paddingX}px`,
602
665
  '--table-body-font-family': sdTable_config.TABLE_BODY_TYPOGRAPHY.fontFamily,
603
666
  '--table-body-font-weight': sdTable_config.TABLE_BODY_TYPOGRAPHY.fontWeight,
@@ -606,15 +669,22 @@ const SdTr = class {
606
669
  '--table-body-text-decoration': sdTable_config.TABLE_BODY_TYPOGRAPHY.textDecoration,
607
670
  '--table-border-color': sdTable_config.TABLE_BORDER.color,
608
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`,
609
674
  };
610
- return (index.h(index.Host, { key: '30e4127b281770d12fab9e9cfd2cdf667eff8790', style: rowStyle }, index.h("tr", { key: '1072ce3f1b296e2278b7fc92a44d32da223ef119', class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (index.h("td", { key: '4e3a37a320df97378a1ed311c0a7b8f744bd26bc', 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: {
611
680
  'td': true,
612
681
  'td--selected': true,
613
682
  'td--last-row': this.isVisualLastRowForSelfRow(),
683
+ 'td--before-separator': this.isVisualLastRowBeforeSeparatorForSelfRow(),
614
684
  'sticky-left': true,
615
685
  'sticky-left-edge': stickyLeftCount === 0,
616
686
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
617
- }, style: { '--sticky-left-offset': '0px' } }, index.h("sd-checkbox", { key: 'b1a775462c4869f75480908bccd428714c63c257', 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) => {
618
688
  if (this.isCovered(idx))
619
689
  return null;
620
690
  const span = this.getSpanFor(col);
@@ -623,11 +693,12 @@ const SdTr = class {
623
693
  'td': true,
624
694
  [`td--${col.align || 'left'}`]: true,
625
695
  'td--last-row': this.isVisualLastRow(col),
696
+ 'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
626
697
  'sticky-left': true,
627
698
  'sticky-left-edge': idx === stickyLeftCount - 1,
628
699
  'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
629
700
  [`${col.tdClass}`]: Boolean(col.tdClass),
630
- [`${sdCellClass}`]: Boolean(sdCellClass),
701
+ ...this.expandCellClass(sdCellClass),
631
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)))));
632
703
  }), middleCols.map((col, relativeIdx) => {
633
704
  const actualColIdx = stickyLeftCount + relativeIdx;
@@ -640,8 +711,9 @@ const SdTr = class {
640
711
  'td': true,
641
712
  [`td--${col.align || 'left'}`]: true,
642
713
  'td--last-row': this.isVisualLastRow(col),
714
+ 'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
643
715
  [`${col.tdClass}`]: Boolean(col.tdClass),
644
- [`${sdCellClass}`]: Boolean(sdCellClass),
716
+ ...this.expandCellClass(sdCellClass),
645
717
  }, style: this.getStickyStyle(actualColIdx) }, index.h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, index.h("span", null, this.getCellValue(col)))));
646
718
  }), stickyRightCols.map((col, relativeIdx) => {
647
719
  const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
@@ -654,11 +726,12 @@ const SdTr = class {
654
726
  'td': true,
655
727
  [`td--${col.align || 'left'}`]: true,
656
728
  'td--last-row': this.isVisualLastRow(col),
729
+ 'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
657
730
  'sticky-right': true,
658
731
  'sticky-right-edge': relativeIdx === 0,
659
732
  'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
660
733
  [`${col.tdClass}`]: Boolean(col.tdClass),
661
- [`${sdCellClass}`]: Boolean(sdCellClass),
734
+ ...this.expandCellClass(sdCellClass),
662
735
  }, style: this.getStickyStyle(actualColIdx) }, index.h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, index.h("span", null, this.getCellValue(col)))));
663
736
  }))));
664
737
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
4
- var tooltipArrow = require('./tooltipArrow-N6nQ1QT-.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
+ var tooltipArrow = require('./tooltipArrow-BjSFKIUq.js');
5
5
 
6
6
  const popover = {
7
7
  bg: "#07284A"};
@@ -65,17 +65,17 @@ const SdPopover = class {
65
65
  const leftLink = this.leftLink;
66
66
  const button = this.button;
67
67
  const hasFooter = !!leftLink || !!button;
68
- return (index.h(index.Fragment, { key: '15b78d688d095fb15d5e6188dc848593bfec842e' }, this.label ? (index.h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (index.h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (index.h("sd-floating-portal", { key: '5075327dce1fda289492edbeefe2e9af38fdaab0', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, index.h("div", { key: 'd28e998f464c40d49935013521663801aead6771', class: {
68
+ return (index.h(index.Fragment, { key: '15b78d688d095fb15d5e6188dc848593bfec842e' }, this.label !== '' ? (index.h("sd-button", { ref: el => (this.buttonEl = el), name: this.name ?? 'primary_sm', label: this.label, icon: icon, rightIcon: this.rightIcon, ariaLabel: this.ariaLabel, disabled: this.disabled, type: this.type ?? 'button', class: "sd-popover", onSdClick: () => this.setShow(!this.show) })) : (index.h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: iconSize, color: color, class: "sd-popover", onClick: () => this.setShow(!this.show) })), this.show && (index.h("sd-floating-portal", { key: 'c77807f72410fb9c96a94e06fa9bb953ef934b4d', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.popoverOffset }, index.h("div", { key: 'dfffd8eada595286469c17ed549d60539d9b3ca6', class: {
69
69
  'sd-floating-menu': true,
70
70
  'sd-floating-menu--popover': true,
71
71
  [`sd-floating-menu--${placement}`]: true,
72
- [menuClass]: !!menuClass,
72
+ [menuClass]: menuClass !== '',
73
73
  }, style: {
74
74
  '--sd-floating-bg': popoverTokens.popover.bg,
75
- } }, index.h("i", { key: 'aa98412939b7717c204fe7a76da9b61a6505a01a', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, index.h(tooltipArrow.TooltipArrow, { key: '54b1a1fc5b88600737830668c3da39082cc895e7' })), index.h("div", { key: 'a7968d363c8e77954093bf550d6904009f8b792b', class: "sd-floating-menu__content" }, this.menuTitle && index.h("div", { key: 'b995c6df0d035a7a1162ec6dd3b4803897ed9b3e', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (index.h("div", { key: '2ee4971691688a24842b083e561b4e9e818aed88', class: "sd-floating-menu__messages" }, messages.map((message, i) => (index.h("div", { key: `msg-${i}` }, message))))), hasFooter && (index.h("div", { key: '4cbb44218d763af841b1e6bfbdd754b23d22c9e2', class: {
75
+ } }, index.h("i", { key: '0852ebe804a7e305383f58dae7e0088f2456f53a', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, index.h(tooltipArrow.TooltipArrow, { key: 'c470c8ccebdb920b1c14940dffe11ad619560fb7' })), index.h("div", { key: 'fcca2e3bc61cd64110e86da4ee483dc5b1101b7c', class: "sd-floating-menu__content" }, this.menuTitle && index.h("div", { key: 'fad331bcd9c73e72ed013826db69badd8b7a069f', class: "sd-floating-menu__title" }, this.menuTitle), messages.length > 0 && (index.h("div", { key: 'c83d0be758758fc720d1c3d00aaa8f0cb865cf12', class: "sd-floating-menu__messages" }, messages.map((message, i) => (index.h("div", { key: `msg-${i}` }, message))))), hasFooter && (index.h("div", { key: '821a434f478d8aee61e81026ccc37f75579e290e', class: {
76
76
  'sd-floating-menu__buttons': true,
77
77
  'sd-floating-menu__buttons--with-link': !!leftLink,
78
- } }, leftLink && (index.h("sd-text-link", { key: '67c6e9daf13cb294f30fdf1f848e92ba22cd3512', class: "sd-floating-menu__left-link", label: leftLink.label, icon: leftLink.icon ?? '', iconColor: leftLink.iconColor ?? '', useArrow: !!leftLink.useArrow, underline: !!leftLink.underline, disabled: !!leftLink.disabled, onSdClick: leftLink.onClick })), button && (index.h("sd-button", { key: '5328f1adcdc680d1bc97910a1b519298ced3b325', name: button.name ?? 'secondary_xs', label: button.label, icon: button.icon, rightIcon: button.rightIcon, ariaLabel: button.ariaLabel, disabled: button.disabled, type: button.type, onSdClick: button.onClick }))))), this.useClose && (index.h("sd-ghost-button", { key: '3e05ed8da4298a26d52045ad87fa5be42d6f6f02', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
78
+ } }, leftLink && (index.h("sd-text-link", { key: '4b28ebf22197453c403066daf97d8925b0a4a8e1', class: "sd-floating-menu__left-link", label: leftLink.label, icon: leftLink.icon ?? '', iconColor: leftLink.iconColor ?? '', useArrow: !!leftLink.useArrow, underline: !!leftLink.underline, disabled: !!leftLink.disabled, onSdClick: leftLink.onClick })), button && (index.h("sd-button", { key: 'af8bdfa4a994bafa9b7329e149b62480d5f3d97c', name: button.name ?? 'secondary_xs', label: button.label, icon: button.icon, rightIcon: button.rightIcon, ariaLabel: button.ariaLabel, disabled: button.disabled, type: button.type, onSdClick: button.onClick }))))), this.useClose && (index.h("sd-ghost-button", { key: 'a8031ecc0aa0721adab17031019a079bc2bdce88', class: "sd-floating-menu__close-button", icon: "close", ariaLabel: "close", size: "xs", onClick: this.handleClose })))))));
79
79
  }
80
80
  };
81
81
  SdPopover.style = sdPopoverCss();
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const popup$1 = {
6
6
  header: {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const SdPortal = class {
6
6
  constructor(hostRef) {
@@ -110,7 +110,7 @@ const SdPortal = class {
110
110
  }
111
111
  // 위치 갱신 (scroll / resize)
112
112
  updatePosition() {
113
- if (this.rafId)
113
+ if (this.rafId !== undefined)
114
114
  cancelAnimationFrame(this.rafId);
115
115
  this.rafId = requestAnimationFrame(() => {
116
116
  if (!this.parentRef || !this.wrapper)
@@ -227,7 +227,7 @@ const SdPortal = class {
227
227
  this.close.emit();
228
228
  }
229
229
  render() {
230
- return index.h("slot", { key: 'c85555f533743f29615e77c1834e8f0fefae7dc7' });
230
+ return index.h("slot", { key: '8b728e4a9a97cb1c4dbdaf8b6a6d85b37fc07af7' });
231
231
  }
232
232
  static get watchers() { return {
233
233
  "open": [{
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const radioButton = {
6
6
  xs: {
@@ -145,8 +145,11 @@ const SdRadioButton = class {
145
145
  }
146
146
  _groupName;
147
147
  get groupName() {
148
- if (!this._groupName) {
149
- this._groupName = this.name || `sd-radio-button-${crypto.randomUUID()}`;
148
+ if (this._groupName == null || this._groupName === '') {
149
+ this._groupName =
150
+ this.name != null && this.name !== ''
151
+ ? this.name
152
+ : `sd-radio-button-${crypto.randomUUID()}`;
150
153
  }
151
154
  return this._groupName;
152
155
  }
@@ -175,7 +178,7 @@ const SdRadioButton = class {
175
178
  '--sd-radio-button-content-select': RADIO_BUTTON_COLORS.content.select,
176
179
  '--sd-radio-button-content-disabled': RADIO_BUTTON_COLORS.content.disabled,
177
180
  };
178
- return (index.h("div", { key: 'fc1cfe14f2e71092496b241f3b4efa42a1ed878c', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
181
+ return (index.h("div", { key: '0eef3b536855ef3883628ce92a5dcb2846976d86', class: this.getGroupClasses(), style: cssVars, role: "radiogroup", "aria-disabled": this.disabled.toString() }, this.options.map(option => {
179
182
  const isSelected = this.isOptionSelected(option);
180
183
  const isDisabled = this.isOptionDisabled(option);
181
184
  return (index.h("label", { key: `radio-${option.value}`, class: this.getButtonClasses(option), "aria-label": option.label || 'radio option', "data-label": option.label }, index.h("input", { type: "radio", name: this.groupName, value: option.value.toString(), checked: isSelected, disabled: isDisabled, onInput: () => this.handleRadioChange(option.value, option.disabled) }), option.label && index.h("span", { class: "sd-radio-button__label" }, option.label)));
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
 
5
5
  const radio = {
6
6
  size: "16",
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-BlxrCRYi.js');
3
+ var index = require('./index-Cw-78mnC.js');
4
4
  var sdSelect_config = require('./sd-select.config-B19ptCT2.js');
5
5
 
6
6
  const sdSelectListItemCss = () => `sd-select-list-item{display:block}sd-select-list-item .sd-select-list-item{display:flex;align-items:center;gap:var(--list-item-gap);padding:var(--list-item-padding-y) var(--list-item-padding-right) var(--list-item-padding-y) var(--list-item-padding-left);font-size:var(--list-item-font-size);line-height:var(--list-item-line-height);font-weight:var(--list-item-font-weight);background:var(--list-item-bg);color:var(--list-item-color);cursor:default;user-select:none}sd-select-list-item .sd-select-list-item--selectable{cursor:pointer}sd-select-list-item .sd-select-list-item--depth1-group{border-top:var(--list-item-border-top);font-weight:700}sd-select-list-item .sd-select-list-item--depth2-group{font-weight:500}sd-select-list-item .sd-select-list-item--focused.sd-select-list-item--selectable:not(.sd-select-list-item--disabled){background:var(--list-item-bg-hover);color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--selected:not(.sd-select-list-item--group){font-weight:var(--list-item-font-weight-selected);color:var(--list-item-color-selected)}sd-select-list-item .sd-select-list-item--selected.sd-select-list-item--focused{color:var(--list-item-color-hover)}sd-select-list-item .sd-select-list-item--disabled{color:var(--list-item-color-disabled);cursor:not-allowed}sd-select-list-item .sd-select-list-item__label{flex:0 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}sd-select-list-item .sd-select-list-item__count{flex-shrink:0;font-weight:500;color:var(--list-item-color-disabled)}sd-select-list-item .sd-select-list-item--group.sd-select-list-item--focused .sd-select-list-item__count{color:#ffffff}sd-select-list-item .sd-select-list-item__checkbox{flex-shrink:0}`;
@@ -73,9 +73,13 @@ const SdSelectListItem = class {
73
73
  '--list-item-font-weight-selected': sdSelect_config.LIST_ITEM_TYPOGRAPHY.selectedFontWeight,
74
74
  };
75
75
  if (isDepth1Group) {
76
- cssVars['--list-item-border-top'] = `${sdSelect_config.LIST_ITEM_COLORS.depth1.borderWidth}px solid ${sdSelect_config.LIST_ITEM_COLORS.depth1.border}`;
76
+ cssVars['--list-item-border-top'] =
77
+ `${sdSelect_config.LIST_ITEM_COLORS.depth1.borderWidth}px solid ${sdSelect_config.LIST_ITEM_COLORS.depth1.border}`;
77
78
  }
78
- return (index.h("div", { key: 'd580af48ad969b82d964d35fa3ed6bc02e807a77', class: {
79
+ return (
80
+ // 키보드 네비게이션은 부모 listbox 의 ArrowUp/Down + Enter 가 담당. 항목 자체는 role=option, tabindex=-1 으로 표시.
81
+ // eslint-disable-next-line jsx-a11y/click-events-have-key-events
82
+ index.h("div", { key: '8382966892edc2a46602733400aa579d0caa3128', role: "option", tabindex: -1, "aria-selected": this.isSelected === true ? 'true' : 'false', class: {
79
83
  'sd-select-list-item': true,
80
84
  'sd-select-list-item--group': isGroup,
81
85
  'sd-select-list-item--depth1-group': isDepth1Group,
@@ -85,7 +89,7 @@ const SdSelectListItem = class {
85
89
  'sd-select-list-item--focused': this.isFocused,
86
90
  'sd-select-list-item--selectable': this.isSelectable && !this.option.disabled,
87
91
  'sd-select-list-item--disabled': !!this.option.disabled,
88
- }, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: '57cee194abfeb1fb12db1ebc72397fdb2f5268ba', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), index.h("span", { key: 'dc10ebc823b7007988c29facfd559d477caa9bb8', class: "sd-select-list-item__label" }, this.option.label), this.countInfo && (index.h("span", { key: '3504a51d1c92f6b21ec3f36b4546b1763fcc931f', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
92
+ }, style: cssVars, onClick: this.handleClick }, this.useCheckbox && (index.h("sd-checkbox", { key: 'f8d1bb696416265861cc3b61ca1dcaec52dc2d4a', value: this.isSelected === null ? null : !!this.isSelected, disabled: this.option.disabled, inverse: this.isFocused && this.isSelected !== false, class: "sd-select-list-item__checkbox", onClick: this.handleCheckboxClick, onSdUpdate: this.handleCheckboxUpdate })), index.h("span", { key: '0ce20554fb96ad650104a98d779f3ff64fabe381', class: "sd-select-list-item__label" }, this.option.label), this.countInfo && (index.h("span", { key: '4d2d8f5bd63373906544882ff5852134e3ecd4d3', class: "sd-select-list-item__count" }, "(", this.countInfo.selected, "/", this.countInfo.total, ")"))));
89
93
  }
90
94
  };
91
95
  SdSelectListItem.style = sdSelectListItemCss();
@@ -132,21 +136,21 @@ const SdSelectListItemSearch = class {
132
136
  this.inputEl?.focus();
133
137
  };
134
138
  disconnectedCallback() {
135
- if (this.focusRafId)
139
+ if (this.focusRafId !== undefined)
136
140
  cancelAnimationFrame(this.focusRafId);
137
- if (this.debounceTimer)
141
+ if (this.debounceTimer !== undefined)
138
142
  clearTimeout(this.debounceTimer);
139
143
  }
140
144
  render() {
141
- return (index.h("div", { key: '8714ef9e06f54fd5c2ae5241cac65a74ea45dccf', class: {
145
+ return (index.h("div", { key: '6872376ea0f47c256273f751fad367f2c49a9160', class: {
142
146
  'sd-select-list-item-search': true,
143
147
  'sd-select-list-item-search--scrolled': this.isScrolled,
144
- } }, index.h("div", { key: '428aea3765711fd91ae7b587b21347dd9634636b', class: "sd-select-list-item-search__inner" }, index.h("sd-icon", { key: 'ed3363eea1a7d6a4f44141a74855c4e767a34999', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), index.h("input", { key: 'c3f5539e037a81d96ce2fa41225f0c33c32add6e', ref: el => {
148
+ } }, index.h("div", { key: 'f6c872e0252b6d7ba81f49938a4f5a647f0fb486', class: "sd-select-list-item-search__inner" }, index.h("sd-icon", { key: '49f10ed222e855ef6f0f5f12a65a74e1fec95bb5', name: "search", size: 16, color: "grey_70", class: "sd-select-list-item-search__icon" }), index.h("input", { key: '76d88aa4ce7eee598db2709d2d5442465b1798cb', ref: el => {
145
149
  this.inputEl = el;
146
- }, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), index.h("button", { key: 'b081b5a6eced0397db40784ce25e0e84c574f869', type: "button", class: {
150
+ }, type: "text", class: "sd-select-list-item-search__input", placeholder: "\uAC80\uC0C9\uC5B4 \uC785\uB825", value: this.searchText, onInput: this.handleInput, onFocus: () => this.searchFocus.emit() }), index.h("button", { key: 'e94d1661c6ed26754d4ee7e186808ebd9f057ec9', type: "button", class: {
147
151
  'sd-select-list-item-search__clear': true,
148
- 'sd-select-list-item-search__clear--hidden': !this.searchText,
149
- }, onClick: this.handleClear, tabindex: this.searchText ? 0 : -1, "aria-hidden": this.searchText ? 'false' : 'true' }, index.h("sd-icon", { key: '29615969a7efa118089e2c8dba741086196f8593', name: "close", size: 12, color: "#888888" })))));
152
+ 'sd-select-list-item-search__clear--hidden': this.searchText === '',
153
+ }, onClick: this.handleClear, tabindex: this.searchText !== '' ? 0 : -1, "aria-hidden": this.searchText !== '' ? 'false' : 'true' }, index.h("sd-icon", { key: 'ad89b3421ec345f47c8d67d78f20cae86869d4c1', name: "close", size: 12, color: "#888888" })))));
150
154
  }
151
155
  };
152
156
  SdSelectListItemSearch.style = sdSelectListItemSearchCss();