@squirrel-cloud/ui-vue 0.2.45 → 0.2.46
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as z, openBlock as E, createElementVNode as F, createStaticVNode as Ft, defineComponent as R, computed as A, createBlock as L, unref as D, normalizeClass as
|
|
1
|
+
import { createElementBlock as z, openBlock as E, createElementVNode as F, createStaticVNode as Ft, defineComponent as R, computed as A, createBlock as L, unref as D, normalizeClass as P, withCtx as eu, createCommentVNode as V, createTextVNode as $0, resolveDynamicComponent as bu, toDisplayString as su, h as Me, ref as $, normalizeStyle as au, onMounted as de, onBeforeUnmount as je, Transition as pe, withDirectives as Du, renderSlot as j, vShow as Wu, inject as Tu, createVNode as Gu, provide as He, toRef as _u, useSlots as P0, mergeModels as tu, useModel as mu, toRaw as ue, withModifiers as O0, Fragment as Nu, renderList as Ve, mergeProps as i0, shallowRef as Mu, vModelDynamic as St, render as s0, watch as re, getCurrentScope as zt, onScopeDispose as qt, shallowReadonly as Fu, Teleport as Bt, vModelText as Tt } from "vue";
|
|
2
2
|
const U = (u, e) => {
|
|
3
3
|
const t = u.__vccOpts || u;
|
|
4
4
|
for (const [n, r] of e)
|
|
@@ -20,12 +20,12 @@ function Rt(u, e) {
|
|
|
20
20
|
], -1)
|
|
21
21
|
]));
|
|
22
22
|
}
|
|
23
|
-
const It = /* @__PURE__ */ U(Mt, [["render", Rt]]), $t = {},
|
|
23
|
+
const It = /* @__PURE__ */ U(Mt, [["render", Rt]]), $t = {}, Pt = {
|
|
24
24
|
class: "sq-icon",
|
|
25
25
|
"data-icon": "arrow-right"
|
|
26
26
|
};
|
|
27
|
-
function
|
|
28
|
-
return E(), z("span",
|
|
27
|
+
function Ot(u, e) {
|
|
28
|
+
return E(), z("span", Pt, e[0] || (e[0] = [
|
|
29
29
|
F("svg", {
|
|
30
30
|
viewBox: "0 0 48 48",
|
|
31
31
|
version: "1.1",
|
|
@@ -36,7 +36,7 @@ function Pt(u, e) {
|
|
|
36
36
|
], -1)
|
|
37
37
|
]));
|
|
38
38
|
}
|
|
39
|
-
const Nt = /* @__PURE__ */ U($t, [["render",
|
|
39
|
+
const Nt = /* @__PURE__ */ U($t, [["render", Ot]]), jt = {}, Ht = {
|
|
40
40
|
class: "sq-icon",
|
|
41
41
|
"data-icon": "caret-up"
|
|
42
42
|
};
|
|
@@ -280,7 +280,7 @@ const Rn = /* @__PURE__ */ U(Tn, [["render", Ln]]), In = {}, $n = {
|
|
|
280
280
|
class: "sq-icon",
|
|
281
281
|
"data-icon": "warning-filled"
|
|
282
282
|
};
|
|
283
|
-
function
|
|
283
|
+
function Pn(u, e) {
|
|
284
284
|
return E(), z("span", $n, e[0] || (e[0] = [
|
|
285
285
|
F("svg", {
|
|
286
286
|
viewBox: "0 0 48 48",
|
|
@@ -293,7 +293,7 @@ function On(u, e) {
|
|
|
293
293
|
], -1)
|
|
294
294
|
]));
|
|
295
295
|
}
|
|
296
|
-
const V0 = /* @__PURE__ */ U(In, [["render",
|
|
296
|
+
const V0 = /* @__PURE__ */ U(In, [["render", Pn]]), ks = /* @__PURE__ */ R({
|
|
297
297
|
name: "sq-alert",
|
|
298
298
|
__name: "alert",
|
|
299
299
|
props: {
|
|
@@ -324,7 +324,7 @@ const V0 = /* @__PURE__ */ U(In, [["render", On]]), ks = /* @__PURE__ */ R({
|
|
|
324
324
|
}
|
|
325
325
|
});
|
|
326
326
|
return (r, o) => (E(), L(D(Ku), {
|
|
327
|
-
class:
|
|
327
|
+
class: P(["sq-alert", t.value])
|
|
328
328
|
}, {
|
|
329
329
|
default: eu(() => [
|
|
330
330
|
n.value ? (E(), L(bu(n.value), { key: 0 })) : V("", !0),
|
|
@@ -335,7 +335,7 @@ const V0 = /* @__PURE__ */ U(In, [["render", On]]), ks = /* @__PURE__ */ R({
|
|
|
335
335
|
}
|
|
336
336
|
});
|
|
337
337
|
let a0 = 0;
|
|
338
|
-
const
|
|
338
|
+
const On = () => ({
|
|
339
339
|
/**
|
|
340
340
|
* 获取下一个ID
|
|
341
341
|
* @returns 下一个ID
|
|
@@ -714,21 +714,21 @@ function lr(u) {
|
|
|
714
714
|
function fr(u) {
|
|
715
715
|
return u === N.EQUALS || lr(u);
|
|
716
716
|
}
|
|
717
|
-
var
|
|
717
|
+
var O;
|
|
718
718
|
(function(u) {
|
|
719
719
|
u[u.EntityStart = 0] = "EntityStart", u[u.NumericStart = 1] = "NumericStart", u[u.NumericDecimal = 2] = "NumericDecimal", u[u.NumericHex = 3] = "NumericHex", u[u.NamedEntity = 4] = "NamedEntity";
|
|
720
|
-
})(
|
|
720
|
+
})(O || (O = {}));
|
|
721
721
|
var gu;
|
|
722
722
|
(function(u) {
|
|
723
723
|
u[u.Legacy = 0] = "Legacy", u[u.Strict = 1] = "Strict", u[u.Attribute = 2] = "Attribute";
|
|
724
724
|
})(gu || (gu = {}));
|
|
725
725
|
class dr {
|
|
726
726
|
constructor(e, t, n) {
|
|
727
|
-
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state =
|
|
727
|
+
this.decodeTree = e, this.emitCodePoint = t, this.errors = n, this.state = O.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = gu.Strict;
|
|
728
728
|
}
|
|
729
729
|
/** Resets the instance to make it reusable. */
|
|
730
730
|
startEntity(e) {
|
|
731
|
-
this.decodeMode = e, this.state =
|
|
731
|
+
this.decodeMode = e, this.state = O.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
|
|
732
732
|
}
|
|
733
733
|
/**
|
|
734
734
|
* Write an entity to the decoder. This can be called multiple times with partial entities.
|
|
@@ -743,15 +743,15 @@ class dr {
|
|
|
743
743
|
*/
|
|
744
744
|
write(e, t) {
|
|
745
745
|
switch (this.state) {
|
|
746
|
-
case
|
|
747
|
-
return e.charCodeAt(t) === N.NUM ? (this.state =
|
|
748
|
-
case
|
|
746
|
+
case O.EntityStart:
|
|
747
|
+
return e.charCodeAt(t) === N.NUM ? (this.state = O.NumericStart, this.consumed += 1, this.stateNumericStart(e, t + 1)) : (this.state = O.NamedEntity, this.stateNamedEntity(e, t));
|
|
748
|
+
case O.NumericStart:
|
|
749
749
|
return this.stateNumericStart(e, t);
|
|
750
|
-
case
|
|
750
|
+
case O.NumericDecimal:
|
|
751
751
|
return this.stateNumericDecimal(e, t);
|
|
752
|
-
case
|
|
752
|
+
case O.NumericHex:
|
|
753
753
|
return this.stateNumericHex(e, t);
|
|
754
|
-
case
|
|
754
|
+
case O.NamedEntity:
|
|
755
755
|
return this.stateNamedEntity(e, t);
|
|
756
756
|
}
|
|
757
757
|
}
|
|
@@ -765,7 +765,7 @@ class dr {
|
|
|
765
765
|
* @returns The number of characters that were consumed, or -1 if the entity is incomplete.
|
|
766
766
|
*/
|
|
767
767
|
stateNumericStart(e, t) {
|
|
768
|
-
return t >= e.length ? -1 : (e.charCodeAt(t) | sr) === N.LOWER_X ? (this.state =
|
|
768
|
+
return t >= e.length ? -1 : (e.charCodeAt(t) | sr) === N.LOWER_X ? (this.state = O.NumericHex, this.consumed += 1, this.stateNumericHex(e, t + 1)) : (this.state = O.NumericDecimal, this.stateNumericDecimal(e, t));
|
|
769
769
|
}
|
|
770
770
|
addToNumericResult(e, t, n, r) {
|
|
771
771
|
if (t !== n) {
|
|
@@ -896,16 +896,16 @@ class dr {
|
|
|
896
896
|
end() {
|
|
897
897
|
var e;
|
|
898
898
|
switch (this.state) {
|
|
899
|
-
case
|
|
899
|
+
case O.NamedEntity:
|
|
900
900
|
return this.result !== 0 && (this.decodeMode !== gu.Attribute || this.result === this.treeIndex) ? this.emitNotTerminatedNamedEntity() : 0;
|
|
901
901
|
// Otherwise, emit a numeric entity if we have one.
|
|
902
|
-
case
|
|
902
|
+
case O.NumericDecimal:
|
|
903
903
|
return this.emitNumericEntity(0, 2);
|
|
904
|
-
case
|
|
904
|
+
case O.NumericHex:
|
|
905
905
|
return this.emitNumericEntity(0, 3);
|
|
906
|
-
case
|
|
906
|
+
case O.NumericStart:
|
|
907
907
|
return (e = this.errors) === null || e === void 0 || e.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
|
|
908
|
-
case
|
|
908
|
+
case O.EntityStart:
|
|
909
909
|
return 0;
|
|
910
910
|
}
|
|
911
911
|
}
|
|
@@ -1274,10 +1274,10 @@ fu.html_block = function(u, e) {
|
|
|
1274
1274
|
fu.html_inline = function(u, e) {
|
|
1275
1275
|
return u[e].content;
|
|
1276
1276
|
};
|
|
1277
|
-
function
|
|
1277
|
+
function Pu() {
|
|
1278
1278
|
this.rules = he({}, fu);
|
|
1279
1279
|
}
|
|
1280
|
-
|
|
1280
|
+
Pu.prototype.renderAttrs = function(e) {
|
|
1281
1281
|
let t, n, r;
|
|
1282
1282
|
if (!e.attrs)
|
|
1283
1283
|
return "";
|
|
@@ -1285,7 +1285,7 @@ Ou.prototype.renderAttrs = function(e) {
|
|
|
1285
1285
|
r += " " + yu(e.attrs[t][0]) + '="' + yu(e.attrs[t][1]) + '"';
|
|
1286
1286
|
return r;
|
|
1287
1287
|
};
|
|
1288
|
-
|
|
1288
|
+
Pu.prototype.renderToken = function(e, t, n) {
|
|
1289
1289
|
const r = e[t];
|
|
1290
1290
|
let o = "";
|
|
1291
1291
|
if (r.hidden)
|
|
@@ -1300,7 +1300,7 @@ Ou.prototype.renderToken = function(e, t, n) {
|
|
|
1300
1300
|
return o += i ? `>
|
|
1301
1301
|
` : ">", o;
|
|
1302
1302
|
};
|
|
1303
|
-
|
|
1303
|
+
Pu.prototype.renderInline = function(u, e, t) {
|
|
1304
1304
|
let n = "";
|
|
1305
1305
|
const r = this.rules;
|
|
1306
1306
|
for (let o = 0, i = u.length; o < i; o++) {
|
|
@@ -1309,7 +1309,7 @@ Ou.prototype.renderInline = function(u, e, t) {
|
|
|
1309
1309
|
}
|
|
1310
1310
|
return n;
|
|
1311
1311
|
};
|
|
1312
|
-
|
|
1312
|
+
Pu.prototype.renderInlineAsText = function(u, e, t) {
|
|
1313
1313
|
let n = "";
|
|
1314
1314
|
for (let r = 0, o = u.length; r < o; r++)
|
|
1315
1315
|
switch (u[r].type) {
|
|
@@ -1331,7 +1331,7 @@ Ou.prototype.renderInlineAsText = function(u, e, t) {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
return n;
|
|
1333
1333
|
};
|
|
1334
|
-
|
|
1334
|
+
Pu.prototype.render = function(u, e, t) {
|
|
1335
1335
|
let n = "";
|
|
1336
1336
|
const r = this.rules;
|
|
1337
1337
|
for (let o = 0, i = u.length; o < i; o++) {
|
|
@@ -1446,14 +1446,14 @@ function $r(u) {
|
|
|
1446
1446
|
let e;
|
|
1447
1447
|
u.inlineMode ? (e = new u.Token("inline", "", 0), e.content = u.src, e.map = [0, 1], e.children = [], u.tokens.push(e)) : u.md.block.parse(u.src, u.md, u.env, u.tokens);
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function Pr(u) {
|
|
1450
1450
|
const e = u.tokens;
|
|
1451
1451
|
for (let t = 0, n = e.length; t < n; t++) {
|
|
1452
1452
|
const r = e[t];
|
|
1453
1453
|
r.type === "inline" && u.md.inline.parse(r.content, u.md, u.env, r.children);
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1456
|
+
function Or(u) {
|
|
1457
1457
|
return /^<a[>\s]/i.test(u);
|
|
1458
1458
|
}
|
|
1459
1459
|
function Nr(u) {
|
|
@@ -1473,7 +1473,7 @@ function jr(u) {
|
|
|
1473
1473
|
i--;
|
|
1474
1474
|
continue;
|
|
1475
1475
|
}
|
|
1476
|
-
if (c.type === "html_inline" && (
|
|
1476
|
+
if (c.type === "html_inline" && (Or(c.content) && o > 0 && o--, Nr(c.content) && o++), !(o > 0) && c.type === "text" && u.md.linkify.test(c.content)) {
|
|
1477
1477
|
const s = c.content;
|
|
1478
1478
|
let a = u.md.linkify.match(s);
|
|
1479
1479
|
const l = [];
|
|
@@ -1626,7 +1626,7 @@ function Kr(u) {
|
|
|
1626
1626
|
const Ee = [
|
|
1627
1627
|
["normalize", Ir],
|
|
1628
1628
|
["block", $r],
|
|
1629
|
-
["inline",
|
|
1629
|
+
["inline", Pr],
|
|
1630
1630
|
["linkify", jr],
|
|
1631
1631
|
["replacements", Jr],
|
|
1632
1632
|
["smartquotes", Yr],
|
|
@@ -2668,7 +2668,7 @@ function $o(u, e) {
|
|
|
2668
2668
|
}
|
|
2669
2669
|
return u.pos = d, u.posMax = f, !0;
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function Po(u, e) {
|
|
2672
2672
|
let t, n, r, o, i, c, s, a, l = "";
|
|
2673
2673
|
const f = u.pos, h = u.posMax;
|
|
2674
2674
|
if (u.src.charCodeAt(u.pos) !== 33 || u.src.charCodeAt(u.pos + 1) !== 91)
|
|
@@ -2712,7 +2712,7 @@ function Oo(u, e) {
|
|
|
2712
2712
|
}
|
|
2713
2713
|
return u.pos = o, u.posMax = h, !0;
|
|
2714
2714
|
}
|
|
2715
|
-
const
|
|
2715
|
+
const Oo = /^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/, No = /^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;
|
|
2716
2716
|
function jo(u, e) {
|
|
2717
2717
|
let t = u.pos;
|
|
2718
2718
|
if (u.src.charCodeAt(t) !== 60)
|
|
@@ -2739,7 +2739,7 @@ function jo(u, e) {
|
|
|
2739
2739
|
}
|
|
2740
2740
|
return u.pos += o.length + 2, !0;
|
|
2741
2741
|
}
|
|
2742
|
-
if (
|
|
2742
|
+
if (Oo.test(o)) {
|
|
2743
2743
|
const i = u.md.normalizeLink("mailto:" + o);
|
|
2744
2744
|
if (!u.md.validateLink(i))
|
|
2745
2745
|
return !1;
|
|
@@ -2858,7 +2858,7 @@ const Fe = [
|
|
|
2858
2858
|
["strikethrough", rt.tokenize],
|
|
2859
2859
|
["emphasis", ot.tokenize],
|
|
2860
2860
|
["link", $o],
|
|
2861
|
-
["image",
|
|
2861
|
+
["image", Po],
|
|
2862
2862
|
["autolink", jo],
|
|
2863
2863
|
["html_inline", Zo],
|
|
2864
2864
|
["entity", Jo]
|
|
@@ -3446,7 +3446,7 @@ function Sc(u) {
|
|
|
3446
3446
|
function Y(u, e) {
|
|
3447
3447
|
if (!(this instanceof Y))
|
|
3448
3448
|
return new Y(u, e);
|
|
3449
|
-
e || Xe(u) || (e = u || {}, u = "default"), this.inline = new Qu(), this.block = new me(), this.core = new Ye(), this.renderer = new
|
|
3449
|
+
e || Xe(u) || (e = u || {}, u = "default"), this.inline = new Qu(), this.block = new me(), this.core = new Ye(), this.renderer = new Pu(), this.linkify = new Q(), this.validateLink = Ac, this.normalizeLink = Fc, this.normalizeLinkText = Sc, this.utils = zr, this.helpers = he({}, Mr), this.options = {}, this.configure(u), e && this.set(e);
|
|
3450
3450
|
}
|
|
3451
3451
|
Y.prototype.set = function(u) {
|
|
3452
3452
|
return he(this.options, u), this;
|
|
@@ -3729,7 +3729,7 @@ const { md2tokens: Bc, tokens2vueh: Tc } = zc(), ys = R({
|
|
|
3729
3729
|
t.value = !1;
|
|
3730
3730
|
}
|
|
3731
3731
|
return (c, s) => (E(), z("div", {
|
|
3732
|
-
class:
|
|
3732
|
+
class: P(["sq-avatar", n.value]),
|
|
3733
3733
|
style: au(r.value)
|
|
3734
3734
|
}, [
|
|
3735
3735
|
e.img && t.value ? (E(), z("img", {
|
|
@@ -3872,7 +3872,7 @@ function $c(u) {
|
|
|
3872
3872
|
);
|
|
3873
3873
|
return { inputSize: r, inputRound: o, inputDisabled: i, inputReadonly: c, id: n };
|
|
3874
3874
|
}
|
|
3875
|
-
function
|
|
3875
|
+
function Pc(u) {
|
|
3876
3876
|
const { getOption: e } = Ze(), t = Tu(ge, void 0), n = Tu(e0, void 0), r = A(
|
|
3877
3877
|
() => {
|
|
3878
3878
|
var s;
|
|
@@ -3896,7 +3896,7 @@ function Oc(u) {
|
|
|
3896
3896
|
);
|
|
3897
3897
|
return { textareaSize: r, textareaRound: o, textareaDisabled: i, textareaReadonly: c, id: n };
|
|
3898
3898
|
}
|
|
3899
|
-
const
|
|
3899
|
+
const Oc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
3900
3900
|
name: "sq-button",
|
|
3901
3901
|
__name: "button",
|
|
3902
3902
|
props: {
|
|
@@ -3918,7 +3918,7 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
3918
3918
|
return p !== "md" && h.push(`sq-button--${p}`), d && h.push(`is-${d}`), b && h.push("is-round"), g && h.push("is-text"), g && n.bg && h.push("has-bg"), h;
|
|
3919
3919
|
}), l = A(() => n.loading ? Ue : n.icon), f = A(() => n.loading || D(s));
|
|
3920
3920
|
return (h, p) => (E(), z("button", {
|
|
3921
|
-
class:
|
|
3921
|
+
class: P(["sq-button", a.value]),
|
|
3922
3922
|
disabled: f.value,
|
|
3923
3923
|
form: n.form,
|
|
3924
3924
|
type: n.nativeType,
|
|
@@ -3933,7 +3933,7 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
3933
3933
|
]),
|
|
3934
3934
|
_: 3
|
|
3935
3935
|
}, 8, ["size"])
|
|
3936
|
-
], 10,
|
|
3936
|
+
], 10, Oc));
|
|
3937
3937
|
}
|
|
3938
3938
|
}), Nc = { class: "sq-button-group" }, ws = /* @__PURE__ */ R({
|
|
3939
3939
|
name: "sq-button-group",
|
|
@@ -3972,11 +3972,11 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
3972
3972
|
decorative: { type: Boolean, default: !1 }
|
|
3973
3973
|
},
|
|
3974
3974
|
setup(u) {
|
|
3975
|
-
const e =
|
|
3975
|
+
const e = P0(), t = u;
|
|
3976
3976
|
return (n, r) => (E(), z("section", jc, [
|
|
3977
3977
|
t.title || D(e).title ? (E(), z("div", Hc, [
|
|
3978
3978
|
F("h2", {
|
|
3979
|
-
class:
|
|
3979
|
+
class: P({ "has-decorative": t.decorative }),
|
|
3980
3980
|
textContent: su(t.title)
|
|
3981
3981
|
}, null, 10, Vc),
|
|
3982
3982
|
j(n.$slots, "title")
|
|
@@ -3999,7 +3999,7 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
3999
3999
|
errorMsg: {}
|
|
4000
4000
|
},
|
|
4001
4001
|
setup(u) {
|
|
4002
|
-
const { nextId: e } =
|
|
4002
|
+
const { nextId: e } = On(), t = u, n = $(`sq-id-${e()}`);
|
|
4003
4003
|
He(e0, n);
|
|
4004
4004
|
const r = A(() => {
|
|
4005
4005
|
const o = [];
|
|
@@ -4011,7 +4011,7 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
4011
4011
|
}, [
|
|
4012
4012
|
t.label || t.showLabel ? (E(), z("label", {
|
|
4013
4013
|
key: 0,
|
|
4014
|
-
class:
|
|
4014
|
+
class: P(["sq-form-item-label", r.value]),
|
|
4015
4015
|
textContent: su(t.label),
|
|
4016
4016
|
for: t.type !== "custom" ? n.value : void 0
|
|
4017
4017
|
}, null, 10, Zc)) : V("", !0),
|
|
@@ -4130,13 +4130,13 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
4130
4130
|
return Promise.all(_).then((q) => (r("validate", "SQFORM", !q.includes(!1), ue(s.value)), q));
|
|
4131
4131
|
}
|
|
4132
4132
|
return e({ resetFields: C, validate: w }), (x, v) => (E(), z("form", {
|
|
4133
|
-
class:
|
|
4133
|
+
class: P(["sq-form", l.value]),
|
|
4134
4134
|
style: au({ "--form-label-width": o.labelWidth }),
|
|
4135
|
-
onSubmit: v[0] || (v[0] =
|
|
4135
|
+
onSubmit: v[0] || (v[0] = O0(() => {
|
|
4136
4136
|
}, ["prevent"]))
|
|
4137
4137
|
}, [
|
|
4138
4138
|
(E(!0), z(Nu, null, Ve(f.value, (_, q) => (E(), L(Jc, {
|
|
4139
|
-
class:
|
|
4139
|
+
class: P(_.itemClass),
|
|
4140
4140
|
type: _.type,
|
|
4141
4141
|
key: q,
|
|
4142
4142
|
"label-width": _.labelWidth,
|
|
@@ -4208,7 +4208,7 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
4208
4208
|
}),
|
|
4209
4209
|
emits: /* @__PURE__ */ tu(["focus", "blur", "input", "change"], ["update:value"]),
|
|
4210
4210
|
setup(u, { expose: e, emit: t }) {
|
|
4211
|
-
const n =
|
|
4211
|
+
const n = P0(), r = t, o = u, { inputSize: i, inputRound: c, inputDisabled: s, inputReadonly: a, id: l } = $c(o), f = mu(u, "value"), h = $(!1), p = $(!1), d = Mu(null), b = A(() => {
|
|
4212
4212
|
const T = [], I = D(i), H = D(c), we = D(q);
|
|
4213
4213
|
return I !== "md" && T.push(`sq-input--${I}`), o.status && T.push(`is-${o.status}`), H && T.push("is-round"), we && T.push("is-disabled"), T;
|
|
4214
4214
|
}), g = A(() => D(p) ? gn : Bn), k = A(() => D(p) ? "text" : o.type), m = A(() => o.showStatusIcon && !o.loading), y = A(() => n.prefix || o.prefixIcon), C = A(() => D(h) && D(f).length), w = A(
|
|
@@ -4252,7 +4252,7 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
4252
4252
|
h.value = !1, (T = d.value) == null || T.blur();
|
|
4253
4253
|
}
|
|
4254
4254
|
return e({ focus: J, blur: hu }), (T, I) => (E(), z("div", {
|
|
4255
|
-
class:
|
|
4255
|
+
class: P(["sq-input", b.value]),
|
|
4256
4256
|
onMousedown: Z
|
|
4257
4257
|
}, [
|
|
4258
4258
|
y.value ? (E(), z("span", Xc, [
|
|
@@ -4298,7 +4298,7 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
4298
4298
|
j(T.$slots, "suffix", {}, () => [
|
|
4299
4299
|
v.value ? (E(), L(bu(v.value), {
|
|
4300
4300
|
key: 0,
|
|
4301
|
-
class:
|
|
4301
|
+
class: P({ "sq-input-suffix-status": m.value })
|
|
4302
4302
|
}, null, 8, ["class"])) : V("", !0)
|
|
4303
4303
|
])
|
|
4304
4304
|
], 512), [
|
|
@@ -4348,7 +4348,7 @@ const Pc = ["disabled", "form", "type"], se = /* @__PURE__ */ R({
|
|
|
4348
4348
|
}, {
|
|
4349
4349
|
default: eu(() => [
|
|
4350
4350
|
Du(F("div", {
|
|
4351
|
-
class:
|
|
4351
|
+
class: P(["sq-message", `is-${t.type}`]),
|
|
4352
4352
|
id: t.id,
|
|
4353
4353
|
style: au({ top: `${t.offsetTop}px` })
|
|
4354
4354
|
}, [
|
|
@@ -4426,7 +4426,8 @@ const As = $e, si = /* @__PURE__ */ R({
|
|
|
4426
4426
|
__name: "pagination-prev",
|
|
4427
4427
|
props: /* @__PURE__ */ tu({
|
|
4428
4428
|
disabled: { type: Boolean },
|
|
4429
|
-
size: {}
|
|
4429
|
+
size: {},
|
|
4430
|
+
maxPage: {}
|
|
4430
4431
|
}, {
|
|
4431
4432
|
current: { required: !0 },
|
|
4432
4433
|
currentModifiers: {}
|
|
@@ -4448,7 +4449,8 @@ const As = $e, si = /* @__PURE__ */ R({
|
|
|
4448
4449
|
__name: "pagination-next",
|
|
4449
4450
|
props: /* @__PURE__ */ tu({
|
|
4450
4451
|
disabled: { type: Boolean },
|
|
4451
|
-
size: {}
|
|
4452
|
+
size: {},
|
|
4453
|
+
maxPage: {}
|
|
4452
4454
|
}, {
|
|
4453
4455
|
current: { required: !0 },
|
|
4454
4456
|
currentModifiers: {}
|
|
@@ -4461,7 +4463,7 @@ const As = $e, si = /* @__PURE__ */ R({
|
|
|
4461
4463
|
return (r, o) => (E(), L(D(se), {
|
|
4462
4464
|
icon: D(Nt),
|
|
4463
4465
|
size: e.size,
|
|
4464
|
-
disabled: t.value ===
|
|
4466
|
+
disabled: t.value === e.maxPage || e.disabled,
|
|
4465
4467
|
onClick: o[0] || (o[0] = (i) => n(1))
|
|
4466
4468
|
}, null, 8, ["icon", "size", "disabled"]));
|
|
4467
4469
|
}
|
|
@@ -4548,12 +4550,13 @@ const As = $e, si = /* @__PURE__ */ R({
|
|
|
4548
4550
|
size: e.size,
|
|
4549
4551
|
disabled: e.disabled,
|
|
4550
4552
|
list: o.value,
|
|
4553
|
+
"max-page": r.value,
|
|
4551
4554
|
current: t.value,
|
|
4552
4555
|
"onUpdate:current": s[0] || (s[0] = (f) => t.value = f)
|
|
4553
|
-
}, null, 40, ["size", "disabled", "list", "current"]))), 128))
|
|
4556
|
+
}, null, 40, ["size", "disabled", "list", "max-page", "current"]))), 128))
|
|
4554
4557
|
]));
|
|
4555
4558
|
}
|
|
4556
|
-
}),
|
|
4559
|
+
}), Pe = Math.min, qu = Math.max, ae = Math.round, ne = Math.floor, iu = (u) => ({
|
|
4557
4560
|
x: u,
|
|
4558
4561
|
y: u
|
|
4559
4562
|
}), pi = {
|
|
@@ -4595,9 +4598,9 @@ function xi(u, e, t) {
|
|
|
4595
4598
|
}
|
|
4596
4599
|
function gi(u) {
|
|
4597
4600
|
const e = le(u);
|
|
4598
|
-
return [
|
|
4601
|
+
return [Oe(u), e, Oe(e)];
|
|
4599
4602
|
}
|
|
4600
|
-
function
|
|
4603
|
+
function Oe(u) {
|
|
4601
4604
|
return u.replace(/start|end/g, (e) => hi[e]);
|
|
4602
4605
|
}
|
|
4603
4606
|
const S0 = ["left", "right"], z0 = ["right", "left"], _i = ["top", "bottom"], ki = ["bottom", "top"];
|
|
@@ -4616,7 +4619,7 @@ function yi(u, e, t) {
|
|
|
4616
4619
|
function vi(u, e, t, n) {
|
|
4617
4620
|
const r = _e(u);
|
|
4618
4621
|
let o = yi(Iu(u), t === "start", n);
|
|
4619
|
-
return r && (o = o.map((i) => i + "-" + r), e && (o = o.concat(o.map(
|
|
4622
|
+
return r && (o = o.map((i) => i + "-" + r), e && (o = o.concat(o.map(Oe)))), o;
|
|
4620
4623
|
}
|
|
4621
4624
|
function le(u) {
|
|
4622
4625
|
return u.replace(/left|right|bottom|top/g, (e) => pi[e]);
|
|
@@ -5011,9 +5014,9 @@ function $i(u) {
|
|
|
5011
5014
|
function o0() {
|
|
5012
5015
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
5013
5016
|
}
|
|
5014
|
-
const
|
|
5017
|
+
const Pi = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
5015
5018
|
function $u(u) {
|
|
5016
|
-
return
|
|
5019
|
+
return Pi.has(Au(u));
|
|
5017
5020
|
}
|
|
5018
5021
|
function ru(u) {
|
|
5019
5022
|
return X(u).getComputedStyle(u);
|
|
@@ -5084,10 +5087,10 @@ function Bu(u) {
|
|
|
5084
5087
|
y: c
|
|
5085
5088
|
};
|
|
5086
5089
|
}
|
|
5087
|
-
const
|
|
5090
|
+
const Oi = /* @__PURE__ */ iu(0);
|
|
5088
5091
|
function vt(u) {
|
|
5089
5092
|
const e = X(u);
|
|
5090
|
-
return !o0() || !e.visualViewport ?
|
|
5093
|
+
return !o0() || !e.visualViewport ? Oi : {
|
|
5091
5094
|
x: e.visualViewport.offsetLeft,
|
|
5092
5095
|
y: e.visualViewport.offsetTop
|
|
5093
5096
|
};
|
|
@@ -5245,7 +5248,7 @@ function Ji(u) {
|
|
|
5245
5248
|
} = u;
|
|
5246
5249
|
const i = [...t === "clippingAncestors" ? ye(e) ? [] : Gi(e, this._c) : [].concat(t), n], c = i[0], s = i.reduce((a, l) => {
|
|
5247
5250
|
const f = M0(e, l, r);
|
|
5248
|
-
return a.top = qu(f.top, a.top), a.right =
|
|
5251
|
+
return a.top = qu(f.top, a.top), a.right = Pe(f.right, a.right), a.bottom = Pe(f.bottom, a.bottom), a.left = qu(f.left, a.left), a;
|
|
5249
5252
|
}, M0(e, c, r));
|
|
5250
5253
|
return {
|
|
5251
5254
|
width: s.right - s.left,
|
|
@@ -5366,7 +5369,7 @@ function es(u, e) {
|
|
|
5366
5369
|
return;
|
|
5367
5370
|
const d = ne(f), b = ne(r.clientWidth - (l + h)), g = ne(r.clientHeight - (f + p)), k = ne(l), y = {
|
|
5368
5371
|
rootMargin: -d + "px " + -b + "px " + -g + "px " + -k + "px",
|
|
5369
|
-
threshold: qu(0,
|
|
5372
|
+
threshold: qu(0, Pe(1, s)) || 1
|
|
5370
5373
|
};
|
|
5371
5374
|
let C = !0;
|
|
5372
5375
|
function w(x) {
|
|
@@ -5452,7 +5455,7 @@ function R0(u) {
|
|
|
5452
5455
|
}
|
|
5453
5456
|
return u;
|
|
5454
5457
|
}
|
|
5455
|
-
function
|
|
5458
|
+
function Ou(u) {
|
|
5456
5459
|
return typeof u == "function" ? u() : D(u);
|
|
5457
5460
|
}
|
|
5458
5461
|
function At(u) {
|
|
@@ -5466,16 +5469,16 @@ function is(u, e, t) {
|
|
|
5466
5469
|
t === void 0 && (t = {});
|
|
5467
5470
|
const n = t.whileElementsMounted, r = A(() => {
|
|
5468
5471
|
var v;
|
|
5469
|
-
return (v =
|
|
5470
|
-
}), o = A(() =>
|
|
5472
|
+
return (v = Ou(t.open)) != null ? v : !0;
|
|
5473
|
+
}), o = A(() => Ou(t.middleware)), i = A(() => {
|
|
5471
5474
|
var v;
|
|
5472
|
-
return (v =
|
|
5475
|
+
return (v = Ou(t.placement)) != null ? v : "bottom";
|
|
5473
5476
|
}), c = A(() => {
|
|
5474
5477
|
var v;
|
|
5475
|
-
return (v =
|
|
5478
|
+
return (v = Ou(t.strategy)) != null ? v : "absolute";
|
|
5476
5479
|
}), s = A(() => {
|
|
5477
5480
|
var v;
|
|
5478
|
-
return (v =
|
|
5481
|
+
return (v = Ou(t.transform)) != null ? v : !0;
|
|
5479
5482
|
}), a = A(() => R0(u.value)), l = A(() => R0(e.value)), f = $(0), h = $(0), p = $(c.value), d = $(i.value), b = Mu({}), g = $(!1), k = A(() => {
|
|
5480
5483
|
const v = {
|
|
5481
5484
|
position: p.value,
|
|
@@ -5599,7 +5602,7 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5599
5602
|
}
|
|
5600
5603
|
return (b, g) => (E(), z(Nu, null, [
|
|
5601
5604
|
F("span", {
|
|
5602
|
-
class:
|
|
5605
|
+
class: P(["sq-popover-trigger", b.$attrs.class]),
|
|
5603
5606
|
style: au(b.$attrs.style),
|
|
5604
5607
|
ref_key: "triggerRef",
|
|
5605
5608
|
ref: i,
|
|
@@ -5618,11 +5621,11 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5618
5621
|
}, {
|
|
5619
5622
|
default: eu(() => [
|
|
5620
5623
|
Du(F("div", {
|
|
5621
|
-
class:
|
|
5624
|
+
class: P(["sq-popover", b.popoverClass]),
|
|
5622
5625
|
style: au({ ...D(s), zIndex: o.value }),
|
|
5623
5626
|
ref_key: "popverRef",
|
|
5624
5627
|
ref: c,
|
|
5625
|
-
onClick: g[0] || (g[0] =
|
|
5628
|
+
onClick: g[0] || (g[0] = O0(() => {
|
|
5626
5629
|
}, ["stop"]))
|
|
5627
5630
|
}, [
|
|
5628
5631
|
j(b.$slots, "default")
|
|
@@ -5686,7 +5689,7 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5686
5689
|
n.value = r.value.getBoundingClientRect().width;
|
|
5687
5690
|
}
|
|
5688
5691
|
return (l, f) => (E(), z("div", {
|
|
5689
|
-
class:
|
|
5692
|
+
class: P(["sq-progress", o.value]),
|
|
5690
5693
|
ref_key: "progressRef",
|
|
5691
5694
|
ref: r,
|
|
5692
5695
|
style: au(s.value)
|
|
@@ -5727,7 +5730,7 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5727
5730
|
return e.size !== "md" && r.push(`sq-tag--${e.size}`), e.theme !== "plain" && e.type && r.push(`is-${e.theme}`), e.type && r.push(`is-${e.type}`), e.round && r.push("is-round"), r;
|
|
5728
5731
|
}), n = A(() => e.size === "lg" ? "md" : "sm");
|
|
5729
5732
|
return (r, o) => (E(), L(D(Ku), {
|
|
5730
|
-
class:
|
|
5733
|
+
class: P(["sq-tag", t.value]),
|
|
5731
5734
|
size: n.value
|
|
5732
5735
|
}, {
|
|
5733
5736
|
default: eu(() => [
|
|
@@ -5753,7 +5756,7 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5753
5756
|
return n.size !== "md" && i.push(`sq-tag--${n.size}`), n.theme !== "plain" && i.push(`is-${n.theme}`), n.type && i.push(`is-${n.type}`), n.round && i.push("is-round"), n.checked && i.push("is-checked"), i;
|
|
5754
5757
|
}), o = A(() => n.size === "lg" ? "md" : "sm");
|
|
5755
5758
|
return (i, c) => (E(), L(D(Ku), {
|
|
5756
|
-
class:
|
|
5759
|
+
class: P(["sq-check-tag", r.value]),
|
|
5757
5760
|
size: o.value,
|
|
5758
5761
|
onClick: c[0] || (c[0] = (s) => t("change", !n.checked))
|
|
5759
5762
|
}, {
|
|
@@ -5779,7 +5782,7 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5779
5782
|
() => e.ellipsis ? `--row-num: ${e.rowNum}` : ""
|
|
5780
5783
|
);
|
|
5781
5784
|
return (r, o) => (E(), z("span", {
|
|
5782
|
-
class:
|
|
5785
|
+
class: P(["sq-text", t.value]),
|
|
5783
5786
|
style: au(n.value)
|
|
5784
5787
|
}, [
|
|
5785
5788
|
j(r.$slots, "default")
|
|
@@ -5813,7 +5816,7 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5813
5816
|
}),
|
|
5814
5817
|
emits: /* @__PURE__ */ tu(["focus", "blur", "input", "change"], ["update:value"]),
|
|
5815
5818
|
setup(u, { expose: e, emit: t }) {
|
|
5816
|
-
const n = t, r = u, { textareaSize: o, textareaRound: i, textareaDisabled: c, textareaReadonly: s, id: a } =
|
|
5819
|
+
const n = t, r = u, { textareaSize: o, textareaRound: i, textareaDisabled: c, textareaReadonly: s, id: a } = Pc(r), l = mu(u, "value"), f = Mu(null), h = A(() => {
|
|
5817
5820
|
const g = [], k = D(o), m = D(i), y = D(c);
|
|
5818
5821
|
return k !== "md" && g.push(`sq-textarea--${k}`), r.status && g.push(`is-${r.status}`), m && g.push("is-round"), y && g.push("is-disabled"), g;
|
|
5819
5822
|
}), p = A(() => D(c) || D(s) ? "none" : r.resize);
|
|
@@ -5826,7 +5829,7 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5826
5829
|
(g = f.value) == null || g.blur();
|
|
5827
5830
|
}
|
|
5828
5831
|
return e({ focus: d, blur: b }), (g, k) => (E(), z("div", {
|
|
5829
|
-
class:
|
|
5832
|
+
class: P(["sq-textarea", h.value])
|
|
5830
5833
|
}, [
|
|
5831
5834
|
Du(F("textarea", {
|
|
5832
5835
|
"onUpdate:modelValue": k[0] || (k[0] = (m) => l.value = m),
|
|
@@ -5868,7 +5871,7 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5868
5871
|
return n.push(`align-${e.align}`), n;
|
|
5869
5872
|
});
|
|
5870
5873
|
return (n, r) => (E(), z("div", {
|
|
5871
|
-
class:
|
|
5874
|
+
class: P(["sq-timeline", t.value])
|
|
5872
5875
|
}, [
|
|
5873
5876
|
j(n.$slots, "default")
|
|
5874
5877
|
], 2));
|
|
@@ -5894,7 +5897,7 @@ const Ss = /* @__PURE__ */ R({
|
|
|
5894
5897
|
return e.color && (r["--timeline-dot-color"] = e.color), r;
|
|
5895
5898
|
});
|
|
5896
5899
|
return (r, o) => (E(), z("div", {
|
|
5897
|
-
class:
|
|
5900
|
+
class: P(["sq-timeline-item", t.value]),
|
|
5898
5901
|
style: au(n.value)
|
|
5899
5902
|
}, [
|
|
5900
5903
|
F("span", hs, [
|