@editora/ui-core 0.1.8 → 0.1.10

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 (551) hide show
  1. package/README.md +35 -0
  2. package/dist/ElementBase-1b301e7f.js +1 -0
  3. package/dist/ElementBase-909688f3.mjs +79 -0
  4. package/dist/ElementBase.d.ts.map +1 -1
  5. package/dist/__tests__/setup.d.ts +2 -0
  6. package/dist/__tests__/setup.d.ts.map +1 -1
  7. package/dist/accordion.cjs.js +360 -0
  8. package/dist/accordion.esm.js +647 -0
  9. package/dist/alert-dialog.cjs.js +567 -0
  10. package/dist/alert-dialog.esm.js +1043 -0
  11. package/dist/alert.cjs.js +351 -0
  12. package/dist/alert.esm.js +450 -0
  13. package/dist/anchor.cjs.js +30 -0
  14. package/dist/anchor.esm.js +62 -0
  15. package/dist/animated-beam.cjs.js +720 -0
  16. package/dist/animated-beam.esm.js +1540 -0
  17. package/dist/animated-list.cjs.js +672 -0
  18. package/dist/animated-list.esm.js +1137 -0
  19. package/dist/animated-text.cjs.js +683 -0
  20. package/dist/animated-text.esm.js +1020 -0
  21. package/dist/app-header.cjs.js +345 -0
  22. package/dist/app-header.esm.js +398 -0
  23. package/dist/aspect-ratio.cjs.js +294 -0
  24. package/dist/aspect-ratio.esm.js +416 -0
  25. package/dist/avatar.cjs.js +365 -0
  26. package/dist/avatar.esm.js +513 -0
  27. package/dist/badge.cjs.js +432 -0
  28. package/dist/badge.esm.js +554 -0
  29. package/dist/block-controls.cjs.js +347 -0
  30. package/dist/block-controls.esm.js +556 -0
  31. package/dist/box.cjs.js +226 -0
  32. package/dist/box.esm.js +556 -0
  33. package/dist/breadcrumb.cjs.js +288 -0
  34. package/dist/breadcrumb.esm.js +523 -0
  35. package/dist/button.cjs.js +521 -0
  36. package/dist/button.esm.js +671 -0
  37. package/dist/calendar-2c11b824.mjs +1685 -0
  38. package/dist/calendar-a8735e40.js +741 -0
  39. package/dist/calendar.cjs.js +1 -0
  40. package/dist/calendar.esm.js +11 -0
  41. package/dist/card.cjs.js +306 -0
  42. package/dist/card.esm.js +378 -0
  43. package/dist/chart.cjs.js +783 -0
  44. package/dist/chart.esm.js +1369 -0
  45. package/dist/checkbox.cjs.js +338 -0
  46. package/dist/checkbox.esm.js +455 -0
  47. package/dist/collapsible.cjs.js +381 -0
  48. package/dist/collapsible.esm.js +548 -0
  49. package/dist/collection-a1aac0c6.mjs +56 -0
  50. package/dist/collection-a2969ad2.js +1 -0
  51. package/dist/collection.cjs.js +1 -0
  52. package/dist/collection.esm.js +136 -0
  53. package/dist/color-picker.cjs.js +803 -0
  54. package/dist/color-picker.esm.js +1809 -0
  55. package/dist/combobox.cjs.js +525 -0
  56. package/dist/combobox.esm.js +1023 -0
  57. package/dist/command-palette.cjs.js +67 -0
  58. package/dist/command-palette.esm.js +181 -0
  59. package/dist/command.cjs.js +130 -0
  60. package/dist/command.esm.js +307 -0
  61. package/dist/components/date-time-utils.d.ts.map +1 -1
  62. package/dist/components/ui-anchor.d.ts +7 -0
  63. package/dist/components/ui-anchor.d.ts.map +1 -1
  64. package/dist/components/ui-data-table.d.ts.map +1 -1
  65. package/dist/components/ui-date-picker.d.ts.map +1 -1
  66. package/dist/components/ui-date-range-picker.d.ts.map +1 -1
  67. package/dist/components/ui-date-time-picker.d.ts.map +1 -1
  68. package/dist/components/ui-drawer.d.ts.map +1 -1
  69. package/dist/components/ui-form.d.ts +0 -1
  70. package/dist/components/ui-form.d.ts.map +1 -1
  71. package/dist/components/ui-listbox.d.ts +3 -0
  72. package/dist/components/ui-listbox.d.ts.map +1 -1
  73. package/dist/components/ui-number-ticker.d.ts.map +1 -1
  74. package/dist/components/ui-portal.d.ts +1 -0
  75. package/dist/components/ui-portal.d.ts.map +1 -1
  76. package/dist/components/ui-sidebar.d.ts.map +1 -1
  77. package/dist/components/ui-sortable.d.ts +192 -0
  78. package/dist/components/ui-sortable.d.ts.map +1 -0
  79. package/dist/components/ui-tooltip.d.ts.map +1 -1
  80. package/dist/components/ui-transfer-list.d.ts +5 -0
  81. package/dist/components/ui-transfer-list.d.ts.map +1 -1
  82. package/dist/container.cjs.js +115 -0
  83. package/dist/container.esm.js +156 -0
  84. package/dist/context-menu.cjs.js +357 -0
  85. package/dist/context-menu.esm.js +1204 -0
  86. package/dist/control-group.cjs.js +80 -0
  87. package/dist/control-group.esm.js +110 -0
  88. package/dist/data-table.cjs.js +682 -0
  89. package/dist/data-table.esm.js +1660 -0
  90. package/dist/date-field.cjs.js +142 -0
  91. package/dist/date-field.esm.js +384 -0
  92. package/dist/date-picker.cjs.js +570 -0
  93. package/dist/date-picker.esm.js +1067 -0
  94. package/dist/date-range-picker.cjs.js +455 -0
  95. package/dist/date-range-picker.esm.js +973 -0
  96. package/dist/date-range-time-picker.cjs.js +573 -0
  97. package/dist/date-range-time-picker.esm.js +1137 -0
  98. package/dist/date-time-picker.cjs.js +495 -0
  99. package/dist/date-time-picker.esm.js +1062 -0
  100. package/dist/date-time-utils-5cf58cd0.js +1 -0
  101. package/dist/date-time-utils-bdceb7af.mjs +273 -0
  102. package/dist/description.cjs.js +85 -0
  103. package/dist/description.esm.js +136 -0
  104. package/dist/dialog.cjs.js +406 -0
  105. package/dist/dialog.esm.js +822 -0
  106. package/dist/direction-provider.cjs.js +30 -0
  107. package/dist/direction-provider.esm.js +74 -0
  108. package/dist/dismissable-layer-193e3bed.js +1 -0
  109. package/dist/dismissable-layer-9c7e6b58.mjs +112 -0
  110. package/dist/dismissable-layer.cjs.js +6 -0
  111. package/dist/dismissable-layer.esm.js +115 -0
  112. package/dist/dock.cjs.js +347 -0
  113. package/dist/dock.esm.js +826 -0
  114. package/dist/drawer.cjs.js +538 -0
  115. package/dist/drawer.esm.js +872 -0
  116. package/dist/dropdown.cjs.js +511 -0
  117. package/dist/dropdown.esm.js +1084 -0
  118. package/dist/dropzone.cjs.js +1 -0
  119. package/dist/dropzone.esm.js +11 -0
  120. package/dist/empty-state.cjs.js +169 -0
  121. package/dist/empty-state.esm.js +199 -0
  122. package/dist/field-error.cjs.js +74 -0
  123. package/dist/field-error.esm.js +125 -0
  124. package/dist/field.cjs.js +398 -0
  125. package/dist/field.esm.js +542 -0
  126. package/dist/fieldset.cjs.js +214 -0
  127. package/dist/fieldset.esm.js +298 -0
  128. package/dist/file-upload.cjs.js +353 -0
  129. package/dist/file-upload.esm.js +740 -0
  130. package/dist/flex.cjs.js +54 -0
  131. package/dist/flex.esm.js +168 -0
  132. package/dist/floating-toolbar.cjs.js +223 -0
  133. package/dist/floating-toolbar.esm.js +513 -0
  134. package/dist/focus-scope-103833ee.mjs +147 -0
  135. package/dist/focus-scope-2b12b4e7.js +1 -0
  136. package/dist/focus-scope.cjs.js +6 -0
  137. package/dist/focus-scope.esm.js +97 -0
  138. package/dist/form.cjs.js +377 -0
  139. package/dist/form.esm.js +862 -0
  140. package/dist/gantt.cjs.js +157 -0
  141. package/dist/gantt.esm.js +214 -0
  142. package/dist/grid.cjs.js +67 -0
  143. package/dist/grid.esm.js +211 -0
  144. package/dist/hover-card.cjs.js +284 -0
  145. package/dist/hover-card.esm.js +470 -0
  146. package/dist/icon-9ed13093.mjs +364 -0
  147. package/dist/icon-cloud.cjs.js +495 -0
  148. package/dist/icon-cloud.esm.js +828 -0
  149. package/dist/icon-eaa486b3.js +207 -0
  150. package/dist/icon.cjs.js +1 -0
  151. package/dist/icon.esm.js +6 -0
  152. package/dist/index.cjs.js +1 -35924
  153. package/dist/index.d.ts +3 -0
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.esm.js +440 -68558
  156. package/dist/inline-edit.cjs.js +118 -0
  157. package/dist/inline-edit.esm.js +206 -0
  158. package/dist/input.cjs.js +535 -0
  159. package/dist/input.esm.js +790 -0
  160. package/dist/label.cjs.js +195 -0
  161. package/dist/label.esm.js +301 -0
  162. package/dist/layout.cjs.js +266 -0
  163. package/dist/layout.esm.js +408 -0
  164. package/dist/listbox-308789a0.mjs +210 -0
  165. package/dist/listbox-ef2f708e.js +46 -0
  166. package/dist/listbox.cjs.js +1 -0
  167. package/dist/listbox.esm.js +6 -0
  168. package/dist/marquee.cjs.js +513 -0
  169. package/dist/marquee.esm.js +767 -0
  170. package/dist/masonry-grid.cjs.js +65 -0
  171. package/dist/masonry-grid.esm.js +180 -0
  172. package/dist/menu-item-styles-27fdbac4.mjs +181 -0
  173. package/dist/menu-item-styles-83ad1e22.js +152 -0
  174. package/dist/menu.cjs.js +275 -0
  175. package/dist/menu.esm.js +743 -0
  176. package/dist/menubar.cjs.js +455 -0
  177. package/dist/menubar.esm.js +1195 -0
  178. package/dist/meter.cjs.js +241 -0
  179. package/dist/meter.esm.js +334 -0
  180. package/dist/multi-select.cjs.js +549 -0
  181. package/dist/multi-select.esm.js +914 -0
  182. package/dist/navigation-menu.cjs.js +382 -0
  183. package/dist/navigation-menu.esm.js +614 -0
  184. package/dist/number-field.cjs.js +351 -0
  185. package/dist/number-field.esm.js +771 -0
  186. package/dist/number-ticker.cjs.js +209 -0
  187. package/dist/number-ticker.esm.js +749 -0
  188. package/dist/odometer.cjs.js +313 -0
  189. package/dist/odometer.esm.js +565 -0
  190. package/dist/orbiter.cjs.js +495 -0
  191. package/dist/orbiter.esm.js +831 -0
  192. package/dist/overlayManager-86454af7.mjs +58 -0
  193. package/dist/overlayManager-ece06517.js +1 -0
  194. package/dist/pagination.cjs.js +201 -0
  195. package/dist/pagination.esm.js +297 -0
  196. package/dist/panel-group-40254cdd.js +36 -0
  197. package/dist/panel-group-a376cc5e.mjs +326 -0
  198. package/dist/panel-group.cjs.js +1 -0
  199. package/dist/panel-group.esm.js +7 -0
  200. package/dist/panel.cjs.js +22 -0
  201. package/dist/panel.esm.js +46 -0
  202. package/dist/password-field.cjs.js +626 -0
  203. package/dist/password-field.esm.js +925 -0
  204. package/dist/pin-input.cjs.js +185 -0
  205. package/dist/pin-input.esm.js +412 -0
  206. package/dist/placement-grid.cjs.js +99 -0
  207. package/dist/placement-grid.esm.js +486 -0
  208. package/dist/plugin-panel.cjs.js +131 -0
  209. package/dist/plugin-panel.esm.js +173 -0
  210. package/dist/popover.cjs.js +286 -0
  211. package/dist/popover.esm.js +483 -0
  212. package/dist/portal-1cf392ca.mjs +114 -0
  213. package/dist/portal-d8d7fbca.js +1 -0
  214. package/dist/portal.cjs.js +39 -0
  215. package/dist/portal.d.ts.map +1 -1
  216. package/dist/portal.esm.js +187 -0
  217. package/dist/positioner-accc6e5f.js +1 -0
  218. package/dist/positioner-fbd61bf1.mjs +132 -0
  219. package/dist/positioner.cjs.js +6 -0
  220. package/dist/positioner.esm.js +137 -0
  221. package/dist/presence.cjs.js +164 -0
  222. package/dist/presence.esm.js +301 -0
  223. package/dist/progress.cjs.js +329 -0
  224. package/dist/progress.esm.js +453 -0
  225. package/dist/quick-actions.cjs.js +202 -0
  226. package/dist/quick-actions.esm.js +357 -0
  227. package/dist/radio-group.cjs.js +257 -0
  228. package/dist/radio-group.esm.js +477 -0
  229. package/dist/rating.cjs.js +355 -0
  230. package/dist/rating.esm.js +637 -0
  231. package/dist/roving-focus-group-4350c9a7.mjs +50 -0
  232. package/dist/roving-focus-group-5c059bf9.js +1 -0
  233. package/dist/roving-focus-group.cjs.js +1 -0
  234. package/dist/roving-focus-group.esm.js +72 -0
  235. package/dist/runtime-4ac0107b.mjs +1954 -0
  236. package/dist/runtime-5f282bc8.js +1 -0
  237. package/dist/runtime.cjs.js +1 -0
  238. package/dist/runtime.d.ts +9 -0
  239. package/dist/runtime.d.ts.map +1 -0
  240. package/dist/runtime.esm.js +26 -0
  241. package/dist/scroll-area.cjs.js +294 -0
  242. package/dist/scroll-area.esm.js +478 -0
  243. package/dist/scroll-lock-48793569.js +1 -0
  244. package/dist/scroll-lock-9de6d328.mjs +53 -0
  245. package/dist/section.cjs.js +167 -0
  246. package/dist/section.esm.js +202 -0
  247. package/dist/select.cjs.js +799 -0
  248. package/dist/select.esm.js +1266 -0
  249. package/dist/selection-popup.cjs.js +203 -0
  250. package/dist/selection-popup.esm.js +392 -0
  251. package/dist/separator.cjs.js +221 -0
  252. package/dist/separator.esm.js +241 -0
  253. package/dist/sidebar.cjs.js +769 -0
  254. package/dist/sidebar.esm.js +1219 -0
  255. package/dist/skeleton.cjs.js +205 -0
  256. package/dist/skeleton.esm.js +249 -0
  257. package/dist/slider.cjs.js +493 -0
  258. package/dist/slider.esm.js +694 -0
  259. package/dist/slot.cjs.js +159 -0
  260. package/dist/slot.esm.js +227 -0
  261. package/dist/sortable.cjs.js +855 -0
  262. package/dist/sortable.d.ts +4 -0
  263. package/dist/sortable.d.ts.map +1 -0
  264. package/dist/sortable.esm.js +2178 -0
  265. package/dist/spinning-text.cjs.js +395 -0
  266. package/dist/spinning-text.esm.js +635 -0
  267. package/dist/split-button.cjs.js +410 -0
  268. package/dist/split-button.esm.js +619 -0
  269. package/dist/splitter.cjs.js +70 -0
  270. package/dist/splitter.esm.js +105 -0
  271. package/dist/standalone/accordion.d.ts +2 -0
  272. package/dist/standalone/accordion.d.ts.map +1 -0
  273. package/dist/standalone/alert-dialog.d.ts +2 -0
  274. package/dist/standalone/alert-dialog.d.ts.map +1 -0
  275. package/dist/standalone/alert.d.ts +2 -0
  276. package/dist/standalone/alert.d.ts.map +1 -0
  277. package/dist/standalone/anchor.d.ts +2 -0
  278. package/dist/standalone/anchor.d.ts.map +1 -0
  279. package/dist/standalone/animated-beam.d.ts +2 -0
  280. package/dist/standalone/animated-beam.d.ts.map +1 -0
  281. package/dist/standalone/animated-list.d.ts +2 -0
  282. package/dist/standalone/animated-list.d.ts.map +1 -0
  283. package/dist/standalone/animated-text.d.ts +2 -0
  284. package/dist/standalone/animated-text.d.ts.map +1 -0
  285. package/dist/standalone/app-header.d.ts +2 -0
  286. package/dist/standalone/app-header.d.ts.map +1 -0
  287. package/dist/standalone/aspect-ratio.d.ts +2 -0
  288. package/dist/standalone/aspect-ratio.d.ts.map +1 -0
  289. package/dist/standalone/avatar.d.ts +2 -0
  290. package/dist/standalone/avatar.d.ts.map +1 -0
  291. package/dist/standalone/badge.d.ts +2 -0
  292. package/dist/standalone/badge.d.ts.map +1 -0
  293. package/dist/standalone/block-controls.d.ts +2 -0
  294. package/dist/standalone/block-controls.d.ts.map +1 -0
  295. package/dist/standalone/box.d.ts +2 -0
  296. package/dist/standalone/box.d.ts.map +1 -0
  297. package/dist/standalone/breadcrumb.d.ts +2 -0
  298. package/dist/standalone/breadcrumb.d.ts.map +1 -0
  299. package/dist/standalone/button.d.ts +2 -0
  300. package/dist/standalone/button.d.ts.map +1 -0
  301. package/dist/standalone/calendar.d.ts +2 -0
  302. package/dist/standalone/calendar.d.ts.map +1 -0
  303. package/dist/standalone/card.d.ts +2 -0
  304. package/dist/standalone/card.d.ts.map +1 -0
  305. package/dist/standalone/chart.d.ts +2 -0
  306. package/dist/standalone/chart.d.ts.map +1 -0
  307. package/dist/standalone/checkbox.d.ts +2 -0
  308. package/dist/standalone/checkbox.d.ts.map +1 -0
  309. package/dist/standalone/collapsible.d.ts +2 -0
  310. package/dist/standalone/collapsible.d.ts.map +1 -0
  311. package/dist/standalone/collection.d.ts +2 -0
  312. package/dist/standalone/collection.d.ts.map +1 -0
  313. package/dist/standalone/color-picker.d.ts +2 -0
  314. package/dist/standalone/color-picker.d.ts.map +1 -0
  315. package/dist/standalone/combobox.d.ts +2 -0
  316. package/dist/standalone/combobox.d.ts.map +1 -0
  317. package/dist/standalone/command-palette.d.ts +2 -0
  318. package/dist/standalone/command-palette.d.ts.map +1 -0
  319. package/dist/standalone/command.d.ts +2 -0
  320. package/dist/standalone/command.d.ts.map +1 -0
  321. package/dist/standalone/container.d.ts +2 -0
  322. package/dist/standalone/container.d.ts.map +1 -0
  323. package/dist/standalone/context-menu.d.ts +2 -0
  324. package/dist/standalone/context-menu.d.ts.map +1 -0
  325. package/dist/standalone/control-group.d.ts +2 -0
  326. package/dist/standalone/control-group.d.ts.map +1 -0
  327. package/dist/standalone/data-table.d.ts +2 -0
  328. package/dist/standalone/data-table.d.ts.map +1 -0
  329. package/dist/standalone/date-field.d.ts +2 -0
  330. package/dist/standalone/date-field.d.ts.map +1 -0
  331. package/dist/standalone/date-picker.d.ts +2 -0
  332. package/dist/standalone/date-picker.d.ts.map +1 -0
  333. package/dist/standalone/date-range-picker.d.ts +2 -0
  334. package/dist/standalone/date-range-picker.d.ts.map +1 -0
  335. package/dist/standalone/date-range-time-picker.d.ts +2 -0
  336. package/dist/standalone/date-range-time-picker.d.ts.map +1 -0
  337. package/dist/standalone/date-time-picker.d.ts +2 -0
  338. package/dist/standalone/date-time-picker.d.ts.map +1 -0
  339. package/dist/standalone/description.d.ts +2 -0
  340. package/dist/standalone/description.d.ts.map +1 -0
  341. package/dist/standalone/dialog.d.ts +2 -0
  342. package/dist/standalone/dialog.d.ts.map +1 -0
  343. package/dist/standalone/direction-provider.d.ts +2 -0
  344. package/dist/standalone/direction-provider.d.ts.map +1 -0
  345. package/dist/standalone/dismissable-layer.d.ts +2 -0
  346. package/dist/standalone/dismissable-layer.d.ts.map +1 -0
  347. package/dist/standalone/dock.d.ts +2 -0
  348. package/dist/standalone/dock.d.ts.map +1 -0
  349. package/dist/standalone/drawer.d.ts +2 -0
  350. package/dist/standalone/drawer.d.ts.map +1 -0
  351. package/dist/standalone/dropdown.d.ts +2 -0
  352. package/dist/standalone/dropdown.d.ts.map +1 -0
  353. package/dist/standalone/dropzone.d.ts +2 -0
  354. package/dist/standalone/dropzone.d.ts.map +1 -0
  355. package/dist/standalone/empty-state.d.ts +2 -0
  356. package/dist/standalone/empty-state.d.ts.map +1 -0
  357. package/dist/standalone/field-error.d.ts +2 -0
  358. package/dist/standalone/field-error.d.ts.map +1 -0
  359. package/dist/standalone/field.d.ts +2 -0
  360. package/dist/standalone/field.d.ts.map +1 -0
  361. package/dist/standalone/fieldset.d.ts +2 -0
  362. package/dist/standalone/fieldset.d.ts.map +1 -0
  363. package/dist/standalone/file-upload.d.ts +2 -0
  364. package/dist/standalone/file-upload.d.ts.map +1 -0
  365. package/dist/standalone/flex.d.ts +2 -0
  366. package/dist/standalone/flex.d.ts.map +1 -0
  367. package/dist/standalone/floating-toolbar.d.ts +2 -0
  368. package/dist/standalone/floating-toolbar.d.ts.map +1 -0
  369. package/dist/standalone/focus-scope.d.ts +2 -0
  370. package/dist/standalone/focus-scope.d.ts.map +1 -0
  371. package/dist/standalone/form.d.ts +2 -0
  372. package/dist/standalone/form.d.ts.map +1 -0
  373. package/dist/standalone/gantt.d.ts +2 -0
  374. package/dist/standalone/gantt.d.ts.map +1 -0
  375. package/dist/standalone/grid.d.ts +2 -0
  376. package/dist/standalone/grid.d.ts.map +1 -0
  377. package/dist/standalone/hover-card.d.ts +2 -0
  378. package/dist/standalone/hover-card.d.ts.map +1 -0
  379. package/dist/standalone/icon-cloud.d.ts +2 -0
  380. package/dist/standalone/icon-cloud.d.ts.map +1 -0
  381. package/dist/standalone/icon.d.ts +2 -0
  382. package/dist/standalone/icon.d.ts.map +1 -0
  383. package/dist/standalone/inline-edit.d.ts +2 -0
  384. package/dist/standalone/inline-edit.d.ts.map +1 -0
  385. package/dist/standalone/input.d.ts +2 -0
  386. package/dist/standalone/input.d.ts.map +1 -0
  387. package/dist/standalone/label.d.ts +2 -0
  388. package/dist/standalone/label.d.ts.map +1 -0
  389. package/dist/standalone/layout.d.ts +2 -0
  390. package/dist/standalone/layout.d.ts.map +1 -0
  391. package/dist/standalone/listbox.d.ts +2 -0
  392. package/dist/standalone/listbox.d.ts.map +1 -0
  393. package/dist/standalone/marquee.d.ts +2 -0
  394. package/dist/standalone/marquee.d.ts.map +1 -0
  395. package/dist/standalone/masonry-grid.d.ts +2 -0
  396. package/dist/standalone/masonry-grid.d.ts.map +1 -0
  397. package/dist/standalone/menu.d.ts +2 -0
  398. package/dist/standalone/menu.d.ts.map +1 -0
  399. package/dist/standalone/menubar.d.ts +2 -0
  400. package/dist/standalone/menubar.d.ts.map +1 -0
  401. package/dist/standalone/meter.d.ts +2 -0
  402. package/dist/standalone/meter.d.ts.map +1 -0
  403. package/dist/standalone/multi-select.d.ts +2 -0
  404. package/dist/standalone/multi-select.d.ts.map +1 -0
  405. package/dist/standalone/navigation-menu.d.ts +2 -0
  406. package/dist/standalone/navigation-menu.d.ts.map +1 -0
  407. package/dist/standalone/number-field.d.ts +2 -0
  408. package/dist/standalone/number-field.d.ts.map +1 -0
  409. package/dist/standalone/number-ticker.d.ts +2 -0
  410. package/dist/standalone/number-ticker.d.ts.map +1 -0
  411. package/dist/standalone/odometer.d.ts +2 -0
  412. package/dist/standalone/odometer.d.ts.map +1 -0
  413. package/dist/standalone/orbiter.d.ts +2 -0
  414. package/dist/standalone/orbiter.d.ts.map +1 -0
  415. package/dist/standalone/pagination.d.ts +2 -0
  416. package/dist/standalone/pagination.d.ts.map +1 -0
  417. package/dist/standalone/panel-group.d.ts +2 -0
  418. package/dist/standalone/panel-group.d.ts.map +1 -0
  419. package/dist/standalone/panel.d.ts +2 -0
  420. package/dist/standalone/panel.d.ts.map +1 -0
  421. package/dist/standalone/password-field.d.ts +2 -0
  422. package/dist/standalone/password-field.d.ts.map +1 -0
  423. package/dist/standalone/pin-input.d.ts +2 -0
  424. package/dist/standalone/pin-input.d.ts.map +1 -0
  425. package/dist/standalone/placement-grid.d.ts +2 -0
  426. package/dist/standalone/placement-grid.d.ts.map +1 -0
  427. package/dist/standalone/plugin-panel.d.ts +2 -0
  428. package/dist/standalone/plugin-panel.d.ts.map +1 -0
  429. package/dist/standalone/popover.d.ts +2 -0
  430. package/dist/standalone/popover.d.ts.map +1 -0
  431. package/dist/standalone/portal.d.ts +2 -0
  432. package/dist/standalone/portal.d.ts.map +1 -0
  433. package/dist/standalone/positioner.d.ts +2 -0
  434. package/dist/standalone/positioner.d.ts.map +1 -0
  435. package/dist/standalone/presence.d.ts +2 -0
  436. package/dist/standalone/presence.d.ts.map +1 -0
  437. package/dist/standalone/progress.d.ts +2 -0
  438. package/dist/standalone/progress.d.ts.map +1 -0
  439. package/dist/standalone/quick-actions.d.ts +2 -0
  440. package/dist/standalone/quick-actions.d.ts.map +1 -0
  441. package/dist/standalone/radio-group.d.ts +2 -0
  442. package/dist/standalone/radio-group.d.ts.map +1 -0
  443. package/dist/standalone/rating.d.ts +2 -0
  444. package/dist/standalone/rating.d.ts.map +1 -0
  445. package/dist/standalone/roving-focus-group.d.ts +2 -0
  446. package/dist/standalone/roving-focus-group.d.ts.map +1 -0
  447. package/dist/standalone/scroll-area.d.ts +2 -0
  448. package/dist/standalone/scroll-area.d.ts.map +1 -0
  449. package/dist/standalone/section.d.ts +2 -0
  450. package/dist/standalone/section.d.ts.map +1 -0
  451. package/dist/standalone/select.d.ts +2 -0
  452. package/dist/standalone/select.d.ts.map +1 -0
  453. package/dist/standalone/selection-popup.d.ts +2 -0
  454. package/dist/standalone/selection-popup.d.ts.map +1 -0
  455. package/dist/standalone/separator.d.ts +2 -0
  456. package/dist/standalone/separator.d.ts.map +1 -0
  457. package/dist/standalone/sidebar.d.ts +2 -0
  458. package/dist/standalone/sidebar.d.ts.map +1 -0
  459. package/dist/standalone/skeleton.d.ts +2 -0
  460. package/dist/standalone/skeleton.d.ts.map +1 -0
  461. package/dist/standalone/slider.d.ts +2 -0
  462. package/dist/standalone/slider.d.ts.map +1 -0
  463. package/dist/standalone/slot.d.ts +2 -0
  464. package/dist/standalone/slot.d.ts.map +1 -0
  465. package/dist/standalone/spinning-text.d.ts +2 -0
  466. package/dist/standalone/spinning-text.d.ts.map +1 -0
  467. package/dist/standalone/split-button.d.ts +2 -0
  468. package/dist/standalone/split-button.d.ts.map +1 -0
  469. package/dist/standalone/splitter.d.ts +2 -0
  470. package/dist/standalone/splitter.d.ts.map +1 -0
  471. package/dist/standalone/stepper.d.ts +2 -0
  472. package/dist/standalone/stepper.d.ts.map +1 -0
  473. package/dist/standalone/switch.d.ts +2 -0
  474. package/dist/standalone/switch.d.ts.map +1 -0
  475. package/dist/standalone/table.d.ts +2 -0
  476. package/dist/standalone/table.d.ts.map +1 -0
  477. package/dist/standalone/tabs.d.ts +2 -0
  478. package/dist/standalone/tabs.d.ts.map +1 -0
  479. package/dist/standalone/tags-input.d.ts +2 -0
  480. package/dist/standalone/tags-input.d.ts.map +1 -0
  481. package/dist/standalone/textarea.d.ts +2 -0
  482. package/dist/standalone/textarea.d.ts.map +1 -0
  483. package/dist/standalone/time-field.d.ts +2 -0
  484. package/dist/standalone/time-field.d.ts.map +1 -0
  485. package/dist/standalone/time-picker.d.ts +2 -0
  486. package/dist/standalone/time-picker.d.ts.map +1 -0
  487. package/dist/standalone/timeline.d.ts +2 -0
  488. package/dist/standalone/timeline.d.ts.map +1 -0
  489. package/dist/standalone/toast.d.ts +2 -0
  490. package/dist/standalone/toast.d.ts.map +1 -0
  491. package/dist/standalone/toggle-group.d.ts +2 -0
  492. package/dist/standalone/toggle-group.d.ts.map +1 -0
  493. package/dist/standalone/toggle.d.ts +2 -0
  494. package/dist/standalone/toggle.d.ts.map +1 -0
  495. package/dist/standalone/toolbar.d.ts +2 -0
  496. package/dist/standalone/toolbar.d.ts.map +1 -0
  497. package/dist/standalone/tooltip.d.ts +2 -0
  498. package/dist/standalone/tooltip.d.ts.map +1 -0
  499. package/dist/standalone/transfer-list.d.ts +2 -0
  500. package/dist/standalone/transfer-list.d.ts.map +1 -0
  501. package/dist/standalone/tree-item.d.ts +2 -0
  502. package/dist/standalone/tree-item.d.ts.map +1 -0
  503. package/dist/standalone/tree.d.ts +2 -0
  504. package/dist/standalone/tree.d.ts.map +1 -0
  505. package/dist/standalone/visually-hidden.d.ts +2 -0
  506. package/dist/standalone/visually-hidden.d.ts.map +1 -0
  507. package/dist/standalone/wizard.d.ts +2 -0
  508. package/dist/standalone/wizard.d.ts.map +1 -0
  509. package/dist/stepper.cjs.js +337 -0
  510. package/dist/stepper.esm.js +578 -0
  511. package/dist/switch.cjs.js +397 -0
  512. package/dist/switch.esm.js +543 -0
  513. package/dist/table.cjs.js +212 -0
  514. package/dist/table.esm.js +432 -0
  515. package/dist/tabs.cjs.js +515 -0
  516. package/dist/tabs.esm.js +808 -0
  517. package/dist/tags-input.cjs.js +202 -0
  518. package/dist/tags-input.esm.js +436 -0
  519. package/dist/textarea.cjs.js +329 -0
  520. package/dist/textarea.esm.js +520 -0
  521. package/dist/theme.d.ts +1 -1
  522. package/dist/theme.d.ts.map +1 -1
  523. package/dist/time-field.cjs.js +142 -0
  524. package/dist/time-field.esm.js +387 -0
  525. package/dist/time-picker.cjs.js +284 -0
  526. package/dist/time-picker.esm.js +686 -0
  527. package/dist/timeline.cjs.js +198 -0
  528. package/dist/timeline.esm.js +248 -0
  529. package/dist/toast.cjs.js +234 -0
  530. package/dist/toast.esm.js +399 -0
  531. package/dist/toggle-group.cjs.js +131 -0
  532. package/dist/toggle-group.esm.js +382 -0
  533. package/dist/toggle.cjs.js +237 -0
  534. package/dist/toggle.esm.js +346 -0
  535. package/dist/toolbar.cjs.js +126 -0
  536. package/dist/toolbar.esm.js +240 -0
  537. package/dist/tooltip.cjs.js +159 -0
  538. package/dist/tooltip.esm.js +376 -0
  539. package/dist/transfer-list.cjs.js +734 -0
  540. package/dist/transfer-list.esm.js +969 -0
  541. package/dist/tree-0a7a8d05.js +39 -0
  542. package/dist/tree-dcd74a4a.mjs +294 -0
  543. package/dist/tree-item.cjs.js +103 -0
  544. package/dist/tree-item.esm.js +143 -0
  545. package/dist/tree.cjs.js +1 -0
  546. package/dist/tree.esm.js +7 -0
  547. package/dist/visually-hidden.cjs.js +42 -0
  548. package/dist/visually-hidden.esm.js +68 -0
  549. package/dist/wizard.cjs.js +677 -0
  550. package/dist/wizard.esm.js +1068 -0
  551. package/package.json +20 -1
