@wwtdev/bsds-components-vue3 2.3.6 → 2.4.0
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 +161 -156
- package/package.json +2 -2
package/lib/bsds-components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed as p, ref as y, onMounted as Y, onUnmounted as re, shallowRef as
|
|
2
|
-
import { v4 as
|
|
3
|
-
import { BsIconCaretDown as
|
|
1
|
+
import { computed as p, ref as y, onMounted as Y, onUnmounted as re, shallowRef as ut, watch as R, defineAsyncComponent as Re, openBlock as d, createElementBlock as h, unref as f, createElementVNode as B, renderSlot as L, createBlock as O, resolveDynamicComponent as J, createCommentVNode as k, toDisplayString as T, createVNode as V, normalizeClass as ae, Fragment as W, useAttrs as se, mergeProps as N, withCtx as D, toHandlers as Me, onBeforeUnmount as tt, onBeforeMount as at, nextTick as ce, createTextVNode as H, createSlots as nt, renderList as Z, Teleport as ct, withDirectives as Be, Transition as Ke, vShow as $e, provide as oe, inject as ie, isRef as ft, useSlots as pt } from "vue";
|
|
2
|
+
import { v4 as lt } from "uuid";
|
|
3
|
+
import { BsIconCaretDown as ot, BsIconWarning as ze, BsIconClose as Se, BsIconCalendar as it, BsIconCaretSort as vt, BsIconSearch as ht, BsIconCaretLeftDouble as bt, BsIconCaretLeft as mt, BsIconCaretRight as gt, BsIconCaretRightDouble as yt, BsIconActionEllipsis as Bt, BsIconCircleExclamation as $t, BsIconThumbsUpStroke as St } from "@wwtdev/bsds-icons-vue3";
|
|
4
4
|
import { DatePicker as wt } from "v-calendar";
|
|
5
5
|
import { Chart as qe, BarController as kt, BarElement as It, CategoryScale as Ct, LinearScale as Tt, Legend as xt, Tooltip as At } from "chart.js";
|
|
6
6
|
import { getSupportedCallingCodes as Lt, getRegionCodeForCountryCode as Vt, parsePhoneNumber as Ye } from "awesome-phonenumber";
|
|
@@ -73,7 +73,7 @@ const me = (e, a) => {
|
|
|
73
73
|
return u;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
const n =
|
|
76
|
+
const n = ut();
|
|
77
77
|
return n.value = t(e[a]), R(() => e[a], async (l) => n.value = t(l)), { icon: n };
|
|
78
78
|
};
|
|
79
79
|
function X(e = 1) {
|
|
@@ -81,7 +81,7 @@ function X(e = 1) {
|
|
|
81
81
|
for (let t = 0; t < e; t++)
|
|
82
82
|
a.push(y(""));
|
|
83
83
|
return Y(() => {
|
|
84
|
-
a.forEach((t) => t.value = `id-${
|
|
84
|
+
a.forEach((t) => t.value = `id-${lt()}`);
|
|
85
85
|
}), a;
|
|
86
86
|
}
|
|
87
87
|
const Ie = (e, a, t = void 0) => {
|
|
@@ -136,7 +136,7 @@ const Ie = (e, a, t = void 0) => {
|
|
|
136
136
|
function w() {
|
|
137
137
|
n("toggled", o.value), t.controlled || (i.value = !i.value);
|
|
138
138
|
}
|
|
139
|
-
return (
|
|
139
|
+
return (b, x) => (d(), h("div", {
|
|
140
140
|
id: f(o),
|
|
141
141
|
ref_key: "containerRef",
|
|
142
142
|
ref: l,
|
|
@@ -154,13 +154,13 @@ const Ie = (e, a, t = void 0) => {
|
|
|
154
154
|
type: "button",
|
|
155
155
|
onClick: w
|
|
156
156
|
}, [
|
|
157
|
-
e.icon ||
|
|
158
|
-
L(
|
|
157
|
+
e.icon || b.$slots.icon ? (d(), h("span", Nt, [
|
|
158
|
+
L(b.$slots, "icon", {}, () => [
|
|
159
159
|
e.icon ? (d(), O(J(f(u) ? f(u) : "span"), { key: 0 })) : k("", !0)
|
|
160
160
|
])
|
|
161
161
|
])) : k("", !0),
|
|
162
162
|
B("span", { id: r.value }, T(e.headerText), 9, Rt),
|
|
163
|
-
V(f(
|
|
163
|
+
V(f(ot), {
|
|
164
164
|
size: "md",
|
|
165
165
|
"data-position": "end"
|
|
166
166
|
})
|
|
@@ -175,7 +175,7 @@ const Ie = (e, a, t = void 0) => {
|
|
|
175
175
|
role: "region"
|
|
176
176
|
}, [
|
|
177
177
|
B("div", null, [
|
|
178
|
-
L(
|
|
178
|
+
L(b.$slots, "default")
|
|
179
179
|
])
|
|
180
180
|
], 8, jt)
|
|
181
181
|
], 8, Pt));
|
|
@@ -434,7 +434,7 @@ const Ie = (e, a, t = void 0) => {
|
|
|
434
434
|
error: e.error
|
|
435
435
|
}, {
|
|
436
436
|
default: D(() => [
|
|
437
|
-
V(f(
|
|
437
|
+
V(f(it)),
|
|
438
438
|
V(ve, N({
|
|
439
439
|
"data-autowidth": "",
|
|
440
440
|
disabled: e.disabled,
|
|
@@ -512,7 +512,7 @@ const aa = ["disabled", "id", "model-value"], na = ["disabled", "id", "model-val
|
|
|
512
512
|
error: e.error
|
|
513
513
|
}, {
|
|
514
514
|
default: D(() => [
|
|
515
|
-
V(f(
|
|
515
|
+
V(f(it)),
|
|
516
516
|
V(ve, {
|
|
517
517
|
"data-autowidth": "",
|
|
518
518
|
disabled: e.disabled,
|
|
@@ -659,6 +659,10 @@ const ua = ["data-range"], _e = "(min-width: 752px)", Dl = /* @__PURE__ */ Objec
|
|
|
659
659
|
inputId: {
|
|
660
660
|
type: String
|
|
661
661
|
},
|
|
662
|
+
inputMode: {
|
|
663
|
+
type: Boolean,
|
|
664
|
+
default: !0
|
|
665
|
+
},
|
|
662
666
|
isRange: {
|
|
663
667
|
type: Boolean,
|
|
664
668
|
default: !1
|
|
@@ -705,46 +709,46 @@ const ua = ["data-range"], _e = "(min-width: 752px)", Dl = /* @__PURE__ */ Objec
|
|
|
705
709
|
"masks",
|
|
706
710
|
"rows",
|
|
707
711
|
"trim-weeks"
|
|
708
|
-
]), v = p(() => t.inputId || u.value), w = p(() => ({ range: t.isRange })),
|
|
712
|
+
]), v = p(() => t.inputId || u.value), w = p(() => ({ range: t.isRange })), b = p(() => !!(t.error && t.errorMsg || t.hint)), x = p(() => t.step), S = p(() => t.variant);
|
|
709
713
|
ra(n), Je(
|
|
710
714
|
_e,
|
|
711
|
-
(
|
|
715
|
+
(m) => l.value = m != null && m.matches && S.value == "2-col" ? 2 : 1,
|
|
712
716
|
[S]
|
|
713
717
|
), Je(
|
|
714
718
|
_e,
|
|
715
|
-
(
|
|
719
|
+
(m) => s.value = m != null && m.matches && S.value == "2-col" ? x.value : 1,
|
|
716
720
|
[x, S]
|
|
717
721
|
), R(() => {
|
|
718
|
-
var
|
|
719
|
-
return (z = (
|
|
720
|
-
}, (
|
|
721
|
-
|
|
722
|
+
var m, z;
|
|
723
|
+
return (z = (m = n.value) == null ? void 0 : m.popoverRef) == null ? void 0 : z.isVisible;
|
|
724
|
+
}, (m) => {
|
|
725
|
+
m && ce(g);
|
|
722
726
|
});
|
|
723
|
-
function C(
|
|
724
|
-
return t.isRange &&
|
|
727
|
+
function C(m) {
|
|
728
|
+
return t.isRange && m.start && m.end ? `${m.start} to ${m.end}` : !t.isRange && m ? m : "";
|
|
725
729
|
}
|
|
726
|
-
function P(
|
|
727
|
-
!t.isRange || i.value.contains(
|
|
730
|
+
function P(m) {
|
|
731
|
+
!t.isRange || i.value.contains(m.relatedTarget) || n.value.hidePopover();
|
|
728
732
|
}
|
|
729
733
|
function g() {
|
|
730
|
-
const
|
|
731
|
-
|
|
734
|
+
const m = i.value.querySelector("button.vc-prev"), z = i.value.querySelector("button.vc-next");
|
|
735
|
+
m && m.setAttribute("aria-label", "Previous month"), z && z.setAttribute("aria-label", "Next month");
|
|
732
736
|
}
|
|
733
|
-
return (
|
|
737
|
+
return (m, z) => (d(), h("div", N({
|
|
734
738
|
ref_key: "container",
|
|
735
739
|
ref: i,
|
|
736
740
|
class: "bs-calendar",
|
|
737
741
|
"data-range": e.isRange,
|
|
738
742
|
onFocusout: P
|
|
739
743
|
}, f(c)), [
|
|
740
|
-
e.label ||
|
|
744
|
+
e.label || m.$slots.label ? (d(), O(ne, {
|
|
741
745
|
key: 0,
|
|
742
746
|
for: v.value,
|
|
743
747
|
disabled: e.disabled,
|
|
744
748
|
required: e.required
|
|
745
749
|
}, {
|
|
746
750
|
default: D(() => [
|
|
747
|
-
L(
|
|
751
|
+
L(m.$slots, "label", {}, () => [
|
|
748
752
|
H(T(e.label), 1)
|
|
749
753
|
])
|
|
750
754
|
]),
|
|
@@ -763,37 +767,38 @@ const ua = ["data-range"], _e = "(min-width: 752px)", Dl = /* @__PURE__ */ Objec
|
|
|
763
767
|
popover: { visibility: "focus" },
|
|
764
768
|
rows: 1,
|
|
765
769
|
step: s.value,
|
|
766
|
-
"onUpdate:modelValue": z[0] || (z[0] = (I) =>
|
|
767
|
-
}, f(r)), {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
770
|
+
"onUpdate:modelValue": z[0] || (z[0] = (I) => m.$emit("update:modelValue", I))
|
|
771
|
+
}, f(r)), nt({ _: 2 }, [
|
|
772
|
+
e.inputMode ? {
|
|
773
|
+
name: "default",
|
|
774
|
+
fn: D(({ inputValue: I, inputEvents: A, showPopover: q }) => [
|
|
775
|
+
e.isRange ? (d(), O(la, {
|
|
776
|
+
key: 1,
|
|
777
|
+
disabled: e.disabled,
|
|
778
|
+
error: e.error,
|
|
779
|
+
"input-id": v.value,
|
|
780
|
+
"input-value": I,
|
|
781
|
+
"input-value-fmt": C(I),
|
|
782
|
+
listeners: A,
|
|
783
|
+
placeholder: e.placeholder,
|
|
784
|
+
required: e.required,
|
|
785
|
+
onUiFocusin: q,
|
|
786
|
+
onUiInput: q
|
|
787
|
+
}, null, 8, ["disabled", "error", "input-id", "input-value", "input-value-fmt", "listeners", "placeholder", "required", "onUiFocusin", "onUiInput"])) : (d(), O(ta, {
|
|
788
|
+
key: 0,
|
|
789
|
+
disabled: e.disabled,
|
|
790
|
+
error: e.error,
|
|
791
|
+
"input-id": v.value,
|
|
792
|
+
listeners: A,
|
|
793
|
+
"model-value": C(I),
|
|
794
|
+
placeholder: e.placeholder,
|
|
795
|
+
required: e.required
|
|
796
|
+
}, null, 8, ["disabled", "error", "input-id", "listeners", "model-value", "placeholder", "required"]))
|
|
797
|
+
]),
|
|
798
|
+
key: "0"
|
|
799
|
+
} : void 0
|
|
800
|
+
]), 1040, ["columns", "disabled-dates", "max-date", "min-date", "model-value", "model-modifiers", "step"]),
|
|
801
|
+
b.value ? (d(), O(pe, {
|
|
797
802
|
key: 1,
|
|
798
803
|
error: e.error,
|
|
799
804
|
"error-msg": e.errorMsg,
|
|
@@ -1122,7 +1127,7 @@ const $a = {
|
|
|
1122
1127
|
function w() {
|
|
1123
1128
|
u.value && (u.value.indeterminate = r.value && !s.value);
|
|
1124
1129
|
}
|
|
1125
|
-
function
|
|
1130
|
+
function b(C) {
|
|
1126
1131
|
n("update:modelValue", C);
|
|
1127
1132
|
}
|
|
1128
1133
|
function x(C) {
|
|
@@ -1131,7 +1136,7 @@ const $a = {
|
|
|
1131
1136
|
}
|
|
1132
1137
|
function S(C) {
|
|
1133
1138
|
const { checked: P } = C.target;
|
|
1134
|
-
c.value ? x(P) :
|
|
1139
|
+
c.value ? x(P) : b(P);
|
|
1135
1140
|
}
|
|
1136
1141
|
return R(s, w), R(r, w), Y(w), (C, P) => (d(), h("div", N({
|
|
1137
1142
|
class: "bs-boolean",
|
|
@@ -1215,7 +1220,7 @@ const $a = {
|
|
|
1215
1220
|
if (a.hoverEffect)
|
|
1216
1221
|
return a.iconPosition;
|
|
1217
1222
|
}), c = p(() => a.textBtn && a.iconPosition !== "left"), v = p(() => a.textBtn && a.iconPosition === "left");
|
|
1218
|
-
return (w,
|
|
1223
|
+
return (w, b) => (d(), O(J(f(n)), N({
|
|
1219
1224
|
class: "bs-circle-button",
|
|
1220
1225
|
"data-disabled": e.disabled,
|
|
1221
1226
|
"data-direction": r.value,
|
|
@@ -1259,7 +1264,7 @@ const $a = {
|
|
|
1259
1264
|
setup(e, { expose: a }) {
|
|
1260
1265
|
const t = y(null);
|
|
1261
1266
|
return a({ internalContainerRef: t }), (n, l) => (d(), h(W, null, [
|
|
1262
|
-
e.breakout && e.breakoutMounted ? (d(), O(
|
|
1267
|
+
e.breakout && e.breakoutMounted ? (d(), O(ct, {
|
|
1263
1268
|
key: 0,
|
|
1264
1269
|
to: e.breakoutStub
|
|
1265
1270
|
}, [
|
|
@@ -1322,9 +1327,9 @@ const $a = {
|
|
|
1322
1327
|
setup(e, { emit: a }) {
|
|
1323
1328
|
const t = e, n = a, l = [], i = t.preloaded && t.shown;
|
|
1324
1329
|
function u(r, c) {
|
|
1325
|
-
const { duration: v, enterClass: w, enterAttribute:
|
|
1330
|
+
const { duration: v, enterClass: w, enterAttribute: b } = t;
|
|
1326
1331
|
l.push(setTimeout(() => {
|
|
1327
|
-
w && r.classList.add(w),
|
|
1332
|
+
w && r.classList.add(w), b && r.setAttribute(b, ""), l.push(setTimeout(() => {
|
|
1328
1333
|
c();
|
|
1329
1334
|
}, v)), n("enter", r);
|
|
1330
1335
|
}));
|
|
@@ -1333,11 +1338,11 @@ const $a = {
|
|
|
1333
1338
|
const {
|
|
1334
1339
|
duration: v,
|
|
1335
1340
|
enterClass: w,
|
|
1336
|
-
enterAttribute:
|
|
1341
|
+
enterAttribute: b,
|
|
1337
1342
|
leaveClass: x,
|
|
1338
1343
|
leaveAttribute: S
|
|
1339
1344
|
} = t;
|
|
1340
|
-
r.classList.remove(w), r.removeAttribute(
|
|
1345
|
+
r.classList.remove(w), r.removeAttribute(b), x && r.classList.add(x), S && r.setAttribute(S, ""), l.push(setTimeout(() => {
|
|
1341
1346
|
c();
|
|
1342
1347
|
}, v)), n("leave", r);
|
|
1343
1348
|
}
|
|
@@ -1391,7 +1396,7 @@ const $a = {
|
|
|
1391
1396
|
const n = y(null), l = y(null), i = y(!1);
|
|
1392
1397
|
let u = !1;
|
|
1393
1398
|
return Y(() => {
|
|
1394
|
-
e && (n.value = a ||
|
|
1399
|
+
e && (n.value = a || lt(), document.getElementById(n.value) ? (l.value = document.getElementById(n.value), u = !0) : (l.value = document.createElement("div"), l.value.id = n.value, l.value.style.position = t, document.body.insertAdjacentElement("afterbegin", l.value)), i.value = !0);
|
|
1395
1400
|
}), re(() => {
|
|
1396
1401
|
var o;
|
|
1397
1402
|
e && !u && ((o = document.getElementById(n.value)) == null || o.remove());
|
|
@@ -1460,7 +1465,7 @@ const $a = {
|
|
|
1460
1465
|
});
|
|
1461
1466
|
const { breakoutStub: v, breakoutMounted: w } = La(t.breakout, t.containerId);
|
|
1462
1467
|
oe("dropdownEnter", u), oe("dropdownAfterEnter", o), oe("dropdownShown", p(() => t.shown));
|
|
1463
|
-
const
|
|
1468
|
+
const b = (I, A) => {
|
|
1464
1469
|
i.value.style.setProperty(I, A);
|
|
1465
1470
|
};
|
|
1466
1471
|
function x() {
|
|
@@ -1470,10 +1475,10 @@ const $a = {
|
|
|
1470
1475
|
function S(I, A) {
|
|
1471
1476
|
if (t.position === "top") {
|
|
1472
1477
|
const q = I.bottom - A.bottom;
|
|
1473
|
-
|
|
1478
|
+
b("--dropdown-wscreen-top", "auto"), b("--dropdown-wscreen-bottom", `${q + A.height + 8}px`);
|
|
1474
1479
|
} else {
|
|
1475
1480
|
const q = A.top - I.top;
|
|
1476
|
-
|
|
1481
|
+
b("--dropdown-wscreen-top", `${q + A.height + 8}px`), b("--dropdown-wscreen-bottom", "auto");
|
|
1477
1482
|
}
|
|
1478
1483
|
}
|
|
1479
1484
|
function C(I, A, q) {
|
|
@@ -1481,25 +1486,25 @@ const $a = {
|
|
|
1481
1486
|
const F = A.left - I.left;
|
|
1482
1487
|
if (t.position === "center") {
|
|
1483
1488
|
const _ = (A.width - q.width) / 2;
|
|
1484
|
-
|
|
1489
|
+
b("--dropdown-wscreen-left", `${F + _}px`), b("--dropdown-wscreen-right", "auto");
|
|
1485
1490
|
} else if (t.position === "right") {
|
|
1486
1491
|
const _ = I.right - A.right;
|
|
1487
|
-
|
|
1492
|
+
b("--dropdown-wscreen-left", "auto"), b("--dropdown-wscreen-right", `${_}px`);
|
|
1488
1493
|
} else
|
|
1489
|
-
|
|
1494
|
+
b("--dropdown-wscreen-left", `${F}px`), b("--dropdown-wscreen-right", "auto");
|
|
1490
1495
|
}
|
|
1491
1496
|
}
|
|
1492
1497
|
function P() {
|
|
1493
1498
|
if (t.width === "anchor") {
|
|
1494
1499
|
const I = s.value.getBoundingClientRect();
|
|
1495
|
-
|
|
1500
|
+
b("--dropdown-wscreen-width", `${I.width}px`);
|
|
1496
1501
|
} else
|
|
1497
|
-
|
|
1502
|
+
b("--dropdown-wscreen-width", "");
|
|
1498
1503
|
}
|
|
1499
1504
|
function g() {
|
|
1500
1505
|
u.value = !0, x(), P(), n("enter");
|
|
1501
1506
|
}
|
|
1502
|
-
function
|
|
1507
|
+
function m() {
|
|
1503
1508
|
o.value = !0, n("after-enter");
|
|
1504
1509
|
}
|
|
1505
1510
|
function z() {
|
|
@@ -1521,7 +1526,7 @@ const $a = {
|
|
|
1521
1526
|
preloaded: e.preloaded,
|
|
1522
1527
|
duration: 75,
|
|
1523
1528
|
"enter-attribute": "data-shown",
|
|
1524
|
-
onAfterEnter:
|
|
1529
|
+
onAfterEnter: m,
|
|
1525
1530
|
onEnter: g,
|
|
1526
1531
|
onAfterLeave: z
|
|
1527
1532
|
}, {
|
|
@@ -1556,7 +1561,7 @@ const $a = {
|
|
|
1556
1561
|
}, 8, ["breakout", "breakoutMounted", "breakoutStub", "containerId"])
|
|
1557
1562
|
], 64));
|
|
1558
1563
|
}
|
|
1559
|
-
}),
|
|
1564
|
+
}), rt = {
|
|
1560
1565
|
__name: "BsDropdown",
|
|
1561
1566
|
props: {
|
|
1562
1567
|
anchorId: {
|
|
@@ -1706,7 +1711,7 @@ const $a = {
|
|
|
1706
1711
|
emits: ["optselected", "update:modelValue", "close"],
|
|
1707
1712
|
setup(e, { expose: a, emit: t }) {
|
|
1708
1713
|
const n = e, l = t, i = y(null), u = y(null), o = y(-1), s = y(null), r = y(!1), c = ie("dropdownEnter", !1), v = ie("dropdownAfterEnter", !1), w = ie("dropdownShown", !1);
|
|
1709
|
-
let
|
|
1714
|
+
let b = -1;
|
|
1710
1715
|
oe("handleSelect", z), oe("optionsId", p(() => n.optionsId)), Y(() => {
|
|
1711
1716
|
S(), C(), document.addEventListener("keydown", g);
|
|
1712
1717
|
}), re(() => {
|
|
@@ -1721,7 +1726,7 @@ const $a = {
|
|
|
1721
1726
|
}
|
|
1722
1727
|
), R(v, (I) => {
|
|
1723
1728
|
var A, q;
|
|
1724
|
-
I &&
|
|
1729
|
+
I && b > -1 && (n.focusOnShow ? (A = s.value[b]) == null || A.focus() : (q = s.value[b]) == null || q.scrollIntoView({ block: "nearest" }));
|
|
1725
1730
|
}), R(w, C);
|
|
1726
1731
|
const x = p(() => n.modelValue || n.selectedValue);
|
|
1727
1732
|
function S() {
|
|
@@ -1731,12 +1736,12 @@ const $a = {
|
|
|
1731
1736
|
}
|
|
1732
1737
|
function C() {
|
|
1733
1738
|
var I, A;
|
|
1734
|
-
w.value && !n.multiselect ? (
|
|
1739
|
+
w.value && !n.multiselect ? (b = s.value.findIndex(
|
|
1735
1740
|
(q) => q.getAttribute("data-value") === String(x.value)
|
|
1736
1741
|
), s.value.forEach((q) => {
|
|
1737
1742
|
var F;
|
|
1738
1743
|
return (F = q == null ? void 0 : q.setAttribute) == null ? void 0 : F.call(q, "aria-selected", "false");
|
|
1739
|
-
}),
|
|
1744
|
+
}), b > -1 && ((I = s.value[b]) == null || I.setAttribute("data-selected", ""), (A = s.value[b]) == null || A.setAttribute("aria-selected", "true"), o.value = b)) : (s.value.forEach((q) => {
|
|
1740
1745
|
var F;
|
|
1741
1746
|
return (F = q == null ? void 0 : q.removeAttribute) == null ? void 0 : F.call(q, "data-selected");
|
|
1742
1747
|
}), s.value.forEach((q) => {
|
|
@@ -1759,23 +1764,23 @@ const $a = {
|
|
|
1759
1764
|
if (w.value)
|
|
1760
1765
|
switch (I.key) {
|
|
1761
1766
|
case "ArrowDown":
|
|
1762
|
-
|
|
1767
|
+
m("down"), I.preventDefault();
|
|
1763
1768
|
break;
|
|
1764
1769
|
case "ArrowUp":
|
|
1765
|
-
|
|
1770
|
+
m("up"), I.preventDefault();
|
|
1766
1771
|
break;
|
|
1767
1772
|
case "Home":
|
|
1768
|
-
|
|
1773
|
+
m("home"), I.preventDefault();
|
|
1769
1774
|
break;
|
|
1770
1775
|
case "End":
|
|
1771
|
-
|
|
1776
|
+
m("end"), I.preventDefault();
|
|
1772
1777
|
break;
|
|
1773
1778
|
case "Tab":
|
|
1774
|
-
o.value =
|
|
1779
|
+
o.value = b, n.preventTab && I.preventDefault();
|
|
1775
1780
|
break;
|
|
1776
1781
|
}
|
|
1777
1782
|
}
|
|
1778
|
-
function
|
|
1783
|
+
function m(I) {
|
|
1779
1784
|
let A;
|
|
1780
1785
|
switch (I) {
|
|
1781
1786
|
case "up":
|
|
@@ -1853,7 +1858,7 @@ const $a = {
|
|
|
1853
1858
|
L(o.$slots, "default")
|
|
1854
1859
|
], 8, za));
|
|
1855
1860
|
}
|
|
1856
|
-
}, Na = ["data-img-size", "data-initials", "data-no-img"], Ra = ["src", "alt"],
|
|
1861
|
+
}, Na = ["data-img-size", "data-initials", "data-no-img"], Ra = ["src", "alt"], st = {
|
|
1857
1862
|
__name: "BsProfileImg",
|
|
1858
1863
|
props: {
|
|
1859
1864
|
src: String,
|
|
@@ -1966,7 +1971,7 @@ const $a = {
|
|
|
1966
1971
|
r.icon ? (d(), h("span", Fa, [
|
|
1967
1972
|
(d(), O(J(t[r.icon])))
|
|
1968
1973
|
])) : k("", !0),
|
|
1969
|
-
r.profileImg ? (d(), O(
|
|
1974
|
+
r.profileImg ? (d(), O(st, {
|
|
1970
1975
|
key: 2,
|
|
1971
1976
|
src: r.profileImg.src,
|
|
1972
1977
|
size: "xs",
|
|
@@ -2023,45 +2028,45 @@ const $a = {
|
|
|
2023
2028
|
() => t.selectedOptions,
|
|
2024
2029
|
c,
|
|
2025
2030
|
{ immediate: !0 }
|
|
2026
|
-
), R(() => t.shown, (
|
|
2027
|
-
|
|
2031
|
+
), R(() => t.shown, (b) => {
|
|
2032
|
+
b && ce(s);
|
|
2028
2033
|
});
|
|
2029
2034
|
function s() {
|
|
2030
2035
|
var x, S;
|
|
2031
2036
|
l.value && (l.value.refreshOptions(), l.value.activeDescendantId = (x = l.value.optionEls[0]) == null ? void 0 : x.id, l.value.focusedIndex = 0);
|
|
2032
|
-
const
|
|
2033
|
-
(S =
|
|
2037
|
+
const b = document.querySelector(`#${t.optionsId} [data-component="bs-dropdown-option"]`);
|
|
2038
|
+
(S = b == null ? void 0 : b.focus) == null || S.call(b, { preventScroll: !0 });
|
|
2034
2039
|
}
|
|
2035
2040
|
function r() {
|
|
2036
|
-
var
|
|
2041
|
+
var b;
|
|
2037
2042
|
if (l.value) {
|
|
2038
2043
|
l.value.refreshOptions();
|
|
2039
2044
|
const x = l.value.focusedIndex, S = l.value.optionEls[x];
|
|
2040
|
-
(
|
|
2045
|
+
(b = S == null ? void 0 : S.focus) == null || b.call(S), l.value.activeDescendantId = S == null ? void 0 : S.id;
|
|
2041
2046
|
}
|
|
2042
2047
|
}
|
|
2043
|
-
function c(
|
|
2044
|
-
const x = new Set(
|
|
2048
|
+
function c(b = []) {
|
|
2049
|
+
const x = new Set(b), S = [], C = [];
|
|
2045
2050
|
t.options.forEach((P) => {
|
|
2046
|
-
const g = { ...P },
|
|
2047
|
-
x.has(P.value) ? (g.checkbox = { inputId:
|
|
2051
|
+
const g = { ...P }, m = `${t.optionsId}-${P.value}-cb`;
|
|
2052
|
+
x.has(P.value) ? (g.checkbox = { inputId: m, checked: !0 }, S.push(g)) : (g.checkbox = { inputId: m, checked: !1 }, C.push(g));
|
|
2048
2053
|
}), i.value = S, ce(() => {
|
|
2049
2054
|
u.value = C, ce(() => {
|
|
2050
2055
|
o && r(), o = !1;
|
|
2051
2056
|
});
|
|
2052
2057
|
});
|
|
2053
2058
|
}
|
|
2054
|
-
function v(
|
|
2055
|
-
const x = new Set(
|
|
2059
|
+
function v(b = []) {
|
|
2060
|
+
const x = new Set(b), S = [];
|
|
2056
2061
|
return t.options.forEach((C) => {
|
|
2057
2062
|
x.has(C.value) && S.push(C.value);
|
|
2058
2063
|
}), S;
|
|
2059
2064
|
}
|
|
2060
|
-
function w(
|
|
2061
|
-
const x = t.selectedOptions.includes(
|
|
2065
|
+
function w(b) {
|
|
2066
|
+
const x = t.selectedOptions.includes(b) ? t.selectedOptions.filter((S) => S !== b) : v([...t.selectedOptions, b]);
|
|
2062
2067
|
o = !0, n("update:selectedOptions", x);
|
|
2063
2068
|
}
|
|
2064
|
-
return (
|
|
2069
|
+
return (b, x) => (d(), O(Fe, {
|
|
2065
2070
|
ref_key: "optlist",
|
|
2066
2071
|
ref: l,
|
|
2067
2072
|
"aria-multiselectable": "true",
|
|
@@ -2179,7 +2184,7 @@ const $a = {
|
|
|
2179
2184
|
function u() {
|
|
2180
2185
|
n.value && (n.value = !1, t("close"));
|
|
2181
2186
|
}
|
|
2182
|
-
return (o, s) => (d(), O(f(
|
|
2187
|
+
return (o, s) => (d(), O(f(rt), {
|
|
2183
2188
|
"anchor-id": e.anchorId,
|
|
2184
2189
|
breakout: e.breakout,
|
|
2185
2190
|
"container-id": e.containerId,
|
|
@@ -2414,7 +2419,7 @@ const $a = {
|
|
|
2414
2419
|
L(n.$slots, "label", {}, () => [
|
|
2415
2420
|
H(T(e.label), 1)
|
|
2416
2421
|
]),
|
|
2417
|
-
V(f(
|
|
2422
|
+
V(f(ot))
|
|
2418
2423
|
], 8, _a));
|
|
2419
2424
|
}
|
|
2420
2425
|
}, tn = ["id"], Ml = {
|
|
@@ -2496,7 +2501,7 @@ const $a = {
|
|
|
2496
2501
|
function w(x) {
|
|
2497
2502
|
n("update:selectedOptions", x);
|
|
2498
2503
|
}
|
|
2499
|
-
function
|
|
2504
|
+
function b(x) {
|
|
2500
2505
|
t.multiselect || (n("update:selectedOption", x), r());
|
|
2501
2506
|
}
|
|
2502
2507
|
return (x, S) => (d(), h("div", {
|
|
@@ -2522,7 +2527,7 @@ const $a = {
|
|
|
2522
2527
|
]),
|
|
2523
2528
|
_: 3
|
|
2524
2529
|
}, 8, ["aria-controls", "aria-expanded", "disabled", "id", "open", "options-id", "size"]),
|
|
2525
|
-
V(
|
|
2530
|
+
V(rt, {
|
|
2526
2531
|
shown: e.open,
|
|
2527
2532
|
"anchor-id": f(o),
|
|
2528
2533
|
breakout: e.breakout,
|
|
@@ -2543,7 +2548,7 @@ const $a = {
|
|
|
2543
2548
|
"options-id": f(s),
|
|
2544
2549
|
"selected-options": e.selectedOptions,
|
|
2545
2550
|
shown: e.open,
|
|
2546
|
-
"onUpdate:modelValue":
|
|
2551
|
+
"onUpdate:modelValue": b,
|
|
2547
2552
|
"onUpdate:selectedOptions": w,
|
|
2548
2553
|
onClose: S[1] || (S[1] = (C) => e.multiselect ? void 0 : c())
|
|
2549
2554
|
}, {
|
|
@@ -2825,13 +2830,13 @@ const $a = {
|
|
|
2825
2830
|
c,
|
|
2826
2831
|
v,
|
|
2827
2832
|
w,
|
|
2828
|
-
|
|
2829
|
-
] = X(4), x = y(!1), S = y(""), C = y(""), P = y(!1), g = y(!1),
|
|
2833
|
+
b
|
|
2834
|
+
] = X(4), x = y(!1), S = y(""), C = y(""), P = y(!1), g = y(!1), m = y(!0);
|
|
2830
2835
|
a({
|
|
2831
2836
|
validationErr: P,
|
|
2832
2837
|
validationErrMsg: C
|
|
2833
2838
|
});
|
|
2834
|
-
const z = p(() => S.value ? `+${o.value}${S.value}` : ""), I = p(() => `Country code: ${o.value}. Click to change.`), A = p(() =>
|
|
2839
|
+
const z = p(() => S.value ? `+${o.value}${S.value}` : ""), I = p(() => `Country code: ${o.value}. Click to change.`), A = p(() => m.value ? n.errorMsg || C.value : ""), q = p(() => n.error || P.value), F = p(() => n.hint || q.value && A.value), _ = p(() => m.value && q.value);
|
|
2835
2840
|
R(z, (M) => {
|
|
2836
2841
|
l("update:modelValue", M), be(M);
|
|
2837
2842
|
}), R(() => n.modelValue, de), De(), Y(() => x.value = !0);
|
|
@@ -2847,10 +2852,10 @@ const $a = {
|
|
|
2847
2852
|
o.value = M, g.value = !1, (U = u.value) == null || U.focus(), he(M);
|
|
2848
2853
|
}
|
|
2849
2854
|
function Le() {
|
|
2850
|
-
n.deferValidation && (
|
|
2855
|
+
n.deferValidation && (m.value = !0), l("input-blur");
|
|
2851
2856
|
}
|
|
2852
2857
|
function Ve(M) {
|
|
2853
|
-
S.value = M.target.value, n.deferValidation && (
|
|
2858
|
+
S.value = M.target.value, n.deferValidation && (m.value = !1);
|
|
2854
2859
|
}
|
|
2855
2860
|
function Ee(M) {
|
|
2856
2861
|
var U, G;
|
|
@@ -2878,7 +2883,7 @@ const $a = {
|
|
|
2878
2883
|
"data-component": "bs-input-phone"
|
|
2879
2884
|
}, f(K)(M.$attrs, f(ge)).remaining), [
|
|
2880
2885
|
V(ne, {
|
|
2881
|
-
for: M.$attrs.id || e.inputId || f(
|
|
2886
|
+
for: M.$attrs.id || e.inputId || f(b),
|
|
2882
2887
|
required: e.required,
|
|
2883
2888
|
class: ae({ "visually-hidden": e.hideLabel })
|
|
2884
2889
|
}, {
|
|
@@ -2913,7 +2918,7 @@ const $a = {
|
|
|
2913
2918
|
V(f(vt), { size: "sm" })
|
|
2914
2919
|
], 8, on),
|
|
2915
2920
|
V(ve, N({
|
|
2916
|
-
"input-id": M.$attrs.id || e.inputId || f(
|
|
2921
|
+
"input-id": M.$attrs.id || e.inputId || f(b),
|
|
2917
2922
|
disabled: e.disabled,
|
|
2918
2923
|
"hint-id": f(w),
|
|
2919
2924
|
placeholder: e.placeholder,
|
|
@@ -3144,19 +3149,19 @@ const $a = {
|
|
|
3144
3149
|
const s = p(() => t.typeaheadId || u.value), r = p(() => `${s.value}-input-container`), c = p(() => `${s.value}-input`), v = p(() => `${s.value}-options`), w = p(() => {
|
|
3145
3150
|
if (l.value) {
|
|
3146
3151
|
let g = t.options;
|
|
3147
|
-
const
|
|
3148
|
-
return g =
|
|
3152
|
+
const m = t.inputValue.toLowerCase(), z = t.filterType === "includes" ? "includes" : "startsWith";
|
|
3153
|
+
return g = b(g, m, z), g = g.slice(0, t.maxOptions), g = x(g, m, z), o = g, g;
|
|
3149
3154
|
} else
|
|
3150
3155
|
return o;
|
|
3151
3156
|
});
|
|
3152
|
-
function
|
|
3153
|
-
return t.internalFiltering ? g.filter((I) => I.label.toLowerCase()[z](
|
|
3157
|
+
function b(g, m, z) {
|
|
3158
|
+
return t.internalFiltering ? g.filter((I) => I.label.toLowerCase()[z](m)) : g;
|
|
3154
3159
|
}
|
|
3155
|
-
function x(g,
|
|
3160
|
+
function x(g, m, z) {
|
|
3156
3161
|
return g.map((I) => {
|
|
3157
3162
|
let A = I.label;
|
|
3158
|
-
if (
|
|
3159
|
-
const q = z === "includes" ? "gi" : "i", F = new RegExp(`(${
|
|
3163
|
+
if (m !== "") {
|
|
3164
|
+
const q = z === "includes" ? "gi" : "i", F = new RegExp(`(${m})`, q);
|
|
3160
3165
|
A = I.label.replace(F, '<span style="color: var(--bs-blue-base)">$1</span>');
|
|
3161
3166
|
}
|
|
3162
3167
|
return { ...I, labelHtml: A };
|
|
@@ -3170,10 +3175,10 @@ const $a = {
|
|
|
3170
3175
|
}
|
|
3171
3176
|
function P(g) {
|
|
3172
3177
|
i.value = !0, l.value = !1;
|
|
3173
|
-
const
|
|
3174
|
-
n("update:inputValue",
|
|
3178
|
+
const m = w.value.find((z) => z.value === g);
|
|
3179
|
+
n("update:inputValue", m.label), n("update:optionsValue", g);
|
|
3175
3180
|
}
|
|
3176
|
-
return (g,
|
|
3181
|
+
return (g, m) => (d(), h(W, null, [
|
|
3177
3182
|
e.label || g.$slots.label ? (d(), O(ne, {
|
|
3178
3183
|
key: 0,
|
|
3179
3184
|
for: c.value,
|
|
@@ -3204,7 +3209,7 @@ const $a = {
|
|
|
3204
3209
|
}, g.$attrs, {
|
|
3205
3210
|
onClear: C,
|
|
3206
3211
|
onFocusin: S,
|
|
3207
|
-
"onUpdate:modelValue":
|
|
3212
|
+
"onUpdate:modelValue": m[0] || (m[0] = (z) => n("update:inputValue", z))
|
|
3208
3213
|
}), null, 16, ["aria-controls", "aria-expanded", "disabled", "hide-clear", "hide-search-icon", "input-id", "placeholder", "value"])
|
|
3209
3214
|
], 8, yn),
|
|
3210
3215
|
V(We, {
|
|
@@ -3217,11 +3222,11 @@ const $a = {
|
|
|
3217
3222
|
shown: l.value,
|
|
3218
3223
|
"use-mobile-style": !1,
|
|
3219
3224
|
width: "toggle",
|
|
3220
|
-
onClose:
|
|
3225
|
+
onClose: m[1] || (m[1] = (z) => l.value = !1),
|
|
3221
3226
|
"onUpdate:modelValue": P
|
|
3222
3227
|
}, {
|
|
3223
3228
|
default: D(() => [
|
|
3224
|
-
V(ye, { options: w.value },
|
|
3229
|
+
V(ye, { options: w.value }, nt({ _: 2 }, [
|
|
3225
3230
|
e.loading ? {
|
|
3226
3231
|
name: "no-options",
|
|
3227
3232
|
fn: D(() => [
|
|
@@ -3358,9 +3363,9 @@ const $a = {
|
|
|
3358
3363
|
preloaded: e.preloaded,
|
|
3359
3364
|
duration: 75,
|
|
3360
3365
|
"enter-attribute": "data-shown",
|
|
3361
|
-
onEnter: w[1] || (w[1] = (
|
|
3362
|
-
onAfterEnter: w[2] || (w[2] = (
|
|
3363
|
-
onAfterLeave: w[3] || (w[3] = (
|
|
3366
|
+
onEnter: w[1] || (w[1] = (b) => ft(u) ? u.value = !0 : u = !0),
|
|
3367
|
+
onAfterEnter: w[2] || (w[2] = (b) => n("after-enter")),
|
|
3368
|
+
onAfterLeave: w[3] || (w[3] = (b) => n("after-leave"))
|
|
3364
3369
|
}, {
|
|
3365
3370
|
default: D(() => [
|
|
3366
3371
|
B("div", N({
|
|
@@ -3390,7 +3395,7 @@ const $a = {
|
|
|
3390
3395
|
type: "button",
|
|
3391
3396
|
title: "Close Modal",
|
|
3392
3397
|
"aria-label": "Close Modal",
|
|
3393
|
-
onClick: w[0] || (w[0] = (
|
|
3398
|
+
onClick: w[0] || (w[0] = (b) => n("close", e.modalId))
|
|
3394
3399
|
}, [
|
|
3395
3400
|
V(f(Se), { class: "close-button" })
|
|
3396
3401
|
])) : k("", !0)
|
|
@@ -3534,12 +3539,12 @@ const $a = {
|
|
|
3534
3539
|
if (t.pageCount <= t.pageRange)
|
|
3535
3540
|
return [...Array(t.pageCount + 1).keys()].slice(1);
|
|
3536
3541
|
const C = [1], P = (t.pageRange - 1) / 2;
|
|
3537
|
-
let g = l.value - P,
|
|
3538
|
-
g < 1 && (
|
|
3539
|
-
for (let z = g; z <=
|
|
3542
|
+
let g = l.value - P, m = l.value + P;
|
|
3543
|
+
g < 1 && (m += 1 - g, g = 1), m > t.pageCount && (g -= m - t.pageCount, m = t.pageCount), g = Math.max(g, 2), m = Math.min(m, t.pageCount - 1), g > 2 && C.push(t.breakText);
|
|
3544
|
+
for (let z = g; z <= m; z++)
|
|
3540
3545
|
C.push(z);
|
|
3541
|
-
return
|
|
3542
|
-
}),
|
|
3546
|
+
return m < t.pageCount - 1 && C.push(t.breakText), C.push(t.pageCount), C;
|
|
3547
|
+
}), b = p(() => `${t.centerLabel ?? "Page"} ${l.value} of ${u.value}`), x = p(() => {
|
|
3543
3548
|
const C = (l.value - 1) * t.itemsPerGroup + 1, P = Math.min(C - 1 + t.itemsPerGroup, t.itemsCount);
|
|
3544
3549
|
return `${t.centerLabel ?? "Results"} ${C} - ${P} of ${t.itemsCount}`;
|
|
3545
3550
|
}), S = p(() => t.resultsIncrements.split(",").map((C) => parseInt(C)));
|
|
@@ -3579,10 +3584,10 @@ const $a = {
|
|
|
3579
3584
|
type: "button",
|
|
3580
3585
|
title: `Page ${g}`,
|
|
3581
3586
|
"data-selected": g === l.value,
|
|
3582
|
-
onClick: (
|
|
3587
|
+
onClick: (m) => l.value = g
|
|
3583
3588
|
}, T(g), 9, Vn))), 128))
|
|
3584
3589
|
])) : k("", !0),
|
|
3585
|
-
t.variant === "base" && t.centerDisplay === "text" ? (d(), h("span", En, T(
|
|
3590
|
+
t.variant === "base" && t.centerDisplay === "text" ? (d(), h("span", En, T(b.value), 1)) : k("", !0),
|
|
3586
3591
|
t.variant === "group" ? (d(), h("span", Dn, T(x.value), 1)) : k("", !0),
|
|
3587
3592
|
t.variant === "results" ? (d(), h(W, { key: 4 }, [
|
|
3588
3593
|
On,
|
|
@@ -3592,7 +3597,7 @@ const $a = {
|
|
|
3592
3597
|
key: `results-${g}`,
|
|
3593
3598
|
"data-selected": g === l.value,
|
|
3594
3599
|
disabled: l.value === g,
|
|
3595
|
-
onClick: (
|
|
3600
|
+
onClick: (m) => l.value = g
|
|
3596
3601
|
}, T(g), 9, Pn))), 128))
|
|
3597
3602
|
])
|
|
3598
3603
|
], 64)) : k("", !0),
|
|
@@ -3762,7 +3767,7 @@ const $a = {
|
|
|
3762
3767
|
"data-layout": e.layout
|
|
3763
3768
|
}, f(o), { onClick: f(i) }), {
|
|
3764
3769
|
default: D(() => [
|
|
3765
|
-
V(
|
|
3770
|
+
V(st, {
|
|
3766
3771
|
src: e.imageSrc,
|
|
3767
3772
|
size: e.imageSize,
|
|
3768
3773
|
initials: e.initials,
|
|
@@ -4133,10 +4138,10 @@ const $a = {
|
|
|
4133
4138
|
},
|
|
4134
4139
|
emits: ["tabChange", "update:modelValue"],
|
|
4135
4140
|
setup(e, { emit: a }) {
|
|
4136
|
-
const t = e, n = a, l = y(!1), i = y(!1), u = y([]), o = y(!1), s = y(!1), r = y(), c = y([]), v = y(!1), w = y([]),
|
|
4141
|
+
const t = e, n = a, l = y(!1), i = y(!1), u = y([]), o = y(!1), s = y(!1), r = y(), c = y([]), v = y(!1), w = y([]), b = y(), x = y(), S = y(), [C, P] = X(2), g = p(() => t.activeTabId ? w.value.findIndex(($) => $.id === t.activeTabId) : 0), m = p(() => u.value.some(($) => $.id === t.activeTabId)), z = p(() => `${P.value}-options`), I = p(() => `${P.value}-toggle`), A = p(() => {
|
|
4137
4142
|
var $;
|
|
4138
|
-
return
|
|
4139
|
-
}), q = p(() =>
|
|
4143
|
+
return m.value ? ($ = w.value[g.value]) == null ? void 0 : $.textContent : "More";
|
|
4144
|
+
}), q = p(() => m.value ? c.value[g.value] - c.value[g.value - 1] + ul : dl), F = p(() => {
|
|
4140
4145
|
var E, j;
|
|
4141
4146
|
let $ = [];
|
|
4142
4147
|
if (typeof window > "u")
|
|
@@ -4182,14 +4187,14 @@ const $a = {
|
|
|
4182
4187
|
}
|
|
4183
4188
|
function Le() {
|
|
4184
4189
|
var $;
|
|
4185
|
-
($ =
|
|
4190
|
+
($ = b.value) == null || $.focus(), o.value = !1;
|
|
4186
4191
|
}
|
|
4187
4192
|
function Ve() {
|
|
4188
4193
|
o.value = !o.value, i.value || (i.value = !0);
|
|
4189
4194
|
}
|
|
4190
4195
|
function Ee($) {
|
|
4191
4196
|
var E;
|
|
4192
|
-
o.value = !1, (E =
|
|
4197
|
+
o.value = !1, (E = b.value) == null || E.focus(), de($);
|
|
4193
4198
|
}
|
|
4194
4199
|
function De($) {
|
|
4195
4200
|
if (t.withBsTabs)
|
|
@@ -4222,7 +4227,7 @@ const $a = {
|
|
|
4222
4227
|
var le, te, Ge, He;
|
|
4223
4228
|
const $ = parseInt(r.value.style.getPropertyValue("--active-line-offset")) || 0, E = S.value;
|
|
4224
4229
|
let j = 300, Q = ((te = (le = F.value) == null ? void 0 : le[g.value]) == null ? void 0 : te.offsetLeft) || 0, ee = xe(g.value);
|
|
4225
|
-
s.value &&
|
|
4230
|
+
s.value && m.value && (Q = (Ge = b.value) == null ? void 0 : Ge.offsetLeft, ee = (He = b.value) == null ? void 0 : He.offsetWidth), j = Math.max(Math.abs((Q - $) / E * 300), 100), r.value.style.setProperty("--active-line-max-width", `${E}px`), r.value.style.setProperty("--active-line-scale", `${ee / E}`), r.value.style.setProperty("--active-line-offset", `${Q}px`), r.value.style.setProperty("--active-line-transition-duration", `${j}ms`);
|
|
4226
4231
|
}
|
|
4227
4232
|
function U() {
|
|
4228
4233
|
var $, E;
|
|
@@ -4238,7 +4243,7 @@ const $a = {
|
|
|
4238
4243
|
function ue() {
|
|
4239
4244
|
w.value = Array.from(r.value.children).filter(($) => $.role === "tab");
|
|
4240
4245
|
}
|
|
4241
|
-
function
|
|
4246
|
+
function dt() {
|
|
4242
4247
|
let $;
|
|
4243
4248
|
w.value.forEach((E, j) => {
|
|
4244
4249
|
$ = E.getBoundingClientRect().width + cl, c.value.push(j ? $ + c.value[j - 1] : $);
|
|
@@ -4247,7 +4252,7 @@ const $a = {
|
|
|
4247
4252
|
return R(() => t.activeTabId, Ae), Y(() => {
|
|
4248
4253
|
var $;
|
|
4249
4254
|
try {
|
|
4250
|
-
ue(),
|
|
4255
|
+
ue(), dt(), G(), S.value = r.value.getBoundingClientRect().width, _(), t.withBsTabs || ($ = w.value[g.value]) == null || $.setAttribute("aria-selected", "true");
|
|
4251
4256
|
} catch (E) {
|
|
4252
4257
|
console.log("tab error", E);
|
|
4253
4258
|
}
|
|
@@ -4268,11 +4273,11 @@ const $a = {
|
|
|
4268
4273
|
"aria-controls": f(P),
|
|
4269
4274
|
"aria-expanded": o.value,
|
|
4270
4275
|
class: "bs-tab-list-toggle",
|
|
4271
|
-
"data-active":
|
|
4276
|
+
"data-active": m.value || void 0,
|
|
4272
4277
|
"data-hidden": !s.value,
|
|
4273
4278
|
id: I.value,
|
|
4274
4279
|
ref_key: "dropdownToggle",
|
|
4275
|
-
ref:
|
|
4280
|
+
ref: b,
|
|
4276
4281
|
onClick: Ve
|
|
4277
4282
|
}, [
|
|
4278
4283
|
V(f(Bt), { size: "sm" }),
|
|
@@ -4670,7 +4675,7 @@ export {
|
|
|
4670
4675
|
Ol as BsChartBar,
|
|
4671
4676
|
ql as BsCheckbox,
|
|
4672
4677
|
Pl as BsCircleButton,
|
|
4673
|
-
|
|
4678
|
+
rt as BsDropdown,
|
|
4674
4679
|
Xa as BsDropdownMultiselect,
|
|
4675
4680
|
Ue as BsDropdownOption,
|
|
4676
4681
|
ye as BsDropdownOptionBuilder,
|
|
@@ -4694,7 +4699,7 @@ export {
|
|
|
4694
4699
|
Wl as BsPill,
|
|
4695
4700
|
Gl as BsProfile,
|
|
4696
4701
|
Qn as BsProfileDetails,
|
|
4697
|
-
|
|
4702
|
+
st as BsProfileImg,
|
|
4698
4703
|
Hl as BsRadio,
|
|
4699
4704
|
_n as BsSelect,
|
|
4700
4705
|
Kl as BsSelectField,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwtdev/bsds-components-vue3",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.4.0",
|
|
5
5
|
"description": "BSDS Vue3 Components",
|
|
6
6
|
"files": [
|
|
7
7
|
"lib"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@popperjs/core": "^2.11.8",
|
|
72
72
|
"@wwtdev/bsds-css": "^2.3.4",
|
|
73
|
-
"@wwtdev/bsds-icons-vue3": "^2.
|
|
73
|
+
"@wwtdev/bsds-icons-vue3": "^2.6.0",
|
|
74
74
|
"awesome-phonenumber": "^6.4.0",
|
|
75
75
|
"chart.js": "^4.4.1",
|
|
76
76
|
"uuid": "^9.0.1",
|