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

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,4 +1,4 @@
1
- import { defineComponent as v, computed as y, createBlock as u, openBlock as t, Transition as F, withCtx as m, createElementBlock as o, createCommentVNode as h, normalizeStyle as _, normalizeClass as w, renderSlot as x, createElementVNode as l, toDisplayString as s, Fragment as D, renderList as B } from "vue";
1
+ import { defineComponent as v, computed as y, createBlock as u, openBlock as t, Transition as F, withCtx as m, createElementBlock as r, createCommentVNode as h, normalizeStyle as x, normalizeClass as _, renderSlot as w, createElementVNode as l, toDisplayString as n, Fragment as D, renderList as B } from "vue";
2
2
  import { a as M } from "../index3.js";
3
3
  import { _ as Z } from "../_plugin-vue_export-helper.js";
4
4
  const k = "data:image/svg+xml,%3csvg%20width='80.000000'%20height='80.000000'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdefs/%3e%3crect%20width='80.000000'%20height='80.000000'%20fill='%23FFFFFF'%20fill-opacity='0'/%3e%3cpath%20d='M10%2014L70%2014C72.2%2014%2074%2015.79%2074%2018L74%2063C74%2065.2%2072.2%2067%2070%2067L10%2067C7.79%2067%206%2065.2%206%2063L6%2018C6%2015.79%207.79%2014%2010%2014Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3cpath%20d='M10%2014L70%2014C72.2%2014%2074%2015.79%2074%2018L74%2063C74%2065.2%2072.2%2067%2070%2067L10%2067C7.79%2067%206%2065.2%206%2063L6%2018C6%2015.79%207.79%2014%2010%2014ZM10%2015L70%2015C71%2015%2071.75%2015.25%2072.25%2015.75C72.75%2016.25%2073%2017%2073%2018L73%2063C73%2064%2072.75%2064.75%2072.25%2065.25C71.75%2065.75%2071%2066%2070%2066L10%2066C9%2066%208.25%2065.75%207.75%2065.25C7.25%2064.75%207%2064%207%2063L7%2018C7%2017%207.25%2016.25%207.75%2015.75C8.25%2015.25%209%2015%2010%2015Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3cpath%20d='M6%2047.27L24.56%2029.06C25.73%2027.91%2027.6%2027.91%2028.77%2029.06L44.52%2044.51C45.69%2045.66%2047.56%2045.66%2048.72%2044.51L56.64%2036.75C57.8%2035.6%2059.67%2035.6%2060.84%2036.75L74%2049.67L74%2062C74%2064.76%2071.76%2067%2069%2067L11%2067C8.23%2067%206%2064.76%206%2062L6%2047.27Z'%20fill='%23F0F0F0'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3cpath%20d=''%20fill='%23808080'%20fill-opacity='0'%20fill-rule='evenodd'/%3e%3cellipse%20cx='40.000000'%20cy='40.000000'%20rx='8.000001'%20ry='8.000002'%20fill='%231476FF'%20fill-opacity='1.000000'/%3e%3cpath%20d='M40%2035.5C40.27%2035.5%2040.5%2035.72%2040.5%2036L40.5%2039.49L44%2039.5C44.27%2039.5%2044.5%2039.72%2044.5%2040C44.5%2040.27%2044.27%2040.5%2044%2040.5L40.5%2040.5L40.5%2044C40.5%2044.27%2040.27%2044.5%2040%2044.5C39.72%2044.5%2039.5%2044.27%2039.5%2044L39.5%2040.5L36%2040.5C35.72%2040.5%2035.5%2040.27%2035.5%2040C35.5%2039.72%2035.72%2039.5%2036%2039.5L39.5%2039.5L39.5%2036C39.5%2035.72%2039.72%2035.5%2040%2035.5Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3cpath%20d='M10%2014L70%2014C72.2%2014%2074%2015.79%2074%2018L74%2063C74%2065.2%2072.2%2067%2070%2067L10%2067C7.79%2067%206%2065.2%206%2063L6%2018C6%2015.79%207.79%2014%2010%2014Z'%20fill='%23FFFFFF'%20fill-opacity='0'%20fill-rule='evenodd'/%3e%3cpath%20d='M10%2014L70%2014C72.2%2014%2074%2015.79%2074%2018L74%2063C74%2065.2%2072.2%2067%2070%2067L10%2067C7.79%2067%206%2065.2%206%2063L6%2018C6%2015.79%207.79%2014%2010%2014ZM10%2015L70%2015C71%2015%2071.75%2015.25%2072.25%2015.75C72.75%2016.25%2073%2017%2073%2018L73%2063C73%2064%2072.75%2064.75%2072.25%2065.25C71.75%2065.75%2071%2066%2070%2066L10%2066C9%2066%208.25%2065.75%207.75%2065.25C7.25%2064.75%207%2064%207%2063L7%2018C7%2017%207.25%2016.25%207.75%2015.75C8.25%2015.25%209%2015%2010%2015Z'%20fill='%23808080'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3ccircle%20cx='58.000000'%20cy='27.000000'%20r='5.000000'%20fill='%23DBDBDB'%20fill-opacity='1.000000'/%3e%3c/svg%3e", T = { class: "tr-drag-overlay__content" }, $ = { class: "tr-drag-overlay__text" }, S = { class: "tr-drag-overlay__title" }, E = { class: "tr-drag-overlay__description" }, z = /* @__PURE__ */ v({
@@ -10,33 +10,33 @@ const k = "data:image/svg+xml,%3csvg%20width='80.000000'%20height='80.000000'%20
10
10
  dragTarget: {},
11
11
  fullscreen: { type: Boolean }
12
12
  },
13
- setup(r) {
14
- const a = r, { top: c, left: d, width: p, height: C } = M(() => a.dragTarget), f = y(() => !a.isDragging || !a.dragTarget ? { display: "none" } : {
13
+ setup(e) {
14
+ const a = e, { top: c, left: s, width: d, height: C } = M(() => a.dragTarget), f = y(() => !a.isDragging || !a.dragTarget ? { display: "none" } : {
15
15
  position: "fixed",
16
16
  top: `${c.value}px`,
17
- left: `${d.value}px`,
18
- width: `${p.value}px`,
17
+ left: `${s.value}px`,
18
+ width: `${d.value}px`,
19
19
  height: `${C.value}px`
20
20
  });
21
- return (e, n) => (t(), u(F, { name: "tr-fade" }, {
21
+ return (g, o) => (t(), u(F, { name: "tr-fade" }, {
22
22
  default: m(() => [
23
- e.isDragging ? (t(), o("div", {
23
+ e.isDragging ? (t(), r("div", {
24
24
  key: 0,
25
- class: w(["tr-drag-overlay", { fullscreen: e.fullscreen }]),
26
- style: _(f.value)
25
+ class: _(["tr-drag-overlay", { fullscreen: e.fullscreen }]),
26
+ style: x(f.value)
27
27
  }, [
28
- x(e.$slots, "overlay", { isDragging: e.isDragging }, () => [
28
+ w(g.$slots, "overlay", { isDragging: e.isDragging }, () => [
29
29
  l("div", T, [
30
- n[0] || (n[0] = l("div", { class: "tr-drag-overlay__icon" }, [
30
+ o[0] || (o[0] = l("div", { class: "tr-drag-overlay__icon" }, [
31
31
  l("img", {
32
32
  src: k,
33
33
  alt: "上传文件"
34
34
  })
35
35
  ], -1)),
36
36
  l("div", $, [
37
- l("div", S, s(e.overlayTitle), 1),
37
+ l("div", S, n(e.overlayTitle), 1),
38
38
  l("div", E, [
39
- (t(!0), o(D, null, B(e.overlayDescription, (g, L) => (t(), o("span", { key: L }, s(g), 1))), 128))
39
+ (t(!0), r(D, null, B(e.overlayDescription, (p, L) => (t(), r("span", { key: L }, n(p), 1))), 128))
40
40
  ])
41
41
  ])
42
42
  ])
@@ -48,8 +48,8 @@ const k = "data:image/svg+xml,%3csvg%20width='80.000000'%20height='80.000000'%20
48
48
  }
49
49
  }), i = /* @__PURE__ */ Z(z, [["__scopeId", "data-v-93553cc8"]]);
50
50
  i.name = "TrDragOverlay";
51
- const N = function(r) {
52
- r.component(i.name, i);
51
+ const N = function(e) {
52
+ e.component(i.name, i);
53
53
  };
54
54
  i.install = N;
55
55
  export {
package/dist/index.d.ts CHANGED
@@ -2037,12 +2037,19 @@ export declare type BubbleRoleConfig = BubbleCommonProps & {
2037
2037
  export declare interface BubbleSlots {
2038
2038
  default?: (slotProps: {
2039
2039
  bubbleProps: BubbleProps;
2040
+ index?: number;
2040
2041
  }) => unknown;
2041
2042
  footer?: (slotProps: {
2042
2043
  bubbleProps: BubbleProps;
2044
+ index?: number;
2043
2045
  }) => unknown;
2044
2046
  loading?: (slotProps: {
2045
2047
  bubbleProps: BubbleProps;
2048
+ index?: number;
2049
+ }) => unknown;
2050
+ trailer?: (slotProps: {
2051
+ bubbleProps: BubbleProps;
2052
+ index?: number;
2046
2053
  }) => unknown;
2047
2054
  }
2048
2055
 
package/dist/index4.js CHANGED
@@ -1,9 +1,9 @@
1
- import { onMounted as U, nextTick as B, h as C, defineComponent as g, render as R, onBeforeUnmount as D, Teleport as W, computed as h, ref as E, createBlock as F, openBlock as _, 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";
1
+ import { onMounted as U, nextTick as B, h as C, defineComponent as b, 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
2
  import { b as oe, a as re, d as ne } from "./index3.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 = g({
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__ */ g({
37
+ const ie = /* @__PURE__ */ b({
38
38
  __name: "Popper",
39
39
  props: {
40
40
  show: { type: Boolean },
@@ -44,9 +44,9 @@ const ie = /* @__PURE__ */ g({
44
44
  const e = E(null);
45
45
  return n({
46
46
  popperRef: e
47
- }), (t, s) => (_(), F(j, q(L(t.transitionProps)), {
47
+ }), (t, s) => (g(), F(j, q(L(r.transitionProps)), {
48
48
  default: Z(() => [
49
- t.show ? (_(), G("div", {
49
+ r.show ? (g(), G("div", {
50
50
  key: 0,
51
51
  class: "tr-base-popper",
52
52
  ref_key: "popperRef",
@@ -58,7 +58,7 @@ const ie = /* @__PURE__ */ g({
58
58
  _: 3
59
59
  }, 16));
60
60
  }
61
- }), le = /* @__PURE__ */ N(ie, [["__scopeId", "data-v-25c13ab7"]]), ue = /* @__PURE__ */ g({
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__ */ g({
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(() => {
@@ -108,23 +108,23 @@ const ie = /* @__PURE__ */ g({
108
108
  width: z,
109
109
  update: A
110
110
  } = re(i), {
111
- width: y,
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 {
117
117
  placement: o,
118
118
  preventOverflow: p
119
- } = e, c = {}, a = (l, x) => {
119
+ } = e, c = {}, a = (l, y) => {
120
120
  if (!p) {
121
- c[l] = x;
121
+ c[l] = y;
122
122
  return;
123
123
  }
124
- const T = u(l === "top" ? P.value : y.value);
125
- l === "top" ? c[l] = `clamp(var(--tr-base-popper-min-top), ${x}, calc(var(--tr-base-popper-max-bottom) - ${T}))` : l === "left" && (c[l] = `clamp(var(--tr-base-popper-min-left), ${x}, calc(var(--tr-base-popper-max-right) - ${T}))`);
124
+ const T = u(l === "top" ? P.value : x.value);
125
+ l === "top" ? c[l] = `clamp(var(--tr-base-popper-min-top), ${y}, calc(var(--tr-base-popper-max-bottom) - ${T}))` : l === "left" && (c[l] = `clamp(var(--tr-base-popper-min-left), ${y}, calc(var(--tr-base-popper-max-right) - ${T}))`);
126
126
  };
127
- return o.includes("top") && a("top", u($.value - P.value - m.value.mainAxis)), o.includes("bottom") && a("top", u(O.value + m.value.mainAxis)), o.includes("left") && a("left", u(w.value + m.value.crossAxis)), o.includes("right") && a("left", u(V.value - y.value + m.value.crossAxis)), o.includes("center") && a("left", u(w.value + z.value / 2 - y.value / 2 + m.value.crossAxis)), c;
127
+ return o.includes("top") && a("top", u($.value - P.value - m.value.mainAxis)), o.includes("bottom") && a("top", u(O.value + m.value.mainAxis)), o.includes("left") && a("left", u(w.value + m.value.crossAxis)), o.includes("right") && a("left", u(V.value - x.value + m.value.crossAxis)), o.includes("center") && a("left", u(w.value + z.value / 2 - x.value / 2 + m.value.crossAxis)), c;
128
128
  });
129
129
  X(() => e.show, (o) => {
130
130
  o && A();
@@ -146,9 +146,9 @@ const ie = /* @__PURE__ */ g({
146
146
  }
147
147
  })), n({
148
148
  triggerRef: i,
149
- popperRef: b,
149
+ popperRef: _,
150
150
  update: A
151
- }), (o, p) => (_(), F(ee(S(s)[0]), k({
151
+ }), (o, p) => (g(), F(ee(S(s)[0]), k({
152
152
  ref: S(d)
153
153
  }, v(e.triggerEvents)), null, 16));
154
154
  }