cleek 2.3.36 → 2.3.39

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)
@@ -16336,42 +16336,32 @@ defineComponent({
16336
16336
  }
16337
16337
  });
16338
16338
  var functions = {
16339
- getGroupClass({ group = "", groupVertical = "", lineBreak = "" } = {}) {
16339
+ getCleekOptions(getCurrentInstance2) {
16340
+ return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
16341
+ },
16342
+ getGroupClass({ group = "", groupVertical = "", widthBreaks = [] } = {}, windowWidth) {
16343
+ const componentWidth = this.getWidthByWidthBreaks(widthBreaks, windowWidth);
16340
16344
  const classList2 = [];
16341
- if (group)
16345
+ if (group && componentWidth !== "100%")
16342
16346
  classList2.push(`ck-component__group--${group}`);
16343
16347
  if (groupVertical)
16344
16348
  classList2.push(`ck-component__group-vertical--${groupVertical}`);
16345
- if (lineBreak) {
16346
- if (lineBreak === "s") {
16347
- classList2.push(`ck-component__line-break--${lineBreak}`);
16348
- }
16349
- }
16350
16349
  return classList2;
16351
16350
  },
16352
- getGroupClassContainer({ lineBreak = "" } = "") {
16353
- const classList2 = [];
16354
- if (lineBreak) {
16355
- if (lineBreak === "s") {
16356
- classList2.push(`ck-component__line-break-container--${lineBreak}`);
16351
+ getWidthByWidthBreaks(widthBreaks, windowWidth) {
16352
+ if (widthBreaks) {
16353
+ let realWidthBreaks = [...widthBreaks];
16354
+ if (realWidthBreaks.length === 2 && typeof realWidthBreaks[0] === "number" && typeof realWidthBreaks[1] === "string") {
16355
+ realWidthBreaks = [realWidthBreaks];
16357
16356
  }
16358
- }
16359
- return classList2;
16360
- },
16361
- getlineBreakStyleContainer({ lineBreak } = {}, windowWidth) {
16362
- if (windowWidth <= lineBreak) {
16363
- return [
16364
- { width: "100%" }
16365
- ];
16366
- }
16367
- },
16368
- getlineBreakStyle({ lineBreak } = {}, windowWidth) {
16369
- if (windowWidth <= lineBreak) {
16370
- return [
16371
- { width: "100%" },
16372
- { borderRadius: "4px !important" },
16373
- { border: "1px solid #DAE1E7 !important" }
16374
- ];
16357
+ let finalWidth = 0;
16358
+ realWidthBreaks.forEach((widthBreak) => {
16359
+ const [windowBreak, width] = widthBreak;
16360
+ if (windowWidth >= windowBreak) {
16361
+ finalWidth = width;
16362
+ }
16363
+ });
16364
+ return finalWidth;
16375
16365
  }
16376
16366
  },
16377
16367
  isColorTemplateVariable(color) {
@@ -16400,13 +16390,10 @@ var functions = {
16400
16390
  return false;
16401
16391
  }
16402
16392
  return true;
16403
- },
16404
- getCleekOptions(getCurrentInstance2) {
16405
- return getCurrentInstance2().appContext.app.config.globalProperties.$cleekOptions;
16406
16393
  }
16407
16394
  };
16408
16395
  var ckIcon_vue_vue_type_style_index_0_scoped_true_lang = "";
16409
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
16396
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16410
16397
  props: {
16411
16398
  icon: { type: [String, Array], default: "" },
16412
16399
  color: { type: String, default: "" },
@@ -16475,13 +16462,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16475
16462
  };
16476
16463
  }
16477
16464
  });
16478
- var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ddf67f32"]]);
16465
+ var ckIcon = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-ddf67f32"]]);
16479
16466
  var ckNotify_vue_vue_type_style_index_0_scoped_true_lang = "";
16480
16467
  const _hoisted_1$j = { class: "ck-notify__container" };
16481
16468
  const _hoisted_2$8 = { class: "ck-notify__title" };
16482
16469
  const _hoisted_3$6 = { class: "close-btn" };
16483
16470
  const _hoisted_4$4 = { class: "ck-notify__text" };
16484
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
16471
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16485
16472
  setup(__props, { expose }) {
16486
16473
  expose({
16487
16474
  ckNotify: ckNotify2,
@@ -16543,7 +16530,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
16543
16530
  };
16544
16531
  }
16545
16532
  });
