@sellmate/design-system 1.2.0 → 1.4.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 (337) hide show
  1. package/dist/cjs/component.datepicker-Cw_-oidk.js +121 -0
  2. package/dist/cjs/{component.table-CMqGfEui.js → component.table-qOFez3z3.js} +3 -0
  3. package/dist/cjs/design-system.cjs.js +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/sd-action-modal.cjs.entry.js +1 -1
  6. package/dist/cjs/sd-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/sd-barcode-input.cjs.entry.js +1 -1
  8. package/dist/cjs/sd-button_2.cjs.entry.js +270 -4
  9. package/dist/cjs/sd-calendar_2.cjs.entry.js +263 -0
  10. package/dist/cjs/sd-card.cjs.entry.js +1 -1
  11. package/dist/cjs/sd-checkbox.cjs.entry.js +3 -3
  12. package/dist/cjs/sd-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/sd-circle-progress.cjs.entry.js +1 -1
  14. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
  15. package/dist/cjs/sd-date-box.cjs.entry.js +2 -2
  16. package/dist/cjs/sd-date-picker.config-D3lTpa6W.js +37 -0
  17. package/dist/cjs/sd-date-picker_7.cjs.entry.js +15 -13
  18. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +37 -37
  19. package/dist/cjs/sd-dropdown-button.cjs.entry.js +3 -3
  20. package/dist/cjs/sd-field_3.cjs.entry.js +7 -7
  21. package/dist/cjs/sd-form.cjs.entry.js +1 -1
  22. package/dist/cjs/sd-ghost-button.cjs.entry.js +2 -2
  23. package/dist/cjs/sd-guide.cjs.entry.js +2 -2
  24. package/dist/cjs/sd-key-value-table.cjs.entry.js +1 -1
  25. package/dist/cjs/sd-linear-progress.cjs.entry.js +1 -1
  26. package/dist/cjs/sd-loading-container.cjs.entry.js +2 -2
  27. package/dist/cjs/sd-pagination_4.cjs.entry.js +27 -36
  28. package/dist/cjs/sd-popover.cjs.entry.js +3 -3
  29. package/dist/cjs/sd-popup.cjs.entry.js +1 -1
  30. package/dist/cjs/sd-portal.cjs.entry.js +1 -1
  31. package/dist/cjs/sd-radio-button.cjs.entry.js +1 -1
  32. package/dist/cjs/sd-radio.cjs.entry.js +1 -1
  33. package/dist/cjs/sd-select-list-item_2.cjs.entry.js +6 -6
  34. package/dist/cjs/sd-select_3.cjs.entry.js +8 -8
  35. package/dist/cjs/sd-switch.cjs.entry.js +1 -1
  36. package/dist/cjs/sd-table.cjs.entry.js +25 -27
  37. package/dist/cjs/{sd-table.config-BIpldZtw.js → sd-table.config-B7psrvV4.js} +4 -2
  38. package/dist/cjs/sd-tabs.cjs.entry.js +1 -1
  39. package/dist/cjs/sd-tag.cjs.entry.js +2 -2
  40. package/dist/cjs/sd-td.cjs.entry.js +18 -9
  41. package/dist/cjs/sd-text-link.cjs.entry.js +3 -3
  42. package/dist/cjs/sd-toast-container.cjs.entry.js +1 -1
  43. package/dist/cjs/sd-toast.cjs.entry.js +2 -2
  44. package/dist/cjs/sd-toggle.cjs.entry.js +1 -1
  45. package/dist/cjs/useDatePicker-dCuEgvjX.js +103 -0
  46. package/dist/collection/collection-manifest.json +1 -2
  47. package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
  48. package/dist/collection/components/sd-badge/sd-badge.js +1 -1
  49. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
  50. package/dist/collection/components/sd-button/sd-button.js +2 -2
  51. package/dist/collection/components/sd-calendar/sd-calendar.config.js +51 -0
  52. package/dist/collection/components/sd-calendar/sd-calendar.css +136 -73
  53. package/dist/collection/components/sd-calendar/sd-calendar.js +173 -133
  54. package/dist/collection/components/sd-card/sd-card.js +1 -1
  55. package/dist/collection/components/sd-checkbox/sd-checkbox.js +3 -3
  56. package/dist/collection/components/sd-chip/sd-chip.js +1 -1
  57. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
  58. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +2 -2
  59. package/dist/collection/components/sd-date-box/sd-date-box.js +2 -2
  60. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
  61. package/dist/collection/components/sd-date-picker/sd-date-picker.config.js +0 -38
  62. package/dist/collection/components/sd-date-picker/sd-date-picker.js +3 -2
  63. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +1 -1
  64. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.config.js +2 -1
  65. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +2 -2
  66. package/dist/collection/components/sd-dropdown-button/sd-dropdown-button.js +3 -3
  67. package/dist/collection/components/sd-field/sd-field.js +4 -4
  68. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
  69. package/dist/collection/components/sd-form/sd-form.js +1 -1
  70. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +2 -2
  71. package/dist/collection/components/sd-guide/sd-guide.js +2 -2
  72. package/dist/collection/components/sd-input/sd-input.js +2 -2
  73. package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
  74. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  75. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
  76. package/dist/collection/components/sd-number-input/sd-number-input.js +4 -4
  77. package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
  78. package/dist/collection/components/sd-popover/sd-popover.js +4 -4
  79. package/dist/collection/components/sd-popup/sd-popup.js +1 -1
  80. package/dist/collection/components/sd-portal/sd-portal.js +1 -1
  81. package/dist/collection/components/sd-radio/sd-radio.js +1 -1
  82. package/dist/collection/components/sd-radio-button/sd-radio-button.js +1 -1
  83. package/dist/collection/components/sd-radio-group/sd-radio-group.js +1 -1
  84. package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
  85. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
  86. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
  87. package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
  88. package/dist/collection/components/sd-select/sd-select.js +4 -4
  89. package/dist/collection/components/sd-switch/sd-switch.js +1 -1
  90. package/dist/collection/components/sd-table/sd-table.js +24 -26
  91. package/dist/collection/components/sd-table/sd-tbody/sd-tbody.js +2 -2
  92. package/dist/collection/components/sd-table/sd-td/sd-td.js +18 -9
  93. package/dist/collection/components/sd-table/sd-thead/sd-thead.js +3 -3
  94. package/dist/collection/components/sd-table/sd-tr/sd-tr.css +6 -2
  95. package/dist/collection/components/sd-table/sd-tr/sd-tr.js +16 -25
  96. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  97. package/dist/collection/components/sd-tag/sd-tag.js +2 -2
  98. package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
  99. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  100. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  101. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  102. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  103. package/dist/collection/components/sd-tooltip/sd-tooltip.js +2 -2
  104. package/dist/collection/index.js +1 -1
  105. package/dist/components/p-BDVrZ5mV.js +1 -0
  106. package/dist/components/{p-BY1LGlfc.js → p-BFC3Etk2.js} +1 -1
  107. package/dist/components/p-BQn6le_Y.js +1 -0
  108. package/dist/components/{p-nOCYbyW4.js → p-BRk9YZBe.js} +1 -1
  109. package/dist/components/{p-Jts7ueOa.js → p-BRxXhFqt.js} +1 -1
  110. package/dist/components/{p-Cktiasfd.js → p-BSfu4DO2.js} +1 -1
  111. package/dist/components/{p-B3D43x7F.js → p-BZabVWBD.js} +1 -1
  112. package/dist/components/{p-BsM-fwYd.js → p-BeBiPTbd.js} +1 -1
  113. package/dist/components/{p-Dl8TIEQu.js → p-BjpbUGud.js} +1 -1
  114. package/dist/components/{p-DL1ac1QS.js → p-Bs1Z5QtN.js} +1 -1
  115. package/dist/components/{p-teN3CfOr.js → p-BwPmM1Pm.js} +1 -1
  116. package/dist/components/{p-DBFgk0rX.js → p-C3fqSH7A.js} +1 -1
  117. package/dist/components/p-CETxX4-M.js +1 -0
  118. package/dist/components/{p-D0Jiw-Zk.js → p-CIUE4qr7.js} +1 -1
  119. package/dist/components/{p-BXCyVrle.js → p-CLxVZFEG.js} +1 -1
  120. package/dist/components/{p-B-sK7I83.js → p-CpgTSxf0.js} +1 -1
  121. package/dist/components/p-Cx_d5vsS.js +1 -0
  122. package/dist/components/{p-CQI40kiY.js → p-CyObYB-g.js} +1 -1
  123. package/dist/components/{p-DFLCjX1a.js → p-D7nYP2a4.js} +1 -1
  124. package/dist/components/p-DQFHAKL_.js +1 -0
  125. package/dist/components/{p-wCNRlKLa.js → p-DS7Ypvt5.js} +1 -1
  126. package/dist/components/{p-CsVAx6KV.js → p-Da5i_Sa6.js} +1 -1
  127. package/dist/components/p-DiP0LJGq.js +1 -0
  128. package/dist/components/{p-CdOHomUp.js → p-DlREBZ-C.js} +1 -1
  129. package/dist/components/p-DnW8EAqd.js +1 -0
  130. package/dist/components/{p-C5CH-s6a.js → p-DwgaMhOM.js} +1 -1
  131. package/dist/components/p-DykVq5VY.js +1 -0
  132. package/dist/components/{p-BorUSgEK.js → p-FKKk7Bk8.js} +1 -1
  133. package/dist/components/{p-CRL7TjSB.js → p-INdVvadB.js} +1 -1
  134. package/dist/components/p-JlZdKw4C.js +1 -0
  135. package/dist/components/{p-C7WLft_0.js → p-VuxN5d2D.js} +1 -1
  136. package/dist/components/{p-u8teDaMa.js → p-X-8I-A3g.js} +1 -1
  137. package/dist/components/{p-arZfxxPn.js → p-Z5Vk33zf.js} +1 -1
  138. package/dist/components/{p-BAcmO7w0.js → p-kSfaCwf1.js} +1 -1
  139. package/dist/components/p-oyZgWRnC.js +1 -0
  140. package/dist/components/{p-2wB9cing.js → p-t161LJqb.js} +1 -1
  141. package/dist/components/{p-CK9ciBIR.js → p-wOAxmZ1V.js} +1 -1
  142. package/dist/components/{p-B7mpdnNl.js → p-xX3QT-8K.js} +1 -1
  143. package/dist/components/sd-action-modal.js +1 -1
  144. package/dist/components/sd-badge.js +1 -1
  145. package/dist/components/sd-barcode-input.js +1 -1
  146. package/dist/components/sd-button.js +1 -1
  147. package/dist/components/sd-calendar.js +1 -1
  148. package/dist/components/sd-card.js +1 -1
  149. package/dist/components/sd-checkbox.js +1 -1
  150. package/dist/components/sd-chip.js +1 -1
  151. package/dist/components/sd-circle-progress.js +1 -1
  152. package/dist/components/sd-confirm-modal.js +1 -1
  153. package/dist/components/sd-date-box.js +1 -1
  154. package/dist/components/sd-date-picker-trigger.js +1 -1
  155. package/dist/components/sd-date-picker.js +1 -1
  156. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  157. package/dist/components/sd-date-range-picker.js +1 -1
  158. package/dist/components/sd-dropdown-button.js +1 -1
  159. package/dist/components/sd-field.js +1 -1
  160. package/dist/components/sd-file-picker.js +1 -1
  161. package/dist/components/sd-floating-portal.js +1 -1
  162. package/dist/components/sd-form.js +1 -1
  163. package/dist/components/sd-ghost-button.js +1 -1
  164. package/dist/components/sd-guide.js +1 -1
  165. package/dist/components/sd-icon.js +1 -1
  166. package/dist/components/sd-input.js +1 -1
  167. package/dist/components/sd-key-value-table.js +1 -1
  168. package/dist/components/sd-linear-progress.js +1 -1
  169. package/dist/components/sd-loading-container.js +1 -1
  170. package/dist/components/sd-loading-modal.js +1 -1
  171. package/dist/components/sd-modal-container.js +1 -1
  172. package/dist/components/sd-number-input.js +1 -1
  173. package/dist/components/sd-pagination.js +1 -1
  174. package/dist/components/sd-popover.js +1 -1
  175. package/dist/components/sd-popup.js +1 -1
  176. package/dist/components/sd-portal.js +1 -1
  177. package/dist/components/sd-radio-button.js +1 -1
  178. package/dist/components/sd-radio-group.js +1 -1
  179. package/dist/components/sd-radio.js +1 -1
  180. package/dist/components/sd-select-list-item-search.js +1 -1
  181. package/dist/components/sd-select-list-item.js +1 -1
  182. package/dist/components/sd-select-listbox.js +1 -1
  183. package/dist/components/sd-select-trigger.js +1 -1
  184. package/dist/components/sd-select.js +1 -1
  185. package/dist/components/sd-switch.js +1 -1
  186. package/dist/components/sd-table.js +1 -1
  187. package/dist/components/sd-tabs.js +1 -1
  188. package/dist/components/sd-tag.js +1 -1
  189. package/dist/components/sd-tbody.js +1 -1
  190. package/dist/components/sd-td.js +1 -1
  191. package/dist/components/sd-text-link.js +1 -1
  192. package/dist/components/sd-textarea.js +1 -1
  193. package/dist/components/sd-thead.js +1 -1
  194. package/dist/components/sd-toast-container.js +1 -1
  195. package/dist/components/sd-toast.js +1 -1
  196. package/dist/components/sd-toggle.js +1 -1
  197. package/dist/components/sd-tooltip.js +1 -1
  198. package/dist/components/sd-tr.js +1 -1
  199. package/dist/design-system/design-system.esm.js +1 -1
  200. package/dist/design-system/{p-1baa05ae.entry.js → p-00b2c850.entry.js} +1 -1
  201. package/dist/design-system/{p-8f22106e.entry.js → p-03badf68.entry.js} +1 -1
  202. package/dist/design-system/{p-f4d73a0c.entry.js → p-11b904a3.entry.js} +1 -1
  203. package/dist/design-system/p-29fd86d8.entry.js +1 -0
  204. package/dist/design-system/{p-78cc0289.entry.js → p-32e2d71e.entry.js} +1 -1
  205. package/dist/design-system/p-36d744fb.entry.js +1 -0
  206. package/dist/design-system/{p-a6545130.entry.js → p-399d416c.entry.js} +1 -1
  207. package/dist/design-system/{p-e2334c1c.entry.js → p-3b8954d9.entry.js} +1 -1
  208. package/dist/design-system/{p-fe0a5368.entry.js → p-42f7febe.entry.js} +1 -1
  209. package/dist/design-system/{p-435ae69e.entry.js → p-481e6934.entry.js} +1 -1
  210. package/dist/design-system/{p-501fae20.entry.js → p-4a91875c.entry.js} +1 -1
  211. package/dist/design-system/p-522d1481.entry.js +1 -0
  212. package/dist/design-system/{p-b3c144ff.entry.js → p-679bce6c.entry.js} +1 -1
  213. package/dist/design-system/{p-5705e6d6.entry.js → p-74bf0ed9.entry.js} +1 -1
  214. package/dist/design-system/{p-87c868c3.entry.js → p-84a94775.entry.js} +1 -1
  215. package/dist/design-system/p-8f4ccae4.entry.js +1 -0
  216. package/dist/design-system/p-92f368a2.entry.js +1 -0
  217. package/dist/design-system/p-9681b0ba.entry.js +1 -0
  218. package/dist/design-system/{p-d3212544.entry.js → p-9b9bf9db.entry.js} +1 -1
  219. package/dist/design-system/{p-2c63404f.entry.js → p-9f7f1b8b.entry.js} +1 -1
  220. package/dist/design-system/p-BGtUaScP.js +1 -0
  221. package/dist/design-system/p-BQn6le_Y.js +1 -0
  222. package/dist/design-system/p-DQFHAKL_.js +1 -0
  223. package/dist/design-system/p-DykVq5VY.js +1 -0
  224. package/dist/design-system/p-TF8_Lyhq.js +1 -0
  225. package/dist/design-system/{p-100f5887.entry.js → p-a640e509.entry.js} +1 -1
  226. package/dist/design-system/{p-b0aad445.entry.js → p-a71d4947.entry.js} +1 -1
  227. package/dist/design-system/{p-fc973500.entry.js → p-a7ea1cf0.entry.js} +1 -1
  228. package/dist/design-system/{p-44d05570.entry.js → p-a97033a2.entry.js} +1 -1
  229. package/dist/design-system/{p-ae2d45a2.entry.js → p-a98f9a29.entry.js} +1 -1
  230. package/dist/design-system/{p-de8bb9ba.entry.js → p-ae117afa.entry.js} +1 -1
  231. package/dist/design-system/{p-5cbaf1db.entry.js → p-c7099e9e.entry.js} +1 -1
  232. package/dist/design-system/{p-8ee990bd.entry.js → p-cc97f4b4.entry.js} +1 -1
  233. package/dist/design-system/{p-04fdb4b1.entry.js → p-d39e515d.entry.js} +1 -1
  234. package/dist/design-system/{p-5ed0becf.entry.js → p-d890a680.entry.js} +1 -1
  235. package/dist/design-system/{p-d30c823e.entry.js → p-dbeaeb31.entry.js} +1 -1
  236. package/dist/design-system/{p-5f1c39b8.entry.js → p-e23dac79.entry.js} +1 -1
  237. package/dist/design-system/{p-857c44e8.entry.js → p-e611dcd4.entry.js} +1 -1
  238. package/dist/design-system/{p-77690440.entry.js → p-e8e64511.entry.js} +1 -1
  239. package/dist/design-system/{p-0fe603a4.entry.js → p-e902a3f4.entry.js} +1 -1
  240. package/dist/design-system/{p-18c5ae1a.entry.js → p-f7074386.entry.js} +1 -1
  241. package/dist/design-system/{p-caee95b0.entry.js → p-fc5c4f85.entry.js} +1 -1
  242. package/dist/design-system/{p-43e97572.entry.js → p-fe3ae346.entry.js} +1 -1
  243. package/dist/esm/component.datepicker-BQn6le_Y.js +119 -0
  244. package/dist/esm/{component.table-BnfUIhUj.js → component.table-DQFHAKL_.js} +3 -0
  245. package/dist/esm/design-system.js +1 -1
  246. package/dist/esm/loader.js +1 -1
  247. package/dist/esm/sd-action-modal.entry.js +1 -1
  248. package/dist/esm/sd-badge.entry.js +1 -1
  249. package/dist/esm/sd-barcode-input.entry.js +1 -1
  250. package/dist/esm/sd-button_2.entry.js +269 -3
  251. package/dist/esm/sd-calendar_2.entry.js +260 -0
  252. package/dist/esm/sd-card.entry.js +1 -1
  253. package/dist/esm/sd-checkbox.entry.js +3 -3
  254. package/dist/esm/sd-chip.entry.js +1 -1
  255. package/dist/esm/sd-circle-progress.entry.js +1 -1
  256. package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
  257. package/dist/esm/sd-date-box.entry.js +2 -2
  258. package/dist/esm/sd-date-picker.config-CGEE3DkI.js +34 -0
  259. package/dist/esm/sd-date-picker_7.entry.js +15 -13
  260. package/dist/esm/sd-date-range-picker-calendar.entry.js +10 -10
  261. package/dist/esm/sd-dropdown-button.entry.js +3 -3
  262. package/dist/esm/sd-field_3.entry.js +7 -7
  263. package/dist/esm/sd-form.entry.js +1 -1
  264. package/dist/esm/sd-ghost-button.entry.js +2 -2
  265. package/dist/esm/sd-guide.entry.js +2 -2
  266. package/dist/esm/sd-key-value-table.entry.js +1 -1
  267. package/dist/esm/sd-linear-progress.entry.js +1 -1
  268. package/dist/esm/sd-loading-container.entry.js +2 -2
  269. package/dist/esm/sd-pagination_4.entry.js +27 -36
  270. package/dist/esm/sd-popover.entry.js +3 -3
  271. package/dist/esm/sd-popup.entry.js +1 -1
  272. package/dist/esm/sd-portal.entry.js +1 -1
  273. package/dist/esm/sd-radio-button.entry.js +1 -1
  274. package/dist/esm/sd-radio.entry.js +1 -1
  275. package/dist/esm/sd-select-list-item_2.entry.js +6 -6
  276. package/dist/esm/sd-select_3.entry.js +8 -8
  277. package/dist/esm/sd-switch.entry.js +1 -1
  278. package/dist/esm/{sd-table.config-B-VgXXT7.js → sd-table.config-DU7Pc6YH.js} +4 -2
  279. package/dist/esm/sd-table.entry.js +25 -27
  280. package/dist/esm/sd-tabs.entry.js +1 -1
  281. package/dist/esm/sd-tag.entry.js +2 -2
  282. package/dist/esm/sd-td.entry.js +18 -9
  283. package/dist/esm/sd-text-link.entry.js +3 -3
  284. package/dist/esm/sd-toast-container.entry.js +1 -1
  285. package/dist/esm/sd-toast.entry.js +2 -2
  286. package/dist/esm/sd-toggle.entry.js +1 -1
  287. package/dist/esm/useDatePicker-D5RmWGOp.js +98 -0
  288. package/dist/types/components/sd-calendar/sd-calendar.config.d.ts +55 -0
  289. package/dist/types/components/sd-calendar/sd-calendar.d.ts +18 -21
  290. package/dist/types/components/sd-date-picker/sd-date-picker.config.d.ts +0 -38
  291. package/dist/types/components/sd-date-range-picker/sd-date-range-picker.config.d.ts +2 -1
  292. package/dist/types/components/sd-table/sd-table.d.ts +1 -1
  293. package/dist/types/components/sd-table/sd-td/sd-td.d.ts +2 -2
  294. package/dist/types/components/sd-table/sd-tr/sd-tr.d.ts +1 -2
  295. package/dist/types/components.d.ts +6 -52
  296. package/dist/types/index.d.ts +4 -3
  297. package/hydrate/index.js +1035 -1110
  298. package/hydrate/index.mjs +1035 -1110
  299. package/package.json +1 -1
  300. package/dist/cjs/resolveColor-B0hzQNLG.js +0 -270
  301. package/dist/cjs/sd-calendar.cjs.entry.js +0 -143
  302. package/dist/cjs/sd-date-picker-calendar_2.cjs.entry.js +0 -219
  303. package/dist/cjs/sd-date-picker.config-CjvrFpYK.js +0 -177
  304. package/dist/cjs/useDatePicker-cK_XK_P6.js +0 -48
  305. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.css +0 -117
  306. package/dist/collection/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.js +0 -246
  307. package/dist/components/p-B6cqMQaM.js +0 -1
  308. package/dist/components/p-BL0ZcHK8.js +0 -1
  309. package/dist/components/p-Bm3W_eBv.js +0 -1
  310. package/dist/components/p-BnfUIhUj.js +0 -1
  311. package/dist/components/p-Ch5Yu1qd.js +0 -1
  312. package/dist/components/p-D5F7wCNo.js +0 -1
  313. package/dist/components/p-DTrMR0rx.js +0 -1
  314. package/dist/components/p-DeQcDHpn.js +0 -1
  315. package/dist/components/p-DfK4DiDI.js +0 -1
  316. package/dist/components/p-DyAnn9ea.js +0 -1
  317. package/dist/components/p-mmdt-WnS.js +0 -1
  318. package/dist/components/sd-date-picker-calendar.d.ts +0 -11
  319. package/dist/components/sd-date-picker-calendar.js +0 -1
  320. package/dist/design-system/p-05611ff7.entry.js +0 -1
  321. package/dist/design-system/p-2a1ef965.entry.js +0 -1
  322. package/dist/design-system/p-66af0ba0.entry.js +0 -1
  323. package/dist/design-system/p-790165f8.entry.js +0 -1
  324. package/dist/design-system/p-80466582.entry.js +0 -1
  325. package/dist/design-system/p-8db7d8f2.entry.js +0 -1
  326. package/dist/design-system/p-B6cqMQaM.js +0 -1
  327. package/dist/design-system/p-BnfUIhUj.js +0 -1
  328. package/dist/design-system/p-Ce0cmS4R.js +0 -1
  329. package/dist/design-system/p-DTrMR0rx.js +0 -1
  330. package/dist/design-system/p-d8c41313.entry.js +0 -1
  331. package/dist/design-system/p-mmdt-WnS.js +0 -1
  332. package/dist/esm/resolveColor-Ce0cmS4R.js +0 -268
  333. package/dist/esm/sd-calendar.entry.js +0 -141
  334. package/dist/esm/sd-date-picker-calendar_2.entry.js +0 -216
  335. package/dist/esm/sd-date-picker.config-B6cqMQaM.js +0 -171
  336. package/dist/esm/useDatePicker-DTrMR0rx.js +0 -45
  337. package/dist/types/components/sd-date-picker/sd-date-picker-calendar/sd-date-picker-calendar.d.ts +0 -26
