@bcc-code/component-library-vue 0.9.16 → 0.9.18
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.
|
@@ -9581,8 +9581,11 @@ const SC = {
|
|
|
9581
9581
|
}), EC = {
|
|
9582
9582
|
key: 0,
|
|
9583
9583
|
class: "flex gap-2"
|
|
9584
|
-
}, RC = {
|
|
9584
|
+
}, RC = {
|
|
9585
9585
|
key: 0,
|
|
9586
|
+
class: "text-heading-sm text-default"
|
|
9587
|
+
}, AC = {
|
|
9588
|
+
key: 1,
|
|
9586
9589
|
class: "text-body-sm text-text-subtlest"
|
|
9587
9590
|
}, zC = { class: "center gap-2" }, FC = ["onClick"], ON = /* @__PURE__ */ Te({
|
|
9588
9591
|
__name: "BccStepIndicator",
|
|
@@ -9602,15 +9605,15 @@ const SC = {
|
|
|
9602
9605
|
emits: ["update:modelValue"],
|
|
9603
9606
|
setup(t) {
|
|
9604
9607
|
const e = t, n = Tr(t, "modelValue"), r = ye(() => ({
|
|
9605
|
-
current: n.value + 1,
|
|
9608
|
+
current: n.value !== null ? n.value + 1 : null,
|
|
9606
9609
|
total: Array.isArray(e.steps) ? e.steps.length : e.steps,
|
|
9607
|
-
label: Array.isArray(e.steps) ? e.steps[n.value] ?? "" : ""
|
|
9610
|
+
label: Array.isArray(e.steps) ? e.steps[n.value ?? -1] ?? "" : ""
|
|
9608
9611
|
}));
|
|
9609
9612
|
return (i, o) => (d(), p("div", {
|
|
9610
9613
|
class: S(["bcc-step-indicator col gap-2", [{ left: t.left, right: t.right }, `ctx-${t.context}`]])
|
|
9611
9614
|
}, [
|
|
9612
9615
|
e.hideText ? g("", !0) : (d(), p("div", EC, [
|
|
9613
|
-
|
|
9616
|
+
r.value.current !== null ? (d(), p("span", RC, D(e.headingFn(r.value.current, r.value.total)), 1)) : g("", !0),
|
|
9614
9617
|
e.hideLabel ? g("", !0) : (d(), p("span", AC, D(r.value.label), 1))
|
|
9615
9618
|
])),
|
|
9616
9619
|
k("div", zC, [
|
|
@@ -9620,7 +9623,7 @@ const SC = {
|
|
|
9620
9623
|
l === n.value ? "w-6" : "w-1.5",
|
|
9621
9624
|
{
|
|
9622
9625
|
clickable: t.clickable,
|
|
9623
|
-
"ctx-gray-subtle": l > n.value
|
|
9626
|
+
"ctx-gray-subtle": l > (n.value ?? -1)
|
|
9624
9627
|
}
|
|
9625
9628
|
]]),
|
|
9626
9629
|
onClick: (s) => t.clickable ? n.value = l : null
|
|
@@ -11900,7 +11903,7 @@ const JS = /* @__PURE__ */ Te({
|
|
|
11900
11903
|
for (const [r, i] of e)
|
|
11901
11904
|
n[r] = i;
|
|
11902
11905
|
return n;
|
|
11903
|
-
}, $N = /* @__PURE__ */ QS(JS, [["__scopeId", "data-v-
|
|
11906
|
+
}, $N = /* @__PURE__ */ QS(JS, [["__scopeId", "data-v-c57d52aa"]]);
|
|
11904
11907
|
var mt = {
|
|
11905
11908
|
name: "CheckIcon",
|
|
11906
11909
|
extends: re
|