qidian-vue-ui 1.0.85 → 1.0.87
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/{en-US-D2IzulAB.js → en-US-CF5ETwxv.js} +2 -2
- package/dist/{en-US-D2IzulAB.js.map → en-US-CF5ETwxv.js.map} +1 -1
- package/dist/{en-US-BdOOHCSJ.mjs → en-US-DyagtY9Z.mjs} +2 -2
- package/dist/{en-US-BdOOHCSJ.mjs.map → en-US-DyagtY9Z.mjs.map} +1 -1
- package/dist/{index-lh3EKA6q.mjs → index-D5bzlCOs.mjs} +20 -20
- package/dist/{index-lh3EKA6q.mjs.map → index-D5bzlCOs.mjs.map} +1 -1
- package/dist/{index-B0-G03jL.js → index-pVB9NlXo.js} +21 -21
- package/dist/{index-B0-G03jL.js.map → index-pVB9NlXo.js.map} +1 -1
- package/dist/qidian-vue-ui.css +26 -28
- package/dist/qidian-vue-ui.js +1 -1
- package/dist/qidian-vue-ui.mjs +1 -1
- package/dist/{zh-TW-BjN0peGG.mjs → zh-TW-BgEQc5Md.mjs} +2 -2
- package/dist/{zh-TW-BjN0peGG.mjs.map → zh-TW-BgEQc5Md.mjs.map} +1 -1
- package/dist/{zh-TW-Chz0MiJO.js → zh-TW-Dc4aq6uB.js} +2 -2
- package/dist/{zh-TW-Chz0MiJO.js.map → zh-TW-Dc4aq6uB.js.map} +1 -1
- package/package.json +1 -1
|
@@ -12759,8 +12759,8 @@ const QdConfigProvider = vue.defineComponent({
|
|
|
12759
12759
|
vue.watchEffect(async () => {
|
|
12760
12760
|
const localeMap = {
|
|
12761
12761
|
"zh-CN": () => Promise.resolve().then(() => zhCN$1),
|
|
12762
|
-
"zh-TW": () => Promise.resolve().then(() => require("./zh-TW-
|
|
12763
|
-
"en-US": () => Promise.resolve().then(() => require("./en-US-
|
|
12762
|
+
"zh-TW": () => Promise.resolve().then(() => require("./zh-TW-Dc4aq6uB.js")),
|
|
12763
|
+
"en-US": () => Promise.resolve().then(() => require("./en-US-CF5ETwxv.js"))
|
|
12764
12764
|
};
|
|
12765
12765
|
const loadLocale = localeMap[props.locale] || localeMap["zh-CN"];
|
|
12766
12766
|
const [err, res] = await to(
|
|
@@ -17832,7 +17832,16 @@ function useAgentChat(options) {
|
|
|
17832
17832
|
}
|
|
17833
17833
|
abortController = new AbortController();
|
|
17834
17834
|
const sendTime = Date.now();
|
|
17835
|
-
|
|
17835
|
+
const body = JSON.stringify({
|
|
17836
|
+
message: prompt || "",
|
|
17837
|
+
re_chat: reSend ?? false,
|
|
17838
|
+
document_list: files,
|
|
17839
|
+
client_id: agInfo.apiKey,
|
|
17840
|
+
client_type: "API_KEY",
|
|
17841
|
+
...extParams
|
|
17842
|
+
});
|
|
17843
|
+
csl.log.dev("send.new", "----------------------------");
|
|
17844
|
+
csl.log.dev(`send.${sId}`, { agentInfo: agInfo, body });
|
|
17836
17845
|
return new Promise((resolve, reject) => {
|
|
17837
17846
|
let timeoutId;
|
|
17838
17847
|
let isFirstMessage = true;
|
|
@@ -17859,14 +17868,7 @@ function useAgentChat(options) {
|
|
|
17859
17868
|
},
|
|
17860
17869
|
signal: abortController?.signal,
|
|
17861
17870
|
openWhenHidden: true,
|
|
17862
|
-
body
|
|
17863
|
-
message: prompt || "",
|
|
17864
|
-
re_chat: reSend ?? false,
|
|
17865
|
-
document_list: files,
|
|
17866
|
-
client_id: agInfo.apiKey,
|
|
17867
|
-
client_type: "API_KEY",
|
|
17868
|
-
...extParams
|
|
17869
|
-
}),
|
|
17871
|
+
body,
|
|
17870
17872
|
onopen: async (res) => {
|
|
17871
17873
|
csl.log.dev(`onOpen.${sId}`, res);
|
|
17872
17874
|
await onOpen?.(res);
|
|
@@ -17940,9 +17942,7 @@ function useAgentChat(options) {
|
|
|
17940
17942
|
if (!getFn) throw new Error(t("failedObtainAgentInfoMessage"));
|
|
17941
17943
|
const [err, res] = await suspectedWrapperPromise(getFn());
|
|
17942
17944
|
if (err) throw err;
|
|
17943
|
-
if (!res?.agentId || !res.apiKey)
|
|
17944
|
-
if (!getFn) throw new Error(t("failedObtainAgentInfoMessage"));
|
|
17945
|
-
}
|
|
17945
|
+
if (!res?.agentId || !res.apiKey) throw new Error(t("failedObtainAgentInfoMessage"));
|
|
17946
17946
|
return res;
|
|
17947
17947
|
}
|
|
17948
17948
|
async function getSessionId({
|
|
@@ -18664,7 +18664,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
18664
18664
|
function buildActionPermi(action) {
|
|
18665
18665
|
if (action.permi) return action.permi;
|
|
18666
18666
|
if (!props.permiPrefix || !action.permiID) return [];
|
|
18667
|
-
return [`${props.permiPrefix}
|
|
18667
|
+
return [`${props.permiPrefix}:${action.permiID}`];
|
|
18668
18668
|
}
|
|
18669
18669
|
function buildActionForm(action, crudForm) {
|
|
18670
18670
|
const IsCRU = actionIsCRU(action.crudMode);
|
|
@@ -19070,7 +19070,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19070
19070
|
};
|
|
19071
19071
|
}
|
|
19072
19072
|
});
|
|
19073
|
-
const table = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
19073
|
+
const table = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-e86f79a1"]]);
|
|
19074
19074
|
const _hoisted_1$2 = {
|
|
19075
19075
|
key: 0,
|
|
19076
19076
|
class: "qd-crud-list__header"
|
|
@@ -28263,7 +28263,7 @@ class NodeFilterFactory extends BaseFilterFactory {
|
|
|
28263
28263
|
}
|
|
28264
28264
|
class NodeCanvasFactory extends BaseCanvasFactory {
|
|
28265
28265
|
_createCanvas(width, height) {
|
|
28266
|
-
const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-
|
|
28266
|
+
const require$1 = process.getBuiltinModule("module").createRequire(typeof document === "undefined" ? require("url").pathToFileURL(__filename).href : _documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === "SCRIPT" && _documentCurrentScript.src || new URL("index-pVB9NlXo.js", document.baseURI).href);
|
|
28267
28267
|
const canvas = require$1("@napi-rs/canvas");
|
|
28268
28268
|
return canvas.createCanvas(width, height);
|
|
28269
28269
|
}
|
|
@@ -54554,12 +54554,12 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54554
54554
|
viewerVm.setDocument(pdf);
|
|
54555
54555
|
linkService.setDocument(pdf);
|
|
54556
54556
|
eventBus.on("pagesinit", () => {
|
|
54557
|
-
csl2.log("pagesInit");
|
|
54557
|
+
csl2.log.dev("pagesInit");
|
|
54558
54558
|
loading.value = false;
|
|
54559
54559
|
emit("pagesInit", viewerVm);
|
|
54560
54560
|
});
|
|
54561
54561
|
eventBus.on("pagerendered", (evt) => {
|
|
54562
|
-
csl2.log("pageRendered", evt.pageNumber);
|
|
54562
|
+
csl2.log.dev("pageRendered", evt.pageNumber);
|
|
54563
54563
|
});
|
|
54564
54564
|
eventBus.on("textlayerrendered", (evt) => {
|
|
54565
54565
|
emit("textLayerRendered", evt);
|
|
@@ -54731,7 +54731,7 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
54731
54731
|
};
|
|
54732
54732
|
}
|
|
54733
54733
|
});
|
|
54734
|
-
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
54734
|
+
const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-1fea4dd8"]]);
|
|
54735
54735
|
const qdUploadProps = {
|
|
54736
54736
|
modelValue: () => [],
|
|
54737
54737
|
files: () => [],
|
|
@@ -55334,4 +55334,4 @@ exports.useDictDynamic = useDictDynamic;
|
|
|
55334
55334
|
exports.useDisabled = useDisabled;
|
|
55335
55335
|
exports.useModal = useModal;
|
|
55336
55336
|
exports.useReadonly = useReadonly;
|
|
55337
|
-
//# sourceMappingURL=index-
|
|
55337
|
+
//# sourceMappingURL=index-pVB9NlXo.js.map
|