@dolanske/vui 1.14.10 → 1.14.12
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/src/shared/color.d.ts +10 -0
- package/dist/vui.css +1 -1
- package/dist/vui.js +211 -183
- package/package.json +1 -1
package/dist/vui.js
CHANGED
|
@@ -13674,10 +13674,22 @@ var Km = /* @__PURE__ */ v({
|
|
|
13674
13674
|
})
|
|
13675
13675
|
}, [H(e.$slots, "default")], 6));
|
|
13676
13676
|
}
|
|
13677
|
-
}), ch = {
|
|
13677
|
+
}), ch = /^#[0-9A-F]{0,6}$/i, lh = /^r(g(b(\(\s*(\d{1,3}(\s*,\s*(\d{1,3}(\s*,\s*(\d{1,3}\s*\)?)?)?)?)?)?)?)?)?$/;
|
|
13678
|
+
function uh(e) {
|
|
13679
|
+
return `rgb(${Number.parseInt(e.slice(1, 3), 16)}, ${Number.parseInt(e.slice(3, 5), 16)}, ${Number.parseInt(e.slice(5, 7), 16)})`;
|
|
13680
|
+
}
|
|
13681
|
+
function dh(e, t = "#000000") {
|
|
13682
|
+
if (!e) return t;
|
|
13683
|
+
if (e.startsWith("#")) return e.length === 7 ? e : t;
|
|
13684
|
+
let n = e.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
|
|
13685
|
+
return n ? `#${Number(n[1]).toString(16).padStart(2, "0")}${Number(n[2]).toString(16).padStart(2, "0")}${Number(n[3]).toString(16).padStart(2, "0")}` : t;
|
|
13686
|
+
}
|
|
13687
|
+
//#endregion
|
|
13688
|
+
//#region src/components/Input/Input.vue?vue&type=script&setup=true&lang.ts
|
|
13689
|
+
var fh = { class: "vui-input" }, ph = ["for"], mh = {
|
|
13678
13690
|
key: 1,
|
|
13679
13691
|
class: "vui-input-hint"
|
|
13680
|
-
},
|
|
13692
|
+
}, hh = [
|
|
13681
13693
|
"id",
|
|
13682
13694
|
"readonly",
|
|
13683
13695
|
"type",
|
|
@@ -13688,13 +13700,13 @@ var Km = /* @__PURE__ */ v({
|
|
|
13688
13700
|
"multiple",
|
|
13689
13701
|
"min",
|
|
13690
13702
|
"disabled"
|
|
13691
|
-
],
|
|
13703
|
+
], gh = {
|
|
13692
13704
|
key: 0,
|
|
13693
13705
|
class: "vui-input-limit"
|
|
13694
|
-
},
|
|
13706
|
+
}, _h = {
|
|
13695
13707
|
key: 1,
|
|
13696
13708
|
class: "vui-input-errors"
|
|
13697
|
-
},
|
|
13709
|
+
}, vh = /* @__PURE__ */ v({
|
|
13698
13710
|
__name: "Input",
|
|
13699
13711
|
props: /* @__PURE__ */ k({
|
|
13700
13712
|
type: { default: "text" },
|
|
@@ -13739,12 +13751,12 @@ var Km = /* @__PURE__ */ v({
|
|
|
13739
13751
|
"has-errors": e.errors.length > 0
|
|
13740
13752
|
}]) }, [
|
|
13741
13753
|
H(t.$slots, "before"),
|
|
13742
|
-
f("div",
|
|
13754
|
+
f("div", fh, [
|
|
13743
13755
|
e.label ? (R(), d("label", {
|
|
13744
13756
|
key: 0,
|
|
13745
13757
|
for: q(i)
|
|
13746
|
-
}, G(e.label), 9,
|
|
13747
|
-
e.hint ? (R(), d("p",
|
|
13758
|
+
}, G(e.label), 9, ph)) : u("", !0),
|
|
13759
|
+
e.hint ? (R(), d("p", mh, G(e.hint), 1)) : u("", !0),
|
|
13748
13760
|
g(or, {
|
|
13749
13761
|
class: "vui-input-style",
|
|
13750
13762
|
gap: 5,
|
|
@@ -13768,18 +13780,18 @@ var Km = /* @__PURE__ */ v({
|
|
|
13768
13780
|
multiple: e.multiple,
|
|
13769
13781
|
min: e.min,
|
|
13770
13782
|
disabled: e.disabled
|
|
13771
|
-
}, null, 8,
|
|
13783
|
+
}, null, 8, hh)), [[ge, r.value]]),
|
|
13772
13784
|
H(t.$slots, "end")
|
|
13773
13785
|
]),
|
|
13774
13786
|
_: 3
|
|
13775
13787
|
})
|
|
13776
13788
|
]),
|
|
13777
|
-
e.limit ? (R(), d("p",
|
|
13778
|
-
e.errors.length > 0 ? (R(), d("ul",
|
|
13789
|
+
e.limit ? (R(), d("p", gh, G(o.value), 1)) : u("", !0),
|
|
13790
|
+
e.errors.length > 0 ? (R(), d("ul", _h, [(R(!0), d(n, null, V(e.errors, (e) => (R(), d("li", { key: e }, G(e), 1))), 128))])) : u("", !0),
|
|
13779
13791
|
H(t.$slots, "after")
|
|
13780
13792
|
], 2));
|
|
13781
13793
|
}
|
|
13782
|
-
}),
|
|
13794
|
+
}), yh = ["id"], bh = ["for"], xh = ["value", "placeholder"], Sh = /* @__PURE__ */ v({
|
|
13783
13795
|
__name: "Color",
|
|
13784
13796
|
props: /* @__PURE__ */ k({
|
|
13785
13797
|
type: {},
|
|
@@ -13804,8 +13816,23 @@ var Km = /* @__PURE__ */ v({
|
|
|
13804
13816
|
}),
|
|
13805
13817
|
emits: ["update:modelValue"],
|
|
13806
13818
|
setup(e) {
|
|
13807
|
-
let t = e, n = ue(), r = pe(e, "modelValue"),
|
|
13808
|
-
|
|
13819
|
+
let t = e, n = ue(), r = fe(), [i, a] = pe(e, "modelValue"), o = c({
|
|
13820
|
+
get() {
|
|
13821
|
+
return dh(i.value ?? "", Sd.value === "dark" ? "#ffffff" : "#000000");
|
|
13822
|
+
},
|
|
13823
|
+
set(e) {
|
|
13824
|
+
i.value = a.rgb ? uh(e) : e;
|
|
13825
|
+
}
|
|
13826
|
+
});
|
|
13827
|
+
function s(e) {
|
|
13828
|
+
let t = e.target, n = t.value;
|
|
13829
|
+
if (n && (a.rgb ? !lh.test(n) : !ch.test(n))) {
|
|
13830
|
+
t.value = i.value ?? "";
|
|
13831
|
+
return;
|
|
13832
|
+
}
|
|
13833
|
+
i.value = n;
|
|
13834
|
+
}
|
|
13835
|
+
return (e, a) => (R(), l(vh, A({
|
|
13809
13836
|
...q(n),
|
|
13810
13837
|
...t
|
|
13811
13838
|
}, {
|
|
@@ -13813,22 +13840,23 @@ var Km = /* @__PURE__ */ v({
|
|
|
13813
13840
|
class: "vui-input-color"
|
|
13814
13841
|
}), {
|
|
13815
13842
|
__internal_replace_input: X(() => [Se(f("input", {
|
|
13816
|
-
id: q(
|
|
13817
|
-
"onUpdate:modelValue": a[0] ||= (e) =>
|
|
13843
|
+
id: q(r),
|
|
13844
|
+
"onUpdate:modelValue": a[0] ||= (e) => o.value = e,
|
|
13818
13845
|
type: "color",
|
|
13819
13846
|
tabindex: "0"
|
|
13820
|
-
}, null, 8,
|
|
13847
|
+
}, null, 8, yh), [[ve, o.value]]), f("label", { for: q(r) }, [f("div", {
|
|
13821
13848
|
class: "vui-input-color-indicator",
|
|
13822
|
-
style: P({ backgroundColor:
|
|
13823
|
-
}, [
|
|
13824
|
-
|
|
13849
|
+
style: P({ backgroundColor: q(i) })
|
|
13850
|
+
}, [q(i) ? u("", !0) : (R(), l(q(et), { key: 0 }))], 4), f("input", {
|
|
13851
|
+
value: q(i),
|
|
13825
13852
|
type: "text",
|
|
13826
|
-
placeholder: t.placeholder
|
|
13827
|
-
|
|
13853
|
+
placeholder: t.placeholder,
|
|
13854
|
+
onInput: s
|
|
13855
|
+
}, null, 40, xh)], 8, bh)]),
|
|
13828
13856
|
_: 1
|
|
13829
13857
|
}, 16));
|
|
13830
13858
|
}
|
|
13831
|
-
}),
|
|
13859
|
+
}), Ch = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
13832
13860
|
__name: "Counter",
|
|
13833
13861
|
props: /* @__PURE__ */ k({
|
|
13834
13862
|
label: {},
|
|
@@ -13878,7 +13906,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
13878
13906
|
"decrementEnabled",
|
|
13879
13907
|
"hideDecrement"
|
|
13880
13908
|
]), n = pe(e, "modelValue");
|
|
13881
|
-
return (r, i) => (R(), l(
|
|
13909
|
+
return (r, i) => (R(), l(vh, A(t, {
|
|
13882
13910
|
modelValue: n.value,
|
|
13883
13911
|
"onUpdate:modelValue": i[2] ||= (e) => n.value = e,
|
|
13884
13912
|
modelModifiers: { number: !0 },
|
|
@@ -13909,7 +13937,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
13909
13937
|
_: 1
|
|
13910
13938
|
}, 16, ["modelValue"]));
|
|
13911
13939
|
}
|
|
13912
|
-
}), [["__scopeId", "data-v-5059e818"]]),
|
|
13940
|
+
}), [["__scopeId", "data-v-5059e818"]]), wh = ["id"], Th = ["for"], Eh = /* @__PURE__ */ v({
|
|
13913
13941
|
__name: "Dropzone",
|
|
13914
13942
|
props: {
|
|
13915
13943
|
label: {},
|
|
@@ -13935,7 +13963,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
13935
13963
|
let s = J("dropzone");
|
|
13936
13964
|
return L(() => {
|
|
13937
13965
|
Z(s, "dragenter", o, !1), Z(s, "dragleave", o, !1), Z(s, "dragover", o, !1), Z(s, "drop", o, !1), Z(s, "input", (e) => o(e, !0), !1);
|
|
13938
|
-
}), (e, t) => (R(), l(
|
|
13966
|
+
}), (e, t) => (R(), l(vh, A(r, {
|
|
13939
13967
|
ref: "dropzone",
|
|
13940
13968
|
type: "file",
|
|
13941
13969
|
class: ["vui-dropzone", { dragging: a.value }],
|
|
@@ -13945,18 +13973,18 @@ var Km = /* @__PURE__ */ v({
|
|
|
13945
13973
|
__internal_replace_input: X(({ inputId: r }) => [f("input", {
|
|
13946
13974
|
id: r,
|
|
13947
13975
|
type: "file"
|
|
13948
|
-
}, null, 8,
|
|
13976
|
+
}, null, 8, wh), f("label", { for: r }, [H(e.$slots, "default", { dragging: a.value }, () => [g(or, {
|
|
13949
13977
|
"x-center": "",
|
|
13950
13978
|
gap: "xs",
|
|
13951
13979
|
"y-center": ""
|
|
13952
13980
|
}, {
|
|
13953
13981
|
default: X(() => [a.value ? (R(), d(n, { key: 0 }, [g(q(ot)), t[2] ||= h(" Drop it ", -1)], 64)) : (R(), d(n, { key: 1 }, [g(q(Xe)), t[3] ||= h(" Click or drag files over here ", -1)], 64))]),
|
|
13954
13982
|
_: 1
|
|
13955
|
-
})])], 8,
|
|
13983
|
+
})])], 8, Th)]),
|
|
13956
13984
|
_: 3
|
|
13957
13985
|
}, 16, ["class"]));
|
|
13958
13986
|
}
|
|
13959
|
-
}),
|
|
13987
|
+
}), Dh = /* @__PURE__ */ v({
|
|
13960
13988
|
__name: "File",
|
|
13961
13989
|
props: {
|
|
13962
13990
|
label: {},
|
|
@@ -13978,9 +14006,9 @@ var Km = /* @__PURE__ */ v({
|
|
|
13978
14006
|
emits: ["files"],
|
|
13979
14007
|
setup(e, { emit: t }) {
|
|
13980
14008
|
let n = e, r = t;
|
|
13981
|
-
return (e, t) => (R(), l(
|
|
14009
|
+
return (e, t) => (R(), l(vh, A({ type: "file" }, n, { onInput: t[0] ||= (e) => r("files", e.target.files) }), null, 16));
|
|
13982
14010
|
}
|
|
13983
|
-
}),
|
|
14011
|
+
}), Oh = /* @__PURE__ */ v({
|
|
13984
14012
|
__name: "Password",
|
|
13985
14013
|
props: {
|
|
13986
14014
|
label: {},
|
|
@@ -14005,7 +14033,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
14005
14033
|
},
|
|
14006
14034
|
setup(e) {
|
|
14007
14035
|
let t = p(e, ["showPassword", "type"]), n = B(e.showPassword);
|
|
14008
|
-
return (e, r) => (R(), l(
|
|
14036
|
+
return (e, r) => (R(), l(vh, A(t, {
|
|
14009
14037
|
type: n.value ? "text" : "password",
|
|
14010
14038
|
autocomplete: "off"
|
|
14011
14039
|
}), {
|
|
@@ -14029,10 +14057,10 @@ var Km = /* @__PURE__ */ v({
|
|
|
14029
14057
|
_: 1
|
|
14030
14058
|
}, 16, ["type"]));
|
|
14031
14059
|
}
|
|
14032
|
-
}),
|
|
14060
|
+
}), kh = { class: "vui-input" }, Ah = ["for"], jh = {
|
|
14033
14061
|
key: 1,
|
|
14034
14062
|
class: "vui-input-hint"
|
|
14035
|
-
},
|
|
14063
|
+
}, Mh = [
|
|
14036
14064
|
"id",
|
|
14037
14065
|
"readonly",
|
|
14038
14066
|
"placeholder",
|
|
@@ -14041,13 +14069,13 @@ var Km = /* @__PURE__ */ v({
|
|
|
14041
14069
|
"max",
|
|
14042
14070
|
"rows",
|
|
14043
14071
|
"cols"
|
|
14044
|
-
],
|
|
14072
|
+
], Nh = {
|
|
14045
14073
|
key: 0,
|
|
14046
14074
|
class: "vui-input-limit"
|
|
14047
|
-
},
|
|
14075
|
+
}, Ph = {
|
|
14048
14076
|
key: 1,
|
|
14049
14077
|
class: "vui-input-errors"
|
|
14050
|
-
},
|
|
14078
|
+
}, Fh = /* @__PURE__ */ v({
|
|
14051
14079
|
__name: "Textarea",
|
|
14052
14080
|
props: /* @__PURE__ */ k({
|
|
14053
14081
|
label: {},
|
|
@@ -14096,12 +14124,12 @@ var Km = /* @__PURE__ */ v({
|
|
|
14096
14124
|
disabled: e.disabled
|
|
14097
14125
|
}]) }, [
|
|
14098
14126
|
H(t.$slots, "before"),
|
|
14099
|
-
f("div",
|
|
14127
|
+
f("div", kh, [
|
|
14100
14128
|
e.label ? (R(), d("label", {
|
|
14101
14129
|
key: 0,
|
|
14102
14130
|
for: q(i)
|
|
14103
|
-
}, G(e.label), 9,
|
|
14104
|
-
e.hint ? (R(), d("p",
|
|
14131
|
+
}, G(e.label), 9, Ah)) : u("", !0),
|
|
14132
|
+
e.hint ? (R(), d("p", jh, G(e.hint), 1)) : u("", !0),
|
|
14105
14133
|
Se(f("textarea", {
|
|
14106
14134
|
id: q(i),
|
|
14107
14135
|
ref: "textarea",
|
|
@@ -14118,24 +14146,24 @@ var Km = /* @__PURE__ */ v({
|
|
|
14118
14146
|
resize: a.value,
|
|
14119
14147
|
...e.cols ? { width: `${e.cols + 1}ch` } : {}
|
|
14120
14148
|
})
|
|
14121
|
-
}, null, 12,
|
|
14149
|
+
}, null, 12, Mh), [[ve, r.value]])
|
|
14122
14150
|
]),
|
|
14123
|
-
e.limit ? (R(), d("p",
|
|
14124
|
-
e.errors.length > 0 ? (R(), d("ul",
|
|
14151
|
+
e.limit ? (R(), d("p", Nh, G(`${r.value.length}/${e.limit}`), 1)) : u("", !0),
|
|
14152
|
+
e.errors.length > 0 ? (R(), d("ul", Ph, [(R(!0), d(n, null, V(e.errors, (e) => (R(), d("li", { key: e }, G(e), 1))), 128))])) : u("", !0),
|
|
14125
14153
|
H(t.$slots, "after")
|
|
14126
14154
|
], 2));
|
|
14127
14155
|
}
|
|
14128
|
-
}),
|
|
14156
|
+
}), Ih = /* @__PURE__ */ v({
|
|
14129
14157
|
__name: "KbdGroup",
|
|
14130
14158
|
emits: ["trigger"],
|
|
14131
14159
|
setup(e, { emit: t }) {
|
|
14132
14160
|
let n = t, r = me(), i = vn(), a = On(r.default);
|
|
14133
14161
|
return An(a, "Kbd"), zt(i[a.value.map((e) => e.props.keys).join("+")], () => n("trigger")), (e, t) => H(e.$slots, "default");
|
|
14134
14162
|
}
|
|
14135
|
-
}),
|
|
14163
|
+
}), Lh = { class: "marquee-wrap" }, Rh = { class: "marquee-content" }, zh = {
|
|
14136
14164
|
class: "marquee-content",
|
|
14137
14165
|
"aria-hidden": "true"
|
|
14138
|
-
},
|
|
14166
|
+
}, Bh = /* @__PURE__ */ v({
|
|
14139
14167
|
__name: "Marquee",
|
|
14140
14168
|
props: {
|
|
14141
14169
|
direction: { default: "right" },
|
|
@@ -14149,7 +14177,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
14149
14177
|
t && (n.value = t.target.scrollWidth / 2);
|
|
14150
14178
|
});
|
|
14151
14179
|
let r = c(() => n.value > 0 ? n.value / e.speed : 0), i = c(() => !e.stagger || n.value === 0 ? "linear" : `steps(${Math.max(1, Math.round(n.value / 50))}, end)`);
|
|
14152
|
-
return (a, o) => (R(), d("div",
|
|
14180
|
+
return (a, o) => (R(), d("div", Lh, [f("div", {
|
|
14153
14181
|
ref_key: "trackRef",
|
|
14154
14182
|
ref: t,
|
|
14155
14183
|
class: "marquee-track",
|
|
@@ -14159,9 +14187,9 @@ var Km = /* @__PURE__ */ v({
|
|
|
14159
14187
|
animationTimingFunction: i.value,
|
|
14160
14188
|
visibility: n.value > 0 ? "visible" : "hidden"
|
|
14161
14189
|
})
|
|
14162
|
-
}, [f("div",
|
|
14190
|
+
}, [f("div", Rh, [H(a.$slots, "default")]), f("div", zh, [H(a.$slots, "default")])], 4)]));
|
|
14163
14191
|
}
|
|
14164
|
-
}),
|
|
14192
|
+
}), Vh = Symbol("menubar"), Hh = /* @__PURE__ */ v({
|
|
14165
14193
|
__name: "Menubar",
|
|
14166
14194
|
props: {
|
|
14167
14195
|
inline: { type: Boolean },
|
|
@@ -14197,7 +14225,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
14197
14225
|
function o() {
|
|
14198
14226
|
n.value = null;
|
|
14199
14227
|
}
|
|
14200
|
-
return re(
|
|
14228
|
+
return re(Vh, {
|
|
14201
14229
|
openIndex: n,
|
|
14202
14230
|
register: i,
|
|
14203
14231
|
open: a,
|
|
@@ -14207,10 +14235,10 @@ var Km = /* @__PURE__ */ v({
|
|
|
14207
14235
|
_: 3
|
|
14208
14236
|
}, 16));
|
|
14209
14237
|
}
|
|
14210
|
-
}),
|
|
14238
|
+
}), Uh = /* @__PURE__ */ v({
|
|
14211
14239
|
__name: "MenuItem",
|
|
14212
14240
|
setup(e) {
|
|
14213
|
-
let { openIndex: t, register: r, open: i, close: a } = T(
|
|
14241
|
+
let { openIndex: t, register: r, open: i, close: a } = T(Vh), o = r(), s = J("trigger"), c = () => t.value === o;
|
|
14214
14242
|
function l() {
|
|
14215
14243
|
c() ? a() : i(o);
|
|
14216
14244
|
}
|
|
@@ -14235,7 +14263,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
14235
14263
|
"onClickOutside"
|
|
14236
14264
|
])], 64));
|
|
14237
14265
|
}
|
|
14238
|
-
}),
|
|
14266
|
+
}), Wh = { class: "typeset" }, Gh = /* @__PURE__ */ v({
|
|
14239
14267
|
__name: "Confirm",
|
|
14240
14268
|
props: {
|
|
14241
14269
|
title: {},
|
|
@@ -14274,7 +14302,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
14274
14302
|
open: n.open,
|
|
14275
14303
|
onClose: t[2] ||= (e) => r("close")
|
|
14276
14304
|
}), {
|
|
14277
|
-
default: X(() => [f("div",
|
|
14305
|
+
default: X(() => [f("div", Wh, [H(e.$slots, "default")])]),
|
|
14278
14306
|
footer: X(() => [g(or, { "x-end": "" }, {
|
|
14279
14307
|
default: X(() => [n.showCancel ? (R(), l(gr, {
|
|
14280
14308
|
key: 0,
|
|
@@ -14295,7 +14323,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
14295
14323
|
_: 3
|
|
14296
14324
|
}, 16, ["open"]));
|
|
14297
14325
|
}
|
|
14298
|
-
}),
|
|
14326
|
+
}), Kh = { class: "vui-otp" }, qh = ["inputmode", "maxlength"], Jh = { class: "vui-otp-items" }, Yh = /* @__PURE__ */ v({
|
|
14299
14327
|
__name: "OTP",
|
|
14300
14328
|
props: /* @__PURE__ */ k({
|
|
14301
14329
|
mode: { default: "both" },
|
|
@@ -14359,7 +14387,7 @@ var Km = /* @__PURE__ */ v({
|
|
|
14359
14387
|
let n = e.target.value;
|
|
14360
14388
|
n && g(n);
|
|
14361
14389
|
}
|
|
14362
|
-
return (t, n) => (R(), d("div",
|
|
14390
|
+
return (t, n) => (R(), d("div", Kh, [f("input", {
|
|
14363
14391
|
ref: "inputRef",
|
|
14364
14392
|
type: "text",
|
|
14365
14393
|
inputmode: e.mode === "num" ? "numeric" : "text",
|
|
@@ -14374,9 +14402,9 @@ var Km = /* @__PURE__ */ v({
|
|
|
14374
14402
|
onPaste: v,
|
|
14375
14403
|
onBlur: n[0] ||= (e) => i.value = -1,
|
|
14376
14404
|
onFocus: n[1] ||= (e) => i.value = Math.min(r.value.length, l.value - 1)
|
|
14377
|
-
}, null, 40,
|
|
14405
|
+
}, null, 40, qh), f("div", Jh, [H(t.$slots, "default")])]));
|
|
14378
14406
|
}
|
|
14379
|
-
}),
|
|
14407
|
+
}), Xh = /* @__PURE__ */ v({
|
|
14380
14408
|
__name: "OTPItem",
|
|
14381
14409
|
props: { i: {} },
|
|
14382
14410
|
setup(e) {
|
|
@@ -14386,10 +14414,10 @@ var Km = /* @__PURE__ */ v({
|
|
|
14386
14414
|
"has-value": q(r).trim().at(t.i)
|
|
14387
14415
|
}]) }, [o[0] ||= f("div", { class: "blinker" }, null, -1), q(r).trim().at(t.i) ? (R(), d(n, { key: 0 }, [q(a) ? (R(), l(q(Fe), { key: 0 })) : (R(), d(n, { key: 1 }, [h(G(q(r).at(t.i)), 1)], 64))], 64)) : u("", !0)], 2));
|
|
14388
14416
|
}
|
|
14389
|
-
}),
|
|
14417
|
+
}), Zh = { class: "overflow-track" }, Qh = {
|
|
14390
14418
|
ref: "content",
|
|
14391
14419
|
class: "overflow-content"
|
|
14392
|
-
},
|
|
14420
|
+
}, $h = /* @__PURE__ */ v({
|
|
14393
14421
|
__name: "Overflow",
|
|
14394
14422
|
props: {
|
|
14395
14423
|
horizontal: { type: Boolean },
|
|
@@ -14405,18 +14433,18 @@ var Km = /* @__PURE__ */ v({
|
|
|
14405
14433
|
"is-horizontal": e.horizontal,
|
|
14406
14434
|
"is-vertical": !e.horizontal,
|
|
14407
14435
|
"is-snap": e.snap
|
|
14408
|
-
}]) }, [f("div",
|
|
14436
|
+
}]) }, [f("div", Zh, [
|
|
14409
14437
|
f("div", { class: M(["overflow-shadow overflow-shadow-left", { visible: i.value }]) }, null, 2),
|
|
14410
14438
|
f("div", { class: M(["overflow-shadow overflow-shadow-right", { visible: a.value }]) }, null, 2),
|
|
14411
14439
|
f("div", { class: M(["overflow-shadow overflow-shadow-top", { visible: o.value }]) }, null, 2),
|
|
14412
14440
|
f("div", { class: M(["overflow-shadow overflow-shadow-bottom", { visible: s.value }]) }, null, 2),
|
|
14413
|
-
f("div",
|
|
14441
|
+
f("div", Qh, [H(t.$slots, "default")], 512)
|
|
14414
14442
|
])], 2));
|
|
14415
14443
|
}
|
|
14416
14444
|
});
|
|
14417
14445
|
//#endregion
|
|
14418
14446
|
//#region src/components/Pagination/pagination.ts
|
|
14419
|
-
function
|
|
14447
|
+
function eg(e, t = 1, n = 15, r = 5) {
|
|
14420
14448
|
let i = Math.ceil(e / n);
|
|
14421
14449
|
t < 1 ? t = 1 : t > i && (t = i);
|
|
14422
14450
|
let a, o;
|
|
@@ -14440,7 +14468,7 @@ function Xh(e, t = 1, n = 15, r = 5) {
|
|
|
14440
14468
|
}
|
|
14441
14469
|
//#endregion
|
|
14442
14470
|
//#region src/components/Tooltip/Tooltip.vue?vue&type=script&setup=true&lang.ts
|
|
14443
|
-
var
|
|
14471
|
+
var tg = ["aria-describedby"], ng = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
14444
14472
|
inheritAttrs: !1,
|
|
14445
14473
|
__name: "Tooltip",
|
|
14446
14474
|
props: {
|
|
@@ -14460,7 +14488,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14460
14488
|
"aria-describedby": q(a),
|
|
14461
14489
|
onMouseenter: s[0] ||= (e) => l(!0),
|
|
14462
14490
|
onMouseleave: s[1] ||= (e) => l(!1)
|
|
14463
|
-
}, [H(r.$slots, "default", {}, void 0, !0)], 40,
|
|
14491
|
+
}, [H(r.$slots, "default", {}, void 0, !0)], 40, tg), g(yf, A({
|
|
14464
14492
|
id: q(a),
|
|
14465
14493
|
visible: i.value,
|
|
14466
14494
|
anchor: o.value,
|
|
@@ -14479,7 +14507,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14479
14507
|
"placement"
|
|
14480
14508
|
])], 64));
|
|
14481
14509
|
}
|
|
14482
|
-
}), [["__scopeId", "data-v-865326ff"]]),
|
|
14510
|
+
}), [["__scopeId", "data-v-865326ff"]]), rg = /* @__PURE__ */ v({
|
|
14483
14511
|
__name: "Pagination",
|
|
14484
14512
|
props: {
|
|
14485
14513
|
numbers: {
|
|
@@ -14512,7 +14540,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14512
14540
|
gap: "xxs"
|
|
14513
14541
|
}, {
|
|
14514
14542
|
default: X(() => [
|
|
14515
|
-
H(e.$slots, "start", {}, () => [r.firstLast ? (R(), l(
|
|
14543
|
+
H(e.$slots, "start", {}, () => [r.firstLast ? (R(), l(ng, { key: 0 }, {
|
|
14516
14544
|
tooltip: X(() => [...t[2] ||= [f("p", null, "First page", -1)]]),
|
|
14517
14545
|
default: X(() => [g(gr, {
|
|
14518
14546
|
plain: "",
|
|
@@ -14528,7 +14556,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14528
14556
|
H(e.$slots, "prev", {
|
|
14529
14557
|
disabled: o.value,
|
|
14530
14558
|
setPage: p
|
|
14531
|
-
}, () => [r.prevNext ? (R(), l(
|
|
14559
|
+
}, () => [r.prevNext ? (R(), l(ng, { key: 0 }, {
|
|
14532
14560
|
tooltip: X(() => [...t[3] ||= [f("p", null, "Previous page", -1)]]),
|
|
14533
14561
|
default: X(() => [g(gr, {
|
|
14534
14562
|
plain: "",
|
|
@@ -14560,7 +14588,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14560
14588
|
H(e.$slots, "next", {
|
|
14561
14589
|
disabled: a.value,
|
|
14562
14590
|
setPage: s
|
|
14563
|
-
}, () => [r.prevNext ? (R(), l(
|
|
14591
|
+
}, () => [r.prevNext ? (R(), l(ng, { key: 0 }, {
|
|
14564
14592
|
tooltip: X(() => [...t[4] ||= [f("p", null, "Next page", -1)]]),
|
|
14565
14593
|
default: X(() => [g(gr, {
|
|
14566
14594
|
plain: "",
|
|
@@ -14573,7 +14601,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14573
14601
|
}, 8, ["disabled"])]),
|
|
14574
14602
|
_: 1
|
|
14575
14603
|
})) : u("", !0)]),
|
|
14576
|
-
H(e.$slots, "end", {}, () => [r.firstLast ? (R(), l(
|
|
14604
|
+
H(e.$slots, "end", {}, () => [r.firstLast ? (R(), l(ng, { key: 0 }, {
|
|
14577
14605
|
tooltip: X(() => [...t[5] ||= [f("p", null, "Last page", -1)]]),
|
|
14578
14606
|
default: X(() => [g(gr, {
|
|
14579
14607
|
plain: "",
|
|
@@ -14590,7 +14618,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14590
14618
|
_: 3
|
|
14591
14619
|
}));
|
|
14592
14620
|
}
|
|
14593
|
-
}),
|
|
14621
|
+
}), ig = ["aria-expanded", "aria-controls"], ag = /* @__PURE__ */ v({
|
|
14594
14622
|
inheritAttrs: !1,
|
|
14595
14623
|
__name: "PopoutHover",
|
|
14596
14624
|
props: {
|
|
@@ -14632,7 +14660,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14632
14660
|
onMouseleave: a[1] ||= (e) => u(!1),
|
|
14633
14661
|
onFocusin: a[2] ||= (e) => u(!0),
|
|
14634
14662
|
onFocusout: l
|
|
14635
|
-
}, [H(i.$slots, "trigger")], 40,
|
|
14663
|
+
}, [H(i.$slots, "trigger")], 40, ig), g(yf, A({
|
|
14636
14664
|
id: q(o),
|
|
14637
14665
|
ref: "popoutRef"
|
|
14638
14666
|
}, {
|
|
@@ -14657,7 +14685,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14657
14685
|
"leave-delay"
|
|
14658
14686
|
])], 64));
|
|
14659
14687
|
}
|
|
14660
|
-
}),
|
|
14688
|
+
}), og = /* @__PURE__ */ v({
|
|
14661
14689
|
__name: "Progress",
|
|
14662
14690
|
props: /* @__PURE__ */ k({
|
|
14663
14691
|
fake: { type: Boolean },
|
|
@@ -14697,18 +14725,18 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14697
14725
|
})
|
|
14698
14726
|
}, null, 4)], 2));
|
|
14699
14727
|
}
|
|
14700
|
-
}),
|
|
14728
|
+
}), sg = [
|
|
14701
14729
|
"id",
|
|
14702
14730
|
"value",
|
|
14703
14731
|
"checked",
|
|
14704
14732
|
"disabled"
|
|
14705
|
-
],
|
|
14733
|
+
], cg = ["for"], lg = { class: "vui-radio-icon" }, ug = {
|
|
14706
14734
|
key: 0,
|
|
14707
14735
|
class: "vui-radio-content"
|
|
14708
|
-
},
|
|
14736
|
+
}, dg = {
|
|
14709
14737
|
key: 1,
|
|
14710
14738
|
class: "vui-radio-content"
|
|
14711
|
-
},
|
|
14739
|
+
}, fg = /* @__PURE__ */ v({
|
|
14712
14740
|
__name: "Radio",
|
|
14713
14741
|
props: /* @__PURE__ */ k({
|
|
14714
14742
|
label: {},
|
|
@@ -14733,9 +14761,9 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14733
14761
|
value: e.value,
|
|
14734
14762
|
checked: i.value,
|
|
14735
14763
|
disabled: e.disabled
|
|
14736
|
-
}, null, 8,
|
|
14764
|
+
}, null, 8, sg), [[_e, n.value]]), f("label", { for: q(r) }, [f("span", lg, [i.value ? (R(), l(q(nt), { key: 1 })) : (R(), l(q(Ke), { key: 0 }))]), t.default ? (R(), d("div", dg, [H(a.$slots, "default")])) : (R(), d("p", ug, G(e.label || e.value), 1))], 8, cg)], 2));
|
|
14737
14765
|
}
|
|
14738
|
-
}),
|
|
14766
|
+
}), pg = /* @__PURE__ */ v({
|
|
14739
14767
|
__name: "RadioGroup",
|
|
14740
14768
|
props: /* @__PURE__ */ k({
|
|
14741
14769
|
disabled: { type: Boolean },
|
|
@@ -14776,11 +14804,11 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14776
14804
|
_: 1
|
|
14777
14805
|
}, 16)]));
|
|
14778
14806
|
}
|
|
14779
|
-
}),
|
|
14807
|
+
}), mg = [
|
|
14780
14808
|
"data-handle-index",
|
|
14781
14809
|
"onDblclick",
|
|
14782
14810
|
"onFocus"
|
|
14783
|
-
],
|
|
14811
|
+
], hg = /* @__PURE__ */ v({
|
|
14784
14812
|
__name: "Resizable",
|
|
14785
14813
|
props: {
|
|
14786
14814
|
vertical: { type: Boolean },
|
|
@@ -14840,9 +14868,9 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14840
14868
|
onDblclick: (e) => y(t),
|
|
14841
14869
|
onFocus: (e) => o.value = t,
|
|
14842
14870
|
onBlur: r[0] ||= (e) => o.value = -1
|
|
14843
|
-
}, null, 40,
|
|
14871
|
+
}, null, 40, mg)) : u("", !0)], 64))), 128))], 2));
|
|
14844
14872
|
}
|
|
14845
|
-
}),
|
|
14873
|
+
}), gg = ["name"], _g = /* @__PURE__ */ v({
|
|
14846
14874
|
__name: "Tab",
|
|
14847
14875
|
props: {
|
|
14848
14876
|
disabled: { type: Boolean },
|
|
@@ -14854,16 +14882,16 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14854
14882
|
class: M(["vui-tab", { disabled: t.disabled }]),
|
|
14855
14883
|
role: "tab",
|
|
14856
14884
|
name: e.value
|
|
14857
|
-
}, [H(n.$slots, "default", {}, () => [h(G(t.value), 1)])], 10,
|
|
14885
|
+
}, [H(n.$slots, "default", {}, () => [h(G(t.value), 1)])], 10, gg));
|
|
14858
14886
|
}
|
|
14859
|
-
}),
|
|
14887
|
+
}), vg = {
|
|
14860
14888
|
key: 0,
|
|
14861
14889
|
class: "flex-1"
|
|
14862
|
-
},
|
|
14890
|
+
}, yg = {
|
|
14863
14891
|
key: 0,
|
|
14864
14892
|
ref: "underline",
|
|
14865
14893
|
class: "vui-tab-underline"
|
|
14866
|
-
},
|
|
14894
|
+
}, bg = /* @__PURE__ */ v({
|
|
14867
14895
|
__name: "Tabs",
|
|
14868
14896
|
props: /* @__PURE__ */ k({
|
|
14869
14897
|
variant: { default: "default" },
|
|
@@ -14909,18 +14937,18 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14909
14937
|
class: M({ active: e.props.value === r.value }),
|
|
14910
14938
|
onClick: (t) => r.value = e.props.value
|
|
14911
14939
|
}, null, 8, ["class", "onClick"]))), 128)),
|
|
14912
|
-
t.$slots.end ? (R(), d(n, { key: 0 }, [e.expand ? u("", !0) : (R(), d("div",
|
|
14940
|
+
t.$slots.end ? (R(), d(n, { key: 0 }, [e.expand ? u("", !0) : (R(), d("div", vg)), H(t.$slots, "end")], 64)) : u("", !0),
|
|
14913
14941
|
g(i, {
|
|
14914
14942
|
name: e.transitionName === "none" ? void 0 : e.transitionName,
|
|
14915
14943
|
css: e.transitionName !== "none",
|
|
14916
14944
|
appear: ""
|
|
14917
14945
|
}, {
|
|
14918
|
-
default: X(() => [r.value ? (R(), d("div",
|
|
14946
|
+
default: X(() => [r.value ? (R(), d("div", yg, null, 512)) : u("", !0)]),
|
|
14919
14947
|
_: 1
|
|
14920
14948
|
}, 8, ["name", "css"])
|
|
14921
14949
|
], 2));
|
|
14922
14950
|
}
|
|
14923
|
-
}),
|
|
14951
|
+
}), xg = { class: "view-wrap" }, Sg = .33, Cg = /* @__PURE__ */ v({
|
|
14924
14952
|
__name: "ViewPanel",
|
|
14925
14953
|
props: { panel: {} },
|
|
14926
14954
|
setup(e) {
|
|
@@ -14936,7 +14964,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14936
14964
|
a.value = e.clientX > n.left + n.width / 2 ? t + 1 : t;
|
|
14937
14965
|
}
|
|
14938
14966
|
let m = B(0), _ = c(() => m.value > 0), { elementX: v, elementY: y, elementWidth: b, elementHeight: x } = xn(J("contentRef"), { handleOutside: !1 }), S = c(() => {
|
|
14939
|
-
if (!(!v.value || !y.value || !b.value || !x.value)) return v.value < b.value *
|
|
14967
|
+
if (!(!v.value || !y.value || !b.value || !x.value)) return v.value < b.value * Sg ? "left" : v.value > b.value * (1 - Sg) ? "right" : y.value < x.value * Sg ? "top" : y.value > x.value * (1 - Sg) ? "bottom" : "center";
|
|
14940
14968
|
}), { startDrag: C, handleDrag: w, handleSplit: E, peekDragTab: D, isDragFromPanel: O } = T("$vrp");
|
|
14941
14969
|
function k(e, n) {
|
|
14942
14970
|
C(t.panel, n);
|
|
@@ -14951,11 +14979,11 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14951
14979
|
!n || n === "center" ? w(t.panel, t.panel.tabs.length) : E(t.panel, n), e && (r.value = e.path);
|
|
14952
14980
|
}
|
|
14953
14981
|
let N = c(() => t.panel.tabs.find((e) => e.path === r.value));
|
|
14954
|
-
return (c, v) => (R(), d("div",
|
|
14982
|
+
return (c, v) => (R(), d("div", xg, [g(jd, {
|
|
14955
14983
|
padding: !1,
|
|
14956
14984
|
"header-separator": ""
|
|
14957
14985
|
}, {
|
|
14958
|
-
header: X(() => [g(
|
|
14986
|
+
header: X(() => [g(bg, {
|
|
14959
14987
|
modelValue: r.value,
|
|
14960
14988
|
"onUpdate:modelValue": v[0] ||= (e) => r.value = e,
|
|
14961
14989
|
variant: "filled",
|
|
@@ -14964,7 +14992,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
14964
14992
|
onDragover: v[3] ||= we(() => {}, ["prevent"]),
|
|
14965
14993
|
onDrop: v[4] ||= we((e) => A(), ["prevent"])
|
|
14966
14994
|
}, {
|
|
14967
|
-
default: X(() => [(R(!0), d(n, null, V(e.panel.tabs, (t, n) => (R(), l(
|
|
14995
|
+
default: X(() => [(R(!0), d(n, null, V(e.panel.tabs, (t, n) => (R(), l(_g, {
|
|
14968
14996
|
key: t.path,
|
|
14969
14997
|
value: t.path,
|
|
14970
14998
|
draggable: !0,
|
|
@@ -15000,7 +15028,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15000
15028
|
_: 3
|
|
15001
15029
|
})]));
|
|
15002
15030
|
}
|
|
15003
|
-
}),
|
|
15031
|
+
}), wg = /* @__PURE__ */ v({
|
|
15004
15032
|
__name: "ResizableView",
|
|
15005
15033
|
props: {
|
|
15006
15034
|
modelValue: { default: [] },
|
|
@@ -15087,22 +15115,22 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15087
15115
|
handleSplit: v,
|
|
15088
15116
|
peekDragTab: y,
|
|
15089
15117
|
isDragFromPanel: b
|
|
15090
|
-
}), (e, i) => (R(), l(
|
|
15118
|
+
}), (e, i) => (R(), l(hg, {
|
|
15091
15119
|
"hide-handles": "",
|
|
15092
15120
|
class: "vui-resizable-view"
|
|
15093
15121
|
}, {
|
|
15094
|
-
default: X(() => [(R(!0), d(n, null, V(r.value, (r) => (R(), d(n, { key: s(r) }, [Array.isArray(r) ? (R(), l(
|
|
15122
|
+
default: X(() => [(R(!0), d(n, null, V(r.value, (r) => (R(), d(n, { key: s(r) }, [Array.isArray(r) ? (R(), l(hg, {
|
|
15095
15123
|
key: 0,
|
|
15096
15124
|
"hide-handles": "",
|
|
15097
15125
|
class: "nested-view",
|
|
15098
15126
|
vertical: ""
|
|
15099
15127
|
}, {
|
|
15100
|
-
default: X(() => [(R(!0), d(n, null, V(r, (r) => (R(), d(n, { key: s(r) }, [Array.isArray(r) ? (R(), l(
|
|
15128
|
+
default: X(() => [(R(!0), d(n, null, V(r, (r) => (R(), d(n, { key: s(r) }, [Array.isArray(r) ? (R(), l(hg, {
|
|
15101
15129
|
key: 0,
|
|
15102
15130
|
"hide-handles": "",
|
|
15103
15131
|
class: "nested-view"
|
|
15104
15132
|
}, {
|
|
15105
|
-
default: X(() => [(R(!0), d(n, null, V(r, (n) => (R(), l(
|
|
15133
|
+
default: X(() => [(R(!0), d(n, null, V(r, (n) => (R(), l(Cg, {
|
|
15106
15134
|
key: s(n),
|
|
15107
15135
|
panel: n
|
|
15108
15136
|
}, m({ _: 2 }, [t.tab ? {
|
|
@@ -15111,7 +15139,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15111
15139
|
key: "0"
|
|
15112
15140
|
} : void 0]), 1032, ["panel"]))), 128))]),
|
|
15113
15141
|
_: 2
|
|
15114
|
-
}, 1024)) : (R(), l(
|
|
15142
|
+
}, 1024)) : (R(), l(Cg, {
|
|
15115
15143
|
key: 1,
|
|
15116
15144
|
panel: r
|
|
15117
15145
|
}, m({ _: 2 }, [t.tab ? {
|
|
@@ -15120,7 +15148,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15120
15148
|
key: "0"
|
|
15121
15149
|
} : void 0]), 1032, ["panel"]))], 64))), 128))]),
|
|
15122
15150
|
_: 2
|
|
15123
|
-
}, 1024)) : (R(), l(
|
|
15151
|
+
}, 1024)) : (R(), l(Cg, {
|
|
15124
15152
|
key: 1,
|
|
15125
15153
|
panel: r
|
|
15126
15154
|
}, m({ _: 2 }, [t.tab ? {
|
|
@@ -15131,23 +15159,23 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15131
15159
|
_: 3
|
|
15132
15160
|
}));
|
|
15133
15161
|
}
|
|
15134
|
-
}),
|
|
15162
|
+
}), Tg = { class: "vui-input vui-select-trigger-content" }, Eg = ["for"], Dg = {
|
|
15135
15163
|
key: 1,
|
|
15136
15164
|
class: "vui-input-hint"
|
|
15137
|
-
},
|
|
15165
|
+
}, Og = [
|
|
15138
15166
|
"id",
|
|
15139
15167
|
"disabled",
|
|
15140
15168
|
"onClick"
|
|
15141
|
-
],
|
|
15169
|
+
], kg = {
|
|
15142
15170
|
key: 1,
|
|
15143
15171
|
class: "vue-select-no-results"
|
|
15144
|
-
},
|
|
15172
|
+
}, Ag = {
|
|
15145
15173
|
key: 0,
|
|
15146
15174
|
class: "vui-input-limit"
|
|
15147
|
-
},
|
|
15175
|
+
}, jg = {
|
|
15148
15176
|
key: 1,
|
|
15149
15177
|
class: "vui-input-errors"
|
|
15150
|
-
},
|
|
15178
|
+
}, Mg = /* @__PURE__ */ v({
|
|
15151
15179
|
__name: "Select",
|
|
15152
15180
|
props: /* @__PURE__ */ k({
|
|
15153
15181
|
single: {
|
|
@@ -15223,12 +15251,12 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15223
15251
|
"no-mobile-drawer": e.noMobileDrawer,
|
|
15224
15252
|
onClose: m[1] ||= (e) => i.value?.focus({ preventScroll: !0 })
|
|
15225
15253
|
}, {
|
|
15226
|
-
trigger: X(({ toggle: t, isOpen: i }) => [f("div",
|
|
15254
|
+
trigger: X(({ toggle: t, isOpen: i }) => [f("div", Tg, [
|
|
15227
15255
|
e.label ? (R(), d("label", {
|
|
15228
15256
|
key: 0,
|
|
15229
15257
|
for: q(v)
|
|
15230
|
-
}, G(e.label), 9,
|
|
15231
|
-
e.hint ? (R(), d("p",
|
|
15258
|
+
}, G(e.label), 9, Eg)) : u("", !0),
|
|
15259
|
+
e.hint ? (R(), d("p", Dg, G(e.hint), 1)) : u("", !0),
|
|
15232
15260
|
f("button", {
|
|
15233
15261
|
id: q(v),
|
|
15234
15262
|
ref: "trigger",
|
|
@@ -15247,14 +15275,14 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15247
15275
|
_: 1
|
|
15248
15276
|
})], 64)) : u("", !0),
|
|
15249
15277
|
i ? (R(), l(q(He), { key: 1 })) : (R(), l(q(ze), { key: 2 }))
|
|
15250
|
-
], 10,
|
|
15278
|
+
], 10, Og)
|
|
15251
15279
|
])]),
|
|
15252
15280
|
default: X(({ close: t, isOpen: i }) => [
|
|
15253
15281
|
e.search ? (R(), l(ah, {
|
|
15254
15282
|
key: 0,
|
|
15255
15283
|
sticky: ""
|
|
15256
15284
|
}, {
|
|
15257
|
-
default: X(() => [g(
|
|
15285
|
+
default: X(() => [g(vh, {
|
|
15258
15286
|
modelValue: o.value,
|
|
15259
15287
|
"onUpdate:modelValue": m[0] ||= (e) => o.value = e,
|
|
15260
15288
|
placeholder: "Search...",
|
|
@@ -15266,7 +15294,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15266
15294
|
}, 8, ["modelValue", "focus"])]),
|
|
15267
15295
|
_: 2
|
|
15268
15296
|
}, 1024)) : u("", !0),
|
|
15269
|
-
s.value.length === 0 ? (R(), d("p",
|
|
15297
|
+
s.value.length === 0 ? (R(), d("p", kg, " No results... ")) : u("", !0),
|
|
15270
15298
|
(R(!0), d(n, null, V(s.value, (n) => (R(), l(rh, {
|
|
15271
15299
|
key: n.value,
|
|
15272
15300
|
class: M({ selected: r.value?.find((e) => e.value === n.value) }),
|
|
@@ -15284,14 +15312,14 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15284
15312
|
"transition-name",
|
|
15285
15313
|
"no-mobile-drawer"
|
|
15286
15314
|
]),
|
|
15287
|
-
e.maxActiveOptions && !e.single ? (R(), d("p",
|
|
15288
|
-
e.errors.length > 0 ? (R(), d("ul",
|
|
15315
|
+
e.maxActiveOptions && !e.single ? (R(), d("p", Ag, G(`${r.value ? r.value.length : 0}/${e.maxActiveOptions}`), 1)) : u("", !0),
|
|
15316
|
+
e.errors.length > 0 ? (R(), d("ul", jg, [(R(!0), d(n, null, V(e.errors, (e) => (R(), d("li", { key: e }, G(e), 1))), 128))])) : u("", !0)
|
|
15289
15317
|
], 6));
|
|
15290
15318
|
}
|
|
15291
|
-
}),
|
|
15319
|
+
}), Ng = {
|
|
15292
15320
|
key: 0,
|
|
15293
15321
|
class: "vui-sheet-shell"
|
|
15294
|
-
},
|
|
15322
|
+
}, Pg = 16, Fg = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
15295
15323
|
inheritAttrs: !1,
|
|
15296
15324
|
__name: "Sheet",
|
|
15297
15325
|
props: {
|
|
@@ -15329,10 +15357,10 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15329
15357
|
if (e.position === "left" || e.position === "right") return { maxWidth: Xn(e.size) };
|
|
15330
15358
|
}), h = c(() => {
|
|
15331
15359
|
switch (e.position) {
|
|
15332
|
-
case "left": return `translate(-${
|
|
15333
|
-
case "top": return `translate(0, -${
|
|
15334
|
-
case "bottom": return `translate(0, ${
|
|
15335
|
-
default: return `translate(${
|
|
15360
|
+
case "left": return `translate(-${Pg}px, 0)`;
|
|
15361
|
+
case "top": return `translate(0, -${Pg}px)`;
|
|
15362
|
+
case "bottom": return `translate(0, ${Pg}px)`;
|
|
15363
|
+
default: return `translate(${Pg}px, 0)`;
|
|
15336
15364
|
}
|
|
15337
15365
|
});
|
|
15338
15366
|
return (t, c) => (R(), l(r, { to: "body" }, [o.value ? (R(), l($d, {
|
|
@@ -15345,7 +15373,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15345
15373
|
css: e.transitionName !== "none",
|
|
15346
15374
|
onAfterLeave: f
|
|
15347
15375
|
}, {
|
|
15348
|
-
default: X(() => [e.open ? (R(), d("div",
|
|
15376
|
+
default: X(() => [e.open ? (R(), d("div", Ng, [g(jd, A({
|
|
15349
15377
|
class: ["vui-sheet", [`vui-sheet-position-${e.position}`]],
|
|
15350
15378
|
style: p.value
|
|
15351
15379
|
}, {
|
|
@@ -15384,13 +15412,13 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15384
15412
|
_: 3
|
|
15385
15413
|
})) : u("", !0)]));
|
|
15386
15414
|
}
|
|
15387
|
-
}), [["__scopeId", "data-v-d0fc93ff"]]),
|
|
15415
|
+
}), [["__scopeId", "data-v-d0fc93ff"]]), Ig = {
|
|
15388
15416
|
key: 0,
|
|
15389
15417
|
class: "vui-sidebar-header"
|
|
15390
|
-
},
|
|
15418
|
+
}, Lg = { class: "vui-sidebar-content" }, Rg = { class: "vui-sidebar-content-wrap" }, zg = {
|
|
15391
15419
|
key: 1,
|
|
15392
15420
|
class: "vui-sidebar-footer"
|
|
15393
|
-
},
|
|
15421
|
+
}, Bg = 32, Vg = /* @__PURE__ */ v({
|
|
15394
15422
|
__name: "Sidebar",
|
|
15395
15423
|
props: /* @__PURE__ */ k({
|
|
15396
15424
|
width: { default: 224 },
|
|
@@ -15422,7 +15450,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15422
15450
|
return F(() => {
|
|
15423
15451
|
t.appear && r.value && (r.value = !1);
|
|
15424
15452
|
}), Rt(h, (e) => {
|
|
15425
|
-
!t.appear || e <=
|
|
15453
|
+
!t.appear || e <= Bg && e >= 0 && m.value || (e <= Bg && e >= 0 && !r.value && !m.value ? l() : m.value && p(), (e > Bg + (t.mini ? 65 : t.floaty ? t.width : t.width - (Un(a.value) ? 0 : Number(a.value?.replace("px", "")))) || e < 0) && r.value && (r.value = !1));
|
|
15426
15454
|
}, {
|
|
15427
15455
|
throttle: 100,
|
|
15428
15456
|
immediate: !0
|
|
@@ -15439,21 +15467,21 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15439
15467
|
}]),
|
|
15440
15468
|
style: P({ width: `${t.mini ? 65 : t.width}px` })
|
|
15441
15469
|
}, [
|
|
15442
|
-
q(i).header ? (R(), d("div",
|
|
15443
|
-
f("div",
|
|
15444
|
-
q(i).footer ? (R(), d("div",
|
|
15470
|
+
q(i).header ? (R(), d("div", Ig, [H(e.$slots, "header", N(S(s.value)))])) : u("", !0),
|
|
15471
|
+
f("div", Lg, [f("div", Rg, [H(e.$slots, "default", N(S(s.value)))])]),
|
|
15472
|
+
q(i).footer ? (R(), d("div", zg, [H(e.$slots, "footer", N(S(s.value)))])) : u("", !0)
|
|
15445
15473
|
], 6)], 6));
|
|
15446
15474
|
}
|
|
15447
|
-
}),
|
|
15475
|
+
}), Hg = "var(--border-radius-s)", Ug = /* @__PURE__ */ v({
|
|
15448
15476
|
__name: "Skeleton",
|
|
15449
15477
|
props: {
|
|
15450
|
-
radius: { default: () =>
|
|
15478
|
+
radius: { default: () => Hg },
|
|
15451
15479
|
width: { default: "100%" },
|
|
15452
15480
|
height: { default: "32px" },
|
|
15453
15481
|
circle: { type: Boolean }
|
|
15454
15482
|
},
|
|
15455
15483
|
setup(e) {
|
|
15456
|
-
let t = c(() => Xn(e.circle && e.radius ===
|
|
15484
|
+
let t = c(() => Xn(e.circle && e.radius === Hg ? 9999 : e.radius)), n = c(() => Xn(e.circle ? e.width || e.height : e.width)), r = c(() => Xn(e.circle && e.width || e.height));
|
|
15457
15485
|
return (e, i) => (R(), d("div", {
|
|
15458
15486
|
class: "vui-skeleton",
|
|
15459
15487
|
style: P({
|
|
@@ -15463,25 +15491,25 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15463
15491
|
})
|
|
15464
15492
|
}, null, 4));
|
|
15465
15493
|
}
|
|
15466
|
-
}),
|
|
15494
|
+
}), Wg = ["inert"], Gg = [
|
|
15467
15495
|
"aria-label",
|
|
15468
15496
|
"aria-disabled",
|
|
15469
15497
|
"aria-valuemin",
|
|
15470
15498
|
"aria-valuemax",
|
|
15471
15499
|
"aria-valuenow"
|
|
15472
|
-
],
|
|
15500
|
+
], Kg = [
|
|
15473
15501
|
"aria-label",
|
|
15474
15502
|
"aria-disabled",
|
|
15475
15503
|
"aria-valuemin",
|
|
15476
15504
|
"aria-valuemax",
|
|
15477
15505
|
"aria-valuenow"
|
|
15478
|
-
],
|
|
15506
|
+
], qg = [
|
|
15479
15507
|
"aria-label",
|
|
15480
15508
|
"aria-disabled",
|
|
15481
15509
|
"aria-valuemin",
|
|
15482
15510
|
"aria-valuemax",
|
|
15483
15511
|
"aria-valuenow"
|
|
15484
|
-
],
|
|
15512
|
+
], Jg = /* @__PURE__ */ v({
|
|
15485
15513
|
__name: "Slider",
|
|
15486
15514
|
props: /* @__PURE__ */ k({
|
|
15487
15515
|
min: { default: 0 },
|
|
@@ -15620,7 +15648,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15620
15648
|
onMousedown: s[0] ||= (e) => y(e, 0),
|
|
15621
15649
|
onTouchstart: s[1] ||= (e) => b(e, 0),
|
|
15622
15650
|
onKeydown: s[2] ||= (e) => C(e, 0)
|
|
15623
|
-
}, null, 44,
|
|
15651
|
+
}, null, 44, Gg), f("span", {
|
|
15624
15652
|
class: "vui-slider-handle",
|
|
15625
15653
|
tabindex: "0",
|
|
15626
15654
|
role: "slider",
|
|
@@ -15634,7 +15662,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15634
15662
|
onMousedown: s[3] ||= (e) => y(e, 1),
|
|
15635
15663
|
onTouchstart: s[4] ||= (e) => b(e, 1),
|
|
15636
15664
|
onKeydown: s[5] ||= (e) => C(e, 1)
|
|
15637
|
-
}, null, 44,
|
|
15665
|
+
}, null, 44, Kg)], 64)) : (R(), d("span", {
|
|
15638
15666
|
key: 1,
|
|
15639
15667
|
class: "vui-slider-handle",
|
|
15640
15668
|
tabindex: "0",
|
|
@@ -15649,24 +15677,24 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15649
15677
|
onMousedown: s[6] ||= (e) => y(e, 0),
|
|
15650
15678
|
onTouchstart: s[7] ||= (e) => b(e, 0),
|
|
15651
15679
|
onKeydown: s[8] ||= (e) => C(e)
|
|
15652
|
-
}, null, 44,
|
|
15680
|
+
}, null, 44, qg)),
|
|
15653
15681
|
e.steps ? (R(!0), d(n, { key: 2 }, V(e.steps + 1, (t) => (R(), d("div", {
|
|
15654
15682
|
key: t,
|
|
15655
15683
|
class: "vui-slider-step-indicator",
|
|
15656
15684
|
style: P({ left: `${(t - 1) / e.steps * 100}%` })
|
|
15657
15685
|
}, null, 4))), 128)) : u("", !0)
|
|
15658
|
-
], 10,
|
|
15686
|
+
], 10, Wg));
|
|
15659
15687
|
}
|
|
15660
|
-
}),
|
|
15688
|
+
}), Yg = ["id", "disabled"], Xg = ["for"], Zg = { class: "w-100" }, Qg = {
|
|
15661
15689
|
key: 0,
|
|
15662
15690
|
class: "vui-switch-content"
|
|
15663
|
-
},
|
|
15691
|
+
}, $g = {
|
|
15664
15692
|
key: 1,
|
|
15665
15693
|
class: "vui-switch-content"
|
|
15666
|
-
},
|
|
15694
|
+
}, e_ = {
|
|
15667
15695
|
key: 2,
|
|
15668
15696
|
class: "vui-hint mt-xxs block"
|
|
15669
|
-
},
|
|
15697
|
+
}, t_ = /* @__PURE__ */ v({
|
|
15670
15698
|
__name: "Switch",
|
|
15671
15699
|
props: /* @__PURE__ */ k({
|
|
15672
15700
|
label: {},
|
|
@@ -15691,22 +15719,22 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15691
15719
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
15692
15720
|
type: "checkbox",
|
|
15693
15721
|
disabled: e.disabled
|
|
15694
|
-
}, null, 8,
|
|
15722
|
+
}, null, 8, Yg), [[he, n.value]]), f("label", { for: q(r) }, [a[1] ||= f("div", { class: "vui-switch-icon" }, [f("span", { class: "vui-switch-indicator" })], -1), f("div", Zg, [!t.default && e.label ? (R(), d("p", Qg, G(e.label), 1)) : (R(), d("div", $g, [H(i.$slots, "default")])), e.hint ? (R(), d("p", e_, G(e.hint), 1)) : u("", !0)])], 8, Xg)], 2));
|
|
15695
15723
|
}
|
|
15696
|
-
}),
|
|
15724
|
+
}), n_ = {
|
|
15697
15725
|
key: 0,
|
|
15698
15726
|
ref: "context",
|
|
15699
15727
|
class: "vui-cell-context"
|
|
15700
|
-
},
|
|
15728
|
+
}, r_ = /* @__PURE__ */ v({
|
|
15701
15729
|
__name: "Cell",
|
|
15702
15730
|
setup(e) {
|
|
15703
15731
|
let t = me(), n = J("context"), r = c(() => !t.context || !window ? {} : { paddingRight: `${n.value?.getBoundingClientRect().width ?? 0}px` });
|
|
15704
|
-
return (e, t) => (R(), d("td", { style: P(r.value) }, [H(e.$slots, "default"), e.$slots.context ? (R(), d("div",
|
|
15732
|
+
return (e, t) => (R(), d("td", { style: P(r.value) }, [H(e.$slots, "default"), e.$slots.context ? (R(), d("div", n_, [H(e.$slots, "context")], 512)) : u("", !0)], 4));
|
|
15705
15733
|
}
|
|
15706
|
-
}),
|
|
15734
|
+
}), i_ = {
|
|
15707
15735
|
key: 0,
|
|
15708
15736
|
class: "vui-table-th-content"
|
|
15709
|
-
},
|
|
15737
|
+
}, a_ = /* @__PURE__ */ v({
|
|
15710
15738
|
__name: "Head",
|
|
15711
15739
|
props: {
|
|
15712
15740
|
header: {},
|
|
@@ -15729,7 +15757,7 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15729
15757
|
};
|
|
15730
15758
|
}
|
|
15731
15759
|
});
|
|
15732
|
-
return (e, r) => (R(), d("th", null, [t.header || e.$slots.default ? (R(), d("div",
|
|
15760
|
+
return (e, r) => (R(), d("th", null, [t.header || e.$slots.default ? (R(), d("div", i_, [H(e.$slots, "default", {}, () => [h(G(t.header?.label), 1)]), t.sort && t.header ? (R(), l(ng, {
|
|
15733
15761
|
key: 0,
|
|
15734
15762
|
placement: "top"
|
|
15735
15763
|
}, {
|
|
@@ -15748,8 +15776,8 @@ var Zh = ["aria-describedby"], Qh = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
|
15748
15776
|
_: 1
|
|
15749
15777
|
})) : u("", !0)])) : u("", !0)]));
|
|
15750
15778
|
}
|
|
15751
|
-
}),
|
|
15752
|
-
function
|
|
15779
|
+
}), o_ = Symbol("select-row-provide");
|
|
15780
|
+
function s_(e, t) {
|
|
15753
15781
|
let n = c(() => K(e)), r = B({
|
|
15754
15782
|
pagination: {
|
|
15755
15783
|
enabled: !1,
|
|
@@ -15758,7 +15786,7 @@ function r_(e, t) {
|
|
|
15758
15786
|
},
|
|
15759
15787
|
select: !1,
|
|
15760
15788
|
...t
|
|
15761
|
-
}), i = B(1), a = c(() =>
|
|
15789
|
+
}), i = B(1), a = c(() => eg(n.value.length, i.value, r.value.pagination?.perPage, r.value.pagination?.maxPages)), o = c(() => a.value.currentPage < a.value.endPage), s = c(() => a.value.currentPage > a.value.startPage), l = (e) => {
|
|
15762
15790
|
(e > i.value && o.value || e < i.value && s.value) && (i.value = e);
|
|
15763
15791
|
}, u = B({
|
|
15764
15792
|
key: void 0,
|
|
@@ -15803,7 +15831,7 @@ function r_(e, t) {
|
|
|
15803
15831
|
function S() {
|
|
15804
15832
|
_.value = /* @__PURE__ */ new Set();
|
|
15805
15833
|
}
|
|
15806
|
-
return re(
|
|
15834
|
+
return re(o_, {
|
|
15807
15835
|
selectedRows: _,
|
|
15808
15836
|
selectRow: y,
|
|
15809
15837
|
selectAllRows: x,
|
|
@@ -15830,10 +15858,10 @@ function r_(e, t) {
|
|
|
15830
15858
|
}
|
|
15831
15859
|
//#endregion
|
|
15832
15860
|
//#region src/components/Table/Root.vue?vue&type=script&setup=true&lang.ts
|
|
15833
|
-
var
|
|
15861
|
+
var c_ = { key: 0 }, l_ = {
|
|
15834
15862
|
key: 0,
|
|
15835
15863
|
class: "vui-table-pagination-wrap"
|
|
15836
|
-
},
|
|
15864
|
+
}, u_ = /* @__PURE__ */ v({
|
|
15837
15865
|
__name: "Root",
|
|
15838
15866
|
props: {
|
|
15839
15867
|
fixed: { type: Boolean },
|
|
@@ -15852,7 +15880,7 @@ var i_ = { key: 0 }, a_ = {
|
|
|
15852
15880
|
}
|
|
15853
15881
|
},
|
|
15854
15882
|
setup(e) {
|
|
15855
|
-
let t = T(
|
|
15883
|
+
let t = T(o_);
|
|
15856
15884
|
return (n, r) => (R(), d("div", { class: M(["vui-table-container", {
|
|
15857
15885
|
fixed: e.fixed,
|
|
15858
15886
|
nowrap: e.nowrap,
|
|
@@ -15860,12 +15888,12 @@ var i_ = { key: 0 }, a_ = {
|
|
|
15860
15888
|
"separated-rows": e.separateRows,
|
|
15861
15889
|
"separated-cells": e.separateCells,
|
|
15862
15890
|
"outer-border": e.outerBorder
|
|
15863
|
-
}]) }, [f("table", null, [n.$slots.header ? (R(), d("thead",
|
|
15891
|
+
}]) }, [f("table", null, [n.$slots.header ? (R(), d("thead", c_, [f("tr", null, [H(n.$slots, "header")])])) : u("", !0), f("tbody", null, [H(n.$slots, "body")])]), n.$slots.pagination ? (R(), d("div", l_, [H(n.$slots, "pagination")])) : u("", !0)], 2));
|
|
15864
15892
|
}
|
|
15865
|
-
}),
|
|
15893
|
+
}), d_ = /* @__PURE__ */ v({
|
|
15866
15894
|
__name: "SelectAll",
|
|
15867
15895
|
setup(e) {
|
|
15868
|
-
let { isSelectedAll: t, enabled: n, selectAllRows: r } = T(
|
|
15896
|
+
let { isSelectedAll: t, enabled: n, selectAllRows: r } = T(o_);
|
|
15869
15897
|
return (e, i) => q(n) ? (R(), d("th", {
|
|
15870
15898
|
key: 0,
|
|
15871
15899
|
class: M(["vui-table-interactive-cell", { selected: q(t) }])
|
|
@@ -15878,11 +15906,11 @@ var i_ = { key: 0 }, a_ = {
|
|
|
15878
15906
|
_: 1
|
|
15879
15907
|
})], 2)) : u("", !0);
|
|
15880
15908
|
}
|
|
15881
|
-
}),
|
|
15909
|
+
}), f_ = /* @__PURE__ */ v({
|
|
15882
15910
|
__name: "SelectRow",
|
|
15883
15911
|
props: { row: {} },
|
|
15884
15912
|
setup(e) {
|
|
15885
|
-
let t = e, { enabled: n, selectRow: r, selectedRows: i } = T(
|
|
15913
|
+
let t = e, { enabled: n, selectRow: r, selectedRows: i } = T(o_), a = c(() => Qn(i.value, t.row));
|
|
15886
15914
|
return (e, i) => q(n) ? (R(), d("td", {
|
|
15887
15915
|
key: 0,
|
|
15888
15916
|
class: M(["vui-table-interactive-cell", { selected: a.value }])
|
|
@@ -15895,20 +15923,20 @@ var i_ = { key: 0 }, a_ = {
|
|
|
15895
15923
|
_: 1
|
|
15896
15924
|
})], 2)) : u("", !0);
|
|
15897
15925
|
}
|
|
15898
|
-
}),
|
|
15899
|
-
Cell: () =>
|
|
15900
|
-
Head: () =>
|
|
15901
|
-
Root: () =>
|
|
15902
|
-
SelectAll: () =>
|
|
15903
|
-
SelectRow: () =>
|
|
15904
|
-
}),
|
|
15905
|
-
function
|
|
15926
|
+
}), p_ = /* @__PURE__ */ ke({
|
|
15927
|
+
Cell: () => r_,
|
|
15928
|
+
Head: () => a_,
|
|
15929
|
+
Root: () => u_,
|
|
15930
|
+
SelectAll: () => d_,
|
|
15931
|
+
SelectRow: () => f_
|
|
15932
|
+
}), m_ = B(/* @__PURE__ */ new Map()), h_ = 0;
|
|
15933
|
+
function g_(e, t) {
|
|
15906
15934
|
let n = {
|
|
15907
15935
|
persist: !1,
|
|
15908
15936
|
timeout: 7e3,
|
|
15909
15937
|
...t
|
|
15910
15938
|
}, r = {
|
|
15911
|
-
id:
|
|
15939
|
+
id: h_,
|
|
15912
15940
|
title: e,
|
|
15913
15941
|
persist: n.persist,
|
|
15914
15942
|
description: n.description,
|
|
@@ -15918,19 +15946,19 @@ function f_(e, t) {
|
|
|
15918
15946
|
body: n.body,
|
|
15919
15947
|
bodyProps: n.bodyProps ?? {}
|
|
15920
15948
|
};
|
|
15921
|
-
return
|
|
15922
|
-
|
|
15923
|
-
}, n.timeout,
|
|
15949
|
+
return m_.value.set(h_, r), n.persist || setTimeout((e) => {
|
|
15950
|
+
m_.value.delete(e);
|
|
15951
|
+
}, n.timeout, h_), h_++, r;
|
|
15924
15952
|
}
|
|
15925
|
-
function
|
|
15926
|
-
|
|
15953
|
+
function __(e) {
|
|
15954
|
+
m_.value.delete(e);
|
|
15927
15955
|
}
|
|
15928
15956
|
//#endregion
|
|
15929
15957
|
//#region src/components/Toast/Toasts.vue?vue&type=script&setup=true&lang.ts
|
|
15930
|
-
var
|
|
15958
|
+
var v_ = {
|
|
15931
15959
|
key: 1,
|
|
15932
15960
|
class: "vui-toast-item"
|
|
15933
|
-
},
|
|
15961
|
+
}, y_ = { class: "vui-toast-item-content" }, b_ = { key: 0 }, x_ = /* @__PURE__ */ tf(/* @__PURE__ */ v({
|
|
15934
15962
|
__name: "Toasts",
|
|
15935
15963
|
props: { placement: { default: "bottom-end" } },
|
|
15936
15964
|
setup(e) {
|
|
@@ -15939,13 +15967,13 @@ var m_ = {
|
|
|
15939
15967
|
tag: "ul",
|
|
15940
15968
|
class: "vui-toast-list"
|
|
15941
15969
|
}, {
|
|
15942
|
-
default: X(() => [(R(!0), d(n, null, V(q(
|
|
15970
|
+
default: X(() => [(R(!0), d(n, null, V(q(m_), ([e, t]) => (R(), d(n, { key: e }, [t.body ? (R(), l(U(t.body), A({
|
|
15943
15971
|
key: 0,
|
|
15944
15972
|
ref_for: !0
|
|
15945
15973
|
}, {
|
|
15946
15974
|
data: t.bodyProps,
|
|
15947
15975
|
toastId: e
|
|
15948
|
-
}), null, 16)) : (R(), d("li",
|
|
15976
|
+
}), null, 16)) : (R(), d("li", v_, [f("div", y_, [f("strong", null, G(t.title), 1), t.description ? (R(), d("p", b_, G(t.description), 1)) : u("", !0)]), t.action ? (R(), l(gr, {
|
|
15949
15977
|
key: 0,
|
|
15950
15978
|
size: "s",
|
|
15951
15979
|
onClick: (e) => t.action.handler(t.id)
|
|
@@ -15959,7 +15987,7 @@ var m_ = {
|
|
|
15959
15987
|
}), [["__scopeId", "data-v-a0ee459a"]]);
|
|
15960
15988
|
//#endregion
|
|
15961
15989
|
//#region src/shared/viewTransition.ts
|
|
15962
|
-
function
|
|
15990
|
+
function S_() {
|
|
15963
15991
|
let e = B(!1);
|
|
15964
15992
|
async function t(t) {
|
|
15965
15993
|
if (!document.startViewTransition) {
|
|
@@ -15982,4 +16010,4 @@ function v_() {
|
|
|
15982
16010
|
};
|
|
15983
16011
|
}
|
|
15984
16012
|
//#endregion
|
|
15985
|
-
export { En as Accordion, jn as AccordionGroup, In as Alert, Rn as AspectRatio, ar as Avatar, sr as AvatarGroup, $d as Backdrop, lr as Badge, ur as BadgeGroup, dr as BreadcrumbItem, mr as Breadcrumbs, gr as Button, _r as ButtonGroup, wd as Calendar, jd as Card, Pd as Carousel, zd as Checkbox,
|
|
16013
|
+
export { En as Accordion, jn as AccordionGroup, In as Alert, Rn as AspectRatio, ar as Avatar, sr as AvatarGroup, $d as Backdrop, lr as Badge, ur as BadgeGroup, dr as BreadcrumbItem, mr as Breadcrumbs, gr as Button, _r as ButtonGroup, wd as Calendar, jd as Card, Pd as Carousel, zd as Checkbox, Sh as Color, vf as Commands, Gh as Confirm, xf as ContextMenu, Cf as CopyClipboard, Ch as Counter, Ed as Divider, Ym as Drawer, Zm as Dropdown, rh as DropdownItem, ah as DropdownTitle, Eh as Dropzone, Dh as File, or as Flex, oh as Grid, sh as Indicator, vh as Input, Wd as Kbd, Ih as KbdGroup, Bh as Marquee, Uh as MenuItem, Hh as Menubar, nf as Modal, Yh as OTP, Xh as OTPItem, $h as Overflow, rg as Pagination, Oh as Password, yf as Popout, ag as PopoutHover, og as Progress, fg as Radio, pg as RadioGroup, hg as Resizable, wg as ResizableView, Mg as Select, Fg as Sheet, Vg as Sidebar, Ug as Skeleton, Jg as Slider, hr as Spinner, t_ as Switch, _g as Tab, p_ as Table, bg as Tabs, Fh as Textarea, x_ as Toasts, ng as Tooltip, s_ as defineTable, eg as paginate, g_ as pushToast, __ as removeToast, Vn as searchString, Cd as setColorTheme, Sd as theme, Ud as useBreakpoint, S_ as useViewTransition, Vd as vuiBreakpoints };
|