@opentiny/tiny-robot 0.2.0-alpha.6 → 0.2.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/close.js CHANGED
@@ -1,4 +1,4 @@
1
- import { s as o } from "./index2.js";
1
+ import { s as o } from "./index6.js";
2
2
  import { createElementBlock as n, openBlock as r, createElementVNode as t } from "vue";
3
3
  var c = {
4
4
  viewBox: "0 0 16 16",
@@ -1,8 +1,8 @@
1
- import { defineComponent as m, useCssVars as v, useModel as c, computed as _, createElementBlock as $, openBlock as w, createElementVNode as n, renderSlot as r, createVNode as u, unref as a } from "vue";
1
+ import { defineComponent as m, useCssVars as v, useModel as d, computed as _, createElementBlock as $, openBlock as w, createElementVNode as n, renderSlot as r, createVNode as c, unref as a } from "vue";
2
2
  import { $ as g, i as h, t as C } from "../tiny-robot-svgs.js";
3
- import d from "../icon-button/index.js";
3
+ import u from "../icon-button/index.js";
4
4
  import { _ as b } from "../_plugin-vue_export-helper.js";
5
- const B = { class: "tr-container" }, k = { class: "tr-container__header" }, z = { class: "tr-container__header-operations" }, y = { class: "tr-container__footer" }, E = /* @__PURE__ */ m({
5
+ const z = { class: "tr-container" }, B = { class: "tr-container__header" }, k = { class: "tr-container__header-operations" }, y = { class: "tr-container__footer" }, E = /* @__PURE__ */ m({
6
6
  __name: "index",
7
7
  props: {
8
8
  show: { type: Boolean, required: !0 },
@@ -13,29 +13,29 @@ const B = { class: "tr-container" }, k = { class: "tr-container__header" }, z =
13
13
  emits: ["update:show", "update:fullscreen"],
14
14
  setup(o) {
15
15
  v((t) => ({
16
- b67b7ee6: s.value ? "0" : "unset",
17
- "72873ea0": s.value ? "unset" : "var(--tr-container-width)",
18
- "224ae4c1": l.value ? "100" : "-1",
19
- cb10cae2: l.value ? "1" : "0"
16
+ "1daf37f2": s.value ? "0" : "unset",
17
+ "0679141a": s.value ? "unset" : "var(--tr-container-width)",
18
+ "234493b2": l.value ? "var(--tr-z-index-fixed)" : "-1",
19
+ "0c2ba509": l.value ? "1" : "0"
20
20
  }));
21
- const l = c(o, "show"), s = c(o, "fullscreen"), f = _(() => s.value ? g : h);
22
- return (t, e) => (w(), $("div", B, [
21
+ const l = d(o, "show"), s = d(o, "fullscreen"), f = _(() => s.value ? g : h);
22
+ return (t, e) => (w(), $("div", z, [
23
23
  e[3] || (e[3] = n("div", { class: "tr-container__dragging-bar-wrapper" }, [
24
24
  n("div", { class: "tr-container__dragging-bar" })
25
25
  ], -1)),
26
- n("div", k, [
26
+ n("div", B, [
27
27
  r(t.$slots, "title", {}, () => [
28
28
  e[2] || (e[2] = n("h3", { class: "tr-container__title" }, "OpenTiny NEXT", -1))
29
29
  ]),
30
- n("div", z, [
30
+ n("div", k, [
31
31
  r(t.$slots, "operations"),
32
- u(a(d), {
32
+ c(a(u), {
33
33
  size: "28",
34
34
  "svg-size": "20",
35
35
  icon: f.value,
36
36
  onClick: e[0] || (e[0] = (p) => t.$emit("update:fullscreen", !s.value))
37
37
  }, null, 8, ["icon"]),
38
- u(a(d), {
38
+ c(a(u), {
39
39
  size: "28",
40
40
  "svg-size": "20",
41
41
  icon: a(C),
@@ -49,7 +49,7 @@ const B = { class: "tr-container" }, k = { class: "tr-container__header" }, z =
49
49
  ])
50
50
  ]));
51
51
  }
52
- }), i = /* @__PURE__ */ b(E, [["__scopeId", "data-v-81c9f59e"]]);
52
+ }), i = /* @__PURE__ */ b(E, [["__scopeId", "data-v-6a9b9126"]]);
53
53
  i.name = "TrContainer";
54
54
  const I = function(o) {
55
55
  o.component(i.name, i);
@@ -1,8 +1,8 @@
1
- import { defineComponent as $, useCssVars as T, unref as D, ref as d, computed as S, watch as B, createElementBlock as u, openBlock as n, renderSlot as M, createVNode as R, Transition as V, withCtx as E, createBlock as N, createCommentVNode as O, Teleport as W, createElementVNode as m, normalizeStyle as I, Fragment as b, renderList as z, toDisplayString as F } from "vue";
2
- import { u as p, o as H } from "../index3.js";
3
- import { toCssUnit as o } from "../shared/index.js";
4
- import { _ as L } from "../_plugin-vue_export-helper.js";
5
- const P = { class: "tr-dropdown-menu__list" }, U = ["onClick"], j = /* @__PURE__ */ $({
1
+ import { defineComponent as T, useCssVars as D, unref as S, ref as u, computed as B, watch as M, createElementBlock as m, openBlock as n, renderSlot as R, createVNode as V, Transition as b, withCtx as E, createBlock as N, createCommentVNode as O, Teleport as W, createElementVNode as p, normalizeStyle as I, Fragment as z, renderList as F, toDisplayString as H } from "vue";
2
+ import { c as f, o as L } from "../index2.js";
3
+ import { t as o } from "../utils.js";
4
+ import { _ as P } from "../_plugin-vue_export-helper.js";
5
+ const U = { class: "tr-dropdown-menu__list" }, j = ["onClick"], q = /* @__PURE__ */ T({
6
6
  __name: "index",
7
7
  props: {
8
8
  items: {},
@@ -10,49 +10,50 @@ const P = { class: "tr-dropdown-menu__list" }, U = ["onClick"], j = /* @__PURE__
10
10
  topOffset: { default: 0 }
11
11
  },
12
12
  emits: ["item-click"],
13
- setup(s, { emit: f }) {
14
- T((e) => ({
15
- f8e23632: D(o)(l.minWidth)
13
+ setup(s, { emit: _ }) {
14
+ D((e) => ({
15
+ fb65405a: S(o)(l.minWidth)
16
16
  }));
17
- const l = s, t = d(!1), _ = f, c = d(null), a = d(null), { x: w, y: h, update: v } = p(c), { width: k, height: g } = p(a), x = S(() => ({
18
- left: `min(${o(w.value)}, 100% - ${o(k.value)})`,
19
- top: `max(${o(h.value)} - ${o(g.value)} + ${o(l.topOffset)} - 8px, 0px)`
17
+ const l = s, t = u(!1), w = _, a = u(null), i = u(null), { x: h, y: v, update: k } = f(a), { width: g, height: x } = f(i), y = B(() => ({
18
+ left: `min(${o(h.value)}, 100% - ${o(g.value)})`,
19
+ top: `max(${o(v.value)} - ${o(x.value)} + ${o(l.topOffset)} - 8px, 0px)`
20
20
  }));
21
- H(a, (e) => {
22
- e.stopPropagation(), t.value = !1;
23
- }), B(t, (e) => {
24
- e && v();
21
+ L(i, (e) => {
22
+ var d;
23
+ (d = a.value) != null && d.contains(e.target) && e.stopPropagation(), t.value = !1;
24
+ }), M(t, (e) => {
25
+ e && k();
25
26
  });
26
- const y = () => {
27
+ const C = () => {
27
28
  t.value = !t.value;
28
- }, C = (e) => {
29
- t.value = !1, _("item-click", e);
29
+ }, $ = (e) => {
30
+ t.value = !1, w("item-click", e);
30
31
  };
31
- return (e, A) => (n(), u("div", {
32
+ return (e, d) => (n(), m("div", {
32
33
  class: "tr-dropdown-menu__wrapper",
33
34
  ref_key: "dropDownTriggerRef",
34
- ref: c,
35
- onClick: y
35
+ ref: a,
36
+ onClick: C
36
37
  }, [
37
- M(e.$slots, "default", {}, void 0, !0),
38
- R(V, { name: "tr-dropdown-menu" }, {
38
+ R(e.$slots, "default", {}, void 0, !0),
39
+ V(b, { name: "tr-dropdown-menu" }, {
39
40
  default: E(() => [
40
41
  t.value ? (n(), N(W, {
41
42
  key: 0,
42
43
  to: "body"
43
44
  }, [
44
- m("div", {
45
+ p("div", {
45
46
  class: "tr-dropdown-menu",
46
- style: I(x.value),
47
+ style: I(y.value),
47
48
  ref_key: "dropdownMenuRef",
48
- ref: a
49
+ ref: i
49
50
  }, [
50
- m("ul", P, [
51
- (n(!0), u(b, null, z(l.items, (i) => (n(), u("li", {
51
+ p("ul", U, [
52
+ (n(!0), m(z, null, F(l.items, (c) => (n(), m("li", {
52
53
  class: "tr-dropdown-menu__list-item",
53
- key: i.id,
54
- onClick: (G) => C(i)
55
- }, F(i.text), 9, U))), 128))
54
+ key: c.id,
55
+ onClick: (G) => $(c)
56
+ }, H(c.text), 9, j))), 128))
56
57
  ])
57
58
  ], 4)
58
59
  ])) : O("", !0)
@@ -61,12 +62,12 @@ const P = { class: "tr-dropdown-menu__list" }, U = ["onClick"], j = /* @__PURE__
61
62
  })
62
63
  ], 512));
63
64
  }
64
- }), r = /* @__PURE__ */ L(j, [["__scopeId", "data-v-e4886a37"]]);
65
+ }), r = /* @__PURE__ */ P(q, [["__scopeId", "data-v-740d1b6f"]]);
65
66
  r.name = "TrDropdownMenu";
66
- const q = function(s) {
67
+ const A = function(s) {
67
68
  s.component(r.name, r);
68
69
  };
69
- r.install = q;
70
+ r.install = A;
70
71
  export {
71
72
  r as default
72
73
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as X, ref as E, computed as z, onMounted as D, watch as K, createElementBlock as a, openBlock as t, createCommentVNode as k, Fragment as I, renderList as S, toDisplayString as y, createVNode as b, unref as l, nextTick as O, createElementVNode as p, createBlock as d, withCtx as f, createTextVNode as U, resolveDynamicComponent as C } from "vue";
1
+ import { defineComponent as X, ref as E, computed as z, onMounted as D, watch as K, createElementBlock as a, openBlock as t, createCommentVNode as k, Fragment as I, renderList as S, toDisplayString as y, createVNode as h, unref as l, nextTick as O, createElementVNode as d, createBlock as _, withCtx as f, createTextVNode as U, resolveDynamicComponent as C } from "vue";
2
2
  import { K as T, U as N, d as q, s as j, p as H, e as J } from "../tiny-robot-svgs.js";
3
- import { B as R } from "../index5.js";
3
+ import { B as R } from "../index3.js";
4
4
  import $, { ActionGroupItem as V } from "../action-group/index.js";
5
5
  import Q from "../icon-button/index.js";
6
6
  import { _ as P } from "../_plugin-vue_export-helper.js";
@@ -10,30 +10,30 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
10
10
  sources: {},
11
11
  linesLimit: { default: Number.MAX_SAFE_INTEGER }
12
12
  },
13
- setup(h) {
14
- const _ = h, e = E(!1), L = E([]), c = E(null), g = () => {
13
+ setup(b) {
14
+ const m = b, e = E(!1), g = E([]), c = E(null), L = () => {
15
15
  O(() => {
16
- const u = L.value.map((o) => (o == null ? void 0 : o.offsetTop) || 0), n = Array.from(new Set(u));
17
- if (n.length > _.linesLimit) {
18
- const o = n[_.linesLimit - 1], s = u.lastIndexOf(o);
16
+ const u = g.value.slice(0, m.sources.length).map((o) => (o == null ? void 0 : o.offsetTop) || 0), n = Array.from(new Set(u));
17
+ if (n.length > m.linesLimit) {
18
+ const o = n[m.linesLimit - 1], s = u.lastIndexOf(o);
19
19
  c.value = s;
20
20
  } else
21
21
  c.value = null;
22
22
  });
23
- }, A = z(() => _.sources.length - (c.value || 0));
24
- D(g), K(() => _.sources, g);
25
- const m = (u, n) => {
26
- u && (L.value[n] = u);
23
+ }, A = z(() => m.sources.length - (c.value || 0));
24
+ D(L), K(() => m.sources, L);
25
+ const p = (u, n) => {
26
+ u && (g.value[n] = u);
27
27
  };
28
28
  return (u, n) => (t(), a("div", W, [
29
- (t(!0), a(I, null, S(_.sources, (o, s) => (t(), a(I, { key: s }, [
29
+ (t(!0), a(I, null, S(m.sources, (o, s) => (t(), a(I, { key: s }, [
30
30
  !c.value || e.value || s < c.value ? (t(), a("a", {
31
31
  key: 0,
32
32
  class: "pill",
33
33
  href: o.link,
34
34
  target: "_blank",
35
35
  ref_for: !0,
36
- ref: (r) => m(r, s)
36
+ ref: (r) => p(r, s)
37
37
  }, y(o.label), 9, Y)) : k("", !0),
38
38
  c.value && !e.value && s === c.value ? (t(), a("span", {
39
39
  key: 1,
@@ -46,11 +46,11 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
46
46
  class: "pill collapse-pill",
47
47
  onClick: n[1] || (n[1] = (o) => e.value = !1)
48
48
  }, [
49
- b(l(T))
49
+ h(l(T))
50
50
  ])) : k("", !0)
51
51
  ]));
52
52
  }
53
- }), ee = /* @__PURE__ */ P(Z, [["__scopeId", "data-v-5817f518"]]), te = { class: "tr-feedback" }, se = { class: "tr-feedback__operations" }, oe = { class: "tr-feedback__operations-left" }, ne = { key: 1 }, le = { class: "tr-feedback__operations-right" }, ae = {
53
+ }), ee = /* @__PURE__ */ P(Z, [["__scopeId", "data-v-c5fbb560"]]), te = { class: "tr-feedback" }, se = { class: "tr-feedback__operations" }, oe = { class: "tr-feedback__operations-left" }, ne = { key: 1 }, le = { class: "tr-feedback__operations-right" }, ae = {
54
54
  key: 0,
55
55
  class: "tr-feedback__footer"
56
56
  }, re = { key: 0 }, ie = /* @__PURE__ */ X({
@@ -64,55 +64,55 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
64
64
  sourcesLinesLimit: { default: Number.MAX_SAFE_INTEGER }
65
65
  },
66
66
  emits: ["operation", "action"],
67
- setup(h, { emit: _ }) {
68
- const e = h, L = {
67
+ setup(b, { emit: m }) {
68
+ const e = b, g = {
69
69
  copy: J,
70
70
  refresh: H,
71
71
  like: j,
72
72
  dislike: q
73
- }, c = _, g = (n) => {
73
+ }, c = m, L = (n) => {
74
74
  var o, s, r;
75
75
  (r = (s = (o = e.operations) == null ? void 0 : o.find((v) => v.name === n)) == null ? void 0 : s.onClick) == null || r.call(s), c("operation", n);
76
76
  }, A = (n) => {
77
77
  var o, s, r;
78
78
  (r = (s = (o = e.actions) == null ? void 0 : o.find((v) => v.name === n)) == null ? void 0 : s.onClick) == null || r.call(s), c("action", n);
79
- }, m = E(!1), u = () => {
80
- m.value = !m.value;
79
+ }, p = E(!1), u = () => {
80
+ p.value = !p.value;
81
81
  };
82
82
  return (n, o) => {
83
83
  var s, r, v, w, B, F, M, G;
84
84
  return t(), a("div", te, [
85
- p("div", se, [
86
- p("div", oe, [
87
- (s = e.operations) != null && s.length ? (t(), d(l($), {
85
+ d("div", se, [
86
+ d("div", oe, [
87
+ (s = e.operations) != null && s.length ? (t(), _(l($), {
88
88
  key: 0,
89
89
  "max-num": e.operationsLimit,
90
90
  "drop-down-show-label-only": !0,
91
- onItemClick: g,
91
+ onItemClick: L,
92
92
  class: "tr-feedback__operations-left-action-group"
93
93
  }, {
94
94
  moreBtn: f(() => [
95
- b(l(R), {
95
+ h(l(R), {
96
96
  round: "",
97
97
  size: "mini",
98
98
  "reset-time": 0,
99
99
  class: "tr-feedback__operations-more-btn"
100
100
  }, {
101
101
  default: f(() => [
102
- o[0] || (o[0] = p("span", null, "更多", -1)),
103
- b(l(N))
102
+ o[0] || (o[0] = d("span", null, "更多", -1)),
103
+ h(l(N))
104
104
  ]),
105
105
  _: 1
106
106
  })
107
107
  ]),
108
108
  default: f(() => [
109
- (t(!0), a(I, null, S(e.operations, (i) => (t(), d(l(V), {
109
+ (t(!0), a(I, null, S(e.operations, (i) => (t(), _(l(V), {
110
110
  key: i.name,
111
111
  name: i.name,
112
112
  label: i.label
113
113
  }, {
114
114
  default: f(() => [
115
- b(l(R), {
115
+ h(l(R), {
116
116
  round: "",
117
117
  "reset-time": 0,
118
118
  size: "mini"
@@ -128,32 +128,32 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
128
128
  ]),
129
129
  _: 1
130
130
  }, 8, ["max-num"])) : (r = e.sources) != null && r.length ? (t(), a("div", ne, [
131
- p("span", {
131
+ d("span", {
132
132
  class: "tr-feedback__source",
133
133
  onClick: u
134
134
  }, [
135
- p("span", null, y((v = e.sources) == null ? void 0 : v.length) + "条来源", 1),
136
- (t(), d(C(m.value ? l(T) : l(N))))
135
+ d("span", null, y((v = e.sources) == null ? void 0 : v.length) + "条来源", 1),
136
+ (t(), _(C(p.value ? l(T) : l(N))))
137
137
  ])
138
138
  ])) : k("", !0)
139
139
  ]),
140
- p("div", le, [
141
- b(l($), {
140
+ d("div", le, [
141
+ h(l($), {
142
142
  "max-num": e.actionsLimit,
143
143
  "show-tooltip": !0,
144
144
  onItemClick: A
145
145
  }, {
146
146
  default: f(() => [
147
- (t(!0), a(I, null, S(e.actions, (i) => (t(), d(l(V), {
147
+ (t(!0), a(I, null, S(e.actions, (i) => (t(), _(l(V), {
148
148
  key: i.name,
149
149
  name: i.name,
150
150
  label: i.label
151
151
  }, {
152
152
  default: f(() => [
153
- typeof i.icon == "string" ? (t(), d(l(Q), {
153
+ typeof i.icon == "string" ? (t(), _(l(Q), {
154
154
  key: 0,
155
- icon: L[i.icon]
156
- }, null, 8, ["icon"])) : (t(), d(C(i.icon), { key: 1 }))
155
+ icon: g[i.icon]
156
+ }, null, 8, ["icon"])) : (t(), _(C(i.icon), { key: 1 }))
157
157
  ]),
158
158
  _: 2
159
159
  }, 1032, ["name", "label"]))), 128))
@@ -162,17 +162,17 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
162
162
  }, 8, ["max-num"])
163
163
  ])
164
164
  ]),
165
- (w = e.operations) != null && w.length && ((B = e.sources) != null && B.length) || m.value && e.sources ? (t(), a("div", ae, [
165
+ (w = e.operations) != null && w.length && ((B = e.sources) != null && B.length) || p.value && e.sources ? (t(), a("div", ae, [
166
166
  (F = e.operations) != null && F.length && ((M = e.sources) != null && M.length) ? (t(), a("div", re, [
167
- p("span", {
167
+ d("span", {
168
168
  class: "tr-feedback__source",
169
169
  onClick: u
170
170
  }, [
171
- p("span", null, y((G = e.sources) == null ? void 0 : G.length) + "条来源", 1),
172
- (t(), d(C(m.value ? l(T) : l(N))))
171
+ d("span", null, y((G = e.sources) == null ? void 0 : G.length) + "条来源", 1),
172
+ (t(), _(C(p.value ? l(T) : l(N))))
173
173
  ])
174
174
  ])) : k("", !0),
175
- m.value && e.sources ? (t(), d(l(ee), {
175
+ p.value && e.sources ? (t(), _(l(ee), {
176
176
  key: 1,
177
177
  sources: e.sources,
178
178
  "lines-limit": e.sourcesLinesLimit
@@ -183,8 +183,8 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
183
183
  }
184
184
  }), x = /* @__PURE__ */ P(ie, [["__scopeId", "data-v-cc6ef316"]]);
185
185
  x.name = "TrFeedback";
186
- const ce = function(h) {
187
- h.component(x.name, x);
186
+ const ce = function(b) {
187
+ b.component(x.name, x);
188
188
  };
189
189
  x.install = ce;
190
190
  export {
@@ -1,6 +1,6 @@
1
- import { defineComponent as V, mergeModels as E, useModel as q, watch as g, ref as i, computed as $, createElementBlock as a, openBlock as l, createElementVNode as C, Fragment as I, renderList as S, createCommentVNode as _, normalizeClass as x, createBlock as B, resolveDynamicComponent as b, toDisplayString as D, nextTick as G } from "vue";
1
+ import { defineComponent as V, mergeModels as E, useModel as q, watch as g, ref as i, computed as $, createElementBlock as a, openBlock as l, createElementVNode as C, Fragment as I, renderList as S, createCommentVNode as _, normalizeClass as b, createBlock as x, resolveDynamicComponent as B, toDisplayString as D, nextTick as G } from "vue";
2
2
  import { U as H } from "../tiny-robot-svgs.js";
3
- import { a as X, o as j } from "../index3.js";
3
+ import { b as X, o as j } from "../index2.js";
4
4
  import { _ as J } from "../_plugin-vue_export-helper.js";
5
5
  const K = ["onClick"], P = {
6
6
  key: 0,
@@ -67,26 +67,26 @@ const K = ["onClick"], P = {
67
67
  }, [
68
68
  s.value === null || f < s.value ? (l(), a("button", {
69
69
  key: 0,
70
- class: x(["tr-flow-layout__item", { "icon-only": !e.label }, { selected: e.id === u.value }]),
70
+ class: b(["tr-flow-layout__item", { "icon-only": !e.label }, { selected: e.id === u.value }]),
71
71
  ref_for: !0,
72
72
  ref: (r) => A(r, f),
73
73
  onClick: (r) => R(e.id)
74
74
  }, [
75
- (l(), B(b(e.icon), { class: "tr-flow-layout__item-icon" })),
75
+ (l(), x(B(e.icon), { class: "tr-flow-layout__item-icon" })),
76
76
  e.label ? (l(), a("span", P, D(e.label), 1)) : _("", !0)
77
77
  ], 10, K)) : _("", !0)
78
78
  ], 64))), 128)),
79
79
  C("div", Q, [
80
80
  m.value ? _("", !0) : (l(), a("button", {
81
81
  key: 0,
82
- class: x(["tr-flow-layout__item", "icon-only", { selected: O.value }]),
82
+ class: b(["tr-flow-layout__item", "icon-only", { selected: O.value }]),
83
83
  ref_key: "moreButtonRef",
84
84
  ref: w,
85
85
  onClick: U,
86
86
  onMouseenter: o[0] || (o[0] = (e) => v(!0)),
87
87
  onMouseleave: o[1] || (o[1] = (e) => v(!1))
88
88
  }, [
89
- (l(), B(b(n.moreIcon), { class: "tr-flow-layout__item-icon" }))
89
+ (l(), x(B(n.moreIcon), { class: "tr-flow-layout__item-icon" }))
90
90
  ], 34)),
91
91
  C("div", {
92
92
  class: "tr-flow-layout__dropdown-container",
@@ -100,11 +100,11 @@ const K = ["onClick"], P = {
100
100
  ref: k
101
101
  }, [
102
102
  (l(!0), a(I, null, S(z.value, (e) => (l(), a("button", {
103
- class: x(["tr-flow-layout__dropdown_item", { selected: e.id === u.value }]),
103
+ class: b(["tr-flow-layout__dropdown_item", { selected: e.id === u.value }]),
104
104
  key: e.id,
105
105
  onClick: (f) => R(e.id)
106
106
  }, [
107
- (l(), B(b(e.icon), { class: "tr-flow-layout__item-icon" })),
107
+ (l(), x(B(e.icon), { class: "tr-flow-layout__item-icon" })),
108
108
  C("span", Z, D(e.label), 1)
109
109
  ], 10, Y))), 128))
110
110
  ], 512)) : _("", !0)
@@ -112,7 +112,7 @@ const K = ["onClick"], P = {
112
112
  ])
113
113
  ], 512));
114
114
  }
115
- }), p = /* @__PURE__ */ J(ee, [["__scopeId", "data-v-5a28ac75"]]);
115
+ }), p = /* @__PURE__ */ J(ee, [["__scopeId", "data-v-5c283520"]]);
116
116
  p.name = "TrFlowLayout";
117
117
  const te = function(d) {
118
118
  d.component(p.name, p);
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as V, createElementBlock as u, openBlock as n, normalizeStyle as X, normalizeClass as D, createElementVNode as p, toDisplayString as k, createVNode as m, unref as e, ref as G, watchEffect as Y, nextTick as Z, mergeModels as N, useCssVars as q, computed as h, useModel as P, createCommentVNode as E, Fragment as T, renderList as $, createBlock as R, withDirectives as ee, mergeProps as te, withCtx as z, withModifiers as H, vModelText as re } from "vue";
2
2
  import { f as oe, z as se, r as ae, n as ne, t as ie } from "../tiny-robot-svgs.js";
3
- import { I as le } from "../index6.js";
3
+ import { I as le } from "../index5.js";
4
4
  import { T as S } from "../index4.js";
5
5
  import B from "../icon-button/index.js";
6
- import { o as ce } from "../index3.js";
6
+ import { o as ce } from "../index2.js";
7
7
  import { _ as M } from "../_plugin-vue_export-helper.js";
8
8
  const ue = /* @__PURE__ */ V({
9
9
  __name: "item-tag",
@@ -1,5 +1,5 @@
1
- import { defineComponent as p, useCssVars as l, computed as t, createElementBlock as u, openBlock as s, normalizeClass as m, createBlock as d, resolveDynamicComponent as _ } from "vue";
2
- import { toCssUnit as c } from "../shared/index.js";
1
+ import { defineComponent as p, useCssVars as l, computed as n, createElementBlock as u, openBlock as s, normalizeClass as m, createBlock as d, resolveDynamicComponent as _ } from "vue";
2
+ import { t as c } from "../utils.js";
3
3
  import { _ as f } from "../_plugin-vue_export-helper.js";
4
4
  const v = /* @__PURE__ */ p({
5
5
  __name: "index",
@@ -9,12 +9,12 @@ const v = /* @__PURE__ */ p({
9
9
  svgSize: { default: "16px" },
10
10
  rounded: { type: Boolean }
11
11
  },
12
- setup(n) {
12
+ setup(t) {
13
13
  l((i) => ({
14
14
  "72b46ad2": a.value,
15
15
  66777814: r.value
16
16
  }));
17
- const o = n, a = t(() => c(o.size)), r = t(() => c(o.svgSize));
17
+ const o = t, a = n(() => c(o.size)), r = n(() => c(o.svgSize));
18
18
  return (i, z) => (s(), u("button", {
19
19
  class: m(["tr-icon-button", { rounded: o.rounded }])
20
20
  }, [
@@ -23,8 +23,8 @@ const v = /* @__PURE__ */ p({
23
23
  }
24
24
  }), e = /* @__PURE__ */ f(v, [["__scopeId", "data-v-fe8553bc"]]);
25
25
  e.name = "TrIconButton";
26
- const x = function(n) {
27
- n.component(e.name, e);
26
+ const x = function(t) {
27
+ t.component(e.name, e);
28
28
  };
29
29
  e.install = x;
30
30
  export {