@opentiny/tiny-robot 0.3.0-alpha.3 → 0.3.0-alpha.30

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/index5.js DELETED
@@ -1,2157 +0,0 @@
1
- import { $ as M, M as Ie, S as le, e as ye, s as j, G as Me, m as G, Z as F, n as ie, N as $e, t as Ve, H as De, d as R, a as ae, p as me, b as ge, c as H, f as he, g as Te } from "./index6.js";
2
- import * as Be from "vue";
3
- import { createElementBlock as m, openBlock as p, createElementVNode as b, resolveComponent as k, createBlock as I, Transition as q, withCtx as B, withDirectives as Q, withModifiers as ee, normalizeClass as W, createVNode as L, createCommentVNode as h, normalizeStyle as ke, renderSlot as D, toDisplayString as O, vShow as se, resolveDirective as Ee, mergeProps as K, Fragment as te, resolveDynamicComponent as N, createTextVNode as X, withKeys as Le, renderList as Ae } from "vue";
4
- import { i as ve } from "./close.js";
5
- import { T as _e } from "./index4.js";
6
- import { B as ze } from "./index3.js";
7
- let Ne = 1;
8
- const Pe = ({
9
- onMounted: e,
10
- onBeforeUnmount: t,
11
- watch: n,
12
- vm: o,
13
- api: l,
14
- props: i,
15
- state: a,
16
- nextTick: s
17
- }) => {
18
- e(() => {
19
- o._popupId = `popup-${Ne++}`, M.register(o._popupId, o);
20
- }), t(() => {
21
- M.deregister(o._popupId), M.closeModal(o._popupId);
22
- }), n(
23
- () => i.visible,
24
- (r) => {
25
- if (r) {
26
- if (o._opening)
27
- return;
28
- a.rendered ? l.open() : (a.rendered = !0, s(() => {
29
- l.open();
30
- }));
31
- } else
32
- l.close();
33
- }
34
- );
35
- }, xe = ({ state: e, vm: t }) => (n) => {
36
- e.rendered || (e.rendered = !0);
37
- const o = Ie({}, t.$props || t, n);
38
- t._closeTimer && (clearTimeout(t._closeTimer), t._closeTimer = null), clearTimeout(t._openTimer);
39
- const l = () => {
40
- if (le || e.opened)
41
- return;
42
- t._opening = !0;
43
- const a = t.$el, s = o.modal, r = o.zIndex;
44
- r && (M.zIndex = r), s && (t._closing && (M.closeModal(t._popupId), t._closing = !1), M.openModal(
45
- t._popupId,
46
- M.nextZIndex(),
47
- o.modalAppendToBody ? void 0 : a,
48
- o.modalClass,
49
- o.modalFade
50
- ), o.lockScroll && (M.fixBodyBorder(), ye(document.body, M.popLockClass))), getComputedStyle(a).position === "static" && (a.style.position = "absolute"), a.style.zIndex = M.nextZIndex().toString(), e.opened = !0, t._opening = !1;
51
- }, i = Number(o.openDelay);
52
- i > 0 ? t._openTimer = setTimeout(() => {
53
- t._openTimer = null, l();
54
- }, i) : l();
55
- }, Fe = ({ state: e, vm: t }) => () => {
56
- t._openTimer !== null && (clearTimeout(t._openTimer), t._openTimer = null), clearTimeout(t._closeTimer);
57
- const n = () => {
58
- t._closing = !0, e.opened = !1, M.closeModal(t._popupId), t._closing = !1;
59
- }, o = Number(t.closeDelay);
60
- o > 0 ? t._closeTimer = setTimeout(() => {
61
- t._closeTimer = null, n();
62
- }, o) : n();
63
- }, He = (e) => {
64
- const { api: t, nextTick: n, onBeforeUnmount: o, onMounted: l, props: i, reactive: a, toRefs: s, vm: r, watch: u } = e, f = a({
65
- opened: !1,
66
- rendered: !1
67
- });
68
- Pe({ onMounted: l, onBeforeUnmount: o, watch: u, vm: r, api: t, props: i, state: f, nextTick: n });
69
- const c = xe({ state: f, vm: r }), d = Fe({ state: f, vm: r });
70
- return { open: c, close: d, PopupManager: M, ...s(f) };
71
- };
72
- var We = Object.defineProperty, Ue = Object.defineProperties, Re = Object.getOwnPropertyDescriptors, ue = Object.getOwnPropertySymbols, je = Object.prototype.hasOwnProperty, Ge = Object.prototype.propertyIsEnumerable, de = (e, t, n) => t in e ? We(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, U = (e, t) => {
73
- for (var n in t || (t = {}))
74
- je.call(t, n) && de(e, n, t[n]);
75
- if (ue)
76
- for (var n of ue(t))
77
- Ge.call(t, n) && de(e, n, t[n]);
78
- return e;
79
- }, be = (e, t) => Ue(e, Re(t)), Ke = {
80
- xmlns: "http://www.w3.org/2000/svg",
81
- viewBox: "0 0 16 16",
82
- style: {
83
- "enable-background": "new 0 0 16 16"
84
- },
85
- "xml:space": "preserve"
86
- }, Xe = /* @__PURE__ */ b(
87
- "rect",
88
- {
89
- style: {
90
- fill: "none"
91
- }
92
- },
93
- null,
94
- -1
95
- /* HOISTED */
96
- ), Ye = /* @__PURE__ */ b(
97
- "path",
98
- {
99
- d: "m3.49 5.21.72.72-.23.18c-.16.13-.3.27-.46.4l-.25.23c-.39.39-.75.79-1.05 1.2L2.16 8l-.05.06-.17.24.28.38.19.24c.33.4.7.8 1.1 1.19l.18.16c1.32 1.18 2.78 1.87 4.32 1.87h.23c.61-.02 1.21-.17 1.78-.4l.76.76-.22.1c-.81.35-1.67.55-2.56.55h-.22c-1.81-.06-3.47-.92-4.95-2.29l-.27-.25c-.42-.42-.81-.86-1.15-1.3l-.04-.09-.05-.06-.17-.24-.14-.19-.1-.16-.04-.07a.5.5 0 0 1 0-.38l.04-.08.1-.16.13-.19.17-.24.1-.13.21-.27c.35-.44.76-.87 1.2-1.28.22-.19.44-.39.67-.56zm.27-2.35h.07c.1.01.19.06.28.15l1.12 1.12c.88-.42 1.8-.65 2.77-.65h.23c1.81.06 3.47.92 4.95 2.29l.27.25c.42.42.81.86 1.15 1.3l.05.07.05.06.17.24.13.19.1.16.04.07c.05.12.05.25.01.38l-.05.09-.1.16-.13.19-.17.25-.1.13-.2.27c-.35.44-.76.87-1.2 1.28l-.24.22c-.13.12-.28.24-.42.35l.79.79.05.06c.15.19.13.47-.05.65l-.06.05c-.19.15-.47.13-.65-.05l-.94-.93-.73-.73-1.33-1.33-.21-.22-6-6.01-.05-.06c-.15-.2-.14-.47.05-.66a.52.52 0 0 1 .35-.13zM5.3 7.02l.78.78-.03.12c-.03.13-.04.25-.04.38v.12c.05 1.06.92 1.88 1.99 1.88h.13c.13-.01.25-.04.39-.06l.78.78-.15.06c-.35.15-.74.23-1.14.23h-.14a2.993 2.993 0 0 1-2.86-2.99c-.02-.48.09-.91.29-1.3zM8 4.47h-.22c-.62.03-1.21.16-1.79.4l.73.73c.39-.18.82-.29 1.3-.29h.15c1.59.07 2.86 1.38 2.86 2.99v.17c-.02.4-.12.79-.29 1.13l1.09 1.09c.23-.18.46-.38.69-.59l.24-.23c.39-.39.75-.79 1.05-1.2l.05-.06.05-.06.18-.25-.28-.38-.19-.24c-.33-.4-.7-.8-1.1-1.19l-.18-.16C10.98 5.16 9.54 4.47 8 4.47zM8 6.3h-.13c-.14.02-.26.03-.38.06l2.45 2.45c.05-.17.07-.34.07-.52v-.12A2.02 2.02 0 0 0 8 6.3z"
100
- },
101
- null,
102
- -1
103
- /* HOISTED */
104
- ), Je = [Xe, Ye];
105
- function Ze(e, t) {
106
- return p(), m("svg", Ke, [].concat(Je));
107
- }
108
- var qe = {
109
- render: Ze
110
- }, Qe = function() {
111
- return j({
112
- name: "IconEyeclose",
113
- component: qe
114
- })();
115
- }, et = {
116
- xmlns: "http://www.w3.org/2000/svg",
117
- viewBox: "0 0 16 16",
118
- style: {
119
- "enable-background": "new 0 0 16 16"
120
- },
121
- "xml:space": "preserve"
122
- }, tt = /* @__PURE__ */ b(
123
- "rect",
124
- {
125
- style: {
126
- fill: "none"
127
- }
128
- },
129
- null,
130
- -1
131
- /* HOISTED */
132
- ), nt = /* @__PURE__ */ b(
133
- "path",
134
- {
135
- class: "eyeopen_svg__st1",
136
- d: "M8 3.16c1.89 0 3.63.87 5.17 2.3.53.5 1 1.02 1.41 1.55.03.05.07.09.1.14l.17.23.14.2.1.15c.1.16.1.37 0 .53l-.1.15-.14.2-.17.23-.1.14c-.41.52-.88 1.05-1.41 1.55-1.54 1.43-3.28 2.3-5.17 2.3-1.9 0-3.64-.87-5.18-2.3-.53-.5-1-1.03-1.41-1.55-.03-.05-.07-.09-.1-.14l-.17-.23-.14-.2-.1-.15c-.1-.16-.1-.37 0-.53l.1-.15.14-.2.17-.23.1-.14c.41-.53.88-1.05 1.41-1.55C4.36 4.03 6.1 3.16 8 3.16zm0 1c-1.61 0-3.12.76-4.5 2.03-.49.46-.92.95-1.3 1.43l-.09.12-.18.25.27.38c.38.48.81.97 1.3 1.42 1.38 1.28 2.89 2.04 4.5 2.04 1.6 0 3.11-.76 4.49-2.04.49-.45.92-.94 1.3-1.42l.09-.12.18-.26-.27-.37c-.38-.48-.81-.97-1.3-1.43C11.11 4.92 9.6 4.16 8 4.16zM8 5c1.65 0 3 1.34 3 3 0 1.65-1.35 3-3 3-1.66 0-3-1.35-3-3 0-1.66 1.34-3 3-3zm0 1c-1.11 0-2 .89-2 2a2 2 0 1 0 2-2z"
137
- },
138
- null,
139
- -1
140
- /* HOISTED */
141
- ), ot = [tt, nt];
142
- function lt(e, t) {
143
- return p(), m("svg", et, [].concat(ot));
144
- }
145
- var it = {
146
- render: lt
147
- }, at = function() {
148
- return j({
149
- name: "IconEyeopen",
150
- component: it
151
- })();
152
- }, rt = {
153
- xmlns: "http://www.w3.org/2000/svg",
154
- viewBox: "0 0 24 24",
155
- "xml:space": "preserve"
156
- }, st = /* @__PURE__ */ b(
157
- "path",
158
- {
159
- class: "fullscreen_svg__st0",
160
- d: "M8 3H4.5l5.2 5.3c.4.4.4 1 0 1.4-.4.4-1 .4-1.4 0L3 4.3V8c0 .6-.4 1-1 1s-1-.4-1-1V2c0-.6.4-1 1-1h6c.5 0 1 .4 1 1s-.4 1-1 1zM8 21H4.5l5.2-5.3c.4-.4.4-1 0-1.4-.4-.4-1-.4-1.4 0L3 19.7V16c0-.6-.4-1-1-1s-1 .4-1 1v6c0 .6.4 1 1 1h6c.5 0 1-.4 1-1s-.4-1-1-1zM16 3h3.5l-5.2 5.3c-.4.4-.4 1 0 1.4.4.4 1 .4 1.4 0L21 4.3V8c0 .6.4 1 1 1s1-.4 1-1V2c0-.6-.4-1-1-1h-6c-.5 0-1 .4-1 1s.4 1 1 1zM16 21h3.5l-5.2-5.3c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0l5.3 5.4V16c0-.6.4-1 1-1s1 .4 1 1v6c0 .6-.4 1-1 1h-6c-.5 0-1-.4-1-1s.4-1 1-1z"
161
- },
162
- null,
163
- -1
164
- /* HOISTED */
165
- ), ut = [st];
166
- function dt(e, t) {
167
- return p(), m("svg", rt, [].concat(ut));
168
- }
169
- var pt = {
170
- render: dt
171
- }, ft = function() {
172
- return j({
173
- name: "IconFullscreen",
174
- component: pt
175
- })();
176
- }, ct = {
177
- xmlns: "http://www.w3.org/2000/svg",
178
- viewBox: "0 0 24 24",
179
- "xml:space": "preserve"
180
- }, yt = /* @__PURE__ */ b(
181
- "path",
182
- {
183
- class: "minscreen_svg__st0",
184
- d: "M3 8h3.5L1.3 2.7c-.4-.4-.4-1 0-1.4.4-.4 1-.4 1.4 0L8 6.7V3c0-.6.4-1 1-1s1 .4 1 1v6c0 .6-.4 1-1 1H3c-.5 0-1-.4-1-1s.4-1 1-1zM3 16h3.5l-5.2 5.3c-.4.4-.4 1 0 1.4.4.4 1 .4 1.4 0L8 17.3V21c0 .6.4 1 1 1s1-.4 1-1v-6c0-.6-.4-1-1-1H3c-.5 0-1 .4-1 1s.4 1 1 1zM21 8h-3.5l5.2-5.3c.4-.4.4-1 0-1.4s-1-.4-1.4 0L16 6.7V3c0-.6-.4-1-1-1s-1 .4-1 1v6c0 .6.4 1 1 1h6c.5 0 1-.4 1-1s-.4-1-1-1zM21 16h-3.5l5.2 5.3c.4.4.4 1 0 1.4-.4.4-1 .4-1.4 0L16 17.3V21c0 .6-.4 1-1 1s-1-.4-1-1v-6c0-.6.4-1 1-1h6c.5 0 1 .4 1 1s-.4 1-1 1z"
185
- },
186
- null,
187
- -1
188
- /* HOISTED */
189
- ), mt = [yt];
190
- function gt(e, t) {
191
- return p(), m("svg", ct, [].concat(mt));
192
- }
193
- var ht = {
194
- render: gt
195
- }, vt = function() {
196
- return j({
197
- name: "IconMinscreen",
198
- component: ht
199
- })();
200
- };
201
- const bt = `
202
- height:0 !important;visibility:hidden !important;overflow:hidden !important;
203
- position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !important
204
- `, St = [
205
- "width",
206
- "line-height",
207
- "padding-top",
208
- "padding-bottom",
209
- "padding-left",
210
- "padding-right",
211
- "border-width",
212
- "box-sizing",
213
- "letter-spacing",
214
- "font-family",
215
- "font-weight",
216
- "font-size",
217
- "text-rendering",
218
- "text-transform",
219
- "text-indent"
220
- ], T = {
221
- BoxSizing: "box-sizing",
222
- BorderBox: "border-box",
223
- ContentBox: "content-box",
224
- PaddingTop: "padding-top",
225
- PaddingBottom: "padding-bottom",
226
- BorderTopWidth: "border-top-width",
227
- BorderBottomWidth: "border-bottom-width"
228
- }, wt = (e) => /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e), Ct = (e) => () => {
229
- if (e.inputDisabled)
230
- return !1;
231
- e.boxVisibility = !0;
232
- }, Ot = ({ props: e }) => () => ({
233
- textAlign: e.textAlign
234
- }), It = () => (e) => {
235
- const t = window.getComputedStyle(e), n = t.getPropertyValue(T.BoxSizing), o = parseFloat(t.getPropertyValue(T.PaddingBottom)) + parseFloat(t.getPropertyValue(T.PaddingTop)), l = parseFloat(t.getPropertyValue(T.BorderBottomWidth)) + parseFloat(t.getPropertyValue(T.BorderTopWidth));
236
- return { contextStyle: St.map((a) => `${a}:${t.getPropertyValue(a)}`).join(";"), paddingSize: o, borderSize: l, boxSizing: n };
237
- }, Mt = ({
238
- api: e,
239
- hiddenTextarea: t,
240
- props: n,
241
- state: o,
242
- mode: l,
243
- constants: i
244
- }) => (a, s = 1, r = null) => {
245
- if (!a)
246
- return {
247
- minHeight: "",
248
- height: ""
249
- };
250
- t || (t = document.createElement("textarea"), document.body.appendChild(t));
251
- const { paddingSize: u, borderSize: f, boxSizing: c, contextStyle: d } = e.calculateNodeStyling(a);
252
- t.setAttribute("style", `${d};${bt}`), t.value = a.value || a.placeholder || "";
253
- let g = t.scrollHeight;
254
- const C = {};
255
- l === "mobile" && (g = Math.max(t.scrollHeight, i.TEXTAREA_HEIGHT_MOBILE)), c === T.BorderBox ? g = g + f * 2 + u : c === T.ContentBox && (g = g - u), t.value = "";
256
- const $ = t.scrollHeight - u;
257
- if (s !== null) {
258
- let y = $ * s;
259
- c === T.BorderBox && (y = y + u + f), n.size && (y = n.size === "mini" ? y * 0.67 : n.size === "small" ? y : y * 1.17), n.height && (y = n.height), o.isDisplayOnly ? C.minHeight = "0px" : (g = Math.max(y, g), C.minHeight = `${y}px`);
260
- }
261
- if (r !== null) {
262
- let y = $ * r;
263
- c === T.BorderBox && (y += f + u), g = Math.min(y, g);
264
- }
265
- return C.height = `${g}px`, t.parentNode && t.parentNode.removeChild(t), t = null, C;
266
- }, $t = (e) => () => e.$refs.input || e.$refs.textarea, Vt = (e) => () => e.getInput().blur(), Dt = (e) => () => e.getInput().focus(), Tt = (e) => () => e.getInput().select(), Bt = ({
267
- api: e,
268
- componentName: t,
269
- eventName: n,
270
- emit: o,
271
- props: l,
272
- state: i,
273
- vm: a
274
- }) => (s) => {
275
- i.focused = !1, o("blur", s), e.isMemoryStorage.value = !1, l.validateEvent && e.dispatch(t, n, [l.modelValue]), l.hoverExpand && (a.$refs.textarea.scrollTop = 0);
276
- }, kt = ({ api: e, emit: t, state: n }) => (o) => {
277
- n.focused = !0, t("focus", o), e.searchMemory(o.target.value);
278
- }, Et = ({ api: e, emit: t, nextTick: n, state: o }) => (l) => {
279
- o.isComposing || l.target.value !== o.nativeInputValue && (t("update:modelValue", l.target.value), t("input", l), e.searchMemory(l.target.value), n(e.setNativeInputValue));
280
- }, Lt = (e) => (t) => e("change", t.target.value), At = ({ api: e, parent: t, vm: n, state: o, props: l }) => () => {
281
- if (le)
282
- return;
283
- const { autosize: i, type: a } = t;
284
- if (a !== "textarea" || !n.$refs.textarea)
285
- return;
286
- if (l.hoverExpand && !o.enteredTextarea) {
287
- o.textareaCalcStyle = {
288
- minHeight: o.textareaHeight,
289
- height: o.textareaHeight
290
- };
291
- return;
292
- }
293
- if (!i || o.isDisplayOnly) {
294
- o.textareaCalcStyle = {
295
- minHeight: e.calcTextareaHeight(n.$refs.textarea).minHeight
296
- };
297
- return;
298
- }
299
- const s = i.minRows, r = i.maxRows;
300
- o.textareaCalcStyle = e.calcTextareaHeight(n.$refs.textarea, s, r);
301
- }, _t = ({ api: e, state: t }) => () => {
302
- const n = e.getInput();
303
- n && n.value !== t.nativeInputValue && (n.value = t.nativeInputValue);
304
- }, zt = (e) => () => e.isComposing = !0, Nt = (e) => (t) => {
305
- const n = t.target.value, o = n[n.length - 1] || "";
306
- e.isComposing = !wt(o);
307
- }, Pt = ({ api: e, state: t }) => (n) => {
308
- t.isComposing && (t.isComposing = !1, e.handleInput(n));
309
- }, xt = ({ vm: e, parent: t }) => (n) => {
310
- const o = e.$refs[n] ? [e.$refs[n]] : [];
311
- if (!o.length)
312
- return;
313
- let l = null;
314
- for (let s = 0, r = o.length; s < r; s++)
315
- if (o[s].parentNode === t.$el) {
316
- l = o[s];
317
- break;
318
- }
319
- if (!l)
320
- return;
321
- const a = { suffix: "append", prefix: "prepend" }[n];
322
- if (t.$slots[a]) {
323
- const s = e.$refs[a];
324
- let r;
325
- n === "suffix" ? r = `translateX(-${s.offsetWidth}px) translateY(-50%)` : n === "prefix" && (r = `translate(${s.offsetWidth}px, -50%)`), l.style.transform = r;
326
- } else
327
- l.removeAttribute("style");
328
- }, Ft = (e) => () => {
329
- e.calcIconOffset("prefix"), e.calcIconOffset("suffix");
330
- }, Ht = (e) => () => {
331
- e("update:modelValue", ""), e("change", ""), e("clear");
332
- }, Wt = ({ api: e, nextTick: t, state: n }) => () => {
333
- n.passwordVisible = !n.passwordVisible, t(e.focus);
334
- }, Ut = ({ parent: e, props: t, state: n }) => () => e.$slots.suffix || t.suffixIcon || n.showClear || t.showPassword || n.isWordLimitVisible || n.validateState && n.needStatusIcon || t.mask && n.inputDisabled, Rt = (e) => typeof e == "number" ? String(e).length : (e || "").length, jt = ({ emit: e, props: t, state: n }) => (o) => {
335
- if (t.isSelect) {
336
- e("update:modelValue", o), e("change", o);
337
- const l = t.selectMenu.length && t.selectMenu.filter((i) => i.id === o).shift();
338
- n.checkedLabel = l ? l.label : "";
339
- }
340
- }, Gt = (e) => () => {
341
- const t = e.getInput();
342
- return t && t.selectionStart !== t.selectionEnd;
343
- }, Kt = ({ state: e, props: t }) => (n, o) => {
344
- if (o === "textarea" && t.popupMore)
345
- return;
346
- const l = o === "textarea" ? n.target.querySelector(".text-box") : n.target;
347
- if (e.displayOnlyTooltip = "", !l)
348
- return;
349
- if (l.scrollWidth > l.offsetWidth || o === "textarea" && l.scrollHeight > l.offsetHeight)
350
- e.displayOnlyTooltip = t.displayOnlyContent || e.nativeInputValue;
351
- else {
352
- let a = !1;
353
- if (t.mask && e.maskValueVisible) {
354
- const s = l.textContent, r = window.getComputedStyle(l).font, u = l.getBoundingClientRect(), f = 31, c = (s == null ? void 0 : s.trim()) || "";
355
- a = Me(c, r, u.width - f).o;
356
- }
357
- a && (e.displayOnlyTooltip = t.displayOnlyContent || e.nativeInputValue);
358
- }
359
- }, Xt = ({ state: e, props: t }) => () => {
360
- let n = "";
361
- const o = t.displayOnlyContent || e.nativeInputValue;
362
- for (let l = 0; l < o.length; l++)
363
- n += "*";
364
- return n;
365
- }, Yt = ({ state: e }) => () => e.maskValueVisible ? e.nativeInputValue : e.nativeInputValue && e.maskSymbol, Jt = ({ state: e, props: t, nextTick: n, vm: o }) => (l) => {
366
- n(() => {
367
- const i = o.$refs.input;
368
- t.mask && e.nativeInputValue && i && (i.value = e.maskValueVisible || !e.inputDisabled ? e.nativeInputValue : e.maskSymbol), l === "mask" && !t.mask && i && (i.value = e.nativeInputValue);
369
- });
370
- }, Zt = ({ api: e, state: t, props: n, nextTick: o }) => () => {
371
- t.isDragging || n.hoverExpand && !t.isDisplayOnly && (t.enteredTextarea = !0, o(e.resizeTextarea));
372
- }, qt = ({ api: e, state: t, props: n, nextTick: o, vm: l }) => () => {
373
- t.isDragging || n.hoverExpand && !t.isDisplayOnly && (t.enteredTextarea = !1, o(() => {
374
- e.resizeTextarea(), l.$refs.textarea.scrollTop = 0;
375
- }));
376
- }, Qt = ({ parent: e, state: t, props: n }) => () => {
377
- const o = n.displayOnlyContent || t.nativeInputValue;
378
- return (typeof n.showEmptyValue == "boolean" ? n.showEmptyValue : (e.tinyForm || {}).showEmptyValue) ? o : o || "-";
379
- }, en = ({ state: e, vm: t }) => (n) => {
380
- e.timer && clearTimeout(e.timer), e.timer = setTimeout(() => {
381
- const o = t.$refs && t.$refs.textBox;
382
- if (o)
383
- if (n && o.offsetHeight === 0) {
384
- let l = o.cloneNode(!0);
385
- l.style.visibility = "hidden", l.style.position = "absolute", l.style.left = "-9999px", document.body.appendChild(l), l.scrollHeight > l.offsetHeight && (e.showMoreBtn = !0), document.body.removeChild(l), l = null;
386
- } else o.scrollHeight > o.offsetHeight ? e.showMoreBtn = !0 : e.showMoreBtn = !1;
387
- }, 100);
388
- }, tn = ({ state: e }) => () => e.isDragging = !0, nn = ({ state: e, api: t }) => (n) => {
389
- e.isDragging = !1, n && t.handleLeaveTextarea();
390
- }, on = (e) => (e && e.preventDefault ? e.preventDefault() : window.event.returnValue = !1, !1), ln = ({ emit: e, state: t }) => (n) => {
391
- t.hoverValue = "", e("selected", n);
392
- }, an = ({ emit: e, props: t, state: n }) => () => {
393
- const o = window.event.keyCode, l = t.localstorageData.indexOf(n.hoverValue), i = t.localstorageData.length - 1;
394
- if (o === G.ArrowUp && t.isMemoryStorage)
395
- return l > 0 && l <= i ? n.hoverValue = t.localstorageData[l - 1] : n.hoverValue = t.localstorageData[i], !1;
396
- if (o === G.ArrowDown && t.isMemoryStorage)
397
- return l >= 0 && l < i ? n.hoverValue = t.localstorageData[l + 1] : n.hoverValue = t.localstorageData[0], !1;
398
- o === G.NumpadEnter && t.isMemoryStorage && n.hoverValue && n.hoverValue.length > 0 && e("selected", n.hoverValue);
399
- }, rn = (e, t = 5) => {
400
- const n = e.length;
401
- let o = [], l = {};
402
- for (let i = 0, a = 1; a <= t && !(i < 0 || i >= n || (l[e[i]] ? a = a - 1 : (l[e[i]] = !0, o.push(e[i])), a === n)); a++)
403
- i++;
404
- return o;
405
- }, Se = (e, t) => {
406
- if (typeof e == "string")
407
- try {
408
- const n = JSON.parse(e);
409
- return !!(typeof n == "object" && n && (!t || n.constructor === t));
410
- } catch {
411
- return !1;
412
- }
413
- }, sn = (e, t, n = 5) => {
414
- if (typeof t == "string") {
415
- const o = localStorage.getItem(e), l = Se(o, Array);
416
- let i = "";
417
- if (o && l) {
418
- let a = JSON.parse(localStorage.getItem(e));
419
- a.unshift(t), a = rn(a, n), i = JSON.stringify(a);
420
- } else o === null || o === t ? i = JSON.stringify([t]) : i = JSON.stringify([t, o]);
421
- localStorage.setItem(e, i);
422
- }
423
- }, un = (e) => (t) => {
424
- e.name && (t != null && t.trim()) && sn(e.name, t, e.memorySpace);
425
- }, dn = ({ props: e, state: t }) => (n) => {
426
- if (!e.name)
427
- return;
428
- const o = localStorage.getItem(e.name);
429
- let l = [], i = !0;
430
- if (Se(o)) {
431
- const a = JSON.parse(o);
432
- if (!n)
433
- l = JSON.parse(o);
434
- else
435
- for (let s = 0, r = a.length; s < r; s++)
436
- a[s].includes(n) && l.push(a[s]);
437
- l.length === 0 && (i = !1);
438
- } else
439
- o === null ? i = !1 : l.push(o);
440
- t.storageData = l, t.isMemoryStorage = i;
441
- }, pn = ({ api: e, state: t }) => (n) => {
442
- e.getInput().value = n, e.handleInput({ target: { value: n } }), e.handleChange({ target: { value: n } }), t.isMemoryStorage = !1;
443
- };
444
- var fn = ({ api: e, props: t, reactive: n, toRefs: o }) => {
445
- const l = n({
446
- storageData: [],
447
- isMemoryStorage: !1
448
- });
449
- return be(U({}, o(l)), {
450
- addMemory: un(t),
451
- searchMemory: dn({ props: t, state: l }),
452
- selectedMemory: pn({ api: e, state: l })
453
- });
454
- };
455
- const cn = [
456
- "blur",
457
- "showBox",
458
- "clear",
459
- "focus",
460
- "state",
461
- "select",
462
- "getInput",
463
- "handleBlur",
464
- "handleInput",
465
- "handleFocus",
466
- "handleChange",
467
- "calcIconOffset",
468
- "resizeTextarea",
469
- "getSuffixVisible",
470
- "updateIconOffset",
471
- "calcTextareaHeight",
472
- "setNativeInputValue",
473
- "calculateNodeStyling",
474
- "handleCompositionEnd",
475
- "handlePasswordVisible",
476
- "handleCompositionStart",
477
- "handleCompositionUpdate",
478
- "addMemory",
479
- "searchMemory",
480
- "selectedMemory",
481
- "storageData",
482
- "isMemoryStorage",
483
- "hasSelection",
484
- "handleEnterDisplayOnlyContent",
485
- "hiddenPassword",
486
- "inputStyle",
487
- "handleEnterTextarea",
488
- "handleLeaveTextarea",
489
- "handleTextareaMouseDown",
490
- "handleTextareaMouseUp"
491
- ], yn = ({
492
- reactive: e,
493
- computed: t,
494
- mode: n,
495
- props: o,
496
- parent: l,
497
- constants: i,
498
- api: a,
499
- vm: s,
500
- designConfig: r
501
- }) => {
502
- const u = e({
503
- mode: n,
504
- maskSymbol: i.MASKSYMBOL,
505
- focused: !1,
506
- hovering: !1,
507
- isComposing: !1,
508
- passwordVisible: !1,
509
- maskValueVisible: !1,
510
- boxVisibility: !1,
511
- textareaCalcStyle: {},
512
- checkedLabel: "",
513
- enteredTextarea: !1,
514
- sheetvalue: o.modelValue,
515
- inputSize: t(() => o.size || u.formItemSize || (l.tinyForm || {}).size),
516
- inputSizeMf: t(() => o.size || u.formItemSize || (l.tinyForm || {}).size),
517
- showClear: t(
518
- () => {
519
- var f;
520
- return o.clearable && !u.inputDisabled && !o.readonly && u.nativeInputValue && (!((f = r == null ? void 0 : r.options) != null && f.isCloseIconHide) || u.focused || u.hovering);
521
- }
522
- ),
523
- textareaHeight: s.theme === "saas" ? "28px" : "30px",
524
- upperLimit: t(() => l.$attrs.maxlength),
525
- textLength: t(() => Rt(o.modelValue)),
526
- inputExceed: t(() => u.isWordLimitVisible && u.textLength > u.upperLimit),
527
- formItemSize: t(() => (l.formItem || {}).formItemSize),
528
- validateIcon: t(() => i.VALIDATE_ICON[u.validateState]),
529
- showWordLimit: t(() => o.showWordLimit && l.$attrs.maxlength),
530
- inputDisabled: t(
531
- () => o.disabled || (l.tinyForm || {}).disabled || u.isDisplayOnly || (l.tinyForm || {}).displayOnly
532
- ),
533
- validateState: t(() => l.formItem ? l.formItem.validateState : ""),
534
- inputStyle: t(() => a.inputStyle()),
535
- textareaStyle: t(() => be(U({}, u.textareaCalcStyle), {
536
- resize: o.resize,
537
- textAlign: o.textAlign
538
- })),
539
- needStatusIcon: t(() => l.tinyForm ? l.tinyForm.statusIcon : !1),
540
- showPwdVisible: t(
541
- () => o.showPassword && !u.inputDisabled && !o.readonly && (!!u.nativeInputValue || u.focused)
542
- ),
543
- nativeInputValue: t(
544
- () => o.modelValue === null || o.modelValue === void 0 ? "" : String(o.modelValue)
545
- ),
546
- tooltipConfig: t(() => l.tinyForm ? l.tinyForm.tooltipConfig : {}),
547
- isWordLimitVisible: t(
548
- () => (o.showWordLimit && l.$attrs.maxlength || o.counter) && (l.type === "text" || l.type === "textarea") && !u.inputDisabled && !o.readonly && !o.showPassword
549
- ),
550
- isDisplayOnly: t(
551
- () => (o.displayOnly || (l.tinyForm || {}).displayOnly) && ["text", "textarea", "password", "number"].includes(o.type)
552
- ),
553
- displayOnlyTooltip: "",
554
- showMoreBtn: !1,
555
- showDisplayOnlyBox: !1,
556
- timer: null,
557
- hiddenPassword: t(() => a.hiddenPassword()),
558
- displayedMaskValue: t(() => a.getDisplayedMaskValue()),
559
- displayOnlyText: t(() => a.getDisplayOnlyText()),
560
- isDragging: !1
561
- });
562
- return u;
563
- }, mn = ({
564
- api: e,
565
- state: t,
566
- dispatch: n,
567
- broadcast: o,
568
- emit: l,
569
- vm: i,
570
- props: a,
571
- parent: s,
572
- nextTick: r
573
- }) => {
574
- Object.assign(e, {
575
- state: t,
576
- dispatch: n,
577
- broadcast: o,
578
- showBox: Ct(t),
579
- clear: Ht(l),
580
- getInput: $t(i),
581
- setShowMoreBtn: en({ state: t, vm: i }),
582
- handleChange: Lt(l),
583
- watchFormSelect: jt({ emit: l, props: a, state: t }),
584
- calcIconOffset: xt({ vm: i, parent: s }),
585
- getSuffixVisible: Ut({ parent: s, props: a, state: t }),
586
- calculateNodeStyling: It(),
587
- handleCompositionStart: zt(t),
588
- handleCompositionUpdate: Nt(t),
589
- setInputDomValue: Jt({ state: t, props: a, nextTick: r, vm: i }),
590
- getDisplayOnlyText: Qt({ parent: s, props: a, state: t }),
591
- handleEnterTextarea: Zt({ api: e, state: t, props: a, nextTick: r }),
592
- handleLeaveTextarea: qt({ api: e, state: t, props: a, nextTick: r, vm: i }),
593
- inputStyle: Ot({ props: a }),
594
- handleTextareaMouseDown: tn({ state: t }),
595
- handleTextareaMouseUp: nn({ state: t, api: e })
596
- });
597
- }, gn = ({
598
- storages: e,
599
- api: t,
600
- componentName: n,
601
- props: o,
602
- emit: l,
603
- eventName: i,
604
- nextTick: a,
605
- parent: s,
606
- state: r,
607
- vm: u,
608
- mode: f,
609
- constants: c
610
- }) => {
611
- const { storageData: d, isMemoryStorage: g, addMemory: C, searchMemory: $, selectedMemory: y } = e;
612
- return Object.assign(t, {
613
- addMemory: C,
614
- storageData: d,
615
- searchMemory: $,
616
- selectedMemory: y,
617
- isMemoryStorage: g,
618
- blur: Vt(t),
619
- focus: Dt(t),
620
- select: Tt(t),
621
- handleBlur: Bt({
622
- api: t,
623
- componentName: n,
624
- emit: l,
625
- eventName: i.blur,
626
- props: o,
627
- state: r,
628
- vm: u
629
- }),
630
- handleFocus: kt({ api: t, emit: l, state: r }),
631
- handleInput: Et({ api: t, emit: l, nextTick: a, state: r }),
632
- resizeTextarea: At({ api: t, parent: s, vm: u, state: r, props: o }),
633
- updateIconOffset: Ft(t),
634
- calcTextareaHeight: Mt({
635
- api: t,
636
- hiddenTextarea: null,
637
- props: o,
638
- state: r,
639
- mode: f,
640
- constants: c
641
- }),
642
- setNativeInputValue: _t({ api: t, state: r }),
643
- handleCompositionEnd: Pt({ api: t, state: r }),
644
- handlePasswordVisible: Wt({ api: t, nextTick: a, state: r }),
645
- hasSelection: Gt(t),
646
- handleEnterDisplayOnlyContent: Kt({ state: r, props: o }),
647
- hiddenPassword: Xt({ state: r, props: o }),
648
- getDisplayedMaskValue: Yt({ state: r })
649
- });
650
- }, hn = ({
651
- watch: e,
652
- state: t,
653
- api: n,
654
- props: o,
655
- nextTick: l,
656
- emit: i,
657
- componentName: a,
658
- eventName: s
659
- }) => {
660
- e(
661
- () => o.modelValue,
662
- (r) => {
663
- t.mode === "mobile" && (t.sheetvalue = r, i("update:modelValue", r)), l(n.resizeTextarea), o.validateEvent && n.dispatch(a, s.change, [r]), o.type === "textarea" && o.popupMore && t.isDisplayOnly && n.setShowMoreBtn(), n.setInputDomValue();
664
- }
665
- ), e(() => t.maskValueVisible, n.setInputDomValue), e(() => t.inputDisabled, n.setInputDomValue), e(
666
- () => o.mask,
667
- () => {
668
- n.setInputDomValue("mask");
669
- }
670
- ), e(
671
- () => o.size,
672
- () => l(n.resizeTextarea),
673
- { immediate: !0 }
674
- ), e(
675
- () => t.nativeInputValue,
676
- () => {
677
- n.setNativeInputValue();
678
- }
679
- ), e(
680
- () => o.type,
681
- () => {
682
- l(() => {
683
- n.setNativeInputValue(), n.resizeTextarea(), n.updateIconOffset();
684
- });
685
- }
686
- ), e(
687
- () => t.isDisplayOnly,
688
- () => {
689
- l(() => {
690
- n.setNativeInputValue(), n.resizeTextarea(), n.updateIconOffset();
691
- });
692
- }
693
- ), e(
694
- () => t.sheetvalue,
695
- (r) => n.watchFormSelect(r),
696
- { immediate: !0 }
697
- );
698
- }, vn = (e, { computed: t, onMounted: n, onBeforeUnmount: o, onUpdated: l, reactive: i, toRefs: a, watch: s, inject: r }, { vm: u, refs: f, parent: c, emit: d, constants: g, nextTick: C, broadcast: $, dispatch: y, mode: S, designConfig: V }) => {
699
- const v = {}, _ = g.COMPONENT_NAME.FormItem, re = { change: "form.change", blur: "form.blur" }, z = yn({ reactive: i, computed: t, mode: S, props: e, parent: c, constants: g, api: v, vm: u, designConfig: V });
700
- mn({ api: v, state: z, dispatch: y, broadcast: $, emit: d, props: e, parent: c, vm: u, nextTick: C });
701
- const Oe = fn({ api: v, props: e, reactive: i, toRefs: a });
702
- return c.tinyForm = c.tinyForm || r("form", null), gn({ api: v, storages: Oe, componentName: _, emit: d, eventName: re, props: e, state: z, nextTick: C, parent: c, vm: u, mode: S, constants: g }), hn({ watch: s, state: z, api: v, props: e, nextTick: C, emit: d, componentName: _, eventName: re }), n(() => {
703
- v.setNativeInputValue(), v.resizeTextarea(), v.updateIconOffset(), v.setInputDomValue(), y("Select", "input-mounted", u.$el), y("Tooltip", "tooltip-update", u.$el), e.type === "textarea" && e.popupMore && z.isDisplayOnly && (v.setShowMoreBtn(!0), F(window, "resize", v.setShowMoreBtn)), u.$attrs.autofocus && v.focus();
704
- }), o(() => {
705
- e.type === "textarea" && e.popupMore && z.isDisplayOnly && ie(window, "resize", v.setShowMoreBtn);
706
- }), l(() => {
707
- C(v.updateIconOffset);
708
- }), v;
709
- };
710
- Be.ref("");
711
- var E = [], w = "@@clickoutsideContext", A, bn = 0;
712
- le || (F(document, "mousedown", function(e) {
713
- A = e, E.filter(function(t) {
714
- return t[w].mousedownTrigger;
715
- }).forEach(function(t) {
716
- return t[w].documentHandler(e, A);
717
- });
718
- }), F(document, "mouseup", function(e) {
719
- E.filter(function(t) {
720
- return !t[w].mousedownTrigger;
721
- }).forEach(function(t) {
722
- var n;
723
- return t[w].documentHandler(e, (n = t[w]) != null && n.mouseupTrigger ? e : A);
724
- }), A = null;
725
- }));
726
- var pe = function(t, n, o) {
727
- return function(l, i) {
728
- var a, s;
729
- l === void 0 && (l = {}), i === void 0 && (i = {});
730
- var r = o.context.popperElm || o.context.state && o.context.state.popperElm;
731
- !((a = l) != null && a.target) || !((s = i) != null && s.target) || t.contains(l.target) || t.contains(i.target) || t === l.target || r && (r.contains(l.target) || r.contains(i.target)) || (n.expression && t[w].methodName && o.context[t[w].methodName] ? o.context[t[w].methodName]() : t[w].bindingFn && t[w].bindingFn());
732
- };
733
- }, Sn = {
734
- bind: function(t, n, o) {
735
- E.push(t);
736
- var l = bn++, i = n.modifiers, a = n.expression, s = n.value, r = i || {}, u = r.mousedown, f = u === void 0 ? !1 : u, c = r.mouseup, d = c === void 0 ? !1 : c;
737
- t[w] = {
738
- id: l,
739
- documentHandler: pe(t, n, o),
740
- methodName: a,
741
- bindingFn: s,
742
- mousedownTrigger: f,
743
- mouseupTrigger: d
744
- };
745
- },
746
- update: function(t, n, o) {
747
- var l = n.modifiers, i = n.expression, a = n.value, s = l || {}, r = s.mousedown, u = r === void 0 ? !1 : r, f = s.mouseup, c = f === void 0 ? !1 : f;
748
- t[w].documentHandler = pe(t, n, o), t[w].methodName = i, t[w].bindingFn = a, t[w].mousedownTrigger = u, t[w].mouseupTrigger = c;
749
- },
750
- unbind: function(t) {
751
- if (t.nodeType === Node.ELEMENT_NODE) {
752
- for (var n = E.length, o = 0; o < n; o++)
753
- if (E[o][w].id === t[w].id) {
754
- E.splice(o, 1);
755
- break;
756
- }
757
- E.length === 0 && A && (A = null), delete t[w];
758
- }
759
- }
760
- };
761
- const wn = ["state", "mousedown", "selectItem"], Cn = (e, { onUnmounted: t, reactive: n, watch: o }, { emit: l }) => {
762
- const i = n({
763
- hoverValue: ""
764
- }), a = {
765
- state: i,
766
- mousedown: on,
767
- selectItem: ln({ emit: l, state: i }),
768
- keydown: an({ emit: l, props: e, state: i })
769
- };
770
- return o(
771
- () => e.isMemoryStorage,
772
- (s) => !s && (i.hoverValue = ""),
773
- { immediate: !0 }
774
- ), t(() => {
775
- i.hoverValue = "", ie(document, "keydown", a.keydown);
776
- }), F(document, "keydown", a.keydown), a;
777
- }, On = ({ constants: e, props: t }) => () => t.rightSlide ? e.DIALOG_SLIDER_RIGHT : e.DIALOG_FADE, Y = (e) => isNaN(Number(e)) ? e : e + "px", In = ({ props: e, state: t, designConfig: n }) => () => {
778
- var o;
779
- let l = {}, { width: i, top: a, rightSlide: s, maxHeight: r } = e;
780
- return a === void 0 && (a = s ? "0" : (o = n == null ? void 0 : n.state) != null && o.top ? "" : "15vh"), i = Y(i), a = Y(a), r = Y(r), t.isFull || (l.width = i, l.top = t.top || a, l.maxHeight = r, s ? (l.right = 0, l.height = "calc(100vh - " + l.top + ")") : l.left = t.left || "calc((100vw - " + i + ") / 2)"), t.dragStyle && (l = U(U({}, l), t.dragStyle), t.isFull && (l = { left: "0px", top: "0px" })), e.customStyle && (l = Object.assign(l, e.customStyle)), l;
781
- }, Mn = ({
782
- api: e,
783
- constants: t,
784
- emit: n,
785
- nextTick: o,
786
- parent: l,
787
- props: i,
788
- vm: a,
789
- state: s
790
- }) => (r) => {
791
- const u = l.$el;
792
- if (i.lockScroll && (r ? e.showScrollbar() : e.hideScrollbar()), s.move = !1, s.isFull = i.fullscreen, n("update:visible", r), r)
793
- s.closed = !1, n("open"), F(u, "scroll", e.updatePopper), o(() => {
794
- a.$refs.dialog.scrollTop = 0;
795
- }), i.appendToBody && document.body.appendChild(u);
796
- else if (ie(u, "scroll", e.updatePopper), s.closed || (s.emitter.emit("boxclose", i.isFormReset), n("close")), i.destroyOnClose && o(() => s.key++), i.rightSlide && s.current !== "default") {
797
- const f = `[data-tag=${t.DIALOG_BOX_DATA_TAG}]`;
798
- i.rightSlide && (u.querySelector(f).style.left = "");
799
- }
800
- }, $n = ({ api: e, parent: t, props: n }) => () => {
801
- if (n.lockScroll && n.visible && e.showScrollbar(), n.visible) {
802
- const o = t.$el;
803
- e.open(), n.appendToBody && document.body.appendChild(o);
804
- }
805
- }, Vn = ({ api: e, parent: t, props: n }) => () => {
806
- const o = t.$el;
807
- e.hideScrollbar(), n.appendToBody && o && o.parentNode && o.parentNode.removeChild(o);
808
- }, Dn = ({ state: e }) => (t) => {
809
- e.mouseDownWrapperFlag = !1, /tiny-dialog-box__wrapper/.test(t.target.className) && t.type === "mousedown" && (e.mouseDownWrapperFlag = !0);
810
- }, Tn = ({ state: e }) => (t) => {
811
- e.mouseUpWrapperFlag = !1, /tiny-dialog-box__wrapper/.test(t.target.className) && t.type === "mouseup" && (e.mouseUpWrapperFlag = !0);
812
- }, Bn = ({ api: e, props: t, state: n }) => () => {
813
- t.closeOnClickModal && n.mouseDownWrapperFlag && n.mouseUpWrapperFlag && e.handleClose("mask");
814
- }, kn = ({
815
- api: e,
816
- constants: t,
817
- emit: n,
818
- parent: o,
819
- props: l
820
- }) => (i = "close") => {
821
- if (typeof l.beforeClose == "function" && l.beforeClose(i) === !1)
822
- return;
823
- const a = o.$el;
824
- if (l.rightSlide) {
825
- const s = a.querySelector(t.DIALOG_BOX_CLASS) || a;
826
- s.style.left = "";
827
- }
828
- De(n, "before-close", e.hide) && e.hide(i);
829
- }, En = ({ api: e, emit: t, state: n, props: o }) => (l) => {
830
- l !== !1 && (n.emitter.emit("boxclose", o.isFormReset), t("update:visible", !1), t("change", !1), t("close", l), n.closed = !0, e.hideScrollbar());
831
- }, Ln = ({ api: e, emit: t }) => () => {
832
- t("confirm"), e.handleClose("confirm");
833
- }, An = ({ api: e, emit: t }) => () => {
834
- t("cancel"), e.handleClose("cancel");
835
- }, _n = ({ api: e, constants: t }) => () => {
836
- e.broadcast(t.SELECT_DROPDOWN, "updatePopper"), e.broadcast(t.DROPDOWN_MENU, "updatePopper");
837
- }, zn = (e) => () => {
838
- e("opened");
839
- }, Nn = (e) => () => {
840
- e("closed");
841
- }, we = ({
842
- vm: e,
843
- componentList: t
844
- }) => {
845
- const n = e.$children;
846
- return !n || n.length === 0 ? [] : (n.forEach((o) => {
847
- o.$options.componentName === "Select" && t.push(o), we({ vm: o, componentList: t });
848
- }), t);
849
- }, Pn = (e) => {
850
- we({ vm: e, componentList: [] }).forEach((t) => {
851
- t.state.visible = !1;
852
- });
853
- }, xn = ({
854
- parent: e,
855
- props: t,
856
- state: n,
857
- emit: o,
858
- vm: l
859
- }) => (i) => {
860
- if (!t.draggable || n.isFull)
861
- return;
862
- let a = l.$refs.dialog;
863
- i.preventDefault();
864
- let s = document.onmousemove, r = document.onmouseup, u = i.clientX - a.offsetLeft, f = i.clientY - a.offsetTop, { visibleHeight: c, visibleWidth: d } = $e();
865
- document.onmousemove = (g) => {
866
- g.preventDefault(), n.move || (o("drag-start", g), Pn(e), n.move = !0);
867
- let C = a.offsetWidth, $ = a.offsetHeight, y, S;
868
- if (t.dragOutsideWindow) {
869
- let V = d - 10, v = c - 10;
870
- y = g.clientX - u, S = g.clientY - f, y = g.clientX < 0 ? -u : y > V ? V : y, S = g.clientY < 0 ? -f : S > v ? v : S;
871
- } else {
872
- let V = Math.max(d - C, 0), v = Math.max(c - $, 0);
873
- y = g.clientX - u, S = g.clientY - f, y = y < 0 ? 0 : y > V ? V : y, S = S < 0 ? 0 : S > v ? v : S;
874
- }
875
- n.isFull || (n.dragStyle = { left: `${y}px`, top: `${S}px` }), n.left = `${y}px`, n.top = `${S}px`, n.emitter.emit("boxdrag"), o("drag-move", g);
876
- }, document.onmouseup = () => {
877
- document.onmousemove = s, document.onmouseup = r, t.draggable && n.move && o("drag-end", i), n.move = !1;
878
- };
879
- }, Fn = (e) => () => {
880
- ye(document.body, e);
881
- }, Hn = (e) => () => {
882
- Ve(document.body, e);
883
- }, Wn = ({ state: e, emit: t, nextTick: n, vm: o }) => (l) => {
884
- e.isFull = l, n(() => {
885
- t("resize", { fullscreen: l, dialog: o.$refs.dialog });
886
- });
887
- }, Un = [
888
- "afterEnter",
889
- "afterLeave",
890
- "handleClose",
891
- "handleWrapperClick",
892
- "useMouseEventDown",
893
- "useMouseEventUp",
894
- "handleCancel",
895
- "handleConfirm",
896
- "handleDrag",
897
- "toggleFullScreen",
898
- "state"
899
- ], Rn = ({
900
- reactive: e,
901
- computed: t,
902
- api: n,
903
- emitter: o,
904
- props: l,
905
- useBreakpoint: i
906
- }) => {
907
- const { current: a } = i();
908
- return e({
909
- emitter: o(),
910
- key: 0,
911
- x: null,
912
- y: null,
913
- top: null,
914
- left: null,
915
- max: null,
916
- move: !1,
917
- closed: !1,
918
- dragable: !1,
919
- isFull: l.fullscreen,
920
- style: t(() => n.computedStyle()),
921
- animationName: t(() => n.computedAnimationName()),
922
- current: a,
923
- dragStyle: null
924
- });
925
- }, jn = ({ reactive: e, state: t, toRefs: n, usePopups: o }) => {
926
- const { opened: l, rendered: i } = o;
927
- return e(U({
928
- opened: l,
929
- rendered: i
930
- }, n(t)));
931
- }, Gn = ({
932
- emit: e,
933
- api: t,
934
- state: n,
935
- parent: o,
936
- props: l,
937
- lockScrollClass: i,
938
- constants: a,
939
- usePopups: s,
940
- nextTick: r,
941
- broadcast: u,
942
- designConfig: f,
943
- vm: c
944
- }) => {
945
- const { open: d, close: g } = s;
946
- Object.assign(t, {
947
- state: n,
948
- open: d,
949
- close: g,
950
- broadcast: u,
951
- handleCancel: An({ api: t, emit: e }),
952
- handleConfirm: Ln({ api: t, emit: e }),
953
- updatePopper: _n({ api: t, constants: a }),
954
- handleWrapperClick: Bn({ api: t, props: l, state: n }),
955
- useMouseEventDown: Dn({ state: n }),
956
- useMouseEventUp: Tn({ state: n }),
957
- hide: En({ api: t, emit: e, state: n, props: l }),
958
- handleClose: kn({ api: t, constants: a, emit: e, parent: o, props: l }),
959
- watchVisible: Mn({
960
- api: t,
961
- constants: a,
962
- emit: e,
963
- nextTick: r,
964
- parent: o,
965
- props: l,
966
- vm: c,
967
- state: n
968
- }),
969
- computedStyle: In({ state: n, props: l, designConfig: f }),
970
- mounted: $n({ api: t, parent: o, props: l }),
971
- unMounted: Vn({ api: t, parent: o, props: l }),
972
- computedAnimationName: On({ constants: a, props: l }),
973
- afterEnter: zn(e),
974
- afterLeave: Nn(e),
975
- hideScrollbar: Hn(i),
976
- showScrollbar: Fn(i),
977
- handleDrag: xn({ parent: o, props: l, state: n, emit: e, vm: c }),
978
- // tiny 新增
979
- toggleFullScreen: Wn({ state: n, emit: e, nextTick: r, vm: c })
980
- });
981
- }, Kn = ({ watch: e, state: t, api: n, props: o }) => {
982
- e(() => o.visible, n.watchVisible), e(
983
- () => o.fullscreen,
984
- (l) => {
985
- t.isFull = l;
986
- }
987
- );
988
- }, Xn = (e, { computed: t, onBeforeUnmount: n, onMounted: o, toRefs: l, reactive: i, watch: a }, {
989
- vm: s,
990
- emitter: r,
991
- parent: u,
992
- emit: f,
993
- constants: c,
994
- nextTick: d,
995
- mode: g,
996
- broadcast: C,
997
- designConfig: $,
998
- useBreakpoint: y
999
- }) => {
1000
- const S = {}, V = c.SCROLL_LOCK_CLASS(g);
1001
- let v = Rn({ reactive: i, computed: t, api: S, emitter: r, props: e, useBreakpoint: y });
1002
- const _ = He({
1003
- api: S,
1004
- nextTick: d,
1005
- onBeforeUnmount: n,
1006
- onMounted: o,
1007
- props: e,
1008
- reactive: i,
1009
- toRefs: l,
1010
- vm: s,
1011
- watch: a
1012
- });
1013
- return Gn({
1014
- api: S,
1015
- state: v,
1016
- parent: u,
1017
- props: e,
1018
- emit: f,
1019
- constants: c,
1020
- usePopups: _,
1021
- lockScrollClass: V,
1022
- nextTick: d,
1023
- vm: s,
1024
- broadcast: C,
1025
- designConfig: $
1026
- }), v = jn({ reactive: i, state: v, toRefs: l, usePopups: _ }), Kn({ watch: a, state: v, api: S, props: e }), o(S.mounted), n(S.unMounted), S;
1027
- };
1028
- function Yn(e, t) {
1029
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1030
- if (n) return (n = n.call(e)).next.bind(n);
1031
- if (Array.isArray(e) || (n = Jn(e)) || t) {
1032
- n && (e = n);
1033
- var o = 0;
1034
- return function() {
1035
- return o >= e.length ? { done: !0 } : { done: !1, value: e[o++] };
1036
- };
1037
- }
1038
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1039
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1040
- }
1041
- function Jn(e, t) {
1042
- if (e) {
1043
- if (typeof e == "string") return fe(e, t);
1044
- var n = {}.toString.call(e).slice(8, -1);
1045
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? fe(e, t) : void 0;
1046
- }
1047
- }
1048
- function fe(e, t) {
1049
- (t == null || t > e.length) && (t = e.length);
1050
- for (var n = 0, o = Array(t); n < t; n++) o[n] = e[n];
1051
- return o;
1052
- }
1053
- var Zn = function(t, n) {
1054
- for (var o = t.__vccOpts || t, l = Yn(n), i; !(i = l()).done; ) {
1055
- var a = i.value, s = a[0], r = a[1];
1056
- o[s] = r;
1057
- }
1058
- return o;
1059
- }, qn = R({
1060
- components: {
1061
- IconClose: ve(),
1062
- IconFullscreen: ft(),
1063
- IconMinscreen: vt()
1064
- },
1065
- emits: [
1066
- "update:visible",
1067
- "change",
1068
- "before-close",
1069
- "open",
1070
- "close",
1071
- "opened",
1072
- "confirm",
1073
- "cancel",
1074
- "closed",
1075
- "drag-start",
1076
- "drag-move",
1077
- "drag-end",
1078
- // tiny 新增
1079
- "resize"
1080
- ],
1081
- props: [].concat(me, ["resize", "isFormReset", "visible", "title", "modal", "modalAppendToBody", "appendToBody", "lockScroll", "closeOnClickModal", "closeOnPressEscape", "showClose", "width", "fullscreen", "top", "center", "draggable", "dragOutsideWindow", "showHeader", "rightSlide", "destroyOnClose", "dialogClass", "beforeClose", "maxHeight", "dialogTransition", "customStyle", "noAnimation"]),
1082
- model: {
1083
- prop: "visible",
1084
- event: "update:visible"
1085
- },
1086
- provide: function() {
1087
- return {
1088
- dialog: this
1089
- };
1090
- },
1091
- setup: function(t, n) {
1092
- return ae({
1093
- props: t,
1094
- context: n,
1095
- renderless: Xn,
1096
- api: Un
1097
- });
1098
- }
1099
- }), Qn = ["data-dialog-box-draggable"], eo = {
1100
- class: "tiny-dialog-box__title"
1101
- }, to = {
1102
- class: "tiny-dialog-box__btn-tools"
1103
- }, no = {
1104
- class: "tiny-dialog-box__body"
1105
- }, oo = {
1106
- key: 1,
1107
- ref: "footer",
1108
- class: "tiny-dialog-box__footer"
1109
- };
1110
- function lo(e, t, n, o, l, i) {
1111
- var a = k("icon-fullscreen"), s = k("icon-minscreen"), r = k("icon-close");
1112
- return p(), I(q, {
1113
- duration: e.noAnimation ? 0 : void 0,
1114
- name: e.state.animationName,
1115
- onAfterEnter: e.afterEnter,
1116
- onAfterLeave: e.afterLeave,
1117
- persisted: ""
1118
- }, {
1119
- default: B(function() {
1120
- return [Q(b(
1121
- "div",
1122
- {
1123
- class: W(["tiny-dialog-box__wrapper", e.dialogClass]),
1124
- onClick: t[4] || (t[4] = ee(function() {
1125
- return e.handleWrapperClick && e.handleWrapperClick.apply(e, arguments);
1126
- }, ["self"])),
1127
- onMouseup: t[5] || (t[5] = function() {
1128
- return e.useMouseEventUp && e.useMouseEventUp.apply(e, arguments);
1129
- }),
1130
- onMousedown: t[6] || (t[6] = function() {
1131
- return e.useMouseEventDown && e.useMouseEventDown.apply(e, arguments);
1132
- })
1133
- },
1134
- [L(q, {
1135
- name: e.dialogTransition
1136
- }, {
1137
- default: B(function() {
1138
- return [!e.destroyOnClose || e.visible ? Q((p(), m("div", {
1139
- ref: "dialog",
1140
- class: W([[{
1141
- "is-fullscreen": e.state.isFull,
1142
- "is-center": e.center,
1143
- "is-right-slide": e.rightSlide
1144
- }], "tiny-dialog-box"]),
1145
- style: ke(e.state.style),
1146
- "data-tag": "tiny-dialog-box",
1147
- "data-dialog-box-draggable": e.draggable,
1148
- key: e.state.key
1149
- }, [e.showHeader ? (p(), m(
1150
- "div",
1151
- {
1152
- key: 0,
1153
- ref: "header",
1154
- class: "tiny-dialog-box__header",
1155
- onMousedown: t[3] || (t[3] = function() {
1156
- return e.handleDrag && e.handleDrag.apply(e, arguments);
1157
- })
1158
- },
1159
- [D(e.$slots, "title", {}, function() {
1160
- return [b(
1161
- "span",
1162
- eo,
1163
- O(e.title),
1164
- 1
1165
- /* TEXT */
1166
- )];
1167
- }), b("div", to, [e.resize && !e.state.isFull ? (p(), m("button", {
1168
- key: 0,
1169
- type: "button",
1170
- class: "tiny-dialog-box__headerbtn",
1171
- "aria-label": "Resize",
1172
- onClick: t[0] || (t[0] = function(u) {
1173
- return e.toggleFullScreen(!0);
1174
- })
1175
- }, [L(a, {
1176
- class: "tiny-svg-size tiny-dialog-box__resize"
1177
- })])) : h("v-if", !0), e.resize && e.state.isFull ? (p(), m("button", {
1178
- key: 1,
1179
- type: "button",
1180
- class: "tiny-dialog-box__headerbtn",
1181
- "aria-label": "Resize",
1182
- onClick: t[1] || (t[1] = function(u) {
1183
- return e.toggleFullScreen(!1);
1184
- })
1185
- }, [L(s, {
1186
- class: "tiny-svg-size tiny-dialog-box__resize"
1187
- })])) : h("v-if", !0), e.showClose ? (p(), m("button", {
1188
- key: 2,
1189
- type: "button",
1190
- class: "tiny-dialog-box__headerbtn",
1191
- "aria-label": "Close",
1192
- onClick: t[2] || (t[2] = function(u) {
1193
- return e.handleClose("close", u);
1194
- })
1195
- }, [L(r, {
1196
- class: "tiny-svg-size tiny-dialog-box__close"
1197
- })])) : h("v-if", !0)])],
1198
- 544
1199
- /* NEED_HYDRATION, NEED_PATCH */
1200
- )) : h("v-if", !0), b("div", no, [D(e.$slots, "default")]), e.slots.footer ? (p(), m(
1201
- "div",
1202
- oo,
1203
- [D(e.$slots, "footer", {
1204
- beforeClose: e.beforeClose
1205
- })],
1206
- 512
1207
- /* NEED_PATCH */
1208
- )) : h("v-if", !0)], 14, Qn)), [[se, e.visible]]) : h("v-if", !0)];
1209
- }),
1210
- _: 3
1211
- /* FORWARDED */
1212
- }, 8, ["name"])],
1213
- 34
1214
- /* CLASS, NEED_HYDRATION */
1215
- ), [[se, e.visible]])];
1216
- }),
1217
- _: 3
1218
- /* FORWARDED */
1219
- }, 8, ["duration", "name", "onAfterEnter", "onAfterLeave"]);
1220
- }
1221
- var J = /* @__PURE__ */ Zn(qn, [["render", lo]]);
1222
- function ne() {
1223
- return ne = Object.assign ? Object.assign.bind() : function(e) {
1224
- for (var t = 1; t < arguments.length; t++) {
1225
- var n = arguments[t];
1226
- for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
1227
- }
1228
- return e;
1229
- }, ne.apply(null, arguments);
1230
- }
1231
- var io = function(t) {
1232
- var n, o = typeof process == "object" ? (n = process.env) == null ? void 0 : n.TINY_MODE : null;
1233
- return J;
1234
- }, ao = {
1235
- DIALOG_SLIDER_RIGHT: "dialog-slideRight",
1236
- DIALOG_FADE: "dialog-fade",
1237
- SELECT_DROPDOWN: H + "SelectDropdown",
1238
- DROPDOWN_MENU: H + "DropdownMenu",
1239
- DIALOG_BOX_CLASS: "div.tiny-dialog-box",
1240
- PC_SCROLL_LOCK_CLASS: "dialog-box__scroll-lock",
1241
- MOBILE_SCROLL_LOCK_CLASS: "mobile-dialog-box__scroll-lock",
1242
- DIALOG_BOX_DATA_TAG: "tiny-dialog-box",
1243
- Mode: "pc",
1244
- SCROLL_LOCK_CLASS: function(t) {
1245
- return t === this.Mode ? this.PC_SCROLL_LOCK_CLASS : this.MOBILE_SCROLL_LOCK_CLASS;
1246
- }
1247
- }, ro = ne({}, he, {
1248
- _constants: {
1249
- type: Object,
1250
- default: function() {
1251
- return ao;
1252
- }
1253
- },
1254
- appendToBody: {
1255
- type: Boolean,
1256
- default: function() {
1257
- return !1;
1258
- }
1259
- },
1260
- beforeClose: Function,
1261
- center: {
1262
- type: Boolean,
1263
- default: function() {
1264
- return !1;
1265
- }
1266
- },
1267
- closeOnClickModal: {
1268
- type: Boolean,
1269
- default: function() {
1270
- return !0;
1271
- }
1272
- },
1273
- closeOnPressEscape: {
1274
- type: Boolean,
1275
- default: function() {
1276
- return !0;
1277
- }
1278
- },
1279
- destroyOnClose: {
1280
- type: Boolean,
1281
- default: function() {
1282
- return !1;
1283
- }
1284
- },
1285
- dialogClass: {
1286
- type: String,
1287
- default: function() {
1288
- return "";
1289
- }
1290
- },
1291
- draggable: {
1292
- type: Boolean,
1293
- default: function() {
1294
- return !1;
1295
- }
1296
- },
1297
- dragOutsideWindow: {
1298
- type: Boolean,
1299
- default: function() {
1300
- return !1;
1301
- }
1302
- },
1303
- fullscreen: {
1304
- type: Boolean,
1305
- default: function() {
1306
- return !1;
1307
- }
1308
- },
1309
- isFormReset: {
1310
- type: Boolean,
1311
- default: function() {
1312
- return !0;
1313
- }
1314
- },
1315
- lockScroll: {
1316
- type: Boolean,
1317
- default: function() {
1318
- return !0;
1319
- }
1320
- },
1321
- modal: {
1322
- type: Boolean,
1323
- default: function() {
1324
- return !0;
1325
- }
1326
- },
1327
- modalAppendToBody: {
1328
- type: Boolean,
1329
- default: function() {
1330
- return !0;
1331
- }
1332
- },
1333
- resize: {
1334
- type: Boolean,
1335
- default: function() {
1336
- return !1;
1337
- }
1338
- },
1339
- rightSlide: {
1340
- type: Boolean,
1341
- default: function() {
1342
- return !1;
1343
- }
1344
- },
1345
- showClose: {
1346
- type: Boolean,
1347
- default: function() {
1348
- return !0;
1349
- }
1350
- },
1351
- showHeader: {
1352
- type: Boolean,
1353
- default: function() {
1354
- return !0;
1355
- }
1356
- },
1357
- title: {
1358
- type: String,
1359
- default: function() {
1360
- return "";
1361
- }
1362
- },
1363
- top: String,
1364
- visible: {
1365
- type: Boolean,
1366
- default: function() {
1367
- return !1;
1368
- }
1369
- },
1370
- width: {
1371
- type: String,
1372
- default: function() {
1373
- return "500px";
1374
- }
1375
- },
1376
- maxHeight: {
1377
- type: String,
1378
- default: function() {
1379
- return "";
1380
- }
1381
- },
1382
- dialogTransition: {
1383
- type: String,
1384
- default: ""
1385
- },
1386
- noAnimation: {
1387
- type: Boolean,
1388
- default: !1
1389
- },
1390
- customStyle: {
1391
- type: Object,
1392
- default: function() {
1393
- return {};
1394
- }
1395
- }
1396
- }), P = R({
1397
- name: H + "DialogBox",
1398
- model: {
1399
- prop: "visible",
1400
- event: "update:visible"
1401
- },
1402
- props: ro,
1403
- setup: function(t, n) {
1404
- return ge({
1405
- props: t,
1406
- context: n,
1407
- template: io
1408
- });
1409
- }
1410
- }), so = "3.undefined";
1411
- P.install = function(e) {
1412
- e.component(P.name, P);
1413
- };
1414
- P.version = so;
1415
- function uo(e, t) {
1416
- var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1417
- if (n) return (n = n.call(e)).next.bind(n);
1418
- if (Array.isArray(e) || (n = po(e)) || t) {
1419
- n && (e = n);
1420
- var o = 0;
1421
- return function() {
1422
- return o >= e.length ? { done: !0 } : { done: !1, value: e[o++] };
1423
- };
1424
- }
1425
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1426
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1427
- }
1428
- function po(e, t) {
1429
- if (e) {
1430
- if (typeof e == "string") return ce(e, t);
1431
- var n = {}.toString.call(e).slice(8, -1);
1432
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ce(e, t) : void 0;
1433
- }
1434
- }
1435
- function ce(e, t) {
1436
- (t == null || t > e.length) && (t = e.length);
1437
- for (var n = 0, o = Array(t); n < t; n++) o[n] = e[n];
1438
- return o;
1439
- }
1440
- var Ce = function(t, n) {
1441
- for (var o = t.__vccOpts || t, l = uo(n), i; !(i = l()).done; ) {
1442
- var a = i.value, s = a[0], r = a[1];
1443
- o[s] = r;
1444
- }
1445
- return o;
1446
- }, fo = R({
1447
- name: H + "TallStorage",
1448
- inheritAttrs: !1,
1449
- props: {
1450
- isMemoryStorage: Boolean,
1451
- localstorageData: Array
1452
- },
1453
- setup: function(t, n) {
1454
- return ae({
1455
- props: t,
1456
- context: n,
1457
- renderless: Cn,
1458
- api: wn
1459
- });
1460
- }
1461
- }), co = {
1462
- class: "tiny-storage-list-style"
1463
- }, yo = ["onClick"];
1464
- function mo(e, t, n, o, l, i) {
1465
- return p(), m(
1466
- "div",
1467
- {
1468
- class: "tiny-tall-storage",
1469
- onMousedown: t[1] || (t[1] = function() {
1470
- return e.mousedown && e.mousedown.apply(e, arguments);
1471
- })
1472
- },
1473
- [b("div", co, [b(
1474
- "ul",
1475
- {
1476
- onKeydown: t[0] || (t[0] = Le(function() {
1477
- return e.keydownEvent && e.keydownEvent.apply(e, arguments);
1478
- }, ["enter"])),
1479
- class: "tiny-storage-list"
1480
- },
1481
- [(p(!0), m(
1482
- te,
1483
- null,
1484
- Ae(e.localstorageData, function(a) {
1485
- return p(), m("li", {
1486
- key: a,
1487
- class: W(["tiny-storage-item", [e.state.hoverValue === a ? "item-hover" : ""]]),
1488
- onClick: function(r) {
1489
- return e.selectItem(a);
1490
- }
1491
- }, O(a), 11, yo);
1492
- }),
1493
- 128
1494
- /* KEYED_FRAGMENT */
1495
- ))],
1496
- 32
1497
- /* NEED_HYDRATION */
1498
- )])],
1499
- 32
1500
- /* NEED_HYDRATION */
1501
- );
1502
- }
1503
- var go = /* @__PURE__ */ Ce(fo, [["render", mo]]), ho = R({
1504
- inheritAttrs: !1,
1505
- // 勿删,兼容灵雀特殊场景,MR#1861
1506
- emits: ["update:modelValue", "change", "clear", "focus", "blur", "keyup", "keydown", "paste", "mouseenter", "mouseleave", "click", "input"],
1507
- directives: Te({
1508
- Clickoutside: Sn
1509
- }),
1510
- components: {
1511
- IconClose: ve(),
1512
- IconEyeopen: at(),
1513
- IconEyeclose: Qe(),
1514
- TinyTallStorage: go,
1515
- TinyTooltip: _e,
1516
- TinyButton: ze,
1517
- TinyDialogBox: P
1518
- },
1519
- props: [].concat(me, ["name", "size", "form", "type", "mask", "label", "modelValue", "height", "resize", "counter", "autosize", "disabled", "readonly", "tabindex", "clearable", "suffixIcon", "prefixIcon", "autocomplete", "showPassword", "memorySpace", "validateEvent", "showWordLimit", "displayOnly", "displayOnlyContent", "frontClearIcon", "showEmptyValue", "hoverExpand", "popupMore", "showTooltip", "inputBoxType"]),
1520
- setup: function(t, n) {
1521
- return ae({
1522
- props: t,
1523
- context: n,
1524
- renderless: vn,
1525
- api: cn
1526
- });
1527
- }
1528
- }), vo = {
1529
- key: 0,
1530
- class: "tiny-input-group__prepend",
1531
- ref: "prepend"
1532
- }, bo = {
1533
- class: "tiny-input-display-only"
1534
- }, So = {
1535
- key: 0,
1536
- class: "tiny-input-display-only__content"
1537
- }, wo = {
1538
- key: 1,
1539
- class: "tiny-input-display-only__mask"
1540
- }, Co = {
1541
- class: "tiny-input-display-only__mask-text"
1542
- }, Oo = {
1543
- key: 2,
1544
- class: "tiny-input-display-only__content"
1545
- }, Io = ["name", "tabindex", "type", "disabled", "readonly", "unselectable", "autocomplete", "aria-label"], Mo = {
1546
- key: 2,
1547
- class: "tiny-input__prefix",
1548
- ref: "prefix"
1549
- }, $o = {
1550
- key: 0,
1551
- class: "tiny-input__suffix",
1552
- ref: "suffix"
1553
- }, Vo = {
1554
- class: "tiny-input__suffix-inner"
1555
- }, Do = {
1556
- key: 5,
1557
- class: "tiny-input__count"
1558
- }, To = {
1559
- class: "tiny-input__count-inner"
1560
- }, Bo = {
1561
- class: "tiny-input__count-text-length"
1562
- }, ko = {
1563
- class: "tiny-input__count-upper-limit"
1564
- }, Eo = {
1565
- key: 3,
1566
- class: "tiny-input-group__append",
1567
- ref: "append"
1568
- }, Lo = {
1569
- key: 4,
1570
- class: "tiny-input-group__panel",
1571
- ref: "panel"
1572
- }, Ao = {
1573
- class: "tiny-textarea-display-only__wrap"
1574
- }, _o = {
1575
- ref: "textBox",
1576
- class: "tiny-textarea-display-only__content text-box"
1577
- }, zo = ["tabindex", "disabled", "readonly", "unselectable", "autocomplete", "aria-label"], No = {
1578
- key: 2,
1579
- class: "tiny-input__count"
1580
- }, Po = {
1581
- class: "tiny-input__count-inner"
1582
- }, xo = {
1583
- class: "tiny-input__count-text-length"
1584
- }, Fo = {
1585
- class: "tiny-input__count-upper-limit"
1586
- };
1587
- function Ho(e, t, n, o, l, i) {
1588
- var a = k("tiny-tooltip"), s = k("tiny-tall-storage"), r = k("icon-close"), u = k("tiny-button"), f = k("tiny-dialog-box"), c = Ee("clickoutside");
1589
- return p(), m(
1590
- "div",
1591
- K(e.a(e.$attrs, ["class"]), {
1592
- class: [e.$attrs.class, e.type === "textarea" ? "tiny-textarea" : "tiny-input", e.state.inputSize ? "tiny-input-" + e.state.inputSize : "", {
1593
- "is-disabled": e.state.inputDisabled,
1594
- "is-exceed": e.state.inputExceed,
1595
- "tiny-input-group": e.slots.prepend || e.slots.append,
1596
- "tiny-input-group-append": e.slots.append,
1597
- "tiny-input-group-prepend": e.slots.prepend,
1598
- "tiny-input-prefix": e.slots.prefix || e.prefixIcon,
1599
- "tiny-input-suffix": e.slots.suffix || e.suffixIcon || e.clearable || e.showPassword || e.mask && e.state.inputDisabled,
1600
- "tiny-input-word-limit": e.state.isWordLimitVisible,
1601
- "is-display-only": e.state.isDisplayOnly,
1602
- "tiny-input-underline": e.inputBoxType === "underline"
1603
- }],
1604
- onMouseenter: t[32] || (t[32] = function(d) {
1605
- e.state.hovering = !0, e.$emit("mouseenter", d);
1606
- }),
1607
- onMouseleave: t[33] || (t[33] = function(d) {
1608
- e.state.hovering = !1, e.$emit("mouseleave", d);
1609
- }),
1610
- onClick: t[34] || (t[34] = function(d) {
1611
- return e.$emit("click", d);
1612
- })
1613
- }),
1614
- [e.type !== "textarea" ? (p(), m(
1615
- te,
1616
- {
1617
- key: 0
1618
- },
1619
- [e.slots.prepend && !e.state.isDisplayOnly ? (p(), m(
1620
- "div",
1621
- vo,
1622
- [D(e.$slots, "prepend")],
1623
- 512
1624
- /* NEED_PATCH */
1625
- )) : h("v-if", !0), b("span", bo, [e.state.isDisplayOnly ? (p(), I(a, {
1626
- key: 0,
1627
- disabled: !e.showTooltip,
1628
- effect: "light",
1629
- content: e.state.displayOnlyTooltip,
1630
- placement: "top",
1631
- "popper-class": e.state.tooltipConfig.popperClass || "",
1632
- onMouseenter: e.handleEnterDisplayOnlyContent
1633
- }, {
1634
- default: B(function() {
1635
- return [e.type === "password" ? (p(), m(
1636
- "span",
1637
- So,
1638
- O(e.state.hiddenPassword),
1639
- 1
1640
- /* TEXT */
1641
- )) : e.mask ? (p(), m("span", wo, [b(
1642
- "span",
1643
- Co,
1644
- O(e.state.displayedMaskValue),
1645
- 1
1646
- /* TEXT */
1647
- ), (p(), I(N(e.state.maskValueVisible ? "icon-eyeopen" : "icon-eyeclose"), {
1648
- onClick: t[0] || (t[0] = function(d) {
1649
- return e.state.maskValueVisible = !e.state.maskValueVisible;
1650
- })
1651
- }))])) : (p(), m(
1652
- "span",
1653
- Oo,
1654
- O(e.state.displayOnlyText),
1655
- 1
1656
- /* TEXT */
1657
- ))];
1658
- }),
1659
- _: 1
1660
- /* STABLE */
1661
- }, 8, ["disabled", "content", "popper-class", "onMouseenter"])) : h("v-if", !0), e.type !== "textarea" ? (p(), m("input", K({
1662
- key: 1,
1663
- ref: "input",
1664
- name: e.name,
1665
- "data-tag": "tiny-input-inner"
1666
- }, e.a(e.$attrs, ["type", "class", "style", "^on[A-Z]", "id"]), {
1667
- class: ["tiny-input__inner", e.mask && e.state.inputDisabled && !e.state.maskValueVisible && "tiny-input__mask"],
1668
- tabindex: e.tabindex,
1669
- type: e.showPassword ? e.state.passwordVisible ? "text" : "password" : e.type,
1670
- disabled: e.state.inputDisabled,
1671
- readonly: e.readonly,
1672
- unselectable: e.readonly ? "on" : "off",
1673
- autocomplete: e.autocomplete,
1674
- onCompositionend: t[1] || (t[1] = function() {
1675
- return e.handleCompositionEnd && e.handleCompositionEnd.apply(e, arguments);
1676
- }),
1677
- onCompositionupdate: t[2] || (t[2] = function() {
1678
- return e.handleCompositionUpdate && e.handleCompositionUpdate.apply(e, arguments);
1679
- }),
1680
- onCompositionstart: t[3] || (t[3] = function() {
1681
- return e.handleCompositionStart && e.handleCompositionStart.apply(e, arguments);
1682
- }),
1683
- onBlur: t[4] || (t[4] = function() {
1684
- return e.handleBlur && e.handleBlur.apply(e, arguments);
1685
- }),
1686
- onFocus: t[5] || (t[5] = function() {
1687
- return e.handleFocus && e.handleFocus.apply(e, arguments);
1688
- }),
1689
- onInput: t[6] || (t[6] = function() {
1690
- return e.handleInput && e.handleInput.apply(e, arguments);
1691
- }),
1692
- onChange: t[7] || (t[7] = function() {
1693
- return e.handleChange && e.handleChange.apply(e, arguments);
1694
- }),
1695
- "aria-label": e.label,
1696
- onKeyup: t[8] || (t[8] = function(d) {
1697
- return e.$emit("keyup", d);
1698
- }),
1699
- onKeydown: t[9] || (t[9] = function(d) {
1700
- return e.$emit("keydown", d);
1701
- }),
1702
- onPaste: t[10] || (t[10] = function(d) {
1703
- return e.$emit("paste", d);
1704
- })
1705
- }), null, 16, Io)) : h("v-if", !0)]), e.isMemoryStorage ? (p(), I(s, {
1706
- key: 1,
1707
- name: e.name,
1708
- "localstorage-data": e.storageData,
1709
- "is-memory-storage": e.isMemoryStorage,
1710
- onSelected: e.selectedMemory
1711
- }, null, 8, ["name", "localstorage-data", "is-memory-storage", "onSelected"])) : h("v-if", !0), !e.state.isDisplayOnly && (e.slots.prefix || e.prefixIcon) ? (p(), m(
1712
- "span",
1713
- Mo,
1714
- [D(e.$slots, "prefix"), e.prefixIcon ? (p(), I(N(e.prefixIcon), {
1715
- key: 0,
1716
- class: "tiny-svg-size tiny-input__icon"
1717
- })) : h("v-if", !0)],
1718
- 512
1719
- /* NEED_PATCH */
1720
- )) : h("v-if", !0), b("div", null, [L(q, {
1721
- name: "tiny-transition-icon-out-in"
1722
- }, {
1723
- default: B(function() {
1724
- return [!e.state.isDisplayOnly && e.getSuffixVisible() ? (p(), m(
1725
- "span",
1726
- $o,
1727
- [b("span", Vo, [e.frontClearIcon && e.state.showClear ? (p(), I(r, {
1728
- key: 0,
1729
- class: "tiny-svg-size tiny-input__icon tiny-input__clear",
1730
- onMousedown: t[11] || (t[11] = ee(function() {
1731
- }, ["prevent"])),
1732
- onClick: e.clear
1733
- }, null, 8, ["onClick"])) : h("v-if", !0), !e.state.showClear || !e.state.showPwdVisible || !e.state.isWordLimitVisible ? (p(), m(
1734
- te,
1735
- {
1736
- key: 1
1737
- },
1738
- [D(e.$slots, "suffix"), e.suffixIcon ? (p(), I(N(e.suffixIcon), {
1739
- key: 0,
1740
- class: "tiny-svg-size tiny-input__icon"
1741
- })) : h("v-if", !0)],
1742
- 64
1743
- /* STABLE_FRAGMENT */
1744
- )) : h("v-if", !0), !e.frontClearIcon && e.state.showClear ? (p(), I(r, {
1745
- key: 2,
1746
- class: "tiny-svg-size tiny-input__icon tiny-input__clear",
1747
- onMousedown: t[12] || (t[12] = ee(function() {
1748
- }, ["prevent"])),
1749
- onClick: e.clear
1750
- }, null, 8, ["onClick"])) : h("v-if", !0), e.showPassword ? (p(), I(N(e.state.passwordVisible ? "icon-eyeopen" : "icon-eyeclose"), {
1751
- key: 3,
1752
- class: "tiny-svg-size tiny-input__icon",
1753
- onClick: e.handlePasswordVisible
1754
- }, null, 8, ["onClick"])) : h("v-if", !0), e.mask && e.state.inputDisabled ? (p(), I(N(e.state.maskValueVisible ? "icon-eyeopen" : "icon-eyeclose"), {
1755
- key: 4,
1756
- class: "tiny-svg-size tiny-input__icon",
1757
- onClick: t[13] || (t[13] = function(d) {
1758
- return e.state.maskValueVisible = !e.state.maskValueVisible;
1759
- })
1760
- })) : h("v-if", !0), e.state.isWordLimitVisible ? (p(), m("span", Do, [b("span", To, [b(
1761
- "span",
1762
- Bo,
1763
- O(e.state.showWordLimit ? "" + e.state.textLength : ""),
1764
- 1
1765
- /* TEXT */
1766
- ), b(
1767
- "span",
1768
- ko,
1769
- O(e.state.showWordLimit ? "/" + e.state.upperLimit : e.state.textLength),
1770
- 1
1771
- /* TEXT */
1772
- )])])) : h("v-if", !0)]), e.state.validateState ? (p(), m(
1773
- "i",
1774
- {
1775
- key: 0,
1776
- class: W(["tiny-input__icon", ["tiny-input__validateIcon", e.validateIcon]])
1777
- },
1778
- null,
1779
- 2
1780
- /* CLASS */
1781
- )) : h("v-if", !0)],
1782
- 512
1783
- /* NEED_PATCH */
1784
- )) : h("v-if", !0)];
1785
- }),
1786
- _: 3
1787
- /* FORWARDED */
1788
- })]), e.slots.append && !e.state.isDisplayOnly ? (p(), m(
1789
- "div",
1790
- Eo,
1791
- [D(e.$slots, "append")],
1792
- 512
1793
- /* NEED_PATCH */
1794
- )) : h("v-if", !0), e.slots.panel && !e.state.isDisplayOnly ? (p(), m(
1795
- "div",
1796
- Lo,
1797
- [D(e.$slots, "panel")],
1798
- 512
1799
- /* NEED_PATCH */
1800
- )) : h("v-if", !0)],
1801
- 64
1802
- /* STABLE_FRAGMENT */
1803
- )) : (p(), m(
1804
- "span",
1805
- {
1806
- key: 1,
1807
- class: W(["tiny-textarea-display-only", e.hoverExpand && "tiny-textarea__inner-con"])
1808
- },
1809
- [e.state.isDisplayOnly ? (p(), I(a, {
1810
- key: 0,
1811
- disabled: !e.showTooltip,
1812
- pre: "",
1813
- effect: "light",
1814
- content: e.state.displayOnlyTooltip,
1815
- placement: "top",
1816
- "popper-class": e.state.tooltipConfig.popperClass || "",
1817
- onMouseenter: t[15] || (t[15] = function(d) {
1818
- return e.handleEnterDisplayOnlyContent(d, "textarea");
1819
- })
1820
- }, {
1821
- default: B(function() {
1822
- return [b("div", Ao, [b(
1823
- "span",
1824
- _o,
1825
- [e.state.showMoreBtn ? (p(), m(
1826
- "span",
1827
- {
1828
- key: 0,
1829
- onClick: t[14] || (t[14] = function(d) {
1830
- return e.state.showDisplayOnlyBox = !0;
1831
- }),
1832
- class: "more-btn"
1833
- },
1834
- O(e.t("ui.input.more")) + ">",
1835
- 1
1836
- /* TEXT */
1837
- )) : h("v-if", !0), X(
1838
- O(e.state.displayOnlyText),
1839
- 1
1840
- /* TEXT */
1841
- )],
1842
- 512
1843
- /* NEED_PATCH */
1844
- )])];
1845
- }),
1846
- _: 1
1847
- /* STABLE */
1848
- }, 8, ["disabled", "content", "popper-class"])) : h("v-if", !0), e.state.isDisplayOnly && e.popupMore ? (p(), I(f, {
1849
- key: 1,
1850
- title: e.t("ui.input.detail"),
1851
- visible: e.state.showDisplayOnlyBox,
1852
- "append-to-body": !0,
1853
- "onUpdate:visible": t[17] || (t[17] = function(d) {
1854
- return e.state.showDisplayOnlyBox = d;
1855
- })
1856
- }, {
1857
- footer: B(function() {
1858
- return [L(u, {
1859
- onClick: t[16] || (t[16] = function(d) {
1860
- return e.state.showDisplayOnlyBox = !1;
1861
- })
1862
- }, {
1863
- default: B(function() {
1864
- return [X(
1865
- O(e.t("ui.input.close")),
1866
- 1
1867
- /* TEXT */
1868
- )];
1869
- }),
1870
- _: 1
1871
- /* STABLE */
1872
- })];
1873
- }),
1874
- default: B(function() {
1875
- return [b(
1876
- "pre",
1877
- null,
1878
- O(e.state.displayOnlyText),
1879
- 1
1880
- /* TEXT */
1881
- )];
1882
- }),
1883
- _: 1
1884
- /* STABLE */
1885
- }, 8, ["title", "visible"])) : h("v-if", !0), Q((p(), m("textarea", K({
1886
- ref: "textarea"
1887
- }, e.a(e.$attrs, ["type", "class", "style", "id"]), {
1888
- tabindex: e.tabindex,
1889
- class: ["tiny-textarea__inner", e.hoverExpand && !e.state.enteredTextarea && "tiny-textarea__fix-height"],
1890
- onCompositionstart: t[18] || (t[18] = function() {
1891
- return e.handleCompositionStart && e.handleCompositionStart.apply(e, arguments);
1892
- }),
1893
- onCompositionupdate: t[19] || (t[19] = function() {
1894
- return e.handleCompositionUpdate && e.handleCompositionUpdate.apply(e, arguments);
1895
- }),
1896
- onCompositionend: t[20] || (t[20] = function() {
1897
- return e.handleCompositionEnd && e.handleCompositionEnd.apply(e, arguments);
1898
- }),
1899
- onInput: t[21] || (t[21] = function() {
1900
- return e.handleInput && e.handleInput.apply(e, arguments);
1901
- }),
1902
- disabled: e.state.inputDisabled,
1903
- readonly: e.readonly,
1904
- unselectable: e.readonly ? "on" : "off",
1905
- autocomplete: e.autocomplete,
1906
- style: e.state.textareaStyle,
1907
- onFocus: t[22] || (t[22] = function() {
1908
- return e.handleFocus && e.handleFocus.apply(e, arguments);
1909
- }),
1910
- onBlur: t[23] || (t[23] = function() {
1911
- return e.handleBlur && e.handleBlur.apply(e, arguments);
1912
- }),
1913
- onChange: t[24] || (t[24] = function() {
1914
- return e.handleChange && e.handleChange.apply(e, arguments);
1915
- }),
1916
- onMouseenter: t[25] || (t[25] = function(d) {
1917
- return e.handleEnterTextarea(d);
1918
- }),
1919
- onMouseleave: t[26] || (t[26] = function(d) {
1920
- return e.handleLeaveTextarea(d);
1921
- }),
1922
- onMousedown: t[27] || (t[27] = function(d) {
1923
- return e.handleTextareaMouseDown();
1924
- }),
1925
- onMouseup: t[28] || (t[28] = function(d) {
1926
- return e.handleTextareaMouseUp();
1927
- }),
1928
- "aria-label": e.label,
1929
- onKeyup: t[29] || (t[29] = function(d) {
1930
- return e.$emit("keyup", d);
1931
- }),
1932
- onKeydown: t[30] || (t[30] = function(d) {
1933
- return e.$emit("keydown", d);
1934
- }),
1935
- onPaste: t[31] || (t[31] = function(d) {
1936
- return e.$emit("paste", d);
1937
- })
1938
- }), [X(`
1939
- `)], 16, zo)), [[c, function() {
1940
- return e.handleTextareaMouseUp(!0);
1941
- }, void 0, {
1942
- mouseup: !0
1943
- }]])],
1944
- 2
1945
- /* CLASS */
1946
- )), e.state.isWordLimitVisible && e.type === "textarea" ? (p(), m("span", No, [b("span", Po, [b(
1947
- "span",
1948
- xo,
1949
- O(e.state.showWordLimit ? "" + e.state.textLength : ""),
1950
- 1
1951
- /* TEXT */
1952
- ), b(
1953
- "span",
1954
- Fo,
1955
- O(e.state.showWordLimit ? "/" + e.state.upperLimit : e.state.textLength),
1956
- 1
1957
- /* TEXT */
1958
- )])])) : h("v-if", !0), D(e.$slots, "default")],
1959
- 16
1960
- /* FULL_PROPS */
1961
- );
1962
- }
1963
- var Z = /* @__PURE__ */ Ce(ho, [["render", Ho]]);
1964
- function oe() {
1965
- return oe = Object.assign ? Object.assign.bind() : function(e) {
1966
- for (var t = 1; t < arguments.length; t++) {
1967
- var n = arguments[t];
1968
- for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
1969
- }
1970
- return e;
1971
- }, oe.apply(null, arguments);
1972
- }
1973
- var Wo = function(t) {
1974
- var n, o = typeof process == "object" ? (n = process.env) == null ? void 0 : n.TINY_MODE : null;
1975
- return Z;
1976
- }, Uo = {
1977
- INPUT_PC: "tiny-input__",
1978
- INPUTGROUP_PC: "tiny-input-group__",
1979
- INPUT_MOBILE: "tiny-mobile-input__",
1980
- INPUTGROUP_MOBILE: "tiny-mobile-input-group__",
1981
- Mode: "pc",
1982
- inputMode: function(t) {
1983
- return t === this.Mode ? this.INPUT_PC : this.INPUT_MOBILE;
1984
- },
1985
- inputGroupMode: function(t) {
1986
- return t === this.Mode ? this.INPUTGROUP_PC : this.INPUTGROUP_MOBILE;
1987
- },
1988
- VALIDATE_ICON: {
1989
- Validating: "tiny-icon-loading",
1990
- Success: "tiny-icon-circle-check",
1991
- Error: "tiny-icon-circle-close"
1992
- },
1993
- COMPONENT_NAME: {
1994
- FormItem: "FormItem"
1995
- },
1996
- MASKSYMBOL: "******",
1997
- TEXTAREA_HEIGHT_MOBILE: 108
1998
- }, Ro = oe({}, he, {
1999
- _constants: {
2000
- type: Object,
2001
- default: function() {
2002
- return Uo;
2003
- }
2004
- },
2005
- name: String,
2006
- size: String,
2007
- form: String,
2008
- label: String,
2009
- height: Number,
2010
- resize: String,
2011
- tabindex: {
2012
- type: String,
2013
- default: "1"
2014
- },
2015
- disabled: Boolean,
2016
- readonly: Boolean,
2017
- hoverExpand: Boolean,
2018
- mask: Boolean,
2019
- suffixIcon: [Object, String],
2020
- prefixIcon: [Object, String],
2021
- modelValue: [String, Number],
2022
- type: {
2023
- type: String,
2024
- default: "text"
2025
- },
2026
- memorySpace: {
2027
- type: Number,
2028
- default: 5
2029
- },
2030
- vertical: {
2031
- type: Boolean,
2032
- default: !1
2033
- },
2034
- selectMenu: {
2035
- type: Array,
2036
- default: function() {
2037
- return [];
2038
- }
2039
- },
2040
- ellipsis: {
2041
- type: Boolean,
2042
- default: !1
2043
- },
2044
- contentStyle: {
2045
- type: Object,
2046
- default: function() {
2047
- return {};
2048
- }
2049
- },
2050
- isSelect: {
2051
- type: Boolean,
2052
- default: !1
2053
- },
2054
- tips: String,
2055
- counter: {
2056
- type: Boolean,
2057
- default: !1
2058
- },
2059
- autosize: {
2060
- type: [Boolean, Object],
2061
- default: !1
2062
- },
2063
- clearable: {
2064
- type: Boolean,
2065
- default: !1
2066
- },
2067
- autocomplete: {
2068
- type: String,
2069
- default: "off"
2070
- },
2071
- showPassword: {
2072
- type: Boolean,
2073
- default: !1
2074
- },
2075
- showWordLimit: {
2076
- type: Boolean,
2077
- default: !1
2078
- },
2079
- showTitle: {
2080
- type: Boolean,
2081
- default: !1
2082
- },
2083
- validateEvent: {
2084
- type: Boolean,
2085
- default: !0
2086
- },
2087
- popupMore: {
2088
- type: Boolean,
2089
- default: !1
2090
- },
2091
- // mobile特有属性
2092
- textareaTitle: {
2093
- type: String,
2094
- default: ""
2095
- },
2096
- displayOnly: {
2097
- type: Boolean,
2098
- default: !1
2099
- },
2100
- displayOnlyContent: {
2101
- type: String,
2102
- default: ""
2103
- },
2104
- customClass: {
2105
- type: String,
2106
- default: ""
2107
- },
2108
- frontClearIcon: {
2109
- type: Boolean,
2110
- default: !1
2111
- },
2112
- showEmptyValue: {
2113
- type: Boolean,
2114
- default: void 0
2115
- },
2116
- textAlign: {
2117
- type: String,
2118
- default: "left"
2119
- },
2120
- width: {
2121
- type: [String, Number]
2122
- },
2123
- showTooltip: {
2124
- type: Boolean,
2125
- default: !0
2126
- },
2127
- /** 输入框的边框模式,当值为underline时,只显示一条底部直线 */
2128
- inputBoxType: {
2129
- type: String,
2130
- default: "normal",
2131
- validator: function(t) {
2132
- return ["normal", "underline"].includes(t);
2133
- }
2134
- }
2135
- }), x = R({
2136
- name: H + "Input",
2137
- inheritAttrs: !1,
2138
- props: Ro,
2139
- setup: function(t, n) {
2140
- return ge({
2141
- props: t,
2142
- context: n,
2143
- template: Wo
2144
- });
2145
- }
2146
- }), jo = "3.undefined";
2147
- x.model = {
2148
- prop: "modelValue",
2149
- event: "update:modelValue"
2150
- };
2151
- x.install = function(e) {
2152
- e.component(x.name, x);
2153
- };
2154
- x.version = jo;
2155
- export {
2156
- x as I
2157
- };