16546
- var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-5ca55d25"]]);
16533
+ var ckNotify = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-5ca55d25"]]);
16547
16534
  const _hoisted_1$i = { class: "ck-tr" };
16548
16535
  function render$1(_ctx, _cache) {
16549
16536
  return openBlock(), createElementBlock("tr", _hoisted_1$i, [
@@ -16551,8 +16538,8 @@ function render$1(_ctx, _cache) {
16551
16538
  ]);
16552
16539
  }
16553
16540
  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"]]);
16541
+ const _sfc_main$l = {};
16542
+ var ckTr = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", render$1], ["__scopeId", "data-v-519cf874"]]);
16556
16543
  var validators = {
16557
16544
  size: (type) => {
16558
16545
  return ["", "xs", "s", "m", "l", "xl"].includes(type);
@@ -16584,7 +16571,7 @@ var validators = {
16584
16571
  }
16585
16572
  };
16586
16573
  var ckTd_vue_vue_type_style_index_0_scoped_true_lang = "";
16587
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
16574
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
16588
16575
  props: {
16589
16576
  col: { type: Object, default: void 0 },
16590
16577
  nowrap: { type: Boolean, default: false },
@@ -16663,10 +16650,10 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
16663
16650
  };
16664
16651
  }
16665
16652
  });
16666
- var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4077488a"]]);
16653
+ var ckTd = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-4077488a"]]);
16667
16654
  var ckTh_vue_vue_type_style_index_0_scoped_true_lang = "";
16668
16655
  const _hoisted_1$h = { class: "ck-th" };
16669
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
16656
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
16670
16657
  props: {
16671
16658
  align: { type: String, default: "left", validator: validators.align },
16672
16659
  minWidth: { type: String, default: void 0 }
@@ -16698,8 +16685,8 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
16698
16685
  };
16699
16686
  }
16700
16687
  });
16701
- var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-4b7ed390"]]);
16702
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
16688
+ var ckTh = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-4b7ed390"]]);
16689
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
16703
16690
  props: {
16704
16691
  col: { type: Object, required: true }
16705
16692
  },
@@ -16737,7 +16724,7 @@ function useWindowWidth() {
16737
16724
  }
16738
16725
  var ckButton_vue_vue_type_style_index_0_scoped_true_lang = "";
16739
16726
  const _hoisted_1$g = ["title", "aria-label", "disabled"];
16740
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
16727
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
16741
16728
  props: {
16742
16729
  title: { type: String, default: void 0 },
16743
16730
  disabled: { type: Boolean, default: false },
@@ -16753,7 +16740,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16753
16740
  label: { type: String, default: void 0 },
16754
16741
  labelAlign: { type: String, default: void 0 },
16755
16742
  group: { type: String, default: void 0, validator: validators.group },
16756
- lineBreak: { type: [String, Number], default: "" },
16743
+ widthBreaks: { type: Array, default: void 0 },
16757
16744
  groupVertical: { type: String, default: void 0, validator: validators.groupVertical }
16758
16745
  },
16759
16746
  emits: ["click"],
@@ -16773,32 +16760,39 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16773
16760
  return defaultButtonType;
16774
16761
  });
16775
16762
  const computedClass = computed$2(() => {
16776
- const classList2 = [];
16777
- classList2.push(functions.getGroupClass(props));
16763
+ const list = [];
16764
+ list.push(functions.getGroupClass(props, windowWidth.value));
16778
16765
  if (props.color !== "primary") {
16779
16766
  if (realButtonType.value === "filled") {
16780
- classList2.push(`ck-component__bg-color--${props.color}`);
16767
+ list.push(`ck-component__bg-color--${props.color}`);
16781
16768
  } else {
16782
- classList2.push(`ck-component__border-color--${props.color}`);
16769
+ list.push(`ck-component__border-color--${props.color}`);
16783
16770
  }
16784
16771
  }
16785
16772
  if (props.align === "center" || props.align === "right") {
16786
- classList2.push(`ck-button__align--${props.align}`);
16773
+ list.push(`ck-button__align--${props.align}`);
16787
16774
  }
16788
16775
  if (props.rounded)
16789
16776
  console.log("rounded");
16790
16777
  if (props.rounded)
16791
- classList2.push("rounded");
16792
- classList2.push(`type-${realButtonType.value}`);
16778
+ list.push("rounded");
16779
+ list.push(`type-${realButtonType.value}`);
16793
16780
  if (props.size)
16794
- classList2.push(`rs-component-size__${props.size}`);
16795
- return classList2;
16781
+ list.push(`ck-button-size__${props.size}`);
16782
+ return list;
16796
16783
  });
