cleek 2.6.31 → 2.6.33

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
@@ -1,4 +1,4 @@
1
- import { watch as watch$1, effectScope, reactive as reactive$2, computed as computed$3, pushScopeId as pushScopeId$2, popScopeId as popScopeId$2, defineComponent as defineComponent$2, nextTick as nextTick$4, openBlock as openBlock$2, createBlock as createBlock$2, createElementBlock as createElementBlock$2, normalizeClass as normalizeClass$2, renderSlot as renderSlot$2, normalizeProps as normalizeProps$1, guardReactiveProps as guardReactiveProps$2, withScopeId as withScopeId$2, resolveComponent as resolveComponent$2, normalizeStyle as normalizeStyle$2, withKeys as withKeys$2, createElementVNode, Fragment as Fragment$2, createCommentVNode as createCommentVNode$2, withCtx as withCtx$2, createVNode as createVNode$2, ref as ref$1, createApp, h as h$2, mergeProps as mergeProps$2, toDisplayString as toDisplayString$1, resolveDirective, createTextVNode as createTextVNode$2, withDirectives as withDirectives$1, onMounted as onMounted$1, getCurrentInstance as getCurrentInstance$1, unref as unref$3, onBeforeUnmount as onBeforeUnmount$1, vModelText, vModelDynamic, renderList as renderList$1, withModifiers as withModifiers$1, Teleport as Teleport$1, watchEffect, resolveDynamicComponent as resolveDynamicComponent$1, vShow as vShow$1, vModelRadio, vModelSelect, vModelCheckbox } from "vue";
1
+ import { watch as watch$1, effectScope, reactive as reactive$2, computed as computed$3, pushScopeId as pushScopeId$2, popScopeId as popScopeId$2, defineComponent as defineComponent$2, nextTick as nextTick$4, openBlock as openBlock$2, createBlock as createBlock$2, createElementBlock as createElementBlock$2, normalizeClass as normalizeClass$2, renderSlot as renderSlot$2, normalizeProps as normalizeProps$1, guardReactiveProps as guardReactiveProps$2, withScopeId as withScopeId$2, resolveComponent as resolveComponent$2, normalizeStyle as normalizeStyle$2, withKeys as withKeys$2, createElementVNode, Fragment as Fragment$2, createCommentVNode as createCommentVNode$2, withCtx as withCtx$2, createVNode as createVNode$2, ref as ref$1, createApp, h as h$2, mergeProps as mergeProps$2, toDisplayString as toDisplayString$1, resolveDirective, createTextVNode as createTextVNode$2, withDirectives as withDirectives$1, onMounted as onMounted$1, getCurrentInstance as getCurrentInstance$1, unref as unref$3, onBeforeUnmount as onBeforeUnmount$1, vModelText, vModelDynamic, renderList as renderList$1, withModifiers as withModifiers$1, Teleport as Teleport$1, watchEffect, resolveDynamicComponent as resolveDynamicComponent$1, vShow as vShow$1, vModelRadio, vModelSelect } from "vue";
2
2
  function getDevtoolsGlobalHook$2() {
3
3
  return getTarget$2().__VUE_DEVTOOLS_GLOBAL_HOOK__;
4
4
  }
@@ -89886,8 +89886,8 @@ 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-a7076b60"), n2 = n2(), popScopeId$2(), n2);
89890
- const _hoisted_1$5 = ["disabled"];
89889
+ const _withScopeId$1 = (n2) => (pushScopeId$2("data-v-3d9ef0da"), n2 = n2(), popScopeId$2(), n2);
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));
89893
89893
  const _hoisted_4$2 = {
@@ -89923,8 +89923,10 @@ const _sfc_main$5 = defineComponent$2({
89923
89923
  return value.value;
89924
89924
  },
89925
89925
  set(val) {
89926
+ console.log("before");
89926
89927
  if (props.preventAutoUpdate)
89927
89928
  return;
89929
+ console.log("after");
89928
89930
  value.value = val;
89929
89931
  }
89930
89932
  });
