@opentiny/tiny-robot 0.3.0-alpha.11 → 0.3.0-alpha.13

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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as $, useSlots as H, computed as i, ref as f, watch as N, nextTick as W, createElementBlock as _, openBlock as o, createBlock as v, createCommentVNode as R, Fragment as G, renderList as I, unref as h, withCtx as S, createElementVNode as w, resolveDynamicComponent as x, renderSlot as z, createVNode as E, Transition as j, withDirectives as q, normalizeClass as J, withModifiers as K, toDisplayString as Q, vShow as U } from "vue";
2
- import { z as Y } from "../tiny-robot-svgs.js";
1
+ import { defineComponent as $, useSlots as H, computed as i, ref as f, watch as T, nextTick as W, createElementBlock as _, openBlock as o, createBlock as v, createCommentVNode as R, Fragment as G, renderList as I, unref as h, withCtx as S, createElementVNode as w, resolveDynamicComponent as x, renderSlot as L, createVNode as E, Transition as j, withDirectives as q, normalizeClass as J, withModifiers as K, toDisplayString as Q, vShow as U } from "vue";
2
+ import { N as Y } from "../tiny-robot-svgs.js";
3
3
  import { T as M } from "../index2.js";
4
4
  import { o as Z, c as ee } from "../index3.js";
5
5
  import te from "../icon-button/index.js";
@@ -13,14 +13,14 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
13
13
  },
14
14
  emits: ["item-click"],