16797
16784
  const computedStyle = computed$2(() => {
16798
16785
  const list = [];
16799
- if (props.width && !props.lineBreak)
16786
+ let isWidthDefined = false;
16787
+ if (props.widthBreaks) {
16788
+ const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
16789
+ if (width) {
16790
+ isWidthDefined = true;
16791
+ list.push({ width });
16792
+ }
16793
+ }
16794
+ if (props.width && !isWidthDefined)
16800
16795
  list.push({ width: props.width });
16801
- list.push(functions.getlineBreakStyle(props, windowWidth.value));
16802
16796
  return list;
16803
16797
  });
16804
16798
  function onClick(event) {
@@ -16835,13 +16829,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16835
16829
  };
16836
16830
  }
16837
16831
  });
16838
- var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-fcccd8a0"]]);
16832
+ var ckButton = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6555a0e0"]]);
16839
16833
  var ckLabel_vue_vue_type_style_index_0_scoped_true_lang = "";
16840
16834
  const _hoisted_1$f = ["for"];
16841
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
16835
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
16842
16836
  props: {
16843
16837
  for: { type: String, default: "" },
16844
- align: { type: String, default: "" }
16838
+ align: { type: String, default: "" },
16839
+ size: { type: String, default: "m" }
16845
16840
  },
16846
16841
  setup(__props) {
16847
16842
  const props = __props;
@@ -16851,6 +16846,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16851
16846
  if (props.align === "center" || props.align === "right")
16852
16847
  align = props.align;
16853
16848
  list.push(`ck-align--${align}`);
16849
+ list.push(`ck-size--${props.size}`);
16854
16850
  return list;
16855
16851
  });
16856
16852
  return (_ctx, _cache) => {
@@ -16863,10 +16859,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16863
16859
  };
16864
16860
  }
16865
16861
  });
16866
- var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-37dee526"]]);
16862
+ var ckLabel = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-400ea765"]]);
16867
16863
  var ckInput_vue_vue_type_style_index_0_scoped_true_lang = "";
16868
16864
  const _hoisted_1$e = ["autocomplete", "type", "placeholder", "disabled"];
16869
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
16865
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
16870
16866
  props: {
16871
16867
  modelValue: {},
16872
16868
  type: { type: String, validator: validators.inputType, default: "text" },
@@ -16879,11 +16875,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16879
16875
  iconPack: { type: String, default: void 0 },
16880
16876
  iconRight: { type: String, default: void 0 },
16881
16877
  group: { type: String, default: void 0 },
16882
- lineBreak: { type: [String, Number], default: "" },
16883
16878
  groupVertical: { type: String, default: void 0 },
16879
+ widthBreaks: { type: Array, default: void 0 },
16880
+ size: { type: String, default: "m", validator: validators.size },
16884
16881
  hideBorder: { type: Boolean, default: false },
16885
16882
  width: { type: String, default: void 0 },
16886
16883
  align: { type: String, validator: validators.align, default: void 0 },
16884
+ rounded: { type: Boolean, default: false },
16887
16885
  autoSelect: { type: Boolean, default: false }
16888
16886
  },
16889
16887
  emits: ["update:modelValue", "click", "input", "change"],
@@ -16900,6 +16898,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16900
16898
  emits("update:modelValue", val);
16901
16899
  }
16902
16900
  });