@@ -0,0 +1,1062 @@
1
+ import { E as Y } from "./ElementBase-909688f3.mjs";
2
+ import { r as W } from "./calendar-2c11b824.mjs";
3
+ import { r as J, i as v, s as G, b as Q, f as X, t as tt, n as E, d as et, p as F, m as N, a as it, k as L, h as j, j as Z, o as y, l as nt, c as st } from "./date-time-utils-bdceb7af.mjs";
4
+ import "./scroll-lock-9de6d328.mjs";
5
+ let rt = 0;
6
+ const at = `
7
+ <svg viewBox="0 0 20 20" class="icon-svg" aria-hidden="true" focusable="false">
8
+ <path d="M6 2a1 1 0 0 1 1 1v1h6V3a1 1 0 1 1 2 0v1h.5A2.5 2.5 0 0 1 18 6.5v9A2.5 2.5 0 0 1 15.5 18h-11A2.5 2.5 0 0 1 2 15.5v-9A2.5 2.5 0 0 1 4.5 4H5V3a1 1 0 0 1 1-1Zm10 7H4v6.5c0 .276.224.5.5.5h11a.5.5 0 0 0 .5-.5V9ZM4.5 6a.5.5 0 0 0-.5.5V7h12v-.5a.5.5 0 0 0-.5-.5h-11Z" fill="currentColor"/>
9
+ </svg>
10
+ `, ot = `
11
+ <svg viewBox="0 0 20 20" class="icon-svg" aria-hidden="true" focusable="false">
12
+ <path d="M5.23 7.21a.75.75 0 0 1 1.06.02L10 11.12l3.71-3.9a.75.75 0 1 1 1.08 1.04l-4.25 4.47a.75.75 0 0 1-1.08 0L5.2 8.27a.75.75 0 0 1 .02-1.06Z" fill="currentColor"/>
13
+ </svg>
14
+ `, lt = `
15
+ <svg viewBox="0 0 20 20" class="icon-svg" aria-hidden="true" focusable="false">
16
+ <path d="M5.22 5.22a.75.75 0 0 1 1.06 0L10 8.94l3.72-3.72a.75.75 0 1 1 1.06 1.06L11.06 10l3.72 3.72a.75.75 0 1 1-1.06 1.06L10 11.06l-3.72 3.72a.75.75 0 1 1-1.06-1.06L8.94 10 5.22 6.28a.75.75 0 0 1 0-1.06Z" fill="currentColor"/>
17
+ </svg>
18
+ `, K = `
19
+ <svg viewBox="0 0 20 20" class="icon-svg" aria-hidden="true" focusable="false">
20
+ <path d="M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Zm.75 2.75a.75.75 0 0 0-1.5 0v3.88c0 .2.08.4.22.54l2.5 2.5a.75.75 0 1 0 1.06-1.06l-2.28-2.28V6.25Z" fill="currentColor"/>
21
+ </svg>
22
+ `, dt = `
23
+ :host {
24
+ --ui-dtp-bg: color-mix(in srgb, var(--ui-color-surface, #ffffff) 96%, transparent);
25
+ --ui-dtp-surface: linear-gradient(
26
+ 180deg,
27
+ color-mix(in srgb, var(--ui-color-surface, #ffffff) 98%, transparent),
28
+ color-mix(in srgb, var(--ui-color-surface, #ffffff) 90%, var(--ui-color-surface-alt, #f8fafc))
29
+ );
30
+ --ui-dtp-border: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 78%, transparent);
31
+ --ui-dp-text: var(--ui-color-text, #0f172a);
32
+ --ui-dp-muted: var(--ui-color-muted, #64748b);
33
+ --ui-dtp-accent: var(--ui-color-primary, #2563eb);
34
+ --ui-dtp-success: var(--ui-color-success, #16a34a);
35
+ --ui-dtp-error: var(--ui-color-danger, #dc2626);
36
+ --ui-dtp-radius: 12px;
37
+ --ui-dtp-panel-radius: 14px;
38
+ --ui-dtp-z: 1600;
39
+ --ui-dtp-shadow: none;
40
+ --ui-dtp-gap: 12px;
41
+ --ui-dtp-hit: 42px;
42
+ --ui-dtp-duration: 160ms;
43
+ --ui-dtp-ease: cubic-bezier(0.2, 0.9, 0.24, 1);
44
+ color-scheme: light dark;
45
+ display: inline-grid;
46
+ inline-size: min(100%, var(--ui-width, 360px));
47
+ min-inline-size: min(240px, 100%);
48
+ font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
49
+ color: var(--ui-dp-text);
50
+ }
51
+
52
+ :host([shape="square"]) {
53
+ --ui-dtp-radius: 6px;
54
+ --ui-dtp-panel-radius: 8px;
55
+ }
56
+
57
+ :host([shape="soft"]) {
58
+ --ui-dtp-radius: 16px;
59
+ --ui-dtp-panel-radius: 18px;
60
+ }
61
+
62
+ :host([size="sm"]) {
63
+ --ui-dtp-hit: 38px;
64
+ }
65
+
66
+ :host([size="lg"]) {
67
+ --ui-dtp-hit: 48px;
68
+ }
69
+
70
+ .root {
71
+ display: grid;
72
+ gap: 8px;
73
+ min-inline-size: 0;
74
+ }
75
+
76
+ .label {
77
+ font: 600 13px/1.35 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
78
+ color: var(--ui-dp-text);
79
+ display: inline-flex;
80
+ align-items: center;
81
+ gap: 6px;
82
+ }
83
+
84
+ .label[hidden] { display: none; }
85
+
86
+ .required {
87
+ color: var(--ui-dtp-error);
88
+ font-size: 11px;
89
+ line-height: 1;
90
+ }
91
+
92
+ .field {
93
+ display: grid;
94
+ grid-template-columns: auto minmax(0, 1fr) auto auto auto;
95
+ align-items: center;
96
+ gap: 8px;
97
+ min-block-size: var(--ui-dtp-hit);
98
+ border: 1px solid var(--ui-dtp-border);
99
+ border-radius: var(--ui-dtp-radius);
100
+ background: var(--ui-dtp-surface);
101
+ padding: 0 10px;
102
+ box-shadow: 0 1px 2px rgba(2, 6, 23, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
103
+ transition: border-color var(--ui-dtp-duration) var(--ui-dtp-ease), box-shadow var(--ui-dtp-duration) var(--ui-dtp-ease), transform var(--ui-dtp-duration) var(--ui-dtp-ease);
104
+ }
105
+
106
+ .field[data-open="true"],
107
+ .field:focus-within {
108
+ border-color: color-mix(in srgb, var(--ui-dtp-accent) 70%, transparent);
109
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-dtp-accent) 22%, transparent), 0 10px 22px rgba(2, 6, 23, 0.12);
110
+ }
111
+
112
+ .field[data-invalid="true"] {
113
+ border-color: color-mix(in srgb, var(--ui-dtp-error) 72%, transparent);
114
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-dtp-error) 20%, transparent);
115
+ }
116
+
117
+ .field[data-state="success"]:not([data-invalid="true"]) {
118
+ border-color: color-mix(in srgb, var(--ui-dtp-success) 56%, transparent);
119
+ box-shadow: 0 0 0 3px color-mix(in srgb, var(--ui-dtp-success) 18%, transparent);
120
+ }
121
+
122
+ .input {
123
+ border: 0;
124
+ background: transparent;
125
+ color: var(--ui-dp-text);
126
+ outline: none;
127
+ min-inline-size: 0;
128
+ inline-size: 100%;
129
+ padding: 8px 0;
130
+ font: 500 14px/1.35 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
131
+ }
132
+
133
+ .input::placeholder {
134
+ color: color-mix(in srgb, var(--ui-dp-text) 44%, transparent);
135
+ }
136
+
137
+ .icon {
138
+ display: inline-grid;
139
+ place-items: center;
140
+ color: color-mix(in srgb, var(--ui-dp-text) 68%, transparent);
141
+ inline-size: 20px;
142
+ block-size: 20px;
143
+ }
144
+
145
+ .icon-svg {
146
+ inline-size: 16px;
147
+ block-size: 16px;
148
+ pointer-events: none;
149
+ }
150
+
151
+ .btn {
152
+ border: 1px solid transparent;
153
+ background: color-mix(in srgb, var(--ui-dtp-bg) 84%, transparent);
154
+ inline-size: 28px;
155
+ block-size: 28px;
156
+ border-radius: 8px;
157
+ color: color-mix(in srgb, var(--ui-dp-text) 72%, transparent);
158
+ cursor: pointer;
159
+ display: inline-grid;
160
+ place-items: center;
161
+ transition: background-color var(--ui-dtp-duration) var(--ui-dtp-ease), color var(--ui-dtp-duration) var(--ui-dtp-ease), border-color var(--ui-dtp-duration) var(--ui-dtp-ease), transform var(--ui-dtp-duration) var(--ui-dtp-ease);
162
+ }
163
+
164
+ .btn:hover {
165
+ background: color-mix(in srgb, var(--ui-dtp-accent) 10%, transparent);
166
+ border-color: color-mix(in srgb, var(--ui-dtp-accent) 30%, transparent);
167
+ color: var(--ui-dp-text);
168
+ }
169
+
170
+ .btn:focus-visible {
171
+ outline: 2px solid color-mix(in srgb, var(--ui-dtp-accent) 64%, transparent);
172
+ outline-offset: 1px;
173
+ }
174
+
175
+ .btn:active {
176
+ transform: translateY(1px);
177
+ }
178
+
179
+ .btn[hidden] { display: none; }
180
+
181
+ .hint { color: var(--ui-dp-muted); font-size: 12px; line-height: 1.4; }
182
+ .error { color: var(--ui-dtp-error); font-size: 12px; line-height: 1.4; }
183
+ .hint[hidden], .error[hidden] { display: none; }
184
+
185
+ .inline-panel {
186
+ border: 1px solid var(--ui-dtp-border);
187
+ border-radius: var(--ui-dtp-panel-radius);
188
+ background: var(--ui-dtp-surface);
189
+ box-shadow: var(--ui-dtp-shadow);
190
+ inline-size: fit-content;
191
+ max-inline-size: 100%;
192
+ justify-self: start;
193
+ padding: 12px;
194
+ display: grid;
195
+ gap: var(--ui-dtp-gap);
196
+ }
197
+
198
+ .inline-panel .content {
199
+ gap: 10px;
200
+ grid-template-columns: minmax(0, 1fr) minmax(176px, 214px);
201
+ }
202
+
203
+ .inline-panel .time-panel {
204
+ padding: 10px;
205
+ gap: 8px;
206
+ }
207
+
208
+ .inline-panel .time-grid {
209
+ gap: 6px;
210
+ }
211
+
212
+ .inline-panel .footer {
213
+ gap: 6px;
214
+ }
215
+
216
+ .inline-panel[data-bare="true"] {
217
+ border: 0;
218
+ border-radius: 0;
219
+ background: var(--ui-dtp-bare-bg, var(--ui-dtp-bg));
220
+ box-shadow: none;
221
+ padding: 0;
222
+ }
223
+
224
+ .inline-panel[hidden] {
225
+ display: none !important;
226
+ }
227
+
228
+ .panel-title {
229
+ margin: 0;
230
+ font: 650 13px/1.35 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
231
+ color: var(--ui-dp-text);
232
+ }
233
+
234
+ :host([disabled]) .field {
235
+ opacity: 0.62;
236
+ pointer-events: none;
237
+ }
238
+
239
+ :host([readonly]) .field {
240
+ background: color-mix(in srgb, var(--ui-dtp-bg) 90%, var(--ui-color-surface-alt, #f8fafc));
241
+ }
242
+
243
+ :host([variant="contrast"]) {
244
+ --ui-dtp-bg: #0f172a;
245
+ --ui-dtp-border: #334155;
246
+ --ui-dp-text: #e2e8f0;
247
+ --ui-dp-muted: #94a3b8;
248
+ --ui-dtp-accent: #93c5fd;
249
+ --ui-dtp-surface: linear-gradient(180deg, color-mix(in srgb, #0f172a 84%, #1e293b), #0f172a);
250
+ --ui-dtp-shadow: 0 18px 36px rgba(2, 6, 23, 0.48);
251
+ }
252
+
253
+ @media (max-width: 640px) {
254
+ :host {
255
+ inline-size: min(100%, var(--ui-width, 100%));
256
+ }
257
+ }
258
+
259
+ @media (prefers-reduced-motion: reduce) {
260
+ .field,
261
+ .btn,
262
+ .action {
263
+ transition: none !important;
264
+ animation: none !important;
265
+ }
266
+ }
267
+
268
+ @media (forced-colors: active) {
269
+ .field,
270
+ .inline-panel {
271
+ border-color: CanvasText;
272
+ background: Canvas;
273
+ box-shadow: none;
274
+ }
275
+
276
+ .btn,
277
+ .action {
278
+ border: 1px solid CanvasText;
279
+ background: Canvas;
280
+ color: CanvasText;
281
+ }
282
+
283
+ .btn:focus-visible,
284
+ .action:focus-visible {
285
+ outline-color: Highlight;
286
+ }
287
+ }
288
+ `, ut = `
289
+ .overlay { position: fixed; z-index: var(--ui-dtp-z, 1600); pointer-events: none; }
290
+ .panel {
291
+ pointer-events: auto;
292
+ min-inline-size: min(560px, calc(100vw - 20px));
293
+ max-inline-size: min(640px, calc(100vw - 20px));
294
+ border: 1px solid var(--ui-dtp-border, #cbd5e1);
295
+ border-radius: var(--ui-dtp-panel-radius, 14px);
296
+ background: var(--ui-dtp-surface, #fff);
297
+ color: var(--ui-dp-text, #0f172a);
298
+ box-shadow: var(--ui-dtp-shadow);
299
+ padding: 12px;
300
+ display: grid;
301
+ gap: 12px;
302
+ animation: ui-dtp-pop var(--ui-dtp-duration, 160ms) var(--ui-dtp-ease, cubic-bezier(0.2, 0.9, 0.24, 1));
303
+ }
304
+ .panel[data-bare="true"], .sheet[data-bare="true"] {
305
+ border: 0;
306
+ border-radius: 0;
307
+ background: var(--ui-dtp-bare-bg, var(--ui-dtp-bg));
308
+ box-shadow: none;
309
+ padding: 0;
310
+ }
311
+ .sheet-wrap { position: fixed; inset: 0; display: grid; align-items: end; z-index: var(--ui-dtp-z, 1600); }
312
+ .sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.52); }
313
+ .sheet {
314
+ position: relative;
315
+ pointer-events: auto;
316
+ background: var(--ui-dtp-surface, #fff);
317
+ color: var(--ui-dp-text, #0f172a);
318
+ border-radius: 16px 16px 0 0;
319
+ border: 1px solid color-mix(in srgb, var(--ui-dtp-border, #cbd5e1) 84%, transparent);
320
+ box-shadow: 0 -12px 30px rgba(2, 6, 23, 0.2);
321
+ padding: 12px;
322
+ display: grid;
323
+ gap: 10px;
324
+ max-block-size: min(82vh, 640px);
325
+ overflow: auto;
326
+ }
327
+ .head {
328
+ display: flex;
329
+ justify-content: space-between;
330
+ align-items: center;
331
+ gap: 8px;
332
+ }
333
+ .head-title {
334
+ margin: 0;
335
+ font: 700 14px/1.35 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
336
+ color: var(--ui-dp-text, #0f172a);
337
+ }
338
+ .head-meta {
339
+ margin: 0;
340
+ font: 500 12px/1.3 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
341
+ color: var(--ui-dp-muted, #64748b);
342
+ }
343
+ .content {
344
+ display: grid;
345
+ grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
346
+ gap: 12px;
347
+ align-items: start;
348
+ }
349
+ .time-panel {
350
+ border: 1px solid color-mix(in srgb, var(--ui-dtp-border, #cbd5e1) 86%, transparent);
351
+ border-radius: 12px;
352
+ padding: 12px;
353
+ display: grid;
354
+ gap: 10px;
355
+ background: color-mix(in srgb, var(--ui-dtp-bg, #fff) 95%, transparent);
356
+ }
357
+ .icon {
358
+ display: inline-grid;
359
+ place-items: center;
360
+ color: color-mix(in srgb, var(--ui-dp-text, #0f172a) 70%, transparent);
361
+ }
362
+ .icon-svg {
363
+ inline-size: 16px;
364
+ block-size: 16px;
365
+ pointer-events: none;
366
+ }
367
+ .time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
368
+ .time-grid[data-meridiem="true"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
369
+ .time-grid label { font-size: 11px; color: var(--ui-dp-muted, #64748b); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
370
+ .time-grid select {
371
+ min-block-size: 34px;
372
+ border: 1px solid color-mix(in srgb, var(--ui-dtp-border, #cbd5e1) 84%, transparent);
373
+ border-radius: 8px;
374
+ padding: 0 8px;
375
+ background: color-mix(in srgb, var(--ui-dtp-bg, #fff) 95%, transparent);
376
+ color: var(--ui-dp-text, #0f172a);
377
+ font: 600 13px/1 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
378
+ }
379
+ .footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
380
+ .footer[hidden] { display: none !important; }
381
+ .action {
382
+ border: 1px solid color-mix(in srgb, var(--ui-dtp-border, #cbd5e1) 85%, transparent);
383
+ background: color-mix(in srgb, var(--ui-dtp-bg, #fff) 95%, transparent);
384
+ color: var(--ui-dp-text, #0f172a);
385
+ min-block-size: 32px;
386
+ border-radius: 8px;
387
+ padding: 0 12px;
388
+ font: 650 12px/1 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
389
+ cursor: pointer;
390
+ transition: border-color var(--ui-dtp-duration, 160ms) var(--ui-dtp-ease, cubic-bezier(0.2, 0.9, 0.24, 1)), background-color var(--ui-dtp-duration, 160ms) var(--ui-dtp-ease, cubic-bezier(0.2, 0.9, 0.24, 1)), transform var(--ui-dtp-duration, 160ms) var(--ui-dtp-ease, cubic-bezier(0.2, 0.9, 0.24, 1));
391
+ }
392
+ .action:hover {
393
+ border-color: color-mix(in srgb, var(--ui-dtp-accent, #2563eb) 40%, var(--ui-dtp-border, #cbd5e1));
394
+ background: color-mix(in srgb, var(--ui-dtp-accent, #2563eb) 10%, transparent);
395
+ }
396
+ .action:active { transform: translateY(1px); }
397
+ .action:focus-visible {
398
+ outline: 2px solid color-mix(in srgb, var(--ui-dtp-accent, #2563eb) 66%, transparent);
399
+ outline-offset: 1px;
400
+ }
401
+ .action[data-tone="primary"] { border-color: color-mix(in srgb, var(--ui-dtp-accent, #2563eb) 60%, transparent); background: color-mix(in srgb, var(--ui-dtp-accent, #2563eb) 20%, transparent); }
402
+ .action:disabled { opacity: .58; cursor: not-allowed; }
403
+
404
+ @media (max-width: 760px) {
405
+ .content {
406
+ grid-template-columns: 1fr;
407
+ }
408
+ }
409
+
410
+ @media (prefers-reduced-motion: reduce) {
411
+ .panel, .sheet, .action { animation: none !important; transition: none !important; }
412
+ }
413
+
414
+ @media (forced-colors: active) {
415
+ .panel,
416
+ .sheet,
417
+ .time-panel {
418
+ border-color: CanvasText;
419
+ background: Canvas;
420
+ color: CanvasText;
421
+ box-shadow: none;
422
+ }
423
+
424
+ .sheet-backdrop {
425
+ background: color-mix(in srgb, CanvasText 36%, transparent);
426
+ }
427
+
428
+ .time-grid label,
429
+ .head-meta {
430
+ color: CanvasText;
431
+ }
432
+
433
+ .time-grid select,
434
+ .action {
435
+ border-color: CanvasText;
436
+ background: Canvas;
437
+ color: CanvasText;
438
+ }
439
+
440
+ .time-grid select:focus-visible,
441
+ .action:focus-visible {
442
+ outline-color: Highlight;
443
+ }
444
+ }
445
+
446
+ @keyframes ui-dtp-pop {
447
+ from { opacity: 0; transform: translateY(6px) scale(0.985); }
448
+ to { opacity: 1; transform: translateY(0) scale(1); }
449
+ }
450
+ `;
451
+ function p(h) {
452
+ return String(h).padStart(2, "0");
453
+ }
454
+ function c(h) {
455
+ return h.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
456
+ }
457
+ function U(h) {
458
+ const t = Z(h);
459
+ return t ? { date: t.date, time: t.time } : { date: null, time: null };
460
+ }
461
+ function x(h) {
462
+ return j(h.date, h.time);
463
+ }
464
+ class ct extends Y {
465
+ constructor() {
466
+ super(...arguments), this._value = { date: null, time: null }, this._pending = { date: null, time: null }, this._draft = "", this._inlineError = "", this._open = !1, this._syncing = !1, this._overlay = null, this._releaseScrollLock = null, this._isInitialized = !1, this._hasView = !1, this._restoreFocusEl = null, this._overlayKey = null, this._uid = `ui-dtp-${++rt}`, this._inputId = `${this._uid}-input`, this._labelId = `${this._uid}-label`, this._hintId = `${this._uid}-hint`, this._errorId = `${this._uid}-error`, this._panelId = `${this._uid}-panel`, this._schedulePosition = J(() => this._positionOverlay()), this._onRootClickBound = (t) => this._onRootClick(t), this._onRootInputBound = (t) => this._onRootInput(t), this._onRootChangeBound = (t) => this._onRootChange(t), this._onRootBlurBound = (t) => this._onRootBlur(t), this._onRootKeyDownBound = (t) => this._onRootKeyDown(t), this._onOverlayClickBound = (t) => this._onOverlayClick(t), this._onOverlayChangeBound = (t) => this._onOverlayChange(t), this._onOverlayCalendarBound = (t) => this._onOverlayCalendar(t), this._onDocumentPointerDownBound = (t) => this._onDocumentPointerDown(t), this._onDocumentKeyDownBound = (t) => this._onDocumentKeyDown(t), this._onWindowResizeBound = () => this._schedulePosition.run(), this._onWindowScrollBound = () => this._schedulePosition.run();
467
+ }
468
+ static get observedAttributes() {
469
+ return [
470
+ "open",
471
+ "default-open",
472
+ "value",
473
+ "default-value",
474
+ "min",
475
+ "max",
476
+ "locale",
477
+ "translations",
478
+ "week-start",
479
+ "size",
480
+ "shape",
481
+ "bare",
482
+ "variant",
483
+ "state",
484
+ "step",
485
+ "format",
486
+ "disabled",
487
+ "readonly",
488
+ "required",
489
+ "name",
490
+ "close-on-select",
491
+ "clearable",
492
+ "allow-input",
493
+ "mode",
494
+ "label",
495
+ "hint",
496
+ "error",
497
+ "show-footer"
498
+ ];
499
+ }
500
+ connectedCallback() {
501
+ if (super.connectedCallback(), this.root.addEventListener("click", this._onRootClickBound), this.root.addEventListener("input", this._onRootInputBound), this.root.addEventListener("change", this._onRootChangeBound), this.root.addEventListener("focusout", this._onRootBlurBound), this.root.addEventListener("keydown", this._onRootKeyDownBound), !this._isInitialized) {
502
+ const t = U(this.getAttribute("value") || this.getAttribute("default-value"));
503
+ this._value = t, this._pending = { ...t }, this._draft = this._formatDisplay(t), this._open = this.hasAttribute("open") || v(this.getAttribute("default-open")), this._isInitialized = !0;
504
+ }
505
+ this._open && !this._isInlineMode() && this._ensureOverlay();
506
+ }
507
+ disconnectedCallback() {
508
+ this.root.removeEventListener("click", this._onRootClickBound), this.root.removeEventListener("input", this._onRootInputBound), this.root.removeEventListener("change", this._onRootChangeBound), this.root.removeEventListener("focusout", this._onRootBlurBound), this.root.removeEventListener("keydown", this._onRootKeyDownBound), this._destroyOverlay(), super.disconnectedCallback();
509
+ }
510
+ attributeChangedCallback(t, e, i) {
511
+ if (e !== i && (t === "value" && !this._syncing && (this._value = U(i), this._pending = { ...this._value }, this._draft = this._formatDisplay(this._value), this._inlineError = ""), t === "open" && !this._syncing && (this._open = this.hasAttribute("open"), this._syncOverlay("attribute")), t === "mode" && this._syncOverlay("attribute"), t === "disabled" && this.hasAttribute("disabled") && this._setOpen(!1, "outside"), t === "state" && this._state() === "loading" && this._setOpen(!1, "outside"), !!this.isConnected)) {
512
+ if (!this._hasView) {
513
+ this.requestRender();
514
+ return;
515
+ }
516
+ this._updateHostState();
517
+ }
518
+ }
519
+ _isInlineMode() {
520
+ return (this.getAttribute("mode") || "popover") === "inline";
521
+ }
522
+ _isMobileSheet() {
523
+ return G(this.getAttribute("mode"));
524
+ }
525
+ _isDisabled() {
526
+ return this.hasAttribute("disabled");
527
+ }
528
+ _state() {
529
+ const t = (this.getAttribute("state") || "").trim().toLowerCase();
530
+ return t === "loading" || t === "error" || t === "success" ? t : "idle";
531
+ }
532
+ _isInteractionBlocked() {
533
+ return this._isDisabled() || this._state() === "loading";
534
+ }
535
+ _isReadonly() {
536
+ return this.hasAttribute("readonly");
537
+ }
538
+ _allowInput() {
539
+ return v(this.getAttribute("allow-input"), !0);
540
+ }
541
+ _clearable() {
542
+ return v(this.getAttribute("clearable"), !0);
543
+ }
544
+ _closeOnSelect() {
545
+ return v(this.getAttribute("close-on-select"), !1);
546
+ }
547
+ _shouldAutoCommit() {
548
+ return this._closeOnSelect() || !this._showFooter();
549
+ }
550
+ _showFooter() {
551
+ return v(this.getAttribute("show-footer"), !0);
552
+ }
553
+ _isBare() {
554
+ return v(this.getAttribute("bare"), !1);
555
+ }
556
+ _locale() {
557
+ return Q(this.getAttribute("locale"));
558
+ }
559
+ _translations() {
560
+ return W(
561
+ this.getAttribute("locale"),
562
+ this.getAttribute("translations")
563
+ );
564
+ }
565
+ _minuteStep() {
566
+ const t = Number(this.getAttribute("step") || 5);
567
+ return !Number.isFinite(t) || t < 1 ? 5 : Math.min(60, Math.trunc(t));
568
+ }
569
+ _formatDisplay(t) {
570
+ if (!t.date || !t.time)
571
+ return "";
572
+ const e = X(t.date, this._locale(), "locale", null);
573
+ return this._is12h() ? `${e} ${tt(t.time, this._locale())}` : `${e} ${t.time}`;
574
+ }
575
+ _is12h() {
576
+ return (this.getAttribute("format") || "24h") === "12h";
577
+ }
578
+ _parseDateInput(t) {
579
+ const e = E(t);
580
+ if (e)
581
+ return e;
582
+ const i = et(t, this._locale());
583
+ if (i)
584
+ return i;
585
+ const n = new Date(t);
586
+ if (!Number.isFinite(n.getTime()))
587
+ return null;
588
+ const a = n.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"), s = String(n.getDate()).padStart(2, "0");
589
+ return `${a}-${o}-${s}`;
590
+ }
591
+ _syncOpenAttribute(t) {
592
+ this._syncing = !0;
593
+ try {
594
+ t ? this.hasAttribute("open") || this.setAttribute("open", "") : this.hasAttribute("open") && this.removeAttribute("open");
595
+ } finally {
596
+ this._syncing = !1;
597
+ }
598
+ }
599
+ _syncValueAttribute(t) {
600
+ const e = x(t);
601
+ this._syncing = !0;
602
+ try {
603
+ e ? this.getAttribute("value") !== e && this.setAttribute("value", e) : this.hasAttribute("value") && this.removeAttribute("value");
604
+ } finally {
605
+ this._syncing = !1;
606
+ }
607
+ }
608
+ _emitInput(t) {
609
+ const e = {
610
+ mode: "datetime",
611
+ value: x(this._pending),
612
+ date: this._pending.date,
613
+ time: this._pending.time,
614
+ source: t
615
+ };
616
+ this.dispatchEvent(new CustomEvent("input", { detail: e, bubbles: !0, composed: !0 }));
617
+ }
618
+ _emitChange(t) {
619
+ const e = {
620
+ mode: "datetime",
621
+ value: x(this._value),
622
+ date: this._value.date,
623
+ time: this._value.time,
624
+ source: t
625
+ };
626
+ this.dispatchEvent(new CustomEvent("change", { detail: e, bubbles: !0, composed: !0 }));
627
+ }
628
+ _emitInvalid(t, e) {
629
+ this.dispatchEvent(new CustomEvent("invalid", { detail: { raw: t, reason: e }, bubbles: !0, composed: !0 }));
630
+ }
631
+ _minDate() {
632
+ return F(this.getAttribute("min"));
633
+ }
634
+ _maxDate() {
635
+ return F(this.getAttribute("max"));
636
+ }
637
+ _minDateTime() {
638
+ const t = N(this.getAttribute("min"));
639
+ return t ? `${t.date}T${t.time}` : null;
640
+ }
641
+ _maxDateTime() {
642
+ const t = N(this.getAttribute("max"));
643
+ return t ? `${t.date}T${t.time}` : null;
644
+ }
645
+ _clampState(t) {
646
+ if (!t.date)
647
+ return { date: null, time: t.time };
648
+ const e = this._minDate(), i = this._maxDate(), n = it(t.date, e, i), a = t.time || "00:00";
649
+ let o = this._minDateTime(), s = this._maxDateTime();
650
+ if (o && s && L(o, s) > 0) {
651
+ const b = o;
652
+ o = s, s = b;
653
+ }
654
+ let r = j(n, a) || `${n}T00:00`;
655
+ o && L(r, o) < 0 && (r = o), s && L(r, s) > 0 && (r = s);
656
+ const d = Z(r);
657
+ return d ? { date: d.date, time: d.time } : { date: n, time: a };
658
+ }
659
+ _commit(t, e) {
660
+ if (this._isInteractionBlocked() || this._isReadonly())
661
+ return;
662
+ if (!t.date && !t.time) {
663
+ this._value = { date: null, time: null }, this._pending = { date: null, time: null }, this._draft = "", this._inlineError = "", this._syncValueAttribute(this._value), this._emitInput(e), this._emitChange(e), this._updateHostState();
664
+ return;
665
+ }
666
+ const i = y(t.time || "", !0), n = this._clampState({
667
+ date: E(t.date),
668
+ time: i ? `${p(i.hours)}:${p(i.minutes)}` : null
669
+ });
670
+ if (!n.date || !n.time) {
671
+ this._inlineError = this.getAttribute("error") || this._translations().invalidDateTime, this._emitInvalid(JSON.stringify(t), "parse"), this._updateHostState();
672
+ return;
673
+ }
674
+ this._value = n, this._pending = { ...n }, this._draft = this._formatDisplay(n), this._inlineError = "", this._syncValueAttribute(this._value), this._emitInput(e), this._emitChange(e), this._updateHostState();
675
+ }
676
+ _setOpen(t, e) {
677
+ t && this._isInteractionBlocked() || this._open !== t && (this._open = t, this._syncOpenAttribute(t), this._syncOverlay(e), this._updateHostState(), this.dispatchEvent(new CustomEvent(t ? "open" : "close", { bubbles: !0, composed: !0 })));
678
+ }
679
+ _syncOverlay(t) {
680
+ if (this._isInlineMode()) {
681
+ this._destroyOverlay();
682
+ return;
683
+ }
684
+ if (this._open) {
685
+ this._ensureOverlay(), this._syncOverlayState();
686
+ return;
687
+ }
688
+ this._destroyOverlay();
689
+ const e = this._restoreFocusEl;
690
+ if (this._restoreFocusEl = null, e && e.isConnected)
691
+ try {
692
+ e.focus();
693
+ } catch {
694
+ }
695
+ }
696
+ _ensureOverlay() {
697
+ if (this._overlay || typeof document > "u")
698
+ return;
699
+ const t = document.createElement("div");
700
+ t.style.position = "fixed", t.style.left = "0", t.style.top = "0", t.style.zIndex = "1100", t.style.pointerEvents = "none", t.addEventListener("click", this._onOverlayClickBound), t.addEventListener("change", this._onOverlayChangeBound), t.addEventListener("change", this._onOverlayCalendarBound), t.addEventListener("select", this._onOverlayCalendarBound), document.body.appendChild(t), this._overlay = t, document.addEventListener("pointerdown", this._onDocumentPointerDownBound, !0), document.addEventListener("keydown", this._onDocumentKeyDownBound), window.addEventListener("resize", this._onWindowResizeBound), window.addEventListener("scroll", this._onWindowScrollBound, !0), this._isMobileSheet() && (this._releaseScrollLock = nt());
701
+ }
702
+ _destroyOverlay() {
703
+ this._overlay && (this._schedulePosition.cancel(), document.removeEventListener("pointerdown", this._onDocumentPointerDownBound, !0), document.removeEventListener("keydown", this._onDocumentKeyDownBound), window.removeEventListener("resize", this._onWindowResizeBound), window.removeEventListener("scroll", this._onWindowScrollBound, !0), this._overlay.removeEventListener("click", this._onOverlayClickBound), this._overlay.removeEventListener("change", this._onOverlayChangeBound), this._overlay.removeEventListener("change", this._onOverlayCalendarBound), this._overlay.removeEventListener("select", this._onOverlayCalendarBound), this._overlay.parentElement && this._overlay.parentElement.removeChild(this._overlay), this._overlay = null, this._overlayKey = null, this._releaseScrollLock && (this._releaseScrollLock(), this._releaseScrollLock = null));
704
+ }
705
+ _positionOverlay() {
706
+ if (!this._overlay || !this._open || this._isMobileSheet())
707
+ return;
708
+ const t = this.root.querySelector(".field"), e = this._overlay.querySelector(".panel");
709
+ if (!t || !e)
710
+ return;
711
+ const i = st(t.getBoundingClientRect(), e.getBoundingClientRect());
712
+ e.style.position = "absolute", e.style.top = `${Math.round(i.top)}px`, e.style.left = `${Math.round(i.left)}px`;
713
+ }
714
+ _timeOptions() {
715
+ const t = y(this._pending.time || "00:00", !0) || { hours: 0, minutes: 0, seconds: 0 }, e = this._minuteStep(), i = this._is12h() ? Array.from({ length: 12 }, (o, s) => {
716
+ const r = s + 1, d = t.hours % 12 || 12;
717
+ return `<option value="${r}" ${r === d ? "selected" : ""}>${p(r)}</option>`;
718
+ }).join("") : Array.from({ length: 24 }, (o, s) => `<option value="${s}" ${s === t.hours ? "selected" : ""}>${p(s)}</option>`).join(""), n = Array.from({ length: Math.ceil(60 / e) }, (o, s) => {
719
+ const r = Math.min(59, s * e);
720
+ return `<option value="${r}" ${r === t.minutes ? "selected" : ""}>${p(r)}</option>`;
721
+ }).join(""), a = t.hours >= 12 ? "pm" : "am";
722
+ return { hours: i, minutes: n, meridiem: a };
723
+ }
724
+ _renderSurfaceInner(t, e = !1) {
725
+ const i = this._translations(), n = this._timeOptions(), a = (this.getAttribute("label") || "").trim(), o = c(a), s = c(a || i.selectDate), r = this._pending.date && this._pending.time ? this._formatDisplay(this._pending) : "", d = `
726
+ <header class="head">
727
+ <div>
728
+ <p class="head-title" ${a ? "" : "hidden"}>${o}</p>
729
+ <p class="head-meta">${c(r || i.selectDate)}</p>
730
+ </div>
731
+ </header>
732
+ <div class="content">
733
+ <ui-calendar class="${e ? "dt-calendar-inline" : "dt-calendar"}" part="calendar"></ui-calendar>
734
+ <section class="time-panel" part="time">
735
+ <span class="icon" aria-hidden="true">${K}</span>
736
+ <div class="time-grid" data-meridiem="${this._is12h() ? "true" : "false"}">
737
+ <div><label>${c(i.hour)}</label><select data-segment="hours">${n.hours}</select></div>
738
+ <div><label>${c(i.minute)}</label><select data-segment="minutes">${n.minutes}</select></div>
739
+ ${this._is12h() ? `<div><label>${c(i.meridiem)}</label><select data-segment="meridiem"><option value="am" ${n.meridiem === "am" ? "selected" : ""}>${c(i.am)}</option><option value="pm" ${n.meridiem === "pm" ? "selected" : ""}>${c(i.pm)}</option></select></div>` : ""}
740
+ </div>
741
+ </section>
742
+ </div>
743
+ <footer class="footer" part="footer">
744
+ <button type="button" class="action" data-action="now">${c(i.now)}</button>
745
+ <button type="button" class="action" data-action="clear">${c(i.clear)}</button>
746
+ ${e ? "" : `<button type="button" class="action" data-action="cancel">${c(i.cancel)}</button>`}
747
+ <button type="button" class="action" data-action="apply" data-tone="primary">${c(i.apply)}</button>
748
+ </footer>
749
+ `;
750
+ return e ? d : `
751
+ <style>${ut}</style>
752
+ ${t ? '<div class="sheet-backdrop" data-action="backdrop"></div>' : ""}
753
+ <section class="${t ? "sheet" : "panel"}" id="${this._panelId}" role="dialog" aria-modal="${t ? "true" : "false"}" aria-label="${s}" part="${t ? "sheet" : "popover"}">${d}</section>
754
+ `;
755
+ }
756
+ _syncCalendar(t) {
757
+ const e = (s, r) => {
758
+ if (r == null || r === "") {
759
+ t.hasAttribute(s) && t.removeAttribute(s);
760
+ return;
761
+ }
762
+ t.getAttribute(s) !== r && t.setAttribute(s, r);
763
+ }, i = (s, r) => {
764
+ r ? e(s, "") : e(s, null);
765
+ };
766
+ e("selection", "single"), e("value", this._pending.date), e("min", this.getAttribute("min")), e("max", this.getAttribute("max")), e("locale", this.getAttribute("locale")), e("translations", this.getAttribute("translations")), e("week-start", this.getAttribute("week-start"));
767
+ const a = this.getAttribute("size") || "sm", o = t.classList.contains("dt-calendar-inline");
768
+ e("size", a === "lg" ? "md" : "sm"), e("variant", this.getAttribute("variant")), i("readonly", this._isReadonly()), i("disabled", this._isInteractionBlocked()), i("bare", this._isBare()), e("tabindex", "-1"), a === "lg" ? (t.style.setProperty("--ui-calendar-day-height", "1.95em"), t.style.setProperty("--ui-calendar-day-padding-block", "0.2em"), t.style.setProperty("--ui-calendar-day-padding-inline", "0.26em"), t.style.setProperty("--ui-calendar-gap", "0.42em"), t.style.setProperty("--ui-calendar-day-font-size", "0.78em"), t.style.setProperty("--ui-calendar-weekday-font-size", "0.7em"), t.style.setProperty("--ui-calendar-title-font-size", "0.88em")) : (t.style.setProperty("--ui-calendar-day-height", "2.4em"), t.style.setProperty("--ui-calendar-day-padding-block", "0.14em"), t.style.setProperty("--ui-calendar-day-padding-inline", "0.22em"), t.style.setProperty("--ui-calendar-gap", "0.34em"), t.style.setProperty("--ui-calendar-day-font-size", "0.72em"), t.style.setProperty("--ui-calendar-weekday-font-size", "0.64em"), t.style.setProperty("--ui-calendar-title-font-size", "0.8em")), o ? (t.style.setProperty("--ui-calendar-frame-padding", "0.32em"), t.style.setProperty("--ui-calendar-week-gap", "0.18em"), t.style.setProperty("--ui-calendar-control-height", "1.72em"), t.style.setProperty("--ui-calendar-gap", "0.24em")) : (t.style.removeProperty("--ui-calendar-frame-padding"), t.style.removeProperty("--ui-calendar-week-gap"), t.style.removeProperty("--ui-calendar-control-height")), e("aria-label", this.getAttribute("label") || this._translations().selectDate);
769
+ }
770
+ _overlaySignature(t) {
771
+ return [
772
+ t ? "sheet" : "popover",
773
+ this._minuteStep(),
774
+ this._is12h() ? "12h" : "24h",
775
+ this.getAttribute("locale") || "",
776
+ this.getAttribute("translations") || ""
777
+ ].join(":");
778
+ }
779
+ _ensureOverlayContent(t) {
780
+ if (!this._overlay)
781
+ return;
782
+ const e = this._overlaySignature(t);
783
+ this._overlayKey === e && this._overlay.querySelector(".dt-calendar") || (this._overlayKey = e, this._overlay.innerHTML = t ? `<div class="sheet-wrap">${this._renderSurfaceInner(!0)}</div>` : `<div class="overlay">${this._renderSurfaceInner(!1)}</div>`);
784
+ }
785
+ _setClosestOptionValue(t, e) {
786
+ const i = Array.from(t.options).map((o) => Number(o.value)).filter((o) => Number.isFinite(o));
787
+ if (!i.length)
788
+ return;
789
+ let n = i[0], a = Math.abs(n - e);
790
+ for (let o = 1; o < i.length; o += 1) {
791
+ const s = i[o], r = Math.abs(s - e);
792
+ r < a && (n = s, a = r);
793
+ }
794
+ t.value = String(n);
795
+ }
796
+ _syncOverlayState() {
797
+ if (!this._overlay)
798
+ return;
799
+ const t = this._isMobileSheet();
800
+ this._ensureOverlayContent(t);
801
+ const e = this._translations(), i = this._overlay.querySelector(".panel, .sheet"), n = this._overlay.querySelector(".footer");
802
+ i && (i.dataset.bare = this._isBare() ? "true" : "false"), n && (n.hidden = !this._showFooter());
803
+ const a = this._overlay.querySelector(".head-title");
804
+ if (a) {
805
+ const l = (this.getAttribute("label") || "").trim();
806
+ a.textContent = l, a.hidden = !l;
807
+ }
808
+ const o = this._overlay.querySelector(".head-meta");
809
+ o && (o.textContent = this._pending.date && this._pending.time ? this._formatDisplay(this._pending) : e.selectDate);
810
+ const s = this._overlay.querySelector(".dt-calendar");
811
+ s && this._syncCalendar(s);
812
+ const r = y(this._pending.time || "00:00", !0) || { hours: 0, minutes: 0, seconds: 0 }, d = this._overlay.querySelector('select[data-segment="hours"]'), b = this._overlay.querySelector('select[data-segment="minutes"]'), m = this._overlay.querySelector('select[data-segment="meridiem"]');
813
+ if (d) {
814
+ const l = this._is12h() ? r.hours % 12 || 12 : r.hours;
815
+ this._setClosestOptionValue(d, l), d.disabled = this._isInteractionBlocked() || this._isReadonly();
816
+ }
817
+ b && (this._setClosestOptionValue(b, r.minutes), b.disabled = this._isInteractionBlocked() || this._isReadonly()), m && (m.value = r.hours >= 12 ? "pm" : "am", m.disabled = this._isInteractionBlocked() || this._isReadonly());
818
+ const S = this._isInteractionBlocked() || this._isReadonly();
819
+ this._overlay.querySelectorAll(".action").forEach((l) => {
820
+ l.disabled = S;
821
+ }), t || this._schedulePosition.run();
822
+ }
823
+ _renderOverlay() {
824
+ this._syncOverlayState();
825
+ }
826
+ _applyTimeFromSurface(t) {
827
+ const e = t.querySelector('select[data-segment="hours"]'), i = t.querySelector('select[data-segment="minutes"]'), n = t.querySelector('select[data-segment="meridiem"]');
828
+ if (!e || !i)
829
+ return;
830
+ const a = Number(e.value), o = Number(i.value);
831
+ if (!Number.isFinite(a) || !Number.isFinite(o))
832
+ return;
833
+ let s = a;
834
+ if (this._is12h()) {
835
+ const r = (n == null ? void 0 : n.value) === "pm" ? "pm" : "am";
836
+ r === "pm" && s < 12 && (s += 12), r === "am" && s === 12 && (s = 0);
837
+ }
838
+ this._pending = this._clampState({
839
+ date: this._pending.date,
840
+ time: `${p(s)}:${p(o)}`
841
+ }), this._emitInput("time");
842
+ }
843
+ _onRootClick(t) {
844
+ var n;
845
+ const e = t.target;
846
+ if (!e)
847
+ return;
848
+ const i = (n = e.closest("[data-action]")) == null ? void 0 : n.getAttribute("data-action");
849
+ if (i && !(this._isInteractionBlocked() || this._isReadonly())) {
850
+ if (i === "toggle") {
851
+ this._restoreFocusEl = e, this._setOpen(!this._open, "toggle");
852
+ return;
853
+ }
854
+ if (i === "clear") {
855
+ this._isInlineMode() ? (this._pending = { date: null, time: null }, this._emitInput("clear"), this._updateHostState()) : this._commit({ date: null, time: null }, "clear");
856
+ return;
857
+ }
858
+ if (this._isInlineMode() && i === "now") {
859
+ const a = /* @__PURE__ */ new Date(), o = String(a.getMonth() + 1).padStart(2, "0"), s = String(a.getDate()).padStart(2, "0"), r = `${a.getFullYear()}-${o}-${s}`, d = `${p(a.getHours())}:${p(a.getMinutes())}`;
860
+ this._pending = this._clampState({ date: r, time: d }), this._emitInput("now"), this._updateHostState();
861
+ return;
862
+ }
863
+ if (this._isInlineMode() && i === "cancel") {
864
+ this._pending = { ...this._value }, this._updateHostState();
865
+ return;
866
+ }
867
+ this._isInlineMode() && i === "apply" && this._commit(this._pending, "apply");
868
+ }
869
+ }
870
+ _onRootChange(t) {
871
+ if (!this._isInlineMode())
872
+ return;
873
+ const e = t.target;
874
+ if (e) {
875
+ if (e.tagName.toLowerCase() === "ui-calendar") {
876
+ this._onOverlayCalendar(t);
877
+ return;
878
+ }
879
+ if (e instanceof HTMLSelectElement && e.closest(".inline-panel")) {
880
+ if (!e.matches("select[data-segment]") || this._isInteractionBlocked() || this._isReadonly())
881
+ return;
882
+ const i = this.root.querySelector(".inline-panel");
883
+ if (!i)
884
+ return;
885
+ if (this._applyTimeFromSurface(i), this._shouldAutoCommit() && this._pending.date && this._pending.time) {
886
+ this._commit(this._pending, "time");
887
+ return;
888
+ }
889
+ this._updateHostState();
890
+ }
891
+ }
892
+ }
893
+ _onRootInput(t) {
894
+ const e = t.target;
895
+ e instanceof HTMLInputElement && e.classList.contains("input") && this._allowInput() && (this._isInteractionBlocked() || (this._draft = e.value, this._inlineError = "", this._emitInput("typing")));
896
+ }
897
+ _onRootBlur(t) {
898
+ const e = t.target;
899
+ if (!(e instanceof HTMLInputElement) || !e.classList.contains("input") || !this._allowInput() || this._isInteractionBlocked())
900
+ return;
901
+ const i = this._draft.trim();
902
+ if (!i) {
903
+ this._commit({ date: null, time: null }, "blur");
904
+ return;
905
+ }
906
+ const n = /^(.+)\s+(\d{1,2}:\d{2}(?::\d{2})?(?:\s?[ap]m)?)$/i.exec(i);
907
+ if (!n) {
908
+ this._inlineError = this.getAttribute("error") || this._translations().invalidDateTime, this._emitInvalid(i, "parse"), this._updateHostState();
909
+ return;
910
+ }
911
+ const a = this._parseDateInput(n[1]), o = y(n[2], !0) ? n[2] : null;
912
+ if (!a || !o) {
913
+ this._inlineError = this.getAttribute("error") || this._translations().invalidDateTime, this._emitInvalid(i, "parse"), this._updateHostState();
914
+ return;
915
+ }
916
+ this._commit({ date: a, time: o }, "blur");
917
+ }
918
+ _onRootKeyDown(t) {
919
+ const e = t;
920
+ if (!this._isInteractionBlocked()) {
921
+ if (e.key === "Escape" && this._open && !this._isInlineMode()) {
922
+ e.preventDefault(), this._setOpen(!1, "escape");
923
+ return;
924
+ }
925
+ e.key === "ArrowDown" && !this._open && !this._isInlineMode() && (e.preventDefault(), this._setOpen(!0, "keyboard"));
926
+ }
927
+ }
928
+ _onOverlayClick(t) {
929
+ var n;
930
+ const e = t.target;
931
+ if (!e)
932
+ return;
933
+ const i = (n = e.closest("[data-action]")) == null ? void 0 : n.getAttribute("data-action");
934
+ if (i && !this._isInteractionBlocked() && !(this._isReadonly() && i !== "toggle")) {
935
+ if (i === "backdrop") {
936
+ this._setOpen(!1, "outside");
937
+ return;
938
+ }
939
+ if (i === "cancel") {
940
+ this._pending = { ...this._value }, this._setOpen(!1, "cancel");
941
+ return;
942
+ }
943
+ if (i === "clear") {
944
+ this._pending = { date: null, time: null }, this._emitInput("clear"), this._renderOverlay();
945
+ return;
946
+ }
947
+ if (i === "now") {
948
+ const a = /* @__PURE__ */ new Date(), o = String(a.getMonth() + 1).padStart(2, "0"), s = String(a.getDate()).padStart(2, "0"), r = `${a.getFullYear()}-${o}-${s}`, d = `${p(a.getHours())}:${p(a.getMinutes())}`;
949
+ this._pending = this._clampState({ date: r, time: d }), this._emitInput("now"), this._renderOverlay();
950
+ return;
951
+ }
952
+ i === "apply" && (this._commit(this._pending, "apply"), this._setOpen(!1, "apply"));
953
+ }
954
+ }
955
+ _onOverlayChange(t) {
956
+ const e = t.target;
957
+ e instanceof HTMLSelectElement && e.matches("select[data-segment]") && (this._isInteractionBlocked() || this._overlay && (this._applyTimeFromSurface(this._overlay), this._shouldAutoCommit() && this._pending.date && this._pending.time && (this._commit(this._pending, "time"), this._setOpen(!1, "time"))));
958
+ }
959
+ _onOverlayCalendar(t) {
960
+ if (this._isInteractionBlocked() || this._isReadonly())
961
+ return;
962
+ const e = t.target;
963
+ if (!e || e.tagName.toLowerCase() !== "ui-calendar")
964
+ return;
965
+ const i = t.type, n = t.detail, a = E(i === "select" ? (n == null ? void 0 : n.value) || null : n == null ? void 0 : n.value);
966
+ if (a) {
967
+ if (this._pending = this._clampState({ date: a, time: this._pending.time || "09:00" }), this._emitInput("calendar"), this._shouldAutoCommit() && this._pending.time) {
968
+ this._commit(this._pending, "calendar"), this._setOpen(!1, "calendar");
969
+ return;
970
+ }
971
+ this._updateHostState();
972
+ }
973
+ }
974
+ _onDocumentPointerDown(t) {
975
+ if (!this._open || !this._overlay)
976
+ return;
977
+ const e = t.composedPath();
978
+ e.includes(this) || e.includes(this._overlay) || this._setOpen(!1, "outside");
979
+ }
980
+ _onDocumentKeyDown(t) {
981
+ this._open && t.key === "Escape" && (t.preventDefault(), this._setOpen(!1, "escape"));
982
+ }
983
+ _updateHostState() {
984
+ if (!this._hasView)
985
+ return;
986
+ const t = this.getAttribute("label") || "", e = this.getAttribute("hint") || "", i = this.getAttribute("error") || "", n = this._inlineError || i, a = !!x(this._value), o = this.getAttribute("name") || "", s = this._allowInput() ? this._draft : this._formatDisplay(this._value), r = this._isInlineMode(), d = this._translations(), b = n ? "error" : this._state();
987
+ this._state() === "loading" ? this.setAttribute("aria-busy", "true") : this.removeAttribute("aria-busy");
988
+ const m = this.root.querySelector(".label"), S = this.root.querySelector(".label-text"), $ = this.root.querySelector(".required"), l = this.root.querySelector(".input"), I = this.root.querySelector('.btn[data-action="clear"]'), f = this.root.querySelector('.btn[data-action="toggle"]'), g = this.root.querySelector(".hint"), w = this.root.querySelector(".error"), k = this.root.querySelector(".hidden-input");
989
+ if (m && (m.hidden = !t), m && (m.id = this._labelId, m.setAttribute("for", this._inputId)), S && (S.textContent = t), $ && ($.hidden = !this.hasAttribute("required")), l && (l.value !== s && (l.value = s), l.id = this._inputId, l.placeholder = d.dateTimePlaceholder, l.readOnly = !this._allowInput() || this._isReadonly(), l.disabled = this._isInteractionBlocked(), l.required = this.hasAttribute("required"), l.autocomplete = "off", l.setAttribute("role", "combobox"), l.setAttribute("aria-haspopup", "dialog"), l.setAttribute("aria-expanded", r ? "false" : String(this._open)), l.setAttribute("aria-controls", this._panelId), l.setAttribute("aria-invalid", n ? "true" : "false"), t ? l.setAttribute("aria-labelledby", this._labelId) : l.removeAttribute("aria-labelledby")), I && (I.hidden = !(this._clearable() && a), I.setAttribute("aria-label", d.clear), I.disabled = this._isInteractionBlocked()), f && (f.hidden = r, f.setAttribute("aria-label", d.toggleCalendar), f.setAttribute("aria-expanded", r ? "false" : String(this._open)), f.setAttribute("aria-controls", this._panelId), f.disabled = this._isInteractionBlocked()), g && (g.id = this._hintId, g.hidden = !e, g.textContent = e), w && (w.id = this._errorId, w.hidden = !n, w.textContent = n), l) {
990
+ const _ = [];
991
+ e && g && !g.hidden && _.push(this._hintId), n && _.push(this._errorId), _.length ? l.setAttribute("aria-describedby", _.join(" ")) : l.removeAttribute("aria-describedby");
992
+ }
993
+ k && (k.disabled = !o, k.name = o, k.value = x(this._value) || "");
994
+ const C = this.root.querySelector(".field");
995
+ C && (C.dataset.open = this._open && !r ? "true" : "false", C.dataset.invalid = n ? "true" : "false", C.dataset.state = b);
996
+ const u = this.root.querySelector(".inline-panel");
997
+ if (u) {
998
+ u.hidden = !r, u.id = this._panelId, u.dataset.bare = this._isBare() ? "true" : "false", u.setAttribute("role", "dialog"), u.setAttribute("aria-modal", "false"), u.setAttribute("aria-label", t || d.selectDate);
999
+ const _ = u.querySelector(".panel-title");
1000
+ _ && (_.textContent = t, _.hidden = !t);
1001
+ const D = u.querySelector(".head-title");
1002
+ D && (D.textContent = t, D.hidden = !t);
1003
+ const q = u.querySelector(".head-meta");
1004
+ q && (q.textContent = this._pending.date && this._pending.time ? this._formatDisplay(this._pending) : d.selectDate);
1005
+ const T = u.querySelector('[data-action="now"]');
1006
+ T && (T.textContent = d.now);
1007
+ const M = u.querySelector('[data-action="clear"]');
1008
+ M && (M.textContent = d.clear);
1009
+ const P = u.querySelector('[data-action="apply"]');
1010
+ P && (P.textContent = d.apply);
1011
+ const H = u.querySelector(".footer");
1012
+ H && (H.hidden = !this._showFooter());
1013
+ const V = u.querySelector(".dt-calendar-inline");
1014
+ V && this._syncCalendar(V);
1015
+ const B = u.querySelector('select[data-segment="hours"]'), O = u.querySelector('select[data-segment="minutes"]'), z = u.querySelector('select[data-segment="meridiem"]'), A = y(this._pending.time || "00:00", !0) || { hours: 0, minutes: 0, seconds: 0 };
1016
+ if (B) {
1017
+ const R = this._is12h() ? A.hours % 12 || 12 : A.hours;
1018
+ this._setClosestOptionValue(B, R), B.disabled = this._isInteractionBlocked() || this._isReadonly();
1019
+ }
1020
+ O && (this._setClosestOptionValue(O, A.minutes), O.disabled = this._isInteractionBlocked() || this._isReadonly()), z && (z.value = A.hours >= 12 ? "pm" : "am", z.disabled = this._isInteractionBlocked() || this._isReadonly()), u.querySelectorAll(".action").forEach((R) => {
1021
+ R.disabled = this._isInteractionBlocked() || this._isReadonly();
1022
+ });
1023
+ }
1024
+ !r && this._open && this._syncOverlayState(), r && this._destroyOverlay();
1025
+ }
1026
+ render() {
1027
+ if (!this._hasView) {
1028
+ const t = this._translations();
1029
+ this.setContent(`
1030
+ <style>${dt}</style>
1031
+ <div class="root">
1032
+ <label class="label" part="label" id="${this._labelId}">
1033
+ <span class="label-text"></span>
1034
+ <span class="required">*</span>
1035
+ </label>
1036
+ <div class="field" part="field input">
1037
+ <span class="icon" part="icon">${at}</span>
1038
+ <input class="input" id="${this._inputId}" part="input" />
1039
+ <span class="icon" part="icon">${K}</span>
1040
+ <button type="button" class="btn" part="clear" data-action="clear">${lt}</button>
1041
+ <button type="button" class="btn" part="toggle" data-action="toggle">${ot}</button>
1042
+ </div>
1043
+ <div class="hint" id="${this._hintId}" part="hint"></div>
1044
+ <div class="error" id="${this._errorId}" part="error" role="alert"></div>
1045
+ <input class="hidden-input" type="hidden" disabled />
1046
+ <section class="inline-panel" id="${this._panelId}" part="popover" hidden>
1047
+ <p class="panel-title">${c(t.selectDate)}</p>
1048
+ ${this._renderSurfaceInner(!1, !0)}
1049
+ </section>
1050
+ </div>
1051
+ `, { force: !0 }), this._hasView = !0;
1052
+ }
1053
+ this._updateHostState();
1054
+ }
1055
+ shouldRenderOnAttributeChange(t, e, i) {
1056
+ return !1;
1057
+ }
1058
+ }
1059
+ typeof customElements < "u" && !customElements.get("ui-date-time-picker") && customElements.define("ui-date-time-picker", ct);
1060
+ export {
1061
+ ct as UIDateTimePicker
1062
+ };