@editora/ui-core 0.1.9 → 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 (521) 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/accordion.cjs.js +360 -0
  5. package/dist/accordion.esm.js +647 -0
  6. package/dist/alert-dialog.cjs.js +567 -0
  7. package/dist/alert-dialog.esm.js +1043 -0
  8. package/dist/alert.cjs.js +351 -0
  9. package/dist/alert.esm.js +450 -0
  10. package/dist/anchor.cjs.js +30 -0
  11. package/dist/anchor.esm.js +62 -0
  12. package/dist/animated-beam.cjs.js +720 -0
  13. package/dist/animated-beam.esm.js +1540 -0
  14. package/dist/animated-list.cjs.js +672 -0
  15. package/dist/animated-list.esm.js +1137 -0
  16. package/dist/animated-text.cjs.js +683 -0
  17. package/dist/animated-text.esm.js +1020 -0
  18. package/dist/app-header.cjs.js +345 -0
  19. package/dist/app-header.esm.js +398 -0
  20. package/dist/aspect-ratio.cjs.js +294 -0
  21. package/dist/aspect-ratio.esm.js +416 -0
  22. package/dist/avatar.cjs.js +365 -0
  23. package/dist/avatar.esm.js +513 -0
  24. package/dist/badge.cjs.js +432 -0
  25. package/dist/badge.esm.js +554 -0
  26. package/dist/block-controls.cjs.js +347 -0
  27. package/dist/block-controls.esm.js +556 -0
  28. package/dist/box.cjs.js +226 -0
  29. package/dist/box.esm.js +556 -0
  30. package/dist/breadcrumb.cjs.js +288 -0
  31. package/dist/breadcrumb.esm.js +523 -0
  32. package/dist/button.cjs.js +521 -0
  33. package/dist/button.esm.js +671 -0
  34. package/dist/calendar-2c11b824.mjs +1685 -0
  35. package/dist/calendar-a8735e40.js +741 -0
  36. package/dist/calendar.cjs.js +1 -0
  37. package/dist/calendar.esm.js +11 -0
  38. package/dist/card.cjs.js +306 -0
  39. package/dist/card.esm.js +378 -0
  40. package/dist/chart.cjs.js +783 -0
  41. package/dist/chart.esm.js +1369 -0
  42. package/dist/checkbox.cjs.js +338 -0
  43. package/dist/checkbox.esm.js +455 -0
  44. package/dist/collapsible.cjs.js +381 -0
  45. package/dist/collapsible.esm.js +548 -0
  46. package/dist/collection-a1aac0c6.mjs +56 -0
  47. package/dist/collection-a2969ad2.js +1 -0
  48. package/dist/collection.cjs.js +1 -0
  49. package/dist/collection.esm.js +136 -0
  50. package/dist/color-picker.cjs.js +803 -0
  51. package/dist/color-picker.esm.js +1809 -0
  52. package/dist/combobox.cjs.js +525 -0
  53. package/dist/combobox.esm.js +1023 -0
  54. package/dist/command-palette.cjs.js +67 -0
  55. package/dist/command-palette.esm.js +181 -0
  56. package/dist/command.cjs.js +130 -0
  57. package/dist/command.esm.js +307 -0
  58. package/dist/container.cjs.js +115 -0
  59. package/dist/container.esm.js +156 -0
  60. package/dist/context-menu.cjs.js +357 -0
  61. package/dist/context-menu.esm.js +1204 -0
  62. package/dist/control-group.cjs.js +80 -0
  63. package/dist/control-group.esm.js +110 -0
  64. package/dist/data-table.cjs.js +682 -0
  65. package/dist/data-table.esm.js +1660 -0
  66. package/dist/date-field.cjs.js +142 -0
  67. package/dist/date-field.esm.js +384 -0
  68. package/dist/date-picker.cjs.js +570 -0
  69. package/dist/date-picker.esm.js +1067 -0
  70. package/dist/date-range-picker.cjs.js +455 -0
  71. package/dist/date-range-picker.esm.js +973 -0
  72. package/dist/date-range-time-picker.cjs.js +573 -0
  73. package/dist/date-range-time-picker.esm.js +1137 -0
  74. package/dist/date-time-picker.cjs.js +495 -0
  75. package/dist/date-time-picker.esm.js +1062 -0
  76. package/dist/date-time-utils-5cf58cd0.js +1 -0
  77. package/dist/date-time-utils-bdceb7af.mjs +273 -0
  78. package/dist/description.cjs.js +85 -0
  79. package/dist/description.esm.js +136 -0
  80. package/dist/dialog.cjs.js +406 -0
  81. package/dist/dialog.esm.js +822 -0
  82. package/dist/direction-provider.cjs.js +30 -0
  83. package/dist/direction-provider.esm.js +74 -0
  84. package/dist/dismissable-layer-193e3bed.js +1 -0
  85. package/dist/dismissable-layer-9c7e6b58.mjs +112 -0
  86. package/dist/dismissable-layer.cjs.js +6 -0
  87. package/dist/dismissable-layer.esm.js +115 -0
  88. package/dist/dock.cjs.js +347 -0
  89. package/dist/dock.esm.js +826 -0
  90. package/dist/drawer.cjs.js +538 -0
  91. package/dist/drawer.esm.js +872 -0
  92. package/dist/dropdown.cjs.js +511 -0
  93. package/dist/dropdown.esm.js +1084 -0
  94. package/dist/dropzone.cjs.js +1 -0
  95. package/dist/dropzone.esm.js +11 -0
  96. package/dist/empty-state.cjs.js +169 -0
  97. package/dist/empty-state.esm.js +199 -0
  98. package/dist/field-error.cjs.js +74 -0
  99. package/dist/field-error.esm.js +125 -0
  100. package/dist/field.cjs.js +398 -0
  101. package/dist/field.esm.js +542 -0
  102. package/dist/fieldset.cjs.js +214 -0
  103. package/dist/fieldset.esm.js +298 -0
  104. package/dist/file-upload.cjs.js +353 -0
  105. package/dist/file-upload.esm.js +740 -0
  106. package/dist/flex.cjs.js +54 -0
  107. package/dist/flex.esm.js +168 -0
  108. package/dist/floating-toolbar.cjs.js +223 -0
  109. package/dist/floating-toolbar.esm.js +513 -0
  110. package/dist/focus-scope-103833ee.mjs +147 -0
  111. package/dist/focus-scope-2b12b4e7.js +1 -0
  112. package/dist/focus-scope.cjs.js +6 -0
  113. package/dist/focus-scope.esm.js +97 -0
  114. package/dist/form.cjs.js +377 -0
  115. package/dist/form.esm.js +862 -0
  116. package/dist/gantt.cjs.js +157 -0
  117. package/dist/gantt.esm.js +214 -0
  118. package/dist/grid.cjs.js +67 -0
  119. package/dist/grid.esm.js +211 -0
  120. package/dist/hover-card.cjs.js +284 -0
  121. package/dist/hover-card.esm.js +470 -0
  122. package/dist/icon-9ed13093.mjs +364 -0
  123. package/dist/icon-cloud.cjs.js +495 -0
  124. package/dist/icon-cloud.esm.js +828 -0
  125. package/dist/icon-eaa486b3.js +207 -0
  126. package/dist/icon.cjs.js +1 -0
  127. package/dist/icon.esm.js +6 -0
  128. package/dist/index.cjs.js +1 -36010
  129. package/dist/index.esm.js +440 -66615
  130. package/dist/inline-edit.cjs.js +118 -0
  131. package/dist/inline-edit.esm.js +206 -0
  132. package/dist/input.cjs.js +535 -0
  133. package/dist/input.esm.js +790 -0
  134. package/dist/label.cjs.js +195 -0
  135. package/dist/label.esm.js +301 -0
  136. package/dist/layout.cjs.js +266 -0
  137. package/dist/layout.esm.js +408 -0
  138. package/dist/listbox-308789a0.mjs +210 -0
  139. package/dist/listbox-ef2f708e.js +46 -0
  140. package/dist/listbox.cjs.js +1 -0
  141. package/dist/listbox.esm.js +6 -0
  142. package/dist/marquee.cjs.js +513 -0
  143. package/dist/marquee.esm.js +767 -0
  144. package/dist/masonry-grid.cjs.js +65 -0
  145. package/dist/masonry-grid.esm.js +180 -0
  146. package/dist/menu-item-styles-27fdbac4.mjs +181 -0
  147. package/dist/menu-item-styles-83ad1e22.js +152 -0
  148. package/dist/menu.cjs.js +275 -0
  149. package/dist/menu.esm.js +743 -0
  150. package/dist/menubar.cjs.js +455 -0
  151. package/dist/menubar.esm.js +1195 -0
  152. package/dist/meter.cjs.js +241 -0
  153. package/dist/meter.esm.js +334 -0
  154. package/dist/multi-select.cjs.js +549 -0
  155. package/dist/multi-select.esm.js +914 -0
  156. package/dist/navigation-menu.cjs.js +382 -0
  157. package/dist/navigation-menu.esm.js +614 -0
  158. package/dist/number-field.cjs.js +351 -0
  159. package/dist/number-field.esm.js +771 -0
  160. package/dist/number-ticker.cjs.js +209 -0
  161. package/dist/number-ticker.esm.js +749 -0
  162. package/dist/odometer.cjs.js +313 -0
  163. package/dist/odometer.esm.js +565 -0
  164. package/dist/orbiter.cjs.js +495 -0
  165. package/dist/orbiter.esm.js +831 -0
  166. package/dist/overlayManager-86454af7.mjs +58 -0
  167. package/dist/overlayManager-ece06517.js +1 -0
  168. package/dist/pagination.cjs.js +201 -0
  169. package/dist/pagination.esm.js +297 -0
  170. package/dist/panel-group-40254cdd.js +36 -0
  171. package/dist/panel-group-a376cc5e.mjs +326 -0
  172. package/dist/panel-group.cjs.js +1 -0
  173. package/dist/panel-group.esm.js +7 -0
  174. package/dist/panel.cjs.js +22 -0
  175. package/dist/panel.esm.js +46 -0
  176. package/dist/password-field.cjs.js +626 -0
  177. package/dist/password-field.esm.js +925 -0
  178. package/dist/pin-input.cjs.js +185 -0
  179. package/dist/pin-input.esm.js +412 -0
  180. package/dist/placement-grid.cjs.js +99 -0
  181. package/dist/placement-grid.esm.js +486 -0
  182. package/dist/plugin-panel.cjs.js +131 -0
  183. package/dist/plugin-panel.esm.js +173 -0
  184. package/dist/popover.cjs.js +286 -0
  185. package/dist/popover.esm.js +483 -0
  186. package/dist/portal-1cf392ca.mjs +114 -0
  187. package/dist/portal-d8d7fbca.js +1 -0
  188. package/dist/portal.cjs.js +39 -0
  189. package/dist/portal.esm.js +187 -0
  190. package/dist/positioner-accc6e5f.js +1 -0
  191. package/dist/positioner-fbd61bf1.mjs +132 -0
  192. package/dist/positioner.cjs.js +6 -0
  193. package/dist/positioner.esm.js +137 -0
  194. package/dist/presence.cjs.js +164 -0
  195. package/dist/presence.esm.js +301 -0
  196. package/dist/progress.cjs.js +329 -0
  197. package/dist/progress.esm.js +453 -0
  198. package/dist/quick-actions.cjs.js +202 -0
  199. package/dist/quick-actions.esm.js +357 -0
  200. package/dist/radio-group.cjs.js +257 -0
  201. package/dist/radio-group.esm.js +477 -0
  202. package/dist/rating.cjs.js +355 -0
  203. package/dist/rating.esm.js +637 -0
  204. package/dist/roving-focus-group-4350c9a7.mjs +50 -0
  205. package/dist/roving-focus-group-5c059bf9.js +1 -0
  206. package/dist/roving-focus-group.cjs.js +1 -0
  207. package/dist/roving-focus-group.esm.js +72 -0
  208. package/dist/{runtime-3cc1c386.mjs → runtime-4ac0107b.mjs} +348 -459
  209. package/dist/runtime-5f282bc8.js +1 -0
  210. package/dist/runtime.cjs.js +1 -1
  211. package/dist/runtime.esm.js +24 -23
  212. package/dist/scroll-area.cjs.js +294 -0
  213. package/dist/scroll-area.esm.js +478 -0
  214. package/dist/scroll-lock-48793569.js +1 -0
  215. package/dist/scroll-lock-9de6d328.mjs +53 -0
  216. package/dist/section.cjs.js +167 -0
  217. package/dist/section.esm.js +202 -0
  218. package/dist/select.cjs.js +799 -0
  219. package/dist/select.esm.js +1266 -0
  220. package/dist/selection-popup.cjs.js +203 -0
  221. package/dist/selection-popup.esm.js +392 -0
  222. package/dist/separator.cjs.js +221 -0
  223. package/dist/separator.esm.js +241 -0
  224. package/dist/sidebar.cjs.js +769 -0
  225. package/dist/sidebar.esm.js +1219 -0
  226. package/dist/skeleton.cjs.js +205 -0
  227. package/dist/skeleton.esm.js +249 -0
  228. package/dist/slider.cjs.js +493 -0
  229. package/dist/slider.esm.js +694 -0
  230. package/dist/slot.cjs.js +159 -0
  231. package/dist/slot.esm.js +227 -0
  232. package/dist/sortable.cjs.js +855 -1
  233. package/dist/sortable.esm.js +2176 -2
  234. package/dist/spinning-text.cjs.js +395 -0
  235. package/dist/spinning-text.esm.js +635 -0
  236. package/dist/split-button.cjs.js +410 -0
  237. package/dist/split-button.esm.js +619 -0
  238. package/dist/splitter.cjs.js +70 -0
  239. package/dist/splitter.esm.js +105 -0
  240. package/dist/standalone/accordion.d.ts +2 -0
  241. package/dist/standalone/accordion.d.ts.map +1 -0
  242. package/dist/standalone/alert-dialog.d.ts +2 -0
  243. package/dist/standalone/alert-dialog.d.ts.map +1 -0
  244. package/dist/standalone/alert.d.ts +2 -0
  245. package/dist/standalone/alert.d.ts.map +1 -0
  246. package/dist/standalone/anchor.d.ts +2 -0
  247. package/dist/standalone/anchor.d.ts.map +1 -0
  248. package/dist/standalone/animated-beam.d.ts +2 -0
  249. package/dist/standalone/animated-beam.d.ts.map +1 -0
  250. package/dist/standalone/animated-list.d.ts +2 -0
  251. package/dist/standalone/animated-list.d.ts.map +1 -0
  252. package/dist/standalone/animated-text.d.ts +2 -0
  253. package/dist/standalone/animated-text.d.ts.map +1 -0
  254. package/dist/standalone/app-header.d.ts +2 -0
  255. package/dist/standalone/app-header.d.ts.map +1 -0
  256. package/dist/standalone/aspect-ratio.d.ts +2 -0
  257. package/dist/standalone/aspect-ratio.d.ts.map +1 -0
  258. package/dist/standalone/avatar.d.ts +2 -0
  259. package/dist/standalone/avatar.d.ts.map +1 -0
  260. package/dist/standalone/badge.d.ts +2 -0
  261. package/dist/standalone/badge.d.ts.map +1 -0
  262. package/dist/standalone/block-controls.d.ts +2 -0
  263. package/dist/standalone/block-controls.d.ts.map +1 -0
  264. package/dist/standalone/box.d.ts +2 -0
  265. package/dist/standalone/box.d.ts.map +1 -0
  266. package/dist/standalone/breadcrumb.d.ts +2 -0
  267. package/dist/standalone/breadcrumb.d.ts.map +1 -0
  268. package/dist/standalone/button.d.ts +2 -0
  269. package/dist/standalone/button.d.ts.map +1 -0
  270. package/dist/standalone/calendar.d.ts +2 -0
  271. package/dist/standalone/calendar.d.ts.map +1 -0
  272. package/dist/standalone/card.d.ts +2 -0
  273. package/dist/standalone/card.d.ts.map +1 -0
  274. package/dist/standalone/chart.d.ts +2 -0
  275. package/dist/standalone/chart.d.ts.map +1 -0
  276. package/dist/standalone/checkbox.d.ts +2 -0
  277. package/dist/standalone/checkbox.d.ts.map +1 -0
  278. package/dist/standalone/collapsible.d.ts +2 -0
  279. package/dist/standalone/collapsible.d.ts.map +1 -0
  280. package/dist/standalone/collection.d.ts +2 -0
  281. package/dist/standalone/collection.d.ts.map +1 -0
  282. package/dist/standalone/color-picker.d.ts +2 -0
  283. package/dist/standalone/color-picker.d.ts.map +1 -0
  284. package/dist/standalone/combobox.d.ts +2 -0
  285. package/dist/standalone/combobox.d.ts.map +1 -0
  286. package/dist/standalone/command-palette.d.ts +2 -0
  287. package/dist/standalone/command-palette.d.ts.map +1 -0
  288. package/dist/standalone/command.d.ts +2 -0
  289. package/dist/standalone/command.d.ts.map +1 -0
  290. package/dist/standalone/container.d.ts +2 -0
  291. package/dist/standalone/container.d.ts.map +1 -0
  292. package/dist/standalone/context-menu.d.ts +2 -0
  293. package/dist/standalone/context-menu.d.ts.map +1 -0
  294. package/dist/standalone/control-group.d.ts +2 -0
  295. package/dist/standalone/control-group.d.ts.map +1 -0
  296. package/dist/standalone/data-table.d.ts +2 -0
  297. package/dist/standalone/data-table.d.ts.map +1 -0
  298. package/dist/standalone/date-field.d.ts +2 -0
  299. package/dist/standalone/date-field.d.ts.map +1 -0
  300. package/dist/standalone/date-picker.d.ts +2 -0
  301. package/dist/standalone/date-picker.d.ts.map +1 -0
  302. package/dist/standalone/date-range-picker.d.ts +2 -0
  303. package/dist/standalone/date-range-picker.d.ts.map +1 -0
  304. package/dist/standalone/date-range-time-picker.d.ts +2 -0
  305. package/dist/standalone/date-range-time-picker.d.ts.map +1 -0
  306. package/dist/standalone/date-time-picker.d.ts +2 -0
  307. package/dist/standalone/date-time-picker.d.ts.map +1 -0
  308. package/dist/standalone/description.d.ts +2 -0
  309. package/dist/standalone/description.d.ts.map +1 -0
  310. package/dist/standalone/dialog.d.ts +2 -0
  311. package/dist/standalone/dialog.d.ts.map +1 -0
  312. package/dist/standalone/direction-provider.d.ts +2 -0
  313. package/dist/standalone/direction-provider.d.ts.map +1 -0
  314. package/dist/standalone/dismissable-layer.d.ts +2 -0
  315. package/dist/standalone/dismissable-layer.d.ts.map +1 -0
  316. package/dist/standalone/dock.d.ts +2 -0
  317. package/dist/standalone/dock.d.ts.map +1 -0
  318. package/dist/standalone/drawer.d.ts +2 -0
  319. package/dist/standalone/drawer.d.ts.map +1 -0
  320. package/dist/standalone/dropdown.d.ts +2 -0
  321. package/dist/standalone/dropdown.d.ts.map +1 -0
  322. package/dist/standalone/dropzone.d.ts +2 -0
  323. package/dist/standalone/dropzone.d.ts.map +1 -0
  324. package/dist/standalone/empty-state.d.ts +2 -0
  325. package/dist/standalone/empty-state.d.ts.map +1 -0
  326. package/dist/standalone/field-error.d.ts +2 -0
  327. package/dist/standalone/field-error.d.ts.map +1 -0
  328. package/dist/standalone/field.d.ts +2 -0
  329. package/dist/standalone/field.d.ts.map +1 -0
  330. package/dist/standalone/fieldset.d.ts +2 -0
  331. package/dist/standalone/fieldset.d.ts.map +1 -0
  332. package/dist/standalone/file-upload.d.ts +2 -0
  333. package/dist/standalone/file-upload.d.ts.map +1 -0
  334. package/dist/standalone/flex.d.ts +2 -0
  335. package/dist/standalone/flex.d.ts.map +1 -0
  336. package/dist/standalone/floating-toolbar.d.ts +2 -0
  337. package/dist/standalone/floating-toolbar.d.ts.map +1 -0
  338. package/dist/standalone/focus-scope.d.ts +2 -0
  339. package/dist/standalone/focus-scope.d.ts.map +1 -0
  340. package/dist/standalone/form.d.ts +2 -0
  341. package/dist/standalone/form.d.ts.map +1 -0
  342. package/dist/standalone/gantt.d.ts +2 -0
  343. package/dist/standalone/gantt.d.ts.map +1 -0
  344. package/dist/standalone/grid.d.ts +2 -0
  345. package/dist/standalone/grid.d.ts.map +1 -0
  346. package/dist/standalone/hover-card.d.ts +2 -0
  347. package/dist/standalone/hover-card.d.ts.map +1 -0
  348. package/dist/standalone/icon-cloud.d.ts +2 -0
  349. package/dist/standalone/icon-cloud.d.ts.map +1 -0
  350. package/dist/standalone/icon.d.ts +2 -0
  351. package/dist/standalone/icon.d.ts.map +1 -0
  352. package/dist/standalone/inline-edit.d.ts +2 -0
  353. package/dist/standalone/inline-edit.d.ts.map +1 -0
  354. package/dist/standalone/input.d.ts +2 -0
  355. package/dist/standalone/input.d.ts.map +1 -0
  356. package/dist/standalone/label.d.ts +2 -0
  357. package/dist/standalone/label.d.ts.map +1 -0
  358. package/dist/standalone/layout.d.ts +2 -0
  359. package/dist/standalone/layout.d.ts.map +1 -0
  360. package/dist/standalone/listbox.d.ts +2 -0
  361. package/dist/standalone/listbox.d.ts.map +1 -0
  362. package/dist/standalone/marquee.d.ts +2 -0
  363. package/dist/standalone/marquee.d.ts.map +1 -0
  364. package/dist/standalone/masonry-grid.d.ts +2 -0
  365. package/dist/standalone/masonry-grid.d.ts.map +1 -0
  366. package/dist/standalone/menu.d.ts +2 -0
  367. package/dist/standalone/menu.d.ts.map +1 -0
  368. package/dist/standalone/menubar.d.ts +2 -0
  369. package/dist/standalone/menubar.d.ts.map +1 -0
  370. package/dist/standalone/meter.d.ts +2 -0
  371. package/dist/standalone/meter.d.ts.map +1 -0
  372. package/dist/standalone/multi-select.d.ts +2 -0
  373. package/dist/standalone/multi-select.d.ts.map +1 -0
  374. package/dist/standalone/navigation-menu.d.ts +2 -0
  375. package/dist/standalone/navigation-menu.d.ts.map +1 -0
  376. package/dist/standalone/number-field.d.ts +2 -0
  377. package/dist/standalone/number-field.d.ts.map +1 -0
  378. package/dist/standalone/number-ticker.d.ts +2 -0
  379. package/dist/standalone/number-ticker.d.ts.map +1 -0
  380. package/dist/standalone/odometer.d.ts +2 -0
  381. package/dist/standalone/odometer.d.ts.map +1 -0
  382. package/dist/standalone/orbiter.d.ts +2 -0
  383. package/dist/standalone/orbiter.d.ts.map +1 -0
  384. package/dist/standalone/pagination.d.ts +2 -0
  385. package/dist/standalone/pagination.d.ts.map +1 -0
  386. package/dist/standalone/panel-group.d.ts +2 -0
  387. package/dist/standalone/panel-group.d.ts.map +1 -0
  388. package/dist/standalone/panel.d.ts +2 -0
  389. package/dist/standalone/panel.d.ts.map +1 -0
  390. package/dist/standalone/password-field.d.ts +2 -0
  391. package/dist/standalone/password-field.d.ts.map +1 -0
  392. package/dist/standalone/pin-input.d.ts +2 -0
  393. package/dist/standalone/pin-input.d.ts.map +1 -0
  394. package/dist/standalone/placement-grid.d.ts +2 -0
  395. package/dist/standalone/placement-grid.d.ts.map +1 -0
  396. package/dist/standalone/plugin-panel.d.ts +2 -0
  397. package/dist/standalone/plugin-panel.d.ts.map +1 -0
  398. package/dist/standalone/popover.d.ts +2 -0
  399. package/dist/standalone/popover.d.ts.map +1 -0
  400. package/dist/standalone/portal.d.ts +2 -0
  401. package/dist/standalone/portal.d.ts.map +1 -0
  402. package/dist/standalone/positioner.d.ts +2 -0
  403. package/dist/standalone/positioner.d.ts.map +1 -0
  404. package/dist/standalone/presence.d.ts +2 -0
  405. package/dist/standalone/presence.d.ts.map +1 -0
  406. package/dist/standalone/progress.d.ts +2 -0
  407. package/dist/standalone/progress.d.ts.map +1 -0
  408. package/dist/standalone/quick-actions.d.ts +2 -0
  409. package/dist/standalone/quick-actions.d.ts.map +1 -0
  410. package/dist/standalone/radio-group.d.ts +2 -0
  411. package/dist/standalone/radio-group.d.ts.map +1 -0
  412. package/dist/standalone/rating.d.ts +2 -0
  413. package/dist/standalone/rating.d.ts.map +1 -0
  414. package/dist/standalone/roving-focus-group.d.ts +2 -0
  415. package/dist/standalone/roving-focus-group.d.ts.map +1 -0
  416. package/dist/standalone/scroll-area.d.ts +2 -0
  417. package/dist/standalone/scroll-area.d.ts.map +1 -0
  418. package/dist/standalone/section.d.ts +2 -0
  419. package/dist/standalone/section.d.ts.map +1 -0
  420. package/dist/standalone/select.d.ts +2 -0
  421. package/dist/standalone/select.d.ts.map +1 -0
  422. package/dist/standalone/selection-popup.d.ts +2 -0
  423. package/dist/standalone/selection-popup.d.ts.map +1 -0
  424. package/dist/standalone/separator.d.ts +2 -0
  425. package/dist/standalone/separator.d.ts.map +1 -0
  426. package/dist/standalone/sidebar.d.ts +2 -0
  427. package/dist/standalone/sidebar.d.ts.map +1 -0
  428. package/dist/standalone/skeleton.d.ts +2 -0
  429. package/dist/standalone/skeleton.d.ts.map +1 -0
  430. package/dist/standalone/slider.d.ts +2 -0
  431. package/dist/standalone/slider.d.ts.map +1 -0
  432. package/dist/standalone/slot.d.ts +2 -0
  433. package/dist/standalone/slot.d.ts.map +1 -0
  434. package/dist/standalone/spinning-text.d.ts +2 -0
  435. package/dist/standalone/spinning-text.d.ts.map +1 -0
  436. package/dist/standalone/split-button.d.ts +2 -0
  437. package/dist/standalone/split-button.d.ts.map +1 -0
  438. package/dist/standalone/splitter.d.ts +2 -0
  439. package/dist/standalone/splitter.d.ts.map +1 -0
  440. package/dist/standalone/stepper.d.ts +2 -0
  441. package/dist/standalone/stepper.d.ts.map +1 -0
  442. package/dist/standalone/switch.d.ts +2 -0
  443. package/dist/standalone/switch.d.ts.map +1 -0
  444. package/dist/standalone/table.d.ts +2 -0
  445. package/dist/standalone/table.d.ts.map +1 -0
  446. package/dist/standalone/tabs.d.ts +2 -0
  447. package/dist/standalone/tabs.d.ts.map +1 -0
  448. package/dist/standalone/tags-input.d.ts +2 -0
  449. package/dist/standalone/tags-input.d.ts.map +1 -0
  450. package/dist/standalone/textarea.d.ts +2 -0
  451. package/dist/standalone/textarea.d.ts.map +1 -0
  452. package/dist/standalone/time-field.d.ts +2 -0
  453. package/dist/standalone/time-field.d.ts.map +1 -0
  454. package/dist/standalone/time-picker.d.ts +2 -0
  455. package/dist/standalone/time-picker.d.ts.map +1 -0
  456. package/dist/standalone/timeline.d.ts +2 -0
  457. package/dist/standalone/timeline.d.ts.map +1 -0
  458. package/dist/standalone/toast.d.ts +2 -0
  459. package/dist/standalone/toast.d.ts.map +1 -0
  460. package/dist/standalone/toggle-group.d.ts +2 -0
  461. package/dist/standalone/toggle-group.d.ts.map +1 -0
  462. package/dist/standalone/toggle.d.ts +2 -0
  463. package/dist/standalone/toggle.d.ts.map +1 -0
  464. package/dist/standalone/toolbar.d.ts +2 -0
  465. package/dist/standalone/toolbar.d.ts.map +1 -0
  466. package/dist/standalone/tooltip.d.ts +2 -0
  467. package/dist/standalone/tooltip.d.ts.map +1 -0
  468. package/dist/standalone/transfer-list.d.ts +2 -0
  469. package/dist/standalone/transfer-list.d.ts.map +1 -0
  470. package/dist/standalone/tree-item.d.ts +2 -0
  471. package/dist/standalone/tree-item.d.ts.map +1 -0
  472. package/dist/standalone/tree.d.ts +2 -0
  473. package/dist/standalone/tree.d.ts.map +1 -0
  474. package/dist/standalone/visually-hidden.d.ts +2 -0
  475. package/dist/standalone/visually-hidden.d.ts.map +1 -0
  476. package/dist/standalone/wizard.d.ts +2 -0
  477. package/dist/standalone/wizard.d.ts.map +1 -0
  478. package/dist/stepper.cjs.js +337 -0
  479. package/dist/stepper.esm.js +578 -0
  480. package/dist/switch.cjs.js +397 -0
  481. package/dist/switch.esm.js +543 -0
  482. package/dist/table.cjs.js +212 -0
  483. package/dist/table.esm.js +432 -0
  484. package/dist/tabs.cjs.js +515 -0
  485. package/dist/tabs.esm.js +808 -0
  486. package/dist/tags-input.cjs.js +202 -0
  487. package/dist/tags-input.esm.js +436 -0
  488. package/dist/textarea.cjs.js +329 -0
  489. package/dist/textarea.esm.js +520 -0
  490. package/dist/time-field.cjs.js +142 -0
  491. package/dist/time-field.esm.js +387 -0
  492. package/dist/time-picker.cjs.js +284 -0
  493. package/dist/time-picker.esm.js +686 -0
  494. package/dist/timeline.cjs.js +198 -0
  495. package/dist/timeline.esm.js +248 -0
  496. package/dist/toast.cjs.js +234 -0
  497. package/dist/toast.esm.js +399 -0
  498. package/dist/toggle-group.cjs.js +131 -0
  499. package/dist/toggle-group.esm.js +382 -0
  500. package/dist/toggle.cjs.js +237 -0
  501. package/dist/toggle.esm.js +346 -0
  502. package/dist/toolbar.cjs.js +126 -0
  503. package/dist/toolbar.esm.js +240 -0
  504. package/dist/tooltip.cjs.js +159 -0
  505. package/dist/tooltip.esm.js +376 -0
  506. package/dist/transfer-list.cjs.js +734 -0
  507. package/dist/transfer-list.esm.js +969 -0
  508. package/dist/tree-0a7a8d05.js +39 -0
  509. package/dist/tree-dcd74a4a.mjs +294 -0
  510. package/dist/tree-item.cjs.js +103 -0
  511. package/dist/tree-item.esm.js +143 -0
  512. package/dist/tree.cjs.js +1 -0
  513. package/dist/tree.esm.js +7 -0
  514. package/dist/visually-hidden.cjs.js +42 -0
  515. package/dist/visually-hidden.esm.js +68 -0
  516. package/dist/wizard.cjs.js +677 -0
  517. package/dist/wizard.esm.js +1068 -0
  518. package/package.json +7 -1
  519. package/dist/runtime-41717c1e.js +0 -1
  520. package/dist/sortable-06a3bd6c.js +0 -855
  521. package/dist/sortable-23bf110b.mjs +0 -2254
