@sellmate/design-system 1.27.1 → 1.29.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 (378) hide show
  1. package/dist/cjs/{component.datepicker-CUQbDSku.js → component.datepicker-zFTQQKMH.js} +1 -2
  2. package/dist/cjs/component.listBox-MHAv4Yy7.js +15 -0
  3. package/dist/cjs/{component.listItem-Bnh0r_CA.js → component.listItem-cAO_ppOz.js} +0 -7
  4. package/dist/cjs/design-system.cjs.js +2 -2
  5. package/dist/cjs/{index-DsYLSqCp.js → index-iiJZMzVM.js} +1 -15
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
  8. package/dist/cjs/sd-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
  10. package/dist/cjs/sd-button_2.cjs.entry.js +1 -1
  11. package/dist/cjs/sd-calendar_2.cjs.entry.js +6 -6
  12. package/dist/cjs/sd-callout.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-card.cjs.entry.js +1 -1
  14. package/dist/cjs/sd-checkbox.cjs.entry.js +2 -3
  15. package/dist/cjs/sd-chip-input.cjs.entry.js +5 -4
  16. package/dist/cjs/sd-chip.cjs.entry.js +1 -1
  17. package/dist/cjs/sd-circle-progress.cjs.entry.js +6 -4
  18. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +37 -37
  19. package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
  20. package/dist/cjs/{sd-date-picker.config-De7ahWIs.js → sd-date-picker.config-Chrd8c4v.js} +1 -1
  21. package/dist/cjs/{sd-date-picker_7.cjs.entry.js → sd-date-picker_8.cjs.entry.js} +381 -19
  22. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +4 -4
  23. package/dist/cjs/sd-divider.cjs.entry.js +3 -3
  24. package/dist/cjs/sd-dropdown-button.cjs.entry.js +2 -2
  25. package/dist/cjs/sd-field_3.cjs.entry.js +10 -10
  26. package/dist/cjs/sd-form.cjs.entry.js +1 -1
  27. package/dist/cjs/sd-ghost-button_3.cjs.entry.js +4 -5
  28. package/dist/cjs/sd-guide.cjs.entry.js +5 -10
  29. package/dist/cjs/sd-key-value-table.cjs.entry.js +88 -18
  30. package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
  31. package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
  32. package/dist/cjs/sd-modal-container.cjs.entry.js +16 -2
  33. package/dist/cjs/sd-pagination.cjs.entry.js +173 -0
  34. package/dist/cjs/sd-popover.cjs.entry.js +2 -2
  35. package/dist/cjs/sd-popup.cjs.entry.js +3 -3
  36. package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
  37. package/dist/cjs/sd-radio.cjs.entry.js +2 -3
  38. package/dist/cjs/{sd-select_3.cjs.entry.js → sd-select-list-item_4.cjs.entry.js} +294 -314
  39. package/dist/cjs/sd-switch.cjs.entry.js +2 -2
  40. package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
  41. package/dist/cjs/sd-text-link.cjs.entry.js +1 -1
  42. package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
  43. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  44. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  45. package/dist/cjs/{system-MjrAugX-.js → system-B4KkVpu2.js} +1 -7
  46. package/dist/cjs/{tooltipArrow-FLiD3ceS.js → tooltipArrow-DOOcBlLp.js} +1 -1
  47. package/dist/cjs/{useDatePicker-iMd6WToc.js → useDatePicker-CgpIfwLA.js} +1 -1
  48. package/dist/collection/collection-manifest.json +0 -5
  49. package/dist/collection/components/sd-circle-progress/sd-circle-progress.css +13 -0
  50. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +23 -1
  51. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.css +3 -0
  52. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +35 -59
  53. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
  54. package/dist/collection/components/sd-date-picker/sd-date-picker.js +2 -2
  55. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
  56. package/dist/collection/components/sd-divider/sd-divider.js +1 -1
  57. package/dist/collection/components/sd-field/sd-field.js +4 -4
  58. package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +9 -0
  59. package/dist/collection/components/sd-file-picker/sd-file-picker.css +18 -0
  60. package/dist/collection/components/sd-file-picker/sd-file-picker.js +73 -7
  61. package/dist/collection/components/sd-floating-portal/sd-floating-portal.css +1 -1
  62. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
  63. package/dist/collection/components/sd-guide/sd-guide.config.js +0 -1
  64. package/dist/collection/components/sd-guide/sd-guide.css +0 -3
  65. package/dist/collection/components/sd-guide/sd-guide.js +2 -3
  66. package/dist/collection/components/sd-input/sd-input.js +2 -2
  67. package/dist/collection/components/sd-key-value-table/sd-key-value-table.config.js +2 -0
  68. package/dist/collection/components/sd-key-value-table/sd-key-value-table.css +5 -1
  69. package/dist/collection/components/sd-key-value-table/sd-key-value-table.js +65 -15
  70. package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
  71. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  72. package/dist/collection/components/sd-loading-modal/sd-loading-modal.css +7 -0
  73. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +18 -1
  74. package/dist/collection/components/sd-modal-container/sd-modal-container.js +15 -1
  75. package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
  76. package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
  77. package/dist/collection/components/sd-popup/sd-popup.js +1 -1
  78. package/dist/collection/components/sd-radio-group/sd-radio-group.css +2 -2
  79. package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
  80. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
  81. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
  82. package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
  83. package/dist/collection/components/sd-select/sd-select.js +4 -4
  84. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  85. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  86. package/dist/collection/components/sd-tag/sd-tag.js +2 -2
  87. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  88. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  89. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  90. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  91. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  92. package/dist/components/index.js +1 -1
  93. package/dist/components/p-4S0_Ykmo.js +1 -0
  94. package/dist/components/{p-Dy6LmOzw.js → p-9Ap2W-Mi.js} +1 -1
  95. package/dist/components/{p-NeXvaRu7.js → p-BFVfSW9t.js} +1 -1
  96. package/dist/components/{p-Du_Yc-lW.js → p-BHjezpAC.js} +1 -1
  97. package/dist/components/{p-DnxEeX9I.js → p-BIEPMPWA.js} +1 -1
  98. package/dist/components/{p--AZbwi7P.js → p-BKu0I6Io.js} +1 -1
  99. package/dist/components/{p-DTb2c83G.js → p-B_Zwr4Et.js} +1 -1
  100. package/dist/components/{p-BysikR_g.js → p-Bpv90tfa.js} +1 -1
  101. package/dist/components/p-Bth2l1cy.js +1 -0
  102. package/dist/components/{p-Cok_EW_N.js → p-C7mC7a1z.js} +1 -1
  103. package/dist/components/{p-CIPPETF-.js → p-CBoDoYDO.js} +1 -1
  104. package/dist/components/p-CErFctrV.js +1 -0
  105. package/dist/components/{p-SROa9QCy.js → p-CFTyEfB9.js} +1 -1
  106. package/dist/components/{p-BaRjXqSM.js → p-CSr33M9s.js} +1 -1
  107. package/dist/components/p-CYMMLsGt.js +1 -0
  108. package/dist/components/{p-CvSPsoRb.js → p-C_SG4M4z.js} +1 -1
  109. package/dist/components/{p-BV4cnHWn.js → p-C_in6AVN.js} +1 -1
  110. package/dist/components/{p-DsQQFJ8o.js → p-CbS69IvC.js} +1 -1
  111. package/dist/components/{p-BOJALVxB.js → p-CgSXYw_0.js} +1 -1
  112. package/dist/components/{p-DVq9oE_p.js → p-CmRF12Fy.js} +1 -1
  113. package/dist/components/p-CnRfET5y.js +1 -0
  114. package/dist/components/{p-BFy8txYj.js → p-Cvsrc0be.js} +1 -1
  115. package/dist/components/{p-PvltLPHp.js → p-DJ8z7_EG.js} +1 -1
  116. package/dist/components/{p-CwwJD-NF.js → p-DJmxpVkK.js} +1 -1
  117. package/dist/components/{p-D7XGOtx0.js → p-DMoFncVl.js} +1 -1
  118. package/dist/components/{p-BxphFsxh.js → p-DN7MAx-q.js} +1 -1
  119. package/dist/components/{p-hP1aeMuZ.js → p-DS6NVBvu.js} +1 -1
  120. package/dist/components/{p-Bk6aI8rL.js → p-D_56BjcD.js} +1 -1
  121. package/dist/components/{p-DMrzTImA.js → p-Dg1UrMqI.js} +1 -1
  122. package/dist/components/{p-BU1H7ElF.js → p-Di1q4f5E.js} +1 -1
  123. package/dist/components/p-DlJaYVWf.js +1 -0
  124. package/dist/components/p-OO7xxhkC.js +1 -0
  125. package/dist/components/{p-DYp8I4VH.js → p-R-Sdglj0.js} +1 -1
  126. package/dist/components/p-Uh9emYrV.js +1 -0
  127. package/dist/components/{p-DkaajrxX.js → p-f0aBxUBG.js} +1 -1
  128. package/dist/components/{p-DT-e9J59.js → p-idG6CMO0.js} +1 -1
  129. package/dist/components/p-oYbVr-z0.js +1 -0
  130. package/dist/components/p-x9AWBHPy.js +1 -0
  131. package/dist/components/sd-action-modal.js +1 -1
  132. package/dist/components/sd-badge.js +1 -1
  133. package/dist/components/sd-barcode-input.js +1 -1
  134. package/dist/components/sd-button.js +1 -1
  135. package/dist/components/sd-calendar.js +1 -1
  136. package/dist/components/sd-callout.js +1 -1
  137. package/dist/components/sd-card.js +1 -1
  138. package/dist/components/sd-checkbox.js +1 -1
  139. package/dist/components/sd-chip-input.js +1 -1
  140. package/dist/components/sd-chip.js +1 -1
  141. package/dist/components/sd-circle-progress.js +1 -1
  142. package/dist/components/sd-confirm-modal.js +1 -1
  143. package/dist/components/sd-date-box.js +1 -1
  144. package/dist/components/sd-date-picker-trigger.js +1 -1
  145. package/dist/components/sd-date-picker.js +1 -1
  146. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  147. package/dist/components/sd-date-range-picker.js +1 -1
  148. package/dist/components/sd-divider.js +1 -1
  149. package/dist/components/sd-dropdown-button.js +1 -1
  150. package/dist/components/sd-field.js +1 -1
  151. package/dist/components/sd-file-picker.js +1 -1
  152. package/dist/components/sd-floating-portal.js +1 -1
  153. package/dist/components/sd-form.js +1 -1
  154. package/dist/components/sd-ghost-button.js +1 -1
  155. package/dist/components/sd-guide.js +1 -1
  156. package/dist/components/sd-icon.js +1 -1
  157. package/dist/components/sd-input.js +1 -1
  158. package/dist/components/sd-key-value-table.js +1 -1
  159. package/dist/components/sd-linear-progress.js +1 -1
  160. package/dist/components/sd-loading-container.js +1 -1
  161. package/dist/components/sd-loading-modal.js +1 -1
  162. package/dist/components/sd-modal-container.js +1 -1
  163. package/dist/components/sd-number-input.js +1 -1
  164. package/dist/components/sd-pagination.js +1 -1
  165. package/dist/components/sd-popover.js +1 -1
  166. package/dist/components/sd-popup.js +1 -1
  167. package/dist/components/sd-portal.js +1 -1
  168. package/dist/components/sd-radio-button.js +1 -1
  169. package/dist/components/sd-radio-group.js +1 -1
  170. package/dist/components/sd-radio.js +1 -1
  171. package/dist/components/sd-select-list-item-search.js +1 -1
  172. package/dist/components/sd-select-list-item.js +1 -1
  173. package/dist/components/sd-select-listbox.js +1 -1
  174. package/dist/components/sd-select-trigger.js +1 -1
  175. package/dist/components/sd-select.js +1 -1
  176. package/dist/components/sd-switch.js +1 -1
  177. package/dist/components/sd-tabs.js +1 -1
  178. package/dist/components/sd-tag.js +1 -1
  179. package/dist/components/sd-text-link.js +1 -1
  180. package/dist/components/sd-textarea.js +1 -1
  181. package/dist/components/sd-toast-container.js +1 -1
  182. package/dist/components/sd-toast.js +1 -1
  183. package/dist/components/sd-toggle.js +1 -1
  184. package/dist/components/sd-tooltip.js +1 -1
  185. package/dist/design-system/design-system.css +1 -1
  186. package/dist/design-system/design-system.esm.js +1 -1
  187. package/dist/design-system/{p-ddb9a2c4.entry.js → p-02f0b906.entry.js} +1 -1
  188. package/dist/design-system/{p-a4e1dd8c.entry.js → p-0c1d1a15.entry.js} +1 -1
  189. package/dist/design-system/{p-cb0cbcb0.entry.js → p-0e014b76.entry.js} +1 -1
  190. package/dist/design-system/{p-49b1636a.entry.js → p-1b5fcf7b.entry.js} +1 -1
  191. package/dist/design-system/{p-5aa5aec3.entry.js → p-1ed1bfa1.entry.js} +1 -1
  192. package/dist/design-system/{p-8c1a9374.entry.js → p-246aafb9.entry.js} +1 -1
  193. package/dist/design-system/p-26a27312.entry.js +1 -0
  194. package/dist/design-system/{p-d790fbb8.entry.js → p-2a4d2ee0.entry.js} +1 -1
  195. package/dist/design-system/{p-270c8529.entry.js → p-2d6a7d7b.entry.js} +1 -1
  196. package/dist/design-system/{p-947dcc28.entry.js → p-3595cafb.entry.js} +1 -1
  197. package/dist/design-system/p-3cd2751a.entry.js +1 -0
  198. package/dist/design-system/p-4S0_Ykmo.js +1 -0
  199. package/dist/design-system/p-4b474538.entry.js +1 -0
  200. package/dist/design-system/{p-e63bf0e1.entry.js → p-4c85f6f6.entry.js} +1 -1
  201. package/dist/design-system/{p-55c8ce37.entry.js → p-53fe2741.entry.js} +1 -1
  202. package/dist/design-system/{p-06b56059.entry.js → p-55c0be7d.entry.js} +1 -1
  203. package/dist/design-system/p-5a257ed9.entry.js +1 -0
  204. package/dist/design-system/{p-459a408f.entry.js → p-840006b1.entry.js} +1 -1
  205. package/dist/design-system/{p-dae6914d.entry.js → p-86329ae3.entry.js} +1 -1
  206. package/dist/design-system/{p-8ac340db.entry.js → p-8de3b502.entry.js} +1 -1
  207. package/dist/design-system/{p-9603971e.entry.js → p-8ed1d470.entry.js} +1 -1
  208. package/dist/design-system/{p-D2S9Zafz.js → p-B91K50wC.js} +1 -1
  209. package/dist/design-system/{p-BqWuC4-J.js → p-BPKiBSGr.js} +1 -1
  210. package/dist/design-system/p-BhcvMs8c.js +1 -0
  211. package/dist/design-system/p-Bth2l1cy.js +1 -0
  212. package/dist/design-system/p-DlJaYVWf.js +1 -0
  213. package/dist/design-system/p-Dz490Ukt.js +2 -0
  214. package/dist/design-system/{p-761c008c.entry.js → p-a631cd78.entry.js} +1 -1
  215. package/dist/design-system/p-adf2f398.entry.js +1 -0
  216. package/dist/design-system/{p-26297c6e.entry.js → p-b585f94b.entry.js} +1 -1
  217. package/dist/design-system/p-be54fd3a.entry.js +1 -0
  218. package/dist/design-system/{p-7540f591.entry.js → p-c1066f40.entry.js} +1 -1
  219. package/dist/design-system/{p-b86a69ce.entry.js → p-c5cffcc6.entry.js} +1 -1
  220. package/dist/design-system/p-c7d2c195.entry.js +1 -0
  221. package/dist/design-system/{p-839e6b5a.entry.js → p-cb6ab65c.entry.js} +1 -1
  222. package/dist/design-system/{p-07755193.entry.js → p-d204cac5.entry.js} +1 -1
  223. package/dist/design-system/p-d2ce01ac.entry.js +1 -0
  224. package/dist/design-system/p-d51f4170.entry.js +1 -0
  225. package/dist/design-system/{p-dfa16f49.entry.js → p-d9f33192.entry.js} +1 -1
  226. package/dist/design-system/{p-b9387621.entry.js → p-e7740a5f.entry.js} +1 -1
  227. package/dist/design-system/p-e85bf462.entry.js +1 -0
  228. package/dist/design-system/{p-9c0d3011.entry.js → p-ea008087.entry.js} +1 -1
  229. package/dist/design-system/{p-5142cd06.entry.js → p-ec4ad48c.entry.js} +1 -1
  230. package/dist/design-system/{p-5f1dae23.entry.js → p-f962e5d2.entry.js} +1 -1
  231. package/dist/esm/{component.datepicker-laVsm9VM.js → component.datepicker-BOxGhKKP.js} +1 -2
  232. package/dist/esm/component.listBox-DlJaYVWf.js +13 -0
  233. package/dist/esm/{component.listItem-U8VaRj9c.js → component.listItem-4S0_Ykmo.js} +1 -7
  234. package/dist/esm/design-system.js +3 -3
  235. package/dist/esm/{index-BZg-6aSz.js → index-Dz490Ukt.js} +2 -14
  236. package/dist/esm/loader.js +3 -3
  237. package/dist/esm/sd-action-modal.entry.js +1 -1
  238. package/dist/esm/sd-badge.entry.js +1 -1
  239. package/dist/esm/sd-barcode-input.entry.js +1 -1
  240. package/dist/esm/sd-button_2.entry.js +1 -1
  241. package/dist/esm/sd-calendar_2.entry.js +6 -6
  242. package/dist/esm/sd-callout.entry.js +1 -1
  243. package/dist/esm/sd-card.entry.js +1 -1
  244. package/dist/esm/sd-checkbox.entry.js +2 -3
  245. package/dist/esm/sd-chip-input.entry.js +4 -3
  246. package/dist/esm/sd-chip.entry.js +1 -1
  247. package/dist/esm/sd-circle-progress.entry.js +6 -4
  248. package/dist/esm/sd-confirm-modal_2.entry.js +37 -37
  249. package/dist/esm/sd-date-box.entry.js +1 -1
  250. package/dist/esm/{sd-date-picker.config-D-ks6qNf.js → sd-date-picker.config-krRuSUsA.js} +1 -1
  251. package/dist/esm/{sd-date-picker_7.entry.js → sd-date-picker_8.entry.js} +381 -20
  252. package/dist/esm/sd-date-range-picker-calendar.entry.js +4 -4
  253. package/dist/esm/sd-divider.entry.js +3 -3
  254. package/dist/esm/sd-dropdown-button.entry.js +2 -2
  255. package/dist/esm/sd-field_3.entry.js +10 -10
  256. package/dist/esm/sd-form.entry.js +1 -1
  257. package/dist/esm/sd-ghost-button_3.entry.js +4 -5
  258. package/dist/esm/sd-guide.entry.js +5 -10
  259. package/dist/esm/sd-key-value-table.entry.js +87 -17
  260. package/dist/esm/sd-linear-progress.entry.js +3 -3
  261. package/dist/esm/sd-loading-container.entry.js +3 -3
  262. package/dist/esm/sd-modal-container.entry.js +16 -2
  263. package/dist/esm/sd-pagination.entry.js +171 -0
  264. package/dist/esm/sd-popover.entry.js +2 -2
  265. package/dist/esm/sd-popup.entry.js +3 -3
  266. package/dist/esm/sd-radio-button.entry.js +1 -1
  267. package/dist/esm/sd-radio.entry.js +2 -3
  268. package/dist/esm/{sd-select_3.entry.js → sd-select-list-item_4.entry.js} +277 -298
  269. package/dist/esm/sd-switch.entry.js +2 -2
  270. package/dist/esm/sd-tabs.entry.js +2 -2
  271. package/dist/esm/sd-text-link.entry.js +1 -1
  272. package/dist/esm/sd-toast-container.entry.js +2 -2
  273. package/dist/esm/sd-toast.entry.js +3 -3
  274. package/dist/esm/sd-toggle.entry.js +2 -2
  275. package/dist/esm/{system-BJfiMC9H.js → system-Bth2l1cy.js} +1 -7
  276. package/dist/esm/{tooltipArrow-BAi-pktU.js → tooltipArrow-CEHVt90h.js} +1 -1
  277. package/dist/esm/{useDatePicker-DoUg--aq.js → useDatePicker-BG0lUGJG.js} +1 -1
  278. package/dist/types/components/sd-circle-progress/sd-circle-progress.d.ts +2 -0
  279. package/dist/types/components/sd-confirm-modal/sd-confirm-modal.d.ts +10 -10
  280. package/dist/types/components/sd-file-picker/sd-file-picker.config.d.ts +6 -0
  281. package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +10 -0
  282. package/dist/types/components/sd-guide/sd-guide.config.d.ts +0 -1
  283. package/dist/types/components/sd-key-value-table/sd-key-value-table.config.d.ts +22 -3
  284. package/dist/types/components/sd-key-value-table/sd-key-value-table.d.ts +9 -1
  285. package/dist/types/components/sd-loading-modal/sd-loading-modal.d.ts +2 -0
  286. package/dist/types/components/sd-modal-container/sd-modal-container.config.d.ts +3 -0
  287. package/dist/types/components/sd-modal-container/sd-modal-container.d.ts +2 -0
  288. package/dist/types/components.d.ts +44 -696
  289. package/dist/types/index.d.ts +0 -1
  290. package/hydrate/index.js +254 -2235
  291. package/hydrate/index.mjs +254 -2235
  292. package/package.json +1 -1
  293. package/dist/cjs/component.table-BrI3b--h.js +0 -71
  294. package/dist/cjs/constants-DJRV1upE.js +0 -5
  295. package/dist/cjs/sd-pagination_4.cjs.entry.js +0 -856
  296. package/dist/cjs/sd-select-list-item_2.cjs.entry.js +0 -172
  297. package/dist/cjs/sd-select.config-C9Ohe1QA.js +0 -143
  298. package/dist/cjs/sd-table.cjs.entry.js +0 -956
  299. package/dist/cjs/sd-table.config-DzC55sap.js +0 -82
  300. package/dist/cjs/sd-td.cjs.entry.js +0 -201
  301. package/dist/collection/components/sd-table/constants.js +0 -1
  302. package/dist/collection/components/sd-table/sd-table.config.js +0 -87
  303. package/dist/collection/components/sd-table/sd-table.css +0 -180
  304. package/dist/collection/components/sd-table/sd-table.js +0 -1709
  305. package/dist/collection/components/sd-table/sd-table.stories.helpers.js +0 -242
  306. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.css +0 -10
  307. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +0 -110
  308. package/dist/collection/components/sd-table/sd-td/sd-td.css +0 -15
  309. package/dist/collection/components/sd-table/sd-td/sd-td.js +0 -381
  310. package/dist/collection/components/sd-table/sd-thead/sd-thead.css +0 -186
  311. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +0 -629
  312. package/dist/collection/components/sd-table/sd-tr/sd-tr.css +0 -145
  313. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +0 -528
  314. package/dist/components/p-BHNytAtJ.js +0 -1
  315. package/dist/components/p-BJfiMC9H.js +0 -1
  316. package/dist/components/p-BQqXWtI6.js +0 -1
  317. package/dist/components/p-BXcizROm.js +0 -1
  318. package/dist/components/p-BZdgdRXJ.js +0 -1
  319. package/dist/components/p-CJcs7kNH.js +0 -1
  320. package/dist/components/p-CV5LiFKt.js +0 -1
  321. package/dist/components/p-CiTn4ZiI.js +0 -1
  322. package/dist/components/p-CmK45nj3.js +0 -1
  323. package/dist/components/p-D9tQwTWy.js +0 -1
  324. package/dist/components/p-DeXLIS7e.js +0 -1
  325. package/dist/components/p-DmC83_E9.js +0 -1
  326. package/dist/components/p-DvvGi4J_.js +0 -1
  327. package/dist/components/p-U8VaRj9c.js +0 -1
  328. package/dist/components/p-jwusYvH0.js +0 -1
  329. package/dist/components/p-sZMi_32I.js +0 -1
  330. package/dist/components/sd-table.d.ts +0 -11
  331. package/dist/components/sd-table.js +0 -1
  332. package/dist/components/sd-tbody.d.ts +0 -11
  333. package/dist/components/sd-tbody.js +0 -1
  334. package/dist/components/sd-td.d.ts +0 -11
  335. package/dist/components/sd-td.js +0 -1
  336. package/dist/components/sd-thead.d.ts +0 -11
  337. package/dist/components/sd-thead.js +0 -1
  338. package/dist/components/sd-tr.d.ts +0 -11
  339. package/dist/components/sd-tr.js +0 -1
  340. package/dist/design-system/p-147e0413.entry.js +0 -1
  341. package/dist/design-system/p-51c7839c.entry.js +0 -1
  342. package/dist/design-system/p-5f5f2fbe.entry.js +0 -1
  343. package/dist/design-system/p-65285327.entry.js +0 -1
  344. package/dist/design-system/p-6aec5853.entry.js +0 -1
  345. package/dist/design-system/p-80abdfe7.entry.js +0 -1
  346. package/dist/design-system/p-9825e76c.entry.js +0 -1
  347. package/dist/design-system/p-B-LOf2aM.js +0 -1
  348. package/dist/design-system/p-BJfiMC9H.js +0 -1
  349. package/dist/design-system/p-BXcizROm.js +0 -1
  350. package/dist/design-system/p-BZg-6aSz.js +0 -2
  351. package/dist/design-system/p-CAFz8W8_.js +0 -1
  352. package/dist/design-system/p-D9tQwTWy.js +0 -1
  353. package/dist/design-system/p-U8VaRj9c.js +0 -1
  354. package/dist/design-system/p-b84f5550.entry.js +0 -1
  355. package/dist/design-system/p-edfb5c83.entry.js +0 -1
  356. package/dist/design-system/p-efc55114.entry.js +0 -1
  357. package/dist/design-system/p-fd671afe.entry.js +0 -1
  358. package/dist/design-system/p-fe2b853f.entry.js +0 -1
  359. package/dist/design-system/p-ff9ccbf6.entry.js +0 -1
  360. package/dist/design-system/p-sZMi_32I.js +0 -1
  361. package/dist/esm/component.table-D9tQwTWy.js +0 -69
  362. package/dist/esm/constants-sZMi_32I.js +0 -3
  363. package/dist/esm/sd-pagination_4.entry.js +0 -851
  364. package/dist/esm/sd-select-list-item_2.entry.js +0 -169
  365. package/dist/esm/sd-select.config-D6ktrl7E.js +0 -128
  366. package/dist/esm/sd-table.config-BbIWNUE2.js +0 -69
  367. package/dist/esm/sd-table.entry.js +0 -954
  368. package/dist/esm/sd-td.entry.js +0 -199
  369. package/dist/types/components/sd-table/constants.d.ts +0 -50
  370. package/dist/types/components/sd-table/sd-table.config.d.ts +0 -70
  371. package/dist/types/components/sd-table/sd-table.d.ts +0 -199
  372. package/dist/types/components/sd-table/sd-table.stories.helpers.d.ts +0 -39
  373. package/dist/types/components/sd-table/sd-tbody/sd-tbody.d.ts +0 -15
  374. package/dist/types/components/sd-table/sd-td/sd-td.d.ts +0 -38
  375. package/dist/types/components/sd-table/sd-thead/sd-thead.d.ts +0 -62
  376. package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +0 -54
  377. /package/dist/components/{p-laVsm9VM.js → p-BOxGhKKP.js} +0 -0
  378. /package/dist/design-system/{p-laVsm9VM.js → p-BOxGhKKP.js} +0 -0
