metronics-vue 1.0.9 → 1.0.11
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/dist/metronics-vue.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-32659562] .kt-breadcrumbs-separator:first-child{display:none}[data-v-32659562] .kt-breadcrumbs-el{color:var(--tw-gray-500)}.dark[data-v-32659562] .kt-breadcrumbs-el{color:var(--tw-gray-400)}[data-v-32659562] .kt-breadcrumbs-el:last-child{color:var(--tw-gray-900)}.dark[data-v-32659562] .kt-breadcrumbs-el:last-child{color:var(--tw-gray-200)}.kt-dialog-header-fixed[data-v-
|
|
1
|
+
[data-v-32659562] .kt-breadcrumbs-separator:first-child{display:none}[data-v-32659562] .kt-breadcrumbs-el{color:var(--tw-gray-500)}.dark[data-v-32659562] .kt-breadcrumbs-el{color:var(--tw-gray-400)}[data-v-32659562] .kt-breadcrumbs-el:last-child{color:var(--tw-gray-900)}.dark[data-v-32659562] .kt-breadcrumbs-el:last-child{color:var(--tw-gray-200)}.kt-dialog-header-fixed[data-v-b6ffd26d]{position:sticky;top:0;left:0;right:0}@keyframes scaleIn{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.animate-scale-in{animation:scaleIn .2s ease-out}
|
package/dist/metronics-vue.es.js
CHANGED
|
@@ -5679,6 +5679,14 @@ function Nr(i, s, t, e, n, r) {
|
|
|
5679
5679
|
}
|
|
5680
5680
|
const Ge = /* @__PURE__ */ N(Ir, [["render", Nr]]), Br = {
|
|
5681
5681
|
inject: ["$dialogOnOk", "$dialogOnCancel"],
|
|
5682
|
+
name: "KtDialog",
|
|
5683
|
+
emits: ["ok", "cancel"],
|
|
5684
|
+
setup(i, { emit: s }) {
|
|
5685
|
+
const t = () => {
|
|
5686
|
+
s("cancel");
|
|
5687
|
+
};
|
|
5688
|
+
return provide("$dialogOnCancel", t), {};
|
|
5689
|
+
},
|
|
5682
5690
|
props: {
|
|
5683
5691
|
persistent: {
|
|
5684
5692
|
type: Boolean,
|
|
@@ -6766,13 +6774,13 @@ let bn = 1;
|
|
|
6766
6774
|
const so = () => {
|
|
6767
6775
|
const i = Tn(null);
|
|
6768
6776
|
function s() {
|
|
6769
|
-
i.value.hide()
|
|
6777
|
+
i.value.hide();
|
|
6770
6778
|
}
|
|
6771
6779
|
function t(d = null) {
|
|
6772
|
-
i.value.$emit("ok", d)
|
|
6780
|
+
i.value.$emit("ok", d);
|
|
6773
6781
|
}
|
|
6774
6782
|
function e() {
|
|
6775
|
-
i.value.hide()
|
|
6783
|
+
i.value.hide();
|
|
6776
6784
|
}
|
|
6777
6785
|
function n(d, h = {}) {
|
|
6778
6786
|
return new Promise((b, p) => {
|
|
@@ -6785,10 +6793,10 @@ const so = () => {
|
|
|
6785
6793
|
}, u = en(d, {
|
|
6786
6794
|
...h,
|
|
6787
6795
|
onOk: (g) => {
|
|
6788
|
-
b(g), k()
|
|
6796
|
+
b(g), k();
|
|
6789
6797
|
},
|
|
6790
6798
|
onCancel: () => {
|
|
6791
|
-
p(), k()
|
|
6799
|
+
p(), k();
|
|
6792
6800
|
}
|
|
6793
6801
|
}).use(vn);
|
|
6794
6802
|
u.mount(E), Ut.init();
|
|
@@ -6844,13 +6852,13 @@ const so = () => {
|
|
|
6844
6852
|
t.setAttribute("id", s), document.body.appendChild(t), en(i).use(vn).mount(t), Ut.init();
|
|
6845
6853
|
},
|
|
6846
6854
|
onDialogOk(i = null) {
|
|
6847
|
-
this.$emit("ok", i)
|
|
6855
|
+
this.$emit("ok", i);
|
|
6848
6856
|
},
|
|
6849
6857
|
onDialogCancel() {
|
|
6850
|
-
this.$emit("cancel")
|
|
6858
|
+
this.$emit("cancel");
|
|
6851
6859
|
},
|
|
6852
6860
|
onDialogHide() {
|
|
6853
|
-
this.$refs.dialog.hide()
|
|
6861
|
+
this.$refs.dialog.hide();
|
|
6854
6862
|
},
|
|
6855
6863
|
showConfirmDialog(i) {
|
|
6856
6864
|
return ut({
|
|
@@ -6896,11 +6904,16 @@ const so = () => {
|
|
|
6896
6904
|
close: {
|
|
6897
6905
|
type: Boolean,
|
|
6898
6906
|
default: !1
|
|
6907
|
+
},
|
|
6908
|
+
// Custom close handler from parent
|
|
6909
|
+
onCloseAction: {
|
|
6910
|
+
type: Function,
|
|
6911
|
+
default: null
|
|
6899
6912
|
}
|
|
6900
6913
|
},
|
|
6901
6914
|
methods: {
|
|
6902
|
-
|
|
6903
|
-
this.$dialogOnCancel();
|
|
6915
|
+
handleClose() {
|
|
6916
|
+
typeof this.onCloseAction == "function" ? this.onCloseAction() : this.$dialogOnCancel();
|
|
6904
6917
|
}
|
|
6905
6918
|
}
|
|
6906
6919
|
}), Wr = ["textContent"];
|
|
@@ -6920,12 +6933,12 @@ function Yr(i, s, t, e, n, r) {
|
|
|
6920
6933
|
"icon-only": "",
|
|
6921
6934
|
type: "light",
|
|
6922
6935
|
size: "xs",
|
|
6923
|
-
onClick: i.
|
|
6936
|
+
onClick: i.handleClose
|
|
6924
6937
|
}, null, 8, ["onClick"])) : R("", !0)
|
|
6925
6938
|
], !0)
|
|
6926
6939
|
], 2);
|
|
6927
6940
|
}
|
|
6928
|
-
const Zr = /* @__PURE__ */ N(Kr, [["render", Yr], ["__scopeId", "data-v-
|
|
6941
|
+
const Zr = /* @__PURE__ */ N(Kr, [["render", Yr], ["__scopeId", "data-v-b6ffd26d"]]), Xr = {}, Gr = { class: "modal-body md:min-h-[30vh] p-5" };
|
|
6929
6942
|
function Jr(i, s) {
|
|
6930
6943
|
return I(), L("div", Gr, [
|
|
6931
6944
|
B(i.$slots, "default")
|
|
@@ -6991,7 +7004,7 @@ const oa = /* @__PURE__ */ N(sa, [["render", aa]]), la = {
|
|
|
6991
7004
|
function ca(i, s, t, e, n, r) {
|
|
6992
7005
|
return I(), st(Ee(t.component), tn(t.componentProps, {
|
|
6993
7006
|
onOk: t.onOk,
|
|
6994
|
-
onCancel:
|
|
7007
|
+
onCancel: t.onCancel,
|
|
6995
7008
|
ref: "component"
|
|
6996
7009
|
}), null, 16, ["onOk", "onCancel"]);
|
|
6997
7010
|
}
|