16901
+ const realLabelAlign = computed$2(() => {
16902
+ if (props.labelAlign)
16903
+ return props.labelAlign;
16904
+ if (props.align)
16905
+ return props.align;
16906
+ return "left";
16907
+ });
16903
16908
  const onClick = (event) => {
16904
16909
  if (props.autoSelect)
16905
16910
  event.target.select();
@@ -16911,14 +16916,9 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16911
16916
  const onChange2 = (event) => {
16912
16917
  emits("change", event);
16913
16918
  };
16914
- const computedClass = computed$2(() => {
16915
- const list = [];
16916
- list.push(functions.getGroupClassContainer(props));
16917
- return list;
16918
- });
16919
16919
  const computedClassInput = computed$2(() => {
16920
16920
  const list = [];
16921
- list.push(functions.getGroupClass(props));
16921
+ list.push(functions.getGroupClass(props, windowWidth.value));
16922
16922
  if (props.icon)
16923
16923
  list.push("has-icon-left");
16924
16924
  if (props.iconRight)
@@ -16927,18 +16927,20 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16927
16927
  list.push(`align--${props.align}`);
16928
16928
  if (props.hideBorder)
16929
16929
  list.push("no-border");
16930
+ if (props.rounded)
16931
+ list.push("rounded");
16932
+ if (props.size)
16933
+ list.push(`ck-input-size__${props.size}`);
16930
16934
  return list;
16931
16935
  });
16932
16936
  const computedStyle = computed$2(() => {
16933
16937
  const list = [];
16934
- list.push(functions.getlineBreakStyleContainer(props, windowWidth.value));
16935
- return list;
16936
- });
16937
- const computedStyleInput = computed$2(() => {
16938
- const list = [];
16939
- if (props.width || !props.lineBreak)
16940
- list.push({ width: props.width });
16941
- list.push(functions.getlineBreakStyle(props, windowWidth.value));
16938
+ list.push({ width: props.width });
16939
+ if (props.widthBreaks) {
16940
+ const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
16941
+ if (width)
16942
+ list.push({ width });
16943
+ }
16942
16944
  return list;
16943
16945
  });
16944
16946
  function setFocus() {
@@ -16949,19 +16951,20 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16949
16951
  }
16950
16952
  return (_ctx, _cache) => {
16951
16953
  return openBlock(), createElementBlock("div", {
16952
- class: normalizeClass(["ck-input", unref$1(computedClass)]),
16954
+ class: "ck-input",
16953
16955
  style: normalizeStyle(unref$1(computedStyle))
16954
16956
  }, [
16955
16957
  __props.label ? (openBlock(), createBlock(ckLabel, {
16956
16958
  key: 0,
16957
- align: __props.labelAlign,
16958
- for: "ck-input"
16959
+ align: unref$1(realLabelAlign),
16960
+ for: "ck-input",
16961
+ size: __props.size
16959
16962
  }, {
16960
16963
  default: withCtx(() => [
16961
16964
  createTextVNode(toDisplayString(__props.label), 1)
16962
16965
  ]),
16963
16966
  _: 1
16964
- }, 8, ["align"])) : createCommentVNode("", true),
16967
+ }, 8, ["align", "size"])) : createCommentVNode("", true),
16965
16968
  __props.icon ? (openBlock(), createBlock(ckIcon, {
16966
16969
  key: 1,
16967
16970
  class: "ck-input__icon-left",
@@ -16977,12 +16980,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16977
16980
  type: __props.type,
16978
16981
  placeholder: __props.placeholder,
16979
16982
  class: normalizeClass(unref$1(computedClassInput)),
16980
- style: normalizeStyle(unref$1(computedStyleInput)),
16981
16983
  disabled: __props.disabled,
16982
16984
  onChange: _cache[1] || (_cache[1] = ($event) => onChange2($event)),
16983
16985
  onInput: _cache[2] || (_cache[2] = ($event) => onInput($event)),
16984
16986
  onClick: _cache[3] || (_cache[3] = ($event) => onClick($event))
16985
- }, null, 46, _hoisted_1$e), [
16987
+ }, null, 42, _hoisted_1$e), [
16986
16988
  [vModelDynamic, unref$1(value)]
16987
16989
  ]),
16988
16990
  __props.iconRight ? (openBlock(), createBlock(ckIcon, {
@@ -16992,14 +16994,14 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
16992
16994
  icon: __props.iconRight,
16993
16995
  "icon-pack": __props.iconPack
16994
16996
  }, null, 8, ["icon", "icon-pack"])) : createCommentVNode("", true)
16995
- ], 6);
16997
+ ], 4);
16996
16998
  };
16997
16999
  }
16998
17000
  });
16999
- var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-2f390047"]]);
17001
+ var ckInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-35324670"]]);
17000
17002
  var ckTable__headerItems_vue_vue_type_style_index_0_scoped_true_lang = "";
17001
17003
  const _hoisted_1$d = { class: "ck-table__header-items" };
17002
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
17004
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
17003
17005
  props: {
17004
17006
  search: { type: String, default: void 0 },
17005
17007
  hasColumnsManager: { type: Boolean, default: false },
@@ -17093,7 +17095,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
17093
17095
  };
