@wwtdev/bsds-components-vue3 2.17.0 → 2.17.1
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/lib/bsds-components.js +231 -230
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as f, ref as $, onMounted as X, onUnmounted as $e, shallowRef as Wt, watch as
|
|
1
|
+
import { computed as f, ref as $, onMounted as X, onUnmounted as $e, shallowRef as Wt, watch as U, defineAsyncComponent as Je, useId as yt, openBlock as d, createElementBlock as b, unref as c, createElementVNode as B, renderSlot as V, createBlock as O, resolveDynamicComponent as ne, createCommentVNode as C, createTextVNode as j, toDisplayString as A, createVNode as P, normalizeClass as oe, useAttrs as se, mergeProps as z, withCtx as D, Fragment as K, toHandlers as Ye, onBeforeUnmount as _e, onBeforeMount as St, nextTick as Ae, createSlots as Ze, useSlots as et, renderList as ae, Teleport as jt, withDirectives as ce, Transition as dt, vShow as fe, provide as pe, inject as me, withModifiers as wt, isRef as Ut } from "vue";
|
|
2
2
|
import { BsIconCaretDown as Me, BsIconWarning as Xe, BsIconClose as Ie, BsIconCalendar as Bt, BsIconCaretRight as $t, BsIconCaretLeft as It, BsIconSmallCaretRight as Gt, BsIconSmallCaretLeft as Ht, BsIconSearch as Kt, BsIconCaretSort as Yt, BsIconCaretLeftDouble as Zt, BsIconCaretRightDouble as Xt, BsIconActionEllipsis as Qt, BsIconGraphPieEmpty as ut, BsIconCircleStop as Jt, BsIconCircleCheck as _t, BsIconCircleX as ea, BsIconCircleEllipsis as ta, BsIconCirclePlay as aa, BsIconCirclePause as na, BsIconCircleExclamation as kt, BsIconThumbsUpStroke as la } from "@wwtdev/bsds-icons-vue3";
|
|
3
3
|
import { DatePicker as oa } from "v-calendar";
|
|
4
4
|
import { Filler as ia, Chart as We, BarController as ra, BarElement as sa, CategoryScale as da, LinearScale as ua, Legend as ca, TimeScale as fa, Tooltip as pa } from "chart.js";
|
|
@@ -74,7 +74,7 @@ const Oe = (e, a) => {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
const l = Wt(), n = e[a] || ((i = e == null ? void 0 : e.value) == null ? void 0 : i[a]);
|
|
77
|
-
return l.value = t(n),
|
|
77
|
+
return l.value = t(n), U(
|
|
78
78
|
[
|
|
79
79
|
() => e[a],
|
|
80
80
|
() => {
|
|
@@ -93,7 +93,7 @@ function Q(e = 1) {
|
|
|
93
93
|
a.forEach((t) => t.value = yt());
|
|
94
94
|
}), a;
|
|
95
95
|
}
|
|
96
|
-
const
|
|
96
|
+
const be = (e, a, t = void 0) => {
|
|
97
97
|
const l = (n) => {
|
|
98
98
|
var i, u;
|
|
99
99
|
((i = e == null ? void 0 : e.includes) != null && i.call(e, n.key) || (u = e == null ? void 0 : e.some) != null && u.call(e, (o) => {
|
|
@@ -117,11 +117,11 @@ const me = (e, a, t = void 0) => {
|
|
|
117
117
|
const a = $(!1);
|
|
118
118
|
return X(() => {
|
|
119
119
|
e.enterControlled ? a.value = e.enterTrigger : a.value = e.shown;
|
|
120
|
-
}),
|
|
120
|
+
}), U(() => e.shown, (t) => {
|
|
121
121
|
a.value = t;
|
|
122
|
-
}),
|
|
122
|
+
}), U(() => e.enterTrigger, (t) => {
|
|
123
123
|
a.value = t;
|
|
124
|
-
}),
|
|
124
|
+
}), U(() => e.leaveTrigger, (t) => {
|
|
125
125
|
t && (a.value = !1);
|
|
126
126
|
}), { transition: a };
|
|
127
127
|
}, ya = ["id", "data-stacked"], Sa = ["data-open"], wa = ["aria-controls", "aria-expanded"], Ba = {
|
|
@@ -169,7 +169,7 @@ const me = (e, a, t = void 0) => {
|
|
|
169
169
|
}, [
|
|
170
170
|
e.icon || h.$slots.icon ? (d(), b("span", Ba, [
|
|
171
171
|
V(h.$slots, "icon", {}, () => [
|
|
172
|
-
e.icon ? (d(), O(
|
|
172
|
+
e.icon ? (d(), O(ne(c(u) ? c(u) : "span"), { key: 0 })) : C("", !0)
|
|
173
173
|
])
|
|
174
174
|
])) : C("", !0),
|
|
175
175
|
B("span", { id: r.value }, [
|
|
@@ -255,7 +255,7 @@ const me = (e, a, t = void 0) => {
|
|
|
255
255
|
ref_key: "hostRef",
|
|
256
256
|
ref: t,
|
|
257
257
|
"aria-label": n.value,
|
|
258
|
-
class:
|
|
258
|
+
class: oe({ "bs-badge": e.dot || l.value }),
|
|
259
259
|
"data-badge-color": e.color,
|
|
260
260
|
"data-component": "bs-badge",
|
|
261
261
|
"data-count": l.value,
|
|
@@ -329,8 +329,8 @@ const me = (e, a, t = void 0) => {
|
|
|
329
329
|
href: { type: String }
|
|
330
330
|
},
|
|
331
331
|
setup(e) {
|
|
332
|
-
const a = e, t =
|
|
333
|
-
return (o, s) => (d(), O(
|
|
332
|
+
const a = e, t = se(), { rootTag: l, attrsToBind: n, hrefUrl: i } = ze(a, t), { onLinkClick: u } = Fe(a);
|
|
333
|
+
return (o, s) => (d(), O(ne(c(l)), z({
|
|
334
334
|
class: "bs-button",
|
|
335
335
|
"data-component": "bs-button",
|
|
336
336
|
"data-ghost": e.ghostBtn,
|
|
@@ -384,7 +384,7 @@ const me = (e, a, t = void 0) => {
|
|
|
384
384
|
}, A(a.charCount || "0") + " / " + A(a.charMax), 9, La)) : C("", !0)
|
|
385
385
|
]));
|
|
386
386
|
}
|
|
387
|
-
}, Ea = ["data-disabled", "for"],
|
|
387
|
+
}, Ea = ["data-disabled", "for"], le = {
|
|
388
388
|
__name: "BsLabel",
|
|
389
389
|
props: {
|
|
390
390
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -394,7 +394,7 @@ const me = (e, a, t = void 0) => {
|
|
|
394
394
|
},
|
|
395
395
|
setup(e) {
|
|
396
396
|
return (a, t) => (d(), b("label", {
|
|
397
|
-
class:
|
|
397
|
+
class: oe(["bs-label", e.hide ? "visually-hidden" : ""]),
|
|
398
398
|
"data-component": "bs-label",
|
|
399
399
|
"data-disabled": e.disabled,
|
|
400
400
|
for: e.for
|
|
@@ -426,7 +426,7 @@ const me = (e, a, t = void 0) => {
|
|
|
426
426
|
},
|
|
427
427
|
emits: ["update:modelValue"],
|
|
428
428
|
setup(e, { emit: a }) {
|
|
429
|
-
const t = e, l = a, n =
|
|
429
|
+
const t = e, l = a, n = se(), i = f(() => ({ [t.error ? "aria-errormessage" : "aria-describedby"]: t.hintId }));
|
|
430
430
|
function u(o) {
|
|
431
431
|
const s = n.type === "number" ? parseInt(o.target.value) : o.target.value;
|
|
432
432
|
l("update:modelValue", s);
|
|
@@ -639,7 +639,7 @@ function Qe(e, a, t = []) {
|
|
|
639
639
|
l = window.matchMedia(e), l.addEventListener("change", a), a(l);
|
|
640
640
|
}), _e(() => {
|
|
641
641
|
l.removeEventListener("change", a), l = null;
|
|
642
|
-
}), t.length &&
|
|
642
|
+
}), t.length && U(t, () => a(l));
|
|
643
643
|
}
|
|
644
644
|
const tt = [
|
|
645
645
|
"aria-describedby",
|
|
@@ -678,7 +678,7 @@ const tt = [
|
|
|
678
678
|
"rows",
|
|
679
679
|
"spellcheck",
|
|
680
680
|
"wrap"
|
|
681
|
-
],
|
|
681
|
+
], he = [
|
|
682
682
|
"aria-describedby",
|
|
683
683
|
"aria-label",
|
|
684
684
|
"autocapitalize",
|
|
@@ -773,7 +773,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
773
773
|
},
|
|
774
774
|
emits: ["update:modelValue"],
|
|
775
775
|
setup(e, { emit: a }) {
|
|
776
|
-
const t = e, l = $(null), n = $(1), i = $(null), [u, o] = Q(2), s = $(1), { filtered: r, remaining: m } = Z(
|
|
776
|
+
const t = e, l = $(null), n = $(1), i = $(null), [u, o] = Q(2), s = $(1), { filtered: r, remaining: m } = Z(se(), [
|
|
777
777
|
"attributes",
|
|
778
778
|
"data-cy",
|
|
779
779
|
"expanded",
|
|
@@ -793,7 +793,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
793
793
|
[y, w]
|
|
794
794
|
), X(() => {
|
|
795
795
|
t.inputMode || k();
|
|
796
|
-
}),
|
|
796
|
+
}), U(() => {
|
|
797
797
|
var I, q;
|
|
798
798
|
return (q = (I = l.value) == null ? void 0 : I.popoverRef) == null ? void 0 : q.isVisible;
|
|
799
799
|
}, (I) => {
|
|
@@ -817,7 +817,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
817
817
|
"data-range": e.isRange,
|
|
818
818
|
onFocusout: S
|
|
819
819
|
}, c(m)), [
|
|
820
|
-
e.label || I.$slots.label ? (d(), O(
|
|
820
|
+
e.label || I.$slots.label ? (d(), O(le, {
|
|
821
821
|
key: 0,
|
|
822
822
|
for: g.value,
|
|
823
823
|
disabled: e.disabled,
|
|
@@ -935,7 +935,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
935
935
|
}
|
|
936
936
|
},
|
|
937
937
|
setup(e) {
|
|
938
|
-
const a = e, t =
|
|
938
|
+
const a = e, t = se(), l = et(), { rootTag: n, attrsToBind: i, hrefUrl: u } = ze(a, t), { onLinkClick: o } = Fe(a), s = f(() => g.value ? {} : a.href ? { title: a.label } : { "aria-label": a.label }), r = f(() => {
|
|
939
939
|
if (a.hoverEffect)
|
|
940
940
|
return a.iconPosition;
|
|
941
941
|
}), m = f(() => {
|
|
@@ -944,7 +944,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
944
944
|
icon: a.icon || (a.textBtn || a.size == "sm" ? `small-${p}` : p)
|
|
945
945
|
};
|
|
946
946
|
}), g = f(() => a.textBtn || !!(l != null && l.default)), v = f(() => g.value && a.iconPosition !== "left"), h = f(() => g.value && a.iconPosition === "left"), y = f(() => a.variant ? `color-${a.variant}` : void 0), { icon: w } = Oe(m, "icon");
|
|
947
|
-
return (p, S) => (d(), O(
|
|
947
|
+
return (p, S) => (d(), O(ne(c(n)), z({
|
|
948
948
|
class: "bs-circle-button",
|
|
949
949
|
"data-disabled": e.disabled,
|
|
950
950
|
"data-direction": r.value,
|
|
@@ -963,7 +963,7 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
963
963
|
])) : C("", !0),
|
|
964
964
|
B("span", Ga, [
|
|
965
965
|
V(p.$slots, "icon", {}, () => [
|
|
966
|
-
(d(), O(
|
|
966
|
+
(d(), O(ne(c(w))))
|
|
967
967
|
])
|
|
968
968
|
]),
|
|
969
969
|
h.value ? (d(), b("span", Ha, [
|
|
@@ -1190,18 +1190,18 @@ const ja = ["data-range"], mt = "(min-width: 752px)", Po = /* @__PURE__ */ Objec
|
|
|
1190
1190
|
]),
|
|
1191
1191
|
B("tr", null, [
|
|
1192
1192
|
B("th", Xa, A(s.value.colHeadingFirst), 1),
|
|
1193
|
-
(d(!0), b(K, null,
|
|
1193
|
+
(d(!0), b(K, null, ae(s.value.colHeadings, (v) => (d(), b("th", {
|
|
1194
1194
|
key: v,
|
|
1195
1195
|
scope: "col"
|
|
1196
1196
|
}, A(v), 1))), 128))
|
|
1197
1197
|
])
|
|
1198
1198
|
]),
|
|
1199
1199
|
B("tbody", null, [
|
|
1200
|
-
(d(!0), b(K, null,
|
|
1200
|
+
(d(!0), b(K, null, ae(s.value.rows, (v) => (d(), b("tr", {
|
|
1201
1201
|
key: v.rowLabelFmt || v.rowLabel
|
|
1202
1202
|
}, [
|
|
1203
1203
|
B("th", Qa, A(v.rowLabelFmt || v.rowLabel), 1),
|
|
1204
|
-
(d(!0), b(K, null,
|
|
1204
|
+
(d(!0), b(K, null, ae(v.dataCells, (h) => (d(), b("td", {
|
|
1205
1205
|
key: `${v.rowLabelFmt || v.rowLabel}${h.datasetLabel}${h.value}`
|
|
1206
1206
|
}, A(h.value), 1))), 128))
|
|
1207
1207
|
]))), 128))
|
|
@@ -1259,10 +1259,10 @@ function en(e, a) {
|
|
|
1259
1259
|
} catch (S) {
|
|
1260
1260
|
console.error("Error creating chart config", S), r = null;
|
|
1261
1261
|
}
|
|
1262
|
-
}),
|
|
1262
|
+
}), be([" ", "Enter"], g, n), _e(() => {
|
|
1263
1263
|
var p;
|
|
1264
1264
|
(p = n.value) == null || p.removeEventListener("click", g), s == null || s.destroy();
|
|
1265
|
-
}),
|
|
1265
|
+
}), U([
|
|
1266
1266
|
() => a.customOptions,
|
|
1267
1267
|
() => a.showTooltips,
|
|
1268
1268
|
() => a.showXGrid,
|
|
@@ -1272,14 +1272,14 @@ function en(e, a) {
|
|
|
1272
1272
|
() => a.yLabel,
|
|
1273
1273
|
() => a.yMin,
|
|
1274
1274
|
() => a.yMax
|
|
1275
|
-
], () => y(a)),
|
|
1275
|
+
], () => y(a)), U(
|
|
1276
1276
|
l,
|
|
1277
1277
|
(p) => y(Ne(
|
|
1278
1278
|
{},
|
|
1279
1279
|
a,
|
|
1280
1280
|
p ? o : u
|
|
1281
1281
|
))
|
|
1282
|
-
),
|
|
1282
|
+
), U(
|
|
1283
1283
|
[
|
|
1284
1284
|
() => a.data,
|
|
1285
1285
|
() => a.dataIdxLabels
|
|
@@ -1787,7 +1787,7 @@ const sn = {
|
|
|
1787
1787
|
const { checked: S } = p.target;
|
|
1788
1788
|
m.value ? y(S) : h(S);
|
|
1789
1789
|
}
|
|
1790
|
-
return
|
|
1790
|
+
return U(s, v), U(r, v), X(v), (p, S) => (d(), b("div", z({
|
|
1791
1791
|
class: "bs-boolean",
|
|
1792
1792
|
"data-component": "bs-checkbox",
|
|
1793
1793
|
"data-disabled": e.disabled,
|
|
@@ -1806,7 +1806,7 @@ const sn = {
|
|
|
1806
1806
|
type: "checkbox",
|
|
1807
1807
|
onChange: w
|
|
1808
1808
|
}, c(Z)(p.$attrs, i.value).filtered), null, 16, fn),
|
|
1809
|
-
e.label || p.$slots.label ? (d(), O(
|
|
1809
|
+
e.label || p.$slots.label ? (d(), O(le, {
|
|
1810
1810
|
key: 0,
|
|
1811
1811
|
for: p.$attrs.id || o.value,
|
|
1812
1812
|
disabled: e.disabled,
|
|
@@ -1894,7 +1894,7 @@ const sn = {
|
|
|
1894
1894
|
],
|
|
1895
1895
|
setup(e, { emit: a }) {
|
|
1896
1896
|
const t = a;
|
|
1897
|
-
return (l, n) => e.preloaded ?
|
|
1897
|
+
return (l, n) => e.preloaded ? ce((d(), O(dt, {
|
|
1898
1898
|
key: 0,
|
|
1899
1899
|
name: e.name,
|
|
1900
1900
|
onBeforeEnter: n[0] || (n[0] = (i) => t("before-enter")),
|
|
@@ -1911,7 +1911,7 @@ const sn = {
|
|
|
1911
1911
|
]),
|
|
1912
1912
|
_: 3
|
|
1913
1913
|
}, 8, ["name"])), [
|
|
1914
|
-
[
|
|
1914
|
+
[fe, e.shown]
|
|
1915
1915
|
]) : (d(), O(dt, {
|
|
1916
1916
|
key: 1,
|
|
1917
1917
|
name: e.name,
|
|
@@ -1998,11 +1998,11 @@ const sn = {
|
|
|
1998
1998
|
const t = e, l = a, n = $(null), i = $(null), u = $(!1), o = $(!1), s = f(() => document.getElementById(t.anchorId)), r = f(() => t.breakout ? g.value : t.containerId ? document.getElementById(t.containerId) : n.value.internalContainerRef), m = f(() => t.width === "anchor" ? void 0 : t.width);
|
|
1999
1999
|
Ct([i, s], () => {
|
|
2000
2000
|
o.value && l("close");
|
|
2001
|
-
}),
|
|
2001
|
+
}), be(["Escape"], () => {
|
|
2002
2002
|
o.value && l("close");
|
|
2003
2003
|
});
|
|
2004
2004
|
const { breakoutStub: g, breakoutMounted: v } = mn(t.breakout, t.containerId);
|
|
2005
|
-
|
|
2005
|
+
pe("dropdownEnter", u), pe("dropdownAfterEnter", o), pe("dropdownShown", f(() => t.shown));
|
|
2006
2006
|
const h = (T, L) => {
|
|
2007
2007
|
i.value.style.setProperty(T, L);
|
|
2008
2008
|
};
|
|
@@ -2020,15 +2020,15 @@ const sn = {
|
|
|
2020
2020
|
}
|
|
2021
2021
|
}
|
|
2022
2022
|
function p(T, L, F) {
|
|
2023
|
-
const
|
|
2023
|
+
const _ = L.left - T.left;
|
|
2024
2024
|
if (t.position === "center") {
|
|
2025
|
-
const
|
|
2026
|
-
h("--dropdown-wscreen-left", `${
|
|
2025
|
+
const R = (L.width - F.width) / 2;
|
|
2026
|
+
h("--dropdown-wscreen-left", `${_ + R}px`), h("--dropdown-wscreen-right", "auto");
|
|
2027
2027
|
} else if (t.position === "right") {
|
|
2028
|
-
const
|
|
2029
|
-
h("--dropdown-wscreen-left", "auto"), h("--dropdown-wscreen-right", `${
|
|
2028
|
+
const R = T.right - L.right;
|
|
2029
|
+
h("--dropdown-wscreen-left", "auto"), h("--dropdown-wscreen-right", `${R}px`);
|
|
2030
2030
|
} else
|
|
2031
|
-
h("--dropdown-wscreen-left", `${
|
|
2031
|
+
h("--dropdown-wscreen-left", `${_}px`), h("--dropdown-wscreen-right", "auto");
|
|
2032
2032
|
}
|
|
2033
2033
|
function S() {
|
|
2034
2034
|
if (t.width === "anchor") {
|
|
@@ -2294,7 +2294,7 @@ const sn = {
|
|
|
2294
2294
|
onFocus: r,
|
|
2295
2295
|
onInput: v[0] || (v[0] = (h) => g.$emit("update:modelValue", h.target.value))
|
|
2296
2296
|
}, g.$attrs), null, 16, ["aria-controls", "aria-describedby", "aria-expanded", "aria-haspopup", "aria-invalid", "data-error", "disabled", "model-value", "placeholder", "required", "role"]),
|
|
2297
|
-
|
|
2297
|
+
ce(B("button", {
|
|
2298
2298
|
"aria-controls": !e.modelValue && e.optionsId ? e.optionsId : void 0,
|
|
2299
2299
|
"aria-expanded": !e.modelValue && e.optionsId ? e.open : void 0,
|
|
2300
2300
|
"data-open": e.modelValue ? void 0 : e.open,
|
|
@@ -2306,20 +2306,20 @@ const sn = {
|
|
|
2306
2306
|
onClick: s
|
|
2307
2307
|
}, [
|
|
2308
2308
|
B("span", wn, A(o.value.text), 1),
|
|
2309
|
-
|
|
2309
|
+
ce(P(c(Me), {
|
|
2310
2310
|
role: "presentation",
|
|
2311
2311
|
size: "md"
|
|
2312
2312
|
}, null, 512), [
|
|
2313
|
-
[
|
|
2313
|
+
[fe, o.value.icon == "caret-down"]
|
|
2314
2314
|
]),
|
|
2315
|
-
|
|
2315
|
+
ce(P(c(Ie), {
|
|
2316
2316
|
role: "presentation",
|
|
2317
2317
|
size: "md"
|
|
2318
2318
|
}, null, 512), [
|
|
2319
|
-
[
|
|
2319
|
+
[fe, o.value.icon == "close"]
|
|
2320
2320
|
])
|
|
2321
2321
|
], 8, Sn), [
|
|
2322
|
-
[
|
|
2322
|
+
[fe, o.value.show]
|
|
2323
2323
|
])
|
|
2324
2324
|
]),
|
|
2325
2325
|
_: 1
|
|
@@ -2393,7 +2393,7 @@ const sn = {
|
|
|
2393
2393
|
}
|
|
2394
2394
|
},
|
|
2395
2395
|
setup(e) {
|
|
2396
|
-
const a = e, t = $(null), l =
|
|
2396
|
+
const a = e, t = $(null), l = me("optionsId", ""), n = me("handleOptionSelect", () => {
|
|
2397
2397
|
}), i = f(() => `${l.value}-option-${a.value}`);
|
|
2398
2398
|
function u(o) {
|
|
2399
2399
|
n(t.value), o.stopPropagation();
|
|
@@ -2486,7 +2486,7 @@ const sn = {
|
|
|
2486
2486
|
const a = e, t = {};
|
|
2487
2487
|
St(() => {
|
|
2488
2488
|
l();
|
|
2489
|
-
}),
|
|
2489
|
+
}), U(() => a.options, () => {
|
|
2490
2490
|
l();
|
|
2491
2491
|
});
|
|
2492
2492
|
function l() {
|
|
@@ -2509,7 +2509,7 @@ const sn = {
|
|
|
2509
2509
|
return !!o && o !== s;
|
|
2510
2510
|
}
|
|
2511
2511
|
return (o, s) => (d(), b(K, null, [
|
|
2512
|
-
(d(!0), b(K, null,
|
|
2512
|
+
(d(!0), b(K, null, ae(e.options, (r) => (d(), O(it, {
|
|
2513
2513
|
"aria-checked": r.checkbox ? r.checkbox.checked : void 0,
|
|
2514
2514
|
key: r.value,
|
|
2515
2515
|
value: r.value,
|
|
@@ -2524,7 +2524,7 @@ const sn = {
|
|
|
2524
2524
|
"data-checked": r.checkbox.checked
|
|
2525
2525
|
}, null, 8, Tn)) : C("", !0),
|
|
2526
2526
|
r.icon ? (d(), b("span", An, [
|
|
2527
|
-
(d(), O(
|
|
2527
|
+
(d(), O(ne(t[r.icon])))
|
|
2528
2528
|
])) : C("", !0),
|
|
2529
2529
|
r.profileImg ? (d(), O(Ot, {
|
|
2530
2530
|
key: 2,
|
|
@@ -2594,7 +2594,7 @@ const sn = {
|
|
|
2594
2594
|
},
|
|
2595
2595
|
emits: ["clear", "update:modelValue"],
|
|
2596
2596
|
setup(e, { emit: a }) {
|
|
2597
|
-
const t = e, l = f(() =>
|
|
2597
|
+
const t = e, l = f(() => he.concat(t.passAttrs.split(","))), n = f(() => !t.disabled && !t.hideClear && t.variant !== "filter");
|
|
2598
2598
|
return (i, u) => (d(), O(De, z({
|
|
2599
2599
|
class: "bs-input-search",
|
|
2600
2600
|
"data-component": "bs-input-search",
|
|
@@ -2612,14 +2612,14 @@ const sn = {
|
|
|
2612
2612
|
}, c(Z)(i.$attrs, l.value).filtered, {
|
|
2613
2613
|
"onUpdate:modelValue": u[0] || (u[0] = (o) => i.$emit("update:modelValue", o))
|
|
2614
2614
|
}), null, 16, ["disabled", "input-id", "placeholder", "value"]),
|
|
2615
|
-
|
|
2615
|
+
ce(B("button", {
|
|
2616
2616
|
title: "Clear",
|
|
2617
2617
|
type: "button",
|
|
2618
2618
|
onClick: u[1] || (u[1] = (o) => i.$emit("clear"))
|
|
2619
2619
|
}, [
|
|
2620
2620
|
P(c(Ie), { size: "sm" })
|
|
2621
2621
|
], 512), [
|
|
2622
|
-
[
|
|
2622
|
+
[fe, n.value]
|
|
2623
2623
|
])
|
|
2624
2624
|
]),
|
|
2625
2625
|
_: 1
|
|
@@ -2741,42 +2741,42 @@ const sn = {
|
|
|
2741
2741
|
setup(e, { emit: a }) {
|
|
2742
2742
|
const t = e, l = a;
|
|
2743
2743
|
let n = null;
|
|
2744
|
-
const [i, u] = Q(2), o = $(!1), s = $(""), r = $([...t.options]), m = f(() => t.selectedOptions.length), g = f(() => Je(async () => await (t.multiselect ? Promise.resolve().then(() => Rn) : Promise.resolve().then(() => Nn)))), v = f(() => t.optionsId || u.value), h = f(() => t.toggleId || i.value), y = () => n || (n = document.getElementById(h.value));
|
|
2745
|
-
function
|
|
2744
|
+
const [i, u] = Q(2), o = $(!1), s = $(""), r = $([...t.options]), m = f(() => t.selectedOptions.length), g = f(() => Je(async () => await (t.multiselect ? Promise.resolve().then(() => Rn) : Promise.resolve().then(() => Nn)))), v = f(() => t.optionsId || u.value), h = f(() => t.toggleId || i.value), y = f(() => t.filter ? r.value : t.options), w = () => n || (n = document.getElementById(h.value));
|
|
2745
|
+
function p() {
|
|
2746
2746
|
const R = document.activeElement;
|
|
2747
2747
|
return !R || R.tagName === "BODY" || R.id === v.value;
|
|
2748
2748
|
}
|
|
2749
|
-
function p() {
|
|
2750
|
-
var R, U;
|
|
2751
|
-
o.value = !1, l("close"), w() && ((U = (R = y()) == null ? void 0 : R.focus) == null || U.call(R));
|
|
2752
|
-
}
|
|
2753
2749
|
function S() {
|
|
2754
|
-
|
|
2750
|
+
var R, H;
|
|
2751
|
+
o.value = !1, l("close"), p() && ((H = (R = w()) == null ? void 0 : R.focus) == null || H.call(R));
|
|
2755
2752
|
}
|
|
2756
2753
|
function k() {
|
|
2757
|
-
o.value
|
|
2754
|
+
o.value && S();
|
|
2758
2755
|
}
|
|
2759
|
-
function I(
|
|
2760
|
-
|
|
2761
|
-
l("update:selectedOptions", U), l("uncheck-option", R);
|
|
2756
|
+
function I() {
|
|
2757
|
+
o.value = !0;
|
|
2762
2758
|
}
|
|
2763
2759
|
function q(R) {
|
|
2764
|
-
const
|
|
2765
|
-
l("update:selectedOptions",
|
|
2760
|
+
const H = t.selectedOptions.filter((te) => te !== R);
|
|
2761
|
+
l("update:selectedOptions", H), l("uncheck-option", R);
|
|
2766
2762
|
}
|
|
2767
2763
|
function T(R) {
|
|
2768
|
-
t.
|
|
2764
|
+
const H = [...t.selectedOptions, R];
|
|
2765
|
+
l("update:selectedOptions", H), l("check-option", R);
|
|
2769
2766
|
}
|
|
2770
|
-
function L() {
|
|
2767
|
+
function L(R) {
|
|
2768
|
+
t.multiselect || (l("update:selectedOption", R), S());
|
|
2769
|
+
}
|
|
2770
|
+
function F() {
|
|
2771
2771
|
s.value = "", r.value = t.options;
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2774
|
-
s.value = R, r.value = t.options.filter((
|
|
2775
|
-
var
|
|
2776
|
-
return
|
|
2773
|
+
function _(R) {
|
|
2774
|
+
s.value = R, r.value = t.options.filter((H) => {
|
|
2775
|
+
var te;
|
|
2776
|
+
return H.label.toLowerCase().startsWith((te = s.value) == null ? void 0 : te.toLowerCase());
|
|
2777
2777
|
});
|
|
2778
2778
|
}
|
|
2779
|
-
return (R,
|
|
2779
|
+
return (R, H) => (d(), b("div", {
|
|
2780
2780
|
class: "bs-dropdown-with-toggle",
|
|
2781
2781
|
id: R.$attrs.id
|
|
2782
2782
|
}, [
|
|
@@ -2794,7 +2794,7 @@ const sn = {
|
|
|
2794
2794
|
"options-id": v.value,
|
|
2795
2795
|
size: e.toggleSize,
|
|
2796
2796
|
"badge-count": e.showBadgeCount && e.multiselect ? m.value : void 0,
|
|
2797
|
-
onClick:
|
|
2797
|
+
onClick: H[0] || (H[0] = (te) => R.$emit("toggled"))
|
|
2798
2798
|
}, {
|
|
2799
2799
|
label: D(() => [
|
|
2800
2800
|
V(R.$slots, "toggle-label", {}, () => [
|
|
@@ -2814,8 +2814,9 @@ const sn = {
|
|
|
2814
2814
|
shown: e.open,
|
|
2815
2815
|
"use-mobile-style": e.useMobileStyle,
|
|
2816
2816
|
width: e.dropdownWidth,
|
|
2817
|
-
onClose:
|
|
2818
|
-
onEnter:
|
|
2817
|
+
onClose: k,
|
|
2818
|
+
onEnter: I,
|
|
2819
|
+
onAfterLeave: F
|
|
2819
2820
|
}, {
|
|
2820
2821
|
default: D(() => [
|
|
2821
2822
|
e.filter ? (d(), b("div", Pn, [
|
|
@@ -2823,27 +2824,27 @@ const sn = {
|
|
|
2823
2824
|
"aria-label": e.filterLabel,
|
|
2824
2825
|
"model-value": s.value,
|
|
2825
2826
|
placeholder: e.filterPlaceholder,
|
|
2826
|
-
"onUpdate:modelValue":
|
|
2827
|
-
onClear:
|
|
2827
|
+
"onUpdate:modelValue": _,
|
|
2828
|
+
onClear: F
|
|
2828
2829
|
}, null, 8, ["aria-label", "model-value", "placeholder"])
|
|
2829
2830
|
])) : C("", !0),
|
|
2830
2831
|
P(c(g), {
|
|
2831
|
-
class:
|
|
2832
|
+
class: oe({ "filterable-options": e.filter }),
|
|
2832
2833
|
label: e.dropdownLabel,
|
|
2833
2834
|
"model-value": e.selectedOption,
|
|
2834
|
-
options: e.multiselect ?
|
|
2835
|
+
options: e.multiselect ? y.value : void 0,
|
|
2835
2836
|
"options-id": v.value,
|
|
2836
2837
|
"selected-options": e.selectedOptions,
|
|
2837
2838
|
shown: e.open,
|
|
2838
|
-
"onUpdate:modelValue":
|
|
2839
|
-
onCheckOption:
|
|
2840
|
-
onUncheckOption:
|
|
2841
|
-
onClose:
|
|
2839
|
+
"onUpdate:modelValue": L,
|
|
2840
|
+
onCheckOption: T,
|
|
2841
|
+
onUncheckOption: q,
|
|
2842
|
+
onClose: H[1] || (H[1] = (te) => e.multiselect ? void 0 : k())
|
|
2842
2843
|
}, {
|
|
2843
2844
|
default: D(() => [
|
|
2844
2845
|
e.multiselect ? C("", !0) : (d(), O(qe, {
|
|
2845
2846
|
key: 0,
|
|
2846
|
-
options:
|
|
2847
|
+
options: y.value
|
|
2847
2848
|
}, null, 8, ["options"]))
|
|
2848
2849
|
]),
|
|
2849
2850
|
_: 1
|
|
@@ -2852,7 +2853,7 @@ const sn = {
|
|
|
2852
2853
|
P(xt, {
|
|
2853
2854
|
title: e.filterButtonText,
|
|
2854
2855
|
class: "mobile-select-button",
|
|
2855
|
-
onClick:
|
|
2856
|
+
onClick: H[2] || (H[2] = () => l("close"))
|
|
2856
2857
|
}, {
|
|
2857
2858
|
default: D(() => [
|
|
2858
2859
|
j(A(e.filterButtonText), 1)
|
|
@@ -3048,8 +3049,8 @@ const sn = {
|
|
|
3048
3049
|
emits: ["update:modelValue", "combobox:change", "combobox:input"],
|
|
3049
3050
|
setup(e, { emit: a }) {
|
|
3050
3051
|
const t = e, [l, n] = Q(2), i = f(() => t.error && t.errorMsg || t.hint || void 0), u = f(() => t.inputId || l.value);
|
|
3051
|
-
return (o, s) => (d(), b("div", z({ "data-component": "bs-dropdown-combobox-field" }, c(Z)(o.$attrs, c(
|
|
3052
|
-
e.label || o.$slots.label ? (d(), O(
|
|
3052
|
+
return (o, s) => (d(), b("div", z({ "data-component": "bs-dropdown-combobox-field" }, c(Z)(o.$attrs, c(he)).remaining), [
|
|
3053
|
+
e.label || o.$slots.label ? (d(), O(le, {
|
|
3053
3054
|
key: 0,
|
|
3054
3055
|
for: o.$attrs.id || u.value,
|
|
3055
3056
|
disabled: e.disabled,
|
|
@@ -3080,7 +3081,7 @@ const sn = {
|
|
|
3080
3081
|
"onCombobox:change": s[0] || (s[0] = (r) => o.$emit("combobox:change", r)),
|
|
3081
3082
|
"onCombobox:input": s[1] || (s[1] = (r) => o.$emit("combobox:input", r)),
|
|
3082
3083
|
"onUpdate:modelValue": s[2] || (s[2] = (r) => o.$emit("update:modelValue", r))
|
|
3083
|
-
}, c(Z)(o.$attrs, c(
|
|
3084
|
+
}, c(Z)(o.$attrs, c(he)).filtered), null, 16, ["disabled", "display-value", "dropdown-position", "dropdown-width", "error", "helper-text", "helper-description", "hint-id", "input-id", "model-value", "options", "placeholder", "required", "update-on-input"]),
|
|
3084
3085
|
i.value ? (d(), O(ye, {
|
|
3085
3086
|
key: 1,
|
|
3086
3087
|
error: e.error,
|
|
@@ -3126,15 +3127,15 @@ const sn = {
|
|
|
3126
3127
|
"update:modelValue"
|
|
3127
3128
|
],
|
|
3128
3129
|
setup(e, { expose: a, emit: t }) {
|
|
3129
|
-
const l = e, n = t, i = $(null), u = $(null), o = $(-1), s = $(-1), r = $(null), m = $(!1), g =
|
|
3130
|
-
|
|
3130
|
+
const l = e, n = t, i = $(null), u = $(null), o = $(-1), s = $(-1), r = $(null), m = $(!1), g = me("dropdownEnter", $(!1)), v = me("dropdownAfterEnter", $(!1)), h = me("dropdownShown", $(!1));
|
|
3131
|
+
pe("optionsId", f(() => l.optionsId)), pe("handleOptionSelect", Se), ga(i, I, { childList: !0 }), be([" ", "Enter", "NumpadEnter"], ve, i), be(["ArrowDown", "ArrowUp", "Home", "End"], Ce);
|
|
3131
3132
|
const p = [/^[a-zA-Z0-9]{1}$/], S = {
|
|
3132
3133
|
keys: "",
|
|
3133
3134
|
lastTyped: 0
|
|
3134
3135
|
};
|
|
3135
|
-
|
|
3136
|
-
I(),
|
|
3137
|
-
}),
|
|
3136
|
+
be(p, (E) => xe(E, S)), X(() => {
|
|
3137
|
+
I(), R(h.value);
|
|
3138
|
+
}), U(
|
|
3138
3139
|
[g, () => {
|
|
3139
3140
|
var E;
|
|
3140
3141
|
return (E = r.value) == null ? void 0 : E.length;
|
|
@@ -3142,9 +3143,9 @@ const sn = {
|
|
|
3142
3143
|
([E, W]) => {
|
|
3143
3144
|
(E || W > 0) && (m.value = i.value.scrollHeight > i.value.clientHeight);
|
|
3144
3145
|
}
|
|
3145
|
-
),
|
|
3146
|
+
), U(v, (E) => {
|
|
3146
3147
|
E && (q(), T());
|
|
3147
|
-
}),
|
|
3148
|
+
}), U(h, (E) => R(E));
|
|
3148
3149
|
const k = f(() => l.modelValue || l.selectedValue);
|
|
3149
3150
|
function I() {
|
|
3150
3151
|
r.value = Array.from(
|
|
@@ -3166,20 +3167,20 @@ const sn = {
|
|
|
3166
3167
|
var E;
|
|
3167
3168
|
o.value > -1 && ((E = r.value[o.value]) == null || E.removeAttribute("data-active"));
|
|
3168
3169
|
}
|
|
3169
|
-
function
|
|
3170
|
+
function _() {
|
|
3170
3171
|
var E;
|
|
3171
3172
|
o.value < 0 && (o.value = 0, u.value = (E = r.value[0]) == null ? void 0 : E.id), L();
|
|
3172
3173
|
}
|
|
3173
|
-
function
|
|
3174
|
-
E ?
|
|
3174
|
+
function R(E) {
|
|
3175
|
+
E ? H() : te();
|
|
3175
3176
|
}
|
|
3176
|
-
function
|
|
3177
|
+
function H() {
|
|
3177
3178
|
var E, W;
|
|
3178
3179
|
l.multiselect || (s.value = r.value.findIndex(
|
|
3179
3180
|
(M) => M.getAttribute("data-value") === String(k.value)
|
|
3180
3181
|
), !l.multiselect && s.value > -1 && ((E = r.value[s.value]) == null || E.setAttribute("data-selected", ""), (W = r.value[s.value]) == null || W.setAttribute("aria-selected", "true")), o.value = s.value);
|
|
3181
3182
|
}
|
|
3182
|
-
function
|
|
3183
|
+
function te() {
|
|
3183
3184
|
r.value.forEach((E) => {
|
|
3184
3185
|
E.removeAttribute("data-selected"), E.setAttribute("aria-selected", "false");
|
|
3185
3186
|
}), F(), s.value = -1, o.value = -1, u.value = null;
|
|
@@ -3197,20 +3198,20 @@ const sn = {
|
|
|
3197
3198
|
if (h.value)
|
|
3198
3199
|
switch (E.key) {
|
|
3199
3200
|
case "ArrowDown":
|
|
3200
|
-
|
|
3201
|
+
de("down"), E.preventDefault();
|
|
3201
3202
|
break;
|
|
3202
3203
|
case "ArrowUp":
|
|
3203
|
-
|
|
3204
|
+
de("up"), E.preventDefault();
|
|
3204
3205
|
break;
|
|
3205
3206
|
case "Home":
|
|
3206
|
-
|
|
3207
|
+
de("home"), E.preventDefault();
|
|
3207
3208
|
break;
|
|
3208
3209
|
case "End":
|
|
3209
|
-
|
|
3210
|
+
de("end"), E.preventDefault();
|
|
3210
3211
|
break;
|
|
3211
3212
|
}
|
|
3212
3213
|
}
|
|
3213
|
-
function
|
|
3214
|
+
function de(E) {
|
|
3214
3215
|
let W;
|
|
3215
3216
|
switch (E) {
|
|
3216
3217
|
case "up":
|
|
@@ -3256,7 +3257,7 @@ const sn = {
|
|
|
3256
3257
|
role: "listbox",
|
|
3257
3258
|
tabindex: c(h) ? 0 : void 0,
|
|
3258
3259
|
onBlur: F,
|
|
3259
|
-
onFocus:
|
|
3260
|
+
onFocus: _,
|
|
3260
3261
|
onMousedown: W[0] || (W[0] = wt(() => {
|
|
3261
3262
|
}, ["prevent"]))
|
|
3262
3263
|
}, [
|
|
@@ -3312,13 +3313,13 @@ const sn = {
|
|
|
3312
3313
|
return ((w = i.value) == null ? void 0 : w.length) || ((p = u.value) == null ? void 0 : p.length);
|
|
3313
3314
|
});
|
|
3314
3315
|
let r = !1;
|
|
3315
|
-
|
|
3316
|
+
U(() => t.options, () => {
|
|
3316
3317
|
v(t.selectedOptions);
|
|
3317
|
-
}),
|
|
3318
|
+
}), U(
|
|
3318
3319
|
() => t.selectedOptions,
|
|
3319
3320
|
v,
|
|
3320
3321
|
{ immediate: !0 }
|
|
3321
|
-
),
|
|
3322
|
+
), U(() => t.shown, (w) => {
|
|
3322
3323
|
w && t.focusOnOpen && Ae(m);
|
|
3323
3324
|
});
|
|
3324
3325
|
function m() {
|
|
@@ -3365,10 +3366,10 @@ const sn = {
|
|
|
3365
3366
|
options: i.value,
|
|
3366
3367
|
"show-no-options": !1
|
|
3367
3368
|
}, null, 8, ["options"]),
|
|
3368
|
-
|
|
3369
|
+
ce(B("li", zn, p[0] || (p[0] = [
|
|
3369
3370
|
B("hr", null, null, -1)
|
|
3370
3371
|
]), 512), [
|
|
3371
|
-
[
|
|
3372
|
+
[fe, o.value]
|
|
3372
3373
|
]),
|
|
3373
3374
|
P(qe, {
|
|
3374
3375
|
options: u.value,
|
|
@@ -3683,7 +3684,7 @@ const sn = {
|
|
|
3683
3684
|
}, [
|
|
3684
3685
|
B("div", Un, [
|
|
3685
3686
|
V(l.$slots, "icon", {}, () => [
|
|
3686
|
-
(d(), O(
|
|
3687
|
+
(d(), O(ne(c(t)), { size: "auto" }))
|
|
3687
3688
|
])
|
|
3688
3689
|
]),
|
|
3689
3690
|
B("div", null, [
|
|
@@ -3734,7 +3735,7 @@ const sn = {
|
|
|
3734
3735
|
emits: ["close"],
|
|
3735
3736
|
setup(e, { emit: a }) {
|
|
3736
3737
|
const t = e, l = a, n = $(null), i = f(() => document.getElementById(t.toggleId));
|
|
3737
|
-
Ct([n, i], u),
|
|
3738
|
+
Ct([n, i], u), be(["Escape"], u);
|
|
3738
3739
|
function u() {
|
|
3739
3740
|
t.shown && l("close");
|
|
3740
3741
|
}
|
|
@@ -3803,7 +3804,7 @@ const sn = {
|
|
|
3803
3804
|
y2: "100%",
|
|
3804
3805
|
"gradient-units": "userSpaceOnUse"
|
|
3805
3806
|
}, [
|
|
3806
|
-
(d(), b(K, null,
|
|
3807
|
+
(d(), b(K, null, ae(l, (o) => B("stop", {
|
|
3807
3808
|
key: o.offset,
|
|
3808
3809
|
offset: o.offset,
|
|
3809
3810
|
"stop-color": o.color
|
|
@@ -3859,13 +3860,13 @@ const sn = {
|
|
|
3859
3860
|
},
|
|
3860
3861
|
emits: ["update:modelValue"],
|
|
3861
3862
|
setup(e, { emit: a }) {
|
|
3862
|
-
const t = e, [l, n] = Q(2), i = f(() =>
|
|
3863
|
+
const t = e, [l, n] = Q(2), i = f(() => he.concat(t.passAttrs.split(",")).concat("type")), u = f(() => {
|
|
3863
3864
|
var r, m;
|
|
3864
3865
|
return ((m = (r = t.hints) == null ? void 0 : r.join) == null ? void 0 : m.call(r, `
|
|
3865
3866
|
`)) || t.hints;
|
|
3866
3867
|
}), o = f(() => t.error && t.errorMsg || t.hint || u.value || void 0), s = f(() => t.inputId || l.value);
|
|
3867
3868
|
return (r, m) => (d(), b("div", z({ "data-component": "bs-input-field" }, c(Z)(r.$attrs, i.value).remaining), [
|
|
3868
|
-
e.label || r.$slots.label ? (d(), O(
|
|
3869
|
+
e.label || r.$slots.label ? (d(), O(le, {
|
|
3869
3870
|
key: 0,
|
|
3870
3871
|
for: r.$attrs.id || s.value,
|
|
3871
3872
|
disabled: e.disabled,
|
|
@@ -4041,14 +4042,14 @@ const sn = {
|
|
|
4041
4042
|
validationErr: S,
|
|
4042
4043
|
validationErrMsg: p
|
|
4043
4044
|
});
|
|
4044
|
-
const q = f(() => w.value ? `+${o.value}${w.value}` : ""), T = f(() => `Country code: ${o.value}. Click to change.`), L = f(() => I.value ? l.errorMsg || p.value : ""), F = f(() => l.error || S.value),
|
|
4045
|
-
|
|
4045
|
+
const q = f(() => w.value ? `+${o.value}${w.value}` : ""), T = f(() => `Country code: ${o.value}. Click to change.`), L = f(() => I.value ? l.errorMsg || p.value : ""), F = f(() => l.error || S.value), _ = f(() => l.hint || F.value && L.value), R = f(() => I.value && F.value);
|
|
4046
|
+
U(q, (M) => {
|
|
4046
4047
|
n("update:modelValue", M), W(M);
|
|
4047
|
-
}),
|
|
4048
|
-
function
|
|
4048
|
+
}), U(() => l.modelValue, H), xe(), X(() => y.value = !0);
|
|
4049
|
+
function H(M, Y) {
|
|
4049
4050
|
M === "" && M !== Y && (w.value = "");
|
|
4050
4051
|
}
|
|
4051
|
-
function
|
|
4052
|
+
function te() {
|
|
4052
4053
|
var M;
|
|
4053
4054
|
k.value && (k.value = !1, (M = u.value) == null || M.focus());
|
|
4054
4055
|
}
|
|
@@ -4062,7 +4063,7 @@ const sn = {
|
|
|
4062
4063
|
function Ce(M) {
|
|
4063
4064
|
w.value = M.target.value, l.deferValidation && (I.value = !1);
|
|
4064
4065
|
}
|
|
4065
|
-
function
|
|
4066
|
+
function de(M) {
|
|
4066
4067
|
var Y, J;
|
|
4067
4068
|
!((J = (Y = M.key) == null ? void 0 : Y.match) != null && J.call(Y, /[0-9]/)) && !i.includes(M.key) && !M.ctrlKey && !M.metaKey && M.preventDefault();
|
|
4068
4069
|
}
|
|
@@ -4086,12 +4087,12 @@ const sn = {
|
|
|
4086
4087
|
return (M, Y) => (d(), b("div", z({
|
|
4087
4088
|
class: "bs-input-phone",
|
|
4088
4089
|
"data-component": "bs-input-phone"
|
|
4089
|
-
}, c(Z)(M.$attrs, c(
|
|
4090
|
-
P(
|
|
4090
|
+
}, c(Z)(M.$attrs, c(he)).remaining), [
|
|
4091
|
+
P(le, {
|
|
4091
4092
|
for: M.$attrs.id || e.inputId || c(h),
|
|
4092
4093
|
required: e.required,
|
|
4093
4094
|
disabled: e.disabled,
|
|
4094
|
-
class:
|
|
4095
|
+
class: oe({ "visually-hidden": e.hideLabel })
|
|
4095
4096
|
}, {
|
|
4096
4097
|
default: D(() => [
|
|
4097
4098
|
j(A(e.label), 1)
|
|
@@ -4100,7 +4101,7 @@ const sn = {
|
|
|
4100
4101
|
}, 8, ["for", "required", "disabled", "class"]),
|
|
4101
4102
|
P(De, {
|
|
4102
4103
|
disabled: e.disabled,
|
|
4103
|
-
error:
|
|
4104
|
+
error: R.value,
|
|
4104
4105
|
multifocus: !0,
|
|
4105
4106
|
variant: "inner-bordered"
|
|
4106
4107
|
}, {
|
|
@@ -4131,22 +4132,22 @@ const sn = {
|
|
|
4131
4132
|
value: w.value,
|
|
4132
4133
|
"data-autowidth": "",
|
|
4133
4134
|
type: "tel"
|
|
4134
|
-
}, c(Z)(M.$attrs, c(
|
|
4135
|
+
}, c(Z)(M.$attrs, c(he)).filtered, {
|
|
4135
4136
|
onInput: Ce,
|
|
4136
4137
|
onFocusout: ve,
|
|
4137
|
-
onKeydown:
|
|
4138
|
+
onKeydown: de
|
|
4138
4139
|
}), null, 16, ["input-id", "disabled", "hint-id", "placeholder", "value"])
|
|
4139
4140
|
];
|
|
4140
4141
|
}),
|
|
4141
4142
|
_: 1
|
|
4142
4143
|
}, 8, ["disabled", "error"]),
|
|
4143
|
-
|
|
4144
|
+
ce(P(ye, {
|
|
4144
4145
|
error: F.value,
|
|
4145
4146
|
"error-msg": L.value,
|
|
4146
4147
|
hint: e.hint,
|
|
4147
4148
|
"hint-id": c(v)
|
|
4148
4149
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
4149
|
-
[
|
|
4150
|
+
[fe, _.value]
|
|
4150
4151
|
]),
|
|
4151
4152
|
y.value ? (d(), b("div", _n, [
|
|
4152
4153
|
P(Pt, {
|
|
@@ -4158,11 +4159,11 @@ const sn = {
|
|
|
4158
4159
|
preloaded: "",
|
|
4159
4160
|
shown: k.value,
|
|
4160
4161
|
width: "content",
|
|
4161
|
-
onClose:
|
|
4162
|
+
onClose: te,
|
|
4162
4163
|
"onUpdate:modelValue": Se
|
|
4163
4164
|
}, {
|
|
4164
4165
|
default: D(() => [
|
|
4165
|
-
y.value ? (d(!0), b(K, { key: 0 },
|
|
4166
|
+
y.value ? (d(!0), b(K, { key: 0 }, ae(s.value, (J) => (d(), O(it, {
|
|
4166
4167
|
"aria-label": J.value,
|
|
4167
4168
|
key: J.value,
|
|
4168
4169
|
value: `${J.value}`,
|
|
@@ -4298,7 +4299,7 @@ const sn = {
|
|
|
4298
4299
|
setup(e, { emit: a }) {
|
|
4299
4300
|
const t = e, l = a, n = $(!1), i = $(!1), [u] = Q();
|
|
4300
4301
|
let o = [];
|
|
4301
|
-
|
|
4302
|
+
U(() => t.inputValue, () => {
|
|
4302
4303
|
i.value ? i.value = !1 : p();
|
|
4303
4304
|
});
|
|
4304
4305
|
const s = f(() => t.typeaheadId || u.value), r = f(() => `${s.value}-input-container`), m = f(() => `${s.value}-input`), g = f(() => `${s.value}-options`), v = f(() => t.multiselect ? Array.isArray(t.optionsValue) ? t.optionsValue : [t.optionsValue] : t.optionsValue), h = f(() => {
|
|
@@ -4310,16 +4311,16 @@ const sn = {
|
|
|
4310
4311
|
return o;
|
|
4311
4312
|
});
|
|
4312
4313
|
function y(T, L, F) {
|
|
4313
|
-
return t.internalFiltering ? T.filter((
|
|
4314
|
+
return t.internalFiltering ? T.filter((_) => _.label.toLowerCase()[F](L)) : T;
|
|
4314
4315
|
}
|
|
4315
4316
|
function w(T, L, F) {
|
|
4316
|
-
return T.map((
|
|
4317
|
-
let
|
|
4317
|
+
return T.map((_) => {
|
|
4318
|
+
let R = _.label;
|
|
4318
4319
|
if (L !== "") {
|
|
4319
|
-
const
|
|
4320
|
-
|
|
4320
|
+
const H = F === "includes" ? "gi" : "i", te = new RegExp(`(${L})`, H);
|
|
4321
|
+
R = _.label.replace(te, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
4321
4322
|
}
|
|
4322
|
-
return { ...
|
|
4323
|
+
return { ..._, labelHtml: R };
|
|
4323
4324
|
});
|
|
4324
4325
|
}
|
|
4325
4326
|
function p() {
|
|
@@ -4342,7 +4343,7 @@ const sn = {
|
|
|
4342
4343
|
l("update:optionsValue", L);
|
|
4343
4344
|
}
|
|
4344
4345
|
return (T, L) => (d(), b(K, null, [
|
|
4345
|
-
e.label || T.$slots.label ? (d(), O(
|
|
4346
|
+
e.label || T.$slots.label ? (d(), O(le, {
|
|
4346
4347
|
key: 0,
|
|
4347
4348
|
for: m.value,
|
|
4348
4349
|
disabled: e.disabled,
|
|
@@ -4507,7 +4508,7 @@ const sn = {
|
|
|
4507
4508
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
4508
4509
|
X(() => {
|
|
4509
4510
|
i();
|
|
4510
|
-
}),
|
|
4511
|
+
}), U(n, () => {
|
|
4511
4512
|
i();
|
|
4512
4513
|
});
|
|
4513
4514
|
function i() {
|
|
@@ -4594,7 +4595,7 @@ const sn = {
|
|
|
4594
4595
|
document.addEventListener("click", r);
|
|
4595
4596
|
}), $e(() => {
|
|
4596
4597
|
document.removeEventListener("click", r);
|
|
4597
|
-
}),
|
|
4598
|
+
}), be(["Escape"], () => {
|
|
4598
4599
|
o && n("close", l.modalId);
|
|
4599
4600
|
});
|
|
4600
4601
|
const m = f(() => !l.title && !t.title && l.closeButton), g = f(() => (l.title || t.title) && l.closeButton);
|
|
@@ -4631,7 +4632,7 @@ const sn = {
|
|
|
4631
4632
|
}), [
|
|
4632
4633
|
e.title || v.$slots.title || e.closeButton ? (d(), b("header", {
|
|
4633
4634
|
key: 0,
|
|
4634
|
-
class:
|
|
4635
|
+
class: oe({
|
|
4635
4636
|
"only-close-button-modal-header": m.value,
|
|
4636
4637
|
"modal-header": g.value
|
|
4637
4638
|
})
|
|
@@ -4648,7 +4649,7 @@ const sn = {
|
|
|
4648
4649
|
type: "button",
|
|
4649
4650
|
title: "Close Modal",
|
|
4650
4651
|
"aria-label": "Close Modal",
|
|
4651
|
-
class:
|
|
4652
|
+
class: oe({ "full-width-header-close-button": e.fullWidth || e.fullHeight }),
|
|
4652
4653
|
onClick: h[0] || (h[0] = (y) => n("close", e.modalId))
|
|
4653
4654
|
}, [
|
|
4654
4655
|
P(c(Ie), { class: "close-button" })
|
|
@@ -4766,11 +4767,11 @@ const sn = {
|
|
|
4766
4767
|
i.value ? n.value = i.value : t.variant === "results" ? n.value = w.value[0] : n.value = 1;
|
|
4767
4768
|
});
|
|
4768
4769
|
const i = f(() => t.modelValue || t.selection);
|
|
4769
|
-
|
|
4770
|
+
U(() => t.selection, (p) => {
|
|
4770
4771
|
n.value = p;
|
|
4771
|
-
}),
|
|
4772
|
+
}), U(() => t.modelValue, (p) => {
|
|
4772
4773
|
n.value = p;
|
|
4773
|
-
}),
|
|
4774
|
+
}), U(n, (p, S) => {
|
|
4774
4775
|
S !== null && (l("selchange", p), l("update:modelValue", p));
|
|
4775
4776
|
});
|
|
4776
4777
|
const u = f(() => {
|
|
@@ -4817,7 +4818,7 @@ const sn = {
|
|
|
4817
4818
|
e.showFirstLastButtons ? (d(), b("button", {
|
|
4818
4819
|
key: 0,
|
|
4819
4820
|
type: "button",
|
|
4820
|
-
class:
|
|
4821
|
+
class: oe(e.firstPageText ? "bs-pagination-word-caret" : void 0),
|
|
4821
4822
|
"aria-label": e.firstPageText ? void 0 : "First Page",
|
|
4822
4823
|
title: e.firstPageText,
|
|
4823
4824
|
disabled: n.value === 1,
|
|
@@ -4828,7 +4829,7 @@ const sn = {
|
|
|
4828
4829
|
], 10, hl)) : C("", !0),
|
|
4829
4830
|
B("button", {
|
|
4830
4831
|
type: "button",
|
|
4831
|
-
class:
|
|
4832
|
+
class: oe(e.prevPageText ? "bs-pagination-word-caret" : void 0),
|
|
4832
4833
|
"aria-label": e.prevPageText ? void 0 : "Previous Page",
|
|
4833
4834
|
title: e.prevPageText,
|
|
4834
4835
|
disabled: n.value === 1,
|
|
@@ -4839,7 +4840,7 @@ const sn = {
|
|
|
4839
4840
|
], 10, gl)
|
|
4840
4841
|
])) : C("", !0),
|
|
4841
4842
|
e.variant === "base" && e.centerDisplay === "numbers" ? (d(), b("div", Sl, [
|
|
4842
|
-
(d(!0), b(K, null,
|
|
4843
|
+
(d(!0), b(K, null, ae(v.value, (k) => (d(), b("button", {
|
|
4843
4844
|
key: `page-${k}-button`,
|
|
4844
4845
|
type: "button",
|
|
4845
4846
|
title: `Page ${k}`,
|
|
@@ -4852,7 +4853,7 @@ const sn = {
|
|
|
4852
4853
|
t.variant === "results" ? (d(), b(K, { key: 4 }, [
|
|
4853
4854
|
S[0] || (S[0] = B("span", null, "Results Per Page:", -1)),
|
|
4854
4855
|
B("div", Il, [
|
|
4855
|
-
(d(!0), b(K, null,
|
|
4856
|
+
(d(!0), b(K, null, ae(w.value, (k) => (d(), b("button", {
|
|
4856
4857
|
type: "button",
|
|
4857
4858
|
key: `results-${k}`,
|
|
4858
4859
|
"data-selected": k === n.value,
|
|
@@ -4864,7 +4865,7 @@ const sn = {
|
|
|
4864
4865
|
e.variant === "base" || e.variant === "group" ? (d(), b("div", Cl, [
|
|
4865
4866
|
B("button", {
|
|
4866
4867
|
type: "button",
|
|
4867
|
-
class:
|
|
4868
|
+
class: oe(e.nextPageText ? "bs-pagination-word-caret" : void 0),
|
|
4868
4869
|
"aria-label": e.nextPageText ? void 0 : "Next Page",
|
|
4869
4870
|
title: e.nextPageText,
|
|
4870
4871
|
disabled: n.value === u.value,
|
|
@@ -4876,7 +4877,7 @@ const sn = {
|
|
|
4876
4877
|
e.showFirstLastButtons ? (d(), b("button", {
|
|
4877
4878
|
key: 0,
|
|
4878
4879
|
type: "button",
|
|
4879
|
-
class:
|
|
4880
|
+
class: oe(e.lastPageText ? "bs-pagination-word-caret" : void 0),
|
|
4880
4881
|
"aria-label": e.lastPageText ? void 0 : "Last Page",
|
|
4881
4882
|
title: e.lastPageText,
|
|
4882
4883
|
disabled: n.value === u.value,
|
|
@@ -4912,8 +4913,8 @@ const sn = {
|
|
|
4912
4913
|
}
|
|
4913
4914
|
},
|
|
4914
4915
|
setup(e) {
|
|
4915
|
-
const a = e, { onLinkClick: t } = Fe(a), l =
|
|
4916
|
-
return (o, s) => (d(), O(
|
|
4916
|
+
const a = e, { onLinkClick: t } = Fe(a), l = se(), { rootTag: n, attrsToBind: i, hrefUrl: u } = ze(a, l, "span");
|
|
4917
|
+
return (o, s) => (d(), O(ne(c(n)), z({
|
|
4917
4918
|
class: "bs-pill",
|
|
4918
4919
|
"data-active": e.active,
|
|
4919
4920
|
"data-component": "bs-pill",
|
|
@@ -4971,7 +4972,7 @@ const sn = {
|
|
|
4971
4972
|
onClick: u
|
|
4972
4973
|
}, [
|
|
4973
4974
|
V(o.$slots, "action", {}, () => [
|
|
4974
|
-
e.actionIcon ? (d(), O(
|
|
4975
|
+
e.actionIcon ? (d(), O(ne(c(n) ? c(n) : "span"), {
|
|
4975
4976
|
key: 0,
|
|
4976
4977
|
class: "bs-icon"
|
|
4977
4978
|
})) : C("", !0),
|
|
@@ -4984,7 +4985,7 @@ const sn = {
|
|
|
4984
4985
|
e.email ? (d(), b("span", ql, A(e.email), 1)) : C("", !0),
|
|
4985
4986
|
e.miscMeta || o.$slots.misc ? (d(), b("span", Ml, [
|
|
4986
4987
|
V(o.$slots, "misc", {}, () => [
|
|
4987
|
-
e.miscMetaIcon ? (d(), O(
|
|
4988
|
+
e.miscMetaIcon ? (d(), O(ne(c(i) ? c(i) : "span"), {
|
|
4988
4989
|
key: 0,
|
|
4989
4990
|
class: "bs-icon"
|
|
4990
4991
|
})) : C("", !0),
|
|
@@ -5023,8 +5024,8 @@ const sn = {
|
|
|
5023
5024
|
},
|
|
5024
5025
|
emits: ["action-toggled"],
|
|
5025
5026
|
setup(e, { emit: a }) {
|
|
5026
|
-
const t = e, l = a, n =
|
|
5027
|
-
return (r, m) => (d(), O(
|
|
5027
|
+
const t = e, l = a, n = se(), { onLinkClick: i } = Fe(t), { rootTag: u, attrsToBind: o, hrefUrl: s } = ze(t, n, "div");
|
|
5028
|
+
return (r, m) => (d(), O(ne(c(u)), z({
|
|
5028
5029
|
class: "bs-profile",
|
|
5029
5030
|
".href": c(s),
|
|
5030
5031
|
"data-component": "bs-profile",
|
|
@@ -5124,7 +5125,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5124
5125
|
"data-component": "bs-progress-bar",
|
|
5125
5126
|
role: "progressbar"
|
|
5126
5127
|
}, [
|
|
5127
|
-
(d(!0), b(K, null,
|
|
5128
|
+
(d(!0), b(K, null, ae(e.steps, (o, s) => (d(), b("div", {
|
|
5128
5129
|
class: "bs-step-item",
|
|
5129
5130
|
"data-status": c(n)(o.status, s),
|
|
5130
5131
|
"data-variant": "progress",
|
|
@@ -5198,7 +5199,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5198
5199
|
}, c(Z)(o.$attrs, n.value).filtered, {
|
|
5199
5200
|
onChange: s[0] || (s[0] = (r) => o.$emit("update:modelValue", r.target.value))
|
|
5200
5201
|
}), null, 16, Wl),
|
|
5201
|
-
e.label || o.$slots.label ? (d(), O(
|
|
5202
|
+
e.label || o.$slots.label ? (d(), O(le, {
|
|
5202
5203
|
key: 0,
|
|
5203
5204
|
for: o.$attrs.id || i.value,
|
|
5204
5205
|
disabled: e.disabled,
|
|
@@ -5291,7 +5292,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5291
5292
|
`)) || a.hints;
|
|
5292
5293
|
}), u = f(() => a.error && a.errorMsg || a.hint || i.value || void 0), o = f(() => a.inputId || t.value), s = f(() => a.value || a.modelValue);
|
|
5293
5294
|
return (r, m) => (d(), b("div", z({ "data-component": "bs-select-field" }, c(Z)(r.$attrs, n.value).remaining), [
|
|
5294
|
-
e.label || r.$slots.label ? (d(), O(
|
|
5295
|
+
e.label || r.$slots.label ? (d(), O(le, {
|
|
5295
5296
|
key: 0,
|
|
5296
5297
|
for: r.$attrs.id || o.value,
|
|
5297
5298
|
disabled: e.disabled,
|
|
@@ -5319,7 +5320,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5319
5320
|
value: "",
|
|
5320
5321
|
disabled: !!s.value
|
|
5321
5322
|
}, A(e.disabled ? "" : e.placeholder), 9, Gl),
|
|
5322
|
-
(d(!0), b(K, null,
|
|
5323
|
+
(d(!0), b(K, null, ae(e.data, (g) => (d(), b("option", {
|
|
5323
5324
|
key: g.value,
|
|
5324
5325
|
disabled: g.disabled,
|
|
5325
5326
|
selected: s.value === g.value,
|
|
@@ -5414,7 +5415,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5414
5415
|
},
|
|
5415
5416
|
emits: ["update:model-value"],
|
|
5416
5417
|
setup(e, { emit: a }) {
|
|
5417
|
-
const t = e, l = a, [n, i] = Q(2), u =
|
|
5418
|
+
const t = e, l = a, [n, i] = Q(2), u = se(), o = $(!1), s = f(() => t.selectId || u.id || n.value), r = f(() => t.optionsId || i.value), m = f(() => {
|
|
5418
5419
|
if (t.modelValue) {
|
|
5419
5420
|
const v = t.options.find((h) => h.value === t.modelValue);
|
|
5420
5421
|
return v ? v.label : t.placeholder;
|
|
@@ -5422,7 +5423,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5422
5423
|
return t.placeholder;
|
|
5423
5424
|
}), g = f(() => m.value === t.placeholder);
|
|
5424
5425
|
return (v, h) => (d(), b("div", null, [
|
|
5425
|
-
e.label || v.$slots.label ? (d(), O(
|
|
5426
|
+
e.label || v.$slots.label ? (d(), O(le, {
|
|
5426
5427
|
key: 0,
|
|
5427
5428
|
disabled: e.disabled,
|
|
5428
5429
|
for: s.value,
|
|
@@ -5543,7 +5544,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5543
5544
|
"data-disabled": e.disabled,
|
|
5544
5545
|
"data-size": e.size
|
|
5545
5546
|
}, c(Z)(s.$attrs, i.value).remaining), [
|
|
5546
|
-
e.label || s.$slots.label ? (d(), O(
|
|
5547
|
+
e.label || s.$slots.label ? (d(), O(le, {
|
|
5547
5548
|
key: 0,
|
|
5548
5549
|
for: s.$attrs.id || u.value,
|
|
5549
5550
|
disabled: e.disabled,
|
|
@@ -5595,7 +5596,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5595
5596
|
},
|
|
5596
5597
|
emits: ["tabClick"],
|
|
5597
5598
|
setup(e, { emit: a }) {
|
|
5598
|
-
const t = e, l =
|
|
5599
|
+
const t = e, l = se(), n = $(), i = f(() => t.activeTabId === l.id), u = f(() => t.panelId || `${l.id}-panel`);
|
|
5599
5600
|
function o(r) {
|
|
5600
5601
|
(r.key === "Enter" || r.key === " ") && (r.preventDefault(), r.stopPropagation(), s());
|
|
5601
5602
|
}
|
|
@@ -5633,47 +5634,47 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5633
5634
|
setup(e, { emit: a }) {
|
|
5634
5635
|
const t = e, l = a, n = $(!1), i = $(!1), u = $([]), o = $(!1), s = $(!1), r = $(), m = $([]), g = $(!1), v = $([]), h = $(), y = $([]), w = $(), p = $(), [S, k] = Q(2);
|
|
5635
5636
|
let I;
|
|
5636
|
-
const q = f(() => t.activeTabId ? v.value.findIndex((x) => x.id === t.activeTabId) : 0), T = f(() => u.value.some((x) => x.id === t.activeTabId)), L = f(() => `${k.value}-options`), F = f(() => `${k.value}-toggle`),
|
|
5637
|
+
const q = f(() => t.activeTabId ? v.value.findIndex((x) => x.id === t.activeTabId) : 0), T = f(() => u.value.some((x) => x.id === t.activeTabId)), L = f(() => `${k.value}-options`), F = f(() => `${k.value}-toggle`), _ = f(() => {
|
|
5637
5638
|
var x;
|
|
5638
5639
|
return T.value ? (x = v.value[q.value]) == null ? void 0 : x.textContent : "More";
|
|
5639
|
-
}),
|
|
5640
|
-
function
|
|
5641
|
-
var
|
|
5642
|
-
let x = !1, N,
|
|
5643
|
-
if ((
|
|
5644
|
-
for (let
|
|
5645
|
-
if (N = v.value[
|
|
5646
|
-
N.dataset.hidden = "true",
|
|
5640
|
+
}), R = f(() => T.value ? m.value[q.value] - m.value[q.value - 1] + no + Ue : ao + Ue);
|
|
5641
|
+
function H() {
|
|
5642
|
+
var ue;
|
|
5643
|
+
let x = !1, N, G = 0, ee = !1, ie = [];
|
|
5644
|
+
if ((ue = v.value) != null && ue.length) {
|
|
5645
|
+
for (let re = 0; re < v.value.length; re++) {
|
|
5646
|
+
if (N = v.value[re], N.setAttribute("tabindex", "-1"), ee && re !== q.value) {
|
|
5647
|
+
N.dataset.hidden = "true", ie.push(N);
|
|
5647
5648
|
continue;
|
|
5648
5649
|
}
|
|
5649
|
-
if (
|
|
5650
|
-
N.dataset.hidden = "true",
|
|
5650
|
+
if (G = re < v.value.length - 1 ? p.value - R.value : p.value, m.value[re] > G) {
|
|
5651
|
+
N.dataset.hidden = "true", ie.push(N), x = !0, ee = !0;
|
|
5651
5652
|
continue;
|
|
5652
5653
|
}
|
|
5653
5654
|
N.dataset.hidden = "false", N.setAttribute("tabindex", "0");
|
|
5654
5655
|
}
|
|
5655
|
-
s.value = x, u.value =
|
|
5656
|
+
s.value = x, u.value = ie, n.value || Ae(() => n.value = !0), I = setTimeout(() => {
|
|
5656
5657
|
r.value && (Rt(), Te(), g.value = !0);
|
|
5657
5658
|
}, g.value ? 25 : 1e3);
|
|
5658
5659
|
}
|
|
5659
5660
|
}
|
|
5660
|
-
function
|
|
5661
|
+
function te() {
|
|
5661
5662
|
clearTimeout(I);
|
|
5662
5663
|
}
|
|
5663
5664
|
function Se() {
|
|
5664
|
-
|
|
5665
|
+
te(), Mt();
|
|
5665
5666
|
}
|
|
5666
5667
|
function ve(x) {
|
|
5667
5668
|
l("tabChange", x), l("update:modelValue", x);
|
|
5668
5669
|
}
|
|
5669
5670
|
function Ce(x) {
|
|
5670
|
-
var ee,
|
|
5671
|
-
const N = (
|
|
5671
|
+
var ee, ie, ue;
|
|
5672
|
+
const N = (ue = (ie = (ee = v.value[x]) == null ? void 0 : ee.getBoundingClientRect) == null ? void 0 : ie.call(ee)) == null ? void 0 : ue.width;
|
|
5672
5673
|
return N || (x === 0 ? m.value[0] : m.value[x] - m.value[x - 1]) || 0;
|
|
5673
5674
|
}
|
|
5674
|
-
function
|
|
5675
|
+
function de() {
|
|
5675
5676
|
var x;
|
|
5676
|
-
(x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true"),
|
|
5677
|
+
(x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true"), H();
|
|
5677
5678
|
}
|
|
5678
5679
|
function xe() {
|
|
5679
5680
|
var x;
|
|
@@ -5690,31 +5691,31 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5690
5691
|
if (t.withBsTabs) return;
|
|
5691
5692
|
const N = x.target.closest('[role="tab"]');
|
|
5692
5693
|
if (!N || N.getAttribute("aria-selected") === "true") return;
|
|
5693
|
-
const
|
|
5694
|
-
ve(
|
|
5694
|
+
const G = N.getAttribute("id");
|
|
5695
|
+
ve(G);
|
|
5695
5696
|
}
|
|
5696
5697
|
function M(x) {
|
|
5697
5698
|
if (x.key === "ArrowLeft" || x.key === "ArrowRight") {
|
|
5698
|
-
const N = y.value.findIndex((
|
|
5699
|
+
const N = y.value.findIndex((G) => G.id === x.target.id);
|
|
5699
5700
|
if (N === -1) return;
|
|
5700
5701
|
x.preventDefault(), x.stopPropagation(), x.key === "ArrowLeft" ? J(N) : Y(N);
|
|
5701
5702
|
}
|
|
5702
5703
|
}
|
|
5703
5704
|
function Y(x) {
|
|
5704
|
-
var
|
|
5705
|
+
var G;
|
|
5705
5706
|
const N = (x + 1) % y.value.length;
|
|
5706
|
-
(
|
|
5707
|
+
(G = y.value[N]) == null || G.focus();
|
|
5707
5708
|
}
|
|
5708
5709
|
function J(x) {
|
|
5709
|
-
var
|
|
5710
|
+
var G;
|
|
5710
5711
|
const N = x === 0 ? y.value.length - 1 : x - 1;
|
|
5711
|
-
(
|
|
5712
|
+
(G = y.value[N]) == null || G.focus();
|
|
5712
5713
|
}
|
|
5713
5714
|
function Te() {
|
|
5714
|
-
var
|
|
5715
|
+
var ue, re, rt, st;
|
|
5715
5716
|
const x = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, N = p.value;
|
|
5716
|
-
let
|
|
5717
|
-
s.value && T.value && (ee = (rt = h.value) == null ? void 0 : rt.offsetLeft,
|
|
5717
|
+
let G = 300, ee = ((re = (ue = y.value) == null ? void 0 : ue[q.value]) == null ? void 0 : re.offsetLeft) || 0, ie = Ce(q.value);
|
|
5718
|
+
s.value && T.value && (ee = (rt = h.value) == null ? void 0 : rt.offsetLeft, ie = (st = h.value) == null ? void 0 : st.offsetWidth), G = Math.max(Math.abs((ee - x) / N * 300), 100), r.value.style.setProperty("--active-line-max-width", `${N}px`), r.value.style.setProperty("--active-line-scale", `${ie / N}`), r.value.style.setProperty("--active-line-offset", `${ee}px`), r.value.style.setProperty("--active-line-transition-duration", `${G}ms`);
|
|
5718
5719
|
}
|
|
5719
5720
|
function Mt() {
|
|
5720
5721
|
var x, N;
|
|
@@ -5722,7 +5723,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5722
5723
|
}
|
|
5723
5724
|
function Nt() {
|
|
5724
5725
|
const x = Ve(() => {
|
|
5725
|
-
p.value = r.value.clientWidth,
|
|
5726
|
+
p.value = r.value.clientWidth, H();
|
|
5726
5727
|
}, 25);
|
|
5727
5728
|
w.value = new ResizeObserver(x), w.value.observe(document.body), r.value && w.value.observe(r.value);
|
|
5728
5729
|
}
|
|
@@ -5731,24 +5732,24 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5731
5732
|
}
|
|
5732
5733
|
function Ft() {
|
|
5733
5734
|
let x;
|
|
5734
|
-
v.value.forEach((N,
|
|
5735
|
-
x = N.getBoundingClientRect().width + Ue, m.value.push(
|
|
5735
|
+
v.value.forEach((N, G) => {
|
|
5736
|
+
x = N.getBoundingClientRect().width + Ue, m.value.push(G ? x + m.value[G - 1] : x);
|
|
5736
5737
|
});
|
|
5737
5738
|
}
|
|
5738
5739
|
function Rt() {
|
|
5739
|
-
var N,
|
|
5740
|
+
var N, G;
|
|
5740
5741
|
let x = [];
|
|
5741
5742
|
if (typeof window > "u") return x;
|
|
5742
5743
|
for (let ee of v.value) {
|
|
5743
|
-
if (((N = ee.dataset) == null ? void 0 : N.hidden) === "true" || ((
|
|
5744
|
+
if (((N = ee.dataset) == null ? void 0 : N.hidden) === "true" || ((G = ee.dataset) == null ? void 0 : G.hidden) === "" || ee.getAttribute("tabindex") === "-1") break;
|
|
5744
5745
|
x.push(ee);
|
|
5745
5746
|
}
|
|
5746
5747
|
s.value && x.push(r.value.querySelector(".bs-tab-list-toggle")), y.value = x;
|
|
5747
5748
|
}
|
|
5748
|
-
return
|
|
5749
|
+
return U(() => t.activeTabId, de), X(() => {
|
|
5749
5750
|
var x;
|
|
5750
5751
|
try {
|
|
5751
|
-
zt(), Ft(), Nt(), p.value = r.value.getBoundingClientRect().width,
|
|
5752
|
+
zt(), Ft(), Nt(), p.value = r.value.getBoundingClientRect().width, H(), t.withBsTabs || (x = v.value[q.value]) == null || x.setAttribute("aria-selected", "true");
|
|
5752
5753
|
} catch (N) {
|
|
5753
5754
|
console.log("tab error", N);
|
|
5754
5755
|
}
|
|
@@ -5761,7 +5762,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5761
5762
|
role: "tablist",
|
|
5762
5763
|
"data-resizing": !n.value || void 0,
|
|
5763
5764
|
onClick: W,
|
|
5764
|
-
"on:tabClick": N[0] || (N[0] = (
|
|
5765
|
+
"on:tabClick": N[0] || (N[0] = (G) => ve(G.detail)),
|
|
5765
5766
|
onKeydown: M
|
|
5766
5767
|
}, [
|
|
5767
5768
|
V(x.$slots, "default"),
|
|
@@ -5777,7 +5778,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5777
5778
|
onClick: we
|
|
5778
5779
|
}, [
|
|
5779
5780
|
P(c(Qt), { size: "sm" }),
|
|
5780
|
-
j(" " + A(
|
|
5781
|
+
j(" " + A(_.value), 1)
|
|
5781
5782
|
], 8, to),
|
|
5782
5783
|
P(Pt, {
|
|
5783
5784
|
"anchor-id": F.value,
|
|
@@ -5794,13 +5795,13 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5794
5795
|
"onUpdate:modelValue": E
|
|
5795
5796
|
}, {
|
|
5796
5797
|
default: D(() => [
|
|
5797
|
-
(d(!0), b(K, null,
|
|
5798
|
-
key:
|
|
5799
|
-
value:
|
|
5798
|
+
(d(!0), b(K, null, ae(u.value, (G) => (d(), O(it, {
|
|
5799
|
+
key: G.id,
|
|
5800
|
+
value: G.id,
|
|
5800
5801
|
"options-id": L.value
|
|
5801
5802
|
}, {
|
|
5802
5803
|
default: D(() => [
|
|
5803
|
-
j(A(
|
|
5804
|
+
j(A(G.textContent), 1)
|
|
5804
5805
|
]),
|
|
5805
5806
|
_: 2
|
|
5806
5807
|
}, 1032, ["value", "options-id"]))), 128))
|
|
@@ -5822,7 +5823,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5822
5823
|
}
|
|
5823
5824
|
},
|
|
5824
5825
|
setup(e) {
|
|
5825
|
-
const a = e, t =
|
|
5826
|
+
const a = e, t = se(), l = f(() => a.activeTabId && a.activeTabId === a.tabId), n = f(() => t.id || `${a.tabId}-panel`);
|
|
5826
5827
|
return (i, u) => (d(), b("section", {
|
|
5827
5828
|
"aria-labelledby": e.tabId,
|
|
5828
5829
|
"data-active": l.value,
|
|
@@ -5917,7 +5918,7 @@ const zl = ["aria-valuemax", "aria-valuenow", "aria-valuetext"], Fl = ["data-sta
|
|
|
5917
5918
|
`)) || t.hints;
|
|
5918
5919
|
}), s = f(() => t.error && t.errorMsg || t.hint || o.value || void 0), r = f(() => t.inputId || l.value);
|
|
5919
5920
|
return (m, g) => (d(), b("div", z({ "data-component": "bs-textarea-field" }, c(Z)(m.$attrs, i.value).remaining), [
|
|
5920
|
-
e.label || m.$slots.label ? (d(), O(
|
|
5921
|
+
e.label || m.$slots.label ? (d(), O(le, {
|
|
5921
5922
|
key: 0,
|
|
5922
5923
|
for: m.$attrs.id || r.value,
|
|
5923
5924
|
disabled: e.disabled,
|
|
@@ -6115,17 +6116,17 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6115
6116
|
o.value = "", s.value = !1;
|
|
6116
6117
|
}
|
|
6117
6118
|
}
|
|
6118
|
-
return X(y),
|
|
6119
|
+
return X(y), U([
|
|
6119
6120
|
() => l.disabledTimes,
|
|
6120
6121
|
() => l.maxTime,
|
|
6121
6122
|
() => l.minTime,
|
|
6122
6123
|
() => l.step
|
|
6123
|
-
], y),
|
|
6124
|
+
], y), U([
|
|
6124
6125
|
() => l.disabledTimes,
|
|
6125
6126
|
() => l.maxTime,
|
|
6126
6127
|
() => l.minTime,
|
|
6127
6128
|
() => l.modelValue
|
|
6128
|
-
], () => p(l.modelValue)),
|
|
6129
|
+
], () => p(l.modelValue)), U(() => l.modelValue, (S) => {
|
|
6129
6130
|
i.value = l.modelValue ? ge(S) : "";
|
|
6130
6131
|
}), a({
|
|
6131
6132
|
validationErr: s,
|
|
@@ -6230,8 +6231,8 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6230
6231
|
}), (h, y) => (d(), b("div", z({
|
|
6231
6232
|
"aria-live": "polite",
|
|
6232
6233
|
"data-component": "bs-time-picker-field"
|
|
6233
|
-
}, c(Z)(h.$attrs, c(
|
|
6234
|
-
e.label || h.$slots.label ? (d(), O(
|
|
6234
|
+
}, c(Z)(h.$attrs, c(he)).remaining), [
|
|
6235
|
+
e.label || h.$slots.label ? (d(), O(le, {
|
|
6235
6236
|
key: 0,
|
|
6236
6237
|
for: h.$attrs.id || r.value,
|
|
6237
6238
|
disabled: e.disabled,
|
|
@@ -6263,14 +6264,14 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6263
6264
|
required: e.required,
|
|
6264
6265
|
step: e.step,
|
|
6265
6266
|
"onUpdate:modelValue": y[0] || (y[0] = (w) => h.$emit("update:modelValue", w))
|
|
6266
|
-
}, c(Z)(h.$attrs, c(
|
|
6267
|
-
|
|
6267
|
+
}, c(Z)(h.$attrs, c(he)).filtered), null, 16, ["disabled", "disabled-times", "dropdown-position", "dropdown-width", "error", "helper-description", "helper-text", "hint-id", "input-id", "max-time", "min-time", "model-value", "placeholder", "required", "step"]),
|
|
6268
|
+
ce(P(ye, {
|
|
6268
6269
|
error: s.value,
|
|
6269
6270
|
"error-msg": o.value,
|
|
6270
6271
|
hint: e.hint,
|
|
6271
6272
|
"hint-id": c(i)
|
|
6272
6273
|
}, null, 8, ["error", "error-msg", "hint", "hint-id"]), [
|
|
6273
|
-
[
|
|
6274
|
+
[fe, m.value]
|
|
6274
6275
|
])
|
|
6275
6276
|
], 16));
|
|
6276
6277
|
}
|
|
@@ -6323,13 +6324,13 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6323
6324
|
"data-component": "bs-timeline",
|
|
6324
6325
|
role: "progressbar"
|
|
6325
6326
|
}, [
|
|
6326
|
-
(d(!0), b(K, null,
|
|
6327
|
+
(d(!0), b(K, null, ae(e.steps, (r, m) => (d(), b("div", {
|
|
6327
6328
|
class: "bs-step-item",
|
|
6328
6329
|
"data-status": c(i)(r.status, m),
|
|
6329
6330
|
key: r.id || r.label,
|
|
6330
6331
|
role: "status"
|
|
6331
6332
|
}, [
|
|
6332
|
-
(d(), O(
|
|
6333
|
+
(d(), O(ne(u(r.status, m)), {
|
|
6333
6334
|
class: "bs-step-icon",
|
|
6334
6335
|
role: "presentation"
|
|
6335
6336
|
})),
|
|
@@ -6388,8 +6389,8 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6388
6389
|
setup(e, { emit: a }) {
|
|
6389
6390
|
const t = e, l = a, { transition: n } = Ee(t);
|
|
6390
6391
|
let i = null;
|
|
6391
|
-
|
|
6392
|
-
const u =
|
|
6392
|
+
pe("variant", t.variant), pe("handleDismiss", o);
|
|
6393
|
+
const u = me("stacked", t.stacked);
|
|
6393
6394
|
function o() {
|
|
6394
6395
|
i && (clearTimeout(i), i = null), l("dismiss", t.toastId);
|
|
6395
6396
|
}
|
|
@@ -6423,7 +6424,7 @@ const Ge = "excluded", He = "over", vt = "skip", gt = "stop", Ke = "under", co =
|
|
|
6423
6424
|
}), ho = ["data-stacked"], ui = {
|
|
6424
6425
|
__name: "BsToastActions",
|
|
6425
6426
|
setup(e) {
|
|
6426
|
-
const a =
|
|
6427
|
+
const a = me("handleDismiss", () => {
|
|
6427
6428
|
});
|
|
6428
6429
|
function t() {
|
|
6429
6430
|
var l, n;
|
|
@@ -6465,7 +6466,7 @@ function So(e, a) {
|
|
|
6465
6466
|
const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi = {
|
|
6466
6467
|
__name: "BsToastHeader",
|
|
6467
6468
|
setup(e) {
|
|
6468
|
-
const a =
|
|
6469
|
+
const a = me("variant", void 0), t = f(() => {
|
|
6469
6470
|
switch (a) {
|
|
6470
6471
|
case "warning":
|
|
6471
6472
|
return Xe;
|
|
@@ -6482,7 +6483,7 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6482
6483
|
"data-component": "bs-toast-header",
|
|
6483
6484
|
"data-variant": c(a)
|
|
6484
6485
|
}, [
|
|
6485
|
-
(d(), O(
|
|
6486
|
+
(d(), O(ne(t.value), { class: "bs-toast-header-icon" })),
|
|
6486
6487
|
B("h5", null, [
|
|
6487
6488
|
V(l.$slots, "default")
|
|
6488
6489
|
])
|
|
@@ -6494,7 +6495,7 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6494
6495
|
}, pi = {
|
|
6495
6496
|
__name: "BsToaster",
|
|
6496
6497
|
setup(e) {
|
|
6497
|
-
return
|
|
6498
|
+
return pe("stacked", !0), (a, t) => (d(), b("div", Bo, [
|
|
6498
6499
|
V(a.$slots, "default")
|
|
6499
6500
|
]));
|
|
6500
6501
|
}
|
|
@@ -6529,7 +6530,7 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6529
6530
|
let o = "bs-tooltip-text";
|
|
6530
6531
|
return l.value && (a.position === void 0 || a.position === "top" || a.position === "bottom" ? o += " escaped-x" : a.position === "left" || a.position === "right" ? o += " escaped-y" : o += " escaped"), o;
|
|
6531
6532
|
});
|
|
6532
|
-
|
|
6533
|
+
be(["Escape"], () => {
|
|
6533
6534
|
t.value && (t.value = !1, l.value = !0);
|
|
6534
6535
|
});
|
|
6535
6536
|
function i() {
|
|
@@ -6550,7 +6551,7 @@ const ci = /* @__PURE__ */ vo(go, [["render", So]]), wo = ["data-variant"], fi =
|
|
|
6550
6551
|
V(o.$slots, "default"),
|
|
6551
6552
|
e.content ? (d(), b("div", {
|
|
6552
6553
|
key: 0,
|
|
6553
|
-
class:
|
|
6554
|
+
class: oe(n.value),
|
|
6554
6555
|
id: e.tooltipId,
|
|
6555
6556
|
role: "tooltip"
|
|
6556
6557
|
}, A(e.content), 11, Io)) : C("", !0)
|
|
@@ -6647,7 +6648,7 @@ export {
|
|
|
6647
6648
|
Go as BsInputPhone,
|
|
6648
6649
|
Vt as BsInputSearch,
|
|
6649
6650
|
Ho as BsInputTypeahead,
|
|
6650
|
-
|
|
6651
|
+
le as BsLabel,
|
|
6651
6652
|
Ko as BsLoader,
|
|
6652
6653
|
Yo as BsModal,
|
|
6653
6654
|
ul as BsOverlay,
|