@das-fed/ui 7.0.3 → 7.0.4-beta.2
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/package.json +6 -5
- package/packages/business-components/ai-panel/{index-BbtDXlR3.js → index-CD2YNg3j.js} +62 -62
- package/packages/business-components/ai-panel/index-CD2YNg3j.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-DcsbACoj.js → index-DWHxqEh3.js} +1 -1
- package/packages/business-components/ai-panel/index-DWHxqEh3.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/ai-panel/style.css +1 -1
- package/packages/business-components/ai-panel/style.css.gz +0 -0
- package/packages/components/image-upload/index.d.ts +1 -0
- package/packages/components/image-upload/index.js +767 -114
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-upload/src/Index.vue.d.ts +1 -0
- package/packages/components/image-upload/src/hooks/use-compress-image.d.ts +1 -0
- package/packages/components/image-upload/src/type.d.ts +3 -0
- package/packages/components/image-upload/style.css +1 -1
- package/packages/components/image-upload/style.css.gz +0 -0
- package/packages/components/image-viewer/index.d.ts +1 -0
- package/packages/components/image-viewer/index.js +1086 -434
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/Index.vue.d.ts +1 -0
- package/packages/components/image-viewer/src/hooks/use-compress-image.d.ts +1 -0
- package/packages/components/image-viewer/src/type.d.ts +3 -0
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/tree-table/index.js +291 -263
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-table/src/hooks/use-five.d.ts +4 -0
- package/packages/components/tree-table/src/hooks/use-four.d.ts +4 -0
- package/packages/components/tree-table/src/type.d.ts +1 -1
- package/packages/components/tree-table/style.css +1 -1
- package/packages/components/tree-table/style.css.gz +0 -0
- package/packages/business-components/ai-panel/index-BbtDXlR3.js.gz +0 -0
- package/packages/business-components/ai-panel/index-DcsbACoj.js.gz +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/ui",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.4-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@antv/x6-plugin-snapline": "^2.1.7",
|
|
27
27
|
"@antv/x6-plugin-transform": "^2.1.8",
|
|
28
28
|
"@antv/x6-vue-shape": "^2.1.2",
|
|
29
|
-
"@das-fed/cli": "7.0.
|
|
29
|
+
"@das-fed/cli": "7.0.4-beta.2",
|
|
30
30
|
"@element-plus/icons-vue": "^2.3.1",
|
|
31
31
|
"@types/lodash": "^4.14.194",
|
|
32
32
|
"@types/lodash-es": "^4.17.9",
|
|
@@ -56,14 +56,15 @@
|
|
|
56
56
|
"vue-tsc": "^2.0.29"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@das-fed/ui": "7.0.
|
|
60
|
-
"@das-fed/utils": "7.0.
|
|
61
|
-
"@das-fed/web": "7.0.
|
|
59
|
+
"@das-fed/ui": "7.0.4-beta.2",
|
|
60
|
+
"@das-fed/utils": "7.0.4-beta.2",
|
|
61
|
+
"@das-fed/web": "7.0.4-beta.2",
|
|
62
62
|
"@types/markdown-it": "^14.1.2",
|
|
63
63
|
"@wangeditor-next/editor": "5.6.31",
|
|
64
64
|
"@wangeditor-next/editor-for-vue": "5.1.14",
|
|
65
65
|
"@wangeditor-next/plugin-upload-attachment": "1.1.0",
|
|
66
66
|
"async-validator": "^4.2.5",
|
|
67
|
+
"compressorjs": "^1.2.1",
|
|
67
68
|
"coordtransform": "^2.1.2",
|
|
68
69
|
"dayjs": "1.11.10",
|
|
69
70
|
"dom-to-image": "^2.6.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as st, ref as N, watch as bu, h as lt, reactive as dt, defineComponent as cu, onMounted as qu, createElementBlock as P, openBlock as S, createElementVNode as v, toDisplayString as V, computed as lu, createCommentVNode as z, createVNode as j, unref as A, normalizeClass as
|
|
1
|
+
import { defineAsyncComponent as st, ref as N, watch as bu, h as lt, reactive as dt, defineComponent as cu, onMounted as qu, createElementBlock as P, openBlock as S, createElementVNode as v, toDisplayString as V, computed as lu, createCommentVNode as z, createVNode as j, unref as A, normalizeClass as Mu, createBlock as Y, withCtx as W, Fragment as Nu, renderList as Ju, withDirectives as yu, withKeys as Qt, vModelText as Xt, withModifiers as we, vShow as Hu, onBeforeUnmount as ft, resolveDirective as Yt, nextTick as Ae, Transition as u0, normalizeStyle as e0 } from "vue";
|
|
2
2
|
import { withInstall as t0 } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { useRoute as n0 } from "vue-router";
|
|
4
4
|
import { DasIconClose2 as r0 } from "@das-fed/ui/packages/icons/close-2/index";
|
|
@@ -31,14 +31,14 @@ import { DasIconSelect2 as g0 } from "@das-fed/ui/packages/icons/select2/index";
|
|
|
31
31
|
import { DasPopover as k0 } from "@das-fed/ui/packages/components/popover/index";
|
|
32
32
|
import { DasTree as v0 } from "@das-fed/ui/packages/components/tree/index";
|
|
33
33
|
import { vDasLoading as _t } from "@das-fed/ui/packages/components/loading/index";
|
|
34
|
-
import { knowledgeBase as
|
|
34
|
+
import { knowledgeBase as Ou, createService as Te, iotMinio as gt } from "@das-fed/utils/api-services";
|
|
35
35
|
import { DasIconLianjie as y0 } from "@das-fed/ui/packages/icons/lianjie/index";
|
|
36
36
|
import { DasIconQingkong as A0 } from "@das-fed/ui/packages/icons/qingkong/index";
|
|
37
37
|
import { DasIconDelete as C0 } from "@das-fed/ui/packages/icons/delete/index";
|
|
38
38
|
import { DasEmpty as D0 } from "@das-fed/ui/packages/components/empty/index";
|
|
39
39
|
import { socketService as E0 } from "@das-fed/utils/webSocket-service";
|
|
40
40
|
import { SizeWatcher as F0 } from "@das-fed/utils/size-watcher";
|
|
41
|
-
let
|
|
41
|
+
let $u = (u = 21) => {
|
|
42
42
|
let e = "", t = crypto.getRandomValues(new Uint8Array(u));
|
|
43
43
|
for (; u--; ) {
|
|
44
44
|
let n = t[u] & 63;
|
|
@@ -46,7 +46,7 @@ let Hu = (u = 21) => {
|
|
|
46
46
|
}
|
|
47
47
|
return e;
|
|
48
48
|
};
|
|
49
|
-
const w0 = st(() => import("./index-
|
|
49
|
+
const w0 = st(() => import("./index-DWHxqEh3.js")), S0 = () => {
|
|
50
50
|
const u = N(), e = N(!1);
|
|
51
51
|
let t = !1;
|
|
52
52
|
const n = (c) => {
|
|
@@ -106,7 +106,7 @@ const kt = () => sessionStorage.getItem("deepseekConfig") ? JSON.parse(sessionSt
|
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
x.searchType == "0" && (e.appDeepseek = x.deepseek), x.searchType == "1" && (e.knowDeepseek = x.deepseek), x.searchType == "2" && (e.networkDeepseek = x.deepseek), sessionStorage.setItem("deepseekConfig", JSON.stringify(e));
|
|
109
|
-
},
|
|
109
|
+
}, Vu = () => {
|
|
110
110
|
const u = kt();
|
|
111
111
|
x.searchType == "0" && (x.deepseek = u.appDeepseek), x.searchType == "1" && (x.deepseek = u.knowDeepseek), x.searchType == "2" && (x.deepseek = u.networkDeepseek);
|
|
112
112
|
};
|
|
@@ -352,7 +352,7 @@ var yt = { exports: {} };
|
|
|
352
352
|
function _u(q, F, E) {
|
|
353
353
|
return F && J(q.prototype, F), E && J(q, E), q;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Pu(q, F) {
|
|
356
356
|
if (typeof F != "function" && F !== null)
|
|
357
357
|
throw new TypeError("Super expression must either be null or a function");
|
|
358
358
|
q.prototype = Object.create(F && F.prototype, { constructor: { value: q, writable: !0, configurable: !0 } }), F && gu(q, F);
|
|
@@ -375,9 +375,9 @@ var yt = { exports: {} };
|
|
|
375
375
|
};
|
|
376
376
|
}
|
|
377
377
|
function ou(q, F) {
|
|
378
|
-
return F && (H(F) === "object" || typeof F == "function") ? F :
|
|
378
|
+
return F && (H(F) === "object" || typeof F == "function") ? F : ju(q);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function ju(q) {
|
|
381
381
|
if (q === void 0)
|
|
382
382
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
383
383
|
return q;
|
|
@@ -403,7 +403,7 @@ var yt = { exports: {} };
|
|
|
403
403
|
return F.getAttribute(E);
|
|
404
404
|
}
|
|
405
405
|
var fe = /* @__PURE__ */ function(q) {
|
|
406
|
-
|
|
406
|
+
Pu(E, q);
|
|
407
407
|
var F = fu(E);
|
|
408
408
|
function E(M, O) {
|
|
409
409
|
var $;
|
|
@@ -1332,7 +1332,7 @@ function K(u) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
return !1;
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function Uu(u) {
|
|
1336
1336
|
if (u >= 8192 && u <= 8202)
|
|
1337
1337
|
return !0;
|
|
1338
1338
|
switch (u) {
|
|
@@ -1351,10 +1351,10 @@ function Vu(u) {
|
|
|
1351
1351
|
}
|
|
1352
1352
|
return !1;
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Zu(u) {
|
|
1355
1355
|
return Le.test(u) || Dt.test(u);
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function Gu(u) {
|
|
1358
1358
|
switch (u) {
|
|
1359
1359
|
case 33:
|
|
1360
1360
|
case 34:
|
|
@@ -1404,12 +1404,12 @@ const En = { mdurl: W0, ucmicro: X0 }, Fn = /* @__PURE__ */ Object.freeze(/* @__
|
|
|
1404
1404
|
escapeRE: Dn,
|
|
1405
1405
|
fromCodePoint: oe,
|
|
1406
1406
|
has: pn,
|
|
1407
|
-
isMdAsciiPunct:
|
|
1408
|
-
isPunctChar:
|
|
1407
|
+
isMdAsciiPunct: Gu,
|
|
1408
|
+
isPunctChar: Zu,
|
|
1409
1409
|
isSpace: K,
|
|
1410
1410
|
isString: Be,
|
|
1411
1411
|
isValidEntityCode: qe,
|
|
1412
|
-
isWhiteSpace:
|
|
1412
|
+
isWhiteSpace: Uu,
|
|
1413
1413
|
lib: En,
|
|
1414
1414
|
normalizeReference: ae,
|
|
1415
1415
|
unescapeAll: Bu,
|
|
@@ -1568,10 +1568,10 @@ mu.html_block = function(u, e) {
|
|
|
1568
1568
|
mu.html_inline = function(u, e) {
|
|
1569
1569
|
return u[e].content;
|
|
1570
1570
|
};
|
|
1571
|
-
function
|
|
1571
|
+
function Ru() {
|
|
1572
1572
|
this.rules = ce({}, mu);
|
|
1573
1573
|
}
|
|
1574
|
-
|
|
1574
|
+
Ru.prototype.renderAttrs = function(e) {
|
|
1575
1575
|
let t, n, r;
|
|
1576
1576
|
if (!e.attrs)
|
|
1577
1577
|
return "";
|
|
@@ -1579,7 +1579,7 @@ Ou.prototype.renderAttrs = function(e) {
|
|
|
1579
1579
|
r += " " + Du(e.attrs[t][0]) + '="' + Du(e.attrs[t][1]) + '"';
|
|
1580
1580
|
return r;
|
|
1581
1581
|
};
|
|
1582
|
-
|
|
1582
|
+
Ru.prototype.renderToken = function(e, t, n) {
|
|
1583
1583
|
const r = e[t];
|
|
1584
1584
|
let o = "";
|
|
1585
1585
|
if (r.hidden)
|
|
@@ -1594,7 +1594,7 @@ Ou.prototype.renderToken = function(e, t, n) {
|
|
|
1594
1594
|
return o += c ? `>
|
|
1595
1595
|
` : ">", o;
|
|
1596
1596
|
};
|
|
1597
|
-
|
|
1597
|
+
Ru.prototype.renderInline = function(u, e, t) {
|
|
1598
1598
|
let n = "";
|
|
1599
1599
|
const r = this.rules;
|
|
1600
1600
|
for (let o = 0, c = u.length; o < c; o++) {
|
|
@@ -1603,7 +1603,7 @@ Ou.prototype.renderInline = function(u, e, t) {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
return n;
|
|
1605
1605
|
};
|
|
1606
|
-
|
|
1606
|
+
Ru.prototype.renderInlineAsText = function(u, e, t) {
|
|
1607
1607
|
let n = "";
|
|
1608
1608
|
for (let r = 0, o = u.length; r < o; r++)
|
|
1609
1609
|
switch (u[r].type) {
|
|
@@ -1625,7 +1625,7 @@ Ou.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
return n;
|
|
1627
1627
|
};
|
|
1628
|
-
|
|
1628
|
+
Ru.prototype.render = function(u, e, t) {
|
|
1629
1629
|
let n = "";
|
|
1630
1630
|
const r = this.rules;
|
|
1631
1631
|
for (let o = 0, c = u.length; o < c; o++) {
|
|
@@ -1897,7 +1897,7 @@ function Kn(u, e) {
|
|
|
1897
1897
|
g = u[t].content.charCodeAt(0);
|
|
1898
1898
|
break;
|
|
1899
1899
|
}
|
|
1900
|
-
const y =
|
|
1900
|
+
const y = Gu(f) || Zu(String.fromCharCode(f)), C = Gu(g) || Zu(String.fromCharCode(g)), k = Uu(f), m = Uu(g);
|
|
1901
1901
|
if (m ? d = !1 : C && (k || y || (d = !1)), k ? _ = !1 : y && (m || C || (_ = !1)), g === 34 && l[0] === '"' && f >= 48 && f <= 57 && (_ = d = !1), d && _ && (d = y, _ = C), !d && !_) {
|
|
1902
1902
|
h && (o.content = Yu(o.content, l.index, Ye));
|
|
1903
1903
|
continue;
|
|
@@ -2350,11 +2350,11 @@ function rr(u, e, t, n) {
|
|
|
2350
2350
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(f);
|
|
2351
2351
|
const R = [a, 0];
|
|
2352
2352
|
i.map = R, d && (i.info = u.src.slice(c, h - 1));
|
|
2353
|
-
const J = u.tight, _u = u.tShift[a],
|
|
2354
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = H, u.tight = !0, u.tShift[a] = L - u.bMarks[a], u.sCount[a] = b, L >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || C) && (s = !1), C = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = gu, u.tShift[a] = _u, u.sCount[a] =
|
|
2353
|
+
const J = u.tight, _u = u.tShift[a], Pu = u.sCount[a], gu = u.listIndent;
|
|
2354
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = H, u.tight = !0, u.tShift[a] = L - u.bMarks[a], u.sCount[a] = b, L >= r && u.isEmpty(a + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, a, t, !0), (!u.tight || C) && (s = !1), C = u.line - a > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = gu, u.tShift[a] = _u, u.sCount[a] = Pu, u.tight = J, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(f), a = u.line, R[1] = a, a >= t || u.sCount[a] < u.blkIndent || u.sCount[a] - u.blkIndent >= 4)
|
|
2355
2355
|
break;
|
|
2356
2356
|
let fu = !1;
|
|
2357
|
-
for (let ou = 0,
|
|
2357
|
+
for (let ou = 0, ju = k.length; ou < ju; ou++)
|
|
2358
2358
|
if (k[ou](u, a, t, !0)) {
|
|
2359
2359
|
fu = !0;
|
|
2360
2360
|
break;
|
|
@@ -2709,7 +2709,7 @@ Qu.prototype.scanDelims = function(u, e) {
|
|
|
2709
2709
|
let o = u;
|
|
2710
2710
|
for (; o < t && this.src.charCodeAt(o) === n; )
|
|
2711
2711
|
o++;
|
|
2712
|
-
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a =
|
|
2712
|
+
const c = o - u, i = o < t ? this.src.charCodeAt(o) : 32, a = Gu(r) || Zu(String.fromCharCode(r)), s = Gu(i) || Zu(String.fromCharCode(i)), l = Uu(r), d = Uu(i), _ = !d && (!s || l || a), h = !l && (!a || d || s);
|
|
2713
2713
|
return { can_open: _ && (e || !h || a), can_close: h && (e || !_ || s), length: c };
|
|
2714
2714
|
};
|
|
2715
2715
|
Qu.prototype.Token = du;
|
|
@@ -3443,7 +3443,7 @@ ru.prototype.normalize = function(e) {
|
|
|
3443
3443
|
};
|
|
3444
3444
|
ru.prototype.onCompile = function() {
|
|
3445
3445
|
};
|
|
3446
|
-
const zu = 2147483647, hu = 36, Re = 1,
|
|
3446
|
+
const zu = 2147483647, hu = 36, Re = 1, Ku = 26, io = 38, co = 700, Ot = 72, Rt = 128, Pt = "-", ao = /^xn--/, so = /[^\0-\x7F]/, lo = /[\x2E\u3002\uFF0E\uFF61]/g, fo = {
|
|
3447
3447
|
overflow: "Overflow: input needs wider integers to process",
|
|
3448
3448
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
3449
3449
|
"invalid-input": "Invalid input"
|
|
@@ -3485,7 +3485,7 @@ const po = (u) => String.fromCodePoint(...u), bo = function(u) {
|
|
|
3485
3485
|
return u + 22 + 75 * (u < 26) - ((e != 0) << 5);
|
|
3486
3486
|
}, $t = function(u, e, t) {
|
|
3487
3487
|
let n = 0;
|
|
3488
|
-
for (u = t ? pu(u / co) : u >> 1, u += pu(u / e); u > ve *
|
|
3488
|
+
for (u = t ? pu(u / co) : u >> 1, u += pu(u / e); u > ve * Ku >> 1; n += hu)
|
|
3489
3489
|
u = pu(u / ve);
|
|
3490
3490
|
return pu(n + (ve + 1) * u / (u + io));
|
|
3491
3491
|
}, Vt = function(u) {
|
|
@@ -3500,7 +3500,7 @@ const po = (u) => String.fromCodePoint(...u), bo = function(u) {
|
|
|
3500
3500
|
i >= t && ku("invalid-input");
|
|
3501
3501
|
const _ = bo(u.charCodeAt(i++));
|
|
3502
3502
|
_ >= hu && ku("invalid-input"), _ > pu((zu - n) / l) && ku("overflow"), n += _ * l;
|
|
3503
|
-
const h = d <= o ? Re : d >= o +
|
|
3503
|
+
const h = d <= o ? Re : d >= o + Ku ? Ku : d - o;
|
|
3504
3504
|
if (_ < h)
|
|
3505
3505
|
break;
|
|
3506
3506
|
const f = hu - h;
|
|
@@ -3529,7 +3529,7 @@ const po = (u) => String.fromCodePoint(...u), bo = function(u) {
|
|
|
3529
3529
|
if (l < n && ++r > zu && ku("overflow"), l === n) {
|
|
3530
3530
|
let d = r;
|
|
3531
3531
|
for (let _ = hu; ; _ += hu) {
|
|
3532
|
-
const h = _ <= o ? Re : _ >= o +
|
|
3532
|
+
const h = _ <= o ? Re : _ >= o + Ku ? Ku : _ - o;
|
|
3533
3533
|
if (d < h)
|
|
3534
3534
|
break;
|
|
3535
3535
|
const f = d - h, g = hu - h;
|
|
@@ -3768,7 +3768,7 @@ function Eo(u) {
|
|
|
3768
3768
|
function iu(u, e) {
|
|
3769
3769
|
if (!(this instanceof iu))
|
|
3770
3770
|
return new iu(u, e);
|
|
3771
|
-
e || Be(u) || (e = u || {}, u = "default"), this.inline = new Xu(), this.block = new se(), this.core = new Me(), this.renderer = new
|
|
3771
|
+
e || Be(u) || (e = u || {}, u = "default"), this.inline = new Xu(), this.block = new se(), this.core = new Me(), this.renderer = new Ru(), this.linkify = new ru(), this.validateLink = Co, this.normalizeLink = Do, this.normalizeLinkText = Eo, this.utils = Fn, this.helpers = ce({}, Tn), this.options = {}, this.configure(u), e && this.set(e);
|
|
3772
3772
|
}
|
|
3773
3773
|
iu.prototype.set = function(u) {
|
|
3774
3774
|
return ce(this.options, u), this;
|
|
@@ -3982,7 +3982,7 @@ const Fo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
3982
3982
|
"div",
|
|
3983
3983
|
{
|
|
3984
3984
|
key: 1,
|
|
3985
|
-
class:
|
|
3985
|
+
class: Mu(["das-ai-think-markdown-box", { "hide-think": !d.value }])
|
|
3986
3986
|
},
|
|
3987
3987
|
[
|
|
3988
3988
|
v("div", {
|
|
@@ -4243,7 +4243,7 @@ const Fo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4243
4243
|
v(
|
|
4244
4244
|
"div",
|
|
4245
4245
|
{
|
|
4246
|
-
class:
|
|
4246
|
+
class: Mu(["int-opt-box", { actived: A(x).deepseek }]),
|
|
4247
4247
|
onClick: e
|
|
4248
4248
|
},
|
|
4249
4249
|
[
|
|
@@ -4348,7 +4348,7 @@ const Fo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4348
4348
|
{
|
|
4349
4349
|
key: 0,
|
|
4350
4350
|
onClick: d,
|
|
4351
|
-
class:
|
|
4351
|
+
class: Mu(["int-opt-right-icon", { disabled: o.value }])
|
|
4352
4352
|
},
|
|
4353
4353
|
[
|
|
4354
4354
|
j(A(b0), {
|
|
@@ -4463,22 +4463,22 @@ const Fo = "data:image/gif;base64,R0lGODlhZABkAIABAABt8QAAACH/C05FVFNDQVBFMi4wAw
|
|
|
4463
4463
|
null,
|
|
4464
4464
|
Ju(r.list, (c) => (S(), P("div", {
|
|
4465
4465
|
onClick: (i) => n(c),
|
|
4466
|
-
class: "das-ai-prompt-item"
|
|
4467
|
-
}, V(c.text || (c == null ? void 0 : c.questionWord)),
|
|
4466
|
+
class: Mu(["das-ai-prompt-item", { "long-text": c.text.length > 25 }])
|
|
4467
|
+
}, V(c.text || (c == null ? void 0 : c.questionWord)), 11, vi))),
|
|
4468
4468
|
256
|
|
4469
4469
|
/* UNKEYED_FRAGMENT */
|
|
4470
4470
|
))
|
|
4471
4471
|
]));
|
|
4472
4472
|
}
|
|
4473
|
-
}), Ci = /* @__PURE__ */ au(Ai, [["__scopeId", "data-v-
|
|
4473
|
+
}), Ci = /* @__PURE__ */ au(Ai, [["__scopeId", "data-v-92b4e27d"]]), Pe = "v1", wu = Te(`/api/llm/knowledge/${Pe}`), Di = Te(`/api/llm/vector/${Pe}`), Ei = Te(`/api/system-config/${Pe}`);
|
|
4474
4474
|
gt.get("token");
|
|
4475
4475
|
gt.post("putObject");
|
|
4476
4476
|
Di.get("/large-model/general-question");
|
|
4477
4477
|
const Fi = Ei.get("/platform/qa-config/enabled-list"), wi = wu.post("/chat/stop"), Si = wu.post("/chat/save-knowledge"), Ii = wu.get("/chat"), Ti = wu.get("/chat/chat-details"), zi = wu.delete("/chat/delete-by-user"), Ni = wu.delete("/chat"), Li = wu.get("/chat/delete-by-query-id");
|
|
4478
|
-
|
|
4479
|
-
const Pa =
|
|
4480
|
-
|
|
4481
|
-
|
|
4478
|
+
Ou.post("/file");
|
|
4479
|
+
const Pa = Ou.post("/file/save-file"), Bi = Ou.get("/folder"), qi = Ou.post("/folder/listAllByCondition");
|
|
4480
|
+
Ou.post("/folder/lazy-tree");
|
|
4481
|
+
Ou.post("/folder/tree-search");
|
|
4482
4482
|
const Mi = { class: "das-ai-select-container" }, Oi = { class: "das-ai-select-text-box" }, Ri = { class: "das-ai-select-text" }, Pi = { class: "das-ai-select-box" }, ji = {
|
|
4483
4483
|
key: 0,
|
|
4484
4484
|
class: "das-ai-select-text"
|
|
@@ -4512,9 +4512,9 @@ const Mi = { class: "das-ai-select-container" }, Oi = { class: "das-ai-select-te
|
|
|
4512
4512
|
}, k = (I) => {
|
|
4513
4513
|
l.value = I.id, x.folderId = I.id == x.allKnowId ? "" : I.id, x.folderName = x.folderId ? I.folderName : "", r.value = !1, n.value = !1;
|
|
4514
4514
|
}, m = (I) => {
|
|
4515
|
-
x.searchType = I.id,
|
|
4515
|
+
x.searchType = I.id, Vu(), l.value = x.folderId ? x.folderId : x.allKnowId, r.value = !0, b();
|
|
4516
4516
|
}, p = async (I) => {
|
|
4517
|
-
x.searchType = I.id, n.value = !1,
|
|
4517
|
+
x.searchType = I.id, n.value = !1, Vu();
|
|
4518
4518
|
}, b = async () => {
|
|
4519
4519
|
const I = {
|
|
4520
4520
|
folderName: "",
|
|
@@ -4567,7 +4567,7 @@ const Mi = { class: "das-ai-select-container" }, Oi = { class: "das-ai-select-te
|
|
|
4567
4567
|
512
|
|
4568
4568
|
/* NEED_PATCH */
|
|
4569
4569
|
), [
|
|
4570
|
-
[
|
|
4570
|
+
[Hu, I.listLength]
|
|
4571
4571
|
]),
|
|
4572
4572
|
j(A(k0), {
|
|
4573
4573
|
popperClass: "das-ai-select-popover",
|
|
@@ -4608,7 +4608,7 @@ const Mi = { class: "das-ai-select-container" }, Oi = { class: "das-ai-select-te
|
|
|
4608
4608
|
512
|
|
4609
4609
|
/* NEED_PATCH */
|
|
4610
4610
|
), [
|
|
4611
|
-
[
|
|
4611
|
+
[Hu, !I.listLength]
|
|
4612
4612
|
])
|
|
4613
4613
|
]),
|
|
4614
4614
|
default: W(() => [
|
|
@@ -4621,7 +4621,7 @@ const Mi = { class: "das-ai-select-container" }, Oi = { class: "das-ai-select-te
|
|
|
4621
4621
|
null,
|
|
4622
4622
|
Ju(c.value, (R) => (S(), P("div", {
|
|
4623
4623
|
onClick: (J) => p(R),
|
|
4624
|
-
class:
|
|
4624
|
+
class: Mu(["das-ai-type-item", { selected: A(x).searchType == R.id }])
|
|
4625
4625
|
}, [
|
|
4626
4626
|
v("div", Vi, [
|
|
4627
4627
|
A(x).searchType == R.id ? (S(), Y(A(g0), {
|
|
@@ -4664,7 +4664,7 @@ const Mi = { class: "das-ai-select-container" }, Oi = { class: "das-ai-select-te
|
|
|
4664
4664
|
512
|
|
4665
4665
|
/* NEED_PATCH */
|
|
4666
4666
|
), [
|
|
4667
|
-
[
|
|
4667
|
+
[Hu, !r.value]
|
|
4668
4668
|
]),
|
|
4669
4669
|
yu((S(), P("div", Ji, [
|
|
4670
4670
|
j(A(v0), {
|
|
@@ -4683,7 +4683,7 @@ const Mi = { class: "das-ai-select-container" }, Oi = { class: "das-ai-select-te
|
|
|
4683
4683
|
}, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
|
|
4684
4684
|
])), [
|
|
4685
4685
|
[A(_t), i.value],
|
|
4686
|
-
[
|
|
4686
|
+
[Hu, r.value]
|
|
4687
4687
|
])
|
|
4688
4688
|
]),
|
|
4689
4689
|
_: 1
|
|
@@ -4744,7 +4744,7 @@ const Mi = { class: "das-ai-select-container" }, Oi = { class: "das-ai-select-te
|
|
|
4744
4744
|
null,
|
|
4745
4745
|
Ju(a.item.file, (l, d) => (S(), P("div", {
|
|
4746
4746
|
onClick: (_) => i(l, d),
|
|
4747
|
-
class:
|
|
4747
|
+
class: Mu(["reference-file-item", { current: n.value == d, selected: r.value.includes(d) }])
|
|
4748
4748
|
}, [
|
|
4749
4749
|
z(" v-das-tooltip "),
|
|
4750
4750
|
v("div", oc, [
|
|
@@ -5085,7 +5085,7 @@ const Ic = () => {
|
|
|
5085
5085
|
url: "/socket/api/speech/v1/tts",
|
|
5086
5086
|
reconnectWhenClose: !0,
|
|
5087
5087
|
opened: () => {
|
|
5088
|
-
c =
|
|
5088
|
+
c = $u(), C == 0 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: C, ..._() })), C == 1 && i.send(JSON.stringify({ text: n.content, taskId: c, taskType: C, overFlag: !n.loading, ..._() })), r = C;
|
|
5089
5089
|
},
|
|
5090
5090
|
message: async (p) => {
|
|
5091
5091
|
if ((p == null ? void 0 : p.taskId) == c) {
|
|
@@ -5175,13 +5175,13 @@ const Ic = () => {
|
|
|
5175
5175
|
]), f = N({}), g = N([]), y = N(["A100", "A002", "A003", "A005"]), C = N(!1), k = N(!1), { folderDialogVue: m, showFolderDialog: p } = S0(), { aiAudioRef: b, isAudioplay: L, audioSrc: I, playAudio: H, pauseAudio: R } = Ic();
|
|
5176
5176
|
let J = 0;
|
|
5177
5177
|
qu(async () => {
|
|
5178
|
-
n != null && n.platformInitNextTick && await (n == null ? void 0 : n.platformInitNextTick()), vt(!0),
|
|
5178
|
+
n != null && n.platformInitNextTick && await (n == null ? void 0 : n.platformInitNextTick()), vt(!0), Vu();
|
|
5179
5179
|
}), ft(() => {
|
|
5180
5180
|
be(), R();
|
|
5181
5181
|
});
|
|
5182
5182
|
const _u = () => {
|
|
5183
5183
|
gu();
|
|
5184
|
-
},
|
|
5184
|
+
}, Pu = () => {
|
|
5185
5185
|
R();
|
|
5186
5186
|
};
|
|
5187
5187
|
bu(
|
|
@@ -5203,7 +5203,7 @@ const Ic = () => {
|
|
|
5203
5203
|
}
|
|
5204
5204
|
const [D, w] = await Fi({ type: x.searchType }, { ignoreErrorMessage: !0 }).run();
|
|
5205
5205
|
D || w && (f[`${x.searchType}`] = w.map((B) => ({
|
|
5206
|
-
id:
|
|
5206
|
+
id: $u(),
|
|
5207
5207
|
text: (B == null ? void 0 : B.questionPhrases) || (B == null ? void 0 : B.questionWord),
|
|
5208
5208
|
questionWord: (B == null ? void 0 : B.questionWord) || (B == null ? void 0 : B.questionPhrases)
|
|
5209
5209
|
})), h.value = f[`${x.searchType}`]);
|
|
@@ -5215,7 +5215,7 @@ const Ic = () => {
|
|
|
5215
5215
|
});
|
|
5216
5216
|
};
|
|
5217
5217
|
let ou = "";
|
|
5218
|
-
const
|
|
5218
|
+
const ju = () => {
|
|
5219
5219
|
ou && clearTimeout(ou), ou = setTimeout(() => {
|
|
5220
5220
|
k.value = !1;
|
|
5221
5221
|
}, 2e3);
|
|
@@ -5224,13 +5224,13 @@ const Ic = () => {
|
|
|
5224
5224
|
const w = document.querySelector("#das-ai-chat-scrollbox .das-ai-wrap-class");
|
|
5225
5225
|
o.value = w.scrollHeight - w.clientHeight;
|
|
5226
5226
|
}
|
|
5227
|
-
x.showScrollBom = o.value - D.scrollTop > 50, C.value || (k.value = !0,
|
|
5227
|
+
x.showScrollBom = o.value - D.scrollTop > 50, C.value || (k.value = !0, ju()), C.value = !1;
|
|
5228
5228
|
}, Eu = () => ({
|
|
5229
|
-
id:
|
|
5229
|
+
id: $u(),
|
|
5230
5230
|
role: "user",
|
|
5231
5231
|
content: ""
|
|
5232
5232
|
}), Su = () => ({
|
|
5233
|
-
id:
|
|
5233
|
+
id: $u(),
|
|
5234
5234
|
role: "ai",
|
|
5235
5235
|
audioStatus: "normal",
|
|
5236
5236
|
intention: "",
|
|
@@ -5272,7 +5272,7 @@ const Ic = () => {
|
|
|
5272
5272
|
intention: Z.intention,
|
|
5273
5273
|
showSave: !y.value.includes(Z.intention)
|
|
5274
5274
|
}));
|
|
5275
|
-
}), q(), g.value = su, c.value = G, x.searchType = U || "1", U == "1" && (x.folderId = tu, tu ? he(tu) : x.folderName = ""),
|
|
5275
|
+
}), q(), g.value = su, c.value = G, x.searchType = U || "1", U == "1" && (x.folderId = tu, tu ? he(tu) : x.folderName = ""), Vu(), fu(), d.value = !1;
|
|
5276
5276
|
} else
|
|
5277
5277
|
d.value = !1;
|
|
5278
5278
|
}, he = async (D) => {
|
|
@@ -5368,7 +5368,7 @@ const Ic = () => {
|
|
|
5368
5368
|
//重连时间间隔,单位:毫秒,默认45000毫秒,这里设置为10分钟
|
|
5369
5369
|
heartbeatTimeout: 10 * 60 * 1e3
|
|
5370
5370
|
});
|
|
5371
|
-
pe =
|
|
5371
|
+
pe = $u();
|
|
5372
5372
|
const su = pe;
|
|
5373
5373
|
B.onmessage = (G) => {
|
|
5374
5374
|
if (su != pe) return;
|
|
@@ -5439,7 +5439,7 @@ const Ic = () => {
|
|
|
5439
5439
|
x.senderValue && O("sender", x.senderValue);
|
|
5440
5440
|
},
|
|
5441
5441
|
showFn: _u,
|
|
5442
|
-
hideFn:
|
|
5442
|
+
hideFn: Pu,
|
|
5443
5443
|
playAudioFn: () => {
|
|
5444
5444
|
const D = g.value.findLastIndex((B) => B.role == "ai"), w = g.value[D] ? g.value[D] : null;
|
|
5445
5445
|
w && H(0, w);
|
|
@@ -5658,7 +5658,7 @@ const Ic = () => {
|
|
|
5658
5658
|
x.autoAudio = b;
|
|
5659
5659
|
},
|
|
5660
5660
|
setConfig: (b) => {
|
|
5661
|
-
b != null && b.searchType && (x.searchType = b == null ? void 0 : b.searchType), (b == null ? void 0 : b.searchType) == "1" && (x.folderId = b.folderId ? b.folderId : "", x.folderName = b.folderName ? b.folderName : ""),
|
|
5661
|
+
b != null && b.searchType && (x.searchType = b == null ? void 0 : b.searchType), (b == null ? void 0 : b.searchType) == "1" && (x.folderId = b.folderId ? b.folderId : "", x.folderName = b.folderName ? b.folderName : ""), Vu();
|
|
5662
5662
|
},
|
|
5663
5663
|
stopMsg: () => {
|
|
5664
5664
|
var b;
|
|
@@ -5732,7 +5732,7 @@ const Ic = () => {
|
|
|
5732
5732
|
4
|
|
5733
5733
|
/* STYLE */
|
|
5734
5734
|
), [
|
|
5735
|
-
[
|
|
5735
|
+
[Hu, a.value]
|
|
5736
5736
|
])
|
|
5737
5737
|
]),
|
|
5738
5738
|
_: 1
|
|
Binary file
|
|
@@ -4,7 +4,7 @@ import { DasMessage as N } from "@das-fed/ui/packages/components/message/index";
|
|
|
4
4
|
import { DasButton as D } from "@das-fed/ui/packages/components/button/index";
|
|
5
5
|
import { DasTree as $ } from "@das-fed/ui/packages/components/tree/index";
|
|
6
6
|
import { DasDialog as M } from "@das-fed/ui/packages/components/dialog/index";
|
|
7
|
-
import { s as P, g as j, _ as q } from "./index-
|
|
7
|
+
import { s as P, g as j, _ as q } from "./index-CD2YNg3j.js";
|
|
8
8
|
const G = (f) => (a(null), { saveKnow: async (o) => {
|
|
9
9
|
var s;
|
|
10
10
|
const h = (s = o.dom.textContent) == null ? void 0 : s.replace(/^\s*[\r\n]/gm, ""), c = {
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/ai-panel/style.css';
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@das-fed/utils/with-install/index";
|
|
4
|
-
import { D as m, a as p } from "./index-
|
|
4
|
+
import { D as m, a as p } from "./index-CD2YNg3j.js";
|
|
5
5
|
import "@das-fed/web/packages/i18n/index";
|
|
6
6
|
export {
|
|
7
7
|
m as DasAiPanel,
|