@8wave/ai-elements 0.125.0-beta.3 → 0.125.0-beta.5
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/{Agent-BBWFD4nI.js → Agent-DZhK49jg.js} +99 -96
- package/dist/_chunks/Agent-DZhK49jg.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-BwHe4-m1.js → PkFilePreview-C3R3jrNi.js} +31 -31
- package/dist/_chunks/{PkFilePreview-BwHe4-m1.js.map → PkFilePreview-C3R3jrNi.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js → PkFilePreviewDialog-BAKFOnPI.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js.map → PkFilePreviewDialog-BAKFOnPI.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js → PkStreamingMarkdown-BM-DSTPr.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js.map → PkStreamingMarkdown-BM-DSTPr.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js → PkToolChatFile-DbeOmRPh.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js.map → PkToolChatFile-DbeOmRPh.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js → PkToolRequestGeolocation-CCz4REP9.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js.map → PkToolRequestGeolocation-CCz4REP9.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js → PkToolRequestOAuthConnection-BU-4Sm3z.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js.map → PkToolRequestOAuthConnection-BU-4Sm3z.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js → PkToolShowArtifact-utxGuLLt.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js.map → PkToolShowArtifact-utxGuLLt.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js → PkToolShowContactForm-DTtE93D3.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js.map → PkToolShowContactForm-DTtE93D3.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js → PkToolShowForm-I4pKopEI.js} +6 -6
- package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js.map → PkToolShowForm-I4pKopEI.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js → PkToolShowImageGallery-skV87BlD.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js.map → PkToolShowImageGallery-skV87BlD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js → PkToolShowProductList-CcdOQoxf.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js.map → PkToolShowProductList-CcdOQoxf.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js → PkToolShowSources-DLmVS3bL.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js.map → PkToolShowSources-DLmVS3bL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js → PkToolShowSuggestedReply-Cv-WVCFN.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js.map → PkToolShowSuggestedReply-Cv-WVCFN.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js → PkToolShowVideo-D_K95gTR.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js.map → PkToolShowVideo-D_K95gTR.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js → PkToolShowWebPages-DsfMacw-.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js.map → PkToolShowWebPages-DsfMacw-.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js → chatImagePolicy-BfgdFbm_.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js.map → chatImagePolicy-BfgdFbm_.js.map} +1 -1
- package/dist/_chunks/{markdown-DDYeZICP.js → markdown-CrMYpY8l.js} +10 -10
- package/dist/_chunks/{markdown-DDYeZICP.js.map → markdown-CrMYpY8l.js.map} +1 -1
- package/dist/_chunks/{utils-euH8esYP.js → utils-CbhqxYyx.js} +57 -57
- package/dist/_chunks/utils-CbhqxYyx.js.map +1 -0
- package/dist/ai-elements.es.js +3812 -3717
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/_chunks/{Agent-DQl-tv4S.js → Agent-BtXBSGy6.js} +34 -31
- package/dist-vue/_chunks/Agent-BtXBSGy6.js.map +1 -0
- package/dist-vue/_chunks/{Document-DXDifFZE.js → Document-DERAWuR0.js} +10 -10
- package/dist-vue/_chunks/{Document-DXDifFZE.js.map → Document-DERAWuR0.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbot-Qrk8yEM0.js +294 -0
- package/dist-vue/_chunks/PkChatbot-Qrk8yEM0.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js → PkChatbotEmptyState-C9aUiynZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js.map → PkChatbotEmptyState-C9aUiynZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-BK7f1jFE.js → PkChatbotInput-Bs8nn-Jz.js} +154 -135
- package/dist-vue/_chunks/PkChatbotInput-Bs8nn-Jz.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotMessages-DAwGWRtd.js +1039 -0
- package/dist-vue/_chunks/PkChatbotMessages-DAwGWRtd.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js → PkChatbotStepPayload-C45aVagz.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js.map → PkChatbotStepPayload-C45aVagz.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js → PkChatbotStepToolDetail-B0tC33x6.js} +16 -16
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js.map → PkChatbotStepToolDetail-B0tC33x6.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js +215 -0
- package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-D8depeWQ.js → PkChatbotViewChat-CMFc4eLD.js} +450 -446
- package/dist-vue/_chunks/PkChatbotViewChat-CMFc4eLD.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js → PkChatbotViewConversations-CtxE_a1O.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js.map → PkChatbotViewConversations-CtxE_a1O.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js → PkChatbotViewFiles-B51zU374.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js.map → PkChatbotViewFiles-B51zU374.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js → PkChatbotViewProfile-BSKRU7Ae.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js.map → PkChatbotViewProfile-BSKRU7Ae.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js → PkFilePreview-p-AGDrXi.js} +30 -30
- package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js.map → PkFilePreview-p-AGDrXi.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js → PkFilePreviewDialog-BpeeWS6d.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js.map → PkFilePreviewDialog-BpeeWS6d.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js → PkStreamingMarkdown-DlcTV5je.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js.map → PkStreamingMarkdown-DlcTV5je.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js → PkToolChatFile-HWGjtuaT.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js.map → PkToolChatFile-HWGjtuaT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js → PkToolRequestGeolocation-euI4VBVe.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js.map → PkToolRequestGeolocation-euI4VBVe.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js → PkToolRequestOAuthConnection-DAAYyufP.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js.map → PkToolRequestOAuthConnection-DAAYyufP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js → PkToolShowArtifact-C8OIF_sy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js.map → PkToolShowArtifact-C8OIF_sy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js → PkToolShowContactForm-K6Z5MUXk.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js.map → PkToolShowContactForm-K6Z5MUXk.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js → PkToolShowDiagram-DrlGh_v6.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js.map → PkToolShowDiagram-DrlGh_v6.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js → PkToolShowForm-DzsXJfOl.js} +6 -6
- package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js.map → PkToolShowForm-DzsXJfOl.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js → PkToolShowImageGallery-sCyrPOIT.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js.map → PkToolShowImageGallery-sCyrPOIT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js → PkToolShowProductList-DPDDeVu4.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js.map → PkToolShowProductList-DPDDeVu4.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js → PkToolShowSources-D4zjssdh.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js.map → PkToolShowSources-D4zjssdh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js → PkToolShowSuggestedReply-smfC1hlT.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js.map → PkToolShowSuggestedReply-smfC1hlT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js → PkToolShowVideo-C77DAqoZ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js.map → PkToolShowVideo-C77DAqoZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js → PkToolShowWebPages-D_tqGI6o.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js.map → PkToolShowWebPages-D_tqGI6o.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-Bukf58dz.js → createChatbotApiClient-CO6l0P79.js} +87 -85
- package/dist-vue/_chunks/createChatbotApiClient-CO6l0P79.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-DcvdWkgq.js → useChatbotStore-CY1gAHOh.js} +1224 -1201
- package/dist-vue/_chunks/useChatbotStore-CY1gAHOh.js.map +1 -0
- package/dist-vue/_chunks/{utils-B0PnU1Rk.js → utils-CX4JuhXz.js} +66 -66
- package/dist-vue/_chunks/utils-CX4JuhXz.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
- package/dist-vue/composables.js +16 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3394 -3359
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +16 -0
- package/dist-vue/packages/components/src/chat/PkAgentPageAccessSettings.d.ts +5 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +10 -8
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +11 -3
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +2 -2
- package/dist-vue/packages/components/src/chat/PkFieldChanges.d.ts +15 -0
- package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +1 -2
- package/dist-vue/packages/components/src/chat/utils.d.ts +18 -0
- package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
- package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +10 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +31 -4
- package/dist-vue/packages/models/src/schema/Agent.d.ts +41 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +9 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-BBWFD4nI.js.map +0 -1
- package/dist/_chunks/utils-euH8esYP.js.map +0 -1
- package/dist-vue/_chunks/Agent-DQl-tv4S.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js +0 -286
- package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-BK7f1jFE.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js +0 -1041
- package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js +0 -189
- package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-D8depeWQ.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-Bukf58dz.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-DcvdWkgq.js.map +0 -1
- package/dist-vue/_chunks/utils-B0PnU1Rk.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { r as e } from "./rolldown-runtime-9rEmUaIe.js";
|
|
|
2
2
|
import { A as t, B as n, Et as r, F as i, I as a, J as o, L as s, N as c, Ot as l, Q as u, S as d, Tt as f, V as p, X as m, _ as h, d as g, f as _, g as v, gt as y, h as b, j as ee, k as x, kt as S, ot as C, r as w, tt as T, v as E, w as D, wt as O, x as k, y as A, z as j } from "./vue.runtime.esm-bundler-C2U5uTqB.js";
|
|
3
3
|
import { r as te } from "./vue-i18n-POtLvOl1.js";
|
|
4
4
|
import { i as M, n as N, r as ne } from "./excelNumberFormat-CIbRUEwQ.js";
|
|
5
|
-
import { B as re,
|
|
5
|
+
import { B as re, G as ie, H as P, R as ae, U as oe, V as F, W as I, o as se, z as L } from "./utils-CbhqxYyx.js";
|
|
6
6
|
import { l as ce } from "./dist-B3-I_01H.js";
|
|
7
7
|
import { t as R } from "./index.es-C7ON2BA3.js";
|
|
8
8
|
import { t as le } from "./VvButtonLocalized-KEhD3ono.js";
|
|
@@ -77,15 +77,15 @@ var V = { class: "pk-spreadsheet-preview" }, ue = { class: "pk-spreadsheet-previ
|
|
|
77
77
|
let e = /* @__PURE__ */ new Map();
|
|
78
78
|
for (let t of C.value?.rows ?? []) for (let n of t.cells) e.set(`${t.row},${n.col}`, n);
|
|
79
79
|
return e;
|
|
80
|
-
}),
|
|
80
|
+
}), oe = b(() => {
|
|
81
81
|
let e = /* @__PURE__ */ new Map();
|
|
82
82
|
for (let t of C.value?.rows ?? []) for (let n of t.cells) if (n.span) for (let r = 0; r < n.span.rows; r++) for (let i = 0; i < n.span.cols; i++) (r || i) && e.set(`${t.row + r},${n.col + i}`, {
|
|
83
83
|
row: t.row,
|
|
84
84
|
col: n.col
|
|
85
85
|
});
|
|
86
86
|
return e;
|
|
87
|
-
}),
|
|
88
|
-
let n =
|
|
87
|
+
}), F = (e, t) => ae.value.get(`${e},${t}`), I = (e, t) => {
|
|
88
|
+
let n = F(e, t)?.span;
|
|
89
89
|
if (n) return {
|
|
90
90
|
rows: P.value.filter((t) => t.row >= e && t.row < e + n.rows).length,
|
|
91
91
|
cols: T.value.filter((e) => e.col >= t && e.col < t + n.cols).length
|
|
@@ -198,7 +198,7 @@ var V = { class: "pk-spreadsheet-preview" }, ue = { class: "pk-spreadsheet-previ
|
|
|
198
198
|
}[e.key];
|
|
199
199
|
if (!t) return;
|
|
200
200
|
e.preventDefault();
|
|
201
|
-
let n = P.value.map((e) => e.row), r = T.value.map((e) => e.col), a = (e) =>
|
|
201
|
+
let n = P.value.map((e) => e.row), r = T.value.map((e) => e.col), a = (e) => oe.value.get(`${e.row},${e.col}`) ?? e, o = a(X.value), s = n.indexOf(X.value.row), c = r.indexOf(X.value.col), l = o;
|
|
202
202
|
for (;;) {
|
|
203
203
|
let e = Math.min(n.length - 1, Math.max(0, s + t[0])), i = Math.min(r.length - 1, Math.max(0, c + t[1]));
|
|
204
204
|
if (e === s && i === c || (s = e, c = i, l = a({
|
|
@@ -210,12 +210,12 @@ var V = { class: "pk-spreadsheet-preview" }, ue = { class: "pk-spreadsheet-previ
|
|
|
210
210
|
block: "nearest",
|
|
211
211
|
inline: "nearest"
|
|
212
212
|
}));
|
|
213
|
-
}, Pe = b(() =>
|
|
213
|
+
}, Pe = b(() => F(X.value.row, X.value.col)), $ = b(() => {
|
|
214
214
|
let { r1: e, r2: t, c1: n, c2: r } = Z.value;
|
|
215
215
|
if (e === t && n === r) return;
|
|
216
216
|
let i = 0, a = 0, o = 0, s;
|
|
217
217
|
for (let c = e; c <= t; c++) for (let e = n; e <= r; e++) {
|
|
218
|
-
let t =
|
|
218
|
+
let t = F(c, e);
|
|
219
219
|
t && (t.value !== void 0 || t.missing) && (i++, typeof t.value == "number" && (a += t.value, o++, s ??= t));
|
|
220
220
|
}
|
|
221
221
|
if (i) return {
|
|
@@ -290,20 +290,20 @@ var V = { class: "pk-spreadsheet-preview" }, ue = { class: "pk-spreadsheet-previ
|
|
|
290
290
|
left: 0,
|
|
291
291
|
zIndex: 4
|
|
292
292
|
} : void 0)
|
|
293
|
-
}, S(e.row), 7), (j(!0), A(_, null, p(T.value, (t) => (j(), A(_, { key: t.col }, [
|
|
293
|
+
}, S(e.row), 7), (j(!0), A(_, null, p(T.value, (t) => (j(), A(_, { key: t.col }, [oe.value.has(`${e.row},${t.col}`) ? E("", !0) : (j(), A("td", {
|
|
294
294
|
key: 0,
|
|
295
|
-
rowspan:
|
|
296
|
-
colspan:
|
|
295
|
+
rowspan: I(e.row, t.col)?.rows,
|
|
296
|
+
colspan: I(e.row, t.col)?.cols,
|
|
297
297
|
class: r(["pk-spreadsheet-preview__cell", {
|
|
298
298
|
"pk-spreadsheet-preview__cell--range": Oe(e.row, t.col) && !ke(e.row, t.col),
|
|
299
|
-
"pk-spreadsheet-preview__cell--missing":
|
|
299
|
+
"pk-spreadsheet-preview__cell--missing": F(e.row, t.col)?.missing
|
|
300
300
|
}]),
|
|
301
|
-
style: l(Ee(
|
|
301
|
+
style: l(Ee(F(e.row, t.col), e.row, t.col)),
|
|
302
302
|
"data-focus": ke(e.row, t.col) ? "" : void 0,
|
|
303
|
-
title:
|
|
303
|
+
title: F(e.row, t.col)?.missing ? O(n)("chatFilePreview.missingValue") : void 0,
|
|
304
304
|
onMousedown: g((n) => je(e.row, t.col, n), ["prevent"]),
|
|
305
305
|
onMouseenter: (n) => Me(e.row, t.col)
|
|
306
|
-
}, S(B(
|
|
306
|
+
}, S(B(F(e.row, t.col))), 47, pe))], 64))), 128))], 4));
|
|
307
307
|
return c.memo = s, c;
|
|
308
308
|
}, i, 0), 128))])
|
|
309
309
|
], 6)) : E("", !0), C.value && (C.value.moreRows || C.value.moreColumns) ? (j(), A("p", U, [C.value.moreRows ? (j(), A(_, { key: 0 }, [k(S(O(n)("chatFilePreview.moreRows", C.value.moreRows)), 1)], 64)) : E("", !0), C.value.moreColumns ? (j(), A(_, { key: 1 }, [k(S(O(n)("chatFilePreview.moreColumns", C.value.moreColumns)), 1)], 64)) : E("", !0)])) : E("", !0)], 40, H),
|
|
@@ -364,13 +364,13 @@ var Te = ["src"], Ee = {
|
|
|
364
364
|
numbers: { type: Object }
|
|
365
365
|
},
|
|
366
366
|
setup(e) {
|
|
367
|
-
let n = e, { t: i } = te({ useScope: "global" }), a = t(se, void 0), o = (e) => e.picture ?
|
|
367
|
+
let n = e, { t: i } = te({ useScope: "global" }), a = t(se, void 0), o = (e) => e.picture ? ie(a?.value, e.picture.ref) : void 0, s = (e) => n.page ? I(e) : "inline", c = (e) => {
|
|
368
368
|
let t = {
|
|
369
369
|
width: `${e.width}pt`,
|
|
370
370
|
aspectRatio: `${e.width} / ${e.height}`
|
|
371
371
|
}, r = e.anchor, i = n.page;
|
|
372
372
|
if (!r || !i) return t;
|
|
373
|
-
let a = r.xFrom === "page" ? r.x - i.margins.left : r.x, o =
|
|
373
|
+
let a = r.xFrom === "page" ? r.x - i.margins.left : r.x, o = I(e);
|
|
374
374
|
if (o === "around") {
|
|
375
375
|
let n = i.width - i.margins.left - i.margins.right, o = a + e.width / 2 < n / 2;
|
|
376
376
|
return {
|
|
@@ -392,11 +392,11 @@ var Te = ["src"], Ee = {
|
|
|
392
392
|
zIndex: r.wrap === "behind" ? -1 : 1
|
|
393
393
|
};
|
|
394
394
|
}, u = (e) => e.field && n.numbers ? String(n.numbers[e.field]) : e.text, d = b(() => {
|
|
395
|
-
let e =
|
|
395
|
+
let e = re(n.runs, n.mode ?? "markup"), t = (e) => !!e.picture && !!n.page && ["around", "block"].includes(I(e.picture));
|
|
396
396
|
return [...e.filter(t), ...e.filter((e) => !t(e))];
|
|
397
397
|
}), f = b(() => !n.mode || n.mode === "markup"), m = (e) => {
|
|
398
398
|
let t = {};
|
|
399
|
-
e.font && (t.fontFamily =
|
|
399
|
+
e.font && (t.fontFamily = L(e.font)), t.fontSize = e.size ? `${e.size}pt` : "var(--pk-word-size)", e.color && (t.color = e.color), e.highlight && (t.backgroundColor = e.highlight), e.bold && (t.fontWeight = 700), e.italic && (t.fontStyle = "italic");
|
|
400
400
|
let n = [e.underline ? "underline" : "", e.strike ? "line-through" : ""].filter(Boolean).join(" ");
|
|
401
401
|
return n && (t.textDecoration = n), e.caps && (t.textTransform = "uppercase"), e.vertAlign && (t.verticalAlign = e.vertAlign, t.fontSize = `${(e.size ?? 11) * .65}pt`), t;
|
|
402
402
|
}, h = (e) => {
|
|
@@ -528,11 +528,11 @@ var je = { class: "pk-word-preview__part" }, Me = ["src"], Ne = /* @__PURE__ */
|
|
|
528
528
|
numbers: { type: Object }
|
|
529
529
|
},
|
|
530
530
|
setup(e) {
|
|
531
|
-
let n = e, r = t(se, void 0), i = b(() =>
|
|
532
|
-
let t =
|
|
531
|
+
let n = e, r = t(se, void 0), i = b(() => ae(n.blocks, n.mode)), a = b(() => oe(n.blocks, n.mode).flatMap((e) => {
|
|
532
|
+
let t = ie(r?.value, e.ref);
|
|
533
533
|
return t ? [{
|
|
534
534
|
src: t,
|
|
535
|
-
css:
|
|
535
|
+
css: P(e, n.section.page)
|
|
536
536
|
}] : [];
|
|
537
537
|
})), o = b(() => {
|
|
538
538
|
let { margins: e } = n.section.page;
|
|
@@ -617,19 +617,19 @@ var Pe = ["aria-label"], $ = {
|
|
|
617
617
|
setup(e) {
|
|
618
618
|
let t = e, { t: c } = te({ useScope: "global" });
|
|
619
619
|
n(se, b(() => t.preview.images));
|
|
620
|
-
let f = (e) =>
|
|
620
|
+
let f = (e) => re(e, t.mode), g = b(() => ae(t.preview.blocks, t.mode)), ee = m("rootEl"), x = m("scrollEl"), C = m("measureEl"), { width: w } = ce(ee), { width: T } = ce(x), D = b(() => w.value === 0 || w.value >= 640), k = b(() => w.value >= 1e3), M = b(() => t.preview.sections?.length ? t.preview.sections : [{
|
|
621
621
|
page: t.preview.page,
|
|
622
622
|
headerDistance: 0,
|
|
623
623
|
footerDistance: 0,
|
|
624
624
|
headers: {},
|
|
625
625
|
footers: {}
|
|
626
626
|
}]), N = b(() => M.value[0].page), ne = b(() => ({
|
|
627
|
-
fontFamily:
|
|
627
|
+
fontFamily: L(t.preview.defaults.font),
|
|
628
628
|
fontSize: `${t.preview.defaults.size}pt`,
|
|
629
629
|
color: t.preview.defaults.color ?? "#000000",
|
|
630
|
-
"--pk-word-line":
|
|
630
|
+
"--pk-word-line": F(t.preview.defaults.font),
|
|
631
631
|
"--pk-word-size": `${t.preview.defaults.size}pt`
|
|
632
|
-
})),
|
|
632
|
+
})), I = b(() => ({
|
|
633
633
|
...ne.value,
|
|
634
634
|
width: `${N.value.width - N.value.margins.left - N.value.margins.right}pt`
|
|
635
635
|
})), R = y([]), z = y({}), B = async () => {
|
|
@@ -701,11 +701,11 @@ var Pe = ["aria-label"], $ = {
|
|
|
701
701
|
};
|
|
702
702
|
}, fe = (e) => {
|
|
703
703
|
let n = [...new Set(e.items.map((e) => g.value[e].block))];
|
|
704
|
-
return
|
|
705
|
-
let r =
|
|
704
|
+
return oe(n.map((e) => t.preview.blocks[e]), t.mode).flatMap((n) => {
|
|
705
|
+
let r = ie(t.preview.images, n.ref);
|
|
706
706
|
return r ? [{
|
|
707
707
|
src: r,
|
|
708
|
-
css:
|
|
708
|
+
css: P(n, M.value[e.section].page)
|
|
709
709
|
}] : [];
|
|
710
710
|
});
|
|
711
711
|
}, H = o(e, "fit"), pe = o(e, "zoom"), U = b(() => H.value ? Math.min(1.25, Math.max(.3, (T.value - 48) / (N.value.width * at))) : pe.value), me = (e) => {
|
|
@@ -934,7 +934,7 @@ var Pe = ["aria-label"], $ = {
|
|
|
934
934
|
ref: C,
|
|
935
935
|
class: "pk-word-preview__measure",
|
|
936
936
|
"aria-hidden": "true",
|
|
937
|
-
style: l(
|
|
937
|
+
style: l(I.value)
|
|
938
938
|
}, [(j(!0), A(_, null, p(g.value, (t) => (j(), A("div", {
|
|
939
939
|
key: t.key,
|
|
940
940
|
"data-item": ""
|
|
@@ -951,7 +951,7 @@ var Pe = ["aria-label"], $ = {
|
|
|
951
951
|
])]))), 128)), (j(!0), A(_, null, p(e.preview.parts, (t, n) => (j(), A("div", {
|
|
952
952
|
key: n,
|
|
953
953
|
"data-part": n
|
|
954
|
-
}, [(j(!0), A(_, null, p(O(
|
|
954
|
+
}, [(j(!0), A(_, null, p(O(ae)(t, e.mode), (n) => (j(), h(Q, {
|
|
955
955
|
key: n.key,
|
|
956
956
|
block: t[n.block],
|
|
957
957
|
row: n.row,
|
|
@@ -1163,4 +1163,4 @@ var st = ["aria-label"], ct = { class: "pk-file-preview__head" }, lt = { class:
|
|
|
1163
1163
|
}), wt = ".pk-file-preview{background-color:var(--color-surface);height:100%;min-height:0;color:var(--color-word-1);outline:none;flex-direction:column;display:flex;container-type:inline-size}.pk-file-preview__head{align-items:center;gap:var(--spacing-8) var(--spacing-12);padding:var(--spacing-12) var(--spacing-12) var(--spacing-12) var(--spacing-md);border-bottom:var(--border) solid var(--color-surface-3);flex-wrap:wrap;display:flex}.pk-file-preview__file{align-items:center;gap:var(--spacing-12);flex:12rem;min-width:0;display:flex}.pk-file-preview__tile{width:var(--spacing-32);height:var(--spacing-32);border:var(--border) solid var(--color-surface-3);border-radius:var(--rounded);flex-shrink:0;justify-content:center;align-items:center;display:flex}.pk-file-preview__tile .vv-icon{width:var(--spacing-18);height:var(--spacing-18)}.pk-file-preview__icon--word{color:#2b7de9}.pk-file-preview__icon--sheet{color:#1f9d57}.pk-file-preview__name{flex-direction:column;min-width:0;display:flex}.pk-file-preview__title{font-size:var(--text-14);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.pk-file-preview__note{color:var(--color-word-3);font-size:var(--text-12)}.pk-file-preview__tools{align-items:center;gap:var(--spacing-8) var(--spacing-12);flex-wrap:wrap;display:flex}.pk-file-preview__versions{align-items:center;gap:var(--spacing-2);display:flex}.pk-file-preview__version{font-size:var(--text-14);font-weight:var(--font-semibold);font-variant-numeric:tabular-nums;white-space:nowrap}.pk-file-preview__actions{align-items:center;gap:var(--spacing-8);margin-left:auto;display:flex}@container (width<52rem){.pk-file-preview__file{order:1}.pk-file-preview__actions{order:2}.pk-file-preview__tools{flex-basis:100%;order:3}.pk-file-preview__tools .pk-file-preview__modes{flex:auto}}.pk-file-preview__mode-short{display:none}@container (width<38rem){.pk-file-preview__mode-long{display:none}.pk-file-preview__mode-short{display:inline}}@container (width<30rem){.pk-file-preview__tools .pk-file-preview__modes{flex:100%}.pk-file-preview__tools .pk-file-preview__modes .vv-radio{padding-inline:var(--spacing-4)}}.pk-file-preview__body{background-color:var(--color-surface-1);flex-direction:column;flex:1;min-height:0;display:flex}.pk-file-preview__skeleton{width:min(42rem, 100% - 2 * var(--spacing-md));margin:var(--spacing-md) auto;padding:var(--spacing-lg);box-sizing:border-box;border:var(--border) solid var(--color-surface-3);border-radius:var(--rounded);background-color:var(--color-surface)}.pk-file-preview__skeleton-line{height:var(--spacing-12);margin-bottom:var(--spacing-12);border-radius:var(--rounded)}.pk-file-preview__empty{margin:var(--spacing-lg) var(--spacing-md);color:var(--color-word-3);font-size:var(--text-14);text-align:center}", Tt = /* @__PURE__ */ e({ default: () => Et }), Et = /*#__PURE__*/ z(Ct, [["styles", [wt]]]);
|
|
1164
1164
|
export { Tt as n, Et as t };
|
|
1165
1165
|
|
|
1166
|
-
//# sourceMappingURL=PkFilePreview-
|
|
1166
|
+
//# sourceMappingURL=PkFilePreview-C3R3jrNi.js.map
|