17094
17096
  }
17095
17097
  });
17096
- var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ad4db5f6"]]);
17098
+ var TableHeaderItems = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ad4db5f6"]]);
17097
17099
  var ckTable__pagination_vue_vue_type_style_index_0_scoped_true_lang = "";
17098
17100
  const _hoisted_1$c = { class: "ck-table__pagination" };
17099
17101
  const _hoisted_2$7 = ["onClick"];
@@ -17172,7 +17174,7 @@ const __default__ = {
17172
17174
  }
17173
17175
  }
17174
17176
  };
17175
- const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
17177
+ const _sfc_main$d = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__), {
17176
17178
  setup(__props) {
17177
17179
  return (_ctx, _cache) => {
17178
17180
  return __props.currentPage && _ctx.totalPages > 1 ? (openBlock(), createElementBlock("div", {
@@ -17221,7 +17223,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
17221
17223
  };
17222
17224
  }
17223
17225
  }));
17224
- var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-dec8fb20"]]);
17226
+ var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-dec8fb20"]]);
17225
17227
  const NOOP$1 = () => {
17226
17228
  };
17227
17229
  const isArray$1 = Array.isArray;
@@ -18004,7 +18006,7 @@ const _hoisted_3$4 = {
18004
18006
  key: 0,
18005
18007
  class: "c-Checkbox__label"
18006
18008
  };
18007
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
18009
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
18008
18010
  props: {
18009
18011
  modelValue: { type: Boolean, default: false },
18010
18012
  label: { type: String, default: void 0 },
@@ -18061,7 +18063,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18061
18063
  };
18062
18064
  }
18063
18065
  });
18064
- var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-132565da"]]);
18066
+ var ckCheckbox = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-132565da"]]);
18065
18067
  var ckPopup_vue_vue_type_style_index_0_lang = "";
