cleek 2.6.39 → 2.6.41

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 } 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, vModelCheckbox } from "vue";
2
2
  function getDevtoolsGlobalHook$2() {
3
3
  return getTarget$2().__VUE_DEVTOOLS_GLOBAL_HOOK__;
4
4
  }
@@ -26897,10 +26897,10 @@ const _hoisted_2$1$2 = {
26897
26897
  class: "v-popper__inner"
26898
26898
  };
26899
26899
  const _hoisted_3$a = /* @__PURE__ */ createBaseVNode$1("div", { class: "v-popper__arrow-outer" }, null, -1);
26900
- const _hoisted_4$8$1 = /* @__PURE__ */ createBaseVNode$1("div", { class: "v-popper__arrow-inner" }, null, -1);
26900
+ const _hoisted_4$8 = /* @__PURE__ */ createBaseVNode$1("div", { class: "v-popper__arrow-inner" }, null, -1);
26901
26901
  const _hoisted_5$5 = [
26902
26902
  _hoisted_3$a,
26903
- _hoisted_4$8$1
26903
+ _hoisted_4$8
26904
26904
  ];
26905
26905
  function _sfc_render$2$1(_ctx, _cache, $props, $setup, $data, $options) {
26906
26906
  const _component_ResizeObserver = resolveComponent$1("ResizeObserver");
@@ -81303,7 +81303,7 @@ const _hoisted_1$n = {
81303
81303
  key: 0,
81304
81304
  class: "help-text"
81305
81305
  };
81306
- const _hoisted_2$d = {
81306
+ const _hoisted_2$c = {
81307
81307
  key: 0,
81308
81308
  class: "pl-1"
81309
81309
  };
@@ -81341,7 +81341,7 @@ const _sfc_main$w = defineComponent$2({
81341
81341
  onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
81342
81342
  }, [
81343
81343
  createTextVNode$2(toDisplayString$1(computedDate.value), 1),
81344
- computedTime.value ? (openBlock$2(), createElementBlock$2("span", _hoisted_2$d, "| " + toDisplayString$1(computedTime.value), 1)) : createCommentVNode$2("", true)
81344
+ computedTime.value ? (openBlock$2(), createElementBlock$2("span", _hoisted_2$c, "| " + toDisplayString$1(computedTime.value), 1)) : createCommentVNode$2("", true)
81345
81345
  ])) : withDirectives$1((openBlock$2(), createElementBlock$2("div", {
81346
81346
  key: 2,
81347
81347
  class: "ck-datetime-shower",
@@ -82476,7 +82476,7 @@ const _sfc_main$n = defineComponent$2({
82476
82476
  var CkLabel = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-9b5f4b38"]]);
82477
82477
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
82478
82478
  const _hoisted_1$h = ["autocomplete", "placeholder", "disabled"];
82479
- const _hoisted_2$c = ["autocomplete", "type", "placeholder", "disabled"];
82479
+ const _hoisted_2$b = ["autocomplete", "type", "placeholder", "disabled"];
82480
82480
  const defaultType = "text";
82481
82481
  const defaultDelayChangeTime = 300;
82482
82482
  const _sfc_main$m = defineComponent$2({
@@ -82684,7 +82684,7 @@ const _sfc_main$m = defineComponent$2({
82684
82684
  onClick: _cache[9] || (_cache[9] = ($event) => onClick($event)),
82685
82685
  onFocus: _cache[10] || (_cache[10] = ($event) => emits("focus", $event)),
82686
82686
  onBlur: _cache[11] || (_cache[11] = ($event) => emits("blur", $event))
82687
- }, null, 46, _hoisted_2$c)), [
82687
+ }, null, 46, _hoisted_2$b)), [
82688
82688
  [vModelDynamic, value.value]
82689
82689
  ]),
82690
82690
  _ctx.type === "password" ? (openBlock$2(), createElementBlock$2("div", {
@@ -82827,12 +82827,12 @@ const _sfc_main$l = defineComponent$2({
82827
82827
  });
82828
82828
  var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-771a8d56"]]);
82829
82829
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
82830
- const _withScopeId$4 = (n2) => (pushScopeId$2("data-v-02d0ab88"), n2 = n2(), popScopeId$2(), n2);
82830
+ const _withScopeId$3 = (n2) => (pushScopeId$2("data-v-02d0ab88"), n2 = n2(), popScopeId$2(), n2);
82831
82831
  const _hoisted_1$g = { class: "ck-table__pagination" };
82832
- const _hoisted_2$b = { class: "ck-table__pagination--numbers-container" };
82833
- const _hoisted_3$9 = ["onClick"];
82834
- const _hoisted_4$8 = { class: "ck-table__pagination-input-container" };
82835
- const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$4(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-table__pagination--input-pointer" }, null, -1));
82832
+ const _hoisted_2$a = { class: "ck-table__pagination--numbers-container" };
82833
+ const _hoisted_3$8 = ["onClick"];
82834
+ const _hoisted_4$7 = { class: "ck-table__pagination-input-container" };
82835
+ const _hoisted_5$3 = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-table__pagination--input-pointer" }, null, -1));
82836
82836
  const _hoisted_6$3 = ["onClick"];
82837
82837
  const itemsShowed = 5;
82838
82838
  const _sfc_main$k = defineComponent$2({
@@ -82942,14 +82942,14 @@ const _sfc_main$k = defineComponent$2({
82942
82942
  icon: hasArrowLeft.value ? "angle-left" : "grip-lines-vertical"
82943
82943
  }, null, 8, ["icon"])
82944
82944
  ], 2),
82945
- createElementVNode("div", _hoisted_2$b, [
82945
+ createElementVNode("div", _hoisted_2$a, [
82946
82946
  (openBlock$2(true), createElementBlock$2(Fragment$2, null, renderList$1(listLeft.value, (num) => {
82947
82947
  return openBlock$2(), createElementBlock$2("div", {
82948
82948
  class: "ck-table__pagination-item--left",
82949
82949
  onClick: ($event) => currentPageLocal.value = num
82950
- }, toDisplayString$1(num), 9, _hoisted_3$9);
82950
+ }, toDisplayString$1(num), 9, _hoisted_3$8);
82951
82951
  }), 256)),
82952
- createElementVNode("div", _hoisted_4$8, [
82952
+ createElementVNode("div", _hoisted_4$7, [
82953
82953
  withDirectives$1(createElementVNode("input", {
82954
82954
  class: "ck-table__pagination-input",
82955
82955
  type: "number",
@@ -83237,10 +83237,10 @@ const computed = (getterOrOptions, debugOptions) => {
83237
83237
  return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
83238
83238
  };
83239
83239
  var ckCheckbox_vue_vue_type_style_index_0_scoped_true_lang = "";
83240
- const _withScopeId$3 = (n2) => (pushScopeId$2("data-v-113ac83f"), n2 = n2(), popScopeId$2(), n2);
83240
+ const _withScopeId$2 = (n2) => (pushScopeId$2("data-v-113ac83f"), n2 = n2(), popScopeId$2(), n2);
83241
83241
  const _hoisted_1$f = ["disabled", "checked"];
83242
- const _hoisted_2$a = /* @__PURE__ */ _withScopeId$3(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
83243
- const _hoisted_3$8 = {
83242
+ const _hoisted_2$9 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-checkbox__element" }, null, -1));
83243
+ const _hoisted_3$7 = {
83244
83244
  key: 0,
83245
83245
  class: "c-Checkbox__label"
83246
83246
  };
@@ -83294,8 +83294,8 @@ const _sfc_main$j = defineComponent$2({
83294
83294
  onChange2($event);
83295
83295
  })
83296
83296
  }, null, 40, _hoisted_1$f),
83297
- _hoisted_2$a,
83298
- _ctx.$slots.default ? (openBlock$2(), createElementBlock$2("span", _hoisted_3$8, [
83297
+ _hoisted_2$9,
83298
+ _ctx.$slots.default ? (openBlock$2(), createElementBlock$2("span", _hoisted_3$7, [
83299
83299
  renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
83300
83300
  ])) : createCommentVNode$2("", true)
83301
83301
  ], 16);
@@ -83305,12 +83305,12 @@ const _sfc_main$j = defineComponent$2({
83305
83305
  var CkCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-113ac83f"]]);
83306
83306
  var ckPopup_vue_vue_type_style_index_0_lang = "";
83307
83307
  const _hoisted_1$e = { class: "ck-popup" };
83308
- const _hoisted_2$9 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
83309
- const _hoisted_3$7 = {
83308
+ const _hoisted_2$8 = /* @__PURE__ */ createElementVNode("div", { class: "blackout" }, null, -1);
83309
+ const _hoisted_3$6 = {
83310
83310
  key: 0,
83311
83311
  class: "ck-popup__title"
83312
83312
  };
83313
- const _hoisted_4$7 = { class: "ck-popup__slot-body" };
83313
+ const _hoisted_4$6 = { class: "ck-popup__slot-body" };
83314
83314
  const _hoisted_5$2 = {
83315
83315
  key: 0,
83316
83316
  class: "ck-popup__slot-footer"
@@ -83469,7 +83469,7 @@ const _sfc_main$i = defineComponent$2({
83469
83469
  to: "body"
83470
83470
  }, [
83471
83471
  createElementVNode("div", _hoisted_1$e, [
83472
- _hoisted_2$9,
83472
+ _hoisted_2$8,
83473
83473
  createElementVNode("div", {
83474
83474
  class: "popup-container",
83475
83475
  onMousedown: _cache[4] || (_cache[4] = ($event) => onBgClick())
@@ -83484,7 +83484,7 @@ const _sfc_main$i = defineComponent$2({
83484
83484
  class: normalizeClass$2(["ck-popup__slot-header", computedClassHeader.value]),
83485
83485
  style: normalizeStyle$2(computedStyleHeader.value)
83486
83486
  }, [
83487
- _ctx.title ? (openBlock$2(), createElementBlock$2("h3", _hoisted_3$7, toDisplayString$1(_ctx.title), 1)) : createCommentVNode$2("", true),
83487
+ _ctx.title ? (openBlock$2(), createElementBlock$2("h3", _hoisted_3$6, toDisplayString$1(_ctx.title), 1)) : createCommentVNode$2("", true),
83488
83488
  renderSlot$2(_ctx.$slots, "header"),
83489
83489
  isCloseBtnVisible.value ? (openBlock$2(), createBlock$2(CkIcon, {
83490
83490
  key: 1,
@@ -83493,7 +83493,7 @@ const _sfc_main$i = defineComponent$2({
83493
83493
  onClick: _cache[0] || (_cache[0] = ($event) => isActive.value = false)
83494
83494
  })) : createCommentVNode$2("", true)
83495
83495
  ], 6),
83496
- createElementVNode("div", _hoisted_4$7, [
83496
+ createElementVNode("div", _hoisted_4$6, [
83497
83497
  renderSlot$2(_ctx.$slots, "default")
83498
83498
  ]),
83499
83499
  _ctx.$slots.footer || _ctx.confirmButtons || _ctx.acceptButton || _ctx.cancelButton ? (openBlock$2(), createElementBlock$2("div", _hoisted_5$2, [
@@ -83611,15 +83611,15 @@ var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId"
83611
83611
  var ckTable_vue_vue_type_style_index_0_lang = "";
83612
83612
  var ckTable_vue_vue_type_style_index_1_scoped_true_lang = "";
83613
83613
  const _hoisted_1$c = { class: "ck-table" };
83614
- const _hoisted_2$8 = {
83614
+ const _hoisted_2$7 = {
83615
83615
  key: 0,
83616
83616
  class: "ck-table__header"
83617
83617
  };
83618
- const _hoisted_3$6 = {
83618
+ const _hoisted_3$5 = {
83619
83619
  key: 0,
83620
83620
  class: "ck-table__header--slot"
83621
83621
  };
83622
- const _hoisted_4$6 = { key: 0 };
83622
+ const _hoisted_4$5 = { key: 0 };
83623
83623
  const _hoisted_5$1 = { key: 1 };
83624
83624
  const _hoisted_6$1 = {
83625
83625
  key: 2,
@@ -83770,7 +83770,7 @@ const _sfc_main$g = defineComponent$2({
83770
83770
  columns: _ctx.columns || []
83771
83771
  }, null, 8, ["modelValue", "columnsArray", "columns"])) : createCommentVNode$2("", true),
83772
83772
  createElementVNode("div", _hoisted_1$c, [
83773
- _ctx.$slots.header || !_ctx.hideHeaderActions ? (openBlock$2(), createElementBlock$2("div", _hoisted_2$8, [
83773
+ _ctx.$slots.header || !_ctx.hideHeaderActions ? (openBlock$2(), createElementBlock$2("div", _hoisted_2$7, [
83774
83774
  createVNode$2(TableHeaderItems, {
83775
83775
  search: searchLocal.value,
83776
83776
  "onUpdate:search": _cache[1] || (_cache[1] = ($event) => searchLocal.value = $event),
@@ -83786,7 +83786,7 @@ const _sfc_main$g = defineComponent$2({
83786
83786
  onRefreshList: _cache[2] || (_cache[2] = ($event) => refreshList($event)),
83787
83787
  onOpenColumnsManager: _cache[3] || (_cache[3] = ($event) => openColumnsManager())
83788
83788
  }, null, 8, ["search", "hideHeaderActions", "currentPage", "hasColumnsManager", "itemsPerPage", "listLength", "showRefreshBtn", "hideItemsPerPage", "layout", "version"]),
83789
- _ctx.$slots.header ? (openBlock$2(), createElementBlock$2("div", _hoisted_3$6, [
83789
+ _ctx.$slots.header ? (openBlock$2(), createElementBlock$2("div", _hoisted_3$5, [
83790
83790
  renderSlot$2(_ctx.$slots, "header", {}, void 0, true)
83791
83791
  ])) : createCommentVNode$2("", true)
83792
83792
  ])) : createCommentVNode$2("", true),
@@ -83797,7 +83797,7 @@ const _sfc_main$g = defineComponent$2({
83797
83797
  createElementVNode("table", {
83798
83798
  class: normalizeClass$2(["ck-table__table", computedClassTable.value])
83799
83799
  }, [
83800
- filteredColumnsList.value.length && !(_ctx.$slots.mobile && isMobileVisible.value) ? (openBlock$2(), createElementBlock$2("thead", _hoisted_4$6, [
83800
+ filteredColumnsList.value.length && !(_ctx.$slots.mobile && isMobileVisible.value) ? (openBlock$2(), createElementBlock$2("thead", _hoisted_4$5, [
83801
83801
  createVNode$2(CkTr, { class: "header-row" }, {
83802
83802
  default: withCtx$2(() => [
83803
83803
  (openBlock$2(true), createElementBlock$2(Fragment$2, null, renderList$1(filteredColumnsList.value, (col) => {
@@ -89118,12 +89118,12 @@ const _hoisted_1$b = {
89118
89118
  key: 0,
89119
89119
  class: "ck-card__header"
89120
89120
  };
89121
- const _hoisted_2$7 = {
89121
+ const _hoisted_2$6 = {
89122
89122
  key: 0,
89123
89123
  class: "ck-card__header-title"
89124
89124
  };
89125
- const _hoisted_3$5 = { class: "ck-card__body" };
89126
- const _hoisted_4$5 = {
89125
+ const _hoisted_3$4 = { class: "ck-card__body" };
89126
+ const _hoisted_4$4 = {
89127
89127
  key: 0,
89128
89128
  class: "ck-card__header-subtitle"
89129
89129
  };
@@ -89178,7 +89178,7 @@ const _sfc_main$c = defineComponent$2({
89178
89178
  class: normalizeClass$2(["ck-card", computedClass.value])
89179
89179
  }, [
89180
89180
  _ctx.title || !computedHideCloseBtn.value ? (openBlock$2(), createElementBlock$2("div", _hoisted_1$b, [
89181
- _ctx.title ? (openBlock$2(), createElementBlock$2("div", _hoisted_2$7, toDisplayString$1(_ctx.title), 1)) : createCommentVNode$2("", true),
89181
+ _ctx.title ? (openBlock$2(), createElementBlock$2("div", _hoisted_2$6, toDisplayString$1(_ctx.title), 1)) : createCommentVNode$2("", true),
89182
89182
  !computedHideCloseBtn.value ? (openBlock$2(), createElementBlock$2("div", {
89183
89183
  key: 1,
89184
89184
  class: "ck-card__close-btn",
@@ -89187,8 +89187,8 @@ const _sfc_main$c = defineComponent$2({
89187
89187
  createVNode$2(_component_ck_icon, { icon: "times" })
89188
89188
  ])) : createCommentVNode$2("", true)
89189
89189
  ])) : createCommentVNode$2("", true),
89190
- createElementVNode("div", _hoisted_3$5, [
89191
- _ctx.subtitle ? (openBlock$2(), createElementBlock$2("div", _hoisted_4$5, toDisplayString$1(_ctx.subtitle), 1)) : createCommentVNode$2("", true),
89190
+ createElementVNode("div", _hoisted_3$4, [
89191
+ _ctx.subtitle ? (openBlock$2(), createElementBlock$2("div", _hoisted_4$4, toDisplayString$1(_ctx.subtitle), 1)) : createCommentVNode$2("", true),
89192
89192
  createElementVNode("div", {
89193
89193
  class: normalizeClass$2(["ck-card__content", { "content-block": _ctx.block }])
89194
89194
  }, [
@@ -89425,11 +89425,11 @@ const _sfc_main$9 = defineComponent$2({
89425
89425
  });
89426
89426
  var ckImg = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-50760031"]]);
89427
89427
  var ckRadio_vue_vue_type_style_index_0_scoped_true_lang = "";
89428
- const _withScopeId$2 = (n2) => (pushScopeId$2("data-v-0dd8663c"), n2 = n2(), popScopeId$2(), n2);
89428
+ const _withScopeId$1 = (n2) => (pushScopeId$2("data-v-0dd8663c"), n2 = n2(), popScopeId$2(), n2);
89429
89429
  const _hoisted_1$8 = ["onKeyup"];
89430
- const _hoisted_2$6 = ["name", "value", "disabled"];
89431
- const _hoisted_3$4 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
89432
- const _hoisted_4$4 = {
89430
+ const _hoisted_2$5 = ["name", "value", "disabled"];
89431
+ const _hoisted_3$3 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "c-Radio__element" }, null, -1));
89432
+ const _hoisted_4$3 = {
89433
89433
  key: 0,
89434
89434
  class: "c-Radio__label"
89435
89435
  };
@@ -89505,11 +89505,11 @@ const _sfc_main$8 = defineComponent$2({
89505
89505
  name: _ctx.name,
89506
89506
  value: option.value,
89507
89507
  disabled: _ctx.disabled
89508
- }, null, 8, _hoisted_2$6), [
89508
+ }, null, 8, _hoisted_2$5), [
89509
89509
  [vModelRadio, value.value]
89510
89510
  ]),
89511
- _hoisted_3$4,
89512
- option.label ? (openBlock$2(), createElementBlock$2("span", _hoisted_4$4, toDisplayString$1(option.label), 1)) : createCommentVNode$2("", true)
89511
+ _hoisted_3$3,
89512
+ option.label ? (openBlock$2(), createElementBlock$2("span", _hoisted_4$3, toDisplayString$1(option.label), 1)) : createCommentVNode$2("", true)
89513
89513
  ], 16, _hoisted_1$8);
89514
89514
  }), 128);
89515
89515
  };
@@ -89518,12 +89518,12 @@ const _sfc_main$8 = defineComponent$2({
89518
89518
  var ckRadio = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-0dd8663c"]]);
89519
89519
  var ckSelect_vue_vue_type_style_index_0_scoped_true_lang = "";
89520
89520
  const _hoisted_1$7 = ["disabled"];
89521
- const _hoisted_2$5 = ["value"];
89522
- const _hoisted_3$3 = {
89521
+ const _hoisted_2$4 = ["value"];
89522
+ const _hoisted_3$2 = {
89523
89523
  key: 4,
89524
89524
  class: "ck-select--placeholder"
89525
89525
  };
89526
- const _hoisted_4$3 = {
89526
+ const _hoisted_4$2 = {
89527
89527
  key: 5,
89528
89528
  class: "ck-select--placeholder"
89529
89529
  };
@@ -89780,12 +89780,12 @@ const _sfc_main$7 = defineComponent$2({
89780
89780
  return openBlock$2(), createElementBlock$2("option", {
89781
89781
  value: getOptionValue(option),
89782
89782
  key: option
89783
- }, toDisplayString$1(getOptionName(option)), 9, _hoisted_2$5);
89783
+ }, toDisplayString$1(getOptionName(option)), 9, _hoisted_2$4);
89784
89784
  }), 128))
89785
89785
  ], 14, _hoisted_1$7), [
89786
89786
  [vModelSelect, value.value]
89787
89787
  ]),
89788
- isEmptyOptionsMsgVisible.value ? (openBlock$2(), createElementBlock$2("span", _hoisted_3$3, toDisplayString$1(_ctx.emptyOptionsMsg), 1)) : isPlaceholderVisible.value ? (openBlock$2(), createElementBlock$2("span", _hoisted_4$3, toDisplayString$1(_ctx.placeholder), 1)) : createCommentVNode$2("", true)
89788
+ isEmptyOptionsMsgVisible.value ? (openBlock$2(), createElementBlock$2("span", _hoisted_3$2, toDisplayString$1(_ctx.emptyOptionsMsg), 1)) : isPlaceholderVisible.value ? (openBlock$2(), createElementBlock$2("span", _hoisted_4$2, toDisplayString$1(_ctx.placeholder), 1)) : createCommentVNode$2("", true)
89789
89789
  ], 6);
89790
89790
  };
89791
89791
  }
@@ -89886,14 +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-1a15920f"), n2 = n2(), popScopeId$2(), n2);
89890
89889
  const _hoisted_1$5 = ["checked", "disabled"];
89891
- const _hoisted_2$4 = { class: "ck-switch__slider-container" };
89892
- const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", { class: "ck-switch__slider" }, null, -1));
89893
- const _hoisted_4$2 = {
89894
- key: 0,
89895
- class: "ck-switch__content"
89896
- };
89897
89890
  const defaultSize = "s";
89898
89891
  const _sfc_main$5 = defineComponent$2({
89899
89892
  __name: "ck-switch",
@@ -89918,6 +89911,16 @@ const _sfc_main$5 = defineComponent$2({
89918
89911
  emits("update:modelValue", val);
89919
89912
  }
89920
89913
  });
89914
+ const checkedValue = computed$3({
89915
+ get() {
89916
+ return value.value;
89917
+ },
89918
+ set(val) {
89919
+ if (props.preventAutoUpdate)
89920
+ return;
89921
+ value.value = val;
89922
+ }
89923
+ });
89921
89924
  const computedClass = computed$3(() => {
89922
89925
  const list = [];
89923
89926
  if (props.squared)
@@ -89934,58 +89937,34 @@ const _sfc_main$5 = defineComponent$2({
89934
89937
  tabindex: props.disabled ? void 0 : "0"
89935
89938
  };
89936
89939
  });
89937
- const iconClass = computed$3(() => {
89940
+ computed$3(() => {
89938
89941
  const list = [];
89939
89942
  if (props.size && props.size !== defaultSize) {
89940
89943
  list.push(`ck-switch__icon-size--${props.size}`);
89941
89944
  }
89942
89945
  return list;
89943
89946
  });
89944
- function handleCheckboxChange(event) {
89945
- if (props.preventAutoUpdate) {
89946
- event.preventDefault();
89947
- } else {
89948
- value.value = event.target.checked;
89949
- }
89950
- value.value = false;
89951
- }
89952
89947
  return (_ctx, _cache) => {
89953
89948
  return openBlock$2(), createElementBlock$2("label", mergeProps$2({ class: "ck-switch" }, computedAttributes.value, {
89954
89949
  class: computedClass.value,
89955
89950
  onKeydown: _cache[1] || (_cache[1] = withKeys$2(withModifiers$1(() => {
89956
89951
  }, ["prevent"]), ["space"]))
89957
89952
  }), [
89958
- createElementVNode("input", {
89953
+ withDirectives$1(createElementVNode("input", {
89959
89954
  class: "ck-switch__input",
89960
89955
  type: "checkbox",
89956
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checkedValue.value = $event),
89961
89957
  checked: value.value,
89962
89958
  "aria-hidden": "true",
89963
- disabled: _ctx.disabled,
89964
- onChange: _cache[0] || (_cache[0] = ($event) => handleCheckboxChange($event))
89965
- }, null, 40, _hoisted_1$5),
89966
- createElementVNode("div", _hoisted_2$4, [
89967
- _hoisted_3$2,
89968
- _ctx.icon && value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89969
- key: 0,
89970
- class: normalizeClass$2(["ck-switch__icon-left", iconClass.value]),
89971
- icon: _ctx.icon,
89972
- "icon-pack": _ctx.iconPack
89973
- }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true),
89974
- _ctx.icon && !value.value ? (openBlock$2(), createBlock$2(CkIcon, {
89975
- key: 1,
89976
- class: normalizeClass$2(["ck-switch__icon-right", iconClass.value]),
89977
- icon: _ctx.icon,
89978
- "icon-pack": _ctx.iconPack
89979
- }, null, 8, ["icon", "icon-pack", "class"])) : createCommentVNode$2("", true)
89980
- ]),
89981
- _ctx.$slots.default ? (openBlock$2(), createElementBlock$2("span", _hoisted_4$2, [
89982
- renderSlot$2(_ctx.$slots, "default", {}, void 0, true)
89983
- ])) : createCommentVNode$2("", true)
89959
+ disabled: _ctx.disabled
89960
+ }, null, 8, _hoisted_1$5), [
89961
+ [vModelCheckbox, checkedValue.value]
89962
+ ])
89984
89963
  ], 16);
89985
89964
  };
89986
89965
  }
89987
89966
  });
89988
- var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-1a15920f"]]);
89967
+ var ckSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-e7593bdc"]]);
89989
89968
  var ckSwitchOptions_vue_vue_type_style_index_0_scoped_true_lang = "";
89990
89969
  const _hoisted_1$4 = { class: "ck-switch-options__container-exterior" };
89991
89970
  const _hoisted_2$3 = ["onClick"];