@opentiny/tiny-robot 0.3.0-alpha.36 → 0.3.0-alpha.38

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-df81e3e1"]]);
118
+ }), p = /* @__PURE__ */ K(ee, [["__scopeId", "data-v-f82cf3dc"]]);
119
119
  p.name = "TrFlowLayout";
120
120
  const te = function(d) {
121
121
  d.component(p.name, p);
package/dist/index.d.ts CHANGED
@@ -1957,10 +1957,7 @@ export declare interface BubbleContentItem {
1957
1957
  [key: string]: any;
1958
1958
  }
1959
1959
 
1960
- export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component | {
1961
- component: Component;
1962
- defaultProps: Record<string, unknown>;
1963
- };
1960
+ export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component;
1964
1961
 
1965
1962
  declare const bubbleInstall: (app: App) => void;
1966
1963
 
@@ -2040,19 +2037,12 @@ export declare type BubbleRoleConfig = BubbleCommonProps & {
2040
2037
  export declare interface BubbleSlots {
2041
2038
  default?: (slotProps: {
2042
2039
  bubbleProps: BubbleProps;
2043
- index?: number;
2044
2040
  }) => unknown;
2045
2041
  footer?: (slotProps: {
2046
2042
  bubbleProps: BubbleProps;
2047
- index?: number;
2048
2043
  }) => unknown;
2049
2044
  loading?: (slotProps: {
2050
2045
  bubbleProps: BubbleProps;
2051
- index?: number;
2052
- }) => unknown;
2053
- trailer?: (slotProps: {
2054
- bubbleProps: BubbleProps;
2055
- index?: number;
2056
2046
  }) => unknown;
2057
2047
  }
2058
2048
 
@@ -2089,7 +2079,6 @@ export declare interface ContainerSlots {
2089
2079
  export declare interface ControlState {
2090
2080
  tooltips?: string | TooltipRender;
2091
2081
  disabled?: boolean;
2092
- tooltipPlacement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
2093
2082
  }
2094
2083
 
2095
2084
  declare const _default: {
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 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";
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";
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 b = 0, $;
7
+ let T = 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
- b++, b === 1 && ($ = ge());
27
+ T++, T === 1 && ($ = ge());
28
28
  }), te(() => {
29
- b = Math.max(0, b - 1), b === 0 && ye();
29
+ T = Math.max(0, T - 1), T === 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
- T(n(ae))
43
+ b(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-89fdb41c"]]), Me = ({
95
+ }), Ie = /* @__PURE__ */ P(xe, [["__scopeId", "data-v-c8365732"]]), 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"), be = {
134
+ }, J = Symbol("NO_GROUP"), Te = {
135
135
  key: 0,
136
136
  class: "tr-history__group-title"
137
- }, Te = { class: "tr-history__group-items" }, $e = ["onClick"], Ge = ["title"], Oe = ["onClick"], Be = /* @__PURE__ */ N({
137
+ }, be = { 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", be, B(f.group), 1)) : U("", !0),
195
- R("div", Te, [
194
+ f.group !== n(J) ? (s(), r("div", Te, B(f.group), 1)) : U("", !0),
195
+ R("div", be, [
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
- T(n(de))
248
+ b(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
- T(n(me))
259
+ b(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
- T(n(fe))
265
+ b(n(fe))
266
266
  ], 10, Oe)
267
267
  ])
268
268
  ], 10, $e))), 128))
269
269
  ])
270
270
  ]))), 128)),
271
- j(T(Ie, {
271
+ j(b(Ie, {
272
272
  trigger: _.value,
273
273
  "onUpdate:trigger": e[7] || (e[7] = (f) => _.value = f),
274
274
  data: a.value,
@@ -282,7 +282,7 @@ const Ce = { class: "tr-history__empty" }, ke = { class: "tr-history__empty-icon
282
282
  ], 64))
283
283
  ], 2));
284
284
  }
285
- }), H = /* @__PURE__ */ P(Be, [["__scopeId", "data-v-b8f23455"]]), De = function(i) {
285
+ }), H = /* @__PURE__ */ P(Be, [["__scopeId", "data-v-18ccfabf"]]), De = function(i) {
286
286
  i.component(H.name, H);
287
287
  };
288
288
  Object.assign(H, {
@@ -171,7 +171,7 @@ const $e = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-c
171
171
  })) : v("", !0)
172
172
  ], 2));
173
173
  }
174
- }), te = /* @__PURE__ */ z(We, [["__scopeId", "data-v-89b32345"]]), Xe = {
174
+ }), te = /* @__PURE__ */ z(We, [["__scopeId", "data-v-c4e722eb"]]), Xe = {
175
175
  key: 0,
176
176
  class: "plugin-editor__backdrop"
177
177
  }, Ye = { class: "plugin-editor__header" }, Ze = /* @__PURE__ */ q({
@@ -1,9 +1,9 @@
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 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";
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__ */ y({
6
+ }, V = { class: "tr-prompt__badge" }, $ = /* @__PURE__ */ f({
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: f(["tr-prompt", { disabled: t.disabled }, t.size])
20
+ class: y(["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-ce67a72d"]]), D = { class: "tr-prompts" }, E = /* @__PURE__ */ y({
34
+ }), n = /* @__PURE__ */ v($, [["__scopeId", "data-v-fdc72803"]]), D = { class: "tr-prompts" }, E = /* @__PURE__ */ f({
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: f(["tr-prompts__list-container", { wrap: s.wrap, vertical: s.vertical }])
50
+ class: y(["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