18066
18068
  const _hoisted_1$a = {
18067
18069
  key: 0,
@@ -18084,7 +18086,7 @@ const _hoisted_7 = {
18084
18086
  };
18085
18087
  const _hoisted_8 = /* @__PURE__ */ createTextVNode("Cancelar");
18086
18088
  const _hoisted_9 = /* @__PURE__ */ createTextVNode("Aceptar");
18087
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
18089
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
18088
18090
  props: {
18089
18091
  modelValue: { type: Boolean },
18090
18092
  title: { type: String, default: void 0 },
@@ -18176,7 +18178,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
18176
18178
  var ckTable__columnsManager_vue_vue_type_style_index_0_scoped_true_lang = "";
18177
18179
  const _hoisted_1$9 = { class: "columns-manger-container" };
18178
18180
  const _hoisted_2$4 = { class: "columns-manger__item" };
18179
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
18181
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
18180
18182
  props: {
18181
18183
  modelValue: { type: Boolean, required: true },
18182
18184
  columns: { type: Object, required: true },
@@ -18216,7 +18218,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
18216
18218
  props.columns[colName].isDisplayed = value;
18217
18219
  }
18218
18220
  return (_ctx, _cache) => {
18219
- return openBlock(), createBlock(_sfc_main$a, {
18221
+ return openBlock(), createBlock(_sfc_main$b, {
18220
18222
  modelValue: unref$1(isActive),
18221
18223
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(isActive) ? isActive.value = $event : null),
18222
18224
  title: "Administrador de columnas"
@@ -18244,7 +18246,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
18244
18246
  };
18245
18247
  }
18246
18248
  });
18247
- var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-36d907dc"]]);
18249
+ var TableColumnsManager = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-36d907dc"]]);
18248
18250
  var qmApi = {};
18249
18251
  var qmArray = {
18250
18252
  arrayToText(arr, key = null) {
@@ -18534,7 +18536,7 @@ const _hoisted_3$2 = {
18534
18536
  const _hoisted_4$2 = { class: "ck-table__table-container" };
18535
18537
  const _hoisted_5 = { key: 0 };
18536
18538
  const _hoisted_6 = { key: 1 };
18537
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18539
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
18538
18540
  props: {
18539
18541
  columns: { type: [Array, Object], required: true, default: () => [] },
18540
18542
  hasColumnsManager: { type: Boolean, default: false },
@@ -18659,7 +18661,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18659
18661
  createVNode(ckTr, null, {
18660
18662
  default: withCtx(() => [
18661
18663
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref$1(filteredColumnsList), (col) => {
18662
- return openBlock(), createBlock(_sfc_main$h, {
18664
+ return openBlock(), createBlock(_sfc_main$i, {
18663
18665
  key: col.title,
18664
18666
  col
18665
18667
  }, null, 8, ["col"]);
@@ -18707,10 +18709,10 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18707
18709
  };
18708
18710
  }
18709
18711
  });
18710
- var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-6545e800"]]);
18712
+ var ckTable = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6545e800"]]);
18711
18713
  var ckChip_vue_vue_type_style_index_0_scoped_true_lang = "";
18712
18714
  const _hoisted_1$7 = ["color"];
18713
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18715
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
18714
18716
  props: {
18715
18717
  size: { type: String, default: "s" },
18716
18718
  color: { type: String, default: "primary" },
@@ -18750,7 +18752,35 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18750
18752
  };
18751
18753
  }
18752
18754
  });
18753
- var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-1e92de86"]]);
18755
+ var ckChip = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-1e92de86"]]);
18756
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
18757
+ props: {
18758
+ widthBreaks: { type: Array, default: void 0 }
18759
+ },
18760
+ emits: ["click"],
18761
+ setup(__props, { emit: emits }) {
18762
+ const props = __props;
18763
+ const { windowWidth } = useWindowWidth();
18764
+ const computedStyle = computed$2(() => {
18765
+ const list = [];
18766
+ if (props.widthBreaks) {
18767
+ const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
18768
+ if (width)
18769
+ list.push({ width });
18770
+ }
18771
+ return list;
18772
+ });
18773
+ return (_ctx, _cache) => {
18774
+ return openBlock(), createElementBlock("div", {
18775
+ class: "ck-div",
18776
+ style: normalizeStyle(unref$1(computedStyle)),
18777
+ onClick: _cache[0] || (_cache[0] = ($event) => emits("click", $event))
18778
+ }, [
18779
+ renderSlot(_ctx.$slots, "default")
18780
+ ], 4);
18781
+ };
18782
+ }
18783
+ });
18754
18784
  var globalVariables = {
18755
18785
  defaultFailImg: "df",
18756
18786
  imagesFolderPath: "",
@@ -18956,7 +18986,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
18956
18986
  bgTransparent: { type: Boolean, default: false },
18957
18987
  disabled: { type: [Boolean, Number], default: false },
18958
18988
  group: { type: String, default: "" },
18959
- lineBreak: { type: [String, Number], default: "" },
18989
+ widthBreaks: { type: Array, default: void 0 },
18960
18990
  groupVertical: { type: String, default: "" },
18961
18991
  label: { type: String, default: "" },
18962
18992
  labelAlign: { type: String, default: "" }
@@ -18989,25 +19019,23 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
18989
19019
  return list;
18990
19020
  });
18991
19021
  const computedClassSelect = computed$2(() => {
18992
- const classList2 = [];
18993
- classList2.push(functions.getGroupClass(props));
18994
- return classList2;
18995
- });
18996
- const computedStyleSelect = computed$2(() => {
18997
19022
  const list = [];
18998
- list.push(functions.getlineBreakStyle(props, windowWidth.value));
19023
+ list.push(functions.getGroupClass(props, windowWidth.value));
18999
19024
  return list;
19000
19025
  });
19001
- const computedClass = computed$2(() => {
19002
- const classList2 = [];
19003
- classList2.push(functions.getGroupClassContainer(props));
19004
- return classList2;
19005
- });
19006
19026
  const computedStyle = computed$2(() => {
19007
19027
  const list = [];
19008
- if (props.minWidth)
19028
+ let isWidthDefined = false;
19029
+ if (props.widthBreaks) {
19030
+ const width = functions.getWidthByWidthBreaks(props.widthBreaks, windowWidth.value);
19031
+ if (width) {
19032
+ list.push({ width });
19033
+ isWidthDefined = true;
19034
+ }
19035
+ }
19036
+ if (!isWidthDefined && props.minWidth) {
19009
19037
  list.push({ "min-width": props.minWidth });
19010
- list.push(functions.getlineBreakStyleContainer(props, windowWidth.value));
19038
+ }
19011
19039
  return list;
19012
19040
  });
19013
19041
  computed$2(() => {
@@ -19072,7 +19100,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
19072
19100
  }
19073
19101
  return (_ctx, _cache) => {
19074
19102
  return openBlock(), createElementBlock("div", {
19075
- class: normalizeClass(["ck-select", unref$1(computedClass)]),
19103
+ class: "ck-select",
19076
19104
  style: normalizeStyle(unref$1(computedStyle))
19077
19105
  }, [
19078
19106
  __props.label ? (openBlock(), createBlock(ckLabel, {
@@ -19088,7 +19116,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
19088
19116
  withDirectives(createElementVNode("select", {
19089
19117
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef$1(value) ? value.value = $event : null),
19090
19118
  class: normalizeClass(unref$1(computedClassSelect)),
19091
- style: normalizeStyle(unref$1(computedStyleSelect)),
19092
19119
  onClick: _cache[1] || (_cache[1] = ($event) => onClick($event)),
19093
19120
  onChange: _cache[2] || (_cache[2] = ($event) => onChange2($event))
19094
19121
  }, [
@@ -19098,14 +19125,14 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
19098
19125
  key: option
19099
19126
  }, toDisplayString(getOptionName(option)), 9, _hoisted_1$4);
19100
19127
  }), 128))
19101
- ], 38), [
19128
+ ], 34), [
19102
19129
  [vModelSelect, unref$1(value)]
19103
19130
  ])
19104
- ], 6);
19131
+ ], 4);
19105
19132
  };