@@ -1,7 +1,7 @@
1
1
  import { h, Host, readTask, forceUpdate, } from "@stencil/core";
2
2
  import { nanoid } from "nanoid";
3
3
  import { TABLE_ID_ATTR, } from "./constants";
4
- import { TABLE_RADIUS, TABLE_BORDER, TABLE_BODY_TYPOGRAPHY, TABLE_BODY_LAYOUT } from "./sd-table.config";
4
+ import { TABLE_RADIUS, TABLE_BORDER, TABLE_BODY_TYPOGRAPHY, TABLE_BODY_LAYOUT, } from "./sd-table.config";
5
5
  export class SdTable {
6
6
  static DEFAULT_NO_DATA_LABEL = '데이터가 없습니다.';
7
7
  el;
@@ -31,7 +31,9 @@ export class SdTable {
31
31
  get effectiveRowHeight() {
32
32
  if (this.rowHeight != null)
33
33
  return this.rowHeight;
34
- return this.dense ? Number(TABLE_BODY_LAYOUT.dense.height) : Number(TABLE_BODY_LAYOUT.default.height);
34
+ return this.dense
35
+ ? Number(TABLE_BODY_LAYOUT.dense.height)
36
+ : Number(TABLE_BODY_LAYOUT.default.height);
35
37
  }
36
38
  virtualBuffer = 5;
37
39
  virtualEndThreshold = 10;
@@ -225,7 +227,6 @@ export class SdTable {
225
227
  el.unregisterSpanSync = this.unregisterSpanSync.bind(this);
226
228
  el.getSpanSync = this.getSpanSync.bind(this);
227
229
  el.isCoveredSync = this.isCoveredSync.bind(this);
228
- el.isVisualLastRowSync = this.isVisualLastRowSync.bind(this);
229
230
  el.registerSeparatorSync = this.registerSeparatorSync.bind(this);
230
231
  el.unregisterSeparatorSync = this.unregisterSeparatorSync.bind(this);
231
232
  el.isVisualLastRowBeforeSeparatorSync = this.isVisualLastRowBeforeSeparatorSync.bind(this);
@@ -236,6 +237,7 @@ export class SdTable {
236
237
  el.registerUseFrameSync = this.registerUseFrameSync.bind(this);
237
238
  el.unregisterUseFrameSync = this.unregisterUseFrameSync.bind(this);
238
239
  el.hasUseFrameInRowSync = this.hasUseFrameInRowSync.bind(this);
240
+ el.isCellUseFrameSync = this.isCellUseFrameSync.bind(this);
239
241
  if (Array.isArray(this.rows)) {
240
242
  this.rowCount = this.rows.length;
241
243
  this.pushRowsToChildren(this.rows);
@@ -313,8 +315,15 @@ export class SdTable {
313
315
  }
314
316
  });
315
317
  this.noDataContentResizeObserver.observe(target);
316
- const measured = Math.ceil(target.scrollHeight);
317
- this.noDataBodyHeight = Math.max(60, measured);
318
+ readTask(() => {
319
+ if (!this.noDataContentEl)
320
+ return;
321
+ const measured = Math.ceil(this.noDataContentEl.scrollHeight);
322
+ const next = Math.max(60, measured);
323
+ if (next !== this.noDataBodyHeight) {
324
+ this.noDataBodyHeight = next;
325
+ }
326
+ });
318
327
  }
319
328
  // light DOM(manual mode 자식)과 shadow DOM(autoThead/autoTbody fallback) 양쪽 모두에서 자식을 찾는다.
320
329
  queryChildEl(selector) {
@@ -438,6 +447,9 @@ export class SdTable {
438
447
  const fields = this.useFrameRegistry.get(rowKey);
439
448
  return fields != null && fields.size > 0;
440
449
  }
450
+ isCellUseFrameSync(rowKey, field) {
451
+ return this.useFrameRegistry.get(rowKey)?.has(field) ?? false;
452
+ }
441
453
  isRowSelectedSync(row) {
442
454
  return Array.from(this.innerSelected).some(r => r[this.rowKey ?? 'id'] === row[this.rowKey ?? 'id']);
443
455
  }
@@ -709,7 +721,7 @@ export class SdTable {
709
721
  return false;
710
722
  }
711
723
  // rowspan을 반영한 셀의 시각적 하단 행 인덱스를 반환한다.
712
- // isVisualLastRowSync·isVisualLastRowBeforeSeparatorSync 공통 헬퍼.
724
+ // isVisualLastRowBeforeSeparatorSync 헬퍼.
713
725
  resolveVisualBottom(rowKey, field) {
714
726
  const myRowIdx = this.resolveRowIndex(rowKey);
715
727
  if (myRowIdx == null)
@@ -718,20 +730,6 @@ export class SdTable {
718
730
  const rs = Math.max(1, span?.rowspan ?? 1);
719
731
  return myRowIdx + rs - 1;
720
732
  }
721
- // 셀의 시각적 하단이 테이블(또는 현재 페이지)의 마지막 행인지 판정.
722
- // 마지막 행에 border-bottom: none을 적용하기 위함.
723
- isVisualLastRowSync(rowKey, field) {
724
- if (this.rowCount <= 0)
725
- return false;
726
- const visualBottom = this.resolveVisualBottom(rowKey, field);
727
- if (visualBottom == null)
728
- return false;
729
- const pageInfo = this.getPaginationInfoSync();
730
- const lastVisibleIdx = pageInfo
731
- ? Math.min(pageInfo.endIndex - 1, this.rowCount - 1)
732
- : this.rowCount - 1;
733
- return visualBottom === lastVisibleIdx;
734
- }
735
733
  registerSeparatorSync(prevRowKey) {
736
734
  const idx = this.resolveRowIndex(prevRowKey);
737
735
  if (idx != null)
@@ -848,25 +846,25 @@ export class SdTable {
848
846
  '--table-body-line-height': `${TABLE_BODY_TYPOGRAPHY.lineHeight}px`,
849
847
  '--table-body-text-decoration': TABLE_BODY_TYPOGRAPHY.textDecoration,
850
848
  };
851
- return (h(Host, { key: 'f7d92943fcb354f69d99c1e4fd37749cc06185c7', style: hostStyle }, h("div", { key: '53d6ac0eedc2c2a56c05bf5a751be43bc18f9fe7', class: "sd-table__container", style: {
849
+ return (h(Host, { key: '2b7c1eaf862c45c73751af6035a022e8ce0314b4', style: hostStyle }, h("div", { key: '35851e539eef8ff69ff03bd31f5d55d95eb8bf7a', class: "sd-table__container", style: {
852
850
  '--table-width': this.width,
853
851
  '--table-height': effectiveTableHeight,
854
852
  '--table-container-height': `calc(${effectiveTableHeight} - ${paginationHeight}px)`,
855
- } }, h("div", { key: 'b85980b8307b2a50ee1554262d025b58bad42e87', class: {
853
+ } }, h("div", { key: 'e3bf5576fd1b1ee9ffab5d240de904204f4288d5', class: {
856
854
  'sd-table__wrapper': true,
857
855
  'sd-table__wrapper--radius-use-top': this.radius === 'useTop',
858
- } }, h("div", { key: 'acf9816ceaaea06b807056606d684befebe9dcd0', class: {
856
+ } }, h("div", { key: 'a67ebcb802a3ed443cca1fc33a00787642e08e84', class: {
859
857
  'sd-table__scroll-container': true,
860
858
  'sd-table__scroll-container--loading': this.isLoading,
861
859
  'sd-table__scroll-container--no-data': isNoData,
862
- } }, this.isLoading && (h("div", { key: '8a1a18cbf500a8e9ad519438a59e084186d9f339', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '443ffcfb06edbae8ac94be7e8e5a94c1e2b68588', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: '3aefe27935a816df9658ec89adf261d11c0e8e77', class: "sd-table__no-data-header-overlay" }), h("div", { key: 'db89a7d1cbbf041bdd30be9e0a205147073891e2', class: "sd-table__no-data" }, h("div", { key: 'a9bf47e80db21c30ffa651b03b203e5e205134c9', class: "sd-table__no-data-content", ref: el => {
860
+ } }, this.isLoading && (h("div", { key: '2cdaff94dab50598c05364930dd3e763a6f2f79a', class: "sd-table__loading", style: { top: `${this.loadingScrollTop}px` } }, h("sd-circle-progress", { key: '49211d7555a38996d3fd9cfce0df50bb626fa1d6', indeterminate: true }))), isNoData && (h(h.Fragment, null, h("div", { key: '3da9d42ecedbdc63858a06040f0e22d265a8183b', class: "sd-table__no-data-header-overlay" }), h("div", { key: '20b5d8be682572a4ddbce21b6cd265894d014499', class: "sd-table__no-data" }, h("div", { key: 'a024fa084f4a137a70fe176cee6918b4f701fd42', class: "sd-table__no-data-content", ref: el => {
863
861
  this.noDataContentEl = el;
864
862
  if (el)
865
863
  this.syncNoDataContentObserver();
866
- } }, h("slot", { key: '20f0c0b43534ef344864bf2450abb4c2a8fb704b', name: "no-data" }, h("span", { key: 'a19688e4da7961e7c828694124819c4e60a6700f' }, this.resolvedNoDataLabel)))))), h("table", { key: '2b03aa5c5d59e0ac85051f90a022b59b8dbb871a', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
864
+ } }, h("slot", { key: '9603eefa63fd5bc05dfa132c6be2302497d4c228', name: "no-data" }, h("span", { key: '0dad4e143d8251e375f748d1e5e1a77909fab164' }, this.resolvedNoDataLabel)))))), h("table", { key: '83325a8970f18bb9cf7a78dc665d16a24edc18da', class: this.tableClasses }, this.autoThead ? (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange }, h("sd-thead", { rows: this.rows ?? [] }))) : (h("slot", { name: `${resolvedTableId}-head`, onSlotchange: this.handleStructureSlotChange })), this.autoTbody ? (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }, h("sd-tbody", { rows: this.rows ?? [] }, this.renderAutoRows()))) : (h("slot", { name: `${resolvedTableId}-body`, onSlotchange: this.handleStructureSlotChange }))))), this.pagination &&
867
865
  this.pagination.rowsPerPage > 0 &&
868
866
  this.rowCount > 0 &&
869
- !this.useVirtualScroll && (h("div", { key: 'dc4a0132898490ef7e87e26a75fca8e3b2056a49', class: "sd-table__pagination" }, h("sd-pagination", { key: '9030b0965e8d2c1a54fce07cfc4067f49edb2375', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: '0d95ba3138da081d6c15202748ff3db1e23def01', value: this.useInternalPagination
867
+ !this.useVirtualScroll && (h("div", { key: '935b0f916cbc1de29a7f6b3805a5a3c25eaba467', class: "sd-table__pagination" }, h("sd-pagination", { key: '7faad5d0b2efe652a9ed989910551aa8bc5592ec', currentPage: !this.useInternalPagination ? this.pagination.page : this.currentPage, lastPage: !this.useInternalPagination ? this.pagination.lastPage : this.lastPageNumber, onSdPageChange: (e) => this.changePage(e.detail) }), this.useRowsPerPageSelect && (h("sd-select", { key: 'd514c41459a60ac47ffcd476a635c47386232c50', value: this.useInternalPagination
870
868
  ? this.innerRowsPerPage
871
869
  : this.pagination.rowsPerPage, options: this.rowsPerPageOption, width: "128px", emitValue: true, onSdUpdate: e => {
872
870
  if (!this.isRowsPerPageValue(e.detail))
@@ -45,9 +45,9 @@ export class SdTbody {
45
45
  }
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: '5b55bfd73916ff1402329375de1e1fc2a7629cbd', slot: `${this.tableId}-body` }, h("tbody", { key: 'a09a532d1510166a36d592c2e59ec1765803bbbe', class: { tbody: true } }, [
48
+ return (h(Host, { key: 'bdb686445ce324c6254891a385d6175c8cac06df', slot: `${this.tableId}-body` }, h("tbody", { key: '21a7772f0d43a358d9ae17459f0ff296324bfd82', class: { tbody: true } }, [
49
49
  this.topSpacerHeight > 0 && (h("tr", { key: "spacer-top", class: "tbody__spacer", style: { height: `${this.topSpacerHeight}px`, display: 'block' } })),
50
- h("slot", { key: 'da3827a9c2fe7a74ec3cb3eb8dee3ab039ea0535' }),
50
+ h("slot", { key: 'e38d8fe5d67a91d3fa5a25be98195da104660005' }),
51
51
  this.bottomSpacerHeight > 0 && (h("tr", { key: "spacer-bottom", class: "tbody__spacer", style: { height: `${this.bottomSpacerHeight}px`, display: 'block' } })),
52
52
  ])));
53
53
  }
@@ -19,11 +19,13 @@ export class SdTd {
19
19
  this.syncSlotName();
20
20
  this.syncSpanRegistration();
21
21
  this.syncCellClassRegistration(oldField);
22
+ this.syncUseFrameRegistration(oldField);
22
23
  }
23
24
  handleRowKeyChange(_newKey, oldKey) {
24
25
  this.syncSlotName();
25
26
  this.syncSpanRegistration();
26
27
  this.syncCellClassRegistration(undefined, oldKey);
28
+ this.syncUseFrameRegistration(undefined, oldKey);
27
29
  }
28
30
  handleSpanChange() {
29
31
  this.syncSpanRegistration();
@@ -34,15 +36,15 @@ export class SdTd {
34
36
  handleDividerChange() {
35
37
  this.syncCellClassRegistration();
36
38
  }
37
- handleUseFieldChange() {
38
- this.syncUseFieldRegistration();
39
+ handleUseFrameChange() {
40
+ this.syncUseFrameRegistration();
39
41
  this.requestParentTrUpdate();
40
42
  }
41
43
  componentWillLoad() {
42
44
  this.syncSlotName();
43
45
  this.syncSpanRegistration();
44
46
  this.syncCellClassRegistration();
45
- this.syncUseFieldRegistration();
47
+ this.syncUseFrameRegistration();
46
48
  // slot 타이밍 엇갈림 대응: 부모 sd-tr forceUpdate로 슬롯 재매칭
47
49
  const parentTr = this.el.parentElement;
48
50
  if (parentTr?.tagName?.toLowerCase() === 'sd-tr') {
@@ -53,7 +55,7 @@ export class SdTd {
53
55
  this.syncSlotName();
54
56
  this.syncSpanRegistration();
55
57
  this.syncCellClassRegistration();
56
- this.syncUseFieldRegistration();
58
+ this.syncUseFrameRegistration();
57
59
  }
58
60
  // React StrictMode에서는 disconnect/reconnect 사이클이 일어나면서
59
61
  // 동일 인스턴스의 componentWillLoad는 더 이상 호출되지 않는다.
@@ -61,7 +63,7 @@ export class SdTd {
61
63
  connectedCallback() {
62
64
  this.syncSpanRegistration();
63
65
  this.syncCellClassRegistration();
64
- this.syncUseFieldRegistration();
66
+ this.syncUseFrameRegistration();
65
67
  }
66
68
  disconnectedCallback() {
67
69
  const table = this.findTable();
@@ -118,9 +120,16 @@ export class SdTd {
118
120
  table.registerCellClassSync(String(this.rowKey), this.field, combinedClass);
119
121
  this.requestParentTrUpdate();
120
122
  }
121
- syncUseFieldRegistration() {
123
+ syncUseFrameRegistration(prevField, prevRowKey) {
122
124
  const table = this.findTable();
123
- if (!table || this.field === '' || this.rowKey == null)
125
+ if (!table)
126
+ return;
127
+ const oldField = prevField ?? this.field;
128
+ const oldRowKey = prevRowKey ?? (this.rowKey != null ? String(this.rowKey) : undefined);
129
+ if (oldField !== '' && oldRowKey != null) {
130
+ table.unregisterUseFrameSync?.(oldRowKey, oldField);
131
+ }
132
+ if (this.field === '' || this.rowKey == null)
124
133
  return;
125
134
  if (this.useFrame) {
126
135
  table.registerUseFrameSync?.(String(this.rowKey), this.field);
@@ -141,7 +150,7 @@ export class SdTd {
141
150
  }
142
151
  }
143
152
  render() {
144
- return (h(Host, { key: 'ececfaf265a550ee38c5c2cc2ddd2875352deb10', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: 'c4a43f9affc1938d882e63e91ac90d570efffa37' })));
153
+ return (h(Host, { key: '505b602b609050870e7e80df9157dbc50d0cb8c1', class: { [`align-${this.align}`]: Boolean(this.align) } }, h("slot", { key: '9910f02d98ce5e115b2a380954dd0a994f9f1c12' })));
145
154
  }
146
155
  static get is() { return "sd-td"; }
147
156
  static get originalStyleUrls() {
@@ -357,7 +366,7 @@ export class SdTd {
357
366
  "methodName": "handleDividerChange"
358
367
  }, {
359
368
  "propName": "useFrame",
360
- "methodName": "handleUseFieldChange"
369
+ "methodName": "handleUseFrameChange"
361
370
  }];
362
371
  }
363
372
  }
@@ -157,16 +157,16 @@ export class SdThead {
157
157
  '--table-border-color': TABLE_BORDER.color,
158
158
  '--table-border-width': `${TABLE_BORDER.width}px`,
159
159
  };
160
- return (h(Host, { key: '424fa72b833a94bce945ae50e8445cbed0527025', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '1a5704d78992b553c5db5ba92bb3814de7c19898', class: {
160
+ return (h(Host, { key: 'c2852fc7d6fe9e8116fabbbcc140f4db8319bfdc', slot: `${this.tableId}-head`, style: headStyle }, h("thead", { key: '970cb1c96145326f38b79636a72982b0e9c81fa0', class: {
161
161
  'thead': true,
162
162
  'thead--sticky': this._stickyHeader,
163
- } }, h("tr", { key: '1369ff7c99a5691bcd5fa54af4f7c02ff41dceb3', class: "tr" }, this._selectable && (h("th", { key: '72159c6f8ef28b0b93790e180cb9b12345727525', class: {
163
+ } }, h("tr", { key: '839fb6e9fd68ef10dea1f1d470a6b3e707475a8d', class: "tr" }, this._selectable && (h("th", { key: 'd669372261627013bc1b39157139d180b3d1a6c1', class: {
164
164
  'th': true,
165
165
  'th--selected': true,
166
166
  'sticky-left': true,
167
167
  'sticky-left-edge': stickyLeftCount === 0,
168
168
  'is-scrolled-left': stickyLeftCount === 0 && this._scrolledLeft,
169
- }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '1c5c035346fc6d13d956475480374a8bd93d3d6d', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
169
+ }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { key: '6263984430b4aa53e6ac24fb0f6a6c05838a71d5', value: this.getIsAllChecked(), disabled: safeRows.length === 0, onSdUpdate: (e) => this.handleSelectAll(e.detail) }))), stickyLeftCols.map((col, idx) => (h("th", { key: col.name, class: {
170
170
  'th': true,
171
171
  [`${col.thClass}`]: Boolean(col.thClass),
172
172
  'sticky-left': true,
@@ -14,6 +14,9 @@ sd-tr * {
14
14
  .tr--no-hover:hover .td {
15
15
  background-color: white;
16
16
  }
17
+ .tr--separator:hover .td {
18
+ background-color: var(--table-separator-color, #eeeeee);
19
+ }
17
20
 
18
21
  .td {
19
22
  display: table-cell;
@@ -118,8 +121,9 @@ sd-tr * {
118
121
  background-color: white;
119
122
  }
120
123
 
121
- .td.td--last-row {
122
- border-bottom: none;
124
+ .tr--separator:hover .td.sticky-left,
125
+ .tr--separator:hover .td.sticky-right {
126
+ background-color: var(--table-separator-color, #eeeeee);
123
127
  }
124
128
 
125
129
  .tr--separator .td--separator {
@@ -170,6 +170,13 @@ export class SdTr {
170
170
  const fieldName = typeof col.field === 'string' ? col.field : col.name;
171
171
  return this.tableEl.getCellClassSync(this.rowKey, fieldName);
172
172
  }
173
+ getFramePaddingStyle(field) {
174
+ if (!this._dense)
175
+ return undefined;
176
+ if (!(this.tableEl?.isCellUseFrameSync?.(this.rowKey, field) ?? false))
177
+ return undefined;
178
+ return { padding: `${TABLE_BODY_LAYOUT.framePadding}px` };
179
+ }
173
180
  expandCellClass(classStr) {
174
181
  if (classStr == null || classStr === '')
175
182
  return {};
@@ -178,20 +185,6 @@ export class SdTr {
178
185
  .filter(Boolean)
179
186
  .map(c => [c, true]));
180
187
  }
181
- isVisualLastRow(col) {
182
- if (!this.tableEl?.isVisualLastRowSync)
183
- return false;
184
- const fieldName = typeof col.field === 'string' ? col.field : col.name;
185
- return this.tableEl.isVisualLastRowSync(this.rowKey, fieldName);
186
- }
187
- // selectable td는 column 정보가 없으므로 빈 field로 평가한다.
188
- // 해당 위치는 rowspan을 등록할 수 없으므로 spanRegistry에 매칭이 없고,
189
- // 결과적으로 "내 row 자체가 시각적 마지막인지"가 판정된다.
190
- isVisualLastRowForSelfRow() {
191
- if (!this.tableEl?.isVisualLastRowSync)
192
- return false;
193
- return this.tableEl.isVisualLastRowSync(this.rowKey, '');
194
- }
195
188
  isVisualLastRowBeforeSeparator(col) {
196
189
  if (!this.tableEl?.isVisualLastRowBeforeSeparatorSync)
197
190
  return false;
@@ -212,12 +205,13 @@ export class SdTr {
212
205
  const hasRowspan = this.tableEl?.hasRowspanSync?.() ?? false;
213
206
  const isUseFrameRow = this.tableEl?.hasUseFrameInRowSync?.(this.rowKey) ?? false;
214
207
  const effectiveDense = this._dense && !isUseFrameRow;
215
- const bodyLayout = effectiveDense ? TABLE_BODY_LAYOUT.dense : TABLE_BODY_LAYOUT.default;
208
+ const rowLayoutY = effectiveDense ? TABLE_BODY_LAYOUT.dense : TABLE_BODY_LAYOUT.default;
209
+ const rowPaddingX = this._dense && isUseFrameRow ? TABLE_BODY_LAYOUT.paddingX : TABLE_BODY_LAYOUT.paddingX;
216
210
  const rowStyle = {
217
211
  'display': this.isVisible ? '' : 'none',
218
- '--table-body-height': `${bodyLayout.height}px`,
219
- '--table-body-padding-y': `${bodyLayout.paddingY}px`,
220
- '--table-body-padding-x': `${TABLE_BODY_LAYOUT.paddingX}px`,
212
+ '--table-body-height': `${rowLayoutY.height}px`,
213
+ '--table-body-padding-y': `${rowLayoutY.paddingY}px`,
214
+ '--table-body-padding-x': `${rowPaddingX}px`,
221
215
  '--table-body-font-family': TABLE_BODY_TYPOGRAPHY.fontFamily,
222
216
  '--table-body-font-weight': TABLE_BODY_TYPOGRAPHY.fontWeight,
223
217
  '--table-body-font-size': `${TABLE_BODY_TYPOGRAPHY.fontSize}px`,
@@ -235,7 +229,6 @@ export class SdTr {
235
229
  return (h(Host, { style: rowStyle }, h("tr", { class: { 'tr': true, 'tr--no-hover': hasRowspan } }, this._selectable && (h("td", { class: {
236
230
  'td': true,
237
231
  'td--selected': true,
238
- 'td--last-row': this.isVisualLastRowForSelfRow(),
239
232
  'td--before-separator': this.isVisualLastRowBeforeSeparatorForSelfRow(),
240
233
  'sticky-left': true,
241
234
  'sticky-left-edge': stickyLeftCount === 0,
@@ -243,19 +236,19 @@ export class SdTr {
243
236
  }, style: { '--sticky-left-offset': '0px' } }, h("sd-checkbox", { value: this.isSelected(), onSdUpdate: () => this.handleSelect() }))), stickyLeftCols.map((col, idx) => {
244
237
  if (this.isCovered(idx))
245
238
  return null;
239
+ const fieldName = typeof col.field === 'string' ? col.field : col.name;
246
240
  const span = this.getSpanFor(col);
247
241
  const sdCellClass = this.getCellClassFor(col);
248
242
  return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
249
243
  'td': true,
250
244
  [`td--${col.align || 'left'}`]: true,
251
- 'td--last-row': this.isVisualLastRow(col),
252
245
  'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
253
246
  'sticky-left': true,
254
247
  'sticky-left-edge': idx === stickyLeftCount - 1,
255
248
  'is-scrolled-left': idx === stickyLeftCount - 1 && this._scrolledLeft,
256
249
  [`${col.tdClass}`]: Boolean(col.tdClass),
257
250
  ...this.expandCellClass(sdCellClass),
258
- }, style: this.getStickyStyle(idx) }, h("slot", { name: `${this.tableId}-${typeof col.field === 'string' ? col.field : col.name}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
251
+ }, style: { ...this.getStickyStyle(idx), ...this.getFramePaddingStyle(fieldName) } }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
259
252
  }), middleCols.map((col, relativeIdx) => {
260
253
  const actualColIdx = stickyLeftCount + relativeIdx;
261
254
  if (this.isCovered(actualColIdx))
@@ -266,11 +259,10 @@ export class SdTr {
266
259
  return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
267
260
  'td': true,
268
261
  [`td--${col.align || 'left'}`]: true,
269
- 'td--last-row': this.isVisualLastRow(col),
270
262
  'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
271
263
  [`${col.tdClass}`]: Boolean(col.tdClass),
272
264
  ...this.expandCellClass(sdCellClass),
273
- }, style: this.getStickyStyle(actualColIdx) }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
265
+ }, style: { ...this.getStickyStyle(actualColIdx), ...this.getFramePaddingStyle(fieldName) } }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
274
266
  }), stickyRightCols.map((col, relativeIdx) => {
275
267
  const actualColIdx = this.visibleColumns.length - stickyRightCount + relativeIdx;
276
268
  if (this.isCovered(actualColIdx))
@@ -281,14 +273,13 @@ export class SdTr {
281
273
  return (h("td", { key: col.name, rowSpan: span?.rowspan, colSpan: span?.colspan, class: {
282
274
  'td': true,
283
275
  [`td--${col.align || 'left'}`]: true,
284
- 'td--last-row': this.isVisualLastRow(col),
285
276
  'td--before-separator': this.isVisualLastRowBeforeSeparator(col),
286
277
  'sticky-right': true,
287
278
  'sticky-right-edge': relativeIdx === 0,
288
279
  'is-scrolled-right': relativeIdx === 0 && this._scrolledRight,
289
280
  [`${col.tdClass}`]: Boolean(col.tdClass),
290
281
  ...this.expandCellClass(sdCellClass),
291
- }, style: this.getStickyStyle(actualColIdx) }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
282
+ }, style: { ...this.getStickyStyle(actualColIdx), ...this.getFramePaddingStyle(fieldName) } }, h("slot", { name: `${this.tableId}-${fieldName}-${this.rowKey}` }, h("span", null, this.getCellValue(col)))));
292
283
  }))));
293
284
  }
294
285
  static get is() { return "sd-tr"; }
@@ -67,7 +67,7 @@ export class SdTabs {
67
67
  };
68
68
  }
69
69
  render() {
70
- return (h("div", { key: 'dd4377850ef052d22b6eb790b7766a3521a41c1c', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
70
+ return (h("div", { key: '880f1aa80c29f2d578ffe2d5e5e5e0c008c898d3', class: this.getContainerClasses(), style: this.buildCssVars() }, this.tabs.map((tab, index) => {
71
71
  const badgeName = this.getBadgeName(tab);
72
72
  return (h("div", { key: `tab-${index}`, role: "tab", tabindex: 0, "aria-selected": tab.value === this.value ? 'true' : 'false', class: this.getTabClasses(tab), "aria-label": tab.label || 'tab', onClick: () => this.handleTabClick(tab), onKeyDown: e => {
73
73
  if (e.key === 'Enter' || e.key === ' ') {
@@ -25,7 +25,7 @@ export class SdTag {
25
25
  render() {
26
26
  const config = this.resolvedConfig;
27
27
  const iconNode = this.renderIcon(config.icon, config.iconSize);
28
- return (h("span", { key: 'bcf16350c162da2907ddf4ac53924d016a2457dd', class: "sd-tag", style: {
28
+ return (h("span", { key: '57f3c3f9ad53059fabff205cb44ffa3d1da9a711', class: "sd-tag", style: {
29
29
  '--sd-tag-background': config.background,
30
30
  '--sd-tag-content': config.content,
31
31
  '--sd-tag-height': config.height,
@@ -35,7 +35,7 @@ export class SdTag {
35
35
  '--sd-tag-font-weight': config.fontWeight,
36
36
  '--sd-tag-line-height': config.lineHeight,
37
37
  '--sd-tag-radius': config.radius,
38
- }, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '248f9d8df1ff10af3c533580203cac1f816d8000', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
38
+ }, "aria-label": this.label || 'tag' }, this.icon && this.isLeft && iconNode, h("span", { key: '3360f36d18f073cd24699b6b8db2e731fda351ac', class: "sd-tag__label" }, this.label), this.icon && !this.isLeft && iconNode));
39
39
  }
40
40
  static get is() { return "sd-tag"; }
41
41
  static get originalStyleUrls() {
@@ -27,7 +27,7 @@ export class SdTextLink {
27
27
  '--sd-text-link-text-decoration': typo.textDecoration,
28
28
  ...(this.disabled ? { '--sd-text-link-color': TEXT_LINK_COLORS.content.disabled } : {}),
29
29
  };
30
- return (h("span", { key: '284a073ec6aca3ad91bffe084c3b84813df58772', role: "button", tabindex: this.disabled ? -1 : 0, class: {
30
+ return (h("span", { key: '11d2153cc91818c1214e21ffa14bd08249ad1116', role: "button", tabindex: this.disabled ? -1 : 0, class: {
31
31
  'sd-text-link': true,
32
32
  'sd-text-link--disabled': this.disabled,
33
33
  }, style: cssVars, onClick: this.handleClick, onKeyDown: e => {
@@ -35,13 +35,13 @@ export class SdTextLink {
35
35
  e.preventDefault();
36
36
  this.handleClick();
37
37
  }
38
- } }, this.icon && (h("sd-icon", { key: '1e2021703a766769aa647f418fb4b287039d58a5', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: 'a25f207b8bf5bc2c221f0b370159b61ba2f27040', class: labelClassName }, this.label), this.useArrow && (h("span", { key: 'f273671ee796224bada0d2d27fc58ff893c433e7', class: "sd-text-link__arrow", style: {
38
+ } }, this.icon && (h("sd-icon", { key: '23972d53b4968c9bdef9b54dfa785e658ba117ef', name: this.icon, size: TEXT_LINK_LAYOUT.iconSize, color: iconColor, class: "sd-text-link__icon" })), h("span", { key: '5e99a6c1151093929086ec4398b93d7db590d959', class: labelClassName }, this.label), this.useArrow && (h("span", { key: 'b814759278cefe229a5321556374438f281ce0f3', class: "sd-text-link__arrow", style: {
39
39
  width: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
40
40
  height: `${TEXT_LINK_LAYOUT.arrowFrame}px`,
41
41
  display: 'inline-flex',
42
42
  alignItems: 'center',
43
43
  justifyContent: 'center',
44
- } }, h("sd-icon", { key: '2e499bf0c1cd57d1ffb90999daa1c38d0cf43df8', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
44
+ } }, h("sd-icon", { key: 'dfe3286eaeef9a176f5ff1a69950713e2712a550', name: "chevronRight", size: TEXT_LINK_LAYOUT.arrowIconSize, color: arrowColor })))));
45
45
  }
46
46
  static get is() { return "sd-text-link"; }
47
47
  static get originalStyleUrls() {
@@ -105,7 +105,7 @@ export class SdTextarea {
105
105
  '--sd-system-size-field-sm-height': 'auto',
106
106
  '--sd-system-radius-field-sm': `${TEXTAREA_TOKENS.radius}px`,
107
107
  };
108
- return (h("sd-field", { key: '64595853405ae2a66231229516e93a74a4340ef0', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'b7cddedc733c83d4c50234559c02c5f220634008', class: "sd-textarea__content" }, h("textarea", { key: '2d1b852e6ba7b913901c07fce36ce30598f15e12', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
108
+ return (h("sd-field", { key: '404175c94949c2510082df905c53e97ab835369c', name: this.name, label: this.label, labelWidth: this.labelWidth, addonLabel: this.addonLabel, addonAlign: this.addonAlign, hint: this.hint, errorMessage: this.errorMessage, width: this.width, rules: this.rules, error: this.error, disabled: this.disabled, readonly: this.readonly, focused: this.focused, hovered: this.hovered, status: this.status, icon: this.icon, labelTooltip: this.labelTooltip, labelTooltipProps: this.labelTooltipProps, ref: el => (this.formField = el), onMouseEnter: () => (this.hovered = true), onMouseLeave: () => (this.hovered = false), style: cssVars }, h("div", { key: 'ca92dfe613b2c006ecc4021bb2f07a2e4b04239a', class: "sd-textarea__content" }, h("textarea", { key: 'a6d2bbdb9c88766182728cf3eb30ce7691fb048f', name: this.name, ref: el => (this.nativeEl = el), class: `sd-textarea__native ${this.textareaClass}`, value: this.internalValue || '', placeholder: this.placeholder ?? '입력해 주세요.', disabled: this.disabled, readOnly: this.readonly, autofocus: this.autoFocus, maxLength: this.maxLength, rows: this.rows, spellcheck: this.spellcheck, onInput: this.handleInput, onFocus: event => this.handleFocus('focus', event), onBlur: event => this.handleFocus('blur', event), style: this.textareaStyle }))));
109
109
  }
110
110
  static get is() { return "sd-textarea"; }
111
111
  static get originalStyleUrls() {
@@ -17,12 +17,12 @@ export class SdToast {
17
17
  const linkColor = typeConfig.linkColor ?? typeConfig.content;
18
18
  const useDefaultCloseIntent = ['default', 'caution', 'info'].includes(this.type);
19
19
  const buttonName = TOAST_BUTTON_NAME_BY_TYPE[this.type] ?? TOAST_BUTTON_NAME_BY_TYPE.default;
20
- return (h("div", { key: 'edab2d1d8ac8222a988d38279f1a002281454f51', style: {
20
+ return (h("div", { key: 'db3ffaf51dc96c39c05558017f25929c679a59df', style: {
21
21
  '--sd-toast-bg': typeConfig.bg,
22
22
  '--sd-toast-text': typeConfig.content,
23
23
  '--sd-toast-icon': iconColor,
24
24
  '--sd-toast-link': linkColor,
25
- } }, h("div", { key: '8dd98dd58cdf003ce031e5ae96b749a037333ce1', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '2b78cbc4fe96cc00d444fb49956da1fe245993ef', class: "sd-toast__icon" }, h("sd-icon", { key: '679852c9a19046ce1d2c9a0cdb4346f6e23c77fb', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: '2798bd2392e9fc3c4c0375d894572da13d3d7e25', class: "sd-toast__content" }, h("span", { key: '76ab798742baa63b21bda60867cbeb5aa20f7957', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '6eb61ca5737f9af06ad63cfcef671e46ecc8de47', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: '6c1ad7d494c7cc218b1058fec1ed3e42af0c83fc', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: '32dd9adcc951a3a852bf20540376bd4d7ced7526', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
25
+ } }, h("div", { key: '92344f5bb95b0d4787591207f2e017d7dd177091', class: "sd-toast", role: "status", "aria-live": "polite", "aria-atomic": "true" }, this.icon && (h("div", { key: '991db58b2cb019dd3a787e000e9d8813014bbb09', class: "sd-toast__icon" }, h("sd-icon", { key: '24d53cd77fdea82ec07663a8968493ec2b794751', name: this.icon, size: iconSize, color: iconColor }))), h("div", { key: '70cfad4ef389cca798be9baeac99bfc41efcc615', class: "sd-toast__content" }, h("span", { key: '5927023435b17dc25ee07630fc4ae4568aadd9b9', class: "sd-toast__message" }, this.message)), this.link && (h("a", { key: '410c024fd81ebcc78175c1855a86f590566d1a81', href: this.link, class: "sd-toast__link", target: "_blank", rel: "noopener noreferrer" }, this.linkLabel || this.link)), this.buttonLabel && (h("sd-button", { key: 'd85287e7ef796a11f850a0ce5cde87f5881fa5c9', class: "sd-toast__button", name: buttonName, label: this.buttonLabel, onSdClick: (event) => this.buttonClick.emit(event.detail) })), this.useClose && (h("sd-ghost-button", { key: '55a6bf6457bd89254f6eb01072d46a0edbb8b510', class: "sd-toast__close", icon: "close", intent: useDefaultCloseIntent ? 'default' : 'inverse', ariaLabel: "close", size: "xs", onClick: () => this.close.emit() })))));
26
26
  }
27
27
  static get is() { return "sd-toast"; }
28
28
  static get originalStyleUrls() {
@@ -216,7 +216,7 @@ export class SdToastContainer {
216
216
  const activeToasts = toasts.filter(t => t.state !== 'exiting').reverse();
217
217
  const indexMap = new Map();
218
218
  activeToasts.forEach((t, i) => indexMap.set(t.id, i));
219
- return (h("div", { key: '4cf4413f350c2a1adc475c567d874252b1786e91', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
219
+ return (h("div", { key: 'bc3c9591b6453eed7df462841e29784c29b3aeef', class: "sd-toast-container", style: this.getContainerStyles(), onMouseEnter: () => {
220
220
  this.expanded = true;
221
221
  this.pauseTimers();
222
222
  }, onMouseLeave: () => {
@@ -45,7 +45,7 @@ export class SdToggle {
45
45
  '--sd-toggle-content-select': TOGGLE_COLORS.content.select,
46
46
  '--sd-toggle-content-disabled': TOGGLE_COLORS.content.disabled,
47
47
  };
48
- return (h("label", { key: '0b8273ed8f8efae70de32b92671bbd1353e877dc', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '2ec9909142463f8ba556ad885cb7f97bedad6b31', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
48
+ return (h("label", { key: 'b16577aa25863a9dc337314d9059328799c1cd1e', class: this.toggleClasses, style: cssVars, "aria-label": this.label || 'toggle' }, this.label, h("input", { key: '6130825b74df8a573f4e062671fd694508759e82', style: { display: 'none' }, type: "checkbox", onInput: this.handleChange })));
49
49
  }
50
50
  static get is() { return "sd-toggle"; }
51
51
  static get originalStyleUrls() {
@@ -84,14 +84,14 @@ export class SdTooltip {
84
84
  const hasLabel = this.label !== undefined && this.label !== '';
85
85
  const divTrigger = trigger === 'hover' ? hoverTrigger : hasLabel ? {} : { onClick: toggleTooltip };
86
86
  const buttonClickTrigger = trigger === 'click' && hasLabel ? { onSdClick: toggleTooltip } : {};
87
- return (h(Fragment, { key: 'cd01d5f5e9c1c542268d455d97b1bdfe1a2eef2c' }, h("div", { key: '2b883efa4f4ea16b2a544fc43059a139f68e32c1', class: `sd-tooltip-trigger ${this.sdClass !== undefined && this.sdClass !== '' ? this.sdClass : ''}`, ...divTrigger }, hasLabel ? (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-tooltip", ...buttonClickTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (h("sd-floating-portal", { key: '4d69c1582c3a2fab1fae2e29a4b41999d5dded95', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.tooltipOffset }, h("div", { key: '8e94b33ba40231b26174b28a63d7748649f4d729', ref: el => (this.menuEl = el), class: {
87
+ return (h(Fragment, { key: 'ef33f9f183820d684f2805e40134a81f7149fc16' }, h("div", { key: 'dd931825c55b0ee748c7ef45f15be0d6de37ad23', class: `sd-tooltip-trigger ${this.sdClass !== undefined && this.sdClass !== '' ? this.sdClass : ''}`, ...divTrigger }, hasLabel ? (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-tooltip", ...buttonClickTrigger })) : (h("sd-icon", { ref: el => (this.buttonEl = el), name: icon, size: this.iconSize ?? 12, color: color, class: "sd-tooltip" }))), this.showTooltip && (h("sd-floating-portal", { key: '443dbbe8f0b9a66aaae9b8482a3f615d2d41e8ec', parentRef: this.buttonEl, onSdClose: this.handleClose, placement: placement, offset: this.tooltipOffset }, h("div", { key: '040bde0321b1fd35014db976aeaddc515d87c807', ref: el => (this.menuEl = el), class: {
88
88
  'sd-floating-menu': true,
89
89
  [`sd-floating-menu--${tooltipType}`]: true,
90
90
  [`sd-floating-menu--${placement}`]: true,
91
91
  }, style: {
92
92
  '--sd-floating-bg': typeConfig.bg,
93
93
  '--sd-floating-content': typeConfig.content,
94
- }, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, h("i", { key: '535deacc918ec41135ff1c1e24ea5b32b59a4b54', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: 'c2c70e6360e78f7287acd40a815c558610bf66fa' })), h("div", { key: '9569fbe5648df9c74e7d00b28f91fe8dfa6f6df3', class: "sd-floating-menu__content", innerHTML: this.slotContentHTML }))))));
94
+ }, onMouseEnter: () => this.show(), onMouseLeave: () => this.startHideTimer() }, h("i", { key: 'e802c09cc13ec3db29704197fa402588bf97d670', class: `sd-floating-menu__arrow sd-floating-menu__arrow--${placement}` }, h(TooltipArrow, { key: 'b698fbdba2cee74955f65ed7b04abeea8ccabee5' })), h("div", { key: '97e856c543a8cdb880daae9ed0e461f5fd0f2b44', class: "sd-floating-menu__content", innerHTML: this.slotContentHTML }))))));
95
95
  }
96
96
  static get is() { return "sd-tooltip"; }
97
97
  static get originalStyleUrls() {
@@ -8,5 +8,5 @@
8
8
  * to consume components of this package as outlined in the `README.md`.
9
9
  */
10
10
  export { sdToast } from './utils/toast';
11
- export { sdModal, _createSdModalRef, _attachSdModalWithRef, } from './utils/modal';
11
+ export { sdModal, _createSdModalRef, _attachSdModalWithRef } from './utils/modal';
12
12
  export { sdLoading } from './utils/loading';
@@ -0,0 +1 @@
1
+ import{p as e,H as s,c as t,h as i,t as a}from"./p-BjkROjjt.js";import{n as d}from"./p-CCwNgVmC.js";import{d as o,D as l,a as r}from"./p-JlZdKw4C.js";import{d as n}from"./p-VuxN5d2D.js";import{d as h}from"./p-CETxX4-M.js";import{d as c}from"./p-CpgTSxf0.js";import{d as p}from"./p-CIUE4qr7.js";import{d as m}from"./p-D7nYP2a4.js";import{d as b}from"./p-BSfu4DO2.js";import{d as u}from"./p-DlREBZ-C.js";import{d as f}from"./p-Z5Vk33zf.js";const g=e(class e extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.update=t(this,"sdUpdate",7),this.viewChange=t(this,"sdViewChange",7)}static CLOSE_ANIMATION_DURATION=150;get el(){return this}value=null;size="sm";placeholder="YYYY-MM-DD";selectable;disabled=!1;width="";label="";labelWidth="";addonLabel="";addonAlign="start";hint="";errorMessage="";rules=[];error=!1;icon=void 0;labelTooltip="";labelTooltipProps=null;isOpen=!1;isAnimatingOut=!1;focused=!1;hovered=!1;update;viewChange;triggerRef;formField;closeAnimationTimer;name=d();watchIsOpen(e){this.focused=e}async sdValidate(){return this.formField?.sdValidate()}async sdReset(){return this.formField?.sdReset()}async sdResetValidate(){return this.formField?.sdResetValidation()}closeDropdown(){this.isOpen&&(this.isOpen=!1,this.isAnimatingOut=!0,this.closeAnimationTimer&&clearTimeout(this.closeAnimationTimer),this.closeAnimationTimer=setTimeout((()=>{this.isAnimatingOut=!1}),e.CLOSE_ANIMATION_DURATION))}handleTriggerClick=()=>{this.disabled||(this.isOpen?this.closeDropdown():(this.closeAnimationTimer&&clearTimeout(this.closeAnimationTimer),this.isAnimatingOut=!1,this.isOpen=!0))};handleSelect=e=>{e.stopPropagation(),this.closeDropdown(),this.value=e.detail;const s=this.value;requestAnimationFrame((()=>{this.update.emit(s)}))};handleViewChange=e=>{this.viewChange.emit(e.detail)};disconnectedCallback(){this.closeAnimationTimer&&clearTimeout(this.closeAnimationTimer)}render(){const e=r[this.size]??r.sm;return i("sd-field",{key:"825c845ea1ada63a9f21cfc43aad04a598325c13",name:this.name,label:this.label,labelWidth:this.labelWidth,addonLabel:this.addonLabel,addonAlign:this.addonAlign,hint:this.hint,errorMessage:this.errorMessage,width:this.width,rules:this.rules,error:this.error,disabled:this.disabled,focused:this.focused,hovered:this.hovered,size:this.size,icon:this.icon,labelTooltip:this.labelTooltip,labelTooltipProps:this.labelTooltipProps,ref:e=>this.formField=e,onMouseEnter:()=>this.hovered=!0,onMouseLeave:()=>this.hovered=!1,style:{"--sd-system-size-field-sm-height":`${e.height}px`,"--sd-system-radius-field-sm":`${e.radius}px`,"--sd-system-color-field-border-default":l.border.default,"--sd-system-color-field-border-focus":l.border.focus,"--sd-system-color-field-bg-default":l.bg.default}},i("div",{key:"b9dd1a8df29f340ad67331dbebd3ec71b79d128a",class:"sd-date-picker",ref:e=>{this.triggerRef=e}},i("sd-date-picker-trigger",{key:"b9bed57fa4a2b06b004ec5a1b723ed5af25fda19",displayText:this.value??"",placeholder:this.placeholder,disabled:this.disabled,size:this.size,onSdTriggerClick:this.handleTriggerClick})),(this.isOpen||this.isAnimatingOut)&&i("sd-portal",{key:"776e0ce183edd9c7903ce1a75208addc47c20408",open:this.isOpen,parentRef:this.triggerRef,onSdClose:()=>this.closeDropdown()},i("sd-calendar",{key:"f86b502f6b17ee9ff262c1a64e1b0e24defc1660",value:this.value,selectable:this.selectable,onSdUpdate:this.handleSelect,onSdViewChange:this.handleViewChange})))}static get watchers(){return{isOpen:[{watchIsOpen:0}]}}static get style(){return"sd-date-picker{display:inline-flex}sd-date-picker sd-portal{display:none}sd-date-picker .sd-date-picker{position:relative;width:100%;height:100%}"}},[512,"sd-date-picker",{value:[1025],size:[513],placeholder:[513],selectable:[16],disabled:[516],width:[8],label:[1],labelWidth:[8,"label-width"],addonLabel:[1,"addon-label"],addonAlign:[1,"addon-align"],hint:[1],errorMessage:[1,"error-message"],rules:[16],error:[1028],icon:[16],labelTooltip:[1,"label-tooltip"],labelTooltipProps:[16],name:[1],isOpen:[32],isAnimatingOut:[32],focused:[32],hovered:[32],sdValidate:[64],sdReset:[64],sdResetValidate:[64]},void 0,{isOpen:[{watchIsOpen:0}]}]);function k(){"undefined"!=typeof customElements&&["sd-date-picker","sd-button","sd-calendar","sd-date-picker-trigger","sd-field","sd-floating-portal","sd-ghost-button","sd-icon","sd-portal","sd-tooltip"].forEach((e=>{switch(e){case"sd-date-picker":customElements.get(a(e))||customElements.define(a(e),g);break;case"sd-button":customElements.get(a(e))||n();break;case"sd-calendar":customElements.get(a(e))||h();break;case"sd-date-picker-trigger":customElements.get(a(e))||o();break;case"sd-field":customElements.get(a(e))||c();break;case"sd-floating-portal":customElements.get(a(e))||p();break;case"sd-ghost-button":customElements.get(a(e))||m();break;case"sd-icon":customElements.get(a(e))||b();break;case"sd-portal":customElements.get(a(e))||u();break;case"sd-tooltip":customElements.get(a(e))||f()}}))}export{g as S,k as d}