@8wave/ai-elements 0.126.0-beta.13 → 0.126.0-beta.14
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/dist/_chunks/{PkFilePreview-CW04wd9z.js → PkFilePreview-SBGa95Ca.js} +604 -600
- package/dist/_chunks/PkFilePreview-SBGa95Ca.js.map +1 -0
- package/dist/_chunks/{PkFilePreviewDialog-0vC6vbNa.js → PkFilePreviewDialog-Cc7iZWCl.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-0vC6vbNa.js.map → PkFilePreviewDialog-Cc7iZWCl.js.map} +1 -1
- package/dist/ai-elements.es.js +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-BNcXCHJv.js → PkChatbot-ewxoWtEU.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-BNcXCHJv.js.map → PkChatbot-ewxoWtEU.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-8itM8FhY.js → PkChatbotViewChat-CT5N0zvF.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewChat-8itM8FhY.js.map → PkChatbotViewChat-CT5N0zvF.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-DLrXC8uc.js → PkFilePreview-O8iOSD7k.js} +690 -686
- package/dist-vue/_chunks/PkFilePreview-O8iOSD7k.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreviewDialog-xcglY0iR.js → PkFilePreviewDialog-Chp8KLNP.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-xcglY0iR.js.map → PkFilePreviewDialog-Chp8KLNP.js.map} +1 -1
- package/dist-vue/index.js +4 -4
- package/dist-vue/packages/components/src/chat/spreadsheetNumbers.d.ts +25 -0
- package/package.json +1 -1
- package/dist/_chunks/PkFilePreview-CW04wd9z.js.map +0 -1
- package/dist-vue/_chunks/PkFilePreview-DLrXC8uc.js.map +0 -1
package/dist-vue/_chunks/{PkFilePreviewDialog-xcglY0iR.js → PkFilePreviewDialog-Chp8KLNP.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-CGnMp29N.js";
|
|
2
|
-
import { t } from "./PkFilePreview-
|
|
2
|
+
import { t } from "./PkFilePreview-O8iOSD7k.js";
|
|
3
3
|
import { VvDialog as n } from "@volverjs/ui-vue/components";
|
|
4
4
|
import { createBlock as r, createVNode as i, defineComponent as a, mergeModels as o, openBlock as s, useModel as c, withCtx as l } from "vue";
|
|
5
5
|
// ../../packages/components/src/chat/PkFilePreviewDialog.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -113,4 +113,4 @@ var u = /*@__PURE__*/ a({
|
|
|
113
113
|
}), d = /* @__PURE__ */ e({ default: () => f }), f = u;
|
|
114
114
|
export { d as n, f as t };
|
|
115
115
|
|
|
116
|
-
//# sourceMappingURL=PkFilePreviewDialog-
|
|
116
|
+
//# sourceMappingURL=PkFilePreviewDialog-Chp8KLNP.js.map
|
package/dist-vue/_chunks/{PkFilePreviewDialog-xcglY0iR.js.map → PkFilePreviewDialog-Chp8KLNP.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkFilePreviewDialog-
|
|
1
|
+
{"version":3,"file":"PkFilePreviewDialog-Chp8KLNP.js","names":["_useModel","_openBlock","_createBlock","_withCtx","_createVNode","PkFilePreview","__exportAll","PkFilePreviewDialog_vue_vue_type_script_setup_true_lang_default","\"mode\"","\"modeModifiers\"","\"sheet\"","\"sheetModifiers\"","\"zoom\"","\"zoomModifiers\"","\"fit\"","\"fitModifiers\"","__emit","emit","mode","useModel","__props","sheet","zoom","fit","_component_VvDialog","VvDialog","openBlock","createBlock","_cache","$event","withCtx","createVNode","PkFilePreview_default","text","pointer","action","PkFilePreviewDialog_exports","PkFilePreviewDialog_default"],"sources":["../../../../packages/components/src/chat/PkFilePreviewDialog.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import type {\n ChatFilePreview,\n FilePointer,\n SelectionGroupCapability,\n } from 'models'\n import PkFilePreview from './PkFilePreview.vue'\n import type { ChatFilePreviewChanges } from './previewChanges'\n import type { ChatFilePreviewTarget, WordPreviewMode } from './utils'\n\n /**\n * The viewer of a file stored in a chat in a dialog over the page: the\n * chat's when it has no room for the panel beside it or the reader\n * expands it, the chat log's always. Open while it is mounted: `close`\n * asks the host to drop it. The viewer draws its own head, with the file\n * and the close button, so the dialog has no title and takes its name.\n */\n defineProps<{\n target: ChatFilePreviewTarget\n /** The authenticated download URL of the same version. */\n downloadUrl: string\n preview?: ChatFilePreview\n /** What the version changed from the one shown before, for a moment. */\n changes?: ChatFilePreviewChanges\n loading?: boolean\n error?: boolean\n /** Covers the screen, for a phone. */\n fullscreen?: boolean\n /** The versions of the file in the conversation, from 1. */\n versions?: number[]\n /** The shown version can be written again as the newest one. */\n restorable?: boolean\n /** Offers to go back to the panel beside the chat. */\n resize?: 'shrink'\n /** The selection bar's actions for this format: absent in the chat logs. */\n selectionActions?: SelectionGroupCapability\n /** The agent answers in the chat the dialog covers. */\n working?: boolean\n }>()\n\n const emit = defineEmits<{\n close: []\n version: [version: number]\n restore: []\n resize: []\n showChat: []\n selectionSend: [\n text: string,\n pointer: FilePointer,\n action: { id: string; size: number },\n ]\n }>()\n\n // How the file is shown, kept by the host across panel and dialog\n const mode = defineModel<WordPreviewMode>('mode')\n const sheet = defineModel<number>('sheet')\n const zoom = defineModel<number>('zoom')\n // A boolean prop left out is false, not the viewer's default: the chat\n // logs keep no zoom, and their pages opened at 100% instead of fitted\n const fit = defineModel<boolean>('fit', { default: true })\n</script>\n\n<template>\n <VvDialog\n :model-value=\"true\"\n :aria-label=\"target.filename\"\n :modifiers=\"fullscreen ? 'fullscreen' : undefined\"\n class=\"pk-file-preview-dialog\"\n @update:model-value=\"!$event && emit('close')\">\n <PkFilePreview\n v-model:mode=\"mode\"\n v-model:sheet=\"sheet\"\n v-model:zoom=\"zoom\"\n v-model:fit=\"fit\"\n :kind=\"target.kind\"\n :filename=\"target.filename\"\n :version=\"target.version\"\n :versions\n :download-url\n :preview\n :changes\n :loading\n :error\n :restorable\n :resize\n :file-id=\"target.fileId\"\n :stored-file-name=\"target.storedFileName\"\n :selection-actions\n :working\n @version=\"emit('version', $event)\"\n @restore=\"emit('restore')\"\n @resize=\"emit('resize')\"\n @show-chat=\"emit('showChat')\"\n @selection-send=\"\n (text, pointer, action) =>\n emit('selectionSend', text, pointer, action)\n \"\n @close=\"emit('close')\" />\n </VvDialog>\n</template>\n\n<style lang=\"scss\">\n // Almost the whole window, room for a page of Word and a grid of Excel;\n // the viewer scrolls in its own box, so the content does not pad it.\n .pk-file-preview-dialog {\n &:not(.vv-dialog--fullscreen) > article {\n width: min(90rem, 94dvw);\n height: 92dvh;\n }\n\n // The library writes `max-height: auto`, which is no value: the\n // wrapper kept its 90dvh and the phone saw the chat around it\n &.vv-dialog--fullscreen > article {\n max-height: none;\n }\n\n .vv-dialog__content {\n display: flex;\n flex: 1;\n flex-direction: column;\n min-height: 0;\n padding: 0;\n }\n }\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwCI,IAAMiB,IAAOD,GAcPE,IAAOlB,EAA4BoB,GAAC,MAAM,GAC1CC,IAAQrB,EAAmBoB,GAAC,OAAO,GACnCE,IAAOtB,EAAmBoB,GAAC,MAAM,GAGjCG,IAAMvB,EAAoBoB,GAAC,KAAwB;;;GAIzD,OAAAnB,EAAA,GAAAC,EAmCWsB,GAAA;IAlCN,eAAa;IACb,cAAYJ,EAAA,OAAO;IACnB,WAAWA,EAAA,aAAU,eAAkB,KAAA;IACxC,OAAM;IACL,uBAAkB,AAAAQ,EAAA,SAAA,MAAA,CAAGC,KAAUZ,EAAI,OAAA;;IACpC,SAAAd,QA4B6B,CA5B7BC,EA4B6BC,GAAA;KA3BjB,MAAMa,EAAA;KAAA,iBAAA,AAAAU,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,OAAOR,EAAA;KAAA,kBAAA,AAAAO,EAAA,QAAA,MAAA,EAAK,QAAAC;KACZ,MAAMP,EAAA;KAAA,iBAAA,AAAAM,EAAA,QAAA,MAAA,EAAI,QAAAC;KACV,KAAKN,EAAA;KAAA,gBAAA,AAAAK,EAAA,QAAA,MAAA,EAAG,QAAAC;KACf,MAAMT,EAAA,OAAO;KACb,UAAUA,EAAA,OAAO;KACjB,SAASA,EAAA,OAAO;KAChB,UAAAA,EAAA;KACA,gBAAAA,EAAA;KACA,SAAAA,EAAA;KACA,SAAAA,EAAA;KACA,SAAAA,EAAA;KACA,OAAAA,EAAA;KACA,YAAAA,EAAA;KACA,QAAAA,EAAA;KACA,WAASA,EAAA,OAAO;KAChB,oBAAkBA,EAAA,OAAO;KACzB,qBAAAA,EAAA;KACA,SAAAA,EAAA;KACA,WAAO,AAAAQ,EAAA,QAAA,MAAEX,EAAI,WAAYY,CAAM;KAC/B,WAAO,AAAAD,EAAA,QAAA,MAAEX,EAAI,SAAA;KACb,UAAM,AAAAW,EAAA,QAAA,MAAEX,EAAI,QAAA;KACZ,YAAS,AAAAW,EAAA,QAAA,MAAEX,EAAI,UAAA;KACf,iBAAc,AAAAW,EAAA,QAAoB,GAAM,GAAS,MAA+BX,EAAI,iBAAkBgB,GAAMC,GAASC,CAAM;KAI3H,SAAK,AAAAP,EAAA,QAAA,MAAEX,EAAI,OAAA"}
|
package/dist-vue/index.js
CHANGED
|
@@ -17,11 +17,11 @@ import { a as dn, l as fn, u as pn } from "./_chunks/message-DuibQyHy.js";
|
|
|
17
17
|
import { t as mn } from "./_chunks/useDialogConfirm-fn7iV-iE.js";
|
|
18
18
|
import { i as hn, r as gn } from "./_chunks/useLightbox-DmtNa8bJ.js";
|
|
19
19
|
import { t as _n } from "./_chunks/useImageFallback-HUe4GHah.js";
|
|
20
|
-
import { a as vn, i as yn, n as bn, o as xn, s as Sn, t as Cn } from "./_chunks/PkChatbotViewChat-
|
|
20
|
+
import { a as vn, i as yn, n as bn, o as xn, s as Sn, t as Cn } from "./_chunks/PkChatbotViewChat-CT5N0zvF.js";
|
|
21
21
|
import { t as wn } from "./_chunks/PkChatbotError-DFZ5S5jd.js";
|
|
22
22
|
import { t as Tn } from "./_chunks/PkLazyImg-D_Tmtfz3.js";
|
|
23
23
|
import { t as En } from "./_chunks/useSafeLocalStorage-Bn4SsL8C.js";
|
|
24
|
-
import { i as Dn, r as On } from "./_chunks/PkFilePreview-
|
|
24
|
+
import { i as Dn, r as On } from "./_chunks/PkFilePreview-O8iOSD7k.js";
|
|
25
25
|
import { $ as kn, B as An, D as jn, F as Mn, M as Nn, Q as Pn, R as Fn, U as In, _ as Ln, et as Rn, l as zn, x as Bn, y as Vn } from "./_chunks/utils-Bdk5kFfi.js";
|
|
26
26
|
import { i as Hn, n as Un, r as Wn, t as Gn } from "./_chunks/PkChatbotViewConversations-D7ANZR5O.js";
|
|
27
27
|
import { a as Kn, i as qn, n as Jn, r as Yn } from "./_chunks/useChatbotStore-Bc99inD5.js";
|
|
@@ -40,7 +40,7 @@ import { t as dr } from "./_chunks/PkChatbotStepToolDetail-CkIX0aKu.js";
|
|
|
40
40
|
import { n as fr, t as pr } from "./_chunks/PkChatbotInput-DSdGtBTs.js";
|
|
41
41
|
import { t as mr } from "./_chunks/PkChatbotEmptyState-Jxc1HNJ5.js";
|
|
42
42
|
import { t as hr } from "./_chunks/PkChatbotViewProfile-BMIvkLEf.js";
|
|
43
|
-
import { t as gr } from "./_chunks/PkChatbot-
|
|
43
|
+
import { t as gr } from "./_chunks/PkChatbot-ewxoWtEU.js";
|
|
44
44
|
import { t as _r } from "./_chunks/useLocalizedString-Dmn92nix.js";
|
|
45
45
|
import { t as vr } from "./_chunks/mcpOAuthReport-D-MtFYwN.js";
|
|
46
46
|
import { t as yr } from "./_chunks/PkToolShowEmail-BehvoNsz.js";
|
|
@@ -56,7 +56,7 @@ import { t as Or } from "./_chunks/PkToolShowImageGallery-KP_ptp0w.js";
|
|
|
56
56
|
import { t as kr } from "./_chunks/PkToolShowSuggestedReply-75Kc8-OQ.js";
|
|
57
57
|
import { t as Ar } from "./_chunks/PkToolShareDocument-Bf7OE8XA.js";
|
|
58
58
|
import { t as jr } from "./_chunks/PkToolChatFile-BntAINfN.js";
|
|
59
|
-
import { t as Mr } from "./_chunks/PkFilePreviewDialog-
|
|
59
|
+
import { t as Mr } from "./_chunks/PkFilePreviewDialog-Chp8KLNP.js";
|
|
60
60
|
import { t as Nr } from "./_chunks/PkToolRequestGeolocation-C2OmF31d.js";
|
|
61
61
|
import { VvAccordion as Pr, VvAccordionGroup as Fr, VvAlert as Ir, VvAlertGroup as Lr, VvBadge as Rr, VvButtonGroup as zr, VvCheckbox as Br, VvCombobox as Vr, VvDialog as Hr, VvDropdown as Ur, VvDropdownAction as Wr, VvIcon as Gr, VvInputFile as Kr, VvInputRange as qr, VvInputText as Jr, VvTab as Yr, VvTextarea as Xr } from "@volverjs/ui-vue/components";
|
|
62
62
|
import { Fragment as j, Teleport as Zr, Transition as Qr, TransitionGroup as $r, cloneVNode as ei, computed as M, createApp as ti, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as ni, createStaticVNode as ri, createTextVNode as L, createVNode as R, defineComponent as z, guardReactiveProps as ii, h as ai, inject as B, isRef as oi, isVNode as si, mergeModels as ci, mergeProps as li, nextTick as ui, normalizeClass as di, normalizeProps as fi, normalizeStyle as pi, onBeforeUnmount as mi, onMounted as hi, onUnmounted as gi, openBlock as V, provide as _i, reactive as vi, readonly as yi, ref as H, renderList as bi, renderSlot as xi, resolveComponent as Si, resolveDynamicComponent as Ci, shallowRef as wi, toDisplayString as U, toRef as Ti, toRefs as Ei, unref as W, useId as Di, useModel as G, useSlots as Oi, useTemplateRef as ki, vModelSelect as Ai, vModelText as ji, watch as K, withCtx as q, withDirectives as Mi, withKeys as Ni, withModifiers as Pi } from "vue";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SpreadsheetPreview, SpreadsheetPreviewCell } from '../../../models/src';
|
|
2
|
+
/** A number or a date under its own format code, as Excel shows it. */
|
|
3
|
+
export declare const formattedCell: (cell: SpreadsheetPreviewCell, preview: SpreadsheetPreview, locale: string) => {
|
|
4
|
+
text: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
} | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* `v` in the format of `cell`, with the reader's separators: the cell's own
|
|
9
|
+
* value, or a sum or an average of the range it starts.
|
|
10
|
+
*/
|
|
11
|
+
export declare const cellNumberText: (cell: SpreadsheetPreviewCell, v: number, preview: SpreadsheetPreview, locale: string) => string;
|
|
12
|
+
/**
|
|
13
|
+
* Count, average and sum of a range's cells, as Excel's status bar shows
|
|
14
|
+
* them: sum and average in the format of the first number, so a percent
|
|
15
|
+
* adds up to a percent and an amount in euro to euro. A number under a date
|
|
16
|
+
* or time code is mostly a time a formula computed in the chat: its sum is
|
|
17
|
+
* shown as Excel shows it, a formatted serial, which for times is the total
|
|
18
|
+
* they are selected for (`[h]:mm`). The dates and times the file holds are
|
|
19
|
+
* date cells, counted and not added, as before: a sum of dates means nothing.
|
|
20
|
+
*/
|
|
21
|
+
export declare const rangeStats: (cells: Iterable<SpreadsheetPreviewCell | undefined>, preview: SpreadsheetPreview, locale: string) => {
|
|
22
|
+
count: number;
|
|
23
|
+
sum?: string;
|
|
24
|
+
average?: string;
|
|
25
|
+
} | undefined;
|