@revolist/ui 4.0.6-rc → 4.0.9
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.
- package/MIGRATION.md +7 -7
- package/OWNERSHIP.md +33 -33
- package/README.md +65 -410
- package/_button.scss +6 -2
- package/_chunks/{arrow-up-Cw8hW9vp.js → arrow-up-BSYhTAus.js} +1 -1
- package/_chunks/{calculator-CDWOuAcp.js → calculator-BG0Xd_Uw.js} +1 -1
- package/_chunks/{calendar-QWDyYzdo.js → calendar-C4zH4Ppn.js} +7 -7
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/{chart-frame-hcOlnQ1K.js → chart-frame-DzvJooS2.js} +7 -7
- package/_chunks/{check-BwI7iCAm.js → check-BFIC9pge.js} +1 -1
- package/_chunks/{chevron-down-GbplLa6s.js → chevron-down-BkrpxJYD.js} +1 -1
- package/_chunks/chevron-right-DZ79RmYV.js +4 -0
- package/_chunks/{chevron-up-BLuNMPDn.js → chevron-up-Dt846uIR.js} +1 -1
- package/_chunks/{choice-chips-A6WR-WJe.js → choice-chips-D2cJju-g.js} +6 -6
- package/_chunks/{clock-BOhPNlW3.js → clock-DTfr4p2S.js} +1 -1
- package/_chunks/{color-palette-DMJUChWC.js → color-palette-D7AS20M1.js} +5 -5
- package/_chunks/{color-picker-BK4W1nd6.js → color-picker-BanAQVfz.js} +8 -8
- package/_chunks/{component-CMkF17YZ.js → component-B8SvtSaB.js} +54 -55
- package/_chunks/{component-metadata-BKd7U8OW.js → component-metadata-DlVkpW3h.js} +1 -1
- package/_chunks/{configurator-actions-By8WSL2m.js → configurator-actions-CvZf5nYp.js} +11 -11
- package/_chunks/{configurator-field-icon-CmcM_sPs.js → configurator-field-icon-B0S_208W.js} +2 -2
- package/_chunks/{control-mlH7l0Uq.js → control-Dj7IR-i0.js} +4 -4
- package/_chunks/{controller-hRBm_Lfz.js → controller-ChkqiANQ.js} +6 -6
- package/_chunks/{controls-FUU-MUKC.js → controls-BF6WlGT4.js} +140 -105
- package/_chunks/{date-control-Dup_P3w5.js → date-control-BNj2FBF2.js} +8 -8
- package/_chunks/{date-time-9z6pAG5T.js → date-time-Ucx1ep76.js} +25 -25
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-DQSK6G-4.js} +2 -2
- package/_chunks/{dialog.parts-Bi7YbXqS.js → dialog.parts-BqkmnhIL.js} +7 -7
- package/_chunks/{duration-D7oRjsmP.js → duration-BIESsyLI.js} +9 -9
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-BXIUX0As.js} +3 -3
- package/_chunks/{editor-popup-ByU7qiub.js → editor-popup-BTmjGg2_.js} +5 -5
- package/_chunks/field-configurator-BWZnm3gE.js +288 -0
- package/_chunks/field-context-0oUi-w-G.js +5 -0
- package/_chunks/{framework-mount-Bk4O_T7T.js → framework-mount-DQ4opSL0.js} +4 -4
- package/_chunks/{hooks.module-CG3gN83z.js → hooks.module-CXpO2xq6.js} +2 -2
- package/_chunks/{icon-toolbar-DSjOdwM7.js → icon-toolbar-C4J_Wqph.js} +7 -7
- package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
- package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
- package/_chunks/{jsxRuntime.module-F6UFnpT-.js → jsxRuntime.module-ksX_VSbv.js} +2 -2
- package/_chunks/{magnifying-glass-CvrTDSkB.js → magnifying-glass-BFZrFs8M.js} +1 -1
- package/_chunks/{minus-BOAR3A1C.js → minus-DE8NPK_D.js} +1 -1
- package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
- package/_chunks/mount-DTCXtKfT.js +267 -0
- package/_chunks/{native-Blr3byjO.js → native-RudS9C_q.js} +3 -3
- package/_chunks/{native-control-pFMuHf3G.js → native-control-xc_B4vfn.js} +146 -141
- package/_chunks/{number-input-DqXV6vgP.js → number-input-C_TPzAJq.js} +6 -6
- package/_chunks/{picker-gEGTu1Ki.js → picker-0h5TwXGT.js} +8 -8
- package/_chunks/{plus-CbGRkIGl.js → plus-BaXticu7.js} +1 -1
- package/_chunks/{popup-C35Isk7p.js → popup-CISbXDnE.js} +6 -6
- package/_chunks/{preact.module-BBM36DnO.js → preact.module-DzTStiZX.js} +1 -1
- package/_chunks/{rating-choice-DbxdUJr-.js → rating-choice-FhWNdsiC.js} +4 -4
- package/_chunks/{render-m5eMMwFR.js → render-C6PFWlqh.js} +4 -4
- package/_chunks/{reorder-list-B0_13Sja.js → reorder-list-CR1DO4EG.js} +5 -5
- package/_chunks/{request-trail-CCSK6TJA.js → request-trail-ay92DQpo.js} +155 -146
- package/_chunks/{rich-text-5rnc8lpI.js → rich-text-ByjXFv1S.js} +15 -15
- package/_chunks/{rotate-left-BF6G883o.js → rotate-left-CTHmcGBP.js} +1 -1
- package/_chunks/{rotate-right-Iha5ScJ1.js → rotate-right-BIfKgVun.js} +1 -1
- package/_chunks/selection-list-tooltips-DqqLeO_m.js +42 -0
- package/_chunks/{title-tooltip-Cw6LOZhb.js → title-tooltip-DKiWhsL7.js} +3 -3
- package/_chunks/{tooltip-D4xkio5G.js → tooltip-B5ziciEP.js} +4 -4
- package/_chunks/{tooltip-owner-DjdvqKzz.js → tooltip-owner-BYho-vJl.js} +1 -1
- package/_chunks/{tooltip-session-B6X6x8G_.js → tooltip-session-D74h-uqu.js} +3 -3
- package/_chunks/{tooltip-text-BXsUEmBH.js → tooltip-text-CH_c2J-J.js} +3 -3
- package/_chunks/{top-layer-popup-CNSDdfJV.js → top-layer-popup-BHajfliG.js} +4 -4
- package/_chunks/{xmark-DD_PBvZI.js → xmark-DQRQfXZI.js} +1 -1
- package/_dialog.scss +57 -22
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_variables.scss +2 -1
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +2 -2
- package/ai/_chat.scss +7 -0
- package/ai/_style.scss +27 -20
- package/ai/components.d.ts +3 -1
- package/ai/index.js +2 -2
- package/ai/mount.d.ts +15 -7
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/index.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -7
- package/assignee/assignee.scss +24 -6
- package/assignee/index.js +8 -8
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +4 -4
- package/badge.d.ts +1 -1
- package/badge.js +1 -1
- package/badge.view.d.ts +1 -1
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.js +3 -3
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.js +3 -3
- package/buttons/svg-button.js +4 -4
- package/calendar/_calendar.scss +19 -23
- package/calendar/calendar.js +1 -1
- package/calendar/day.js +3 -3
- package/calendar/header.js +3 -4
- package/calendar/index.js +3 -3
- package/calendar/model.js +1 -1
- package/calendar/month-grid.js +3 -3
- package/calendar/translations.js +1 -1
- package/calendar/year-grid.js +3 -3
- package/cell-input.js +1 -1
- package/cell-input.scss +3 -7
- package/cell-visuals/badge.style.scss +6 -3
- package/cell-visuals/bar-chart.style.scss +2 -1
- package/cell-visuals/column-type.style.css +12 -0
- package/cell-visuals/index.js +1 -1
- package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
- package/cell-visuals/progress-line.style.scss +1 -4
- package/cell-visuals/sparkline.style.scss +2 -1
- package/cell-visuals/timeline.style.css +4 -2
- package/checkbox/checkbox.scss +5 -2
- package/checkbox/index.js +2 -2
- package/choice-chips/index.js +1 -1
- package/color-palette/built-in-palettes.js +1 -1
- package/color-palette/chart-palettes.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.constants.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/color-palette/color-picker.style.scss +23 -10
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +2 -2
- package/color-palette/gantt-palettes.js +1 -1
- package/color-palette/palette.js +1 -1
- package/color-palette/pivot-palettes.js +1 -1
- package/color-palette/platform-palettes.js +1 -1
- package/color-palette/pro-palettes.js +1 -1
- package/color-palette/scheduler-palettes.js +1 -1
- package/configurator-actions.d.ts +6 -6
- package/configurator-actions.js +1 -1
- package/configurator-aggregation-list.d.ts +1 -1
- package/configurator-aggregation-list.js +22 -20
- package/configurator-drop-zone.d.ts +2 -1
- package/configurator-drop-zone.js +36 -34
- package/configurator-field-icon.js +1 -1
- package/configurator-focus.js +2 -2
- package/configurator-sections.d.ts +3 -3
- package/configurator-sections.js +4 -4
- package/control-attributes.js +1 -1
- package/control-presentation.js +4 -4
- package/controls.d.ts +11 -0
- package/controls.js +4 -4
- package/core/anchored-popover.js +1 -1
- package/core/control-id.js +1 -1
- package/core/editor-popup.js +1 -1
- package/core/motion.js +1 -1
- package/{_chunks/popover-controller-D-AvKQ7B.js → core/popover-controller.js} +8 -8
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/tooltip.d.ts +1 -1
- package/core/top-layer-popup.d.ts +1 -1
- package/core/top-layer-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +1 -0
- package/date-time/index.js +1 -1
- package/date-time/style.scss +192 -46
- package/date-time/time-selection.d.ts +1 -1
- package/dialog/dialog.dom.js +4 -4
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +2 -2
- package/distribution-chart/_distribution-chart.scss +106 -28
- package/distribution-chart/area-chart.js +4 -4
- package/distribution-chart/bar-chart.js +3 -3
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.js +2 -2
- package/distribution-chart/line-chart.js +3 -3
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.service.js +2 -2
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/editor-dropdown.style.scss +14 -9
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.js +5 -5
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +4 -4
- package/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +40 -35
- package/editor-layout/style.scss +82 -18
- package/favicon.svg +9 -0
- package/field-configurator.d.ts +14 -3
- package/field-configurator.js +1 -1
- package/field-reorder.hook.js +2 -2
- package/field-reorder.js +1 -1
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +35 -10
- package/filter/filters/slider/component.js +1 -1
- package/filter/filters/slider/control.js +1 -1
- package/filter/filters/slider/inputs.js +1 -1
- package/filter/filters/slider/logic.js +1 -1
- package/filter/filters/slider/preact.js +2 -2
- package/filter/filters/slider/runtime.js +3 -3
- package/filter/filters/slider/single.js +3 -3
- package/filter-badge.js +5 -5
- package/filter-controls.js +4 -4
- package/form-controls/index.js +4 -4
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +5 -5
- package/formatting/index.js +11 -11
- package/formatting/styles.scss +13 -11
- package/framework.js +76 -77
- package/history-controls.js +4 -4
- package/html-controls.js +1 -1
- package/icon-toolbar.d.ts +1 -1
- package/icon-toolbar.js +1 -1
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +2 -2
- package/legend.d.ts +1 -1
- package/legend.js +2 -2
- package/masked-input/index.js +6 -6
- package/native-control.js +1 -1
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +18 -18
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +53 -1
- package/pagination.js +2 -2
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +4 -4
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +203 -42
- package/preact-mount.js +2 -2
- package/preact.d.ts +5 -4
- package/preact.js +105 -67
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/progress/bar.js +1 -1
- package/progress/circular.js +1 -1
- package/progress/range.js +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.js +1 -1
- package/react.d.ts +2 -2
- package/react.js +30 -31
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-avatar.js +3 -3
- package/resource-picker/resource-picker-option.js +2 -2
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.js +76 -74
- package/resource-picker/resource-picker.scss +62 -34
- package/resource-picker/resource-picker.utils.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/style.scss +203 -49
- package/rich-text/toolbar.d.ts +1 -1
- package/robots.txt +4 -0
- package/search-input/index.js +4 -4
- package/segmented-switch/index.js +2 -2
- package/select.js +1 -1
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/badge.js +2 -2
- package/status-feedback/exit-snapshot.js +2 -2
- package/status-feedback/header.js +5 -5
- package/status-feedback/icons.js +1 -1
- package/status-feedback/index.js +1 -1
- package/status-feedback/item.js +2 -2
- package/status-feedback/motion.js +1 -1
- package/status-feedback/placement.js +1 -1
- package/status-feedback/popover.js +2 -2
- package/status-feedback/render.js +1 -1
- package/status-feedback/status-feedback.scss +124 -35
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +61 -14
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +399 -79
- package/styles/_control.scss +30 -8
- package/styles/_disclosure.scss +15 -5
- package/styles/_editor-counter.scss +16 -6
- package/styles/_editor-slider.scss +8 -2
- package/styles/_field-configurator.scss +192 -41
- package/styles/_fields-grid.scss +16 -4
- package/styles/_filter-controls.scss +10 -2
- package/styles/_icon-action.scss +48 -15
- package/styles/_loading.scss +12 -3
- package/styles/_motion.scss +32 -9
- package/styles/_primitives.scss +346 -96
- package/styles/_theme.scss +130 -86
- package/styles/_thresholds.scss +28 -25
- package/styles/_time-grid.scss +8 -3
- package/styles/_tokens.scss +6 -1
- package/styles/color-roles.js +1 -1
- package/styles/configurator-actions.scss +126 -26
- package/styles/pagination.css +114 -30
- package/styles/rating.css +8 -3
- package/styles.css +1 -1
- package/styles.scss +1 -3
- package/surfaces.d.ts +4 -2
- package/surfaces.js +8 -8
- package/svelte/UiComponent.svelte +44 -11
- package/svelte-control.js +1 -1
- package/svelte.d.ts +1 -1
- package/svelte.js +5 -5
- package/switch/index.js +3 -3
- package/time-grid.js +5 -5
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/index.js +5 -5
- package/timeline-track/model.js +1 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue-badge.js +1 -1
- package/vue-control.js +1 -1
- package/vue-segmented-switch.js +1 -1
- package/vue.d.ts +3 -2
- package/vue.js +45 -46
- package/_chunks/badge.view-D30pMUfi.js +0 -14
- package/_chunks/chevron-left-D0nc4Z5S.js +0 -4
- package/_chunks/chevron-right-sxHQMSkq.js +0 -4
- package/_chunks/field-configurator-BCINdXpU.js +0 -223
- package/_chunks/field-context-D57PnBbH.js +0 -5
- package/_chunks/mount-Cw2zk58T.js +0 -266
- package/_shared/data-query/binding.d.ts +0 -30
- package/_shared/data-query/blocks.d.ts +0 -30
- package/_shared/data-query/commands.d.ts +0 -47
- package/_shared/data-query/contracts.d.ts +0 -106
- package/_shared/data-query/cursor-reader.d.ts +0 -25
- package/_shared/data-query/direct-binding.d.ts +0 -3
- package/_shared/data-query/index.d.ts +0 -23
- package/_shared/data-query/infinite-binding.d.ts +0 -18
- package/_shared/data-query/keys.d.ts +0 -9
- package/_shared/data-query/limiter.d.ts +0 -12
- package/_shared/data-query/load-options.d.ts +0 -25
- package/_shared/data-query/materialize.d.ts +0 -2
- package/_shared/data-query/policy.d.ts +0 -14
- package/_shared/data-query/provider-queries.d.ts +0 -22
- package/_shared/data-query/reader.d.ts +0 -23
- package/_shared/data-query/remote-load.d.ts +0 -7
- package/_shared/data-query/source.d.ts +0 -40
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { i as e, n as t, s as n } from "./preact.module-
|
|
2
|
-
import { c as r, i, r as a, s as o, t as s } from "./hooks.module-
|
|
3
|
-
import { t as c } from "./jsxRuntime.module-
|
|
1
|
+
import { i as e, n as t, s as n } from "./preact.module-DzTStiZX.js";
|
|
2
|
+
import { c as r, i, r as a, s as o, t as s } from "./hooks.module-CXpO2xq6.js";
|
|
3
|
+
import { t as c } from "./jsxRuntime.module-ksX_VSbv.js";
|
|
4
4
|
import { createControlId as l } from "../core/control-id.js";
|
|
5
|
-
import {
|
|
5
|
+
import { PopoverController as u } from "../core/popover-controller.js";
|
|
6
6
|
import { SvgIcon as d } from "../icons/icon.js";
|
|
7
|
-
import { l as f } from "./native-control-
|
|
7
|
+
import { l as f } from "./native-control-xc_B4vfn.js";
|
|
8
8
|
import { RemoveButton as p } from "../buttons/remove-button.js";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
//#region
|
|
15
|
-
var
|
|
16
|
-
function
|
|
9
|
+
import "./chevron-down-BkrpxJYD.js";
|
|
10
|
+
import { D as m, M as h, c as g, p as _, t as v } from "./controls-BF6WlGT4.js";
|
|
11
|
+
import { t as y } from "./tooltip-text-CH_c2J-J.js";
|
|
12
|
+
import { t as b } from "./clock-DTfr4p2S.js";
|
|
13
|
+
import { t as x } from "./arrow-up-BSYhTAus.js";
|
|
14
|
+
//#region package/ai/translations.ts
|
|
15
|
+
var S = /* @__PURE__ */ "AI chat,No results,Clear chat,Restart conversation,New conversation,Request history,Clear chart,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,Proposed changes,Change,Current,Proposed,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,Search requests,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(",");
|
|
16
|
+
function C(e, t = {}, n = {}) {
|
|
17
17
|
return (t[e] ?? e).replace(/\{(\w+)\}/g, (e, t) => Object.hasOwn(n, t) ? String(n[t]) : e);
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
return /* @__PURE__ */ c(
|
|
20
|
+
//#region package/ai/translation-context.tsx
|
|
21
|
+
var w = n({});
|
|
22
|
+
function T({ translations: e, children: t }) {
|
|
23
|
+
return /* @__PURE__ */ c(w.Provider, {
|
|
24
24
|
value: e,
|
|
25
25
|
children: t
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
let t = o(
|
|
30
|
-
return (e, t) =>
|
|
28
|
+
function E(e) {
|
|
29
|
+
let t = o(w), n = e ?? t;
|
|
30
|
+
return (e, t) => C(e, n, t);
|
|
31
31
|
}
|
|
32
32
|
//#endregion
|
|
33
|
-
//#region
|
|
34
|
-
function
|
|
33
|
+
//#region package/ai/results/types.ts
|
|
34
|
+
function D(e) {
|
|
35
35
|
return e == null ? "—" : typeof e == "number" ? Number.isFinite(e) ? e.toLocaleString() : "—" : String(e);
|
|
36
36
|
}
|
|
37
37
|
//#endregion
|
|
38
|
-
//#region
|
|
39
|
-
function
|
|
40
|
-
let t =
|
|
38
|
+
//#region package/ai/results/table.tsx
|
|
39
|
+
function O({ result: e }) {
|
|
40
|
+
let t = E();
|
|
41
41
|
return /* @__PURE__ */ c("section", {
|
|
42
42
|
class: "rv-ai-result-content",
|
|
43
43
|
"aria-label": e.title,
|
|
@@ -57,7 +57,7 @@ function A({ result: e }) {
|
|
|
57
57
|
}, t)) }) }),
|
|
58
58
|
/* @__PURE__ */ c("tbody", { children: e.rows.map((t, n) => /* @__PURE__ */ c("tr", { children: e.columns.map((e, n) => /* @__PURE__ */ c("td", {
|
|
59
59
|
class: e.numeric ? "rv-ai-result-number" : void 0,
|
|
60
|
-
children:
|
|
60
|
+
children: D(t[n])
|
|
61
61
|
}, n)) }, n)) })
|
|
62
62
|
]
|
|
63
63
|
}), !e.rows.length && /* @__PURE__ */ c("p", {
|
|
@@ -68,8 +68,8 @@ function A({ result: e }) {
|
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
//#endregion
|
|
71
|
-
//#region
|
|
72
|
-
function
|
|
71
|
+
//#region package/ai/results/metrics.tsx
|
|
72
|
+
function k({ result: e }) {
|
|
73
73
|
return /* @__PURE__ */ c("section", {
|
|
74
74
|
class: "rv-ai-result-content",
|
|
75
75
|
"aria-label": e.title,
|
|
@@ -81,14 +81,14 @@ function j({ result: e }) {
|
|
|
81
81
|
}),
|
|
82
82
|
/* @__PURE__ */ c("dl", {
|
|
83
83
|
class: "rv-ai-result-metrics",
|
|
84
|
-
children: e.items.map((e, t) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("dt", { children: e.label }), /* @__PURE__ */ c("dd", { children:
|
|
84
|
+
children: e.items.map((e, t) => /* @__PURE__ */ c("div", { children: [/* @__PURE__ */ c("dt", { children: e.label }), /* @__PURE__ */ c("dd", { children: D(e.value) })] }, t))
|
|
85
85
|
})
|
|
86
86
|
]
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
//#endregion
|
|
90
|
-
//#region
|
|
91
|
-
function
|
|
90
|
+
//#region package/ai/results/text.tsx
|
|
91
|
+
function A({ result: e }) {
|
|
92
92
|
return /* @__PURE__ */ c("section", {
|
|
93
93
|
class: "rv-ai-result-content",
|
|
94
94
|
"aria-label": e.title,
|
|
@@ -106,26 +106,26 @@ function M({ result: e }) {
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
//#endregion
|
|
109
|
-
//#region
|
|
110
|
-
function
|
|
109
|
+
//#region package/ai/results/index.tsx
|
|
110
|
+
function j({ result: e, renderTable: t }) {
|
|
111
111
|
switch (e.kind) {
|
|
112
|
-
case "table": return t ? t(e) : /* @__PURE__ */ c(
|
|
113
|
-
case "metrics": return /* @__PURE__ */ c(
|
|
114
|
-
case "text": return /* @__PURE__ */ c(
|
|
112
|
+
case "table": return t ? t(e) : /* @__PURE__ */ c(O, { result: e });
|
|
113
|
+
case "metrics": return /* @__PURE__ */ c(k, { result: e });
|
|
114
|
+
case "text": return /* @__PURE__ */ c(A, { result: e });
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
//#endregion
|
|
118
|
-
//#region
|
|
119
|
-
var
|
|
118
|
+
//#region node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/circle-check.svg?raw
|
|
119
|
+
var M = "<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>", N = "<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>", P = "<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>";
|
|
120
120
|
//#endregion
|
|
121
|
-
//#region
|
|
122
|
-
function
|
|
121
|
+
//#region package/ai/prompt-history.ts
|
|
122
|
+
function F(e) {
|
|
123
123
|
if (!Array.isArray(e)) return [];
|
|
124
124
|
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 = [];
|
|
125
125
|
for (let e = t.length - 1; e >= 0; e--) new TextEncoder().encode(JSON.stringify([t[e], ...n])).byteLength <= 8192 && n.unshift(t[e]);
|
|
126
126
|
return n;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var I = class {
|
|
129
129
|
state;
|
|
130
130
|
reset() {
|
|
131
131
|
this.state = void 0;
|
|
@@ -146,17 +146,17 @@ var R = class {
|
|
|
146
146
|
}
|
|
147
147
|
return this.state.index = Math.max(0, i), this.state.selected = n[this.state.index], this.state.selected;
|
|
148
148
|
}
|
|
149
|
-
},
|
|
149
|
+
}, L = "<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>";
|
|
150
150
|
//#endregion
|
|
151
|
-
//#region
|
|
152
|
-
function
|
|
153
|
-
let
|
|
151
|
+
//#region package/ai/components.tsx
|
|
152
|
+
function R({ translations: e, value: t, onValueChange: n, onSubmit: r, onStop: i, busy: o = !1, disabled: u = !1, label: d = "Ask AI to change this view", placeholder: f = "Filter or sort your data…", submitLabel: p = "Send", stopLabel: m = "Stop", promptHistory: g, hint: v = "", actions: y, footer: b, textareaProps: S }) {
|
|
153
|
+
let C = E(e), w = s(l("ai-prompt")), T = s(!1), D = s(new I()), O = s();
|
|
154
154
|
a(() => {
|
|
155
|
-
if (!
|
|
156
|
-
let { element: e, position: t } =
|
|
157
|
-
e.setSelectionRange(t, t),
|
|
155
|
+
if (!O.current) return;
|
|
156
|
+
let { element: e, position: t } = O.current;
|
|
157
|
+
e.setSelectionRange(t, t), O.current = void 0;
|
|
158
158
|
});
|
|
159
|
-
let k = `${w.current}-hint`, A = !!
|
|
159
|
+
let k = `${w.current}-hint`, A = !!v && !t.length, j = o && !!i, M = () => {
|
|
160
160
|
!u && !o && t.trim() && r(t.trim());
|
|
161
161
|
};
|
|
162
162
|
return /* @__PURE__ */ c("form", {
|
|
@@ -168,20 +168,20 @@ function B({ translations: e, value: t, onValueChange: n, onSubmit: r, onStop: i
|
|
|
168
168
|
children: [/* @__PURE__ */ c("label", {
|
|
169
169
|
for: w.current,
|
|
170
170
|
class: "rv-ai-prompt-label rv-visually-hidden",
|
|
171
|
-
children:
|
|
171
|
+
children: C(d)
|
|
172
172
|
}), /* @__PURE__ */ c("div", {
|
|
173
173
|
class: "rv-ai-prompt-composer",
|
|
174
174
|
children: [
|
|
175
|
-
/* @__PURE__ */ c(
|
|
175
|
+
/* @__PURE__ */ c(h, {
|
|
176
176
|
rows: 1,
|
|
177
|
-
...
|
|
177
|
+
...S,
|
|
178
178
|
id: w.current,
|
|
179
179
|
"aria-describedby": A ? k : void 0,
|
|
180
180
|
value: t,
|
|
181
181
|
onValueChange: (e) => {
|
|
182
|
-
|
|
182
|
+
D.current.reset(), O.current = void 0, n(e);
|
|
183
183
|
},
|
|
184
|
-
placeholder:
|
|
184
|
+
placeholder: C(f),
|
|
185
185
|
disabled: u || o,
|
|
186
186
|
maxLength: 4e3,
|
|
187
187
|
onCompositionStart: () => {
|
|
@@ -192,11 +192,11 @@ function B({ translations: e, value: t, onValueChange: n, onSubmit: r, onStop: i
|
|
|
192
192
|
},
|
|
193
193
|
onKeyDown: (e) => {
|
|
194
194
|
let r = e.currentTarget;
|
|
195
|
-
if (
|
|
196
|
-
let i =
|
|
195
|
+
if (g && !o && !u && !T.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"))) {
|
|
196
|
+
let i = D.current.move(t, e.key === "ArrowUp" ? "up" : "down", F(g));
|
|
197
197
|
if (i !== void 0) {
|
|
198
198
|
if (e.preventDefault(), i === t) return;
|
|
199
|
-
|
|
199
|
+
O.current = {
|
|
200
200
|
element: r,
|
|
201
201
|
position: i.length
|
|
202
202
|
}, n(i);
|
|
@@ -214,16 +214,16 @@ function B({ translations: e, value: t, onValueChange: n, onSubmit: r, onStop: i
|
|
|
214
214
|
class: "rv-ai-prompt-toolbar",
|
|
215
215
|
children: [/* @__PURE__ */ c("div", {
|
|
216
216
|
class: "rv-ai-prompt-tools",
|
|
217
|
-
children: [
|
|
217
|
+
children: [y, A && /* @__PURE__ */ c("span", {
|
|
218
218
|
id: k,
|
|
219
219
|
class: "rv-ai-prompt-hint",
|
|
220
|
-
children:
|
|
220
|
+
children: C(v)
|
|
221
221
|
})]
|
|
222
|
-
}), /* @__PURE__ */ c(
|
|
222
|
+
}), /* @__PURE__ */ c(_, {
|
|
223
223
|
className: "rv-ai-prompt-submit",
|
|
224
224
|
type: j ? "button" : "submit",
|
|
225
|
-
label:
|
|
226
|
-
icon: j ?
|
|
225
|
+
label: C(j ? m : p),
|
|
226
|
+
icon: j ? L : x,
|
|
227
227
|
onClick: j ? (e) => {
|
|
228
228
|
e.preventDefault(), i?.();
|
|
229
229
|
} : void 0,
|
|
@@ -237,44 +237,51 @@ function B({ translations: e, value: t, onValueChange: n, onSubmit: r, onStop: i
|
|
|
237
237
|
})]
|
|
238
238
|
});
|
|
239
239
|
}
|
|
240
|
-
function
|
|
241
|
-
let
|
|
240
|
+
function z({ translations: e, items: t, onSelect: n, disabled: r, label: i = "Suggested requests", maxVisible: a = 2 }) {
|
|
241
|
+
let o = E(e);
|
|
242
242
|
if (!t.length) return null;
|
|
243
|
-
let
|
|
243
|
+
let s = Number.isFinite(a) ? Math.max(0, Math.floor(a)) : 2, l = t.map((e) => typeof e == "string" ? {
|
|
244
244
|
label: e,
|
|
245
245
|
prompt: e
|
|
246
246
|
} : e);
|
|
247
247
|
return /* @__PURE__ */ c("div", {
|
|
248
248
|
class: "rv-ai-suggestions",
|
|
249
249
|
role: "group",
|
|
250
|
-
"aria-label":
|
|
251
|
-
children: [
|
|
250
|
+
"aria-label": o(i),
|
|
251
|
+
children: [l.slice(0, s).map((e, t) => /* @__PURE__ */ c(v, {
|
|
252
252
|
className: "rv-ai-suggestion",
|
|
253
253
|
size: "compact",
|
|
254
254
|
disabled: r,
|
|
255
255
|
onClick: () => n(e.prompt),
|
|
256
256
|
children: e.label
|
|
257
|
-
}, `${t}:${e.prompt}`)),
|
|
257
|
+
}, `${t}:${e.prompt}`)), l.length > s && /* @__PURE__ */ c(f, {
|
|
258
258
|
className: "rv-ai-examples",
|
|
259
|
-
source:
|
|
259
|
+
source: l.slice(s).map((e) => ({
|
|
260
260
|
value: e.prompt,
|
|
261
261
|
label: e.label
|
|
262
262
|
})),
|
|
263
263
|
disabled: r,
|
|
264
|
-
placeholder:
|
|
264
|
+
placeholder: o("More"),
|
|
265
265
|
renderSelectedValue: () => /* @__PURE__ */ c(d, {
|
|
266
266
|
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>",
|
|
267
267
|
size: 14
|
|
268
268
|
}),
|
|
269
|
-
config: {
|
|
269
|
+
config: {
|
|
270
|
+
ariaLabel: o("More"),
|
|
271
|
+
search: !0,
|
|
272
|
+
searchPlaceholder: o("Search requests"),
|
|
273
|
+
searchAriaLabel: o("Search requests"),
|
|
274
|
+
popupClassName: "rv-ai-examples-menu",
|
|
275
|
+
maxHeight: 480
|
|
276
|
+
},
|
|
270
277
|
onChange: (e) => {
|
|
271
278
|
typeof e == "string" && n(e);
|
|
272
279
|
}
|
|
273
280
|
})]
|
|
274
281
|
});
|
|
275
282
|
}
|
|
276
|
-
function
|
|
277
|
-
let r =
|
|
283
|
+
function B({ translations: e, phase: t, message: n }) {
|
|
284
|
+
let r = E(e);
|
|
278
285
|
return /* @__PURE__ */ c("div", {
|
|
279
286
|
class: "rv-ai-status",
|
|
280
287
|
"data-state": t,
|
|
@@ -283,12 +290,12 @@ function H({ translations: e, phase: t, message: n }) {
|
|
|
283
290
|
"aria-atomic": "true",
|
|
284
291
|
children: [(t === "understanding" || t === "applying") && /* @__PURE__ */ c("span", {
|
|
285
292
|
"aria-hidden": "true",
|
|
286
|
-
children: /* @__PURE__ */ c(
|
|
293
|
+
children: /* @__PURE__ */ c(m, { label: "" })
|
|
287
294
|
}), /* @__PURE__ */ c("span", { children: r(n) })]
|
|
288
295
|
});
|
|
289
296
|
}
|
|
290
|
-
function
|
|
291
|
-
let o =
|
|
297
|
+
function V({ translations: e, summary: t, matchedRows: n, countLabel: r, actions: i, children: a }) {
|
|
298
|
+
let o = E(e);
|
|
292
299
|
return /* @__PURE__ */ c("div", {
|
|
293
300
|
class: "rv-ai-result",
|
|
294
301
|
role: "status",
|
|
@@ -310,12 +317,12 @@ function U({ translations: e, summary: t, matchedRows: n, countLabel: r, actions
|
|
|
310
317
|
]
|
|
311
318
|
});
|
|
312
319
|
}
|
|
313
|
-
function
|
|
314
|
-
return /* @__PURE__ */ c(
|
|
320
|
+
function H({ layout: e = "flow", translations: t = {}, label: n = "AI view assistant", children: r, footer: i, busy: a }) {
|
|
321
|
+
return /* @__PURE__ */ c(T, {
|
|
315
322
|
translations: t,
|
|
316
323
|
children: /* @__PURE__ */ c("section", {
|
|
317
324
|
class: `rv-ai-assistant${e === "fill" ? " rv-ai-assistant--fill" : ""}`,
|
|
318
|
-
"aria-label": ((e) =>
|
|
325
|
+
"aria-label": ((e) => C(e, t))(n),
|
|
319
326
|
"aria-busy": a || void 0,
|
|
320
327
|
onKeyDown: (e) => e.stopPropagation(),
|
|
321
328
|
onKeyUp: (e) => e.stopPropagation(),
|
|
@@ -326,8 +333,8 @@ function W({ layout: e = "flow", translations: t = {}, label: n = "AI view assis
|
|
|
326
333
|
})
|
|
327
334
|
});
|
|
328
335
|
}
|
|
329
|
-
function
|
|
330
|
-
let f =
|
|
336
|
+
function U({ translations: t, summary: n, details: i, changes: a, notice: o, disabled: l, onApply: u, onCancel: d }) {
|
|
337
|
+
let f = E(t), p = s(null);
|
|
331
338
|
return r(() => {
|
|
332
339
|
p.current?.focus();
|
|
333
340
|
}, []), /* @__PURE__ */ c("section", {
|
|
@@ -336,14 +343,14 @@ function G({ translations: t, summary: n, details: i, changes: a, notice: o, dis
|
|
|
336
343
|
onKeyDown: (e) => {
|
|
337
344
|
e.key === "Escape" && !l && (e.preventDefault(), d());
|
|
338
345
|
},
|
|
339
|
-
children: /* @__PURE__ */ c(
|
|
346
|
+
children: /* @__PURE__ */ c(V, {
|
|
340
347
|
summary: n,
|
|
341
|
-
actions: /* @__PURE__ */ c(e, { children: [/* @__PURE__ */ c(
|
|
348
|
+
actions: /* @__PURE__ */ c(e, { children: [/* @__PURE__ */ c(v, {
|
|
342
349
|
ref: p,
|
|
343
350
|
disabled: l,
|
|
344
351
|
onClick: u,
|
|
345
352
|
children: f("Apply changes")
|
|
346
|
-
}), /* @__PURE__ */ c(
|
|
353
|
+
}), /* @__PURE__ */ c(v, {
|
|
347
354
|
disabled: l,
|
|
348
355
|
variant: "ghost",
|
|
349
356
|
onClick: d,
|
|
@@ -389,9 +396,9 @@ function G({ translations: t, summary: n, details: i, changes: a, notice: o, dis
|
|
|
389
396
|
});
|
|
390
397
|
}
|
|
391
398
|
//#endregion
|
|
392
|
-
//#region
|
|
393
|
-
function
|
|
394
|
-
let a =
|
|
399
|
+
//#region package/ai/chat.tsx
|
|
400
|
+
function W({ children: e, className: t = "", label: n = "AI chat", style: r, translations: i }) {
|
|
401
|
+
let a = E(i);
|
|
395
402
|
return /* @__PURE__ */ c("section", {
|
|
396
403
|
class: `rv-ai-chat ${t}`,
|
|
397
404
|
"aria-label": a(n),
|
|
@@ -399,20 +406,20 @@ function K({ children: e, className: t = "", label: n = "AI chat", style: r, tra
|
|
|
399
406
|
children: e
|
|
400
407
|
});
|
|
401
408
|
}
|
|
402
|
-
function
|
|
403
|
-
let f =
|
|
409
|
+
function G({ children: e, className: t = "", autoScroll: n = !0, busy: o = !1, label: l = "Conversation messages", jumpLabel: u = "Jump to latest", translations: d }) {
|
|
410
|
+
let f = E(d), p = s(null), m = s(null), h = s(n), [g, v] = i(!1), y = () => {
|
|
404
411
|
let e = p.current;
|
|
405
412
|
if (!e) return;
|
|
406
413
|
let t = e.scrollHeight - e.clientHeight - e.scrollTop <= 40;
|
|
407
|
-
h.current = t,
|
|
414
|
+
h.current = t, v(!t);
|
|
408
415
|
}, b = () => {
|
|
409
416
|
let e = p.current;
|
|
410
|
-
e && (e.scrollTop = e.scrollHeight, h.current = !0,
|
|
417
|
+
e && (e.scrollTop = e.scrollHeight, h.current = !0, v(!1));
|
|
411
418
|
}, x = () => {
|
|
412
419
|
if (n && h.current) b();
|
|
413
420
|
else {
|
|
414
421
|
let e = p.current;
|
|
415
|
-
e &&
|
|
422
|
+
e && v(e.scrollHeight - e.clientHeight - e.scrollTop > 40);
|
|
416
423
|
}
|
|
417
424
|
};
|
|
418
425
|
return a(x, [e, n]), r(() => {
|
|
@@ -430,13 +437,13 @@ function q({ children: e, className: t = "", autoScroll: n = !0, busy: o = !1, l
|
|
|
430
437
|
"aria-relevant": "additions text",
|
|
431
438
|
"aria-busy": o || void 0,
|
|
432
439
|
tabIndex: 0,
|
|
433
|
-
onScroll:
|
|
440
|
+
onScroll: y,
|
|
434
441
|
children: /* @__PURE__ */ c("div", {
|
|
435
442
|
ref: m,
|
|
436
443
|
class: "rv-ai-chat-content",
|
|
437
444
|
children: e
|
|
438
445
|
})
|
|
439
|
-
}), g && /* @__PURE__ */ c(
|
|
446
|
+
}), g && /* @__PURE__ */ c(_, {
|
|
440
447
|
className: "rv-ai-chat-jump",
|
|
441
448
|
label: f(u),
|
|
442
449
|
icon: "<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=\"M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z\"/></svg>",
|
|
@@ -446,8 +453,8 @@ function q({ children: e, className: t = "", autoScroll: n = !0, busy: o = !1, l
|
|
|
446
453
|
})]
|
|
447
454
|
});
|
|
448
455
|
}
|
|
449
|
-
function
|
|
450
|
-
let l =
|
|
456
|
+
function K({ title: e = "Start a conversation", description: t = "Ask a question to get started.", children: n, className: r = "", translations: i, renderContent: o }) {
|
|
457
|
+
let l = E(i), u = s(null);
|
|
451
458
|
return a(() => {
|
|
452
459
|
let e = u.current;
|
|
453
460
|
if (!e || !o) return;
|
|
@@ -468,18 +475,18 @@ function J({ title: e = "Start a conversation", description: t = "Ask a question
|
|
|
468
475
|
]
|
|
469
476
|
});
|
|
470
477
|
}
|
|
471
|
-
function
|
|
478
|
+
function q(e) {
|
|
472
479
|
return /* @__PURE__ */ c("div", {
|
|
473
480
|
class: "rv-ai-chat-composer",
|
|
474
|
-
children: /* @__PURE__ */ c(
|
|
481
|
+
children: /* @__PURE__ */ c(R, {
|
|
475
482
|
label: "Message",
|
|
476
483
|
placeholder: "Type a message…",
|
|
477
484
|
...e
|
|
478
485
|
})
|
|
479
486
|
});
|
|
480
487
|
}
|
|
481
|
-
function
|
|
482
|
-
let o =
|
|
488
|
+
function J({ from: e, label: t, isStreaming: n = !1, children: r, className: i = "", translations: a }) {
|
|
489
|
+
let o = E(a);
|
|
483
490
|
return /* @__PURE__ */ c("article", {
|
|
484
491
|
class: `rv-ai-message rv-ai-message--${e} ${i}`,
|
|
485
492
|
"aria-label": o(t ?? {
|
|
@@ -492,14 +499,14 @@ function X({ from: e, label: t, isStreaming: n = !1, children: r, className: i =
|
|
|
492
499
|
children: r
|
|
493
500
|
});
|
|
494
501
|
}
|
|
495
|
-
function
|
|
502
|
+
function Y({ children: e, className: t = "" }) {
|
|
496
503
|
return /* @__PURE__ */ c("div", {
|
|
497
504
|
class: `rv-ai-message-content ${t}`,
|
|
498
505
|
children: e
|
|
499
506
|
});
|
|
500
507
|
}
|
|
501
|
-
function
|
|
502
|
-
let i =
|
|
508
|
+
function X({ children: e, className: t = "", label: n = "Message actions", translations: r }) {
|
|
509
|
+
let i = E(r);
|
|
503
510
|
return /* @__PURE__ */ c("div", {
|
|
504
511
|
class: `rv-ai-message-actions ${t}`,
|
|
505
512
|
role: "group",
|
|
@@ -519,17 +526,17 @@ function Q({ status: e }) {
|
|
|
519
526
|
class: "rv-ai-task-icon",
|
|
520
527
|
"data-status": e,
|
|
521
528
|
"aria-hidden": "true",
|
|
522
|
-
children: e === "running" ? /* @__PURE__ */ c(
|
|
529
|
+
children: e === "running" ? /* @__PURE__ */ c(m, { label: "" }) : /* @__PURE__ */ c(d, { svg: e === "completed" ? M : e === "error" ? N : e === "cancelled" ? P : b })
|
|
523
530
|
});
|
|
524
531
|
}
|
|
525
532
|
function $({ title: e, status: n = "completed", open: r, defaultOpen: a, onOpenChange: o, children: l, className: u = "", translations: f }) {
|
|
526
|
-
let p =
|
|
527
|
-
expanded:
|
|
533
|
+
let p = E(f), [m, h] = i(a), _ = r ?? m ?? n === "running", v = s({
|
|
534
|
+
expanded: _,
|
|
528
535
|
open: r,
|
|
529
536
|
onOpenChange: o
|
|
530
537
|
});
|
|
531
538
|
v.current = {
|
|
532
|
-
expanded:
|
|
539
|
+
expanded: _,
|
|
533
540
|
open: r,
|
|
534
541
|
onOpenChange: o
|
|
535
542
|
};
|
|
@@ -552,9 +559,9 @@ function $({ title: e, status: n = "completed", open: r, defaultOpen: a, onOpenC
|
|
|
552
559
|
})
|
|
553
560
|
]
|
|
554
561
|
});
|
|
555
|
-
return y ? /* @__PURE__ */ c(
|
|
562
|
+
return y ? /* @__PURE__ */ c(g, {
|
|
556
563
|
className: `rv-ai-trace ${u}`,
|
|
557
|
-
open:
|
|
564
|
+
open: _,
|
|
558
565
|
onToggle: (e) => {
|
|
559
566
|
let t = e.currentTarget.open, n = v.current;
|
|
560
567
|
t !== n.expanded && (n.open === void 0 ? h(t) : e.currentTarget.open = n.expanded, n.onOpenChange?.(t));
|
|
@@ -569,11 +576,11 @@ function $({ title: e, status: n = "completed", open: r, defaultOpen: a, onOpenC
|
|
|
569
576
|
children: b
|
|
570
577
|
});
|
|
571
578
|
}
|
|
572
|
-
function
|
|
579
|
+
function ee(e) {
|
|
573
580
|
return /* @__PURE__ */ c($, { ...e });
|
|
574
581
|
}
|
|
575
|
-
function
|
|
576
|
-
let i =
|
|
582
|
+
function te({ status: e = "completed", children: t, className: n = "", translations: r }) {
|
|
583
|
+
let i = E(r);
|
|
577
584
|
return /* @__PURE__ */ c("div", {
|
|
578
585
|
class: `rv-ai-task-item ${n}`,
|
|
579
586
|
children: [
|
|
@@ -586,8 +593,8 @@ function re({ status: e = "completed", children: t, className: n = "", translati
|
|
|
586
593
|
]
|
|
587
594
|
});
|
|
588
595
|
}
|
|
589
|
-
function
|
|
590
|
-
let o =
|
|
596
|
+
function ne({ title: e, isStreaming: t = !1, duration: n, children: r, translations: i, ...a }) {
|
|
597
|
+
let o = E(i), s = typeof n == "number" && Number.isFinite(n) && n >= 0 ? ` · ${o("{seconds}s", { seconds: Math.round(n) })}` : "";
|
|
591
598
|
return /* @__PURE__ */ c($, {
|
|
592
599
|
...a,
|
|
593
600
|
translations: i,
|
|
@@ -597,9 +604,12 @@ function ie({ title: e, isStreaming: t = !1, duration: n, children: r, translati
|
|
|
597
604
|
});
|
|
598
605
|
}
|
|
599
606
|
//#endregion
|
|
600
|
-
//#region
|
|
601
|
-
|
|
602
|
-
|
|
607
|
+
//#region node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/clock-rotate-left.svg?raw
|
|
608
|
+
var re = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 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=\"M288 64c106 0 192 86 192 192S394 448 288 448c-65.2 0-122.9-32.5-157.6-82.3-10.1-14.5-30.1-18-44.6-7.9s-18 30.1-7.9 44.6C124.1 468.6 201 512 288 512 429.4 512 544 397.4 544 256S429.4 0 288 0C202.3 0 126.5 42.1 80 106.7L80 80c0-17.7-14.3-32-32-32S16 62.3 16 80l0 112c0 17.7 14.3 32 32 32l24.6 0c.5 0 1 0 1.5 0l86 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-38.3 0C154.9 102.6 217 64 288 64zm24 88c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1z\"/></svg>";
|
|
609
|
+
//#endregion
|
|
610
|
+
//#region package/ai/request-trail.tsx
|
|
611
|
+
function ie({ translations: e, items: t, onRemove: n, onClear: r, onEmpty: o, footer: f, showClear: m = !0, disabled: h, removalsDisabled: g, label: _ = "Request history", triggerLabel: b, clearLabel: x = "Clear all", clearDescription: S, removeLabel: C, countLabel: w, changedMessage: T }) {
|
|
612
|
+
let D = E(e), O = w ?? ((e) => D(e === 1 ? "{count} applied request" : "{count} applied requests", { count: e })), k = C ?? ((e) => D("Remove request: {label}", { label: e.label })), A = s(null), j = s(null), M = s(null), [N] = i(() => l("rv-ai-steps")), [P, F] = i(!1), I = t.length > 0;
|
|
603
613
|
a(() => {
|
|
604
614
|
if (I || F(!1), !P || !I || !A.current || !j.current || !M.current) return;
|
|
605
615
|
let e = M.current, t = new u(), n = !0;
|
|
@@ -618,55 +628,57 @@ function ae({ translations: e, items: t, onRemove: n, onClear: r, onEmpty: o, di
|
|
|
618
628
|
if (a(() => {
|
|
619
629
|
let e = L.current;
|
|
620
630
|
if (!e) return;
|
|
621
|
-
if (
|
|
631
|
+
if (h) {
|
|
622
632
|
e.sawBusy = !0;
|
|
623
633
|
return;
|
|
624
634
|
}
|
|
625
635
|
if (e.id ? t.some((t) => t.id === e.id) : t.length > 0) {
|
|
626
|
-
(e.sawBusy || e.id &&
|
|
636
|
+
(e.sawBusy || e.id && g) && (L.current = void 0);
|
|
627
637
|
return;
|
|
628
638
|
}
|
|
629
639
|
L.current = void 0;
|
|
630
640
|
let n = e.button.ownerDocument.activeElement;
|
|
631
641
|
if (n !== e.button && n !== e.button.ownerDocument.body) return;
|
|
632
642
|
let r = A.current?.querySelectorAll(".rv-remove-button");
|
|
633
|
-
r?.length && P ? r[Math.min(e.index, r.length - 1)]?.focus() : t.length
|
|
643
|
+
r?.length && P ? r[Math.min(e.index, r.length - 1)]?.focus() : t.length ? P && j.current?.focus() : o?.();
|
|
634
644
|
}, [
|
|
635
645
|
t,
|
|
636
646
|
o,
|
|
637
|
-
f,
|
|
638
647
|
h,
|
|
648
|
+
g,
|
|
639
649
|
P
|
|
640
650
|
]), !I) return null;
|
|
641
651
|
let R = 0, z = t.reduce((e, t) => e + (t.count ?? 1), 0);
|
|
642
652
|
return /* @__PURE__ */ c("div", {
|
|
643
653
|
class: "rv-ai-request-trail",
|
|
644
654
|
role: "group",
|
|
645
|
-
"aria-label":
|
|
655
|
+
"aria-label": D(_),
|
|
646
656
|
ref: A,
|
|
647
657
|
onFocusOut: (e) => {
|
|
648
658
|
e.relatedTarget instanceof Node && !e.currentTarget.contains(e.relatedTarget) && F(!1);
|
|
649
659
|
},
|
|
650
|
-
children: [/* @__PURE__ */ c(
|
|
660
|
+
children: [/* @__PURE__ */ c(v, {
|
|
651
661
|
ref: j,
|
|
652
|
-
className: "rv-ai-trail-trigger",
|
|
662
|
+
className: "rv-ai-trail-trigger rv-btn-icon",
|
|
653
663
|
variant: "ghost",
|
|
654
664
|
size: "compact",
|
|
655
|
-
disabled:
|
|
665
|
+
disabled: h,
|
|
666
|
+
"aria-label": D(_),
|
|
667
|
+
title: D(_),
|
|
656
668
|
"aria-haspopup": "dialog",
|
|
657
669
|
"aria-expanded": P,
|
|
658
670
|
"aria-controls": N,
|
|
659
671
|
onClick: () => F((e) => !e),
|
|
660
|
-
children:
|
|
661
|
-
svg:
|
|
662
|
-
size:
|
|
663
|
-
})
|
|
672
|
+
children: b ? b(z) : /* @__PURE__ */ c(d, {
|
|
673
|
+
svg: re,
|
|
674
|
+
size: 16
|
|
675
|
+
})
|
|
664
676
|
}), /* @__PURE__ */ c("div", {
|
|
665
677
|
ref: M,
|
|
666
678
|
id: N,
|
|
667
679
|
class: "rv-popover rv-ai-trail-popover",
|
|
668
680
|
role: "dialog",
|
|
669
|
-
"aria-label":
|
|
681
|
+
"aria-label": D(_),
|
|
670
682
|
tabIndex: -1,
|
|
671
683
|
hidden: !P,
|
|
672
684
|
children: [
|
|
@@ -674,15 +686,12 @@ function ae({ translations: e, items: t, onRemove: n, onClear: r, onEmpty: o, di
|
|
|
674
686
|
class: "rv-ai-trail-header",
|
|
675
687
|
children: /* @__PURE__ */ c("span", {
|
|
676
688
|
class: "rv-ai-trail-label",
|
|
677
|
-
children:
|
|
678
|
-
count: z,
|
|
679
|
-
label: D(z)
|
|
680
|
-
})]
|
|
689
|
+
children: D(_)
|
|
681
690
|
})
|
|
682
691
|
}),
|
|
683
692
|
/* @__PURE__ */ c("ol", {
|
|
684
693
|
class: "rv-ai-trail-steps",
|
|
685
|
-
"aria-label":
|
|
694
|
+
"aria-label": O(z),
|
|
686
695
|
children: t.map((e, r) => {
|
|
687
696
|
let i = R + 1;
|
|
688
697
|
return R += e.count ?? 1, /* @__PURE__ */ c("li", {
|
|
@@ -700,14 +709,14 @@ function ae({ translations: e, items: t, onRemove: n, onClear: r, onEmpty: o, di
|
|
|
700
709
|
"aria-hidden": "true",
|
|
701
710
|
children: i === R ? i : `${i}–${R}`
|
|
702
711
|
}),
|
|
703
|
-
/* @__PURE__ */ c(
|
|
712
|
+
/* @__PURE__ */ c(y, {
|
|
704
713
|
class: "rv-ai-step-label",
|
|
705
714
|
title: e.label,
|
|
706
715
|
children: e.label
|
|
707
716
|
}),
|
|
708
|
-
/* @__PURE__ */ c(p, {
|
|
717
|
+
e.removable !== !1 && /* @__PURE__ */ c(p, {
|
|
709
718
|
compact: !0,
|
|
710
|
-
disabled:
|
|
719
|
+
disabled: h || g,
|
|
711
720
|
locale: {
|
|
712
721
|
title: k(e),
|
|
713
722
|
ariaLabel: k(e)
|
|
@@ -727,27 +736,27 @@ function ae({ translations: e, items: t, onRemove: n, onClear: r, onEmpty: o, di
|
|
|
727
736
|
}),
|
|
728
737
|
T && /* @__PURE__ */ c("p", {
|
|
729
738
|
class: "rv-ai-trail-message",
|
|
730
|
-
children:
|
|
739
|
+
children: D(T)
|
|
731
740
|
}),
|
|
732
741
|
/* @__PURE__ */ c("div", {
|
|
733
742
|
class: "rv-ai-trail-footer",
|
|
734
|
-
children: /* @__PURE__ */ c(
|
|
743
|
+
children: [f, m && r && /* @__PURE__ */ c(v, {
|
|
735
744
|
variant: "ghost",
|
|
736
745
|
size: "compact",
|
|
737
|
-
disabled:
|
|
738
|
-
title: S ?
|
|
746
|
+
disabled: h,
|
|
747
|
+
title: S ? D(S) : void 0,
|
|
739
748
|
onClick: (e) => {
|
|
740
749
|
e.preventDefault(), L.current = {
|
|
741
750
|
button: e.currentTarget,
|
|
742
751
|
index: 0
|
|
743
|
-
}, r();
|
|
752
|
+
}, r?.();
|
|
744
753
|
},
|
|
745
|
-
children:
|
|
746
|
-
})
|
|
754
|
+
children: D(x)
|
|
755
|
+
})]
|
|
747
756
|
})
|
|
748
757
|
]
|
|
749
758
|
})]
|
|
750
759
|
});
|
|
751
760
|
}
|
|
752
761
|
//#endregion
|
|
753
|
-
export {
|
|
762
|
+
export { D as C, C as E, O as S, S as T, z as _, K as a, A as b, Y as c, te as d, B as f, V as g, R as h, G as i, ne as l, U as m, W as n, J as o, H as p, q as r, X as s, ie as t, ee as u, F as v, T as w, k as x, j as y };
|