@opentiny/tiny-robot 0.2.0-alpha.0 → 0.2.0-alpha.2

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.
Files changed (164) hide show
  1. package/dist/action-group/ActionGroup.vue.d.ts +26 -0
  2. package/dist/action-group/ActionGroupItem.vue.d.ts +18 -0
  3. package/dist/action-group/index.d.ts +12 -0
  4. package/dist/action-group/index.type.d.ts +17 -0
  5. package/dist/bubble/index.d.ts +2 -2
  6. package/dist/bubble/index.type.d.ts +16 -18
  7. package/dist/feedback/components/SourceList.vue.d.ts +11 -0
  8. package/dist/feedback/components/index.d.ts +1 -0
  9. package/dist/feedback/index.d.ts +7 -0
  10. package/dist/feedback/index.type.d.ts +25 -0
  11. package/dist/feedback/index.vue.d.ts +13 -0
  12. package/dist/history/components/index.d.ts +2 -0
  13. package/dist/history/components/item-tag.vue.d.ts +5 -0
  14. package/dist/history/components/search-empty.vue.d.ts +7 -0
  15. package/dist/history/composables/index.d.ts +1 -0
  16. package/dist/history/composables/useEditItemTitle.d.ts +12 -0
  17. package/dist/history/index.d.ts +6 -0
  18. package/dist/history/index.type.d.ts +43 -0
  19. package/dist/history/index.vue.d.ts +2 -0
  20. package/dist/icon-button/index.d.ts +7 -0
  21. package/dist/icon-button/index.type.d.ts +6 -0
  22. package/dist/icon-button/index.vue.d.ts +6 -0
  23. package/dist/index.d.ts +10 -1
  24. package/dist/index.js +57 -27
  25. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +1335 -884
  26. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +660 -144
  27. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +85 -0
  28. package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +1783 -0
  29. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +77 -0
  30. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
  31. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +176 -0
  32. package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +248 -0
  33. package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +310 -0
  34. package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +110 -0
  35. package/dist/packages/components/src/action-group/ActionGroup.vue.js +7 -0
  36. package/dist/packages/components/src/action-group/ActionGroup.vue2.js +121 -0
  37. package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +14 -0
  38. package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +4 -0
  39. package/dist/packages/components/src/action-group/index.js +17 -0
  40. package/dist/packages/components/src/bubble/Bubble.vue.js +7 -0
  41. package/dist/packages/components/src/bubble/Bubble.vue2.js +76 -0
  42. package/dist/packages/components/src/bubble/BubbleList.vue.js +7 -0
  43. package/dist/packages/components/src/bubble/BubbleList.vue2.js +50 -0
  44. package/dist/packages/components/src/bubble/index.js +2 -2
  45. package/dist/packages/components/src/container/index.vue.js +2 -2
  46. package/dist/packages/components/src/container/index.vue2.js +36 -36
  47. package/dist/packages/components/src/feedback/components/SourceList.vue.js +7 -0
  48. package/dist/packages/components/src/feedback/components/SourceList.vue2.js +52 -0
  49. package/dist/packages/components/src/feedback/index.js +9 -0
  50. package/dist/packages/components/src/feedback/index.vue.js +7 -0
  51. package/dist/packages/components/src/feedback/index.vue2.js +143 -0
  52. package/dist/packages/components/src/history/components/item-tag.vue.js +7 -0
  53. package/dist/packages/components/src/history/components/item-tag.vue2.js +21 -0
  54. package/dist/packages/components/src/history/components/search-empty.vue.js +7 -0
  55. package/dist/packages/components/src/history/components/search-empty.vue2.js +20 -0
  56. package/dist/packages/components/src/history/composables/useEditItemTitle.js +43 -0
  57. package/dist/packages/components/src/history/index.js +11 -0
  58. package/dist/packages/components/src/history/index.vue.js +7 -0
  59. package/dist/packages/components/src/history/index.vue2.js +130 -0
  60. package/dist/packages/components/src/icon-button/index.js +9 -0
  61. package/dist/packages/components/src/icon-button/index.vue.js +7 -0
  62. package/dist/packages/components/src/icon-button/index.vue2.js +22 -0
  63. package/dist/packages/components/src/prompts/prompt.vue.js +2 -2
  64. package/dist/packages/components/src/prompts/prompt.vue2.js +17 -15
  65. package/dist/packages/components/src/question/components/HotQuestions.vue.js +23 -23
  66. package/dist/packages/components/src/question/index.vue.js +18 -18
  67. package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +7 -0
  68. package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +175 -0
  69. package/dist/packages/components/src/sender/index.vue.js +149 -128
  70. package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +38 -0
  71. package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +4 -0
  72. package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +107 -0
  73. package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +4 -0
  74. package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +123 -0
  75. package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +4 -0
  76. package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +45 -0
  77. package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +17 -0
  78. package/dist/packages/components/src/suggestion/index.js +9 -0
  79. package/dist/packages/components/src/suggestion/index.vue.js +179 -0
  80. package/dist/packages/components/src/suggestion/index.vue2.js +4 -0
  81. package/dist/packages/components/src/suggestion/utils/dom.js +18 -0
  82. package/dist/packages/svgs/dist/tiny-robot-svgs.js +306 -90
  83. package/dist/question/components/HotQuestions.vue.d.ts +2 -2
  84. package/dist/sender/components/TemplateEditor.vue.d.ts +18 -0
  85. package/dist/sender/index.type.d.ts +47 -0
  86. package/dist/sender/index.vue.d.ts +70 -5
  87. package/dist/style.css +1 -1
  88. package/dist/suggestion/components/CategoryNav.vue.d.ts +45 -0
  89. package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +32 -0
  90. package/dist/suggestion/components/SuggestionPanel.vue.d.ts +84 -0
  91. package/dist/suggestion/composables/useKeyboardNavigation.d.ts +18 -0
  92. package/dist/suggestion/composables/useSuggestionFilter.d.ts +10 -0
  93. package/dist/suggestion/composables/useTriggerDetection.d.ts +11 -0
  94. package/dist/suggestion/index.d.ts +7 -0
  95. package/dist/suggestion/index.type.d.ts +94 -0
  96. package/dist/suggestion/index.vue.d.ts +343 -0
  97. package/dist/suggestion/utils/dom.d.ts +20 -0
  98. package/package.json +4 -3
  99. package/src/action-group/ActionGroup.vue +247 -0
  100. package/src/action-group/ActionGroupItem.vue +9 -0
  101. package/src/action-group/index.ts +25 -0
  102. package/src/action-group/index.type.ts +21 -0
  103. package/src/bubble/Bubble.vue +153 -0
  104. package/src/bubble/BubbleList.vue +55 -0
  105. package/src/bubble/index.ts +2 -2
  106. package/src/bubble/index.type.ts +7 -21
  107. package/src/container/index.vue +10 -36
  108. package/src/feedback/components/SourceList.vue +112 -0
  109. package/src/feedback/components/index.ts +1 -0
  110. package/src/feedback/index.ts +12 -0
  111. package/src/feedback/index.type.ts +27 -0
  112. package/src/feedback/index.vue +166 -0
  113. package/src/history/components/index.ts +2 -0
  114. package/src/history/components/item-tag.vue +49 -0
  115. package/src/history/components/search-empty.vue +38 -0
  116. package/src/history/composables/index.ts +1 -0
  117. package/src/history/composables/useEditItemTitle.ts +75 -0
  118. package/src/history/index.ts +12 -0
  119. package/src/history/index.type.ts +50 -0
  120. package/src/history/index.vue +292 -0
  121. package/src/icon-button/index.ts +12 -0
  122. package/src/icon-button/index.type.ts +7 -0
  123. package/src/icon-button/index.vue +58 -0
  124. package/src/index.ts +33 -1
  125. package/src/prompts/prompt.vue +7 -21
  126. package/src/question/components/HotQuestions.vue +1 -1
  127. package/src/question/index.less +9 -10
  128. package/src/sender/components/TemplateEditor.vue +465 -0
  129. package/src/sender/index.less +17 -7
  130. package/src/sender/index.type.ts +51 -0
  131. package/src/sender/index.vue +56 -8
  132. package/src/sender/vars.less +3 -3
  133. package/src/suggestion/components/CategoryNav.vue +38 -0
  134. package/src/suggestion/components/SuggestionCapsule.vue +183 -0
  135. package/src/suggestion/components/SuggestionPanel.vue +147 -0
  136. package/src/suggestion/composables/useKeyboardNavigation.ts +101 -0
  137. package/src/suggestion/composables/useSuggestionFilter.ts +34 -0
  138. package/src/suggestion/composables/useTriggerDetection.ts +46 -0
  139. package/src/suggestion/index.less +497 -0
  140. package/src/suggestion/index.ts +12 -0
  141. package/src/suggestion/index.type.ts +101 -0
  142. package/src/suggestion/index.vue +338 -0
  143. package/src/suggestion/utils/dom.ts +66 -0
  144. package/src/suggestion/vars.less +141 -0
  145. package/dist/bubble/components/actions/copy.vue.d.ts +0 -10
  146. package/dist/bubble/components/actions/index.d.ts +0 -2
  147. package/dist/bubble/components/actions/refresh.vue.d.ts +0 -2
  148. package/dist/bubble/useScroll.d.ts +0 -4
  149. package/dist/packages/components/src/bubble/bubble-list.vue.js +0 -7
  150. package/dist/packages/components/src/bubble/bubble-list.vue2.js +0 -37
  151. package/dist/packages/components/src/bubble/bubble.vue.js +0 -7
  152. package/dist/packages/components/src/bubble/bubble.vue2.js +0 -118
  153. package/dist/packages/components/src/bubble/components/actions/copy.vue.js +0 -7
  154. package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +0 -35
  155. package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +0 -7
  156. package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +0 -16
  157. package/dist/packages/components/src/bubble/useScroll.js +0 -13
  158. package/src/bubble/bubble-list.vue +0 -42
  159. package/src/bubble/bubble.vue +0 -247
  160. package/src/bubble/components/actions/copy.vue +0 -54
  161. package/src/bubble/components/actions/index.ts +0 -2
  162. package/src/bubble/components/actions/refresh.vue +0 -31
  163. package/src/bubble/useScroll.ts +0 -14
  164. /package/dist/bubble/{bubble-list.vue.d.ts → BubbleList.vue.d.ts} +0 -0
