@opentiny/tiny-robot 0.3.0-alpha.32 → 0.3.0-alpha.34

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.
@@ -115,7 +115,7 @@ const P = ["onClick"], Q = {
115
115
  ])
116
116
  ], 512));
117
117
  }
118
- }), p = /* @__PURE__ */ K(ee, [["__scopeId", "data-v-f82cf3dc"]]);
118
+ }), p = /* @__PURE__ */ K(ee, [["__scopeId", "data-v-df81e3e1"]]);
119
119
  p.name = "TrFlowLayout";
120
120
  const te = function(d) {
121
121
  d.component(p.name, p);
package/dist/index2.js CHANGED
@@ -1,10 +1,10 @@
1
- import { ref as y, onMounted as ee, onBeforeUnmount as te, defineComponent as N, createElementBlock as r, openBlock as s, createElementVNode as R, createVNode as b, unref as n, toDisplayString as B, mergeModels as K, useModel as W, computed as x, normalizeStyle as ne, Fragment as O, renderList as V, createBlock as Q, resolveDynamicComponent as oe, nextTick as ie, normalizeClass as S, withDirectives as j, createCommentVNode as U, withKeys as q, withModifiers as A, isRef as se, vModelText as le, vShow as re } from "vue";
1
+ import { ref as y, onMounted as ee, onBeforeUnmount as te, defineComponent as N, createElementBlock as r, openBlock as s, createElementVNode as R, createVNode as T, unref as n, toDisplayString as B, mergeModels as K, useModel as W, computed as x, normalizeStyle as ne, Fragment as O, renderList as V, createBlock as Q, resolveDynamicComponent as oe, nextTick as ie, normalizeClass as S, withDirectives as j, createCommentVNode as U, withKeys as q, withModifiers as A, isRef as se, vModelText as le, vShow as re } from "vue";
2
2
  import { IconEmptySearch as ae, IconEditPen as ue, IconDelete as ce, IconCheck as de, IconClose as me, IconMenu2 as fe } from "@opentiny/tiny-robot-svgs";
3
3
  import { _ as P } from "./_plugin-vue_export-helper.js";
4
4
  import { o as X, a as pe, d as ve, c as _e } from "./index3.js";
5
5
  import { t as G } from "./utils.js";
6
6
  const D = y(!1);
7
- let T = 0, $;
7
+ let b = 0, $;
8
8
  function ge() {
9
9
  const i = window.matchMedia("(hover: none) and (pointer: coarse)"), m = () => {
10
10
  D.value = i.matches;
@@ -24,9 +24,9 @@ function he() {
24
24
  return typeof window > "u" ? {
25
25
  isTouchDevice: D
26
26
  } : (ee(() => {
27
- T++, T === 1 && ($ = ge());
27
+ b++, b === 1 && ($ = ge());
28
28
  }), te(() => {
29
- T = Math.max(0, T - 1), T === 0 && ye();
29
+ b = Math.max(0, b - 1), b === 0 && ye();
30
30
  }), {
31
31
  isTouchDevice: D
32
32
  });
@@ -40,7 +40,7 @@ const Ce = { class: "tr-history__empty" }, ke = { class: "tr-history__empty-icon
40
40
  const m = i;
41
41
  return (t, c) => (s(), r("div", Ce, [
42
42
  R("span", ke, [
43
- b(n(ae))
43
+ T(n(ae))
44
44
  ]),
45
45
  R("span", Le, B(m.text), 1)
46
46
  ]));
@@ -92,7 +92,7 @@ const Ce = { class: "tr-history__empty" }, ke = { class: "tr-history__empty-icon
92
92
  ], 8, Re))), 128))
93
93
  ], 4));
94
94
  }
