@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/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 N, IconStop as j, IconClose as U } from "@opentiny/tiny-robot-svgs";
4
- import { TinyTooltip as D } from "@opentiny/vue";
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 E(t) {
15
- return t ? typeof t == "string" ? t.split(/\s+/).includes(A) : Array.isArray(t) ? t.some(E) : typeof t == "object" ? !!t[A] : !1 : !1;
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 z(t) {
17
+ function N(t) {
18
18
  var e;
19
- return V(t) && E((e = t.props) == null ? void 0 : e.class) ? t : F("div", { class: A }, 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" ? () => z(t) : () => z(t());
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(D), {
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(D), {
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(N), { class: "tr-sender-submit-button__icon" })
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(N), {
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 { hasContent: t, clearable: e, loading: n, defaultActions: a } = C(), d = l(() => {
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(() => {