@@ -0,0 +1,1369 @@
1
+ import { E as Y } from "./ElementBase-909688f3.mjs";
2
+ const V = 180, Z = `
3
+ :host {
4
+ --ui-chart-bg: color-mix(in srgb, var(--ui-color-surface, #ffffff) 94%, transparent);
5
+ --ui-chart-surface: color-mix(in srgb, var(--ui-color-surface, #ffffff) 97%, #ffffff 3%);
6
+ --ui-chart-border: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 74%, transparent);
7
+ --ui-chart-text: var(--ui-color-text, #0f172a);
8
+ --ui-chart-muted: var(--ui-color-muted, #64748b);
9
+ --ui-chart-grid: color-mix(in srgb, var(--ui-color-border, #cbd5e1) 45%, transparent);
10
+ --ui-chart-accent: var(--ui-color-primary, #2563eb);
11
+ --ui-chart-success: var(--ui-color-success, #16a34a);
12
+ --ui-chart-warning: var(--ui-color-warning, #d97706);
13
+ --ui-chart-danger: var(--ui-color-danger, #dc2626);
14
+ --ui-chart-radius: 16px;
15
+ --ui-chart-shadow: none;
16
+ --ui-chart-plot-height: 220px;
17
+ --ui-chart-plot-min-height: 188px;
18
+ --ui-chart-plot-min-width: 420px;
19
+
20
+ display: block;
21
+ min-inline-size: 0;
22
+ box-sizing: border-box;
23
+ color-scheme: light dark;
24
+ font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
25
+ }
26
+
27
+ .frame {
28
+ position: relative;
29
+ border: 1px solid var(--ui-chart-border);
30
+ border-radius: var(--ui-chart-radius);
31
+ background: linear-gradient(160deg, var(--ui-chart-surface), var(--ui-chart-bg));
32
+ color: var(--ui-chart-text);
33
+ box-shadow: var(--ui-chart-shadow);
34
+ padding: 16px;
35
+ display: grid;
36
+ gap: 12px;
37
+ overflow: clip;
38
+ }
39
+
40
+ :host([variant="minimal"]) .frame {
41
+ border-color: transparent;
42
+ background: transparent;
43
+ box-shadow: none;
44
+ padding: 0;
45
+ }
46
+
47
+ :host([variant="contrast"]) {
48
+ --ui-chart-bg: #0b1220;
49
+ --ui-chart-surface: #0f172a;
50
+ --ui-chart-border: #334155;
51
+ --ui-chart-text: #e2e8f0;
52
+ --ui-chart-muted: #94a3b8;
53
+ --ui-chart-grid: color-mix(in srgb, #475569 74%, transparent);
54
+ --ui-chart-accent: #93c5fd;
55
+ --ui-chart-success: #34d399;
56
+ --ui-chart-warning: #fbbf24;
57
+ --ui-chart-danger: #f87171;
58
+ --ui-chart-shadow: none;
59
+ }
60
+
61
+ .frame[data-state="loading"] {
62
+ cursor: progress;
63
+ }
64
+
65
+ .frame[data-disabled="true"] {
66
+ opacity: 0.68;
67
+ }
68
+
69
+ .header {
70
+ display: flex;
71
+ align-items: flex-start;
72
+ justify-content: space-between;
73
+ gap: 12px;
74
+ }
75
+
76
+ .toolbar {
77
+ display: grid;
78
+ gap: 10px;
79
+ padding: 10px 12px;
80
+ border: 1px solid color-mix(in srgb, var(--ui-chart-border) 82%, transparent);
81
+ border-radius: 12px;
82
+ background: color-mix(in srgb, var(--ui-chart-surface) 96%, transparent);
83
+ }
84
+
85
+ .toolbar[hidden] {
86
+ display: none;
87
+ }
88
+
89
+ .toolbar ::slotted(*) {
90
+ display: block;
91
+ }
92
+
93
+ .meta {
94
+ min-inline-size: 0;
95
+ display: grid;
96
+ gap: 4px;
97
+ }
98
+
99
+ .title {
100
+ font-size: 15px;
101
+ line-height: 1.35;
102
+ font-weight: 700;
103
+ letter-spacing: 0.01em;
104
+ margin: 0;
105
+ }
106
+
107
+ .subtitle {
108
+ margin: 0;
109
+ font-size: 12px;
110
+ line-height: 1.4;
111
+ color: var(--ui-chart-muted);
112
+ }
113
+
114
+ .title-slot,
115
+ .subtitle-slot {
116
+ display: contents;
117
+ }
118
+
119
+ .title-slot::slotted(*) {
120
+ margin: 0;
121
+ font-size: 15px;
122
+ line-height: 1.35;
123
+ font-weight: 700;
124
+ letter-spacing: 0.01em;
125
+ color: var(--ui-chart-text);
126
+ }
127
+
128
+ .subtitle-slot::slotted(*) {
129
+ margin: 0;
130
+ font-size: 12px;
131
+ line-height: 1.4;
132
+ color: var(--ui-chart-muted);
133
+ }
134
+
135
+ .status-pill {
136
+ align-self: center;
137
+ display: inline-flex;
138
+ align-items: center;
139
+ justify-content: center;
140
+ min-block-size: 24px;
141
+ padding: 0 10px;
142
+ border-radius: 999px;
143
+ border: 1px solid color-mix(in srgb, var(--ui-chart-border) 88%, transparent);
144
+ background: color-mix(in srgb, var(--ui-chart-surface) 92%, transparent);
145
+ font-size: 11px;
146
+ line-height: 1;
147
+ font-weight: 600;
148
+ color: var(--ui-chart-muted);
149
+ white-space: nowrap;
150
+ }
151
+
152
+ .status-pill[data-state="success"] {
153
+ color: var(--ui-chart-success);
154
+ border-color: color-mix(in srgb, var(--ui-chart-success) 35%, var(--ui-chart-border));
155
+ background: color-mix(in srgb, var(--ui-chart-success) 13%, transparent);
156
+ }
157
+
158
+ .status-pill[data-state="error"] {
159
+ color: var(--ui-chart-danger);
160
+ border-color: color-mix(in srgb, var(--ui-chart-danger) 35%, var(--ui-chart-border));
161
+ background: color-mix(in srgb, var(--ui-chart-danger) 12%, transparent);
162
+ }
163
+
164
+ .status-pill[data-state="loading"] {
165
+ color: var(--ui-chart-warning);
166
+ border-color: color-mix(in srgb, var(--ui-chart-warning) 32%, var(--ui-chart-border));
167
+ background: color-mix(in srgb, var(--ui-chart-warning) 10%, transparent);
168
+ }
169
+
170
+ .summary {
171
+ display: grid;
172
+ grid-template-columns: repeat(4, minmax(0, 1fr));
173
+ gap: 8px;
174
+ }
175
+
176
+ .metric {
177
+ border: 1px solid color-mix(in srgb, var(--ui-chart-border) 82%, transparent);
178
+ border-radius: 10px;
179
+ padding: 8px 10px;
180
+ background: color-mix(in srgb, var(--ui-chart-surface) 95%, transparent);
181
+ min-inline-size: 0;
182
+ display: grid;
183
+ gap: 4px;
184
+ }
185
+
186
+ .metric-label {
187
+ font-size: 11px;
188
+ line-height: 1;
189
+ color: var(--ui-chart-muted);
190
+ letter-spacing: 0.02em;
191
+ text-transform: uppercase;
192
+ }
193
+
194
+ .metric-value {
195
+ font-size: 14px;
196
+ line-height: 1.2;
197
+ font-weight: 700;
198
+ overflow: hidden;
199
+ text-overflow: ellipsis;
200
+ white-space: nowrap;
201
+ }
202
+
203
+ .metric-value[data-tone="up"] {
204
+ color: var(--ui-chart-success);
205
+ }
206
+
207
+ .metric-value[data-tone="down"] {
208
+ color: var(--ui-chart-danger);
209
+ }
210
+
211
+ .plot-shell {
212
+ position: relative;
213
+ inline-size: 100%;
214
+ min-inline-size: 0;
215
+ border: 1px solid color-mix(in srgb, var(--ui-chart-border) 80%, transparent);
216
+ border-radius: 12px;
217
+ background: color-mix(in srgb, var(--ui-chart-surface) 97%, transparent);
218
+ min-block-size: var(--ui-chart-plot-min-height);
219
+ block-size: var(--ui-chart-plot-height);
220
+ overflow: auto hidden;
221
+ }
222
+
223
+ .plot-body {
224
+ display: grid;
225
+ grid-template-columns: minmax(32px, auto) minmax(0, 1fr);
226
+ grid-template-rows: minmax(0, 1fr) auto;
227
+ inline-size: 100%;
228
+ min-inline-size: calc(var(--ui-chart-plot-min-width) + 38px);
229
+ block-size: 100%;
230
+ min-block-size: 0;
231
+ }
232
+
233
+ .plot {
234
+ inline-size: 100%;
235
+ block-size: 100%;
236
+ display: block;
237
+ }
238
+
239
+ .axis-y {
240
+ grid-column: 1;
241
+ grid-row: 1;
242
+ display: flex;
243
+ flex-direction: column;
244
+ justify-content: space-between;
245
+ align-items: flex-end;
246
+ padding: 8px 6px 24px 0;
247
+ color: var(--ui-chart-muted);
248
+ font-size: 11px;
249
+ line-height: 1;
250
+ pointer-events: none;
251
+ user-select: none;
252
+ }
253
+
254
+ .axis-x {
255
+ grid-column: 2;
256
+ grid-row: 2;
257
+ display: grid;
258
+ grid-auto-flow: column;
259
+ grid-auto-columns: minmax(0, 1fr);
260
+ align-items: start;
261
+ gap: 0;
262
+ padding: 6px 10px 8px;
263
+ color: var(--ui-chart-muted);
264
+ font-size: 11px;
265
+ line-height: 1.2;
266
+ pointer-events: none;
267
+ user-select: none;
268
+ }
269
+
270
+ .axis-x-label {
271
+ overflow: hidden;
272
+ text-overflow: ellipsis;
273
+ white-space: nowrap;
274
+ text-align: center;
275
+ }
276
+
277
+ .axis-x-label[data-hidden="true"] {
278
+ visibility: hidden;
279
+ }
280
+
281
+ .plot-stage {
282
+ position: relative;
283
+ grid-column: 2;
284
+ grid-row: 1;
285
+ min-inline-size: var(--ui-chart-plot-min-width);
286
+ min-block-size: 0;
287
+ }
288
+
289
+ .plot-grid line,
290
+ .plot-grid path {
291
+ transition: stroke 140ms ease;
292
+ }
293
+
294
+ .plot-hit-layer {
295
+ position: absolute;
296
+ inset: 0;
297
+ pointer-events: none;
298
+ }
299
+
300
+ .plot-hit {
301
+ position: absolute;
302
+ inset-inline-start: calc(var(--x, 50) * 1%);
303
+ inset-block-start: calc(var(--y, 50) * 1%);
304
+ transform: translate(-50%, -50%);
305
+ inline-size: 22px;
306
+ block-size: 22px;
307
+ border: none;
308
+ border-radius: 999px;
309
+ padding: 0;
310
+ margin: 0;
311
+ cursor: pointer;
312
+ background: transparent;
313
+ pointer-events: auto;
314
+ color: inherit;
315
+ }
316
+
317
+ .plot-hit::after {
318
+ content: '';
319
+ position: absolute;
320
+ inset: 7px;
321
+ border-radius: inherit;
322
+ border: 1px solid color-mix(in srgb, var(--ui-chart-accent) 30%, transparent);
323
+ background: color-mix(in srgb, var(--ui-chart-surface) 70%, transparent);
324
+ transform: scale(0.85);
325
+ opacity: 0;
326
+ transition: opacity 140ms ease, transform 140ms ease;
327
+ }
328
+
329
+ .plot-hit:hover::after,
330
+ .plot-hit:focus-visible::after,
331
+ .plot-hit[data-active="true"]::after {
332
+ opacity: 1;
333
+ transform: scale(1);
334
+ }
335
+
336
+ .plot-hit:focus-visible {
337
+ outline: 2px solid var(--ui-chart-accent);
338
+ outline-offset: 2px;
339
+ }
340
+
341
+ .axis-labels {
342
+ position: absolute;
343
+ inset-inline: 10px;
344
+ inset-block-end: 6px;
345
+ display: flex;
346
+ justify-content: space-between;
347
+ pointer-events: none;
348
+ color: var(--ui-chart-muted);
349
+ font-size: 11px;
350
+ line-height: 1;
351
+ }
352
+
353
+ .tooltip {
354
+ position: absolute;
355
+ inset-inline-start: clamp(72px, calc(var(--x, 50) * 1%), calc(100% - 72px));
356
+ inset-block-start: clamp(10px, calc(var(--y, 20) * 1%), calc(100% - 72px));
357
+ transform: translate(-50%, calc(-100% - 10px));
358
+ min-inline-size: 132px;
359
+ max-inline-size: min(220px, calc(100% - 16px));
360
+ padding: 10px 12px;
361
+ border-radius: 12px;
362
+ border: 1px solid color-mix(in srgb, var(--ui-chart-border) 86%, transparent);
363
+ background: color-mix(in srgb, var(--ui-chart-surface) 98%, transparent);
364
+ box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
365
+ color: var(--ui-chart-text);
366
+ display: grid;
367
+ gap: 8px;
368
+ pointer-events: none;
369
+ z-index: 2;
370
+ }
371
+
372
+ .tooltip-title {
373
+ font-size: 12px;
374
+ line-height: 1.2;
375
+ font-weight: 700;
376
+ }
377
+
378
+ .tooltip-list {
379
+ display: grid;
380
+ gap: 6px;
381
+ }
382
+
383
+ .tooltip-row {
384
+ display: grid;
385
+ grid-template-columns: 8px minmax(0, 1fr) auto;
386
+ align-items: center;
387
+ gap: 8px;
388
+ font-size: 12px;
389
+ line-height: 1.2;
390
+ }
391
+
392
+ .tooltip-dot {
393
+ inline-size: 8px;
394
+ block-size: 8px;
395
+ border-radius: 999px;
396
+ background: var(--dot, var(--ui-chart-accent));
397
+ }
398
+
399
+ .tooltip-series {
400
+ min-inline-size: 0;
401
+ overflow: hidden;
402
+ text-overflow: ellipsis;
403
+ white-space: nowrap;
404
+ color: var(--ui-chart-muted);
405
+ }
406
+
407
+ .tooltip-value {
408
+ font-weight: 700;
409
+ color: var(--ui-chart-text);
410
+ white-space: nowrap;
411
+ }
412
+
413
+ .insight {
414
+ display: flex;
415
+ align-items: center;
416
+ justify-content: space-between;
417
+ gap: 10px;
418
+ border: 1px solid color-mix(in srgb, var(--ui-chart-border) 78%, transparent);
419
+ border-radius: 10px;
420
+ padding: 8px 10px;
421
+ font-size: 12px;
422
+ line-height: 1.35;
423
+ color: var(--ui-chart-muted);
424
+ background: color-mix(in srgb, var(--ui-chart-surface) 95%, transparent);
425
+ }
426
+
427
+ .insight strong {
428
+ color: var(--ui-chart-text);
429
+ font-weight: 700;
430
+ }
431
+
432
+ .legend {
433
+ display: grid;
434
+ grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
435
+ gap: 8px;
436
+ }
437
+
438
+ .legend-item {
439
+ border: 1px solid color-mix(in srgb, var(--ui-chart-border) 78%, transparent);
440
+ background: color-mix(in srgb, var(--ui-chart-surface) 94%, transparent);
441
+ border-radius: 10px;
442
+ min-block-size: 30px;
443
+ display: inline-flex;
444
+ align-items: center;
445
+ gap: 8px;
446
+ padding: 0 10px;
447
+ font-size: 12px;
448
+ line-height: 1;
449
+ color: var(--ui-chart-muted);
450
+ cursor: pointer;
451
+ transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
452
+ }
453
+
454
+ .legend-item[data-active="true"],
455
+ .legend-item:hover {
456
+ border-color: color-mix(in srgb, var(--ui-chart-accent) 35%, var(--ui-chart-border));
457
+ background: color-mix(in srgb, var(--ui-chart-accent) 12%, transparent);
458
+ color: var(--ui-chart-text);
459
+ }
460
+
461
+ .legend-item:focus-visible {
462
+ outline: 2px solid var(--ui-chart-accent);
463
+ outline-offset: 2px;
464
+ }
465
+
466
+ .legend-item[disabled],
467
+ .plot-hit[disabled] {
468
+ cursor: default;
469
+ pointer-events: none;
470
+ }
471
+
472
+ .legend-dot {
473
+ inline-size: 8px;
474
+ block-size: 8px;
475
+ border-radius: 999px;
476
+ flex: 0 0 auto;
477
+ background: var(--dot, var(--ui-chart-accent));
478
+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--dot, var(--ui-chart-accent)) 35%, transparent);
479
+ }
480
+
481
+ .empty,
482
+ .message {
483
+ border: 1px dashed color-mix(in srgb, var(--ui-chart-border) 78%, transparent);
484
+ border-radius: 10px;
485
+ padding: 14px;
486
+ text-align: center;
487
+ font-size: 12px;
488
+ color: var(--ui-chart-muted);
489
+ background: color-mix(in srgb, var(--ui-chart-surface) 95%, transparent);
490
+ }
491
+
492
+ .message[data-tone="error"] {
493
+ color: var(--ui-chart-danger);
494
+ border-color: color-mix(in srgb, var(--ui-chart-danger) 30%, var(--ui-chart-border));
495
+ background: color-mix(in srgb, var(--ui-chart-danger) 10%, transparent);
496
+ }
497
+
498
+ .message[data-tone="success"] {
499
+ color: var(--ui-chart-success);
500
+ border-color: color-mix(in srgb, var(--ui-chart-success) 30%, var(--ui-chart-border));
501
+ background: color-mix(in srgb, var(--ui-chart-success) 10%, transparent);
502
+ }
503
+
504
+ .loading-overlay {
505
+ position: absolute;
506
+ inset: 0;
507
+ pointer-events: none;
508
+ background:
509
+ linear-gradient(90deg,
510
+ color-mix(in srgb, var(--ui-chart-surface) 88%, transparent) 0%,
511
+ color-mix(in srgb, var(--ui-chart-surface) 68%, transparent) 50%,
512
+ color-mix(in srgb, var(--ui-chart-surface) 88%, transparent) 100%);
513
+ background-size: 220% 100%;
514
+ animation: ui-chart-shimmer 1.1s linear infinite;
515
+ }
516
+
517
+ .sr-only {
518
+ position: absolute;
519
+ inline-size: 1px;
520
+ block-size: 1px;
521
+ margin: -1px;
522
+ padding: 0;
523
+ border: 0;
524
+ white-space: nowrap;
525
+ clip-path: inset(100%);
526
+ clip: rect(0 0 0 0);
527
+ overflow: hidden;
528
+ }
529
+
530
+ :host([headless]) .frame {
531
+ display: none !important;
532
+ }
533
+
534
+ @media (max-width: 720px) {
535
+ :host {
536
+ --ui-chart-plot-height: 188px;
537
+ --ui-chart-plot-min-height: 168px;
538
+ --ui-chart-plot-min-width: 320px;
539
+ }
540
+
541
+ .frame {
542
+ padding: 12px;
543
+ gap: 10px;
544
+ }
545
+
546
+ .summary {
547
+ grid-template-columns: repeat(2, minmax(0, 1fr));
548
+ }
549
+ }
550
+
551
+ @media (prefers-reduced-motion: reduce) {
552
+ .legend-item,
553
+ .plot-hit::after,
554
+ .loading-overlay {
555
+ transition: none !important;
556
+ animation: none !important;
557
+ }
558
+ }
559
+
560
+ @media (prefers-contrast: more) {
561
+ .frame,
562
+ .metric,
563
+ .plot-shell,
564
+ .legend-item,
565
+ .insight,
566
+ .empty,
567
+ .message {
568
+ border-width: 2px;
569
+ box-shadow: none;
570
+ }
571
+ }
572
+
573
+ @media (forced-colors: active) {
574
+ :host {
575
+ --ui-chart-bg: Canvas;
576
+ --ui-chart-surface: Canvas;
577
+ --ui-chart-border: CanvasText;
578
+ --ui-chart-text: CanvasText;
579
+ --ui-chart-muted: CanvasText;
580
+ --ui-chart-grid: CanvasText;
581
+ --ui-chart-accent: Highlight;
582
+ --ui-chart-success: Highlight;
583
+ --ui-chart-warning: Highlight;
584
+ --ui-chart-danger: Highlight;
585
+ --ui-chart-shadow: none;
586
+ }
587
+
588
+ .frame,
589
+ .metric,
590
+ .plot-shell,
591
+ .legend-item,
592
+ .insight,
593
+ .empty,
594
+ .message,
595
+ .status-pill {
596
+ forced-color-adjust: none;
597
+ background: Canvas;
598
+ color: CanvasText;
599
+ border-color: CanvasText;
600
+ box-shadow: none;
601
+ }
602
+
603
+ .legend-dot {
604
+ background: Highlight;
605
+ box-shadow: none;
606
+ }
607
+ }
608
+
609
+ @keyframes ui-chart-shimmer {
610
+ from {
611
+ background-position: 220% 0;
612
+ }
613
+ to {
614
+ background-position: -220% 0;
615
+ }
616
+ }
617
+ `, q = [
618
+ "var(--ui-color-primary, #2563eb)",
619
+ "var(--ui-color-success, #16a34a)",
620
+ "var(--ui-color-warning, #d97706)",
621
+ "var(--ui-color-danger, #dc2626)",
622
+ "var(--ui-color-info, #0891b2)",
623
+ "var(--ui-color-accent, #7c3aed)"
624
+ ];
625
+ function u(p) {
626
+ return p.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
627
+ }
628
+ function M(p, t, e) {
629
+ return Math.max(t, Math.min(e, p));
630
+ }
631
+ function J(p, t, e) {
632
+ if (p)
633
+ try {
634
+ const r = JSON.parse(p);
635
+ if (Array.isArray(r))
636
+ return r.map((n, o) => {
637
+ if (typeof n == "number")
638
+ return Number.isFinite(n) ? { label: String(o + 1), value: n } : null;
639
+ if (n && typeof n == "object") {
640
+ const i = Number(n.value);
641
+ if (!Number.isFinite(i))
642
+ return null;
643
+ const c = n.label, d = n.tone;
644
+ return {
645
+ label: typeof c == "string" && c.trim() ? c.trim() : String(o + 1),
646
+ value: i,
647
+ tone: typeof d == "string" && d.trim() ? d.trim() : void 0
648
+ };
649
+ }
650
+ return null;
651
+ }).filter((n) => !!n);
652
+ } catch {
653
+ return [];
654
+ }
655
+ const a = (t || "").split(",").map((r) => Number(r.trim())).filter((r) => Number.isFinite(r)), s = (e || "").split(",").map((r) => r.trim()).filter(Boolean);
656
+ return a.map((r, n) => ({
657
+ label: s[n] || String(n + 1),
658
+ value: r
659
+ }));
660
+ }
661
+ function G(p) {
662
+ return Array.isArray(p) ? p.map((t, e) => {
663
+ if (typeof t == "number")
664
+ return Number.isFinite(t) ? { label: String(e + 1), value: t } : null;
665
+ if (t && typeof t == "object") {
666
+ const a = Number(t.value);
667
+ if (!Number.isFinite(a))
668
+ return null;
669
+ const s = t.label, r = t.tone;
670
+ return {
671
+ label: typeof s == "string" && s.trim() ? s.trim() : String(e + 1),
672
+ value: a,
673
+ tone: typeof r == "string" && r.trim() ? r.trim() : void 0
674
+ };
675
+ }
676
+ return null;
677
+ }).filter((t) => !!t) : [];
678
+ }
679
+ function Q(p) {
680
+ if (!p)
681
+ return [];
682
+ try {
683
+ const t = JSON.parse(p);
684
+ return Array.isArray(t) ? t.map((a, s) => {
685
+ if (!a || typeof a != "object")
686
+ return null;
687
+ const r = a.name, n = G(a.data);
688
+ if (!n.length)
689
+ return null;
690
+ const o = a.tone, i = a.dash, c = Number(a.strokeWidth), d = Number(a.opacity), T = a.fill;
691
+ return {
692
+ name: typeof r == "string" && r.trim() ? r.trim() : `Series ${s + 1}`,
693
+ data: n,
694
+ tone: typeof o == "string" && o.trim() ? o.trim() : void 0,
695
+ dash: typeof i == "string" && i.trim() ? i.trim() : void 0,
696
+ strokeWidth: Number.isFinite(c) && c > 0 ? c : void 0,
697
+ opacity: Number.isFinite(d) && d > 0 ? d : void 0,
698
+ fill: typeof T == "boolean" ? T : void 0
699
+ };
700
+ }).filter((a) => !!a) : [];
701
+ } catch {
702
+ return [];
703
+ }
704
+ }
705
+ function tt(p) {
706
+ const t = p.map((a, s) => {
707
+ var r;
708
+ return {
709
+ label: ((r = a.label) == null ? void 0 : r.trim()) || String(s + 1),
710
+ value: Number(a.value),
711
+ tone: typeof a.tone == "string" && a.tone.trim() ? a.tone.trim() : void 0
712
+ };
713
+ }).filter((a) => Number.isFinite(a.value));
714
+ if (t.length <= V)
715
+ return { points: t, truncated: 0 };
716
+ const e = t.length - V;
717
+ return { points: t.slice(t.length - V), truncated: e };
718
+ }
719
+ function et(p, t) {
720
+ const a = (p.length ? p : t.length ? [{ name: "Series 1", data: t }] : []).map((i) => {
721
+ const c = tt(i.data);
722
+ return {
723
+ name: i.name,
724
+ data: c.points,
725
+ tone: i.tone,
726
+ fill: i.fill,
727
+ dash: i.dash,
728
+ strokeWidth: i.strokeWidth,
729
+ opacity: i.opacity,
730
+ truncated: c.truncated
731
+ };
732
+ }).filter((i) => i.data.length > 0), s = /* @__PURE__ */ new Set();
733
+ a.forEach((i) => {
734
+ i.data.forEach((c) => s.add(c.label));
735
+ });
736
+ let r = Array.from(s), n = a.reduce((i, c) => Math.max(i, c.truncated), 0);
737
+ r.length > V && (n += r.length - V, r = r.slice(r.length - V));
738
+ const o = a.map((i) => {
739
+ const c = new Set(r);
740
+ return {
741
+ name: i.name,
742
+ data: i.data.filter((d) => c.has(d.label)),
743
+ tone: i.tone,
744
+ fill: i.fill,
745
+ dash: i.dash,
746
+ strokeWidth: i.strokeWidth,
747
+ opacity: i.opacity
748
+ };
749
+ });
750
+ return { labels: r, series: o, truncated: n };
751
+ }
752
+ function K(p) {
753
+ return p === "loading" ? "Updating" : p === "error" ? "Issue" : p === "success" ? "Stable" : "Live";
754
+ }
755
+ function at(p) {
756
+ return p === "loading" || p === "error" || p === "success" ? p : "idle";
757
+ }
758
+ class it extends Y {
759
+ constructor() {
760
+ super(...arguments), this._activeIndex = null, this._activePinned = !1, this._onClickBound = (t) => this._onClick(t), this._onKeyDownBound = (t) => this._onKeyDown(t), this._onPointerOverBound = (t) => this._onPointerOver(t), this._onPointerLeaveBound = () => this._onPointerLeave(), this._onFocusInBound = (t) => this._onFocusIn(t);
761
+ }
762
+ static get observedAttributes() {
763
+ return [
764
+ "data",
765
+ "series",
766
+ "values",
767
+ "labels",
768
+ "type",
769
+ "variant",
770
+ "title",
771
+ "subtitle",
772
+ "headless",
773
+ "state",
774
+ "disabled",
775
+ "interactive",
776
+ "show-legend",
777
+ "show-summary",
778
+ "value-prefix",
779
+ "value-suffix",
780
+ "aria-label"
781
+ ];
782
+ }
783
+ connectedCallback() {
784
+ super.connectedCallback(), this.root.addEventListener("click", this._onClickBound), this.root.addEventListener("keydown", this._onKeyDownBound), this.root.addEventListener("pointerover", this._onPointerOverBound), this.root.addEventListener("pointerleave", this._onPointerLeaveBound), this.root.addEventListener("focusin", this._onFocusInBound);
785
+ }
786
+ disconnectedCallback() {
787
+ this.root.removeEventListener("click", this._onClickBound), this.root.removeEventListener("keydown", this._onKeyDownBound), this.root.removeEventListener("pointerover", this._onPointerOverBound), this.root.removeEventListener("pointerleave", this._onPointerLeaveBound), this.root.removeEventListener("focusin", this._onFocusInBound), super.disconnectedCallback();
788
+ }
789
+ attributeChangedCallback(t, e, a) {
790
+ e !== a && ((t === "disabled" || t === "state" || t === "interactive") && (this._isInteractive() || (this._activeIndex = null, this._activePinned = !1)), super.attributeChangedCallback(t, e, a));
791
+ }
792
+ _data() {
793
+ const t = J(this.getAttribute("data"), this.getAttribute("values"), this.getAttribute("labels")), e = Q(this.getAttribute("series"));
794
+ return et(e, t);
795
+ }
796
+ _type() {
797
+ const t = this.getAttribute("type");
798
+ return t === "line" || t === "area" || t === "bar" || t === "donut" || t === "step" || t === "scatter" || t === "radial" ? t : "line";
799
+ }
800
+ _state() {
801
+ return at(this.getAttribute("state"));
802
+ }
803
+ _isDisabled() {
804
+ return this.hasAttribute("disabled") || this._state() === "loading";
805
+ }
806
+ _isInteractive() {
807
+ const t = (this.getAttribute("interactive") || "").trim().toLowerCase();
808
+ return t === "false" || t === "0" || t === "off" ? !1 : !this._isDisabled();
809
+ }
810
+ _showLegend() {
811
+ const t = (this.getAttribute("show-legend") || "").trim().toLowerCase();
812
+ return t ? t !== "false" && t !== "0" && t !== "off" : !0;
813
+ }
814
+ _showSummary() {
815
+ const t = (this.getAttribute("show-summary") || "").trim().toLowerCase();
816
+ return t ? t !== "false" && t !== "0" && t !== "off" : !0;
817
+ }
818
+ _primarySeries(t) {
819
+ return t.series[0] || null;
820
+ }
821
+ _valuePrefix() {
822
+ return this.getAttribute("value-prefix") || "";
823
+ }
824
+ _valueSuffix() {
825
+ return this.getAttribute("value-suffix") || "";
826
+ }
827
+ _resolveStats(t) {
828
+ const e = t.map((d) => d.value), a = e.reduce((d, T) => d + T, 0), s = e.length ? a / e.length : 0, r = e.length ? Math.min(...e) : 0, n = e.length ? Math.max(...e) : 0, o = e.length > 1 ? e[e.length - 1] - e[0] : 0, i = e[0] || 0, c = i !== 0 ? o / Math.abs(i) * 100 : null;
829
+ return { total: a, average: s, min: r, max: n, delta: o, deltaPct: c };
830
+ }
831
+ _valueDomain(t, e) {
832
+ const a = !!(e != null && e.includeZero), s = (e == null ? void 0 : e.fitPadding) ?? 0.14, r = t.map((d) => d.value);
833
+ let n = Math.min(...r), o = Math.max(...r);
834
+ a && (n = Math.min(0, n), o = Math.max(0, o));
835
+ let i = o - n;
836
+ if (i <= 0) {
837
+ const d = Math.max(Math.abs(o) * 0.12, 1);
838
+ n -= d, o += d, i = o - n;
839
+ } else {
840
+ const d = i * s;
841
+ a ? (n -= d * 0.25, o += d) : (n -= d, o += d), i = o - n;
842
+ }
843
+ const c = n <= 0 && o >= 0;
844
+ return { min: n, max: o, span: i, zeroInDomain: c };
845
+ }
846
+ _formatValue(t, e) {
847
+ const a = this._valuePrefix(), s = this._valueSuffix();
848
+ try {
849
+ const r = new Intl.NumberFormat(void 0, {
850
+ maximumFractionDigits: Math.abs(t) >= 100 ? 0 : 1,
851
+ ...e
852
+ }).format(t);
853
+ return `${a}${r}${s}`;
854
+ } catch {
855
+ return `${a}${t.toFixed(Math.abs(t) >= 100 ? 0 : 1)}${s}`;
856
+ }
857
+ }
858
+ _seriesTone(t, e) {
859
+ return t.tone || q[e % q.length] || "var(--ui-chart-accent)";
860
+ }
861
+ _pointTone(t, e, a) {
862
+ return t.tone || a || q[e % q.length] || "var(--ui-chart-accent)";
863
+ }
864
+ _seriesValueDetails(t, e, a) {
865
+ const s = t[a];
866
+ return e.map((r, n) => {
867
+ const o = r.data.find((i) => i.label === s) || null;
868
+ return {
869
+ series: r.name,
870
+ value: (o == null ? void 0 : o.value) ?? null,
871
+ tone: (o == null ? void 0 : o.tone) || this._seriesTone(r, n)
872
+ };
873
+ });
874
+ }
875
+ _pointDetail(t, e, a, s) {
876
+ const r = this._primarySeries(e);
877
+ if (!r)
878
+ return null;
879
+ const n = e.labels[t];
880
+ if (!n)
881
+ return null;
882
+ const o = r.data.find((d) => d.label === n) || r.data[t];
883
+ if (!o)
884
+ return null;
885
+ const i = this._resolveStats(r.data), c = this._seriesValueDetails(e.labels, e.series, t);
886
+ return {
887
+ index: t,
888
+ label: n,
889
+ value: o.value,
890
+ tone: o.tone || this._seriesTone(r, 0),
891
+ series: r.name,
892
+ seriesValues: c,
893
+ type: a,
894
+ total: i.total,
895
+ min: i.min,
896
+ max: i.max,
897
+ source: s
898
+ };
899
+ }
900
+ _emitPointSelect(t, e, a) {
901
+ const s = this._pointDetail(t, e, this._type(), a);
902
+ s && (this.dispatchEvent(
903
+ new CustomEvent("point-select", {
904
+ detail: s,
905
+ bubbles: !0,
906
+ composed: !0
907
+ })
908
+ ), this.dispatchEvent(
909
+ new CustomEvent("ui-point-select", {
910
+ detail: s,
911
+ bubbles: !0,
912
+ composed: !0
913
+ })
914
+ ));
915
+ }
916
+ _indexFromTarget(t) {
917
+ const e = t instanceof Element ? t.closest("[data-point-index]") : null;
918
+ if (!e)
919
+ return null;
920
+ const a = Number(e.getAttribute("data-point-index"));
921
+ return !Number.isInteger(a) || a < 0 ? null : a;
922
+ }
923
+ _setActiveIndex(t, e) {
924
+ this._activeIndex = t, this._activePinned = e, this.requestRender();
925
+ }
926
+ _focusIndex(t) {
927
+ const e = this.root.querySelector(
928
+ `.legend-item[data-point-index="${t}"]`
929
+ );
930
+ if (e)
931
+ try {
932
+ e.focus({ preventScroll: !0 });
933
+ } catch {
934
+ e.focus();
935
+ }
936
+ }
937
+ _onPointerOver(t) {
938
+ if (!this._isInteractive() || this._activePinned)
939
+ return;
940
+ const e = this._indexFromTarget(t.target);
941
+ e == null || this._activeIndex === e || (this._activeIndex = e, this.requestRender());
942
+ }
943
+ _onPointerLeave() {
944
+ !this._isInteractive() || this._activePinned || this._activeIndex == null || (this._activeIndex = null, this.requestRender());
945
+ }
946
+ _onFocusIn(t) {
947
+ if (!this._isInteractive())
948
+ return;
949
+ const e = this._indexFromTarget(t.target);
950
+ e == null || this._activeIndex === e || (this._activeIndex = e, this.requestRender());
951
+ }
952
+ _onClick(t) {
953
+ if (!this._isInteractive())
954
+ return;
955
+ const e = this._data();
956
+ if (!e.labels.length || !e.series.length)
957
+ return;
958
+ const a = this._indexFromTarget(t.target);
959
+ if (a == null || a >= e.labels.length)
960
+ return;
961
+ const s = !(this._activePinned && this._activeIndex === a);
962
+ this._activeIndex = a, this._activePinned = s, this.requestRender(), this._emitPointSelect(a, e, "pointer");
963
+ }
964
+ _onKeyDown(t) {
965
+ if (!this._isInteractive())
966
+ return;
967
+ const e = this._data();
968
+ if (!e.labels.length || !e.series.length)
969
+ return;
970
+ const s = this._indexFromTarget(t.target) ?? this._activeIndex ?? 0;
971
+ if (t.key === "ArrowRight" || t.key === "ArrowDown") {
972
+ t.preventDefault();
973
+ const n = M(s + 1, 0, e.labels.length - 1);
974
+ this._setActiveIndex(n, !0), this._focusIndex(n);
975
+ return;
976
+ }
977
+ if (t.key === "ArrowLeft" || t.key === "ArrowUp") {
978
+ t.preventDefault();
979
+ const n = M(s - 1, 0, e.labels.length - 1);
980
+ this._setActiveIndex(n, !0), this._focusIndex(n);
981
+ return;
982
+ }
983
+ if (t.key === "Home") {
984
+ t.preventDefault(), this._setActiveIndex(0, !0), this._focusIndex(0);
985
+ return;
986
+ }
987
+ if (t.key === "End") {
988
+ t.preventDefault();
989
+ const n = e.labels.length - 1;
990
+ this._setActiveIndex(n, !0), this._focusIndex(n);
991
+ return;
992
+ }
993
+ if (t.key === "Escape") {
994
+ if (!this._activePinned && this._activeIndex == null)
995
+ return;
996
+ t.preventDefault(), this._setActiveIndex(null, !1);
997
+ return;
998
+ }
999
+ if (t.key !== "Enter" && t.key !== " ")
1000
+ return;
1001
+ t.preventDefault();
1002
+ const r = M(s, 0, e.labels.length - 1);
1003
+ this._setActiveIndex(r, !0), this._emitPointSelect(r, e, "keyboard");
1004
+ }
1005
+ _axisXLabels(t) {
1006
+ if (t.length <= 8)
1007
+ return t.map(() => "visible");
1008
+ const e = Math.max(1, Math.ceil(t.length / 6));
1009
+ return t.map((a, s) => s === 0 || s === t.length - 1 || s % e === 0 ? "visible" : "hidden");
1010
+ }
1011
+ _buildCartesianTicks(t, e) {
1012
+ return [1, 0.75, 0.5, 0.25, 0].map((a) => this._formatValue(t + (e - t) * a));
1013
+ }
1014
+ _plotCartesian(t, e, a) {
1015
+ const $ = t.labels, P = t.series, w = e === "bar", b = P.flatMap((g) => g.data.map((x) => x.value)), y = this._valueDomain(b.map((g, x) => ({ label: String(x), value: g })), { includeZero: w }), F = y.min, l = y.max, v = y.span, f = $.length > 1 ? 208 / ($.length - 1) : 0, S = y.zeroInDomain ? 0 : F, h = 6 + (l - S) / v * 48, k = [0, 0.25, 0.5, 0.75, 1].map((g) => {
1016
+ const x = 6 + 48 * g, I = y.zeroInDomain && Math.abs(x - h) < 0.5;
1017
+ return `<line x1="8" y1="${x.toFixed(2)}" x2="${(8 + 208).toFixed(2)}" y2="${x.toFixed(2)}" stroke="var(--ui-chart-grid)" stroke-width="${I ? "0.75" : "0.45"}" />`;
1018
+ }).join(""), L = P.map((g) => new Map(g.data.map((x) => [x.label, x]))), j = $.map((g, x) => {
1019
+ const I = 8 + f * x, D = L.map((z) => z.get(g)).filter((z) => !!z).map((z) => 6 + (l - z.value) / v * 48), C = D.length ? Math.min(...D) : 6 + 48 / 2;
1020
+ return {
1021
+ xPct: M(I / 220 * 100, 0, 100),
1022
+ yPct: M(C / 64 * 100, 0, 100)
1023
+ };
1024
+ }), E = $.map((g, x) => {
1025
+ const I = j[x];
1026
+ return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${x}" data-active="${a === x ? "true" : "false"}" style="--x:${I.xPct.toFixed(3)};--y:${I.yPct.toFixed(3)};" aria-label="${u(g)}" ${this._isInteractive() ? "" : "disabled"}></button>`;
1027
+ }).join("");
1028
+ if (e === "bar") {
1029
+ const g = 208 / Math.max(1, $.length), x = M(g * 0.82, 6, 22), I = x / Math.max(1, P.length), D = P.map((C, z) => {
1030
+ const N = this._seriesTone(C, z);
1031
+ return $.map((O, H) => {
1032
+ const W = L[z].get(O);
1033
+ if (!W)
1034
+ return "";
1035
+ const m = 8 + H * g + (g - x) / 2 + I * z, _ = 6 + (l - W.value) / v * 48, A = Math.min(_, h), R = Math.max(1, Math.abs(h - _)), B = a === H, X = a == null || B ? C.opacity ?? 1 : 0.72;
1036
+ return `<rect x="${m.toFixed(2)}" y="${A.toFixed(2)}" width="${Math.max(2, I - 1).toFixed(2)}" height="${R.toFixed(2)}" rx="1.4" fill="${N}" opacity="${X}" />`;
1037
+ }).join("");
1038
+ }).join("");
1039
+ return {
1040
+ svg: `
1041
+ <svg class="plot" part="plot" viewBox="0 0 220 64" width="100%" height="100%" role="img" aria-label="${u(this._ariaLabel())}" preserveAspectRatio="none">
1042
+ <g class="plot-grid">${k}</g>
1043
+ ${D}
1044
+ </svg>
1045
+ `,
1046
+ hits: E,
1047
+ anchors: j,
1048
+ yTicks: this._buildCartesianTicks(F, l)
1049
+ };
1050
+ }
1051
+ const U = P.map((g, x) => {
1052
+ const I = this._seriesTone(g, x), D = $.map((m, _) => {
1053
+ const A = L[x].get(m) || null, R = 8 + f * _, B = A ? 6 + (l - A.value) / v * 48 : null;
1054
+ return { x: R, y: B, point: A, index: _ };
1055
+ }), C = [];
1056
+ let z = [];
1057
+ D.forEach((m) => {
1058
+ if (!m.point || m.y == null) {
1059
+ z.length && C.push(z), z = [];
1060
+ return;
1061
+ }
1062
+ z.push({ x: m.x, y: m.y, point: m.point, index: m.index });
1063
+ }), z.length && C.push(z);
1064
+ const N = (m) => m.map((_, A) => A === 0 ? `M${_.x.toFixed(2)} ${_.y.toFixed(2)}` : e === "step" ? `H${_.x.toFixed(2)} V${_.y.toFixed(2)}` : `L${_.x.toFixed(2)} ${_.y.toFixed(2)}`).join(" "), O = e === "area" ? C.map((m) => {
1065
+ if (!(typeof g.fill == "boolean" ? g.fill : x === 0))
1066
+ return "";
1067
+ const A = N(m), R = m[0], B = m[m.length - 1];
1068
+ return `<path d="${A} L ${B.x.toFixed(2)} ${h.toFixed(2)} L ${R.x.toFixed(2)} ${h.toFixed(2)} Z" fill="color-mix(in srgb, ${I} 18%, transparent)" opacity="${g.opacity ?? (x === 0 ? 1 : 0.65)}" />`;
1069
+ }).join("") : "", H = e === "scatter" ? "" : C.map((m) => `<path d="${N(m)}" fill="none" stroke="${I}" stroke-width="${(g.strokeWidth || (x === 0 ? 1.9 : 1.55)).toFixed(2)}" stroke-linecap="round" stroke-linejoin="round" ${g.dash ? `stroke-dasharray="${u(g.dash)}"` : ""} opacity="${g.opacity ?? 1}" />`).join(""), W = D.map((m) => {
1070
+ if (!m.point || m.y == null)
1071
+ return "";
1072
+ const _ = a === m.index, A = _ ? 2.35 : 1.6, R = a == null || _ ? g.opacity ?? 1 : 0.72;
1073
+ return `<circle cx="${m.x.toFixed(2)}" cy="${m.y.toFixed(2)}" r="${A.toFixed(2)}" fill="${this._pointTone(m.point, m.index, I)}" opacity="${R}" />`;
1074
+ }).join("");
1075
+ return `${O}${H}${W}`;
1076
+ }).join("");
1077
+ return {
1078
+ svg: `
1079
+ <svg class="plot" part="plot" viewBox="0 0 220 64" width="100%" height="100%" role="img" aria-label="${u(this._ariaLabel())}" preserveAspectRatio="none">
1080
+ <g class="plot-grid">${k}</g>
1081
+ ${U}
1082
+ </svg>
1083
+ `,
1084
+ hits: E,
1085
+ anchors: j,
1086
+ yTicks: this._buildCartesianTicks(F, l)
1087
+ };
1088
+ }
1089
+ _plotRadial(t, e) {
1090
+ const i = t.map((l) => l.value), c = Math.min(...i), d = Math.max(...i), T = Math.max(1, d - c), $ = t.map((l, v) => {
1091
+ const f = -Math.PI / 2 + Math.PI * 2 * v / t.length, h = 10 + (l.value - c) / T * (28 - 10), k = 32 + Math.cos(f) * h, L = 32 + Math.sin(f) * h;
1092
+ return { x: k, y: L, point: l, index: v, angle: f };
1093
+ }), P = $.map((l, v) => `${v === 0 ? "M" : "L"}${l.x.toFixed(2)} ${l.y.toFixed(2)}`).join(" ") + " Z", w = [0.25, 0.5, 0.75, 1].map((l) => `<circle cx="32" cy="32" r="${(10 + l * (28 - 10)).toFixed(2)}" fill="none" stroke="var(--ui-chart-grid)" stroke-width="0.45" />`).join(""), b = $.map((l) => `<line x1="32" y1="32" x2="${(32 + Math.cos(l.angle) * 28).toFixed(2)}" y2="${(32 + Math.sin(l.angle) * 28).toFixed(2)}" stroke="var(--ui-chart-grid)" stroke-width="0.45" />`).join(""), y = $.map((l) => {
1094
+ const v = this._pointTone(l.point, l.index), f = e === l.index;
1095
+ return `<circle cx="${l.x.toFixed(2)}" cy="${l.y.toFixed(2)}" r="${f ? "2.35" : "1.85"}" fill="${v}" opacity="${e == null || f ? "1" : "0.74"}" />`;
1096
+ }).join(""), F = $.map((l) => {
1097
+ const v = M(l.x / 64 * 100, 0, 100).toFixed(3), f = M(l.y / 64 * 100, 0, 100).toFixed(3), S = e === l.index, h = `${l.point.label}: ${this._formatValue(l.point.value)}`;
1098
+ return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${l.index}" data-active="${S ? "true" : "false"}" style="--x:${v};--y:${f};" aria-label="${u(h)}" ${this._isInteractive() ? "" : "disabled"}></button>`;
1099
+ }).join("");
1100
+ return {
1101
+ svg: `
1102
+ <svg class="plot" part="plot" viewBox="0 0 64 64" width="100%" height="100%" role="img" aria-label="${u(this._ariaLabel())}" preserveAspectRatio="xMidYMid meet">
1103
+ ${w}
1104
+ ${b}
1105
+ <path d="${P}" fill="color-mix(in srgb, var(--ui-chart-accent) 16%, transparent)" stroke="var(--ui-chart-accent)" stroke-width="1.2" />
1106
+ ${y}
1107
+ </svg>
1108
+ `,
1109
+ hits: F,
1110
+ anchors: $.map((l) => ({
1111
+ xPct: M(l.x / 64 * 100, 0, 100),
1112
+ yPct: M(l.y / 64 * 100, 0, 100)
1113
+ })),
1114
+ yTicks: []
1115
+ };
1116
+ }
1117
+ _plotDonut(t, e) {
1118
+ const a = t.reduce((w, b) => w + Math.max(0, b.value), 0), s = Math.max(1, a), r = 18, n = 7, o = 32, i = 32, c = 2 * Math.PI * r;
1119
+ let d = 0;
1120
+ const T = t.map((w, b) => {
1121
+ const l = Math.max(0, w.value) / s * c, v = this._pointTone(w, b), f = e === b, S = e == null || f ? "1" : "0.7", h = `
1122
+ <circle
1123
+ cx="${o}"
1124
+ cy="${i}"
1125
+ r="${r}"
1126
+ fill="none"
1127
+ stroke="${v}"
1128
+ stroke-width="${f ? n + 0.8 : n}"
1129
+ stroke-dasharray="${l.toFixed(3)} ${(c - l).toFixed(3)}"
1130
+ stroke-dashoffset="${(-d).toFixed(3)}"
1131
+ transform="rotate(-90 ${o} ${i})"
1132
+ stroke-linecap="round"
1133
+ opacity="${S}"
1134
+ />
1135
+ `;
1136
+ return d += l, h;
1137
+ }).join("");
1138
+ let $ = 0;
1139
+ const P = t.map((w, b) => {
1140
+ const y = Math.max(0, w.value), l = y / s * Math.PI * 2, v = -Math.PI / 2 + $ + l / 2, f = o + Math.cos(v) * (r + 6), S = i + Math.sin(v) * (r + 6);
1141
+ $ += l;
1142
+ const h = M(f / 64 * 100, 0, 100).toFixed(3), k = M(S / 64 * 100, 0, 100).toFixed(3), L = e === b, j = s > 0 ? y / s * 100 : 0, E = `${w.label}: ${this._formatValue(w.value)} (${this._formatValue(j, { maximumFractionDigits: 1 })}%)`;
1143
+ return `<button type="button" class="plot-hit" data-role="plot-hit" data-point-index="${b}" data-active="${L ? "true" : "false"}" style="--x:${h};--y:${k};" aria-label="${u(E)}" ${this._isInteractive() ? "" : "disabled"}></button>`;
1144
+ }).join("");
1145
+ return {
1146
+ svg: `
1147
+ <svg class="plot" part="plot" viewBox="0 0 64 64" width="100%" height="100%" role="img" aria-label="${u(this._ariaLabel())}" preserveAspectRatio="xMidYMid meet">
1148
+ <circle cx="${o}" cy="${i}" r="${r}" fill="none" stroke="var(--ui-chart-grid)" stroke-width="${n}" />
1149
+ ${T}
1150
+ <text x="${o}" y="30" text-anchor="middle" font-size="4.5" fill="var(--ui-chart-muted)">Total</text>
1151
+ <text x="${o}" y="36" text-anchor="middle" font-size="6" font-weight="700" fill="var(--ui-chart-text)">${u(this._formatValue(a))}</text>
1152
+ </svg>
1153
+ `,
1154
+ hits: P,
1155
+ anchors: t.map((w, b) => {
1156
+ let y = 0;
1157
+ for (let F = 0; F <= b; F += 1) {
1158
+ const f = Math.max(0, t[F].value) / s * Math.PI * 2;
1159
+ if (F === b) {
1160
+ const S = -Math.PI / 2 + y + f / 2, h = o + Math.cos(S) * (r + 6), k = i + Math.sin(S) * (r + 6);
1161
+ return {
1162
+ xPct: M(h / 64 * 100, 0, 100),
1163
+ yPct: M(k / 64 * 100, 0, 100)
1164
+ };
1165
+ }
1166
+ y += f;
1167
+ }
1168
+ return { xPct: 50, yPct: 50 };
1169
+ }),
1170
+ yTicks: []
1171
+ };
1172
+ }
1173
+ _plot(t, e, a) {
1174
+ const s = this._primarySeries(t);
1175
+ return s ? e === "donut" ? this._plotDonut(s.data, a) : e === "radial" ? this._plotRadial(s.data, a) : this._plotCartesian(t, e, a) : { svg: "", hits: "", anchors: [], yTicks: [] };
1176
+ }
1177
+ _ariaLabel() {
1178
+ const t = this.getAttribute("title") || "Chart";
1179
+ return this.getAttribute("aria-label") || t;
1180
+ }
1181
+ _hasToolbarSlot() {
1182
+ return !!this.querySelector('[slot="header"]');
1183
+ }
1184
+ _hasSlot(t) {
1185
+ return !!this.querySelector(`[slot="${t}"]`);
1186
+ }
1187
+ _tooltipMarkup(t, e) {
1188
+ const a = this._activeIndex;
1189
+ if (a == null || !e.anchors[a])
1190
+ return "";
1191
+ const s = t.labels[a];
1192
+ if (!s)
1193
+ return "";
1194
+ const r = this._seriesValueDetails(t.labels, t.series, a).filter((o) => o.value != null);
1195
+ if (!r.length)
1196
+ return "";
1197
+ const n = e.anchors[a];
1198
+ return `
1199
+ <div class="tooltip" part="tooltip" style="--x:${n.xPct.toFixed(3)};--y:${n.yPct.toFixed(3)};">
1200
+ <div class="tooltip-title">${u(s)}</div>
1201
+ <div class="tooltip-list">
1202
+ ${r.map(
1203
+ (o) => `
1204
+ <div class="tooltip-row">
1205
+ <span class="tooltip-dot" style="--dot:${o.tone || "var(--ui-chart-accent)"};"></span>
1206
+ <span class="tooltip-series">${u(o.series)}</span>
1207
+ <span class="tooltip-value">${u(this._formatValue(o.value || 0))}</span>
1208
+ </div>
1209
+ `
1210
+ ).join("")}
1211
+ </div>
1212
+ </div>
1213
+ `;
1214
+ }
1215
+ _activeInsight(t) {
1216
+ var o;
1217
+ const e = this._primarySeries(t);
1218
+ if (!e)
1219
+ return "";
1220
+ const a = this._activeIndex;
1221
+ if (a == null || !t.labels[a]) {
1222
+ const i = this._resolveStats(e.data), c = i.delta > 0 ? "up" : i.delta < 0 ? "down" : "flat", d = `${i.delta >= 0 ? "+" : ""}${this._formatValue(i.delta)}${i.deltaPct == null ? "" : ` (${i.deltaPct >= 0 ? "+" : ""}${this._formatValue(i.deltaPct, { maximumFractionDigits: 1 })}%)`}`;
1223
+ return `
1224
+ <div class="insight" part="insight">
1225
+ <span>Range <strong>${this._formatValue(i.min)}</strong> to <strong>${this._formatValue(i.max)}</strong></span>
1226
+ <strong data-tone="${c}">${u(d)}</strong>
1227
+ </div>
1228
+ `;
1229
+ }
1230
+ const s = t.labels[a], r = this._seriesValueDetails(t.labels, t.series, a).filter((i) => i.value != null), n = r.reduce((i, c) => i + (c.value || 0), 0);
1231
+ return `
1232
+ <div class="insight" part="insight">
1233
+ <span>Selected <strong>${u(s)}</strong></span>
1234
+ <strong>${u(this._formatValue(t.series.length > 1 ? n : ((o = r[0]) == null ? void 0 : o.value) || 0))}</strong>
1235
+ </div>
1236
+ `;
1237
+ }
1238
+ render() {
1239
+ const t = this._data(), e = this._primarySeries(t), a = this._type(), s = this._state(), r = this._isDisabled(), n = this._isInteractive(), o = (this.getAttribute("title") || "").trim(), i = (this.getAttribute("subtitle") || "").trim(), c = this._showLegend(), d = this._showSummary(), T = this._hasToolbarSlot(), $ = this._hasSlot("title"), P = this._hasSlot("subtitle"), w = $ || P || !!o || !!i || s !== "idle";
1240
+ if (!e || !t.labels.length) {
1241
+ const h = s === "error" ? "Chart data failed to load" : "No series data available";
1242
+ this.setContent(`
1243
+ <style>${Z}</style>
1244
+ <section class="frame" part="frame" data-state="${s}" data-disabled="${r ? "true" : "false"}" aria-disabled="${r ? "true" : "false"}">
1245
+ <div class="toolbar" part="toolbar" ${T ? "" : "hidden"}>
1246
+ <slot name="header"></slot>
1247
+ </div>
1248
+ <header class="header" part="header" ${w ? "" : "hidden"}>
1249
+ <div class="meta">
1250
+ ${$ ? '<slot class="title-slot" name="title"></slot>' : o ? `<h3 class="title" part="title">${u(o)}</h3>` : ""}
1251
+ ${P ? '<slot class="subtitle-slot" name="subtitle"></slot>' : i ? `<p class="subtitle" part="subtitle">${u(i)}</p>` : ""}
1252
+ </div>
1253
+ <span class="status-pill" data-state="${s}">${K(s)}</span>
1254
+ </header>
1255
+ <div class="empty" part="empty">${u(h)}</div>
1256
+ </section>
1257
+ `);
1258
+ return;
1259
+ }
1260
+ this._activeIndex != null && (this._activeIndex < 0 || this._activeIndex >= t.labels.length) && (this._activeIndex = null, this._activePinned = !1);
1261
+ const b = this._resolveStats(e.data), y = this._plot(t, a, this._activeIndex), F = this._axisXLabels(t.labels), l = t.series.length > 1 ? t.series.map(
1262
+ (h, k) => `
1263
+ <div class="legend-item" aria-label="${u(h.name)}">
1264
+ <span class="legend-dot" style="--dot:${this._seriesTone(h, k)};"></span>
1265
+ <span>${u(h.name)}</span>
1266
+ </div>
1267
+ `
1268
+ ).join("") : e.data.map((h, k) => {
1269
+ const L = this._activeIndex === k, j = this._pointTone(h, k), E = `${h.label}: ${this._formatValue(h.value)}`;
1270
+ return `
1271
+ <button
1272
+ type="button"
1273
+ class="legend-item"
1274
+ data-role="legend-item"
1275
+ data-point-index="${k}"
1276
+ data-active="${L ? "true" : "false"}"
1277
+ aria-label="${u(E)}"
1278
+ ${n ? "" : "disabled"}
1279
+ >
1280
+ <span class="legend-dot" style="--dot:${j};"></span>
1281
+ <span>${u(h.label)}</span>
1282
+ </button>
1283
+ `;
1284
+ }).join(""), v = b.delta > 0 ? "up" : b.delta < 0 ? "down" : "flat", f = `${b.delta >= 0 ? "+" : ""}${this._formatValue(b.delta)}`, S = s === "error" ? '<div class="message" part="message" data-tone="error">Data source returned partial metrics. Review upstream mapping.</div>' : s === "success" ? '<div class="message" part="message" data-tone="success">Data pipeline healthy. All metrics are up to date.</div>' : "";
1285
+ this.setContent(`
1286
+ <style>${Z}</style>
1287
+ <section
1288
+ class="frame"
1289
+ part="frame"
1290
+ data-state="${s}"
1291
+ data-disabled="${r ? "true" : "false"}"
1292
+ aria-disabled="${r ? "true" : "false"}"
1293
+ >
1294
+ <div class="sr-only" aria-live="polite">${u(o)} ${u(K(s))}</div>
1295
+
1296
+ <div class="toolbar" part="toolbar" ${T ? "" : "hidden"}>
1297
+ <slot name="header"></slot>
1298
+ </div>
1299
+
1300
+ <header class="header" part="header" ${w ? "" : "hidden"}>
1301
+ <div class="meta">
1302
+ ${$ ? '<slot class="title-slot" name="title"></slot>' : o ? `<h3 class="title" part="title">${u(o)}</h3>` : ""}
1303
+ ${P ? '<slot class="subtitle-slot" name="subtitle"></slot>' : i ? `<p class="subtitle" part="subtitle">${u(i)}</p>` : ""}
1304
+ </div>
1305
+ <span class="status-pill" data-state="${s}">${K(s)}</span>
1306
+ </header>
1307
+
1308
+ ${d ? `
1309
+ <section class="summary" part="summary">
1310
+ <div class="metric" part="metric">
1311
+ <span class="metric-label">Total</span>
1312
+ <span class="metric-value">${u(this._formatValue(b.total))}</span>
1313
+ </div>
1314
+ <div class="metric" part="metric">
1315
+ <span class="metric-label">Average</span>
1316
+ <span class="metric-value">${u(this._formatValue(b.average))}</span>
1317
+ </div>
1318
+ <div class="metric" part="metric">
1319
+ <span class="metric-label">Peak</span>
1320
+ <span class="metric-value">${u(this._formatValue(b.max))}</span>
1321
+ </div>
1322
+ <div class="metric" part="metric">
1323
+ <span class="metric-label">Delta</span>
1324
+ <span class="metric-value" data-tone="${v}">${u(f)}</span>
1325
+ </div>
1326
+ </section>
1327
+ ` : ""}
1328
+
1329
+ <section class="plot-shell" part="plot-shell">
1330
+ <div class="plot-body">
1331
+ ${a === "donut" || a === "radial" ? "" : `
1332
+ <div class="axis-y" part="axis-y">
1333
+ ${y.yTicks.map((h) => `<span>${u(h)}</span>`).join("")}
1334
+ </div>
1335
+ `}
1336
+ <div class="plot-stage">
1337
+ ${y.svg}
1338
+ <div class="plot-hit-layer" part="plot-hits">${y.hits}</div>
1339
+ ${this._tooltipMarkup(t, y)}
1340
+ ${s === "loading" ? '<div class="loading-overlay" part="loading-overlay" aria-hidden="true"></div>' : ""}
1341
+ </div>
1342
+ ${a === "donut" || a === "radial" ? "" : `
1343
+ <div class="axis-x" part="axis-x">
1344
+ ${t.labels.map(
1345
+ (h, k) => `<span class="axis-x-label" data-hidden="${F[k] === "hidden" ? "true" : "false"}">${u(h)}</span>`
1346
+ ).join("")}
1347
+ </div>
1348
+ `}
1349
+ </div>
1350
+ </section>
1351
+
1352
+ ${this._activeInsight(t)}
1353
+
1354
+ ${c ? `<section class="legend" part="legend">${l}</section>` : ""}
1355
+
1356
+ ${t.truncated > 0 ? `<div class="message" part="message">Showing last ${t.truncated + t.labels.length} records (truncated to ${V}).</div>` : ""}
1357
+
1358
+ ${S}
1359
+ </section>
1360
+ `);
1361
+ }
1362
+ shouldRenderOnAttributeChange(t, e, a) {
1363
+ return !0;
1364
+ }
1365
+ }
1366
+ typeof customElements < "u" && !customElements.get("ui-chart") && customElements.define("ui-chart", it);
1367
+ export {
1368
+ it as UIChart
1369
+ };