@revolist/ui 4.0.4-rc → 4.0.4

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 (401) hide show
  1. package/MIGRATION.md +36 -0
  2. package/OWNERSHIP.md +36 -36
  3. package/README.md +65 -392
  4. package/_button.scss +6 -2
  5. package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
  6. package/_chunks/calculator-CDWOuAcp.js +4 -0
  7. package/_chunks/{calendar-xpZ0v3xf.js → calendar-BQYQLu8Q.js} +23 -23
  8. package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
  9. package/_chunks/chart-frame-GprenwEg.js +145 -0
  10. package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
  11. package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
  12. package/_chunks/choice-chips-C5OxD0GV.js +126 -0
  13. package/_chunks/{color-palette-D8vyPfld.js → color-palette-7siNch__.js} +22 -24
  14. package/_chunks/color-picker-Cfc9eqZb.js +143 -0
  15. package/_chunks/{component-C_T2VN5u.js → component-C3k_8uIq.js} +290 -275
  16. package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-DlVkpW3h.js} +1 -9
  17. package/_chunks/configurator-actions-vRnI54mO.js +155 -0
  18. package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
  19. package/_chunks/control-BRfF5DWQ.js +118 -0
  20. package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
  21. package/_chunks/controls-B3EgM_DS.js +650 -0
  22. package/_chunks/{date-control-DrVFX13g.js → date-control-87dcA5br.js} +5 -5
  23. package/_chunks/{date-time-qIhp5vaX.js → date-time-CfiFYodx.js} +332 -293
  24. package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
  25. package/_chunks/dialog.parts-NqEEVc9P.js +131 -0
  26. package/_chunks/{duration-CL68Em0o.js → duration-BGZ_qJ99.js} +10 -10
  27. package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
  28. package/_chunks/editor-popup-NNP9Fh9U.js +82 -0
  29. package/_chunks/field-configurator-DPulsY3l.js +288 -0
  30. package/_chunks/{field-context-D57PnBbH.js → field-context-C4_WrO2z.js} +1 -1
  31. package/_chunks/{framework-mount--RTLIqE-.js → framework-mount-D4I8HpVp.js} +2 -2
  32. package/_chunks/icon-toolbar-BAAdEvr9.js +134 -0
  33. package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
  34. package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
  35. package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
  36. package/_chunks/minus-BOAR3A1C.js +4 -0
  37. package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
  38. package/_chunks/mount-C8CnIW9k.js +267 -0
  39. package/_chunks/{native.view-ByyZ1CT5.js → native-CJm3eq3-.js} +1 -1
  40. package/_chunks/native-control-um1L1wgZ.js +649 -0
  41. package/_chunks/{number-input-BKwA5FnM.js → number-input-CKiA4d1N.js} +9 -9
  42. package/_chunks/{picker-h1P5RUgp.js → picker-igNshTRC.js} +5 -5
  43. package/_chunks/plus-CbGRkIGl.js +4 -0
  44. package/_chunks/{popup-CT2uD3go.js → popup-DECYM9FI.js} +116 -105
  45. package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-CepVfGUq.js} +2 -2
  46. package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
  47. package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-B4w3aARt.js} +2 -2
  48. package/_chunks/request-trail-B1zVRPEf.js +762 -0
  49. package/_chunks/rich-text-Ci4d6dHn.js +842 -0
  50. package/_chunks/rotate-left-BF6G883o.js +4 -0
  51. package/_chunks/selection-list-tooltips-m00U3L6z.js +42 -0
  52. package/_chunks/title-tooltip-ncldbUwS.js +11 -0
  53. package/_chunks/tooltip-h-Z8yFBY.js +54 -0
  54. package/_chunks/tooltip-owner-BYho-vJl.js +19 -0
  55. package/_chunks/tooltip-session-CBtRMBPr.js +110 -0
  56. package/_chunks/tooltip-text-BN5WdGHn.js +12 -0
  57. package/_chunks/top-layer-popup-CKJ7VJOF.js +59 -0
  58. package/_dialog.scss +57 -22
  59. package/_form.scss +71 -21
  60. package/_legend.scss +25 -7
  61. package/_variables.scss +34 -32
  62. package/_view-switcher.scss +6 -0
  63. package/activity-message.d.ts +1 -1
  64. package/activity-message.js +1 -1
  65. package/ai/_chat.scss +35 -3
  66. package/ai/_style.scss +76 -16
  67. package/ai/chat.d.ts +3 -1
  68. package/ai/components.d.ts +16 -3
  69. package/ai/index.d.ts +1 -0
  70. package/ai/index.js +3 -3
  71. package/ai/mount.d.ts +30 -6
  72. package/ai/request-trail.d.ts +9 -3
  73. package/ai/results/_style.scss +83 -0
  74. package/ai/results/index.d.ts +11 -0
  75. package/ai/results/metrics.d.ts +5 -0
  76. package/ai/results/table.d.ts +5 -0
  77. package/ai/results/text.d.ts +5 -0
  78. package/ai/results/types.d.ts +29 -0
  79. package/ai/transcript.d.ts +2 -0
  80. package/ai/translations.d.ts +1 -1
  81. package/angular/angular.d.ts +1 -1
  82. package/angular/angular.js +13 -7
  83. package/assignee/assignee.scss +28 -6
  84. package/assignee/index.js +6 -6
  85. package/avatar/avatar.style.scss +23 -6
  86. package/avatar/index.d.ts +25 -2
  87. package/avatar/index.js +33 -32
  88. package/badge.d.ts +1 -1
  89. package/badge.js +1 -1
  90. package/badge.view.d.ts +8 -0
  91. package/brush-range/_brush-range.scss +55 -49
  92. package/brush-range/component.d.ts +1 -3
  93. package/brush-range/component.js +28 -28
  94. package/buttons/delete-button.js +1 -1
  95. package/buttons/delete-button.style.scss +6 -2
  96. package/buttons/remove-button.d.ts +1 -1
  97. package/buttons/remove-button.js +2 -2
  98. package/buttons/remove-button.style.scss +1 -1
  99. package/buttons/svg-button.d.ts +1 -1
  100. package/buttons/svg-button.js +17 -17
  101. package/calendar/_calendar.scss +21 -25
  102. package/calendar/calendar.js +1 -1
  103. package/calendar/day.js +2 -2
  104. package/calendar/header.js +2 -3
  105. package/calendar/index.js +3 -3
  106. package/calendar/model.js +1 -1
  107. package/calendar/month-grid.js +2 -2
  108. package/calendar/translations.js +1 -1
  109. package/calendar/year-grid.js +2 -2
  110. package/cell-input.js +1 -1
  111. package/cell-input.scss +3 -7
  112. package/cell-visuals/badge.style.scss +6 -3
  113. package/cell-visuals/bar-chart.style.scss +2 -1
  114. package/cell-visuals/column-type.style.css +12 -0
  115. package/cell-visuals/index.js +1 -1
  116. package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
  117. package/cell-visuals/progress-line.style.scss +1 -4
  118. package/cell-visuals/sparkline.style.scss +2 -1
  119. package/cell-visuals/timeline.style.css +4 -2
  120. package/checkbox/checkbox.scss +6 -24
  121. package/checkbox/index.js +1 -1
  122. package/choice-chips/index.d.ts +3 -1
  123. package/choice-chips/index.js +1 -1
  124. package/color-palette/built-in-palettes.js +1 -1
  125. package/color-palette/chart-palettes.js +1 -1
  126. package/color-palette/color-palette.js +1 -1
  127. package/color-palette/color-palette.style.scss +88 -25
  128. package/color-palette/color-picker.constants.js +1 -1
  129. package/color-palette/color-picker.js +2 -2
  130. package/color-palette/color-picker.style.scss +23 -10
  131. package/color-palette/common-palettes.d.ts +1 -1
  132. package/color-palette/common-palettes.js +2 -2
  133. package/color-palette/gantt-palettes.js +1 -1
  134. package/color-palette/native.d.ts +15 -2
  135. package/color-palette/palette.js +1 -1
  136. package/color-palette/pivot-palettes.js +1 -1
  137. package/color-palette/platform-palettes.js +1 -1
  138. package/color-palette/pro-palettes.js +1 -1
  139. package/color-palette/scheduler-palettes.js +1 -1
  140. package/component-catalog.d.ts +9 -7
  141. package/configurator-actions.d.ts +67 -0
  142. package/configurator-actions.js +1 -0
  143. package/configurator-aggregation-list.d.ts +14 -0
  144. package/configurator-aggregation-list.js +63 -0
  145. package/configurator-drop-zone.d.ts +39 -0
  146. package/configurator-drop-zone.js +66 -0
  147. package/configurator-field-icon.d.ts +10 -0
  148. package/configurator-field-icon.js +1 -0
  149. package/configurator-focus.d.ts +4 -0
  150. package/configurator-focus.js +39 -0
  151. package/configurator-sections.d.ts +42 -0
  152. package/configurator-sections.js +71 -0
  153. package/control-attributes.js +1 -1
  154. package/control-presentation.d.ts +8 -2
  155. package/control-presentation.js +25 -20
  156. package/controls.d.ts +12 -2
  157. package/controls.js +4 -3
  158. package/core/anchored-popover.js +1 -1
  159. package/core/control-id.js +1 -1
  160. package/core/editor-popup-position.d.ts +6 -2
  161. package/core/editor-popup.d.ts +4 -0
  162. package/core/editor-popup.js +1 -1
  163. package/core/motion.js +1 -1
  164. package/core/popover-controller.d.ts +35 -0
  165. package/core/popover-controller.js +102 -0
  166. package/core/popup-ownership.d.ts +2 -0
  167. package/core/selection-list-tooltips.d.ts +2 -0
  168. package/core/title-tooltip.d.ts +2 -0
  169. package/core/tooltip-session.d.ts +29 -0
  170. package/core/tooltip-surface.d.ts +13 -0
  171. package/core/tooltip-text.d.ts +6 -0
  172. package/core/tooltip.d.ts +35 -0
  173. package/core/top-layer-popup.d.ts +4 -0
  174. package/core/top-layer-popup.js +1 -23
  175. package/date-time/attach.d.ts +1 -1
  176. package/date-time/date-control.d.ts +1 -1
  177. package/date-time/field.d.ts +4 -2
  178. package/date-time/index.js +1 -1
  179. package/date-time/style.scss +239 -36
  180. package/date-time/time-selection.d.ts +3 -1
  181. package/date-time/types.d.ts +5 -1
  182. package/dialog/dialog-action-footer.d.ts +17 -2
  183. package/dialog/dialog.dom.d.ts +15 -2
  184. package/dialog/dialog.dom.js +9 -9
  185. package/dialog/dialog.drag.js +1 -1
  186. package/dialog/dialog.parts.d.ts +1 -1
  187. package/dialog/dialog.parts.js +1 -1
  188. package/dialog/dialog.preact.js +1 -1
  189. package/distribution-chart/_distribution-chart.scss +113 -77
  190. package/distribution-chart/area-chart.js +2 -2
  191. package/distribution-chart/bar-chart.js +2 -2
  192. package/distribution-chart/chart-frame.d.ts +1 -1
  193. package/distribution-chart/index.d.ts +1 -1
  194. package/distribution-chart/index.js +1 -1
  195. package/distribution-chart/line-chart.js +2 -2
  196. package/dropdown/content.js +1 -1
  197. package/dropdown/control.js +1 -1
  198. package/dropdown/dropdown.service.js +1 -1
  199. package/dropdown/dropdown.types.d.ts +1 -1
  200. package/dropdown/editor-dropdown.style.scss +19 -9
  201. package/dropdown/index.js +2 -2
  202. package/dropdown/lookup-field.d.ts +5 -0
  203. package/dropdown/lookup-field.js +4 -3
  204. package/dropdown/popup.d.ts +2 -2
  205. package/dropdown/popup.js +1 -1
  206. package/duration/index.js +1 -1
  207. package/editor-actions.js +2 -2
  208. package/editor-layout/index.d.ts +4 -4
  209. package/editor-layout/index.js +40 -35
  210. package/editor-layout/style.scss +82 -18
  211. package/favicon.svg +9 -0
  212. package/field-configurator.d.ts +39 -1
  213. package/field-configurator.js +4 -170
  214. package/field-expansion.d.ts +9 -0
  215. package/field-reorder.hook.js +1 -1
  216. package/field-reorder.js +1 -1
  217. package/filter/filters/slider/_single-slider.scss +57 -38
  218. package/filter/filters/slider/_slider.scss +41 -33
  219. package/filter/filters/slider/component.js +1 -1
  220. package/filter/filters/slider/control.js +3 -1
  221. package/filter/filters/slider/inputs.js +1 -1
  222. package/filter/filters/slider/logic.js +1 -1
  223. package/filter/filters/slider/preact.js +1 -1
  224. package/filter/filters/slider/runtime.js +50 -23
  225. package/filter/filters/slider/single.js +2 -2
  226. package/filter-badge.js +2 -2
  227. package/filter-controls.d.ts +0 -1
  228. package/filter-controls.js +6 -7
  229. package/form-controls/index.d.ts +10 -2
  230. package/form-controls/index.js +7 -7
  231. package/form-controls/presentation.d.ts +1 -1
  232. package/form-controls/presentation.js +13 -13
  233. package/formatting/index.d.ts +1 -1
  234. package/formatting/index.js +26 -25
  235. package/formatting/styles.scss +14 -57
  236. package/framework.js +228 -225
  237. package/history-controls.js +27 -1
  238. package/html-controls.js +1 -1
  239. package/icon-toolbar.d.ts +62 -0
  240. package/icon-toolbar.js +1 -0
  241. package/icons/icon.d.ts +1 -1
  242. package/icons/icon.js +1 -1
  243. package/legend.d.ts +1 -1
  244. package/legend.js +1 -1
  245. package/masked-input/index.js +4 -4
  246. package/native-control.d.ts +1 -2
  247. package/native-control.js +1 -1
  248. package/native-controls.d.ts +54 -2
  249. package/native-styles.css +1 -1
  250. package/native-styles.scss +6 -2
  251. package/native.d.ts +3 -3
  252. package/native.js +48 -45
  253. package/number-input/index.d.ts +1 -1
  254. package/number-input/index.js +1 -1
  255. package/package.json +84 -1
  256. package/pagination.js +12 -12
  257. package/pdf-viewer/controller.js +1 -1
  258. package/pdf-viewer/header.d.ts +1 -1
  259. package/pdf-viewer/index.d.ts +2 -2
  260. package/pdf-viewer/index.js +3 -3
  261. package/pdf-viewer/search-bar.d.ts +1 -1
  262. package/pdf-viewer/status.d.ts +1 -1
  263. package/pdf-viewer/style.scss +203 -42
  264. package/pickers.d.ts +5 -1
  265. package/preact-mount.js +1 -1
  266. package/preact.d.ts +13 -10
  267. package/preact.js +109 -64
  268. package/progress/_bar.scss +9 -3
  269. package/progress/_circular.scss +2 -1
  270. package/progress/bar.js +1 -1
  271. package/progress/circular.js +1 -1
  272. package/progress/range.js +1 -1
  273. package/rating-choice.js +1 -1
  274. package/react-adapter.d.ts +4 -2
  275. package/react-control.d.ts +2 -0
  276. package/react-control.js +3 -3
  277. package/react.d.ts +7 -8
  278. package/react.js +69 -68
  279. package/reorder-list.d.ts +1 -1
  280. package/reorder-list.js +1 -1
  281. package/reorder-list.scss +59 -17
  282. package/resource-picker/resource-picker-avatar.js +1 -1
  283. package/resource-picker/resource-picker-option.js +1 -1
  284. package/resource-picker/resource-picker-popup.js +2 -2
  285. package/resource-picker/resource-picker.js +75 -73
  286. package/resource-picker/resource-picker.scss +62 -34
  287. package/resource-picker/resource-picker.utils.js +1 -1
  288. package/rich-text/engine.d.ts +1 -0
  289. package/rich-text/format-html.d.ts +2 -0
  290. package/rich-text/index.d.ts +4 -0
  291. package/rich-text/index.js +1 -1
  292. package/rich-text/model.d.ts +2 -0
  293. package/rich-text/style.scss +293 -44
  294. package/rich-text/syntax.d.ts +5 -0
  295. package/rich-text/toolbar.d.ts +1 -1
  296. package/rich-text/translations.d.ts +2 -0
  297. package/robots.txt +4 -0
  298. package/search-input/index.js +2 -2
  299. package/search-input/native.d.ts +21 -2
  300. package/segmented-switch/index.js +1 -1
  301. package/select.d.ts +3 -1
  302. package/select.js +1 -1
  303. package/selection-list.d.ts +1 -0
  304. package/selection-list.js +3 -1
  305. package/status-feedback/badge.js +2 -2
  306. package/status-feedback/exit-snapshot.js +5 -5
  307. package/status-feedback/header.js +2 -2
  308. package/status-feedback/icons.js +1 -1
  309. package/status-feedback/index.js +1 -1
  310. package/status-feedback/item.js +2 -2
  311. package/status-feedback/motion.js +1 -1
  312. package/status-feedback/placement.js +1 -1
  313. package/status-feedback/popover.js +5 -5
  314. package/status-feedback/render.js +1 -1
  315. package/status-feedback/status-feedback.scss +124 -35
  316. package/styles/_activity-message.scss +24 -7
  317. package/styles/_alert.scss +78 -17
  318. package/styles/_cell-editor-frame.scss +11 -0
  319. package/styles/_compositions.scss +400 -80
  320. package/styles/_control.scss +30 -8
  321. package/styles/_disclosure.scss +15 -5
  322. package/styles/_editor-counter.scss +16 -6
  323. package/styles/_editor-slider.scss +8 -4
  324. package/styles/_field-configurator.scss +321 -23
  325. package/styles/_fields-grid.scss +49 -0
  326. package/styles/_filter-controls.scss +10 -2
  327. package/styles/_icon-action.scss +48 -15
  328. package/styles/_loading.scss +12 -3
  329. package/styles/_motion.scss +32 -9
  330. package/styles/_palette.scss +0 -24
  331. package/styles/_primitives.scss +369 -110
  332. package/styles/_theme.scss +130 -86
  333. package/styles/_thresholds.scss +28 -25
  334. package/styles/_time-grid.scss +8 -3
  335. package/styles/_tokens.scss +6 -1
  336. package/styles/color-roles.js +1 -1
  337. package/styles/configurator-actions.scss +241 -0
  338. package/styles/pagination.css +213 -0
  339. package/styles/{legacy-rating.css → rating.css} +8 -3
  340. package/styles.css +1 -1
  341. package/styles.scss +3 -5
  342. package/surfaces.d.ts +38 -2
  343. package/surfaces.js +37 -134
  344. package/svelte/UiComponent.svelte +44 -11
  345. package/svelte-control.js +1 -1
  346. package/svelte.d.ts +1 -1
  347. package/svelte.js +5 -5
  348. package/switch/index.js +16 -15
  349. package/time-grid.d.ts +0 -1
  350. package/time-grid.js +39 -38
  351. package/timeline-track/_style.scss +96 -24
  352. package/timeline-track/index.js +3 -3
  353. package/timeline-track/model.js +1 -1
  354. package/ui.css +1 -1
  355. package/view-switcher.d.ts +23 -0
  356. package/vue-badge.js +1 -1
  357. package/vue-control.js +1 -1
  358. package/vue-segmented-switch.js +1 -1
  359. package/vue.d.ts +29 -32
  360. package/vue.js +118 -123
  361. package/_chunks/chart-frame-Cmc7xU1i.js +0 -130
  362. package/_chunks/choice-chips-CHQTUdLs.js +0 -110
  363. package/_chunks/color-picker-CudqPYZo.js +0 -138
  364. package/_chunks/control-AHKXD5Eu.js +0 -93
  365. package/_chunks/control-tooltip-uscKfAnV.js +0 -100
  366. package/_chunks/controls-DsNi8V8I.js +0 -630
  367. package/_chunks/dialog.parts-CKGkC5zP.js +0 -134
  368. package/_chunks/editor-popup-WDdtVDNA.js +0 -81
  369. package/_chunks/history-controls-B3u3INEK.js +0 -27
  370. package/_chunks/mount-DQ1cpppK.js +0 -257
  371. package/_chunks/native-control-C_yok8_-.js +0 -605
  372. package/_chunks/request-trail-DSlFix6i.js +0 -618
  373. package/_chunks/rich-text-CH7gIqOS.js +0 -636
  374. package/_shared/data-query/binding.d.ts +0 -30
  375. package/_shared/data-query/blocks.d.ts +0 -30
  376. package/_shared/data-query/commands.d.ts +0 -47
  377. package/_shared/data-query/contracts.d.ts +0 -106
  378. package/_shared/data-query/cursor-reader.d.ts +0 -25
  379. package/_shared/data-query/direct-binding.d.ts +0 -3
  380. package/_shared/data-query/index.d.ts +0 -23
  381. package/_shared/data-query/infinite-binding.d.ts +0 -18
  382. package/_shared/data-query/keys.d.ts +0 -9
  383. package/_shared/data-query/limiter.d.ts +0 -12
  384. package/_shared/data-query/load-options.d.ts +0 -25
  385. package/_shared/data-query/materialize.d.ts +0 -2
  386. package/_shared/data-query/policy.d.ts +0 -14
  387. package/_shared/data-query/provider-queries.d.ts +0 -22
  388. package/_shared/data-query/reader.d.ts +0 -23
  389. package/_shared/data-query/remote-load.d.ts +0 -7
  390. package/_shared/data-query/source.d.ts +0 -40
  391. package/avatar/index.view.d.ts +0 -25
  392. package/color-palette/native.view.d.ts +0 -15
  393. package/control-presentation.view.d.ts +0 -8
  394. package/dialog/dialog-action-footer.view.d.ts +0 -20
  395. package/dialog/dialog.dom.view.d.ts +0 -15
  396. package/form-controls/index.view.d.ts +0 -10
  397. package/formatting/control-tooltip.d.ts +0 -27
  398. package/native-controls.view.d.ts +0 -54
  399. package/search-input/native.view.d.ts +0 -21
  400. package/styles/legacy-pagination.css +0 -112
  401. package/surfaces.view.d.ts +0 -63
