@ptlm-azulejo/tooltip 1.0.0-alpha.227 → 1.0.0-alpha.229
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/index.js +64 -33
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { computed as D, createCommentVNode as He, createElementBlock as Se, createElementVNode as te, defineComponent as Ze, nextTick as er, normalizeClass as Y, onBeforeUnmount as rr, onMounted as or, openBlock as Ae, ref as J, renderSlot as tr, toDisplayString as sr, watch as ar } from "vue";
|
|
2
2
|
function Le(e) {
|
|
3
3
|
var r, o, t = "";
|
|
4
|
-
if (typeof e == "string" || typeof e == "number")
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
if (typeof e == "string" || typeof e == "number")
|
|
5
|
+
t += e;
|
|
6
|
+
else if (typeof e == "object")
|
|
7
|
+
if (Array.isArray(e)) {
|
|
8
|
+
var a = e.length;
|
|
9
|
+
for (r = 0; r < a; r++)
|
|
10
|
+
e[r] && (o = Le(e[r])) && (t && (t += " "), t += o);
|
|
11
|
+
} else
|
|
12
|
+
for (o in e)
|
|
13
|
+
e[o] && (t && (t += " "), t += o);
|
|
9
14
|
return t;
|
|
10
15
|
}
|
|
11
16
|
function nr() {
|
|
12
|
-
for (var e, r, o = 0, t = "", a = arguments.length; o < a; o++)
|
|
17
|
+
for (var e, r, o = 0, t = "", a = arguments.length; o < a; o++)
|
|
18
|
+
(e = arguments[o]) && (r = Le(e)) && (t && (t += " "), t += r);
|
|
13
19
|
return t;
|
|
14
20
|
}
|
|
15
21
|
function H(e) {
|
|
@@ -21,11 +27,13 @@ function H(e) {
|
|
|
21
27
|
}, H(e);
|
|
22
28
|
}
|
|
23
29
|
function ir(e, r) {
|
|
24
|
-
if (H(e) != "object" || !e)
|
|
30
|
+
if (H(e) != "object" || !e)
|
|
31
|
+
return e;
|
|
25
32
|
var o = e[Symbol.toPrimitive];
|
|
26
33
|
if (o !== void 0) {
|
|
27
34
|
var t = o.call(e, r || "default");
|
|
28
|
-
if (H(t) != "object")
|
|
35
|
+
if (H(t) != "object")
|
|
36
|
+
return t;
|
|
29
37
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
30
38
|
}
|
|
31
39
|
return (r === "string" ? String : Number)(e);
|
|
@@ -65,8 +73,10 @@ function dr(e) {
|
|
|
65
73
|
}
|
|
66
74
|
var pr = (e, r) => {
|
|
67
75
|
const o = new Array(e.length + r.length);
|
|
68
|
-
for (let t = 0; t < e.length; t++)
|
|
69
|
-
|
|
76
|
+
for (let t = 0; t < e.length; t++)
|
|
77
|
+
o[t] = e[t];
|
|
78
|
+
for (let t = 0; t < r.length; t++)
|
|
79
|
+
o[e.length + t] = r[t];
|
|
70
80
|
return o;
|
|
71
81
|
}, ur = (e, r) => ({
|
|
72
82
|
classGroupId: e,
|
|
@@ -79,7 +89,8 @@ var pr = (e, r) => {
|
|
|
79
89
|
const r = gr(e), { conflictingClassGroups: o, conflictingClassGroupModifiers: t } = e;
|
|
80
90
|
return {
|
|
81
91
|
getClassGroupId: (c) => {
|
|
82
|
-
if (c.startsWith("[") && c.endsWith("]"))
|
|
92
|
+
if (c.startsWith("[") && c.endsWith("]"))
|
|
93
|
+
return fr(c);
|
|
83
94
|
const b = c.split(le), u = b[0] === "" && b.length > 1 ? 1 : 0;
|
|
84
95
|
return Ne(b, u, r);
|
|
85
96
|
},
|
|
@@ -92,18 +103,22 @@ var pr = (e, r) => {
|
|
|
92
103
|
}
|
|
93
104
|
};
|
|
94
105
|
}, Ne = (e, r, o) => {
|
|
95
|
-
if (e.length - r === 0)
|
|
106
|
+
if (e.length - r === 0)
|
|
107
|
+
return o.classGroupId;
|
|
96
108
|
const t = e[r], a = o.nextPart.get(t);
|
|
97
109
|
if (a) {
|
|
98
110
|
const u = Ne(e, r + 1, a);
|
|
99
|
-
if (u)
|
|
111
|
+
if (u)
|
|
112
|
+
return u;
|
|
100
113
|
}
|
|
101
114
|
const s = o.validators;
|
|
102
|
-
if (s === null)
|
|
115
|
+
if (s === null)
|
|
116
|
+
return;
|
|
103
117
|
const c = r === 0 ? e.join(le) : e.slice(r).join(le), b = s.length;
|
|
104
118
|
for (let u = 0; u < b; u++) {
|
|
105
119
|
const p = s[u];
|
|
106
|
-
if (p.validator(c))
|
|
120
|
+
if (p.validator(c))
|
|
121
|
+
return p.classGroupId;
|
|
107
122
|
}
|
|
108
123
|
}, fr = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
109
124
|
const r = e.slice(1, -1), o = r.indexOf(":"), t = r.slice(0, o);
|
|
@@ -159,12 +174,13 @@ var pr = (e, r) => {
|
|
|
159
174
|
}
|
|
160
175
|
return o;
|
|
161
176
|
}, kr = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, zr = (e) => {
|
|
162
|
-
if (e < 1)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
177
|
+
if (e < 1)
|
|
178
|
+
return {
|
|
179
|
+
get: () => {
|
|
180
|
+
},
|
|
181
|
+
set: () => {
|
|
182
|
+
}
|
|
183
|
+
};
|
|
168
184
|
let r = 0, o = /* @__PURE__ */ Object.create(null), t = /* @__PURE__ */ Object.create(null);
|
|
169
185
|
const a = (s, c) => {
|
|
170
186
|
o[s] = c, r++, r > e && (r = 0, t = o, o = /* @__PURE__ */ Object.create(null));
|
|
@@ -172,7 +188,8 @@ var pr = (e, r) => {
|
|
|
172
188
|
return {
|
|
173
189
|
get(s) {
|
|
174
190
|
let c = o[s];
|
|
175
|
-
if (c !== void 0)
|
|
191
|
+
if (c !== void 0)
|
|
192
|
+
return c;
|
|
176
193
|
if ((c = t[s]) !== void 0)
|
|
177
194
|
return a(s, c), c;
|
|
178
195
|
},
|
|
@@ -244,7 +261,9 @@ var pr = (e, r) => {
|
|
|
244
261
|
postfixLookupClassGroupIds: Gr(e)
|
|
245
262
|
}, br(e)), Gr = (e) => {
|
|
246
263
|
const r = /* @__PURE__ */ Object.create(null), o = e.postfixLookupClassGroups;
|
|
247
|
-
if (o)
|
|
264
|
+
if (o)
|
|
265
|
+
for (let t = 0; t < o.length; t++)
|
|
266
|
+
r[o[t]] = !0;
|
|
248
267
|
return r;
|
|
249
268
|
}, Mr = /\s+/, Ir = (e, r) => {
|
|
250
269
|
const { parseClassName: o, getClassGroupId: t, getConflictingClassGroupIds: a, sortModifiers: s, postfixLookupClassGroupIds: c } = r, b = [], u = e.trim().split(Mr);
|
|
@@ -260,7 +279,8 @@ var pr = (e, r) => {
|
|
|
260
279
|
w = t(x.substring(0, S));
|
|
261
280
|
const P = w && c[w] ? t(x) : void 0;
|
|
262
281
|
P && P !== w && (w = P, T = !1);
|
|
263
|
-
} else
|
|
282
|
+
} else
|
|
283
|
+
w = t(x);
|
|
264
284
|
if (!w) {
|
|
265
285
|
if (!T) {
|
|
266
286
|
p = f + (p.length > 0 ? " " + p : p);
|
|
@@ -273,7 +293,8 @@ var pr = (e, r) => {
|
|
|
273
293
|
T = !1;
|
|
274
294
|
}
|
|
275
295
|
const W = A.length === 0 ? "" : A.length === 1 ? A[0] : s(A).join(":"), E = V ? W + fe : W, B = E + w;
|
|
276
|
-
if (b.indexOf(B) > -1)
|
|
296
|
+
if (b.indexOf(B) > -1)
|
|
297
|
+
continue;
|
|
277
298
|
b.push(B);
|
|
278
299
|
const L = a(w, T);
|
|
279
300
|
for (let P = 0; P < L.length; ++P) {
|
|
@@ -285,12 +306,15 @@ var pr = (e, r) => {
|
|
|
285
306
|
return p;
|
|
286
307
|
}, Or = (...e) => {
|
|
287
308
|
let r = 0, o, t, a = "";
|
|
288
|
-
for (; r < e.length; )
|
|
309
|
+
for (; r < e.length; )
|
|
310
|
+
(o = e[r++]) && (t = We(o)) && (a && (a += " "), a += t);
|
|
289
311
|
return a;
|
|
290
312
|
}, We = (e) => {
|
|
291
|
-
if (typeof e == "string")
|
|
313
|
+
if (typeof e == "string")
|
|
314
|
+
return e;
|
|
292
315
|
let r, o = "";
|
|
293
|
-
for (let t = 0; t < e.length; t++)
|
|
316
|
+
for (let t = 0; t < e.length; t++)
|
|
317
|
+
e[t] && (r = We(e[t])) && (o && (o += " "), o += r);
|
|
294
318
|
return o;
|
|
295
319
|
}, Oe = (e, ...r) => {
|
|
296
320
|
let o, t, a, s;
|
|
@@ -299,7 +323,8 @@ var pr = (e, r) => {
|
|
|
299
323
|
return o = Pr(p), t = o.cache.get, a = o.cache.set, s = b, b(u);
|
|
300
324
|
}, b = (u) => {
|
|
301
325
|
const p = t(u);
|
|
302
|
-
if (p)
|
|
326
|
+
if (p)
|
|
327
|
+
return p;
|
|
303
328
|
const y = Ir(u, o);
|
|
304
329
|
return a(u, y), y;
|
|
305
330
|
};
|
|
@@ -1791,9 +1816,13 @@ var pr = (e, r) => {
|
|
|
1791
1816
|
}, Zr = (e, { cacheSize: r, prefix: o, experimentalParseClassName: t, extend: a = {}, override: s = {} }) => (X(e, "cacheSize", r), X(e, "prefix", o), X(e, "experimentalParseClassName", t), ne(e.theme, s.theme), ne(e.classGroups, s.classGroups), ne(e.conflictingClassGroups, s.conflictingClassGroups), ne(e.conflictingClassGroupModifiers, s.conflictingClassGroupModifiers), X(e, "postfixLookupClassGroups", s.postfixLookupClassGroups), X(e, "orderSensitiveModifiers", s.orderSensitiveModifiers), ie(e.theme, a.theme), ie(e.classGroups, a.classGroups), ie(e.conflictingClassGroups, a.conflictingClassGroups), ie(e.conflictingClassGroupModifiers, a.conflictingClassGroupModifiers), ge(e, a, "postfixLookupClassGroups"), ge(e, a, "orderSensitiveModifiers"), e), X = (e, r, o) => {
|
|
1792
1817
|
o !== void 0 && (e[r] = o);
|
|
1793
1818
|
}, ne = (e, r) => {
|
|
1794
|
-
if (r)
|
|
1819
|
+
if (r)
|
|
1820
|
+
for (const o in r)
|
|
1821
|
+
X(e, o, r[o]);
|
|
1795
1822
|
}, ie = (e, r) => {
|
|
1796
|
-
if (r)
|
|
1823
|
+
if (r)
|
|
1824
|
+
for (const o in r)
|
|
1825
|
+
ge(e, r, o);
|
|
1797
1826
|
}, ge = (e, r, o) => {
|
|
1798
1827
|
const t = r[o];
|
|
1799
1828
|
t !== void 0 && (e[o] = e[o] ? e[o].concat(t) : t);
|
|
@@ -1928,9 +1957,11 @@ var oo = [
|
|
|
1928
1957
|
const g = p.value;
|
|
1929
1958
|
(g == null ? void 0 : g.getAttribute("aria-describedby")) === s.id && g.removeAttribute("aria-describedby"), p.value = null, y.value = !1;
|
|
1930
1959
|
}, S = () => {
|
|
1931
|
-
if (x(), s.standalone)
|
|
1960
|
+
if (x(), s.standalone)
|
|
1961
|
+
return;
|
|
1932
1962
|
const g = c.value;
|
|
1933
|
-
if (!g)
|
|
1963
|
+
if (!g)
|
|
1964
|
+
return;
|
|
1934
1965
|
const O = g.querySelector(o), G = O && O !== g ? O : g;
|
|
1935
1966
|
G.setAttribute("aria-describedby", s.id), p.value = G, y.value = G === g;
|
|
1936
1967
|
}, T = (g) => {
|