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