cleek 2.10.36 → 2.10.37

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/main.es.js CHANGED
@@ -104636,7 +104636,7 @@ const oz6 = { class: "ck-popup" }, rz6 = {
104636
104636
  modelValue: { type: Boolean, required: !0 },
104637
104637
  modelModifiers: {}
104638
104638
  }),
104639
- emits: /* @__PURE__ */ F3(["accept", "cancel"], ["update:modelValue"]),
104639
+ emits: /* @__PURE__ */ F3(["accept", "cancel", "close"], ["update:modelValue"]),
104640
104640
  setup(c, { emit: e }) {
104641
104641
  const a = i5(c, "modelValue"), n = c, i = e, { cleekOptions: t } = E3(k3()), o = A(() => {
104642
104642
  const L = [], H = n.layout || t.value.styles.layout;
@@ -104668,7 +104668,9 @@ const oz6 = { class: "ck-popup" }, rz6 = {
104668
104668
  const v = n.headerColor || t.value.popup.headerColor;
104669
104669
  return v && M1.isColorTemplateVariable(v) && L.push(`ck-component__bg-color--${v}`), z.value || L.push("close-btn-hidden"), L;
104670
104670
  }), C = A(() => n.acceptBtnType ? n.acceptBtnType : t.value.popup.acceptBtnType ? t.value.popup.acceptBtnType : "outlined"), m = A(() => n.cancelBtnType ? n.cancelBtnType : t.value.popup.cancelBtnType ? t.value.popup.cancelBtnType : "flat"), z = A(() => !(n.notCloseBtn || n.notClose)), p = A(() => n.acceptBtnText ? n.acceptBtnText : t.value.lang === "es" ? "Aceptar" : "Accept"), M = A(() => n.cancelBtnText ? n.cancelBtnText : t.value.lang === "es" ? "Cancelar" : "Cancel");
104671
- R3(() => a.value, (L) => Tw1(!L));
104671
+ R3(() => a.value, (L) => {
104672
+ Tw1(!L), L || i("close");
104673
+ });
104672
104674
  function d() {
104673
104675
  i("cancel"), n.preventCloseOnCancel || (a.value = !1);
104674
104676
  }
@@ -75,6 +75,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
75
75
  };
76
76
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
77
77
  cancel: () => void;
78
+ close: () => void;
78
79
  accept: () => void;
79
80
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
80
81
  modelValue: {
@@ -146,6 +147,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
146
147
  };
147
148
  }>> & Readonly<{
148
149
  onCancel?: () => any;
150
+ onClose?: () => any;
149
151
  onAccept?: () => any;
150
152
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
151
153
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cleek",
3
3
  "description": "Complete UX Vue library",
4
- "version": "2.10.36",
4
+ "version": "2.10.37",
5
5
  "author": "Quantic Onion",
6
6
  "license": "MIT",
7
7
  "repository": "",