metronics-vue 1.0.9 → 1.0.10

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.
@@ -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-f230009e]{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}
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-c49fcd43]{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}
@@ -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,
@@ -6885,7 +6893,12 @@ const so = () => {
6885
6893
  }
6886
6894
  }
6887
6895
  }), Kr = dt({
6888
- inject: ["$dialogOnCancel"],
6896
+ inject: {
6897
+ $dialogOnCancel: {
6898
+ default: () => () => {
6899
+ }
6900
+ }
6901
+ },
6889
6902
  mixins: [Ur],
6890
6903
  props: {
6891
6904
  title: String,
@@ -6925,7 +6938,7 @@ function Yr(i, s, t, e, n, r) {
6925
6938
  ], !0)
6926
6939
  ], 2);
6927
6940
  }
6928
- const Zr = /* @__PURE__ */ N(Kr, [["render", Yr], ["__scopeId", "data-v-f230009e"]]), Xr = {}, Gr = { class: "modal-body md:min-h-[30vh] p-5" };
6941
+ const Zr = /* @__PURE__ */ N(Kr, [["render", Yr], ["__scopeId", "data-v-c49fcd43"]]), 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")
@@ -6967,7 +6980,7 @@ const oa = /* @__PURE__ */ N(sa, [["render", aa]]), la = {
6967
6980
  handleCancel() {
6968
6981
  const i = this.$refs.component;
6969
6982
  i.$refs.dialog && (i.$refs.dialog.$refs.dialog.classList.remove("open"), setTimeout(() => {
6970
- this.onCancel();
6983
+ typeof this.onCancel == "function" && this.onCancel();
6971
6984
  }, 300));
6972
6985
  },
6973
6986
  handleOk() {