cleek 2.3.35 → 2.3.38

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
@@ -39,7 +39,7 @@ var _export_sfc = (sfc, props) => {
39
39
  return target;
40
40
  };
41
41
  const _hoisted_1$k = { class: "ck-dropdown__popper-container" };
42
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
42
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
43
43
  props: {
44
44
  triggerType: { type: String, default: "click" },
45
45
  dark: { type: Boolean, default: false },
@@ -95,9 +95,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
95
95
  };
96
96
  }
97
97
  });
98
- var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-2120e680"]]);
98
+ var ckDropdown = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-2120e680"]]);
99
99
  var ckNavbar_vue_vue_type_style_index_0_scoped_true_lang = "";
100
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
100
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
101
101
  props: {
102
102
  padding: { type: String, default: 0 },
103
103
  position: { type: String, default: "fixed" }
@@ -132,7 +132,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
132
132
  };
133
133
  }
134
134
  });
135
- var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-5024db6a"]]);
135
+ var ckNavbar = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-5024db6a"]]);
136
136
  /*!
137
137
  * Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
138
138
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
@@ -16349,6 +16349,15 @@ var functions = {
16349
16349
  }
16350
16350
  return classList2;
16351
16351
  },
16352
+ getGroupClass2({ group = "", groupVertical = "", widthBreaks = [] } = {}, windowWidth) {
16353
+ const componentWidth = this.getWidthByWidthBreaks(widthBreaks, windowWidth);
16354
+ const classList2 = [];
16355
+ if (group && componentWidth !== "100%")
16356
+ classList2.push(`ck-component__group--${group}`);
16357
+ if (groupVertical)
16358
+ classList2.push(`ck-component__group-vertical--${groupVertical}`);
16359
+ return classList2;
16360
+ },
16352
16361
  getGroupClassContainer({ lineBreak = "" } = "") {
16353
16362
  const classList2 = [];
16354
16363
  if (lineBreak) {
@@ -16374,6 +16383,22 @@ var functions = {
16374
16383
  ];
16375
16384
  }
16376
16385
  },
16386
+ getWidthByWidthBreaks(widthBreaks, windowWidth) {
16387
+ if (widthBreaks) {
16388
+ let realWidthBreaks = [...widthBreaks];
16389
+ if (realWidthBreaks.length === 2 && typeof realWidthBreaks[0] === "number" && typeof realWidthBreaks[1] === "string") {
16390
+ realWidthBreaks = [realWidthBreaks];
16391
+ }
16392
+ let finalWidth = 0;
16393
+ realWidthBreaks.forEach((widthBreak) => {
16394
+ const [windowBreak, width] = widthBreak;
16395
+ if (windowWidth >= windowBreak) {
16396
+ finalWidth = width;
16397
+ }
16398
+ });
16399
+ return finalWidth;
16400
+ }
16401
+ },
16377
16402
  isColorTemplateVariable(color) {
16378
16403
  if (color === "primary")
16379
16404
  return true;
@@ -16406,7 +16431,7 @@ var functions = {
16406
16431
  }
16407
16432
  };
16408
16433
  var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
16409
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
16434
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16410
16435
  props: {
16411
16436
  icon: { type: [String, Array], default: "" },
16412
16437
  color: { type: String, default: "" },
@@ -16475,13 +16500,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16475
16500
  };
16476
16501
  }
16477
16502
  });
16478
- var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ddf67f32"]]);
16503
+ var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-ddf67f32"]]);
16479
16504
  var ckNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
16480
16505
  const _hoisted_1$j = { class: "ck-notify__container" };
16481
16506
  const _hoisted_2$8 = { class: "ck-notify__title" };
16482
16507
  const _hoisted_3$6 = { class: "close-btn" };
16483
16508
  const _hoisted_4$4 = { class: "ck-notify__text" };
16484
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
16509
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16485
16510
  setup(__props, { expose }) {
16486
16511
  expose({
16487
16512
  ckNotify: ckNotify2,
@@ -16543,7 +16568,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
16543
16568
  };
16544
16569
  }
16545
16570
  });
16546
- var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-5ca55d25"]]);
16571
+ var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-5ca55d25"]]);
16547
16572
  const _hoisted_1$i = { class: "ck-tr" };
16548
16573
  function render$1(_ctx, _cache) {
16549
16574
  return openBlock(), createElementBlock("tr", _hoisted_1$i, [
@@ -16551,8 +16576,8 @@ function render$1(_ctx, _cache) {
16551
16576
  ]);
16552
16577
  }
16553
16578
  var ckTr_vue_vue_type_style_index_0_scoped_true_lang = "";
16554
- const _sfc_main$k = {};
16555
- var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", render$1], ["__scopeId", "data-v-519cf874"]]);
16579
+ const _sfc_main$l = {};
16580
+ var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", render$1], ["__scopeId", "data-v-519cf874"]]);
16556
16581
  var validators = {
16557
16582
  size: (type) => {
16558
16583
  return ["", "xs", "s", "m", "l", "xl"].includes(type);
@@ -16584,7 +16609,7 @@ var validators = {
16584
16609
  }
16585
16610
  };
16586
16611
  var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
16587
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
16612
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
16588
16613
  props: {
16589
16614
  col: { type: Object, default: void 0 },
16590
16615
  nowrap: { type: Boolean, default: false },
@@ -16663,10 +16688,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
16663
16688
  };
16664
16689
  }
16665
16690
  });
16666
- var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4077488a"]]);
16691
+ var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4077488a"]]);
16667
16692
  var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
16668
16693
  const _hoisted_1$h = { class: "ck-th" };
16669
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
16694
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
16670
16695
  props: {
16671
16696
  align: { type: String, default: "left", validator: validators.align },
16672
16697
  minWidth: { type: String, default: void 0 }
@@ -16698,8 +16723,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
16698
16723
  };
16699
16724
  }
16700
16725
  });
16701
- var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-4b7ed390"]]);
16702
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
16726
+ var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4b7ed390"]]);
16727
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
16703
16728
  props: {
16704
16729
  col: { type: Object, required: true }
16705
16730
  },
@@ -16737,7 +16762,7 @@ function useWindowWidth() {
16737
16762
  }
16738
16763
  var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
16739
16764
  const _hoisted_1$g = ["title", "aria-label", "disabled"];
16740
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
16765
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
16741
16766
  props: {
16742
16767
  title: { type: String, default: void 0 },
16743
16768
  disabled: { type: Boolean, default: false },
@@ -16746,6 +16771,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16746
16771
  align: { type: String, default: "left", validator: validators.align },
16747
16772
  size: { type: String, default: "m", validator: validators.size },
16748
16773
  width: { type: String, default: "" },
16774
+ rounded: { type: Boolean, default: false },
16749
16775
  icon: { type: [String, Array], default: void 0 },
16750
16776
  iconPack: { type: String, default: void 0 },
16751
16777
  iconRight: { type: String, default: void 0 },
@@ -16784,9 +16810,13 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16784
16810
  if (props.align === "center" || props.align === "right") {
16785
16811
  classList2.push(`ck-button__align--${props.align}`);
16786
16812
  }
16813
+ if (props.rounded)
16814
+ console.log("rounded");
16815
+ if (props.rounded)
16816
+ classList2.push("rounded");
16787
16817
  classList2.push(`type-${realButtonType.value}`);
16788
16818
  if (props.size)
16789
- classList2.push(`rs-component-size__${props.size}`);
16819
+ classList2.push(`ck-button-size__${props.size}`);
16790
16820
  return classList2;
16791
16821
  });
16792
16822
  const computedStyle = computed$2(() => {
@@ -16800,7 +16830,6 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16800
16830
  emits("click", event);
16801
16831
  }
16802
16832
  onMounted(() => {
16803
- getCurrentInstance().ctx;
16804
16833
  $cleekOptions = functions.getCleekOptions(getCurrentInstance);
16805
16834
  isMounted.value = true;
16806
16835
  });
@@ -16831,13 +16860,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16831
16860
  };
16832
16861
  }
16833
16862
  });
16834
- var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-334c7553"]]);
16863
+ var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-4a61847a"]]);
16835
16864
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
16836
16865
  const _hoisted_1$f = ["for"];
16837
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
16866
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16838
16867
  props: {
16839
16868
  for: { type: String, default: "" },
16840
- align: { type: String, default: "" }
16869
+ align: { type: String, default: "" },
16870
+ size: { type: String, default: "m" }
16841
16871
  },
16842
16872
  setup(__props) {
16843
16873
  const props = __props;
@@ -16847,6 +16877,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16847
16877
  if (props.align === "center" || props.align === "right")
16848
16878
  align = props.align;
16849
16879
  list.push(`ck-align--${align}`);
16880
+ list.push(`ck-size--${props.size}`);
16850
16881
  return list;
16851
16882
  });
16852
16883
  return (_ctx, _cache) => {
@@ -16859,10 +16890,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16859
16890
  };
16860
16891
  }
16861
16892
  });
16862
- var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-37dee526"]]);
16893
+ var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-400ea765"]]);
16863
16894
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
16864
16895
  const _hoisted_1$e = ["autocomplete", "type", "placeholder", "disabled"];
16865
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
16896
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16866
16897
  props: {
16867
16898
  modelValue: {},
16868
16899
  type: { type: String, validator: validators.inputType, default: "text" },
@@ -16875,11 +16906,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16875
16906
  iconPack: { type: String, default: void 0 },
16876
16907
  iconRight: { type: String, default: void 0 },
16877
16908
  group: { type: String, default: void 0 },
16878
- lineBreak: { type: [String, Number], default: "" },
16879
16909
  groupVertical: { type: String, default: void 0 },
16910
+ widthBreaks: { type: Array, default: void 0 },
16911
+ lineBreak: { type: [String, Number], default: "" },
16912
+ size: { type: String, default: "m", validator: validators.size },
16880
16913
  hideBorder: { type: Boolean, default: false },
16881
16914
  width: { type: String, default: void 0 },
16882
16915
  align: { type: String, validator: validators.align, default: void 0 },
16916
+ rounded: { type: Boolean, default: false },
16883
16917
  autoSelect: { type: Boolean, default: false }
16884
16918
  },
16885
16919
  emits: ["update:modelValue", "click", "input", "change"],
@@ -16896,6 +16930,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16896
16930
  emits("update:modelValue", val);
16897
16931
  }
16898
16932
  });
16933
+ const realLabelAlign = computed$2(() => {
16934
+ if (props.labelAlign)
16935
+ return props.labelAlign;
16936
+ if (props.align)
16937
+ return props.align;
16938
+ return "left";
16939
+ });
16899
16940
  const onClick = (event) => {
16900
16941
  if (props.autoSelect)
16901
16942
  event.target.select();
@@ -16914,7 +16955,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16914
16955
  });
16915
16956
  const computedClassInput = computed$2(() => {
16916
16957
  const list = [];
16917
- list.push(functions.getGroupClass(props));
16958
+ list.push(functions.getGroupClass2(props, windowWidth.value));
16918
16959
  if (props.icon)
16919
16960
  list.push("has-icon-left");
16920
16961
  if (props.iconRight)
@@ -16923,11 +16964,19 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16923
16964
  list.push(`align--${props.align}`);
16924
16965
  if (props.hideBorder)
16925
16966
  list.push("no-border");
16967
+ if (props.rounded)
16968
+ list.push("rounded");
16969
+ if (props.size)
16970
+ list.push(`ck-input-size__${props.size}`);
16926
16971
  return list;
16927
16972
  });
16928
16973
  const computedStyle = computed$2(() => {
16929
16974
  const list = [];
16930
- list.push(functions.getlineBreakStyleContainer(props, windowWidth.value));
16975
+ if (props.widthBreaks) {
16976
+ const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
16977
+ if (width)
16978
+ list.push({ width });
16979
+ }
16931
16980
  return list;
16932
16981
  });
16933
16982
  const computedStyleInput = computed$2(() => {
@@ -16950,14 +16999,15 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16950
16999
  }, [
16951
17000
  __props.label ? (openBlock(), createBlock(ckLabel, {
16952
17001
  key: 0,
16953
- align: __props.labelAlign,
16954
- for: "ck-input"
17002
+ align: unref$1(realLabelAlign),
17003
+ for: "ck-input",
17004
+ size: __props.size
16955
17005
  }, {
16956
17006
  default: withCtx(() => [
16957
17007
  createTextVNode(toDisplayString(__props.label), 1)
16958
17008
  ]),
16959
17009
  _: 1
16960
- }, 8, ["align"])) : createCommentVNode("", true),
17010
+ }, 8, ["align", "size"])) : createCommentVNode("", true),
16961
17011
  __props.icon ? (openBlock(), createBlock(ckIcon, {
16962
17012
  key: 1,
16963
17013
  class: "ck-input__icon-left",
@@ -16992,10 +17042,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16992
17042
  };
16993
17043
  }
16994
17044
  });
16995
- var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2f390047"]]);
17045
+ var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-7c0f3064"]]);
16996
17046
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
16997
17047
  const _hoisted_1$d = { class: "ck-table__header-items" };
16998
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
17048
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16999
17049
  props: {
17000
17050
  search: { type: String, default: void 0 },
17001
17051
  hasColumnsManager: { type: Boolean, default: false },
@@ -17089,7 +17139,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
17089
17139
  };
17090
17140
  }
17091
17141
  });
17092
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ad4db5f6"]]);
17142
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ad4db5f6"]]);
17093
17143
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
17094
17144
  const _hoisted_1$c = { class: "ck-table__pagination" };
17095
17145
  const _hoisted_2$7 = ["onClick"];
@@ -17168,7 +17218,7 @@ const __default__ = {
17168
17218
  }
17169
17219
  }
17170
17220
  };
17171
- const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
17221
+ const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
17172
17222
  setup(__props) {
17173
17223
  return (_ctx, _cache) => {
17174
17224
  return __props.currentPage && _ctx.totalPages > 1 ? (openBlock(), createElementBlock("div", {
@@ -17217,7 +17267,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
17217
17267
  };
17218
17268
  }
17219
17269
  }));
17220
- var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-dec8fb20"]]);
17270
+ var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dec8fb20"]]);
17221
17271
  const NOOP$1 = () => {
17222
17272
  };
17223
17273
  const isArray$1 = Array.isArray;
@@ -18000,7 +18050,7 @@ const _hoisted_3$4 = {
18000
18050
  key: 0,
18001
18051
  class: "c-Checkbox__label"
18002
18052
  };
18003
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
18053
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
18004
18054
  props: {
18005
18055
  modelValue: { type: Boolean, default: false },
18006
18056
  label: { type: String, default: void 0 },
@@ -18057,7 +18107,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18057
18107
  };
18058
18108
  }
18059
18109
  });
18060
- var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-132565da"]]);
18110
+ var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-132565da"]]);
18061
18111
  var ckPopup_vue_vue_type_style_index_0_lang = "";
18062
18112
  const _hoisted_1$a = {
18063
18113
  key: 0,
@@ -18080,7 +18130,7 @@ const _hoisted_7 = {
18080
18130
  };
18081
18131
  const _hoisted_8 = /* @__PURE__ */ createTextVNode("Cancelar");