19106
19133
  }
19107
19134
  });
19108
- var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-fa28183e"]]);
19135
+ var ckSelect = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-93db8c36"]]);
19109
19136
  var ckSwitch_vue_vue_type_style_index_0_scoped_true_lang = "";
19110
19137
  const _withScopeId = (n) => (pushScopeId("data-v-7e2f20c4"), n = n(), popScopeId(), n);
19111
19138
  const _hoisted_1$3 = ["disabled"];
@@ -19221,12 +19248,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
19221
19248
  labelAlign: { type: String, default: "" },
19222
19249
  group: { type: String, default: "" },
19223
19250
  lineBreak: { type: [String, Number], default: "" },
19251
+ widthBreaks: { type: Array, default: void 0 },
19224
19252
  groupVertical: { type: String, default: "" },
19225
19253
  sameWidthOptions: { type: Boolean, default: false }
19226
19254
  },
19227
19255
  emits: ["update:modelValue", "change"],
19228
19256
  setup(__props, { emit: emits }) {
19229
19257
  const props = __props;
19258
+ const { windowWidth } = useWindowWidth();
19230
19259
  const selectedOption = computed$2({
19231
19260
  get() {
19232
19261
  return props.modelValue;
@@ -19237,9 +19266,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
19237
19266
  }
19238
19267
  });
19239
19268
  const computedClass = computed$2(() => {
19240
- const classList2 = [];
19241
- classList2.push(functions.getGroupClass(props));
19242
- return classList2;
19269
+ const list = [];
19270
+ list.push(functions.getGroupClass(props, windowWidth.value));
19271
+ return list;
19243
19272
  });
19244
19273
  const computedItemStyle = computed$2(() => {
19245
19274
  const list = [];
@@ -19279,7 +19308,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
19279
19308
  };
19280
19309
  }
19281
19310
  });
19282
- var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-55ea866f"]]);
19311
+ var ckSwitchOptions = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-f6a5151e"]]);
19283
19312
  var ckTextarea_vue_vue_type_style_index_0_scoped_true_lang = "";
19284
19313
  const _hoisted_1$1 = { class: "ck-textarea" };
19285
19314
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -21940,11 +21969,12 @@ var components = /* @__PURE__ */ Object.freeze({
21940
21969
  ckButton,
21941
21970
  ckCheckbox,
21942
21971
  ckChip,
21972
+ ckDiv: _sfc_main$7,
21943
21973
  ckIcon,
21944
21974
  ckImg,
21945
21975
  ckInput,
21946
21976
  ckLabel,
21947
- ckPopup: _sfc_main$a,
21977
+ ckPopup: _sfc_main$b,
21948
21978
  ckRadio,
21949
21979
  ckSelect,
21950
21980
  ckSwitch,
@@ -21984,4 +22014,4 @@ const install = function installCleek(app, options) {
21984
22014
  app.component(componentName, component);
21985
22015
  });
21986
22016
  };
21987
- 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 };
22017
+ 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 };