@sellmate/design-system 1.29.0 → 1.32.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 (411) hide show
  1. package/dist/cjs/design-system.cjs.js +2 -2
  2. package/dist/cjs/{index-iiJZMzVM.js → index-Cg7X15Hq.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/sd-action-modal.cjs.entry.js +2 -2
  5. package/dist/cjs/sd-badge.cjs.entry.js +2 -2
  6. package/dist/cjs/sd-barcode-input.cjs.entry.js +2 -2
  7. package/dist/cjs/sd-button_2.cjs.entry.js +3 -3
  8. package/dist/cjs/sd-calendar_2.cjs.entry.js +8 -9
  9. package/dist/cjs/sd-callout.cjs.entry.js +2 -2
  10. package/dist/cjs/sd-card.cjs.entry.js +2 -2
  11. package/dist/cjs/sd-checkbox.cjs.entry.js +5 -5
  12. package/dist/cjs/sd-chip-input.cjs.entry.js +22 -17
  13. package/dist/cjs/sd-chip.cjs.entry.js +7 -7
  14. package/dist/cjs/sd-circle-progress.cjs.entry.js +3 -3
  15. package/dist/cjs/sd-confirm-modal_2.cjs.entry.js +3 -3
  16. package/dist/cjs/sd-date-box.cjs.entry.js +1 -1
  17. package/dist/cjs/{component.datepicker-zFTQQKMH.js → sd-date-picker.config-CgyNxY03.js} +66 -1
  18. package/dist/cjs/sd-date-picker_8.cjs.entry.js +141 -51
  19. package/dist/cjs/sd-date-range-picker-calendar.cjs.entry.js +162 -12
  20. package/dist/cjs/sd-divider.cjs.entry.js +3 -3
  21. package/dist/cjs/sd-dropdown-button.cjs.entry.js +2 -2
  22. package/dist/cjs/sd-field_3.cjs.entry.js +51 -52
  23. package/dist/cjs/sd-form.cjs.entry.js +1 -1
  24. package/dist/cjs/sd-ghost-button_3.cjs.entry.js +14 -10
  25. package/dist/cjs/sd-guide.cjs.entry.js +2 -2
  26. package/dist/cjs/sd-key-value-table.cjs.entry.js +2 -2
  27. package/dist/cjs/sd-linear-progress.cjs.entry.js +3 -3
  28. package/dist/cjs/sd-loading-container.cjs.entry.js +3 -3
  29. package/dist/cjs/sd-modal-container.cjs.entry.js +1 -1
  30. package/dist/cjs/sd-pagination.cjs.entry.js +4 -4
  31. package/dist/cjs/sd-popover.cjs.entry.js +134 -44
  32. package/dist/cjs/sd-popup.cjs.entry.js +4 -4
  33. package/dist/cjs/sd-radio-button.cjs.entry.js +3 -3
  34. package/dist/cjs/sd-radio.cjs.entry.js +4 -2
  35. package/dist/cjs/sd-scroll-area.cjs.entry.js +44 -0
  36. package/dist/cjs/sd-select-list-item_4.cjs.entry.js +12 -12
  37. package/dist/cjs/sd-stepper.cjs.entry.js +190 -0
  38. package/dist/cjs/sd-switch.cjs.entry.js +13 -3
  39. package/dist/cjs/sd-tabs.cjs.entry.js +2 -2
  40. package/dist/cjs/sd-text-link.cjs.entry.js +4 -4
  41. package/dist/cjs/sd-time-picker-selector.cjs.entry.js +179 -0
  42. package/dist/cjs/sd-time-picker-trigger.cjs.entry.js +75 -0
  43. package/dist/cjs/sd-time-picker.cjs.entry.js +173 -0
  44. package/dist/cjs/sd-time-picker.config-C7REB08L.js +156 -0
  45. package/dist/cjs/sd-time-range-picker-selector.cjs.entry.js +219 -0
  46. package/dist/cjs/sd-time-range-picker.cjs.entry.js +204 -0
  47. package/dist/cjs/sd-toast-container.cjs.entry.js +2 -2
  48. package/dist/cjs/sd-toast.cjs.entry.js +3 -3
  49. package/dist/cjs/sd-toggle.cjs.entry.js +2 -2
  50. package/dist/cjs/{system-B4KkVpu2.js → system-BGCBFBcM.js} +3 -1
  51. package/dist/cjs/{tooltipArrow-DOOcBlLp.js → tooltipArrow-CZff77W-.js} +1 -1
  52. package/dist/cjs/useDatePicker-j06ymWZ_.js +103 -0
  53. package/dist/collection/collection-manifest.json +10 -3
  54. package/dist/collection/components/sd-action-modal/sd-action-modal.js +1 -1
  55. package/dist/collection/components/sd-badge/sd-badge.js +1 -1
  56. package/dist/collection/components/sd-barcode-input/sd-barcode-input.js +1 -1
  57. package/dist/collection/components/sd-button/sd-button.js +2 -2
  58. package/dist/collection/components/sd-calendar/sd-calendar.js +3 -3
  59. package/dist/collection/components/sd-callout/sd-callout.js +1 -1
  60. package/dist/collection/components/sd-card/sd-card.js +1 -1
  61. package/dist/collection/components/sd-checkbox/sd-checkbox.js +8 -8
  62. package/dist/collection/components/sd-chip/sd-chip.js +8 -8
  63. package/dist/collection/components/sd-chip-input/sd-chip-input.css +3 -0
  64. package/dist/collection/components/sd-chip-input/sd-chip-input.js +43 -17
  65. package/dist/collection/components/sd-circle-progress/sd-circle-progress.js +1 -1
  66. package/dist/collection/components/sd-confirm-modal/sd-confirm-modal.js +1 -1
  67. package/dist/collection/components/sd-date-picker/sd-date-picker-trigger/sd-date-picker-trigger.js +2 -2
  68. package/dist/collection/components/sd-date-picker/sd-date-picker.js +23 -2
  69. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.css +75 -0
  70. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.js +152 -6
  71. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.config.js +27 -0
  72. package/dist/collection/components/sd-date-range-picker/sd-date-range-picker.js +59 -3
  73. package/dist/collection/components/sd-divider/sd-divider.js +1 -1
  74. package/dist/collection/components/sd-field/sd-field.css +4 -0
  75. package/dist/collection/components/sd-field/sd-field.js +58 -5
  76. package/dist/collection/components/sd-file-picker/sd-file-picker.config.js +17 -10
  77. package/dist/collection/components/sd-file-picker/sd-file-picker.js +46 -16
  78. package/dist/collection/components/sd-floating-portal/sd-floating-portal.js +1 -1
  79. package/dist/collection/components/sd-ghost-button/sd-ghost-button.js +27 -3
  80. package/dist/collection/components/sd-input/sd-input.js +4 -4
  81. package/dist/collection/components/sd-linear-progress/sd-linear-progress.js +1 -1
  82. package/dist/collection/components/sd-loading-container/sd-loading-container.js +2 -2
  83. package/dist/collection/components/sd-loading-modal/sd-loading-modal.js +1 -1
  84. package/dist/collection/components/sd-number-input/sd-number-input.js +58 -7
  85. package/dist/collection/components/sd-pagination/sd-pagination.js +3 -3
  86. package/dist/collection/components/sd-popover/sd-popover.config.js +41 -0
  87. package/dist/collection/components/sd-popover/sd-popover.js +189 -191
  88. package/dist/collection/components/sd-popup/sd-popup.css +40 -0
  89. package/dist/collection/components/sd-popup/sd-popup.js +1 -1
  90. package/dist/collection/components/sd-portal/sd-portal.js +1 -1
  91. package/dist/collection/components/sd-radio/sd-radio.js +25 -4
  92. package/dist/collection/components/sd-radio-button/sd-radio-button.js +6 -6
  93. package/dist/collection/components/sd-radio-group/sd-radio-group.js +7 -7
  94. package/dist/collection/components/sd-scroll-area/sd-scroll-area.config.js +8 -0
  95. package/dist/collection/components/sd-scroll-area/sd-scroll-area.css +61 -0
  96. package/dist/collection/components/sd-scroll-area/sd-scroll-area.js +151 -0
  97. package/dist/collection/components/sd-select/sd-select-list-item/sd-select-list-item.js +2 -2
  98. package/dist/collection/components/sd-select/sd-select-list-item-search/sd-select-list-item-search.js +4 -4
  99. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.css +33 -9
  100. package/dist/collection/components/sd-select/sd-select-listbox/sd-select-listbox.js +2 -2
  101. package/dist/collection/components/sd-select/sd-select-trigger/sd-select-trigger.js +2 -2
  102. package/dist/collection/components/sd-select/sd-select.js +4 -4
  103. package/dist/collection/components/sd-stepper/sd-stepper.config.js +35 -0
  104. package/dist/collection/components/sd-stepper/sd-stepper.css +50 -0
  105. package/dist/collection/components/sd-stepper/sd-stepper.js +186 -0
  106. package/dist/collection/components/sd-switch/sd-switch.js +54 -3
  107. package/dist/collection/components/sd-tabs/sd-tabs.js +1 -1
  108. package/dist/collection/components/sd-tag/sd-tag.js +7 -8
  109. package/dist/collection/components/sd-text-link/sd-text-link.js +3 -3
  110. package/dist/collection/components/sd-textarea/sd-textarea.js +1 -1
  111. package/dist/collection/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.css +87 -0
  112. package/dist/collection/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.js +266 -0
  113. package/dist/collection/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.css +38 -0
  114. package/dist/collection/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.js +216 -0
  115. package/dist/collection/components/sd-time-picker/sd-time-picker.config.js +78 -0
  116. package/dist/collection/components/sd-time-picker/sd-time-picker.css +12 -0
  117. package/dist/collection/components/sd-time-picker/sd-time-picker.js +761 -0
  118. package/dist/collection/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.css +102 -0
  119. package/dist/collection/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.js +338 -0
  120. package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.config.js +23 -0
  121. package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.css +12 -0
  122. package/dist/collection/components/sd-time-range-picker/sd-time-range-picker.js +809 -0
  123. package/dist/collection/components/sd-toast/sd-toast.js +2 -2
  124. package/dist/collection/components/sd-toast-container/sd-toast-container.js +1 -1
  125. package/dist/collection/components/sd-toggle/sd-toggle.js +1 -1
  126. package/dist/collection/components/sd-tooltip/sd-tooltip.js +36 -189
  127. package/dist/components/index.js +1 -1
  128. package/dist/components/p--BJuy06e.js +1 -0
  129. package/dist/components/p-22hyxPno.js +1 -0
  130. package/dist/components/p-7lGaExLM.js +1 -0
  131. package/dist/components/{p-oYbVr-z0.js → p-B6BgOB_-.js} +1 -1
  132. package/dist/components/{p-R-Sdglj0.js → p-BBAwMOGx.js} +1 -1
  133. package/dist/components/{p-CbS69IvC.js → p-BDULNyBw.js} +1 -1
  134. package/dist/components/p-BI1iKxNN.js +1 -0
  135. package/dist/components/{p-Bpv90tfa.js → p-BPzs63D8.js} +1 -1
  136. package/dist/components/{p-DMoFncVl.js → p-BU1DclrU.js} +1 -1
  137. package/dist/components/{p-OO7xxhkC.js → p-BhLF3gGb.js} +1 -1
  138. package/dist/components/p-Bk6mL1Ml.js +1 -0
  139. package/dist/components/p-BkyM9ded.js +1 -0
  140. package/dist/components/{p-CFTyEfB9.js → p-BoJ_gLp7.js} +1 -1
  141. package/dist/components/{p-Di1q4f5E.js → p-BpTKv3vN.js} +1 -1
  142. package/dist/components/p-C0IFrSzM.js +1 -0
  143. package/dist/components/p-C1KeTx0Z.js +1 -0
  144. package/dist/components/p-C8x8VEb8.js +1 -0
  145. package/dist/components/p-CBx8KWmu.js +1 -0
  146. package/dist/components/p-CNNjhHTA.js +1 -0
  147. package/dist/components/{p-CErFctrV.js → p-CRDS2TOy.js} +1 -1
  148. package/dist/components/p-CdeywvU6.js +1 -0
  149. package/dist/components/{p-BOxGhKKP.js → p-CghFB91T.js} +1 -1
  150. package/dist/components/p-CikPzSw-.js +1 -0
  151. package/dist/components/{p-9Ap2W-Mi.js → p-D0IDp-M3.js} +1 -1
  152. package/dist/components/p-D2oNz1s-.js +1 -0
  153. package/dist/components/p-DApl37Qw.js +1 -0
  154. package/dist/components/{p-BIEPMPWA.js → p-DGAzuK5C.js} +1 -1
  155. package/dist/components/p-DMm_GeZC.js +1 -0
  156. package/dist/components/{p-C_in6AVN.js → p-DONA7SlO.js} +1 -1
  157. package/dist/components/{p-C7mC7a1z.js → p-DVdDYnTl.js} +1 -1
  158. package/dist/components/{p-Dg1UrMqI.js → p-DdYWQ4Z5.js} +1 -1
  159. package/dist/components/p-DtadjLky.js +1 -0
  160. package/dist/components/p-DvlLDBO7.js +1 -0
  161. package/dist/components/p-ETWwVYq6.js +1 -0
  162. package/dist/components/{p-idG6CMO0.js → p-ISXxxDfX.js} +1 -1
  163. package/dist/components/p-UFNg7rhE.js +1 -0
  164. package/dist/{design-system/p-B91K50wC.js → components/p-bXzpfkfN.js} +1 -1
  165. package/dist/components/{p-BHjezpAC.js → p-irA7XFIS.js} +1 -1
  166. package/dist/components/{p-Bth2l1cy.js → p-rayWyWtG.js} +1 -1
  167. package/dist/components/{p-CSr33M9s.js → p-sLMSwbXi.js} +1 -1
  168. package/dist/components/p-vj3gimgB.js +1 -0
  169. package/dist/components/sd-action-modal.js +1 -1
  170. package/dist/components/sd-badge.js +1 -1
  171. package/dist/components/sd-barcode-input.js +1 -1
  172. package/dist/components/sd-button.js +1 -1
  173. package/dist/components/sd-calendar.js +1 -1
  174. package/dist/components/sd-callout.js +1 -1
  175. package/dist/components/sd-card.js +1 -1
  176. package/dist/components/sd-checkbox.js +1 -1
  177. package/dist/components/sd-chip-input.js +1 -1
  178. package/dist/components/sd-chip.js +1 -1
  179. package/dist/components/sd-circle-progress.js +1 -1
  180. package/dist/components/sd-confirm-modal.js +1 -1
  181. package/dist/components/sd-date-box.js +1 -1
  182. package/dist/components/sd-date-picker-trigger.js +1 -1
  183. package/dist/components/sd-date-picker.js +1 -1
  184. package/dist/components/sd-date-range-picker-calendar.js +1 -1
  185. package/dist/components/sd-date-range-picker.js +1 -1
  186. package/dist/components/sd-divider.js +1 -1
  187. package/dist/components/sd-dropdown-button.js +1 -1
  188. package/dist/components/sd-field.js +1 -1
  189. package/dist/components/sd-file-picker.js +1 -1
  190. package/dist/components/sd-floating-portal.js +1 -1
  191. package/dist/components/sd-form.js +1 -1
  192. package/dist/components/sd-ghost-button.js +1 -1
  193. package/dist/components/sd-guide.js +1 -1
  194. package/dist/components/sd-icon.js +1 -1
  195. package/dist/components/sd-input.js +1 -1
  196. package/dist/components/sd-key-value-table.js +1 -1
  197. package/dist/components/sd-linear-progress.js +1 -1
  198. package/dist/components/sd-loading-container.js +1 -1
  199. package/dist/components/sd-loading-modal.js +1 -1
  200. package/dist/components/sd-modal-container.js +1 -1
  201. package/dist/components/sd-number-input.js +1 -1
  202. package/dist/components/sd-pagination.js +1 -1
  203. package/dist/components/sd-popover.js +1 -1
  204. package/dist/components/sd-popup.js +1 -1
  205. package/dist/components/sd-portal.js +1 -1
  206. package/dist/components/sd-radio-button.js +1 -1
  207. package/dist/components/sd-radio-group.js +1 -1
  208. package/dist/components/sd-radio.js +1 -1
  209. package/dist/components/sd-scroll-area.d.ts +11 -0
  210. package/dist/components/sd-scroll-area.js +1 -0
  211. package/dist/components/sd-select-list-item-search.js +1 -1
  212. package/dist/components/sd-select-list-item.js +1 -1
  213. package/dist/components/sd-select-listbox.js +1 -1
  214. package/dist/components/sd-select-trigger.js +1 -1
  215. package/dist/components/sd-select.js +1 -1
  216. package/dist/components/sd-stepper.d.ts +11 -0
  217. package/dist/components/sd-stepper.js +1 -0
  218. package/dist/components/sd-switch.js +1 -1
  219. package/dist/components/sd-tabs.js +1 -1
  220. package/dist/components/sd-tag.js +1 -1
  221. package/dist/components/sd-text-link.js +1 -1
  222. package/dist/components/sd-textarea.js +1 -1
  223. package/dist/components/sd-time-picker-selector.d.ts +11 -0
  224. package/dist/components/sd-time-picker-selector.js +1 -0
  225. package/dist/components/sd-time-picker-trigger.d.ts +11 -0
  226. package/dist/components/sd-time-picker-trigger.js +1 -0
  227. package/dist/components/sd-time-picker.d.ts +11 -0
  228. package/dist/components/sd-time-picker.js +1 -0
  229. package/dist/components/sd-time-range-picker-selector.d.ts +11 -0
  230. package/dist/components/sd-time-range-picker-selector.js +1 -0
  231. package/dist/components/sd-time-range-picker.d.ts +11 -0
  232. package/dist/components/sd-time-range-picker.js +1 -0
  233. package/dist/components/sd-toast-container.js +1 -1
  234. package/dist/components/sd-toast.js +1 -1
  235. package/dist/components/sd-toggle.js +1 -1
  236. package/dist/components/sd-tooltip.js +1 -1
  237. package/dist/design-system/design-system.css +1 -1
  238. package/dist/design-system/design-system.esm.js +1 -1
  239. package/dist/design-system/{p-840006b1.entry.js → p-0cdd05eb.entry.js} +1 -1
  240. package/dist/design-system/p-1c4ba7ae.entry.js +1 -0
  241. package/dist/design-system/{p-c7d2c195.entry.js → p-2a36028d.entry.js} +1 -1
  242. package/dist/design-system/{p-be54fd3a.entry.js → p-2e76157e.entry.js} +1 -1
  243. package/dist/design-system/p-336cb0c1.entry.js +1 -0
  244. package/dist/design-system/{p-26a27312.entry.js → p-34e8dda6.entry.js} +1 -1
  245. package/dist/design-system/p-370b820e.entry.js +1 -0
  246. package/dist/design-system/{p-c5cffcc6.entry.js → p-39db3098.entry.js} +1 -1
  247. package/dist/design-system/p-3a2be559.entry.js +1 -0
  248. package/dist/design-system/p-405cb160.entry.js +1 -0
  249. package/dist/design-system/{p-246aafb9.entry.js → p-456479cc.entry.js} +1 -1
  250. package/dist/design-system/{p-86329ae3.entry.js → p-4d845113.entry.js} +1 -1
  251. package/dist/design-system/p-5761352f.entry.js +1 -0
  252. package/dist/design-system/{p-3cd2751a.entry.js → p-5b725381.entry.js} +1 -1
  253. package/dist/design-system/p-5d7820f7.entry.js +1 -0
  254. package/dist/design-system/p-5dd631fe.entry.js +1 -0
  255. package/dist/design-system/p-66e3fba3.entry.js +1 -0
  256. package/dist/design-system/{p-c1066f40.entry.js → p-6a5540d8.entry.js} +1 -1
  257. package/dist/design-system/{p-55c0be7d.entry.js → p-703bb49a.entry.js} +1 -1
  258. package/dist/design-system/{p-0c1d1a15.entry.js → p-71e7031e.entry.js} +1 -1
  259. package/dist/design-system/p-7837f8f8.entry.js +1 -0
  260. package/dist/design-system/{p-5a257ed9.entry.js → p-814ae5f1.entry.js} +1 -1
  261. package/dist/design-system/p-8804e3f3.entry.js +1 -0
  262. package/dist/design-system/p-8ea038d7.entry.js +1 -0
  263. package/dist/design-system/{p-b585f94b.entry.js → p-937a30af.entry.js} +1 -1
  264. package/dist/design-system/{p-1ed1bfa1.entry.js → p-94d4c093.entry.js} +1 -1
  265. package/dist/design-system/p-97a059b0.entry.js +1 -0
  266. package/dist/design-system/{p-53fe2741.entry.js → p-9afada52.entry.js} +1 -1
  267. package/dist/design-system/{p-d2ce01ac.entry.js → p-9df0dd32.entry.js} +1 -1
  268. package/dist/design-system/{p-BPKiBSGr.js → p-BnUjeY2n.js} +1 -1
  269. package/dist/design-system/p-CHijmX_D.js +1 -0
  270. package/dist/design-system/p-CdvQqvIe.js +2 -0
  271. package/dist/design-system/p-DMm_GeZC.js +1 -0
  272. package/dist/design-system/p-Dz23PPdF.js +1 -0
  273. package/dist/design-system/{p-3595cafb.entry.js → p-a05f4888.entry.js} +1 -1
  274. package/dist/design-system/p-a81e4ae0.entry.js +1 -0
  275. package/dist/design-system/p-aaa551fa.entry.js +1 -0
  276. package/dist/design-system/p-adc218f5.entry.js +1 -0
  277. package/dist/design-system/{p-8ed1d470.entry.js → p-b7e913e7.entry.js} +1 -1
  278. package/dist/design-system/p-b90eaebd.entry.js +1 -0
  279. package/dist/design-system/{p-d9f33192.entry.js → p-c5263a22.entry.js} +1 -1
  280. package/dist/design-system/{p-ec4ad48c.entry.js → p-c5eea64c.entry.js} +1 -1
  281. package/dist/design-system/{p-02f0b906.entry.js → p-c906d22d.entry.js} +1 -1
  282. package/dist/design-system/{p-d204cac5.entry.js → p-defe65db.entry.js} +1 -1
  283. package/dist/design-system/{p-4c85f6f6.entry.js → p-e16725f7.entry.js} +1 -1
  284. package/dist/design-system/p-e4096b72.entry.js +1 -0
  285. package/dist/design-system/{p-8de3b502.entry.js → p-e72706ea.entry.js} +1 -1
  286. package/dist/design-system/p-fb01f963.entry.js +1 -0
  287. package/dist/design-system/{p-adf2f398.entry.js → p-fc9577d9.entry.js} +1 -1
  288. package/dist/design-system/{p-Bth2l1cy.js → p-rayWyWtG.js} +1 -1
  289. package/dist/esm/design-system.js +3 -3
  290. package/dist/esm/{index-Dz490Ukt.js → index-CdvQqvIe.js} +1 -1
  291. package/dist/esm/loader.js +3 -3
  292. package/dist/esm/sd-action-modal.entry.js +2 -2
  293. package/dist/esm/sd-badge.entry.js +2 -2
  294. package/dist/esm/sd-barcode-input.entry.js +2 -2
  295. package/dist/esm/sd-button_2.entry.js +3 -3
  296. package/dist/esm/sd-calendar_2.entry.js +8 -9
  297. package/dist/esm/sd-callout.entry.js +2 -2
  298. package/dist/esm/sd-card.entry.js +2 -2
  299. package/dist/esm/sd-checkbox.entry.js +5 -5
  300. package/dist/esm/sd-chip-input.entry.js +22 -17
  301. package/dist/esm/sd-chip.entry.js +7 -7
  302. package/dist/esm/sd-circle-progress.entry.js +3 -3
  303. package/dist/esm/sd-confirm-modal_2.entry.js +3 -3
  304. package/dist/esm/sd-date-box.entry.js +1 -1
  305. package/dist/esm/{component.datepicker-BOxGhKKP.js → sd-date-picker.config-CdXJcOGr.js} +65 -2
  306. package/dist/esm/sd-date-picker_8.entry.js +141 -51
  307. package/dist/esm/sd-date-range-picker-calendar.entry.js +158 -8
  308. package/dist/esm/sd-divider.entry.js +3 -3
  309. package/dist/esm/sd-dropdown-button.entry.js +2 -2
  310. package/dist/esm/sd-field_3.entry.js +51 -52
  311. package/dist/esm/sd-form.entry.js +1 -1
  312. package/dist/esm/sd-ghost-button_3.entry.js +14 -10
  313. package/dist/esm/sd-guide.entry.js +2 -2
  314. package/dist/esm/sd-key-value-table.entry.js +2 -2
  315. package/dist/esm/sd-linear-progress.entry.js +3 -3
  316. package/dist/esm/sd-loading-container.entry.js +3 -3
  317. package/dist/esm/sd-modal-container.entry.js +1 -1
  318. package/dist/esm/sd-pagination.entry.js +4 -4
  319. package/dist/esm/sd-popover.entry.js +134 -44
  320. package/dist/esm/sd-popup.entry.js +4 -4
  321. package/dist/esm/sd-radio-button.entry.js +3 -3
  322. package/dist/esm/sd-radio.entry.js +4 -2
  323. package/dist/esm/sd-scroll-area.entry.js +42 -0
  324. package/dist/esm/sd-select-list-item_4.entry.js +12 -12
  325. package/dist/esm/sd-stepper.entry.js +188 -0
  326. package/dist/esm/sd-switch.entry.js +13 -3
  327. package/dist/esm/sd-tabs.entry.js +2 -2
  328. package/dist/esm/sd-text-link.entry.js +4 -4
  329. package/dist/esm/sd-time-picker-selector.entry.js +177 -0
  330. package/dist/esm/sd-time-picker-trigger.entry.js +73 -0
  331. package/dist/esm/sd-time-picker.config-DUq29Nhs.js +148 -0
  332. package/dist/esm/sd-time-picker.entry.js +171 -0
  333. package/dist/esm/sd-time-range-picker-selector.entry.js +217 -0
  334. package/dist/esm/sd-time-range-picker.entry.js +202 -0
  335. package/dist/esm/sd-toast-container.entry.js +2 -2
  336. package/dist/esm/sd-toast.entry.js +3 -3
  337. package/dist/esm/sd-toggle.entry.js +2 -2
  338. package/dist/esm/{system-Bth2l1cy.js → system-rayWyWtG.js} +3 -1
  339. package/dist/esm/{tooltipArrow-CEHVt90h.js → tooltipArrow-BsQ__AbZ.js} +1 -1
  340. package/dist/esm/{useDatePicker-BG0lUGJG.js → useDatePicker-DQ5Kyy_D.js} +1 -1
  341. package/dist/types/components/sd-checkbox/sd-checkbox.d.ts +2 -2
  342. package/dist/types/components/sd-chip/sd-chip.d.ts +3 -3
  343. package/dist/types/components/sd-chip-input/sd-chip-input.d.ts +4 -2
  344. package/dist/types/components/sd-date-picker/sd-date-picker.d.ts +2 -0
  345. package/dist/types/components/sd-date-range-picker/sd-date-range-picker-calendar/sd-date-range-picker-calendar.d.ts +20 -0
  346. package/dist/types/components/sd-date-range-picker/sd-date-range-picker.config.d.ts +25 -0
  347. package/dist/types/components/sd-date-range-picker/sd-date-range-picker.d.ts +9 -0
  348. package/dist/types/components/sd-field/sd-field.d.ts +7 -0
  349. package/dist/types/components/sd-file-picker/sd-file-picker.config.d.ts +28 -0
  350. package/dist/types/components/sd-file-picker/sd-file-picker.d.ts +3 -1
  351. package/dist/types/components/sd-ghost-button/sd-ghost-button.d.ts +5 -0
  352. package/dist/types/components/sd-input/sd-input.d.ts +1 -1
  353. package/dist/types/components/sd-number-input/sd-number-input.d.ts +8 -0
  354. package/dist/types/components/sd-popover/sd-popover.config.d.ts +22 -0
  355. package/dist/types/components/sd-popover/sd-popover.d.ts +29 -36
  356. package/dist/types/components/sd-radio/sd-radio.d.ts +3 -1
  357. package/dist/types/components/sd-radio-button/sd-radio-button.d.ts +2 -2
  358. package/dist/types/components/sd-radio-group/sd-radio-group.d.ts +2 -2
  359. package/dist/types/components/sd-scroll-area/sd-scroll-area.config.d.ts +5 -0
  360. package/dist/types/components/sd-scroll-area/sd-scroll-area.d.ts +14 -0
  361. package/dist/types/components/sd-stepper/sd-stepper.config.d.ts +43 -0
  362. package/dist/types/components/sd-stepper/sd-stepper.d.ts +18 -0
  363. package/dist/types/components/sd-switch/sd-switch.d.ts +8 -1
  364. package/dist/types/components/sd-tag/sd-tag.d.ts +2 -2
  365. package/dist/types/components/sd-time-picker/sd-time-picker-selector/sd-time-picker-selector.d.ts +35 -0
  366. package/dist/types/components/sd-time-picker/sd-time-picker-trigger/sd-time-picker-trigger.d.ts +21 -0
  367. package/dist/types/components/sd-time-picker/sd-time-picker.config.d.ts +71 -0
  368. package/dist/types/components/sd-time-picker/sd-time-picker.d.ts +84 -0
  369. package/dist/types/components/sd-time-range-picker/sd-time-range-picker-selector/sd-time-range-picker-selector.d.ts +40 -0
  370. package/dist/types/components/sd-time-range-picker/sd-time-range-picker.config.d.ts +9 -0
  371. package/dist/types/components/sd-time-range-picker/sd-time-range-picker.d.ts +88 -0
  372. package/dist/types/components/sd-tooltip/sd-tooltip.d.ts +7 -22
  373. package/dist/types/components.d.ts +2630 -1611
  374. package/hydrate/index.js +2163 -436
  375. package/hydrate/index.mjs +2163 -436
  376. package/package.json +1 -1
  377. package/dist/cjs/sd-date-picker.config-Chrd8c4v.js +0 -41
  378. package/dist/cjs/useDatePicker-CgpIfwLA.js +0 -103
  379. package/dist/components/p-BFVfSW9t.js +0 -1
  380. package/dist/components/p-BKu0I6Io.js +0 -1
  381. package/dist/components/p-B_Zwr4Et.js +0 -1
  382. package/dist/components/p-CBoDoYDO.js +0 -1
  383. package/dist/components/p-CYMMLsGt.js +0 -1
  384. package/dist/components/p-C_SG4M4z.js +0 -1
  385. package/dist/components/p-CgSXYw_0.js +0 -1
  386. package/dist/components/p-CmRF12Fy.js +0 -1
  387. package/dist/components/p-CnRfET5y.js +0 -1
  388. package/dist/components/p-Cvsrc0be.js +0 -1
  389. package/dist/components/p-DJ8z7_EG.js +0 -1
  390. package/dist/components/p-DJmxpVkK.js +0 -1
  391. package/dist/components/p-DN7MAx-q.js +0 -1
  392. package/dist/components/p-DS6NVBvu.js +0 -1
  393. package/dist/components/p-D_56BjcD.js +0 -1
  394. package/dist/components/p-Uh9emYrV.js +0 -1
  395. package/dist/components/p-f0aBxUBG.js +0 -1
  396. package/dist/design-system/p-0e014b76.entry.js +0 -1
  397. package/dist/design-system/p-1b5fcf7b.entry.js +0 -1
  398. package/dist/design-system/p-2a4d2ee0.entry.js +0 -1
  399. package/dist/design-system/p-2d6a7d7b.entry.js +0 -1
  400. package/dist/design-system/p-4b474538.entry.js +0 -1
  401. package/dist/design-system/p-BOxGhKKP.js +0 -1
  402. package/dist/design-system/p-BhcvMs8c.js +0 -1
  403. package/dist/design-system/p-Dz490Ukt.js +0 -2
  404. package/dist/design-system/p-a631cd78.entry.js +0 -1
  405. package/dist/design-system/p-cb6ab65c.entry.js +0 -1
  406. package/dist/design-system/p-d51f4170.entry.js +0 -1
  407. package/dist/design-system/p-e7740a5f.entry.js +0 -1
  408. package/dist/design-system/p-e85bf462.entry.js +0 -1
  409. package/dist/design-system/p-ea008087.entry.js +0 -1
  410. package/dist/design-system/p-f962e5d2.entry.js +0 -1
  411. package/dist/esm/sd-date-picker.config-krRuSUsA.js +0 -38
@@ -0,0 +1,148 @@
1
+ import { f as fieldTokens } from './component.field-DjKOoQuF.js';
2
+
3
+ const timepicker = {
4
+ border: {
5
+ "default": "#AAAAAA",
6
+ focus: "#0075FF",
7
+ width: "1"
8
+ },
9
+ bg: {
10
+ "default": "#FFFFFF",
11
+ disabled: "#E1E1E1"
12
+ },
13
+ icon: {
14
+ "default": "#888888",
15
+ disabled: "#BBBBBB"
16
+ },
17
+ text: {
18
+ "default": "#222222",
19
+ disabled: "#888888"
20
+ },
21
+ selector: {
22
+ bg: "#FFFFFF",
23
+ range: {
24
+ heading: {
25
+ color: "#555555",
26
+ gap: "16"
27
+ },
28
+ paddingXY: "24",
29
+ panelGap: "24",
30
+ section: {
31
+ gap: "12"
32
+ }
33
+ },
34
+ radius: "8",
35
+ section: {
36
+ paddingX: "16",
37
+ paddingY: "12"
38
+ },
39
+ time: {
40
+ gap: "4",
41
+ column: {
42
+ gap: "8"
43
+ }
44
+ },
45
+ input: {
46
+ width: "40"
47
+ },
48
+ colon: {
49
+ size: "16"
50
+ }
51
+ },
52
+ sm: {
53
+ height: "28",
54
+ paddingX: "12",
55
+ gap: "8",
56
+ icon: "16",
57
+ radius: "4"
58
+ },
59
+ md: {
60
+ height: "36",
61
+ paddingX: "16",
62
+ gap: "12",
63
+ icon: "20",
64
+ radius: "6"
65
+ }
66
+ };
67
+ var timepickerTokens = {
68
+ timepicker: timepicker
69
+ };
70
+
71
+ const sm = timepickerTokens.timepicker.sm;
72
+ const md = timepickerTokens.timepicker.md;
73
+ const TIMEPICKER_SIZE_MAP = {
74
+ sm: {
75
+ height: sm.height,
76
+ paddingX: sm.paddingX,
77
+ gap: sm.gap,
78
+ iconSize: sm.icon,
79
+ radius: sm.radius,
80
+ // TODO: component.timepicker 토큰에 typography가 추가되면 이 fallback을 교체한다.
81
+ fontSize: '12',
82
+ lineHeight: '20',
83
+ fontWeight: '400',
84
+ minWidth: '128',
85
+ },
86
+ md: {
87
+ height: md.height,
88
+ paddingX: md.paddingX,
89
+ gap: md.gap,
90
+ iconSize: md.icon,
91
+ radius: md.radius,
92
+ // TODO: component.timepicker 토큰에 typography가 추가되면 이 fallback을 교체한다.
93
+ fontSize: '14',
94
+ lineHeight: '24',
95
+ fontWeight: '400',
96
+ minWidth: '160',
97
+ },
98
+ };
99
+ const TIMEPICKER_COLORS = {
100
+ border: timepickerTokens.timepicker.border,
101
+ bg: timepickerTokens.timepicker.bg,
102
+ icon: timepickerTokens.timepicker.icon,
103
+ text: {
104
+ ...timepickerTokens.timepicker.text,
105
+ hint: fieldTokens.field.hint.color,
106
+ },
107
+ };
108
+ const TIMEPICKER_SELECTOR = {
109
+ bg: timepickerTokens.timepicker.selector.bg,
110
+ radius: timepickerTokens.timepicker.selector.radius,
111
+ section: timepickerTokens.timepicker.selector.section,
112
+ time: timepickerTokens.timepicker.selector.time,
113
+ inputWidth: timepickerTokens.timepicker.selector.input.width,
114
+ colonSize: timepickerTokens.timepicker.selector.colon.size,
115
+ range: timepickerTokens.timepicker.selector.range,
116
+ };
117
+ function clampTimePart(value, min, max) {
118
+ if (!Number.isFinite(value))
119
+ return min;
120
+ return Math.min(Math.max(value, min), max);
121
+ }
122
+ function padTimePart(value) {
123
+ return String(value).padStart(2, '0');
124
+ }
125
+ function parseTimeValue(value) {
126
+ const match = /^(\d{1,2}):(\d{1,2})$/.exec(value ?? '');
127
+ if (!match)
128
+ return { hour: 0, minute: 0 };
129
+ return {
130
+ hour: clampTimePart(Number(match[1]), 0, 23),
131
+ minute: clampTimePart(Number(match[2]), 0, 59),
132
+ };
133
+ }
134
+ function formatTimeValue(hour, minute) {
135
+ return `${padTimePart(clampTimePart(hour, 0, 23))}:${padTimePart(clampTimePart(minute, 0, 59))}`;
136
+ }
137
+ function formatTimeDisplay(value, type) {
138
+ if (value == null || value === '')
139
+ return '';
140
+ const { hour, minute } = parseTimeValue(value);
141
+ if (type === 'default')
142
+ return formatTimeValue(hour, minute);
143
+ const meridiem = hour >= 12 ? '오후' : '오전';
144
+ const displayHour = hour % 12 === 0 ? 12 : hour % 12;
145
+ return `${meridiem} ${padTimePart(displayHour)}:${padTimePart(minute)}`;
146
+ }
147
+
148
+ export { TIMEPICKER_COLORS as T, formatTimeDisplay as a, TIMEPICKER_SIZE_MAP as b, clampTimePart as c, TIMEPICKER_SELECTOR as d, formatTimeValue as f, parseTimeValue as p };
@@ -0,0 +1,171 @@
1
+ import { r as registerInstance, c as createEvent, a as getElement, h } from './index-CdvQqvIe.js';
2
+ import { n as nanoid } from './index-CCwNgVmC.js';
3
+ import { f as formatTimeValue, a as formatTimeDisplay, T as TIMEPICKER_COLORS, b as TIMEPICKER_SIZE_MAP, p as parseTimeValue } from './sd-time-picker.config-DUq29Nhs.js';
4
+ import './component.field-DjKOoQuF.js';
5
+
6
+ const sdTimePickerCss = () => `sd-time-picker{display:inline-flex}sd-time-picker sd-portal{display:none}sd-time-picker .sd-time-picker{position:relative;min-width:var(--sd-time-picker-min-width);width:100%;height:100%}`;
7
+
8
+ const SdTimePicker = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.update = createEvent(this, "sdUpdate", 7);
12
+ this.dropDownShow = createEvent(this, "sdDropDownShow", 7);
13
+ }
14
+ static CLOSE_ANIMATION_DURATION = 150;
15
+ get el() { return getElement(this); }
16
+ /** 선택된 시간 (HH:mm) */
17
+ value = null;
18
+ /** 입력 필드 크기 */
19
+ size = 'sm';
20
+ /** 표시 타입: default(24시간) / midday(오전·오후) */
21
+ type = 'default';
22
+ /** 시간 미선택 시 표시할 placeholder */
23
+ placeholder = '00:00';
24
+ /** 비활성 상태 여부 */
25
+ disabled = false;
26
+ /** 값이 있을 때 지우기 버튼 표시 여부 */
27
+ clearable = false;
28
+ /** 오전/오후 선택 표시 여부. 지정하지 않으면 type="midday"일 때만 켜집니다. */
29
+ useMeridiem;
30
+ /** 분 증감 단위 */
31
+ minuteStep = 1;
32
+ /** 필드 너비 (숫자면 px, 문자열이면 그대로 적용) */
33
+ width = '';
34
+ // sd-field 공통 props
35
+ /** 레이블 텍스트 */
36
+ label = '';
37
+ /** 레이블 너비 */
38
+ labelWidth = '';
39
+ /** 필드 우측 어드온 레이블 */
40
+ addonLabel = '';
41
+ /** 어드온 정렬 방향 */
42
+ addonAlign = 'start';
43
+ /** 필드 하단 힌트 텍스트 */
44
+ hint = '';
45
+ /** 에러 메시지 */
46
+ errorMessage = '';
47
+ /** 유효성 검사 규칙 목록 */
48
+ rules = [];
49
+ /** 에러 상태 여부 */
50
+ error = false;
51
+ /** 필드 상태 (없으면 error/rules 결과로 자동 결정) */
52
+ status;
53
+ /** 레이블 영역 아이콘 */
54
+ icon = undefined;
55
+ /** 레이블 툴팁 텍스트 */
56
+ labelTooltip = '';
57
+ /** 레이블 툴팁 상세 옵션 */
58
+ labelTooltipProps = null;
59
+ isOpen = false;
60
+ isAnimatingOut = false;
61
+ focused = false;
62
+ hovered = false;
63
+ /** 시간 선택 시 선택된 시간(HH:mm)을 전달합니다. */
64
+ update;
65
+ /** 선택기 열림/닫힘 상태가 바뀔 때 발생합니다. */
66
+ dropDownShow;
67
+ triggerRef;
68
+ formField;
69
+ closeAnimationTimer;
70
+ /** 폼 연동용 name 속성 */
71
+ name = nanoid();
72
+ watchIsOpen(newValue) {
73
+ this.focused = newValue;
74
+ this.dropDownShow.emit({ isOpen: newValue });
75
+ }
76
+ valueChanged(newValue) {
77
+ if (newValue == null || newValue === '')
78
+ return;
79
+ const parsed = parseTimeValue(newValue);
80
+ const normalized = formatTimeValue(parsed.hour, parsed.minute);
81
+ if (normalized !== newValue)
82
+ this.value = normalized;
83
+ }
84
+ /** 유효성 검사를 실행합니다. */
85
+ async sdValidate() {
86
+ return this.formField?.sdValidate();
87
+ }
88
+ /** 값과 유효성 상태를 초기화합니다. */
89
+ async sdReset() {
90
+ return this.formField?.sdReset();
91
+ }
92
+ /** 유효성 상태만 초기화합니다. */
93
+ async sdResetValidate() {
94
+ return this.formField?.sdResetValidation();
95
+ }
96
+ /** 입력 필드에 포커스를 이동합니다. */
97
+ async sdFocus() {
98
+ return this.formField?.sdFocus();
99
+ }
100
+ componentWillLoad() {
101
+ this.valueChanged(this.value);
102
+ }
103
+ disconnectedCallback() {
104
+ if (this.closeAnimationTimer)
105
+ clearTimeout(this.closeAnimationTimer);
106
+ }
107
+ closeDropdown() {
108
+ if (!this.isOpen)
109
+ return;
110
+ this.isOpen = false;
111
+ this.isAnimatingOut = true;
112
+ if (this.closeAnimationTimer)
113
+ clearTimeout(this.closeAnimationTimer);
114
+ this.closeAnimationTimer = setTimeout(() => {
115
+ this.isAnimatingOut = false;
116
+ }, SdTimePicker.CLOSE_ANIMATION_DURATION);
117
+ }
118
+ handleTriggerClick = () => {
119
+ if (this.disabled)
120
+ return;
121
+ if (this.isOpen) {
122
+ this.closeDropdown();
123
+ }
124
+ else {
125
+ if (this.closeAnimationTimer)
126
+ clearTimeout(this.closeAnimationTimer);
127
+ this.isAnimatingOut = false;
128
+ this.isOpen = true;
129
+ }
130
+ };
131
+ handleClear = (event) => {
132
+ event.stopPropagation();
133
+ this.value = null;
134
+ this.update.emit(null);
135
+ };
136
+ handleSelect = (event) => {
137
+ event.stopPropagation();
138
+ this.value = event.detail;
139
+ this.update.emit(this.value);
140
+ };
141
+ get effectiveUseMeridiem() {
142
+ return this.useMeridiem ?? this.type === 'midday';
143
+ }
144
+ render() {
145
+ const sizeTokens = TIMEPICKER_SIZE_MAP[this.size] ?? TIMEPICKER_SIZE_MAP.sm;
146
+ const cssVars = {
147
+ '--sd-system-size-field-sm-height': `${sizeTokens.height}px`,
148
+ '--sd-system-size-field-md-height': `${sizeTokens.height}px`,
149
+ '--sd-system-radius-field-sm': `${sizeTokens.radius}px`,
150
+ '--sd-system-radius-field-md': `${sizeTokens.radius}px`,
151
+ '--sd-time-picker-min-width': `${sizeTokens.minWidth}px`,
152
+ '--sd-system-color-field-border-default': TIMEPICKER_COLORS.border.default,
153
+ '--sd-system-color-field-border-focus': TIMEPICKER_COLORS.border.focus,
154
+ '--sd-system-color-field-bg-default': TIMEPICKER_COLORS.bg.default,
155
+ };
156
+ return (h("sd-field", { key: '77b2d4c36e19481ccb6a3d0cef288fe9eb902330', 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, status: this.status, disabled: this.disabled, focused: this.focused, hovered: this.hovered, size: this.size, 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: '2d25872f4d1253faf85384030de21ef283e0696d', class: "sd-time-picker", ref: el => {
157
+ this.triggerRef = el;
158
+ } }, h("sd-time-picker-trigger", { key: 'fe4a4611216642bcee5632c2202dec0058cc6898', displayText: formatTimeDisplay(this.value, this.effectiveUseMeridiem ? 'midday' : 'default'), placeholder: this.placeholder, disabled: this.disabled, clearable: this.clearable, size: this.size, onSdTriggerClick: this.handleTriggerClick, onSdClear: this.handleClear })), (this.isOpen || this.isAnimatingOut) && (h("sd-portal", { key: 'd2f921b2eee8d3cc33c52c6eb06f24188f18a78a', open: this.isOpen, parentRef: this.triggerRef, onSdClose: () => this.closeDropdown() }, h("sd-time-picker-selector", { key: 'd53c348ef16a1ddac731a49d0aafe64931007d32', value: this.value, useMeridiem: this.effectiveUseMeridiem, minuteStep: this.minuteStep, onSdUpdate: this.handleSelect })))));
159
+ }
160
+ static get watchers() { return {
161
+ "isOpen": [{
162
+ "watchIsOpen": 0
163
+ }],
164
+ "value": [{
165
+ "valueChanged": 0
166
+ }]
167
+ }; }
168
+ };
169
+ SdTimePicker.style = sdTimePickerCss();
170
+
171
+ export { SdTimePicker as sd_time_picker };
@@ -0,0 +1,217 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-CdvQqvIe.js';
2
+ import { p as parseTimeValue, f as formatTimeValue, c as clampTimePart, T as TIMEPICKER_COLORS, d as TIMEPICKER_SELECTOR } from './sd-time-picker.config-DUq29Nhs.js';
3
+ import './component.field-DjKOoQuF.js';
4
+
5
+ const sdTimeRangePickerSelectorCss = () => `sd-time-range-picker-selector{display:block}sd-time-range-picker-selector .sd-time-range-picker-selector{display:flex;align-items:flex-start;justify-content:center;gap:var(--selector-range-panel-gap);padding:var(--selector-range-padding);overflow:hidden;background:var(--selector-bg);border-radius:var(--selector-radius);box-shadow:var(--sd-system-shadow-spread-sm-x) var(--sd-system-shadow-spread-sm-y) var(--sd-system-shadow-spread-sm-blur) var(--sd-system-shadow-spread-sm-spread) var(--sd-system-shadow-spread-sm-color), var(--sd-system-shadow-spread-md-x) var(--sd-system-shadow-spread-md-y) var(--sd-system-shadow-spread-md-blur) var(--sd-system-shadow-spread-md-spread) var(--sd-system-shadow-spread-md-color)}sd-time-range-picker-selector .sd-time-range-picker-selector__panel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--selector-range-section-gap)}sd-time-range-picker-selector .sd-time-range-picker-selector__heading{display:flex;flex-direction:column;align-items:center;gap:var(--selector-range-heading-gap)}sd-time-range-picker-selector .sd-time-range-picker-selector__heading-text{color:var(--selector-range-heading-color);font-size:12px;line-height:20px;font-weight:700;text-align:center;white-space:nowrap}sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-group{display:flex;isolation:isolate}sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-button{width:61px;height:28px;border:var(--selector-border-width) solid var(--selector-border-default);background:var(--selector-bg);color:var(--selector-range-heading-color);font-size:12px;line-height:20px;font-weight:500;cursor:pointer}sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-button--first{border-radius:4px 0 0 4px;margin-right:-1px}sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-button--end{border-radius:0 4px 4px 0}sd-time-range-picker-selector .sd-time-range-picker-selector__meridiem-button--selected{z-index:1;border-color:var(--selector-border-focus);color:var(--selector-border-focus)}sd-time-range-picker-selector .sd-time-range-picker-selector__divider{align-self:stretch;width:1px;background:var(--selector-bg-disabled)}sd-time-range-picker-selector .sd-time-range-picker-selector__time{display:flex;align-items:center;justify-content:center;gap:var(--selector-time-gap);padding:0 16px;background:var(--selector-bg)}sd-time-range-picker-selector .sd-time-range-picker-selector__column{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--selector-time-column-gap)}sd-time-range-picker-selector .sd-time-range-picker-selector__input{width:var(--selector-input-width);height:28px;box-sizing:border-box;border:var(--selector-border-width) solid var(--selector-border-default);border-radius:4px;background:var(--selector-bg);color:var(--selector-text-default);font-size:12px;line-height:20px;text-align:center;outline:none}sd-time-range-picker-selector .sd-time-range-picker-selector__colon{width:var(--selector-colon-size);color:var(--selector-range-heading-color);font-size:16px;line-height:16px;text-align:center}`;
6
+
7
+ const SdTimeRangePickerSelector = class {
8
+ constructor(hostRef) {
9
+ registerInstance(this, hostRef);
10
+ this.update = createEvent(this, "sdUpdate", 7);
11
+ }
12
+ /** 선택된 시간 범위 [시작, 종료] (HH:mm) */
13
+ value = null;
14
+ /** 오전/오후 선택 표시 여부 */
15
+ useMeridiem = false;
16
+ /** 분 증감 단위 */
17
+ minuteStep = 1;
18
+ /** 범위 순서 정책. strict는 시작 시간이 종료 시간보다 늦어지지 않도록 보정합니다. */
19
+ rangeOrder = 'strict';
20
+ /** 시간 범위 변경 시 발생합니다. */
21
+ update;
22
+ editingKey = null;
23
+ inputDraft = {};
24
+ autoAdjusted = null;
25
+ getRange() {
26
+ return this.value ?? ['00:00', '23:59'];
27
+ }
28
+ getParts(side) {
29
+ const [start, end] = this.getRange();
30
+ return parseTimeValue(side === 'start' ? start : end);
31
+ }
32
+ getMeridiem(side) {
33
+ return this.getParts(side).hour >= 12 ? 'PM' : 'AM';
34
+ }
35
+ getDisplayHour(side) {
36
+ const { hour } = this.getParts(side);
37
+ if (!this.useMeridiem)
38
+ return hour;
39
+ const displayHour = hour % 12;
40
+ return displayHour === 0 ? 12 : displayHour;
41
+ }
42
+ emitSide(side, hour, minute, direction = 'unknown') {
43
+ const [start, end] = this.getRange();
44
+ const next = formatTimeValue(hour, minute);
45
+ this.update.emit(this.normalizeNextRange(side === 'start' ? [next, end] : [start, next], side, direction));
46
+ }
47
+ getTimeMinutes(value) {
48
+ const { hour, minute } = parseTimeValue(value);
49
+ return hour * 60 + minute;
50
+ }
51
+ normalizeNextRange(range, changedSide, direction) {
52
+ if (this.rangeOrder === 'allow-cross-day')
53
+ return range;
54
+ const [start, end] = range;
55
+ const [currentStart, currentEnd] = this.getRange();
56
+ if (this.getTimeMinutes(start) <= this.getTimeMinutes(end)) {
57
+ const shouldKeepSynced = this.autoAdjusted?.side === changedSide &&
58
+ currentStart === currentEnd &&
59
+ start !== end &&
60
+ (direction === 'unknown' || this.autoAdjusted.direction === direction);
61
+ if (shouldKeepSynced) {
62
+ return changedSide === 'start' ? [start, start] : [end, end];
63
+ }
64
+ this.autoAdjusted = null;
65
+ return range;
66
+ }
67
+ this.autoAdjusted = {
68
+ side: changedSide,
69
+ direction: changedSide === 'start' ? 'increase' : 'decrease',
70
+ };
71
+ return changedSide === 'start' ? [start, start] : [end, end];
72
+ }
73
+ getEditingKey(side, part) {
74
+ return `${side}-${part}`;
75
+ }
76
+ sanitizeInput(value) {
77
+ return value.replace(/\D/g, '').slice(0, 2);
78
+ }
79
+ setDraft(key, value) {
80
+ this.inputDraft = { ...this.inputDraft, [key]: value };
81
+ }
82
+ beginEdit(side, part, value) {
83
+ const key = this.getEditingKey(side, part);
84
+ this.editingKey = key;
85
+ this.setDraft(key, String(value).padStart(2, '0'));
86
+ }
87
+ commitHourDraft(side, draft) {
88
+ const raw = clampTimePart(Number(draft), this.useMeridiem ? 1 : 0, this.useMeridiem ? 12 : 23);
89
+ const { minute } = this.getParts(side);
90
+ const meridiem = this.getMeridiem(side);
91
+ const nextHour = this.useMeridiem
92
+ ? meridiem === 'PM'
93
+ ? raw === 12
94
+ ? 12
95
+ : raw + 12
96
+ : raw === 12
97
+ ? 0
98
+ : raw
99
+ : raw;
100
+ this.emitSide(side, nextHour, minute);
101
+ return raw;
102
+ }
103
+ commitMinuteDraft(side, draft) {
104
+ const { hour } = this.getParts(side);
105
+ const nextMinute = clampTimePart(Number(draft), 0, 59);
106
+ this.emitSide(side, hour, nextMinute);
107
+ return nextMinute;
108
+ }
109
+ endEdit(side, part) {
110
+ const draft = this.inputDraft[this.getEditingKey(side, part)];
111
+ if (part === 'hour' && draft != null && draft !== '') {
112
+ this.commitHourDraft(side, draft);
113
+ }
114
+ if (part === 'minute' && draft != null && draft !== '') {
115
+ this.commitMinuteDraft(side, draft);
116
+ }
117
+ this.editingKey = null;
118
+ this.inputDraft = {};
119
+ }
120
+ setMeridiem(side, meridiem) {
121
+ const current = this.getMeridiem(side);
122
+ if (current === meridiem)
123
+ return;
124
+ const { hour, minute } = this.getParts(side);
125
+ this.emitSide(side, meridiem === 'AM' ? hour - 12 : hour + 12, minute);
126
+ }
127
+ changeHour(side, delta) {
128
+ const { hour, minute } = this.getParts(side);
129
+ this.emitSide(side, (hour + delta + 24) % 24, minute, delta > 0 ? 'increase' : 'decrease');
130
+ }
131
+ changeMinute(side, delta) {
132
+ const { hour, minute } = this.getParts(side);
133
+ const next = minute + delta;
134
+ if (next > 59) {
135
+ this.emitSide(side, (hour + 1) % 24, next - 60, delta > 0 ? 'increase' : 'decrease');
136
+ return;
137
+ }
138
+ if (next < 0) {
139
+ this.emitSide(side, (hour + 23) % 24, next + 60, delta > 0 ? 'increase' : 'decrease');
140
+ return;
141
+ }
142
+ this.emitSide(side, hour, next, delta > 0 ? 'increase' : 'decrease');
143
+ }
144
+ handleHourInput = (side, event) => {
145
+ const target = event.target;
146
+ const draft = this.sanitizeInput(target.value);
147
+ target.value = draft;
148
+ this.setDraft(this.getEditingKey(side, 'hour'), draft);
149
+ if (draft === '')
150
+ return;
151
+ if (draft.length < 2)
152
+ return;
153
+ const raw = this.commitHourDraft(side, draft);
154
+ const displayDraft = Number(draft) === raw ? draft : String(raw);
155
+ target.value = displayDraft;
156
+ this.setDraft(this.getEditingKey(side, 'hour'), displayDraft);
157
+ };
158
+ handleMinuteInput = (side, event) => {
159
+ const target = event.target;
160
+ const draft = this.sanitizeInput(target.value);
161
+ target.value = draft;
162
+ this.setDraft(this.getEditingKey(side, 'minute'), draft);
163
+ if (draft === '')
164
+ return;
165
+ if (draft.length < 2)
166
+ return;
167
+ const nextMinute = this.commitMinuteDraft(side, draft);
168
+ const displayDraft = Number(draft) === nextMinute ? draft : String(nextMinute);
169
+ target.value = displayDraft;
170
+ this.setDraft(this.getEditingKey(side, 'minute'), displayDraft);
171
+ };
172
+ renderMeridiemButton(side, label, meridiem, position) {
173
+ const selected = this.getMeridiem(side) === meridiem;
174
+ return (h("button", { type: "button", class: {
175
+ 'sd-time-range-picker-selector__meridiem-button': true,
176
+ 'sd-time-range-picker-selector__meridiem-button--selected': selected,
177
+ [`sd-time-range-picker-selector__meridiem-button--${position}`]: true,
178
+ }, onClick: () => this.setMeridiem(side, meridiem) }, label));
179
+ }
180
+ renderColumn(side, type) {
181
+ const isHour = type === 'hour';
182
+ const { minute } = this.getParts(side);
183
+ const value = isHour ? this.getDisplayHour(side) : minute;
184
+ const editingKey = this.getEditingKey(side, type);
185
+ const displayValue = this.editingKey === editingKey
186
+ ? (this.inputDraft[editingKey] ?? '')
187
+ : String(value).padStart(2, '0');
188
+ return (h("div", { class: "sd-time-range-picker-selector__column" }, h("sd-ghost-button", { icon: "chevronUp", size: "xs", ariaLabel: `${side === 'start' ? '시작' : '종료'} ${isHour ? '시' : '분'} 증가`, onSdClick: () => isHour ? this.changeHour(side, 1) : this.changeMinute(side, this.minuteStep) }), h("input", { class: "sd-time-range-picker-selector__input", type: "text", inputmode: "numeric", value: displayValue, placeholder: "-", onFocus: () => this.beginEdit(side, type, value), onBlur: () => this.endEdit(side, type), onInput: event => isHour ? this.handleHourInput(side, event) : this.handleMinuteInput(side, event), "aria-label": `${side === 'start' ? '시작' : '종료'} ${isHour ? '시' : '분'}` }), h("sd-ghost-button", { icon: "chevronDown", size: "xs", ariaLabel: `${side === 'start' ? '시작' : '종료'} ${isHour ? '시' : '분'} 감소`, onSdClick: () => isHour ? this.changeHour(side, -1) : this.changeMinute(side, -this.minuteStep) })));
189
+ }
190
+ renderPanel(side, title) {
191
+ return (h("div", { class: "sd-time-range-picker-selector__panel" }, h("div", { class: "sd-time-range-picker-selector__heading" }, h("div", { class: "sd-time-range-picker-selector__heading-text" }, title), this.useMeridiem && (h("div", { class: "sd-time-range-picker-selector__meridiem-group" }, this.renderMeridiemButton(side, '오전', 'AM', 'first'), this.renderMeridiemButton(side, '오후', 'PM', 'end')))), h("div", { class: "sd-time-range-picker-selector__time" }, this.renderColumn(side, 'hour'), h("span", { class: "sd-time-range-picker-selector__colon" }, ":"), this.renderColumn(side, 'minute'))));
192
+ }
193
+ render() {
194
+ const cssVars = {
195
+ '--selector-bg': TIMEPICKER_SELECTOR.bg,
196
+ '--selector-radius': `${TIMEPICKER_SELECTOR.radius}px`,
197
+ '--selector-range-padding': `${TIMEPICKER_SELECTOR.range.paddingXY}px`,
198
+ '--selector-range-panel-gap': `${TIMEPICKER_SELECTOR.range.panelGap}px`,
199
+ '--selector-range-section-gap': `${TIMEPICKER_SELECTOR.range.section.gap}px`,
200
+ '--selector-range-heading-gap': `${TIMEPICKER_SELECTOR.range.heading.gap}px`,
201
+ '--selector-range-heading-color': TIMEPICKER_SELECTOR.range.heading.color,
202
+ '--selector-time-gap': `${TIMEPICKER_SELECTOR.time.gap}px`,
203
+ '--selector-time-column-gap': `${TIMEPICKER_SELECTOR.time.column.gap}px`,
204
+ '--selector-input-width': `${TIMEPICKER_SELECTOR.inputWidth}px`,
205
+ '--selector-colon-size': `${TIMEPICKER_SELECTOR.colonSize}px`,
206
+ '--selector-border-width': `${TIMEPICKER_COLORS.border.width}px`,
207
+ '--selector-border-default': TIMEPICKER_COLORS.border.default,
208
+ '--selector-border-focus': TIMEPICKER_COLORS.border.focus,
209
+ '--selector-bg-disabled': TIMEPICKER_COLORS.bg.disabled,
210
+ '--selector-text-default': TIMEPICKER_COLORS.text.default,
211
+ };
212
+ return (h("div", { key: 'd62a959d611bd9379c0f07cd29cea18cda66b1f6', class: "sd-time-range-picker-selector", style: cssVars }, this.renderPanel('start', '시작 시간'), h("div", { key: '23e668d0bae4a16fdc8af3be4a2c40bec2d7f1cd', class: "sd-time-range-picker-selector__divider" }), this.renderPanel('end', '종료 시간')));
213
+ }
214
+ };
215
+ SdTimeRangePickerSelector.style = sdTimeRangePickerSelectorCss();
216
+
217
+ export { SdTimeRangePickerSelector as sd_time_range_picker_selector };