95
- }), Ie = /* @__PURE__ */ P(xe, [["__scopeId", "data-v-c8365732"]]), Me = ({
95
+ }), Ie = /* @__PURE__ */ P(xe, [["__scopeId", "data-v-89fdb41c"]]), Me = ({
96
96
  renameControlOnClickOutside: i,
97
97
  onItemTitleChange: m
98
98
  }) => {
@@ -131,10 +131,10 @@ const Ce = { class: "tr-history__empty" }, ke = { class: "tr-history__empty-icon
131
131
  handleEditCancel: k,
132
132
  handleEditConfirm: w
133
133
  };
134
- }, J = Symbol("NO_GROUP"), Te = {
134
+ }, J = Symbol("NO_GROUP"), be = {
135
135
  key: 0,
136
136
  class: "tr-history__group-title"
137
- }, be = { class: "tr-history__group-items" }, $e = ["onClick"], Ge = ["title"], Oe = ["onClick"], Be = /* @__PURE__ */ N({
137
+ }, Te = { class: "tr-history__group-items" }, $e = ["onClick"], Ge = ["title"], Oe = ["onClick"], Be = /* @__PURE__ */ N({
138
138
  __name: "index",
139
139
  props: {
140
140
  data: {},
@@ -191,8 +191,8 @@ const Ce = { class: "tr-history__empty" }, ke = { class: "tr-history__empty-icon
191
191
  class: "tr-history__group",
192
192
  key: f.group
193
193
  }, [
194
- f.group !== n(J) ? (s(), r("div", Te, B(f.group), 1)) : U("", !0),
195
- R("div", be, [
194
+ f.group !== n(J) ? (s(), r("div", be, B(f.group), 1)) : U("", !0),
195
+ R("div", Te, [
196
196
  (s(!0), r(O, null, V(f.items, (u, Z) => (s(), r("div", {
197
197
  class: S(["tr-history__item", {
198
198
  selected: u.id && u.id === t.selected,
@@ -245,7 +245,7 @@ const Ce = { class: "tr-history__empty" }, ke = { class: "tr-history__empty-icon
245
245
  onClick: e[4] || (e[4] = //@ts-ignore
246
246
  (...d) => n(v) && n(v)(...d))
247
247
  }, [
248
- b(n(de))
248
+ T(n(de))
249
249
  ], 512)) : U("", !0),
250
250
  t.showRenameControls && n(p) === u ? (s(), r("button", {
251
251
  key: 1,
@@ -256,19 +256,19 @@ const Ce = { class: "tr-history__empty" }, ke = { class: "tr-history__empty-icon
256
256
  onClick: e[5] || (e[5] = //@ts-ignore
257
257
  (...d) => n(o) && n(o)(...d))
258
258
  }, [
259
- b(n(me))
259
+ T(n(me))
260
260
  ], 512)) : U("", !0),
261
261
  R("button", {
262
262
  class: S(["menu", { hidden: n(p) === u }]),
263
263
  onClick: (d) => z(d, u)
264
264
  }, [
265
- b(n(fe))
265
+ T(n(fe))
266
266
  ], 10, Oe)
267
267
  ])
268
268
  ], 10, $e))), 128))
269
269
  ])
270
270
  ]))), 128)),
271
- j(b(Ie, {
271
+ j(T(Ie, {
272
272
  trigger: _.value,
273
273
  "onUpdate:trigger": e[7] || (e[7] = (f) => _.value = f),
274
274
  data: a.value,
@@ -1,9 +1,9 @@
1
- import { defineComponent as f, createElementBlock as r, openBlock as e, normalizeClass as y, 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, 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";
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,
5
5
  class: "tr-prompt__content-description"
6
- }, V = { class: "tr-prompt__badge" }, $ = /* @__PURE__ */ f({
6
+ }, V = { class: "tr-prompt__badge" }, $ = /* @__PURE__ */ y({
7
7
  __name: "prompt",
8
8
  props: {
9
9
  label: {},
@@ -17,7 +17,7 @@ const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-titl
17
17
  setup(o) {
18
18
  const t = o;
19
19
  return (s, d) => (e(), r("div", {
20
- class: y(["tr-prompt", { disabled: t.disabled }, t.size])
20
+ class: f(["tr-prompt", { disabled: t.disabled }, t.size])
21
21
  }, [
22
22
  (e(), m(u(t.icon))),
23
23
  i("div", z, [
@@ -31,7 +31,7 @@ const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-titl
31
31
  ])
32
32
  ], 2));
33
33
  }
34
- }), n = /* @__PURE__ */ v($, [["__scopeId", "data-v-fdc72803"]]), D = { class: "tr-prompts" }, E = /* @__PURE__ */ f({
34
+ }), n = /* @__PURE__ */ v($, [["__scopeId", "data-v-ce67a72d"]]), D = { class: "tr-prompts" }, E = /* @__PURE__ */ y({
35
35
  __name: "prompts",
36
36
  props: {
37
37
  items: {},
@@ -47,7 +47,7 @@ const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-titl
47
47
  };
48
48
  return (a, _) => (e(), r("div", D, [
49
49
  i("div", {
50
- class: y(["tr-prompts__list-container", { wrap: s.wrap, vertical: s.vertical }])
50
+ class: f(["tr-prompts__list-container", { wrap: s.wrap, vertical: s.vertical }])
51
51
  }, [
52
52
  (e(!0), r(k, null, w(s.items, (p, b) => (e(), m(n, x({
53
53
  key: p.id || b