18082
18132
  const _hoisted_9 = /* @__PURE__ */ createTextVNode("Aceptar");
18083
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
18133
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18084
18134
  props: {
18085
18135
  modelValue: { type: Boolean },
18086
18136
  title: { type: String, default: void 0 },
@@ -18172,7 +18222,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
18172
18222
  var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
18173
18223
  const _hoisted_1$9 = { class: "columns-manger-container" };
18174
18224
  const _hoisted_2$4 = { class: "columns-manger__item" };
18175
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
18225
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
18176
18226
  props: {
18177
18227
  modelValue: { type: Boolean, required: true },
18178
18228
  columns: { type: Object, required: true },
@@ -18212,7 +18262,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
18212
18262
  props.columns[colName].isDisplayed = value;
18213
18263
  }
18214
18264
  return (_ctx, _cache) => {
18215
- return openBlock(), createBlock(_sfc_main$a, {
18265
+ return openBlock(), createBlock(_sfc_main$b, {
18216
18266
  modelValue: unref$1(isActive),
18217
18267
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(isActive) ? isActive.value = $event : null),
18218
18268
  title: "Administrador de columnas"
@@ -18240,7 +18290,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
18240
18290
  };
18241
18291
  }
18242
18292
  });
18243
- var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-36d907dc"]]);
18293
+ var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-36d907dc"]]);
18244
18294
  var qmApi = {};
18245
18295
  var qmArray = {
18246
18296
  arrayToText(arr, key = null) {
@@ -18530,7 +18580,7 @@ const _hoisted_3$2 = {
18530
18580
  const _hoisted_4$2 = { class: "ck-table__table-container" };
18531
18581
  const _hoisted_5 = { key: 0 };
18532
18582
  const _hoisted_6 = { key: 1 };
18533
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18583
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
18534
18584
  props: {
18535
18585
  columns: { type: [Array, Object], required: true, default: () => [] },
18536
18586
  hasColumnsManager: { type: Boolean, default: false },
@@ -18655,7 +18705,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18655
18705
  createVNode(ckTr, null, {
18656
18706
  default: withCtx(() => [
18657
18707
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
18658
- return openBlock(), createBlock(_sfc_main$h, {
18708
+ return openBlock(), createBlock(_sfc_main$i, {
18659
18709
  key: col.title,
18660
18710
  col
18661
18711
  }, null, 8, ["col"]);
@@ -18703,10 +18753,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18703
18753
  };
18704
18754
  }
18705
18755
  });
18706
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-6545e800"]]);
18756
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6545e800"]]);
18707
18757
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
18708
18758
  const _hoisted_1$7 = ["color"];
18709
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18759
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18710
18760
  props: {
18711
18761
  size: { type: String, default: "s" },
18712
18762
  color: { type: String, default: "primary" },
@@ -18746,7 +18796,35 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18746
18796
  };
18747
18797
  }
18748
18798
  });
18749
- var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-1e92de86"]]);
18799
+ var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-1e92de86"]]);
18800
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18801
+ props: {
18802
+ widthBreaks: { type: Array, default: void 0 }
18803
+ },
18804
+ emits: ["click"],
18805
+ setup(__props, { emit: emits }) {
18806
+ const props = __props;
18807
+ const { windowWidth } = useWindowWidth();
18808
+ const computedStyle = computed$2(() => {
18809
+ const list = [];
18810
+ if (props.widthBreaks) {
18811
+ const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
18812
+ if (width)
18813
+ list.push({ width });
18814
+ }
18815
+ return list;
18816
+ });
18817
+ return (_ctx, _cache) => {
18818
+ return openBlock(), createElementBlock("div", {
18819
+ class: "ck-div",
18820
+ style: normalizeStyle(unref$1(computedStyle)),
18821
+ onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
18822
+ }, [
18823
+ renderSlot(_ctx.$slots, "default")
18824
+ ], 4);
18825
+ };
18826
+ }
18827
+ });
18750
18828
  var globalVariables = {
18751
18829
  defaultFailImg: "df",
18752
18830
  imagesFolderPath: "",
@@ -21936,11 +22014,12 @@ var components = /* @__PURE__ */ Object.freeze({
21936
22014
  ckButton,
21937
22015
  ckCheckbox,
21938
22016
  ckChip,
22017
+ ckDiv: _sfc_main$7,
21939
22018
  ckIcon,
21940
22019
  ckImg,
21941
22020
  ckInput,
21942
22021
  ckLabel,
21943
- ckPopup: _sfc_main$a,
22022
+ ckPopup: _sfc_main$b,
21944
22023
  ckRadio,
21945
22024
  ckSelect,
21946
22025
  ckSwitch,
@@ -21980,4 +22059,4 @@ const install = function installCleek(app, options) {
21980
22059
  app.component(componentName, component);
21981
22060
  });
21982
22061
  };
21983
- export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, ckNotify, _sfc_main$a as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };
22062
+ export { events as EVENTS, mitt as EventBus, ckButton, ckCheckbox, ckChip, _sfc_main$7 as ckDiv, ckDropdown, ckIcon, ckImg, ckInput, ckLabel, ckNavbar, ckNotify, _sfc_main$b as ckPopup, ckRadio, ckSelect, ckSwitch, ckSwitchOptions, ckTable, ckTd, ckTextarea, ckTh, ckTooltip, ckTr, install as default, lockScroll, unlockScroll };