@cobre-npm/ds-v3 0.88.0 → 0.89.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.
|
@@ -4594,31 +4594,35 @@ const Xv = { class: "co-input" }, Kv = {
|
|
|
4594
4594
|
},
|
|
4595
4595
|
emits: ["clickPrimary", "clickSecondary"],
|
|
4596
4596
|
setup(a, { expose: e }) {
|
|
4597
|
-
const t = H(null), n = () => {
|
|
4598
|
-
var
|
|
4599
|
-
(
|
|
4597
|
+
const t = H(null), n = L(() => {
|
|
4598
|
+
var o;
|
|
4599
|
+
return (o = t == null ? void 0 : t.value) == null ? void 0 : o.isOpen;
|
|
4600
|
+
}), r = () => {
|
|
4601
|
+
var o;
|
|
4602
|
+
(o = t == null ? void 0 : t.value) == null || o.toggleModal();
|
|
4600
4603
|
};
|
|
4601
4604
|
return e({
|
|
4602
|
-
toggleModal:
|
|
4603
|
-
|
|
4605
|
+
toggleModal: r,
|
|
4606
|
+
isOpen: n
|
|
4607
|
+
}), (o, s) => (f(), ge(_g, {
|
|
4604
4608
|
ref_key: "modalControl",
|
|
4605
4609
|
ref: t,
|
|
4606
|
-
size:
|
|
4610
|
+
size: o.size,
|
|
4607
4611
|
hasCloseButton: !1
|
|
4608
4612
|
}, {
|
|
4609
4613
|
content: ue(() => [
|
|
4610
4614
|
Ce(Hu, {
|
|
4611
|
-
title:
|
|
4612
|
-
subtitle:
|
|
4613
|
-
labelPrimary:
|
|
4614
|
-
labelSecondary:
|
|
4615
|
-
icon:
|
|
4616
|
-
hasCloseButton:
|
|
4617
|
-
isLoadingBtnPrimary:
|
|
4618
|
-
themeBtnPrimary:
|
|
4619
|
-
onClickPrimary:
|
|
4620
|
-
onClickSecondary:
|
|
4621
|
-
onClose:
|
|
4615
|
+
title: o.title,
|
|
4616
|
+
subtitle: o.description,
|
|
4617
|
+
labelPrimary: o.labelPrimary,
|
|
4618
|
+
labelSecondary: o.labelSecondary,
|
|
4619
|
+
icon: o.icon,
|
|
4620
|
+
hasCloseButton: o.hasCloseButton,
|
|
4621
|
+
isLoadingBtnPrimary: o.isLoadingBtnPrimary,
|
|
4622
|
+
themeBtnPrimary: o.themeBtnPrimary,
|
|
4623
|
+
onClickPrimary: s[0] || (s[0] = (l) => o.$emit("clickPrimary")),
|
|
4624
|
+
onClickSecondary: s[1] || (s[1] = (l) => o.$emit("clickSecondary")),
|
|
4625
|
+
onClose: s[2] || (s[2] = (l) => r())
|
|
4622
4626
|
}, null, 8, ["title", "subtitle", "labelPrimary", "labelSecondary", "icon", "hasCloseButton", "isLoadingBtnPrimary", "themeBtnPrimary"])
|
|
4623
4627
|
]),
|
|
4624
4628
|
_: 1
|
|
@@ -13,6 +13,7 @@ interface Props {
|
|
|
13
13
|
}
|
|
14
14
|
declare const _default: import("vue").DefineComponent<Props, {
|
|
15
15
|
toggleModal: () => void;
|
|
16
|
+
isOpen: import("vue").ComputedRef<boolean | undefined>;
|
|
16
17
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
18
|
clickPrimary: (...args: any[]) => void;
|
|
18
19
|
clickSecondary: (...args: any[]) => void;
|