@@ -1,194 +1,710 @@
1
1
  import * as l from "vue";
2
- import "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
2
+ import { capitalize as ee, camelize as te, debounce as re, hyphenate as ne, isServer as ie } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
3
+ import { t as H } from "../../../../../@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js";
3
4
  /* empty css */
4
- import { useInstanceSlots as D } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js";
5
- import { useRelation as L } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js";
6
- function g() {
7
- return g = Object.assign ? Object.assign.bind() : function(u) {
8
- for (var r = 1; r < arguments.length; r++) {
9
- var n = arguments[r];
10
- for (var t in n) ({}).hasOwnProperty.call(n, t) && (u[t] = n[t]);
5
+ import { useInstanceSlots as oe } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js";
6
+ import { useRelation as ae } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js";
7
+ function j() {
8
+ return j = Object.assign ? Object.assign.bind() : function(f) {
9
+ for (var e = 1; e < arguments.length; e++) {
10
+ var t = arguments[e];
11
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (f[r] = t[r]);
11
12
  }
12
- return u;
13
- }, g.apply(null, arguments);
13
+ return f;
14
+ }, j.apply(null, arguments);
14
15
  }
15
- var N = function() {
16
- var r = {}, n = function(e, f, i) {
17
- if (i === void 0 && (i = !1), e && typeof e == "string" && typeof f == "function") {
18
- var o = r[e] || [];
19
- r[e] = o, o.push(f), f.once = i;
16
+ var U = function() {
17
+ var e = {}, t = function(n, a, o) {
18
+ if (o === void 0 && (o = !1), n && typeof n == "string" && typeof a == "function") {
19
+ var u = e[n] || [];
20
+ e[n] = u, u.push(a), a.once = o;
20
21
  }
21
- }, t = {
22
- emit: function(e) {
23
- var f = arguments, i = r[e];
24
- i && (i.forEach(function(o) {
25
- return o.apply(null, [].slice.call(f, 1));
26
- }), r[e] = i.filter(function(o) {
27
- return !o.once;
22
+ }, r = {
23
+ emit: function(n) {
24
+ var a = arguments, o = e[n];
25
+ o && (o.forEach(function(u) {
26
+ return u.apply(null, [].slice.call(a, 1));
27
+ }), e[n] = o.filter(function(u) {
28
+ return !u.once;
28
29
  }));
29
30
  },
30
- on: n,
31
- once: function(e, f) {
32
- n(e, f, !0);
31
+ on: t,
32
+ once: function(n, a) {
33
+ t(n, a, !0);
33
34
  },
34
- off: function(e, f) {
35
- if (e && typeof e == "string") {
36
- var i = r[e];
37
- typeof f == "function" ? r[e] = i.filter(function(o) {
38
- return o !== f;
39
- }) : delete r[e];
35
+ off: function(n, a) {
36
+ if (n && typeof n == "string") {
37
+ var o = e[n];
38
+ typeof a == "function" ? e[n] = o.filter(function(u) {
39
+ return u !== a;
40
+ }) : delete e[n];
40
41
  } else
41
- r = {};
42
+ e = {};
42
43
  }
43
44
  };
44
- return t;
45
- }, G = l.markRaw, U = function(r) {
46
- var n = r.view, t = n === void 0 ? void 0 : n, a = r.component, e = a === void 0 ? void 0 : a, f = r.props, i = r.context, o = i.attrs, c = i.slots, s = r.extend, p = s === void 0 ? {} : s;
45
+ return r;
46
+ }, ue = function(e, t) {
47
+ t === void 0 && (t = {});
48
+ var r = {};
49
+ for (var i in e)
50
+ i.indexOf("_") !== 0 && (r[i] = e[i]);
51
+ for (var n in t)
52
+ r[n] = t[n];
53
+ return r;
54
+ }, fe = function(e, t) {
55
+ if (e === void 0 && (e = {}), typeof t == "object") {
56
+ var r = Array.isArray(t) ? t : Object.keys(t).filter(function(n) {
57
+ return t[n];
58
+ }), i = "";
59
+ return r.forEach(function(n) {
60
+ e[n] && (i += e[n] + " ");
61
+ }), i;
62
+ } else
63
+ return e[t] || "";
64
+ }, se = l.defineAsyncComponent, ce = l.markRaw, k = function(e) {
65
+ var t = e.view, r = t === void 0 ? void 0 : t, i = e.component, n = i === void 0 ? void 0 : i, a = e.props, o = e.context, u = o.attrs, s = o.slots, c = e.extend, v = c === void 0 ? {} : c;
47
66
  return function() {
48
- return l.h(t && t.value || e, g({
67
+ return l.h(r && r.value || n, j({
49
68
  ref: "modeTemplate"
50
- }, f, o, p), c);
51
- };
52
- }, V = function(r) {
53
- var n = l.getCurrentInstance();
54
- return r && q(n), n == null ? void 0 : n.appContext.config.globalProperties;
55
- }, q = function(r) {
56
- var n = N();
57
- typeof r.$emitter > "u" && Object.defineProperty(r, "$emitter", {
69
+ }, a, u, v), s);
70
+ };
71
+ }, N = function(e) {
72
+ var t = l.getCurrentInstance();
73
+ return e && z(t), t == null ? void 0 : t.appContext.config.globalProperties;
74
+ }, le = function() {
75
+ var e, t = l.getCurrentInstance(), r = t == null || (e = t.type) == null ? void 0 : e.name;
76
+ if (!r) {
77
+ var i, n;
78
+ r = t == null || (i = t.parent) == null || (n = i.type) == null ? void 0 : n.name;
79
+ }
80
+ return r || "";
81
+ }, ve = function() {
82
+ var e;
83
+ return ((e = l.getCurrentInstance()) == null ? void 0 : e.appContext) || {
84
+ component: function() {
85
+ }
86
+ };
87
+ }, pe = function() {
88
+ var e = l.getCurrentInstance();
89
+ return (e == null ? void 0 : e.appContext.config.globalProperties) || {};
90
+ }, de = function(e) {
91
+ var t;
92
+ e === void 0 && (e = l.getCurrentInstance());
93
+ var r = (t = e) == null ? void 0 : t.appContext.config.globalProperties.$router, i = r && r.currentRoute.value;
94
+ return {
95
+ route: i,
96
+ router: r
97
+ };
98
+ }, z = function(e) {
99
+ var t = U();
100
+ typeof e.$emitter > "u" && Object.defineProperty(e, "$emitter", {
58
101
  get: function() {
59
- return n;
102
+ return t;
60
103
  }
61
104
  });
62
- }, F = l.defineComponent, A = !1, d = function(r) {
63
- var n = [];
64
- return Object.keys(r).forEach(function(t) {
65
- return r[t] && n.push(t);
66
- }), n.join(" ");
67
- }, z = function(r) {
68
- var n = [];
69
- return r.forEach(function(t) {
70
- typeof t == "string" ? n.push(t) : typeof t == "object" && n.push(d(t));
71
- }), n.join(" ");
72
- }, B = function(r) {
73
- if (!r)
74
- return "";
75
- if (typeof r == "string")
105
+ }, ge = function(e) {
106
+ var t = function(i, n, a, o) {
107
+ var u = i.subTree && i.subTree.children || i.children;
108
+ Array.isArray(u) && u.forEach(function(s) {
109
+ var c = s.type && s.type.componentName, v = s.component;
110
+ c === n ? (v.emit(a, o), v.$emitter && v.$emitter.emit(a, o)) : t(s, n, a, o);
111
+ });
112
+ };
113
+ return {
114
+ dispatch: function(i, n, a) {
115
+ for (var o = e.parent || e.root, u = o.type && o.type.componentName; o && (!u || u !== i); )
116
+ o = o.parent, o && (u = o.type && o.type.componentName);
117
+ if (o) {
118
+ var s, c;
119
+ (s = o).emit.apply(s, [n].concat(a)), o.$emitter && (c = o.$emitter).emit.apply(c, [n].concat(a));
120
+ }
121
+ },
122
+ broadcast: function(i, n, a) {
123
+ t(e, i, n, a);
124
+ }
125
+ };
126
+ }, T = function(e) {
127
+ if (e && e.parent) return e.parent.type.name === "AsyncComponentWrapper" && e.parent.parent ? e.parent.parent : e.parent;
128
+ }, me = function(e) {
129
+ return function(t) {
130
+ var r = T(e), i = 0, n = function(o) {
131
+ return {
132
+ level: i,
133
+ vm: A({}, o),
134
+ el: o.vnode.el,
135
+ options: o.type
136
+ };
137
+ };
138
+ if (typeof t != "function") return r ? n(r) : {};
139
+ for (i++; r && !t(n(r)); )
140
+ r = T(r), i++;
141
+ };
142
+ }, ye = function(e) {
143
+ return function(t) {
144
+ if (typeof t != "function") return q(e.subTree);
145
+ var r = 1, i = function(a) {
146
+ if (a) {
147
+ var o = a.children || a.dynamicChildren, u = r++;
148
+ if (Array.isArray(o)) {
149
+ if (o.some(function(s) {
150
+ return s.component && t({
151
+ level: u,
152
+ vm: A({}, s.component),
153
+ el: s.el,
154
+ options: s.type,
155
+ isLevel1: !0
156
+ });
157
+ })) return;
158
+ o.forEach(function(s) {
159
+ return i(s);
160
+ });
161
+ }
162
+ }
163
+ };
164
+ i(e.subTree);
165
+ };
166
+ }, he = /^on[A-Z]/, be = function(e) {
167
+ var t = {}, r = {};
168
+ for (var i in e) {
169
+ var n = e[i];
170
+ if (he.test(i) && typeof n == "function") {
171
+ r[ne(i.substr(2))] = n;
172
+ continue;
173
+ }
174
+ t[i] = n;
175
+ }
176
+ return {
177
+ $attrs: t,
178
+ $listeners: r
179
+ };
180
+ }, q = function(e) {
181
+ var t = [];
182
+ if (t.refs = {}, e) {
183
+ var r = e.dynamicChildren || e.children;
184
+ Array.isArray(r) ? r.forEach(function(i) {
185
+ if (i.component) {
186
+ var n = A({}, i.component);
187
+ t.push(n), i.props.ref && (t.refs[i.props.ref] = n);
188
+ }
189
+ }) : e.component && t.push(A({}, e.component));
190
+ }
191
+ return t;
192
+ }, M = function(e, t, r, i) {
193
+ var n = function(u) {
194
+ if (typeof i == "function" && i(u)) return 1;
195
+ Object.defineProperty(e, u, {
196
+ configurable: !0,
197
+ enumerable: !0,
198
+ get: function() {
199
+ return t[r][u];
200
+ },
201
+ set: function(c) {
202
+ return t[r][u] = c;
203
+ }
204
+ });
205
+ };
206
+ for (var a in t[r])
207
+ n(a);
208
+ return e;
209
+ }, K = function(e) {
210
+ return e.indexOf("_") === 0;
211
+ }, Q = function(e, t) {
212
+ return M(e, t, "setupState", null), M(e, t, "props", K), M(e, t, "ctx", K), e;
213
+ }, A = function(e, t, r) {
214
+ r === void 0 && (r = null);
215
+ var i = be(t.attrs), n = i.$attrs, a = i.$listeners, o = t.$emitter;
216
+ o || (z(t), o = t.$emitter);
217
+ var u = function() {
218
+ for (var v = arguments.length, b = new Array(v), d = 0; d < v; d++)
219
+ b[d] = arguments[d];
220
+ t.emit.apply(t, b), o.emit.apply(e, b);
221
+ }, s = function(v, b, d) {
222
+ return v[b] = d;
223
+ };
224
+ return r || Q(e, t), Object.defineProperties(e, {
225
+ $attrs: {
226
+ get: function() {
227
+ return n;
228
+ }
229
+ },
230
+ $children: {
231
+ get: function() {
232
+ return q(t.subTree);
233
+ }
234
+ },
235
+ $constants: {
236
+ get: function() {
237
+ return t.props._constants;
238
+ }
239
+ },
240
+ $emit: {
241
+ get: function() {
242
+ return u;
243
+ }
244
+ },
245
+ $el: {
246
+ get: function() {
247
+ return t.vnode.el;
248
+ }
249
+ },
250
+ $listeners: {
251
+ get: function() {
252
+ return a;
253
+ }
254
+ },
255
+ $mode: {
256
+ get: function() {
257
+ return t._tiny_mode;
258
+ }
259
+ },
260
+ $nextTick: {
261
+ get: function() {
262
+ return l.nextTick;
263
+ }
264
+ },
265
+ $off: {
266
+ get: function() {
267
+ return o.off;
268
+ }
269
+ },
270
+ $on: {
271
+ get: function() {
272
+ return o.on;
273
+ }
274
+ },
275
+ $once: {
276
+ get: function() {
277
+ return o.once;
278
+ }
279
+ },
280
+ $options: {
281
+ get: function() {
282
+ return {
283
+ componentName: t.type.componentName
284
+ };
285
+ }
286
+ },
287
+ $parent: {
288
+ get: function() {
289
+ return t.parent && A({}, T(t));
290
+ }
291
+ },
292
+ $refs: {
293
+ get: function() {
294
+ return t.refs;
295
+ }
296
+ },
297
+ $renderless: {
298
+ get: function() {
299
+ return t.props.tiny_renderless;
300
+ }
301
+ },
302
+ $scopedSlots: {
303
+ get: function() {
304
+ return t.slots;
305
+ }
306
+ },
307
+ $set: {
308
+ get: function() {
309
+ return s;
310
+ }
311
+ },
312
+ $slots: {
313
+ get: function() {
314
+ return t.slots;
315
+ }
316
+ },
317
+ $template: {
318
+ get: function() {
319
+ return t.props.tiny_template;
320
+ }
321
+ }
322
+ }), e;
323
+ }, Ce = function(e, t) {
324
+ for (var r in e.refs)
325
+ Object.prototype.hasOwnProperty.call(e.refs, r) && (t[r] = e.refs[r]);
326
+ }, $e = function(e, t) {
327
+ var r, i, n = l.getCurrentInstance(), a = n == null ? void 0 : n.appContext.config.globalProperties, o = de(n), u = o.route, s = o.router, c = n == null || (r = n.proxy) == null || (i = r.$root) == null ? void 0 : i.$i18n, v = ge(n), b = v.dispatch, d = v.broadcast, I = me(n), P = ye(n), m = A({}, n, e), y = e.emit, p = {}, C = typeof n.props.tiny_template > "u" && T(n), h = C ? A({}, C) : n.parent ? A({}, n.parent) : null, g = function($) {
328
+ var _, O = $.name, G = $.value, D = C ? C.ctx : n == null || (_ = n.parent) == null ? void 0 : _.ctx;
329
+ D[O] = G, h[O] = G;
330
+ }, x = function($) {
331
+ Object.defineProperties(m, $), Object.defineProperties(n == null ? void 0 : n.ctx, $);
332
+ }, w = function($) {
333
+ h && Object.defineProperties(h, $);
334
+ };
335
+ return l.onBeforeMount(function() {
336
+ return Q(m, n);
337
+ }), l.onMounted(function() {
338
+ return Ce(n, p);
339
+ }), {
340
+ framework: "vue3",
341
+ vm: m,
342
+ emit: y,
343
+ emitter: U,
344
+ route: u,
345
+ router: s,
346
+ dispatch: b,
347
+ broadcast: d,
348
+ parentHandler: I,
349
+ childrenHandler: P,
350
+ i18n: c,
351
+ refs: p,
352
+ slots: n == null ? void 0 : n.slots,
353
+ scopedSlots: n == null ? void 0 : n.slots,
354
+ attrs: e.attrs,
355
+ parent: h,
356
+ nextTick: l.nextTick,
357
+ constants: n == null ? void 0 : n.props._constants,
358
+ mode: t,
359
+ isPCMode: t === "pc",
360
+ isMobileMode: t === "mobile",
361
+ service: a == null ? void 0 : a.$service,
362
+ getService: function() {
363
+ return a == null ? void 0 : a.$getService(m);
364
+ },
365
+ setParentAttribute: g,
366
+ defineInstanceProperties: x,
367
+ defineParentInstanceProperties: w
368
+ };
369
+ }, Ke = function(e) {
370
+ return e;
371
+ }, xe = l.Text, Ae = l.Comment, Ue = function(e) {
372
+ return !e || !e.type || [xe, Ae].includes(e.type);
373
+ }, Pe = function(e) {
374
+ var t = {};
375
+ for (var r in e)
376
+ if (r === "class" || r === "style")
377
+ t[r] = e[r];
378
+ else if (r === "on" || r === "nativeOn") {
379
+ var i = e[r];
380
+ for (var n in i) t["on" + ee(te(n))] = i[n];
381
+ } else if (r === "attrs" || r === "props" || r === "domProps") {
382
+ var a = e[r];
383
+ for (var o in a) t[o] = a[o];
384
+ } else
385
+ t[r] = e[r];
386
+ return t;
387
+ }, _e = function(e) {
388
+ var t = e, r = !1;
389
+ if (typeof e == "string" && typeof document < "u") {
390
+ var i = document.createElement(e), n = ["SVG", "CIRCLE", "PATH"];
391
+ i instanceof HTMLUnknownElement && !n.includes(i.nodeName) || e.includes("-") ? (e = e.toLowerCase(), r = !0, e === "transition" ? t = l.Transition : e === "transition-group" ? t = l.TransitionGroup : t = l.resolveComponent(e)) : t = e;
392
+ }
393
+ return {
394
+ type: t,
395
+ component: e,
396
+ customElement: r
397
+ };
398
+ }, ke = function(e, t, r) {
399
+ var i = {}, n = r, a = _e(e), o = a.customElement, u = a.type;
400
+ return e = a.component, t && typeof t == "object" && !Array.isArray(t) ? (i = Pe(t), t.scopedSlots && (n = t.scopedSlots)) : (typeof t == "string" || Array.isArray(t)) && (r = t), (typeof r == "string" || Array.isArray(r)) && (n = typeof e != "string" || o ? function() {
76
401
  return r;
77
- if (Array.isArray(r) && r.length > 0) {
78
- var n = [];
79
- return r.forEach(function(t) {
80
- t && (typeof t == "string" ? n.push(t) : Array.isArray(t) ? n.push(z(t)) : typeof t == "object" && n.push(d(t)));
81
- }), n.join(" ");
402
+ } : r), l.h(u, i, n);
403
+ }, Ee = function(e) {
404
+ return function(t) {
405
+ var r, i = t.component, n = t.propsData, a = t.el, o = Object.assign(i, {
406
+ provide: (r = {}, r[e.configKey] = e.configInstance, r)
407
+ }), u = l.createVNode(o, n);
408
+ return l.render(u, a), A({}, u.component);
409
+ };
410
+ }, je = l.defineComponent, W = !1, R = function(e) {
411
+ var t = [];
412
+ return Object.keys(e).forEach(function(r) {
413
+ return e[r] && t.push(r);
414
+ }), t.join(" ");
415
+ }, Ie = function(e) {
416
+ var t = [];
417
+ return e.forEach(function(r) {
418
+ typeof r == "string" ? t.push(r) : typeof r == "object" && t.push(R(r));
419
+ }), t.join(" ");
420
+ }, L = function(e) {
421
+ if (!e)
422
+ return "";
423
+ if (typeof e == "string")
424
+ return e;
425
+ if (Array.isArray(e) && e.length > 0) {
426
+ var t = [];
427
+ return e.forEach(function(r) {
428
+ r && (typeof r == "string" ? t.push(r) : Array.isArray(r) ? t.push(Ie(r)) : typeof r == "object" && t.push(R(r)));
429
+ }), t.join(" ");
82
430
  }
83
- return typeof r == "object" ? d(r) : "";
84
- }, H = ["IconLoadingShadow", "IconNoData"], M = 0, O = function(r, n) {
431
+ return typeof e == "object" ? R(e) : "";
432
+ }, ze = function(e) {
433
+ var t = L(e), r = Array.from(new Set(t.split(" "))).filter(function(i) {
434
+ return i;
435
+ });
436
+ return L(r);
437
+ }, Oe = function() {
438
+ var e = l.ref(""), t = ["2xl", "xl", "lg", "md", "sm"], r = function(u) {
439
+ return ie || typeof matchMedia != "function" ? {
440
+ matches: !1,
441
+ media: u,
442
+ addEventListener: function() {
443
+ },
444
+ removeEventListener: function() {
445
+ }
446
+ } : window.matchMedia(u);
447
+ }, i = {
448
+ "2xl": r("(min-width:1536px)"),
449
+ xl: r("(min-width:1280px)"),
450
+ lg: r("(min-width:1024px)"),
451
+ md: r("(min-width:768px)"),
452
+ sm: r("(min-width:640px)")
453
+ }, n = function() {
454
+ for (var u = 0; u < t.length; u++) {
455
+ var s = t[u];
456
+ if (i[s].matches) {
457
+ e.value = s;
458
+ return;
459
+ }
460
+ }
461
+ e.value = "default";
462
+ }, a = re(0, function() {
463
+ return n();
464
+ });
465
+ return n(), t.forEach(function(o) {
466
+ return i[o].addEventListener("change", a);
467
+ }), l.onBeforeUnmount(function() {
468
+ t.forEach(function(o) {
469
+ return i[o].removeEventListener("change", a);
470
+ });
471
+ }), {
472
+ current: e
473
+ };
474
+ }, Te = ["IconLoadingShadow", "IconNoData"], Z = 0, J = function(e, t) {
85
475
  {
86
- var t;
87
- if ((t = r.props) != null && t.id) {
88
- var a = "" + r.props.id + M;
89
- n[r.props.id] = a, r.props.id = a;
476
+ var r;
477
+ if ((r = e.props) != null && r.id) {
478
+ var i = "" + e.props.id + Z;
479
+ t[e.props.id] = i, e.props.id = i;
90
480
  }
91
481
  }
92
- Array.isArray(r == null ? void 0 : r.children) && r.children.forEach(function(e) {
93
- O(e, n);
482
+ Array.isArray(e == null ? void 0 : e.children) && e.children.forEach(function(n) {
483
+ J(n, t);
94
484
  });
95
- }, E = function(r, n) {
96
- var t = ["fill", "mask", "filter"];
97
- t.forEach(function(a) {
485
+ }, X = function(e, t) {
486
+ var r = ["fill", "mask", "filter"];
487
+ r.forEach(function(i) {
98
488
  {
99
- var e, f;
100
- if ((e = r.props) != null && (f = e[a]) != null && f.includes("url(#")) {
101
- var i = r.props[a].replace("url(#", "").replace(")", ""), o = n[i];
102
- o && (r.props[a] = "url(#" + o + ")");
489
+ var n, a;
490
+ if ((n = e.props) != null && (a = n[i]) != null && a.includes("url(#")) {
491
+ var o = e.props[i].replace("url(#", "").replace(")", ""), u = t[o];
492
+ u && (e.props[i] = "url(#" + u + ")");
103
493
  }
104
494
  }
105
- }), Array.isArray(r == null ? void 0 : r.children) && r.children.forEach(function(a) {
106
- E(a, n);
495
+ }), Array.isArray(e == null ? void 0 : e.children) && e.children.forEach(function(i) {
496
+ X(i, t);
107
497
  });
108
- }, J = function(r) {
109
- if (r) {
110
- var n = {};
111
- O(r, n), E(r, n), M++;
498
+ }, we = function(e) {
499
+ if (e) {
500
+ var t = {};
501
+ J(e, t), X(e, t), Z++;
112
502
  }
113
503
  };
114
- D(g({}, l, {
115
- isVue2: A
504
+ oe(j({}, l, {
505
+ isVue2: W
116
506
  }));
117
- L(g({}, l, {
118
- isVue2: A
507
+ ae(j({}, l, {
508
+ isVue2: W
119
509
  }));
120
- var K = "Tiny", Q = function(r, n) {
121
- var t = function(p) {
122
- return ~["pc", "mobile", "mobile-first"].indexOf(p);
123
- }, a = V(n), e = typeof r.tiny_mode == "string" ? r.tiny_mode : null, f = l.inject("TinyMode", null), i;
124
- typeof a.tiny_mode == "string" ? i = a.tiny_mode : a.tiny_mode && (i = a.tiny_mode.value), t(e) || (e = null), t(f) || (f = null), t(i) || (i = null);
125
- var o = e || f || i || "pc";
126
- r.tiny_mode_root && l.provide("TinyMode", o);
127
- var c = l.getCurrentInstance();
128
- return Object.defineProperty(c, "_tiny_mode", {
129
- value: o
130
- }), o;
131
- }, W = {
510
+ var V = "Tiny", qe = {
511
+ tiny_mode: String,
512
+ tiny_mode_root: Boolean,
513
+ tiny_template: [Function, Object],
514
+ tiny_renderless: Function,
515
+ tiny_theme: String,
516
+ tiny_chart_theme: Object
517
+ }, F = function(e, t) {
518
+ var r = function(v) {
519
+ return ~["pc", "mobile", "mobile-first"].indexOf(v);
520
+ }, i = N(t), n = typeof e.tiny_mode == "string" ? e.tiny_mode : null, a = l.inject("TinyMode", null), o;
521
+ typeof i.tiny_mode == "string" ? o = i.tiny_mode : i.tiny_mode && (o = i.tiny_mode.value), r(n) || (n = null), r(a) || (a = null), r(o) || (o = null);
522
+ var u = n || a || o || "pc";
523
+ e.tiny_mode_root && l.provide("TinyMode", u);
524
+ var s = l.getCurrentInstance();
525
+ return Object.defineProperty(s, "_tiny_mode", {
526
+ value: u
527
+ }), u;
528
+ }, Me = function(e, t) {
529
+ var r = function(c) {
530
+ return ~["tiny", "saas"].indexOf(c);
531
+ }, i = N(t), n = typeof e.tiny_theme == "string" ? e.tiny_theme : null, a = l.inject("TinyTheme", null), o = i.tiny_theme && i.tiny_theme.value;
532
+ r(n) || (n = null), r(a) || (a = null), r(o) || (o = null);
533
+ var u = n || a || o || "tiny";
534
+ return u;
535
+ }, Se = function(e, t) {
536
+ var r = N(t), i = typeof e.tiny_chart_theme == "object" ? e.tiny_chart_theme : null, n = l.inject("TinyChartTheme", null), a = r.tiny_chart_theme && r.tiny_chart_theme.value, o = i || n || a || null;
537
+ return o;
538
+ }, Qe = function(e) {
539
+ var t = e.props, r = e.context, i = e.template, n = e.extend, a = n === void 0 ? {} : n, o = F(t, r), u = l.computed(function() {
540
+ if (typeof t.tiny_template < "u") return t.tiny_template;
541
+ var s = i(o, t);
542
+ return typeof s == "function" ? se(s) : s;
543
+ });
544
+ return k({
545
+ view: u,
546
+ props: t,
547
+ context: r,
548
+ extend: a
549
+ });
550
+ }, Y = {
551
+ configKey: Symbol("designConfigKey"),
552
+ configInstance: null
553
+ }, We = Ee(Y), Re = {
132
554
  designConfig: null,
133
555
  twMerge: function() {
134
556
  return "";
135
557
  }
136
- }, X = function() {
137
- for (var r = arguments.length, n = new Array(r), t = 0; t < r; t++)
138
- n[t] = arguments[t];
139
- return W.twMerge(B(n));
558
+ }, B = function() {
559
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
560
+ t[r] = arguments[r];
561
+ return Re.twMerge(L(t));
562
+ }, Ze = function(e) {
563
+ var t, r, i, n = e.props, a = e.context, o = e.renderless, u = e.api, s = e.extendOptions, c = s === void 0 ? {} : s, v = e.mono, b = v === void 0 ? !1 : v, d = e.classes, I = d === void 0 ? {} : d, P = typeof n.tiny_renderless == "function" ? n.tiny_renderless : o, m = l.inject(Y.configKey, {});
564
+ m = ((t = m) == null ? void 0 : t.value) || m || {};
565
+ var y = (r = m) == null || (i = r.components) == null ? void 0 : i[le().replace(V, "")], p = j({
566
+ $prefix: V,
567
+ t: H
568
+ }, $e(a, F(n, a)), {
569
+ designConfig: y,
570
+ globalDesignConfig: m,
571
+ useBreakpoint: Oe,
572
+ mergeClass: B
573
+ });
574
+ p.vm.theme = Me(n, a), p.vm.chartTheme = Se(n, a);
575
+ var C = P(n, l, p, c);
576
+ typeof (y == null ? void 0 : y.renderless) == "function" && Object.assign(C, y.renderless(n, l, p, C));
577
+ var h = {
578
+ t: H,
579
+ vm: p.vm,
580
+ f: ue,
581
+ a: Le,
582
+ d: p.defineInstanceProperties,
583
+ dp: p.defineParentInstanceProperties,
584
+ gcls: function(x) {
585
+ return fe(I, x);
586
+ },
587
+ m: B
588
+ };
589
+ return h.d({
590
+ slots: {
591
+ get: function() {
592
+ return p.vm.$slots;
593
+ },
594
+ configurable: !0
595
+ },
596
+ scopedSlots: {
597
+ get: function() {
598
+ return p.vm.$scopedSlots;
599
+ },
600
+ configurable: !0
601
+ }
602
+ }), h.dp({
603
+ slots: {
604
+ get: function() {
605
+ return p.parent.$slots;
606
+ },
607
+ configurable: !0
608
+ },
609
+ scopedSlots: {
610
+ get: function() {
611
+ return p.parent.$scopedSlots;
612
+ },
613
+ configurable: !0
614
+ }
615
+ }), Ve(), Array.isArray(u) && (Array.isArray(y == null ? void 0 : y.api) && (u = u.concat(y.api)), u.forEach(function(g) {
616
+ var x = C[g];
617
+ typeof x < "u" && (h[g] = x, b || p.setParentAttribute({
618
+ name: g,
619
+ value: x
620
+ }));
621
+ })), h;
140
622
  };
141
- function nr(u) {
142
- var r = u.name, n = r === void 0 ? "Icon" : r, t = u.component;
143
- return function(a) {
144
- return G(F({
145
- name: K + n,
146
- setup: function(f, i) {
147
- var o = i.attrs || {}, c = o.fill, s = o.width, p = o.height, x = o["custom-class"], C = o["first-color"], R = o["second-color"], m = Object.assign({}, f, a || null), T = Q(m, i), y = T === "mobile-first", P = {
623
+ function Je(f) {
624
+ var e = f.name, t = e === void 0 ? "Icon" : e, r = f.component;
625
+ return function(i) {
626
+ return ce(je({
627
+ name: V + t,
628
+ setup: function(a, o) {
629
+ var u = o.attrs || {}, s = u.fill, c = u.width, v = u.height, b = u["custom-class"], d = u["first-color"], I = u["second-color"], P = Object.assign({}, a, i || null), m = F(P, o), y = m === "mobile-first", p = {
148
630
  "data-tag": y ? "tiny-svg" : null
149
- }, _ = P, h = "tiny-svg";
150
- y && (h = X("h-4 w-4 inline-block", x || "", m.class || ""));
151
- var b = Object.assign({
631
+ }, C = p, h = "tiny-svg";
632
+ y && (h = B("h-4 w-4 inline-block", b || "", P.class || ""));
633
+ var g = Object.assign({
152
634
  style: {
153
- fill: c,
154
- width: s,
155
- height: p,
156
- "--tiny-first-color": C || "",
157
- "--tiny-second-color": R || ""
635
+ fill: s,
636
+ width: c,
637
+ height: v,
638
+ "--tiny-first-color": d || "",
639
+ "--tiny-second-color": I || ""
158
640
  },
159
641
  class: h,
160
642
  isSvg: !0
161
- }, _);
162
- if (b.nativeOn = i.listeners, H.includes(n)) {
163
- var S = t.render;
164
- t.render = function() {
165
- for (var $ = S.bind(this), j = arguments.length, I = new Array(j), v = 0; v < j; v++)
166
- I[v] = arguments[v];
167
- var w = $(I);
168
- return J(w), w;
643
+ }, C);
644
+ if (g.nativeOn = o.listeners, Te.includes(t)) {
645
+ var x = r.render;
646
+ r.render = function() {
647
+ for (var w = x.bind(this), E = arguments.length, $ = new Array(E), _ = 0; _ < E; _++)
648
+ $[_] = arguments[_];
649
+ var O = w($);
650
+ return we(O), O;
169
651
  };
170
652
  }
171
- return U({
172
- component: t,
173
- props: m,
174
- context: i,
175
- extend: b
653
+ return k({
654
+ component: r,
655
+ props: P,
656
+ context: o,
657
+ extend: g
176
658
  });
177
659
  }
178
660
  }));
179
661
  };
180
662
  }
663
+ var Le = function(e, t, r) {
664
+ var i = {}, n = function(u) {
665
+ var s = t.some(function(c) {
666
+ return new RegExp(c).test(u);
667
+ });
668
+ (r && s || !r && !s) && (i[u] = e[u]);
669
+ };
670
+ for (var a in e)
671
+ n(a);
672
+ return i;
673
+ }, S = {}, Ve = function() {
674
+ for (var e in S) {
675
+ var t = S[e];
676
+ typeof t.install == "function" && t.install(ve()), typeof t.init == "function" && t.init(pe());
677
+ }
678
+ S = {};
679
+ };
181
680
  export {
182
- K as $prefix,
183
- W as customDesignConfig,
184
- F as defineComponent,
185
- N as emitter,
681
+ V as $prefix,
682
+ qe as $props,
683
+ Qe as $setup,
684
+ pe as appProperties,
685
+ We as createComponent,
686
+ Re as customDesignConfig,
687
+ ze as deduplicateCssClass,
688
+ se as defineAsyncComponent,
689
+ je as defineComponent,
690
+ Y as design,
691
+ U as emitter,
692
+ Le as filterAttrs,
693
+ ke as h,
186
694
  l as hooks,
187
- A as isVue2,
188
- X as mergeClass,
189
- Q as resolveMode,
190
- B as stringifyCssClass,
191
- z as stringifyCssClassArray,
192
- d as stringifyCssClassObject,
193
- nr as svg
695
+ Ve as initComponent,
696
+ Ue as isEmptyVnode,
697
+ W as isVue2,
698
+ B as mergeClass,
699
+ Ke as parseVnode,
700
+ F as resolveMode,
701
+ Me as resolveTheme,
702
+ Ze as setup,
703
+ S as setupComponent,
704
+ L as stringifyCssClass,
705
+ Ie as stringifyCssClassArray,
706
+ R as stringifyCssClassObject,
707
+ Je as svg,
708
+ Oe as useBreakpoint,
709
+ de as useRouter
194
710
  };