@@ -1,618 +0,0 @@
1
- import { i as e, n as t, s as n } from "./preact.module-BBM36DnO.js";
2
- import { c as r, i, r as a, s as o, t as s } from "./hooks.module-CG3gN83z.js";
3
- import { t as c } from "./jsxRuntime.module-F6UFnpT-.js";
4
- import { SvgIcon as l } from "../icons/icon.js";
5
- import { l as u } from "./native-control-C_yok8_-.js";
6
- import { RemoveButton as d } from "../buttons/remove-button.js";
7
- import { t as f } from "./chevron-down-GbplLa6s.js";
8
- import { D as p, M as m, l as h, m as g, n as _, o as v } from "./controls-DsNi8V8I.js";
9
- import { createControlId as y } from "../core/control-id.js";
10
- import { PopoverController as b } from "../surfaces.js";
11
- import { t as x } from "./clock-BOhPNlW3.js";
12
- //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/circle-check.svg?raw
13
- var S = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zM374 145.7c-10.7-7.8-25.7-5.4-33.5 5.3L221.1 315.2 169 263.1c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l72 72c5 5 11.8 7.5 18.8 7s13.4-4.1 17.5-9.8L379.3 179.2c7.8-10.7 5.4-25.7-5.3-33.5z\"/></svg>", C = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM167 167c9.4-9.4 24.6-9.4 33.9 0l55 55 55-55c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-55 55 55 55c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-55-55-55 55c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l55-55-55-55c-9.4-9.4-9.4-24.6 0-33.9z\"/></svg>", w = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM192 160l128 0c17.7 0 32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32l0-128c0-17.7 14.3-32 32-32z\"/></svg>", T = /* @__PURE__ */ "AI chat,Clear chat,Conversation messages,Jump to latest,You,Assistant,System,Message actions,Start a conversation,Ask a question to get started.,Message,Type a message…,Working…,Reasoning summary,Pending,Running,Completed,Failed,Cancelled,{seconds}s,Data history,Review changes,Apply changes,Cancel changes,Undo data change,Redo data change,Ask AI to change this view,Filter or sort your data…,Send,Stop,Enter to send · Shift+Enter for a new line,Suggested requests,More,Activity,Collapse activity,Expand activity,AI view assistant,View steps,Clear all,Restore the starting view,Restore previous view,Reset view,The view changed manually. Start a new request to continue.,Remove request: {label},{count} step,{count} steps,{count} applied request,{count} applied requests,{count} matching rows".split(",");
14
- function E(e, t = {}, n = {}) {
15
- return (t[e] ?? e).replace(/\{(\w+)\}/g, (e, t) => Object.hasOwn(n, t) ? String(n[t]) : e);
16
- }
17
- //#endregion
18
- //#region src/ai/translation-context.tsx
19
- var D = n({});
20
- function O({ translations: e, children: t }) {
21
- return /* @__PURE__ */ c(D.Provider, {
22
- value: e,
23
- children: t
24
- });
25
- }
26
- function k(e) {
27
- let t = o(D), n = e ?? t;
28
- return (e, t) => E(e, n, t);
29
- }
30
- //#endregion
31
- //#region src/ai/prompt-history.ts
32
- function A(e) {
33
- if (!Array.isArray(e)) return [];
34
- let t = e.slice(-20).filter((e) => typeof e == "string" && !!e.trim() && e.length <= 4e3).map((e) => e.trim()).filter((e, t, n) => !t || e !== n[t - 1]), n = [];
35
- for (let e = t.length - 1; e >= 0; e--) new TextEncoder().encode(JSON.stringify([t[e], ...n])).byteLength <= 8192 && n.unshift(t[e]);
36
- return n;
37
- }
38
- var j = class {
39
- state;
40
- reset() {
41
- this.state = void 0;
42
- }
43
- move(e, t, n) {
44
- let r = JSON.stringify(n);
45
- if (this.state && (this.state.selected !== e || this.state.key !== r) && this.reset(), !n.length || !this.state && t === "down") return;
46
- this.state ||= {
47
- index: n.length,
48
- draft: e,
49
- selected: e,
50
- key: r
51
- };
52
- let i = this.state.index + (t === "up" ? -1 : 1);
53
- if (i >= n.length) {
54
- let e = this.state.draft;
55
- return this.reset(), e;
56
- }
57
- return this.state.index = Math.max(0, i), this.state.selected = n[this.state.index], this.state.selected;
58
- }
59
- }, M = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M214.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 109.3 160 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-370.7 105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z\"/></svg>", N = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96C0 60.7 28.7 32 64 32z\"/></svg>";
60
- //#endregion
61
- //#region src/ai/components.tsx
62
- function P({ translations: e, value: t, onValueChange: n, onSubmit: r, onStop: i, busy: o = !1, disabled: l = !1, label: u = "Ask AI to change this view", placeholder: d = "Filter or sort your data…", submitLabel: f = "Send", stopLabel: p = "Stop", promptHistory: h, hint: _ = "", actions: v, footer: b, textareaProps: x }) {
63
- let S = k(e), C = s(y("ai-prompt")), w = s(!1), T = s(new j()), E = s();
64
- a(() => {
65
- if (!E.current) return;
66
- let { element: e, position: t } = E.current;
67
- e.setSelectionRange(t, t), E.current = void 0;
68
- });
69
- let D = `${C.current}-hint`, O = !!_ && !t.length, P = o && !!i, F = () => {
70
- !l && !o && t.trim() && r(t.trim());
71
- };
72
- return /* @__PURE__ */ c("form", {
73
- class: "rv-ai-prompt",
74
- "aria-busy": o || void 0,
75
- onSubmit: (e) => {
76
- e.preventDefault(), F();
77
- },
78
- children: [/* @__PURE__ */ c("label", {
79
- for: C.current,
80
- class: "rv-ai-prompt-label rv-visually-hidden",
81
- children: S(u)
82
- }), /* @__PURE__ */ c("div", {
83
- class: "rv-ai-prompt-composer",
84
- children: [
85
- /* @__PURE__ */ c(m, {
86
- rows: 1,
87
- ...x,
88
- id: C.current,
89
- "aria-describedby": O ? D : void 0,
90
- value: t,
91
- onValueChange: (e) => {
92
- T.current.reset(), E.current = void 0, n(e);
93
- },
94
- placeholder: S(d),
95
- disabled: l || o,
96
- maxLength: 4e3,
97
- onCompositionStart: () => {
98
- w.current = !0;
99
- },
100
- onCompositionEnd: () => {
101
- w.current = !1;
102
- },
103
- onKeyDown: (e) => {
104
- let r = e.currentTarget;
105
- if (h && !o && !l && !w.current && !e.isComposing && e.keyCode !== 229 && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey && r.selectionStart === r.selectionEnd && (e.key === "ArrowUp" && !t.slice(0, r.selectionStart).includes("\n") || e.key === "ArrowDown" && !t.slice(r.selectionEnd).includes("\n"))) {
106
- let i = T.current.move(t, e.key === "ArrowUp" ? "up" : "down", A(h));
107
- if (i !== void 0) {
108
- if (e.preventDefault(), i === t) return;
109
- E.current = {
110
- element: r,
111
- position: i.length
112
- }, n(i);
113
- return;
114
- }
115
- }
116
- e.key === "Enter" && !e.shiftKey && !e.isComposing && !w.current && e.keyCode !== 229 && (e.preventDefault(), F());
117
- }
118
- }),
119
- b && /* @__PURE__ */ c("div", {
120
- class: "rv-ai-prompt-footer",
121
- children: b
122
- }),
123
- /* @__PURE__ */ c("div", {
124
- class: "rv-ai-prompt-toolbar",
125
- children: [/* @__PURE__ */ c("div", {
126
- class: "rv-ai-prompt-tools",
127
- children: [v, O && /* @__PURE__ */ c("span", {
128
- id: D,
129
- class: "rv-ai-prompt-hint",
130
- children: S(_)
131
- })]
132
- }), /* @__PURE__ */ c(g, {
133
- className: "rv-ai-prompt-submit",
134
- type: P ? "button" : "submit",
135
- label: S(P ? p : f),
136
- icon: P ? N : M,
137
- onClick: P ? (e) => {
138
- e.preventDefault(), i?.();
139
- } : void 0,
140
- disabled: l || !P && !t.trim(),
141
- busy: o && !P,
142
- variant: "solid",
143
- size: "compact"
144
- })]
145
- })
146
- ]
147
- })]
148
- });
149
- }
150
- function F({ translations: e, items: t, onSelect: n, disabled: r, label: i = "Suggested requests" }) {
151
- let a = k(e);
152
- if (!t.length) return null;
153
- let o = t.map((e) => typeof e == "string" ? {
154
- label: e,
155
- prompt: e
156
- } : e);
157
- return /* @__PURE__ */ c("div", {
158
- class: "rv-ai-suggestions",
159
- role: "group",
160
- "aria-label": a(i),
161
- children: [o.slice(0, 3).map((e, t) => /* @__PURE__ */ c(_, {
162
- className: "rv-ai-suggestion",
163
- size: "compact",
164
- disabled: r,
165
- onClick: () => n(e.prompt),
166
- children: e.label
167
- }, `${t}:${e.prompt}`)), o.length > 3 && /* @__PURE__ */ c(u, {
168
- className: "rv-ai-examples",
169
- source: o.slice(3).map((e) => ({
170
- value: e.prompt,
171
- label: e.label
172
- })),
173
- disabled: r,
174
- placeholder: a("More"),
175
- renderSelectedValue: () => /* @__PURE__ */ c(l, {
176
- svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M0 256a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm168 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm224-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z\"/></svg>",
177
- size: 14
178
- }),
179
- config: { ariaLabel: a("More") },
180
- onChange: (e) => {
181
- typeof e == "string" && n(e);
182
- }
183
- })]
184
- });
185
- }
186
- function I({ translations: e, phase: t, message: n }) {
187
- let r = k(e);
188
- return /* @__PURE__ */ c("div", {
189
- class: "rv-ai-status",
190
- "data-state": t,
191
- role: "status",
192
- "aria-live": "polite",
193
- "aria-atomic": "true",
194
- children: [(t === "understanding" || t === "applying") && /* @__PURE__ */ c("span", {
195
- "aria-hidden": "true",
196
- children: /* @__PURE__ */ c(p, { label: "" })
197
- }), /* @__PURE__ */ c("span", { children: r(n) })]
198
- });
199
- }
200
- function L({ translations: e, summary: t, matchedRows: n, countLabel: r, actions: i, children: a }) {
201
- let o = k(e);
202
- return /* @__PURE__ */ c("div", {
203
- class: "rv-ai-result",
204
- role: "status",
205
- "aria-live": "polite",
206
- children: [
207
- /* @__PURE__ */ c("p", {
208
- class: "rv-ai-result-summary",
209
- children: t
210
- }),
211
- n !== void 0 && /* @__PURE__ */ c("p", {
212
- class: "rv-ai-result-count",
213
- children: r ? r(n) : o("{count} matching rows", { count: n.toLocaleString() })
214
- }),
215
- a,
216
- i && /* @__PURE__ */ c("div", {
217
- class: "rv-ai-result-actions",
218
- children: i
219
- })
220
- ]
221
- });
222
- }
223
- function R({ translations: e = {}, label: t = "AI view assistant", children: n, footer: r, busy: i }) {
224
- return /* @__PURE__ */ c(O, {
225
- translations: e,
226
- children: /* @__PURE__ */ c("section", {
227
- class: "rv-ai-assistant",
228
- "aria-label": ((t) => E(t, e))(t),
229
- "aria-busy": i || void 0,
230
- onKeyDown: (e) => e.stopPropagation(),
231
- onKeyUp: (e) => e.stopPropagation(),
232
- children: [n, r && /* @__PURE__ */ c("div", {
233
- class: "rv-ai-assistant-footer",
234
- children: r
235
- })]
236
- })
237
- });
238
- }
239
- function z({ translations: t, summary: n, details: i, disabled: a, onApply: o, onCancel: l }) {
240
- let u = k(t), d = s(null);
241
- return r(() => {
242
- d.current?.focus();
243
- }, []), /* @__PURE__ */ c("section", {
244
- class: "rv-ai-change-preview",
245
- "aria-label": u("Review changes"),
246
- onKeyDown: (e) => {
247
- e.key === "Escape" && !a && (e.preventDefault(), l());
248
- },
249
- children: /* @__PURE__ */ c(L, {
250
- summary: n,
251
- actions: /* @__PURE__ */ c(e, { children: [/* @__PURE__ */ c(_, {
252
- ref: d,
253
- disabled: a,
254
- onClick: o,
255
- children: u("Apply changes")
256
- }), /* @__PURE__ */ c(_, {
257
- disabled: a,
258
- variant: "ghost",
259
- onClick: l,
260
- children: u("Cancel changes")
261
- })] }),
262
- children: i && /* @__PURE__ */ c("pre", {
263
- class: "rv-ai-result-details",
264
- children: i
265
- })
266
- })
267
- });
268
- }
269
- //#endregion
270
- //#region src/ai/chat.tsx
271
- function B({ children: e, className: t = "", label: n = "AI chat", style: r, translations: i }) {
272
- let a = k(i);
273
- return /* @__PURE__ */ c("section", {
274
- class: `rv-ai-chat ${t}`,
275
- "aria-label": a(n),
276
- style: r,
277
- children: e
278
- });
279
- }
280
- function V({ children: e, className: t = "", autoScroll: n = !0, busy: o = !1, label: l = "Conversation messages", jumpLabel: u = "Jump to latest", translations: d }) {
281
- let f = k(d), p = s(null), m = s(null), h = s(n), [g, v] = i(!1), y = () => {
282
- let e = p.current;
283
- if (!e) return;
284
- let t = e.scrollHeight - e.clientHeight - e.scrollTop <= 40;
285
- h.current = t, v(!t);
286
- }, b = () => {
287
- let e = p.current;
288
- e && (e.scrollTop = e.scrollHeight, h.current = !0, v(!1));
289
- }, x = () => {
290
- if (n && h.current) b();
291
- else {
292
- let e = p.current;
293
- e && v(e.scrollHeight - e.clientHeight - e.scrollTop > 40);
294
- }
295
- };
296
- return a(x, [e, n]), r(() => {
297
- if (typeof ResizeObserver > "u") return;
298
- let e = new ResizeObserver(x);
299
- return p.current && e.observe(p.current), m.current && e.observe(m.current), () => e.disconnect();
300
- }, [n]), /* @__PURE__ */ c("div", {
301
- class: `rv-ai-chat-scroll ${t}`,
302
- children: [/* @__PURE__ */ c("div", {
303
- ref: p,
304
- class: "rv-ai-chat-viewport",
305
- role: "log",
306
- "aria-label": f(l),
307
- "aria-live": "polite",
308
- "aria-relevant": "additions text",
309
- "aria-busy": o || void 0,
310
- tabIndex: 0,
311
- onScroll: y,
312
- children: /* @__PURE__ */ c("div", {
313
- ref: m,
314
- class: "rv-ai-chat-content",
315
- children: e
316
- })
317
- }), g && /* @__PURE__ */ c(_, {
318
- className: "rv-ai-chat-jump",
319
- size: "compact",
320
- onClick: b,
321
- children: f(u)
322
- })]
323
- });
324
- }
325
- function H({ title: e = "Start a conversation", description: t = "Ask a question to get started.", children: n, className: r = "", translations: i }) {
326
- let a = k(i);
327
- return /* @__PURE__ */ c("div", {
328
- class: `rv-ai-chat-empty ${r}`,
329
- children: [
330
- /* @__PURE__ */ c("strong", { children: a(e) }),
331
- /* @__PURE__ */ c("p", { children: a(t) }),
332
- n
333
- ]
334
- });
335
- }
336
- function U(e) {
337
- return /* @__PURE__ */ c("div", {
338
- class: "rv-ai-chat-composer",
339
- children: /* @__PURE__ */ c(P, {
340
- label: "Message",
341
- placeholder: "Type a message…",
342
- ...e
343
- })
344
- });
345
- }
346
- function W({ from: e, label: t, isStreaming: n = !1, children: r, className: i = "", translations: a }) {
347
- let o = k(a);
348
- return /* @__PURE__ */ c("article", {
349
- class: `rv-ai-message rv-ai-message--${e} ${i}`,
350
- "aria-label": o(t ?? {
351
- user: "You",
352
- assistant: "Assistant",
353
- system: "System"
354
- }[e]),
355
- "aria-busy": n || void 0,
356
- "data-streaming": n || void 0,
357
- children: r
358
- });
359
- }
360
- function G({ children: e, className: t = "" }) {
361
- return /* @__PURE__ */ c("div", {
362
- class: `rv-ai-message-content ${t}`,
363
- children: e
364
- });
365
- }
366
- function K({ children: e, className: t = "", label: n = "Message actions", translations: r }) {
367
- let i = k(r);
368
- return /* @__PURE__ */ c("div", {
369
- class: `rv-ai-message-actions ${t}`,
370
- role: "group",
371
- "aria-label": i(n),
372
- children: e
373
- });
374
- }
375
- var q = {
376
- pending: "Pending",
377
- running: "Running",
378
- completed: "Completed",
379
- error: "Failed",
380
- cancelled: "Cancelled"
381
- };
382
- function J({ status: e }) {
383
- return /* @__PURE__ */ c("span", {
384
- class: "rv-ai-task-icon",
385
- "data-status": e,
386
- "aria-hidden": "true",
387
- children: e === "running" ? /* @__PURE__ */ c(p, { label: "" }) : /* @__PURE__ */ c(l, { svg: e === "completed" ? S : e === "error" ? C : e === "cancelled" ? w : x })
388
- });
389
- }
390
- function Y({ title: e, status: n = "completed", open: r, defaultOpen: a, onOpenChange: o, children: u, className: d = "", translations: f }) {
391
- let p = k(f), [m, g] = i(a), _ = r ?? m ?? n === "running", v = s({
392
- expanded: _,
393
- open: r,
394
- onOpenChange: o
395
- });
396
- v.current = {
397
- expanded: _,
398
- open: r,
399
- onOpenChange: o
400
- };
401
- let y = t(u).some((e) => typeof e != "string" || e.trim().length > 0), b = /* @__PURE__ */ c("span", {
402
- class: "rv-ai-trace-heading",
403
- children: [
404
- /* @__PURE__ */ c(J, { status: n }),
405
- /* @__PURE__ */ c("span", { children: e }),
406
- /* @__PURE__ */ c("span", {
407
- class: "rv-visually-hidden",
408
- children: p(q[n])
409
- }),
410
- y && /* @__PURE__ */ c("span", {
411
- class: "rv-ai-trace-chevron",
412
- "aria-hidden": "true",
413
- children: /* @__PURE__ */ c(l, {
414
- svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z\"/></svg>",
415
- size: 8
416
- })
417
- })
418
- ]
419
- });
420
- return y ? /* @__PURE__ */ c(h, {
421
- className: `rv-ai-trace ${d}`,
422
- open: _,
423
- onToggle: (e) => {
424
- let t = e.currentTarget.open, n = v.current;
425
- t !== n.expanded && (n.open === void 0 ? g(t) : e.currentTarget.open = n.expanded, n.onOpenChange?.(t));
426
- },
427
- summary: b,
428
- children: /* @__PURE__ */ c("div", {
429
- class: "rv-ai-trace-content",
430
- children: u
431
- })
432
- }) : /* @__PURE__ */ c("div", {
433
- class: `rv-ai-trace rv-ai-trace-line ${d}`,
434
- children: b
435
- });
436
- }
437
- function X(e) {
438
- return /* @__PURE__ */ c(Y, { ...e });
439
- }
440
- function Z({ status: e = "completed", children: t, className: n = "", translations: r }) {
441
- let i = k(r);
442
- return /* @__PURE__ */ c("div", {
443
- class: `rv-ai-task-item ${n}`,
444
- children: [
445
- /* @__PURE__ */ c(J, { status: e }),
446
- /* @__PURE__ */ c("span", {
447
- class: "rv-visually-hidden",
448
- children: [i(q[e]), ": "]
449
- }),
450
- /* @__PURE__ */ c("div", { children: t })
451
- ]
452
- });
453
- }
454
- function Q({ title: e, isStreaming: t = !1, duration: n, children: r, translations: i, ...a }) {
455
- let o = k(i), s = typeof n == "number" && Number.isFinite(n) && n >= 0 ? ` · ${o("{seconds}s", { seconds: Math.round(n) })}` : "";
456
- return /* @__PURE__ */ c(Y, {
457
- ...a,
458
- translations: i,
459
- status: t ? "running" : "completed",
460
- title: `${o(e ?? (t ? "Working…" : "Reasoning summary"))}${s}`,
461
- children: r
462
- });
463
- }
464
- //#endregion
465
- //#region src/ai/request-trail.tsx
466
- function $({ translations: e, items: t, onRemove: n, onClear: r, onEmpty: o, disabled: u, removalsDisabled: p, label: m = "View steps", triggerLabel: h, clearLabel: g = "Clear all", clearDescription: x, removeLabel: S, countLabel: C, changedMessage: w }) {
467
- let T = k(e), E = C ?? ((e) => T(e === 1 ? "{count} applied request" : "{count} applied requests", { count: e })), D = S ?? ((e) => T("Remove request: {label}", { label: e.label })), O = s(null), A = s(null), j = s(null), [M] = i(() => y("rv-ai-steps")), [N, P] = i(!1), F = t.length > 0;
468
- a(() => {
469
- if (F || P(!1), !N || !F || !O.current || !A.current || !j.current) return;
470
- let e = j.current, t = new b(), n = !0;
471
- return t.open({
472
- anchor: A.current,
473
- content: e,
474
- appendTo: O.current,
475
- onClose: () => {
476
- n && P(!1);
477
- }
478
- }), e.focus({ preventScroll: !0 }), () => {
479
- n = !1, t.destroy(), e.hidden = !0;
480
- };
481
- }, [N, F]);
482
- let I = s();
483
- if (a(() => {
484
- let e = I.current;
485
- if (!e) return;
486
- if (u) {
487
- e.sawBusy = !0;
488
- return;
489
- }
490
- if (e.id ? t.some((t) => t.id === e.id) : t.length > 0) {
491
- (e.sawBusy || e.id && p) && (I.current = void 0);
492
- return;
493
- }
494
- I.current = void 0;
495
- let n = e.button.ownerDocument.activeElement;
496
- if (n !== e.button && n !== e.button.ownerDocument.body) return;
497
- let r = O.current?.querySelectorAll(".rv-remove-button");
498
- r?.length && N ? r[Math.min(e.index, r.length - 1)]?.focus() : t.length || o?.();
499
- }, [
500
- t,
501
- o,
502
- u,
503
- p,
504
- N
505
- ]), !F) return null;
506
- let L = 0, R = t.reduce((e, t) => e + (t.count ?? 1), 0);
507
- return /* @__PURE__ */ c("div", {
508
- class: "rv-ai-request-trail",
509
- role: "group",
510
- "aria-label": T(m),
511
- ref: O,
512
- onFocusOut: (e) => {
513
- e.relatedTarget instanceof Node && !e.currentTarget.contains(e.relatedTarget) && P(!1);
514
- },
515
- children: [/* @__PURE__ */ c(_, {
516
- ref: A,
517
- className: "rv-ai-trail-trigger",
518
- variant: "ghost",
519
- size: "compact",
520
- disabled: u,
521
- "aria-haspopup": "dialog",
522
- "aria-expanded": N,
523
- "aria-controls": M,
524
- onClick: () => P((e) => !e),
525
- children: [h ? h(R) : T(R === 1 ? "{count} step" : "{count} steps", { count: R }), /* @__PURE__ */ c(l, {
526
- svg: f,
527
- size: 10
528
- })]
529
- }), /* @__PURE__ */ c("div", {
530
- ref: j,
531
- id: M,
532
- class: "rv-popover rv-ai-trail-popover",
533
- role: "dialog",
534
- "aria-label": T(m),
535
- tabIndex: -1,
536
- hidden: !N,
537
- children: [
538
- /* @__PURE__ */ c("div", {
539
- class: "rv-ai-trail-header",
540
- children: /* @__PURE__ */ c("span", {
541
- class: "rv-ai-trail-label",
542
- children: [T(m), /* @__PURE__ */ c(v, {
543
- count: R,
544
- label: E(R)
545
- })]
546
- })
547
- }),
548
- /* @__PURE__ */ c("ol", {
549
- class: "rv-ai-trail-steps",
550
- "aria-label": E(R),
551
- children: t.map((e, r) => {
552
- let i = L + 1;
553
- return L += e.count ?? 1, /* @__PURE__ */ c("li", {
554
- class: "rv-ai-step",
555
- "data-current": r === t.length - 1 || void 0,
556
- onFocusCapture: (e) => e.currentTarget.scrollIntoView({
557
- block: "nearest",
558
- inline: "nearest"
559
- }),
560
- children: /* @__PURE__ */ c("span", {
561
- class: "rv-ai-step-chip",
562
- children: [
563
- /* @__PURE__ */ c("span", {
564
- class: "rv-ai-step-number",
565
- "aria-hidden": "true",
566
- children: i === L ? i : `${i}–${L}`
567
- }),
568
- /* @__PURE__ */ c("span", {
569
- class: "rv-ai-step-label",
570
- title: e.label,
571
- children: e.label
572
- }),
573
- /* @__PURE__ */ c(d, {
574
- compact: !0,
575
- disabled: u || p,
576
- locale: {
577
- title: D(e),
578
- ariaLabel: D(e)
579
- },
580
- onClick: (t) => {
581
- t.preventDefault(), I.current = {
582
- button: t.currentTarget,
583
- index: r,
584
- id: e.id
585
- }, n(e.id);
586
- }
587
- })
588
- ]
589
- })
590
- }, e.id);
591
- })
592
- }),
593
- w && /* @__PURE__ */ c("p", {
594
- class: "rv-ai-trail-message",
595
- children: T(w)
596
- }),
597
- /* @__PURE__ */ c("div", {
598
- class: "rv-ai-trail-footer",
599
- children: /* @__PURE__ */ c(_, {
600
- variant: "ghost",
601
- size: "compact",
602
- disabled: u,
603
- title: x ? T(x) : void 0,
604
- onClick: (e) => {
605
- e.preventDefault(), I.current = {
606
- button: e.currentTarget,
607
- index: 0
608
- }, r();
609
- },
610
- children: T(g)
611
- })
612
- })
613
- ]
614
- })]
615
- });
616
- }
617
- //#endregion
618
- export { F as _, H as a, T as b, G as c, Z as d, I as f, L as g, P as h, V as i, Q as l, z as m, B as n, W as o, R as p, U as r, K as s, $ as t, X as u, A as v, E as x, O as y };