@8wave/ai-elements 0.122.0-beta.4 → 0.122.0-beta.6
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/PkToolChatFile-CLaqBsM-.js +181 -0
- package/dist/_chunks/PkToolChatFile-CLaqBsM-.js.map +1 -0
- package/dist/ai-elements.es.js +33 -1
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChatbot-BVw3-kJg.js → PkChatbot-B1Lox5YD.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-BVw3-kJg.js.map → PkChatbot-B1Lox5YD.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-C_dLjNVo.js → PkChatbotViewChat-B3HtPjcu.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewChat-C_dLjNVo.js.map → PkChatbotViewChat-B3HtPjcu.js.map} +1 -1
- package/dist-vue/_chunks/PkToolChatFile-B7aCK9Az.js +179 -0
- package/dist-vue/_chunks/PkToolChatFile-B7aCK9Az.js.map +1 -0
- package/dist-vue/composables.js +32 -0
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +2 -2
- package/dist-vue/locales.js +36 -4
- package/dist-vue/packages/components/src/chat/PkToolChatFile.d.ts +3 -1
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/PkToolChatFile-BuA7AOQ8.js +0 -50
- package/dist/_chunks/PkToolChatFile-BuA7AOQ8.js.map +0 -1
- package/dist-vue/_chunks/PkToolChatFile-BC_DO--d.js +0 -49
- package/dist-vue/_chunks/PkToolChatFile-BC_DO--d.js.map +0 -1
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { E as e, M as t } from "./Agent-CYUPbFnK.js";
|
|
2
|
+
import { t as n } from "./PkChatbotFilePreview-CzmGvKjI.js";
|
|
3
|
+
import { VvIcon as r } from "@volverjs/ui-vue/components";
|
|
4
|
+
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, openBlock as f, ref as p, renderList as m, toDisplayString as h, unref as g } from "vue";
|
|
5
|
+
import { useI18n as _ } from "vue-i18n";
|
|
6
|
+
// ../../packages/components/src/chat/PkToolChatFile.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var v = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "pk-tool-chat-file"
|
|
10
|
+
}, y = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "pk-tool-chat-file__changes mt-xs"
|
|
13
|
+
}, b = { class: "pk-tool-chat-file__summary" }, x = { class: "pk-tool-chat-file__scroll" }, S = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "pk-tool-chat-file__table"
|
|
16
|
+
}, C = { scope: "col" }, ee = { scope: "col" }, w = { scope: "col" }, T = {
|
|
17
|
+
colspan: "3",
|
|
18
|
+
scope: "rowgroup",
|
|
19
|
+
class: "pk-tool-chat-file__sheet"
|
|
20
|
+
}, E = {
|
|
21
|
+
key: 0,
|
|
22
|
+
colspan: "3",
|
|
23
|
+
class: "pk-tool-chat-file__after"
|
|
24
|
+
}, D = { class: "pk-tool-chat-file__cell" }, O = { class: "pk-tool-chat-file__before" }, k = { class: "pk-tool-chat-file__after" }, A = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "pk-tool-chat-file__paragraphs"
|
|
27
|
+
}, j = { class: "pk-tool-chat-file__what" }, M = { class: "pk-tool-chat-file__text" }, N = {
|
|
28
|
+
key: 0,
|
|
29
|
+
class: "pk-tool-chat-file__removed"
|
|
30
|
+
}, P = {
|
|
31
|
+
key: 1,
|
|
32
|
+
class: "pk-tool-chat-file__added"
|
|
33
|
+
}, F = { key: 2 }, I = {
|
|
34
|
+
key: 2,
|
|
35
|
+
class: "pk-tool-chat-file__note"
|
|
36
|
+
}, L = ["aria-expanded"], R = {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "text-12 text-word-3 mt-xs mb-0"
|
|
39
|
+
}, z = 3, B = /* @__PURE__ */ d({
|
|
40
|
+
__name: "PkToolChatFile",
|
|
41
|
+
props: {
|
|
42
|
+
part: {},
|
|
43
|
+
fileUrl: { type: Function }
|
|
44
|
+
},
|
|
45
|
+
setup(d) {
|
|
46
|
+
let B = /* @__PURE__ */ new Set(["tool-editWordDocument", "tool-createWordDocument"]), V = d, { t: H } = _({ useScope: "global" }), U = p(!1), W = (e) => e?.replace(/… \(\d+ characters\)$/, "…"), G = (e, t, n) => {
|
|
47
|
+
let r = e.split(/(\s+)/).filter(Boolean);
|
|
48
|
+
return r.length <= (t && n ? 24 : 12) ? e : t && n ? `${r.slice(0, 12).join("")}… ${r.slice(-12).join("")}` : n ? `…${r.slice(-12).join("")}` : `${r.slice(0, 12).join("")}…`;
|
|
49
|
+
}, K = (e, t) => {
|
|
50
|
+
let n = e.split(/(\s+)/).filter(Boolean), r = t.split(/(\s+)/).filter(Boolean), i = Array.from({ length: n.length + 1 }, () => Array(r.length + 1).fill(0));
|
|
51
|
+
for (let e = n.length - 1; e >= 0; e--) for (let t = r.length - 1; t >= 0; t--) i[e][t] = n[e] === r[t] ? i[e + 1][t + 1] + 1 : Math.max(i[e + 1][t], i[e][t + 1]);
|
|
52
|
+
let a = [], o = (e, t) => {
|
|
53
|
+
let n = a[a.length - 1];
|
|
54
|
+
n?.kind === t ? n.text += e : a.push({
|
|
55
|
+
text: e,
|
|
56
|
+
kind: t
|
|
57
|
+
});
|
|
58
|
+
}, s = 0, c = 0;
|
|
59
|
+
for (; s < n.length || c < r.length;) s < n.length && c < r.length && n[s] === r[c] ? (o(n[s++], "same"), c++) : c >= r.length || s < n.length && i[s + 1][c] >= i[s][c + 1] ? o(n[s++], "removed") : o(r[c++], "added");
|
|
60
|
+
return a.map((e, t) => e.kind === "same" ? {
|
|
61
|
+
...e,
|
|
62
|
+
text: G(e.text, t > 0, t < a.length - 1)
|
|
63
|
+
} : e);
|
|
64
|
+
}, q = (e) => {
|
|
65
|
+
switch (e) {
|
|
66
|
+
case "insertParagraphs": return H("messagePart.chatFileParagraphAdded");
|
|
67
|
+
case "deleteParagraphs": return H("messagePart.chatFileParagraphDeleted");
|
|
68
|
+
case "insertTableRow": return H("messagePart.chatFileTableRowAdded");
|
|
69
|
+
case "deleteTableRow": return H("messagePart.chatFileTableRowDeleted");
|
|
70
|
+
default: return H("messagePart.chatFileParagraphChanged");
|
|
71
|
+
}
|
|
72
|
+
}, J = (e) => {
|
|
73
|
+
let t = W(e.before), n = W(e.after);
|
|
74
|
+
return {
|
|
75
|
+
what: q(e.op),
|
|
76
|
+
segments: t && n ? K(t, n) : [t ? {
|
|
77
|
+
text: t,
|
|
78
|
+
kind: "removed"
|
|
79
|
+
} : {
|
|
80
|
+
text: n ?? "",
|
|
81
|
+
kind: "same"
|
|
82
|
+
}]
|
|
83
|
+
};
|
|
84
|
+
}, Y = (e) => {
|
|
85
|
+
let t = e.cell ?? "", n = e.before ? void 0 : /^new sheet, (\d+) row\(s\)$/.exec(e.after ?? "")?.[1], r = e.newSheetRows ?? (n ? Number(n) : void 0);
|
|
86
|
+
if (r !== void 0) return {
|
|
87
|
+
sheet: t,
|
|
88
|
+
newSheet: H("messagePart.chatFileNewSheet", r)
|
|
89
|
+
};
|
|
90
|
+
let i = t.lastIndexOf("!"), a = t.slice(i + 1), o = /^A(\d+):[A-Z]+(\d+)$/.exec(a);
|
|
91
|
+
return {
|
|
92
|
+
sheet: t.slice(0, Math.max(i, 0)),
|
|
93
|
+
cell: o && o[1] === o[2] ? H("messagePart.chatFileRow", { row: o[1] }) : a,
|
|
94
|
+
before: W(e.before) || void 0,
|
|
95
|
+
after: W(e.after) || void 0
|
|
96
|
+
};
|
|
97
|
+
}, X = a(() => {
|
|
98
|
+
let n = V.part;
|
|
99
|
+
if (n.state !== "output-available" || !n.output?.storedFileName) return;
|
|
100
|
+
let r = n.output, i = B.has(n.type ?? ""), a;
|
|
101
|
+
i && r.changedParagraphs !== void 0 ? a = r.tracked ? H("messagePart.editWordDocumentRevisions", r.changedParagraphs) : H("messagePart.editWordDocumentParagraphs", r.changedParagraphs) : !i && r.changedCells !== void 0 && (a = H("messagePart.editSpreadsheetCells", r.changedCells));
|
|
102
|
+
let o = a ? r.changes ?? [] : [], s = [];
|
|
103
|
+
return r.stalePivots && s.push(H("messagePart.chatFileRefreshPivots")), r.staleTableOfContents && s.push(H("messagePart.chatFileUpdateTableOfContents")), {
|
|
104
|
+
output: r,
|
|
105
|
+
mediaType: i ? t : e,
|
|
106
|
+
summary: a && r.version ? H("messagePart.chatFileVersionSummary", {
|
|
107
|
+
version: r.version,
|
|
108
|
+
changed: a
|
|
109
|
+
}) : a,
|
|
110
|
+
cells: i ? [] : o.map(Y),
|
|
111
|
+
paragraphs: i ? o.map(J) : [],
|
|
112
|
+
count: o.length,
|
|
113
|
+
more: r.moreChanges ?? 0,
|
|
114
|
+
reminders: s
|
|
115
|
+
};
|
|
116
|
+
}), Z = (e) => U.value ? e ?? [] : (e ?? []).slice(0, z), Q = a(() => Z(X.value?.paragraphs)), te = a(() => {
|
|
117
|
+
let e = /* @__PURE__ */ new Map();
|
|
118
|
+
for (let t of Z(X.value?.cells)) {
|
|
119
|
+
let n = e.get(t.sheet);
|
|
120
|
+
n ? n.rows.push(t) : e.set(t.sheet, {
|
|
121
|
+
sheet: t.sheet,
|
|
122
|
+
rows: [t]
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
return [...e.values()];
|
|
126
|
+
}), $ = a(() => (X.value?.count ?? 0) - z);
|
|
127
|
+
return (e, t) => {
|
|
128
|
+
let a = r;
|
|
129
|
+
return X.value ? (f(), s("div", v, [u(n, {
|
|
130
|
+
"media-type": X.value.mediaType,
|
|
131
|
+
url: d.fileUrl(X.value.output.storedFileName),
|
|
132
|
+
filename: X.value.output.filename,
|
|
133
|
+
size: X.value.output.sizeBytes,
|
|
134
|
+
"show-download": ""
|
|
135
|
+
}, null, 8, [
|
|
136
|
+
"media-type",
|
|
137
|
+
"url",
|
|
138
|
+
"filename",
|
|
139
|
+
"size"
|
|
140
|
+
]), X.value.count ? (f(), s("section", y, [
|
|
141
|
+
c("h4", b, h(X.value.summary), 1),
|
|
142
|
+
c("div", x, [X.value.cells.length ? (f(), s("table", S, [c("thead", null, [c("tr", null, [
|
|
143
|
+
c("th", C, h(g(H)("messagePart.chatFileCell")), 1),
|
|
144
|
+
c("th", ee, h(g(H)("messagePart.chatFileBefore")), 1),
|
|
145
|
+
c("th", w, h(g(H)("messagePart.chatFileAfter")), 1)
|
|
146
|
+
])]), (f(!0), s(i, null, m(te.value, (e, t) => (f(), s("tbody", { key: t }, [c("tr", null, [c("th", T, h(g(H)("messagePart.chatFileSheet", { name: e.sheet })), 1)]), (f(!0), s(i, null, m(e.rows, (e, t) => (f(), s("tr", { key: t }, [e.newSheet ? (f(), s("td", E, h(e.newSheet), 1)) : (f(), s(i, { key: 1 }, [
|
|
147
|
+
c("td", D, h(e.cell), 1),
|
|
148
|
+
c("td", O, h(e.before), 1),
|
|
149
|
+
c("td", k, h(e.after), 1)
|
|
150
|
+
], 64))]))), 128))]))), 128))])) : (f(), s("ul", A, [(f(!0), s(i, null, m(Q.value, (e, t) => (f(), s("li", {
|
|
151
|
+
key: t,
|
|
152
|
+
class: "pk-tool-chat-file__paragraph"
|
|
153
|
+
}, [c("span", j, h(e.what), 1), c("span", M, [(f(!0), s(i, null, m(e.segments, (e, t) => (f(), s(i, { key: t }, [e.kind === "removed" ? (f(), s("del", N, h(e.text), 1)) : e.kind === "added" ? (f(), s("ins", P, h(e.text), 1)) : (f(), s("span", F, h(e.text), 1))], 64))), 128))])]))), 128))])), U.value && X.value.more ? (f(), s("p", I, h(g(H)("messagePart.chatFileMoreChanges", X.value.more)), 1)) : o("", !0)]),
|
|
154
|
+
$.value > 0 ? (f(), s("button", {
|
|
155
|
+
key: 0,
|
|
156
|
+
type: "button",
|
|
157
|
+
class: "pk-tool-chat-file__more",
|
|
158
|
+
"aria-expanded": U.value,
|
|
159
|
+
onClick: t[0] ||= (e) => U.value = !U.value
|
|
160
|
+
}, [u(a, {
|
|
161
|
+
name: U.value ? "ri:arrow-up-s-line" : "ri:arrow-down-s-line",
|
|
162
|
+
class: "text-16",
|
|
163
|
+
"aria-hidden": "true"
|
|
164
|
+
}, null, 8, ["name"]), l(" " + h(U.value ? g(H)("action.showLess") : g(H)("action.showMore", { count: $.value })), 1)], 8, L)) : o("", !0),
|
|
165
|
+
(f(!0), s(i, null, m(X.value.reminders, (e) => (f(), s("p", {
|
|
166
|
+
key: e,
|
|
167
|
+
class: "pk-tool-chat-file__reminder"
|
|
168
|
+
}, [u(a, {
|
|
169
|
+
name: "ri:information-line",
|
|
170
|
+
class: "pk-tool-chat-file__reminder-icon",
|
|
171
|
+
"aria-hidden": "true"
|
|
172
|
+
}), l(" " + h(e), 1)]))), 128))
|
|
173
|
+
])) : X.value.summary ? (f(), s("p", R, h(X.value.summary), 1)) : o("", !0)])) : o("", !0);
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
export { B as default };
|
|
178
|
+
|
|
179
|
+
//# sourceMappingURL=PkToolChatFile-B7aCK9Az.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PkToolChatFile-B7aCK9Az.js","names":["__unplugin_components_0","_openBlock","_createElementBlock","_createVNode","PkChatbotFilePreview","_createElementVNode","_toDisplayString","_unref","_Fragment","_renderList","_createCommentVNode","_createTextVNode","_sfc_main","SPREADSHEET_MIME_TYPE","WORD_MIME_TYPE","PkChatbotFilePreview_default","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","SHOWN_CHANGES","PkToolChatFile_default","defineComponent","WORD_TOOL_PARTS","props","__props","$t","useI18n","showAll","ref","withoutLength","text","contextOf","runs","before","after","excerptOf","a","b","common","i","j","push","last","kind","run","k","wordChangeLabel","op","paragraphRow","change","cellRow","legacy","rows","bang","cell","appended","file","computed","part","output","word","changed","changes","reminders","shown","shownParagraphs","shownSheets","groups","row","group","hiddenRows","_component_VvIcon","VvIcon","openBlock","createElementBlock","createVNode","createElementVNode","toDisplayString","unref","Fragment","renderList","g","index","s","segment","createCommentVNode","_cache","createTextVNode","reminder"],"sources":["../../../../packages/components/src/chat/PkToolChatFile.vue","../../../../packages/components/src/chat/PkToolChatFile.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, ref } from 'vue'\n import { useI18n } from 'vue-i18n'\n import { SPREADSHEET_MIME_TYPE, WORD_MIME_TYPE } from 'models'\n import PkChatbotFilePreview from './PkChatbotFilePreview.vue'\n\n /**\n * One entry of `changes`: a cell (or an appended row, or a new sheet) of\n * `editSpreadsheet`, a paragraph or a table row of `editWordDocument`.\n */\n type ChatFileChange = {\n cell?: string\n op?: string\n before?: string\n after?: string\n newSheetRows?: number\n }\n\n /** What the four file tools return that the card shows. */\n type ChatFileOutput = {\n storedFileName: string\n filename?: string\n sizeBytes?: number\n version?: number\n changedCells?: number\n changedParagraphs?: number\n changes?: ChatFileChange[]\n moreChanges?: number\n /** Of a Word edit: the changes are revisions. */\n tracked?: boolean\n stalePivots?: true\n staleTableOfContents?: true\n }\n\n /** A run of an excerpt: text kept, taken away or put in. */\n type Segment = { text: string; kind: 'same' | 'removed' | 'added' }\n\n /**\n * A changed cell as a row of the table: its value before and after, or\n * the line that stands for a new sheet.\n */\n type CellRow = {\n sheet: string\n cell?: string\n before?: string\n after?: string\n newSheet?: string\n }\n\n /** The rows of one sheet, under its name. */\n type SheetGroup = { sheet: string; rows: CellRow[] }\n\n /** A changed paragraph or table row: what happened, and its words. */\n type ParagraphRow = { what: string; segments: Segment[] }\n\n /** The tools whose output is a Word document; the others write a spreadsheet. */\n const WORD_TOOL_PARTS = new Set([\n 'tool-editWordDocument',\n 'tool-createWordDocument',\n ])\n\n /** Rows shown before \"View more\": most edits are one to three changes. */\n const SHOWN_CHANGES = 3\n /** Words of context kept on each side of a change in a paragraph. */\n const CONTEXT_WORDS = 6\n\n /**\n * The file a call of `editSpreadsheet`, `editWordDocument`,\n * `createSpreadsheet` or `createWordDocument` wrote, a new version or a\n * new file, to download. Drawn once the call has an output: while it runs,\n * the feed's activity indicator names it, and a refused call is explained\n * by the answer. Under an edit, a frame says what changed, its first\n * rows shown: a table of cells for a spreadsheet, the changed words of\n * each paragraph for a Word document, and what is left to do in Office.\n */\n const props = defineProps<{\n part: unknown\n /** The authenticated download URL of a file stored in this chat. */\n fileUrl: (storedFileName: string) => string\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n const showAll = ref(false)\n\n /**\n * The services cut a long text for the model and give its length\n * (`… (523 characters)`, the marker of every tool result, written by\n * `wordDocument.service.ts` and `spreadsheet.service.ts`): the card keeps\n * the ellipsis only.\n */\n const withoutLength = (text: string | undefined) =>\n text?.replace(/… \\(\\d+ characters\\)$/, '…')\n\n /**\n * A run of unchanged words cut to a few words on the side of each change\n * it touches: the head of the text keeps its end, the tail its start, a\n * run between two changes both, with an ellipsis where words went.\n */\n const contextOf = (text: string, before: boolean, after: boolean) => {\n const runs = text.split(/(\\s+)/).filter(Boolean)\n // Every word is followed by its space: twice as many runs.\n const keep = CONTEXT_WORDS * 2\n if (runs.length <= (before && after ? keep * 2 : keep)) {\n return text\n }\n if (before && after) {\n return `${runs.slice(0, keep).join('')}… ${runs.slice(-keep).join('')}`\n }\n return after\n ? `…${runs.slice(-keep).join('')}`\n : `${runs.slice(0, keep).join('')}…`\n }\n\n /**\n * The words of `before` and `after` that differ, word by word, so the\n * words two changes share between them stay plain. An echoed paragraph\n * is at most a few hundred characters, a few dozen words for the table.\n */\n const excerptOf = (before: string, after: string): Segment[] => {\n const a = before.split(/(\\s+)/).filter(Boolean)\n const b = after.split(/(\\s+)/).filter(Boolean)\n // Longest common subsequence, from the end\n const common = Array.from({ length: a.length + 1 }, () =>\n new Array<number>(b.length + 1).fill(0),\n )\n for (let i = a.length - 1; i >= 0; i--) {\n for (let j = b.length - 1; j >= 0; j--) {\n common[i][j] =\n a[i] === b[j]\n ? common[i + 1][j + 1] + 1\n : Math.max(common[i + 1][j], common[i][j + 1])\n }\n }\n const runs: Segment[] = []\n const push = (text: string, kind: Segment['kind']) => {\n const last = runs[runs.length - 1]\n if (last?.kind === kind) {\n last.text += text\n } else {\n runs.push({ text, kind })\n }\n }\n let i = 0\n let j = 0\n while (i < a.length || j < b.length) {\n if (i < a.length && j < b.length && a[i] === b[j]) {\n push(a[i++], 'same')\n j++\n } else if (\n j >= b.length ||\n (i < a.length && common[i + 1][j] >= common[i][j + 1])\n ) {\n push(a[i++], 'removed')\n } else {\n push(b[j++], 'added')\n }\n }\n return runs.map((run, k) =>\n run.kind === 'same'\n ? {\n ...run,\n text: contextOf(run.text, k > 0, k < runs.length - 1),\n }\n : run,\n )\n }\n\n /** What a Word operation did, as the row says it. */\n const wordChangeLabel = (op: string | undefined) => {\n switch (op) {\n case 'insertParagraphs':\n return $t('messagePart.chatFileParagraphAdded')\n case 'deleteParagraphs':\n return $t('messagePart.chatFileParagraphDeleted')\n case 'insertTableRow':\n return $t('messagePart.chatFileTableRowAdded')\n case 'deleteTableRow':\n return $t('messagePart.chatFileTableRowDeleted')\n default:\n return $t('messagePart.chatFileParagraphChanged')\n }\n }\n\n /**\n * A paragraph marked as Word marks a revision, struck where words went\n * and underlined where they came. A paragraph only added or only removed\n * is said by its label: the text added stays plain, the text removed\n * stays struck.\n */\n const paragraphRow = (change: ChatFileChange): ParagraphRow => {\n const before = withoutLength(change.before)\n const after = withoutLength(change.after)\n return {\n what: wordChangeLabel(change.op),\n segments:\n before && after\n ? excerptOf(before, after)\n : [\n before\n ? { text: before, kind: 'removed' }\n : { text: after ?? '', kind: 'same' },\n ],\n }\n }\n\n /**\n * A cell as a person reads it: its sheet heads the group of its rows, so\n * the row says `C5` and not Excel's `Listino!C5`, and a row the edit\n * appended says \"Row 10\" and not `A10:F10`.\n */\n const cellRow = (change: ChatFileChange): CellRow => {\n const ref = change.cell ?? ''\n // A new sheet is named alone, with no cell. An edit made before the\n // card read `newSheetRows` said it only in the model's words.\n const legacy = change.before\n ? undefined\n : /^new sheet, (\\d+) row\\(s\\)$/.exec(change.after ?? '')?.[1]\n const rows =\n change.newSheetRows ?? (legacy ? Number(legacy) : undefined)\n if (rows !== undefined) {\n return {\n sheet: ref,\n newSheet: $t('messagePart.chatFileNewSheet', rows),\n }\n }\n\n const bang = ref.lastIndexOf('!')\n const cell = ref.slice(bang + 1)\n const appended = /^A(\\d+):[A-Z]+(\\d+)$/.exec(cell)\n return {\n sheet: ref.slice(0, Math.max(bang, 0)),\n cell:\n appended && appended[1] === appended[2]\n ? $t('messagePart.chatFileRow', { row: appended[1] })\n : cell,\n before: withoutLength(change.before) || undefined,\n after: withoutLength(change.after) || undefined,\n }\n }\n\n const file = computed(() => {\n const part = props.part as {\n type?: string\n state?: string\n output?: Partial<ChatFileOutput>\n }\n if (part.state !== 'output-available' || !part.output?.storedFileName) {\n return undefined\n }\n const output = part.output as ChatFileOutput\n const word = WORD_TOOL_PARTS.has(part.type ?? '')\n // A new file has no count of changes. Each key is written out in its\n // own call: the widget ships only the keys it finds that way.\n let changed: string | undefined\n if (word && output.changedParagraphs !== undefined) {\n changed = output.tracked\n ? $t(\n 'messagePart.editWordDocumentRevisions',\n output.changedParagraphs,\n )\n : $t(\n 'messagePart.editWordDocumentParagraphs',\n output.changedParagraphs,\n )\n } else if (!word && output.changedCells !== undefined) {\n changed = $t(\n 'messagePart.editSpreadsheetCells',\n output.changedCells,\n )\n }\n const changes = changed ? (output.changes ?? []) : []\n const reminders: string[] = []\n if (output.stalePivots) {\n reminders.push($t('messagePart.chatFileRefreshPivots'))\n }\n if (output.staleTableOfContents) {\n reminders.push($t('messagePart.chatFileUpdateTableOfContents'))\n }\n return {\n output,\n mediaType: word ? WORD_MIME_TYPE : SPREADSHEET_MIME_TYPE,\n summary:\n changed && output.version\n ? $t('messagePart.chatFileVersionSummary', {\n version: output.version,\n changed,\n })\n : changed,\n cells: word ? [] : changes.map(cellRow),\n paragraphs: word ? changes.map(paragraphRow) : [],\n count: changes.length,\n more: output.moreChanges ?? 0,\n reminders,\n }\n })\n\n const shown = <T,>(rows: T[] | undefined): T[] =>\n showAll.value ? (rows ?? []) : (rows ?? []).slice(0, SHOWN_CHANGES)\n const shownParagraphs = computed(() => shown(file.value?.paragraphs))\n /** The rows shown, a group per sheet in the order the edit reached it. */\n const shownSheets = computed(() => {\n const groups = new Map<string, SheetGroup>()\n for (const row of shown(file.value?.cells)) {\n const group = groups.get(row.sheet)\n if (group) {\n group.rows.push(row)\n } else {\n groups.set(row.sheet, { sheet: row.sheet, rows: [row] })\n }\n }\n return [...groups.values()]\n })\n const hiddenRows = computed(() => (file.value?.count ?? 0) - SHOWN_CHANGES)\n</script>\n\n<template>\n <div v-if=\"file\" class=\"pk-tool-chat-file\">\n <PkChatbotFilePreview\n :media-type=\"file.mediaType\"\n :url=\"fileUrl(file.output.storedFileName)\"\n :filename=\"file.output.filename\"\n :size=\"file.output.sizeBytes\"\n show-download />\n <section v-if=\"file.count\" class=\"pk-tool-chat-file__changes mt-xs\">\n <h4 class=\"pk-tool-chat-file__summary\">\n {{ file.summary }}\n </h4>\n <div class=\"pk-tool-chat-file__scroll\">\n <table\n v-if=\"file.cells.length\"\n class=\"pk-tool-chat-file__table\">\n <thead>\n <tr>\n <th scope=\"col\">\n {{ $t('messagePart.chatFileCell') }}\n </th>\n <th scope=\"col\">\n {{ $t('messagePart.chatFileBefore') }}\n </th>\n <th scope=\"col\">\n {{ $t('messagePart.chatFileAfter') }}\n </th>\n </tr>\n </thead>\n <tbody v-for=\"(group, g) in shownSheets\" :key=\"g\">\n <tr>\n <th\n colspan=\"3\"\n scope=\"rowgroup\"\n class=\"pk-tool-chat-file__sheet\">\n {{\n $t('messagePart.chatFileSheet', {\n name: group.sheet,\n })\n }}\n </th>\n </tr>\n <tr v-for=\"(row, index) in group.rows\" :key=\"index\">\n <td\n v-if=\"row.newSheet\"\n colspan=\"3\"\n class=\"pk-tool-chat-file__after\">\n {{ row.newSheet }}\n </td>\n <template v-else>\n <td class=\"pk-tool-chat-file__cell\">\n {{ row.cell }}\n </td>\n <td class=\"pk-tool-chat-file__before\">\n {{ row.before }}\n </td>\n <td class=\"pk-tool-chat-file__after\">\n {{ row.after }}\n </td>\n </template>\n </tr>\n </tbody>\n </table>\n <ul v-else class=\"pk-tool-chat-file__paragraphs\">\n <li\n v-for=\"(row, index) in shownParagraphs\"\n :key=\"index\"\n class=\"pk-tool-chat-file__paragraph\">\n <span class=\"pk-tool-chat-file__what\">\n {{ row.what }}\n </span>\n <span class=\"pk-tool-chat-file__text\">\n <template\n v-for=\"(segment, s) in row.segments\"\n :key=\"s\">\n <del\n v-if=\"segment.kind === 'removed'\"\n class=\"pk-tool-chat-file__removed\">\n {{ segment.text }}\n </del>\n <ins\n v-else-if=\"segment.kind === 'added'\"\n class=\"pk-tool-chat-file__added\">\n {{ segment.text }}\n </ins>\n <span v-else>{{ segment.text }}</span>\n </template>\n </span>\n </li>\n </ul>\n <p v-if=\"showAll && file.more\" class=\"pk-tool-chat-file__note\">\n {{ $t('messagePart.chatFileMoreChanges', file.more) }}\n </p>\n </div>\n <button\n v-if=\"hiddenRows > 0\"\n type=\"button\"\n class=\"pk-tool-chat-file__more\"\n :aria-expanded=\"showAll\"\n @click=\"showAll = !showAll\">\n <VvIcon\n :name=\"\n showAll ? 'ri:arrow-up-s-line' : 'ri:arrow-down-s-line'\n \"\n class=\"text-16\"\n aria-hidden=\"true\" />\n {{\n showAll\n ? $t('action.showLess')\n : $t('action.showMore', { count: hiddenRows })\n }}\n </button>\n <p\n v-for=\"reminder in file.reminders\"\n :key=\"reminder\"\n class=\"pk-tool-chat-file__reminder\">\n <VvIcon\n name=\"ri:information-line\"\n class=\"pk-tool-chat-file__reminder-icon\"\n aria-hidden=\"true\" />\n {{ reminder }}\n </p>\n </section>\n <p v-else-if=\"file.summary\" class=\"text-12 text-word-3 mt-xs mb-0\">\n {{ file.summary }}\n </p>\n </div>\n</template>\n\n<style lang=\"scss\">\n // One frame (DESIGN.md, principle 4): a hairline at surface-3, rounded-lg,\n // a solid ground over the dots of the chat, as wide as a short paragraph\n // while the file above keeps its 280px. Inside it every divider is one\n // hairline at surface-2.\n .pk-tool-chat-file__changes {\n max-width: 36rem;\n overflow: hidden;\n border: var(--border) solid var(--color-surface-3);\n border-radius: var(--rounded-lg);\n background-color: var(--color-surface);\n font-size: var(--text-12);\n }\n\n .pk-tool-chat-file__summary {\n margin: 0;\n padding: var(--spacing-8) var(--spacing-12);\n border-bottom: var(--border) solid var(--color-surface-3);\n color: var(--color-word-2);\n font-size: var(--text-12);\n font-weight: var(--font-medium);\n }\n\n // Bounded, so fifty changes scroll inside the frame\n .pk-tool-chat-file__scroll {\n max-height: 20rem;\n overflow-y: auto;\n }\n\n .pk-tool-chat-file__table {\n width: 100%;\n border-collapse: collapse;\n\n th,\n td {\n padding: var(--spacing-8) var(--spacing-12);\n border-bottom: var(--border) solid var(--color-surface-2);\n text-align: start;\n vertical-align: top;\n overflow-wrap: anywhere;\n }\n\n // Told apart by its weight and colour, no heavier rule\n th {\n color: var(--color-word-3);\n font-weight: var(--font-medium);\n }\n\n tbody:last-child tr:last-child td {\n border-bottom: 0;\n }\n }\n\n // The name of a sheet heads its rows, one step of surface under it\n .pk-tool-chat-file__table .pk-tool-chat-file__sheet {\n padding-block: var(--spacing-6);\n background-color: var(--color-surface-1);\n color: var(--color-word-2);\n }\n\n .pk-tool-chat-file__cell {\n width: 1%;\n color: var(--color-word-2);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n\n .pk-tool-chat-file__before {\n width: 50%;\n color: var(--color-word-3);\n }\n\n .pk-tool-chat-file__after {\n width: 50%;\n color: var(--color-word-1);\n }\n\n .pk-tool-chat-file__paragraphs {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .pk-tool-chat-file__paragraph {\n display: grid;\n grid-template-columns: minmax(4rem, max-content) 1fr;\n gap: var(--spacing-4) var(--spacing-md);\n padding: var(--spacing-8) var(--spacing-12);\n border-bottom: var(--border) solid var(--color-surface-2);\n\n &:last-child {\n border-bottom: 0;\n }\n }\n\n .pk-tool-chat-file__what {\n color: var(--color-word-3);\n white-space: nowrap;\n }\n\n .pk-tool-chat-file__text {\n min-width: 0;\n color: var(--color-word-2);\n overflow-wrap: anywhere;\n }\n\n // Marked as Word marks a revision, struck where words went and\n // underlined where they came, in the red and green of a comparison: the\n // change is what the row exists to report, the verdict exception of\n // DESIGN.md (principle 2). The readable text tokens hold the contrast in\n // both themes. The base styles take the line off `del`.\n .pk-tool-chat-file__removed {\n color: var(--u-danger-text);\n text-decoration: line-through;\n }\n\n .pk-tool-chat-file__added {\n color: var(--u-success-text);\n font-weight: var(--font-medium);\n text-decoration: underline;\n text-underline-offset: 0.2em;\n }\n\n .pk-tool-chat-file__removed + .pk-tool-chat-file__added {\n margin-inline-start: var(--spacing-4);\n }\n\n .pk-tool-chat-file__note {\n margin: 0;\n padding: var(--spacing-8) var(--spacing-12);\n border-top: var(--border) solid var(--color-surface-2);\n color: var(--color-word-3);\n }\n\n .pk-tool-chat-file__more {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-4);\n width: 100%;\n padding: var(--spacing-8) var(--spacing-12);\n border: 0;\n border-top: var(--border) solid var(--color-surface-2);\n background: none;\n color: var(--color-word-2);\n font: inherit;\n cursor: pointer;\n transition: background-color var(--duration-150) var(--ease-out);\n\n &:hover {\n background-color: var(--color-surface-1);\n }\n\n &:focus-visible {\n outline: var(--spacing-2) solid var(--input-focus-color);\n outline-offset: calc(var(--spacing-2) * -1);\n }\n }\n\n .pk-tool-chat-file__reminder {\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-8);\n margin: 0;\n padding: var(--spacing-8) var(--spacing-12);\n border-top: var(--border) solid var(--color-surface-2);\n color: var(--color-word-2);\n }\n\n .pk-tool-chat-file__reminder-icon {\n flex-shrink: 0;\n margin-top: var(--spacing-2);\n color: var(--color-word-3);\n font-size: var(--text-14);\n }\n</style>\n","<script setup lang=\"ts\">\n import { computed, ref } from 'vue'\n import { useI18n } from 'vue-i18n'\n import { SPREADSHEET_MIME_TYPE, WORD_MIME_TYPE } from 'models'\n import PkChatbotFilePreview from './PkChatbotFilePreview.vue'\n\n /**\n * One entry of `changes`: a cell (or an appended row, or a new sheet) of\n * `editSpreadsheet`, a paragraph or a table row of `editWordDocument`.\n */\n type ChatFileChange = {\n cell?: string\n op?: string\n before?: string\n after?: string\n newSheetRows?: number\n }\n\n /** What the four file tools return that the card shows. */\n type ChatFileOutput = {\n storedFileName: string\n filename?: string\n sizeBytes?: number\n version?: number\n changedCells?: number\n changedParagraphs?: number\n changes?: ChatFileChange[]\n moreChanges?: number\n /** Of a Word edit: the changes are revisions. */\n tracked?: boolean\n stalePivots?: true\n staleTableOfContents?: true\n }\n\n /** A run of an excerpt: text kept, taken away or put in. */\n type Segment = { text: string; kind: 'same' | 'removed' | 'added' }\n\n /**\n * A changed cell as a row of the table: its value before and after, or\n * the line that stands for a new sheet.\n */\n type CellRow = {\n sheet: string\n cell?: string\n before?: string\n after?: string\n newSheet?: string\n }\n\n /** The rows of one sheet, under its name. */\n type SheetGroup = { sheet: string; rows: CellRow[] }\n\n /** A changed paragraph or table row: what happened, and its words. */\n type ParagraphRow = { what: string; segments: Segment[] }\n\n /** The tools whose output is a Word document; the others write a spreadsheet. */\n const WORD_TOOL_PARTS = new Set([\n 'tool-editWordDocument',\n 'tool-createWordDocument',\n ])\n\n /** Rows shown before \"View more\": most edits are one to three changes. */\n const SHOWN_CHANGES = 3\n /** Words of context kept on each side of a change in a paragraph. */\n const CONTEXT_WORDS = 6\n\n /**\n * The file a call of `editSpreadsheet`, `editWordDocument`,\n * `createSpreadsheet` or `createWordDocument` wrote, a new version or a\n * new file, to download. Drawn once the call has an output: while it runs,\n * the feed's activity indicator names it, and a refused call is explained\n * by the answer. Under an edit, a frame says what changed, its first\n * rows shown: a table of cells for a spreadsheet, the changed words of\n * each paragraph for a Word document, and what is left to do in Office.\n */\n const props = defineProps<{\n part: unknown\n /** The authenticated download URL of a file stored in this chat. */\n fileUrl: (storedFileName: string) => string\n }>()\n\n const { t: $t } = useI18n({ useScope: 'global' })\n\n const showAll = ref(false)\n\n /**\n * The services cut a long text for the model and give its length\n * (`… (523 characters)`, the marker of every tool result, written by\n * `wordDocument.service.ts` and `spreadsheet.service.ts`): the card keeps\n * the ellipsis only.\n */\n const withoutLength = (text: string | undefined) =>\n text?.replace(/… \\(\\d+ characters\\)$/, '…')\n\n /**\n * A run of unchanged words cut to a few words on the side of each change\n * it touches: the head of the text keeps its end, the tail its start, a\n * run between two changes both, with an ellipsis where words went.\n */\n const contextOf = (text: string, before: boolean, after: boolean) => {\n const runs = text.split(/(\\s+)/).filter(Boolean)\n // Every word is followed by its space: twice as many runs.\n const keep = CONTEXT_WORDS * 2\n if (runs.length <= (before && after ? keep * 2 : keep)) {\n return text\n }\n if (before && after) {\n return `${runs.slice(0, keep).join('')}… ${runs.slice(-keep).join('')}`\n }\n return after\n ? `…${runs.slice(-keep).join('')}`\n : `${runs.slice(0, keep).join('')}…`\n }\n\n /**\n * The words of `before` and `after` that differ, word by word, so the\n * words two changes share between them stay plain. An echoed paragraph\n * is at most a few hundred characters, a few dozen words for the table.\n */\n const excerptOf = (before: string, after: string): Segment[] => {\n const a = before.split(/(\\s+)/).filter(Boolean)\n const b = after.split(/(\\s+)/).filter(Boolean)\n // Longest common subsequence, from the end\n const common = Array.from({ length: a.length + 1 }, () =>\n new Array<number>(b.length + 1).fill(0),\n )\n for (let i = a.length - 1; i >= 0; i--) {\n for (let j = b.length - 1; j >= 0; j--) {\n common[i][j] =\n a[i] === b[j]\n ? common[i + 1][j + 1] + 1\n : Math.max(common[i + 1][j], common[i][j + 1])\n }\n }\n const runs: Segment[] = []\n const push = (text: string, kind: Segment['kind']) => {\n const last = runs[runs.length - 1]\n if (last?.kind === kind) {\n last.text += text\n } else {\n runs.push({ text, kind })\n }\n }\n let i = 0\n let j = 0\n while (i < a.length || j < b.length) {\n if (i < a.length && j < b.length && a[i] === b[j]) {\n push(a[i++], 'same')\n j++\n } else if (\n j >= b.length ||\n (i < a.length && common[i + 1][j] >= common[i][j + 1])\n ) {\n push(a[i++], 'removed')\n } else {\n push(b[j++], 'added')\n }\n }\n return runs.map((run, k) =>\n run.kind === 'same'\n ? {\n ...run,\n text: contextOf(run.text, k > 0, k < runs.length - 1),\n }\n : run,\n )\n }\n\n /** What a Word operation did, as the row says it. */\n const wordChangeLabel = (op: string | undefined) => {\n switch (op) {\n case 'insertParagraphs':\n return $t('messagePart.chatFileParagraphAdded')\n case 'deleteParagraphs':\n return $t('messagePart.chatFileParagraphDeleted')\n case 'insertTableRow':\n return $t('messagePart.chatFileTableRowAdded')\n case 'deleteTableRow':\n return $t('messagePart.chatFileTableRowDeleted')\n default:\n return $t('messagePart.chatFileParagraphChanged')\n }\n }\n\n /**\n * A paragraph marked as Word marks a revision, struck where words went\n * and underlined where they came. A paragraph only added or only removed\n * is said by its label: the text added stays plain, the text removed\n * stays struck.\n */\n const paragraphRow = (change: ChatFileChange): ParagraphRow => {\n const before = withoutLength(change.before)\n const after = withoutLength(change.after)\n return {\n what: wordChangeLabel(change.op),\n segments:\n before && after\n ? excerptOf(before, after)\n : [\n before\n ? { text: before, kind: 'removed' }\n : { text: after ?? '', kind: 'same' },\n ],\n }\n }\n\n /**\n * A cell as a person reads it: its sheet heads the group of its rows, so\n * the row says `C5` and not Excel's `Listino!C5`, and a row the edit\n * appended says \"Row 10\" and not `A10:F10`.\n */\n const cellRow = (change: ChatFileChange): CellRow => {\n const ref = change.cell ?? ''\n // A new sheet is named alone, with no cell. An edit made before the\n // card read `newSheetRows` said it only in the model's words.\n const legacy = change.before\n ? undefined\n : /^new sheet, (\\d+) row\\(s\\)$/.exec(change.after ?? '')?.[1]\n const rows =\n change.newSheetRows ?? (legacy ? Number(legacy) : undefined)\n if (rows !== undefined) {\n return {\n sheet: ref,\n newSheet: $t('messagePart.chatFileNewSheet', rows),\n }\n }\n\n const bang = ref.lastIndexOf('!')\n const cell = ref.slice(bang + 1)\n const appended = /^A(\\d+):[A-Z]+(\\d+)$/.exec(cell)\n return {\n sheet: ref.slice(0, Math.max(bang, 0)),\n cell:\n appended && appended[1] === appended[2]\n ? $t('messagePart.chatFileRow', { row: appended[1] })\n : cell,\n before: withoutLength(change.before) || undefined,\n after: withoutLength(change.after) || undefined,\n }\n }\n\n const file = computed(() => {\n const part = props.part as {\n type?: string\n state?: string\n output?: Partial<ChatFileOutput>\n }\n if (part.state !== 'output-available' || !part.output?.storedFileName) {\n return undefined\n }\n const output = part.output as ChatFileOutput\n const word = WORD_TOOL_PARTS.has(part.type ?? '')\n // A new file has no count of changes. Each key is written out in its\n // own call: the widget ships only the keys it finds that way.\n let changed: string | undefined\n if (word && output.changedParagraphs !== undefined) {\n changed = output.tracked\n ? $t(\n 'messagePart.editWordDocumentRevisions',\n output.changedParagraphs,\n )\n : $t(\n 'messagePart.editWordDocumentParagraphs',\n output.changedParagraphs,\n )\n } else if (!word && output.changedCells !== undefined) {\n changed = $t(\n 'messagePart.editSpreadsheetCells',\n output.changedCells,\n )\n }\n const changes = changed ? (output.changes ?? []) : []\n const reminders: string[] = []\n if (output.stalePivots) {\n reminders.push($t('messagePart.chatFileRefreshPivots'))\n }\n if (output.staleTableOfContents) {\n reminders.push($t('messagePart.chatFileUpdateTableOfContents'))\n }\n return {\n output,\n mediaType: word ? WORD_MIME_TYPE : SPREADSHEET_MIME_TYPE,\n summary:\n changed && output.version\n ? $t('messagePart.chatFileVersionSummary', {\n version: output.version,\n changed,\n })\n : changed,\n cells: word ? [] : changes.map(cellRow),\n paragraphs: word ? changes.map(paragraphRow) : [],\n count: changes.length,\n more: output.moreChanges ?? 0,\n reminders,\n }\n })\n\n const shown = <T,>(rows: T[] | undefined): T[] =>\n showAll.value ? (rows ?? []) : (rows ?? []).slice(0, SHOWN_CHANGES)\n const shownParagraphs = computed(() => shown(file.value?.paragraphs))\n /** The rows shown, a group per sheet in the order the edit reached it. */\n const shownSheets = computed(() => {\n const groups = new Map<string, SheetGroup>()\n for (const row of shown(file.value?.cells)) {\n const group = groups.get(row.sheet)\n if (group) {\n group.rows.push(row)\n } else {\n groups.set(row.sheet, { sheet: row.sheet, rows: [row] })\n }\n }\n return [...groups.values()]\n })\n const hiddenRows = computed(() => (file.value?.count ?? 0) - SHOWN_CHANGES)\n</script>\n\n<template>\n <div v-if=\"file\" class=\"pk-tool-chat-file\">\n <PkChatbotFilePreview\n :media-type=\"file.mediaType\"\n :url=\"fileUrl(file.output.storedFileName)\"\n :filename=\"file.output.filename\"\n :size=\"file.output.sizeBytes\"\n show-download />\n <section v-if=\"file.count\" class=\"pk-tool-chat-file__changes mt-xs\">\n <h4 class=\"pk-tool-chat-file__summary\">\n {{ file.summary }}\n </h4>\n <div class=\"pk-tool-chat-file__scroll\">\n <table\n v-if=\"file.cells.length\"\n class=\"pk-tool-chat-file__table\">\n <thead>\n <tr>\n <th scope=\"col\">\n {{ $t('messagePart.chatFileCell') }}\n </th>\n <th scope=\"col\">\n {{ $t('messagePart.chatFileBefore') }}\n </th>\n <th scope=\"col\">\n {{ $t('messagePart.chatFileAfter') }}\n </th>\n </tr>\n </thead>\n <tbody v-for=\"(group, g) in shownSheets\" :key=\"g\">\n <tr>\n <th\n colspan=\"3\"\n scope=\"rowgroup\"\n class=\"pk-tool-chat-file__sheet\">\n {{\n $t('messagePart.chatFileSheet', {\n name: group.sheet,\n })\n }}\n </th>\n </tr>\n <tr v-for=\"(row, index) in group.rows\" :key=\"index\">\n <td\n v-if=\"row.newSheet\"\n colspan=\"3\"\n class=\"pk-tool-chat-file__after\">\n {{ row.newSheet }}\n </td>\n <template v-else>\n <td class=\"pk-tool-chat-file__cell\">\n {{ row.cell }}\n </td>\n <td class=\"pk-tool-chat-file__before\">\n {{ row.before }}\n </td>\n <td class=\"pk-tool-chat-file__after\">\n {{ row.after }}\n </td>\n </template>\n </tr>\n </tbody>\n </table>\n <ul v-else class=\"pk-tool-chat-file__paragraphs\">\n <li\n v-for=\"(row, index) in shownParagraphs\"\n :key=\"index\"\n class=\"pk-tool-chat-file__paragraph\">\n <span class=\"pk-tool-chat-file__what\">\n {{ row.what }}\n </span>\n <span class=\"pk-tool-chat-file__text\">\n <template\n v-for=\"(segment, s) in row.segments\"\n :key=\"s\">\n <del\n v-if=\"segment.kind === 'removed'\"\n class=\"pk-tool-chat-file__removed\">\n {{ segment.text }}\n </del>\n <ins\n v-else-if=\"segment.kind === 'added'\"\n class=\"pk-tool-chat-file__added\">\n {{ segment.text }}\n </ins>\n <span v-else>{{ segment.text }}</span>\n </template>\n </span>\n </li>\n </ul>\n <p v-if=\"showAll && file.more\" class=\"pk-tool-chat-file__note\">\n {{ $t('messagePart.chatFileMoreChanges', file.more) }}\n </p>\n </div>\n <button\n v-if=\"hiddenRows > 0\"\n type=\"button\"\n class=\"pk-tool-chat-file__more\"\n :aria-expanded=\"showAll\"\n @click=\"showAll = !showAll\">\n <VvIcon\n :name=\"\n showAll ? 'ri:arrow-up-s-line' : 'ri:arrow-down-s-line'\n \"\n class=\"text-16\"\n aria-hidden=\"true\" />\n {{\n showAll\n ? $t('action.showLess')\n : $t('action.showMore', { count: hiddenRows })\n }}\n </button>\n <p\n v-for=\"reminder in file.reminders\"\n :key=\"reminder\"\n class=\"pk-tool-chat-file__reminder\">\n <VvIcon\n name=\"ri:information-line\"\n class=\"pk-tool-chat-file__reminder-icon\"\n aria-hidden=\"true\" />\n {{ reminder }}\n </p>\n </section>\n <p v-else-if=\"file.summary\" class=\"text-12 text-word-3 mt-xs mb-0\">\n {{ file.summary }}\n </p>\n </div>\n</template>\n\n<style lang=\"scss\">\n // One frame (DESIGN.md, principle 4): a hairline at surface-3, rounded-lg,\n // a solid ground over the dots of the chat, as wide as a short paragraph\n // while the file above keeps its 280px. Inside it every divider is one\n // hairline at surface-2.\n .pk-tool-chat-file__changes {\n max-width: 36rem;\n overflow: hidden;\n border: var(--border) solid var(--color-surface-3);\n border-radius: var(--rounded-lg);\n background-color: var(--color-surface);\n font-size: var(--text-12);\n }\n\n .pk-tool-chat-file__summary {\n margin: 0;\n padding: var(--spacing-8) var(--spacing-12);\n border-bottom: var(--border) solid var(--color-surface-3);\n color: var(--color-word-2);\n font-size: var(--text-12);\n font-weight: var(--font-medium);\n }\n\n // Bounded, so fifty changes scroll inside the frame\n .pk-tool-chat-file__scroll {\n max-height: 20rem;\n overflow-y: auto;\n }\n\n .pk-tool-chat-file__table {\n width: 100%;\n border-collapse: collapse;\n\n th,\n td {\n padding: var(--spacing-8) var(--spacing-12);\n border-bottom: var(--border) solid var(--color-surface-2);\n text-align: start;\n vertical-align: top;\n overflow-wrap: anywhere;\n }\n\n // Told apart by its weight and colour, no heavier rule\n th {\n color: var(--color-word-3);\n font-weight: var(--font-medium);\n }\n\n tbody:last-child tr:last-child td {\n border-bottom: 0;\n }\n }\n\n // The name of a sheet heads its rows, one step of surface under it\n .pk-tool-chat-file__table .pk-tool-chat-file__sheet {\n padding-block: var(--spacing-6);\n background-color: var(--color-surface-1);\n color: var(--color-word-2);\n }\n\n .pk-tool-chat-file__cell {\n width: 1%;\n color: var(--color-word-2);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n\n .pk-tool-chat-file__before {\n width: 50%;\n color: var(--color-word-3);\n }\n\n .pk-tool-chat-file__after {\n width: 50%;\n color: var(--color-word-1);\n }\n\n .pk-tool-chat-file__paragraphs {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n .pk-tool-chat-file__paragraph {\n display: grid;\n grid-template-columns: minmax(4rem, max-content) 1fr;\n gap: var(--spacing-4) var(--spacing-md);\n padding: var(--spacing-8) var(--spacing-12);\n border-bottom: var(--border) solid var(--color-surface-2);\n\n &:last-child {\n border-bottom: 0;\n }\n }\n\n .pk-tool-chat-file__what {\n color: var(--color-word-3);\n white-space: nowrap;\n }\n\n .pk-tool-chat-file__text {\n min-width: 0;\n color: var(--color-word-2);\n overflow-wrap: anywhere;\n }\n\n // Marked as Word marks a revision, struck where words went and\n // underlined where they came, in the red and green of a comparison: the\n // change is what the row exists to report, the verdict exception of\n // DESIGN.md (principle 2). The readable text tokens hold the contrast in\n // both themes. The base styles take the line off `del`.\n .pk-tool-chat-file__removed {\n color: var(--u-danger-text);\n text-decoration: line-through;\n }\n\n .pk-tool-chat-file__added {\n color: var(--u-success-text);\n font-weight: var(--font-medium);\n text-decoration: underline;\n text-underline-offset: 0.2em;\n }\n\n .pk-tool-chat-file__removed + .pk-tool-chat-file__added {\n margin-inline-start: var(--spacing-4);\n }\n\n .pk-tool-chat-file__note {\n margin: 0;\n padding: var(--spacing-8) var(--spacing-12);\n border-top: var(--border) solid var(--color-surface-2);\n color: var(--color-word-3);\n }\n\n .pk-tool-chat-file__more {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--spacing-4);\n width: 100%;\n padding: var(--spacing-8) var(--spacing-12);\n border: 0;\n border-top: var(--border) solid var(--color-surface-2);\n background: none;\n color: var(--color-word-2);\n font: inherit;\n cursor: pointer;\n transition: background-color var(--duration-150) var(--ease-out);\n\n &:hover {\n background-color: var(--color-surface-1);\n }\n\n &:focus-visible {\n outline: var(--spacing-2) solid var(--input-focus-color);\n outline-offset: calc(var(--spacing-2) * -1);\n }\n }\n\n .pk-tool-chat-file__reminder {\n display: flex;\n align-items: flex-start;\n gap: var(--spacing-8);\n margin: 0;\n padding: var(--spacing-8) var(--spacing-12);\n border-top: var(--border) solid var(--color-surface-2);\n color: var(--color-word-2);\n }\n\n .pk-tool-chat-file__reminder-icon {\n flex-shrink: 0;\n margin-top: var(--spacing-2);\n color: var(--color-word-3);\n font-size: var(--text-14);\n }\n</style>\n"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zBL,EACIwC,EAAA,QAAkCvC,EAAAqC,CAAA,CAAE,CAAA,iBAAA,IAA8CrC,EAAAqC,CAAA,CAAE,CAAA,mBAAA,EAAA,OAA6B6C,EAAA,MAAU,CAAA,CAAA,GAAA,CAAA,C;KAKnIxF,EAAA,EAAA,GAAAC,EASIM,GAAA,MAAAC,EARmBkE,EAAA,MAAK,YAAjB,OADX1E,EAAA,GAAAC,EASI,KAAA;KAPC,KAAKyG;KACN,OAAM;I,IACNxG,EAGyBuF,GAAA;KAFrB,MAAK;KACL,OAAM;KACN,eAAY;I,IAAS/E,EAAA,MACzBL,EAAGqG,CAAQ,GAAA,CAAA,C;G,MAGLhC,EAAA,MAAK,WAAnB1E,EAAA,GAAAC,EAEI,KAFJmC,GAEI/B,EADGqE,EAAA,MAAK,OAAO,GAAA,CAAA,K"}
|
package/dist-vue/composables.js
CHANGED
|
@@ -1264,6 +1264,22 @@ var R = {
|
|
|
1264
1264
|
editSpreadsheetCells: "{count} cella modificata | {count} celle modificate",
|
|
1265
1265
|
editWordDocument: "Modifica del documento Word…",
|
|
1266
1266
|
editWordDocumentParagraphs: "{count} paragrafo modificato | {count} paragrafi modificati",
|
|
1267
|
+
editWordDocumentRevisions: "{count} paragrafo modificato come revisione | {count} paragrafi modificati come revisioni",
|
|
1268
|
+
chatFileParagraphChanged: "Modificato",
|
|
1269
|
+
chatFileParagraphAdded: "Aggiunto",
|
|
1270
|
+
chatFileParagraphDeleted: "Eliminato",
|
|
1271
|
+
chatFileTableRowAdded: "Riga aggiunta",
|
|
1272
|
+
chatFileTableRowDeleted: "Riga eliminata",
|
|
1273
|
+
chatFileVersionSummary: "Versione {version}: {changed}",
|
|
1274
|
+
chatFileMoreChanges: "e un'altra modifica | e altre {count} modifiche",
|
|
1275
|
+
chatFileSheet: "Foglio {name}",
|
|
1276
|
+
chatFileRow: "Riga {row}",
|
|
1277
|
+
chatFileNewSheet: "Foglio nuovo, con {count} riga | Foglio nuovo, con {count} righe",
|
|
1278
|
+
chatFileCell: "Cella",
|
|
1279
|
+
chatFileBefore: "Prima",
|
|
1280
|
+
chatFileAfter: "Dopo",
|
|
1281
|
+
chatFileRefreshPivots: "Le tabelle pivot mostrano ancora i dati di prima: aggiornale in Excel con Dati, Aggiorna tutto.",
|
|
1282
|
+
chatFileUpdateTableOfContents: "L'indice non si aggiorna da solo: in Word fai clic destro sull'indice e scegli Aggiorna campo.",
|
|
1267
1283
|
enableTools: "Attivazione dei tool…",
|
|
1268
1284
|
expandChunkContext: "Lettura di altro contesto…",
|
|
1269
1285
|
fetchTeamsChannelHistory: "Lettura cronologia canale…",
|
|
@@ -3269,6 +3285,22 @@ var R = {
|
|
|
3269
3285
|
editSpreadsheetCells: "{count} cell changed | {count} cells changed",
|
|
3270
3286
|
editWordDocument: "Editing the Word document…",
|
|
3271
3287
|
editWordDocumentParagraphs: "{count} paragraph changed | {count} paragraphs changed",
|
|
3288
|
+
editWordDocumentRevisions: "{count} paragraph changed as a tracked change | {count} paragraphs changed as tracked changes",
|
|
3289
|
+
chatFileParagraphChanged: "Changed",
|
|
3290
|
+
chatFileParagraphAdded: "Added",
|
|
3291
|
+
chatFileParagraphDeleted: "Deleted",
|
|
3292
|
+
chatFileTableRowAdded: "Row added",
|
|
3293
|
+
chatFileTableRowDeleted: "Row deleted",
|
|
3294
|
+
chatFileVersionSummary: "Version {version}: {changed}",
|
|
3295
|
+
chatFileMoreChanges: "and {count} more change | and {count} more changes",
|
|
3296
|
+
chatFileSheet: "Sheet {name}",
|
|
3297
|
+
chatFileRow: "Row {row}",
|
|
3298
|
+
chatFileNewSheet: "New sheet, with {count} row | New sheet, with {count} rows",
|
|
3299
|
+
chatFileCell: "Cell",
|
|
3300
|
+
chatFileBefore: "Before",
|
|
3301
|
+
chatFileAfter: "After",
|
|
3302
|
+
chatFileRefreshPivots: "The pivot tables still show the old figures: refresh them in Excel with Data, Refresh All.",
|
|
3303
|
+
chatFileUpdateTableOfContents: "The table of contents does not update by itself: in Word, right click it and choose Update Field.",
|
|
3272
3304
|
enableTools: "Enabling tools…",
|
|
3273
3305
|
expandChunkContext: "Reading more context…",
|
|
3274
3306
|
fetchTeamsChannelHistory: "Reading channel history…",
|