@opentiny/tiny-robot 0.4.0-alpha.6 → 0.4.0-alpha.8

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/index3.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ref as _, onMounted as ne, onBeforeUnmount as oe, defineComponent as P, createElementBlock as a, openBlock as r, createElementVNode as w, createVNode as $, unref as n, toDisplayString as B, mergeModels as W, useModel as j, computed as I, normalizeStyle as ie, Fragment as S, renderList as V, createBlock as H, resolveDynamicComponent as Y, nextTick as se, normalizeClass as U, withDirectives as q, createCommentVNode as G, renderSlot as A, withKeys as F, withModifiers as J, isRef as le, vModelText as re, vShow as ae } from "vue";
1
+ import { onMounted as ne, onBeforeUnmount as oe, ref as _, defineComponent as P, openBlock as r, createElementBlock as a, createElementVNode as w, createVNode as $, unref as n, toDisplayString as B, useModel as W, computed as I, normalizeStyle as ie, Fragment as S, renderList as V, createBlock as H, resolveDynamicComponent as Y, mergeModels as j, nextTick as se, normalizeClass as U, createCommentVNode as G, renderSlot as q, withDirectives as A, withKeys as F, isRef as le, withModifiers as J, vModelText as re, vShow as ae } from "vue";
2
2
  import { IconEmptySearch as ue, IconEditPen as ce, IconDelete as de, IconCheck as me, IconClose as fe, IconMenu2 as pe } from "@opentiny/tiny-robot-svgs";
3
3
  import { _ as z } from "./_plugin-vue_export-helper.js";
4
4
  import { o as Z, c as ve, e as ge, d as ye } from "./index5.js";
@@ -47,7 +47,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
47
47
  }
48
48
  }), Re = /* @__PURE__ */ z(we, [["__scopeId", "data-v-d0340c39"]]), Ie = ["onClick"], Q = 4, xe = /* @__PURE__ */ P({
49
49
  __name: "MenuList",
50
- props: /* @__PURE__ */ W({
50
+ props: /* @__PURE__ */ j({
51
51
  items: {},
52
52
  menuListGap: { default: 8 }
53
53
  }, {
@@ -56,9 +56,9 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
56
56
  data: { default: null },
57
57
  dataModifiers: {}
58
58
  }),
59
- emits: /* @__PURE__ */ W(["item-click"], ["update:trigger", "update:data"]),
59
+ emits: /* @__PURE__ */ j(["item-click"], ["update:trigger", "update:data"]),
60
60
  setup(s, { emit: m }) {
61
- const t = j(s, "trigger"), c = j(s, "data"), h = s, C = m, E = _(null);
61
+ const t = W(s, "trigger"), c = W(s, "data"), h = s, C = m, E = _(null);
62
62
  Z(
63
63
  E,
64
64
  () => {
@@ -202,9 +202,9 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
202
202
  key: l.id || te,
203
203
  onClick: (d) => c("item-click", l)
204
204
  }, [
205
- A(i.$slots, "item-prefix", { item: l }, void 0, !0),
205
+ q(i.$slots, "item-prefix", { item: l }, void 0, !0),
206
206
  l.icon ? (r(), H(Y(l.icon), { key: 0 })) : G("", !0),
207
- n(p) === l ? q((r(), a("input", {
207
+ n(p) === l ? A((r(), a("input", {
208
208
  key: 1,
209
209
  class: "tr-history__item-editor",
210
210
  type: "text",
@@ -228,7 +228,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
228
228
  ]
229
229
  }, null, 544)), [
230
230
  [re, n(k)]
231
- ]) : A(i.$slots, "item-title", {
231
+ ]) : q(i.$slots, "item-title", {
232
232
  key: 2,
233
233
  item: l
234
234
  }, () => [
@@ -274,7 +274,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
274
274
  ], 10, Ge))), 128))
275
275
  ])
276
276
  ]))), 128)),