@@ -89952,43 +89954,44 @@ const _sfc_main$5 = defineComponent$2({
89952
89954
  return list;
89953
89955
  });
89954
89956
  return (_ctx, _cache) => {
89955
- return openBlock$2(), createElementBlock$2("label", mergeProps$2({ class: "ck-switch" }, computedAttributes.value, {
89956
- class: computedClass.value,
89957
- onKeydown: _cache[1] || (_cache[1] = withKeys$2(withModifiers$1(() => {
89958
- }, ["prevent"]), ["space"]))
89959
- }), [
89960
- withDirectives$1(createElementVNode("input", {
89961
- class: "ck-switch__input",
89962
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checkedValue.value = $event),
89963
- "aria-hidden": "true",
89964
- type: "checkbox",
89965
- disabled: _ctx.disabled
89966
- }, null, 8, _hoisted_1$5), [
89967
- [vModelCheckbox, checkedValue.value]
89968
- ]),
89969
- createElementVNode("div", _hoisted_2$4, [
89970
- _hoisted_3$2,
89971
- _ctx.icon && value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89972
- key: 0,
89973
- class: normalizeClass$2(["ck-switch__icon-left", iconClass.value]),
89974
- icon: _ctx.icon,
89975
- "icon-pack": _ctx.iconPack
89976
- }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true),
89977
- _ctx.icon && !value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89978
- key: 1,
89979
- class: normalizeClass$2(["ck-switch__icon-right", iconClass.value]),
89980
- icon: _ctx.icon,
89981
- "icon-pack": _ctx.iconPack
89982
- }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true)
89983
- ]),
89984
- _ctx.$slots.default ? (openBlock$2(), createElementBlock$2("span", _hoisted_4$2, [
89985
- renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
89986
- ])) : createCommentVNode$2("", true)
89987
- ], 16);
89957
+ return openBlock$2(), createElementBlock$2(Fragment$2, null, [
89958
+ createTextVNode$2(toDisplayString$1(value.value) + " " + toDisplayString$1(checkedValue.value), 1),
89959
+ createElementVNode("label", mergeProps$2({ class: "ck-switch" }, computedAttributes.value, {
89960
+ class: computedClass.value,
89961
+ onKeydown: _cache[0] || (_cache[0] = withKeys$2(withModifiers$1(() => {
89962
+ }, ["prevent"]), ["space"]))
89963
+ }), [
89964
+ createElementVNode("input", {
89965
+ class: "ck-switch__input",
89966
+ type: "checkbox",
89967
+ checked: checkedValue.value,
89968
+ "aria-hidden": "true",
89969
+ disabled: _ctx.disabled
89970
+ }, null, 8, _hoisted_1$5),
89971
+ createElementVNode("div", _hoisted_2$4, [
89972
+ _hoisted_3$2,
89973
+ _ctx.icon && value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89974
+ key: 0,
89975
+ class: normalizeClass$2(["ck-switch__icon-left", iconClass.value]),
89976
+ icon: _ctx.icon,
89977
+ "icon-pack": _ctx.iconPack
89978
+ }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true),
89979
+ _ctx.icon && !value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89980
+ key: 1,
89981
+ class: normalizeClass$2(["ck-switch__icon-right", iconClass.value]),
89982
+ icon: _ctx.icon,
89983
+ "icon-pack": _ctx.iconPack
89984
+ }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true)
89985
+ ]),
89986
+ _ctx.$slots.default ? (openBlock$2(), createElementBlock$2("span", _hoisted_4$2, [
89987
+ renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
89988
+ ])) : createCommentVNode$2("", true)
89989
+ ], 16)
89990
+ ], 64);
89988
89991
  };
89989
89992
  }
89990
89993
  });
89991
- var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-a7076b60"]]);
89994
+ var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-3d9ef0da"]]);
89992
89995
  var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
89993
89996
  const _hoisted_1$4 = { class: "ck-switch-options__container-exterior" };
89994
89997
  const _hoisted_2$3 = ["onClick"];