15
15
  setup(r, { emit: k }) {
16
- const l = r, L = H(), F = k, p = i(() => {
16
+ const l = r, F = H(), O = k, p = i(() => {
17
17
  var a, t;
18
- const e = L.default();
18
+ const e = F.default();
19
19
  return Array.isArray(e) ? e.length === 1 && ((a = e[0].type) == null ? void 0 : a.toString()) === "Symbol(v-fgt)" ? e[0].children : e : ((t = e.type) == null ? void 0 : t.toString()) === "Symbol(v-fgt)" ? e.children : [e];
20
20
  }), y = i(() => {
21
21
  const e = l.maxNum ?? Number.MAX_SAFE_INTEGER;
22
22
  return e > 0 ? e : Number.MAX_SAFE_INTEGER;
23
- }), b = i(() => p.value.length > y.value), O = i(() => b.value ? p.value.slice(0, y.value) : p.value), V = i(() => b.value ? p.value.slice(y.value) : []), m = f(null), d = f(null), n = f(!1), P = () => {
23
+ }), b = i(() => p.value.length > y.value), V = i(() => b.value ? p.value.slice(0, y.value) : p.value), z = i(() => b.value ? p.value.slice(y.value) : []), m = f(null), d = f(null), n = f(!1), P = () => {
24
24
  n.value = !n.value;
25
25
  };
26
26
  Z(
@@ -31,21 +31,21 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
31
31
  { ignore: [m] }
32
32
  );
33
33
  const A = (e) => {
34
- F("item-click", e), n.value = !1;
35
- }, B = f("placement-bottom"), { height: D } = ee(), T = () => {
34
+ O("item-click", e), n.value = !1;
35
+ }, B = f("placement-bottom"), { height: D } = ee(), N = () => {
36
36
  if (!d.value || !m.value)
37
37
  return "placement-bottom";
38
38
  const e = d.value.getBoundingClientRect(), a = m.value.getBoundingClientRect();
39
39
  B.value = a.bottom + e.height + 16 > D.value ? "placement-top" : "placement-bottom";
40
40
  };
41
- return N(n, (e) => {
41
+ return T(n, (e) => {
42
42
  e && W(() => {
43
- T();
43
+ N();
44
44
  });
45
- }), N(D, () => {
46
- n.value && T();
45
+ }), T(D, () => {
46
+ n.value && N();
47
47
  }), (e, a) => (o(), _("div", ne, [
48
- (o(!0), _(G, null, I(O.value, (t, C) => {
48
+ (o(!0), _(G, null, I(V.value, (t, C) => {
49
49
  var c;
50
50
  return o(), v(h(M), {
51
51
  key: C,
@@ -84,7 +84,7 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
84
84
  class: "tr-action-group__btn-wrapper",
85
85
  onClick: P
86
86
  }, [
87
- z(e.$slots, "moreBtn", {}, () => [
87
+ L(e.$slots, "moreBtn", {}, () => [
88
88
  E(h(te), { icon: h(Y) }, null, 8, ["icon"])
89
89
  ], !0),
90
90
  E(j, { name: "tr-action-group-dropdown" }, {
@@ -94,7 +94,7 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
94
94
  ref: d,
95
95
  class: J(["tr-action-group__dropdown", B.value])
96
96
  }, [
97
- (o(!0), _(G, null, I(V.value, (t, C) => {
97
+ (o(!0), _(G, null, I(z.value, (t, C) => {
98
98
  var c;
99
99
  return o(), _("li", {
100
100
  class: "tr-action-group__dropdown-item",
@@ -127,7 +127,7 @@ const ne = { class: "tr-action-group" }, re = ["onClick"], le = ["onClick"], ae
127
127
  label: {}
128
128
  },
129
129
  setup(r) {
130
- return (k, l) => z(k.$slots, "default");
130
+ return (k, l) => L(k.$slots, "default");
131
131
  }
132
132
  });
133
133
  g.name = "TrActionGroup";
@@ -1,16 +1,16 @@
1
- import { computed as I, ref as P, onUnmounted as Y, defineComponent as B, mergeModels as j, useModel as Z, createElementBlock as d, openBlock as o, withModifiers as x, createElementVNode as p, createVNode as F, unref as f, Fragment as z, renderList as D, normalizeClass as R, h as ee, createCommentVNode as C, createBlock as L, toDisplayString as U, withCtx as te, resolveDynamicComponent as V, watch as se } from "vue";
2
- import { o as ae, r as O, s as q, d as J, c as K, f as G, i as H, U as re, J as ne, I as oe, A as ie, C as E, u as W } from "../tiny-robot-svgs.js";
1
+ import { computed as I, ref as U, onUnmounted as Y, defineComponent as B, mergeModels as j, useModel as Z, createElementBlock as d, openBlock as o, withModifiers as P, createElementVNode as p, createVNode as F, unref as f, Fragment as D, renderList as A, normalizeClass as L, h as ee, createCommentVNode as C, createBlock as R, toDisplayString as x, withCtx as te, resolveDynamicComponent as N, watch as se } from "vue";
2
+ import { m as ae, h as V, O as q, L as X, x as K, P as G, z as H, c as re, l as ne, o as oe, X as ie, k as E, F as O } from "../tiny-robot-svgs.js";
3
3
  import { _ as S } from "../_plugin-vue_export-helper.js";
4
4
  import { T as le } from "../index2.js";
5
- const A = {
5
+ const z = {
6
6
  image: H,
7
7
  pdf: G,
8
8
  word: K,
9
- excel: J,
9
+ excel: X,
10
10
  ppt: q,
11
- folder: O,
11
+ folder: V,
12
12
  other: ae
13
- }, N = [
13
+ }, W = [
14
14
  {
15
15
  type: "image",
16
16
  matcher: (t) => {
@@ -47,7 +47,7 @@ const A = {
47
47
  const r = ((s = t.split(".").pop()) == null ? void 0 : s.toLowerCase()) || "";
48
48
  return ["xls", "xlsx"].includes(r);
49
49
  },
50
- icon: J
50
+ icon: X
51
51
  },
52
52
  {
53
53
  type: "ppt",
@@ -63,18 +63,18 @@ const A = {
63
63
  {
64
64
  type: "folder",
65
65
  matcher: (t) => typeof t != "string" ? !1 : t.toLowerCase().endsWith("folder"),
66
- icon: O
66
+ icon: V
67
67
  }
68
68
  ];
69
- function Q(t = {}) {
69
+ function J(t = {}) {
70
70
  const { customIcons: r, fileMatchers: s } = t, u = () => {
71
71
  let e = [];
72
- return s ? e = s.concat(N) : e = N, e;
72
+ return s ? e = s.concat(W) : e = W, e;
73
73
  }, i = (e = "other") => I(() => {
74
74
  if (r != null && r[e])
75
75
  return r[e];
76
76
  const a = u().find((_) => _.type === e);
77
- return a != null && a.icon ? a.icon : A[e] ? A[e] : A.other;
77
+ return a != null && a.icon ? a.icon : z[e] ? z[e] : z.other;
78
78
  }), v = (e) => {
79
79
  const n = u();
80
80
  for (const a of n)
@@ -128,7 +128,7 @@ const ce = (t, r) => {
128
128
  }
129
129
  };
130
130
  function de(t, r) {
131
- const s = P([]), u = I(() => t.file.fileType === "image"), i = (l) => {
131
+ const s = U([]), u = I(() => t.file.fileType === "image"), i = (l) => {
132
132
  const h = URL.createObjectURL(l);
133
133
  return s.value.push(h), h;
134
134
  }, v = (l) => {
@@ -182,7 +182,7 @@ const ue = { class: "tr-image-preview__main" }, fe = ["disabled"], pe = { class:
182
182
  var c, m;
183
183
  return o(), d("div", {
184
184
  class: "tr-image-preview",
185
- onClick: x(w, ["self"])
185
+ onClick: P(w, ["self"])
186
186
  }, [
187
187
  p("button", {
188
188
  class: "tr-image-preview__close",
@@ -193,7 +193,7 @@ const ue = { class: "tr-image-preview__main" }, fe = ["disabled"], pe = { class:
193
193
  p("div", ue, [
194
194
  p("button", {
195
195
  class: "tr-image-preview__nav tr-image-preview__nav--left",
196
- onClick: x(y, ["stop"]),
196
+ onClick: P(y, ["stop"]),
197
197
  disabled: i.value === 0
198
198
  }, [
199
199
  F(f(ne))
@@ -207,7 +207,7 @@ const ue = { class: "tr-image-preview__main" }, fe = ["disabled"], pe = { class:
207
207
  ]),
208
208
  p("button", {
209
209
  class: "tr-image-preview__nav tr-image-preview__nav--right",
210
- onClick: x(b, ["stop"]),
210
+ onClick: P(b, ["stop"]),
211
211
  disabled: i.value === l.images.length - 1
212
212
  }, [
213
213
  F(f(oe))
@@ -215,9 +215,9 @@ const ue = { class: "tr-image-preview__main" }, fe = ["disabled"], pe = { class:
215
215
  ]),
216
216
  p("div", ve, [
217
217
  p("div", he, [
218
- (o(!0), d(z, null, D(l.images, (e, n) => (o(), d("div", {
218
+ (o(!0), d(D, null, A(l.images, (e, n) => (o(), d("div", {
219
219
  key: e.id,
220
- class: R(["tr-image-preview__thumbnail", { "tr-image-preview__thumbnail--active": n === i.value }]),
220
+ class: L(["tr-image-preview__thumbnail", { "tr-image-preview__thumbnail--active": n === i.value }]),
221
221
  onClick: (a) => k(n)
222
222
  }, [
223
223
  p("img", {
@@ -232,7 +232,7 @@ const ue = { class: "tr-image-preview__main" }, fe = ["disabled"], pe = { class:
232
232
  }
233
233
  }), be = /* @__PURE__ */ S(we, [["__scopeId", "data-v-027af77c"]]);
234
234
  function ke(t, r, s = {}) {
235
- const u = P(!1), i = P([]), v = P(0), y = (c) => {
235
+ const u = U(!1), i = U([]), v = U(0), y = (c) => {
236
236
  v.value = c;
237
237
  }, b = (c) => {
238
238
  const m = t.value.findIndex((e) => e.id === c.id);
@@ -271,40 +271,40 @@ function Ce(t, r) {
271
271
  const Ie = ["data-file-type"], Fe = {
272
272
  key: 1,
273
273
  class: "tr-file-card__picture-container"
274
- }, Ue = ["src", "alt"], xe = {
274
+ }, xe = ["src", "alt"], Pe = {
275
275
  key: 0,
276
276
  class: "tr-file-card__picture-overlay"
277
277
  }, Me = {
278
278
  key: 1,
279
279
  class: "tr-file-card__status-overlay tr-file-card__status-overlay--picture"
280
- }, Pe = {
280
+ }, Ue = {
281
281
  key: 0,
282
282
  class: "tr-file-card__status-icon tr-file-card__status-icon--loading"
283
- }, Re = {
283
+ }, Le = {
284
284
  key: 0,
285
285
  class: "tr-file-card__status-icon--loading-text"
286
- }, Le = {
286
+ }, Re = {
287
287
  key: 2,
288
288
  class: "tr-file-card__default-container"
289
289
  }, $e = { class: "tr-file-card__icon-wrapper" }, Te = {
290
290
  key: 0,
291
291
  class: "tr-file-card__status-overlay tr-file-card__status-overlay--icon"
292
- }, Ae = {
292
+ }, ze = {
293
293
  key: 0,
294
294
  class: "tr-file-card__status-icon tr-file-card__status-icon--loading"
295
- }, Be = { class: "tr-file-card__content" }, ze = { class: "tr-file-card__info" }, De = ["title"], Se = {
295
+ }, Be = { class: "tr-file-card__content" }, De = { class: "tr-file-card__info" }, Ae = ["title"], Se = {
296
296
  key: 0,
297
297
  class: "tr-file-card__status"
298
298
  }, je = {
299
299
  key: 0,
300
300
  class: "tr-file-card__status-success"
301
- }, Ee = { class: "tr-file-card__status-info" }, We = { class: "tr-file-card__file-type" }, Ne = {
301
+ }, Ee = { class: "tr-file-card__status-info" }, Oe = { class: "tr-file-card__file-type" }, We = {
302
302
  key: 0,
303
303
  class: "tr-file-card__file-size"
304
- }, Ve = {
304
+ }, Ne = {
305
305
  key: 0,
306
306
  class: "tr-file-card__actions"
307
- }, Oe = ["href", "target", "onClick"], qe = ["onClick"], Je = {
307
+ }, Ve = ["href", "target", "onClick"], qe = ["onClick"], Xe = {
308
308
  key: 1,
309
309
  class: "tr-file-card__status-uploading"
310
310
  }, Ke = {
@@ -323,7 +323,7 @@ const Ie = ["data-file-type"], Fe = {
323
323
  },
324
324
  emits: ["remove", "preview", "action", "retry", "download"],
325
325
  setup(t, { emit: r }) {
326
- const s = t, u = r, { formatFileSize: i, getIconComponent: v } = Q({
326
+ const s = t, u = r, { formatFileSize: i, getIconComponent: v } = J({
327
327
  customIcons: s.fileIcons,
328
328
  fileMatchers: s.fileMatchers
329
329
  }), { isImage: y, handlePreview: b, handleRemove: k, handleCustomAction: w, handleRetry: l } = de(s, u), h = I(() => v(s.file.fileType).value), c = I(() => s.file.status === "uploading"), m = I(() => s.file.status === "success"), e = I(() => s.file.status === "error"), n = I(() => [
@@ -338,14 +338,14 @@ const Ie = ["data-file-type"], Fe = {
338
338
  return (a, _) => {
339
339
  var M;
340
340
  return o(), d("div", {
341
- class: R(n.value),
341
+ class: L(n.value),
342
342
  "data-file-type": a.file.fileType || "other",
343
343
  onClick: _[3] || (_[3] = (g) => a.variant === "picture" ? f(b)(g) : void 0)
344
344
  }, [
345
345
  a.disabled ? C("", !0) : (o(), d("button", {
346
346
  key: 0,
347
347
  class: "tr-file-card__close-btn",
348
- onClick: _[0] || (_[0] = x(
348
+ onClick: _[0] || (_[0] = P(
349
349
  //@ts-ignore
350
350
  (...g) => f(k) && f(k)(...g),
351
351
  ["stop"]
@@ -359,37 +359,37 @@ const Ie = ["data-file-type"], Fe = {
359
359
  src: a.file.url,
360
360
  alt: a.file.name,
361
361
  class: "tr-file-card__picture-img"
362
- }, null, 8, Ue),
363
- m.value ? (o(), d("div", xe, _[4] || (_[4] = [
362
+ }, null, 8, xe),
363
+ m.value ? (o(), d("div", Pe, _[4] || (_[4] = [
364
364
  p("span", { class: "tr-file-card__picture-overlay-text" }, "预览", -1)
365
365
  ]))) : C("", !0),
366
366
  c.value || e.value ? (o(), d("div", Me, [
367
- c.value ? (o(), d("div", Pe, [
367
+ c.value ? (o(), d("div", Ue, [
368
368
  F(f(E)),
369
- a.file.message ? (o(), d("span", Re, U(a.file.message), 1)) : C("", !0)
370
- ])) : e.value ? (o(), L(f(le), {
369
+ a.file.message ? (o(), d("span", Le, x(a.file.message), 1)) : C("", !0)
370
+ ])) : e.value ? (o(), R(f(le), {
371
371
  key: 1,
372
372
  content: "解析失败",
373
373
  placement: "top",
374
374
  effect: "light"
375
375
  }, {
376
376
  default: te(() => [
377
- F(f(W), { class: "tr-file-card__status-icon tr-file-card__status-icon--error" })
377
+ F(f(O), { class: "tr-file-card__status-icon tr-file-card__status-icon--error" })
378
378
  ]),
379
379
  _: 1
380
380
  })) : C("", !0)
381
381
  ])) : C("", !0)
382
- ])) : (o(), d("div", Le, [
382
+ ])) : (o(), d("div", Re, [
383
383
  p("div", {
384
- class: R(["tr-file-card__icon", { "tr-file-card__icon--clickable": f(y) }]),
385
- onClick: _[1] || (_[1] = x((g) => f(y) ? f(b)(g) : null, ["stop"]))
384
+ class: L(["tr-file-card__icon", { "tr-file-card__icon--clickable": f(y) }]),
385
+ onClick: _[1] || (_[1] = P((g) => f(y) ? f(b)(g) : null, ["stop"]))
386
386
  }, [
387
387
  p("div", $e, [
388
- (o(), L(V(h.value), { class: "tr-file-card__file-icon" })),
388
+ (o(), R(N(h.value), { class: "tr-file-card__file-icon" })),
389
389
  c.value || e.value ? (o(), d("div", Te, [
390
- c.value ? (o(), d("div", Ae, [
390
+ c.value ? (o(), d("div", ze, [
391
391
  F(f(E))
392
- ])) : e.value ? (o(), L(f(W), {
392
+ ])) : e.value ? (o(), R(f(O), {
393
393
  key: 1,
394
394
  class: "tr-file-card__status-icon tr-file-card__status-icon--error"
395
395
  })) : C("", !0)
@@ -397,20 +397,20 @@ const Ie = ["data-file-type"], Fe = {
397
397
  ])
398
398
  ], 2),
399
399
  p("div", Be, [
400
- p("div", ze, [
400
+ p("div", De, [
401
401
  p("div", {
402
402
  class: "tr-file-card__name",
403
403
  title: a.file.name
404
- }, U(a.file.name), 9, De),
404
+ }, x(a.file.name), 9, Ae),
405
405
  a.showStatus ? (o(), d("div", Se, [
406
406
  m.value ? (o(), d("div", je, [
407
407
  p("div", Ee, [
408
- p("span", We, U(((M = a.file.fileType) == null ? void 0 : M.toUpperCase()) || "FILE"), 1),
409
- a.file.size ? (o(), d("span", Ne, U(f(i)(a.file.size)), 1)) : C("", !0)
408
+ p("span", Oe, x(((M = a.file.fileType) == null ? void 0 : M.toUpperCase()) || "FILE"), 1),
409
+ a.file.size ? (o(), d("span", We, x(f(i)(a.file.size)), 1)) : C("", !0)
410
410
  ]),
411
- a.actions ? (o(), d("div", Ve, [
412
- (o(!0), d(z, null, D(a.actions, (g, X) => (o(), d("div", {
413
- key: X,
411
+ a.actions ? (o(), d("div", Ne, [
412
+ (o(!0), d(D, null, A(a.actions, (g, Q) => (o(), d("div", {
413
+ key: Q,
414
414
  class: "tr-file-card__action-btn"
415
415
  }, [
416
416
  g.type === "download" ? (o(), d("a", {
@@ -419,14 +419,14 @@ const Ie = ["data-file-type"], Fe = {
419
419
  href: a.file.url ?? "javascript:void(0)",
420
420
  target: a.file.url ? "_blank" : "_self",
421
421
  onClick: (T) => f(w)(g, T)
422
- }, U(g.label), 9, Oe)) : (o(), d("button", {
422
+ }, x(g.label), 9, Ve)) : (o(), d("button", {
423
423
  key: 1,
424
- class: R(`tr-file-card__action-btn--${g.type}`),
424
+ class: L(`tr-file-card__action-btn--${g.type}`),
425
425
  onClick: (T) => f(w)(g, T)
426
- }, U(g.label), 11, qe))
426
+ }, x(g.label), 11, qe))
427
427
  ]))), 128))
428
428
  ])) : C("", !0)
429
- ])) : c.value ? (o(), d("div", Je, _[5] || (_[5] = [
429
+ ])) : c.value ? (o(), d("div", Xe, _[5] || (_[5] = [
430
430
  p("span", { class: "tr-file-card__uploading-text" }, "上传中...", -1)
431
431
  ]))) : e.value ? (o(), d("div", Ke, [
432
432
  _[6] || (_[6] = p("span", { class: "tr-file-card__error-text" }, "上传失败", -1)),
@@ -443,7 +443,7 @@ const Ie = ["data-file-type"], Fe = {
443
443
  ], 10, Ie);
444
444
  };
445
445
  }
446
- }), He = /* @__PURE__ */ S(Ge, [["__scopeId", "data-v-06df896e"]]), Qe = { class: "tr-attachments" }, Xe = /* @__PURE__ */ B({
446
+ }), He = /* @__PURE__ */ S(Ge, [["__scopeId", "data-v-06df896e"]]), Je = { class: "tr-attachments" }, Qe = /* @__PURE__ */ B({
447
447
  __name: "index",
448
448
  props: {
449
449
  items: {},
@@ -465,7 +465,7 @@ const Ie = ["data-file-type"], Fe = {
465
465
  },
466
466
  emits: ["update:items", "remove", "download", "retry", "preview", "action"],
467
467
  setup(t, { emit: r }) {
468
- const s = t, u = r, i = P(s.items || []), { actualListType: v } = Ce(i, s.variant), { handlePreview: y, renderPreview: b } = ke(i, u, { enableDownload: !0 });
468
+ const s = t, u = r, i = U(s.items || []), { actualListType: v } = Ce(i, s.variant), { handlePreview: y, renderPreview: b } = ke(i, u, { enableDownload: !0 });
469
469
  function k(e) {
470
470
  if (s.disabled) return;
471
471
  const n = i.value.findIndex((a) => a.id === e.id);
@@ -480,7 +480,7 @@ const Ie = ["data-file-type"], Fe = {
480
480
  function h(e) {
481
481
  u("action", e);
482
482
  }
483
- const c = I(() => s.wrap ? "wrap" : "no-wrap"), { normalizeAttachments: m } = Q({
483
+ const c = I(() => s.wrap ? "wrap" : "no-wrap"), { normalizeAttachments: m } = J({
484
484
  fileMatchers: s.fileMatchers
485
485
  });
486
486
  return se(
@@ -489,14 +489,14 @@ const Ie = ["data-file-type"], Fe = {
489
489
  e && e.length > 0 && (i.value = m(e));
490
490
  },
491
491
  { deep: !0, immediate: !0 }
492
- ), (e, n) => (o(), d("div", Qe, [
492
+ ), (e, n) => (o(), d("div", Je, [
493
493
  i.value.length > 0 ? (o(), d("div", {
494
494
  key: 0,
495
- class: R(["tr-attachments__file-list", c.value]),
496
- onClick: n[0] || (n[0] = x(() => {
495
+ class: L(["tr-attachments__file-list", c.value]),
496
+ onClick: n[0] || (n[0] = P(() => {
497
497
  }, ["stop"]))
498
498
  }, [
499
- (o(!0), d(z, null, D(i.value, (a) => (o(), L(He, {
499
+ (o(!0), d(D, null, A(i.value, (a) => (o(), R(He, {
500
500
  key: a.id,
501
501
  file: a,
502
502
  variant: f(v),
@@ -512,10 +512,10 @@ const Ie = ["data-file-type"], Fe = {
512
512
  onAction: h
513
513
  }, null, 8, ["file", "variant", "file-icons", "disabled", "actions", "file-matchers", "onPreview"]))), 128))
514
514
  ], 2)) : C("", !0),
515
- (o(), L(V(f(b)())))
515
+ (o(), R(N(f(b)())))
516
516
  ]));
517
517
  }
518
- }), $ = /* @__PURE__ */ S(Xe, [["__scopeId", "data-v-e09559ac"]]);
518
+ }), $ = /* @__PURE__ */ S(Qe, [["__scopeId", "data-v-e09559ac"]]);
519
519
  $.name = "TrAttachments";
520
520
  const Ye = function(t) {
521
521
  t.component($.name, $);
@@ -1,8 +1,8 @@
1
- import { defineComponent as v, useCssVars as m, useModel as d, computed as _, createElementBlock as w, openBlock as g, createElementVNode as n, renderSlot as r, createVNode as c, unref as a } from "vue";
2
- import { R as h, v as $, U as C } from "../tiny-robot-svgs.js";
1
+ import { defineComponent as m, useCssVars as v, useModel as c, computed as _, createElementBlock as w, openBlock as g, createElementVNode as n, renderSlot as r, createVNode as d, unref as a } from "vue";
2
+ import { A as h, b as $, c as b } from "../tiny-robot-svgs.js";
3
3
  import u from "../icon-button/index.js";
4
- import { _ as b } from "../_plugin-vue_export-helper.js";
5
- const z = { class: "tr-container" }, B = { class: "tr-container__header" }, k = { class: "tr-container__header-operations" }, y = { class: "tr-container__footer" }, E = /* @__PURE__ */ v({
4
+ import { _ as C } from "../_plugin-vue_export-helper.js";
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 },
@@ -12,13 +12,13 @@ const z = { class: "tr-container" }, B = { class: "tr-container__header" }, k =
12
12
  },
13
13
  emits: ["update:show", "update:fullscreen"],
14
14
  setup(o) {
15
- m((t) => ({
15
+ v((t) => ({
16
16
  "1daf37f2": s.value ? "0" : "unset",
17
17
  "0679141a": s.value ? "unset" : "var(--tr-container-width)",
18
18
  "234493b2": l.value ? "var(--tr-z-index-fixed)" : "-1",
19
19
  "0c2ba509": l.value ? "1" : "0"
20
20
  }));
21
- const l = d(o, "show"), s = d(o, "fullscreen"), f = _(() => s.value ? h : $);
21
+ const l = c(o, "show"), s = c(o, "fullscreen"), f = _(() => s.value ? h : $);
22
22
  return (t, e) => (g(), 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" })
@@ -29,16 +29,16 @@ const z = { class: "tr-container" }, B = { class: "tr-container__header" }, k =
29
29
  ]),
30
30
  n("div", k, [
31
31
  r(t.$slots, "operations"),
32
- c(a(u), {
32
+ d(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
- c(a(u), {
38
+ d(a(u), {
39
39
  size: "28",
40
40
  "svg-size": "20",
41
- icon: a(C),
41
+ icon: a(b),
42
42
  onClick: e[1] || (e[1] = (p) => t.$emit("update:show", !1))
43
43
  }, null, 8, ["icon"])
44
44
  ])
@@ -49,7 +49,7 @@ const z = { class: "tr-container" }, B = { class: "tr-container__header" }, k =
49
49
  ])
50
50
  ]));
51
51
  }
52
- }), i = /* @__PURE__ */ b(E, [["__scopeId", "data-v-6a9b9126"]]);
52
+ }), i = /* @__PURE__ */ C(E, [["__scopeId", "data-v-6a9b9126"]]);
53
53
  i.name = "TrContainer";
54
54
  const I = function(o) {
55
55
  o.component(i.name, i);