277
- q($(Me, {
277
+ A($(Me, {
278
278
  trigger: g.value,
279
279
  "onUpdate:trigger": e[7] || (e[7] = (f) => g.value = f),
280
280
  data: u.value,
package/dist/index5.js CHANGED
@@ -695,8 +695,8 @@ function tt(e = {}) {
695
695
  return { width: r, height: s };
696
696
  }
697
697
  export {
698
- S as a,
699
- M as b,
698
+ M as a,
699
+ S as b,
700
700
  qe as c,
701
701
  tt as d,
702
702
  Je as e,
package/dist/index6.js CHANGED
@@ -1,9 +1,9 @@
1
- import { onMounted as U, nextTick as B, h as C, defineComponent as _, render as R, onBeforeUnmount as D, Teleport as W, computed as h, ref as E, createBlock as F, openBlock as g, Transition as j, normalizeProps as q, guardReactiveProps as L, withCtx as Z, createElementBlock as G, createCommentVNode as J, renderSlot as K, useSlots as Q, watch as X, useAttrs as Y, resolveDynamicComponent as ee, unref as S, mergeProps as k, createVNode as te } from "vue";
2
- import { a as oe, c as re, e as ne } from "./index5.js";
1
+ import { onMounted as U, nextTick as B, h as C, render as R, onBeforeUnmount as D, defineComponent as b, Teleport as W, computed as h, ref as E, openBlock as g, createBlock as F, Transition as j, normalizeProps as q, guardReactiveProps as L, withCtx as Z, createElementBlock as G, renderSlot as J, createCommentVNode as K, useSlots as Q, watch as X, useAttrs as Y, resolveDynamicComponent as ee, unref as S, mergeProps as k, createVNode as te } from "vue";
2
+ import { b as oe, c as re, e as ne } from "./index5.js";
3
3
  import { t as u } from "./utils.js";
4
4
  import { _ as N } from "./_plugin-vue_export-helper.js";
5
5
  import { u as se } from "./useSlotRefs.js";
6
- const pe = _({
6
+ const pe = b({
7
7
  setup: (r) => () => C(W, r.propsFactory(), r.vnodeFactory()),
8
8
  props: ["propsFactory", "vnodeFactory"]
9
9
  });
@@ -34,7 +34,7 @@ function ce(r, n) {
34
34
  return d;
35
35
  });
36
36
  }
37
- const ie = /* @__PURE__ */ _({
37
+ const ie = /* @__PURE__ */ b({
38
38
  __name: "Popper",
39
39
  props: {
40
40
  show: { type: Boolean },
@@ -52,13 +52,13 @@ const ie = /* @__PURE__ */ _({
52
52
  ref_key: "popperRef",
53
53
  ref: e
54
54
  }, [
55
- K(t.$slots, "default", {}, void 0, !0)
56
- ], 512)) : J("", !0)
55
+ J(t.$slots, "default", {}, void 0, !0)
56
+ ], 512)) : K("", !0)
57
57
  ]),
58
58
  _: 3
59
59
  }, 16));
60
60
  }
61
- }), le = /* @__PURE__ */ N(ie, [["__scopeId", "data-v-25c13ab7"]]), ue = /* @__PURE__ */ _({
61
+ }), le = /* @__PURE__ */ N(ie, [["__scopeId", "data-v-25c13ab7"]]), ue = /* @__PURE__ */ b({
62
62
  inheritAttrs: !1,
63
63
  __name: "index",
64
64
  props: {
@@ -88,7 +88,7 @@ const ie = /* @__PURE__ */ _({
88
88
  for (const [c, a] of Object.entries(o))
89
89
  /^on[A-Z]/.test(c) && typeof a == "function" && (p[c] = a);
90
90
  return p;
91
- }, f = E(null), b = h(() => {
91
+ }, f = E(null), _ = h(() => {
92
92
  var o;
93
93
  return ((o = f.value) == null ? void 0 : o.popperRef) || null;
94
94
  }), m = h(() => {
@@ -110,7 +110,7 @@ const ie = /* @__PURE__ */ _({
110
110
  } = re(i), {
111
111
  width: x,
112
112
  height: P
113
- } = ne(b, void 0, {
113
+ } = ne(_, void 0, {
114
114
  box: "border-box"
115
115
  }), H = h(() => {
116
116
  const {
@@ -146,7 +146,7 @@ const ie = /* @__PURE__ */ _({
146
146
  }
147
147
  })), n({
148
148
  triggerRef: i,
149
- popperRef: b,
149
+ popperRef: _,
150
150
  update: A
151
151
  }), (o, p) => (g(), F(ee(S(s)[0]), k({
152
152
  ref: S(d)
@@ -1,4 +1,4 @@
1
- import { defineComponent as g, ref as b, useModel as k, watch as O, onUnmounted as R, createElementBlock as _, openBlock as v, createElementVNode as t, withDirectives as c, vModelText as f, createVNode as y, unref as D, createCommentVNode as $ } from "vue";
1
+ import { defineComponent as g, ref as b, useModel as k, watch as O, onUnmounted as R, openBlock as _, createElementBlock as v, createElementVNode as t, withDirectives as c, vModelText as f, createVNode as y, unref as D, createCommentVNode as $ } from "vue";
2
2
  import { TinyRadioGroup as E } from "@opentiny/vue";
3
3
  import { f as L } from "../index5.js";
4
4
  import { _ as T } from "../_plugin-vue_export-helper.js";
@@ -37,7 +37,7 @@ const M = { class: "form-editor__container" }, S = { class: "form-editor__item"
37
37
  };
38
38
  return R(() => {
39
39
  r();
40
- }), (m, e) => (v(), _("form", M, [
40
+ }), (m, e) => (_(), v("form", M, [
41
41
  t("div", S, [
42
42
  e[5] || (e[5] = t("label", { class: "form-editor__label" }, "名称", -1)),
43
43
  c(t("input", {
@@ -116,7 +116,7 @@ const M = { class: "form-editor__container" }, S = { class: "form-editor__item"
116
116
  emits: ["update:codeData"],
117
117
  setup(i) {
118
118
  const d = k(i, "codeData");
119
- return (o, s) => (v(), _("div", j, [
119
+ return (o, s) => (_(), v("div", j, [
120
120
  t("div", q, [
121
121
  t("div", z, [
122
122
  c(t("textarea", {
@@ -158,7 +158,7 @@ const M = { class: "form-editor__container" }, S = { class: "form-editor__item"
158
158
  }, a = (V) => {
159
159
  s("update:addType", V);
160
160
  };
161
- return (V, l) => (v(), _("div", G, [
161
+ return (V, l) => (_(), v("div", G, [
162
162
  t("div", W, [
163
163
  t("div", K, [
164
164
  l[3] || (l[3] = t("span", { class: "mcp-add-form__add-type-label" }, "添加方式", -1)),
@@ -172,13 +172,13 @@ const M = { class: "form-editor__container" }, S = { class: "form-editor__item"
172
172
  options: x
173
173
  }, null, 8, ["modelValue"])
174
174
  ]),
175
- r.value === "form" ? (v(), _("div", Q, [
175
+ r.value === "form" ? (_(), v("div", Q, [
176
176
  y(D(h), {
177
177
  "form-data": n.value,
178
178
  "onUpdate:formData": l[1] || (l[1] = (p) => n.value = p)
179
179
  }, null, 8, ["form-data"])
180
180
  ])) : $("", !0),
181
- r.value === "code" ? (v(), _("div", X, [
181
+ r.value === "code" ? (_(), v("div", X, [
182
182
  y(D(J), {
183
183
  "code-data": u.value,
184
184
  "onUpdate:codeData": l[2] || (l[2] = (p) => u.value = p)
@@ -1,4 +1,4 @@
1
- import { defineComponent as q, ref as V, computed as g, createElementBlock as n, openBlock as a, normalizeClass as G, createElementVNode as s, createBlock as k, createCommentVNode as v, toDisplayString as x, renderSlot as D, Fragment as F, unref as d, createVNode as _, withCtx as T, Transition as K, withDirectives as pe, renderList as N, vShow as ge, mergeModels as J, useModel as ae, watch as H, normalizeStyle as me, createTextVNode as _e } from "vue";
1
+ import { defineComponent as q, ref as V, computed as g, openBlock as a, createElementBlock as n, normalizeClass as G, createElementVNode as s, toDisplayString as x, createCommentVNode as v, renderSlot as D, Fragment as F, createBlock as k, unref as d, createVNode as _, withCtx as T, Transition as K, withDirectives as pe, renderList as N, vShow as ge, useModel as ae, mergeModels as J, watch as H, normalizeStyle as me, createTextVNode as _e } from "vue";
2
2
  import { TinyPopconfirm as ve, TinySwitch as X, TinyTabs as fe, TinyTabItem as Y, TinyInput as Z, TinyBaseSelect as he, TinyOption as ye } from "@opentiny/vue";
3
3
  import { IconArrowRight as ke, IconArrowDown as be, IconDelete as Te, IconClose as oe, IconEmptySearch as Ce, IconPlus as Pe, IconSearch as ee } from "@opentiny/tiny-robot-svgs";
4
4
  import { _ as z } from "../_plugin-vue_export-helper.js";
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, createElementBlock as r, openBlock as e, normalizeClass as f, createBlock as m, createElementVNode as i, resolveDynamicComponent as u, createCommentVNode as h, toDisplayString as l, Fragment as k, createTextVNode as P, renderSlot as B, renderList as w, mergeProps as x, toRaw as S } from "vue";
1
+ import { defineComponent as y, openBlock as e, createElementBlock as r, normalizeClass as f, createBlock as m, resolveDynamicComponent as u, createElementVNode as i, toDisplayString as l, createCommentVNode as h, Fragment as k, createTextVNode as P, renderList as B, mergeProps as w, renderSlot as x, toRaw as S } from "vue";
2
2
  import { _ as v } from "../_plugin-vue_export-helper.js";
3
3
  const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-title" }, T = {
4
4
  key: 0,
@@ -49,7 +49,7 @@ const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-titl
49
49
  i("div", {
50
50
  class: f(["tr-prompts__list-container", { wrap: s.wrap, vertical: s.vertical }])
51
51
  }, [
52
- (e(!0), r(k, null, w(s.items, (p, b) => (e(), m(n, x({
52
+ (e(!0), r(k, null, B(s.items, (p, b) => (e(), m(n, w({
53
53
  key: p.id || b
54
54
  }, { ref_for: !0 }, p, {
55
55
  style: s.itemStyle,
@@ -57,7 +57,7 @@ const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-titl
57
57
  onClick: (g) => C(g, p)
58
58
  }), null, 16, ["style", "class", "onClick"]))), 128))
59
59
  ], 2),
60
- B(a.$slots, "footer", {}, void 0, !0)
60
+ x(a.$slots, "footer", {}, void 0, !0)
61
61
  ]));
62
62
  }
63
63
  }), c = /* @__PURE__ */ v(E, [["__scopeId", "data-v-641a878e"]]);
@@ -1,7 +1,7 @@
1
1
  var sf = Object.defineProperty;
2
2
  var lf = (f, n, v) => n in f ? sf(f, n, { enumerable: !0, configurable: !0, writable: !0, value: v }) : f[n] = v;
3
3
  var FA = (f, n, v) => lf(f, typeof n != "symbol" ? n + "" : n, v);
4
- import { ref as h, watch as fA, reactive as Bf, onUnmounted as ff, computed as K, defineComponent as IA, isVNode as Pf, createElementBlock as T, openBlock as H, createCommentVNode as U, normalizeStyle as jA, createBlock as eA, unref as R, withCtx as rA, createElementVNode as j, createVNode as S, normalizeClass as tA, resolveDynamicComponent as af, toDisplayString as iA, useAttrs as Cf, resolveComponent as rf, mergeProps as HA, Fragment as dA, renderList as wA, mergeModels as _A, useModel as df, onMounted as uf, nextTick as Z, Transition as GA, withModifiers as Qf, useSlots as Df, renderSlot as vA, isRef as pf, createTextVNode as $A } from "vue";
4
+ import { ref as h, watch as fA, reactive as Bf, onUnmounted as ff, computed as K, defineComponent as IA, isVNode as Pf, openBlock as H, createElementBlock as T, normalizeStyle as jA, createBlock as eA, unref as R, withCtx as rA, createElementVNode as j, createVNode as S, normalizeClass as tA, createCommentVNode as U, resolveDynamicComponent as af, toDisplayString as iA, useAttrs as Cf, resolveComponent as rf, mergeProps as HA, Fragment as dA, renderList as wA, useModel as df, onMounted as uf, nextTick as Z, mergeModels as _A, Transition as GA, withModifiers as Qf, useSlots as Df, renderSlot as vA, isRef as pf, createTextVNode as $A } from "vue";
5
5
  import { TinyTooltip as UA, TinyInput as Hf } from "@opentiny/vue";
6
6
  import { f as wf } from "../index5.js";
7
7
  import { IconVoice as If, IconUpload as cf, IconClear as Ef, IconSend as yf, IconStop as Rf, IconAssociate as Tf } from "@opentiny/tiny-robot-svgs";