@opentiny/tiny-robot 0.4.2-alpha.8 → 0.5.0
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/index.d.ts +352 -74
- package/dist/index2.js +12 -12
- package/dist/index5.js +290 -244
- package/dist/index7.js +21 -24
- package/dist/layout/index.js +495 -504
- package/dist/sender/index.js +1031 -1053
- package/dist/sender-compat/index.js +38 -38
- package/dist/style.css +1 -1
- package/dist/suggestion-popover/index.js +2 -4
- package/package.json +3 -3
package/dist/index2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject as R, isVNode as V, h as F, defineComponent as y, computed as l, openBlock as i, createBlock as f, unref as o, withCtx as S, createElementVNode as k, normalizeStyle as I, normalizeClass as v, renderSlot as B, resolveDynamicComponent as P, createElementBlock as b, createVNode as x, toDisplayString as T, createCommentVNode as h, useSlots as W, Transition as $ } from "vue";
|
|
2
2
|
import { _ as w } from "./_plugin-vue_export-helper.js";
|
|
3
|
-
import { IconSend as
|
|
4
|
-
import { TinyTooltip as
|
|
3
|
+
import { IconSend as E, IconStop as j, IconClose as U } from "@opentiny/tiny-robot-svgs";
|
|
4
|
+
import { TinyTooltip as z } from "@opentiny/vue";
|
|
5
5
|
import { t as G } from "./utils.js";
|
|
6
6
|
const K = Symbol("sender-context");
|
|
7
7
|
function C() {
|
|
@@ -11,16 +11,16 @@ function C() {
|
|
|
11
11
|
return t;
|
|
12
12
|
}
|
|
13
13
|
const A = "tr-sender-tooltip-inner";
|
|
14
|
-
function
|
|
15
|
-
return t ? typeof t == "string" ? t.split(/\s+/).includes(A) : Array.isArray(t) ? t.some(
|
|
14
|
+
function D(t) {
|
|
15
|
+
return t ? typeof t == "string" ? t.split(/\s+/).includes(A) : Array.isArray(t) ? t.some(D) : typeof t == "object" ? !!t[A] : !1 : !1;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function N(t) {
|
|
18
18
|
var e;
|
|
19
|
-
return V(t) &&
|
|
19
|
+
return V(t) && D((e = t.props) == null ? void 0 : e.class) ? t : F("div", { class: A }, t);
|
|
20
20
|
}
|
|
21
21
|
function O(t) {
|
|
22
22
|
if (t)
|
|
23
|
-
return typeof t == "string" ? () =>
|
|
23
|
+
return typeof t == "string" ? () => N(t) : () => N(t());
|
|
24
24
|
}
|
|
25
25
|
const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
26
26
|
__name: "index",
|
|
@@ -43,7 +43,7 @@ const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
|
43
43
|
} : {
|
|
44
44
|
"--tr-action-button-size": G(s)
|
|
45
45
|
}, c = l(() => e.size ? d(e.size) : {});
|
|
46
|
-
return (s, u) => e.tooltip ? (i(), f(o(
|
|
46
|
+
return (s, u) => e.tooltip ? (i(), f(o(z), {
|
|
47
47
|
key: 0,
|
|
48
48
|
"render-content": a.value,
|
|
49
49
|
placement: e.tooltipPlacement,
|
|
@@ -93,7 +93,7 @@ const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
|
93
93
|
}), g = () => {
|
|
94
94
|
u.value || (n.value ? c() : d());
|
|
95
95
|
};
|
|
96
|
-
return (_, m) => r.value && !o(n) ? (i(), f(o(
|
|
96
|
+
return (_, m) => r.value && !o(n) ? (i(), f(o(z), {
|
|
97
97
|
key: 0,
|
|
98
98
|
"render-content": r.value,
|
|
99
99
|
placement: p.value,
|
|
@@ -112,7 +112,7 @@ const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
|
112
112
|
]),
|
|
113
113
|
onClick: g
|
|
114
114
|
}, [
|
|
115
|
-
x(o(
|
|
115
|
+
x(o(E), { class: "tr-sender-submit-button__icon" })
|
|
116
116
|
], 2)
|
|
117
117
|
]),
|
|
118
118
|
_: 1
|
|
@@ -133,14 +133,14 @@ const M = ["disabled"], X = ["disabled"], Y = /* @__PURE__ */ y({
|
|
|
133
133
|
}, [
|
|
134
134
|
x(o(j), { class: "tr-sender-submit-button__cancel-icon" }),
|
|
135
135
|
o(s) ? (i(), b("span", q, T(o(s)), 1)) : h("", !0)
|
|
136
|
-
], 2)) : (i(), f(o(
|
|
136
|
+
], 2)) : (i(), f(o(E), {
|
|
137
137
|
key: 0,
|
|
138
138
|
class: "tr-sender-submit-button__icon"
|
|
139
139
|
}))
|
|
140
140
|
], 2));
|
|
141
141
|
}
|
|
142
142
|
}), J = /* @__PURE__ */ w(H, [["__scopeId", "data-v-a58e69fe"]]), L = () => {
|
|
143
|
-
const {
|
|
143
|
+
const { hasEditorContent: t, clearable: e, loading: n, defaultActions: a } = C(), d = l(() => {
|
|
144
144
|
var r, p;
|
|
145
145
|
return ((p = (r = a.value) == null ? void 0 : r.clear) == null ? void 0 : p.disabled) !== void 0 ? a.value.clear.disabled : !1;
|
|
146
146
|
}), c = l(() => {
|