@@ -1,145 +0,0 @@
1
- sd-tr {
2
- display: contents;
3
- }
4
- sd-tr * {
5
- box-sizing: border-box;
6
- }
7
-
8
- .tr {
9
- display: table-row;
10
- }
11
- .tr:hover .td {
12
- background-color: #F9F9F9;
13
- }
14
- .tr--no-hover:hover .td {
15
- background-color: white;
16
- }
17
- .tr--separator:hover .td {
18
- background-color: var(--table-separator-color, #eeeeee);
19
- }
20
-
21
- .td {
22
- display: table-cell;
23
- height: var(--table-body-height, 44px);
24
- padding: var(--table-body-padding-y, 0) var(--table-body-padding-x, 16px);
25
- border-bottom: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
26
- background: white;
27
- vertical-align: middle;
28
- overflow: hidden;
29
- white-space: nowrap;
30
- text-overflow: ellipsis;
31
- word-break: keep-all;
32
- }
33
- .td--left {
34
- text-align: left;
35
- }
36
- .td--center {
37
- text-align: center;
38
- }
39
- .td--right {
40
- text-align: right;
41
- }
42
- .td--selected {
43
- position: relative;
44
- width: var(--table-selectable-width, 48px) !important;
45
- max-width: var(--table-selectable-width, 48px) !important;
46
- min-width: var(--table-selectable-width, 48px) !important;
47
- text-align: center;
48
- }
49
- .td--selected sd-checkbox label {
50
- position: relative;
51
- }
52
- .td--selected sd-checkbox label:before {
53
- content: "";
54
- position: absolute;
55
- inset: -6px;
56
- }
57
- .td.sticky-left {
58
- position: sticky;
59
- background-color: white;
60
- z-index: 100 !important;
61
- left: var(--sticky-left-offset, 0);
62
- }
63
- .td.sticky-right {
64
- position: sticky;
65
- background-color: white;
66
- z-index: 100 !important;
67
- right: var(--sticky-right-offset, 0);
68
- }
69
- .td.sticky-left-edge:after {
70
- content: "";
71
- position: absolute;
72
- top: 0;
73
- left: 100%;
74
- right: -20px;
75
- width: 20px;
76
- height: 100%;
77
- z-index: 101 !important;
78
- box-shadow: inset 12px 0 20px -25px;
79
- opacity: 0;
80
- pointer-events: none;
81
- transition: opacity 0.2s;
82
- }
83
- .td.sticky-right-edge:after {
84
- content: "";
85
- position: absolute;
86
- top: 0;
87
- left: -20px;
88
- width: 20px;
89
- height: 100%;
90
- z-index: 101 !important;
91
- box-shadow: inset -12px 0 20px -25px;
92
- opacity: 0;
93
- pointer-events: none;
94
- transition: opacity 0.2s;
95
- }
96
-
97
- .td.sticky-left-edge.is-scrolled-left {
98
- overflow: visible;
99
- }
100
-
101
- .td.sticky-left-edge.is-scrolled-left:after {
102
- opacity: 1;
103
- }
104
-
105
- .td.sticky-right-edge.is-scrolled-right {
106
- overflow: visible;
107
- }
108
-
109
- .td.sticky-right-edge.is-scrolled-right:after {
110
- opacity: 1;
111
- }
112
-
113
- .tr:hover .td.sticky-left,
114
- .tr:hover .td.sticky-right {
115
- background-color: #F9F9F9;
116
- }
117
-
118
- .tr--no-hover:hover .td.sticky-left,
119
- .tr--no-hover:hover .td.sticky-right {
120
- background-color: white;
121
- }
122
-
123
- .tr--separator:hover .td.sticky-left,
124
- .tr--separator:hover .td.sticky-right {
125
- background-color: var(--table-separator-color, #eeeeee);
126
- }
127
-
128
- .tr--separator .td--separator {
129
- height: var(--table-separator-width, 6px);
130
- padding: 0;
131
- background-color: var(--table-separator-color, #eeeeee);
132
- border-bottom: none;
133
- }
134
-
135
- .tr--separator--dense .td--separator {
136
- height: var(--table-separator-dense-width, 4px);
137
- }
138
-
139
- .td--divider-left {
140
- border-left: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
141
- }
142
-
143
- .td--divider-right {
144
- border-right: var(--table-border-width, 1px) solid var(--table-border-color, #E1E1E1);
145
- }
@@ -1,528 +0,0 @@
1
- import { h, Host } from "@stencil/core";
2
- import { TABLE_ID_ATTR, } from "../constants";
3
- import { TABLE_BODY_LAYOUT, TABLE_BODY_TYPOGRAPHY, TABLE_BORDER, TABLE_SEPARATOR, } from "../sd-table.config";
4
- export class SdTr {
5
- el;
6
- /** 테이블 컬럼 목록 */
7
- columns;
8
- /** 행 선택 기능 사용 여부 */
9
- selectable;
10
- /** 고정 컬럼 설정 */
11
- stickyColumn;
12
- /** 행 식별 키 */
13
- rowKey = '';
14
- /** 행 데이터 객체 */
15
- row = {};
16
- /** 구분선 높이 (4 또는 6px, null이면 일반 행) */
17
- separator = null;
18
- tableId = '';
19
- columnWidths = [];
20
- isVisible = true;
21
- spansVersion = 0;
22
- _columns = [];
23
- _selectable = false;
24
- _stickyColumn = { left: 0, right: 0 };
25
- _scrolledLeft = false;
26
- _scrolledRight = false;
27
- _dense = false;
28
- tableEl = null;
29
- componentWillLoad() {
30
- this.row = this.row ?? {};
31
- this.syncTableContext();
32
- this.columnWidths = this.columnWidths ?? [];
33
- this.resolveConfig();
34
- this.columnWidths = this._columns.map(c => (c.autoWidth ? 0 : parseInt(c.width || '120', 10)));
35
- this.updateVisibilitySync();
36
- }
37
- componentDidLoad() {
38
- this.syncTableContext();
39
- }
40
- syncTableContext() {
41
- // sd-table이 shadow:true이므로 fallback content로 렌더되면 closest가 경계를 못 넘는다.
42
- // 그 경우 getRootNode().host(=sd-table)로 폴백한다.
43
- const closest = this.el.closest('sd-table');
44
- const root = this.el.getRootNode();
45
- const fromShadow = root instanceof ShadowRoot ? root.host : null;
46
- const table = closest ?? fromShadow;
47
- this.tableEl = table;
48
- const fromMethod = table?.getTableIdSync?.();
49
- const fromAttr = table?.getAttribute(TABLE_ID_ATTR);
50
- const resolvedTableId = (fromMethod != null && fromMethod !== '' && fromMethod !== 'undefined' ? fromMethod : null) ??
51
- (fromAttr != null && fromAttr !== '' && fromAttr !== 'undefined' ? fromAttr : null) ??
52
- '';
53
- if (resolvedTableId !== '' && resolvedTableId !== this.tableId) {
54
- this.tableId = resolvedTableId;
55
- }
56
- }
57
- resolveConfig() {
58
- const config = this.tableEl?.getConfigSync?.();
59
- this._columns = this.columns ?? config?.columns ?? [];
60
- this._selectable = this.selectable ?? config?.selectable ?? false;
61
- this._stickyColumn = this.stickyColumn ?? config?.stickyColumn ?? { left: 0, right: 0 };
62
- this._scrolledLeft = config?.scrolledLeft ?? false;
63
- this._scrolledRight = config?.scrolledRight ?? false;
64
- this._dense = config?.dense ?? false;
65
- if (config?.columnWidths && (this.columnWidths ?? []).length === 0) {
66
- this.columnWidths = [...config.columnWidths];
67
- }
68
- }
69
- /** 테이블 설정을 다시 불러옵니다. */
70
- async refreshConfig() {
71
- this.resolveConfig();
72
- }
73
- /** 셀 병합 버전을 갱신해 td를 재렌더링합니다. */
74
- async bumpSpansVersion() {
75
- this.spansVersion = this.spansVersion + 1;
76
- }
77
- /** 페이지네이션에 따른 행 표시 여부를 갱신합니다. */
78
- async updateVisibility() {
79
- this.updateVisibilitySync();
80
- }
81
- updateVisibilitySync() {
82
- const rowIndex = parseInt(this.rowKey, 10);
83
- const pageInfo = this.tableEl?.getPaginationInfoSync?.();
84
- if (!pageInfo) {
85
- this.isVisible = true;
86
- return;
87
- }
88
- this.isVisible = rowIndex >= pageInfo.startIndex && rowIndex < pageInfo.endIndex;
89
- }
90
- /** 컬럼 너비를 업데이트합니다. */
91
- async setColumnWidths(widths) {
92
- this.columnWidths = widths;
93
- }
94
- /** 체크박스 선택 상태를 갱신합니다. */
95
- async refreshSelection() {
96
- const checkbox = this.el.querySelector('sd-checkbox');
97
- if (checkbox) {
98
- checkbox.value = this.isSelected();
99
- }
100
- }
101
- get visibleColumns() {
102
- return this._columns.filter(col => col.visible !== false);
103
- }
104
- formatValue(value) {
105
- if (value === null || value === undefined) {
106
- return '';
107
- }
108
- if (typeof value === 'number') {
109
- return value.toLocaleString();
110
- }
111
- return String(value);
112
- }
113
- getCellValue(column) {
114
- const { field, format, name } = column;
115
- const value = typeof field === 'function'
116
- ? field(this.row)
117
- : field !== ''
118
- ? this.row[field]
119
- : this.row[name];
120
- return format ? format(value, this.row) : this.formatValue(value);
121
- }
122
- getStickyStyle(colIdx) {
123
- if (this.tableEl?.getStickyStyleSync) {
124
- return this.tableEl.getStickyStyleSync(colIdx);
125
- }
126
- const leftOffset = this.columnWidths.slice(0, colIdx).reduce((a, b) => a + b, 0) + (this._selectable ? 52 : 0);
127
- const rightOffset = this.columnWidths
128
- .filter((_, i) => i >= this.visibleColumns.length - (this._stickyColumn.right || 0) && i > colIdx)
129
- .reduce((a, b) => a + b, 0);
130
- const col = this.visibleColumns[colIdx];
131
- const base = {
132
- '--sticky-left-offset': `${leftOffset}px`,
133
- '--sticky-right-offset': `${rightOffset}px`,
134
- };
135
- if (!col?.autoWidth) {
136
- base['width'] = `${this.columnWidths[colIdx]}px`;
137
- base['minWidth'] = `${this.columnWidths[colIdx]}px`;
138
- base['maxWidth'] = `${this.columnWidths[colIdx]}px`;
139
- }
140
- return base;
141
- }
142
- isSelected() {
143
- if (this.tableEl?.isRowSelectedSync) {
144
- return this.tableEl.isRowSelectedSync(this.row);
145
- }
146
- return false;
147
- }
148
- handleSelect() {
149
- if (this.tableEl?.updateRowSelectSync) {
150
- this.tableEl.updateRowSelectSync(this.row);
151
- }
152
- }
153
- getSpanFor(col) {
154
- if (!this.tableEl?.getSpanSync)
155
- return undefined;
156
- const fieldName = typeof col.field === 'string' ? col.field : col.name;
157
- return this.tableEl.getSpanSync(this.rowKey, fieldName);
158
- }
159
- isCovered(colIdx) {
160
- if (!this.tableEl?.isCoveredSync)
161
- return false;
162
- return this.tableEl.isCoveredSync(this.rowKey, colIdx, this._columns);
163
- }
164
- getCellClassFor(col) {
165
- if (!this.tableEl?.getCellClassSync)
166
- return undefined;
167
- const fieldName = typeof col.field === 'string' ? col.field : col.name;
168
- return this.tableEl.getCellClassSync(this.rowKey, fieldName);
169
- }
170
- getFramePaddingStyle(field) {
171
- if (!(this.tableEl?.isCellUseFrameSync?.(this.rowKey, field) ?? false))
172
- return undefined;
173
- return { padding: `${TABLE_BODY_LAYOUT.framePadding}px` };
174
- }
175
- expandCellClass(classStr) {
176
- if (classStr == null || classStr === '')
177
- return {};
178
- return Object.fromEntries(classStr
179
- .split(/\s+/)
180
- .filter(Boolean)
181
- .map(c => [c, true]));
182
- }
183
- render() {
184
- const stickyLeftCount = this._stickyColumn.left || 0;
185
- const stickyRightCount = this._stickyColumn.right || 0;
186
- const stickyLeftCols = this.visibleColumns.slice(0, stickyLeftCount);
187
- const middleCols = this.visibleColumns.slice(stickyLeftCount, this.visibleColumns.length - stickyRightCount);
188
- const stickyRightCols = this.visibleColumns.slice(this.visibleColumns.length - stickyRightCount);
189
- const hasRowspan = this.tableEl?.hasRowspanSync?.() ?? false;
190
- const isUseFrameRow = this.tableEl?.hasUseFrameInRowSync?.(this.rowKey) ?? false;
191
- const effectiveDense = this._dense && !isUseFrameRow;
192
- const rowLayoutY = effectiveDense ? TABLE_BODY_LAYOUT.dense : TABLE_BODY_LAYOUT.default;
193
- const rowPaddingX = this._dense && isUseFrameRow ? TABLE_BODY_LAYOUT.paddingX : TABLE_BODY_LAYOUT.paddingX;
194
- const rowStyle = {
195
- 'display': this.isVisible ? '' : 'none',
196
- '--table-body-height': `${rowLayoutY.height}px`,
197
- '--table-body-padding-y': `${rowLayoutY.paddingY}px`,
198
- '--table-body-padding-x': `${rowPaddingX}px`,
199
- '--table-body-font-family': TABLE_BODY_TYPOGRAPHY.fontFamily,
200
- '--table-body-font-weight': TABLE_BODY_TYPOGRAPHY.fontWeight,
201
- '--table-body-font-size': `${TABLE_BODY_TYPOGRAPHY.fontSize}px`,
202
- '--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
203
- '--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
204
- '--table-border-color': TABLE_BORDER.color,
205
- '--table-border-width': `${TABLE_BORDER.width}px`,
206
- '--table-separator-color': TABLE_SEPARATOR.color,
207
- '--table-separator-width': `${TABLE_SEPARATOR.width}px`,
208
- '--table-separator-dense-width': `${TABLE_SEPARATOR.denseWidth}px`,
209
- };
210
- if (this.separator != null) {
211
- const totalCols = this.visibleColumns.length + (this._selectable ? 1 : 0);
212
- const isDense = this.separator === 4;
213
- return (h(Host, { style: rowStyle }, h("tr", { class: { 'tr': true, 'tr--separator': true, 'tr--separator--dense': isDense } }, h("td", { colSpan: totalCols, class: "td td--separator" }))));
214
- }
215
- return (h(Host, { style: rowStyle }, h("tr", { class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { class: {
216
- 'td': true,
217
- 'td--selected': true,
218
- 'sticky-left': true,
219
- 'sticky-left-edge': stickyLeftCount === 0,
220
- 'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
221
- }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
222
- if (this.isCovered(idx))
223
- return null;
224
- const fieldName = typeof col.field === 'string' ? col.field : col.name;
225
- const span = this.getSpanFor(col);
226
- const sdCellClass = this.getCellClassFor(col);
227
- return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
228
- 'td': true,
229
- [`td--${col.align || 'left'}`]: true,
230
- 'sticky-left': true,
231
- 'sticky-left-edge': idx === stickyLeftCount - 1,
232
- 'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
233
- [`${col.tdClass}`]: Boolean(col.tdClass),
234
- ...this.expandCellClass(sdCellClass),
235
- }, style: { ...this.getStickyStyle(idx), ...this.getFramePaddingStyle(fieldName) } }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
236
- }), middleCols.map((col, relativeIdx) => {
237
- const actualColIdx = stickyLeftCount + relativeIdx;
238
- if (this.isCovered(actualColIdx))
239
- return null;
240
- const fieldName = typeof col.field === 'string' ? col.field : col.name;
241
- const span = this.getSpanFor(col);
242
- const sdCellClass = this.getCellClassFor(col);
243
- return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
244
- td: true,
245
- [`td--${col.align || 'left'}`]: true,
246
- [`${col.tdClass}`]: Boolean(col.tdClass),
247
- ...this.expandCellClass(sdCellClass),
248
- }, style: {
249
- ...this.getStickyStyle(actualColIdx),
250
- ...this.getFramePaddingStyle(fieldName),
251
- } }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
252
- }), stickyRightCols.map((col, relativeIdx) => {
253
- const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
254
- if (this.isCovered(actualColIdx))
255
- return null;
256
- const fieldName = typeof col.field === 'string' ? col.field : col.name;
257
- const span = this.getSpanFor(col);
258
- const sdCellClass = this.getCellClassFor(col);
259
- return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
260
- 'td': true,
261
- [`td--${col.align || 'left'}`]: true,
262
- 'sticky-right': true,
263
- 'sticky-right-edge': relativeIdx === 0,
264
- 'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
265
- [`${col.tdClass}`]: Boolean(col.tdClass),
266
- ...this.expandCellClass(sdCellClass),
267
- }, style: {
268
- ...this.getStickyStyle(actualColIdx),
269
- ...this.getFramePaddingStyle(fieldName),
270
- } }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
271
- }))));
272
- }
273
- static get is() { return "sd-tr"; }
274
- static get originalStyleUrls() {
275
- return {
276
- "$": ["sd-tr.scss"]
277
- };
278
- }
279
- static get styleUrls() {
280
- return {
281
- "$": ["sd-tr.css"]
282
- };
283
- }
284
- static get properties() {
285
- return {
286
- "columns": {
287
- "type": "unknown",
288
- "mutable": false,
289
- "complexType": {
290
- "original": "SdTableColumn[]",
291
- "resolved": "SdTableColumn[] | undefined",
292
- "references": {
293
- "SdTableColumn": {
294
- "location": "import",
295
- "path": "../constants",
296
- "id": "src/components/sd-table/constants.ts::SdTableColumn",
297
- "referenceLocation": "SdTableColumn"
298
- }
299
- }
300
- },
301
- "required": false,
302
- "optional": true,
303
- "docs": {
304
- "tags": [],
305
- "text": "\uD14C\uC774\uBE14 \uCEEC\uB7FC \uBAA9\uB85D"
306
- },
307
- "getter": false,
308
- "setter": false
309
- },
310
- "selectable": {
311
- "type": "boolean",
312
- "mutable": false,
313
- "complexType": {
314
- "original": "boolean",
315
- "resolved": "boolean | undefined",
316
- "references": {}
317
- },
318
- "required": false,
319
- "optional": true,
320
- "docs": {
321
- "tags": [],
322
- "text": "\uD589 \uC120\uD0DD \uAE30\uB2A5 \uC0AC\uC6A9 \uC5EC\uBD80"
323
- },
324
- "getter": false,
325
- "setter": false,
326
- "reflect": false,
327
- "attribute": "selectable"
328
- },
329
- "stickyColumn": {
330
- "type": "unknown",
331
- "mutable": false,
332
- "complexType": {
333
- "original": "SdTableStickyColumn",
334
- "resolved": "SdTableStickyColumn | undefined",
335
- "references": {
336
- "SdTableStickyColumn": {
337
- "location": "import",
338
- "path": "../constants",
339
- "id": "src/components/sd-table/constants.ts::SdTableStickyColumn",
340
- "referenceLocation": "SdTableStickyColumn"
341
- }
342
- }
343
- },
344
- "required": false,
345
- "optional": true,
346
- "docs": {
347
- "tags": [],
348
- "text": "\uACE0\uC815 \uCEEC\uB7FC \uC124\uC815"
349
- },
350
- "getter": false,
351
- "setter": false
352
- },
353
- "rowKey": {
354
- "type": "string",
355
- "mutable": false,
356
- "complexType": {
357
- "original": "string",
358
- "resolved": "string",
359
- "references": {}
360
- },
361
- "required": false,
362
- "optional": false,
363
- "docs": {
364
- "tags": [],
365
- "text": "\uD589 \uC2DD\uBCC4 \uD0A4"
366
- },
367
- "getter": false,
368
- "setter": false,
369
- "reflect": false,
370
- "attribute": "row-key",
371
- "defaultValue": "''"
372
- },
373
- "row": {
374
- "type": "unknown",
375
- "mutable": false,
376
- "complexType": {
377
- "original": "Row",
378
- "resolved": "Row",
379
- "references": {
380
- "Row": {
381
- "location": "import",
382
- "path": "../constants",
383
- "id": "src/components/sd-table/constants.ts::Row",
384
- "referenceLocation": "Row"
385
- }
386
- }
387
- },
388
- "required": false,
389
- "optional": false,
390
- "docs": {
391
- "tags": [],
392
- "text": "\uD589 \uB370\uC774\uD130 \uAC1D\uCCB4"
393
- },
394
- "getter": false,
395
- "setter": false,
396
- "defaultValue": "{}"
397
- },
398
- "separator": {
399
- "type": "any",
400
- "mutable": false,
401
- "complexType": {
402
- "original": "'4' | '6' | 4 | 6 | null",
403
- "resolved": "\"4\" | \"6\" | 4 | 6 | null | undefined",
404
- "references": {}
405
- },
406
- "required": false,
407
- "optional": true,
408
- "docs": {
409
- "tags": [],
410
- "text": "\uAD6C\uBD84\uC120 \uB192\uC774 (4 \uB610\uB294 6px, null\uC774\uBA74 \uC77C\uBC18 \uD589)"
411
- },
412
- "getter": false,
413
- "setter": false,
414
- "reflect": false,
415
- "attribute": "separator",
416
- "defaultValue": "null"
417
- }
418
- };
419
- }
420
- static get states() {
421
- return {
422
- "tableId": {},
423
- "columnWidths": {},
424
- "isVisible": {},
425
- "spansVersion": {},
426
- "_columns": {},
427
- "_selectable": {},
428
- "_stickyColumn": {},
429
- "_scrolledLeft": {},
430
- "_scrolledRight": {},
431
- "_dense": {}
432
- };
433
- }
434
- static get methods() {
435
- return {
436
- "refreshConfig": {
437
- "complexType": {
438
- "signature": "() => Promise<void>",
439
- "parameters": [],
440
- "references": {
441
- "Promise": {
442
- "location": "global",
443
- "id": "global::Promise"
444
- }
445
- },
446
- "return": "Promise<void>"
447
- },
448
- "docs": {
449
- "text": "\uD14C\uC774\uBE14 \uC124\uC815\uC744 \uB2E4\uC2DC \uBD88\uB7EC\uC635\uB2C8\uB2E4.",
450
- "tags": []
451
- }
452
- },
453
- "bumpSpansVersion": {
454
- "complexType": {
455
- "signature": "() => Promise<void>",
456
- "parameters": [],
457
- "references": {
458
- "Promise": {
459
- "location": "global",
460
- "id": "global::Promise"
461
- }
462
- },
463
- "return": "Promise<void>"
464
- },
465
- "docs": {
466
- "text": "\uC140 \uBCD1\uD569 \uBC84\uC804\uC744 \uAC31\uC2E0\uD574 td\uB97C \uC7AC\uB80C\uB354\uB9C1\uD569\uB2C8\uB2E4.",
467
- "tags": []
468
- }
469
- },
470
- "updateVisibility": {
471
- "complexType": {
472
- "signature": "() => Promise<void>",
473
- "parameters": [],
474
- "references": {
475
- "Promise": {
476
- "location": "global",
477
- "id": "global::Promise"
478
- }
479
- },
480
- "return": "Promise<void>"
481
- },
482
- "docs": {
483
- "text": "\uD398\uC774\uC9C0\uB124\uC774\uC158\uC5D0 \uB530\uB978 \uD589 \uD45C\uC2DC \uC5EC\uBD80\uB97C \uAC31\uC2E0\uD569\uB2C8\uB2E4.",
484
- "tags": []
485
- }
486
- },
487
- "setColumnWidths": {
488
- "complexType": {
489
- "signature": "(widths: number[]) => Promise<void>",
490
- "parameters": [{
491
- "name": "widths",
492
- "type": "number[]",
493
- "docs": ""
494
- }],
495
- "references": {
496
- "Promise": {
497
- "location": "global",
498
- "id": "global::Promise"
499
- }
500
- },
501
- "return": "Promise<void>"
502
- },
503
- "docs": {
504
- "text": "\uCEEC\uB7FC \uB108\uBE44\uB97C \uC5C5\uB370\uC774\uD2B8\uD569\uB2C8\uB2E4.",
505
- "tags": []
506
- }
507
- },
508
- "refreshSelection": {
509
- "complexType": {
510
- "signature": "() => Promise<void>",
511
- "parameters": [],
512
- "references": {
513
- "Promise": {
514
- "location": "global",
515
- "id": "global::Promise"
516
- }
517
- },
518
- "return": "Promise<void>"
519
- },
520
- "docs": {
521
- "text": "\uCCB4\uD06C\uBC15\uC2A4 \uC120\uD0DD \uC0C1\uD0DC\uB97C \uAC31\uC2E0\uD569\uB2C8\uB2E4.",
522
- "tags": []
523
- }
524
- }
525
- };
526
- }
527
- static get elementRef() { return "el"; }
528
- }
@@ -1 +0,0 @@
1
- import{p as t,H as o,c as s,h as e,t as a}from"./p-jwusYvH0.js";import{s as i}from"./p-BE4tnQ2Z.js";import{m as d}from"./p-Cw8yDfQh.js";import{d as n}from"./p-CJcs7kNH.js";import{d as l}from"./p-NeXvaRu7.js";import{d as m}from"./p-BU1H7ElF.js";import{d as r}from"./p-Du_Yc-lW.js";import{d as c}from"./p-DkaajrxX.js";const f={positive:"primary_md",negative:"danger_md",default:"neutral_outline_md"},h={positive:"notificationOutline",negative:"warningOutline",default:null},b={positive:d.modal.confirm.positive.icon,negative:d.modal.confirm.negative.icon,default:""},p=Number(d.modal.confirm.title.icon),u=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.close=s(this,"sdClose",7),this.cancel=s(this,"sdCancel",7),this.ok=s(this,"sdOk",7)}get el(){return this}hasSlottedContent=!1;customContentRef;slotObserver;type="positive";modalTitle="";titleClass="";topMessage=[];bottomMessage=[];mainButtonName;mainButtonLabel="확인";subButtonLabel="";tagPreset="square_sm_grey";tagLabel="";slotLabel="";tagContents;close;cancel;ok;componentWillLoad(){this.syncHasSlottedContent()}componentDidLoad(){"undefined"!=typeof MutationObserver&&(this.slotObserver=new MutationObserver((()=>this.syncHasSlottedContent())),this.slotObserver.observe(this.el,{childList:!0,characterData:!0}))}componentDidRender(){this.customContentRef&&this.tagContents instanceof o&&("function"==typeof this.customContentRef.replaceChildren?this.customContentRef.replaceChildren(this.tagContents):(this.customContentRef.innerHTML="",this.customContentRef.appendChild(this.tagContents)))}disconnectedCallback(){this.slotObserver?.disconnect()}get resolvedType(){return this.type??"positive"}get resolvedMainButton(){return this.mainButtonName??f[this.resolvedType]}get hasTagContent(){return void 0!==this.tagLabel&&""!==this.tagLabel||void 0!==this.slotLabel&&""!==this.slotLabel}get showContentBox(){return null!=this.tagContents||this.hasTagContent||this.hasSlottedContent}syncHasSlottedContent(){const t=Array.from(this.el.childNodes).some((t=>!(t.nodeType===Node.ELEMENT_NODE&&t.classList.contains("sd-confirm-modal"))&&(t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.TEXT_NODE&&t.textContent?.trim())));t!==this.hasSlottedContent&&(this.hasSlottedContent=t)}render(){const t=this.resolvedType,o=h[t],s=b[t];return e("div",{key:"396bef971efaab6638586fa1a067eae54c1897f4",class:"sd-confirm-modal"},e("sd-ghost-button",{key:"4716168808371f4515bf763e77198386fc9fe7cf",class:"sd-confirm-modal__close-button",icon:"close",ariaLabel:"close",onClick:()=>this.close.emit()}),o&&e("sd-icon",{key:"1ab7ca2c5262374a0823a8e5c501758433c25051",class:"sd-confirm-modal__icon",name:o,size:p,color:s}),e("h2",{key:"a190f975d27153e4d928c95395f13ecd8ba0667a",class:`sd-confirm-modal__title ${this.titleClass??""}`},this.modalTitle),e("div",{key:"da7821097377b7a9781df87ae40b2439a103ff9b",class:"sd-confirm-modal__body"},(this.topMessage??[]).length>0&&e("div",{key:"ced23315888ad43b3d91b8bb5388b77e517dd52a",class:"sd-confirm-modal__message"},(this.topMessage??[]).map((t=>e("p",{class:"sd-confirm-modal__message-text",innerHTML:i(t)})))),this.showContentBox&&e("div",{key:"5bdbe145bdb6639ebe582e7295f413a4b1990c15",class:"sd-confirm-modal__content-box"},this.tagContents?e("div",{class:"sd-confirm-modal__custom-content",ref:t=>{this.customContentRef=t}}):e("slot",{onSlotchange:()=>this.syncHasSlottedContent()},this.tagLabel&&e("sd-tag",{name:this.tagPreset??"square_sm_grey",label:this.tagLabel}),this.slotLabel&&e("span",{class:"sd-confirm-modal__slot-label"},this.slotLabel))),(this.bottomMessage??[]).length>0&&e("div",{key:"e99adc95c95be16945407d54833164908aad0b50",class:"sd-confirm-modal__message"},(this.bottomMessage??[]).map((t=>e("p",{class:"sd-confirm-modal__message-text",innerHTML:i(t)}))))),e("div",{key:"20a6660323e1d9f4ee096f0c07bf0596f5a2445a",class:"sd-confirm-modal__button"},this.subButtonLabel&&e("sd-button",{key:"73141dd6fc6f703bff11e71ca9820cf3e1045466",name:"neutral_outline_md",label:this.subButtonLabel,onSdClick:()=>this.cancel.emit()}),e("sd-button",{key:"bed2d910b4b35d59897e14222f86f20a7e8c3bde",name:this.resolvedMainButton,label:this.mainButtonLabel??"확인",onSdClick:()=>this.ok.emit()})))}static get style(){return"sd-confirm-modal{display:block;width:fit-content;min-width:520px}sd-confirm-modal .sd-confirm-modal{position:relative;padding:var(--sd-modal-modal-confirm-padding-y) var(--sd-modal-modal-confirm-padding-x);border-radius:var(--sd-modal-modal-radius);box-shadow:4px 4px 24px 4px rgba(0, 0, 0, 0.2);background:var(--sd-modal-modal-bg)}sd-confirm-modal .sd-confirm-modal__close-button{position:absolute;top:12px;right:12px}sd-confirm-modal .sd-confirm-modal__icon{display:block;width:var(--sd-modal-modal-confirm-title-icon);height:var(--sd-modal-modal-confirm-title-icon);margin:0 auto var(--sd-modal-modal-confirm-title-gap) auto}sd-confirm-modal .sd-confirm-modal__title{color:var(--sd-modal-modal-confirm-title-color);font-size:var(--sd-modal-modal-confirm-title-typography-font-size);font-weight:var(--sd-modal-modal-confirm-title-typography-font-weight);line-height:var(--sd-modal-modal-confirm-title-typography-line-height);text-align:center;margin:0 0 var(--sd-modal-modal-confirm-body-gap) 0}sd-confirm-modal .sd-confirm-modal__body{display:flex;flex-direction:column;gap:var(--sd-modal-modal-confirm-body-gap)}sd-confirm-modal .sd-confirm-modal__message-text{color:var(--sd-modal-modal-confirm-message-color);font-size:12px;font-weight:400;line-height:20px;text-align:center;margin:0}sd-confirm-modal .sd-confirm-modal__content-box{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;border:1px solid #e1e1e1;border-radius:8px;background:white}sd-confirm-modal .sd-confirm-modal__slot-label{font-size:14px;font-weight:700;line-height:22px;color:var(--sd-modal-modal-confirm-message-color)}sd-confirm-modal .sd-confirm-modal__button{display:flex;justify-content:center;gap:var(--sd-modal-modal-confirm-button-gap);margin-top:40px}"}},[772,"sd-confirm-modal",{type:[1],modalTitle:[1,"modal-title"],titleClass:[1,"title-class"],topMessage:[16],bottomMessage:[16],mainButtonName:[1,"main-button-name"],mainButtonLabel:[1,"main-button-label"],subButtonLabel:[1,"sub-button-label"],tagPreset:[1,"tag-preset"],tagLabel:[1,"tag-label"],slotLabel:[1,"slot-label"],tagContents:[16],hasSlottedContent:[32]}]);function g(){"undefined"!=typeof customElements&&["sd-confirm-modal","sd-button","sd-ghost-button","sd-icon","sd-portal","sd-tag"].forEach((t=>{switch(t){case"sd-confirm-modal":customElements.get(a(t))||customElements.define(a(t),u);break;case"sd-button":customElements.get(a(t))||n();break;case"sd-ghost-button":customElements.get(a(t))||l();break;case"sd-icon":customElements.get(a(t))||m();break;case"sd-portal":customElements.get(a(t))||r();break;case"sd-tag":customElements.get(a(t))||c()}}))}export{u as S,g as d}