@cobre-npm/ds-v3 0.168.0 → 0.169.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.
|
@@ -27479,7 +27479,7 @@ const dM = { class: "co-filter dropdown cobre-dropdown" }, fM = { class: "dropdo
|
|
|
27479
27479
|
])) : x("", !0);
|
|
27480
27480
|
};
|
|
27481
27481
|
}
|
|
27482
|
-
}), gI = /* @__PURE__ */ Ee(p8, [["__scopeId", "data-v-2519a5cb"]]), m8 = { class: "co-account-picker position-relative" }, h8 = { class: "co-label co-label--sm co-mb-4 d-block" }, v8 = ["id"], g8 = ["id", "disabled"], b8 = {
|
|
27482
|
+
}), gI = /* @__PURE__ */ Ee(p8, [["__scopeId", "data-v-2519a5cb"]]), m8 = { class: "co-account-picker position-relative" }, h8 = { class: "co-label co-label--sm co-mb-4 d-block" }, v8 = ["id"], g8 = ["id", "disabled", "aria-disabled"], b8 = {
|
|
27483
27483
|
key: 1,
|
|
27484
27484
|
class: "d-flex align-items-center gap-2"
|
|
27485
27485
|
}, y8 = { class: "co-text-muted co-text-primary-50 small" }, _8 = {
|
|
@@ -27494,46 +27494,53 @@ const dM = { class: "co-filter dropdown cobre-dropdown" }, fM = { class: "dropdo
|
|
|
27494
27494
|
selectedAccount: { default: null },
|
|
27495
27495
|
chevronIcon: { default: "icon-chevron-selector-vertical" },
|
|
27496
27496
|
isLoading: { type: Boolean, default: !1 },
|
|
27497
|
+
isDisabled: { type: Boolean, default: !1 },
|
|
27497
27498
|
idPrefix: { default: void 0 }
|
|
27498
27499
|
},
|
|
27499
27500
|
emits: ["click"],
|
|
27500
27501
|
setup(t, { emit: e }) {
|
|
27501
|
-
const a = pt(),
|
|
27502
|
-
|
|
27503
|
-
|
|
27504
|
-
|
|
27502
|
+
const a = t, n = pt(), o = e, r = () => {
|
|
27503
|
+
a.isDisabled || o("click");
|
|
27504
|
+
};
|
|
27505
|
+
return (s, i) => (p(), v("div", m8, [
|
|
27506
|
+
C("p", h8, q(s.label), 1),
|
|
27507
|
+
P(n).badge ? (p(), v("div", {
|
|
27505
27508
|
key: 0,
|
|
27506
|
-
id:
|
|
27509
|
+
id: s.idPrefix ? `${s.idPrefix}-badge` : void 0,
|
|
27507
27510
|
class: "co-account-picker__badge"
|
|
27508
27511
|
}, [
|
|
27509
|
-
ae(
|
|
27512
|
+
ae(s.$slots, "badge", { squareBottomCorners: !0 }, void 0, !0)
|
|
27510
27513
|
], 8, v8)) : x("", !0),
|
|
27511
27514
|
C("button", {
|
|
27512
|
-
id:
|
|
27515
|
+
id: s.idPrefix ? `${s.idPrefix}-picker` : void 0,
|
|
27513
27516
|
type: "button",
|
|
27514
|
-
class: R(["co-account-picker__trigger btn w-100 d-flex align-items-center justify-content-between co-p-12 border text-start", {
|
|
27515
|
-
|
|
27516
|
-
|
|
27517
|
+
class: R(["co-account-picker__trigger btn w-100 d-flex align-items-center justify-content-between co-p-12 border text-start", {
|
|
27518
|
+
"co-account-picker__trigger--square-top-right": P(n).badge,
|
|
27519
|
+
"co-account-picker__trigger--disabled": s.isDisabled && !s.isLoading
|
|
27520
|
+
}]),
|
|
27521
|
+
disabled: s.isLoading,
|
|
27522
|
+
"aria-disabled": s.isDisabled ? "true" : void 0,
|
|
27523
|
+
onClick: r
|
|
27517
27524
|
}, [
|
|
27518
|
-
|
|
27525
|
+
s.selectedAccount ? (p(), pe(Wd, {
|
|
27519
27526
|
key: 0,
|
|
27520
|
-
account:
|
|
27527
|
+
account: s.selectedAccount,
|
|
27521
27528
|
truncateBadge: ""
|
|
27522
27529
|
}, null, 8, ["account"])) : (p(), v("div", b8, [
|
|
27523
|
-
|
|
27530
|
+
s.placeholderIcon ? (p(), v("i", {
|
|
27524
27531
|
key: 0,
|
|
27525
|
-
class: R([
|
|
27532
|
+
class: R([s.placeholderIcon])
|
|
27526
27533
|
}, null, 2)) : x("", !0),
|
|
27527
|
-
C("span", y8, q(
|
|
27534
|
+
C("span", y8, q(s.placeholderText), 1)
|
|
27528
27535
|
])),
|
|
27529
|
-
|
|
27536
|
+
s.isLoading ? (p(), v("span", _8)) : s.isDisabled ? x("", !0) : (p(), v("i", {
|
|
27530
27537
|
key: 3,
|
|
27531
|
-
class: R([
|
|
27538
|
+
class: R([s.chevronIcon, "co-text-secondary-50", "ms-1"])
|
|
27532
27539
|
}, null, 2))
|
|
27533
27540
|
], 10, g8)
|
|
27534
27541
|
]));
|
|
27535
27542
|
}
|
|
27536
|
-
}), bI = /* @__PURE__ */ Ee(w8, [["__scopeId", "data-v-
|
|
27543
|
+
}), bI = /* @__PURE__ */ Ee(w8, [["__scopeId", "data-v-42ab95c4"]]), k8 = ["id"], C8 = { class: "co-bdline--bottom co-pb-16" }, T8 = { class: "co-body co-body--lg co-fw-600 mb-0" }, D8 = {
|
|
27537
27544
|
key: 1,
|
|
27538
27545
|
class: "d-flex align-items-center co-mt-12 gap-2"
|
|
27539
27546
|
}, $8 = ["id", "title"], x8 = {
|