cleek 2.6.50 → 2.6.52

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-d818a270"), n2 = n2(), popScopeId$2(), n2);
89889
+ const _withScopeId$1 = (n2) => (pushScopeId$2("data-v-06f6e39e"), n2 = n2(), popScopeId$2(), n2);
89890
89890
  const _hoisted_1$5 = ["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,12 +89941,17 @@ const _sfc_main$5 = defineComponent$2({
89941
89941
  }
89942
89942
  return list;
89943
89943
  });
89944
+ function handleSwitchChange(e4) {
89945
+ if (props.preventAutoUpdate) {
89946
+ e4.preventDefault();
89947
+ }
89948
+ }
89944
89949
  return (_ctx, _cache) => {
89945
89950
  return openBlock$2(), createElementBlock$2(Fragment$2, null, [
89946
89951
  createTextVNode$2(toDisplayString$1(value.value), 1),
89947
89952
  createElementVNode("label", mergeProps$2({ class: "ck-switch" }, computedAttributes.value, {
89948
89953
  class: computedClass.value,
89949
- onKeydown: _cache[1] || (_cache[1] = withKeys$2(withModifiers$1(() => {
89954
+ onKeydown: _cache[2] || (_cache[2] = withKeys$2(withModifiers$1(() => {
89950
89955
  }, ["prevent"]), ["space"]))
89951
89956
  }), [
89952
89957
  withDirectives$1(createElementVNode("input", {
@@ -89954,8 +89959,9 @@ const _sfc_main$5 = defineComponent$2({
89954
89959
  type: "checkbox",
89955
89960
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
89956
89961
  "aria-hidden": "true",
89957
- disabled: _ctx.disabled
89958
- }, null, 8, _hoisted_1$5), [
89962
+ disabled: _ctx.disabled,
89963
+ onChange: _cache[1] || (_cache[1] = ($event) => handleSwitchChange($event))
89964
+ }, null, 40, _hoisted_1$5), [
89959
89965
  [vModelCheckbox, value.value]
89960
89966
  ]),
89961
89967
  createElementVNode("div", _hoisted_2$4, [
@@ -89981,7 +89987,7 @@ const _sfc_main$5 = defineComponent$2({
89981
89987
  };
89982
89988
  }
89983
89989
  });
89984
- var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-d818a270"]]);
89990
+ var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-06f6e39e"]]);
89985
89991
  var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
89986
89992
  const _hoisted_1$4 = { class: "ck-switch-options__container-exterior" };
89987
89993
  const _hoisted_2$3 = ["onClick"];