@8wave/ai-elements 0.126.0-beta.11 → 0.126.0-beta.13
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/{PkChart-DWb-SQth.js → PkChart-BiFofCDF.js} +7 -3
- package/dist/_chunks/{PkChart-DWb-SQth.js.map → PkChart-BiFofCDF.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-Qa0gqSB7.js → PkFilePreview-CW04wd9z.js} +2 -2
- package/dist/_chunks/{PkFilePreview-Qa0gqSB7.js.map → PkFilePreview-CW04wd9z.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-BAiyiAhZ.js → PkFilePreviewDialog-0vC6vbNa.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-BAiyiAhZ.js.map → PkFilePreviewDialog-0vC6vbNa.js.map} +1 -1
- package/dist/_chunks/{PkToolShowChart-CuLW9Kcy.js → PkToolShowChart-lLXuHRJu.js} +2 -2
- package/dist/_chunks/{PkToolShowChart-CuLW9Kcy.js.map → PkToolShowChart-lLXuHRJu.js.map} +1 -1
- package/dist/ai-elements.es.js +2 -2
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/_chunks/{PkChart-DiMQHC6K.js → PkChart-CmrpyYAS.js} +7 -3
- package/dist-vue/_chunks/{PkChart-DiMQHC6K.js.map → PkChart-CmrpyYAS.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-DcL0-0oj.js → PkChatbot-BNcXCHJv.js} +2 -2
- package/dist-vue/_chunks/{PkChatbot-DcL0-0oj.js.map → PkChatbot-BNcXCHJv.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-B4WVWbxH.js → PkChatbotMessages-DV0hYZgp.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotMessages-B4WVWbxH.js.map → PkChatbotMessages-DV0hYZgp.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-BrBSEwg6.js → PkChatbotViewChat-8itM8FhY.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewChat-BrBSEwg6.js.map → PkChatbotViewChat-8itM8FhY.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-Bcvo21_8.js → PkFilePreview-DLrXC8uc.js} +3 -3
- package/dist-vue/_chunks/{PkFilePreview-Bcvo21_8.js.map → PkFilePreview-DLrXC8uc.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-C7bLPoeL.js → PkFilePreviewDialog-xcglY0iR.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-C7bLPoeL.js.map → PkFilePreviewDialog-xcglY0iR.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-p5CZEPWQ.js → PkToolShowChart-B8xJi1yY.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-p5CZEPWQ.js.map → PkToolShowChart-B8xJi1yY.js.map} +1 -1
- package/dist-vue/index.js +5 -5
- package/package.json +1 -1
package/dist-vue/_chunks/{PkFilePreviewDialog-C7bLPoeL.js → PkFilePreviewDialog-xcglY0iR.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-DLrXC8uc.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-xcglY0iR.js.map
|
package/dist-vue/_chunks/{PkFilePreviewDialog-C7bLPoeL.js.map → PkFilePreviewDialog-xcglY0iR.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkFilePreviewDialog-
|
|
1
|
+
{"version":3,"file":"PkFilePreviewDialog-xcglY0iR.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"}
|
|
@@ -25,7 +25,7 @@ var T = { class: "pk-chart-card border border-surface-3 rounded-xl w-full overfl
|
|
|
25
25
|
isDark: { type: Boolean }
|
|
26
26
|
},
|
|
27
27
|
setup(t) {
|
|
28
|
-
let h = m(() => import("./PkChart-
|
|
28
|
+
let h = m(() => import("./PkChart-CmrpyYAS.js")), P = t, { t: F, locale: I } = C({ useScope: "global" }), { copy: L, copied: R } = w(), z = c(() => {
|
|
29
29
|
switch (P.chart.type) {
|
|
30
30
|
case "line": return "ri:line-chart-line";
|
|
31
31
|
case "pie": return "ri:pie-chart-line";
|
|
@@ -130,4 +130,4 @@ var T = { class: "pk-chart-card border border-surface-3 rounded-xl w-full overfl
|
|
|
130
130
|
});
|
|
131
131
|
export { R as default };
|
|
132
132
|
|
|
133
|
-
//# sourceMappingURL=PkToolShowChart-
|
|
133
|
+
//# sourceMappingURL=PkToolShowChart-B8xJi1yY.js.map
|
package/dist-vue/_chunks/{PkToolShowChart-p5CZEPWQ.js.map → PkToolShowChart-B8xJi1yY.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkToolShowChart-p5CZEPWQ.js","names":["_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_toDisplayString","_unref","_withCtx","_createBlock","_Fragment","_renderList","$t","_openBlock","_createElementBlock","_Fragment","_renderList","_createBlock","PkChartCard","_createVNode","_toDisplayString","toSnakeCase","ShowChartInputSchema","VvButtonLocalized","chartValueFormatter","chartAsTsv","_hoisted_1$1","_hoisted_2$1","_hoisted_3$1","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","PkChartCard_default","defineComponent","PkChart","defineAsyncComponent","props","__props","$t","useI18n","useClipboard","icon","computed","showTable","ref","format","locale","chartRef","useTemplateRef","downloadPng","blob","url","anchor","_component_VvIcon","VvIcon","_component_VvButton","_component_VvButtonGroup","VvButtonGroup","openBlock","createElementBlock","createElementVNode","createVNode","toDisplayString","unref","withCtx","_cache","copied","copy","createCommentVNode","createBlock","Fragment","renderList","series","i","category","_hoisted_1","_hoisted_2","_hoisted_3","PkToolShowChart_default","toolPart","streaming","refused","input","parsed","_ctx"],"sources":["../../../../packages/components/src/chat/PkChartCard.vue","../../../../packages/components/src/chat/PkToolShowChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, defineAsyncComponent, ref, useTemplateRef } from 'vue'\n import { useClipboard } from '@vueuse/core'\n import { useI18n } from 'vue-i18n'\n import type { Chart } from 'models'\n import { toSnakeCase } from 'utils'\n import { chartAsTsv, chartValueFormatter } from './chartFormat'\n\n // Chart.js comes with it: a separate chunk, loaded with the first chart\n const PkChart = defineAsyncComponent(() => import('./PkChart.vue'))\n\n /**\n * One chart of `showChart` (spec `chat-charts.md`) in its card: the chart,\n * the same numbers as a table, \"Copy data\" for a sheet and the chart as a\n * PNG.\n */\n const props = defineProps<{\n chart: Chart\n /** A note below the chart, e.g. the source of the numbers. */\n caption?: string\n isDark?: boolean\n }>()\n\n const { t: $t, locale } = useI18n({ useScope: 'global' })\n const { copy, copied } = useClipboard()\n\n const icon = computed(() => {\n switch (props.chart.type) {\n case 'line':\n return 'ri:line-chart-line'\n case 'pie':\n return 'ri:pie-chart-line'\n case 'doughnut':\n return 'ri:donut-chart-line'\n default:\n return props.chart.horizontal\n ? 'ri:bar-chart-horizontal-line'\n : 'ri:bar-chart-2-line'\n }\n })\n\n const showTable = ref(false)\n const format = computed(() =>\n chartValueFormatter(locale.value, props.chart.format),\n )\n\n const chartRef = useTemplateRef<{ toBlob: () => Promise<Blob | null> }>(\n 'chartRef',\n )\n const downloadPng = async () => {\n const blob = await chartRef.value?.toBlob()\n if (!blob) {\n return\n }\n const url = URL.createObjectURL(blob)\n const anchor = document.createElement('a')\n anchor.href = url\n anchor.download = `${toSnakeCase(props.chart.title || 'chart')}.png`\n document.body.appendChild(anchor)\n anchor.click()\n document.body.removeChild(anchor)\n URL.revokeObjectURL(url)\n }\n</script>\n\n<template>\n <div\n class=\"pk-chart-card border border-surface-3 rounded-xl w-full overflow-hidden\">\n <div\n class=\"px-sm py-6 bg-surface-1 min-h-40 text-12 border-b border-surface-3 text-word-3 flex items-center gap-8\">\n <VvIcon :name=\"icon\" class=\"text-16 shrink-0\" />\n <strong class=\"font-bold truncate\">\n {{ chart.title || $t('label.chart') }}\n </strong>\n <VvButtonGroup\n modifiers=\"compact\"\n class=\"pk-chart-card__actions ml-auto shrink-0\">\n <VvButton\n modifiers=\"action-quiet-small\"\n :icon=\"showTable ? icon : 'ri:table-line'\"\n :label=\"\n showTable\n ? $t('chart.showChart')\n : $t('chart.showTable')\n \"\n @click=\"showTable = !showTable\" />\n <VvButton\n modifiers=\"action-quiet-small\"\n :icon=\"copied ? 'ri:check-line' : 'ri:file-copy-line'\"\n :label=\"copied ? $t('action.copied') : $t('chart.copyData')\"\n @click=\"copy(chartAsTsv(chart, locale))\" />\n <VvButton\n v-if=\"!showTable\"\n modifiers=\"action-quiet-small\"\n icon=\"ri:download-line\"\n :label=\"$t('action.download')\"\n :title=\"$t('chart.downloadPng')\"\n @click=\"downloadPng\" />\n </VvButtonGroup>\n </div>\n <div v-if=\"showTable\" class=\"pk-chart-card__table-wrap\">\n <table class=\"pk-chart-card__table text-12\">\n <thead>\n <tr>\n <th scope=\"col\">{{ chart.categoryLabel ?? '' }}</th>\n <th\n v-for=\"series in chart.series\"\n :key=\"series.name\"\n scope=\"col\">\n {{ series.name }}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"(category, i) in chart.categories\" :key=\"i\">\n <th scope=\"row\">{{ category }}</th>\n <td v-for=\"series in chart.series\" :key=\"series.name\">\n {{ format(series.values[i] ?? null) }}\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div v-else class=\"pk-chart-card__stage px-sm py-sm\">\n <PkChart ref=\"chartRef\" :chart :is-dark />\n </div>\n <div\n v-if=\"caption\"\n class=\"px-sm py-6 bg-surface-1 min-h-40 text-12 border-t border-surface-3 text-word-3\">\n {{ caption }}\n </div>\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-chart-card {\n // A container for the narrow card below. It is also the containing\n // block of any `position: fixed` inside it, so a menu added here\n // must open in the top layer (docs/agents/gotchas/frontend.md, \"The\n // chat measures its own width\"): today the card has none.\n container-type: inline-size;\n\n // On a narrow card the actions keep their icon and lose the word on\n // screen, still read by a screen reader: the title keeps the room\n // (at 390px it was cut to \"Fattori di ...\")\n @container (width < 30rem) {\n &__actions .vv-button__label {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n }\n\n // A fixed stage, as the diagram's: the chart loads in a chunk of its\n // own, and loader and chart must take the same room or the chat's\n // scroll jumps\n &__stage {\n height: 320px;\n }\n\n &__table-wrap {\n max-height: 320px;\n overflow: auto;\n }\n\n &__table {\n width: 100%;\n border-collapse: collapse;\n\n th,\n td {\n padding: var(--spacing-6) var(--spacing-sm);\n border-bottom: 1px solid var(--color-surface-3);\n text-align: right;\n white-space: nowrap;\n }\n\n th:first-child {\n text-align: left;\n white-space: normal;\n }\n\n thead th {\n color: var(--color-word-3);\n font-weight: 600;\n }\n\n tbody th {\n color: var(--color-word-2);\n font-weight: 400;\n }\n\n td {\n color: var(--color-word);\n font-variant-numeric: tabular-nums;\n }\n\n tbody tr:last-child > * {\n border-bottom: 0;\n }\n }\n }\n</style>\n","<script setup lang=\"ts\">\n import { computed } from 'vue'\n import { ShowChartInputSchema } from 'models'\n import PkChartCard from './PkChartCard.vue'\n\n /**\n * The cards of `showChart` (spec `chat-charts.md`): every chart of the\n * call in its own card, one under the other, the caption under the last.\n */\n const props = defineProps<{\n part: unknown\n isDark?: boolean\n }>()\n\n const toolPart = computed(\n () => props.part as { state?: string; input?: unknown },\n )\n // A half-written input has series shorter than the categories\n const streaming = computed(() => toolPart.value.state === 'input-streaming')\n // A call the tool refused for its input: the model reads why and calls\n // again, and the corrected chart follows it. Nothing to show here.\n const refused = computed(() => toolPart.value.state === 'output-error')\n /** The input as the tool validated it; a stored one that is not stays a message. */\n const input = computed(() => {\n if (streaming.value) {\n return undefined\n }\n const parsed = ShowChartInputSchema.safeParse(toolPart.value.input)\n return parsed.success ? parsed.data : undefined\n })\n</script>\n\n<template>\n <div v-if=\"input\" class=\"flex flex-col gap-sm w-full\">\n <PkChartCard\n v-for=\"(chart, i) in input.charts\"\n :key=\"i\"\n :chart\n :caption=\"i === input.charts.length - 1 ? input.caption : undefined\"\n :is-dark />\n </div>\n <div\n v-else-if=\"streaming\"\n class=\"pk-tool-show-chart__loading border border-surface-3 rounded-xl w-full flex justify-center items-center\">\n <VvIcon name=\"loading-loop\" class=\"w-24 h-24 text-word-5\" />\n </div>\n <div\n v-else-if=\"!refused\"\n class=\"border border-surface-3 rounded-xl w-full text-12 text-danger py-8 px-sm\">\n {{ $t('message.chartRenderError') }}\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-tool-show-chart {\n // The height of a card while the call is written: the card that\n // replaces it takes about as much, and the chat's scroll stays put\n &__loading {\n height: 360px;\n }\n }\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;EASI,IAAMsC,IAAUC,QAA2B,OAAO,wBAAgB,GAO5DC,IAAQC,GAOR,EAAE,GAAGC,GAAI,cAAWC,EAAQ,EAAE,UAAU,SAAS,CAAC,GAClD,EAAE,SAAM,cAAWC,EAAa,GAEhCC,IAAOC,QAAe;GACxB,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
{"version":3,"file":"PkToolShowChart-B8xJi1yY.js","names":["_hoisted_1","_hoisted_2","_hoisted_3","_openBlock","_createElementBlock","_createElementVNode","_createVNode","_toDisplayString","_unref","_withCtx","_createBlock","_Fragment","_renderList","$t","_openBlock","_createElementBlock","_Fragment","_renderList","_createBlock","PkChartCard","_createVNode","_toDisplayString","toSnakeCase","ShowChartInputSchema","VvButtonLocalized","chartValueFormatter","chartAsTsv","_hoisted_1$1","_hoisted_2$1","_hoisted_3$1","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","PkChartCard_default","defineComponent","PkChart","defineAsyncComponent","props","__props","$t","useI18n","useClipboard","icon","computed","showTable","ref","format","locale","chartRef","useTemplateRef","downloadPng","blob","url","anchor","_component_VvIcon","VvIcon","_component_VvButton","_component_VvButtonGroup","VvButtonGroup","openBlock","createElementBlock","createElementVNode","createVNode","toDisplayString","unref","withCtx","_cache","copied","copy","createCommentVNode","createBlock","Fragment","renderList","series","i","category","_hoisted_1","_hoisted_2","_hoisted_3","PkToolShowChart_default","toolPart","streaming","refused","input","parsed","_ctx"],"sources":["../../../../packages/components/src/chat/PkChartCard.vue","../../../../packages/components/src/chat/PkToolShowChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed, defineAsyncComponent, ref, useTemplateRef } from 'vue'\n import { useClipboard } from '@vueuse/core'\n import { useI18n } from 'vue-i18n'\n import type { Chart } from 'models'\n import { toSnakeCase } from 'utils'\n import { chartAsTsv, chartValueFormatter } from './chartFormat'\n\n // Chart.js comes with it: a separate chunk, loaded with the first chart\n const PkChart = defineAsyncComponent(() => import('./PkChart.vue'))\n\n /**\n * One chart of `showChart` (spec `chat-charts.md`) in its card: the chart,\n * the same numbers as a table, \"Copy data\" for a sheet and the chart as a\n * PNG.\n */\n const props = defineProps<{\n chart: Chart\n /** A note below the chart, e.g. the source of the numbers. */\n caption?: string\n isDark?: boolean\n }>()\n\n const { t: $t, locale } = useI18n({ useScope: 'global' })\n const { copy, copied } = useClipboard()\n\n const icon = computed(() => {\n switch (props.chart.type) {\n case 'line':\n return 'ri:line-chart-line'\n case 'pie':\n return 'ri:pie-chart-line'\n case 'doughnut':\n return 'ri:donut-chart-line'\n default:\n return props.chart.horizontal\n ? 'ri:bar-chart-horizontal-line'\n : 'ri:bar-chart-2-line'\n }\n })\n\n const showTable = ref(false)\n const format = computed(() =>\n chartValueFormatter(locale.value, props.chart.format),\n )\n\n const chartRef = useTemplateRef<{ toBlob: () => Promise<Blob | null> }>(\n 'chartRef',\n )\n const downloadPng = async () => {\n const blob = await chartRef.value?.toBlob()\n if (!blob) {\n return\n }\n const url = URL.createObjectURL(blob)\n const anchor = document.createElement('a')\n anchor.href = url\n anchor.download = `${toSnakeCase(props.chart.title || 'chart')}.png`\n document.body.appendChild(anchor)\n anchor.click()\n document.body.removeChild(anchor)\n URL.revokeObjectURL(url)\n }\n</script>\n\n<template>\n <div\n class=\"pk-chart-card border border-surface-3 rounded-xl w-full overflow-hidden\">\n <div\n class=\"px-sm py-6 bg-surface-1 min-h-40 text-12 border-b border-surface-3 text-word-3 flex items-center gap-8\">\n <VvIcon :name=\"icon\" class=\"text-16 shrink-0\" />\n <strong class=\"font-bold truncate\">\n {{ chart.title || $t('label.chart') }}\n </strong>\n <VvButtonGroup\n modifiers=\"compact\"\n class=\"pk-chart-card__actions ml-auto shrink-0\">\n <VvButton\n modifiers=\"action-quiet-small\"\n :icon=\"showTable ? icon : 'ri:table-line'\"\n :label=\"\n showTable\n ? $t('chart.showChart')\n : $t('chart.showTable')\n \"\n @click=\"showTable = !showTable\" />\n <VvButton\n modifiers=\"action-quiet-small\"\n :icon=\"copied ? 'ri:check-line' : 'ri:file-copy-line'\"\n :label=\"copied ? $t('action.copied') : $t('chart.copyData')\"\n @click=\"copy(chartAsTsv(chart, locale))\" />\n <VvButton\n v-if=\"!showTable\"\n modifiers=\"action-quiet-small\"\n icon=\"ri:download-line\"\n :label=\"$t('action.download')\"\n :title=\"$t('chart.downloadPng')\"\n @click=\"downloadPng\" />\n </VvButtonGroup>\n </div>\n <div v-if=\"showTable\" class=\"pk-chart-card__table-wrap\">\n <table class=\"pk-chart-card__table text-12\">\n <thead>\n <tr>\n <th scope=\"col\">{{ chart.categoryLabel ?? '' }}</th>\n <th\n v-for=\"series in chart.series\"\n :key=\"series.name\"\n scope=\"col\">\n {{ series.name }}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr v-for=\"(category, i) in chart.categories\" :key=\"i\">\n <th scope=\"row\">{{ category }}</th>\n <td v-for=\"series in chart.series\" :key=\"series.name\">\n {{ format(series.values[i] ?? null) }}\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div v-else class=\"pk-chart-card__stage px-sm py-sm\">\n <PkChart ref=\"chartRef\" :chart :is-dark />\n </div>\n <div\n v-if=\"caption\"\n class=\"px-sm py-6 bg-surface-1 min-h-40 text-12 border-t border-surface-3 text-word-3\">\n {{ caption }}\n </div>\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-chart-card {\n // A container for the narrow card below. It is also the containing\n // block of any `position: fixed` inside it, so a menu added here\n // must open in the top layer (docs/agents/gotchas/frontend.md, \"The\n // chat measures its own width\"): today the card has none.\n container-type: inline-size;\n\n // On a narrow card the actions keep their icon and lose the word on\n // screen, still read by a screen reader: the title keeps the room\n // (at 390px it was cut to \"Fattori di ...\")\n @container (width < 30rem) {\n &__actions .vv-button__label {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n }\n\n // A fixed stage, as the diagram's: the chart loads in a chunk of its\n // own, and loader and chart must take the same room or the chat's\n // scroll jumps\n &__stage {\n height: 320px;\n }\n\n &__table-wrap {\n max-height: 320px;\n overflow: auto;\n }\n\n &__table {\n width: 100%;\n border-collapse: collapse;\n\n th,\n td {\n padding: var(--spacing-6) var(--spacing-sm);\n border-bottom: 1px solid var(--color-surface-3);\n text-align: right;\n white-space: nowrap;\n }\n\n th:first-child {\n text-align: left;\n white-space: normal;\n }\n\n thead th {\n color: var(--color-word-3);\n font-weight: 600;\n }\n\n tbody th {\n color: var(--color-word-2);\n font-weight: 400;\n }\n\n td {\n color: var(--color-word);\n font-variant-numeric: tabular-nums;\n }\n\n tbody tr:last-child > * {\n border-bottom: 0;\n }\n }\n }\n</style>\n","<script setup lang=\"ts\">\n import { computed } from 'vue'\n import { ShowChartInputSchema } from 'models'\n import PkChartCard from './PkChartCard.vue'\n\n /**\n * The cards of `showChart` (spec `chat-charts.md`): every chart of the\n * call in its own card, one under the other, the caption under the last.\n */\n const props = defineProps<{\n part: unknown\n isDark?: boolean\n }>()\n\n const toolPart = computed(\n () => props.part as { state?: string; input?: unknown },\n )\n // A half-written input has series shorter than the categories\n const streaming = computed(() => toolPart.value.state === 'input-streaming')\n // A call the tool refused for its input: the model reads why and calls\n // again, and the corrected chart follows it. Nothing to show here.\n const refused = computed(() => toolPart.value.state === 'output-error')\n /** The input as the tool validated it; a stored one that is not stays a message. */\n const input = computed(() => {\n if (streaming.value) {\n return undefined\n }\n const parsed = ShowChartInputSchema.safeParse(toolPart.value.input)\n return parsed.success ? parsed.data : undefined\n })\n</script>\n\n<template>\n <div v-if=\"input\" class=\"flex flex-col gap-sm w-full\">\n <PkChartCard\n v-for=\"(chart, i) in input.charts\"\n :key=\"i\"\n :chart\n :caption=\"i === input.charts.length - 1 ? input.caption : undefined\"\n :is-dark />\n </div>\n <div\n v-else-if=\"streaming\"\n class=\"pk-tool-show-chart__loading border border-surface-3 rounded-xl w-full flex justify-center items-center\">\n <VvIcon name=\"loading-loop\" class=\"w-24 h-24 text-word-5\" />\n </div>\n <div\n v-else-if=\"!refused\"\n class=\"border border-surface-3 rounded-xl w-full text-12 text-danger py-8 px-sm\">\n {{ $t('message.chartRenderError') }}\n </div>\n</template>\n\n<style lang=\"scss\">\n .pk-tool-show-chart {\n // The height of a card while the call is written: the card that\n // replaces it takes about as much, and the chat's scroll stays put\n &__loading {\n height: 360px;\n }\n }\n</style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BAGM2C,EAAA,SADftE,EAAA,GAAAC,EAIM,OAJNiE,GAIM,CADF5D,EAA4DqC,GAAA;IAApD,MAAK;IAAe,OAAM;G,QAGtB4B,EAAA,Q,aADhBvE,EAAA,GAAAC,EAIM,OAJNkE,GAIM5D,EADCR,EAAAA,GAAE,0BAAA,CAAA,GAAA,CAAA"}
|
package/dist-vue/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { t as He } from "./_chunks/PkEditorRadioButtons-Bw576DPQ.js";
|
|
|
6
6
|
import { r as Ue, t as We } from "./_chunks/Document-Bp272f-V.js";
|
|
7
7
|
import { a as Ge, i as Ke, n as qe } from "./_chunks/createChatbotApiClient-DFADeRmJ.js";
|
|
8
8
|
import { t as Je } from "./_chunks/VvButtonLocalized-C-vx25u4.js";
|
|
9
|
-
import { t as Ye } from "./_chunks/PkChatbotMessages-
|
|
9
|
+
import { t as Ye } from "./_chunks/PkChatbotMessages-DV0hYZgp.js";
|
|
10
10
|
import { t as Xe } from "./_chunks/PkChatbotAuth-449QUBoC.js";
|
|
11
11
|
import { r as Ze, t as Qe } from "./_chunks/PkToolShowArtifact-PTyAPKlR.js";
|
|
12
12
|
import { $ as $e, A as et, B as tt, C as nt, Ct as rt, D as it, E as at, F as ot, G as st, H as ct, I as lt, J as ut, K as dt, L as ft, M as pt, N as O, Q as mt, S as ht, St as gt, T as _t, Tt as vt, U as yt, V as bt, W as xt, X as St, _t as Ct, a as wt, at as Tt, b as Et, bt as Dt, c as Ot, ct as kt, d as At, dt as jt, et as Mt, f as Nt, gt as Pt, h as Ft, it as It, j as Lt, k as Rt, l as k, lt as A, mt as zt, nt as Bt, o as Vt, ot as Ht, pt as Ut, q as Wt, rt as Gt, st as Kt, tt as qt, u as Jt, ut as Yt, vt as Xt, w as Zt, wt as Qt, x as $t, xt as en, y as tn, yt as nn, z as rn } from "./_chunks/dist-DtxVAOxm.js";
|
|
@@ -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-8itM8FhY.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-DLrXC8uc.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-BNcXCHJv.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-xcglY0iR.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";
|