@opentiny/tiny-robot 0.3.0-alpha.8 → 0.3.0-alpha.9
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/action-group/index.js +15 -15
- package/dist/base-popper/index.js +1 -1
- package/dist/bubble/index.js +1229 -1949
- package/dist/container/index.js +12 -12
- package/dist/dropdown-menu/index.js +38 -33
- package/dist/feedback/index.js +55 -55
- package/dist/flow-layout-buttons/index.js +24 -24
- package/dist/history/index.js +46 -46
- package/dist/index.d.ts +405 -975
- package/dist/index.js +63 -207
- package/dist/index2.js +593 -610
- package/dist/index3.js +139 -676
- package/dist/index4.js +306 -137
- package/dist/index5.js +591 -270
- package/dist/index6.js +599 -795
- package/dist/index7.js +1717 -3622
- package/dist/question/index.js +28 -28
- package/dist/sender/index.js +659 -709
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +22 -22
- package/dist/suggestion-pills/index.js +25 -25
- package/dist/suggestion-popover/index.js +185 -180
- package/dist/tiny-robot-svgs.js +178 -727
- package/dist/useSlotRefs.js +12 -12
- package/package.json +3 -9
- package/dist/attachments/index.js +0 -526
- package/dist/drag-overlay/index.js +0 -57
- package/dist/loading.js +0 -4
- package/dist/mcp-server-picker/index.js +0 -29682
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as $, useSlots as
|
|
2
|
-
import {
|
|
3
|
-
import { T as M } from "../
|
|
4
|
-
import { o as Z,
|
|
1
|
+
import { defineComponent as $, useSlots as H, computed as i, ref as f, watch as N, nextTick as W, createElementBlock as _, openBlock as o, createBlock as v, createCommentVNode as R, Fragment as G, renderList as I, unref as h, withCtx as S, createElementVNode as w, resolveDynamicComponent as x, renderSlot as L, createVNode as E, Transition as j, withDirectives as q, normalizeClass as J, withModifiers as K, toDisplayString as Q, vShow as U } from "vue";
|
|
2
|
+
import { c as Y } from "../tiny-robot-svgs.js";
|
|
3
|
+
import { T as M } from "../index5.js";
|
|
4
|
+
import { o as Z, b as ee } from "../index2.js";
|
|
5
5
|
import te from "../icon-button/index.js";
|
|
6
6
|
import { _ as oe } from "../_plugin-vue_export-helper.js";
|
|
7
7
|
const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae = { class: "tr-action-group__dropdown-item-text" }, ce = /* @__PURE__ */ $({
|
|
@@ -13,14 +13,14 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["item-click"],
|
|
15
15
|
setup(r, { emit: k }) {
|
|
16
|
-
const l = r, F =
|
|
16
|
+
const l = r, F = H(), O = k, p = i(() => {
|
|
17
17
|
var a, t;
|
|
18
18
|
const e = F.default();
|
|
19
19
|
return Array.isArray(e) ? e.length === 1 && ((a = e[0].type) == null ? void 0 : a.toString()) === "Symbol(v-fgt)" ? e[0].children : e : ((t = e.type) == null ? void 0 : t.toString()) === "Symbol(v-fgt)" ? e.children : [e];
|
|
20
|
-
}),
|
|
20
|
+
}), b = i(() => {
|
|
21
21
|
const e = l.maxNum ?? Number.MAX_SAFE_INTEGER;
|
|
22
22
|
return e > 0 ? e : Number.MAX_SAFE_INTEGER;
|
|
23
|
-
}),
|
|
23
|
+
}), y = i(() => p.value.length > b.value), V = i(() => y.value ? p.value.slice(0, b.value) : p.value), z = i(() => y.value ? p.value.slice(b.value) : []), m = f(null), d = f(null), n = f(!1), P = () => {
|
|
24
24
|
n.value = !n.value;
|
|
25
25
|
};
|
|
26
26
|
Z(
|
|
@@ -39,7 +39,7 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
|
|
|
39
39
|
B.value = a.bottom + e.height + 16 > D.value ? "placement-top" : "placement-bottom";
|
|
40
40
|
};
|
|
41
41
|
return N(n, (e) => {
|
|
42
|
-
e &&
|
|
42
|
+
e && W(() => {
|
|
43
43
|
T();
|
|
44
44
|
});
|
|
45
45
|
}), N(D, () => {
|
|
@@ -58,7 +58,7 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
|
|
|
58
58
|
default: S(() => [
|
|
59
59
|
w("span", {
|
|
60
60
|
class: "tr-action-group__btn-wrapper",
|
|
61
|
-
onClick: (
|
|
61
|
+
onClick: (X) => {
|
|
62
62
|
var s;
|
|
63
63
|
return A((s = t.props) == null ? void 0 : s.name);
|
|
64
64
|
}
|
|
@@ -69,7 +69,7 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
|
|
|
69
69
|
_: 2
|
|
70
70
|
}, 1032, ["content", "disabled"]);
|
|
71
71
|
}), 128)),
|
|
72
|
-
|
|
72
|
+
y.value ? (o(), v(h(M), {
|
|
73
73
|
key: 0,
|
|
74
74
|
content: "更多",
|
|
75
75
|
effect: "dark",
|
|
@@ -87,25 +87,25 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
|
|
|
87
87
|
L(e.$slots, "moreBtn", {}, () => [
|
|
88
88
|
E(h(te), { icon: h(Y) }, null, 8, ["icon"])
|
|
89
89
|
], !0),
|
|
90
|
-
E(
|
|
90
|
+
E(j, { name: "tr-action-group-dropdown" }, {
|
|
91
91
|
default: S(() => [
|
|
92
|
-
|
|
92
|
+
q(w("ul", {
|
|
93
93
|
ref_key: "dropDownRef",
|
|
94
94
|
ref: d,
|
|
95
|
-
class:
|
|
95
|
+
class: J(["tr-action-group__dropdown", B.value])
|
|
96
96
|
}, [
|
|
97
97
|
(o(!0), _(G, null, I(z.value, (t, C) => {
|
|
98
98
|
var c;
|
|
99
99
|
return o(), _("li", {
|
|
100
100
|
class: "tr-action-group__dropdown-item",
|
|
101
101
|
key: C,
|
|
102
|
-
onClick:
|
|
102
|
+
onClick: K((X) => {
|
|
103
103
|
var s;
|
|
104
104
|
return A((s = t.props) == null ? void 0 : s.name);
|
|
105
105
|
}, ["stop"])
|
|
106
106
|
}, [
|
|
107
107
|
l.dropDownShowLabelOnly ? R("", !0) : (o(), v(x(t), { key: 0 })),
|
|
108
|
-
w("span", ae,
|
|
108
|
+
w("span", ae, Q((c = t.props) == null ? void 0 : c.label), 1)
|
|
109
109
|
], 8, le);
|
|
110
110
|
}), 128))
|
|
111
111
|
], 2), [
|