cleek 2.6.60 → 2.6.62

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-49a17b4e"), n2 = n2(), popScopeId$2(), n2);
89889
+ const _withScopeId$1 = (n2) => (pushScopeId$2("data-v-49a64822"), 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));
@@ -89942,63 +89942,52 @@ const _sfc_main$5 = defineComponent$2({
89942
89942
  return list;
89943
89943
  });
89944
89944
  function handleSwitchClick(e4) {
89945
- console.log("handleSwitchClick");
89946
- console.log(value.value);
89947
89945
  emits("switchClick");
89948
- console.log("switchClick");
89949
- console.log(value.value);
89950
89946
  if (props.preventAutoUpdate) {
89951
- console.log("preventAutoUpdate");
89952
- console.log(value.value);
89953
89947
  e4.preventDefault();
89954
89948
  e4.stopPropagation();
89955
89949
  }
89956
- console.log("after");
89957
- console.log(value.value);
89958
89950
  }
89959
89951
  return (_ctx, _cache) => {
89960
- return openBlock$2(), createElementBlock$2(Fragment$2, null, [
89961
- createTextVNode$2(toDisplayString$1(value.value), 1),
89962
- createElementVNode("label", mergeProps$2({ class: "ck-switch" }, computedAttributes.value, {
89963
- class: computedClass.value,
89964
- onKeydown: _cache[2] || (_cache[2] = withKeys$2(withModifiers$1(() => {
89965
- }, ["prevent"]), ["space"])),
89966
- onClick: _cache[3] || (_cache[3] = withModifiers$1(($event) => handleSwitchClick($event), ["stop"]))
89967
- }), [
89968
- withDirectives$1(createElementVNode("input", {
89969
- class: "ck-switch__input",
89970
- type: "checkbox",
89971
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
89972
- "aria-hidden": "true",
89973
- disabled: _ctx.disabled,
89974
- onClick: _cache[1] || (_cache[1] = ($event) => handleSwitchClick($event))
89975
- }, null, 8, _hoisted_1$5), [
89976
- [vModelCheckbox, value.value]
89977
- ]),
89978
- createElementVNode("div", _hoisted_2$4, [
89979
- _hoisted_3$2,
89980
- _ctx.icon && value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89981
- key: 0,
89982
- class: normalizeClass$2(["ck-switch__icon-left", iconClass.value]),
89983
- icon: _ctx.icon,
89984
- "icon-pack": _ctx.iconPack
89985
- }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true),
89986
- _ctx.icon && !value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89987
- key: 1,
89988
- class: normalizeClass$2(["ck-switch__icon-right", iconClass.value]),
89989
- icon: _ctx.icon,
89990
- "icon-pack": _ctx.iconPack
89991
- }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true)
89992
- ]),
89993
- _ctx.$slots.default ? (openBlock$2(), createElementBlock$2("span", _hoisted_4$2, [
89994
- renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
89995
- ])) : createCommentVNode$2("", true)
89996
- ], 16)
89997
- ], 64);
89952
+ return openBlock$2(), createElementBlock$2("label", mergeProps$2({ class: "ck-switch" }, computedAttributes.value, {
89953
+ class: computedClass.value,
89954
+ onKeydown: _cache[2] || (_cache[2] = withKeys$2(withModifiers$1(() => {
89955
+ }, ["prevent"]), ["space"])),
89956
+ onClick: _cache[3] || (_cache[3] = withModifiers$1(($event) => handleSwitchClick($event), ["stop"]))
89957
+ }), [
89958
+ withDirectives$1(createElementVNode("input", {
89959
+ class: "ck-switch__input",
89960
+ type: "checkbox",
89961
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
89962
+ "aria-hidden": "true",
89963
+ disabled: _ctx.disabled,
89964
+ onClick: _cache[1] || (_cache[1] = ($event) => handleSwitchClick($event))
89965
+ }, null, 8, _hoisted_1$5), [
89966
+ [vModelCheckbox, value.value]
89967
+ ]),
89968
+ createElementVNode("div", _hoisted_2$4, [
89969
+ _hoisted_3$2,
89970
+ _ctx.icon && value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89971
+ key: 0,
89972
+ class: normalizeClass$2(["ck-switch__icon-left", iconClass.value]),
89973
+ icon: _ctx.icon,
89974
+ "icon-pack": _ctx.iconPack
89975
+ }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true),
89976
+ _ctx.icon && !value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89977
+ key: 1,
89978
+ class: normalizeClass$2(["ck-switch__icon-right", iconClass.value]),
89979
+ icon: _ctx.icon,
89980
+ "icon-pack": _ctx.iconPack
89981
+ }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true)
89982
+ ]),
89983
+ _ctx.$slots.default ? (openBlock$2(), createElementBlock$2("span", _hoisted_4$2, [
89984
+ renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
89985
+ ])) : createCommentVNode$2("", true)
89986
+ ], 16);
89998
89987
  };
89999
89988
  }
90000
89989
  });
90001
- var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-49a17b4e"]]);
89990
+ var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-49a64822"]]);
90002
89991
  var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
90003
89992
  const _hoisted_1$4 = { class: "ck-switch-options__container-exterior" };
90004
89993
  const _hoisted_2$3 = ["onClick"];