cleek 2.6.40 → 2.6.42

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/cleek.es.js CHANGED
@@ -89886,7 +89886,7 @@ const _sfc_main$6 = defineComponent$2({
89886
89886
  });
89887
89887
  var ckSidebar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-64161f5d"]]);
89888
89888
  var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
89889
- const _withScopeId$1 = (n2) => (pushScopeId$2("data-v-173e15c4"), n2 = n2(), popScopeId$2(), n2);
89889
+ const _withScopeId$1 = (n2) => (pushScopeId$2("data-v-1a8d45f7"), n2 = n2(), popScopeId$2(), n2);
89890
89890
  const _hoisted_1$5 = ["checked", "disabled"];
89891
89891
  const _hoisted_2$4 = { class: "ck-switch__slider-container" };
89892
89892
  const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
@@ -89941,14 +89941,11 @@ const _sfc_main$5 = defineComponent$2({
89941
89941
  }
89942
89942
  return list;
89943
89943
  });
89944
- function handleCheckboxChange(event) {
89944
+ function handleCheckboxClick(e4) {
89945
89945
  if (props.preventAutoUpdate) {
89946
- event.preventDefault();
89947
- } else {
89948
- value.value = event.target.checked;
89946
+ e4.preventDefault();
89947
+ e4.stopPropagation();
89949
89948
  }
89950
- console.log("prevent");
89951
- value.value = false;
89952
89949
  }
89953
89950
  return (_ctx, _cache) => {
89954
89951
  return openBlock$2(), createElementBlock$2("label", mergeProps$2({ class: "ck-switch" }, computedAttributes.value, {
@@ -89962,8 +89959,8 @@ const _sfc_main$5 = defineComponent$2({
89962
89959
  checked: value.value,
89963
89960
  "aria-hidden": "true",
89964
89961
  disabled: _ctx.disabled,
89965
- onChange: _cache[0] || (_cache[0] = ($event) => handleCheckboxChange($event))
89966
- }, null, 40, _hoisted_1$5),
89962
+ onClick: _cache[0] || (_cache[0] = ($event) => handleCheckboxClick($event))
89963
+ }, null, 8, _hoisted_1$5),
89967
89964
  createElementVNode("div", _hoisted_2$4, [
89968
89965
  _hoisted_3$2,
89969
89966
  _ctx.icon && value.value ? (openBlock$2(), createBlock$2(CkIcon, {
@@ -89986,7 +89983,7 @@ const _sfc_main$5 = defineComponent$2({
89986
89983
  };
89987
89984
  }
89988
89985
  });
89989
- var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-173e15c4"]]);
89986
+ var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-1a8d45f7"]]);
89990
89987
  var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
89991
89988
  const _hoisted_1$4 = { class: "ck-switch-options__container-exterior" };
89992
89989
  const _hoisted_2$3 = ["onClick"];